@opentinyvue/vue-cascader-node 2.23.0 → 2.25.0

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/index.js CHANGED
@@ -38,7 +38,7 @@ var CascaderNode = defineComponent({
38
38
  });
39
39
  }
40
40
  });
41
- var version = "2.23.0";
41
+ var version = "2.undefined";
42
42
  CascaderNode.install = function(Vue) {
43
43
  Vue.component(CascaderNode.name, CascaderNode);
44
44
  };
@@ -69,9 +69,15 @@ var render = function render2() {
69
69
  on: {
70
70
  "click": _vm.handleNodeClick
71
71
  }
72
- }, [_c("span", {
72
+ }, [typeof _vm.state.nodeLabel === "string" ? _c("span", {
73
73
  class: [_vm.node ? _vm.gcls("cascader-node__label_disabled") : ""]
74
- }, [_vm._v(_vm._s(_vm.state.nodeLabel))]), _vm.node.loading ? _c("icon-loading", {
74
+ }, [_vm._v(" " + _vm._s(_vm.state.nodeLabel) + " ")]) : _c("span", {
75
+ class: [_vm.node ? _vm.gcls("cascader-node__label_disabled") : ""]
76
+ }, [_c("render-node-label", {
77
+ attrs: {
78
+ "vnode": _vm.state.nodeLabel
79
+ }
80
+ })], 1), _vm.node.loading ? _c("icon-loading", {
75
81
  class: _vm.gcls("cascader-node__postfix")
76
82
  }) : !_vm.state.isLeaf ? _c("icon-chevron-right", {
77
83
  class: _vm.m(_vm.gcls("cascader-node__postfix"), _vm.gcls(!_vm.state.isDisabled && _vm.state.inActivePath ? "node-active" : ""), _vm.gcls(!_vm.state.isDisabled && _vm.state.inCheckedPath ? "node-active" : ""), _vm.gcls(!_vm.state.isDisabled && _vm.state.isChecked ? "node-active" : ""))
@@ -82,7 +88,16 @@ var __vue2_script = defineComponent({
82
88
  name: $prefix + "CascaderNode",
83
89
  components: {
84
90
  IconLoading: IconLoading(),
85
- IconChevronRight: IconChevronRight()
91
+ IconChevronRight: IconChevronRight(),
92
+ RenderNodeLabel: {
93
+ name: "AnyNode",
94
+ functional: true,
95
+ props: ["vnode"],
96
+ render: function render3(h, ctx) {
97
+ var _ctx$props;
98
+ return h.vnode || ((_ctx$props = ctx.props) == null ? void 0 : _ctx$props.vnode);
99
+ }
100
+ }
86
101
  },
87
102
  inheritAttrs: false,
88
103
  emits: ["expand", "update:modelValue", "expand-change", "active-item-change", "change"],
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-cascader-node",
3
3
  "type": "module",
4
- "version": "2.23.0",
4
+ "version": "2.25.0",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,
8
8
  "main": "./lib/index.js",
9
9
  "module": "./lib/index.js",
10
10
  "dependencies": {
11
- "@opentinyvue/utils": "~3.23.0",
12
- "@opentinyvue/vue-checkbox": "~2.23.0",
13
- "@opentinyvue/vue-common": "~2.23.0",
14
- "@opentinyvue/vue-icon": "~2.23.0",
15
- "@opentinyvue/vue-radio": "~2.23.0",
16
- "@opentinyvue/vue-renderless": "~3.23.0",
17
- "@opentinyvue/vue-theme": "~3.23.0"
11
+ "@opentinyvue/utils": "~3.25.0",
12
+ "@opentinyvue/vue-checkbox": "~2.25.0",
13
+ "@opentinyvue/vue-common": "~2.25.0",
14
+ "@opentinyvue/vue-icon": "~2.25.0",
15
+ "@opentinyvue/vue-radio": "~2.25.0",
16
+ "@opentinyvue/vue-renderless": "~3.25.0",
17
+ "@opentinyvue/vue-theme": "~3.25.0"
18
18
  },
19
19
  "types": "index.d.ts",
20
20
  "scripts": {