@opentinyvue/vue-cascader-node 2.22.0 → 3.22.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 +1 -1
- package/lib/mobile-first.js +65 -59
- package/lib/pc.js +40 -87
- package/package.json +6 -6
- package/src/index.d.ts +27 -1
- package/src/mobile-first.vue.d.ts +40 -1
- package/src/pc.vue.d.ts +35 -1
package/lib/index.js
CHANGED
package/lib/mobile-first.js
CHANGED
|
@@ -1,36 +1,40 @@
|
|
|
1
1
|
import { renderless, api } from '@opentinyvue/vue-renderless/cascader-node/vue';
|
|
2
2
|
import { defineComponent, $prefix, setup, $props } from '@opentinyvue/vue-common';
|
|
3
3
|
import { IconLoading, IconChevronRight } from '@opentinyvue/vue-icon';
|
|
4
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createBlock, withCtx, createTextVNode, createCommentVNode } from 'vue';
|
|
4
5
|
|
|
5
|
-
function
|
|
6
|
-
var
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
7
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
8
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
9
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
10
|
+
t && (r = t);
|
|
11
|
+
var o = 0;
|
|
12
|
+
return function() {
|
|
13
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
14
|
+
};
|
|
11
15
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var originalRender = options.render;
|
|
20
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
21
|
-
hook.call(context);
|
|
22
|
-
return originalRender(h, context);
|
|
23
|
-
};
|
|
24
|
-
} else {
|
|
25
|
-
var existing = options.beforeCreate;
|
|
26
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
27
|
-
}
|
|
16
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17
|
+
}
|
|
18
|
+
function _unsupportedIterableToArray(r, a) {
|
|
19
|
+
if (r) {
|
|
20
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
21
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
22
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
28
23
|
}
|
|
29
|
-
return {
|
|
30
|
-
exports: scriptExports,
|
|
31
|
-
options
|
|
32
|
-
};
|
|
33
24
|
}
|
|
25
|
+
function _arrayLikeToArray(r, a) {
|
|
26
|
+
(null == a || a > r.length) && (a = r.length);
|
|
27
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
28
|
+
return n;
|
|
29
|
+
}
|
|
30
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
31
|
+
var target = sfc.__vccOpts || sfc;
|
|
32
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
33
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
34
|
+
target[key] = val;
|
|
35
|
+
}
|
|
36
|
+
return target;
|
|
37
|
+
};
|
|
34
38
|
|
|
35
39
|
function _extends() {
|
|
36
40
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
@@ -55,30 +59,7 @@ var classes = {
|
|
|
55
59
|
"cascader-node_disabled": "cursor-not-allowed text-color-text-disabled rounded hover:bg-color-bg-1",
|
|
56
60
|
"in-active_disabled": "text-color-text-disabled"
|
|
57
61
|
};
|
|
58
|
-
var
|
|
59
|
-
var _vm = this;
|
|
60
|
-
var _h = _vm.$createElement;
|
|
61
|
-
var _c = _vm._self._c || _h;
|
|
62
|
-
return _c("div", {
|
|
63
|
-
class: _vm.m(_vm.gcls("cascader-node"), _vm.gcls(!_vm.state.isDisabled && _vm.state.config.checkStrictly ? "is-selectable" : ""), _vm.gcls(!_vm.state.isDisabled && _vm.state.inActivePath ? "in-active-path" : ""), _vm.gcls(!_vm.state.isDisabled && _vm.state.inCheckedPath ? "in-checked-path" : ""), _vm.gcls(!_vm.state.isDisabled && _vm.state.isChecked ? "in-active" : ""), _vm.gcls(_vm.state.isDisabled ? "cascader-node_disabled" : ""), _vm.gcls(_vm.state.isDisabled ? "in-active_disabled" : "")),
|
|
64
|
-
attrs: {
|
|
65
|
-
"id": _vm.nodeId,
|
|
66
|
-
"role": "menuitem",
|
|
67
|
-
"data-tag": "tiny-cascader-node"
|
|
68
|
-
},
|
|
69
|
-
on: {
|
|
70
|
-
"click": _vm.handleNodeClick
|
|
71
|
-
}
|
|
72
|
-
}, [_c("span", {
|
|
73
|
-
class: [_vm.node ? _vm.gcls("cascader-node__label_disabled") : ""]
|
|
74
|
-
}, [_vm._v(_vm._s(_vm.state.nodeLabel))]), _vm.node.loading ? _c("icon-loading", {
|
|
75
|
-
class: _vm.gcls("cascader-node__postfix")
|
|
76
|
-
}) : !_vm.state.isLeaf ? _c("icon-chevron-right", {
|
|
77
|
-
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" : ""))
|
|
78
|
-
}, [_vm._v(">")]) : _vm._e()], 1);
|
|
79
|
-
};
|
|
80
|
-
var staticRenderFns = [];
|
|
81
|
-
var __vue2_script = defineComponent({
|
|
62
|
+
var _sfc_main = defineComponent({
|
|
82
63
|
name: $prefix + "CascaderNode",
|
|
83
64
|
components: {
|
|
84
65
|
IconLoading: IconLoading(),
|
|
@@ -103,15 +84,40 @@ var __vue2_script = defineComponent({
|
|
|
103
84
|
});
|
|
104
85
|
}
|
|
105
86
|
});
|
|
106
|
-
var
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
87
|
+
var _hoisted_1 = ["id"];
|
|
88
|
+
function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
|
|
89
|
+
var _component_icon_loading = resolveComponent("icon-loading");
|
|
90
|
+
var _component_icon_chevron_right = resolveComponent("icon-chevron-right");
|
|
91
|
+
return openBlock(), createElementBlock("div", {
|
|
92
|
+
id: _ctx.nodeId,
|
|
93
|
+
role: "menuitem",
|
|
94
|
+
"data-tag": "tiny-cascader-node",
|
|
95
|
+
onClick: _cache[0] || (_cache[0] = function() {
|
|
96
|
+
return _ctx.handleNodeClick && _ctx.handleNodeClick.apply(_ctx, arguments);
|
|
97
|
+
}),
|
|
98
|
+
class: normalizeClass(_ctx.m(_ctx.gcls("cascader-node"), _ctx.gcls(!_ctx.state.isDisabled && _ctx.state.config.checkStrictly ? "is-selectable" : ""), _ctx.gcls(!_ctx.state.isDisabled && _ctx.state.inActivePath ? "in-active-path" : ""), _ctx.gcls(!_ctx.state.isDisabled && _ctx.state.inCheckedPath ? "in-checked-path" : ""), _ctx.gcls(!_ctx.state.isDisabled && _ctx.state.isChecked ? "in-active" : ""), _ctx.gcls(_ctx.state.isDisabled ? "cascader-node_disabled" : ""), _ctx.gcls(_ctx.state.isDisabled ? "in-active_disabled" : "")))
|
|
99
|
+
}, [createElementVNode(
|
|
100
|
+
"span",
|
|
101
|
+
{
|
|
102
|
+
class: normalizeClass([_ctx.node ? _ctx.gcls("cascader-node__label_disabled") : ""])
|
|
103
|
+
},
|
|
104
|
+
toDisplayString(_ctx.state.nodeLabel),
|
|
105
|
+
3
|
|
106
|
+
/* TEXT, CLASS */
|
|
107
|
+
), _ctx.node.loading ? (openBlock(), createBlock(_component_icon_loading, {
|
|
108
|
+
key: 0,
|
|
109
|
+
class: normalizeClass(_ctx.gcls("cascader-node__postfix"))
|
|
110
|
+
}, null, 8, ["class"])) : !_ctx.state.isLeaf ? (openBlock(), createBlock(_component_icon_chevron_right, {
|
|
111
|
+
key: 1,
|
|
112
|
+
class: normalizeClass(_ctx.m(_ctx.gcls("cascader-node__postfix"), _ctx.gcls(!_ctx.state.isDisabled && _ctx.state.inActivePath ? "node-active" : ""), _ctx.gcls(!_ctx.state.isDisabled && _ctx.state.inCheckedPath ? "node-active" : ""), _ctx.gcls(!_ctx.state.isDisabled && _ctx.state.isChecked ? "node-active" : "")))
|
|
113
|
+
}, {
|
|
114
|
+
default: withCtx(function() {
|
|
115
|
+
return [createTextVNode(">")];
|
|
116
|
+
}),
|
|
117
|
+
_: 1
|
|
118
|
+
/* STABLE */
|
|
119
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true)], 10, _hoisted_1);
|
|
112
120
|
}
|
|
113
|
-
var mobileFirst = /* @__PURE__ */
|
|
114
|
-
return __component__.exports;
|
|
115
|
-
}();
|
|
121
|
+
var mobileFirst = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
116
122
|
|
|
117
123
|
export { mobileFirst as default };
|
package/lib/pc.js
CHANGED
|
@@ -1,41 +1,3 @@
|
|
|
1
|
-
import { renderless, api } from '@opentinyvue/vue-renderless/cascader-node/vue';
|
|
2
|
-
import { defineComponent, $prefix, setup, $props } from '@opentinyvue/vue-common';
|
|
3
|
-
import Checkbox from '@opentinyvue/vue-checkbox';
|
|
4
|
-
import Radio from '@opentinyvue/vue-radio';
|
|
5
|
-
import { isEqual } from '@opentinyvue/utils';
|
|
6
|
-
import { iconYes, iconLoadingShadow, iconChevronRight } from '@opentinyvue/vue-icon';
|
|
7
|
-
import '@opentinyvue/vue-theme/cascader-node/index.css';
|
|
8
|
-
|
|
9
|
-
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
10
|
-
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
11
|
-
if (render) {
|
|
12
|
-
options.render = render;
|
|
13
|
-
options.staticRenderFns = staticRenderFns;
|
|
14
|
-
options._compiled = true;
|
|
15
|
-
}
|
|
16
|
-
var hook;
|
|
17
|
-
if (injectStyles) {
|
|
18
|
-
hook = injectStyles;
|
|
19
|
-
}
|
|
20
|
-
if (hook) {
|
|
21
|
-
if (options.functional) {
|
|
22
|
-
options._injectStyles = hook;
|
|
23
|
-
var originalRender = options.render;
|
|
24
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
25
|
-
hook.call(context);
|
|
26
|
-
return originalRender(h, context);
|
|
27
|
-
};
|
|
28
|
-
} else {
|
|
29
|
-
var existing = options.beforeCreate;
|
|
30
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return {
|
|
34
|
-
exports: scriptExports,
|
|
35
|
-
options
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
1
|
function _extends() {
|
|
40
2
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
41
3
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -45,7 +7,15 @@ function _extends() {
|
|
|
45
7
|
return n;
|
|
46
8
|
}, _extends.apply(null, arguments);
|
|
47
9
|
}
|
|
48
|
-
|
|
10
|
+
import { createVNode, resolveComponent } from "vue";
|
|
11
|
+
import { api, renderless } from "@opentinyvue/vue-renderless/cascader-node/vue";
|
|
12
|
+
import { defineComponent, $props, h, setup as _setup, $prefix } from "@opentinyvue/vue-common";
|
|
13
|
+
import Checkbox from "@opentinyvue/vue-checkbox";
|
|
14
|
+
import Radio from "@opentinyvue/vue-radio";
|
|
15
|
+
import { isEqual } from "@opentinyvue/utils";
|
|
16
|
+
import { iconChevronRight, iconLoadingShadow, iconYes } from "@opentinyvue/vue-icon";
|
|
17
|
+
import "@opentinyvue/vue-theme/cascader-node/index.css";
|
|
18
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
49
19
|
name: $prefix + "CascaderNode",
|
|
50
20
|
components: {
|
|
51
21
|
TinyCheckbox: Checkbox,
|
|
@@ -64,8 +34,8 @@ var __vue2_script = defineComponent({
|
|
|
64
34
|
},
|
|
65
35
|
nodeId: String
|
|
66
36
|
}),
|
|
67
|
-
setup: function setup
|
|
68
|
-
return
|
|
37
|
+
setup: function setup(props, context) {
|
|
38
|
+
return _setup({
|
|
69
39
|
props,
|
|
70
40
|
context,
|
|
71
41
|
renderless,
|
|
@@ -74,7 +44,6 @@ var __vue2_script = defineComponent({
|
|
|
74
44
|
},
|
|
75
45
|
render: function render() {
|
|
76
46
|
var _this = this;
|
|
77
|
-
var h = arguments[0];
|
|
78
47
|
var renderPrefix = function renderPrefix2() {
|
|
79
48
|
var _this$state = _this.state, isLeaf = _this$state.isLeaf, isChecked = _this$state.isChecked, config = _this$state.config;
|
|
80
49
|
var checkStrictly2 = config.checkStrictly, multiple2 = config.multiple;
|
|
@@ -101,54 +70,48 @@ var __vue2_script = defineComponent({
|
|
|
101
70
|
};
|
|
102
71
|
var renderCheckbox = function renderCheckbox2() {
|
|
103
72
|
var state2 = _this.state, node = _this.node;
|
|
104
|
-
return
|
|
105
|
-
"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"change": _this.handleMultiCheckChange,
|
|
112
|
-
"click": stopPropagation
|
|
113
|
-
}
|
|
114
|
-
});
|
|
73
|
+
return createVNode(resolveComponent("tiny-checkbox"), {
|
|
74
|
+
"modelValue": node.checked,
|
|
75
|
+
"indeterminate": !node.checked && node.indeterminate,
|
|
76
|
+
"disabled": state2.isDisabled,
|
|
77
|
+
"onChange": _this.handleMultiCheckChange,
|
|
78
|
+
"onClick": stopPropagation
|
|
79
|
+
}, null);
|
|
115
80
|
};
|
|
116
81
|
var renderRadio = function renderRadio2() {
|
|
117
82
|
var _this$state2 = _this.state, checkedValue = _this$state2.checkedValue, value = _this$state2.value, isDisabled = _this$state2.isDisabled;
|
|
118
83
|
if (isEqual(value, checkedValue)) {
|
|
119
84
|
value = checkedValue;
|
|
120
85
|
}
|
|
121
|
-
return
|
|
122
|
-
"
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
},
|
|
126
|
-
"on": {
|
|
127
|
-
"click": stopPropagation,
|
|
128
|
-
"change": _this.handleCheckChange
|
|
86
|
+
return createVNode(resolveComponent("tiny-radio"), {
|
|
87
|
+
"modelValue": checkedValue,
|
|
88
|
+
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
|
89
|
+
return checkedValue = $event;
|
|
129
90
|
},
|
|
130
|
-
"
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
91
|
+
"disabled": isDisabled,
|
|
92
|
+
"label": value,
|
|
93
|
+
"onClick": stopPropagation,
|
|
94
|
+
"onChange": _this.handleCheckChange
|
|
95
|
+
}, {
|
|
96
|
+
default: function _default() {
|
|
97
|
+
return [createVNode("span", null, null)];
|
|
135
98
|
}
|
|
136
|
-
}
|
|
99
|
+
});
|
|
137
100
|
};
|
|
138
101
|
var renderCheckIcon = function renderCheckIcon2() {
|
|
139
|
-
return
|
|
102
|
+
return createVNode(resolveComponent("icon-yes"), {
|
|
140
103
|
"class": "tiny-cascader-node__prefix"
|
|
141
|
-
});
|
|
104
|
+
}, null);
|
|
142
105
|
};
|
|
143
106
|
var renderLoadingIcon = function renderLoadingIcon2() {
|
|
144
|
-
return
|
|
107
|
+
return createVNode(resolveComponent("icon-loading"), {
|
|
145
108
|
"class": "tiny-cascader-node__postfix"
|
|
146
|
-
});
|
|
109
|
+
}, null);
|
|
147
110
|
};
|
|
148
111
|
var renderExpandIcon = function renderExpandIcon2() {
|
|
149
|
-
return
|
|
112
|
+
return createVNode(resolveComponent("icon-chevron-right"), {
|
|
150
113
|
"class": "tiny-cascader-node__postfix"
|
|
151
|
-
});
|
|
114
|
+
}, null);
|
|
152
115
|
};
|
|
153
116
|
var renderContent = function renderContent2() {
|
|
154
117
|
var panel = _this.panel, node = _this.node;
|
|
@@ -157,7 +120,7 @@ var __vue2_script = defineComponent({
|
|
|
157
120
|
node,
|
|
158
121
|
data: node.data
|
|
159
122
|
}) : null;
|
|
160
|
-
return
|
|
123
|
+
return createVNode("span", {
|
|
161
124
|
"class": "tiny-cascader-node__label"
|
|
162
125
|
}, [vnode || node.label]);
|
|
163
126
|
};
|
|
@@ -197,16 +160,6 @@ var __vue2_script = defineComponent({
|
|
|
197
160
|
}, events), [renderPrefix(), renderContent(), renderPostfix()]);
|
|
198
161
|
}
|
|
199
162
|
});
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
function __vue2_injectStyles(context) {
|
|
204
|
-
for (var o in __cssModules) {
|
|
205
|
-
this[o] = __cssModules[o];
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
var pc = /* @__PURE__ */ function() {
|
|
209
|
-
return __component__.exports;
|
|
210
|
-
}();
|
|
211
|
-
|
|
212
|
-
export { pc as default };
|
|
163
|
+
export {
|
|
164
|
+
_sfc_main as default
|
|
165
|
+
};
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-cascader-node",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.22.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": "~
|
|
12
|
-
"@opentinyvue/vue-checkbox": "~
|
|
13
|
-
"@opentinyvue/vue-common": "~
|
|
14
|
-
"@opentinyvue/vue-icon": "~
|
|
15
|
-
"@opentinyvue/vue-radio": "~
|
|
11
|
+
"@opentinyvue/utils": "~3.22.0",
|
|
12
|
+
"@opentinyvue/vue-checkbox": "~3.22.0",
|
|
13
|
+
"@opentinyvue/vue-common": "~3.22.0",
|
|
14
|
+
"@opentinyvue/vue-icon": "~3.22.0",
|
|
15
|
+
"@opentinyvue/vue-radio": "~3.22.0",
|
|
16
16
|
"@opentinyvue/vue-renderless": "~3.22.0",
|
|
17
17
|
"@opentinyvue/vue-theme": "~3.22.0"
|
|
18
18
|
},
|
package/src/index.d.ts
CHANGED
|
@@ -1,2 +1,28 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
2
|
+
node: {
|
|
3
|
+
required: true;
|
|
4
|
+
};
|
|
5
|
+
nodeId: StringConstructor;
|
|
6
|
+
tiny_mode: StringConstructor;
|
|
7
|
+
tiny_mode_root: BooleanConstructor;
|
|
8
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
9
|
+
tiny_renderless: FunctionConstructor;
|
|
10
|
+
tiny_theme: StringConstructor;
|
|
11
|
+
tiny_chart_theme: ObjectConstructor;
|
|
12
|
+
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
15
|
+
node: {
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
nodeId: StringConstructor;
|
|
19
|
+
tiny_mode: StringConstructor;
|
|
20
|
+
tiny_mode_root: BooleanConstructor;
|
|
21
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
22
|
+
tiny_renderless: FunctionConstructor;
|
|
23
|
+
tiny_theme: StringConstructor;
|
|
24
|
+
tiny_chart_theme: ObjectConstructor;
|
|
25
|
+
}>>, {
|
|
26
|
+
tiny_mode_root: boolean;
|
|
27
|
+
}, {}>;
|
|
2
28
|
export default _default;
|
|
@@ -1,2 +1,41 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
2
|
+
node: {
|
|
3
|
+
required: true;
|
|
4
|
+
};
|
|
5
|
+
nodeId: StringConstructor;
|
|
6
|
+
tiny_mode: StringConstructor;
|
|
7
|
+
tiny_mode_root: BooleanConstructor;
|
|
8
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
9
|
+
tiny_renderless: FunctionConstructor;
|
|
10
|
+
tiny_theme: StringConstructor;
|
|
11
|
+
tiny_chart_theme: ObjectConstructor;
|
|
12
|
+
}, {
|
|
13
|
+
t: (this: any, path: any, options?: any) => any;
|
|
14
|
+
vm: any;
|
|
15
|
+
f: (props: any, attrs?: {}) => {};
|
|
16
|
+
a: (attrs: any, filters: any, include: any) => {};
|
|
17
|
+
d: (props: any) => void;
|
|
18
|
+
dp: (props: any) => void;
|
|
19
|
+
gcls: (key: any) => any;
|
|
20
|
+
m: (...cssClasses: any[]) => string;
|
|
21
|
+
}, any, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "update:modelValue" | "expand" | "expand-change" | "active-item-change")[], "change" | "update:modelValue" | "expand" | "expand-change" | "active-item-change", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
22
|
+
node: {
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
nodeId: StringConstructor;
|
|
26
|
+
tiny_mode: StringConstructor;
|
|
27
|
+
tiny_mode_root: BooleanConstructor;
|
|
28
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
29
|
+
tiny_renderless: FunctionConstructor;
|
|
30
|
+
tiny_theme: StringConstructor;
|
|
31
|
+
tiny_chart_theme: ObjectConstructor;
|
|
32
|
+
}>> & {
|
|
33
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
onExpand?: ((...args: any[]) => any) | undefined;
|
|
36
|
+
"onExpand-change"?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
"onActive-item-change"?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
tiny_mode_root: boolean;
|
|
40
|
+
}, {}>;
|
|
2
41
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -1,2 +1,36 @@
|
|
|
1
|
-
|
|
1
|
+
import type { PropType } from '@opentinyvue/vue-common';
|
|
2
|
+
import type { ICascaderNodeApi, ICascaderNodeRenderlessParams } from '@opentinyvue/vue-renderless/types/cascader-node.type';
|
|
3
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
4
|
+
node: {
|
|
5
|
+
type: PropType<import("../../../../renderless/src/cascader-panel/node").default>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
nodeId: StringConstructor;
|
|
9
|
+
tiny_mode: StringConstructor;
|
|
10
|
+
tiny_mode_root: BooleanConstructor;
|
|
11
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
12
|
+
tiny_renderless: FunctionConstructor;
|
|
13
|
+
tiny_theme: StringConstructor;
|
|
14
|
+
tiny_chart_theme: ObjectConstructor;
|
|
15
|
+
}, ICascaderNodeApi & Pick<ICascaderNodeRenderlessParams, "panel">, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "update:modelValue" | "expand" | "expand-change" | "active-item-change")[], "change" | "update:modelValue" | "expand" | "expand-change" | "active-item-change", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
16
|
+
node: {
|
|
17
|
+
type: PropType<import("../../../../renderless/src/cascader-panel/node").default>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
nodeId: StringConstructor;
|
|
21
|
+
tiny_mode: StringConstructor;
|
|
22
|
+
tiny_mode_root: BooleanConstructor;
|
|
23
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
24
|
+
tiny_renderless: FunctionConstructor;
|
|
25
|
+
tiny_theme: StringConstructor;
|
|
26
|
+
tiny_chart_theme: ObjectConstructor;
|
|
27
|
+
}>> & {
|
|
28
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
onExpand?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
"onExpand-change"?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
"onActive-item-change"?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
tiny_mode_root: boolean;
|
|
35
|
+
}, {}>;
|
|
2
36
|
export default _default;
|