mazey-element-ui 2.15.19 → 2.15.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cascader-panel.js +25 -32
- package/lib/element-ui.common.js +58 -78
- package/lib/index.js +1 -1
- package/lib/tree.js +33 -46
- package/package.json +1 -1
package/lib/cascader-panel.js
CHANGED
|
@@ -567,10 +567,7 @@ var cascader_menu_component = normalizeComponent(
|
|
|
567
567
|
;// external "mazey-element-ui/lib/utils/shared"
|
|
568
568
|
const shared_namespaceObject = require("mazey-element-ui/lib/utils/shared");
|
|
569
569
|
;// ./packages/cascader-panel/src/node.js
|
|
570
|
-
function
|
|
571
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
572
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
573
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
570
|
+
function _defineAccessor(e, r, n, t) { var c = { configurable: !0, enumerable: !0 }; return c[e] = t, Object.defineProperty(r, n, c); }
|
|
574
571
|
;
|
|
575
572
|
|
|
576
573
|
var uid = 0;
|
|
@@ -613,6 +610,29 @@ var Node = /*#__PURE__*/function () {
|
|
|
613
610
|
return new Node(child, config, _this);
|
|
614
611
|
});
|
|
615
612
|
};
|
|
613
|
+
_defineAccessor("get", _proto, "isDisabled", function () {
|
|
614
|
+
var data = this.data,
|
|
615
|
+
parent = this.parent,
|
|
616
|
+
config = this.config;
|
|
617
|
+
var disabledKey = config.disabled;
|
|
618
|
+
var checkStrictly = config.checkStrictly;
|
|
619
|
+
return data[disabledKey] || !checkStrictly && parent && parent.isDisabled;
|
|
620
|
+
});
|
|
621
|
+
_defineAccessor("get", _proto, "isLeaf", function () {
|
|
622
|
+
var data = this.data,
|
|
623
|
+
loaded = this.loaded,
|
|
624
|
+
hasChildren = this.hasChildren,
|
|
625
|
+
children = this.children;
|
|
626
|
+
var _this$config2 = this.config,
|
|
627
|
+
lazy = _this$config2.lazy,
|
|
628
|
+
leafKey = _this$config2.leaf;
|
|
629
|
+
if (lazy) {
|
|
630
|
+
var isLeaf = (0,shared_namespaceObject.isDef)(data[leafKey]) ? data[leafKey] : loaded ? !children.length : false;
|
|
631
|
+
this.hasChildren = !isLeaf;
|
|
632
|
+
return isLeaf;
|
|
633
|
+
}
|
|
634
|
+
return !hasChildren;
|
|
635
|
+
});
|
|
616
636
|
_proto.calculatePathNodes = function calculatePathNodes() {
|
|
617
637
|
var nodes = [this];
|
|
618
638
|
var parent = this.parent;
|
|
@@ -705,34 +725,7 @@ var Node = /*#__PURE__*/function () {
|
|
|
705
725
|
}
|
|
706
726
|
}
|
|
707
727
|
};
|
|
708
|
-
return
|
|
709
|
-
key: "isDisabled",
|
|
710
|
-
get: function get() {
|
|
711
|
-
var data = this.data,
|
|
712
|
-
parent = this.parent,
|
|
713
|
-
config = this.config;
|
|
714
|
-
var disabledKey = config.disabled;
|
|
715
|
-
var checkStrictly = config.checkStrictly;
|
|
716
|
-
return data[disabledKey] || !checkStrictly && parent && parent.isDisabled;
|
|
717
|
-
}
|
|
718
|
-
}, {
|
|
719
|
-
key: "isLeaf",
|
|
720
|
-
get: function get() {
|
|
721
|
-
var data = this.data,
|
|
722
|
-
loaded = this.loaded,
|
|
723
|
-
hasChildren = this.hasChildren,
|
|
724
|
-
children = this.children;
|
|
725
|
-
var _this$config2 = this.config,
|
|
726
|
-
lazy = _this$config2.lazy,
|
|
727
|
-
leafKey = _this$config2.leaf;
|
|
728
|
-
if (lazy) {
|
|
729
|
-
var isLeaf = (0,shared_namespaceObject.isDef)(data[leafKey]) ? data[leafKey] : loaded ? !children.length : false;
|
|
730
|
-
this.hasChildren = !isLeaf;
|
|
731
|
-
return isLeaf;
|
|
732
|
-
}
|
|
733
|
-
return !hasChildren;
|
|
734
|
-
}
|
|
735
|
-
}]);
|
|
728
|
+
return Node;
|
|
736
729
|
}();
|
|
737
730
|
|
|
738
731
|
;// ./packages/cascader-panel/src/store.js
|
package/lib/element-ui.common.js
CHANGED
|
@@ -23150,10 +23150,7 @@ var findNearestComponent = function findNearestComponent(element, componentName)
|
|
|
23150
23150
|
return null;
|
|
23151
23151
|
};
|
|
23152
23152
|
;// ./packages/tree/src/model/node.js
|
|
23153
|
-
function
|
|
23154
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
23155
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
23156
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
23153
|
+
function _defineAccessor(e, r, n, t) { var c = { configurable: !0, enumerable: !0 }; return c[e] = t, Object.defineProperty(r, n, c); }
|
|
23157
23154
|
;
|
|
23158
23155
|
|
|
23159
23156
|
|
|
@@ -23298,6 +23295,37 @@ var Node = /*#__PURE__*/function () {
|
|
|
23298
23295
|
});
|
|
23299
23296
|
}
|
|
23300
23297
|
};
|
|
23298
|
+
_defineAccessor("get", _proto, "label", function () {
|
|
23299
|
+
return getPropertyFromData(this, 'label');
|
|
23300
|
+
});
|
|
23301
|
+
_defineAccessor("get", _proto, "key", function () {
|
|
23302
|
+
var nodeKey = this.store.key;
|
|
23303
|
+
if (this.data) return this.data[nodeKey];
|
|
23304
|
+
return null;
|
|
23305
|
+
});
|
|
23306
|
+
_defineAccessor("get", _proto, "disabled", function () {
|
|
23307
|
+
return getPropertyFromData(this, 'disabled');
|
|
23308
|
+
});
|
|
23309
|
+
_defineAccessor("get", _proto, "nextSibling", function () {
|
|
23310
|
+
var parent = this.parent;
|
|
23311
|
+
if (parent) {
|
|
23312
|
+
var index = parent.childNodes.indexOf(this);
|
|
23313
|
+
if (index > -1) {
|
|
23314
|
+
return parent.childNodes[index + 1];
|
|
23315
|
+
}
|
|
23316
|
+
}
|
|
23317
|
+
return null;
|
|
23318
|
+
});
|
|
23319
|
+
_defineAccessor("get", _proto, "previousSibling", function () {
|
|
23320
|
+
var parent = this.parent;
|
|
23321
|
+
if (parent) {
|
|
23322
|
+
var index = parent.childNodes.indexOf(this);
|
|
23323
|
+
if (index > -1) {
|
|
23324
|
+
return index > 0 ? parent.childNodes[index - 1] : null;
|
|
23325
|
+
}
|
|
23326
|
+
}
|
|
23327
|
+
return null;
|
|
23328
|
+
});
|
|
23301
23329
|
_proto.contains = function contains(target, deep) {
|
|
23302
23330
|
if (deep === void 0) {
|
|
23303
23331
|
deep = true;
|
|
@@ -23581,48 +23609,7 @@ var Node = /*#__PURE__*/function () {
|
|
|
23581
23609
|
}
|
|
23582
23610
|
}
|
|
23583
23611
|
};
|
|
23584
|
-
return
|
|
23585
|
-
key: "label",
|
|
23586
|
-
get: function get() {
|
|
23587
|
-
return getPropertyFromData(this, 'label');
|
|
23588
|
-
}
|
|
23589
|
-
}, {
|
|
23590
|
-
key: "key",
|
|
23591
|
-
get: function get() {
|
|
23592
|
-
var nodeKey = this.store.key;
|
|
23593
|
-
if (this.data) return this.data[nodeKey];
|
|
23594
|
-
return null;
|
|
23595
|
-
}
|
|
23596
|
-
}, {
|
|
23597
|
-
key: "disabled",
|
|
23598
|
-
get: function get() {
|
|
23599
|
-
return getPropertyFromData(this, 'disabled');
|
|
23600
|
-
}
|
|
23601
|
-
}, {
|
|
23602
|
-
key: "nextSibling",
|
|
23603
|
-
get: function get() {
|
|
23604
|
-
var parent = this.parent;
|
|
23605
|
-
if (parent) {
|
|
23606
|
-
var index = parent.childNodes.indexOf(this);
|
|
23607
|
-
if (index > -1) {
|
|
23608
|
-
return parent.childNodes[index + 1];
|
|
23609
|
-
}
|
|
23610
|
-
}
|
|
23611
|
-
return null;
|
|
23612
|
-
}
|
|
23613
|
-
}, {
|
|
23614
|
-
key: "previousSibling",
|
|
23615
|
-
get: function get() {
|
|
23616
|
-
var parent = this.parent;
|
|
23617
|
-
if (parent) {
|
|
23618
|
-
var index = parent.childNodes.indexOf(this);
|
|
23619
|
-
if (index > -1) {
|
|
23620
|
-
return index > 0 ? parent.childNodes[index - 1] : null;
|
|
23621
|
-
}
|
|
23622
|
-
}
|
|
23623
|
-
return null;
|
|
23624
|
-
}
|
|
23625
|
-
}]);
|
|
23612
|
+
return Node;
|
|
23626
23613
|
}();
|
|
23627
23614
|
|
|
23628
23615
|
;// ./packages/tree/src/model/tree-store.js
|
|
@@ -37449,10 +37436,7 @@ var cascader_menu_component = normalizeComponent(
|
|
|
37449
37436
|
|
|
37450
37437
|
/* harmony default export */ const cascader_menu = (cascader_menu_component.exports);
|
|
37451
37438
|
;// ./packages/cascader-panel/src/node.js
|
|
37452
|
-
function
|
|
37453
|
-
function node_createClass(e, r, t) { return r && node_defineProperties(e.prototype, r), t && node_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
37454
|
-
function node_toPropertyKey(t) { var i = node_toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
37455
|
-
function node_toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
37439
|
+
function node_defineAccessor(e, r, n, t) { var c = { configurable: !0, enumerable: !0 }; return c[e] = t, Object.defineProperty(r, n, c); }
|
|
37456
37440
|
;
|
|
37457
37441
|
|
|
37458
37442
|
var uid = 0;
|
|
@@ -37495,6 +37479,29 @@ var node_Node = /*#__PURE__*/function () {
|
|
|
37495
37479
|
return new Node(child, config, _this);
|
|
37496
37480
|
});
|
|
37497
37481
|
};
|
|
37482
|
+
node_defineAccessor("get", _proto, "isDisabled", function () {
|
|
37483
|
+
var data = this.data,
|
|
37484
|
+
parent = this.parent,
|
|
37485
|
+
config = this.config;
|
|
37486
|
+
var disabledKey = config.disabled;
|
|
37487
|
+
var checkStrictly = config.checkStrictly;
|
|
37488
|
+
return data[disabledKey] || !checkStrictly && parent && parent.isDisabled;
|
|
37489
|
+
});
|
|
37490
|
+
node_defineAccessor("get", _proto, "isLeaf", function () {
|
|
37491
|
+
var data = this.data,
|
|
37492
|
+
loaded = this.loaded,
|
|
37493
|
+
hasChildren = this.hasChildren,
|
|
37494
|
+
children = this.children;
|
|
37495
|
+
var _this$config2 = this.config,
|
|
37496
|
+
lazy = _this$config2.lazy,
|
|
37497
|
+
leafKey = _this$config2.leaf;
|
|
37498
|
+
if (lazy) {
|
|
37499
|
+
var isLeaf = (0,shared_namespaceObject.isDef)(data[leafKey]) ? data[leafKey] : loaded ? !children.length : false;
|
|
37500
|
+
this.hasChildren = !isLeaf;
|
|
37501
|
+
return isLeaf;
|
|
37502
|
+
}
|
|
37503
|
+
return !hasChildren;
|
|
37504
|
+
});
|
|
37498
37505
|
_proto.calculatePathNodes = function calculatePathNodes() {
|
|
37499
37506
|
var nodes = [this];
|
|
37500
37507
|
var parent = this.parent;
|
|
@@ -37587,34 +37594,7 @@ var node_Node = /*#__PURE__*/function () {
|
|
|
37587
37594
|
}
|
|
37588
37595
|
}
|
|
37589
37596
|
};
|
|
37590
|
-
return
|
|
37591
|
-
key: "isDisabled",
|
|
37592
|
-
get: function get() {
|
|
37593
|
-
var data = this.data,
|
|
37594
|
-
parent = this.parent,
|
|
37595
|
-
config = this.config;
|
|
37596
|
-
var disabledKey = config.disabled;
|
|
37597
|
-
var checkStrictly = config.checkStrictly;
|
|
37598
|
-
return data[disabledKey] || !checkStrictly && parent && parent.isDisabled;
|
|
37599
|
-
}
|
|
37600
|
-
}, {
|
|
37601
|
-
key: "isLeaf",
|
|
37602
|
-
get: function get() {
|
|
37603
|
-
var data = this.data,
|
|
37604
|
-
loaded = this.loaded,
|
|
37605
|
-
hasChildren = this.hasChildren,
|
|
37606
|
-
children = this.children;
|
|
37607
|
-
var _this$config2 = this.config,
|
|
37608
|
-
lazy = _this$config2.lazy,
|
|
37609
|
-
leafKey = _this$config2.leaf;
|
|
37610
|
-
if (lazy) {
|
|
37611
|
-
var isLeaf = (0,shared_namespaceObject.isDef)(data[leafKey]) ? data[leafKey] : loaded ? !children.length : false;
|
|
37612
|
-
this.hasChildren = !isLeaf;
|
|
37613
|
-
return isLeaf;
|
|
37614
|
-
}
|
|
37615
|
-
return !hasChildren;
|
|
37616
|
-
}
|
|
37617
|
-
}]);
|
|
37597
|
+
return Node;
|
|
37618
37598
|
}();
|
|
37619
37599
|
|
|
37620
37600
|
;// ./packages/cascader-panel/src/store.js
|