10000 2.2.10 build: from earlymeme/fix-treenode-props-data-undefined · phphe/vue-draggable-nested-tree@e1fdb81 · GitHub
[go: up one dir, main page]

Skip to content

Commit e1fdb81

Browse files
committed
2.2.10 build: from earlymeme/fix-treenode-props-data-undefined
1 parent 689a5e5 commit e1fdb81

6 files changed

+14
-14
lines changed

dist/vue-draggable-nested-tree.cjs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-draggable-nested-tree v2.2.9
2+
* vue-draggable-nested-tree v2.2.10
33
* (c) 2018-present phphe <phphe@outlook.com>
44
* Released under the MIT License.
55
*/
@@ -48,11 +48,11 @@ var script = {
4848
return this.level + 1;
4949
},
5050
isRoot: function isRoot() {
51-
return this.data.isRoot;
51+
return this.data && this.data.isRoot;
5252
},
5353
childrenVisible: function childrenVisible() {
5454
var data = this.data;
55-
return this.isRoot || data.children && data.children.length && data.open;
55+
return this.isRoot || data && data.children && data.children.length && data.open;
5656
},
5757
innerBackStyle: function innerBackStyle() {
5858
var r = {

dist/vue-draggable-nested-tree.es.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-draggable-nested-tree v2.2.9
2+
* vue-draggable-nested-tree v2.2.10
33
* (c) 2018-present phphe <phphe@outlook.com>
44
* Released under the MIT License.
55
*/
@@ -42,11 +42,11 @@ var script = {
4242
return this.level + 1;
4343
},
4444
isRoot: function isRoot() {
45-
return this.data.isRoot;
45+
return this.data && this.data.isRoot;
4646
},
4747
childrenVisible: function childrenVisible() {
4848
var data = this.data;
49-
return this.isRoot || data.children && data.children.length && data.open;
49+
return this.isRoot || data && data.children && data.children.length && data.open;
5050
},
5151
innerBackStyle: function innerBackStyle() {
5252
var r = {

dist/vue-draggable-nested-tree.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-draggable-nested-tree v2.2.9
2+
* vue-draggable-nested-tree v2.2.10
33
* (c) 2018-present phphe <phphe@outlook.com>
44
* Released under the MIT License.
55
*/
@@ -120,7 +120,7 @@
120120
return store[key] || (store[key] = value !== undefined ? value : {});
121121
})('versions', []).push({
122122
version: _core.version,
123-
mode: _library ? 'pure' : 'global',
123+
mode: 'pure',
124124
copyright: '© 2018 Denis Pushkarev (zloirock.ru)'
125125
});
126126
});
@@ -1877,11 +1877,11 @@
18771877
return this.level + 1;
18781878
},
18791879
isRoot: function isRoot() {
1880-
return this.data.isRoot;
1880+
return this.data && this.data.isRoot;
18811881
},
18821882
childrenVisible: function childrenVisible() {
18831883
var data = this.data;
1884-
return this.isRoot || data.children && data.children.length && data.open;
1884+
return this.isRoot || data && data.children && data.children.length && data.open;
18851885
},
18861886
innerBackStyle: function innerBackStyle() {
18871887
var r = {

dist/vue-draggable-nested-tree.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-draggable-nested-tree.min.js.map

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,6 +1,6 @@
11
{
22
"name": "vue-draggable-nested-tree",
3-
"version": "2.2.9",
3+
"version": "2.2.10",
44
"description": "A draggable tree view component for vue2",
55
"main": "dist/vue-draggable-nested-tree.cjs.js",
66
"module": "dist/vue-draggable-nested-tree.es.js",

0 commit comments

Comments
 (0)
0