@nutui/nutui 4.0.11 → 4.0.12
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/dist/nutui.es.js +1 -1
- package/dist/nutui.js +2 -2
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/_es/ActionSheet.js +111 -78
- package/dist/packages/_es/Address.js +375 -250
- package/dist/packages/_es/AddressList.js +354 -269
- package/dist/packages/_es/Animate.js +58 -41
- package/dist/packages/_es/Audio.js +197 -128
- package/dist/packages/_es/AudioOperate.js +71 -60
- package/dist/packages/_es/Avatar.js +89 -66
- package/dist/packages/_es/AvatarGroup.js +31 -23
- package/dist/packages/_es/Backtop.js +99 -59
- package/dist/packages/_es/Badge.js +47 -36
- package/dist/packages/_es/Barrage.js +147 -68
- package/dist/packages/_es/Button.js +66 -47
- package/dist/packages/_es/Calendar.js +157 -135
- package/dist/packages/_es/CalendarItem.js +6 -6
- package/dist/packages/_es/Card.js +56 -42
- package/dist/packages/_es/Cascader.js +474 -315
- package/dist/packages/_es/Category.js +39 -29
- package/dist/packages/_es/CategoryPane.js +83 -57
- package/dist/packages/_es/Cell.js +71 -56
- package/dist/packages/_es/CellGroup.js +27 -19
- package/dist/packages/_es/Checkbox.js +156 -109
- package/dist/packages/_es/CheckboxGroup.js +59 -38
- package/dist/packages/_es/CircleProgress.js +96 -67
- package/dist/packages/_es/Col.js +31 -23
- package/dist/packages/_es/Collapse.js +58 -33
- package/dist/packages/_es/CollapseItem.js +108 -78
- package/dist/packages/_es/Comment.js +279 -207
- package/dist/packages/_es/ConfigProvider.js +55 -37
- package/dist/packages/_es/Countdown.js +212 -100
- package/dist/packages/_es/Countup.js +445 -232
- package/dist/packages/_es/DatePicker.js +265 -162
- package/dist/packages/_es/Dialog.js +213 -161
- package/dist/packages/_es/Divider.js +57 -42
- package/dist/packages/_es/Drag.js +153 -70
- package/dist/packages/_es/Ecard.js +104 -64
- package/dist/packages/_es/Elevator.js +219 -143
- package/dist/packages/_es/Ellipsis.js +178 -95
- package/dist/packages/_es/Empty.js +39 -23
- package/dist/packages/_es/FixedNav.js +116 -93
- package/dist/packages/_es/Form.js +178 -107
- package/dist/packages/_es/FormItem.js +61 -48
- package/dist/packages/_es/Grid.js +6 -5
- package/dist/packages/_es/GridItem.js +84 -58
- package/dist/packages/_es/Image.js +130 -90
- package/dist/packages/_es/ImagePreview.js +412 -256
- package/dist/packages/_es/Indicator.js +34 -30
- package/dist/packages/_es/InfiniteLoading.js +136 -83
- package/dist/packages/_es/Input.js +264 -160
- package/dist/packages/_es/InputNumber.js +117 -81
- package/dist/packages/_es/Interceptor-956b24fc.js +29 -0
- package/dist/packages/_es/Invoice.js +130 -104
- package/dist/packages/_es/Layout.js +4 -3
- package/dist/packages/_es/List.js +215 -117
- package/dist/packages/_es/Menu.js +150 -95
- package/dist/packages/_es/MenuItem.js +154 -109
- package/dist/packages/_es/Navbar.js +119 -103
- package/dist/packages/_es/Noticebar.js +312 -197
- package/dist/packages/_es/Notify.js +166 -110
- package/dist/packages/_es/NumberKeyboard.js +202 -127
- package/dist/packages/_es/Overlay.js +80 -52
- package/dist/packages/_es/Pagination.js +100 -70
- package/dist/packages/_es/Picker.js +437 -275
- package/dist/packages/_es/Popover.js +225 -122
- package/dist/packages/_es/Popup.js +4 -4
- package/dist/packages/_es/Price.js +82 -44
- package/dist/packages/_es/Progress.js +79 -63
- package/dist/packages/_es/PullRefresh.js +173 -95
- package/dist/packages/_es/Radio.js +4 -4
- package/dist/packages/_es/RadioGroup.js +3 -3
- package/dist/packages/_es/Range.js +347 -204
- package/dist/packages/_es/Rate.js +141 -92
- package/dist/packages/_es/Row.js +27 -21
- package/dist/packages/_es/Searchbar.js +174 -123
- package/dist/packages/_es/ShortPassword.js +93 -69
- package/dist/packages/_es/SideNavbar.js +80 -49
- package/dist/packages/_es/SideNavbarItem.js +32 -22
- package/dist/packages/_es/Signature.js +146 -83
- package/dist/packages/_es/Skeleton.js +130 -110
- package/dist/packages/_es/Sku.js +343 -250
- package/dist/packages/_es/Step.js +86 -59
- package/dist/packages/_es/Steps.js +31 -26
- package/dist/packages/_es/Sticky.js +4 -4
- package/dist/packages/_es/SubSideNavbar.js +74 -52
- package/dist/packages/_es/Swipe.js +155 -83
- package/dist/packages/_es/Swiper.js +311 -174
- package/dist/packages/_es/SwiperItem.js +44 -28
- package/dist/packages/_es/Switch.js +68 -55
- package/dist/packages/_es/TabPane.js +41 -30
- package/dist/packages/_es/Tabbar.js +52 -41
- package/dist/packages/_es/TabbarItem.js +82 -61
- package/dist/packages/_es/Table.js +165 -109
- package/dist/packages/_es/Tabs.js +388 -240
- package/dist/packages/_es/Tag.js +61 -44
- package/dist/packages/_es/Textarea.js +124 -80
- package/dist/packages/_es/TimeDetail.js +76 -49
- package/dist/packages/_es/TimePannel.js +48 -34
- package/dist/packages/_es/TimeSelect.js +68 -47
- package/dist/packages/_es/Toast.js +218 -144
- package/dist/packages/_es/Tour.js +192 -138
- package/dist/packages/_es/TrendArrow.js +77 -57
- package/dist/packages/_es/Uploader.js +359 -234
- package/dist/packages/_es/Video.js +316 -191
- package/dist/packages/_es/Watermark.js +117 -84
- package/dist/packages/_es/_plugin-vue_export-helper-cc2b3d55.js +10 -0
- package/dist/packages/_es/common-b9a5e726.js +145 -0
- package/dist/packages/_es/component-81a4c1d0.js +145 -0
- package/dist/packages/_es/index-29892cda.js +33 -0
- package/dist/packages/_es/index-43c34ac6.js +30 -0
- package/dist/packages/_es/index-54d03fc1.js +8 -0
- package/dist/packages/_es/index-79c5dc33.js +10 -0
- package/dist/packages/_es/index-7a7385e4.js +67 -0
- package/dist/packages/_es/index-87422be8.js +942 -0
- package/dist/packages/_es/index-da0a7662.js +259 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-22dfc112.js +46 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-a8856969.js +97 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-cc5c4086.js +151 -0
- package/dist/packages/_es/mountComponent-8b24c346.js +39 -0
- package/dist/packages/_es/pxCheck-c6b9f6b7.js +6 -0
- package/dist/packages/_es/raf-729dad54.js +25 -0
- package/dist/packages/_es/renderIcon-3d0fd47c.js +9 -0
- package/dist/packages/locale/lang/baseLang-3a8457ac.js +5 -0
- package/dist/packages/locale/lang/en-US.js +39 -36
- package/dist/packages/locale/lang/id-ID.js +39 -36
- package/dist/packages/locale/lang/index.js +44 -22
- package/dist/packages/locale/lang/zh-CN.js +38 -35
- package/dist/packages/locale/lang/zh-TW.js +38 -35
- package/dist/resolver/index.js +26 -1
- package/dist/resolver/index.mjs +17 -14
- package/dist/smartips/web-types.json +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +48 -48
- package/dist/styles/themes/jdb.scss +48 -48
- package/dist/styles/themes/jddkh.scss +48 -48
- package/dist/styles/themes/jdt.scss +48 -48
- package/dist/types/index.d.ts +1 -1
- package/package.json +3 -4
- package/dist/packages/_es/Interceptor-6e26b757.js +0 -18
- package/dist/packages/_es/_plugin-vue_export-helper-dad06003.js +0 -9
- package/dist/packages/_es/common-d218746f.js +0 -116
- package/dist/packages/_es/component-234624bc.js +0 -89
- package/dist/packages/_es/index-14dfadc4.js +0 -561
- package/dist/packages/_es/index-192a3ef6.js +0 -29
- package/dist/packages/_es/index-360c5092.js +0 -210
- package/dist/packages/_es/index-496e6e05.js +0 -24
- package/dist/packages/_es/index-50eed3d9.js +0 -7
- package/dist/packages/_es/index-53ec2d4d.js +0 -34
- package/dist/packages/_es/index-fadb0974.js +0 -8
- package/dist/packages/_es/index.vue_vue_type_script_lang-1139b29a.js +0 -43
- package/dist/packages/_es/index.vue_vue_type_script_lang-43b774dd.js +0 -77
- package/dist/packages/_es/index.vue_vue_type_script_lang-f44c159d.js +0 -110
- package/dist/packages/_es/mountComponent-6d4ff200.js +0 -23
- package/dist/packages/_es/pxCheck-38173291.js +0 -4
- package/dist/packages/_es/raf-a74f1a06.js +0 -16
- package/dist/packages/_es/renderIcon-47498b32.js +0 -5
- package/dist/packages/locale/lang/baseLang-0bdc6353.js +0 -5
|
@@ -1,137 +1,199 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
if (e != null && w)
|
|
18
|
-
for (var n of w(e))
|
|
19
|
-
l.indexOf(n) < 0 && U.call(e, n) && (a[n] = e[n]);
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
20
17
|
return a;
|
|
21
18
|
};
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} catch (c) {
|
|
34
|
-
r(c);
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __restKey = (key) => typeof key === "symbol" ? key : key + "";
|
|
21
|
+
var __objRest = (source, exclude) => {
|
|
22
|
+
var target = {};
|
|
23
|
+
for (var prop in source)
|
|
24
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
if (source != null && __getOwnPropSymbols)
|
|
27
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
28
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
29
|
+
target[prop] = source[prop];
|
|
35
30
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
31
|
+
return target;
|
|
32
|
+
};
|
|
33
|
+
var __publicField = (obj, key, value) => {
|
|
34
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
35
|
+
return value;
|
|
36
|
+
};
|
|
37
|
+
var __async = (__this, __arguments, generator) => {
|
|
38
|
+
return new Promise((resolve, reject) => {
|
|
39
|
+
var fulfilled = (value) => {
|
|
40
|
+
try {
|
|
41
|
+
step(generator.next(value));
|
|
42
|
+
} catch (e) {
|
|
43
|
+
reject(e);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
var rejected = (value) => {
|
|
47
|
+
try {
|
|
48
|
+
step(generator.throw(value));
|
|
49
|
+
} catch (e) {
|
|
50
|
+
reject(e);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
54
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
import { computed, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
58
|
+
import { P as Popup, p as popupProps } from "./index-da0a7662.js";
|
|
59
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
60
|
+
import { Loading, Checklist } from "@nutui/icons-vue";
|
|
61
|
+
import Tabs from "./Tabs.js";
|
|
62
|
+
import TabPane from "./TabPane.js";
|
|
63
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
46
64
|
import "./Overlay.js";
|
|
47
65
|
import "../locale/lang";
|
|
48
|
-
import "./pxCheck-
|
|
49
|
-
import "./index-
|
|
50
|
-
import "./raf-
|
|
51
|
-
import "./index.vue_vue_type_script_lang-
|
|
52
|
-
import "./index-
|
|
53
|
-
const
|
|
54
|
-
const { value:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
66
|
+
import "./pxCheck-c6b9f6b7.js";
|
|
67
|
+
import "./index-29892cda.js";
|
|
68
|
+
import "./raf-729dad54.js";
|
|
69
|
+
import "./index.vue_vue_type_script_lang-cc5c4086.js";
|
|
70
|
+
import "./index-7a7385e4.js";
|
|
71
|
+
const formatTree = (tree, parent, config) => tree.map((node) => {
|
|
72
|
+
const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
|
|
73
|
+
const _a = node, { [valueKey]: value, [textKey]: text, [childrenKey]: children } = _a, others = __objRest(_a, [__restKey(valueKey), __restKey(textKey), __restKey(childrenKey)]);
|
|
74
|
+
const newNode = __spreadProps(__spreadValues({
|
|
75
|
+
loading: false
|
|
76
|
+
}, others), {
|
|
77
|
+
level: parent ? (parent && parent.level || 0) + 1 : 0,
|
|
78
|
+
value,
|
|
79
|
+
text,
|
|
80
|
+
children,
|
|
81
|
+
_parent: parent
|
|
62
82
|
});
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
83
|
+
if (newNode.children && newNode.children.length) {
|
|
84
|
+
newNode.children = formatTree(newNode.children, newNode, config);
|
|
85
|
+
}
|
|
86
|
+
return newNode;
|
|
87
|
+
});
|
|
88
|
+
const eachTree = (tree, cb) => {
|
|
89
|
+
let i = 0;
|
|
90
|
+
let node;
|
|
91
|
+
while (node = tree[i++]) {
|
|
92
|
+
if (cb(node) === true) {
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
if (node.children && node.children.length) {
|
|
96
|
+
eachTree(node.children, cb);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
const defaultConvertConfig = {
|
|
69
101
|
topId: null,
|
|
70
102
|
idKey: "id",
|
|
71
103
|
pidKey: "pid",
|
|
72
104
|
sortKey: ""
|
|
73
|
-
}, ve = (e, l) => {
|
|
74
|
-
const a = k(k({}, he), l || {}), { topId: n, idKey: r, pidKey: u, sortKey: o } = a;
|
|
75
|
-
let i = [], s = {};
|
|
76
|
-
return e.forEach((c) => {
|
|
77
|
-
c = k({}, c);
|
|
78
|
-
const { [r]: d, [u]: y } = c, h = s[y] = s[y] || [];
|
|
79
|
-
!i.length && y === n && (i = h), h.push(c), c.children = s[d] || (s[d] = []);
|
|
80
|
-
}), o && Object.keys(s).forEach((c) => {
|
|
81
|
-
s[c].length > 1 && s[c].sort((d, y) => d[o] - y[o]);
|
|
82
|
-
}), s = null, i;
|
|
83
105
|
};
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
106
|
+
const convertListToOptions = (list, options) => {
|
|
107
|
+
const mergedOptions = __spreadValues(__spreadValues({}, defaultConvertConfig), options || {});
|
|
108
|
+
const { topId, idKey, pidKey, sortKey } = mergedOptions;
|
|
109
|
+
let result = [];
|
|
110
|
+
let map = {};
|
|
111
|
+
list.forEach((node) => {
|
|
112
|
+
node = __spreadValues({}, node);
|
|
113
|
+
const { [idKey]: id, [pidKey]: pid } = node;
|
|
114
|
+
const children = map[pid] = map[pid] || [];
|
|
115
|
+
if (!result.length && pid === topId) {
|
|
116
|
+
result = children;
|
|
117
|
+
}
|
|
118
|
+
children.push(node);
|
|
119
|
+
node.children = map[id] || (map[id] = []);
|
|
120
|
+
});
|
|
121
|
+
if (sortKey) {
|
|
122
|
+
Object.keys(map).forEach((i) => {
|
|
123
|
+
if (map[i].length > 1) {
|
|
124
|
+
map[i].sort((a, b) => a[sortKey] - b[sortKey]);
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
map = null;
|
|
129
|
+
return result;
|
|
130
|
+
};
|
|
131
|
+
class Tree {
|
|
132
|
+
constructor(nodes, config) {
|
|
133
|
+
__publicField(this, "nodes");
|
|
134
|
+
__publicField(this, "config");
|
|
135
|
+
this.config = __spreadValues({
|
|
89
136
|
value: "value",
|
|
90
137
|
text: "text",
|
|
91
138
|
children: "children"
|
|
92
|
-
},
|
|
139
|
+
}, config || {});
|
|
140
|
+
this.nodes = formatTree(nodes, null, this.config);
|
|
93
141
|
}
|
|
94
|
-
updateChildren(
|
|
95
|
-
|
|
142
|
+
updateChildren(nodes, parent) {
|
|
143
|
+
if (!parent) {
|
|
144
|
+
this.nodes = formatTree(nodes, null, this.config);
|
|
145
|
+
} else {
|
|
146
|
+
parent.children = formatTree(nodes, parent, this.config);
|
|
147
|
+
}
|
|
96
148
|
}
|
|
97
149
|
// for test
|
|
98
|
-
getNodeByValue(
|
|
99
|
-
let
|
|
100
|
-
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
|
|
150
|
+
getNodeByValue(value) {
|
|
151
|
+
let foundNode;
|
|
152
|
+
eachTree(this.nodes, (node) => {
|
|
153
|
+
if (node.value === value) {
|
|
154
|
+
foundNode = node;
|
|
155
|
+
return true;
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
return foundNode;
|
|
104
159
|
}
|
|
105
|
-
getPathNodesByValue(
|
|
106
|
-
if (!
|
|
160
|
+
getPathNodesByValue(value) {
|
|
161
|
+
if (!value.length) {
|
|
107
162
|
return [];
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
163
|
+
}
|
|
164
|
+
const pathNodes = [];
|
|
165
|
+
let currentNodes = this.nodes;
|
|
166
|
+
while (currentNodes && currentNodes.length) {
|
|
167
|
+
const foundNode = currentNodes.find((node) => node.value === value[node.level]);
|
|
168
|
+
if (!foundNode) {
|
|
113
169
|
break;
|
|
114
|
-
|
|
170
|
+
}
|
|
171
|
+
pathNodes.push(foundNode);
|
|
172
|
+
currentNodes = foundNode.children;
|
|
115
173
|
}
|
|
116
|
-
return
|
|
174
|
+
return pathNodes;
|
|
117
175
|
}
|
|
118
|
-
isLeaf(
|
|
119
|
-
const { leaf
|
|
120
|
-
|
|
176
|
+
isLeaf(node, lazy) {
|
|
177
|
+
const { leaf, children } = node;
|
|
178
|
+
const hasChildren = Array.isArray(children) && Boolean(children.length);
|
|
179
|
+
return leaf || !hasChildren && !lazy;
|
|
121
180
|
}
|
|
122
|
-
hasChildren(
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
181
|
+
hasChildren(node, lazy) {
|
|
182
|
+
const isLeaf = this.isLeaf(node, lazy);
|
|
183
|
+
if (isLeaf) {
|
|
184
|
+
return false;
|
|
185
|
+
}
|
|
186
|
+
const { children } = node;
|
|
187
|
+
return Array.isArray(children) && Boolean(children.length);
|
|
127
188
|
}
|
|
128
189
|
}
|
|
129
|
-
const { create:
|
|
190
|
+
const { create: create$1, translate } = createComponent("cascader-item");
|
|
191
|
+
const _sfc_main$1 = create$1({
|
|
130
192
|
components: {
|
|
131
|
-
Loading
|
|
132
|
-
Checklist
|
|
133
|
-
[
|
|
134
|
-
[
|
|
193
|
+
Loading,
|
|
194
|
+
Checklist,
|
|
195
|
+
[Tabs.name]: Tabs,
|
|
196
|
+
[TabPane.name]: TabPane
|
|
135
197
|
},
|
|
136
198
|
props: {
|
|
137
199
|
visible: Boolean,
|
|
@@ -157,185 +219,269 @@ const { create: ye, translate: fe } = Y("cascader-item"), pe = ye({
|
|
|
157
219
|
convertConfig: Object
|
|
158
220
|
},
|
|
159
221
|
emits: ["update:modelValue", "change", "pathChange"],
|
|
160
|
-
setup(
|
|
161
|
-
const
|
|
162
|
-
lazy:
|
|
163
|
-
lazyLoad:
|
|
164
|
-
valueKey:
|
|
165
|
-
textKey:
|
|
166
|
-
childrenKey:
|
|
167
|
-
convertConfig:
|
|
168
|
-
}))
|
|
169
|
-
|
|
170
|
-
const
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
222
|
+
setup(props, { emit }) {
|
|
223
|
+
const configs = computed(() => ({
|
|
224
|
+
lazy: props.lazy,
|
|
225
|
+
lazyLoad: props.lazyLoad,
|
|
226
|
+
valueKey: props.valueKey,
|
|
227
|
+
textKey: props.textKey,
|
|
228
|
+
childrenKey: props.childrenKey,
|
|
229
|
+
convertConfig: props.convertConfig
|
|
230
|
+
}));
|
|
231
|
+
const tabsCursor = ref(0);
|
|
232
|
+
const initLoading = ref(false);
|
|
233
|
+
const innerValue = ref(props.modelValue);
|
|
234
|
+
const tree = ref(new Tree([], {}));
|
|
235
|
+
const panes = ref([]);
|
|
236
|
+
const isLazy = computed(() => configs.value.lazy && Boolean(configs.value.lazyLoad));
|
|
237
|
+
const lazyLoadMap = /* @__PURE__ */ new Map();
|
|
238
|
+
let currentProcessNode;
|
|
239
|
+
const init = () => __async(this, null, function* () {
|
|
240
|
+
lazyLoadMap.clear();
|
|
241
|
+
panes.value = [];
|
|
242
|
+
tabsCursor.value = 0;
|
|
243
|
+
initLoading.value = false;
|
|
244
|
+
currentProcessNode = null;
|
|
245
|
+
let { options } = props;
|
|
246
|
+
if (configs.value.convertConfig) {
|
|
247
|
+
options = convertListToOptions(options, configs.value.convertConfig);
|
|
248
|
+
}
|
|
249
|
+
tree.value = new Tree(options, {
|
|
250
|
+
value: configs.value.valueKey,
|
|
251
|
+
text: configs.value.textKey,
|
|
252
|
+
children: configs.value.childrenKey
|
|
253
|
+
});
|
|
254
|
+
if (isLazy.value && !tree.value.nodes.length) {
|
|
255
|
+
yield invokeLazyLoad({
|
|
256
|
+
root: true,
|
|
257
|
+
loading: true,
|
|
258
|
+
text: "",
|
|
259
|
+
value: ""
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
panes.value = [{ nodes: tree.value.nodes, selectedNode: null }];
|
|
263
|
+
syncValue();
|
|
264
|
+
});
|
|
265
|
+
const syncValue = () => __async(this, null, function* () {
|
|
266
|
+
const currentValue = innerValue.value;
|
|
267
|
+
if (currentValue === void 0 || !tree.value.nodes.length) {
|
|
186
268
|
return;
|
|
187
|
-
|
|
188
|
-
|
|
269
|
+
}
|
|
270
|
+
if (currentValue.length === 0) {
|
|
271
|
+
tabsCursor.value = 0;
|
|
272
|
+
panes.value = [{ nodes: tree.value.nodes, selectedNode: null }];
|
|
189
273
|
return;
|
|
190
274
|
}
|
|
191
|
-
let
|
|
192
|
-
if (
|
|
193
|
-
|
|
194
|
-
let
|
|
195
|
-
if (
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
yield
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
275
|
+
let needToSync = currentValue;
|
|
276
|
+
if (isLazy.value && Array.isArray(currentValue) && currentValue.length) {
|
|
277
|
+
needToSync = [];
|
|
278
|
+
let parent = tree.value.nodes.find((node) => node.value === currentValue[0]);
|
|
279
|
+
if (parent) {
|
|
280
|
+
needToSync = [parent.value];
|
|
281
|
+
initLoading.value = true;
|
|
282
|
+
const last = yield currentValue.slice(1).reduce((p, value) => __async(this, null, function* () {
|
|
283
|
+
var _a2;
|
|
284
|
+
const parent2 = yield p;
|
|
285
|
+
yield invokeLazyLoad(parent2);
|
|
286
|
+
const node = (_a2 = parent2 == null ? void 0 : parent2.children) == null ? void 0 : _a2.find((item) => item.value === value);
|
|
287
|
+
if (node) {
|
|
288
|
+
needToSync.push(value);
|
|
289
|
+
}
|
|
290
|
+
return Promise.resolve(node);
|
|
291
|
+
}), Promise.resolve(parent));
|
|
292
|
+
yield invokeLazyLoad(last);
|
|
293
|
+
initLoading.value = false;
|
|
205
294
|
}
|
|
206
295
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
296
|
+
if (needToSync.length && currentValue === props.modelValue) {
|
|
297
|
+
const pathNodes = tree.value.getPathNodesByValue(needToSync);
|
|
298
|
+
pathNodes.map((node, index2) => {
|
|
299
|
+
tabsCursor.value = index2;
|
|
300
|
+
methods.handleNode(node, true);
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
const invokeLazyLoad = (node) => __async(this, null, function* () {
|
|
305
|
+
if (!node) {
|
|
212
306
|
return;
|
|
213
|
-
|
|
214
|
-
|
|
307
|
+
}
|
|
308
|
+
if (!configs.value.lazyLoad) {
|
|
309
|
+
node.leaf = true;
|
|
215
310
|
return;
|
|
216
311
|
}
|
|
217
|
-
if (
|
|
312
|
+
if (tree.value.isLeaf(node, isLazy.value) || tree.value.hasChildren(node, isLazy.value)) {
|
|
218
313
|
return;
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
314
|
+
}
|
|
315
|
+
node.loading = true;
|
|
316
|
+
const parent = node.root ? null : node;
|
|
317
|
+
let lazyLoadPromise = lazyLoadMap.get(node);
|
|
318
|
+
if (!lazyLoadPromise) {
|
|
319
|
+
lazyLoadPromise = new Promise((resolve) => {
|
|
320
|
+
var _a2, _b;
|
|
321
|
+
(_b = (_a2 = configs.value).lazyLoad) == null ? void 0 : _b.call(_a2, node, resolve);
|
|
322
|
+
});
|
|
323
|
+
lazyLoadMap.set(node, lazyLoadPromise);
|
|
324
|
+
}
|
|
325
|
+
const nodes = yield lazyLoadPromise;
|
|
326
|
+
if (Array.isArray(nodes) && nodes.length > 0) {
|
|
327
|
+
tree.value.updateChildren(nodes, parent);
|
|
328
|
+
} else {
|
|
329
|
+
node.leaf = true;
|
|
330
|
+
}
|
|
331
|
+
node.loading = false;
|
|
332
|
+
lazyLoadMap.delete(node);
|
|
333
|
+
});
|
|
334
|
+
const emitChange = (pathNodes) => {
|
|
335
|
+
const emitValue = pathNodes.map((node) => node.value);
|
|
336
|
+
innerValue.value = emitValue;
|
|
337
|
+
emit("change", emitValue, pathNodes);
|
|
338
|
+
emit("update:modelValue", emitValue, pathNodes);
|
|
339
|
+
};
|
|
340
|
+
const methods = {
|
|
232
341
|
// 选中一个节点,静默模式不触发事件
|
|
233
|
-
handleNode(
|
|
234
|
-
return
|
|
235
|
-
const { disabled
|
|
236
|
-
if (!
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
342
|
+
handleNode(node, silent) {
|
|
343
|
+
return __async(this, null, function* () {
|
|
344
|
+
const { disabled, loading } = node;
|
|
345
|
+
if (!silent && disabled || !panes.value[tabsCursor.value]) {
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
348
|
+
if (tree.value.isLeaf(node, isLazy.value)) {
|
|
349
|
+
node.leaf = true;
|
|
350
|
+
panes.value[tabsCursor.value].selectedNode = node;
|
|
351
|
+
panes.value = panes.value.slice(0, node.level + 1);
|
|
352
|
+
if (!silent) {
|
|
353
|
+
const pathNodes = panes.value.map((pane) => pane.selectedNode);
|
|
354
|
+
emitChange(pathNodes);
|
|
355
|
+
emit("pathChange", pathNodes);
|
|
243
356
|
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
if (tree.value.hasChildren(node, isLazy.value)) {
|
|
360
|
+
const level = node.level + 1;
|
|
361
|
+
panes.value[tabsCursor.value].selectedNode = node;
|
|
362
|
+
panes.value = panes.value.slice(0, level);
|
|
363
|
+
panes.value.push({
|
|
364
|
+
nodes: node.children || [],
|
|
365
|
+
selectedNode: null
|
|
366
|
+
});
|
|
367
|
+
tabsCursor.value = level;
|
|
368
|
+
if (!silent) {
|
|
369
|
+
const pathNodes = panes.value.map((pane) => pane.selectedNode);
|
|
370
|
+
emit("pathChange", pathNodes);
|
|
254
371
|
}
|
|
255
|
-
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
currentProcessNode = node;
|
|
375
|
+
if (loading) {
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
yield invokeLazyLoad(node);
|
|
379
|
+
if (currentProcessNode === node) {
|
|
380
|
+
panes.value[tabsCursor.value].selectedNode = node;
|
|
381
|
+
methods.handleNode(node, silent);
|
|
256
382
|
}
|
|
257
383
|
});
|
|
258
384
|
},
|
|
259
|
-
handleTabClick(
|
|
260
|
-
|
|
385
|
+
handleTabClick(tab) {
|
|
386
|
+
currentProcessNode = null;
|
|
387
|
+
tabsCursor.value = Number(tab.paneKey);
|
|
261
388
|
},
|
|
262
|
-
formatTabTitle(
|
|
263
|
-
return
|
|
389
|
+
formatTabTitle(pane) {
|
|
390
|
+
return pane.selectedNode ? pane.selectedNode.text : translate("select");
|
|
264
391
|
},
|
|
265
|
-
isSelected(
|
|
266
|
-
var
|
|
267
|
-
return ((
|
|
392
|
+
isSelected(pane, node) {
|
|
393
|
+
var _a2;
|
|
394
|
+
return ((_a2 = pane == null ? void 0 : pane.selectedNode) == null ? void 0 : _a2.value) === node.value;
|
|
268
395
|
}
|
|
269
396
|
};
|
|
270
|
-
|
|
271
|
-
[
|
|
397
|
+
watch(
|
|
398
|
+
[configs, () => props.options],
|
|
272
399
|
() => {
|
|
273
|
-
|
|
400
|
+
init();
|
|
274
401
|
},
|
|
275
402
|
{
|
|
276
|
-
deep:
|
|
277
|
-
immediate:
|
|
403
|
+
deep: true,
|
|
404
|
+
immediate: true
|
|
278
405
|
}
|
|
279
|
-
)
|
|
280
|
-
|
|
281
|
-
(
|
|
282
|
-
|
|
406
|
+
);
|
|
407
|
+
watch(
|
|
408
|
+
() => props.modelValue,
|
|
409
|
+
(value) => {
|
|
410
|
+
if (value !== innerValue.value) {
|
|
411
|
+
innerValue.value = value;
|
|
412
|
+
syncValue();
|
|
413
|
+
}
|
|
283
414
|
}
|
|
284
|
-
)
|
|
285
|
-
|
|
286
|
-
(
|
|
287
|
-
|
|
415
|
+
);
|
|
416
|
+
watch(
|
|
417
|
+
() => props.visible,
|
|
418
|
+
(val) => {
|
|
419
|
+
if (val && Array.isArray(innerValue.value) && innerValue.value.length > 0) {
|
|
420
|
+
syncValue();
|
|
421
|
+
}
|
|
288
422
|
}
|
|
289
|
-
)
|
|
423
|
+
);
|
|
424
|
+
return __spreadValues({ panes, initLoading, tabsCursor }, methods);
|
|
290
425
|
}
|
|
291
|
-
})
|
|
426
|
+
});
|
|
427
|
+
const _hoisted_1$1 = {
|
|
292
428
|
role: "menu",
|
|
293
429
|
class: "nut-cascader-pane"
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
430
|
+
};
|
|
431
|
+
const _hoisted_2 = ["aria-checked", "aria-disabled", "onClick"];
|
|
432
|
+
const _hoisted_3 = { class: "nut-cascader-item__title" };
|
|
433
|
+
const _hoisted_4 = /* @__PURE__ */ createElementVNode("view", { class: "nut-cascader-pane" }, null, -1);
|
|
434
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
435
|
+
const _component_Loading = resolveComponent("Loading");
|
|
436
|
+
const _component_Checklist = resolveComponent("Checklist");
|
|
437
|
+
const _component_nut_tab_pane = resolveComponent("nut-tab-pane");
|
|
438
|
+
const _component_nut_tabs = resolveComponent("nut-tabs");
|
|
439
|
+
return openBlock(), createBlock(_component_nut_tabs, {
|
|
298
440
|
class: "nut-cascader",
|
|
299
|
-
modelValue:
|
|
300
|
-
"onUpdate:modelValue":
|
|
301
|
-
onClick:
|
|
441
|
+
modelValue: _ctx.tabsCursor,
|
|
442
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.tabsCursor = $event),
|
|
443
|
+
onClick: _ctx.handleTabClick,
|
|
302
444
|
"title-scroll": ""
|
|
303
445
|
}, {
|
|
304
|
-
default:
|
|
305
|
-
!
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
(
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
446
|
+
default: withCtx(() => [
|
|
447
|
+
!_ctx.initLoading && _ctx.panes.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.panes, (pane, index2) => {
|
|
448
|
+
return openBlock(), createBlock(_component_nut_tab_pane, {
|
|
449
|
+
title: _ctx.formatTabTitle(pane),
|
|
450
|
+
key: index2
|
|
451
|
+
}, {
|
|
452
|
+
default: withCtx(() => [
|
|
453
|
+
createElementVNode("view", _hoisted_1$1, [
|
|
454
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(pane.nodes, (node) => {
|
|
455
|
+
return openBlock(), createElementBlock("view", {
|
|
456
|
+
key: node.value,
|
|
457
|
+
class: normalizeClass(["nut-cascader-item", { active: _ctx.isSelected(pane, node), disabled: node.disabled }]),
|
|
458
|
+
"aria-checked": _ctx.isSelected(pane, node),
|
|
459
|
+
"aria-disabled": node.disabled || void 0,
|
|
460
|
+
role: "menuitemradio",
|
|
461
|
+
onClick: ($event) => _ctx.handleNode(node, false)
|
|
462
|
+
}, [
|
|
463
|
+
createElementVNode("view", _hoisted_3, toDisplayString(node.text), 1),
|
|
464
|
+
node.loading ? (openBlock(), createBlock(_component_Loading, {
|
|
465
|
+
key: 0,
|
|
466
|
+
class: "nut-cascader-item__icon-loading",
|
|
467
|
+
name: "loading"
|
|
468
|
+
})) : (openBlock(), createBlock(_component_Checklist, {
|
|
469
|
+
key: 1,
|
|
470
|
+
class: "nut-cascader-item__icon-check",
|
|
471
|
+
name: "checklist"
|
|
472
|
+
}))
|
|
473
|
+
], 10, _hoisted_2);
|
|
474
|
+
}), 128))
|
|
475
|
+
])
|
|
476
|
+
]),
|
|
477
|
+
_: 2
|
|
478
|
+
}, 1032, ["title"]);
|
|
479
|
+
}), 128)) : (openBlock(), createBlock(_component_nut_tab_pane, {
|
|
334
480
|
key: 1,
|
|
335
481
|
title: "Loading..."
|
|
336
482
|
}, {
|
|
337
|
-
default:
|
|
338
|
-
|
|
483
|
+
default: withCtx(() => [
|
|
484
|
+
_hoisted_4
|
|
339
485
|
]),
|
|
340
486
|
_: 1
|
|
341
487
|
}))
|
|
@@ -343,12 +489,14 @@ function ke(e, l, a, n, r, u) {
|
|
|
343
489
|
_: 1
|
|
344
490
|
}, 8, ["modelValue", "onClick"]);
|
|
345
491
|
}
|
|
346
|
-
const
|
|
492
|
+
const CascaderItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
493
|
+
const { create } = createComponent("cascader");
|
|
494
|
+
const _sfc_main = create({
|
|
347
495
|
components: {
|
|
348
|
-
[
|
|
349
|
-
[
|
|
496
|
+
[CascaderItem.name]: CascaderItem,
|
|
497
|
+
[Popup.name]: Popup
|
|
350
498
|
},
|
|
351
|
-
props:
|
|
499
|
+
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
352
500
|
modelValue: Array,
|
|
353
501
|
visible: Boolean,
|
|
354
502
|
title: String,
|
|
@@ -372,87 +520,98 @@ const X = /* @__PURE__ */ Z(pe, [["render", ke]]), { create: Ve } = Y("cascader"
|
|
|
372
520
|
},
|
|
373
521
|
poppable: {
|
|
374
522
|
type: Boolean,
|
|
375
|
-
default:
|
|
523
|
+
default: true
|
|
376
524
|
},
|
|
377
525
|
convertConfig: Object
|
|
378
526
|
}),
|
|
379
527
|
emits: ["update:modelValue", "change", "pathChange", "update:visible"],
|
|
380
|
-
setup(
|
|
381
|
-
const
|
|
528
|
+
setup(props, { emit }) {
|
|
529
|
+
const innerValue = ref(props.modelValue);
|
|
530
|
+
const innerVisible = computed({
|
|
382
531
|
get() {
|
|
383
|
-
return
|
|
532
|
+
return props.visible;
|
|
384
533
|
},
|
|
385
|
-
set(
|
|
386
|
-
|
|
534
|
+
set(value) {
|
|
535
|
+
emit("update:visible", value);
|
|
387
536
|
}
|
|
388
|
-
})
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
537
|
+
});
|
|
538
|
+
const onChange = (value, pathNodes) => {
|
|
539
|
+
innerValue.value = value;
|
|
540
|
+
innerVisible.value = false;
|
|
541
|
+
emit("change", value, pathNodes);
|
|
542
|
+
emit("update:modelValue", value);
|
|
392
543
|
};
|
|
393
|
-
|
|
394
|
-
()
|
|
395
|
-
|
|
396
|
-
|
|
544
|
+
const onPathChange = (pathNodes) => {
|
|
545
|
+
emit("pathChange", pathNodes);
|
|
546
|
+
};
|
|
547
|
+
watch(
|
|
548
|
+
() => props.modelValue,
|
|
549
|
+
(value) => {
|
|
550
|
+
if (value !== innerValue.value) {
|
|
551
|
+
innerValue.value = value;
|
|
552
|
+
}
|
|
397
553
|
}
|
|
398
|
-
)
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
554
|
+
);
|
|
555
|
+
return {
|
|
556
|
+
onChange,
|
|
557
|
+
onPathChange,
|
|
558
|
+
innerValue,
|
|
559
|
+
innerVisible
|
|
403
560
|
};
|
|
404
561
|
}
|
|
405
|
-
})
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
562
|
+
});
|
|
563
|
+
const _hoisted_1 = ["innerHTML"];
|
|
564
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
565
|
+
const _component_nut_cascader_item = resolveComponent("nut-cascader-item");
|
|
566
|
+
const _component_nut_popup = resolveComponent("nut-popup");
|
|
567
|
+
return _ctx.poppable ? (openBlock(), createBlock(_component_nut_popup, {
|
|
409
568
|
key: 0,
|
|
410
|
-
visible:
|
|
411
|
-
"onUpdate:visible":
|
|
569
|
+
visible: _ctx.innerVisible,
|
|
570
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.innerVisible = $event),
|
|
412
571
|
position: "bottom",
|
|
413
572
|
"pop-class": "nut-cascader__popup",
|
|
414
573
|
round: "",
|
|
415
|
-
closeable:
|
|
416
|
-
"destroy-on-close":
|
|
417
|
-
"close-icon-position":
|
|
574
|
+
closeable: _ctx.closeable,
|
|
575
|
+
"destroy-on-close": false,
|
|
576
|
+
"close-icon-position": _ctx.closeIconPosition
|
|
418
577
|
}, {
|
|
419
|
-
default:
|
|
420
|
-
|
|
578
|
+
default: withCtx(() => [
|
|
579
|
+
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
421
580
|
key: 0,
|
|
422
581
|
class: "nut-cascader__bar",
|
|
423
|
-
innerHTML:
|
|
424
|
-
}, null, 8,
|
|
425
|
-
|
|
426
|
-
onChange:
|
|
427
|
-
onPathChange:
|
|
428
|
-
modelValue:
|
|
429
|
-
options:
|
|
430
|
-
lazy:
|
|
431
|
-
"lazy-load":
|
|
432
|
-
"value-key":
|
|
433
|
-
"text-key":
|
|
434
|
-
"children-key":
|
|
435
|
-
"convert-config":
|
|
436
|
-
visible:
|
|
582
|
+
innerHTML: _ctx.title
|
|
583
|
+
}, null, 8, _hoisted_1)) : createCommentVNode("", true),
|
|
584
|
+
createVNode(_component_nut_cascader_item, {
|
|
585
|
+
onChange: _ctx.onChange,
|
|
586
|
+
onPathChange: _ctx.onPathChange,
|
|
587
|
+
modelValue: _ctx.innerValue,
|
|
588
|
+
options: _ctx.options,
|
|
589
|
+
lazy: _ctx.lazy,
|
|
590
|
+
"lazy-load": _ctx.lazyLoad,
|
|
591
|
+
"value-key": _ctx.valueKey,
|
|
592
|
+
"text-key": _ctx.textKey,
|
|
593
|
+
"children-key": _ctx.childrenKey,
|
|
594
|
+
"convert-config": _ctx.convertConfig,
|
|
595
|
+
visible: _ctx.innerVisible
|
|
437
596
|
}, null, 8, ["onChange", "onPathChange", "modelValue", "options", "lazy", "lazy-load", "value-key", "text-key", "children-key", "convert-config", "visible"])
|
|
438
597
|
]),
|
|
439
598
|
_: 1
|
|
440
|
-
}, 8, ["visible", "closeable", "close-icon-position"])) : (
|
|
599
|
+
}, 8, ["visible", "closeable", "close-icon-position"])) : (openBlock(), createBlock(_component_nut_cascader_item, {
|
|
441
600
|
key: 1,
|
|
442
|
-
onChange:
|
|
443
|
-
onPathChange:
|
|
444
|
-
modelValue:
|
|
445
|
-
options:
|
|
446
|
-
lazy:
|
|
447
|
-
"lazy-load":
|
|
448
|
-
"value-key":
|
|
449
|
-
"text-key":
|
|
450
|
-
"children-key":
|
|
451
|
-
"convert-config":
|
|
452
|
-
visible:
|
|
601
|
+
onChange: _ctx.onChange,
|
|
602
|
+
onPathChange: _ctx.onPathChange,
|
|
603
|
+
modelValue: _ctx.innerValue,
|
|
604
|
+
options: _ctx.options,
|
|
605
|
+
lazy: _ctx.lazy,
|
|
606
|
+
"lazy-load": _ctx.lazyLoad,
|
|
607
|
+
"value-key": _ctx.valueKey,
|
|
608
|
+
"text-key": _ctx.textKey,
|
|
609
|
+
"children-key": _ctx.childrenKey,
|
|
610
|
+
"convert-config": _ctx.convertConfig,
|
|
611
|
+
visible: _ctx.innerVisible
|
|
453
612
|
}, null, 8, ["onChange", "onPathChange", "modelValue", "options", "lazy", "lazy-load", "value-key", "text-key", "children-key", "convert-config", "visible"]));
|
|
454
613
|
}
|
|
455
|
-
const
|
|
614
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
456
615
|
export {
|
|
457
|
-
|
|
616
|
+
index as default
|
|
458
617
|
};
|