bkui-vue 2.0.2-beta.52 → 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.
@@ -1946,15 +1946,20 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
1946
1946
  };
1947
1947
  return (0,external_vue_.createVNode)("div", {
1948
1948
  "class": this.resolveClassName('cascader-panel-wrapper')
1949
- }, [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;
1950
1951
  return (0,external_vue_.createVNode)("ul", {
1951
1952
  "style": {
1952
1953
  height: _this.panelHeight,
1953
1954
  width: _this.panelWidth
1954
1955
  },
1955
1956
  "class": [_this.resolveClassName('cascader-panel'), _this.resolveClassName('scroll-y')]
1956
- }, [menu.length ? menu.map(function (node) {
1957
- 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;
1958
1963
  return (0,external_vue_.createVNode)("li", (0,external_vue_.mergeProps)({
1959
1964
  "class": [_this.resolveClassName('cascader-node'), {
1960
1965
  'is-selected': _this.isNodeInPath(node)
@@ -1974,7 +1979,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
1974
1979
  "onChange": function onChange(val) {
1975
1980
  return _this.checkNode(node, !!val);
1976
1981
  }
1977
- }, 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, {
1978
1983
  node: node,
1979
1984
  data: node.data
1980
1985
  }), !node.isLeaf ? _this.iconRender(node) : '']);
@@ -2856,6 +2861,9 @@ var Store = /*#__PURE__*/function () {
2856
2861
  return _this.$slots["default"] ? _this.$slots["default"](scope) : (0,external_vue_.createVNode)("span", {
2857
2862
  "class": _this.resolveClassName('cascader-node-name')
2858
2863
  }, [scope.node.name]);
2864
+ },
2865
+ panel: function panel(scope) {
2866
+ return _this.$slots.panel ? _this.$slots.panel(scope) : null;
2859
2867
  }
2860
2868
  }), (_this$$slots$extensio = (_this$$slots = _this.$slots).extension) === null || _this$$slots$extensio === void 0 ? void 0 : _this$$slots$extensio.call(_this$$slots)]);
2861
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.52";
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.52",
3
+ "version": "2.0.2-beta.53",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",