@nutui/nutui 3.1.14 → 3.1.16-beta.1
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 +36 -0
- package/README.md +3 -3
- package/dist/nutui.d.ts +8 -5
- package/dist/nutui.es.js +1016 -740
- package/dist/nutui.umd.js +1022 -743
- 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 +10 -7
- 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 +104 -10
- 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 +1 -1
- 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/imagepreview/index.scss +1 -0
- 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 +37 -34
- 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-beta.1 Thu Jan 27 2022 18:18:28 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],
|
|
@@ -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,
|
|
@@ -1922,6 +1926,10 @@ const _sfc_main$17 = create$17({
|
|
|
1922
1926
|
paginationColor: {
|
|
1923
1927
|
type: String,
|
|
1924
1928
|
default: "#fff"
|
|
1929
|
+
},
|
|
1930
|
+
autoplay: {
|
|
1931
|
+
type: [Number, String],
|
|
1932
|
+
default: 3e3
|
|
1925
1933
|
}
|
|
1926
1934
|
},
|
|
1927
1935
|
emits: ["close"],
|
|
@@ -1944,7 +1952,13 @@ const _sfc_main$17 = create$17({
|
|
|
1944
1952
|
options: {
|
|
1945
1953
|
muted: true,
|
|
1946
1954
|
controls: true
|
|
1947
|
-
}
|
|
1955
|
+
},
|
|
1956
|
+
eleImg: null,
|
|
1957
|
+
store: {
|
|
1958
|
+
scale: 1,
|
|
1959
|
+
moveable: false
|
|
1960
|
+
},
|
|
1961
|
+
lastTouchEndTime: 0
|
|
1948
1962
|
});
|
|
1949
1963
|
const slideChangeEnd = function(page) {
|
|
1950
1964
|
state.active = page + 1;
|
|
@@ -1956,11 +1970,88 @@ const _sfc_main$17 = create$17({
|
|
|
1956
1970
|
};
|
|
1957
1971
|
const onClose = () => {
|
|
1958
1972
|
state.showPop = false;
|
|
1973
|
+
state.store.scale = 1;
|
|
1974
|
+
scaleNow();
|
|
1959
1975
|
state.active = 1;
|
|
1960
1976
|
emit("close");
|
|
1961
1977
|
};
|
|
1978
|
+
const getDistance = (first, second) => {
|
|
1979
|
+
return Math.hypot(Math.abs(second.x - first.x), Math.abs(second.y - first.y));
|
|
1980
|
+
};
|
|
1981
|
+
const scaleNow = () => {
|
|
1982
|
+
state.eleImg.style.transform = "scale(" + state.store.scale + ")";
|
|
1983
|
+
};
|
|
1984
|
+
const onTouchStart = (event) => {
|
|
1985
|
+
console.log("start");
|
|
1986
|
+
const curTouchTime = new Date().getTime();
|
|
1987
|
+
if (curTouchTime - state.lastTouchEndTime < 300) {
|
|
1988
|
+
const store2 = state.store;
|
|
1989
|
+
if (store2.scale > 1) {
|
|
1990
|
+
store2.scale = 1;
|
|
1991
|
+
} else if (store2.scale == 1) {
|
|
1992
|
+
store2.scale = 2;
|
|
1993
|
+
}
|
|
1994
|
+
scaleNow();
|
|
1995
|
+
}
|
|
1996
|
+
var touches = event.touches;
|
|
1997
|
+
var events = touches[0];
|
|
1998
|
+
var events2 = touches[1];
|
|
1999
|
+
const store = state.store;
|
|
2000
|
+
store.moveable = true;
|
|
2001
|
+
if (events2) {
|
|
2002
|
+
store.oriDistance = getDistance({
|
|
2003
|
+
x: events.pageX,
|
|
2004
|
+
y: events.pageY
|
|
2005
|
+
}, {
|
|
2006
|
+
x: events2.pageX,
|
|
2007
|
+
y: events2.pageY
|
|
2008
|
+
});
|
|
2009
|
+
}
|
|
2010
|
+
store.originScale = store.scale || 1;
|
|
2011
|
+
};
|
|
2012
|
+
const onTouchMove = (event) => {
|
|
2013
|
+
if (!state.store.moveable) {
|
|
2014
|
+
return;
|
|
2015
|
+
}
|
|
2016
|
+
const store = state.store;
|
|
2017
|
+
var touches = event.touches;
|
|
2018
|
+
var events = touches[0];
|
|
2019
|
+
var events2 = touches[1];
|
|
2020
|
+
if (events2) {
|
|
2021
|
+
const curDistance = getDistance({
|
|
2022
|
+
x: events.pageX,
|
|
2023
|
+
y: events.pageY
|
|
2024
|
+
}, {
|
|
2025
|
+
x: events2.pageX,
|
|
2026
|
+
y: events2.pageY
|
|
2027
|
+
});
|
|
2028
|
+
const curScale = curDistance / store.oriDistance;
|
|
2029
|
+
store.scale = store.originScale * curScale;
|
|
2030
|
+
if (store.scale > 3) {
|
|
2031
|
+
store.scale = 3;
|
|
2032
|
+
}
|
|
2033
|
+
scaleNow();
|
|
2034
|
+
}
|
|
2035
|
+
};
|
|
2036
|
+
const onTouchEnd = () => {
|
|
2037
|
+
console.log("end");
|
|
2038
|
+
state.lastTouchEndTime = new Date().getTime();
|
|
2039
|
+
const store = state.store;
|
|
2040
|
+
store.moveable = false;
|
|
2041
|
+
if (store.scale < 1.1 && store.scale > 1 || store.scale < 1) {
|
|
2042
|
+
store.scale = 1;
|
|
2043
|
+
scaleNow();
|
|
2044
|
+
}
|
|
2045
|
+
};
|
|
2046
|
+
const init = () => {
|
|
2047
|
+
state.eleImg = document.querySelector(".nut-imagepreview");
|
|
2048
|
+
document.addEventListener("touchmove", onTouchMove);
|
|
2049
|
+
document.addEventListener("touchend", onTouchEnd);
|
|
2050
|
+
document.addEventListener("touchcancel", onTouchEnd);
|
|
2051
|
+
};
|
|
1962
2052
|
watch(() => props.show, (val) => {
|
|
1963
2053
|
state.showPop = val;
|
|
2054
|
+
init();
|
|
1964
2055
|
});
|
|
1965
2056
|
onMounted(() => {
|
|
1966
2057
|
state.active = props.initNo;
|
|
@@ -1970,13 +2061,18 @@ const _sfc_main$17 = create$17({
|
|
|
1970
2061
|
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
1971
2062
|
slideChangeEnd,
|
|
1972
2063
|
onClose,
|
|
1973
|
-
closeOnImg
|
|
2064
|
+
closeOnImg,
|
|
2065
|
+
onTouchStart,
|
|
2066
|
+
onTouchMove,
|
|
2067
|
+
onTouchEnd,
|
|
2068
|
+
getDistance,
|
|
2069
|
+
scaleNow
|
|
1974
2070
|
});
|
|
1975
2071
|
}
|
|
1976
2072
|
});
|
|
1977
|
-
const _hoisted_1$
|
|
1978
|
-
const _hoisted_2$
|
|
1979
|
-
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) {
|
|
1980
2076
|
const _component_nut_video = resolveComponent("nut-video");
|
|
1981
2077
|
const _component_nut_swiper_item = resolveComponent("nut-swiper-item");
|
|
1982
2078
|
const _component_nut_swiper = resolveComponent("nut-swiper");
|
|
@@ -1984,17 +2080,19 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1984
2080
|
return openBlock(), createBlock(_component_nut_popup, {
|
|
1985
2081
|
"pop-class": "custom-pop",
|
|
1986
2082
|
visible: _ctx.showPop,
|
|
1987
|
-
"onUpdate:visible": _cache[
|
|
1988
|
-
onClick: _ctx.onClose
|
|
2083
|
+
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.showPop = $event),
|
|
2084
|
+
onClick: _ctx.onClose,
|
|
2085
|
+
style: { "width": "100%" }
|
|
1989
2086
|
}, {
|
|
1990
2087
|
default: withCtx(() => [
|
|
1991
2088
|
createElementVNode("view", {
|
|
1992
2089
|
class: "nut-imagepreview",
|
|
1993
|
-
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.closeOnImg && _ctx.closeOnImg(...args), ["stop"]))
|
|
2090
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.closeOnImg && _ctx.closeOnImg(...args), ["stop"])),
|
|
2091
|
+
onTouchstartCapture: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args))
|
|
1994
2092
|
}, [
|
|
1995
2093
|
_ctx.showPop ? (openBlock(), createBlock(_component_nut_swiper, {
|
|
1996
2094
|
key: 0,
|
|
1997
|
-
"auto-play":
|
|
2095
|
+
"auto-play": _ctx.autoplay,
|
|
1998
2096
|
class: "nut-imagepreview-swiper",
|
|
1999
2097
|
loop: true,
|
|
2000
2098
|
"is-preventDefault": false,
|
|
@@ -2022,21 +2120,21 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2022
2120
|
createElementVNode("img", {
|
|
2023
2121
|
src: item.src,
|
|
2024
2122
|
class: "nut-imagepreview-img"
|
|
2025
|
-
}, null, 8, _hoisted_1$
|
|
2123
|
+
}, null, 8, _hoisted_1$U)
|
|
2026
2124
|
]),
|
|
2027
2125
|
_: 2
|
|
2028
2126
|
}, 1024);
|
|
2029
2127
|
}), 128))
|
|
2030
2128
|
]),
|
|
2031
2129
|
_: 1
|
|
2032
|
-
}, 8, ["onChange", "init-page", "pagination-visible", "pagination-color"])) : createCommentVNode("", true)
|
|
2033
|
-
|
|
2034
|
-
|
|
2130
|
+
}, 8, ["auto-play", "onChange", "init-page", "pagination-visible", "pagination-color"])) : createCommentVNode("", true)
|
|
2131
|
+
], 32),
|
|
2132
|
+
createElementVNode("view", _hoisted_2$K, toDisplayString(_ctx.active) + " / " + toDisplayString(_ctx.images.length + _ctx.videos.length), 1)
|
|
2035
2133
|
]),
|
|
2036
2134
|
_: 1
|
|
2037
2135
|
}, 8, ["visible", "onClick"]);
|
|
2038
2136
|
}
|
|
2039
|
-
var ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2137
|
+
var ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$14]]);
|
|
2040
2138
|
class ImagePreviewOptions {
|
|
2041
2139
|
constructor() {
|
|
2042
2140
|
__publicField(this, "show", false);
|
|
@@ -2141,8 +2239,8 @@ function useTouch() {
|
|
|
2141
2239
|
isHorizontal
|
|
2142
2240
|
};
|
|
2143
2241
|
}
|
|
2144
|
-
const { componentName: componentName$
|
|
2145
|
-
const _sfc_main$
|
|
2242
|
+
const { componentName: componentName$S, create: create$19 } = createComponent("swipe");
|
|
2243
|
+
const _sfc_main$19 = create$19({
|
|
2146
2244
|
props: {
|
|
2147
2245
|
name: {
|
|
2148
2246
|
type: String,
|
|
@@ -2164,7 +2262,7 @@ const _sfc_main$16 = create$16({
|
|
|
2164
2262
|
emits: ["open", "close"],
|
|
2165
2263
|
setup(props, { emit }) {
|
|
2166
2264
|
const classes = computed(() => {
|
|
2167
|
-
const prefixCls = componentName$
|
|
2265
|
+
const prefixCls = componentName$S;
|
|
2168
2266
|
return {
|
|
2169
2267
|
[prefixCls]: true
|
|
2170
2268
|
};
|
|
@@ -2288,16 +2386,16 @@ const _sfc_main$16 = create$16({
|
|
|
2288
2386
|
});
|
|
2289
2387
|
}
|
|
2290
2388
|
});
|
|
2291
|
-
const _hoisted_1$
|
|
2389
|
+
const _hoisted_1$T = {
|
|
2292
2390
|
class: "nut-swipe__left",
|
|
2293
2391
|
ref: "leftRef"
|
|
2294
2392
|
};
|
|
2295
|
-
const _hoisted_2$
|
|
2296
|
-
const _hoisted_3$
|
|
2393
|
+
const _hoisted_2$J = { class: "nut-swipe__content" };
|
|
2394
|
+
const _hoisted_3$z = {
|
|
2297
2395
|
class: "nut-swipe__right",
|
|
2298
2396
|
ref: "rightRef"
|
|
2299
2397
|
};
|
|
2300
|
-
function _sfc_render$
|
|
2398
|
+
function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2301
2399
|
return openBlock(), createElementBlock("view", {
|
|
2302
2400
|
class: normalizeClass(_ctx.classes),
|
|
2303
2401
|
style: normalizeStyle(_ctx.touchStyle),
|
|
@@ -2306,20 +2404,20 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2306
2404
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
|
|
2307
2405
|
onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
2308
2406
|
}, [
|
|
2309
|
-
createElementVNode("view", _hoisted_1$
|
|
2407
|
+
createElementVNode("view", _hoisted_1$T, [
|
|
2310
2408
|
renderSlot(_ctx.$slots, "left")
|
|
2311
2409
|
], 512),
|
|
2312
|
-
createElementVNode("view", _hoisted_2$
|
|
2410
|
+
createElementVNode("view", _hoisted_2$J, [
|
|
2313
2411
|
renderSlot(_ctx.$slots, "default")
|
|
2314
2412
|
]),
|
|
2315
|
-
createElementVNode("view", _hoisted_3$
|
|
2413
|
+
createElementVNode("view", _hoisted_3$z, [
|
|
2316
2414
|
renderSlot(_ctx.$slots, "right")
|
|
2317
2415
|
], 512)
|
|
2318
2416
|
], 38);
|
|
2319
2417
|
}
|
|
2320
|
-
var Swipe = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2321
|
-
const { componentName: componentName$
|
|
2322
|
-
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({
|
|
2323
2421
|
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
2324
2422
|
cancelTxt: {
|
|
2325
2423
|
type: String,
|
|
@@ -2357,7 +2455,7 @@ const _sfc_main$15 = create$15({
|
|
|
2357
2455
|
emits: ["cancel", "choose", "update:visible"],
|
|
2358
2456
|
setup(props, { emit }) {
|
|
2359
2457
|
const classes = computed(() => {
|
|
2360
|
-
const prefixCls = componentName$
|
|
2458
|
+
const prefixCls = componentName$R;
|
|
2361
2459
|
return {
|
|
2362
2460
|
[prefixCls]: true
|
|
2363
2461
|
};
|
|
@@ -2388,12 +2486,12 @@ const _sfc_main$15 = create$15({
|
|
|
2388
2486
|
};
|
|
2389
2487
|
}
|
|
2390
2488
|
});
|
|
2391
|
-
const _hoisted_1$
|
|
2392
|
-
const _hoisted_2$
|
|
2489
|
+
const _hoisted_1$S = { class: "nut-actionsheet-panel" };
|
|
2490
|
+
const _hoisted_2$I = {
|
|
2393
2491
|
key: 0,
|
|
2394
2492
|
class: "nut-actionsheet-title"
|
|
2395
2493
|
};
|
|
2396
|
-
const _hoisted_3$
|
|
2494
|
+
const _hoisted_3$y = {
|
|
2397
2495
|
key: 1,
|
|
2398
2496
|
class: "nut-actionsheet-item desc"
|
|
2399
2497
|
};
|
|
@@ -2403,7 +2501,7 @@ const _hoisted_4$q = {
|
|
|
2403
2501
|
};
|
|
2404
2502
|
const _hoisted_5$i = ["onClick"];
|
|
2405
2503
|
const _hoisted_6$f = { class: "subdesc" };
|
|
2406
|
-
function _sfc_render
|
|
2504
|
+
function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2407
2505
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
2408
2506
|
return openBlock(), createElementBlock("view", {
|
|
2409
2507
|
class: normalizeClass(_ctx.classes)
|
|
@@ -2416,9 +2514,9 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2416
2514
|
onClickOverlay: _ctx.close
|
|
2417
2515
|
}, {
|
|
2418
2516
|
default: withCtx(() => [
|
|
2419
|
-
createElementVNode("view", _hoisted_1$
|
|
2420
|
-
_ctx.title ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
2421
|
-
_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),
|
|
2422
2520
|
_ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_4$q, [
|
|
2423
2521
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index) => {
|
|
2424
2522
|
return openBlock(), createElementBlock("view", {
|
|
@@ -2443,9 +2541,9 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2443
2541
|
}, 8, ["visible", "onClickOverlay"])
|
|
2444
2542
|
], 2);
|
|
2445
2543
|
}
|
|
2446
|
-
var ActionSheet = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2447
|
-
const { componentName: componentName$
|
|
2448
|
-
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({
|
|
2449
2547
|
props: {
|
|
2450
2548
|
bottom: {
|
|
2451
2549
|
type: Number,
|
|
@@ -2486,7 +2584,7 @@ const _sfc_main$14 = create$14({
|
|
|
2486
2584
|
keepAlive: false
|
|
2487
2585
|
});
|
|
2488
2586
|
const classes = computed(() => {
|
|
2489
|
-
const prefixCls = componentName$
|
|
2587
|
+
const prefixCls = componentName$Q;
|
|
2490
2588
|
return {
|
|
2491
2589
|
[prefixCls]: true,
|
|
2492
2590
|
show: state.backTop
|
|
@@ -2577,7 +2675,7 @@ const _sfc_main$14 = create$14({
|
|
|
2577
2675
|
};
|
|
2578
2676
|
}
|
|
2579
2677
|
});
|
|
2580
|
-
function _sfc_render$
|
|
2678
|
+
function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2581
2679
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
2582
2680
|
return openBlock(), createElementBlock("div", {
|
|
2583
2681
|
class: normalizeClass(_ctx.classes),
|
|
@@ -2593,9 +2691,9 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2593
2691
|
])
|
|
2594
2692
|
], 6);
|
|
2595
2693
|
}
|
|
2596
|
-
var BackTop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2597
|
-
const { create: create$
|
|
2598
|
-
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({
|
|
2599
2697
|
props: {
|
|
2600
2698
|
active: {
|
|
2601
2699
|
type: [String, Number, Array]
|
|
@@ -2668,14 +2766,14 @@ const _sfc_main$13 = create$13({
|
|
|
2668
2766
|
});
|
|
2669
2767
|
}
|
|
2670
2768
|
});
|
|
2671
|
-
function _sfc_render$
|
|
2769
|
+
function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2672
2770
|
return openBlock(), createElementBlock("view", null, [
|
|
2673
2771
|
renderSlot(_ctx.$slots, "default")
|
|
2674
2772
|
]);
|
|
2675
2773
|
}
|
|
2676
|
-
var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2677
|
-
const { create: create$
|
|
2678
|
-
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({
|
|
2679
2777
|
props: {
|
|
2680
2778
|
title: {
|
|
2681
2779
|
type: String,
|
|
@@ -2698,11 +2796,11 @@ const _sfc_main$12 = create$12({
|
|
|
2698
2796
|
type: Object
|
|
2699
2797
|
}
|
|
2700
2798
|
},
|
|
2701
|
-
setup(props) {
|
|
2799
|
+
setup(props, ctx) {
|
|
2702
2800
|
const collapse = inject("collapseParent");
|
|
2703
2801
|
const parent = reactive(collapse);
|
|
2704
2802
|
const classes = computed(() => {
|
|
2705
|
-
const prefixCls = componentName$
|
|
2803
|
+
const prefixCls = componentName$P;
|
|
2706
2804
|
return {
|
|
2707
2805
|
[prefixCls]: true,
|
|
2708
2806
|
[`${prefixCls}-icon`]: parent.props.icon
|
|
@@ -2742,7 +2840,7 @@ const _sfc_main$12 = create$12({
|
|
|
2742
2840
|
if (!wrapperRefEle || !contentRefEle) {
|
|
2743
2841
|
return;
|
|
2744
2842
|
}
|
|
2745
|
-
const offsetHeight = contentRefEle.offsetHeight;
|
|
2843
|
+
const offsetHeight = contentRefEle.offsetHeight || "auto";
|
|
2746
2844
|
if (offsetHeight) {
|
|
2747
2845
|
const contentHeight = `${offsetHeight}px`;
|
|
2748
2846
|
wrapperRefEle.style.willChange = "height";
|
|
@@ -2801,6 +2899,14 @@ const _sfc_main$12 = create$12({
|
|
|
2801
2899
|
proxyData.openExpanded = true;
|
|
2802
2900
|
}
|
|
2803
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
|
+
});
|
|
2804
2910
|
onMounted(() => {
|
|
2805
2911
|
const { name } = props;
|
|
2806
2912
|
const active = parent && parent.props.active;
|
|
@@ -2827,9 +2933,9 @@ const _sfc_main$12 = create$12({
|
|
|
2827
2933
|
});
|
|
2828
2934
|
}
|
|
2829
2935
|
});
|
|
2830
|
-
const _hoisted_1$
|
|
2831
|
-
const _hoisted_2$
|
|
2832
|
-
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"];
|
|
2833
2939
|
const _hoisted_4$p = {
|
|
2834
2940
|
key: 0,
|
|
2835
2941
|
class: "subTitle"
|
|
@@ -2843,7 +2949,7 @@ const _hoisted_7$a = {
|
|
|
2843
2949
|
class: "collapse-content",
|
|
2844
2950
|
ref: "contentRef"
|
|
2845
2951
|
};
|
|
2846
|
-
function _sfc_render
|
|
2952
|
+
function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2847
2953
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
2848
2954
|
return openBlock(), createElementBlock("view", {
|
|
2849
2955
|
class: normalizeClass(_ctx.classes)
|
|
@@ -2852,9 +2958,9 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2852
2958
|
class: normalizeClass(["collapse-item", { "item-expanded": _ctx.openExpanded }, { "nut-collapse-item-disabled": _ctx.disabled }]),
|
|
2853
2959
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggleOpen && _ctx.toggleOpen(...args))
|
|
2854
2960
|
}, [
|
|
2855
|
-
createElementVNode("view", _hoisted_1$
|
|
2961
|
+
createElementVNode("view", _hoisted_1$R, [
|
|
2856
2962
|
createElementVNode("view", null, [
|
|
2857
|
-
createElementVNode("view", _hoisted_2$
|
|
2963
|
+
createElementVNode("view", _hoisted_2$H, [
|
|
2858
2964
|
_ctx.titleIcon ? (openBlock(), createBlock(_component_nut_icon, {
|
|
2859
2965
|
key: 0,
|
|
2860
2966
|
name: _ctx.titleIcon,
|
|
@@ -2866,7 +2972,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2866
2972
|
key: 2,
|
|
2867
2973
|
innerHTML: _ctx.title,
|
|
2868
2974
|
class: "collapse-icon-title"
|
|
2869
|
-
}, null, 8, _hoisted_3$
|
|
2975
|
+
}, null, 8, _hoisted_3$x))
|
|
2870
2976
|
])
|
|
2871
2977
|
])
|
|
2872
2978
|
]),
|
|
@@ -2893,7 +2999,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2893
2999
|
], 512)
|
|
2894
3000
|
], 2);
|
|
2895
3001
|
}
|
|
2896
|
-
var CollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3002
|
+
var CollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["render", _sfc_render$$]]);
|
|
2897
3003
|
const _window = window;
|
|
2898
3004
|
function requestAniFrame() {
|
|
2899
3005
|
if (typeof _window !== "undefined") {
|
|
@@ -2907,8 +3013,8 @@ function requestAniFrame() {
|
|
|
2907
3013
|
}
|
|
2908
3014
|
}
|
|
2909
3015
|
var requestAniFrame$1 = requestAniFrame();
|
|
2910
|
-
const { componentName: componentName$
|
|
2911
|
-
const _sfc_main$
|
|
3016
|
+
const { componentName: componentName$O, create: create$14 } = createComponent("drag");
|
|
3017
|
+
const _sfc_main$14 = create$14({
|
|
2912
3018
|
props: {
|
|
2913
3019
|
attract: {
|
|
2914
3020
|
type: Boolean,
|
|
@@ -2953,7 +3059,7 @@ const _sfc_main$11 = create$11({
|
|
|
2953
3059
|
}
|
|
2954
3060
|
});
|
|
2955
3061
|
const classes = computed(() => {
|
|
2956
|
-
const prefixCls = componentName$
|
|
3062
|
+
const prefixCls = componentName$O;
|
|
2957
3063
|
return {
|
|
2958
3064
|
[prefixCls]: true
|
|
2959
3065
|
};
|
|
@@ -3088,7 +3194,7 @@ const _sfc_main$11 = create$11({
|
|
|
3088
3194
|
};
|
|
3089
3195
|
}
|
|
3090
3196
|
});
|
|
3091
|
-
function _sfc_render$
|
|
3197
|
+
function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3092
3198
|
return openBlock(), createElementBlock("view", {
|
|
3093
3199
|
class: normalizeClass(_ctx.classes),
|
|
3094
3200
|
ref: "myDrag",
|
|
@@ -3099,9 +3205,9 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3099
3205
|
renderSlot(_ctx.$slots, "default")
|
|
3100
3206
|
], 34);
|
|
3101
3207
|
}
|
|
3102
|
-
var Drag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3103
|
-
const { componentName: componentName$
|
|
3104
|
-
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({
|
|
3105
3211
|
inheritAttrs: false,
|
|
3106
3212
|
components: {
|
|
3107
3213
|
[Popup.name]: Popup,
|
|
@@ -3176,7 +3282,7 @@ const _sfc_main$10 = create$10({
|
|
|
3176
3282
|
});
|
|
3177
3283
|
const classes = computed(() => {
|
|
3178
3284
|
return {
|
|
3179
|
-
[componentName$
|
|
3285
|
+
[componentName$N]: true
|
|
3180
3286
|
};
|
|
3181
3287
|
});
|
|
3182
3288
|
const update = (val) => {
|
|
@@ -3206,12 +3312,12 @@ const _sfc_main$10 = create$10({
|
|
|
3206
3312
|
};
|
|
3207
3313
|
}
|
|
3208
3314
|
});
|
|
3209
|
-
const _hoisted_1$
|
|
3315
|
+
const _hoisted_1$Q = {
|
|
3210
3316
|
key: 0,
|
|
3211
3317
|
class: "nut-dialog__header"
|
|
3212
3318
|
};
|
|
3213
|
-
const _hoisted_2$
|
|
3214
|
-
function _sfc_render$
|
|
3319
|
+
const _hoisted_2$G = ["innerHTML"];
|
|
3320
|
+
function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3215
3321
|
const _component_nut_button = resolveComponent("nut-button");
|
|
3216
3322
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
3217
3323
|
return openBlock(), createBlock(_component_nut_popup, {
|
|
@@ -3228,7 +3334,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3228
3334
|
createElementVNode("view", {
|
|
3229
3335
|
class: normalizeClass(_ctx.classes)
|
|
3230
3336
|
}, [
|
|
3231
|
-
_ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$
|
|
3337
|
+
_ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$Q, [
|
|
3232
3338
|
_ctx.$slots.header ? renderSlot(_ctx.$slots, "header", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
3233
3339
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
3234
3340
|
], 64))
|
|
@@ -3240,7 +3346,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3240
3346
|
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("view", {
|
|
3241
3347
|
key: 1,
|
|
3242
3348
|
innerHTML: _ctx.content
|
|
3243
|
-
}, null, 8, _hoisted_2$
|
|
3349
|
+
}, null, 8, _hoisted_2$G))
|
|
3244
3350
|
], 4),
|
|
3245
3351
|
!_ctx.noFooter ? (openBlock(), createElementBlock("view", {
|
|
3246
3352
|
key: 1,
|
|
@@ -3280,7 +3386,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3280
3386
|
_: 3
|
|
3281
3387
|
}, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "onClickOverlay", "onClickCloseIcon"]);
|
|
3282
3388
|
}
|
|
3283
|
-
var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3389
|
+
var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$Z]]);
|
|
3284
3390
|
class DialogOptions {
|
|
3285
3391
|
constructor() {
|
|
3286
3392
|
__publicField(this, "title", "");
|
|
@@ -3354,8 +3460,8 @@ _Dialog.install = (app) => {
|
|
|
3354
3460
|
app.use(Dialog);
|
|
3355
3461
|
app.config.globalProperties.$dialog = _Dialog;
|
|
3356
3462
|
};
|
|
3357
|
-
const { componentName: componentName$
|
|
3358
|
-
const _sfc_main
|
|
3463
|
+
const { componentName: componentName$M, create: create$12 } = createComponent("infiniteloading");
|
|
3464
|
+
const _sfc_main$12 = create$12({
|
|
3359
3465
|
props: {
|
|
3360
3466
|
hasMore: {
|
|
3361
3467
|
type: Boolean,
|
|
@@ -3417,7 +3523,7 @@ const _sfc_main$$ = create$$({
|
|
|
3417
3523
|
distance: 0
|
|
3418
3524
|
});
|
|
3419
3525
|
const classes = computed(() => {
|
|
3420
|
-
const prefixCls = componentName$
|
|
3526
|
+
const prefixCls = componentName$M;
|
|
3421
3527
|
return {
|
|
3422
3528
|
[prefixCls]: true
|
|
3423
3529
|
};
|
|
@@ -3541,9 +3647,9 @@ const _sfc_main$$ = create$$({
|
|
|
3541
3647
|
});
|
|
3542
3648
|
}
|
|
3543
3649
|
});
|
|
3544
|
-
const _hoisted_1$
|
|
3545
|
-
const _hoisted_2$
|
|
3546
|
-
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" };
|
|
3547
3653
|
const _hoisted_4$o = { class: "nut-infinite-bottom" };
|
|
3548
3654
|
const _hoisted_5$g = {
|
|
3549
3655
|
key: 0,
|
|
@@ -3554,7 +3660,7 @@ const _hoisted_7$9 = {
|
|
|
3554
3660
|
key: 1,
|
|
3555
3661
|
class: "tips"
|
|
3556
3662
|
};
|
|
3557
|
-
function _sfc_render$
|
|
3663
|
+
function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3558
3664
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
3559
3665
|
return openBlock(), createElementBlock("view", {
|
|
3560
3666
|
class: normalizeClass(_ctx.classes),
|
|
@@ -3568,15 +3674,15 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3568
3674
|
ref: "refreshTop",
|
|
3569
3675
|
style: normalizeStyle(_ctx.getStyle)
|
|
3570
3676
|
}, [
|
|
3571
|
-
createElementVNode("view", _hoisted_1$
|
|
3677
|
+
createElementVNode("view", _hoisted_1$P, [
|
|
3572
3678
|
createVNode(_component_nut_icon, {
|
|
3573
3679
|
class: "top-img",
|
|
3574
3680
|
name: _ctx.pullIcon
|
|
3575
3681
|
}, null, 8, ["name"]),
|
|
3576
|
-
createElementVNode("view", _hoisted_2$
|
|
3682
|
+
createElementVNode("view", _hoisted_2$F, toDisplayString(_ctx.pullTxt), 1)
|
|
3577
3683
|
])
|
|
3578
3684
|
], 4),
|
|
3579
|
-
createElementVNode("view", _hoisted_3$
|
|
3685
|
+
createElementVNode("view", _hoisted_3$w, [
|
|
3580
3686
|
renderSlot(_ctx.$slots, "default")
|
|
3581
3687
|
]),
|
|
3582
3688
|
createElementVNode("view", _hoisted_4$o, [
|
|
@@ -3590,9 +3696,9 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3590
3696
|
])
|
|
3591
3697
|
], 34);
|
|
3592
3698
|
}
|
|
3593
|
-
var InfiniteLoading = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
3594
|
-
const { componentName: componentName$
|
|
3595
|
-
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({
|
|
3596
3702
|
components: {
|
|
3597
3703
|
[Popup.name]: Popup
|
|
3598
3704
|
},
|
|
@@ -3662,7 +3768,7 @@ const _sfc_main$_ = create$_({
|
|
|
3662
3768
|
return { state, hide, onAfterLeave, clickCover };
|
|
3663
3769
|
}
|
|
3664
3770
|
});
|
|
3665
|
-
function _sfc_render$
|
|
3771
|
+
function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3666
3772
|
return openBlock(), createBlock(Transition, {
|
|
3667
3773
|
name: "toast-fade",
|
|
3668
3774
|
onAfterLeave: _ctx.onAfterLeave
|
|
@@ -3683,7 +3789,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3683
3789
|
_: 3
|
|
3684
3790
|
}, 8, ["onAfterLeave"]);
|
|
3685
3791
|
}
|
|
3686
|
-
var Notify = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3792
|
+
var Notify = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$X]]);
|
|
3687
3793
|
const defaultOptions$1 = {
|
|
3688
3794
|
type: "base",
|
|
3689
3795
|
showPopup: false,
|
|
@@ -3821,8 +3927,8 @@ const useRect = (elementRef) => {
|
|
|
3821
3927
|
height: 0
|
|
3822
3928
|
};
|
|
3823
3929
|
};
|
|
3824
|
-
const { componentName: componentName$
|
|
3825
|
-
const _sfc_main$
|
|
3930
|
+
const { componentName: componentName$K, create: create$10 } = createComponent("range");
|
|
3931
|
+
const _sfc_main$10 = create$10({
|
|
3826
3932
|
props: {
|
|
3827
3933
|
range: {
|
|
3828
3934
|
type: Boolean,
|
|
@@ -3867,7 +3973,7 @@ const _sfc_main$Z = create$Z({
|
|
|
3867
3973
|
const touch = useTouch();
|
|
3868
3974
|
const scope = computed(() => Number(props.max) - Number(props.min));
|
|
3869
3975
|
const classes = computed(() => {
|
|
3870
|
-
const prefixCls = componentName$
|
|
3976
|
+
const prefixCls = componentName$K;
|
|
3871
3977
|
return {
|
|
3872
3978
|
[prefixCls]: true,
|
|
3873
3979
|
[`${prefixCls}-disabled`]: props.disabled,
|
|
@@ -4018,12 +4124,12 @@ const _sfc_main$Z = create$Z({
|
|
|
4018
4124
|
});
|
|
4019
4125
|
}
|
|
4020
4126
|
});
|
|
4021
|
-
const _hoisted_1$
|
|
4022
|
-
const _hoisted_2$
|
|
4127
|
+
const _hoisted_1$O = { class: "nut-range-container" };
|
|
4128
|
+
const _hoisted_2$E = {
|
|
4023
4129
|
key: 0,
|
|
4024
4130
|
class: "min"
|
|
4025
4131
|
};
|
|
4026
|
-
const _hoisted_3$
|
|
4132
|
+
const _hoisted_3$v = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
|
|
4027
4133
|
const _hoisted_4$n = {
|
|
4028
4134
|
key: 0,
|
|
4029
4135
|
class: "number"
|
|
@@ -4037,9 +4143,9 @@ const _hoisted_7$8 = {
|
|
|
4037
4143
|
key: 1,
|
|
4038
4144
|
class: "max"
|
|
4039
4145
|
};
|
|
4040
|
-
function _sfc_render$
|
|
4041
|
-
return openBlock(), createElementBlock("view", _hoisted_1$
|
|
4042
|
-
!_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),
|
|
4043
4149
|
createElementVNode("view", {
|
|
4044
4150
|
ref: "root",
|
|
4045
4151
|
style: normalizeStyle(_ctx.wrapperStyle),
|
|
@@ -4081,7 +4187,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4081
4187
|
}, [
|
|
4082
4188
|
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_4$n, toDisplayString(_ctx.curValue(index)), 1)) : createCommentVNode("", true)
|
|
4083
4189
|
], 4))
|
|
4084
|
-
], 42, _hoisted_3$
|
|
4190
|
+
], 42, _hoisted_3$v);
|
|
4085
4191
|
}), 64)) : (openBlock(), createElementBlock("view", {
|
|
4086
4192
|
key: 1,
|
|
4087
4193
|
role: "slider",
|
|
@@ -4104,7 +4210,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4104
4210
|
class: "nut-range-button",
|
|
4105
4211
|
style: normalizeStyle(_ctx.buttonStyle)
|
|
4106
4212
|
}, [
|
|
4107
|
-
!_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)
|
|
4108
4214
|
], 4))
|
|
4109
4215
|
], 40, _hoisted_5$f))
|
|
4110
4216
|
], 4)
|
|
@@ -4112,9 +4218,9 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4112
4218
|
!_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_7$8, toDisplayString(+_ctx.max), 1)) : createCommentVNode("", true)
|
|
4113
4219
|
]);
|
|
4114
4220
|
}
|
|
4115
|
-
var Range = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4116
|
-
const { create: create
|
|
4117
|
-
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$$({
|
|
4118
4224
|
props: {
|
|
4119
4225
|
direction: {
|
|
4120
4226
|
type: String,
|
|
@@ -4134,7 +4240,7 @@ const _sfc_main$Y = create$Y({
|
|
|
4134
4240
|
children: []
|
|
4135
4241
|
});
|
|
4136
4242
|
const classes = computed(() => {
|
|
4137
|
-
const prefixCls = componentName$
|
|
4243
|
+
const prefixCls = componentName$J;
|
|
4138
4244
|
return {
|
|
4139
4245
|
[prefixCls]: true,
|
|
4140
4246
|
[`${prefixCls}-${props.direction}`]: true,
|
|
@@ -4157,8 +4263,8 @@ const _sfc_main$Y = create$Y({
|
|
|
4157
4263
|
};
|
|
4158
4264
|
}
|
|
4159
4265
|
});
|
|
4160
|
-
const { create: create$
|
|
4161
|
-
const _sfc_main$
|
|
4266
|
+
const { create: create$_, componentName: componentName$I } = createComponent("step");
|
|
4267
|
+
const _sfc_main$_ = create$_({
|
|
4162
4268
|
props: {
|
|
4163
4269
|
title: {
|
|
4164
4270
|
type: String,
|
|
@@ -4199,7 +4305,7 @@ const _sfc_main$X = create$X({
|
|
|
4199
4305
|
return getCurrentStatus();
|
|
4200
4306
|
});
|
|
4201
4307
|
const classes = computed(() => {
|
|
4202
|
-
const prefixCls = componentName$
|
|
4308
|
+
const prefixCls = componentName$I;
|
|
4203
4309
|
return {
|
|
4204
4310
|
[prefixCls]: true,
|
|
4205
4311
|
[`${prefixCls}-${status.value}`]: true
|
|
@@ -4211,22 +4317,22 @@ const _sfc_main$X = create$X({
|
|
|
4211
4317
|
});
|
|
4212
4318
|
}
|
|
4213
4319
|
});
|
|
4214
|
-
const _hoisted_1$
|
|
4215
|
-
const _hoisted_2$
|
|
4216
|
-
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 = {
|
|
4217
4323
|
key: 2,
|
|
4218
4324
|
class: "nut-step-inner"
|
|
4219
4325
|
};
|
|
4220
4326
|
const _hoisted_4$m = { class: "nut-step-main" };
|
|
4221
4327
|
const _hoisted_5$e = { class: "nut-step-title" };
|
|
4222
4328
|
const _hoisted_6$b = ["innerHTML"];
|
|
4223
|
-
function _sfc_render$
|
|
4329
|
+
function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4224
4330
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
4225
4331
|
return openBlock(), createElementBlock("view", {
|
|
4226
4332
|
class: normalizeClass(_ctx.classes)
|
|
4227
4333
|
}, [
|
|
4228
|
-
createElementVNode("view", _hoisted_1$
|
|
4229
|
-
_hoisted_2$
|
|
4334
|
+
createElementVNode("view", _hoisted_1$N, [
|
|
4335
|
+
_hoisted_2$D,
|
|
4230
4336
|
createElementVNode("view", {
|
|
4231
4337
|
class: normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
|
|
4232
4338
|
}, [
|
|
@@ -4236,7 +4342,7 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4236
4342
|
color: _ctx.iconColor,
|
|
4237
4343
|
name: _ctx.icon,
|
|
4238
4344
|
size: _ctx.size
|
|
4239
|
-
}, 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))
|
|
4240
4346
|
], 2)
|
|
4241
4347
|
]),
|
|
4242
4348
|
createElementVNode("view", _hoisted_4$m, [
|
|
@@ -4249,9 +4355,9 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4249
4355
|
])
|
|
4250
4356
|
], 2);
|
|
4251
4357
|
}
|
|
4252
|
-
var Step = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4253
|
-
const { componentName: componentName$
|
|
4254
|
-
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({
|
|
4255
4361
|
props: {
|
|
4256
4362
|
modelValue: {
|
|
4257
4363
|
type: [String, Number, Boolean],
|
|
@@ -4306,7 +4412,7 @@ const _sfc_main$W = create$W({
|
|
|
4306
4412
|
setup(props, { emit }) {
|
|
4307
4413
|
const isActive = computed(() => props.modelValue === props.activeValue);
|
|
4308
4414
|
const classes = computed(() => {
|
|
4309
|
-
const prefixCls = componentName$
|
|
4415
|
+
const prefixCls = componentName$H;
|
|
4310
4416
|
return {
|
|
4311
4417
|
[prefixCls]: true,
|
|
4312
4418
|
[isActive.value ? "switch-open" : "switch-close"]: true,
|
|
@@ -4334,15 +4440,15 @@ const _sfc_main$W = create$W({
|
|
|
4334
4440
|
};
|
|
4335
4441
|
}
|
|
4336
4442
|
});
|
|
4337
|
-
const _hoisted_1$
|
|
4338
|
-
function _sfc_render$
|
|
4443
|
+
const _hoisted_1$M = { class: "switch-button" };
|
|
4444
|
+
function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4339
4445
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
4340
4446
|
return openBlock(), createElementBlock("view", {
|
|
4341
4447
|
class: normalizeClass(_ctx.classes),
|
|
4342
4448
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args)),
|
|
4343
4449
|
style: normalizeStyle(_ctx.style)
|
|
4344
4450
|
}, [
|
|
4345
|
-
createElementVNode("view", _hoisted_1$
|
|
4451
|
+
createElementVNode("view", _hoisted_1$M, [
|
|
4346
4452
|
_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
|
|
4347
4453
|
key: 0,
|
|
4348
4454
|
name: _ctx.name,
|
|
@@ -4360,11 +4466,11 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4360
4466
|
])
|
|
4361
4467
|
], 6);
|
|
4362
4468
|
}
|
|
4363
|
-
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4364
|
-
const { create: create$
|
|
4365
|
-
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({
|
|
4366
4472
|
components: {
|
|
4367
|
-
[_sfc_main$
|
|
4473
|
+
[_sfc_main$1o.name]: _sfc_main$1o
|
|
4368
4474
|
},
|
|
4369
4475
|
props: {
|
|
4370
4476
|
id: String,
|
|
@@ -4490,16 +4596,16 @@ const _sfc_main$V = create$V({
|
|
|
4490
4596
|
};
|
|
4491
4597
|
}
|
|
4492
4598
|
});
|
|
4493
|
-
const _hoisted_1$
|
|
4599
|
+
const _hoisted_1$L = {
|
|
4494
4600
|
key: 0,
|
|
4495
4601
|
class: "nut-toast-icon-wrapper"
|
|
4496
4602
|
};
|
|
4497
|
-
const _hoisted_2$
|
|
4603
|
+
const _hoisted_2$C = {
|
|
4498
4604
|
key: 1,
|
|
4499
4605
|
class: "nut-toast-title"
|
|
4500
4606
|
};
|
|
4501
|
-
const _hoisted_3$
|
|
4502
|
-
function _sfc_render$
|
|
4607
|
+
const _hoisted_3$t = ["innerHTML"];
|
|
4608
|
+
function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4503
4609
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
4504
4610
|
return openBlock(), createBlock(Transition, {
|
|
4505
4611
|
name: "toast-fade",
|
|
@@ -4521,18 +4627,18 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4521
4627
|
"background-color": _ctx.bgColor
|
|
4522
4628
|
})
|
|
4523
4629
|
}, [
|
|
4524
|
-
_ctx.hasIcon ? (openBlock(), createElementBlock("view", _hoisted_1$
|
|
4630
|
+
_ctx.hasIcon ? (openBlock(), createElementBlock("view", _hoisted_1$L, [
|
|
4525
4631
|
createVNode(_component_nut_icon, {
|
|
4526
4632
|
size: "20",
|
|
4527
4633
|
color: "#ffffff",
|
|
4528
4634
|
name: _ctx.icon
|
|
4529
4635
|
}, null, 8, ["name"])
|
|
4530
4636
|
])) : createCommentVNode("", true),
|
|
4531
|
-
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4637
|
+
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2$C, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
4532
4638
|
createElementVNode("view", {
|
|
4533
4639
|
class: "nut-toast-text",
|
|
4534
4640
|
innerHTML: _ctx.msg
|
|
4535
|
-
}, null, 8, _hoisted_3$
|
|
4641
|
+
}, null, 8, _hoisted_3$t)
|
|
4536
4642
|
], 4)
|
|
4537
4643
|
], 6), [
|
|
4538
4644
|
[vShow, _ctx.state.mounted]
|
|
@@ -4541,7 +4647,7 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4541
4647
|
_: 1
|
|
4542
4648
|
}, 8, ["onAfterLeave"]);
|
|
4543
4649
|
}
|
|
4544
|
-
var Toast = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4650
|
+
var Toast = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$T]]);
|
|
4545
4651
|
const defaultOptions = {
|
|
4546
4652
|
msg: "",
|
|
4547
4653
|
id: "",
|
|
@@ -4658,8 +4764,8 @@ const ToastFunction = {
|
|
|
4658
4764
|
app.config.globalProperties.$toast = ToastFunction;
|
|
4659
4765
|
}
|
|
4660
4766
|
};
|
|
4661
|
-
const { create: create$
|
|
4662
|
-
const _sfc_main$
|
|
4767
|
+
const { create: create$X } = createComponent("progress");
|
|
4768
|
+
const _sfc_main$X = create$X({
|
|
4663
4769
|
props: {
|
|
4664
4770
|
percentage: {
|
|
4665
4771
|
type: [Number, String],
|
|
@@ -4735,10 +4841,10 @@ const _sfc_main$U = create$U({
|
|
|
4735
4841
|
};
|
|
4736
4842
|
}
|
|
4737
4843
|
});
|
|
4738
|
-
const _hoisted_1$
|
|
4739
|
-
function _sfc_render$
|
|
4844
|
+
const _hoisted_1$K = { class: "nut-progress" };
|
|
4845
|
+
function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4740
4846
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
4741
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4847
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
4742
4848
|
createElementVNode("div", {
|
|
4743
4849
|
class: normalizeClass(["nut-progress-outer", [
|
|
4744
4850
|
_ctx.showText && !_ctx.textInside ? "nut-progress-outer-part" : "",
|
|
@@ -4779,9 +4885,9 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4779
4885
|
], 4)) : createCommentVNode("", true)
|
|
4780
4886
|
]);
|
|
4781
4887
|
}
|
|
4782
|
-
var Progress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4783
|
-
const { componentName: componentName$
|
|
4784
|
-
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({
|
|
4785
4891
|
props: {
|
|
4786
4892
|
progress: {
|
|
4787
4893
|
type: [Number, String],
|
|
@@ -4803,7 +4909,7 @@ const _sfc_main$T = create$T({
|
|
|
4803
4909
|
},
|
|
4804
4910
|
setup(props, { emit }) {
|
|
4805
4911
|
const classes = computed(() => {
|
|
4806
|
-
const prefixCls = componentName$
|
|
4912
|
+
const prefixCls = componentName$G;
|
|
4807
4913
|
return {
|
|
4808
4914
|
[prefixCls]: true
|
|
4809
4915
|
};
|
|
@@ -4837,11 +4943,11 @@ const _sfc_main$T = create$T({
|
|
|
4837
4943
|
};
|
|
4838
4944
|
}
|
|
4839
4945
|
});
|
|
4840
|
-
const _hoisted_1$
|
|
4841
|
-
const _hoisted_2$
|
|
4842
|
-
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"];
|
|
4843
4949
|
const _hoisted_4$l = { class: "nut-circleprogress-content" };
|
|
4844
|
-
function _sfc_render$
|
|
4950
|
+
function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4845
4951
|
return openBlock(), createElementBlock("div", {
|
|
4846
4952
|
class: normalizeClass(_ctx.classes),
|
|
4847
4953
|
style: normalizeStyle({ height: _ctx.option.size + "px", width: _ctx.option.size + "px" })
|
|
@@ -4858,7 +4964,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4858
4964
|
stroke: _ctx.option.backColor,
|
|
4859
4965
|
"stroke-width": _ctx.option.strokeOutWidth,
|
|
4860
4966
|
fill: "none"
|
|
4861
|
-
}, null, 8, _hoisted_2$
|
|
4967
|
+
}, null, 8, _hoisted_2$B),
|
|
4862
4968
|
createElementVNode("circle", {
|
|
4863
4969
|
r: _ctx.option.radius,
|
|
4864
4970
|
cx: _ctx.option.cx,
|
|
@@ -4870,8 +4976,8 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4870
4976
|
transform: _ctx.option.startPosition,
|
|
4871
4977
|
"stroke-linecap": "round",
|
|
4872
4978
|
style: { "transition": "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease 0s" }
|
|
4873
|
-
}, null, 8, _hoisted_3$
|
|
4874
|
-
], 8, _hoisted_1$
|
|
4979
|
+
}, null, 8, _hoisted_3$s)
|
|
4980
|
+
], 8, _hoisted_1$J)),
|
|
4875
4981
|
createElementVNode("div", _hoisted_4$l, [
|
|
4876
4982
|
!_ctx.isAuto ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
|
|
4877
4983
|
createTextVNode(toDisplayString(_ctx.progress) + "%", 1)
|
|
@@ -4879,9 +4985,9 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4879
4985
|
])
|
|
4880
4986
|
], 6);
|
|
4881
4987
|
}
|
|
4882
|
-
var CircleProgress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4883
|
-
const { componentName: componentName$
|
|
4884
|
-
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({
|
|
4885
4991
|
props: {
|
|
4886
4992
|
direction: {
|
|
4887
4993
|
type: String,
|
|
@@ -4947,7 +5053,7 @@ const _sfc_main$S = create$S({
|
|
|
4947
5053
|
},
|
|
4948
5054
|
emits: ["click", "close"],
|
|
4949
5055
|
setup(props, { emit, slots }) {
|
|
4950
|
-
console.log("componentName", componentName$
|
|
5056
|
+
console.log("componentName", componentName$F);
|
|
4951
5057
|
const wrap = ref(null);
|
|
4952
5058
|
const content = ref(null);
|
|
4953
5059
|
const state = reactive({
|
|
@@ -4964,7 +5070,7 @@ const _sfc_main$S = create$S({
|
|
|
4964
5070
|
keepAlive: false
|
|
4965
5071
|
});
|
|
4966
5072
|
const classes = computed(() => {
|
|
4967
|
-
const prefixCls = componentName$
|
|
5073
|
+
const prefixCls = componentName$F;
|
|
4968
5074
|
return {
|
|
4969
5075
|
[prefixCls]: true
|
|
4970
5076
|
};
|
|
@@ -5138,12 +5244,12 @@ const _sfc_main$S = create$S({
|
|
|
5138
5244
|
});
|
|
5139
5245
|
}
|
|
5140
5246
|
});
|
|
5141
|
-
const _hoisted_1$
|
|
5247
|
+
const _hoisted_1$I = {
|
|
5142
5248
|
ref: "wrap",
|
|
5143
5249
|
class: "wrap"
|
|
5144
5250
|
};
|
|
5145
|
-
const _hoisted_2$
|
|
5146
|
-
function _sfc_render$
|
|
5251
|
+
const _hoisted_2$A = ["onClick"];
|
|
5252
|
+
function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5147
5253
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
5148
5254
|
const _component_ScrollItem = resolveComponent("ScrollItem");
|
|
5149
5255
|
return openBlock(), createElementBlock("view", {
|
|
@@ -5167,7 +5273,7 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5167
5273
|
color: _ctx.color
|
|
5168
5274
|
}, null, 8, ["color"])) : createCommentVNode("", true)
|
|
5169
5275
|
], 4)) : createCommentVNode("", true),
|
|
5170
|
-
createElementVNode("view", _hoisted_1$
|
|
5276
|
+
createElementVNode("view", _hoisted_1$I, [
|
|
5171
5277
|
createElementVNode("view", {
|
|
5172
5278
|
ref: "content",
|
|
5173
5279
|
class: normalizeClass(["content", [_ctx.animationClass, { "nut-ellipsis": !_ctx.scrollable && !_ctx.wrapable }]]),
|
|
@@ -5176,7 +5282,7 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5176
5282
|
onWebkitAnimationEnd: _cache[1] || (_cache[1] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args))
|
|
5177
5283
|
}, [
|
|
5178
5284
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
5179
|
-
createTextVNode(
|
|
5285
|
+
createTextVNode(toDisplayString(_ctx.text), 1)
|
|
5180
5286
|
])
|
|
5181
5287
|
], 38)
|
|
5182
5288
|
], 512),
|
|
@@ -5221,7 +5327,7 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5221
5327
|
key: index,
|
|
5222
5328
|
style: normalizeStyle({ height: _ctx.height }),
|
|
5223
5329
|
onClick: ($event) => _ctx.go(item)
|
|
5224
|
-
}, toDisplayString(item), 13, _hoisted_2$
|
|
5330
|
+
}, toDisplayString(item), 13, _hoisted_2$A);
|
|
5225
5331
|
}), 128))
|
|
5226
5332
|
], 4)),
|
|
5227
5333
|
createElementVNode("view", {
|
|
@@ -5238,9 +5344,9 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5238
5344
|
], 4)) : createCommentVNode("", true)
|
|
5239
5345
|
], 2);
|
|
5240
5346
|
}
|
|
5241
|
-
var NoticeBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5242
|
-
const { create: create$
|
|
5243
|
-
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({
|
|
5244
5350
|
props: {
|
|
5245
5351
|
modelValue: {
|
|
5246
5352
|
type: [String, Number],
|
|
@@ -5331,15 +5437,15 @@ const _sfc_main$R = create$R({
|
|
|
5331
5437
|
});
|
|
5332
5438
|
}
|
|
5333
5439
|
});
|
|
5334
|
-
const _hoisted_1$
|
|
5440
|
+
const _hoisted_1$H = {
|
|
5335
5441
|
key: 0,
|
|
5336
5442
|
class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
|
|
5337
5443
|
};
|
|
5338
|
-
const _hoisted_2$
|
|
5444
|
+
const _hoisted_2$z = {
|
|
5339
5445
|
key: 0,
|
|
5340
5446
|
class: "nut-searchbar__search-icon nut-searchbar__iptleft-search-icon"
|
|
5341
5447
|
};
|
|
5342
|
-
const _hoisted_3$
|
|
5448
|
+
const _hoisted_3$r = { class: "nut-searchbar__input-inner" };
|
|
5343
5449
|
const _hoisted_4$k = ["type", "maxlength", "placeholder", "value"];
|
|
5344
5450
|
const _hoisted_5$d = {
|
|
5345
5451
|
key: 1,
|
|
@@ -5349,23 +5455,23 @@ const _hoisted_6$a = {
|
|
|
5349
5455
|
key: 1,
|
|
5350
5456
|
class: "nut-searchbar__search-icon nut-searchbar__right-search-icon"
|
|
5351
5457
|
};
|
|
5352
|
-
function _sfc_render$
|
|
5458
|
+
function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5353
5459
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
5354
5460
|
return openBlock(), createElementBlock("view", {
|
|
5355
5461
|
class: "nut-searchbar",
|
|
5356
5462
|
style: normalizeStyle(_ctx.searchbarStyle)
|
|
5357
5463
|
}, [
|
|
5358
|
-
_ctx.$slots.leftout ? (openBlock(), createElementBlock("view", _hoisted_1$
|
|
5464
|
+
_ctx.$slots.leftout ? (openBlock(), createElementBlock("view", _hoisted_1$H, [
|
|
5359
5465
|
renderSlot(_ctx.$slots, "leftout")
|
|
5360
5466
|
])) : createCommentVNode("", true),
|
|
5361
5467
|
createElementVNode("view", {
|
|
5362
5468
|
class: "nut-searchbar__search-input",
|
|
5363
5469
|
style: normalizeStyle(_ctx.inputSearchbarStyle)
|
|
5364
5470
|
}, [
|
|
5365
|
-
_ctx.$slots.leftin ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
5471
|
+
_ctx.$slots.leftin ? (openBlock(), createElementBlock("view", _hoisted_2$z, [
|
|
5366
5472
|
renderSlot(_ctx.$slots, "leftin")
|
|
5367
5473
|
])) : createCommentVNode("", true),
|
|
5368
|
-
createElementVNode("view", _hoisted_3$
|
|
5474
|
+
createElementVNode("view", _hoisted_3$r, [
|
|
5369
5475
|
createElementVNode("form", {
|
|
5370
5476
|
action: "#",
|
|
5371
5477
|
onSubmit: _cache[3] || (_cache[3] = withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
|
|
@@ -5404,14 +5510,14 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5404
5510
|
])) : createCommentVNode("", true)
|
|
5405
5511
|
], 4);
|
|
5406
5512
|
}
|
|
5407
|
-
var SearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5408
|
-
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");
|
|
5409
5515
|
const defaultStatus = {
|
|
5410
5516
|
empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
|
|
5411
5517
|
error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
|
|
5412
5518
|
network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
|
|
5413
5519
|
};
|
|
5414
|
-
const _sfc_main$
|
|
5520
|
+
const _sfc_main$T = create$T({
|
|
5415
5521
|
props: {
|
|
5416
5522
|
image: {
|
|
5417
5523
|
type: String,
|
|
@@ -5445,14 +5551,14 @@ const _sfc_main$Q = create$Q({
|
|
|
5445
5551
|
};
|
|
5446
5552
|
}
|
|
5447
5553
|
});
|
|
5448
|
-
const _hoisted_1$
|
|
5449
|
-
const _hoisted_2$
|
|
5450
|
-
const _hoisted_3$
|
|
5554
|
+
const _hoisted_1$G = { class: "nut-empty" };
|
|
5555
|
+
const _hoisted_2$y = ["src"];
|
|
5556
|
+
const _hoisted_3$q = {
|
|
5451
5557
|
key: 1,
|
|
5452
5558
|
class: "nut-empty-description"
|
|
5453
5559
|
};
|
|
5454
|
-
function _sfc_render$
|
|
5455
|
-
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, [
|
|
5456
5562
|
createElementVNode("view", {
|
|
5457
5563
|
class: "nut-empty-image",
|
|
5458
5564
|
style: normalizeStyle(_ctx.imgStyle)
|
|
@@ -5462,26 +5568,20 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5462
5568
|
key: 0,
|
|
5463
5569
|
class: "img",
|
|
5464
5570
|
src: _ctx.imageUrl
|
|
5465
|
-
}, null, 8, _hoisted_2$
|
|
5571
|
+
}, null, 8, _hoisted_2$y)) : createCommentVNode("", true)
|
|
5466
5572
|
], 64))
|
|
5467
5573
|
], 4),
|
|
5468
|
-
_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)),
|
|
5469
5575
|
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 2 }) : createCommentVNode("", true)
|
|
5470
5576
|
]);
|
|
5471
5577
|
}
|
|
5472
|
-
var Empty = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5473
|
-
const { componentName: componentName$
|
|
5474
|
-
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({
|
|
5475
5581
|
props: {
|
|
5476
5582
|
leftShow: { type: Boolean, default: true },
|
|
5477
5583
|
title: { type: String, default: "" },
|
|
5478
5584
|
titIcon: { type: String, default: "" },
|
|
5479
|
-
tabs: {
|
|
5480
|
-
type: Array,
|
|
5481
|
-
defaul: () => {
|
|
5482
|
-
return [];
|
|
5483
|
-
}
|
|
5484
|
-
},
|
|
5485
5585
|
icon: { type: String, default: "" },
|
|
5486
5586
|
desc: { type: String, default: "" },
|
|
5487
5587
|
defaultIndex: {
|
|
@@ -5506,16 +5606,11 @@ const _sfc_main$P = create$P({
|
|
|
5506
5606
|
setup(props, { emit }) {
|
|
5507
5607
|
const activeIndex = ref(props.defaultIndex);
|
|
5508
5608
|
const classes = computed(() => {
|
|
5509
|
-
const prefixCls = componentName$
|
|
5609
|
+
const prefixCls = componentName$D;
|
|
5510
5610
|
return {
|
|
5511
5611
|
[prefixCls]: true
|
|
5512
5612
|
};
|
|
5513
5613
|
});
|
|
5514
|
-
function switchTitle(id, name) {
|
|
5515
|
-
activeIndex.value = id;
|
|
5516
|
-
console.log(id);
|
|
5517
|
-
emit("switch-tab", activeIndex.value, name);
|
|
5518
|
-
}
|
|
5519
5614
|
function handleLeft() {
|
|
5520
5615
|
emit("on-click-back");
|
|
5521
5616
|
}
|
|
@@ -5546,20 +5641,17 @@ const _sfc_main$P = create$P({
|
|
|
5546
5641
|
handleSend,
|
|
5547
5642
|
handleSlot,
|
|
5548
5643
|
handleSends,
|
|
5549
|
-
switchTitle,
|
|
5550
5644
|
activeIndex
|
|
5551
5645
|
};
|
|
5552
5646
|
}
|
|
5553
5647
|
});
|
|
5554
|
-
const _hoisted_1$
|
|
5555
|
-
|
|
5556
|
-
const _hoisted_3$o = ["onClick"];
|
|
5557
|
-
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) {
|
|
5558
5650
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
5559
5651
|
return openBlock(), createElementBlock("view", {
|
|
5560
5652
|
class: normalizeClass(_ctx.classes)
|
|
5561
5653
|
}, [
|
|
5562
|
-
createElementVNode("view", _hoisted_1$
|
|
5654
|
+
createElementVNode("view", _hoisted_1$F, [
|
|
5563
5655
|
_ctx.leftShow ? (openBlock(), createBlock(_component_nut_icon, {
|
|
5564
5656
|
key: 0,
|
|
5565
5657
|
color: "#979797",
|
|
@@ -5567,8 +5659,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5567
5659
|
onClick: _ctx.handleLeft
|
|
5568
5660
|
}, null, 8, ["onClick"])) : createCommentVNode("", true)
|
|
5569
5661
|
]),
|
|
5570
|
-
|
|
5571
|
-
key: 0,
|
|
5662
|
+
createElementVNode("view", {
|
|
5572
5663
|
class: normalizeClass(["nut-navbar__title", { icon: _ctx.icon }])
|
|
5573
5664
|
}, [
|
|
5574
5665
|
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
@@ -5581,21 +5672,10 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5581
5672
|
name: _ctx.titIcon,
|
|
5582
5673
|
onClick: _ctx.handleCenterIcon
|
|
5583
5674
|
}, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
return openBlock(), createElementBlock("view", {
|
|
5587
|
-
class: normalizeClass([
|
|
5588
|
-
"tab-title-box",
|
|
5589
|
-
{ "nut-tab-active": _ctx.activeIndex == item.id || _ctx.activeIndex == index }
|
|
5590
|
-
]),
|
|
5591
|
-
onClick: ($event) => _ctx.switchTitle(item.id, item.name),
|
|
5592
|
-
key: item.id
|
|
5593
|
-
}, toDisplayString(item.name), 11, _hoisted_3$o);
|
|
5594
|
-
}), 128))
|
|
5595
|
-
])
|
|
5596
|
-
], 2)) : createCommentVNode("", true),
|
|
5675
|
+
renderSlot(_ctx.$slots, "content")
|
|
5676
|
+
], 2),
|
|
5597
5677
|
_ctx.desc || _ctx.icon ? (openBlock(), createElementBlock("view", {
|
|
5598
|
-
key:
|
|
5678
|
+
key: 0,
|
|
5599
5679
|
class: normalizeClass(["nut-navbar__right", { icon: _ctx.icon }])
|
|
5600
5680
|
}, [
|
|
5601
5681
|
_ctx.desc ? (openBlock(), createElementBlock("view", {
|
|
@@ -5620,9 +5700,9 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5620
5700
|
], 2)) : createCommentVNode("", true)
|
|
5621
5701
|
], 2);
|
|
5622
5702
|
}
|
|
5623
|
-
var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5624
|
-
const { componentName: componentName$
|
|
5625
|
-
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({
|
|
5626
5706
|
components: {
|
|
5627
5707
|
[OverLay.name]: OverLay
|
|
5628
5708
|
},
|
|
@@ -5665,7 +5745,7 @@ const _sfc_main$O = create$O({
|
|
|
5665
5745
|
emits: ["update:visible", "selected"],
|
|
5666
5746
|
setup(props, { emit }) {
|
|
5667
5747
|
const classes = computed(() => {
|
|
5668
|
-
const prefixCls = componentName$
|
|
5748
|
+
const prefixCls = componentName$C;
|
|
5669
5749
|
return {
|
|
5670
5750
|
[prefixCls]: true,
|
|
5671
5751
|
active: props.visible,
|
|
@@ -5684,16 +5764,16 @@ const _sfc_main$O = create$O({
|
|
|
5684
5764
|
return { classes, updateValue, selected };
|
|
5685
5765
|
}
|
|
5686
5766
|
});
|
|
5687
|
-
const _hoisted_1$
|
|
5688
|
-
const _hoisted_2$
|
|
5689
|
-
const _hoisted_3$
|
|
5767
|
+
const _hoisted_1$E = { class: "nut-fixednav__list" };
|
|
5768
|
+
const _hoisted_2$x = ["onClick"];
|
|
5769
|
+
const _hoisted_3$p = ["src"];
|
|
5690
5770
|
const _hoisted_4$j = { class: "span" };
|
|
5691
5771
|
const _hoisted_5$c = {
|
|
5692
5772
|
key: 0,
|
|
5693
5773
|
class: "b"
|
|
5694
5774
|
};
|
|
5695
5775
|
const _hoisted_6$9 = { class: "text" };
|
|
5696
|
-
function _sfc_render$
|
|
5776
|
+
function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5697
5777
|
const _component_nut_overlay = resolveComponent("nut-overlay");
|
|
5698
5778
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
5699
5779
|
return openBlock(), createElementBlock("view", {
|
|
@@ -5707,7 +5787,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5707
5787
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.updateValue(false))
|
|
5708
5788
|
}, null, 8, ["visible"])) : createCommentVNode("", true),
|
|
5709
5789
|
renderSlot(_ctx.$slots, "list", {}, () => [
|
|
5710
|
-
createElementVNode("view", _hoisted_1$
|
|
5790
|
+
createElementVNode("view", _hoisted_1$E, [
|
|
5711
5791
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navList, (item, index) => {
|
|
5712
5792
|
return openBlock(), createElementBlock("view", {
|
|
5713
5793
|
class: "nut-fixednav__list-item",
|
|
@@ -5716,10 +5796,10 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5716
5796
|
}, [
|
|
5717
5797
|
createElementVNode("img", {
|
|
5718
5798
|
src: item.icon
|
|
5719
|
-
}, null, 8, _hoisted_3$
|
|
5799
|
+
}, null, 8, _hoisted_3$p),
|
|
5720
5800
|
createElementVNode("view", _hoisted_4$j, toDisplayString(item.text), 1),
|
|
5721
5801
|
item.num ? (openBlock(), createElementBlock("view", _hoisted_5$c, toDisplayString(item.num), 1)) : createCommentVNode("", true)
|
|
5722
|
-
], 8, _hoisted_2$
|
|
5802
|
+
], 8, _hoisted_2$x);
|
|
5723
5803
|
}), 128))
|
|
5724
5804
|
])
|
|
5725
5805
|
]),
|
|
@@ -5737,13 +5817,13 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5737
5817
|
])
|
|
5738
5818
|
], 6);
|
|
5739
5819
|
}
|
|
5740
|
-
var FixedNav = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5741
|
-
const { componentName: componentName$
|
|
5742
|
-
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({
|
|
5743
5823
|
props: {
|
|
5744
5824
|
activeColor: {
|
|
5745
5825
|
type: String,
|
|
5746
|
-
default: "
|
|
5826
|
+
default: ""
|
|
5747
5827
|
},
|
|
5748
5828
|
overlay: {
|
|
5749
5829
|
type: Boolean,
|
|
@@ -5781,7 +5861,7 @@ const _sfc_main$N = create$N({
|
|
|
5781
5861
|
const { children, linkChildren } = useChildren();
|
|
5782
5862
|
const opened = computed(() => children.some((item) => item.state.showWrapper));
|
|
5783
5863
|
const classes = computed(() => {
|
|
5784
|
-
const prefixCls = componentName$
|
|
5864
|
+
const prefixCls = componentName$B;
|
|
5785
5865
|
return {
|
|
5786
5866
|
[prefixCls]: true
|
|
5787
5867
|
};
|
|
@@ -5812,9 +5892,9 @@ const _sfc_main$N = create$N({
|
|
|
5812
5892
|
};
|
|
5813
5893
|
}
|
|
5814
5894
|
});
|
|
5815
|
-
const _hoisted_1$
|
|
5816
|
-
const _hoisted_2$
|
|
5817
|
-
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) {
|
|
5818
5898
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
5819
5899
|
return openBlock(), createElementBlock("view", {
|
|
5820
5900
|
class: normalizeClass(_ctx.classes)
|
|
@@ -5826,29 +5906,29 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5826
5906
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.children, (item, index) => {
|
|
5827
5907
|
return openBlock(), createElementBlock("view", {
|
|
5828
5908
|
key: index,
|
|
5829
|
-
class: normalizeClass(["nut-menu__item", { disabled: item.disabled }]),
|
|
5909
|
+
class: normalizeClass(["nut-menu__item", { disabled: item.disabled, active: item.state.showPopup }]),
|
|
5830
5910
|
onClick: ($event) => !item.disabled && _ctx.toggleItem(index),
|
|
5831
5911
|
style: normalizeStyle({ color: item.state.showPopup ? _ctx.activeColor : "" })
|
|
5832
5912
|
}, [
|
|
5833
5913
|
createElementVNode("view", {
|
|
5834
5914
|
class: normalizeClass(["nut-menu__title", { active: item.state.showPopup }])
|
|
5835
5915
|
}, [
|
|
5836
|
-
createElementVNode("view", _hoisted_2$
|
|
5916
|
+
createElementVNode("view", _hoisted_2$w, toDisplayString(item.renderTitle()), 1),
|
|
5837
5917
|
createVNode(_component_nut_icon, {
|
|
5838
5918
|
name: item.titleIcon,
|
|
5839
5919
|
size: "10",
|
|
5840
5920
|
class: "nut-menu__title-icon"
|
|
5841
5921
|
}, null, 8, ["name"])
|
|
5842
5922
|
], 2)
|
|
5843
|
-
], 14, _hoisted_1$
|
|
5923
|
+
], 14, _hoisted_1$D);
|
|
5844
5924
|
}), 128))
|
|
5845
5925
|
], 2),
|
|
5846
5926
|
renderSlot(_ctx.$slots, "default")
|
|
5847
5927
|
], 2);
|
|
5848
5928
|
}
|
|
5849
|
-
var Menu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5850
|
-
const { componentName: componentName$
|
|
5851
|
-
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({
|
|
5852
5932
|
props: {
|
|
5853
5933
|
title: String,
|
|
5854
5934
|
options: {
|
|
@@ -5870,7 +5950,7 @@ const _sfc_main$M = create$M({
|
|
|
5870
5950
|
}
|
|
5871
5951
|
},
|
|
5872
5952
|
components: {
|
|
5873
|
-
[_sfc_main$
|
|
5953
|
+
[_sfc_main$1o.name]: _sfc_main$1o,
|
|
5874
5954
|
[Popup.name]: Popup
|
|
5875
5955
|
},
|
|
5876
5956
|
emits: ["update:modelValue", "change"],
|
|
@@ -5894,7 +5974,7 @@ const _sfc_main$M = create$M({
|
|
|
5894
5974
|
};
|
|
5895
5975
|
const { parent } = useParent();
|
|
5896
5976
|
const classes = computed(() => {
|
|
5897
|
-
const prefixCls = componentName$
|
|
5977
|
+
const prefixCls = componentName$A;
|
|
5898
5978
|
return {
|
|
5899
5979
|
[prefixCls]: true
|
|
5900
5980
|
};
|
|
@@ -5944,9 +6024,9 @@ const _sfc_main$M = create$M({
|
|
|
5944
6024
|
};
|
|
5945
6025
|
}
|
|
5946
6026
|
});
|
|
5947
|
-
const _hoisted_1$
|
|
5948
|
-
const _hoisted_2$
|
|
5949
|
-
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) {
|
|
5950
6030
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
5951
6031
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
5952
6032
|
return withDirectives((openBlock(), createElementBlock("view", {
|
|
@@ -5974,7 +6054,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5974
6054
|
isWrapTeleport: false
|
|
5975
6055
|
}), {
|
|
5976
6056
|
default: withCtx(() => [
|
|
5977
|
-
createElementVNode("view", _hoisted_1$
|
|
6057
|
+
createElementVNode("view", _hoisted_1$C, [
|
|
5978
6058
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index) => {
|
|
5979
6059
|
return openBlock(), createElementBlock("view", {
|
|
5980
6060
|
key: index,
|
|
@@ -5990,7 +6070,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5990
6070
|
createElementVNode("view", {
|
|
5991
6071
|
style: normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
|
|
5992
6072
|
}, toDisplayString(option.text), 5)
|
|
5993
|
-
], 14, _hoisted_2$
|
|
6073
|
+
], 14, _hoisted_2$v);
|
|
5994
6074
|
}), 128)),
|
|
5995
6075
|
renderSlot(_ctx.$slots, "default")
|
|
5996
6076
|
])
|
|
@@ -6001,9 +6081,9 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6001
6081
|
[vShow, _ctx.state.showWrapper]
|
|
6002
6082
|
]);
|
|
6003
6083
|
}
|
|
6004
|
-
var MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6005
|
-
const { create: create$
|
|
6006
|
-
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({
|
|
6007
6087
|
props: {
|
|
6008
6088
|
visible: {
|
|
6009
6089
|
type: [Number, String],
|
|
@@ -6028,6 +6108,10 @@ const _sfc_main$L = create$L({
|
|
|
6028
6108
|
activeColor: {
|
|
6029
6109
|
type: String,
|
|
6030
6110
|
default: ""
|
|
6111
|
+
},
|
|
6112
|
+
safeAreaInsetBottom: {
|
|
6113
|
+
type: Boolean,
|
|
6114
|
+
default: false
|
|
6031
6115
|
}
|
|
6032
6116
|
},
|
|
6033
6117
|
emits: ["tab-switch", "update:visible"],
|
|
@@ -6058,16 +6142,16 @@ const _sfc_main$L = create$L({
|
|
|
6058
6142
|
};
|
|
6059
6143
|
}
|
|
6060
6144
|
});
|
|
6061
|
-
function _sfc_render$
|
|
6145
|
+
function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6062
6146
|
return openBlock(), createElementBlock("view", {
|
|
6063
|
-
class: normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom }])
|
|
6147
|
+
class: normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom, "nut-tabbar-safebottom": _ctx.safeAreaInsetBottom }])
|
|
6064
6148
|
}, [
|
|
6065
6149
|
renderSlot(_ctx.$slots, "default")
|
|
6066
6150
|
], 2);
|
|
6067
6151
|
}
|
|
6068
|
-
var Tabbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6069
|
-
const { create: create$
|
|
6070
|
-
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({
|
|
6071
6155
|
props: {
|
|
6072
6156
|
tabTitle: {
|
|
6073
6157
|
type: String,
|
|
@@ -6148,17 +6232,17 @@ const _sfc_main$K = create$K({
|
|
|
6148
6232
|
};
|
|
6149
6233
|
}
|
|
6150
6234
|
});
|
|
6151
|
-
const _hoisted_1$
|
|
6152
|
-
const _hoisted_2$
|
|
6235
|
+
const _hoisted_1$B = { class: "nut-tabbar-item_icon-box" };
|
|
6236
|
+
const _hoisted_2$u = {
|
|
6153
6237
|
key: 0,
|
|
6154
6238
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_num"
|
|
6155
6239
|
};
|
|
6156
|
-
const _hoisted_3$
|
|
6240
|
+
const _hoisted_3$o = {
|
|
6157
6241
|
key: 1,
|
|
6158
6242
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_nums"
|
|
6159
6243
|
};
|
|
6160
6244
|
const _hoisted_4$i = { key: 2 };
|
|
6161
|
-
function _sfc_render$
|
|
6245
|
+
function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6162
6246
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
6163
6247
|
return openBlock(), createElementBlock("div", {
|
|
6164
6248
|
class: normalizeClass(["nut-tabbar-item", { "nut-tabbar-item__icon--unactive": _ctx.state.active != _ctx.state.index }]),
|
|
@@ -6167,8 +6251,8 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6167
6251
|
}),
|
|
6168
6252
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.change(_ctx.state.index))
|
|
6169
6253
|
}, [
|
|
6170
|
-
createElementVNode("view", _hoisted_1$
|
|
6171
|
-
_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),
|
|
6172
6256
|
_ctx.icon ? (openBlock(), createElementBlock("view", _hoisted_4$i, [
|
|
6173
6257
|
createVNode(_component_nut_icon, {
|
|
6174
6258
|
class: "nut-tabbar-item_icon-box_icon",
|
|
@@ -6193,9 +6277,9 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6193
6277
|
])
|
|
6194
6278
|
], 6);
|
|
6195
6279
|
}
|
|
6196
|
-
var TabbarItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6197
|
-
const { componentName: componentName$
|
|
6198
|
-
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({
|
|
6199
6283
|
props: {
|
|
6200
6284
|
height: {
|
|
6201
6285
|
type: [Number, String],
|
|
@@ -6228,7 +6312,7 @@ const _sfc_main$J = create$J({
|
|
|
6228
6312
|
currentIndex: 0
|
|
6229
6313
|
});
|
|
6230
6314
|
const classes = computed(() => {
|
|
6231
|
-
const prefixCls = componentName$
|
|
6315
|
+
const prefixCls = componentName$z;
|
|
6232
6316
|
return {
|
|
6233
6317
|
[prefixCls]: true
|
|
6234
6318
|
};
|
|
@@ -6317,11 +6401,11 @@ const _sfc_main$J = create$J({
|
|
|
6317
6401
|
});
|
|
6318
6402
|
}
|
|
6319
6403
|
});
|
|
6320
|
-
const _hoisted_1$
|
|
6321
|
-
const _hoisted_2$
|
|
6322
|
-
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" };
|
|
6323
6407
|
const _hoisted_4$h = ["data-index", "onClick"];
|
|
6324
|
-
function _sfc_render$
|
|
6408
|
+
function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6325
6409
|
return openBlock(), createElementBlock("view", {
|
|
6326
6410
|
class: normalizeClass(_ctx.classes)
|
|
6327
6411
|
}, [
|
|
@@ -6337,14 +6421,14 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6337
6421
|
ref_for: true,
|
|
6338
6422
|
ref: _ctx.setListGroup
|
|
6339
6423
|
}, [
|
|
6340
|
-
createElementVNode("view", _hoisted_1$
|
|
6424
|
+
createElementVNode("view", _hoisted_1$A, toDisplayString(item[_ctx.acceptKey]), 1),
|
|
6341
6425
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (subitem) => {
|
|
6342
6426
|
return openBlock(), createElementBlock("view", {
|
|
6343
6427
|
class: "nut-elevator__list__item__name",
|
|
6344
6428
|
key: subitem["id"],
|
|
6345
6429
|
onClick: ($event) => _ctx.handleClickItem(item[_ctx.acceptKey], subitem),
|
|
6346
6430
|
innerHTML: subitem.name
|
|
6347
|
-
}, null, 8, _hoisted_2$
|
|
6431
|
+
}, null, 8, _hoisted_2$t);
|
|
6348
6432
|
}), 128))
|
|
6349
6433
|
]);
|
|
6350
6434
|
}), 128))
|
|
@@ -6361,7 +6445,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6361
6445
|
onTouchmove: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.touchMove && _ctx.touchMove(...args), ["stop", "prevent"])),
|
|
6362
6446
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.touchEnd && _ctx.touchEnd(...args))
|
|
6363
6447
|
}, [
|
|
6364
|
-
createElementVNode("view", _hoisted_3$
|
|
6448
|
+
createElementVNode("view", _hoisted_3$n, [
|
|
6365
6449
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.indexList, (item, index) => {
|
|
6366
6450
|
return openBlock(), createElementBlock("view", {
|
|
6367
6451
|
class: "nut-elevator__bars__inner__item",
|
|
@@ -6374,9 +6458,9 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6374
6458
|
], 32)
|
|
6375
6459
|
], 2);
|
|
6376
6460
|
}
|
|
6377
|
-
var Elevator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6378
|
-
const { componentName: componentName$
|
|
6379
|
-
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({
|
|
6380
6464
|
props: {
|
|
6381
6465
|
modelValue: {
|
|
6382
6466
|
type: Number,
|
|
@@ -6481,19 +6565,19 @@ const _sfc_main$I = create$I({
|
|
|
6481
6565
|
};
|
|
6482
6566
|
}
|
|
6483
6567
|
});
|
|
6484
|
-
const _hoisted_1$
|
|
6485
|
-
const _hoisted_2$
|
|
6568
|
+
const _hoisted_1$z = { class: "nut-pagination" };
|
|
6569
|
+
const _hoisted_2$s = {
|
|
6486
6570
|
key: 0,
|
|
6487
6571
|
class: "nut-pagination-contain"
|
|
6488
6572
|
};
|
|
6489
|
-
const _hoisted_3$
|
|
6573
|
+
const _hoisted_3$m = ["onClick"];
|
|
6490
6574
|
const _hoisted_4$g = {
|
|
6491
6575
|
key: 1,
|
|
6492
6576
|
class: "nut-pagination-contain"
|
|
6493
6577
|
};
|
|
6494
6578
|
const _hoisted_5$b = { class: "nut-pagination-simple" };
|
|
6495
|
-
function _sfc_render$
|
|
6496
|
-
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, [
|
|
6497
6581
|
createElementVNode("view", {
|
|
6498
6582
|
class: normalizeClass(["nut-pagination-prev", _ctx.mode == "multi" ? "" : "simple-border", _ctx.modelValue == 1 ? "disabled" : ""]),
|
|
6499
6583
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.select(_ctx.modelValue - 1, true))
|
|
@@ -6502,7 +6586,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6502
6586
|
createTextVNode(toDisplayString(_ctx.prevText), 1)
|
|
6503
6587
|
])
|
|
6504
6588
|
], 2),
|
|
6505
|
-
_ctx.mode == "multi" ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
6589
|
+
_ctx.mode == "multi" ? (openBlock(), createElementBlock("view", _hoisted_2$s, [
|
|
6506
6590
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.pages, (item, index) => {
|
|
6507
6591
|
return openBlock(), createElementBlock("view", {
|
|
6508
6592
|
key: index + "pagination",
|
|
@@ -6512,7 +6596,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6512
6596
|
renderSlot(_ctx.$slots, "page", { item }, () => [
|
|
6513
6597
|
createTextVNode(toDisplayString(item.text), 1)
|
|
6514
6598
|
])
|
|
6515
|
-
], 10, _hoisted_3$
|
|
6599
|
+
], 10, _hoisted_3$m);
|
|
6516
6600
|
}), 128))
|
|
6517
6601
|
])) : createCommentVNode("", true),
|
|
6518
6602
|
_ctx.mode == "simple" ? (openBlock(), createElementBlock("view", _hoisted_4$g, [
|
|
@@ -6528,8 +6612,8 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6528
6612
|
], 2)
|
|
6529
6613
|
]);
|
|
6530
6614
|
}
|
|
6531
|
-
var Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6532
|
-
const { create: create$
|
|
6615
|
+
var Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$G]]);
|
|
6616
|
+
const { create: create$K } = createComponent("tabs");
|
|
6533
6617
|
class Title {
|
|
6534
6618
|
constructor() {
|
|
6535
6619
|
__publicField(this, "title", "");
|
|
@@ -6538,7 +6622,7 @@ class Title {
|
|
|
6538
6622
|
__publicField(this, "disabled", false);
|
|
6539
6623
|
}
|
|
6540
6624
|
}
|
|
6541
|
-
const _sfc_main$
|
|
6625
|
+
const _sfc_main$K = create$K({
|
|
6542
6626
|
props: {
|
|
6543
6627
|
modelValue: {
|
|
6544
6628
|
type: [String, Number],
|
|
@@ -6667,8 +6751,8 @@ const _sfc_main$H = create$H({
|
|
|
6667
6751
|
}, methods);
|
|
6668
6752
|
}
|
|
6669
6753
|
});
|
|
6670
|
-
const _hoisted_1$
|
|
6671
|
-
function _sfc_render$
|
|
6754
|
+
const _hoisted_1$y = ["onClick"];
|
|
6755
|
+
function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6672
6756
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
6673
6757
|
return openBlock(), createElementBlock("view", {
|
|
6674
6758
|
class: normalizeClass(["nut-tabs", [_ctx.direction]])
|
|
@@ -6702,7 +6786,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6702
6786
|
createElementVNode("view", {
|
|
6703
6787
|
class: normalizeClass(["nut-tabs__titles-item__text", { ellipsis: _ctx.ellipsis && !_ctx.titleScroll && _ctx.direction == "horizontal" }])
|
|
6704
6788
|
}, toDisplayString(item.title), 3)
|
|
6705
|
-
], 14, _hoisted_1$
|
|
6789
|
+
], 14, _hoisted_1$y);
|
|
6706
6790
|
}), 128))
|
|
6707
6791
|
], 6),
|
|
6708
6792
|
createElementVNode("view", {
|
|
@@ -6713,9 +6797,9 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6713
6797
|
], 4)
|
|
6714
6798
|
], 2);
|
|
6715
6799
|
}
|
|
6716
|
-
var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6717
|
-
const { create: create$
|
|
6718
|
-
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({
|
|
6719
6803
|
props: {
|
|
6720
6804
|
title: {
|
|
6721
6805
|
type: [String, Number],
|
|
@@ -6736,16 +6820,16 @@ const _sfc_main$G = create$G({
|
|
|
6736
6820
|
return { activeKey: parent.activeKey };
|
|
6737
6821
|
}
|
|
6738
6822
|
});
|
|
6739
|
-
function _sfc_render$
|
|
6823
|
+
function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6740
6824
|
return openBlock(), createElementBlock("view", {
|
|
6741
6825
|
class: normalizeClass(["nut-tabpane", { active: _ctx.paneKey == _ctx.activeKey }])
|
|
6742
6826
|
}, [
|
|
6743
6827
|
renderSlot(_ctx.$slots, "default")
|
|
6744
6828
|
], 2);
|
|
6745
6829
|
}
|
|
6746
|
-
var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6747
|
-
const { componentName: componentName$
|
|
6748
|
-
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({
|
|
6749
6833
|
props: {
|
|
6750
6834
|
size: {
|
|
6751
6835
|
type: Number,
|
|
@@ -6773,17 +6857,17 @@ const _sfc_main$F = create$F({
|
|
|
6773
6857
|
setup(props) {
|
|
6774
6858
|
const { block, align } = toRefs(props);
|
|
6775
6859
|
const classes = computed(() => {
|
|
6776
|
-
const prefixCls = componentName$
|
|
6860
|
+
const prefixCls = componentName$x;
|
|
6777
6861
|
return {
|
|
6778
6862
|
[prefixCls]: true,
|
|
6779
6863
|
[`${prefixCls}--block`]: block.value,
|
|
6780
6864
|
[`${prefixCls}--align__${align.value}`]: block.value && align.value
|
|
6781
6865
|
};
|
|
6782
6866
|
});
|
|
6783
|
-
return { classes, componentName: componentName$
|
|
6867
|
+
return { classes, componentName: componentName$x };
|
|
6784
6868
|
}
|
|
6785
6869
|
});
|
|
6786
|
-
function _sfc_render$
|
|
6870
|
+
function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6787
6871
|
return openBlock(), createElementBlock("view", {
|
|
6788
6872
|
class: normalizeClass(_ctx.classes)
|
|
6789
6873
|
}, [
|
|
@@ -6800,7 +6884,7 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6800
6884
|
}), 128))
|
|
6801
6885
|
], 2);
|
|
6802
6886
|
}
|
|
6803
|
-
var Indicator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6887
|
+
var Indicator = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$D]]);
|
|
6804
6888
|
function flattenVNodes(children, childName) {
|
|
6805
6889
|
const result = [];
|
|
6806
6890
|
const traverse = (children2) => {
|
|
@@ -6859,7 +6943,7 @@ function useProvide(key, childName) {
|
|
|
6859
6943
|
};
|
|
6860
6944
|
};
|
|
6861
6945
|
}
|
|
6862
|
-
const { componentName: componentName$
|
|
6946
|
+
const { componentName: componentName$w } = createComponent("grid");
|
|
6863
6947
|
const GRID_KEY = Symbol("grid");
|
|
6864
6948
|
const gridProps = {
|
|
6865
6949
|
columnNum: {
|
|
@@ -6904,9 +6988,9 @@ const gridProps = {
|
|
|
6904
6988
|
const component$3 = {
|
|
6905
6989
|
props: gridProps,
|
|
6906
6990
|
setup(props, { slots }) {
|
|
6907
|
-
useProvide(GRID_KEY, `${componentName$
|
|
6991
|
+
useProvide(GRID_KEY, `${componentName$w}-item`)({ props });
|
|
6908
6992
|
const rootClass = computed(() => {
|
|
6909
|
-
const prefixCls = componentName$
|
|
6993
|
+
const prefixCls = componentName$w;
|
|
6910
6994
|
return {
|
|
6911
6995
|
[prefixCls]: true,
|
|
6912
6996
|
[`${prefixCls}--border`]: props.border && !props.gutter
|
|
@@ -6928,8 +7012,8 @@ const component$3 = {
|
|
|
6928
7012
|
};
|
|
6929
7013
|
}
|
|
6930
7014
|
};
|
|
6931
|
-
const { create: create$
|
|
6932
|
-
const _sfc_main$
|
|
7015
|
+
const { create: create$H } = createComponent("grid");
|
|
7016
|
+
const _sfc_main$H = create$H(component$3);
|
|
6933
7017
|
function useInject(key) {
|
|
6934
7018
|
const parent = inject(key, null);
|
|
6935
7019
|
if (parent) {
|
|
@@ -6943,130 +7027,323 @@ function useInject(key) {
|
|
|
6943
7027
|
index
|
|
6944
7028
|
};
|
|
6945
7029
|
}
|
|
6946
|
-
return {
|
|
6947
|
-
parent: null,
|
|
6948
|
-
index: ref(-1)
|
|
6949
|
-
};
|
|
7030
|
+
return {
|
|
7031
|
+
parent: null,
|
|
7032
|
+
index: ref(-1)
|
|
7033
|
+
};
|
|
7034
|
+
}
|
|
7035
|
+
const { create: create$G, componentName: componentName$v } = createComponent("grid-item");
|
|
7036
|
+
const _sfc_main$G = create$G({
|
|
7037
|
+
props: {
|
|
7038
|
+
text: {
|
|
7039
|
+
type: String
|
|
7040
|
+
},
|
|
7041
|
+
icon: {
|
|
7042
|
+
type: String
|
|
7043
|
+
},
|
|
7044
|
+
iconSize: {
|
|
7045
|
+
type: [Number, String]
|
|
7046
|
+
},
|
|
7047
|
+
iconColor: {
|
|
7048
|
+
type: String
|
|
7049
|
+
},
|
|
7050
|
+
to: {
|
|
7051
|
+
type: [String, Object]
|
|
7052
|
+
},
|
|
7053
|
+
url: {
|
|
7054
|
+
type: String,
|
|
7055
|
+
default: ""
|
|
7056
|
+
},
|
|
7057
|
+
replace: {
|
|
7058
|
+
type: Boolean,
|
|
7059
|
+
default: false
|
|
7060
|
+
}
|
|
7061
|
+
},
|
|
7062
|
+
emits: ["click"],
|
|
7063
|
+
setup(props, { emit }) {
|
|
7064
|
+
const Parent = useInject(GRID_KEY);
|
|
7065
|
+
if (!Parent.parent)
|
|
7066
|
+
return;
|
|
7067
|
+
const index = Parent.index;
|
|
7068
|
+
const parent = Parent.parent.props;
|
|
7069
|
+
const rootClass = computed(() => {
|
|
7070
|
+
const prefixCls = componentName$v;
|
|
7071
|
+
return {
|
|
7072
|
+
[prefixCls]: true
|
|
7073
|
+
};
|
|
7074
|
+
});
|
|
7075
|
+
const rootStyle = computed(() => {
|
|
7076
|
+
const style = {
|
|
7077
|
+
flexBasis: `${100 / +parent.columnNum}%`
|
|
7078
|
+
};
|
|
7079
|
+
if (parent.square) {
|
|
7080
|
+
style.paddingTop = `${100 / +parent.columnNum}%`;
|
|
7081
|
+
} else if (parent.gutter) {
|
|
7082
|
+
style.paddingRight = pxCheck(parent.gutter);
|
|
7083
|
+
if (index.value >= parent.columnNum) {
|
|
7084
|
+
style.marginTop = pxCheck(parent.gutter);
|
|
7085
|
+
}
|
|
7086
|
+
}
|
|
7087
|
+
return style;
|
|
7088
|
+
});
|
|
7089
|
+
const contentClass = computed(() => {
|
|
7090
|
+
const prefixCls = `${componentName$v}__content`;
|
|
7091
|
+
return {
|
|
7092
|
+
[`${prefixCls}`]: true,
|
|
7093
|
+
[`${prefixCls}--border`]: parent.border,
|
|
7094
|
+
[`${prefixCls}--surround`]: parent.border && parent.gutter,
|
|
7095
|
+
[`${prefixCls}--center`]: parent.center,
|
|
7096
|
+
[`${prefixCls}--square`]: parent.square,
|
|
7097
|
+
[`${prefixCls}--reverse`]: parent.reverse,
|
|
7098
|
+
[`${prefixCls}--${parent.direction}`]: !!parent.direction,
|
|
7099
|
+
[`${prefixCls}--clickable`]: parent.clickable || props.to || props.url
|
|
7100
|
+
};
|
|
7101
|
+
});
|
|
7102
|
+
const iconProps = computed(() => {
|
|
7103
|
+
return {
|
|
7104
|
+
name: props.icon,
|
|
7105
|
+
size: props.iconSize || parent.iconSize,
|
|
7106
|
+
color: props.iconColor || parent.iconColor
|
|
7107
|
+
};
|
|
7108
|
+
});
|
|
7109
|
+
const router = useRouter();
|
|
7110
|
+
const handleClick = (event) => {
|
|
7111
|
+
emit("click", event);
|
|
7112
|
+
if (props.to && router) {
|
|
7113
|
+
router[props.replace ? "replace" : "push"](props.to);
|
|
7114
|
+
} else if (props.url) {
|
|
7115
|
+
props.replace ? location.replace(props.url) : location.href = props.url;
|
|
7116
|
+
}
|
|
7117
|
+
};
|
|
7118
|
+
return {
|
|
7119
|
+
rootClass,
|
|
7120
|
+
rootStyle,
|
|
7121
|
+
contentClass,
|
|
7122
|
+
iconProps,
|
|
7123
|
+
handleClick
|
|
7124
|
+
};
|
|
7125
|
+
}
|
|
7126
|
+
});
|
|
7127
|
+
const _hoisted_1$x = {
|
|
7128
|
+
key: 3,
|
|
7129
|
+
class: "nut-grid-item__text"
|
|
7130
|
+
};
|
|
7131
|
+
function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7132
|
+
const _component_nut_icon = resolveComponent("nut-icon");
|
|
7133
|
+
return openBlock(), createElementBlock("view", {
|
|
7134
|
+
class: normalizeClass(_ctx.rootClass),
|
|
7135
|
+
style: normalizeStyle(_ctx.rootStyle),
|
|
7136
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
7137
|
+
}, [
|
|
7138
|
+
createElementVNode("view", {
|
|
7139
|
+
class: normalizeClass(_ctx.contentClass)
|
|
7140
|
+
}, [
|
|
7141
|
+
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
7142
|
+
_ctx.$slots.icon ? renderSlot(_ctx.$slots, "icon", { key: 0 }) : (openBlock(), createBlock(_component_nut_icon, {
|
|
7143
|
+
key: 1,
|
|
7144
|
+
name: _ctx.iconProps.name,
|
|
7145
|
+
size: _ctx.iconProps.size,
|
|
7146
|
+
color: _ctx.iconProps.color
|
|
7147
|
+
}, null, 8, ["name", "size", "color"])),
|
|
7148
|
+
_ctx.$slots.text ? renderSlot(_ctx.$slots, "text", { key: 2 }) : (openBlock(), createElementBlock("view", _hoisted_1$x, toDisplayString(_ctx.text), 1))
|
|
7149
|
+
], 64))
|
|
7150
|
+
], 2)
|
|
7151
|
+
], 6);
|
|
7152
|
+
}
|
|
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);
|
|
6950
7269
|
}
|
|
6951
|
-
|
|
7270
|
+
var SideNavBarItem = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$A]]);
|
|
7271
|
+
const { componentName: componentName$s, create: create$D } = createComponent("subsidenavbar");
|
|
6952
7272
|
const _sfc_main$D = create$D({
|
|
6953
7273
|
props: {
|
|
6954
|
-
|
|
6955
|
-
type: String
|
|
6956
|
-
},
|
|
6957
|
-
icon: {
|
|
6958
|
-
type: String
|
|
6959
|
-
},
|
|
6960
|
-
iconSize: {
|
|
6961
|
-
type: [Number, String]
|
|
6962
|
-
},
|
|
6963
|
-
iconColor: {
|
|
6964
|
-
type: String
|
|
6965
|
-
},
|
|
6966
|
-
to: {
|
|
6967
|
-
type: [String, Object]
|
|
6968
|
-
},
|
|
6969
|
-
url: {
|
|
7274
|
+
title: {
|
|
6970
7275
|
type: String,
|
|
6971
7276
|
default: ""
|
|
6972
7277
|
},
|
|
6973
|
-
|
|
7278
|
+
ikey: {
|
|
7279
|
+
type: [String, Number],
|
|
7280
|
+
default: ""
|
|
7281
|
+
},
|
|
7282
|
+
open: {
|
|
6974
7283
|
type: Boolean,
|
|
6975
|
-
default:
|
|
7284
|
+
default: true
|
|
6976
7285
|
}
|
|
6977
7286
|
},
|
|
6978
|
-
emits: ["click"],
|
|
6979
|
-
setup(props,
|
|
6980
|
-
const
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
const
|
|
6984
|
-
const parent = Parent.parent.props;
|
|
6985
|
-
const rootClass = computed(() => {
|
|
7287
|
+
emits: ["title-click"],
|
|
7288
|
+
setup: (props, context) => {
|
|
7289
|
+
const state = reactive({
|
|
7290
|
+
direction: ""
|
|
7291
|
+
});
|
|
7292
|
+
const classes = computed(() => {
|
|
6986
7293
|
const prefixCls = componentName$s;
|
|
6987
7294
|
return {
|
|
6988
7295
|
[prefixCls]: true
|
|
6989
7296
|
};
|
|
6990
7297
|
});
|
|
6991
|
-
const
|
|
6992
|
-
const style = {
|
|
6993
|
-
flexBasis: `${100 / +parent.columnNum}%`
|
|
6994
|
-
};
|
|
6995
|
-
if (parent.square) {
|
|
6996
|
-
style.paddingTop = `${100 / +parent.columnNum}%`;
|
|
6997
|
-
} else if (parent.gutter) {
|
|
6998
|
-
style.paddingRight = pxCheck(parent.gutter);
|
|
6999
|
-
if (index.value >= parent.columnNum) {
|
|
7000
|
-
style.marginTop = pxCheck(parent.gutter);
|
|
7001
|
-
}
|
|
7002
|
-
}
|
|
7003
|
-
return style;
|
|
7004
|
-
});
|
|
7005
|
-
const contentClass = computed(() => {
|
|
7006
|
-
const prefixCls = `${componentName$s}__content`;
|
|
7007
|
-
return {
|
|
7008
|
-
[`${prefixCls}`]: true,
|
|
7009
|
-
[`${prefixCls}--border`]: parent.border,
|
|
7010
|
-
[`${prefixCls}--surround`]: parent.border && parent.gutter,
|
|
7011
|
-
[`${prefixCls}--center`]: parent.center,
|
|
7012
|
-
[`${prefixCls}--square`]: parent.square,
|
|
7013
|
-
[`${prefixCls}--reverse`]: parent.reverse,
|
|
7014
|
-
[`${prefixCls}--${parent.direction}`]: !!parent.direction,
|
|
7015
|
-
[`${prefixCls}--clickable`]: parent.clickable || props.to || props.url
|
|
7016
|
-
};
|
|
7017
|
-
});
|
|
7018
|
-
const iconProps = computed(() => {
|
|
7298
|
+
const style = computed(() => {
|
|
7019
7299
|
return {
|
|
7020
|
-
|
|
7021
|
-
size: props.iconSize || parent.iconSize,
|
|
7022
|
-
color: props.iconColor || parent.iconColor
|
|
7300
|
+
height: !state.direction ? "auto" : "0px"
|
|
7023
7301
|
};
|
|
7024
7302
|
});
|
|
7025
|
-
const
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
if (props.to && router) {
|
|
7029
|
-
router[props.replace ? "replace" : "push"](props.to);
|
|
7030
|
-
} else if (props.url) {
|
|
7031
|
-
props.replace ? location.replace(props.url) : location.href = props.url;
|
|
7032
|
-
}
|
|
7303
|
+
const handleClick = () => {
|
|
7304
|
+
context.emit("title-click");
|
|
7305
|
+
state.direction = !state.direction ? "up" : "";
|
|
7033
7306
|
};
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7307
|
+
onMounted(() => {
|
|
7308
|
+
state.direction = props.open ? "" : "up";
|
|
7309
|
+
});
|
|
7310
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
7311
|
+
classes,
|
|
7312
|
+
style,
|
|
7039
7313
|
handleClick
|
|
7040
|
-
};
|
|
7314
|
+
});
|
|
7041
7315
|
}
|
|
7042
7316
|
});
|
|
7043
|
-
const _hoisted_1$
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
};
|
|
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" };
|
|
7047
7320
|
function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7048
7321
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
7049
7322
|
return openBlock(), createElementBlock("view", {
|
|
7050
|
-
class: normalizeClass(_ctx.
|
|
7051
|
-
|
|
7052
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
7323
|
+
class: normalizeClass(_ctx.classes),
|
|
7324
|
+
ikey: _ctx.ikey
|
|
7053
7325
|
}, [
|
|
7054
7326
|
createElementVNode("view", {
|
|
7055
|
-
class:
|
|
7327
|
+
class: "nut-subsidenavbar__title",
|
|
7328
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
7056
7329
|
}, [
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
name:
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
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);
|
|
7068
7345
|
}
|
|
7069
|
-
var
|
|
7346
|
+
var SubSideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$z]]);
|
|
7070
7347
|
const Utils = {
|
|
7071
7348
|
isLeapYear: function(y) {
|
|
7072
7349
|
return y % 4 == 0 && y % 100 != 0 || y % 400 == 0;
|
|
@@ -7535,9 +7812,9 @@ const _sfc_main$C = create$C({
|
|
|
7535
7812
|
}, toRefs(state)), toRefs(props));
|
|
7536
7813
|
}
|
|
7537
7814
|
});
|
|
7538
|
-
const _hoisted_1$
|
|
7539
|
-
const _hoisted_2$
|
|
7540
|
-
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 = {
|
|
7541
7818
|
class: "calendar-weeks",
|
|
7542
7819
|
ref: "weeksPanel"
|
|
7543
7820
|
};
|
|
@@ -7577,10 +7854,10 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7577
7854
|
class: normalizeClass(["nut-calendar-header", { "nut-calendar-header-tile": !_ctx.poppable }])
|
|
7578
7855
|
}, [
|
|
7579
7856
|
_ctx.poppable ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
7580
|
-
createElementVNode("view", _hoisted_1$
|
|
7581
|
-
createElementVNode("view", _hoisted_2$
|
|
7857
|
+
createElementVNode("view", _hoisted_1$t, toDisplayString(_ctx.title), 1),
|
|
7858
|
+
createElementVNode("view", _hoisted_2$o, toDisplayString(_ctx.yearMonthTitle), 1)
|
|
7582
7859
|
], 64)) : createCommentVNode("", true),
|
|
7583
|
-
createElementVNode("view", _hoisted_3$
|
|
7860
|
+
createElementVNode("view", _hoisted_3$k, [
|
|
7584
7861
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item, index) => {
|
|
7585
7862
|
return openBlock(), createElementBlock("view", {
|
|
7586
7863
|
class: "calendar-week-item",
|
|
@@ -7744,7 +8021,7 @@ var Calendar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$
|
|
|
7744
8021
|
const { create: create$A, componentName: componentName$r } = createComponent("checkbox");
|
|
7745
8022
|
const _sfc_main$A = create$A({
|
|
7746
8023
|
components: {
|
|
7747
|
-
nutIcon: _sfc_main$
|
|
8024
|
+
nutIcon: _sfc_main$1o
|
|
7748
8025
|
},
|
|
7749
8026
|
props: {
|
|
7750
8027
|
modelValue: {
|
|
@@ -7800,7 +8077,7 @@ const _sfc_main$A = create$A({
|
|
|
7800
8077
|
};
|
|
7801
8078
|
const renderIcon = () => {
|
|
7802
8079
|
const { iconName, iconSize, iconActiveName } = props;
|
|
7803
|
-
return h(_sfc_main$
|
|
8080
|
+
return h(_sfc_main$1o, {
|
|
7804
8081
|
name: !pValue.value ? iconName : iconActiveName,
|
|
7805
8082
|
size: iconSize,
|
|
7806
8083
|
class: color.value
|
|
@@ -7904,10 +8181,6 @@ const commonProps = {
|
|
|
7904
8181
|
type: Boolean,
|
|
7905
8182
|
default: false
|
|
7906
8183
|
},
|
|
7907
|
-
visibleItemCount: {
|
|
7908
|
-
type: [Number, String],
|
|
7909
|
-
default: 7
|
|
7910
|
-
},
|
|
7911
8184
|
defaultIndex: {
|
|
7912
8185
|
type: [Number, String],
|
|
7913
8186
|
default: 0
|
|
@@ -7917,206 +8190,208 @@ const commonProps = {
|
|
|
7917
8190
|
default: 35
|
|
7918
8191
|
}
|
|
7919
8192
|
};
|
|
7920
|
-
const MOMENTUM_LIMIT_DISTANCE = 15;
|
|
7921
|
-
const MOMENTUM_LIMIT_TIME = 300;
|
|
7922
|
-
const DEFAULT_DURATION = 200;
|
|
7923
8193
|
const { create: create$y } = createComponent("picker-column");
|
|
7924
|
-
function range(num, min, max) {
|
|
7925
|
-
return Math.min(Math.max(num, min), max);
|
|
7926
|
-
}
|
|
7927
|
-
function stopPropagation(event) {
|
|
7928
|
-
event.stopPropagation();
|
|
7929
|
-
}
|
|
7930
|
-
function preventDefault(event, isStopPropagation) {
|
|
7931
|
-
if (typeof event.cancelable !== "boolean" || event.cancelable) {
|
|
7932
|
-
event.preventDefault();
|
|
7933
|
-
}
|
|
7934
|
-
if (isStopPropagation) {
|
|
7935
|
-
stopPropagation(event);
|
|
7936
|
-
}
|
|
7937
|
-
}
|
|
7938
|
-
function getElementTranslateY(element) {
|
|
7939
|
-
const style = window.getComputedStyle(element);
|
|
7940
|
-
const transform = style.transform || style.webkitTransform;
|
|
7941
|
-
const translateY = transform.slice(7, transform.length - 1).split(", ")[5];
|
|
7942
|
-
return Number(translateY);
|
|
7943
|
-
}
|
|
7944
|
-
function isObject$1(val) {
|
|
7945
|
-
return val !== null && typeof val === "object";
|
|
7946
|
-
}
|
|
7947
|
-
function isOptionDisabled(option) {
|
|
7948
|
-
return isObject$1(option) && option.disabled;
|
|
7949
|
-
}
|
|
7950
8194
|
const _sfc_main$y = create$y({
|
|
7951
8195
|
props: __spreadValues({
|
|
7952
|
-
dataType: String
|
|
8196
|
+
dataType: String,
|
|
8197
|
+
itemShow: {
|
|
8198
|
+
type: Boolean,
|
|
8199
|
+
default: false
|
|
8200
|
+
}
|
|
7953
8201
|
}, commonProps),
|
|
7954
8202
|
emits: ["click", "change"],
|
|
7955
8203
|
setup(props, { emit }) {
|
|
7956
8204
|
const wrapper = ref();
|
|
7957
8205
|
const state = reactive({
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
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
|
|
7967
8219
|
});
|
|
7968
|
-
const
|
|
7969
|
-
const
|
|
7970
|
-
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
|
|
7974
|
-
const
|
|
7975
|
-
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;
|
|
7976
8244
|
};
|
|
7977
|
-
const
|
|
7978
|
-
|
|
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);
|
|
7979
8252
|
};
|
|
7980
|
-
const
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
if (!isOptionDisabled(state.options[i]))
|
|
7992
|
-
return i;
|
|
7993
|
-
}
|
|
7994
|
-
for (let i = index - 1; i >= 0; i--) {
|
|
7995
|
-
if (!isOptionDisabled(state.options[i]))
|
|
7996
|
-
return i;
|
|
7997
|
-
}
|
|
7998
|
-
};
|
|
7999
|
-
const setIndex = (index, emitChange = false) => {
|
|
8000
|
-
index = adjustIndex(index) || 0;
|
|
8001
|
-
const offset = -index * +props.itemHeight;
|
|
8002
|
-
const trigger = () => {
|
|
8003
|
-
if (index !== state.index) {
|
|
8004
|
-
state.index = index;
|
|
8005
|
-
if (emitChange) {
|
|
8006
|
-
emit("change", index);
|
|
8007
|
-
}
|
|
8008
|
-
}
|
|
8009
|
-
};
|
|
8010
|
-
if (state.moving && offset !== state.offset) {
|
|
8011
|
-
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);
|
|
8012
8264
|
} else {
|
|
8013
|
-
|
|
8265
|
+
setMove(move, "end");
|
|
8014
8266
|
}
|
|
8015
|
-
state.offset = offset;
|
|
8016
8267
|
};
|
|
8017
|
-
const
|
|
8018
|
-
|
|
8019
|
-
distance = state.offset + speed / 0.03 * (distance < 0 ? -1 : 1);
|
|
8020
|
-
const index = getIndexByOffset(distance);
|
|
8021
|
-
setIndex(index, true);
|
|
8268
|
+
const setRollerStyle = (index) => {
|
|
8269
|
+
return `transform: rotate3d(1, 0, 0, ${-state.rotation * index}deg) translate3d(0px, 0px, 104px)`;
|
|
8022
8270
|
};
|
|
8023
|
-
const
|
|
8024
|
-
if (
|
|
8025
|
-
return;
|
|
8026
|
-
}
|
|
8027
|
-
touch.start(event);
|
|
8028
|
-
if (state.moving) {
|
|
8029
|
-
const translateY = getElementTranslateY(wrapper.value);
|
|
8030
|
-
state.offset = Math.min(0, translateY - baseOffset());
|
|
8031
|
-
state.startOffset = state.offset;
|
|
8271
|
+
const isHidden = (index) => {
|
|
8272
|
+
if (index >= state.currIndex + 8 || index <= state.currIndex - 8) {
|
|
8273
|
+
return true;
|
|
8032
8274
|
} else {
|
|
8033
|
-
|
|
8275
|
+
return false;
|
|
8034
8276
|
}
|
|
8035
|
-
state.duration = 0;
|
|
8036
|
-
state.touchStartTime = Date.now();
|
|
8037
|
-
state.momentumOffset = state.startOffset;
|
|
8038
|
-
state.transitionEndTrigger = null;
|
|
8039
8277
|
};
|
|
8040
|
-
const
|
|
8041
|
-
if (
|
|
8042
|
-
|
|
8043
|
-
}
|
|
8044
|
-
state.moving = true;
|
|
8045
|
-
touch.move(event);
|
|
8046
|
-
if (touch.isVertical()) {
|
|
8047
|
-
state.moving = true;
|
|
8048
|
-
preventDefault(event, true);
|
|
8049
|
-
}
|
|
8050
|
-
const moveOffset = state.startOffset + touch.deltaY.value;
|
|
8051
|
-
if (moveOffset > props.itemHeight) {
|
|
8052
|
-
state.offset = props.itemHeight;
|
|
8278
|
+
const setTransform = (translateY = 0, type, time = 1e3, deg) => {
|
|
8279
|
+
if (type === "end") {
|
|
8280
|
+
touchTime.value = time;
|
|
8053
8281
|
} else {
|
|
8054
|
-
|
|
8055
|
-
}
|
|
8056
|
-
const now = Date.now();
|
|
8057
|
-
if (now - state.touchStartTime > MOMENTUM_LIMIT_TIME) {
|
|
8058
|
-
state.touchStartTime = now;
|
|
8059
|
-
state.momentumOffset = state.offset;
|
|
8282
|
+
touchTime.value = 0;
|
|
8060
8283
|
}
|
|
8284
|
+
touchDeg.value = deg;
|
|
8285
|
+
touchTranslateY.value = translateY;
|
|
8286
|
+
state.scrollDistance = translateY;
|
|
8061
8287
|
};
|
|
8062
|
-
const
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
-
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
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;
|
|
8072
8314
|
}
|
|
8073
8315
|
};
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
}
|
|
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
|
+
};
|
|
8077
8326
|
watch(() => props.listData, (val) => {
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8327
|
+
state.transformY = 0;
|
|
8328
|
+
modifyStatus(false);
|
|
8329
|
+
}, {
|
|
8330
|
+
deep: true
|
|
8081
8331
|
});
|
|
8082
8332
|
watch(() => props.defaultIndex, (val) => {
|
|
8083
|
-
|
|
8333
|
+
state.transformY = 0;
|
|
8334
|
+
modifyStatus(false);
|
|
8084
8335
|
});
|
|
8085
|
-
|
|
8336
|
+
onMounted(() => {
|
|
8337
|
+
modifyStatus(true);
|
|
8338
|
+
});
|
|
8339
|
+
return __spreadProps(__spreadValues(__spreadValues({}, toRefs(state)), toRefs(props)), {
|
|
8086
8340
|
wrapper,
|
|
8341
|
+
setRollerStyle,
|
|
8342
|
+
isHidden,
|
|
8343
|
+
roller,
|
|
8344
|
+
list,
|
|
8345
|
+
listItem,
|
|
8087
8346
|
onTouchStart,
|
|
8088
8347
|
onTouchMove,
|
|
8089
8348
|
onTouchEnd,
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
columns: state.options,
|
|
8093
|
-
height: Number(props.visibleItemCount) * +props.itemHeight
|
|
8349
|
+
touchRollerStyle,
|
|
8350
|
+
touchListStyle
|
|
8094
8351
|
});
|
|
8095
8352
|
}
|
|
8096
8353
|
});
|
|
8354
|
+
const _hoisted_1$s = { class: "nut-picker-content" };
|
|
8355
|
+
const _hoisted_2$n = {
|
|
8356
|
+
key: 0,
|
|
8357
|
+
class: "nut-picker-placeholder"
|
|
8358
|
+
};
|
|
8097
8359
|
function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8098
8360
|
return openBlock(), createElementBlock("view", {
|
|
8099
|
-
class: "nut-
|
|
8100
|
-
style: normalizeStyle({ height: _ctx.height + "px" }),
|
|
8361
|
+
class: "nut-picker__list",
|
|
8101
8362
|
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
8102
8363
|
onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
|
|
8103
|
-
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
8104
|
-
onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
|
|
8105
|
-
onTransitionend: _cache[4] || (_cache[4] = (...args) => _ctx.stopMomentum && _ctx.stopMomentum(...args))
|
|
8364
|
+
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
8106
8365
|
}, [
|
|
8107
8366
|
createElementVNode("view", {
|
|
8108
|
-
class: "nut-
|
|
8109
|
-
ref: "
|
|
8110
|
-
style: normalizeStyle(_ctx.
|
|
8367
|
+
class: "nut-picker-roller",
|
|
8368
|
+
ref: "roller",
|
|
8369
|
+
style: normalizeStyle(_ctx.touchRollerStyle)
|
|
8111
8370
|
}, [
|
|
8112
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.
|
|
8371
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.listData.values, (item, index) => {
|
|
8113
8372
|
return openBlock(), createElementBlock("view", {
|
|
8114
|
-
class: "nut-
|
|
8115
|
-
|
|
8116
|
-
|
|
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);
|
|
8117
8377
|
}), 128))
|
|
8118
|
-
], 4)
|
|
8119
|
-
|
|
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);
|
|
8120
8395
|
}
|
|
8121
8396
|
var column = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$w]]);
|
|
8122
8397
|
const { create: create$x, componentName: componentName$p } = createComponent("picker");
|
|
@@ -8156,12 +8431,6 @@ const _sfc_main$x = create$x({
|
|
|
8156
8431
|
[prefixCls]: true
|
|
8157
8432
|
};
|
|
8158
8433
|
});
|
|
8159
|
-
const top = computed(() => {
|
|
8160
|
-
return Number(+props.visibleItemCount - 1) / 2 * +props.itemHeight;
|
|
8161
|
-
});
|
|
8162
|
-
const height = computed(() => {
|
|
8163
|
-
return Number(props.visibleItemCount) * +props.itemHeight;
|
|
8164
|
-
});
|
|
8165
8434
|
const dataType = computed(() => {
|
|
8166
8435
|
const firstColumn = state.formattedColumns[0];
|
|
8167
8436
|
if (typeof firstColumn === "object") {
|
|
@@ -8176,9 +8445,7 @@ const _sfc_main$x = create$x({
|
|
|
8176
8445
|
});
|
|
8177
8446
|
const columnList = computed(() => {
|
|
8178
8447
|
if (dataType.value === "text") {
|
|
8179
|
-
return [
|
|
8180
|
-
{ values: state.formattedColumns, defaultIndex: state.defaultIndex }
|
|
8181
|
-
];
|
|
8448
|
+
return [{ values: state.formattedColumns, defaultIndex: state.defaultIndex }];
|
|
8182
8449
|
} else if (dataType.value === "multipleColumns") {
|
|
8183
8450
|
return state.formattedColumns;
|
|
8184
8451
|
} else if (dataType.value === "cascade") {
|
|
@@ -8243,7 +8510,7 @@ const _sfc_main$x = create$x({
|
|
|
8243
8510
|
} else if (dataType.value === "multipleColumns") {
|
|
8244
8511
|
defaultIndexList[columnIndex] = dataIndex;
|
|
8245
8512
|
const val = defaultIndexList.map((res, i) => toRaw(state.formattedColumns)[i].values[res]);
|
|
8246
|
-
emit("change", val);
|
|
8513
|
+
emit("change", val, columnIndex, dataIndex);
|
|
8247
8514
|
}
|
|
8248
8515
|
};
|
|
8249
8516
|
const confirm = () => {
|
|
@@ -8273,8 +8540,6 @@ const _sfc_main$x = create$x({
|
|
|
8273
8540
|
column,
|
|
8274
8541
|
dataType,
|
|
8275
8542
|
columnList,
|
|
8276
|
-
top,
|
|
8277
|
-
height,
|
|
8278
8543
|
close,
|
|
8279
8544
|
changeHandler,
|
|
8280
8545
|
confirm
|
|
@@ -8283,6 +8548,7 @@ const _sfc_main$x = create$x({
|
|
|
8283
8548
|
});
|
|
8284
8549
|
const _hoisted_1$r = { class: "nut-picker__bar" };
|
|
8285
8550
|
const _hoisted_2$m = { class: "nut-picker__column" };
|
|
8551
|
+
const _hoisted_3$j = /* @__PURE__ */ createElementVNode("view", { class: "nut-picker__hairline" }, null, -1);
|
|
8286
8552
|
function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8287
8553
|
const _component_nut_picker_column = resolveComponent("nut-picker-column");
|
|
8288
8554
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
@@ -8291,13 +8557,13 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8291
8557
|
}, [
|
|
8292
8558
|
createVNode(_component_nut_popup, {
|
|
8293
8559
|
position: "bottom",
|
|
8294
|
-
style: normalizeStyle({ height: _ctx.height + 56 + "px" }),
|
|
8295
8560
|
visible: _ctx.show,
|
|
8296
8561
|
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.show = $event),
|
|
8297
8562
|
teleport: _ctx.teleport,
|
|
8298
8563
|
"lock-scroll": _ctx.lockScroll,
|
|
8299
8564
|
"close-on-click-overlay": _ctx.closeOnClickOverlay,
|
|
8300
|
-
onClose: _ctx.close
|
|
8565
|
+
onClose: _ctx.close,
|
|
8566
|
+
round: true
|
|
8301
8567
|
}, {
|
|
8302
8568
|
default: withCtx(() => [
|
|
8303
8569
|
createElementVNode("view", _hoisted_1$r, [
|
|
@@ -8312,36 +8578,29 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8312
8578
|
}, toDisplayString(_ctx.okText), 1)
|
|
8313
8579
|
]),
|
|
8314
8580
|
createElementVNode("view", _hoisted_2$m, [
|
|
8315
|
-
|
|
8316
|
-
class: "nut-picker__mask",
|
|
8317
|
-
style: normalizeStyle({ backgroundSize: `100% ${_ctx.top}px` })
|
|
8318
|
-
}, null, 4),
|
|
8319
|
-
createElementVNode("view", {
|
|
8320
|
-
class: "nut-picker__hairline",
|
|
8321
|
-
style: normalizeStyle({ top: ` ${_ctx.top}px` })
|
|
8322
|
-
}, null, 4),
|
|
8581
|
+
_hoisted_3$j,
|
|
8323
8582
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columnList, (item, columnIndex) => {
|
|
8324
8583
|
return openBlock(), createElementBlock("view", {
|
|
8325
8584
|
class: "nut-picker__columnitem",
|
|
8326
8585
|
key: columnIndex
|
|
8327
8586
|
}, [
|
|
8328
8587
|
createVNode(_component_nut_picker_column, {
|
|
8329
|
-
|
|
8588
|
+
itemShow: _ctx.show,
|
|
8589
|
+
"list-data": item,
|
|
8330
8590
|
readonly: _ctx.readonly,
|
|
8331
8591
|
"default-index": item.defaultIndex,
|
|
8332
8592
|
"visible-item-count": _ctx.visibleItemCount,
|
|
8333
|
-
"item-height": _ctx.itemHeight,
|
|
8334
8593
|
"data-type": _ctx.dataType,
|
|
8335
8594
|
onChange: (dataIndex) => {
|
|
8336
8595
|
_ctx.changeHandler(columnIndex, dataIndex);
|
|
8337
8596
|
}
|
|
8338
|
-
}, 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"])
|
|
8339
8598
|
]);
|
|
8340
8599
|
}), 128))
|
|
8341
8600
|
])
|
|
8342
8601
|
]),
|
|
8343
8602
|
_: 1
|
|
8344
|
-
}, 8, ["
|
|
8603
|
+
}, 8, ["visible", "teleport", "lock-scroll", "close-on-click-overlay", "onClose"])
|
|
8345
8604
|
], 2);
|
|
8346
8605
|
}
|
|
8347
8606
|
var Picker = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$v]]);
|
|
@@ -8514,8 +8773,6 @@ const _sfc_main$w = create$w({
|
|
|
8514
8773
|
}
|
|
8515
8774
|
};
|
|
8516
8775
|
const generateValue = (min, max, val, type) => {
|
|
8517
|
-
if (!(max > min))
|
|
8518
|
-
return;
|
|
8519
8776
|
const arr = [];
|
|
8520
8777
|
let index = 0;
|
|
8521
8778
|
while (min <= max) {
|
|
@@ -8552,6 +8809,7 @@ const _sfc_main$w = create$w({
|
|
|
8552
8809
|
return 0;
|
|
8553
8810
|
};
|
|
8554
8811
|
const columns = computed(() => {
|
|
8812
|
+
console.log(ranges.value);
|
|
8555
8813
|
const val = ranges.value.map((res) => {
|
|
8556
8814
|
return generateValue(res.range[0], res.range[1], getDateIndex(res.type), res.type);
|
|
8557
8815
|
});
|
|
@@ -8651,8 +8909,8 @@ const _sfc_main$v = create$v({
|
|
|
8651
8909
|
};
|
|
8652
8910
|
const emitChange = (value, event) => {
|
|
8653
8911
|
let output_value = fixedDecimalPlaces(value);
|
|
8654
|
-
emit("change", output_value, event);
|
|
8655
8912
|
emit("update:modelValue", output_value, event);
|
|
8913
|
+
emit("change", output_value, event);
|
|
8656
8914
|
};
|
|
8657
8915
|
const addAllow = (value = Number(props.modelValue)) => {
|
|
8658
8916
|
return value < Number(props.max) && !props.disabled;
|
|
@@ -8813,6 +9071,10 @@ const _sfc_main$u = create$u({
|
|
|
8813
9071
|
clearable: {
|
|
8814
9072
|
type: Boolean,
|
|
8815
9073
|
default: true
|
|
9074
|
+
},
|
|
9075
|
+
hasBorder: {
|
|
9076
|
+
type: Boolean,
|
|
9077
|
+
default: true
|
|
8816
9078
|
}
|
|
8817
9079
|
},
|
|
8818
9080
|
emits: ["change", "update:modelValue", "blur", "focus", "clear"],
|
|
@@ -8823,7 +9085,8 @@ const _sfc_main$u = create$u({
|
|
|
8823
9085
|
return {
|
|
8824
9086
|
[prefixCls]: true,
|
|
8825
9087
|
[`${prefixCls}-disabled`]: props.disabled,
|
|
8826
|
-
[`${prefixCls}-require`]: props.requireShow
|
|
9088
|
+
[`${prefixCls}-require`]: props.requireShow,
|
|
9089
|
+
[`${prefixCls}-border`]: props.hasBorder
|
|
8827
9090
|
};
|
|
8828
9091
|
});
|
|
8829
9092
|
const styles = computed(() => {
|
|
@@ -8855,7 +9118,7 @@ const _sfc_main$u = create$u({
|
|
|
8855
9118
|
const valueBlur = (event) => {
|
|
8856
9119
|
setTimeout(() => {
|
|
8857
9120
|
active.value = false;
|
|
8858
|
-
},
|
|
9121
|
+
}, 200);
|
|
8859
9122
|
const input = event.target;
|
|
8860
9123
|
let value = input.value;
|
|
8861
9124
|
if (props.maxLength && value.length > Number(props.maxLength)) {
|
|
@@ -8879,20 +9142,20 @@ const _sfc_main$u = create$u({
|
|
|
8879
9142
|
};
|
|
8880
9143
|
}
|
|
8881
9144
|
});
|
|
8882
|
-
const _hoisted_1$p = {
|
|
8883
|
-
const _hoisted_2$l = {
|
|
9145
|
+
const _hoisted_1$p = {
|
|
8884
9146
|
key: 0,
|
|
8885
|
-
class: "label
|
|
9147
|
+
class: "nut-input-label"
|
|
8886
9148
|
};
|
|
9149
|
+
const _hoisted_2$l = { class: "label-string" };
|
|
8887
9150
|
const _hoisted_3$i = ["type", "maxlength", "placeholder", "disabled", "readonly", "value"];
|
|
8888
9151
|
function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8889
9152
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
8890
9153
|
return openBlock(), createElementBlock("view", {
|
|
8891
9154
|
class: normalizeClass(_ctx.classes)
|
|
8892
9155
|
}, [
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
]),
|
|
9156
|
+
_ctx.label ? (openBlock(), createElementBlock("view", _hoisted_1$p, [
|
|
9157
|
+
createElementVNode("view", _hoisted_2$l, toDisplayString(_ctx.label), 1)
|
|
9158
|
+
])) : createCommentVNode("", true),
|
|
8896
9159
|
createElementVNode("input", {
|
|
8897
9160
|
class: "input-text",
|
|
8898
9161
|
style: normalizeStyle(_ctx.styles),
|
|
@@ -8907,7 +9170,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8907
9170
|
onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
|
|
8908
9171
|
}, null, 44, _hoisted_3$i),
|
|
8909
9172
|
_ctx.clearable && !_ctx.readonly ? withDirectives((openBlock(), createElementBlock("view", {
|
|
8910
|
-
key:
|
|
9173
|
+
key: 1,
|
|
8911
9174
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClear && _ctx.handleClear(...args)),
|
|
8912
9175
|
class: "nut-textinput-clear"
|
|
8913
9176
|
}, [
|
|
@@ -8962,7 +9225,7 @@ const _sfc_main$t = create$t({
|
|
|
8962
9225
|
});
|
|
8963
9226
|
const renderIcon = () => {
|
|
8964
9227
|
const { iconName, iconSize, iconActiveName } = props;
|
|
8965
|
-
return h(_sfc_main$
|
|
9228
|
+
return h(_sfc_main$1o, {
|
|
8966
9229
|
name: isCurValue.value ? iconActiveName : iconName,
|
|
8967
9230
|
size: iconSize,
|
|
8968
9231
|
class: color.value
|
|
@@ -9206,7 +9469,7 @@ const _sfc_main$q = create$q({
|
|
|
9206
9469
|
setup(props, { emit }) {
|
|
9207
9470
|
const realInput = ref(props.modelValue);
|
|
9208
9471
|
const realpwd = ref();
|
|
9209
|
-
const comLen = computed(() =>
|
|
9472
|
+
const comLen = computed(() => range(Number(props.length)));
|
|
9210
9473
|
const show = ref(props.visible);
|
|
9211
9474
|
function sureClick() {
|
|
9212
9475
|
emit("ok", realInput.value);
|
|
@@ -9242,7 +9505,7 @@ const _sfc_main$q = create$q({
|
|
|
9242
9505
|
emit("update:visible", false);
|
|
9243
9506
|
emit("close");
|
|
9244
9507
|
}
|
|
9245
|
-
function
|
|
9508
|
+
function range(val) {
|
|
9246
9509
|
return Math.min(Math.max(4, val), 6);
|
|
9247
9510
|
}
|
|
9248
9511
|
function onTips() {
|
|
@@ -9270,7 +9533,7 @@ const _sfc_main$q = create$q({
|
|
|
9270
9533
|
realInput,
|
|
9271
9534
|
realpwd,
|
|
9272
9535
|
focus,
|
|
9273
|
-
range
|
|
9536
|
+
range,
|
|
9274
9537
|
changeValue,
|
|
9275
9538
|
close,
|
|
9276
9539
|
onTips,
|
|
@@ -9412,6 +9675,10 @@ const _sfc_main$p = create$p({
|
|
|
9412
9675
|
autosize: {
|
|
9413
9676
|
type: Boolean,
|
|
9414
9677
|
default: false
|
|
9678
|
+
},
|
|
9679
|
+
autofocus: {
|
|
9680
|
+
type: Boolean,
|
|
9681
|
+
default: false
|
|
9415
9682
|
}
|
|
9416
9683
|
},
|
|
9417
9684
|
emits: ["update:modelValue", "change", "blur", "focus"],
|
|
@@ -9433,8 +9700,8 @@ const _sfc_main$p = create$p({
|
|
|
9433
9700
|
if (props.maxLength && value.length > Number(props.maxLength)) {
|
|
9434
9701
|
value = value.substring(0, Number(props.maxLength));
|
|
9435
9702
|
}
|
|
9436
|
-
emit("change", value, event);
|
|
9437
9703
|
emit("update:modelValue", value, event);
|
|
9704
|
+
emit("change", value, event);
|
|
9438
9705
|
};
|
|
9439
9706
|
const change = (event) => {
|
|
9440
9707
|
const input = event.target;
|
|
@@ -9466,7 +9733,7 @@ const _sfc_main$p = create$p({
|
|
|
9466
9733
|
};
|
|
9467
9734
|
}
|
|
9468
9735
|
});
|
|
9469
|
-
const _hoisted_1$m = ["rows", "disabled", "readonly", "value", "maxlength", "placeholder"];
|
|
9736
|
+
const _hoisted_1$m = ["rows", "disabled", "readonly", "value", "maxlength", "placeholder", "autofocus"];
|
|
9470
9737
|
const _hoisted_2$j = {
|
|
9471
9738
|
key: 0,
|
|
9472
9739
|
class: "nut-textarea__limit"
|
|
@@ -9486,7 +9753,8 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9486
9753
|
onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
|
|
9487
9754
|
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
|
|
9488
9755
|
maxlength: _ctx.maxLength,
|
|
9489
|
-
placeholder: _ctx.placeholder
|
|
9756
|
+
placeholder: _ctx.placeholder,
|
|
9757
|
+
autofocus: _ctx.autofocus
|
|
9490
9758
|
}, null, 44, _hoisted_1$m),
|
|
9491
9759
|
_ctx.limitShow ? (openBlock(), createElementBlock("view", _hoisted_2$j, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0) + "/" + toDisplayString(_ctx.maxLength), 1)) : createCommentVNode("", true)
|
|
9492
9760
|
], 2);
|
|
@@ -9753,8 +10021,9 @@ const _sfc_main$o = create$o({
|
|
|
9753
10021
|
if (oversizes.length) {
|
|
9754
10022
|
emit("oversize", oversizes);
|
|
9755
10023
|
}
|
|
9756
|
-
|
|
9757
|
-
|
|
10024
|
+
let currentFileLength = files.length + fileList.length;
|
|
10025
|
+
if (currentFileLength > maximum) {
|
|
10026
|
+
files.splice(files.length - (currentFileLength - maximum));
|
|
9758
10027
|
}
|
|
9759
10028
|
return files;
|
|
9760
10029
|
};
|
|
@@ -9764,7 +10033,8 @@ const _sfc_main$o = create$o({
|
|
|
9764
10033
|
fileList.splice(index, 1);
|
|
9765
10034
|
emit("delete", {
|
|
9766
10035
|
file,
|
|
9767
|
-
fileList
|
|
10036
|
+
fileList,
|
|
10037
|
+
index
|
|
9768
10038
|
});
|
|
9769
10039
|
} else {
|
|
9770
10040
|
console.log("\u7528\u6237\u963B\u6B62\u4E86\u5220\u9664\uFF01");
|
|
@@ -11323,16 +11593,16 @@ const component$2 = {
|
|
|
11323
11593
|
setup(props, { emit, slots }) {
|
|
11324
11594
|
const formErrorTip = computed(() => reactive({}));
|
|
11325
11595
|
provide("formErrorTip", formErrorTip);
|
|
11326
|
-
const
|
|
11327
|
-
Object.keys(value).forEach((item) => {
|
|
11596
|
+
const clearErrorTips = (value = props.modelValue) => {
|
|
11597
|
+
Object.keys(formErrorTip.value).forEach((item) => {
|
|
11328
11598
|
formErrorTip.value[item] = "";
|
|
11329
11599
|
});
|
|
11330
11600
|
};
|
|
11331
11601
|
const reset = () => {
|
|
11332
|
-
|
|
11602
|
+
clearErrorTips();
|
|
11333
11603
|
};
|
|
11334
11604
|
watch(() => props.modelValue, (value) => {
|
|
11335
|
-
|
|
11605
|
+
clearErrorTips(value);
|
|
11336
11606
|
}, { immediate: true });
|
|
11337
11607
|
const findFormItem = (vnodes) => {
|
|
11338
11608
|
let task = [];
|
|
@@ -11345,7 +11615,7 @@ const component$2 = {
|
|
|
11345
11615
|
prop: (_a = vnode.props) == null ? void 0 : _a["prop"],
|
|
11346
11616
|
rules: ((_b = vnode.props) == null ? void 0 : _b["rules"]) || []
|
|
11347
11617
|
});
|
|
11348
|
-
} else if ((_c = vnode.children) == null ? void 0 : _c.length) {
|
|
11618
|
+
} else if (Array.isArray(vnode.children) && ((_c = vnode.children) == null ? void 0 : _c.length)) {
|
|
11349
11619
|
task = task.concat(findFormItem(vnode.children));
|
|
11350
11620
|
}
|
|
11351
11621
|
});
|
|
@@ -11368,7 +11638,10 @@ const component$2 = {
|
|
|
11368
11638
|
const getPropByPath = (obj, keyPath) => {
|
|
11369
11639
|
return keyPath.split(".").reduce((prev, curr) => prev[curr], obj);
|
|
11370
11640
|
};
|
|
11371
|
-
|
|
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 || "");
|
|
11372
11645
|
tipMessage({ prop, message: "" });
|
|
11373
11646
|
while (rules.length) {
|
|
11374
11647
|
const { required, validator, regex, message } = rules.shift();
|
|
@@ -12590,7 +12863,6 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12590
12863
|
class: "region-item-icon",
|
|
12591
12864
|
type: "self",
|
|
12592
12865
|
name: _ctx.selectedIcon,
|
|
12593
|
-
color: "#FA2C19",
|
|
12594
12866
|
size: "13px"
|
|
12595
12867
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
12596
12868
|
createTextVNode(toDisplayString(item.name), 1)
|
|
@@ -12635,9 +12907,8 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12635
12907
|
class: "exist-item-icon",
|
|
12636
12908
|
type: "self",
|
|
12637
12909
|
name: item.selectedAddress ? _ctx.selectedIcon : _ctx.defaultIcon,
|
|
12638
|
-
color: item.selectedAddress ? "#FA2C19" : "",
|
|
12639
12910
|
size: "13px"
|
|
12640
|
-
}, null, 8, ["name"
|
|
12911
|
+
}, null, 8, ["name"]),
|
|
12641
12912
|
createElementVNode("div", _hoisted_18, [
|
|
12642
12913
|
item.name && item.phone ? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
12643
12914
|
createElementVNode("div", _hoisted_20, toDisplayString(item.name), 1),
|
|
@@ -13492,7 +13763,6 @@ const _sfc_main$2 = create$2({
|
|
|
13492
13763
|
}
|
|
13493
13764
|
});
|
|
13494
13765
|
onMounted(() => {
|
|
13495
|
-
console.log("\u66F4\u65B0\u53C2\u6570");
|
|
13496
13766
|
});
|
|
13497
13767
|
const getSlots = (name) => slots[name];
|
|
13498
13768
|
const selectSku = (skus) => {
|
|
@@ -13789,6 +14059,11 @@ const component = (componentName2) => {
|
|
|
13789
14059
|
state.curData = typeof item.sorter === "function" ? state.curData.sort(item.sorter) : item.sorter === "default" ? state.curData.sort() : state.curData;
|
|
13790
14060
|
}
|
|
13791
14061
|
};
|
|
14062
|
+
const sortDataItem = () => {
|
|
14063
|
+
return props.columns.map((value) => {
|
|
14064
|
+
return value.key;
|
|
14065
|
+
});
|
|
14066
|
+
};
|
|
13792
14067
|
watch(() => props.data, (val) => {
|
|
13793
14068
|
state.curData = val.slice();
|
|
13794
14069
|
});
|
|
@@ -13796,7 +14071,8 @@ const component = (componentName2) => {
|
|
|
13796
14071
|
classes,
|
|
13797
14072
|
cellClasses,
|
|
13798
14073
|
getColumnItem,
|
|
13799
|
-
handleSorterClick
|
|
14074
|
+
handleSorterClick,
|
|
14075
|
+
sortDataItem
|
|
13800
14076
|
});
|
|
13801
14077
|
}
|
|
13802
14078
|
};
|
|
@@ -13854,7 +14130,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13854
14130
|
class: "nut-table__main__body__tr",
|
|
13855
14131
|
key: item
|
|
13856
14132
|
}, [
|
|
13857
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
14133
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.sortDataItem(), (value) => {
|
|
13858
14134
|
return openBlock(), createElementBlock("span", {
|
|
13859
14135
|
class: normalizeClass(["nut-table__main__body__tr__td", _ctx.cellClasses(_ctx.getColumnItem(value))]),
|
|
13860
14136
|
key: value
|
|
@@ -13888,7 +14164,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13888
14164
|
}
|
|
13889
14165
|
var Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
13890
14166
|
function install(app) {
|
|
13891
|
-
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];
|
|
13892
14168
|
packages.forEach((item) => {
|
|
13893
14169
|
if (item.install) {
|
|
13894
14170
|
app.use(item);
|
|
@@ -13897,6 +14173,6 @@ function install(app) {
|
|
|
13897
14173
|
}
|
|
13898
14174
|
});
|
|
13899
14175
|
}
|
|
13900
|
-
const version = "3.1.
|
|
14176
|
+
const version = "3.1.16-beta.1";
|
|
13901
14177
|
var nutui_vue_build = { install, version };
|
|
13902
|
-
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 };
|