bkui-vue 2.0.2-beta.51 → 2.0.2-beta.53

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.
@@ -14,6 +14,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_select_1a0d1ad7__ from "../se
14
14
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__ from "../tag";
15
15
  import "../tag/tag.less";
16
16
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_input_bee9f515__ from "../tag-input";
17
+ import * as __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__ from "lodash/merge";
17
18
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__ from "../checkbox";
18
19
  import "../checkbox/checkbox.less";
19
20
  /******/ var __webpack_modules__ = ({
@@ -1571,6 +1572,10 @@ const tag_less_namespaceObject = tag_less_x({ });
1571
1572
  var tag_input_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1572
1573
  var tag_input_y = x => () => x
1573
1574
  const tag_input_namespaceObject = tag_input_x({ ["useTagsOverflow"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_input_bee9f515__.useTagsOverflow });
1575
+ ;// CONCATENATED MODULE: external "lodash/merge"
1576
+ var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1577
+ var merge_y = x => () => x
1578
+ const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"] });
1574
1579
  ;// CONCATENATED MODULE: external "../checkbox"
1575
1580
  var checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1576
1581
  var checkbox_y = x => () => x
@@ -1941,15 +1946,20 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
1941
1946
  };
1942
1947
  return (0,external_vue_.createVNode)("div", {
1943
1948
  "class": this.resolveClassName('cascader-panel-wrapper')
1944
- }, [this.isFiltering ? searchPanelRender() : this.menus.list.map(function (menu) {
1949
+ }, [this.isFiltering ? searchPanelRender() : this.menus.list.map(function (menu, index) {
1950
+ var _this$$slots$panel, _this$$slots;
1945
1951
  return (0,external_vue_.createVNode)("ul", {
1946
1952
  "style": {
1947
1953
  height: _this.panelHeight,
1948
1954
  width: _this.panelWidth
1949
1955
  },
1950
1956
  "class": [_this.resolveClassName('cascader-panel'), _this.resolveClassName('scroll-y')]
1951
- }, [menu.length ? menu.map(function (node) {
1952
- var _this$$slots$default, _this$$slots;
1957
+ }, [(_this$$slots$panel = (_this$$slots = _this.$slots).panel) === null || _this$$slots$panel === void 0 ? void 0 : _this$$slots$panel.call(_this$$slots, {
1958
+ nodes: menu,
1959
+ level: index,
1960
+ activePath: _this.activePath
1961
+ }), menu.length ? menu.map(function (node) {
1962
+ var _this$$slots$default, _this$$slots2;
1953
1963
  return (0,external_vue_.createVNode)("li", (0,external_vue_.mergeProps)({
1954
1964
  "class": [_this.resolveClassName('cascader-node'), {
1955
1965
  'is-selected': _this.isNodeInPath(node)
@@ -1969,7 +1979,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
1969
1979
  "onChange": function onChange(val) {
1970
1980
  return _this.checkNode(node, !!val);
1971
1981
  }
1972
- }, null), (_this$$slots$default = (_this$$slots = _this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots, {
1982
+ }, null), (_this$$slots$default = (_this$$slots2 = _this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots2, {
1973
1983
  node: node,
1974
1984
  data: node.data
1975
1985
  }), !node.isLeaf ? _this.iconRender(node) : '']);
@@ -2398,6 +2408,7 @@ var Store = /*#__PURE__*/function () {
2398
2408
 
2399
2409
 
2400
2410
 
2411
+
2401
2412
  /**
2402
2413
  * Cascader 组件
2403
2414
  * 用于展示级联选择器,支持多选、单选、搜索、远程加载等功能。
@@ -2426,6 +2437,7 @@ var Store = /*#__PURE__*/function () {
2426
2437
  childrenKey: shared_.PropTypes.string.def('children'),
2427
2438
  separator: shared_.PropTypes.string.def('/'),
2428
2439
  limitOneLine: shared_.PropTypes.bool.def(false),
2440
+ popoverOptions: Object,
2429
2441
  extCls: shared_.PropTypes.string.def(''),
2430
2442
  filterMethod: shared_.PropTypes.func,
2431
2443
  scrollHeight: shared_.PropTypes.oneOfType([shared_.PropTypes.number, shared_.PropTypes.string]).def(216),
@@ -2787,24 +2799,27 @@ var Store = /*#__PURE__*/function () {
2787
2799
  _this.multiple ? null : (0,external_vue_.createVNode)("span", null, [_this.displayText])
2788
2800
  );
2789
2801
  };
2802
+ /** popover 基础配置 */
2803
+ var basePopoverOptions = (0,merge_namespaceObject["default"])({
2804
+ always: this.isAlways,
2805
+ arrow: false,
2806
+ boundary: 'body',
2807
+ disabled: this.disabled,
2808
+ hideIgnoreReference: true,
2809
+ offset: 4,
2810
+ placement: 'bottom-start',
2811
+ referenceCls: this.resolveClassName('cascader-popover-reference'),
2812
+ theme: "light ".concat(this.resolveClassName('cascader-popover')),
2813
+ trigger: 'click'
2814
+ }, this.popoverOptions);
2790
2815
  // 定义popoverRender函数,用于渲染弹出框
2791
2816
  var popoverRender = function popoverRender() {
2792
- return (0,external_vue_.createVNode)(popover_["default"], {
2817
+ return (0,external_vue_.createVNode)(popover_["default"], (0,external_vue_.mergeProps)({
2793
2818
  "ref": "popover",
2794
2819
  "class": _this.resolveClassName('cascader-popover-wrapper'),
2795
- "always": _this.isAlways,
2796
- "arrow": false,
2797
- "boundary": "body",
2798
- "disabled": _this.disabled,
2799
- "hideIgnoreReference": true,
2800
- "offset": 4,
2801
- "placement": "bottom-start",
2802
- "referenceCls": _this.resolveClassName('cascader-popover-reference'),
2803
- "theme": "light ".concat(_this.resolveClassName('cascader-popover')),
2804
- "trigger": "click",
2805
2820
  "onAfterHidden": _this.popoverChangeEmitter,
2806
2821
  "onAfterShow": _this.popoverChangeEmitter
2807
- }, {
2822
+ }, basePopoverOptions), {
2808
2823
  "default": function _default() {
2809
2824
  return _this.$slots.trigger ? _this.$slots.trigger({
2810
2825
  selected: _this.modelValue,
@@ -2846,6 +2861,9 @@ var Store = /*#__PURE__*/function () {
2846
2861
  return _this.$slots["default"] ? _this.$slots["default"](scope) : (0,external_vue_.createVNode)("span", {
2847
2862
  "class": _this.resolveClassName('cascader-node-name')
2848
2863
  }, [scope.node.name]);
2864
+ },
2865
+ panel: function panel(scope) {
2866
+ return _this.$slots.panel ? _this.$slots.panel(scope) : null;
2849
2867
  }
2850
2868
  }), (_this$$slots$extensio = (_this$$slots = _this.$slots).extension) === null || _this$$slots$extensio === void 0 ? void 0 : _this$$slots$extensio.call(_this$$slots)]);
2851
2869
  }
package/lib/index.js CHANGED
@@ -3,5 +3,5 @@ export * from './hooks';
3
3
  export { default } from './preset';
4
4
  export * from './config-provider';
5
5
  export * from './directives';
6
- export const version = "2.0.2-beta.51";
6
+ export const version = "2.0.2-beta.53";
7
7
  window.__bkui_vue_version__ = version;
@@ -388,6 +388,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
388
388
  top: props.top
389
389
  };
390
390
  });
391
+ (0,external_vue_namespaceObject.watch)(function () {
392
+ return [props.zIndex];
393
+ }, function () {
394
+ if (/\d+/.test("".concat(props.zIndex))) {
395
+ zIndex.value = props.zIndex;
396
+ }
397
+ });
391
398
  (0,external_vue_namespaceObject.watch)(function () {
392
399
  return props.isShow;
393
400
  }, function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.2-beta.51",
3
+ "version": "2.0.2-beta.53",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",