@nutui/nutui 3.1.15-beta.0 → 3.1.16
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/CHANGELOG.md +57 -0
- package/README.md +3 -3
- package/dist/nutui.d.ts +8 -5
- package/dist/nutui.es.js +826 -644
- package/dist/nutui.umd.js +832 -647
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +2 -4
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/BackTop.js +1 -1
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +1 -1
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +1 -1
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +11 -3
- package/dist/packages/_es/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +2 -4
- package/dist/packages/_es/Dialog.js +1 -1
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Elevator.js +1 -1
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +9 -6
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/ImagePreview.js +1 -1
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +15 -10
- package/dist/packages/_es/InputNumber.js +2 -2
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/Menu.js +3 -3
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Navbar.js +6 -32
- package/dist/packages/_es/NoticeBar.js +2 -2
- package/dist/packages/_es/Notify.js +1 -1
- package/dist/packages/_es/NumberKeyboard.js +1 -1
- package/dist/packages/_es/OverLay.js +1 -1
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +170 -189
- package/dist/packages/_es/Popover.js +1 -1
- package/dist/packages/_es/Popup.js +8 -4
- package/dist/packages/_es/Price.js +2 -2
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/Radio.js +1 -1
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +2 -2
- package/dist/packages/_es/Rate.js +1 -1
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/SideNavBar.js +104 -0
- package/dist/packages/_es/SideNavBarItem.js +50 -0
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +1 -2
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/SubSideNavBar.js +104 -0
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +1 -1
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +6 -2
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +9 -3
- package/dist/packages/_es/Tabs.js +1 -1
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +9 -4
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +1 -1
- package/dist/packages/_es/Uploader.js +6 -4
- package/dist/packages/_es/Video.js +1 -1
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/_es/util.js +1 -1
- package/dist/packages/actionsheet/index.scss +2 -2
- package/dist/packages/address/index.scss +2 -0
- package/dist/packages/button/index.scss +3 -0
- package/dist/packages/cascader/index.scss +13 -13
- package/dist/packages/icon/index.scss +101 -11
- package/dist/packages/input/index.scss +4 -1
- package/dist/packages/menu/index.scss +10 -6
- package/dist/packages/menuitem/index.scss +9 -8
- package/dist/packages/navbar/index.scss +8 -34
- package/dist/packages/noticebar/index.scss +11 -11
- package/dist/packages/picker/index.scss +74 -22
- package/dist/packages/progress/index.scss +2 -8
- package/dist/packages/shortpassword/index.scss +6 -6
- package/dist/packages/sidenavbar/index.scss +14 -0
- package/dist/packages/sidenavbaritem/index.scss +10 -0
- package/dist/packages/sku/index.scss +1 -1
- package/dist/packages/subsidenavbar/index.scss +39 -0
- package/dist/packages/tabbar/index.scss +5 -1
- package/dist/packages/textarea/index.scss +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/animation/icon.scss +245 -0
- package/dist/styles/animation/index.scss +1 -0
- package/dist/styles/font/config.json +36 -0
- package/dist/styles/font/demo_index.html +26 -3
- package/dist/styles/font/iconfont.css +7 -3
- package/dist/styles/font/iconfont.js +1 -1
- package/dist/styles/font/iconfont.json +7 -0
- package/dist/styles/font/iconfont.ttf +0 -0
- package/dist/styles/font/iconfont.woff +0 -0
- package/dist/styles/font/iconfont.woff2 +0 -0
- package/dist/styles/themes/default.scss +41 -38
- package/dist/styles/themes/jdd.scss +2 -0
- package/dist/styles/variables.scss +72 -68
- package/package.json +7 -3
package/dist/nutui.es.js
CHANGED
|
@@ -35,7 +35,7 @@ var __publicField = (obj, key, value) => {
|
|
|
35
35
|
return value;
|
|
36
36
|
};
|
|
37
37
|
/*!
|
|
38
|
-
* @nutui/nutui v3.1.
|
|
38
|
+
* @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:05 GMT+0800 (中国标准时间)
|
|
39
39
|
* (c) 2021 @jdf2e.
|
|
40
40
|
* Released under the MIT License.
|
|
41
41
|
*/
|
|
@@ -67,8 +67,8 @@ var _export_sfc = (sfc, props) => {
|
|
|
67
67
|
}
|
|
68
68
|
return target;
|
|
69
69
|
};
|
|
70
|
-
const { componentName: componentName$
|
|
71
|
-
const _sfc_main$
|
|
70
|
+
const { componentName: componentName$14, create: create$1p } = createComponent("avatar");
|
|
71
|
+
const _sfc_main$1p = create$1p({
|
|
72
72
|
props: {
|
|
73
73
|
size: {
|
|
74
74
|
type: String,
|
|
@@ -92,7 +92,7 @@ const _sfc_main$1m = create$1m({
|
|
|
92
92
|
const { size, shape, bgColor, icon } = toRefs(props);
|
|
93
93
|
const sizeValue = ["large", "normal", "small"];
|
|
94
94
|
const classes = computed(() => {
|
|
95
|
-
const prefixCls = componentName$
|
|
95
|
+
const prefixCls = componentName$14;
|
|
96
96
|
return {
|
|
97
97
|
[prefixCls]: true,
|
|
98
98
|
["avatar-" + size.value]: true,
|
|
@@ -124,11 +124,11 @@ const _sfc_main$1m = create$1m({
|
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
|
-
const _hoisted_1
|
|
127
|
+
const _hoisted_1$$ = {
|
|
128
128
|
key: 0,
|
|
129
129
|
class: "text"
|
|
130
130
|
};
|
|
131
|
-
function _sfc_render$
|
|
131
|
+
function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
132
132
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
133
133
|
return openBlock(), createElementBlock("view", {
|
|
134
134
|
style: normalizeStyle(_ctx.styles),
|
|
@@ -139,17 +139,17 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
139
139
|
class: "icon",
|
|
140
140
|
name: _ctx.iconStyles
|
|
141
141
|
}, null, 8, ["name"]),
|
|
142
|
-
_ctx.isShowText ? (openBlock(), createElementBlock("view", _hoisted_1
|
|
142
|
+
_ctx.isShowText ? (openBlock(), createElementBlock("view", _hoisted_1$$, [
|
|
143
143
|
renderSlot(_ctx.$slots, "default")
|
|
144
144
|
])) : createCommentVNode("", true)
|
|
145
145
|
], 6);
|
|
146
146
|
}
|
|
147
|
-
var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
147
|
+
var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["render", _sfc_render$1h]]);
|
|
148
148
|
const pxCheck = (value) => {
|
|
149
149
|
return isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
150
150
|
};
|
|
151
|
-
const { componentName: componentName$
|
|
152
|
-
const _sfc_main$
|
|
151
|
+
const { componentName: componentName$13, create: create$1o } = createComponent("icon");
|
|
152
|
+
const _sfc_main$1o = create$1o({
|
|
153
153
|
props: {
|
|
154
154
|
name: { type: String, default: "" },
|
|
155
155
|
size: { type: [String, Number], default: "" },
|
|
@@ -170,7 +170,7 @@ const _sfc_main$1l = create$1l({
|
|
|
170
170
|
var _a;
|
|
171
171
|
const _isImage = isImage();
|
|
172
172
|
return h(_isImage ? "img" : props.tag, {
|
|
173
|
-
class: _isImage ? `${componentName$
|
|
173
|
+
class: _isImage ? `${componentName$13}__img` : `${props.fontClassName} ${componentName$13} ${props.classPrefix}-${props.name}`,
|
|
174
174
|
style: {
|
|
175
175
|
color: props.color,
|
|
176
176
|
fontSize: pxCheck(props.size),
|
|
@@ -183,10 +183,10 @@ const _sfc_main$1l = create$1l({
|
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
185
|
});
|
|
186
|
-
const { componentName: componentName
|
|
187
|
-
const _sfc_main$
|
|
186
|
+
const { componentName: componentName$12, create: create$1n } = createComponent("button");
|
|
187
|
+
const _sfc_main$1n = create$1n({
|
|
188
188
|
components: {
|
|
189
|
-
[_sfc_main$
|
|
189
|
+
[_sfc_main$1o.name]: _sfc_main$1o
|
|
190
190
|
},
|
|
191
191
|
props: {
|
|
192
192
|
color: String,
|
|
@@ -232,7 +232,7 @@ const _sfc_main$1k = create$1k({
|
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
234
|
const classes = computed(() => {
|
|
235
|
-
const prefixCls = componentName
|
|
235
|
+
const prefixCls = componentName$12;
|
|
236
236
|
return {
|
|
237
237
|
[prefixCls]: true,
|
|
238
238
|
[`${prefixCls}--${type.value}`]: type.value,
|
|
@@ -268,15 +268,15 @@ const _sfc_main$1k = create$1k({
|
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
270
|
});
|
|
271
|
-
const _hoisted_1$
|
|
272
|
-
function _sfc_render$
|
|
271
|
+
const _hoisted_1$_ = { class: "nut-button__warp" };
|
|
272
|
+
function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
273
273
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
274
274
|
return openBlock(), createElementBlock("view", {
|
|
275
275
|
class: normalizeClass(_ctx.classes),
|
|
276
276
|
style: normalizeStyle(_ctx.getStyle),
|
|
277
277
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
278
278
|
}, [
|
|
279
|
-
createElementVNode("view", _hoisted_1$
|
|
279
|
+
createElementVNode("view", _hoisted_1$_, [
|
|
280
280
|
_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
|
|
281
281
|
key: 0,
|
|
282
282
|
class: "nut-icon-loading"
|
|
@@ -295,9 +295,9 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
295
295
|
])
|
|
296
296
|
], 6);
|
|
297
297
|
}
|
|
298
|
-
var Button = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
299
|
-
const { componentName: componentName$
|
|
300
|
-
const _sfc_main$
|
|
298
|
+
var Button = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_render$1g]]);
|
|
299
|
+
const { componentName: componentName$11, create: create$1m } = createComponent("cell");
|
|
300
|
+
const _sfc_main$1m = create$1m({
|
|
301
301
|
props: {
|
|
302
302
|
title: { type: String, default: "" },
|
|
303
303
|
subTitle: { type: String, default: "" },
|
|
@@ -313,7 +313,7 @@ const _sfc_main$1j = create$1j({
|
|
|
313
313
|
emits: ["click"],
|
|
314
314
|
setup(props, { emit }) {
|
|
315
315
|
const classes = computed(() => {
|
|
316
|
-
const prefixCls = componentName$
|
|
316
|
+
const prefixCls = componentName$11;
|
|
317
317
|
return {
|
|
318
318
|
[prefixCls]: true,
|
|
319
319
|
[`${prefixCls}--clickable`]: props.isLink || props.to
|
|
@@ -340,9 +340,9 @@ const _sfc_main$1j = create$1j({
|
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
342
|
});
|
|
343
|
-
const _hoisted_1$
|
|
344
|
-
const _hoisted_2$
|
|
345
|
-
function _sfc_render$
|
|
343
|
+
const _hoisted_1$Z = { class: "title" };
|
|
344
|
+
const _hoisted_2$O = { class: "nut-cell__title-desc" };
|
|
345
|
+
function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
346
346
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
347
347
|
return openBlock(), createElementBlock("view", {
|
|
348
348
|
class: normalizeClass(_ctx.classes),
|
|
@@ -360,8 +360,8 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
360
360
|
name: _ctx.icon
|
|
361
361
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
362
362
|
_ctx.subTitle ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
363
|
-
createElementVNode("view", _hoisted_1$
|
|
364
|
-
createElementVNode("view", _hoisted_2$
|
|
363
|
+
createElementVNode("view", _hoisted_1$Z, toDisplayString(_ctx.title), 1),
|
|
364
|
+
createElementVNode("view", _hoisted_2$O, toDisplayString(_ctx.subTitle), 1)
|
|
365
365
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
366
366
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
367
367
|
], 64))
|
|
@@ -379,16 +379,16 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
379
379
|
])
|
|
380
380
|
], 6);
|
|
381
381
|
}
|
|
382
|
-
var Cell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
383
|
-
const { componentName: componentName$
|
|
384
|
-
const _sfc_main$
|
|
382
|
+
var Cell = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["render", _sfc_render$1f]]);
|
|
383
|
+
const { componentName: componentName$10, create: create$1l } = createComponent("cell-group");
|
|
384
|
+
const _sfc_main$1l = create$1l({
|
|
385
385
|
props: {
|
|
386
386
|
title: { type: String, default: "" },
|
|
387
387
|
desc: { type: String, default: "" }
|
|
388
388
|
},
|
|
389
389
|
setup() {
|
|
390
390
|
const classes = computed(() => {
|
|
391
|
-
const prefixCls = componentName$
|
|
391
|
+
const prefixCls = componentName$10;
|
|
392
392
|
return {
|
|
393
393
|
[prefixCls]: true
|
|
394
394
|
};
|
|
@@ -398,29 +398,29 @@ const _sfc_main$1i = create$1i({
|
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
400
|
});
|
|
401
|
-
const _hoisted_1$
|
|
401
|
+
const _hoisted_1$Y = {
|
|
402
402
|
key: 1,
|
|
403
403
|
class: "nut-cell-group__title"
|
|
404
404
|
};
|
|
405
|
-
const _hoisted_2$
|
|
405
|
+
const _hoisted_2$N = {
|
|
406
406
|
key: 3,
|
|
407
407
|
class: "nut-cell-group__desc"
|
|
408
408
|
};
|
|
409
|
-
const _hoisted_3$
|
|
410
|
-
function _sfc_render$
|
|
409
|
+
const _hoisted_3$B = { class: "nut-cell-group__warp" };
|
|
410
|
+
function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
411
411
|
return openBlock(), createElementBlock("view", {
|
|
412
412
|
class: normalizeClass(_ctx.classes)
|
|
413
413
|
}, [
|
|
414
|
-
_ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$
|
|
415
|
-
_ctx.$slots.desc ? renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
416
|
-
createElementVNode("view", _hoisted_3$
|
|
414
|
+
_ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$Y, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
415
|
+
_ctx.$slots.desc ? renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_2$N, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
416
|
+
createElementVNode("view", _hoisted_3$B, [
|
|
417
417
|
renderSlot(_ctx.$slots, "default")
|
|
418
418
|
])
|
|
419
419
|
], 2);
|
|
420
420
|
}
|
|
421
|
-
var CellGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
422
|
-
const { componentName: componentName
|
|
423
|
-
const _sfc_main$
|
|
421
|
+
var CellGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_render$1e]]);
|
|
422
|
+
const { componentName: componentName$$, create: create$1k } = createComponent("price");
|
|
423
|
+
const _sfc_main$1k = create$1k({
|
|
424
424
|
props: {
|
|
425
425
|
price: {
|
|
426
426
|
type: [Number, String],
|
|
@@ -435,7 +435,7 @@ const _sfc_main$1h = create$1h({
|
|
|
435
435
|
default: "¥"
|
|
436
436
|
},
|
|
437
437
|
decimalDigits: {
|
|
438
|
-
type: Number,
|
|
438
|
+
type: [Number, String],
|
|
439
439
|
default: 2
|
|
440
440
|
},
|
|
441
441
|
thousands: {
|
|
@@ -454,7 +454,7 @@ const _sfc_main$1h = create$1h({
|
|
|
454
454
|
setup(props) {
|
|
455
455
|
const classes = computed(() => {
|
|
456
456
|
return {
|
|
457
|
-
[componentName
|
|
457
|
+
[componentName$$]: true
|
|
458
458
|
};
|
|
459
459
|
});
|
|
460
460
|
const showSymbol = computed(() => {
|
|
@@ -503,9 +503,9 @@ const _sfc_main$1h = create$1h({
|
|
|
503
503
|
};
|
|
504
504
|
}
|
|
505
505
|
});
|
|
506
|
-
const _hoisted_1$
|
|
507
|
-
const _hoisted_2$
|
|
508
|
-
function _sfc_render$
|
|
506
|
+
const _hoisted_1$X = ["innerHTML"];
|
|
507
|
+
const _hoisted_2$M = ["innerHTML"];
|
|
508
|
+
function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
509
509
|
return openBlock(), createElementBlock("view", {
|
|
510
510
|
class: normalizeClass(_ctx.classes)
|
|
511
511
|
}, [
|
|
@@ -513,7 +513,7 @@ function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
513
513
|
key: 0,
|
|
514
514
|
class: normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
|
|
515
515
|
innerHTML: _ctx.showSymbol
|
|
516
|
-
}, null, 10, _hoisted_1$
|
|
516
|
+
}, null, 10, _hoisted_1$X)) : createCommentVNode("", true),
|
|
517
517
|
createElementVNode("view", {
|
|
518
518
|
class: normalizeClass(`nut-price--${_ctx.size}`)
|
|
519
519
|
}, toDisplayString(_ctx.formatThousands(_ctx.price)), 3),
|
|
@@ -528,11 +528,11 @@ function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
528
528
|
key: 2,
|
|
529
529
|
class: normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
|
|
530
530
|
innerHTML: _ctx.showSymbol
|
|
531
|
-
}, null, 10, _hoisted_2$
|
|
531
|
+
}, null, 10, _hoisted_2$M)) : createCommentVNode("", true)
|
|
532
532
|
], 2);
|
|
533
533
|
}
|
|
534
|
-
var Price = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
535
|
-
const { componentName: componentName$
|
|
534
|
+
var Price = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$1d]]);
|
|
535
|
+
const { componentName: componentName$_, create: create$1j } = createComponent("overlay");
|
|
536
536
|
const overlayProps = {
|
|
537
537
|
visible: {
|
|
538
538
|
type: Boolean,
|
|
@@ -562,12 +562,12 @@ const overlayProps = {
|
|
|
562
562
|
default: true
|
|
563
563
|
}
|
|
564
564
|
};
|
|
565
|
-
const _sfc_main$
|
|
565
|
+
const _sfc_main$1j = create$1j({
|
|
566
566
|
props: overlayProps,
|
|
567
567
|
emits: ["click", "update:visible"],
|
|
568
568
|
setup(props, { emit }) {
|
|
569
569
|
const classes = computed(() => {
|
|
570
|
-
const prefixCls = componentName$
|
|
570
|
+
const prefixCls = componentName$_;
|
|
571
571
|
return {
|
|
572
572
|
[prefixCls]: true,
|
|
573
573
|
[props.overlayClass]: true
|
|
@@ -607,7 +607,7 @@ const _sfc_main$1g = create$1g({
|
|
|
607
607
|
return { classes, style, touchmove, onClick };
|
|
608
608
|
}
|
|
609
609
|
});
|
|
610
|
-
function _sfc_render$
|
|
610
|
+
function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
611
611
|
return openBlock(), createBlock(Transition, { name: "overlay-fade" }, {
|
|
612
612
|
default: withCtx(() => [
|
|
613
613
|
withDirectives(createElementVNode("view", {
|
|
@@ -624,9 +624,9 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
624
624
|
_: 3
|
|
625
625
|
});
|
|
626
626
|
}
|
|
627
|
-
var OverLay = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
628
|
-
const { componentName: componentName$
|
|
629
|
-
const _sfc_main$
|
|
627
|
+
var OverLay = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["render", _sfc_render$1c]]);
|
|
628
|
+
const { componentName: componentName$Z, create: create$1i } = createComponent("divider");
|
|
629
|
+
const _sfc_main$1i = create$1i({
|
|
630
630
|
props: {
|
|
631
631
|
contentPosition: {
|
|
632
632
|
type: String,
|
|
@@ -644,7 +644,7 @@ const _sfc_main$1f = create$1f({
|
|
|
644
644
|
components: {},
|
|
645
645
|
setup(props, context) {
|
|
646
646
|
const classes = computed(() => {
|
|
647
|
-
const prefixCls = componentName$
|
|
647
|
+
const prefixCls = componentName$Z;
|
|
648
648
|
return {
|
|
649
649
|
[prefixCls]: true,
|
|
650
650
|
[`${prefixCls}-center`]: context.slots.default,
|
|
@@ -657,18 +657,18 @@ const _sfc_main$1f = create$1f({
|
|
|
657
657
|
return { classes };
|
|
658
658
|
}
|
|
659
659
|
});
|
|
660
|
-
function _sfc_render$
|
|
660
|
+
function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
661
661
|
return openBlock(), createElementBlock("div", {
|
|
662
662
|
class: normalizeClass(_ctx.classes)
|
|
663
663
|
}, [
|
|
664
664
|
renderSlot(_ctx.$slots, "default")
|
|
665
665
|
], 2);
|
|
666
666
|
}
|
|
667
|
-
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
668
|
-
const { create: create$
|
|
669
|
-
const _sfc_main$
|
|
670
|
-
const { componentName: componentName$
|
|
671
|
-
const _sfc_main$
|
|
667
|
+
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["render", _sfc_render$1b]]);
|
|
668
|
+
const { create: create$1h } = createComponent("layout");
|
|
669
|
+
const _sfc_main$1h = create$1h({});
|
|
670
|
+
const { componentName: componentName$Y, create: create$1g } = createComponent("col");
|
|
671
|
+
const _sfc_main$1g = create$1g({
|
|
672
672
|
props: {
|
|
673
673
|
span: {
|
|
674
674
|
type: [String, Number],
|
|
@@ -680,7 +680,7 @@ const _sfc_main$1d = create$1d({
|
|
|
680
680
|
}
|
|
681
681
|
},
|
|
682
682
|
setup(props) {
|
|
683
|
-
const prefixCls = componentName$
|
|
683
|
+
const prefixCls = componentName$Y;
|
|
684
684
|
const gutter = inject("gutter");
|
|
685
685
|
const classes = computed(() => {
|
|
686
686
|
return {
|
|
@@ -702,7 +702,7 @@ const _sfc_main$1d = create$1d({
|
|
|
702
702
|
};
|
|
703
703
|
}
|
|
704
704
|
});
|
|
705
|
-
function _sfc_render$
|
|
705
|
+
function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
706
706
|
return openBlock(), createElementBlock("view", {
|
|
707
707
|
class: normalizeClass(_ctx.classes),
|
|
708
708
|
style: normalizeStyle(_ctx.style)
|
|
@@ -710,9 +710,9 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
710
710
|
renderSlot(_ctx.$slots, "default")
|
|
711
711
|
], 6);
|
|
712
712
|
}
|
|
713
|
-
var Col = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
714
|
-
const { componentName: componentName$
|
|
715
|
-
const _sfc_main$
|
|
713
|
+
var Col = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["render", _sfc_render$1a]]);
|
|
714
|
+
const { componentName: componentName$X, create: create$1f } = createComponent("row");
|
|
715
|
+
const _sfc_main$1f = create$1f({
|
|
716
716
|
props: {
|
|
717
717
|
type: {
|
|
718
718
|
type: String,
|
|
@@ -736,7 +736,7 @@ const _sfc_main$1c = create$1c({
|
|
|
736
736
|
}
|
|
737
737
|
},
|
|
738
738
|
setup(props) {
|
|
739
|
-
const prefixCls = componentName$
|
|
739
|
+
const prefixCls = componentName$X;
|
|
740
740
|
provide("gutter", props.gutter);
|
|
741
741
|
const getClass = (prefix, type) => {
|
|
742
742
|
return prefix ? type ? `nut-row-${prefix}-${type}` : "" : `nut-row-${type}`;
|
|
@@ -755,14 +755,14 @@ const _sfc_main$1c = create$1c({
|
|
|
755
755
|
};
|
|
756
756
|
}
|
|
757
757
|
});
|
|
758
|
-
function _sfc_render$
|
|
758
|
+
function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
759
759
|
return openBlock(), createElementBlock("view", {
|
|
760
760
|
class: normalizeClass(_ctx.getClasses())
|
|
761
761
|
}, [
|
|
762
762
|
renderSlot(_ctx.$slots, "default")
|
|
763
763
|
], 2);
|
|
764
764
|
}
|
|
765
|
-
var Row = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
765
|
+
var Row = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["render", _sfc_render$19]]);
|
|
766
766
|
let count = 0;
|
|
767
767
|
const CLSNAME = "nut-overflow-hidden";
|
|
768
768
|
const useLockScroll = (isLock) => {
|
|
@@ -780,7 +780,7 @@ const useLockScroll = (isLock) => {
|
|
|
780
780
|
};
|
|
781
781
|
return [lock, unlock];
|
|
782
782
|
};
|
|
783
|
-
const { componentName: componentName$
|
|
783
|
+
const { componentName: componentName$W, create: create$1e } = createComponent("popup");
|
|
784
784
|
let _zIndex = 2e3;
|
|
785
785
|
const popupProps = __spreadProps(__spreadValues({}, overlayProps), {
|
|
786
786
|
position: {
|
|
@@ -828,10 +828,10 @@ const popupProps = __spreadProps(__spreadValues({}, overlayProps), {
|
|
|
828
828
|
default: true
|
|
829
829
|
}
|
|
830
830
|
});
|
|
831
|
-
const _sfc_main$
|
|
831
|
+
const _sfc_main$1e = create$1e({
|
|
832
832
|
components: {
|
|
833
833
|
[OverLay.name]: OverLay,
|
|
834
|
-
[_sfc_main$
|
|
834
|
+
[_sfc_main$1o.name]: _sfc_main$1o
|
|
835
835
|
},
|
|
836
836
|
props: __spreadValues({}, popupProps),
|
|
837
837
|
emits: ["click", "click-close-icon", "open", "close", "opend", "closed", "update:visible", "click-overlay"],
|
|
@@ -841,11 +841,12 @@ const _sfc_main$1b = create$1b({
|
|
|
841
841
|
showSlot: true,
|
|
842
842
|
transitionName: `popup-fade-${props.position}`,
|
|
843
843
|
overLayCount: 1,
|
|
844
|
-
keepAlive: false
|
|
844
|
+
keepAlive: false,
|
|
845
|
+
closed: props.closeable
|
|
845
846
|
});
|
|
846
847
|
const [lockScroll, unlockScroll] = useLockScroll(() => props.lockScroll);
|
|
847
848
|
const classes = computed(() => {
|
|
848
|
-
const prefixCls = componentName$
|
|
849
|
+
const prefixCls = componentName$W;
|
|
849
850
|
return {
|
|
850
851
|
[prefixCls]: true,
|
|
851
852
|
["round"]: props.round,
|
|
@@ -938,6 +939,9 @@ const _sfc_main$1b = create$1b({
|
|
|
938
939
|
watch(() => props.position, (value) => {
|
|
939
940
|
value === "center" ? state.transitionName = "popup-fade" : state.transitionName = `popup-slide-${value}`;
|
|
940
941
|
});
|
|
942
|
+
watch(() => props.closeable, (value) => {
|
|
943
|
+
state.closed = value;
|
|
944
|
+
});
|
|
941
945
|
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
942
946
|
popStyle,
|
|
943
947
|
classes,
|
|
@@ -949,8 +953,8 @@ const _sfc_main$1b = create$1b({
|
|
|
949
953
|
});
|
|
950
954
|
}
|
|
951
955
|
});
|
|
952
|
-
const _hoisted_1$
|
|
953
|
-
function _sfc_render$
|
|
956
|
+
const _hoisted_1$W = { key: 1 };
|
|
957
|
+
function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
954
958
|
const _component_nut_overlay = resolveComponent("nut-overlay");
|
|
955
959
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
956
960
|
return _ctx.isWrapTeleport ? (openBlock(), createBlock(Teleport, {
|
|
@@ -980,7 +984,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
980
984
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
981
985
|
}, [
|
|
982
986
|
_ctx.showSlot ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
|
|
983
|
-
_ctx.
|
|
987
|
+
_ctx.closed ? (openBlock(), createElementBlock("view", {
|
|
984
988
|
key: 1,
|
|
985
989
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
|
|
986
990
|
class: normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
|
|
@@ -996,7 +1000,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
996
1000
|
]),
|
|
997
1001
|
_: 3
|
|
998
1002
|
}, 8, ["name", "onAfterEnter", "onAfterLeave"])
|
|
999
|
-
], 8, ["to"])) : (openBlock(), createElementBlock("view", _hoisted_1$
|
|
1003
|
+
], 8, ["to"])) : (openBlock(), createElementBlock("view", _hoisted_1$W, [
|
|
1000
1004
|
_ctx.overlay ? (openBlock(), createBlock(_component_nut_overlay, {
|
|
1001
1005
|
key: 0,
|
|
1002
1006
|
visible: _ctx.visible,
|
|
@@ -1020,7 +1024,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1020
1024
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
1021
1025
|
}, [
|
|
1022
1026
|
_ctx.showSlot ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
|
|
1023
|
-
_ctx.
|
|
1027
|
+
_ctx.closed ? (openBlock(), createElementBlock("view", {
|
|
1024
1028
|
key: 1,
|
|
1025
1029
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
|
|
1026
1030
|
class: normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
|
|
@@ -1038,7 +1042,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1038
1042
|
}, 8, ["name", "onAfterEnter", "onAfterLeave"])
|
|
1039
1043
|
]));
|
|
1040
1044
|
}
|
|
1041
|
-
var Popup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1045
|
+
var Popup = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$18]]);
|
|
1042
1046
|
const throttle = (func, wait, type) => {
|
|
1043
1047
|
if (type === 1) {
|
|
1044
1048
|
var previous = 0;
|
|
@@ -1064,8 +1068,8 @@ const throttle = (func, wait, type) => {
|
|
|
1064
1068
|
}
|
|
1065
1069
|
};
|
|
1066
1070
|
};
|
|
1067
|
-
const { create: create$
|
|
1068
|
-
const _sfc_main$
|
|
1071
|
+
const { create: create$1d } = createComponent("video");
|
|
1072
|
+
const _sfc_main$1d = create$1d({
|
|
1069
1073
|
props: {
|
|
1070
1074
|
source: {
|
|
1071
1075
|
type: Object,
|
|
@@ -1311,12 +1315,12 @@ const _sfc_main$1a = create$1a({
|
|
|
1311
1315
|
});
|
|
1312
1316
|
}
|
|
1313
1317
|
});
|
|
1314
|
-
const _hoisted_1$
|
|
1318
|
+
const _hoisted_1$V = {
|
|
1315
1319
|
class: "nut-video",
|
|
1316
1320
|
ref: "videocon"
|
|
1317
1321
|
};
|
|
1318
|
-
const _hoisted_2$
|
|
1319
|
-
const _hoisted_3$
|
|
1322
|
+
const _hoisted_2$L = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
|
|
1323
|
+
const _hoisted_3$A = ["src", "type"];
|
|
1320
1324
|
const _hoisted_4$r = { class: "current-time" };
|
|
1321
1325
|
const _hoisted_5$j = { class: "progress-container" };
|
|
1322
1326
|
const _hoisted_6$g = {
|
|
@@ -1334,8 +1338,8 @@ const _hoisted_9$6 = {
|
|
|
1334
1338
|
const _hoisted_10$4 = { class: "duration-time" };
|
|
1335
1339
|
const _hoisted_11$4 = { class: "nut-video-error" };
|
|
1336
1340
|
const _hoisted_12$4 = /* @__PURE__ */ createElementVNode("p", { class: "lose" }, "\u89C6\u9891\u52A0\u8F7D\u5931\u8D25", -1);
|
|
1337
|
-
function _sfc_render$
|
|
1338
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1341
|
+
function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1342
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
1339
1343
|
createElementVNode("video", {
|
|
1340
1344
|
ref: "root",
|
|
1341
1345
|
class: "nut-video-player",
|
|
@@ -1350,8 +1354,8 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1350
1354
|
createElementVNode("source", {
|
|
1351
1355
|
src: _ctx.source.src,
|
|
1352
1356
|
type: _ctx.source.type
|
|
1353
|
-
}, null, 8, _hoisted_3$
|
|
1354
|
-
], 40, _hoisted_2$
|
|
1357
|
+
}, null, 8, _hoisted_3$A)
|
|
1358
|
+
], 40, _hoisted_2$L),
|
|
1355
1359
|
_ctx.showToolbox && !_ctx.isDisabled ? (openBlock(), createElementBlock("div", {
|
|
1356
1360
|
key: 0,
|
|
1357
1361
|
class: "playing-mask",
|
|
@@ -1415,7 +1419,7 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1415
1419
|
])
|
|
1416
1420
|
], 512);
|
|
1417
1421
|
}
|
|
1418
|
-
var Video = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1422
|
+
var Video = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["render", _sfc_render$17]]);
|
|
1419
1423
|
const DISTANCE = 5;
|
|
1420
1424
|
function useTouch$1() {
|
|
1421
1425
|
const state = reactive({
|
|
@@ -1470,8 +1474,8 @@ function useExpose$1(apis) {
|
|
|
1470
1474
|
Object.assign(instance.proxy, apis);
|
|
1471
1475
|
}
|
|
1472
1476
|
}
|
|
1473
|
-
const { create: create$
|
|
1474
|
-
const _sfc_main$
|
|
1477
|
+
const { create: create$1c, componentName: componentName$V } = createComponent("swiper");
|
|
1478
|
+
const _sfc_main$1c = create$1c({
|
|
1475
1479
|
props: {
|
|
1476
1480
|
width: {
|
|
1477
1481
|
type: [Number, String],
|
|
@@ -1540,7 +1544,7 @@ const _sfc_main$19 = create$19({
|
|
|
1540
1544
|
});
|
|
1541
1545
|
const touch = useTouch$1();
|
|
1542
1546
|
const classes = computed(() => {
|
|
1543
|
-
const prefixCls = componentName$
|
|
1547
|
+
const prefixCls = componentName$V;
|
|
1544
1548
|
return {
|
|
1545
1549
|
[prefixCls]: true
|
|
1546
1550
|
};
|
|
@@ -1576,7 +1580,7 @@ const _sfc_main$19 = create$19({
|
|
|
1576
1580
|
state.children.push(child.proxy);
|
|
1577
1581
|
}
|
|
1578
1582
|
};
|
|
1579
|
-
const
|
|
1583
|
+
const range = (num, min, max) => {
|
|
1580
1584
|
return Math.min(Math.max(num, min), max);
|
|
1581
1585
|
};
|
|
1582
1586
|
const requestFrame = (fn) => {
|
|
@@ -1589,7 +1593,7 @@ const _sfc_main$19 = create$19({
|
|
|
1589
1593
|
}
|
|
1590
1594
|
let targetOffset = offset - currentPosition;
|
|
1591
1595
|
if (!props.loop) {
|
|
1592
|
-
targetOffset =
|
|
1596
|
+
targetOffset = range(targetOffset, minOffset.value, 0);
|
|
1593
1597
|
}
|
|
1594
1598
|
return targetOffset;
|
|
1595
1599
|
};
|
|
@@ -1597,9 +1601,9 @@ const _sfc_main$19 = create$19({
|
|
|
1597
1601
|
const { active } = state;
|
|
1598
1602
|
if (pace) {
|
|
1599
1603
|
if (props.loop) {
|
|
1600
|
-
return
|
|
1604
|
+
return range(active + pace, -1, childCount.value);
|
|
1601
1605
|
}
|
|
1602
|
-
return
|
|
1606
|
+
return range(active + pace, 0, childCount.value - 1);
|
|
1603
1607
|
}
|
|
1604
1608
|
return active;
|
|
1605
1609
|
};
|
|
@@ -1793,7 +1797,7 @@ const _sfc_main$19 = create$19({
|
|
|
1793
1797
|
state,
|
|
1794
1798
|
classes,
|
|
1795
1799
|
container,
|
|
1796
|
-
componentName: componentName$
|
|
1800
|
+
componentName: componentName$V,
|
|
1797
1801
|
isVertical,
|
|
1798
1802
|
slots,
|
|
1799
1803
|
activePagination,
|
|
@@ -1803,7 +1807,7 @@ const _sfc_main$19 = create$19({
|
|
|
1803
1807
|
};
|
|
1804
1808
|
}
|
|
1805
1809
|
});
|
|
1806
|
-
function _sfc_render$
|
|
1810
|
+
function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1807
1811
|
return openBlock(), createElementBlock("view", {
|
|
1808
1812
|
ref: "container",
|
|
1809
1813
|
class: normalizeClass(_ctx.classes),
|
|
@@ -1840,15 +1844,15 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1840
1844
|
], 2)) : createCommentVNode("", true)
|
|
1841
1845
|
], 34);
|
|
1842
1846
|
}
|
|
1843
|
-
var Swiper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1847
|
+
var Swiper = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["render", _sfc_render$16]]);
|
|
1844
1848
|
function useExpose(apis) {
|
|
1845
1849
|
const instance = getCurrentInstance();
|
|
1846
1850
|
if (instance) {
|
|
1847
1851
|
Object.assign(instance.proxy, apis);
|
|
1848
1852
|
}
|
|
1849
1853
|
}
|
|
1850
|
-
const { create: create$
|
|
1851
|
-
const _sfc_main$
|
|
1854
|
+
const { create: create$1b, componentName: componentName$U } = createComponent("swiper-item");
|
|
1855
|
+
const _sfc_main$1b = create$1b({
|
|
1852
1856
|
props: {},
|
|
1853
1857
|
setup(props, { slots }) {
|
|
1854
1858
|
const parent = inject("parent");
|
|
@@ -1857,7 +1861,7 @@ const _sfc_main$18 = create$18({
|
|
|
1857
1861
|
offset: 0
|
|
1858
1862
|
});
|
|
1859
1863
|
const classes = computed(() => {
|
|
1860
|
-
const prefixCls = componentName$
|
|
1864
|
+
const prefixCls = componentName$U;
|
|
1861
1865
|
return {
|
|
1862
1866
|
[prefixCls]: true
|
|
1863
1867
|
};
|
|
@@ -1883,7 +1887,7 @@ const _sfc_main$18 = create$18({
|
|
|
1883
1887
|
};
|
|
1884
1888
|
}
|
|
1885
1889
|
});
|
|
1886
|
-
function _sfc_render$
|
|
1890
|
+
function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1887
1891
|
return openBlock(), createElementBlock("view", {
|
|
1888
1892
|
class: normalizeClass(_ctx.classes),
|
|
1889
1893
|
style: normalizeStyle(_ctx.style)
|
|
@@ -1891,9 +1895,9 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1891
1895
|
renderSlot(_ctx.$slots, "default")
|
|
1892
1896
|
], 6);
|
|
1893
1897
|
}
|
|
1894
|
-
var SwiperItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1895
|
-
const { componentName: componentName$
|
|
1896
|
-
const _sfc_main$
|
|
1898
|
+
var SwiperItem = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$15]]);
|
|
1899
|
+
const { componentName: componentName$T, create: create$1a } = createComponent("imagepreview");
|
|
1900
|
+
const _sfc_main$1a = create$1a({
|
|
1897
1901
|
props: {
|
|
1898
1902
|
show: {
|
|
1899
1903
|
type: Boolean,
|
|
@@ -2066,9 +2070,9 @@ const _sfc_main$17 = create$17({
|
|
|
2066
2070
|
});
|
|
2067
2071
|
}
|
|
2068
2072
|
});
|
|
2069
|
-
const _hoisted_1$
|
|
2070
|
-
const _hoisted_2$
|
|
2071
|
-
function _sfc_render$
|
|
2073
|
+
const _hoisted_1$U = ["src"];
|
|
2074
|
+
const _hoisted_2$K = { class: "nut-imagepreview-index" };
|
|
2075
|
+
function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2072
2076
|
const _component_nut_video = resolveComponent("nut-video");
|
|
2073
2077
|
const _component_nut_swiper_item = resolveComponent("nut-swiper-item");
|
|
2074
2078
|
const _component_nut_swiper = resolveComponent("nut-swiper");
|
|
@@ -2116,7 +2120,7 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2116
2120
|
createElementVNode("img", {
|
|
2117
2121
|
src: item.src,
|
|
2118
2122
|
class: "nut-imagepreview-img"
|
|
2119
|
-
}, null, 8, _hoisted_1$
|
|
2123
|
+
}, null, 8, _hoisted_1$U)
|
|
2120
2124
|
]),
|
|
2121
2125
|
_: 2
|
|
2122
2126
|
}, 1024);
|
|
@@ -2125,12 +2129,12 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2125
2129
|
_: 1
|
|
2126
2130
|
}, 8, ["auto-play", "onChange", "init-page", "pagination-visible", "pagination-color"])) : createCommentVNode("", true)
|
|
2127
2131
|
], 32),
|
|
2128
|
-
createElementVNode("view", _hoisted_2$
|
|
2132
|
+
createElementVNode("view", _hoisted_2$K, toDisplayString(_ctx.active) + " / " + toDisplayString(_ctx.images.length + _ctx.videos.length), 1)
|
|
2129
2133
|
]),
|
|
2130
2134
|
_: 1
|
|
2131
2135
|
}, 8, ["visible", "onClick"]);
|
|
2132
2136
|
}
|
|
2133
|
-
var ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2137
|
+
var ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$14]]);
|
|
2134
2138
|
class ImagePreviewOptions {
|
|
2135
2139
|
constructor() {
|
|
2136
2140
|
__publicField(this, "show", false);
|
|
@@ -2235,8 +2239,8 @@ function useTouch() {
|
|
|
2235
2239
|
isHorizontal
|
|
2236
2240
|
};
|
|
2237
2241
|
}
|
|
2238
|
-
const { componentName: componentName$
|
|
2239
|
-
const _sfc_main$
|
|
2242
|
+
const { componentName: componentName$S, create: create$19 } = createComponent("swipe");
|
|
2243
|
+
const _sfc_main$19 = create$19({
|
|
2240
2244
|
props: {
|
|
2241
2245
|
name: {
|
|
2242
2246
|
type: String,
|
|
@@ -2258,7 +2262,7 @@ const _sfc_main$16 = create$16({
|
|
|
2258
2262
|
emits: ["open", "close"],
|
|
2259
2263
|
setup(props, { emit }) {
|
|
2260
2264
|
const classes = computed(() => {
|
|
2261
|
-
const prefixCls = componentName$
|
|
2265
|
+
const prefixCls = componentName$S;
|
|
2262
2266
|
return {
|
|
2263
2267
|
[prefixCls]: true
|
|
2264
2268
|
};
|
|
@@ -2382,16 +2386,16 @@ const _sfc_main$16 = create$16({
|
|
|
2382
2386
|
});
|
|
2383
2387
|
}
|
|
2384
2388
|
});
|
|
2385
|
-
const _hoisted_1$
|
|
2389
|
+
const _hoisted_1$T = {
|
|
2386
2390
|
class: "nut-swipe__left",
|
|
2387
2391
|
ref: "leftRef"
|
|
2388
2392
|
};
|
|
2389
|
-
const _hoisted_2$
|
|
2390
|
-
const _hoisted_3$
|
|
2393
|
+
const _hoisted_2$J = { class: "nut-swipe__content" };
|
|
2394
|
+
const _hoisted_3$z = {
|
|
2391
2395
|
class: "nut-swipe__right",
|
|
2392
2396
|
ref: "rightRef"
|
|
2393
2397
|
};
|
|
2394
|
-
function _sfc_render$
|
|
2398
|
+
function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2395
2399
|
return openBlock(), createElementBlock("view", {
|
|
2396
2400
|
class: normalizeClass(_ctx.classes),
|
|
2397
2401
|
style: normalizeStyle(_ctx.touchStyle),
|
|
@@ -2400,20 +2404,20 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2400
2404
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
|
|
2401
2405
|
onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
2402
2406
|
}, [
|
|
2403
|
-
createElementVNode("view", _hoisted_1$
|
|
2407
|
+
createElementVNode("view", _hoisted_1$T, [
|
|
2404
2408
|
renderSlot(_ctx.$slots, "left")
|
|
2405
2409
|
], 512),
|
|
2406
|
-
createElementVNode("view", _hoisted_2$
|
|
2410
|
+
createElementVNode("view", _hoisted_2$J, [
|
|
2407
2411
|
renderSlot(_ctx.$slots, "default")
|
|
2408
2412
|
]),
|
|
2409
|
-
createElementVNode("view", _hoisted_3$
|
|
2413
|
+
createElementVNode("view", _hoisted_3$z, [
|
|
2410
2414
|
renderSlot(_ctx.$slots, "right")
|
|
2411
2415
|
], 512)
|
|
2412
2416
|
], 38);
|
|
2413
2417
|
}
|
|
2414
|
-
var Swipe = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2415
|
-
const { componentName: componentName$
|
|
2416
|
-
const _sfc_main$
|
|
2418
|
+
var Swipe = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$13]]);
|
|
2419
|
+
const { componentName: componentName$R, create: create$18 } = createComponent("actionsheet");
|
|
2420
|
+
const _sfc_main$18 = create$18({
|
|
2417
2421
|
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
2418
2422
|
cancelTxt: {
|
|
2419
2423
|
type: String,
|
|
@@ -2451,7 +2455,7 @@ const _sfc_main$15 = create$15({
|
|
|
2451
2455
|
emits: ["cancel", "choose", "update:visible"],
|
|
2452
2456
|
setup(props, { emit }) {
|
|
2453
2457
|
const classes = computed(() => {
|
|
2454
|
-
const prefixCls = componentName$
|
|
2458
|
+
const prefixCls = componentName$R;
|
|
2455
2459
|
return {
|
|
2456
2460
|
[prefixCls]: true
|
|
2457
2461
|
};
|
|
@@ -2482,12 +2486,12 @@ const _sfc_main$15 = create$15({
|
|
|
2482
2486
|
};
|
|
2483
2487
|
}
|
|
2484
2488
|
});
|
|
2485
|
-
const _hoisted_1$
|
|
2486
|
-
const _hoisted_2$
|
|
2489
|
+
const _hoisted_1$S = { class: "nut-actionsheet-panel" };
|
|
2490
|
+
const _hoisted_2$I = {
|
|
2487
2491
|
key: 0,
|
|
2488
2492
|
class: "nut-actionsheet-title"
|
|
2489
2493
|
};
|
|
2490
|
-
const _hoisted_3$
|
|
2494
|
+
const _hoisted_3$y = {
|
|
2491
2495
|
key: 1,
|
|
2492
2496
|
class: "nut-actionsheet-item desc"
|
|
2493
2497
|
};
|
|
@@ -2497,7 +2501,7 @@ const _hoisted_4$q = {
|
|
|
2497
2501
|
};
|
|
2498
2502
|
const _hoisted_5$i = ["onClick"];
|
|
2499
2503
|
const _hoisted_6$f = { class: "subdesc" };
|
|
2500
|
-
function _sfc_render
|
|
2504
|
+
function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2501
2505
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
2502
2506
|
return openBlock(), createElementBlock("view", {
|
|
2503
2507
|
class: normalizeClass(_ctx.classes)
|
|
@@ -2510,9 +2514,9 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2510
2514
|
onClickOverlay: _ctx.close
|
|
2511
2515
|
}, {
|
|
2512
2516
|
default: withCtx(() => [
|
|
2513
|
-
createElementVNode("view", _hoisted_1$
|
|
2514
|
-
_ctx.title ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
2515
|
-
_ctx.description ? (openBlock(), createElementBlock("view", _hoisted_3$
|
|
2517
|
+
createElementVNode("view", _hoisted_1$S, [
|
|
2518
|
+
_ctx.title ? (openBlock(), createElementBlock("view", _hoisted_2$I, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
2519
|
+
_ctx.description ? (openBlock(), createElementBlock("view", _hoisted_3$y, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
|
|
2516
2520
|
_ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_4$q, [
|
|
2517
2521
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index) => {
|
|
2518
2522
|
return openBlock(), createElementBlock("view", {
|
|
@@ -2537,9 +2541,9 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2537
2541
|
}, 8, ["visible", "onClickOverlay"])
|
|
2538
2542
|
], 2);
|
|
2539
2543
|
}
|
|
2540
|
-
var ActionSheet = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2541
|
-
const { componentName: componentName$
|
|
2542
|
-
const _sfc_main$
|
|
2544
|
+
var ActionSheet = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["render", _sfc_render$12]]);
|
|
2545
|
+
const { componentName: componentName$Q, create: create$17 } = createComponent("backtop");
|
|
2546
|
+
const _sfc_main$17 = create$17({
|
|
2543
2547
|
props: {
|
|
2544
2548
|
bottom: {
|
|
2545
2549
|
type: Number,
|
|
@@ -2580,7 +2584,7 @@ const _sfc_main$14 = create$14({
|
|
|
2580
2584
|
keepAlive: false
|
|
2581
2585
|
});
|
|
2582
2586
|
const classes = computed(() => {
|
|
2583
|
-
const prefixCls = componentName$
|
|
2587
|
+
const prefixCls = componentName$Q;
|
|
2584
2588
|
return {
|
|
2585
2589
|
[prefixCls]: true,
|
|
2586
2590
|
show: state.backTop
|
|
@@ -2671,7 +2675,7 @@ const _sfc_main$14 = create$14({
|
|
|
2671
2675
|
};
|
|
2672
2676
|
}
|
|
2673
2677
|
});
|
|
2674
|
-
function _sfc_render$
|
|
2678
|
+
function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2675
2679
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
2676
2680
|
return openBlock(), createElementBlock("div", {
|
|
2677
2681
|
class: normalizeClass(_ctx.classes),
|
|
@@ -2687,9 +2691,9 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2687
2691
|
])
|
|
2688
2692
|
], 6);
|
|
2689
2693
|
}
|
|
2690
|
-
var BackTop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2691
|
-
const { create: create$
|
|
2692
|
-
const _sfc_main$
|
|
2694
|
+
var BackTop = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["render", _sfc_render$11]]);
|
|
2695
|
+
const { create: create$16 } = createComponent("collapse");
|
|
2696
|
+
const _sfc_main$16 = create$16({
|
|
2693
2697
|
props: {
|
|
2694
2698
|
active: {
|
|
2695
2699
|
type: [String, Number, Array]
|
|
@@ -2762,14 +2766,14 @@ const _sfc_main$13 = create$13({
|
|
|
2762
2766
|
});
|
|
2763
2767
|
}
|
|
2764
2768
|
});
|
|
2765
|
-
function _sfc_render$
|
|
2769
|
+
function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2766
2770
|
return openBlock(), createElementBlock("view", null, [
|
|
2767
2771
|
renderSlot(_ctx.$slots, "default")
|
|
2768
2772
|
]);
|
|
2769
2773
|
}
|
|
2770
|
-
var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2771
|
-
const { create: create$
|
|
2772
|
-
const _sfc_main$
|
|
2774
|
+
var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_render$10]]);
|
|
2775
|
+
const { create: create$15, componentName: componentName$P } = createComponent("collapse-item");
|
|
2776
|
+
const _sfc_main$15 = create$15({
|
|
2773
2777
|
props: {
|
|
2774
2778
|
title: {
|
|
2775
2779
|
type: String,
|
|
@@ -2792,11 +2796,11 @@ const _sfc_main$12 = create$12({
|
|
|
2792
2796
|
type: Object
|
|
2793
2797
|
}
|
|
2794
2798
|
},
|
|
2795
|
-
setup(props) {
|
|
2799
|
+
setup(props, ctx) {
|
|
2796
2800
|
const collapse = inject("collapseParent");
|
|
2797
2801
|
const parent = reactive(collapse);
|
|
2798
2802
|
const classes = computed(() => {
|
|
2799
|
-
const prefixCls = componentName$
|
|
2803
|
+
const prefixCls = componentName$P;
|
|
2800
2804
|
return {
|
|
2801
2805
|
[prefixCls]: true,
|
|
2802
2806
|
[`${prefixCls}-icon`]: parent.props.icon
|
|
@@ -2836,7 +2840,7 @@ const _sfc_main$12 = create$12({
|
|
|
2836
2840
|
if (!wrapperRefEle || !contentRefEle) {
|
|
2837
2841
|
return;
|
|
2838
2842
|
}
|
|
2839
|
-
const offsetHeight = contentRefEle.offsetHeight;
|
|
2843
|
+
const offsetHeight = contentRefEle.offsetHeight || "auto";
|
|
2840
2844
|
if (offsetHeight) {
|
|
2841
2845
|
const contentHeight = `${offsetHeight}px`;
|
|
2842
2846
|
wrapperRefEle.style.willChange = "height";
|
|
@@ -2895,6 +2899,14 @@ const _sfc_main$12 = create$12({
|
|
|
2895
2899
|
proxyData.openExpanded = true;
|
|
2896
2900
|
}
|
|
2897
2901
|
});
|
|
2902
|
+
watch(() => {
|
|
2903
|
+
var _a, _b;
|
|
2904
|
+
return (_b = (_a = ctx == null ? void 0 : ctx.slots) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a);
|
|
2905
|
+
}, () => {
|
|
2906
|
+
setTimeout(() => {
|
|
2907
|
+
animation();
|
|
2908
|
+
}, 300);
|
|
2909
|
+
});
|
|
2898
2910
|
onMounted(() => {
|
|
2899
2911
|
const { name } = props;
|
|
2900
2912
|
const active = parent && parent.props.active;
|
|
@@ -2921,9 +2933,9 @@ const _sfc_main$12 = create$12({
|
|
|
2921
2933
|
});
|
|
2922
2934
|
}
|
|
2923
2935
|
});
|
|
2924
|
-
const _hoisted_1$
|
|
2925
|
-
const _hoisted_2$
|
|
2926
|
-
const _hoisted_3$
|
|
2936
|
+
const _hoisted_1$R = { class: "collapse-title" };
|
|
2937
|
+
const _hoisted_2$H = { class: "collapse-title-value" };
|
|
2938
|
+
const _hoisted_3$x = ["innerHTML"];
|
|
2927
2939
|
const _hoisted_4$p = {
|
|
2928
2940
|
key: 0,
|
|
2929
2941
|
class: "subTitle"
|
|
@@ -2937,7 +2949,7 @@ const _hoisted_7$a = {
|
|
|
2937
2949
|
class: "collapse-content",
|
|
2938
2950
|
ref: "contentRef"
|
|
2939
2951
|
};
|
|
2940
|
-
function _sfc_render
|
|
2952
|
+
function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2941
2953
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
2942
2954
|
return openBlock(), createElementBlock("view", {
|
|
2943
2955
|
class: normalizeClass(_ctx.classes)
|
|
@@ -2946,9 +2958,9 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2946
2958
|
class: normalizeClass(["collapse-item", { "item-expanded": _ctx.openExpanded }, { "nut-collapse-item-disabled": _ctx.disabled }]),
|
|
2947
2959
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggleOpen && _ctx.toggleOpen(...args))
|
|
2948
2960
|
}, [
|
|
2949
|
-
createElementVNode("view", _hoisted_1$
|
|
2961
|
+
createElementVNode("view", _hoisted_1$R, [
|
|
2950
2962
|
createElementVNode("view", null, [
|
|
2951
|
-
createElementVNode("view", _hoisted_2$
|
|
2963
|
+
createElementVNode("view", _hoisted_2$H, [
|
|
2952
2964
|
_ctx.titleIcon ? (openBlock(), createBlock(_component_nut_icon, {
|
|
2953
2965
|
key: 0,
|
|
2954
2966
|
name: _ctx.titleIcon,
|
|
@@ -2960,7 +2972,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2960
2972
|
key: 2,
|
|
2961
2973
|
innerHTML: _ctx.title,
|
|
2962
2974
|
class: "collapse-icon-title"
|
|
2963
|
-
}, null, 8, _hoisted_3$
|
|
2975
|
+
}, null, 8, _hoisted_3$x))
|
|
2964
2976
|
])
|
|
2965
2977
|
])
|
|
2966
2978
|
]),
|
|
@@ -2987,7 +2999,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2987
2999
|
], 512)
|
|
2988
3000
|
], 2);
|
|
2989
3001
|
}
|
|
2990
|
-
var CollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3002
|
+
var CollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["render", _sfc_render$$]]);
|
|
2991
3003
|
const _window = window;
|
|
2992
3004
|
function requestAniFrame() {
|
|
2993
3005
|
if (typeof _window !== "undefined") {
|
|
@@ -3001,8 +3013,8 @@ function requestAniFrame() {
|
|
|
3001
3013
|
}
|
|
3002
3014
|
}
|
|
3003
3015
|
var requestAniFrame$1 = requestAniFrame();
|
|
3004
|
-
const { componentName: componentName$
|
|
3005
|
-
const _sfc_main$
|
|
3016
|
+
const { componentName: componentName$O, create: create$14 } = createComponent("drag");
|
|
3017
|
+
const _sfc_main$14 = create$14({
|
|
3006
3018
|
props: {
|
|
3007
3019
|
attract: {
|
|
3008
3020
|
type: Boolean,
|
|
@@ -3047,7 +3059,7 @@ const _sfc_main$11 = create$11({
|
|
|
3047
3059
|
}
|
|
3048
3060
|
});
|
|
3049
3061
|
const classes = computed(() => {
|
|
3050
|
-
const prefixCls = componentName$
|
|
3062
|
+
const prefixCls = componentName$O;
|
|
3051
3063
|
return {
|
|
3052
3064
|
[prefixCls]: true
|
|
3053
3065
|
};
|
|
@@ -3182,7 +3194,7 @@ const _sfc_main$11 = create$11({
|
|
|
3182
3194
|
};
|
|
3183
3195
|
}
|
|
3184
3196
|
});
|
|
3185
|
-
function _sfc_render$
|
|
3197
|
+
function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3186
3198
|
return openBlock(), createElementBlock("view", {
|
|
3187
3199
|
class: normalizeClass(_ctx.classes),
|
|
3188
3200
|
ref: "myDrag",
|
|
@@ -3193,9 +3205,9 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3193
3205
|
renderSlot(_ctx.$slots, "default")
|
|
3194
3206
|
], 34);
|
|
3195
3207
|
}
|
|
3196
|
-
var Drag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3197
|
-
const { componentName: componentName$
|
|
3198
|
-
const _sfc_main$
|
|
3208
|
+
var Drag = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_render$_]]);
|
|
3209
|
+
const { componentName: componentName$N, create: create$13 } = createComponent("dialog");
|
|
3210
|
+
const _sfc_main$13 = create$13({
|
|
3199
3211
|
inheritAttrs: false,
|
|
3200
3212
|
components: {
|
|
3201
3213
|
[Popup.name]: Popup,
|
|
@@ -3270,7 +3282,7 @@ const _sfc_main$10 = create$10({
|
|
|
3270
3282
|
});
|
|
3271
3283
|
const classes = computed(() => {
|
|
3272
3284
|
return {
|
|
3273
|
-
[componentName$
|
|
3285
|
+
[componentName$N]: true
|
|
3274
3286
|
};
|
|
3275
3287
|
});
|
|
3276
3288
|
const update = (val) => {
|
|
@@ -3300,12 +3312,12 @@ const _sfc_main$10 = create$10({
|
|
|
3300
3312
|
};
|
|
3301
3313
|
}
|
|
3302
3314
|
});
|
|
3303
|
-
const _hoisted_1$
|
|
3315
|
+
const _hoisted_1$Q = {
|
|
3304
3316
|
key: 0,
|
|
3305
3317
|
class: "nut-dialog__header"
|
|
3306
3318
|
};
|
|
3307
|
-
const _hoisted_2$
|
|
3308
|
-
function _sfc_render$
|
|
3319
|
+
const _hoisted_2$G = ["innerHTML"];
|
|
3320
|
+
function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3309
3321
|
const _component_nut_button = resolveComponent("nut-button");
|
|
3310
3322
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
3311
3323
|
return openBlock(), createBlock(_component_nut_popup, {
|
|
@@ -3322,7 +3334,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3322
3334
|
createElementVNode("view", {
|
|
3323
3335
|
class: normalizeClass(_ctx.classes)
|
|
3324
3336
|
}, [
|
|
3325
|
-
_ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$
|
|
3337
|
+
_ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$Q, [
|
|
3326
3338
|
_ctx.$slots.header ? renderSlot(_ctx.$slots, "header", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
3327
3339
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
3328
3340
|
], 64))
|
|
@@ -3334,7 +3346,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3334
3346
|
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("view", {
|
|
3335
3347
|
key: 1,
|
|
3336
3348
|
innerHTML: _ctx.content
|
|
3337
|
-
}, null, 8, _hoisted_2$
|
|
3349
|
+
}, null, 8, _hoisted_2$G))
|
|
3338
3350
|
], 4),
|
|
3339
3351
|
!_ctx.noFooter ? (openBlock(), createElementBlock("view", {
|
|
3340
3352
|
key: 1,
|
|
@@ -3374,7 +3386,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3374
3386
|
_: 3
|
|
3375
3387
|
}, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "onClickOverlay", "onClickCloseIcon"]);
|
|
3376
3388
|
}
|
|
3377
|
-
var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3389
|
+
var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$Z]]);
|
|
3378
3390
|
class DialogOptions {
|
|
3379
3391
|
constructor() {
|
|
3380
3392
|
__publicField(this, "title", "");
|
|
@@ -3448,8 +3460,8 @@ _Dialog.install = (app) => {
|
|
|
3448
3460
|
app.use(Dialog);
|
|
3449
3461
|
app.config.globalProperties.$dialog = _Dialog;
|
|
3450
3462
|
};
|
|
3451
|
-
const { componentName: componentName$
|
|
3452
|
-
const _sfc_main
|
|
3463
|
+
const { componentName: componentName$M, create: create$12 } = createComponent("infiniteloading");
|
|
3464
|
+
const _sfc_main$12 = create$12({
|
|
3453
3465
|
props: {
|
|
3454
3466
|
hasMore: {
|
|
3455
3467
|
type: Boolean,
|
|
@@ -3511,7 +3523,7 @@ const _sfc_main$$ = create$$({
|
|
|
3511
3523
|
distance: 0
|
|
3512
3524
|
});
|
|
3513
3525
|
const classes = computed(() => {
|
|
3514
|
-
const prefixCls = componentName$
|
|
3526
|
+
const prefixCls = componentName$M;
|
|
3515
3527
|
return {
|
|
3516
3528
|
[prefixCls]: true
|
|
3517
3529
|
};
|
|
@@ -3635,9 +3647,9 @@ const _sfc_main$$ = create$$({
|
|
|
3635
3647
|
});
|
|
3636
3648
|
}
|
|
3637
3649
|
});
|
|
3638
|
-
const _hoisted_1$
|
|
3639
|
-
const _hoisted_2$
|
|
3640
|
-
const _hoisted_3$
|
|
3650
|
+
const _hoisted_1$P = { class: "top-box" };
|
|
3651
|
+
const _hoisted_2$F = { class: "top-text" };
|
|
3652
|
+
const _hoisted_3$w = { class: "nut-infinite-container" };
|
|
3641
3653
|
const _hoisted_4$o = { class: "nut-infinite-bottom" };
|
|
3642
3654
|
const _hoisted_5$g = {
|
|
3643
3655
|
key: 0,
|
|
@@ -3648,7 +3660,7 @@ const _hoisted_7$9 = {
|
|
|
3648
3660
|
key: 1,
|
|
3649
3661
|
class: "tips"
|
|
3650
3662
|
};
|
|
3651
|
-
function _sfc_render$
|
|
3663
|
+
function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3652
3664
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
3653
3665
|
return openBlock(), createElementBlock("view", {
|
|
3654
3666
|
class: normalizeClass(_ctx.classes),
|
|
@@ -3662,15 +3674,15 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3662
3674
|
ref: "refreshTop",
|
|
3663
3675
|
style: normalizeStyle(_ctx.getStyle)
|
|
3664
3676
|
}, [
|
|
3665
|
-
createElementVNode("view", _hoisted_1$
|
|
3677
|
+
createElementVNode("view", _hoisted_1$P, [
|
|
3666
3678
|
createVNode(_component_nut_icon, {
|
|
3667
3679
|
class: "top-img",
|
|
3668
3680
|
name: _ctx.pullIcon
|
|
3669
3681
|
}, null, 8, ["name"]),
|
|
3670
|
-
createElementVNode("view", _hoisted_2$
|
|
3682
|
+
createElementVNode("view", _hoisted_2$F, toDisplayString(_ctx.pullTxt), 1)
|
|
3671
3683
|
])
|
|
3672
3684
|
], 4),
|
|
3673
|
-
createElementVNode("view", _hoisted_3$
|
|
3685
|
+
createElementVNode("view", _hoisted_3$w, [
|
|
3674
3686
|
renderSlot(_ctx.$slots, "default")
|
|
3675
3687
|
]),
|
|
3676
3688
|
createElementVNode("view", _hoisted_4$o, [
|
|
@@ -3684,9 +3696,9 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3684
3696
|
])
|
|
3685
3697
|
], 34);
|
|
3686
3698
|
}
|
|
3687
|
-
var InfiniteLoading = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
3688
|
-
const { componentName: componentName$
|
|
3689
|
-
const _sfc_main$
|
|
3699
|
+
var InfiniteLoading = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$Y]]);
|
|
3700
|
+
const { componentName: componentName$L, create: create$11 } = createComponent("notify");
|
|
3701
|
+
const _sfc_main$11 = create$11({
|
|
3690
3702
|
components: {
|
|
3691
3703
|
[Popup.name]: Popup
|
|
3692
3704
|
},
|
|
@@ -3756,7 +3768,7 @@ const _sfc_main$_ = create$_({
|
|
|
3756
3768
|
return { state, hide, onAfterLeave, clickCover };
|
|
3757
3769
|
}
|
|
3758
3770
|
});
|
|
3759
|
-
function _sfc_render$
|
|
3771
|
+
function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3760
3772
|
return openBlock(), createBlock(Transition, {
|
|
3761
3773
|
name: "toast-fade",
|
|
3762
3774
|
onAfterLeave: _ctx.onAfterLeave
|
|
@@ -3777,7 +3789,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3777
3789
|
_: 3
|
|
3778
3790
|
}, 8, ["onAfterLeave"]);
|
|
3779
3791
|
}
|
|
3780
|
-
var Notify = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3792
|
+
var Notify = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$X]]);
|
|
3781
3793
|
const defaultOptions$1 = {
|
|
3782
3794
|
type: "base",
|
|
3783
3795
|
showPopup: false,
|
|
@@ -3915,8 +3927,8 @@ const useRect = (elementRef) => {
|
|
|
3915
3927
|
height: 0
|
|
3916
3928
|
};
|
|
3917
3929
|
};
|
|
3918
|
-
const { componentName: componentName$
|
|
3919
|
-
const _sfc_main$
|
|
3930
|
+
const { componentName: componentName$K, create: create$10 } = createComponent("range");
|
|
3931
|
+
const _sfc_main$10 = create$10({
|
|
3920
3932
|
props: {
|
|
3921
3933
|
range: {
|
|
3922
3934
|
type: Boolean,
|
|
@@ -3961,7 +3973,7 @@ const _sfc_main$Z = create$Z({
|
|
|
3961
3973
|
const touch = useTouch();
|
|
3962
3974
|
const scope = computed(() => Number(props.max) - Number(props.min));
|
|
3963
3975
|
const classes = computed(() => {
|
|
3964
|
-
const prefixCls = componentName$
|
|
3976
|
+
const prefixCls = componentName$K;
|
|
3965
3977
|
return {
|
|
3966
3978
|
[prefixCls]: true,
|
|
3967
3979
|
[`${prefixCls}-disabled`]: props.disabled,
|
|
@@ -4112,12 +4124,12 @@ const _sfc_main$Z = create$Z({
|
|
|
4112
4124
|
});
|
|
4113
4125
|
}
|
|
4114
4126
|
});
|
|
4115
|
-
const _hoisted_1$
|
|
4116
|
-
const _hoisted_2$
|
|
4127
|
+
const _hoisted_1$O = { class: "nut-range-container" };
|
|
4128
|
+
const _hoisted_2$E = {
|
|
4117
4129
|
key: 0,
|
|
4118
4130
|
class: "min"
|
|
4119
4131
|
};
|
|
4120
|
-
const _hoisted_3$
|
|
4132
|
+
const _hoisted_3$v = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
|
|
4121
4133
|
const _hoisted_4$n = {
|
|
4122
4134
|
key: 0,
|
|
4123
4135
|
class: "number"
|
|
@@ -4131,9 +4143,9 @@ const _hoisted_7$8 = {
|
|
|
4131
4143
|
key: 1,
|
|
4132
4144
|
class: "max"
|
|
4133
4145
|
};
|
|
4134
|
-
function _sfc_render$
|
|
4135
|
-
return openBlock(), createElementBlock("view", _hoisted_1$
|
|
4136
|
-
!_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
4146
|
+
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4147
|
+
return openBlock(), createElementBlock("view", _hoisted_1$O, [
|
|
4148
|
+
!_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_2$E, toDisplayString(+_ctx.min), 1)) : createCommentVNode("", true),
|
|
4137
4149
|
createElementVNode("view", {
|
|
4138
4150
|
ref: "root",
|
|
4139
4151
|
style: normalizeStyle(_ctx.wrapperStyle),
|
|
@@ -4175,7 +4187,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4175
4187
|
}, [
|
|
4176
4188
|
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_4$n, toDisplayString(_ctx.curValue(index)), 1)) : createCommentVNode("", true)
|
|
4177
4189
|
], 4))
|
|
4178
|
-
], 42, _hoisted_3$
|
|
4190
|
+
], 42, _hoisted_3$v);
|
|
4179
4191
|
}), 64)) : (openBlock(), createElementBlock("view", {
|
|
4180
4192
|
key: 1,
|
|
4181
4193
|
role: "slider",
|
|
@@ -4198,7 +4210,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4198
4210
|
class: "nut-range-button",
|
|
4199
4211
|
style: normalizeStyle(_ctx.buttonStyle)
|
|
4200
4212
|
}, [
|
|
4201
|
-
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_6$c, toDisplayString(_ctx.curValue(
|
|
4213
|
+
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_6$c, toDisplayString(_ctx.curValue()), 1)) : createCommentVNode("", true)
|
|
4202
4214
|
], 4))
|
|
4203
4215
|
], 40, _hoisted_5$f))
|
|
4204
4216
|
], 4)
|
|
@@ -4206,9 +4218,9 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4206
4218
|
!_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_7$8, toDisplayString(+_ctx.max), 1)) : createCommentVNode("", true)
|
|
4207
4219
|
]);
|
|
4208
4220
|
}
|
|
4209
|
-
var Range = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4210
|
-
const { create: create
|
|
4211
|
-
const _sfc_main
|
|
4221
|
+
var Range = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$W]]);
|
|
4222
|
+
const { create: create$$, componentName: componentName$J } = createComponent("steps");
|
|
4223
|
+
const _sfc_main$$ = create$$({
|
|
4212
4224
|
props: {
|
|
4213
4225
|
direction: {
|
|
4214
4226
|
type: String,
|
|
@@ -4228,7 +4240,7 @@ const _sfc_main$Y = create$Y({
|
|
|
4228
4240
|
children: []
|
|
4229
4241
|
});
|
|
4230
4242
|
const classes = computed(() => {
|
|
4231
|
-
const prefixCls = componentName$
|
|
4243
|
+
const prefixCls = componentName$J;
|
|
4232
4244
|
return {
|
|
4233
4245
|
[prefixCls]: true,
|
|
4234
4246
|
[`${prefixCls}-${props.direction}`]: true,
|
|
@@ -4251,8 +4263,8 @@ const _sfc_main$Y = create$Y({
|
|
|
4251
4263
|
};
|
|
4252
4264
|
}
|
|
4253
4265
|
});
|
|
4254
|
-
const { create: create$
|
|
4255
|
-
const _sfc_main$
|
|
4266
|
+
const { create: create$_, componentName: componentName$I } = createComponent("step");
|
|
4267
|
+
const _sfc_main$_ = create$_({
|
|
4256
4268
|
props: {
|
|
4257
4269
|
title: {
|
|
4258
4270
|
type: String,
|
|
@@ -4293,7 +4305,7 @@ const _sfc_main$X = create$X({
|
|
|
4293
4305
|
return getCurrentStatus();
|
|
4294
4306
|
});
|
|
4295
4307
|
const classes = computed(() => {
|
|
4296
|
-
const prefixCls = componentName$
|
|
4308
|
+
const prefixCls = componentName$I;
|
|
4297
4309
|
return {
|
|
4298
4310
|
[prefixCls]: true,
|
|
4299
4311
|
[`${prefixCls}-${status.value}`]: true
|
|
@@ -4305,22 +4317,22 @@ const _sfc_main$X = create$X({
|
|
|
4305
4317
|
});
|
|
4306
4318
|
}
|
|
4307
4319
|
});
|
|
4308
|
-
const _hoisted_1$
|
|
4309
|
-
const _hoisted_2$
|
|
4310
|
-
const _hoisted_3$
|
|
4320
|
+
const _hoisted_1$N = { class: "nut-step-head" };
|
|
4321
|
+
const _hoisted_2$D = /* @__PURE__ */ createElementVNode("view", { class: "nut-step-line" }, null, -1);
|
|
4322
|
+
const _hoisted_3$u = {
|
|
4311
4323
|
key: 2,
|
|
4312
4324
|
class: "nut-step-inner"
|
|
4313
4325
|
};
|
|
4314
4326
|
const _hoisted_4$m = { class: "nut-step-main" };
|
|
4315
4327
|
const _hoisted_5$e = { class: "nut-step-title" };
|
|
4316
4328
|
const _hoisted_6$b = ["innerHTML"];
|
|
4317
|
-
function _sfc_render$
|
|
4329
|
+
function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4318
4330
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
4319
4331
|
return openBlock(), createElementBlock("view", {
|
|
4320
4332
|
class: normalizeClass(_ctx.classes)
|
|
4321
4333
|
}, [
|
|
4322
|
-
createElementVNode("view", _hoisted_1$
|
|
4323
|
-
_hoisted_2$
|
|
4334
|
+
createElementVNode("view", _hoisted_1$N, [
|
|
4335
|
+
_hoisted_2$D,
|
|
4324
4336
|
createElementVNode("view", {
|
|
4325
4337
|
class: normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
|
|
4326
4338
|
}, [
|
|
@@ -4330,7 +4342,7 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4330
4342
|
color: _ctx.iconColor,
|
|
4331
4343
|
name: _ctx.icon,
|
|
4332
4344
|
size: _ctx.size
|
|
4333
|
-
}, null, 8, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3$
|
|
4345
|
+
}, null, 8, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3$u, toDisplayString(_ctx.index), 1))
|
|
4334
4346
|
], 2)
|
|
4335
4347
|
]),
|
|
4336
4348
|
createElementVNode("view", _hoisted_4$m, [
|
|
@@ -4343,9 +4355,9 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4343
4355
|
])
|
|
4344
4356
|
], 2);
|
|
4345
4357
|
}
|
|
4346
|
-
var Step = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4347
|
-
const { componentName: componentName$
|
|
4348
|
-
const _sfc_main$
|
|
4358
|
+
var Step = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$V]]);
|
|
4359
|
+
const { componentName: componentName$H, create: create$Z } = createComponent("switch");
|
|
4360
|
+
const _sfc_main$Z = create$Z({
|
|
4349
4361
|
props: {
|
|
4350
4362
|
modelValue: {
|
|
4351
4363
|
type: [String, Number, Boolean],
|
|
@@ -4400,7 +4412,7 @@ const _sfc_main$W = create$W({
|
|
|
4400
4412
|
setup(props, { emit }) {
|
|
4401
4413
|
const isActive = computed(() => props.modelValue === props.activeValue);
|
|
4402
4414
|
const classes = computed(() => {
|
|
4403
|
-
const prefixCls = componentName$
|
|
4415
|
+
const prefixCls = componentName$H;
|
|
4404
4416
|
return {
|
|
4405
4417
|
[prefixCls]: true,
|
|
4406
4418
|
[isActive.value ? "switch-open" : "switch-close"]: true,
|
|
@@ -4428,15 +4440,15 @@ const _sfc_main$W = create$W({
|
|
|
4428
4440
|
};
|
|
4429
4441
|
}
|
|
4430
4442
|
});
|
|
4431
|
-
const _hoisted_1$
|
|
4432
|
-
function _sfc_render$
|
|
4443
|
+
const _hoisted_1$M = { class: "switch-button" };
|
|
4444
|
+
function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4433
4445
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
4434
4446
|
return openBlock(), createElementBlock("view", {
|
|
4435
4447
|
class: normalizeClass(_ctx.classes),
|
|
4436
4448
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args)),
|
|
4437
4449
|
style: normalizeStyle(_ctx.style)
|
|
4438
4450
|
}, [
|
|
4439
|
-
createElementVNode("view", _hoisted_1$
|
|
4451
|
+
createElementVNode("view", _hoisted_1$M, [
|
|
4440
4452
|
_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
|
|
4441
4453
|
key: 0,
|
|
4442
4454
|
name: _ctx.name,
|
|
@@ -4454,11 +4466,11 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4454
4466
|
])
|
|
4455
4467
|
], 6);
|
|
4456
4468
|
}
|
|
4457
|
-
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4458
|
-
const { create: create$
|
|
4459
|
-
const _sfc_main$
|
|
4469
|
+
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$U]]);
|
|
4470
|
+
const { create: create$Y } = createComponent("toast");
|
|
4471
|
+
const _sfc_main$Y = create$Y({
|
|
4460
4472
|
components: {
|
|
4461
|
-
[_sfc_main$
|
|
4473
|
+
[_sfc_main$1o.name]: _sfc_main$1o
|
|
4462
4474
|
},
|
|
4463
4475
|
props: {
|
|
4464
4476
|
id: String,
|
|
@@ -4584,16 +4596,16 @@ const _sfc_main$V = create$V({
|
|
|
4584
4596
|
};
|
|
4585
4597
|
}
|
|
4586
4598
|
});
|
|
4587
|
-
const _hoisted_1$
|
|
4599
|
+
const _hoisted_1$L = {
|
|
4588
4600
|
key: 0,
|
|
4589
4601
|
class: "nut-toast-icon-wrapper"
|
|
4590
4602
|
};
|
|
4591
|
-
const _hoisted_2$
|
|
4603
|
+
const _hoisted_2$C = {
|
|
4592
4604
|
key: 1,
|
|
4593
4605
|
class: "nut-toast-title"
|
|
4594
4606
|
};
|
|
4595
|
-
const _hoisted_3$
|
|
4596
|
-
function _sfc_render$
|
|
4607
|
+
const _hoisted_3$t = ["innerHTML"];
|
|
4608
|
+
function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4597
4609
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
4598
4610
|
return openBlock(), createBlock(Transition, {
|
|
4599
4611
|
name: "toast-fade",
|
|
@@ -4615,18 +4627,18 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4615
4627
|
"background-color": _ctx.bgColor
|
|
4616
4628
|
})
|
|
4617
4629
|
}, [
|
|
4618
|
-
_ctx.hasIcon ? (openBlock(), createElementBlock("view", _hoisted_1$
|
|
4630
|
+
_ctx.hasIcon ? (openBlock(), createElementBlock("view", _hoisted_1$L, [
|
|
4619
4631
|
createVNode(_component_nut_icon, {
|
|
4620
4632
|
size: "20",
|
|
4621
4633
|
color: "#ffffff",
|
|
4622
4634
|
name: _ctx.icon
|
|
4623
4635
|
}, null, 8, ["name"])
|
|
4624
4636
|
])) : createCommentVNode("", true),
|
|
4625
|
-
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4637
|
+
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2$C, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
4626
4638
|
createElementVNode("view", {
|
|
4627
4639
|
class: "nut-toast-text",
|
|
4628
4640
|
innerHTML: _ctx.msg
|
|
4629
|
-
}, null, 8, _hoisted_3$
|
|
4641
|
+
}, null, 8, _hoisted_3$t)
|
|
4630
4642
|
], 4)
|
|
4631
4643
|
], 6), [
|
|
4632
4644
|
[vShow, _ctx.state.mounted]
|
|
@@ -4635,7 +4647,7 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4635
4647
|
_: 1
|
|
4636
4648
|
}, 8, ["onAfterLeave"]);
|
|
4637
4649
|
}
|
|
4638
|
-
var Toast = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4650
|
+
var Toast = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$T]]);
|
|
4639
4651
|
const defaultOptions = {
|
|
4640
4652
|
msg: "",
|
|
4641
4653
|
id: "",
|
|
@@ -4752,8 +4764,8 @@ const ToastFunction = {
|
|
|
4752
4764
|
app.config.globalProperties.$toast = ToastFunction;
|
|
4753
4765
|
}
|
|
4754
4766
|
};
|
|
4755
|
-
const { create: create$
|
|
4756
|
-
const _sfc_main$
|
|
4767
|
+
const { create: create$X } = createComponent("progress");
|
|
4768
|
+
const _sfc_main$X = create$X({
|
|
4757
4769
|
props: {
|
|
4758
4770
|
percentage: {
|
|
4759
4771
|
type: [Number, String],
|
|
@@ -4829,10 +4841,10 @@ const _sfc_main$U = create$U({
|
|
|
4829
4841
|
};
|
|
4830
4842
|
}
|
|
4831
4843
|
});
|
|
4832
|
-
const _hoisted_1$
|
|
4833
|
-
function _sfc_render$
|
|
4844
|
+
const _hoisted_1$K = { class: "nut-progress" };
|
|
4845
|
+
function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4834
4846
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
4835
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4847
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
4836
4848
|
createElementVNode("div", {
|
|
4837
4849
|
class: normalizeClass(["nut-progress-outer", [
|
|
4838
4850
|
_ctx.showText && !_ctx.textInside ? "nut-progress-outer-part" : "",
|
|
@@ -4873,9 +4885,9 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4873
4885
|
], 4)) : createCommentVNode("", true)
|
|
4874
4886
|
]);
|
|
4875
4887
|
}
|
|
4876
|
-
var Progress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4877
|
-
const { componentName: componentName$
|
|
4878
|
-
const _sfc_main$
|
|
4888
|
+
var Progress = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$S]]);
|
|
4889
|
+
const { componentName: componentName$G, create: create$W } = createComponent("circleprogress");
|
|
4890
|
+
const _sfc_main$W = create$W({
|
|
4879
4891
|
props: {
|
|
4880
4892
|
progress: {
|
|
4881
4893
|
type: [Number, String],
|
|
@@ -4897,7 +4909,7 @@ const _sfc_main$T = create$T({
|
|
|
4897
4909
|
},
|
|
4898
4910
|
setup(props, { emit }) {
|
|
4899
4911
|
const classes = computed(() => {
|
|
4900
|
-
const prefixCls = componentName$
|
|
4912
|
+
const prefixCls = componentName$G;
|
|
4901
4913
|
return {
|
|
4902
4914
|
[prefixCls]: true
|
|
4903
4915
|
};
|
|
@@ -4931,11 +4943,11 @@ const _sfc_main$T = create$T({
|
|
|
4931
4943
|
};
|
|
4932
4944
|
}
|
|
4933
4945
|
});
|
|
4934
|
-
const _hoisted_1$
|
|
4935
|
-
const _hoisted_2$
|
|
4936
|
-
const _hoisted_3$
|
|
4946
|
+
const _hoisted_1$J = ["height", "width"];
|
|
4947
|
+
const _hoisted_2$B = ["r", "cx", "cy", "stroke", "stroke-width"];
|
|
4948
|
+
const _hoisted_3$s = ["r", "cx", "cy", "stroke", "stroke-dasharray", "stroke-width", "transform"];
|
|
4937
4949
|
const _hoisted_4$l = { class: "nut-circleprogress-content" };
|
|
4938
|
-
function _sfc_render$
|
|
4950
|
+
function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4939
4951
|
return openBlock(), createElementBlock("div", {
|
|
4940
4952
|
class: normalizeClass(_ctx.classes),
|
|
4941
4953
|
style: normalizeStyle({ height: _ctx.option.size + "px", width: _ctx.option.size + "px" })
|
|
@@ -4952,7 +4964,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4952
4964
|
stroke: _ctx.option.backColor,
|
|
4953
4965
|
"stroke-width": _ctx.option.strokeOutWidth,
|
|
4954
4966
|
fill: "none"
|
|
4955
|
-
}, null, 8, _hoisted_2$
|
|
4967
|
+
}, null, 8, _hoisted_2$B),
|
|
4956
4968
|
createElementVNode("circle", {
|
|
4957
4969
|
r: _ctx.option.radius,
|
|
4958
4970
|
cx: _ctx.option.cx,
|
|
@@ -4964,8 +4976,8 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4964
4976
|
transform: _ctx.option.startPosition,
|
|
4965
4977
|
"stroke-linecap": "round",
|
|
4966
4978
|
style: { "transition": "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease 0s" }
|
|
4967
|
-
}, null, 8, _hoisted_3$
|
|
4968
|
-
], 8, _hoisted_1$
|
|
4979
|
+
}, null, 8, _hoisted_3$s)
|
|
4980
|
+
], 8, _hoisted_1$J)),
|
|
4969
4981
|
createElementVNode("div", _hoisted_4$l, [
|
|
4970
4982
|
!_ctx.isAuto ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
|
|
4971
4983
|
createTextVNode(toDisplayString(_ctx.progress) + "%", 1)
|
|
@@ -4973,9 +4985,9 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4973
4985
|
])
|
|
4974
4986
|
], 6);
|
|
4975
4987
|
}
|
|
4976
|
-
var CircleProgress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4977
|
-
const { componentName: componentName$
|
|
4978
|
-
const _sfc_main$
|
|
4988
|
+
var CircleProgress = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$R]]);
|
|
4989
|
+
const { componentName: componentName$F, create: create$V } = createComponent("noticebar");
|
|
4990
|
+
const _sfc_main$V = create$V({
|
|
4979
4991
|
props: {
|
|
4980
4992
|
direction: {
|
|
4981
4993
|
type: String,
|
|
@@ -5041,7 +5053,7 @@ const _sfc_main$S = create$S({
|
|
|
5041
5053
|
},
|
|
5042
5054
|
emits: ["click", "close"],
|
|
5043
5055
|
setup(props, { emit, slots }) {
|
|
5044
|
-
console.log("componentName", componentName$
|
|
5056
|
+
console.log("componentName", componentName$F);
|
|
5045
5057
|
const wrap = ref(null);
|
|
5046
5058
|
const content = ref(null);
|
|
5047
5059
|
const state = reactive({
|
|
@@ -5058,7 +5070,7 @@ const _sfc_main$S = create$S({
|
|
|
5058
5070
|
keepAlive: false
|
|
5059
5071
|
});
|
|
5060
5072
|
const classes = computed(() => {
|
|
5061
|
-
const prefixCls = componentName$
|
|
5073
|
+
const prefixCls = componentName$F;
|
|
5062
5074
|
return {
|
|
5063
5075
|
[prefixCls]: true
|
|
5064
5076
|
};
|
|
@@ -5232,12 +5244,12 @@ const _sfc_main$S = create$S({
|
|
|
5232
5244
|
});
|
|
5233
5245
|
}
|
|
5234
5246
|
});
|
|
5235
|
-
const _hoisted_1$
|
|
5247
|
+
const _hoisted_1$I = {
|
|
5236
5248
|
ref: "wrap",
|
|
5237
5249
|
class: "wrap"
|
|
5238
5250
|
};
|
|
5239
|
-
const _hoisted_2$
|
|
5240
|
-
function _sfc_render$
|
|
5251
|
+
const _hoisted_2$A = ["onClick"];
|
|
5252
|
+
function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5241
5253
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
5242
5254
|
const _component_ScrollItem = resolveComponent("ScrollItem");
|
|
5243
5255
|
return openBlock(), createElementBlock("view", {
|
|
@@ -5261,7 +5273,7 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5261
5273
|
color: _ctx.color
|
|
5262
5274
|
}, null, 8, ["color"])) : createCommentVNode("", true)
|
|
5263
5275
|
], 4)) : createCommentVNode("", true),
|
|
5264
|
-
createElementVNode("view", _hoisted_1$
|
|
5276
|
+
createElementVNode("view", _hoisted_1$I, [
|
|
5265
5277
|
createElementVNode("view", {
|
|
5266
5278
|
ref: "content",
|
|
5267
5279
|
class: normalizeClass(["content", [_ctx.animationClass, { "nut-ellipsis": !_ctx.scrollable && !_ctx.wrapable }]]),
|
|
@@ -5270,7 +5282,7 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5270
5282
|
onWebkitAnimationEnd: _cache[1] || (_cache[1] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args))
|
|
5271
5283
|
}, [
|
|
5272
5284
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
5273
|
-
createTextVNode(
|
|
5285
|
+
createTextVNode(toDisplayString(_ctx.text), 1)
|
|
5274
5286
|
])
|
|
5275
5287
|
], 38)
|
|
5276
5288
|
], 512),
|
|
@@ -5315,7 +5327,7 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5315
5327
|
key: index,
|
|
5316
5328
|
style: normalizeStyle({ height: _ctx.height }),
|
|
5317
5329
|
onClick: ($event) => _ctx.go(item)
|
|
5318
|
-
}, toDisplayString(item), 13, _hoisted_2$
|
|
5330
|
+
}, toDisplayString(item), 13, _hoisted_2$A);
|
|
5319
5331
|
}), 128))
|
|
5320
5332
|
], 4)),
|
|
5321
5333
|
createElementVNode("view", {
|
|
@@ -5332,9 +5344,9 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5332
5344
|
], 4)) : createCommentVNode("", true)
|
|
5333
5345
|
], 2);
|
|
5334
5346
|
}
|
|
5335
|
-
var NoticeBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5336
|
-
const { create: create$
|
|
5337
|
-
const _sfc_main$
|
|
5347
|
+
var NoticeBar = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$Q]]);
|
|
5348
|
+
const { create: create$U } = createComponent("searchbar");
|
|
5349
|
+
const _sfc_main$U = create$U({
|
|
5338
5350
|
props: {
|
|
5339
5351
|
modelValue: {
|
|
5340
5352
|
type: [String, Number],
|
|
@@ -5425,15 +5437,15 @@ const _sfc_main$R = create$R({
|
|
|
5425
5437
|
});
|
|
5426
5438
|
}
|
|
5427
5439
|
});
|
|
5428
|
-
const _hoisted_1$
|
|
5440
|
+
const _hoisted_1$H = {
|
|
5429
5441
|
key: 0,
|
|
5430
5442
|
class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
|
|
5431
5443
|
};
|
|
5432
|
-
const _hoisted_2$
|
|
5444
|
+
const _hoisted_2$z = {
|
|
5433
5445
|
key: 0,
|
|
5434
5446
|
class: "nut-searchbar__search-icon nut-searchbar__iptleft-search-icon"
|
|
5435
5447
|
};
|
|
5436
|
-
const _hoisted_3$
|
|
5448
|
+
const _hoisted_3$r = { class: "nut-searchbar__input-inner" };
|
|
5437
5449
|
const _hoisted_4$k = ["type", "maxlength", "placeholder", "value"];
|
|
5438
5450
|
const _hoisted_5$d = {
|
|
5439
5451
|
key: 1,
|
|
@@ -5443,23 +5455,23 @@ const _hoisted_6$a = {
|
|
|
5443
5455
|
key: 1,
|
|
5444
5456
|
class: "nut-searchbar__search-icon nut-searchbar__right-search-icon"
|
|
5445
5457
|
};
|
|
5446
|
-
function _sfc_render$
|
|
5458
|
+
function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5447
5459
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
5448
5460
|
return openBlock(), createElementBlock("view", {
|
|
5449
5461
|
class: "nut-searchbar",
|
|
5450
5462
|
style: normalizeStyle(_ctx.searchbarStyle)
|
|
5451
5463
|
}, [
|
|
5452
|
-
_ctx.$slots.leftout ? (openBlock(), createElementBlock("view", _hoisted_1$
|
|
5464
|
+
_ctx.$slots.leftout ? (openBlock(), createElementBlock("view", _hoisted_1$H, [
|
|
5453
5465
|
renderSlot(_ctx.$slots, "leftout")
|
|
5454
5466
|
])) : createCommentVNode("", true),
|
|
5455
5467
|
createElementVNode("view", {
|
|
5456
5468
|
class: "nut-searchbar__search-input",
|
|
5457
5469
|
style: normalizeStyle(_ctx.inputSearchbarStyle)
|
|
5458
5470
|
}, [
|
|
5459
|
-
_ctx.$slots.leftin ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
5471
|
+
_ctx.$slots.leftin ? (openBlock(), createElementBlock("view", _hoisted_2$z, [
|
|
5460
5472
|
renderSlot(_ctx.$slots, "leftin")
|
|
5461
5473
|
])) : createCommentVNode("", true),
|
|
5462
|
-
createElementVNode("view", _hoisted_3$
|
|
5474
|
+
createElementVNode("view", _hoisted_3$r, [
|
|
5463
5475
|
createElementVNode("form", {
|
|
5464
5476
|
action: "#",
|
|
5465
5477
|
onSubmit: _cache[3] || (_cache[3] = withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
|
|
@@ -5498,14 +5510,14 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5498
5510
|
])) : createCommentVNode("", true)
|
|
5499
5511
|
], 4);
|
|
5500
5512
|
}
|
|
5501
|
-
var SearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5502
|
-
const { componentName: componentName$
|
|
5513
|
+
var SearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$P]]);
|
|
5514
|
+
const { componentName: componentName$E, create: create$T } = createComponent("empty");
|
|
5503
5515
|
const defaultStatus = {
|
|
5504
5516
|
empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
|
|
5505
5517
|
error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
|
|
5506
5518
|
network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
|
|
5507
5519
|
};
|
|
5508
|
-
const _sfc_main$
|
|
5520
|
+
const _sfc_main$T = create$T({
|
|
5509
5521
|
props: {
|
|
5510
5522
|
image: {
|
|
5511
5523
|
type: String,
|
|
@@ -5539,14 +5551,14 @@ const _sfc_main$Q = create$Q({
|
|
|
5539
5551
|
};
|
|
5540
5552
|
}
|
|
5541
5553
|
});
|
|
5542
|
-
const _hoisted_1$
|
|
5543
|
-
const _hoisted_2$
|
|
5544
|
-
const _hoisted_3$
|
|
5554
|
+
const _hoisted_1$G = { class: "nut-empty" };
|
|
5555
|
+
const _hoisted_2$y = ["src"];
|
|
5556
|
+
const _hoisted_3$q = {
|
|
5545
5557
|
key: 1,
|
|
5546
5558
|
class: "nut-empty-description"
|
|
5547
5559
|
};
|
|
5548
|
-
function _sfc_render$
|
|
5549
|
-
return openBlock(), createElementBlock("view", _hoisted_1$
|
|
5560
|
+
function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5561
|
+
return openBlock(), createElementBlock("view", _hoisted_1$G, [
|
|
5550
5562
|
createElementVNode("view", {
|
|
5551
5563
|
class: "nut-empty-image",
|
|
5552
5564
|
style: normalizeStyle(_ctx.imgStyle)
|
|
@@ -5556,26 +5568,20 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5556
5568
|
key: 0,
|
|
5557
5569
|
class: "img",
|
|
5558
5570
|
src: _ctx.imageUrl
|
|
5559
|
-
}, null, 8, _hoisted_2$
|
|
5571
|
+
}, null, 8, _hoisted_2$y)) : createCommentVNode("", true)
|
|
5560
5572
|
], 64))
|
|
5561
5573
|
], 4),
|
|
5562
|
-
_ctx.$slots.description ? renderSlot(_ctx.$slots, "description", { key: 0 }) : (openBlock(), createElementBlock("view", _hoisted_3$
|
|
5574
|
+
_ctx.$slots.description ? renderSlot(_ctx.$slots, "description", { key: 0 }) : (openBlock(), createElementBlock("view", _hoisted_3$q, toDisplayString(_ctx.description), 1)),
|
|
5563
5575
|
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 2 }) : createCommentVNode("", true)
|
|
5564
5576
|
]);
|
|
5565
5577
|
}
|
|
5566
|
-
var Empty = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5567
|
-
const { componentName: componentName$
|
|
5568
|
-
const _sfc_main$
|
|
5578
|
+
var Empty = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$O]]);
|
|
5579
|
+
const { componentName: componentName$D, create: create$S } = createComponent("navbar");
|
|
5580
|
+
const _sfc_main$S = create$S({
|
|
5569
5581
|
props: {
|
|
5570
5582
|
leftShow: { type: Boolean, default: true },
|
|
5571
5583
|
title: { type: String, default: "" },
|
|
5572
5584
|
titIcon: { type: String, default: "" },
|
|
5573
|
-
tabs: {
|
|
5574
|
-
type: Array,
|
|
5575
|
-
defaul: () => {
|
|
5576
|
-
return [];
|
|
5577
|
-
}
|
|
5578
|
-
},
|
|
5579
5585
|
icon: { type: String, default: "" },
|
|
5580
5586
|
desc: { type: String, default: "" },
|
|
5581
5587
|
defaultIndex: {
|
|
@@ -5600,16 +5606,11 @@ const _sfc_main$P = create$P({
|
|
|
5600
5606
|
setup(props, { emit }) {
|
|
5601
5607
|
const activeIndex = ref(props.defaultIndex);
|
|
5602
5608
|
const classes = computed(() => {
|
|
5603
|
-
const prefixCls = componentName$
|
|
5609
|
+
const prefixCls = componentName$D;
|
|
5604
5610
|
return {
|
|
5605
5611
|
[prefixCls]: true
|
|
5606
5612
|
};
|
|
5607
5613
|
});
|
|
5608
|
-
function switchTitle(id, name) {
|
|
5609
|
-
activeIndex.value = id;
|
|
5610
|
-
console.log(id);
|
|
5611
|
-
emit("switch-tab", activeIndex.value, name);
|
|
5612
|
-
}
|
|
5613
5614
|
function handleLeft() {
|
|
5614
5615
|
emit("on-click-back");
|
|
5615
5616
|
}
|
|
@@ -5640,20 +5641,17 @@ const _sfc_main$P = create$P({
|
|
|
5640
5641
|
handleSend,
|
|
5641
5642
|
handleSlot,
|
|
5642
5643
|
handleSends,
|
|
5643
|
-
switchTitle,
|
|
5644
5644
|
activeIndex
|
|
5645
5645
|
};
|
|
5646
5646
|
}
|
|
5647
5647
|
});
|
|
5648
|
-
const _hoisted_1$
|
|
5649
|
-
|
|
5650
|
-
const _hoisted_3$o = ["onClick"];
|
|
5651
|
-
function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5648
|
+
const _hoisted_1$F = { class: "nut-navbar__left" };
|
|
5649
|
+
function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5652
5650
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
5653
5651
|
return openBlock(), createElementBlock("view", {
|
|
5654
5652
|
class: normalizeClass(_ctx.classes)
|
|
5655
5653
|
}, [
|
|
5656
|
-
createElementVNode("view", _hoisted_1$
|
|
5654
|
+
createElementVNode("view", _hoisted_1$F, [
|
|
5657
5655
|
_ctx.leftShow ? (openBlock(), createBlock(_component_nut_icon, {
|
|
5658
5656
|
key: 0,
|
|
5659
5657
|
color: "#979797",
|
|
@@ -5661,8 +5659,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5661
5659
|
onClick: _ctx.handleLeft
|
|
5662
5660
|
}, null, 8, ["onClick"])) : createCommentVNode("", true)
|
|
5663
5661
|
]),
|
|
5664
|
-
|
|
5665
|
-
key: 0,
|
|
5662
|
+
createElementVNode("view", {
|
|
5666
5663
|
class: normalizeClass(["nut-navbar__title", { icon: _ctx.icon }])
|
|
5667
5664
|
}, [
|
|
5668
5665
|
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
@@ -5675,21 +5672,10 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5675
5672
|
name: _ctx.titIcon,
|
|
5676
5673
|
onClick: _ctx.handleCenterIcon
|
|
5677
5674
|
}, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
return openBlock(), createElementBlock("view", {
|
|
5681
|
-
class: normalizeClass([
|
|
5682
|
-
"tab-title-box",
|
|
5683
|
-
{ "nut-tab-active": _ctx.activeIndex == item.id || _ctx.activeIndex == index }
|
|
5684
|
-
]),
|
|
5685
|
-
onClick: ($event) => _ctx.switchTitle(item.id, item.name),
|
|
5686
|
-
key: item.id
|
|
5687
|
-
}, toDisplayString(item.name), 11, _hoisted_3$o);
|
|
5688
|
-
}), 128))
|
|
5689
|
-
])
|
|
5690
|
-
], 2)) : createCommentVNode("", true),
|
|
5675
|
+
renderSlot(_ctx.$slots, "content")
|
|
5676
|
+
], 2),
|
|
5691
5677
|
_ctx.desc || _ctx.icon ? (openBlock(), createElementBlock("view", {
|
|
5692
|
-
key:
|
|
5678
|
+
key: 0,
|
|
5693
5679
|
class: normalizeClass(["nut-navbar__right", { icon: _ctx.icon }])
|
|
5694
5680
|
}, [
|
|
5695
5681
|
_ctx.desc ? (openBlock(), createElementBlock("view", {
|
|
@@ -5714,9 +5700,9 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5714
5700
|
], 2)) : createCommentVNode("", true)
|
|
5715
5701
|
], 2);
|
|
5716
5702
|
}
|
|
5717
|
-
var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5718
|
-
const { componentName: componentName$
|
|
5719
|
-
const _sfc_main$
|
|
5703
|
+
var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$N]]);
|
|
5704
|
+
const { componentName: componentName$C, create: create$R } = createComponent("fixednav");
|
|
5705
|
+
const _sfc_main$R = create$R({
|
|
5720
5706
|
components: {
|
|
5721
5707
|
[OverLay.name]: OverLay
|
|
5722
5708
|
},
|
|
@@ -5759,7 +5745,7 @@ const _sfc_main$O = create$O({
|
|
|
5759
5745
|
emits: ["update:visible", "selected"],
|
|
5760
5746
|
setup(props, { emit }) {
|
|
5761
5747
|
const classes = computed(() => {
|
|
5762
|
-
const prefixCls = componentName$
|
|
5748
|
+
const prefixCls = componentName$C;
|
|
5763
5749
|
return {
|
|
5764
5750
|
[prefixCls]: true,
|
|
5765
5751
|
active: props.visible,
|
|
@@ -5778,16 +5764,16 @@ const _sfc_main$O = create$O({
|
|
|
5778
5764
|
return { classes, updateValue, selected };
|
|
5779
5765
|
}
|
|
5780
5766
|
});
|
|
5781
|
-
const _hoisted_1$
|
|
5782
|
-
const _hoisted_2$
|
|
5783
|
-
const _hoisted_3$
|
|
5767
|
+
const _hoisted_1$E = { class: "nut-fixednav__list" };
|
|
5768
|
+
const _hoisted_2$x = ["onClick"];
|
|
5769
|
+
const _hoisted_3$p = ["src"];
|
|
5784
5770
|
const _hoisted_4$j = { class: "span" };
|
|
5785
5771
|
const _hoisted_5$c = {
|
|
5786
5772
|
key: 0,
|
|
5787
5773
|
class: "b"
|
|
5788
5774
|
};
|
|
5789
5775
|
const _hoisted_6$9 = { class: "text" };
|
|
5790
|
-
function _sfc_render$
|
|
5776
|
+
function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5791
5777
|
const _component_nut_overlay = resolveComponent("nut-overlay");
|
|
5792
5778
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
5793
5779
|
return openBlock(), createElementBlock("view", {
|
|
@@ -5801,7 +5787,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5801
5787
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.updateValue(false))
|
|
5802
5788
|
}, null, 8, ["visible"])) : createCommentVNode("", true),
|
|
5803
5789
|
renderSlot(_ctx.$slots, "list", {}, () => [
|
|
5804
|
-
createElementVNode("view", _hoisted_1$
|
|
5790
|
+
createElementVNode("view", _hoisted_1$E, [
|
|
5805
5791
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navList, (item, index) => {
|
|
5806
5792
|
return openBlock(), createElementBlock("view", {
|
|
5807
5793
|
class: "nut-fixednav__list-item",
|
|
@@ -5810,10 +5796,10 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5810
5796
|
}, [
|
|
5811
5797
|
createElementVNode("img", {
|
|
5812
5798
|
src: item.icon
|
|
5813
|
-
}, null, 8, _hoisted_3$
|
|
5799
|
+
}, null, 8, _hoisted_3$p),
|
|
5814
5800
|
createElementVNode("view", _hoisted_4$j, toDisplayString(item.text), 1),
|
|
5815
5801
|
item.num ? (openBlock(), createElementBlock("view", _hoisted_5$c, toDisplayString(item.num), 1)) : createCommentVNode("", true)
|
|
5816
|
-
], 8, _hoisted_2$
|
|
5802
|
+
], 8, _hoisted_2$x);
|
|
5817
5803
|
}), 128))
|
|
5818
5804
|
])
|
|
5819
5805
|
]),
|
|
@@ -5831,13 +5817,13 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5831
5817
|
])
|
|
5832
5818
|
], 6);
|
|
5833
5819
|
}
|
|
5834
|
-
var FixedNav = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5835
|
-
const { componentName: componentName$
|
|
5836
|
-
const _sfc_main$
|
|
5820
|
+
var FixedNav = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$M]]);
|
|
5821
|
+
const { componentName: componentName$B, create: create$Q } = createComponent("menu");
|
|
5822
|
+
const _sfc_main$Q = create$Q({
|
|
5837
5823
|
props: {
|
|
5838
5824
|
activeColor: {
|
|
5839
5825
|
type: String,
|
|
5840
|
-
default: "
|
|
5826
|
+
default: ""
|
|
5841
5827
|
},
|
|
5842
5828
|
overlay: {
|
|
5843
5829
|
type: Boolean,
|
|
@@ -5875,7 +5861,7 @@ const _sfc_main$N = create$N({
|
|
|
5875
5861
|
const { children, linkChildren } = useChildren();
|
|
5876
5862
|
const opened = computed(() => children.some((item) => item.state.showWrapper));
|
|
5877
5863
|
const classes = computed(() => {
|
|
5878
|
-
const prefixCls = componentName$
|
|
5864
|
+
const prefixCls = componentName$B;
|
|
5879
5865
|
return {
|
|
5880
5866
|
[prefixCls]: true
|
|
5881
5867
|
};
|
|
@@ -5906,9 +5892,9 @@ const _sfc_main$N = create$N({
|
|
|
5906
5892
|
};
|
|
5907
5893
|
}
|
|
5908
5894
|
});
|
|
5909
|
-
const _hoisted_1$
|
|
5910
|
-
const _hoisted_2$
|
|
5911
|
-
function _sfc_render$
|
|
5895
|
+
const _hoisted_1$D = ["onClick"];
|
|
5896
|
+
const _hoisted_2$w = { class: "nut-menu__title-text" };
|
|
5897
|
+
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5912
5898
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
5913
5899
|
return openBlock(), createElementBlock("view", {
|
|
5914
5900
|
class: normalizeClass(_ctx.classes)
|
|
@@ -5920,29 +5906,29 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5920
5906
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.children, (item, index) => {
|
|
5921
5907
|
return openBlock(), createElementBlock("view", {
|
|
5922
5908
|
key: index,
|
|
5923
|
-
class: normalizeClass(["nut-menu__item", { disabled: item.disabled }]),
|
|
5909
|
+
class: normalizeClass(["nut-menu__item", { disabled: item.disabled, active: item.state.showPopup }]),
|
|
5924
5910
|
onClick: ($event) => !item.disabled && _ctx.toggleItem(index),
|
|
5925
5911
|
style: normalizeStyle({ color: item.state.showPopup ? _ctx.activeColor : "" })
|
|
5926
5912
|
}, [
|
|
5927
5913
|
createElementVNode("view", {
|
|
5928
5914
|
class: normalizeClass(["nut-menu__title", { active: item.state.showPopup }])
|
|
5929
5915
|
}, [
|
|
5930
|
-
createElementVNode("view", _hoisted_2$
|
|
5916
|
+
createElementVNode("view", _hoisted_2$w, toDisplayString(item.renderTitle()), 1),
|
|
5931
5917
|
createVNode(_component_nut_icon, {
|
|
5932
5918
|
name: item.titleIcon,
|
|
5933
5919
|
size: "10",
|
|
5934
5920
|
class: "nut-menu__title-icon"
|
|
5935
5921
|
}, null, 8, ["name"])
|
|
5936
5922
|
], 2)
|
|
5937
|
-
], 14, _hoisted_1$
|
|
5923
|
+
], 14, _hoisted_1$D);
|
|
5938
5924
|
}), 128))
|
|
5939
5925
|
], 2),
|
|
5940
5926
|
renderSlot(_ctx.$slots, "default")
|
|
5941
5927
|
], 2);
|
|
5942
5928
|
}
|
|
5943
|
-
var Menu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5944
|
-
const { componentName: componentName$
|
|
5945
|
-
const _sfc_main$
|
|
5929
|
+
var Menu = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$L]]);
|
|
5930
|
+
const { componentName: componentName$A, create: create$P } = createComponent("menu-item");
|
|
5931
|
+
const _sfc_main$P = create$P({
|
|
5946
5932
|
props: {
|
|
5947
5933
|
title: String,
|
|
5948
5934
|
options: {
|
|
@@ -5964,7 +5950,7 @@ const _sfc_main$M = create$M({
|
|
|
5964
5950
|
}
|
|
5965
5951
|
},
|
|
5966
5952
|
components: {
|
|
5967
|
-
[_sfc_main$
|
|
5953
|
+
[_sfc_main$1o.name]: _sfc_main$1o,
|
|
5968
5954
|
[Popup.name]: Popup
|
|
5969
5955
|
},
|
|
5970
5956
|
emits: ["update:modelValue", "change"],
|
|
@@ -5988,7 +5974,7 @@ const _sfc_main$M = create$M({
|
|
|
5988
5974
|
};
|
|
5989
5975
|
const { parent } = useParent();
|
|
5990
5976
|
const classes = computed(() => {
|
|
5991
|
-
const prefixCls = componentName$
|
|
5977
|
+
const prefixCls = componentName$A;
|
|
5992
5978
|
return {
|
|
5993
5979
|
[prefixCls]: true
|
|
5994
5980
|
};
|
|
@@ -6038,9 +6024,9 @@ const _sfc_main$M = create$M({
|
|
|
6038
6024
|
};
|
|
6039
6025
|
}
|
|
6040
6026
|
});
|
|
6041
|
-
const _hoisted_1$
|
|
6042
|
-
const _hoisted_2$
|
|
6043
|
-
function _sfc_render$
|
|
6027
|
+
const _hoisted_1$C = { class: "nut-menu-item__content" };
|
|
6028
|
+
const _hoisted_2$v = ["onClick"];
|
|
6029
|
+
function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6044
6030
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
6045
6031
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
6046
6032
|
return withDirectives((openBlock(), createElementBlock("view", {
|
|
@@ -6068,7 +6054,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6068
6054
|
isWrapTeleport: false
|
|
6069
6055
|
}), {
|
|
6070
6056
|
default: withCtx(() => [
|
|
6071
|
-
createElementVNode("view", _hoisted_1$
|
|
6057
|
+
createElementVNode("view", _hoisted_1$C, [
|
|
6072
6058
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index) => {
|
|
6073
6059
|
return openBlock(), createElementBlock("view", {
|
|
6074
6060
|
key: index,
|
|
@@ -6084,7 +6070,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6084
6070
|
createElementVNode("view", {
|
|
6085
6071
|
style: normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
|
|
6086
6072
|
}, toDisplayString(option.text), 5)
|
|
6087
|
-
], 14, _hoisted_2$
|
|
6073
|
+
], 14, _hoisted_2$v);
|
|
6088
6074
|
}), 128)),
|
|
6089
6075
|
renderSlot(_ctx.$slots, "default")
|
|
6090
6076
|
])
|
|
@@ -6095,9 +6081,9 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6095
6081
|
[vShow, _ctx.state.showWrapper]
|
|
6096
6082
|
]);
|
|
6097
6083
|
}
|
|
6098
|
-
var MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6099
|
-
const { create: create$
|
|
6100
|
-
const _sfc_main$
|
|
6084
|
+
var MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_render$K]]);
|
|
6085
|
+
const { create: create$O } = createComponent("tabbar");
|
|
6086
|
+
const _sfc_main$O = create$O({
|
|
6101
6087
|
props: {
|
|
6102
6088
|
visible: {
|
|
6103
6089
|
type: [Number, String],
|
|
@@ -6122,6 +6108,10 @@ const _sfc_main$L = create$L({
|
|
|
6122
6108
|
activeColor: {
|
|
6123
6109
|
type: String,
|
|
6124
6110
|
default: ""
|
|
6111
|
+
},
|
|
6112
|
+
safeAreaInsetBottom: {
|
|
6113
|
+
type: Boolean,
|
|
6114
|
+
default: false
|
|
6125
6115
|
}
|
|
6126
6116
|
},
|
|
6127
6117
|
emits: ["tab-switch", "update:visible"],
|
|
@@ -6152,16 +6142,16 @@ const _sfc_main$L = create$L({
|
|
|
6152
6142
|
};
|
|
6153
6143
|
}
|
|
6154
6144
|
});
|
|
6155
|
-
function _sfc_render$
|
|
6145
|
+
function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6156
6146
|
return openBlock(), createElementBlock("view", {
|
|
6157
|
-
class: normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom }])
|
|
6147
|
+
class: normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom, "nut-tabbar-safebottom": _ctx.safeAreaInsetBottom }])
|
|
6158
6148
|
}, [
|
|
6159
6149
|
renderSlot(_ctx.$slots, "default")
|
|
6160
6150
|
], 2);
|
|
6161
6151
|
}
|
|
6162
|
-
var Tabbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6163
|
-
const { create: create$
|
|
6164
|
-
const _sfc_main$
|
|
6152
|
+
var Tabbar = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$J]]);
|
|
6153
|
+
const { create: create$N } = createComponent("tabbar-item");
|
|
6154
|
+
const _sfc_main$N = create$N({
|
|
6165
6155
|
props: {
|
|
6166
6156
|
tabTitle: {
|
|
6167
6157
|
type: String,
|
|
@@ -6242,17 +6232,17 @@ const _sfc_main$K = create$K({
|
|
|
6242
6232
|
};
|
|
6243
6233
|
}
|
|
6244
6234
|
});
|
|
6245
|
-
const _hoisted_1$
|
|
6246
|
-
const _hoisted_2$
|
|
6235
|
+
const _hoisted_1$B = { class: "nut-tabbar-item_icon-box" };
|
|
6236
|
+
const _hoisted_2$u = {
|
|
6247
6237
|
key: 0,
|
|
6248
6238
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_num"
|
|
6249
6239
|
};
|
|
6250
|
-
const _hoisted_3$
|
|
6240
|
+
const _hoisted_3$o = {
|
|
6251
6241
|
key: 1,
|
|
6252
6242
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_nums"
|
|
6253
6243
|
};
|
|
6254
6244
|
const _hoisted_4$i = { key: 2 };
|
|
6255
|
-
function _sfc_render$
|
|
6245
|
+
function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6256
6246
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
6257
6247
|
return openBlock(), createElementBlock("div", {
|
|
6258
6248
|
class: normalizeClass(["nut-tabbar-item", { "nut-tabbar-item__icon--unactive": _ctx.state.active != _ctx.state.index }]),
|
|
@@ -6261,8 +6251,8 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6261
6251
|
}),
|
|
6262
6252
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.change(_ctx.state.index))
|
|
6263
6253
|
}, [
|
|
6264
|
-
createElementVNode("view", _hoisted_1$
|
|
6265
|
-
_ctx.num && _ctx.num <= 99 ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
6254
|
+
createElementVNode("view", _hoisted_1$B, [
|
|
6255
|
+
_ctx.num && _ctx.num <= 99 ? (openBlock(), createElementBlock("view", _hoisted_2$u, toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (openBlock(), createElementBlock("view", _hoisted_3$o, toDisplayString("99+"))) : createCommentVNode("", true),
|
|
6266
6256
|
_ctx.icon ? (openBlock(), createElementBlock("view", _hoisted_4$i, [
|
|
6267
6257
|
createVNode(_component_nut_icon, {
|
|
6268
6258
|
class: "nut-tabbar-item_icon-box_icon",
|
|
@@ -6287,9 +6277,9 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6287
6277
|
])
|
|
6288
6278
|
], 6);
|
|
6289
6279
|
}
|
|
6290
|
-
var TabbarItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6291
|
-
const { componentName: componentName$
|
|
6292
|
-
const _sfc_main$
|
|
6280
|
+
var TabbarItem = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$I]]);
|
|
6281
|
+
const { componentName: componentName$z, create: create$M } = createComponent("elevator");
|
|
6282
|
+
const _sfc_main$M = create$M({
|
|
6293
6283
|
props: {
|
|
6294
6284
|
height: {
|
|
6295
6285
|
type: [Number, String],
|
|
@@ -6322,7 +6312,7 @@ const _sfc_main$J = create$J({
|
|
|
6322
6312
|
currentIndex: 0
|
|
6323
6313
|
});
|
|
6324
6314
|
const classes = computed(() => {
|
|
6325
|
-
const prefixCls = componentName$
|
|
6315
|
+
const prefixCls = componentName$z;
|
|
6326
6316
|
return {
|
|
6327
6317
|
[prefixCls]: true
|
|
6328
6318
|
};
|
|
@@ -6411,11 +6401,11 @@ const _sfc_main$J = create$J({
|
|
|
6411
6401
|
});
|
|
6412
6402
|
}
|
|
6413
6403
|
});
|
|
6414
|
-
const _hoisted_1$
|
|
6415
|
-
const _hoisted_2$
|
|
6416
|
-
const _hoisted_3$
|
|
6404
|
+
const _hoisted_1$A = { class: "nut-elevator__list__item__code" };
|
|
6405
|
+
const _hoisted_2$t = ["onClick", "innerHTML"];
|
|
6406
|
+
const _hoisted_3$n = { class: "nut-elevator__bars__inner" };
|
|
6417
6407
|
const _hoisted_4$h = ["data-index", "onClick"];
|
|
6418
|
-
function _sfc_render$
|
|
6408
|
+
function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6419
6409
|
return openBlock(), createElementBlock("view", {
|
|
6420
6410
|
class: normalizeClass(_ctx.classes)
|
|
6421
6411
|
}, [
|
|
@@ -6431,14 +6421,14 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6431
6421
|
ref_for: true,
|
|
6432
6422
|
ref: _ctx.setListGroup
|
|
6433
6423
|
}, [
|
|
6434
|
-
createElementVNode("view", _hoisted_1$
|
|
6424
|
+
createElementVNode("view", _hoisted_1$A, toDisplayString(item[_ctx.acceptKey]), 1),
|
|
6435
6425
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (subitem) => {
|
|
6436
6426
|
return openBlock(), createElementBlock("view", {
|
|
6437
6427
|
class: "nut-elevator__list__item__name",
|
|
6438
6428
|
key: subitem["id"],
|
|
6439
6429
|
onClick: ($event) => _ctx.handleClickItem(item[_ctx.acceptKey], subitem),
|
|
6440
6430
|
innerHTML: subitem.name
|
|
6441
|
-
}, null, 8, _hoisted_2$
|
|
6431
|
+
}, null, 8, _hoisted_2$t);
|
|
6442
6432
|
}), 128))
|
|
6443
6433
|
]);
|
|
6444
6434
|
}), 128))
|
|
@@ -6455,7 +6445,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6455
6445
|
onTouchmove: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.touchMove && _ctx.touchMove(...args), ["stop", "prevent"])),
|
|
6456
6446
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.touchEnd && _ctx.touchEnd(...args))
|
|
6457
6447
|
}, [
|
|
6458
|
-
createElementVNode("view", _hoisted_3$
|
|
6448
|
+
createElementVNode("view", _hoisted_3$n, [
|
|
6459
6449
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.indexList, (item, index) => {
|
|
6460
6450
|
return openBlock(), createElementBlock("view", {
|
|
6461
6451
|
class: "nut-elevator__bars__inner__item",
|
|
@@ -6468,9 +6458,9 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6468
6458
|
], 32)
|
|
6469
6459
|
], 2);
|
|
6470
6460
|
}
|
|
6471
|
-
var Elevator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6472
|
-
const { componentName: componentName$
|
|
6473
|
-
const _sfc_main$
|
|
6461
|
+
var Elevator = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$H]]);
|
|
6462
|
+
const { componentName: componentName$y, create: create$L } = createComponent("pagination");
|
|
6463
|
+
const _sfc_main$L = create$L({
|
|
6474
6464
|
props: {
|
|
6475
6465
|
modelValue: {
|
|
6476
6466
|
type: Number,
|
|
@@ -6575,19 +6565,19 @@ const _sfc_main$I = create$I({
|
|
|
6575
6565
|
};
|
|
6576
6566
|
}
|
|
6577
6567
|
});
|
|
6578
|
-
const _hoisted_1$
|
|
6579
|
-
const _hoisted_2$
|
|
6568
|
+
const _hoisted_1$z = { class: "nut-pagination" };
|
|
6569
|
+
const _hoisted_2$s = {
|
|
6580
6570
|
key: 0,
|
|
6581
6571
|
class: "nut-pagination-contain"
|
|
6582
6572
|
};
|
|
6583
|
-
const _hoisted_3$
|
|
6573
|
+
const _hoisted_3$m = ["onClick"];
|
|
6584
6574
|
const _hoisted_4$g = {
|
|
6585
6575
|
key: 1,
|
|
6586
6576
|
class: "nut-pagination-contain"
|
|
6587
6577
|
};
|
|
6588
6578
|
const _hoisted_5$b = { class: "nut-pagination-simple" };
|
|
6589
|
-
function _sfc_render$
|
|
6590
|
-
return openBlock(), createElementBlock("view", _hoisted_1$
|
|
6579
|
+
function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6580
|
+
return openBlock(), createElementBlock("view", _hoisted_1$z, [
|
|
6591
6581
|
createElementVNode("view", {
|
|
6592
6582
|
class: normalizeClass(["nut-pagination-prev", _ctx.mode == "multi" ? "" : "simple-border", _ctx.modelValue == 1 ? "disabled" : ""]),
|
|
6593
6583
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.select(_ctx.modelValue - 1, true))
|
|
@@ -6596,7 +6586,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6596
6586
|
createTextVNode(toDisplayString(_ctx.prevText), 1)
|
|
6597
6587
|
])
|
|
6598
6588
|
], 2),
|
|
6599
|
-
_ctx.mode == "multi" ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
6589
|
+
_ctx.mode == "multi" ? (openBlock(), createElementBlock("view", _hoisted_2$s, [
|
|
6600
6590
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.pages, (item, index) => {
|
|
6601
6591
|
return openBlock(), createElementBlock("view", {
|
|
6602
6592
|
key: index + "pagination",
|
|
@@ -6606,7 +6596,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6606
6596
|
renderSlot(_ctx.$slots, "page", { item }, () => [
|
|
6607
6597
|
createTextVNode(toDisplayString(item.text), 1)
|
|
6608
6598
|
])
|
|
6609
|
-
], 10, _hoisted_3$
|
|
6599
|
+
], 10, _hoisted_3$m);
|
|
6610
6600
|
}), 128))
|
|
6611
6601
|
])) : createCommentVNode("", true),
|
|
6612
6602
|
_ctx.mode == "simple" ? (openBlock(), createElementBlock("view", _hoisted_4$g, [
|
|
@@ -6622,8 +6612,8 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6622
6612
|
], 2)
|
|
6623
6613
|
]);
|
|
6624
6614
|
}
|
|
6625
|
-
var Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6626
|
-
const { create: create$
|
|
6615
|
+
var Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$G]]);
|
|
6616
|
+
const { create: create$K } = createComponent("tabs");
|
|
6627
6617
|
class Title {
|
|
6628
6618
|
constructor() {
|
|
6629
6619
|
__publicField(this, "title", "");
|
|
@@ -6632,7 +6622,7 @@ class Title {
|
|
|
6632
6622
|
__publicField(this, "disabled", false);
|
|
6633
6623
|
}
|
|
6634
6624
|
}
|
|
6635
|
-
const _sfc_main$
|
|
6625
|
+
const _sfc_main$K = create$K({
|
|
6636
6626
|
props: {
|
|
6637
6627
|
modelValue: {
|
|
6638
6628
|
type: [String, Number],
|
|
@@ -6761,8 +6751,8 @@ const _sfc_main$H = create$H({
|
|
|
6761
6751
|
}, methods);
|
|
6762
6752
|
}
|
|
6763
6753
|
});
|
|
6764
|
-
const _hoisted_1$
|
|
6765
|
-
function _sfc_render$
|
|
6754
|
+
const _hoisted_1$y = ["onClick"];
|
|
6755
|
+
function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6766
6756
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
6767
6757
|
return openBlock(), createElementBlock("view", {
|
|
6768
6758
|
class: normalizeClass(["nut-tabs", [_ctx.direction]])
|
|
@@ -6796,7 +6786,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6796
6786
|
createElementVNode("view", {
|
|
6797
6787
|
class: normalizeClass(["nut-tabs__titles-item__text", { ellipsis: _ctx.ellipsis && !_ctx.titleScroll && _ctx.direction == "horizontal" }])
|
|
6798
6788
|
}, toDisplayString(item.title), 3)
|
|
6799
|
-
], 14, _hoisted_1$
|
|
6789
|
+
], 14, _hoisted_1$y);
|
|
6800
6790
|
}), 128))
|
|
6801
6791
|
], 6),
|
|
6802
6792
|
createElementVNode("view", {
|
|
@@ -6807,9 +6797,9 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6807
6797
|
], 4)
|
|
6808
6798
|
], 2);
|
|
6809
6799
|
}
|
|
6810
|
-
var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6811
|
-
const { create: create$
|
|
6812
|
-
const _sfc_main$
|
|
6800
|
+
var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$F]]);
|
|
6801
|
+
const { create: create$J } = createComponent("tabpane");
|
|
6802
|
+
const _sfc_main$J = create$J({
|
|
6813
6803
|
props: {
|
|
6814
6804
|
title: {
|
|
6815
6805
|
type: [String, Number],
|
|
@@ -6830,16 +6820,16 @@ const _sfc_main$G = create$G({
|
|
|
6830
6820
|
return { activeKey: parent.activeKey };
|
|
6831
6821
|
}
|
|
6832
6822
|
});
|
|
6833
|
-
function _sfc_render$
|
|
6823
|
+
function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6834
6824
|
return openBlock(), createElementBlock("view", {
|
|
6835
6825
|
class: normalizeClass(["nut-tabpane", { active: _ctx.paneKey == _ctx.activeKey }])
|
|
6836
6826
|
}, [
|
|
6837
6827
|
renderSlot(_ctx.$slots, "default")
|
|
6838
6828
|
], 2);
|
|
6839
6829
|
}
|
|
6840
|
-
var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6841
|
-
const { componentName: componentName$
|
|
6842
|
-
const _sfc_main$
|
|
6830
|
+
var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$E]]);
|
|
6831
|
+
const { componentName: componentName$x, create: create$I } = createComponent("indicator");
|
|
6832
|
+
const _sfc_main$I = create$I({
|
|
6843
6833
|
props: {
|
|
6844
6834
|
size: {
|
|
6845
6835
|
type: Number,
|
|
@@ -6867,17 +6857,17 @@ const _sfc_main$F = create$F({
|
|
|
6867
6857
|
setup(props) {
|
|
6868
6858
|
const { block, align } = toRefs(props);
|
|
6869
6859
|
const classes = computed(() => {
|
|
6870
|
-
const prefixCls = componentName$
|
|
6860
|
+
const prefixCls = componentName$x;
|
|
6871
6861
|
return {
|
|
6872
6862
|
[prefixCls]: true,
|
|
6873
6863
|
[`${prefixCls}--block`]: block.value,
|
|
6874
6864
|
[`${prefixCls}--align__${align.value}`]: block.value && align.value
|
|
6875
6865
|
};
|
|
6876
6866
|
});
|
|
6877
|
-
return { classes, componentName: componentName$
|
|
6867
|
+
return { classes, componentName: componentName$x };
|
|
6878
6868
|
}
|
|
6879
6869
|
});
|
|
6880
|
-
function _sfc_render$
|
|
6870
|
+
function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6881
6871
|
return openBlock(), createElementBlock("view", {
|
|
6882
6872
|
class: normalizeClass(_ctx.classes)
|
|
6883
6873
|
}, [
|
|
@@ -6894,7 +6884,7 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6894
6884
|
}), 128))
|
|
6895
6885
|
], 2);
|
|
6896
6886
|
}
|
|
6897
|
-
var Indicator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6887
|
+
var Indicator = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$D]]);
|
|
6898
6888
|
function flattenVNodes(children, childName) {
|
|
6899
6889
|
const result = [];
|
|
6900
6890
|
const traverse = (children2) => {
|
|
@@ -6953,7 +6943,7 @@ function useProvide(key, childName) {
|
|
|
6953
6943
|
};
|
|
6954
6944
|
};
|
|
6955
6945
|
}
|
|
6956
|
-
const { componentName: componentName$
|
|
6946
|
+
const { componentName: componentName$w } = createComponent("grid");
|
|
6957
6947
|
const GRID_KEY = Symbol("grid");
|
|
6958
6948
|
const gridProps = {
|
|
6959
6949
|
columnNum: {
|
|
@@ -6998,9 +6988,9 @@ const gridProps = {
|
|
|
6998
6988
|
const component$3 = {
|
|
6999
6989
|
props: gridProps,
|
|
7000
6990
|
setup(props, { slots }) {
|
|
7001
|
-
useProvide(GRID_KEY, `${componentName$
|
|
6991
|
+
useProvide(GRID_KEY, `${componentName$w}-item`)({ props });
|
|
7002
6992
|
const rootClass = computed(() => {
|
|
7003
|
-
const prefixCls = componentName$
|
|
6993
|
+
const prefixCls = componentName$w;
|
|
7004
6994
|
return {
|
|
7005
6995
|
[prefixCls]: true,
|
|
7006
6996
|
[`${prefixCls}--border`]: props.border && !props.gutter
|
|
@@ -7022,8 +7012,8 @@ const component$3 = {
|
|
|
7022
7012
|
};
|
|
7023
7013
|
}
|
|
7024
7014
|
};
|
|
7025
|
-
const { create: create$
|
|
7026
|
-
const _sfc_main$
|
|
7015
|
+
const { create: create$H } = createComponent("grid");
|
|
7016
|
+
const _sfc_main$H = create$H(component$3);
|
|
7027
7017
|
function useInject(key) {
|
|
7028
7018
|
const parent = inject(key, null);
|
|
7029
7019
|
if (parent) {
|
|
@@ -7042,8 +7032,8 @@ function useInject(key) {
|
|
|
7042
7032
|
index: ref(-1)
|
|
7043
7033
|
};
|
|
7044
7034
|
}
|
|
7045
|
-
const { create: create$
|
|
7046
|
-
const _sfc_main$
|
|
7035
|
+
const { create: create$G, componentName: componentName$v } = createComponent("grid-item");
|
|
7036
|
+
const _sfc_main$G = create$G({
|
|
7047
7037
|
props: {
|
|
7048
7038
|
text: {
|
|
7049
7039
|
type: String
|
|
@@ -7077,7 +7067,7 @@ const _sfc_main$D = create$D({
|
|
|
7077
7067
|
const index = Parent.index;
|
|
7078
7068
|
const parent = Parent.parent.props;
|
|
7079
7069
|
const rootClass = computed(() => {
|
|
7080
|
-
const prefixCls = componentName$
|
|
7070
|
+
const prefixCls = componentName$v;
|
|
7081
7071
|
return {
|
|
7082
7072
|
[prefixCls]: true
|
|
7083
7073
|
};
|
|
@@ -7097,7 +7087,7 @@ const _sfc_main$D = create$D({
|
|
|
7097
7087
|
return style;
|
|
7098
7088
|
});
|
|
7099
7089
|
const contentClass = computed(() => {
|
|
7100
|
-
const prefixCls = `${componentName$
|
|
7090
|
+
const prefixCls = `${componentName$v}__content`;
|
|
7101
7091
|
return {
|
|
7102
7092
|
[`${prefixCls}`]: true,
|
|
7103
7093
|
[`${prefixCls}--border`]: parent.border,
|
|
@@ -7134,11 +7124,11 @@ const _sfc_main$D = create$D({
|
|
|
7134
7124
|
};
|
|
7135
7125
|
}
|
|
7136
7126
|
});
|
|
7137
|
-
const _hoisted_1$
|
|
7127
|
+
const _hoisted_1$x = {
|
|
7138
7128
|
key: 3,
|
|
7139
7129
|
class: "nut-grid-item__text"
|
|
7140
7130
|
};
|
|
7141
|
-
function _sfc_render$
|
|
7131
|
+
function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7142
7132
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
7143
7133
|
return openBlock(), createElementBlock("view", {
|
|
7144
7134
|
class: normalizeClass(_ctx.rootClass),
|
|
@@ -7155,12 +7145,205 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7155
7145
|
size: _ctx.iconProps.size,
|
|
7156
7146
|
color: _ctx.iconProps.color
|
|
7157
7147
|
}, null, 8, ["name", "size", "color"])),
|
|
7158
|
-
_ctx.$slots.text ? renderSlot(_ctx.$slots, "text", { key: 2 }) : (openBlock(), createElementBlock("view", _hoisted_1$
|
|
7148
|
+
_ctx.$slots.text ? renderSlot(_ctx.$slots, "text", { key: 2 }) : (openBlock(), createElementBlock("view", _hoisted_1$x, toDisplayString(_ctx.text), 1))
|
|
7159
7149
|
], 64))
|
|
7160
7150
|
], 2)
|
|
7161
7151
|
], 6);
|
|
7162
7152
|
}
|
|
7163
|
-
var GridItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7153
|
+
var GridItem = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$C]]);
|
|
7154
|
+
const { componentName: componentName$u, create: create$F } = createComponent("sidenavbar");
|
|
7155
|
+
const _sfc_main$F = create$F({
|
|
7156
|
+
props: {
|
|
7157
|
+
offset: {
|
|
7158
|
+
type: [String, Number],
|
|
7159
|
+
default: 15
|
|
7160
|
+
}
|
|
7161
|
+
},
|
|
7162
|
+
emits: [],
|
|
7163
|
+
setup: (props, context) => {
|
|
7164
|
+
const list = ref(null);
|
|
7165
|
+
const state = reactive({
|
|
7166
|
+
count: 1,
|
|
7167
|
+
observer: null
|
|
7168
|
+
});
|
|
7169
|
+
const classes = computed(() => {
|
|
7170
|
+
const prefixCls = componentName$u;
|
|
7171
|
+
return {
|
|
7172
|
+
[prefixCls]: true
|
|
7173
|
+
};
|
|
7174
|
+
});
|
|
7175
|
+
const setPaddingLeft = (nodeList, level = 1) => {
|
|
7176
|
+
for (let i = 0; i < nodeList.length; i++) {
|
|
7177
|
+
let item = nodeList[i];
|
|
7178
|
+
item.children[0].style.paddingLeft = props.offset * level + "px";
|
|
7179
|
+
if (!item.className.includes("nut-sidenavbaritem")) {
|
|
7180
|
+
setPaddingLeft(Array.from(item.children[1].children), ++state.count);
|
|
7181
|
+
}
|
|
7182
|
+
}
|
|
7183
|
+
state.count--;
|
|
7184
|
+
};
|
|
7185
|
+
const handleSlots = () => {
|
|
7186
|
+
let childNodes = list.value.childNodes;
|
|
7187
|
+
if (childNodes.length) {
|
|
7188
|
+
childNodes = Array.from(childNodes).filter((item) => item.nodeType !== 3).map((item) => {
|
|
7189
|
+
return item;
|
|
7190
|
+
});
|
|
7191
|
+
setPaddingLeft(childNodes);
|
|
7192
|
+
}
|
|
7193
|
+
};
|
|
7194
|
+
onMounted(() => {
|
|
7195
|
+
handleSlots();
|
|
7196
|
+
state.observer = new MutationObserver(function() {
|
|
7197
|
+
state.count = 1;
|
|
7198
|
+
handleSlots();
|
|
7199
|
+
});
|
|
7200
|
+
state.observer.observe(list.value, {
|
|
7201
|
+
attributes: false,
|
|
7202
|
+
childList: true,
|
|
7203
|
+
characterData: false,
|
|
7204
|
+
subtree: false
|
|
7205
|
+
});
|
|
7206
|
+
});
|
|
7207
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
7208
|
+
list,
|
|
7209
|
+
classes
|
|
7210
|
+
});
|
|
7211
|
+
}
|
|
7212
|
+
});
|
|
7213
|
+
const _hoisted_1$w = { class: "nut-sidenavbar__content" };
|
|
7214
|
+
const _hoisted_2$r = {
|
|
7215
|
+
class: "nut-sidenavbar__content__list",
|
|
7216
|
+
ref: "list"
|
|
7217
|
+
};
|
|
7218
|
+
function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7219
|
+
return openBlock(), createElementBlock("view", {
|
|
7220
|
+
class: normalizeClass(_ctx.classes)
|
|
7221
|
+
}, [
|
|
7222
|
+
createElementVNode("view", _hoisted_1$w, [
|
|
7223
|
+
createElementVNode("view", _hoisted_2$r, [
|
|
7224
|
+
renderSlot(_ctx.$slots, "default")
|
|
7225
|
+
], 512)
|
|
7226
|
+
])
|
|
7227
|
+
], 2);
|
|
7228
|
+
}
|
|
7229
|
+
var SideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$B]]);
|
|
7230
|
+
const { componentName: componentName$t, create: create$E } = createComponent("sidenavbaritem");
|
|
7231
|
+
const _sfc_main$E = create$E({
|
|
7232
|
+
props: {
|
|
7233
|
+
title: {
|
|
7234
|
+
type: String,
|
|
7235
|
+
default: ""
|
|
7236
|
+
},
|
|
7237
|
+
ikey: {
|
|
7238
|
+
type: String,
|
|
7239
|
+
default: ""
|
|
7240
|
+
}
|
|
7241
|
+
},
|
|
7242
|
+
emits: ["click"],
|
|
7243
|
+
setup: (props, context) => {
|
|
7244
|
+
const classes = computed(() => {
|
|
7245
|
+
const prefixCls = componentName$t;
|
|
7246
|
+
return {
|
|
7247
|
+
[prefixCls]: true
|
|
7248
|
+
};
|
|
7249
|
+
});
|
|
7250
|
+
const handleClick = () => {
|
|
7251
|
+
context.emit("click");
|
|
7252
|
+
};
|
|
7253
|
+
return {
|
|
7254
|
+
classes,
|
|
7255
|
+
handleClick
|
|
7256
|
+
};
|
|
7257
|
+
}
|
|
7258
|
+
});
|
|
7259
|
+
const _hoisted_1$v = ["ikey"];
|
|
7260
|
+
const _hoisted_2$q = { class: "nut-sidenavbaritem__title" };
|
|
7261
|
+
function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7262
|
+
return openBlock(), createElementBlock("view", {
|
|
7263
|
+
class: "nut-sidenavbaritem",
|
|
7264
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
|
|
7265
|
+
ikey: _ctx.ikey
|
|
7266
|
+
}, [
|
|
7267
|
+
createElementVNode("span", _hoisted_2$q, toDisplayString(_ctx.title), 1)
|
|
7268
|
+
], 8, _hoisted_1$v);
|
|
7269
|
+
}
|
|
7270
|
+
var SideNavBarItem = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$A]]);
|
|
7271
|
+
const { componentName: componentName$s, create: create$D } = createComponent("subsidenavbar");
|
|
7272
|
+
const _sfc_main$D = create$D({
|
|
7273
|
+
props: {
|
|
7274
|
+
title: {
|
|
7275
|
+
type: String,
|
|
7276
|
+
default: ""
|
|
7277
|
+
},
|
|
7278
|
+
ikey: {
|
|
7279
|
+
type: [String, Number],
|
|
7280
|
+
default: ""
|
|
7281
|
+
},
|
|
7282
|
+
open: {
|
|
7283
|
+
type: Boolean,
|
|
7284
|
+
default: true
|
|
7285
|
+
}
|
|
7286
|
+
},
|
|
7287
|
+
emits: ["title-click"],
|
|
7288
|
+
setup: (props, context) => {
|
|
7289
|
+
const state = reactive({
|
|
7290
|
+
direction: ""
|
|
7291
|
+
});
|
|
7292
|
+
const classes = computed(() => {
|
|
7293
|
+
const prefixCls = componentName$s;
|
|
7294
|
+
return {
|
|
7295
|
+
[prefixCls]: true
|
|
7296
|
+
};
|
|
7297
|
+
});
|
|
7298
|
+
const style = computed(() => {
|
|
7299
|
+
return {
|
|
7300
|
+
height: !state.direction ? "auto" : "0px"
|
|
7301
|
+
};
|
|
7302
|
+
});
|
|
7303
|
+
const handleClick = () => {
|
|
7304
|
+
context.emit("title-click");
|
|
7305
|
+
state.direction = !state.direction ? "up" : "";
|
|
7306
|
+
};
|
|
7307
|
+
onMounted(() => {
|
|
7308
|
+
state.direction = props.open ? "" : "up";
|
|
7309
|
+
});
|
|
7310
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
7311
|
+
classes,
|
|
7312
|
+
style,
|
|
7313
|
+
handleClick
|
|
7314
|
+
});
|
|
7315
|
+
}
|
|
7316
|
+
});
|
|
7317
|
+
const _hoisted_1$u = ["ikey"];
|
|
7318
|
+
const _hoisted_2$p = { class: "nut-subsidenavbar__title__text" };
|
|
7319
|
+
const _hoisted_3$l = { class: "nut-subsidenavbar__title__icon" };
|
|
7320
|
+
function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7321
|
+
const _component_nut_icon = resolveComponent("nut-icon");
|
|
7322
|
+
return openBlock(), createElementBlock("view", {
|
|
7323
|
+
class: normalizeClass(_ctx.classes),
|
|
7324
|
+
ikey: _ctx.ikey
|
|
7325
|
+
}, [
|
|
7326
|
+
createElementVNode("view", {
|
|
7327
|
+
class: "nut-subsidenavbar__title",
|
|
7328
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
7329
|
+
}, [
|
|
7330
|
+
createElementVNode("span", _hoisted_2$p, toDisplayString(_ctx.title), 1),
|
|
7331
|
+
createElementVNode("span", _hoisted_3$l, [
|
|
7332
|
+
createVNode(_component_nut_icon, {
|
|
7333
|
+
name: "down-arrow",
|
|
7334
|
+
class: normalizeClass(_ctx.direction)
|
|
7335
|
+
}, null, 8, ["class"])
|
|
7336
|
+
])
|
|
7337
|
+
]),
|
|
7338
|
+
createElementVNode("view", {
|
|
7339
|
+
class: normalizeClass(["nut-subsidenavbar__list", !_ctx.direction ? "nutFadeIn" : "nutFadeOut"]),
|
|
7340
|
+
style: normalizeStyle(_ctx.style)
|
|
7341
|
+
}, [
|
|
7342
|
+
renderSlot(_ctx.$slots, "default")
|
|
7343
|
+
], 6)
|
|
7344
|
+
], 10, _hoisted_1$u);
|
|
7345
|
+
}
|
|
7346
|
+
var SubSideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$z]]);
|
|
7164
7347
|
const Utils = {
|
|
7165
7348
|
isLeapYear: function(y) {
|
|
7166
7349
|
return y % 4 == 0 && y % 100 != 0 || y % 400 == 0;
|
|
@@ -7629,9 +7812,9 @@ const _sfc_main$C = create$C({
|
|
|
7629
7812
|
}, toRefs(state)), toRefs(props));
|
|
7630
7813
|
}
|
|
7631
7814
|
});
|
|
7632
|
-
const _hoisted_1$
|
|
7633
|
-
const _hoisted_2$
|
|
7634
|
-
const _hoisted_3$
|
|
7815
|
+
const _hoisted_1$t = { class: "calendar-title" };
|
|
7816
|
+
const _hoisted_2$o = { class: "calendar-curr-month" };
|
|
7817
|
+
const _hoisted_3$k = {
|
|
7635
7818
|
class: "calendar-weeks",
|
|
7636
7819
|
ref: "weeksPanel"
|
|
7637
7820
|
};
|
|
@@ -7671,10 +7854,10 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7671
7854
|
class: normalizeClass(["nut-calendar-header", { "nut-calendar-header-tile": !_ctx.poppable }])
|
|
7672
7855
|
}, [
|
|
7673
7856
|
_ctx.poppable ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
7674
|
-
createElementVNode("view", _hoisted_1$
|
|
7675
|
-
createElementVNode("view", _hoisted_2$
|
|
7857
|
+
createElementVNode("view", _hoisted_1$t, toDisplayString(_ctx.title), 1),
|
|
7858
|
+
createElementVNode("view", _hoisted_2$o, toDisplayString(_ctx.yearMonthTitle), 1)
|
|
7676
7859
|
], 64)) : createCommentVNode("", true),
|
|
7677
|
-
createElementVNode("view", _hoisted_3$
|
|
7860
|
+
createElementVNode("view", _hoisted_3$k, [
|
|
7678
7861
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item, index) => {
|
|
7679
7862
|
return openBlock(), createElementBlock("view", {
|
|
7680
7863
|
class: "calendar-week-item",
|
|
@@ -7838,7 +8021,7 @@ var Calendar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$
|
|
|
7838
8021
|
const { create: create$A, componentName: componentName$r } = createComponent("checkbox");
|
|
7839
8022
|
const _sfc_main$A = create$A({
|
|
7840
8023
|
components: {
|
|
7841
|
-
nutIcon: _sfc_main$
|
|
8024
|
+
nutIcon: _sfc_main$1o
|
|
7842
8025
|
},
|
|
7843
8026
|
props: {
|
|
7844
8027
|
modelValue: {
|
|
@@ -7894,7 +8077,7 @@ const _sfc_main$A = create$A({
|
|
|
7894
8077
|
};
|
|
7895
8078
|
const renderIcon = () => {
|
|
7896
8079
|
const { iconName, iconSize, iconActiveName } = props;
|
|
7897
|
-
return h(_sfc_main$
|
|
8080
|
+
return h(_sfc_main$1o, {
|
|
7898
8081
|
name: !pValue.value ? iconName : iconActiveName,
|
|
7899
8082
|
size: iconSize,
|
|
7900
8083
|
class: color.value
|
|
@@ -7998,10 +8181,6 @@ const commonProps = {
|
|
|
7998
8181
|
type: Boolean,
|
|
7999
8182
|
default: false
|
|
8000
8183
|
},
|
|
8001
|
-
visibleItemCount: {
|
|
8002
|
-
type: [Number, String],
|
|
8003
|
-
default: 7
|
|
8004
|
-
},
|
|
8005
8184
|
defaultIndex: {
|
|
8006
8185
|
type: [Number, String],
|
|
8007
8186
|
default: 0
|
|
@@ -8011,206 +8190,208 @@ const commonProps = {
|
|
|
8011
8190
|
default: 35
|
|
8012
8191
|
}
|
|
8013
8192
|
};
|
|
8014
|
-
const MOMENTUM_LIMIT_DISTANCE = 15;
|
|
8015
|
-
const MOMENTUM_LIMIT_TIME = 300;
|
|
8016
|
-
const DEFAULT_DURATION = 200;
|
|
8017
8193
|
const { create: create$y } = createComponent("picker-column");
|
|
8018
|
-
function range(num, min, max) {
|
|
8019
|
-
return Math.min(Math.max(num, min), max);
|
|
8020
|
-
}
|
|
8021
|
-
function stopPropagation(event) {
|
|
8022
|
-
event.stopPropagation();
|
|
8023
|
-
}
|
|
8024
|
-
function preventDefault(event, isStopPropagation) {
|
|
8025
|
-
if (typeof event.cancelable !== "boolean" || event.cancelable) {
|
|
8026
|
-
event.preventDefault();
|
|
8027
|
-
}
|
|
8028
|
-
if (isStopPropagation) {
|
|
8029
|
-
stopPropagation(event);
|
|
8030
|
-
}
|
|
8031
|
-
}
|
|
8032
|
-
function getElementTranslateY(element) {
|
|
8033
|
-
const style = window.getComputedStyle(element);
|
|
8034
|
-
const transform = style.transform || style.webkitTransform;
|
|
8035
|
-
const translateY = transform.slice(7, transform.length - 1).split(", ")[5];
|
|
8036
|
-
return Number(translateY);
|
|
8037
|
-
}
|
|
8038
|
-
function isObject$1(val) {
|
|
8039
|
-
return val !== null && typeof val === "object";
|
|
8040
|
-
}
|
|
8041
|
-
function isOptionDisabled(option) {
|
|
8042
|
-
return isObject$1(option) && option.disabled;
|
|
8043
|
-
}
|
|
8044
8194
|
const _sfc_main$y = create$y({
|
|
8045
8195
|
props: __spreadValues({
|
|
8046
|
-
dataType: String
|
|
8196
|
+
dataType: String,
|
|
8197
|
+
itemShow: {
|
|
8198
|
+
type: Boolean,
|
|
8199
|
+
default: false
|
|
8200
|
+
}
|
|
8047
8201
|
}, commonProps),
|
|
8048
8202
|
emits: ["click", "change"],
|
|
8049
8203
|
setup(props, { emit }) {
|
|
8050
8204
|
const wrapper = ref();
|
|
8051
8205
|
const state = reactive({
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
|
|
8206
|
+
touchParams: {
|
|
8207
|
+
startY: 0,
|
|
8208
|
+
endY: 0,
|
|
8209
|
+
startTime: 0,
|
|
8210
|
+
endTime: 0,
|
|
8211
|
+
lastY: 0
|
|
8212
|
+
},
|
|
8213
|
+
currIndex: 1,
|
|
8214
|
+
transformY: 0,
|
|
8215
|
+
scrollDistance: 0,
|
|
8216
|
+
lineSpacing: 36,
|
|
8217
|
+
rotation: 20,
|
|
8218
|
+
timer: null
|
|
8061
8219
|
});
|
|
8062
|
-
const
|
|
8063
|
-
const
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
-
|
|
8067
|
-
|
|
8068
|
-
const
|
|
8069
|
-
return
|
|
8220
|
+
const roller = ref(null);
|
|
8221
|
+
const list = ref(null);
|
|
8222
|
+
const listItem = ref(null);
|
|
8223
|
+
const touchDeg = ref(0);
|
|
8224
|
+
const touchTime = ref(0);
|
|
8225
|
+
const touchTranslateY = ref(0);
|
|
8226
|
+
const touchListStyle = computed(() => {
|
|
8227
|
+
return {
|
|
8228
|
+
transition: `transform ${touchTime.value}ms cubic-bezier(0.19, 1, 0.22, 1)`,
|
|
8229
|
+
transform: `translate3d(0, ${state.scrollDistance}px, 0)`
|
|
8230
|
+
};
|
|
8231
|
+
});
|
|
8232
|
+
const touchRollerStyle = computed(() => {
|
|
8233
|
+
return {
|
|
8234
|
+
transition: `transform ${touchTime.value}ms cubic-bezier(0.19, 1, 0.22, 1)`,
|
|
8235
|
+
transform: `rotate3d(1, 0, 0, ${touchDeg.value})`
|
|
8236
|
+
};
|
|
8237
|
+
});
|
|
8238
|
+
const onTouchStart = (event) => {
|
|
8239
|
+
event.preventDefault();
|
|
8240
|
+
let changedTouches = event.changedTouches[0];
|
|
8241
|
+
state.touchParams.startY = changedTouches.pageY;
|
|
8242
|
+
state.touchParams.startTime = event.timeStamp || Date.now();
|
|
8243
|
+
state.transformY = state.scrollDistance;
|
|
8070
8244
|
};
|
|
8071
|
-
const
|
|
8072
|
-
|
|
8245
|
+
const onTouchMove = (event) => {
|
|
8246
|
+
event.preventDefault();
|
|
8247
|
+
let changedTouches = event.changedTouches[0];
|
|
8248
|
+
state.touchParams.lastY = changedTouches.pageY;
|
|
8249
|
+
state.touchParams.lastTime = event.timeStamp || Date.now();
|
|
8250
|
+
let move = state.touchParams.lastY - state.touchParams.startY;
|
|
8251
|
+
setMove(move);
|
|
8073
8252
|
};
|
|
8074
|
-
const
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
if (!isOptionDisabled(state.options[i]))
|
|
8086
|
-
return i;
|
|
8087
|
-
}
|
|
8088
|
-
for (let i = index - 1; i >= 0; i--) {
|
|
8089
|
-
if (!isOptionDisabled(state.options[i]))
|
|
8090
|
-
return i;
|
|
8091
|
-
}
|
|
8092
|
-
};
|
|
8093
|
-
const setIndex = (index, emitChange = false) => {
|
|
8094
|
-
index = adjustIndex(index) || 0;
|
|
8095
|
-
const offset = -index * +props.itemHeight;
|
|
8096
|
-
const trigger = () => {
|
|
8097
|
-
if (index !== state.index) {
|
|
8098
|
-
state.index = index;
|
|
8099
|
-
if (emitChange) {
|
|
8100
|
-
emit("change", index);
|
|
8101
|
-
}
|
|
8102
|
-
}
|
|
8103
|
-
};
|
|
8104
|
-
if (state.moving && offset !== state.offset) {
|
|
8105
|
-
state.transitionEndTrigger = trigger;
|
|
8253
|
+
const onTouchEnd = (event) => {
|
|
8254
|
+
event.preventDefault();
|
|
8255
|
+
let changedTouches = event.changedTouches[0];
|
|
8256
|
+
state.touchParams.lastY = changedTouches.pageY;
|
|
8257
|
+
state.touchParams.lastTime = event.timestamp || Date.now();
|
|
8258
|
+
let move = state.touchParams.lastY - state.touchParams.startY;
|
|
8259
|
+
let moveTime = state.touchParams.lastTime - state.touchParams.startTime;
|
|
8260
|
+
if (moveTime <= 300) {
|
|
8261
|
+
move = move * 2;
|
|
8262
|
+
moveTime = moveTime + 1e3;
|
|
8263
|
+
setMove(move, "end", moveTime);
|
|
8106
8264
|
} else {
|
|
8107
|
-
|
|
8265
|
+
setMove(move, "end");
|
|
8108
8266
|
}
|
|
8109
|
-
state.offset = offset;
|
|
8110
8267
|
};
|
|
8111
|
-
const
|
|
8112
|
-
|
|
8113
|
-
distance = state.offset + speed / 0.03 * (distance < 0 ? -1 : 1);
|
|
8114
|
-
const index = getIndexByOffset(distance);
|
|
8115
|
-
setIndex(index, true);
|
|
8268
|
+
const setRollerStyle = (index) => {
|
|
8269
|
+
return `transform: rotate3d(1, 0, 0, ${-state.rotation * index}deg) translate3d(0px, 0px, 104px)`;
|
|
8116
8270
|
};
|
|
8117
|
-
const
|
|
8118
|
-
if (
|
|
8119
|
-
return;
|
|
8120
|
-
}
|
|
8121
|
-
touch.start(event);
|
|
8122
|
-
if (state.moving) {
|
|
8123
|
-
const translateY = getElementTranslateY(wrapper.value);
|
|
8124
|
-
state.offset = Math.min(0, translateY - baseOffset());
|
|
8125
|
-
state.startOffset = state.offset;
|
|
8271
|
+
const isHidden = (index) => {
|
|
8272
|
+
if (index >= state.currIndex + 8 || index <= state.currIndex - 8) {
|
|
8273
|
+
return true;
|
|
8126
8274
|
} else {
|
|
8127
|
-
|
|
8275
|
+
return false;
|
|
8128
8276
|
}
|
|
8129
|
-
state.duration = 0;
|
|
8130
|
-
state.touchStartTime = Date.now();
|
|
8131
|
-
state.momentumOffset = state.startOffset;
|
|
8132
|
-
state.transitionEndTrigger = null;
|
|
8133
8277
|
};
|
|
8134
|
-
const
|
|
8135
|
-
if (
|
|
8136
|
-
|
|
8137
|
-
}
|
|
8138
|
-
state.moving = true;
|
|
8139
|
-
touch.move(event);
|
|
8140
|
-
if (touch.isVertical()) {
|
|
8141
|
-
state.moving = true;
|
|
8142
|
-
preventDefault(event, true);
|
|
8143
|
-
}
|
|
8144
|
-
const moveOffset = state.startOffset + touch.deltaY.value;
|
|
8145
|
-
if (moveOffset > props.itemHeight) {
|
|
8146
|
-
state.offset = props.itemHeight;
|
|
8278
|
+
const setTransform = (translateY = 0, type, time = 1e3, deg) => {
|
|
8279
|
+
if (type === "end") {
|
|
8280
|
+
touchTime.value = time;
|
|
8147
8281
|
} else {
|
|
8148
|
-
|
|
8149
|
-
}
|
|
8150
|
-
const now = Date.now();
|
|
8151
|
-
if (now - state.touchStartTime > MOMENTUM_LIMIT_TIME) {
|
|
8152
|
-
state.touchStartTime = now;
|
|
8153
|
-
state.momentumOffset = state.offset;
|
|
8282
|
+
touchTime.value = 0;
|
|
8154
8283
|
}
|
|
8284
|
+
touchDeg.value = deg;
|
|
8285
|
+
touchTranslateY.value = translateY;
|
|
8286
|
+
state.scrollDistance = translateY;
|
|
8155
8287
|
};
|
|
8156
|
-
const
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8288
|
+
const setMove = (move, type, time) => {
|
|
8289
|
+
let updateMove = move + state.transformY;
|
|
8290
|
+
if (type === "end") {
|
|
8291
|
+
if (updateMove > 0) {
|
|
8292
|
+
updateMove = 0;
|
|
8293
|
+
}
|
|
8294
|
+
if (updateMove < -(props.listData.values.length - 1) * state.lineSpacing) {
|
|
8295
|
+
updateMove = -(props.listData.values.length - 1) * state.lineSpacing;
|
|
8296
|
+
}
|
|
8297
|
+
let endMove = Math.round(updateMove / state.lineSpacing) * state.lineSpacing;
|
|
8298
|
+
let deg = `${(Math.abs(Math.round(endMove / state.lineSpacing)) + 1) * state.rotation}deg`;
|
|
8299
|
+
setTransform(endMove, type, time, deg);
|
|
8300
|
+
let t = time ? time / 2 : 0;
|
|
8301
|
+
state.timer = setTimeout(() => {
|
|
8302
|
+
setChooseValue();
|
|
8303
|
+
}, t);
|
|
8304
|
+
state.currIndex = Math.abs(Math.round(endMove / state.lineSpacing)) + 1;
|
|
8305
|
+
} else {
|
|
8306
|
+
let deg = "0deg";
|
|
8307
|
+
if (updateMove < 0) {
|
|
8308
|
+
deg = `${(Math.abs(updateMove / state.lineSpacing) + 1) * state.rotation}deg`;
|
|
8309
|
+
} else {
|
|
8310
|
+
deg = `${(-updateMove / state.lineSpacing + 1) * state.rotation}deg`;
|
|
8311
|
+
}
|
|
8312
|
+
setTransform(updateMove, null, void 0, deg);
|
|
8313
|
+
state.currIndex = Math.abs(Math.round(updateMove / state.lineSpacing)) + 1;
|
|
8166
8314
|
}
|
|
8167
8315
|
};
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
}
|
|
8316
|
+
const setChooseValue = () => {
|
|
8317
|
+
emit("change", state.currIndex - 1);
|
|
8318
|
+
};
|
|
8319
|
+
const modifyStatus = (type) => {
|
|
8320
|
+
let index = props.defaultIndex;
|
|
8321
|
+
state.currIndex = index === -1 ? 1 : index + 1;
|
|
8322
|
+
let move = index === -1 ? 0 : index * state.lineSpacing;
|
|
8323
|
+
type && setChooseValue();
|
|
8324
|
+
setMove(-move);
|
|
8325
|
+
};
|
|
8171
8326
|
watch(() => props.listData, (val) => {
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8327
|
+
state.transformY = 0;
|
|
8328
|
+
modifyStatus(false);
|
|
8329
|
+
}, {
|
|
8330
|
+
deep: true
|
|
8175
8331
|
});
|
|
8176
8332
|
watch(() => props.defaultIndex, (val) => {
|
|
8177
|
-
|
|
8333
|
+
state.transformY = 0;
|
|
8334
|
+
modifyStatus(false);
|
|
8178
8335
|
});
|
|
8179
|
-
|
|
8336
|
+
onMounted(() => {
|
|
8337
|
+
modifyStatus(true);
|
|
8338
|
+
});
|
|
8339
|
+
return __spreadProps(__spreadValues(__spreadValues({}, toRefs(state)), toRefs(props)), {
|
|
8180
8340
|
wrapper,
|
|
8341
|
+
setRollerStyle,
|
|
8342
|
+
isHidden,
|
|
8343
|
+
roller,
|
|
8344
|
+
list,
|
|
8345
|
+
listItem,
|
|
8181
8346
|
onTouchStart,
|
|
8182
8347
|
onTouchMove,
|
|
8183
8348
|
onTouchEnd,
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
columns: state.options,
|
|
8187
|
-
height: Number(props.visibleItemCount) * +props.itemHeight
|
|
8349
|
+
touchRollerStyle,
|
|
8350
|
+
touchListStyle
|
|
8188
8351
|
});
|
|
8189
8352
|
}
|
|
8190
8353
|
});
|
|
8354
|
+
const _hoisted_1$s = { class: "nut-picker-content" };
|
|
8355
|
+
const _hoisted_2$n = {
|
|
8356
|
+
key: 0,
|
|
8357
|
+
class: "nut-picker-placeholder"
|
|
8358
|
+
};
|
|
8191
8359
|
function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8192
8360
|
return openBlock(), createElementBlock("view", {
|
|
8193
|
-
class: "nut-
|
|
8194
|
-
style: normalizeStyle({ height: _ctx.height + "px" }),
|
|
8361
|
+
class: "nut-picker__list",
|
|
8195
8362
|
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
8196
8363
|
onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
|
|
8197
|
-
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
8198
|
-
onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
|
|
8199
|
-
onTransitionend: _cache[4] || (_cache[4] = (...args) => _ctx.stopMomentum && _ctx.stopMomentum(...args))
|
|
8364
|
+
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
8200
8365
|
}, [
|
|
8201
8366
|
createElementVNode("view", {
|
|
8202
|
-
class: "nut-
|
|
8203
|
-
ref: "
|
|
8204
|
-
style: normalizeStyle(_ctx.
|
|
8367
|
+
class: "nut-picker-roller",
|
|
8368
|
+
ref: "roller",
|
|
8369
|
+
style: normalizeStyle(_ctx.touchRollerStyle)
|
|
8205
8370
|
}, [
|
|
8206
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.
|
|
8371
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.listData.values, (item, index) => {
|
|
8207
8372
|
return openBlock(), createElementBlock("view", {
|
|
8208
|
-
class: "nut-
|
|
8209
|
-
|
|
8210
|
-
|
|
8373
|
+
class: normalizeClass(["nut-picker-roller-item", { "nut-picker-roller-item-hidden": _ctx.isHidden(index + 1) }]),
|
|
8374
|
+
style: normalizeStyle(_ctx.setRollerStyle(index + 1)),
|
|
8375
|
+
key: item.label ? item.label : index
|
|
8376
|
+
}, toDisplayString(_ctx.dataType === "cascade" ? item.text : item), 7);
|
|
8211
8377
|
}), 128))
|
|
8212
|
-
], 4)
|
|
8213
|
-
|
|
8378
|
+
], 4),
|
|
8379
|
+
createElementVNode("view", _hoisted_1$s, [
|
|
8380
|
+
createElementVNode("view", {
|
|
8381
|
+
class: "nut-picker-list-panel",
|
|
8382
|
+
ref: "list",
|
|
8383
|
+
style: normalizeStyle(_ctx.touchListStyle)
|
|
8384
|
+
}, [
|
|
8385
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.listData.values, (item, index) => {
|
|
8386
|
+
return openBlock(), createElementBlock("view", {
|
|
8387
|
+
class: "nut-picker-item nut-picker-item-ref",
|
|
8388
|
+
key: item.label ? item.label : index
|
|
8389
|
+
}, toDisplayString(_ctx.dataType === "cascade" ? item.text : item), 1);
|
|
8390
|
+
}), 128)),
|
|
8391
|
+
_ctx.listData && _ctx.listData.length === 1 ? (openBlock(), createElementBlock("view", _hoisted_2$n)) : createCommentVNode("", true)
|
|
8392
|
+
], 4)
|
|
8393
|
+
])
|
|
8394
|
+
], 32);
|
|
8214
8395
|
}
|
|
8215
8396
|
var column = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$w]]);
|
|
8216
8397
|
const { create: create$x, componentName: componentName$p } = createComponent("picker");
|
|
@@ -8250,12 +8431,6 @@ const _sfc_main$x = create$x({
|
|
|
8250
8431
|
[prefixCls]: true
|
|
8251
8432
|
};
|
|
8252
8433
|
});
|
|
8253
|
-
const top = computed(() => {
|
|
8254
|
-
return Number(+props.visibleItemCount - 1) / 2 * +props.itemHeight;
|
|
8255
|
-
});
|
|
8256
|
-
const height = computed(() => {
|
|
8257
|
-
return Number(props.visibleItemCount) * +props.itemHeight;
|
|
8258
|
-
});
|
|
8259
8434
|
const dataType = computed(() => {
|
|
8260
8435
|
const firstColumn = state.formattedColumns[0];
|
|
8261
8436
|
if (typeof firstColumn === "object") {
|
|
@@ -8270,9 +8445,7 @@ const _sfc_main$x = create$x({
|
|
|
8270
8445
|
});
|
|
8271
8446
|
const columnList = computed(() => {
|
|
8272
8447
|
if (dataType.value === "text") {
|
|
8273
|
-
return [
|
|
8274
|
-
{ values: state.formattedColumns, defaultIndex: state.defaultIndex }
|
|
8275
|
-
];
|
|
8448
|
+
return [{ values: state.formattedColumns, defaultIndex: state.defaultIndex }];
|
|
8276
8449
|
} else if (dataType.value === "multipleColumns") {
|
|
8277
8450
|
return state.formattedColumns;
|
|
8278
8451
|
} else if (dataType.value === "cascade") {
|
|
@@ -8337,7 +8510,7 @@ const _sfc_main$x = create$x({
|
|
|
8337
8510
|
} else if (dataType.value === "multipleColumns") {
|
|
8338
8511
|
defaultIndexList[columnIndex] = dataIndex;
|
|
8339
8512
|
const val = defaultIndexList.map((res, i) => toRaw(state.formattedColumns)[i].values[res]);
|
|
8340
|
-
emit("change", val);
|
|
8513
|
+
emit("change", val, columnIndex, dataIndex);
|
|
8341
8514
|
}
|
|
8342
8515
|
};
|
|
8343
8516
|
const confirm = () => {
|
|
@@ -8367,8 +8540,6 @@ const _sfc_main$x = create$x({
|
|
|
8367
8540
|
column,
|
|
8368
8541
|
dataType,
|
|
8369
8542
|
columnList,
|
|
8370
|
-
top,
|
|
8371
|
-
height,
|
|
8372
8543
|
close,
|
|
8373
8544
|
changeHandler,
|
|
8374
8545
|
confirm
|
|
@@ -8377,6 +8548,7 @@ const _sfc_main$x = create$x({
|
|
|
8377
8548
|
});
|
|
8378
8549
|
const _hoisted_1$r = { class: "nut-picker__bar" };
|
|
8379
8550
|
const _hoisted_2$m = { class: "nut-picker__column" };
|
|
8551
|
+
const _hoisted_3$j = /* @__PURE__ */ createElementVNode("view", { class: "nut-picker__hairline" }, null, -1);
|
|
8380
8552
|
function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8381
8553
|
const _component_nut_picker_column = resolveComponent("nut-picker-column");
|
|
8382
8554
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
@@ -8385,13 +8557,13 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8385
8557
|
}, [
|
|
8386
8558
|
createVNode(_component_nut_popup, {
|
|
8387
8559
|
position: "bottom",
|
|
8388
|
-
style: normalizeStyle({ height: _ctx.height + 56 + "px" }),
|
|
8389
8560
|
visible: _ctx.show,
|
|
8390
8561
|
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.show = $event),
|
|
8391
8562
|
teleport: _ctx.teleport,
|
|
8392
8563
|
"lock-scroll": _ctx.lockScroll,
|
|
8393
8564
|
"close-on-click-overlay": _ctx.closeOnClickOverlay,
|
|
8394
|
-
onClose: _ctx.close
|
|
8565
|
+
onClose: _ctx.close,
|
|
8566
|
+
round: true
|
|
8395
8567
|
}, {
|
|
8396
8568
|
default: withCtx(() => [
|
|
8397
8569
|
createElementVNode("view", _hoisted_1$r, [
|
|
@@ -8406,36 +8578,29 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8406
8578
|
}, toDisplayString(_ctx.okText), 1)
|
|
8407
8579
|
]),
|
|
8408
8580
|
createElementVNode("view", _hoisted_2$m, [
|
|
8409
|
-
|
|
8410
|
-
class: "nut-picker__mask",
|
|
8411
|
-
style: normalizeStyle({ backgroundSize: `100% ${_ctx.top}px` })
|
|
8412
|
-
}, null, 4),
|
|
8413
|
-
createElementVNode("view", {
|
|
8414
|
-
class: "nut-picker__hairline",
|
|
8415
|
-
style: normalizeStyle({ top: ` ${_ctx.top}px` })
|
|
8416
|
-
}, null, 4),
|
|
8581
|
+
_hoisted_3$j,
|
|
8417
8582
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columnList, (item, columnIndex) => {
|
|
8418
8583
|
return openBlock(), createElementBlock("view", {
|
|
8419
8584
|
class: "nut-picker__columnitem",
|
|
8420
8585
|
key: columnIndex
|
|
8421
8586
|
}, [
|
|
8422
8587
|
createVNode(_component_nut_picker_column, {
|
|
8423
|
-
|
|
8588
|
+
itemShow: _ctx.show,
|
|
8589
|
+
"list-data": item,
|
|
8424
8590
|
readonly: _ctx.readonly,
|
|
8425
8591
|
"default-index": item.defaultIndex,
|
|
8426
8592
|
"visible-item-count": _ctx.visibleItemCount,
|
|
8427
|
-
"item-height": _ctx.itemHeight,
|
|
8428
8593
|
"data-type": _ctx.dataType,
|
|
8429
8594
|
onChange: (dataIndex) => {
|
|
8430
8595
|
_ctx.changeHandler(columnIndex, dataIndex);
|
|
8431
8596
|
}
|
|
8432
|
-
}, null, 8, ["list-data", "readonly", "default-index", "visible-item-count", "
|
|
8597
|
+
}, null, 8, ["itemShow", "list-data", "readonly", "default-index", "visible-item-count", "data-type", "onChange"])
|
|
8433
8598
|
]);
|
|
8434
8599
|
}), 128))
|
|
8435
8600
|
])
|
|
8436
8601
|
]),
|
|
8437
8602
|
_: 1
|
|
8438
|
-
}, 8, ["
|
|
8603
|
+
}, 8, ["visible", "teleport", "lock-scroll", "close-on-click-overlay", "onClose"])
|
|
8439
8604
|
], 2);
|
|
8440
8605
|
}
|
|
8441
8606
|
var Picker = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$v]]);
|
|
@@ -8608,8 +8773,6 @@ const _sfc_main$w = create$w({
|
|
|
8608
8773
|
}
|
|
8609
8774
|
};
|
|
8610
8775
|
const generateValue = (min, max, val, type) => {
|
|
8611
|
-
if (!(max > min))
|
|
8612
|
-
return;
|
|
8613
8776
|
const arr = [];
|
|
8614
8777
|
let index = 0;
|
|
8615
8778
|
while (min <= max) {
|
|
@@ -8646,6 +8809,7 @@ const _sfc_main$w = create$w({
|
|
|
8646
8809
|
return 0;
|
|
8647
8810
|
};
|
|
8648
8811
|
const columns = computed(() => {
|
|
8812
|
+
console.log(ranges.value);
|
|
8649
8813
|
const val = ranges.value.map((res) => {
|
|
8650
8814
|
return generateValue(res.range[0], res.range[1], getDateIndex(res.type), res.type);
|
|
8651
8815
|
});
|
|
@@ -8745,8 +8909,8 @@ const _sfc_main$v = create$v({
|
|
|
8745
8909
|
};
|
|
8746
8910
|
const emitChange = (value, event) => {
|
|
8747
8911
|
let output_value = fixedDecimalPlaces(value);
|
|
8748
|
-
emit("change", output_value, event);
|
|
8749
8912
|
emit("update:modelValue", output_value, event);
|
|
8913
|
+
emit("change", output_value, event);
|
|
8750
8914
|
};
|
|
8751
8915
|
const addAllow = (value = Number(props.modelValue)) => {
|
|
8752
8916
|
return value < Number(props.max) && !props.disabled;
|
|
@@ -8907,6 +9071,10 @@ const _sfc_main$u = create$u({
|
|
|
8907
9071
|
clearable: {
|
|
8908
9072
|
type: Boolean,
|
|
8909
9073
|
default: true
|
|
9074
|
+
},
|
|
9075
|
+
hasBorder: {
|
|
9076
|
+
type: Boolean,
|
|
9077
|
+
default: true
|
|
8910
9078
|
}
|
|
8911
9079
|
},
|
|
8912
9080
|
emits: ["change", "update:modelValue", "blur", "focus", "clear"],
|
|
@@ -8917,7 +9085,8 @@ const _sfc_main$u = create$u({
|
|
|
8917
9085
|
return {
|
|
8918
9086
|
[prefixCls]: true,
|
|
8919
9087
|
[`${prefixCls}-disabled`]: props.disabled,
|
|
8920
|
-
[`${prefixCls}-require`]: props.requireShow
|
|
9088
|
+
[`${prefixCls}-require`]: props.requireShow,
|
|
9089
|
+
[`${prefixCls}-border`]: props.hasBorder
|
|
8921
9090
|
};
|
|
8922
9091
|
});
|
|
8923
9092
|
const styles = computed(() => {
|
|
@@ -8949,7 +9118,7 @@ const _sfc_main$u = create$u({
|
|
|
8949
9118
|
const valueBlur = (event) => {
|
|
8950
9119
|
setTimeout(() => {
|
|
8951
9120
|
active.value = false;
|
|
8952
|
-
},
|
|
9121
|
+
}, 200);
|
|
8953
9122
|
const input = event.target;
|
|
8954
9123
|
let value = input.value;
|
|
8955
9124
|
if (props.maxLength && value.length > Number(props.maxLength)) {
|
|
@@ -8973,20 +9142,20 @@ const _sfc_main$u = create$u({
|
|
|
8973
9142
|
};
|
|
8974
9143
|
}
|
|
8975
9144
|
});
|
|
8976
|
-
const _hoisted_1$p = {
|
|
8977
|
-
const _hoisted_2$l = {
|
|
9145
|
+
const _hoisted_1$p = {
|
|
8978
9146
|
key: 0,
|
|
8979
|
-
class: "label
|
|
9147
|
+
class: "nut-input-label"
|
|
8980
9148
|
};
|
|
9149
|
+
const _hoisted_2$l = { class: "label-string" };
|
|
8981
9150
|
const _hoisted_3$i = ["type", "maxlength", "placeholder", "disabled", "readonly", "value"];
|
|
8982
9151
|
function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8983
9152
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
8984
9153
|
return openBlock(), createElementBlock("view", {
|
|
8985
9154
|
class: normalizeClass(_ctx.classes)
|
|
8986
9155
|
}, [
|
|
8987
|
-
|
|
8988
|
-
|
|
8989
|
-
]),
|
|
9156
|
+
_ctx.label ? (openBlock(), createElementBlock("view", _hoisted_1$p, [
|
|
9157
|
+
createElementVNode("view", _hoisted_2$l, toDisplayString(_ctx.label), 1)
|
|
9158
|
+
])) : createCommentVNode("", true),
|
|
8990
9159
|
createElementVNode("input", {
|
|
8991
9160
|
class: "input-text",
|
|
8992
9161
|
style: normalizeStyle(_ctx.styles),
|
|
@@ -9001,7 +9170,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9001
9170
|
onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
|
|
9002
9171
|
}, null, 44, _hoisted_3$i),
|
|
9003
9172
|
_ctx.clearable && !_ctx.readonly ? withDirectives((openBlock(), createElementBlock("view", {
|
|
9004
|
-
key:
|
|
9173
|
+
key: 1,
|
|
9005
9174
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClear && _ctx.handleClear(...args)),
|
|
9006
9175
|
class: "nut-textinput-clear"
|
|
9007
9176
|
}, [
|
|
@@ -9056,7 +9225,7 @@ const _sfc_main$t = create$t({
|
|
|
9056
9225
|
});
|
|
9057
9226
|
const renderIcon = () => {
|
|
9058
9227
|
const { iconName, iconSize, iconActiveName } = props;
|
|
9059
|
-
return h(_sfc_main$
|
|
9228
|
+
return h(_sfc_main$1o, {
|
|
9060
9229
|
name: isCurValue.value ? iconActiveName : iconName,
|
|
9061
9230
|
size: iconSize,
|
|
9062
9231
|
class: color.value
|
|
@@ -9300,7 +9469,7 @@ const _sfc_main$q = create$q({
|
|
|
9300
9469
|
setup(props, { emit }) {
|
|
9301
9470
|
const realInput = ref(props.modelValue);
|
|
9302
9471
|
const realpwd = ref();
|
|
9303
|
-
const comLen = computed(() =>
|
|
9472
|
+
const comLen = computed(() => range(Number(props.length)));
|
|
9304
9473
|
const show = ref(props.visible);
|
|
9305
9474
|
function sureClick() {
|
|
9306
9475
|
emit("ok", realInput.value);
|
|
@@ -9336,7 +9505,7 @@ const _sfc_main$q = create$q({
|
|
|
9336
9505
|
emit("update:visible", false);
|
|
9337
9506
|
emit("close");
|
|
9338
9507
|
}
|
|
9339
|
-
function
|
|
9508
|
+
function range(val) {
|
|
9340
9509
|
return Math.min(Math.max(4, val), 6);
|
|
9341
9510
|
}
|
|
9342
9511
|
function onTips() {
|
|
@@ -9364,7 +9533,7 @@ const _sfc_main$q = create$q({
|
|
|
9364
9533
|
realInput,
|
|
9365
9534
|
realpwd,
|
|
9366
9535
|
focus,
|
|
9367
|
-
range
|
|
9536
|
+
range,
|
|
9368
9537
|
changeValue,
|
|
9369
9538
|
close,
|
|
9370
9539
|
onTips,
|
|
@@ -9506,6 +9675,10 @@ const _sfc_main$p = create$p({
|
|
|
9506
9675
|
autosize: {
|
|
9507
9676
|
type: Boolean,
|
|
9508
9677
|
default: false
|
|
9678
|
+
},
|
|
9679
|
+
autofocus: {
|
|
9680
|
+
type: Boolean,
|
|
9681
|
+
default: false
|
|
9509
9682
|
}
|
|
9510
9683
|
},
|
|
9511
9684
|
emits: ["update:modelValue", "change", "blur", "focus"],
|
|
@@ -9527,8 +9700,8 @@ const _sfc_main$p = create$p({
|
|
|
9527
9700
|
if (props.maxLength && value.length > Number(props.maxLength)) {
|
|
9528
9701
|
value = value.substring(0, Number(props.maxLength));
|
|
9529
9702
|
}
|
|
9530
|
-
emit("change", value, event);
|
|
9531
9703
|
emit("update:modelValue", value, event);
|
|
9704
|
+
emit("change", value, event);
|
|
9532
9705
|
};
|
|
9533
9706
|
const change = (event) => {
|
|
9534
9707
|
const input = event.target;
|
|
@@ -9560,7 +9733,7 @@ const _sfc_main$p = create$p({
|
|
|
9560
9733
|
};
|
|
9561
9734
|
}
|
|
9562
9735
|
});
|
|
9563
|
-
const _hoisted_1$m = ["rows", "disabled", "readonly", "value", "maxlength", "placeholder"];
|
|
9736
|
+
const _hoisted_1$m = ["rows", "disabled", "readonly", "value", "maxlength", "placeholder", "autofocus"];
|
|
9564
9737
|
const _hoisted_2$j = {
|
|
9565
9738
|
key: 0,
|
|
9566
9739
|
class: "nut-textarea__limit"
|
|
@@ -9580,7 +9753,8 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9580
9753
|
onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
|
|
9581
9754
|
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
|
|
9582
9755
|
maxlength: _ctx.maxLength,
|
|
9583
|
-
placeholder: _ctx.placeholder
|
|
9756
|
+
placeholder: _ctx.placeholder,
|
|
9757
|
+
autofocus: _ctx.autofocus
|
|
9584
9758
|
}, null, 44, _hoisted_1$m),
|
|
9585
9759
|
_ctx.limitShow ? (openBlock(), createElementBlock("view", _hoisted_2$j, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0) + "/" + toDisplayString(_ctx.maxLength), 1)) : createCommentVNode("", true)
|
|
9586
9760
|
], 2);
|
|
@@ -9847,8 +10021,9 @@ const _sfc_main$o = create$o({
|
|
|
9847
10021
|
if (oversizes.length) {
|
|
9848
10022
|
emit("oversize", oversizes);
|
|
9849
10023
|
}
|
|
9850
|
-
|
|
9851
|
-
|
|
10024
|
+
let currentFileLength = files.length + fileList.length;
|
|
10025
|
+
if (currentFileLength > maximum) {
|
|
10026
|
+
files.splice(files.length - (currentFileLength - maximum));
|
|
9852
10027
|
}
|
|
9853
10028
|
return files;
|
|
9854
10029
|
};
|
|
@@ -9858,7 +10033,8 @@ const _sfc_main$o = create$o({
|
|
|
9858
10033
|
fileList.splice(index, 1);
|
|
9859
10034
|
emit("delete", {
|
|
9860
10035
|
file,
|
|
9861
|
-
fileList
|
|
10036
|
+
fileList,
|
|
10037
|
+
index
|
|
9862
10038
|
});
|
|
9863
10039
|
} else {
|
|
9864
10040
|
console.log("\u7528\u6237\u963B\u6B62\u4E86\u5220\u9664\uFF01");
|
|
@@ -11417,16 +11593,16 @@ const component$2 = {
|
|
|
11417
11593
|
setup(props, { emit, slots }) {
|
|
11418
11594
|
const formErrorTip = computed(() => reactive({}));
|
|
11419
11595
|
provide("formErrorTip", formErrorTip);
|
|
11420
|
-
const
|
|
11421
|
-
Object.keys(value).forEach((item) => {
|
|
11596
|
+
const clearErrorTips = (value = props.modelValue) => {
|
|
11597
|
+
Object.keys(formErrorTip.value).forEach((item) => {
|
|
11422
11598
|
formErrorTip.value[item] = "";
|
|
11423
11599
|
});
|
|
11424
11600
|
};
|
|
11425
11601
|
const reset = () => {
|
|
11426
|
-
|
|
11602
|
+
clearErrorTips();
|
|
11427
11603
|
};
|
|
11428
11604
|
watch(() => props.modelValue, (value) => {
|
|
11429
|
-
|
|
11605
|
+
clearErrorTips(value);
|
|
11430
11606
|
}, { immediate: true });
|
|
11431
11607
|
const findFormItem = (vnodes) => {
|
|
11432
11608
|
let task = [];
|
|
@@ -11462,7 +11638,10 @@ const component$2 = {
|
|
|
11462
11638
|
const getPropByPath = (obj, keyPath) => {
|
|
11463
11639
|
return keyPath.split(".").reduce((prev, curr) => prev[curr], obj);
|
|
11464
11640
|
};
|
|
11465
|
-
|
|
11641
|
+
if (!prop) {
|
|
11642
|
+
console.warn("[NutUI] <FormItem> \u4F7F\u7528 rules \u6821\u9A8C\u89C4\u5219\u65F6 , \u5FC5\u987B\u8BBE\u7F6E prop \u53C2\u6570");
|
|
11643
|
+
}
|
|
11644
|
+
let value = getPropByPath(props.modelValue, prop || "");
|
|
11466
11645
|
tipMessage({ prop, message: "" });
|
|
11467
11646
|
while (rules.length) {
|
|
11468
11647
|
const { required, validator, regex, message } = rules.shift();
|
|
@@ -12684,7 +12863,6 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12684
12863
|
class: "region-item-icon",
|
|
12685
12864
|
type: "self",
|
|
12686
12865
|
name: _ctx.selectedIcon,
|
|
12687
|
-
color: "#FA2C19",
|
|
12688
12866
|
size: "13px"
|
|
12689
12867
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
12690
12868
|
createTextVNode(toDisplayString(item.name), 1)
|
|
@@ -12729,9 +12907,8 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12729
12907
|
class: "exist-item-icon",
|
|
12730
12908
|
type: "self",
|
|
12731
12909
|
name: item.selectedAddress ? _ctx.selectedIcon : _ctx.defaultIcon,
|
|
12732
|
-
color: item.selectedAddress ? "#FA2C19" : "",
|
|
12733
12910
|
size: "13px"
|
|
12734
|
-
}, null, 8, ["name"
|
|
12911
|
+
}, null, 8, ["name"]),
|
|
12735
12912
|
createElementVNode("div", _hoisted_18, [
|
|
12736
12913
|
item.name && item.phone ? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
12737
12914
|
createElementVNode("div", _hoisted_20, toDisplayString(item.name), 1),
|
|
@@ -13586,7 +13763,6 @@ const _sfc_main$2 = create$2({
|
|
|
13586
13763
|
}
|
|
13587
13764
|
});
|
|
13588
13765
|
onMounted(() => {
|
|
13589
|
-
console.log("\u66F4\u65B0\u53C2\u6570");
|
|
13590
13766
|
});
|
|
13591
13767
|
const getSlots = (name) => slots[name];
|
|
13592
13768
|
const selectSku = (skus) => {
|
|
@@ -13883,6 +14059,11 @@ const component = (componentName2) => {
|
|
|
13883
14059
|
state.curData = typeof item.sorter === "function" ? state.curData.sort(item.sorter) : item.sorter === "default" ? state.curData.sort() : state.curData;
|
|
13884
14060
|
}
|
|
13885
14061
|
};
|
|
14062
|
+
const sortDataItem = () => {
|
|
14063
|
+
return props.columns.map((value) => {
|
|
14064
|
+
return value.key;
|
|
14065
|
+
});
|
|
14066
|
+
};
|
|
13886
14067
|
watch(() => props.data, (val) => {
|
|
13887
14068
|
state.curData = val.slice();
|
|
13888
14069
|
});
|
|
@@ -13890,7 +14071,8 @@ const component = (componentName2) => {
|
|
|
13890
14071
|
classes,
|
|
13891
14072
|
cellClasses,
|
|
13892
14073
|
getColumnItem,
|
|
13893
|
-
handleSorterClick
|
|
14074
|
+
handleSorterClick,
|
|
14075
|
+
sortDataItem
|
|
13894
14076
|
});
|
|
13895
14077
|
}
|
|
13896
14078
|
};
|
|
@@ -13948,7 +14130,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13948
14130
|
class: "nut-table__main__body__tr",
|
|
13949
14131
|
key: item
|
|
13950
14132
|
}, [
|
|
13951
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
14133
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.sortDataItem(), (value) => {
|
|
13952
14134
|
return openBlock(), createElementBlock("span", {
|
|
13953
14135
|
class: normalizeClass(["nut-table__main__body__tr__td", _ctx.cellClasses(_ctx.getColumnItem(value))]),
|
|
13954
14136
|
key: value
|
|
@@ -13982,7 +14164,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13982
14164
|
}
|
|
13983
14165
|
var Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
13984
14166
|
function install(app) {
|
|
13985
|
-
const packages = [Avatar, Button, Cell, CellGroup, _sfc_main$
|
|
14167
|
+
const packages = [Avatar, Button, Cell, CellGroup, _sfc_main$1o, Price, OverLay, Divider, _sfc_main$1h, Col, Row, _ImagePreview, Swipe, ActionSheet, BackTop, Collapse, CollapseItem, Drag, _Dialog, InfiniteLoading, NotifyFunction, Range, Video, Popup, _sfc_main$$, Step, Swiper, SwiperItem, Switch, ToastFunction, Progress, CircleProgress, NoticeBar, SearchBar, Empty, Navbar, FixedNav, Menu, MenuItem, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, _sfc_main$H, GridItem, SideNavBar, SideNavBarItem, SubSideNavBar, Calendar, _sfc_main$A, _sfc_main$z, DatePicker, InputNumber, Input, _sfc_main$t, _sfc_main$s, Rate, Picker, ShortPassword, TextArea, Uploader, CountUp, NumberKeyboard, CountDown, Badge, Tag, Popover, Form, FormItem, Skeleton, Cascader, Address, Barrage, Signature, TimeSelect, TimePannel, TimeDetail, Sku, Card, Table];
|
|
13986
14168
|
packages.forEach((item) => {
|
|
13987
14169
|
if (item.install) {
|
|
13988
14170
|
app.use(item);
|
|
@@ -13991,6 +14173,6 @@ function install(app) {
|
|
|
13991
14173
|
}
|
|
13992
14174
|
});
|
|
13993
14175
|
}
|
|
13994
|
-
const version = "3.1.
|
|
14176
|
+
const version = "3.1.16";
|
|
13995
14177
|
var nutui_vue_build = { install, version };
|
|
13996
|
-
export { ActionSheet, Address, Avatar, BackTop, Badge, Barrage, Button, Calendar, Card, Cascader, Cell, CellGroup, _sfc_main$A as Checkbox, _sfc_main$z as CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, CountDown, CountUp, DatePicker, _Dialog as Dialog, Divider, Drag, Elevator, Empty, FixedNav, Form, FormItem, _sfc_main$
|
|
14178
|
+
export { ActionSheet, Address, Avatar, BackTop, Badge, Barrage, Button, Calendar, Card, Cascader, Cell, CellGroup, _sfc_main$A as Checkbox, _sfc_main$z as CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, CountDown, CountUp, DatePicker, _Dialog as Dialog, Divider, Drag, Elevator, Empty, FixedNav, Form, FormItem, _sfc_main$H as Grid, GridItem, _sfc_main$1o as Icon, _ImagePreview as ImagePreview, Indicator, InfiniteLoading, Input, InputNumber, _sfc_main$1h as Layout, Menu, MenuItem, Navbar, NoticeBar, NotifyFunction as Notify, NumberKeyboard, OverLay, Pagination, Picker, Popover, Popup, Price, Progress, _sfc_main$t as Radio, _sfc_main$s as RadioGroup, Range, Rate, Row, SearchBar, ShortPassword, SideNavBar, SideNavBarItem, Signature, Skeleton, Sku, Step, _sfc_main$$ as Steps, SubSideNavBar, Swipe, Swiper, SwiperItem, Switch, TabPane, Tabbar, TabbarItem, Table, Tabs, Tag, TextArea, TimeDetail, TimePannel, TimeSelect, ToastFunction as Toast, Uploader, Video, nutui_vue_build as default, install, version };
|