Skip to content

Commit d9a17be

Browse files
committed
0.9.5
1 parent b8c0192 commit d9a17be

File tree

5 files changed

+10
-17
lines changed

5 files changed

+10
-17
lines changed

demo/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-multipane.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-multipane.js

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ var __vue_module__ = {
1515
type: String,
1616
default: LAYOUT_VERTICAL,
1717
},
18-
classname: {
19-
type: String,
20-
default: '',
21-
},
2218
},
2319

2420
data: function data() {
@@ -32,8 +28,7 @@ var __vue_module__ = {
3228
return [
3329
'multipane',
3430
'layout-' + this.layout.slice(0, 1),
35-
this.isResizing ? 'is-resizing' : '',
36-
this.classname ];
31+
this.isResizing ? 'is-resizing' : '' ];
3732
},
3833
cursor: function cursor() {
3934
return this.isResizing
@@ -51,7 +46,7 @@ var __vue_module__ = {
5146
var initialPageX = ref.pageX;
5247
var initialPageY = ref.pageY;
5348

54-
if (resizer.className.match('multipane-resizer')) {
49+
if (resizer.className && resizer.className.match('multipane-resizer')) {
5550
var self = this;
5651
var container = self.$el;
5752
var layout = self.layout;
@@ -131,9 +126,7 @@ var __vue_module__ = {
131126
},
132127
};
133128

134-
(function(){ if(typeof document !== 'undefined'){ var head=document.head||document.getElementsByTagName('head')[0], style=document.createElement('style'), css=".multipane { display: flex; } .multipane.layout-h { flex-direction: column; } .multipane.layout-v { flex-direction: row; } "; style.type='text/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } head.appendChild(style); } })();
135-
136-
129+
(function(){ if(typeof document !== 'undefined'){ var head=document.head||document.getElementsByTagName('head')[0], style=document.createElement('style'), css=".multipane { display: flex; } .multipane.layout-h { flex-direction: column; } .multipane.layout-v { flex-direction: row; } .multipane > div { position: relative; z-index: 1; } .multipane-resizer { display: block; position: relative; z-index: 2; } .layout-h > .multipane-resizer { width: 100%; height: 10px; margin-top: -10px; top: 5px; cursor: row-resize; } .layout-v > .multipane-resizer { width: 10px; height: 100%; margin-left: -10px; left: 5px; cursor: col-resize; } "; style.type='text/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } head.appendChild(style); } })();
137130

138131

139132

@@ -152,10 +145,7 @@ var __vue_module__ = {
152145

153146

154147

155-
var __$__vue_module__ = Object.assign(__vue_module__, {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.classnames,style:({ cursor: _vm.cursor, userSelect: _vm.userSelect }),on:{"mousedown":_vm.onMouseDown}},[_vm._t("default")],2)},staticRenderFns: [],});
156-
__$__vue_module__.prototype = __vue_module__.prototype;
157148

158-
(function(){ if(typeof document !== 'undefined'){ var head=document.head||document.getElementsByTagName('head')[0], style=document.createElement('style'), css=".multipane > div { position: relative; z-index: 1; } .multipane-resizer { display: block; position: relative; z-index: 2; } .layout-h > .multipane-resizer { width: 100%; height: 10px; margin-top: -10px; top: 5px; cursor: row-resize; } .layout-v > .multipane-resizer { width: 10px; height: 100%; margin-left: -10px; left: 5px; cursor: col-resize; } "; style.type='text/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } head.appendChild(style); } })();
159149

160150

161151

@@ -184,7 +174,10 @@ var __vue_module__ = {
184174

185175

186176

177+
var __$__vue_module__ = Object.assign(__vue_module__, {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.classnames,style:({ cursor: _vm.cursor, userSelect: _vm.userSelect }),on:{"mousedown":_vm.onMouseDown}},[_vm._t("default")],2)},staticRenderFns: [],});
178+
__$__vue_module__.prototype = __vue_module__.prototype;
187179

180+
(function(){ if(typeof document !== 'undefined'){ var head=document.head||document.getElementsByTagName('head')[0], style=document.createElement('style'), css=""; style.type='text/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } head.appendChild(style); } })();
188181

189182
var MultipaneResizer = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"multipane-resizer"},[_vm._t("default")],2)},staticRenderFns: [],
190183
};

dist/vue-multipane.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-multipane",
33
"description": "Resizable split panes for Vue.js.",
4-
"version": "0.9.3",
4+
"version": "0.9.5",
55
"author": "Yan Sern <[email protected]>",
66
"main": "dist/vue-multipane.js",
77
"unpkg": "dist/vue-multipane.min.js",

0 commit comments

Comments
 (0)