@opentinyvue/vue-cascader-node 2.24.0 → 2.26.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.
@@ -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"],
@@ -110,8 +125,8 @@ function __vue2_injectStyles(context) {
110
125
  this[o] = __cssModules[o];
111
126
  }
112
127
  }
113
- var mobileFirst = /* @__PURE__ */ function() {
128
+ var mobileFirst = /* @__PURE__ */ (function() {
114
129
  return __component__.exports;
115
- }();
130
+ })();
116
131
 
117
132
  export { mobileFirst as default };
package/lib/pc.js CHANGED
@@ -4,6 +4,7 @@ import Checkbox from '@opentinyvue/vue-checkbox';
4
4
  import Radio from '@opentinyvue/vue-radio';
5
5
  import { isEqual } from '@opentinyvue/utils';
6
6
  import { iconYes, iconLoadingShadow, iconChevronRight } from '@opentinyvue/vue-icon';
7
+ import { AutoTip } from '@opentinyvue/vue-directive';
7
8
  import '@opentinyvue/vue-theme/cascader-node/index.css';
8
9
 
9
10
  function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
@@ -47,6 +48,9 @@ function _extends() {
47
48
  }
48
49
  var __vue2_script = defineComponent({
49
50
  name: $prefix + "CascaderNode",
51
+ directives: {
52
+ AutoTip
53
+ },
50
54
  components: {
51
55
  TinyCheckbox: Checkbox,
52
56
  TinyRadio: Radio,
@@ -158,7 +162,11 @@ var __vue2_script = defineComponent({
158
162
  data: node.data
159
163
  }) : null;
160
164
  return h("span", {
161
- "class": "tiny-cascader-node__label"
165
+ "class": "tiny-cascader-node__label",
166
+ "directives": [{
167
+ name: "auto-tip",
168
+ value: true
169
+ }]
162
170
  }, [vnode || node.label]);
163
171
  };
164
172
  var state = this.state;
@@ -205,8 +213,8 @@ function __vue2_injectStyles(context) {
205
213
  this[o] = __cssModules[o];
206
214
  }
207
215
  }
208
- var pc = /* @__PURE__ */ function() {
216
+ var pc = /* @__PURE__ */ (function() {
209
217
  return __component__.exports;
210
- }();
218
+ })();
211
219
 
212
220
  export { pc as default };
package/package.json CHANGED
@@ -1,20 +1,21 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-cascader-node",
3
3
  "type": "module",
4
- "version": "2.24.0",
4
+ "version": "2.26.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.24.0",
12
- "@opentinyvue/vue-checkbox": "~2.24.0",
13
- "@opentinyvue/vue-common": "~2.24.0",
14
- "@opentinyvue/vue-icon": "~2.24.0",
15
- "@opentinyvue/vue-radio": "~2.24.0",
16
- "@opentinyvue/vue-renderless": "~3.24.0",
17
- "@opentinyvue/vue-theme": "~3.24.0"
11
+ "@opentinyvue/vue-directive": "~2.26.0",
12
+ "@opentinyvue/utils": "~3.26.0",
13
+ "@opentinyvue/vue-checkbox": "~2.26.0",
14
+ "@opentinyvue/vue-common": "~2.26.0",
15
+ "@opentinyvue/vue-icon": "~2.26.0",
16
+ "@opentinyvue/vue-radio": "~2.26.0",
17
+ "@opentinyvue/vue-renderless": "~3.26.0",
18
+ "@opentinyvue/vue-theme": "~3.26.0"
18
19
  },
19
20
  "types": "index.d.ts",
20
21
  "scripts": {