bi-eleme 2.0.10 → 2.0.12
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 +13 -4
- package/lib/element-ui.common.js +14 -5
- package/lib/index.js +1 -1
- package/lib/theme-chalk/cascader-panel.css +1 -1
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/date-picker.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/time-picker.css +1 -1
- package/lib/theme-chalk/time-select.css +1 -1
- package/lib/utils/util.js +10 -8
- package/package.json +1 -1
- package/packages/cascader-panel/src/cascader-node.vue +14 -5
- package/packages/theme-chalk/lib/cascader-panel.css +1 -1
- package/packages/theme-chalk/lib/cascader.css +1 -1
- package/packages/theme-chalk/lib/date-picker.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/time-picker.css +1 -1
- package/packages/theme-chalk/lib/time-select.css +1 -1
- package/packages/theme-chalk/src/cascader-panel.scss +1 -1
- package/packages/theme-chalk/src/date-picker/picker-panel.scss +3 -0
- package/src/index.js +1 -1
- package/src/utils/util.js +7 -8
package/lib/cascader-panel.js
CHANGED
|
@@ -372,9 +372,18 @@ var stopPropagation = function stopPropagation(e) {
|
|
|
372
372
|
panelValue = this.panel.checkedValue || [];
|
|
373
373
|
}
|
|
374
374
|
if (this.config.multiple) {
|
|
375
|
-
|
|
375
|
+
if (this.config.emitPath === false) {
|
|
376
|
+
return Object(util_["isInArray"])(this.value, panelValue);
|
|
377
|
+
} else {
|
|
378
|
+
return Object(util_["isArrayAContainedIn2DArrayB"])(this.value, panelValue);
|
|
379
|
+
}
|
|
380
|
+
} else {
|
|
381
|
+
if (this.config.emitPath === false) {
|
|
382
|
+
return this.value === panelValue;
|
|
383
|
+
} else {
|
|
384
|
+
return Object(util_["isArrayAContainedIn2DArrayB"])(this.value, panelValue);
|
|
385
|
+
}
|
|
376
386
|
}
|
|
377
|
-
return Object(util_["isArrayAContainedInB"])(this.value, panelValue);
|
|
378
387
|
},
|
|
379
388
|
value: function value() {
|
|
380
389
|
return this.node.getValueByOption();
|
|
@@ -577,9 +586,9 @@ var stopPropagation = function stopPropagation(e) {
|
|
|
577
586
|
'is-selectable': checkStrictly,
|
|
578
587
|
'in-active-path': inActivePath,
|
|
579
588
|
'in-checked-path': inCheckedPath,
|
|
580
|
-
'in-selected-path': inSelectedPath,
|
|
581
589
|
'is-active': isChecked,
|
|
582
|
-
'is-disabled': disabled
|
|
590
|
+
'is-disabled': disabled,
|
|
591
|
+
'in-selected-path': inSelectedPath
|
|
583
592
|
}
|
|
584
593
|
}, events]),
|
|
585
594
|
[this.renderPrefix(h), this.renderContent(h), this.renderPostfix(h)]
|
package/lib/element-ui.common.js
CHANGED
|
@@ -40777,9 +40777,18 @@ var stopPropagation = function stopPropagation(e) {
|
|
|
40777
40777
|
panelValue = this.panel.checkedValue || [];
|
|
40778
40778
|
}
|
|
40779
40779
|
if (this.config.multiple) {
|
|
40780
|
-
|
|
40780
|
+
if (this.config.emitPath === false) {
|
|
40781
|
+
return Object(util_["isInArray"])(this.value, panelValue);
|
|
40782
|
+
} else {
|
|
40783
|
+
return Object(util_["isArrayAContainedIn2DArrayB"])(this.value, panelValue);
|
|
40784
|
+
}
|
|
40785
|
+
} else {
|
|
40786
|
+
if (this.config.emitPath === false) {
|
|
40787
|
+
return this.value === panelValue;
|
|
40788
|
+
} else {
|
|
40789
|
+
return Object(util_["isArrayAContainedIn2DArrayB"])(this.value, panelValue);
|
|
40790
|
+
}
|
|
40781
40791
|
}
|
|
40782
|
-
return Object(util_["isArrayAContainedInB"])(this.value, panelValue);
|
|
40783
40792
|
},
|
|
40784
40793
|
value: function value() {
|
|
40785
40794
|
return this.node.getValueByOption();
|
|
@@ -40982,9 +40991,9 @@ var stopPropagation = function stopPropagation(e) {
|
|
|
40982
40991
|
'is-selectable': checkStrictly,
|
|
40983
40992
|
'in-active-path': inActivePath,
|
|
40984
40993
|
'in-checked-path': inCheckedPath,
|
|
40985
|
-
'in-selected-path': inSelectedPath,
|
|
40986
40994
|
'is-active': isChecked,
|
|
40987
|
-
'is-disabled': disabled
|
|
40995
|
+
'is-disabled': disabled,
|
|
40996
|
+
'in-selected-path': inSelectedPath
|
|
40988
40997
|
}
|
|
40989
40998
|
}, events]),
|
|
40990
40999
|
[this.renderPrefix(h), this.renderContent(h), this.renderPostfix(h)]
|
|
@@ -44441,7 +44450,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
44441
44450
|
}
|
|
44442
44451
|
|
|
44443
44452
|
/* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
|
|
44444
|
-
version: '2.0.
|
|
44453
|
+
version: '2.0.12',
|
|
44445
44454
|
locale: lib_locale_default.a.use,
|
|
44446
44455
|
i18n: lib_locale_default.a.i18n,
|
|
44447
44456
|
install: src_install,
|