@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.umd.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
|
*/
|
|
@@ -69,8 +69,8 @@ var __publicField = (obj, key, value) => {
|
|
|
69
69
|
}
|
|
70
70
|
return target;
|
|
71
71
|
};
|
|
72
|
-
const { componentName: componentName$
|
|
73
|
-
const _sfc_main$
|
|
72
|
+
const { componentName: componentName$14, create: create$1p } = createComponent("avatar");
|
|
73
|
+
const _sfc_main$1p = create$1p({
|
|
74
74
|
props: {
|
|
75
75
|
size: {
|
|
76
76
|
type: String,
|
|
@@ -94,7 +94,7 @@ var __publicField = (obj, key, value) => {
|
|
|
94
94
|
const { size, shape, bgColor, icon } = vue.toRefs(props);
|
|
95
95
|
const sizeValue = ["large", "normal", "small"];
|
|
96
96
|
const classes = vue.computed(() => {
|
|
97
|
-
const prefixCls = componentName$
|
|
97
|
+
const prefixCls = componentName$14;
|
|
98
98
|
return {
|
|
99
99
|
[prefixCls]: true,
|
|
100
100
|
["avatar-" + size.value]: true,
|
|
@@ -126,11 +126,11 @@ var __publicField = (obj, key, value) => {
|
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
|
-
const _hoisted_1
|
|
129
|
+
const _hoisted_1$$ = {
|
|
130
130
|
key: 0,
|
|
131
131
|
class: "text"
|
|
132
132
|
};
|
|
133
|
-
function _sfc_render$
|
|
133
|
+
function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
134
134
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
135
135
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
136
136
|
style: vue.normalizeStyle(_ctx.styles),
|
|
@@ -141,17 +141,17 @@ var __publicField = (obj, key, value) => {
|
|
|
141
141
|
class: "icon",
|
|
142
142
|
name: _ctx.iconStyles
|
|
143
143
|
}, null, 8, ["name"]),
|
|
144
|
-
_ctx.isShowText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1
|
|
144
|
+
_ctx.isShowText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$$, [
|
|
145
145
|
vue.renderSlot(_ctx.$slots, "default")
|
|
146
146
|
])) : vue.createCommentVNode("", true)
|
|
147
147
|
], 6);
|
|
148
148
|
}
|
|
149
|
-
var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
149
|
+
var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["render", _sfc_render$1h]]);
|
|
150
150
|
const pxCheck = (value) => {
|
|
151
151
|
return isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
152
152
|
};
|
|
153
|
-
const { componentName: componentName$
|
|
154
|
-
const _sfc_main$
|
|
153
|
+
const { componentName: componentName$13, create: create$1o } = createComponent("icon");
|
|
154
|
+
const _sfc_main$1o = create$1o({
|
|
155
155
|
props: {
|
|
156
156
|
name: { type: String, default: "" },
|
|
157
157
|
size: { type: [String, Number], default: "" },
|
|
@@ -172,7 +172,7 @@ var __publicField = (obj, key, value) => {
|
|
|
172
172
|
var _a;
|
|
173
173
|
const _isImage = isImage();
|
|
174
174
|
return vue.h(_isImage ? "img" : props.tag, {
|
|
175
|
-
class: _isImage ? `${componentName$
|
|
175
|
+
class: _isImage ? `${componentName$13}__img` : `${props.fontClassName} ${componentName$13} ${props.classPrefix}-${props.name}`,
|
|
176
176
|
style: {
|
|
177
177
|
color: props.color,
|
|
178
178
|
fontSize: pxCheck(props.size),
|
|
@@ -185,10 +185,10 @@ var __publicField = (obj, key, value) => {
|
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
187
|
});
|
|
188
|
-
const { componentName: componentName
|
|
189
|
-
const _sfc_main$
|
|
188
|
+
const { componentName: componentName$12, create: create$1n } = createComponent("button");
|
|
189
|
+
const _sfc_main$1n = create$1n({
|
|
190
190
|
components: {
|
|
191
|
-
[_sfc_main$
|
|
191
|
+
[_sfc_main$1o.name]: _sfc_main$1o
|
|
192
192
|
},
|
|
193
193
|
props: {
|
|
194
194
|
color: String,
|
|
@@ -234,7 +234,7 @@ var __publicField = (obj, key, value) => {
|
|
|
234
234
|
}
|
|
235
235
|
};
|
|
236
236
|
const classes = vue.computed(() => {
|
|
237
|
-
const prefixCls = componentName
|
|
237
|
+
const prefixCls = componentName$12;
|
|
238
238
|
return {
|
|
239
239
|
[prefixCls]: true,
|
|
240
240
|
[`${prefixCls}--${type.value}`]: type.value,
|
|
@@ -270,15 +270,15 @@ var __publicField = (obj, key, value) => {
|
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
|
-
const _hoisted_1$
|
|
274
|
-
function _sfc_render$
|
|
273
|
+
const _hoisted_1$_ = { class: "nut-button__warp" };
|
|
274
|
+
function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
275
275
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
276
276
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
277
277
|
class: vue.normalizeClass(_ctx.classes),
|
|
278
278
|
style: vue.normalizeStyle(_ctx.getStyle),
|
|
279
279
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
280
280
|
}, [
|
|
281
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
281
|
+
vue.createElementVNode("view", _hoisted_1$_, [
|
|
282
282
|
_ctx.loading ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
283
283
|
key: 0,
|
|
284
284
|
class: "nut-icon-loading"
|
|
@@ -297,9 +297,9 @@ var __publicField = (obj, key, value) => {
|
|
|
297
297
|
])
|
|
298
298
|
], 6);
|
|
299
299
|
}
|
|
300
|
-
var Button = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
301
|
-
const { componentName: componentName$
|
|
302
|
-
const _sfc_main$
|
|
300
|
+
var Button = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_render$1g]]);
|
|
301
|
+
const { componentName: componentName$11, create: create$1m } = createComponent("cell");
|
|
302
|
+
const _sfc_main$1m = create$1m({
|
|
303
303
|
props: {
|
|
304
304
|
title: { type: String, default: "" },
|
|
305
305
|
subTitle: { type: String, default: "" },
|
|
@@ -315,7 +315,7 @@ var __publicField = (obj, key, value) => {
|
|
|
315
315
|
emits: ["click"],
|
|
316
316
|
setup(props, { emit }) {
|
|
317
317
|
const classes = vue.computed(() => {
|
|
318
|
-
const prefixCls = componentName$
|
|
318
|
+
const prefixCls = componentName$11;
|
|
319
319
|
return {
|
|
320
320
|
[prefixCls]: true,
|
|
321
321
|
[`${prefixCls}--clickable`]: props.isLink || props.to
|
|
@@ -342,9 +342,9 @@ var __publicField = (obj, key, value) => {
|
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
344
|
});
|
|
345
|
-
const _hoisted_1$
|
|
346
|
-
const _hoisted_2$
|
|
347
|
-
function _sfc_render$
|
|
345
|
+
const _hoisted_1$Z = { class: "title" };
|
|
346
|
+
const _hoisted_2$O = { class: "nut-cell__title-desc" };
|
|
347
|
+
function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
348
348
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
349
349
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
350
350
|
class: vue.normalizeClass(_ctx.classes),
|
|
@@ -362,8 +362,8 @@ var __publicField = (obj, key, value) => {
|
|
|
362
362
|
name: _ctx.icon
|
|
363
363
|
}, null, 8, ["name"])) : vue.createCommentVNode("", true),
|
|
364
364
|
_ctx.subTitle ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
365
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
366
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
365
|
+
vue.createElementVNode("view", _hoisted_1$Z, vue.toDisplayString(_ctx.title), 1),
|
|
366
|
+
vue.createElementVNode("view", _hoisted_2$O, vue.toDisplayString(_ctx.subTitle), 1)
|
|
367
367
|
], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
|
|
368
368
|
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
|
369
369
|
], 64))
|
|
@@ -381,16 +381,16 @@ var __publicField = (obj, key, value) => {
|
|
|
381
381
|
])
|
|
382
382
|
], 6);
|
|
383
383
|
}
|
|
384
|
-
var Cell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
385
|
-
const { componentName: componentName$
|
|
386
|
-
const _sfc_main$
|
|
384
|
+
var Cell = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["render", _sfc_render$1f]]);
|
|
385
|
+
const { componentName: componentName$10, create: create$1l } = createComponent("cell-group");
|
|
386
|
+
const _sfc_main$1l = create$1l({
|
|
387
387
|
props: {
|
|
388
388
|
title: { type: String, default: "" },
|
|
389
389
|
desc: { type: String, default: "" }
|
|
390
390
|
},
|
|
391
391
|
setup() {
|
|
392
392
|
const classes = vue.computed(() => {
|
|
393
|
-
const prefixCls = componentName$
|
|
393
|
+
const prefixCls = componentName$10;
|
|
394
394
|
return {
|
|
395
395
|
[prefixCls]: true
|
|
396
396
|
};
|
|
@@ -400,29 +400,29 @@ var __publicField = (obj, key, value) => {
|
|
|
400
400
|
};
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
|
-
const _hoisted_1$
|
|
403
|
+
const _hoisted_1$Y = {
|
|
404
404
|
key: 1,
|
|
405
405
|
class: "nut-cell-group__title"
|
|
406
406
|
};
|
|
407
|
-
const _hoisted_2$
|
|
407
|
+
const _hoisted_2$N = {
|
|
408
408
|
key: 3,
|
|
409
409
|
class: "nut-cell-group__desc"
|
|
410
410
|
};
|
|
411
|
-
const _hoisted_3$
|
|
412
|
-
function _sfc_render$
|
|
411
|
+
const _hoisted_3$B = { class: "nut-cell-group__warp" };
|
|
412
|
+
function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
413
413
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
414
414
|
class: vue.normalizeClass(_ctx.classes)
|
|
415
415
|
}, [
|
|
416
|
-
_ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
417
|
-
_ctx.$slots.desc ? vue.renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
418
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
416
|
+
_ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$Y, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
|
|
417
|
+
_ctx.$slots.desc ? vue.renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$N, vue.toDisplayString(_ctx.desc), 1)) : vue.createCommentVNode("", true),
|
|
418
|
+
vue.createElementVNode("view", _hoisted_3$B, [
|
|
419
419
|
vue.renderSlot(_ctx.$slots, "default")
|
|
420
420
|
])
|
|
421
421
|
], 2);
|
|
422
422
|
}
|
|
423
|
-
var CellGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
424
|
-
const { componentName: componentName
|
|
425
|
-
const _sfc_main$
|
|
423
|
+
var CellGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_render$1e]]);
|
|
424
|
+
const { componentName: componentName$$, create: create$1k } = createComponent("price");
|
|
425
|
+
const _sfc_main$1k = create$1k({
|
|
426
426
|
props: {
|
|
427
427
|
price: {
|
|
428
428
|
type: [Number, String],
|
|
@@ -456,7 +456,7 @@ var __publicField = (obj, key, value) => {
|
|
|
456
456
|
setup(props) {
|
|
457
457
|
const classes = vue.computed(() => {
|
|
458
458
|
return {
|
|
459
|
-
[componentName
|
|
459
|
+
[componentName$$]: true
|
|
460
460
|
};
|
|
461
461
|
});
|
|
462
462
|
const showSymbol = vue.computed(() => {
|
|
@@ -505,9 +505,9 @@ var __publicField = (obj, key, value) => {
|
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
|
-
const _hoisted_1$
|
|
509
|
-
const _hoisted_2$
|
|
510
|
-
function _sfc_render$
|
|
508
|
+
const _hoisted_1$X = ["innerHTML"];
|
|
509
|
+
const _hoisted_2$M = ["innerHTML"];
|
|
510
|
+
function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
511
511
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
512
512
|
class: vue.normalizeClass(_ctx.classes)
|
|
513
513
|
}, [
|
|
@@ -515,7 +515,7 @@ var __publicField = (obj, key, value) => {
|
|
|
515
515
|
key: 0,
|
|
516
516
|
class: vue.normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
|
|
517
517
|
innerHTML: _ctx.showSymbol
|
|
518
|
-
}, null, 10, _hoisted_1$
|
|
518
|
+
}, null, 10, _hoisted_1$X)) : vue.createCommentVNode("", true),
|
|
519
519
|
vue.createElementVNode("view", {
|
|
520
520
|
class: vue.normalizeClass(`nut-price--${_ctx.size}`)
|
|
521
521
|
}, vue.toDisplayString(_ctx.formatThousands(_ctx.price)), 3),
|
|
@@ -530,11 +530,11 @@ var __publicField = (obj, key, value) => {
|
|
|
530
530
|
key: 2,
|
|
531
531
|
class: vue.normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
|
|
532
532
|
innerHTML: _ctx.showSymbol
|
|
533
|
-
}, null, 10, _hoisted_2$
|
|
533
|
+
}, null, 10, _hoisted_2$M)) : vue.createCommentVNode("", true)
|
|
534
534
|
], 2);
|
|
535
535
|
}
|
|
536
|
-
var Price = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
537
|
-
const { componentName: componentName$
|
|
536
|
+
var Price = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$1d]]);
|
|
537
|
+
const { componentName: componentName$_, create: create$1j } = createComponent("overlay");
|
|
538
538
|
const overlayProps = {
|
|
539
539
|
visible: {
|
|
540
540
|
type: Boolean,
|
|
@@ -564,12 +564,12 @@ var __publicField = (obj, key, value) => {
|
|
|
564
564
|
default: true
|
|
565
565
|
}
|
|
566
566
|
};
|
|
567
|
-
const _sfc_main$
|
|
567
|
+
const _sfc_main$1j = create$1j({
|
|
568
568
|
props: overlayProps,
|
|
569
569
|
emits: ["click", "update:visible"],
|
|
570
570
|
setup(props, { emit }) {
|
|
571
571
|
const classes = vue.computed(() => {
|
|
572
|
-
const prefixCls = componentName$
|
|
572
|
+
const prefixCls = componentName$_;
|
|
573
573
|
return {
|
|
574
574
|
[prefixCls]: true,
|
|
575
575
|
[props.overlayClass]: true
|
|
@@ -609,7 +609,7 @@ var __publicField = (obj, key, value) => {
|
|
|
609
609
|
return { classes, style, touchmove, onClick };
|
|
610
610
|
}
|
|
611
611
|
});
|
|
612
|
-
function _sfc_render$
|
|
612
|
+
function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
613
613
|
return vue.openBlock(), vue.createBlock(vue.Transition, { name: "overlay-fade" }, {
|
|
614
614
|
default: vue.withCtx(() => [
|
|
615
615
|
vue.withDirectives(vue.createElementVNode("view", {
|
|
@@ -626,9 +626,9 @@ var __publicField = (obj, key, value) => {
|
|
|
626
626
|
_: 3
|
|
627
627
|
});
|
|
628
628
|
}
|
|
629
|
-
var OverLay = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
630
|
-
const { componentName: componentName$
|
|
631
|
-
const _sfc_main$
|
|
629
|
+
var OverLay = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["render", _sfc_render$1c]]);
|
|
630
|
+
const { componentName: componentName$Z, create: create$1i } = createComponent("divider");
|
|
631
|
+
const _sfc_main$1i = create$1i({
|
|
632
632
|
props: {
|
|
633
633
|
contentPosition: {
|
|
634
634
|
type: String,
|
|
@@ -646,7 +646,7 @@ var __publicField = (obj, key, value) => {
|
|
|
646
646
|
components: {},
|
|
647
647
|
setup(props, context) {
|
|
648
648
|
const classes = vue.computed(() => {
|
|
649
|
-
const prefixCls = componentName$
|
|
649
|
+
const prefixCls = componentName$Z;
|
|
650
650
|
return {
|
|
651
651
|
[prefixCls]: true,
|
|
652
652
|
[`${prefixCls}-center`]: context.slots.default,
|
|
@@ -659,18 +659,18 @@ var __publicField = (obj, key, value) => {
|
|
|
659
659
|
return { classes };
|
|
660
660
|
}
|
|
661
661
|
});
|
|
662
|
-
function _sfc_render$
|
|
662
|
+
function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
663
663
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
664
664
|
class: vue.normalizeClass(_ctx.classes)
|
|
665
665
|
}, [
|
|
666
666
|
vue.renderSlot(_ctx.$slots, "default")
|
|
667
667
|
], 2);
|
|
668
668
|
}
|
|
669
|
-
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
670
|
-
const { create: create$
|
|
671
|
-
const _sfc_main$
|
|
672
|
-
const { componentName: componentName$
|
|
673
|
-
const _sfc_main$
|
|
669
|
+
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["render", _sfc_render$1b]]);
|
|
670
|
+
const { create: create$1h } = createComponent("layout");
|
|
671
|
+
const _sfc_main$1h = create$1h({});
|
|
672
|
+
const { componentName: componentName$Y, create: create$1g } = createComponent("col");
|
|
673
|
+
const _sfc_main$1g = create$1g({
|
|
674
674
|
props: {
|
|
675
675
|
span: {
|
|
676
676
|
type: [String, Number],
|
|
@@ -682,7 +682,7 @@ var __publicField = (obj, key, value) => {
|
|
|
682
682
|
}
|
|
683
683
|
},
|
|
684
684
|
setup(props) {
|
|
685
|
-
const prefixCls = componentName$
|
|
685
|
+
const prefixCls = componentName$Y;
|
|
686
686
|
const gutter = vue.inject("gutter");
|
|
687
687
|
const classes = vue.computed(() => {
|
|
688
688
|
return {
|
|
@@ -704,7 +704,7 @@ var __publicField = (obj, key, value) => {
|
|
|
704
704
|
};
|
|
705
705
|
}
|
|
706
706
|
});
|
|
707
|
-
function _sfc_render$
|
|
707
|
+
function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
708
708
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
709
709
|
class: vue.normalizeClass(_ctx.classes),
|
|
710
710
|
style: vue.normalizeStyle(_ctx.style)
|
|
@@ -712,9 +712,9 @@ var __publicField = (obj, key, value) => {
|
|
|
712
712
|
vue.renderSlot(_ctx.$slots, "default")
|
|
713
713
|
], 6);
|
|
714
714
|
}
|
|
715
|
-
var Col = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
716
|
-
const { componentName: componentName$
|
|
717
|
-
const _sfc_main$
|
|
715
|
+
var Col = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["render", _sfc_render$1a]]);
|
|
716
|
+
const { componentName: componentName$X, create: create$1f } = createComponent("row");
|
|
717
|
+
const _sfc_main$1f = create$1f({
|
|
718
718
|
props: {
|
|
719
719
|
type: {
|
|
720
720
|
type: String,
|
|
@@ -738,7 +738,7 @@ var __publicField = (obj, key, value) => {
|
|
|
738
738
|
}
|
|
739
739
|
},
|
|
740
740
|
setup(props) {
|
|
741
|
-
const prefixCls = componentName$
|
|
741
|
+
const prefixCls = componentName$X;
|
|
742
742
|
vue.provide("gutter", props.gutter);
|
|
743
743
|
const getClass = (prefix, type) => {
|
|
744
744
|
return prefix ? type ? `nut-row-${prefix}-${type}` : "" : `nut-row-${type}`;
|
|
@@ -757,14 +757,14 @@ var __publicField = (obj, key, value) => {
|
|
|
757
757
|
};
|
|
758
758
|
}
|
|
759
759
|
});
|
|
760
|
-
function _sfc_render$
|
|
760
|
+
function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
761
761
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
762
762
|
class: vue.normalizeClass(_ctx.getClasses())
|
|
763
763
|
}, [
|
|
764
764
|
vue.renderSlot(_ctx.$slots, "default")
|
|
765
765
|
], 2);
|
|
766
766
|
}
|
|
767
|
-
var Row = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
767
|
+
var Row = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["render", _sfc_render$19]]);
|
|
768
768
|
let count = 0;
|
|
769
769
|
const CLSNAME = "nut-overflow-hidden";
|
|
770
770
|
const useLockScroll = (isLock) => {
|
|
@@ -782,7 +782,7 @@ var __publicField = (obj, key, value) => {
|
|
|
782
782
|
};
|
|
783
783
|
return [lock, unlock];
|
|
784
784
|
};
|
|
785
|
-
const { componentName: componentName$
|
|
785
|
+
const { componentName: componentName$W, create: create$1e } = createComponent("popup");
|
|
786
786
|
let _zIndex = 2e3;
|
|
787
787
|
const popupProps = __spreadProps(__spreadValues({}, overlayProps), {
|
|
788
788
|
position: {
|
|
@@ -830,10 +830,10 @@ var __publicField = (obj, key, value) => {
|
|
|
830
830
|
default: true
|
|
831
831
|
}
|
|
832
832
|
});
|
|
833
|
-
const _sfc_main$
|
|
833
|
+
const _sfc_main$1e = create$1e({
|
|
834
834
|
components: {
|
|
835
835
|
[OverLay.name]: OverLay,
|
|
836
|
-
[_sfc_main$
|
|
836
|
+
[_sfc_main$1o.name]: _sfc_main$1o
|
|
837
837
|
},
|
|
838
838
|
props: __spreadValues({}, popupProps),
|
|
839
839
|
emits: ["click", "click-close-icon", "open", "close", "opend", "closed", "update:visible", "click-overlay"],
|
|
@@ -843,11 +843,12 @@ var __publicField = (obj, key, value) => {
|
|
|
843
843
|
showSlot: true,
|
|
844
844
|
transitionName: `popup-fade-${props.position}`,
|
|
845
845
|
overLayCount: 1,
|
|
846
|
-
keepAlive: false
|
|
846
|
+
keepAlive: false,
|
|
847
|
+
closed: props.closeable
|
|
847
848
|
});
|
|
848
849
|
const [lockScroll, unlockScroll] = useLockScroll(() => props.lockScroll);
|
|
849
850
|
const classes = vue.computed(() => {
|
|
850
|
-
const prefixCls = componentName$
|
|
851
|
+
const prefixCls = componentName$W;
|
|
851
852
|
return {
|
|
852
853
|
[prefixCls]: true,
|
|
853
854
|
["round"]: props.round,
|
|
@@ -940,6 +941,9 @@ var __publicField = (obj, key, value) => {
|
|
|
940
941
|
vue.watch(() => props.position, (value) => {
|
|
941
942
|
value === "center" ? state.transitionName = "popup-fade" : state.transitionName = `popup-slide-${value}`;
|
|
942
943
|
});
|
|
944
|
+
vue.watch(() => props.closeable, (value) => {
|
|
945
|
+
state.closed = value;
|
|
946
|
+
});
|
|
943
947
|
return __spreadProps(__spreadValues({}, vue.toRefs(state)), {
|
|
944
948
|
popStyle,
|
|
945
949
|
classes,
|
|
@@ -951,8 +955,8 @@ var __publicField = (obj, key, value) => {
|
|
|
951
955
|
});
|
|
952
956
|
}
|
|
953
957
|
});
|
|
954
|
-
const _hoisted_1$
|
|
955
|
-
function _sfc_render$
|
|
958
|
+
const _hoisted_1$W = { key: 1 };
|
|
959
|
+
function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
956
960
|
const _component_nut_overlay = vue.resolveComponent("nut-overlay");
|
|
957
961
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
958
962
|
return _ctx.isWrapTeleport ? (vue.openBlock(), vue.createBlock(vue.Teleport, {
|
|
@@ -982,7 +986,7 @@ var __publicField = (obj, key, value) => {
|
|
|
982
986
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
983
987
|
}, [
|
|
984
988
|
_ctx.showSlot ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : vue.createCommentVNode("", true),
|
|
985
|
-
_ctx.
|
|
989
|
+
_ctx.closed ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
986
990
|
key: 1,
|
|
987
991
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
|
|
988
992
|
class: vue.normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
|
|
@@ -998,7 +1002,7 @@ var __publicField = (obj, key, value) => {
|
|
|
998
1002
|
]),
|
|
999
1003
|
_: 3
|
|
1000
1004
|
}, 8, ["name", "onAfterEnter", "onAfterLeave"])
|
|
1001
|
-
], 8, ["to"])) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
1005
|
+
], 8, ["to"])) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$W, [
|
|
1002
1006
|
_ctx.overlay ? (vue.openBlock(), vue.createBlock(_component_nut_overlay, {
|
|
1003
1007
|
key: 0,
|
|
1004
1008
|
visible: _ctx.visible,
|
|
@@ -1022,7 +1026,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1022
1026
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
1023
1027
|
}, [
|
|
1024
1028
|
_ctx.showSlot ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : vue.createCommentVNode("", true),
|
|
1025
|
-
_ctx.
|
|
1029
|
+
_ctx.closed ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
1026
1030
|
key: 1,
|
|
1027
1031
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
|
|
1028
1032
|
class: vue.normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
|
|
@@ -1040,7 +1044,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1040
1044
|
}, 8, ["name", "onAfterEnter", "onAfterLeave"])
|
|
1041
1045
|
]));
|
|
1042
1046
|
}
|
|
1043
|
-
var Popup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1047
|
+
var Popup = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$18]]);
|
|
1044
1048
|
const throttle = (func, wait, type) => {
|
|
1045
1049
|
if (type === 1) {
|
|
1046
1050
|
var previous = 0;
|
|
@@ -1066,8 +1070,8 @@ var __publicField = (obj, key, value) => {
|
|
|
1066
1070
|
}
|
|
1067
1071
|
};
|
|
1068
1072
|
};
|
|
1069
|
-
const { create: create$
|
|
1070
|
-
const _sfc_main$
|
|
1073
|
+
const { create: create$1d } = createComponent("video");
|
|
1074
|
+
const _sfc_main$1d = create$1d({
|
|
1071
1075
|
props: {
|
|
1072
1076
|
source: {
|
|
1073
1077
|
type: Object,
|
|
@@ -1313,12 +1317,12 @@ var __publicField = (obj, key, value) => {
|
|
|
1313
1317
|
});
|
|
1314
1318
|
}
|
|
1315
1319
|
});
|
|
1316
|
-
const _hoisted_1$
|
|
1320
|
+
const _hoisted_1$V = {
|
|
1317
1321
|
class: "nut-video",
|
|
1318
1322
|
ref: "videocon"
|
|
1319
1323
|
};
|
|
1320
|
-
const _hoisted_2$
|
|
1321
|
-
const _hoisted_3$
|
|
1324
|
+
const _hoisted_2$L = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
|
|
1325
|
+
const _hoisted_3$A = ["src", "type"];
|
|
1322
1326
|
const _hoisted_4$r = { class: "current-time" };
|
|
1323
1327
|
const _hoisted_5$j = { class: "progress-container" };
|
|
1324
1328
|
const _hoisted_6$g = {
|
|
@@ -1336,8 +1340,8 @@ var __publicField = (obj, key, value) => {
|
|
|
1336
1340
|
const _hoisted_10$4 = { class: "duration-time" };
|
|
1337
1341
|
const _hoisted_11$4 = { class: "nut-video-error" };
|
|
1338
1342
|
const _hoisted_12$4 = /* @__PURE__ */ vue.createElementVNode("p", { class: "lose" }, "\u89C6\u9891\u52A0\u8F7D\u5931\u8D25", -1);
|
|
1339
|
-
function _sfc_render$
|
|
1340
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
1343
|
+
function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1344
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$V, [
|
|
1341
1345
|
vue.createElementVNode("video", {
|
|
1342
1346
|
ref: "root",
|
|
1343
1347
|
class: "nut-video-player",
|
|
@@ -1352,8 +1356,8 @@ var __publicField = (obj, key, value) => {
|
|
|
1352
1356
|
vue.createElementVNode("source", {
|
|
1353
1357
|
src: _ctx.source.src,
|
|
1354
1358
|
type: _ctx.source.type
|
|
1355
|
-
}, null, 8, _hoisted_3$
|
|
1356
|
-
], 40, _hoisted_2$
|
|
1359
|
+
}, null, 8, _hoisted_3$A)
|
|
1360
|
+
], 40, _hoisted_2$L),
|
|
1357
1361
|
_ctx.showToolbox && !_ctx.isDisabled ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
1358
1362
|
key: 0,
|
|
1359
1363
|
class: "playing-mask",
|
|
@@ -1417,7 +1421,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1417
1421
|
])
|
|
1418
1422
|
], 512);
|
|
1419
1423
|
}
|
|
1420
|
-
var Video = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1424
|
+
var Video = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["render", _sfc_render$17]]);
|
|
1421
1425
|
const DISTANCE = 5;
|
|
1422
1426
|
function useTouch$1() {
|
|
1423
1427
|
const state = vue.reactive({
|
|
@@ -1472,8 +1476,8 @@ var __publicField = (obj, key, value) => {
|
|
|
1472
1476
|
Object.assign(instance.proxy, apis);
|
|
1473
1477
|
}
|
|
1474
1478
|
}
|
|
1475
|
-
const { create: create$
|
|
1476
|
-
const _sfc_main$
|
|
1479
|
+
const { create: create$1c, componentName: componentName$V } = createComponent("swiper");
|
|
1480
|
+
const _sfc_main$1c = create$1c({
|
|
1477
1481
|
props: {
|
|
1478
1482
|
width: {
|
|
1479
1483
|
type: [Number, String],
|
|
@@ -1542,7 +1546,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1542
1546
|
});
|
|
1543
1547
|
const touch = useTouch$1();
|
|
1544
1548
|
const classes = vue.computed(() => {
|
|
1545
|
-
const prefixCls = componentName$
|
|
1549
|
+
const prefixCls = componentName$V;
|
|
1546
1550
|
return {
|
|
1547
1551
|
[prefixCls]: true
|
|
1548
1552
|
};
|
|
@@ -1578,7 +1582,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1578
1582
|
state.children.push(child.proxy);
|
|
1579
1583
|
}
|
|
1580
1584
|
};
|
|
1581
|
-
const
|
|
1585
|
+
const range = (num, min, max) => {
|
|
1582
1586
|
return Math.min(Math.max(num, min), max);
|
|
1583
1587
|
};
|
|
1584
1588
|
const requestFrame = (fn) => {
|
|
@@ -1591,7 +1595,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1591
1595
|
}
|
|
1592
1596
|
let targetOffset = offset - currentPosition;
|
|
1593
1597
|
if (!props.loop) {
|
|
1594
|
-
targetOffset =
|
|
1598
|
+
targetOffset = range(targetOffset, minOffset.value, 0);
|
|
1595
1599
|
}
|
|
1596
1600
|
return targetOffset;
|
|
1597
1601
|
};
|
|
@@ -1599,9 +1603,9 @@ var __publicField = (obj, key, value) => {
|
|
|
1599
1603
|
const { active } = state;
|
|
1600
1604
|
if (pace) {
|
|
1601
1605
|
if (props.loop) {
|
|
1602
|
-
return
|
|
1606
|
+
return range(active + pace, -1, childCount.value);
|
|
1603
1607
|
}
|
|
1604
|
-
return
|
|
1608
|
+
return range(active + pace, 0, childCount.value - 1);
|
|
1605
1609
|
}
|
|
1606
1610
|
return active;
|
|
1607
1611
|
};
|
|
@@ -1795,7 +1799,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1795
1799
|
state,
|
|
1796
1800
|
classes,
|
|
1797
1801
|
container,
|
|
1798
|
-
componentName: componentName$
|
|
1802
|
+
componentName: componentName$V,
|
|
1799
1803
|
isVertical,
|
|
1800
1804
|
slots,
|
|
1801
1805
|
activePagination,
|
|
@@ -1805,7 +1809,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1805
1809
|
};
|
|
1806
1810
|
}
|
|
1807
1811
|
});
|
|
1808
|
-
function _sfc_render$
|
|
1812
|
+
function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1809
1813
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
1810
1814
|
ref: "container",
|
|
1811
1815
|
class: vue.normalizeClass(_ctx.classes),
|
|
@@ -1842,15 +1846,15 @@ var __publicField = (obj, key, value) => {
|
|
|
1842
1846
|
], 2)) : vue.createCommentVNode("", true)
|
|
1843
1847
|
], 34);
|
|
1844
1848
|
}
|
|
1845
|
-
var Swiper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1849
|
+
var Swiper = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["render", _sfc_render$16]]);
|
|
1846
1850
|
function useExpose(apis) {
|
|
1847
1851
|
const instance = vue.getCurrentInstance();
|
|
1848
1852
|
if (instance) {
|
|
1849
1853
|
Object.assign(instance.proxy, apis);
|
|
1850
1854
|
}
|
|
1851
1855
|
}
|
|
1852
|
-
const { create: create$
|
|
1853
|
-
const _sfc_main$
|
|
1856
|
+
const { create: create$1b, componentName: componentName$U } = createComponent("swiper-item");
|
|
1857
|
+
const _sfc_main$1b = create$1b({
|
|
1854
1858
|
props: {},
|
|
1855
1859
|
setup(props, { slots }) {
|
|
1856
1860
|
const parent = vue.inject("parent");
|
|
@@ -1859,7 +1863,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1859
1863
|
offset: 0
|
|
1860
1864
|
});
|
|
1861
1865
|
const classes = vue.computed(() => {
|
|
1862
|
-
const prefixCls = componentName$
|
|
1866
|
+
const prefixCls = componentName$U;
|
|
1863
1867
|
return {
|
|
1864
1868
|
[prefixCls]: true
|
|
1865
1869
|
};
|
|
@@ -1885,7 +1889,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1885
1889
|
};
|
|
1886
1890
|
}
|
|
1887
1891
|
});
|
|
1888
|
-
function _sfc_render$
|
|
1892
|
+
function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1889
1893
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
1890
1894
|
class: vue.normalizeClass(_ctx.classes),
|
|
1891
1895
|
style: vue.normalizeStyle(_ctx.style)
|
|
@@ -1893,9 +1897,9 @@ var __publicField = (obj, key, value) => {
|
|
|
1893
1897
|
vue.renderSlot(_ctx.$slots, "default")
|
|
1894
1898
|
], 6);
|
|
1895
1899
|
}
|
|
1896
|
-
var SwiperItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1897
|
-
const { componentName: componentName$
|
|
1898
|
-
const _sfc_main$
|
|
1900
|
+
var SwiperItem = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$15]]);
|
|
1901
|
+
const { componentName: componentName$T, create: create$1a } = createComponent("imagepreview");
|
|
1902
|
+
const _sfc_main$1a = create$1a({
|
|
1899
1903
|
props: {
|
|
1900
1904
|
show: {
|
|
1901
1905
|
type: Boolean,
|
|
@@ -1924,6 +1928,10 @@ var __publicField = (obj, key, value) => {
|
|
|
1924
1928
|
paginationColor: {
|
|
1925
1929
|
type: String,
|
|
1926
1930
|
default: "#fff"
|
|
1931
|
+
},
|
|
1932
|
+
autoplay: {
|
|
1933
|
+
type: [Number, String],
|
|
1934
|
+
default: 3e3
|
|
1927
1935
|
}
|
|
1928
1936
|
},
|
|
1929
1937
|
emits: ["close"],
|
|
@@ -1946,7 +1954,13 @@ var __publicField = (obj, key, value) => {
|
|
|
1946
1954
|
options: {
|
|
1947
1955
|
muted: true,
|
|
1948
1956
|
controls: true
|
|
1949
|
-
}
|
|
1957
|
+
},
|
|
1958
|
+
eleImg: null,
|
|
1959
|
+
store: {
|
|
1960
|
+
scale: 1,
|
|
1961
|
+
moveable: false
|
|
1962
|
+
},
|
|
1963
|
+
lastTouchEndTime: 0
|
|
1950
1964
|
});
|
|
1951
1965
|
const slideChangeEnd = function(page) {
|
|
1952
1966
|
state.active = page + 1;
|
|
@@ -1958,11 +1972,88 @@ var __publicField = (obj, key, value) => {
|
|
|
1958
1972
|
};
|
|
1959
1973
|
const onClose = () => {
|
|
1960
1974
|
state.showPop = false;
|
|
1975
|
+
state.store.scale = 1;
|
|
1976
|
+
scaleNow();
|
|
1961
1977
|
state.active = 1;
|
|
1962
1978
|
emit("close");
|
|
1963
1979
|
};
|
|
1980
|
+
const getDistance = (first, second) => {
|
|
1981
|
+
return Math.hypot(Math.abs(second.x - first.x), Math.abs(second.y - first.y));
|
|
1982
|
+
};
|
|
1983
|
+
const scaleNow = () => {
|
|
1984
|
+
state.eleImg.style.transform = "scale(" + state.store.scale + ")";
|
|
1985
|
+
};
|
|
1986
|
+
const onTouchStart = (event) => {
|
|
1987
|
+
console.log("start");
|
|
1988
|
+
const curTouchTime = new Date().getTime();
|
|
1989
|
+
if (curTouchTime - state.lastTouchEndTime < 300) {
|
|
1990
|
+
const store2 = state.store;
|
|
1991
|
+
if (store2.scale > 1) {
|
|
1992
|
+
store2.scale = 1;
|
|
1993
|
+
} else if (store2.scale == 1) {
|
|
1994
|
+
store2.scale = 2;
|
|
1995
|
+
}
|
|
1996
|
+
scaleNow();
|
|
1997
|
+
}
|
|
1998
|
+
var touches = event.touches;
|
|
1999
|
+
var events = touches[0];
|
|
2000
|
+
var events2 = touches[1];
|
|
2001
|
+
const store = state.store;
|
|
2002
|
+
store.moveable = true;
|
|
2003
|
+
if (events2) {
|
|
2004
|
+
store.oriDistance = getDistance({
|
|
2005
|
+
x: events.pageX,
|
|
2006
|
+
y: events.pageY
|
|
2007
|
+
}, {
|
|
2008
|
+
x: events2.pageX,
|
|
2009
|
+
y: events2.pageY
|
|
2010
|
+
});
|
|
2011
|
+
}
|
|
2012
|
+
store.originScale = store.scale || 1;
|
|
2013
|
+
};
|
|
2014
|
+
const onTouchMove = (event) => {
|
|
2015
|
+
if (!state.store.moveable) {
|
|
2016
|
+
return;
|
|
2017
|
+
}
|
|
2018
|
+
const store = state.store;
|
|
2019
|
+
var touches = event.touches;
|
|
2020
|
+
var events = touches[0];
|
|
2021
|
+
var events2 = touches[1];
|
|
2022
|
+
if (events2) {
|
|
2023
|
+
const curDistance = getDistance({
|
|
2024
|
+
x: events.pageX,
|
|
2025
|
+
y: events.pageY
|
|
2026
|
+
}, {
|
|
2027
|
+
x: events2.pageX,
|
|
2028
|
+
y: events2.pageY
|
|
2029
|
+
});
|
|
2030
|
+
const curScale = curDistance / store.oriDistance;
|
|
2031
|
+
store.scale = store.originScale * curScale;
|
|
2032
|
+
if (store.scale > 3) {
|
|
2033
|
+
store.scale = 3;
|
|
2034
|
+
}
|
|
2035
|
+
scaleNow();
|
|
2036
|
+
}
|
|
2037
|
+
};
|
|
2038
|
+
const onTouchEnd = () => {
|
|
2039
|
+
console.log("end");
|
|
2040
|
+
state.lastTouchEndTime = new Date().getTime();
|
|
2041
|
+
const store = state.store;
|
|
2042
|
+
store.moveable = false;
|
|
2043
|
+
if (store.scale < 1.1 && store.scale > 1 || store.scale < 1) {
|
|
2044
|
+
store.scale = 1;
|
|
2045
|
+
scaleNow();
|
|
2046
|
+
}
|
|
2047
|
+
};
|
|
2048
|
+
const init = () => {
|
|
2049
|
+
state.eleImg = document.querySelector(".nut-imagepreview");
|
|
2050
|
+
document.addEventListener("touchmove", onTouchMove);
|
|
2051
|
+
document.addEventListener("touchend", onTouchEnd);
|
|
2052
|
+
document.addEventListener("touchcancel", onTouchEnd);
|
|
2053
|
+
};
|
|
1964
2054
|
vue.watch(() => props.show, (val) => {
|
|
1965
2055
|
state.showPop = val;
|
|
2056
|
+
init();
|
|
1966
2057
|
});
|
|
1967
2058
|
vue.onMounted(() => {
|
|
1968
2059
|
state.active = props.initNo;
|
|
@@ -1972,13 +2063,18 @@ var __publicField = (obj, key, value) => {
|
|
|
1972
2063
|
return __spreadProps(__spreadValues({}, vue.toRefs(state)), {
|
|
1973
2064
|
slideChangeEnd,
|
|
1974
2065
|
onClose,
|
|
1975
|
-
closeOnImg
|
|
2066
|
+
closeOnImg,
|
|
2067
|
+
onTouchStart,
|
|
2068
|
+
onTouchMove,
|
|
2069
|
+
onTouchEnd,
|
|
2070
|
+
getDistance,
|
|
2071
|
+
scaleNow
|
|
1976
2072
|
});
|
|
1977
2073
|
}
|
|
1978
2074
|
});
|
|
1979
|
-
const _hoisted_1$
|
|
1980
|
-
const _hoisted_2$
|
|
1981
|
-
function _sfc_render$
|
|
2075
|
+
const _hoisted_1$U = ["src"];
|
|
2076
|
+
const _hoisted_2$K = { class: "nut-imagepreview-index" };
|
|
2077
|
+
function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1982
2078
|
const _component_nut_video = vue.resolveComponent("nut-video");
|
|
1983
2079
|
const _component_nut_swiper_item = vue.resolveComponent("nut-swiper-item");
|
|
1984
2080
|
const _component_nut_swiper = vue.resolveComponent("nut-swiper");
|
|
@@ -1986,17 +2082,19 @@ var __publicField = (obj, key, value) => {
|
|
|
1986
2082
|
return vue.openBlock(), vue.createBlock(_component_nut_popup, {
|
|
1987
2083
|
"pop-class": "custom-pop",
|
|
1988
2084
|
visible: _ctx.showPop,
|
|
1989
|
-
"onUpdate:visible": _cache[
|
|
1990
|
-
onClick: _ctx.onClose
|
|
2085
|
+
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.showPop = $event),
|
|
2086
|
+
onClick: _ctx.onClose,
|
|
2087
|
+
style: { "width": "100%" }
|
|
1991
2088
|
}, {
|
|
1992
2089
|
default: vue.withCtx(() => [
|
|
1993
2090
|
vue.createElementVNode("view", {
|
|
1994
2091
|
class: "nut-imagepreview",
|
|
1995
|
-
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.closeOnImg && _ctx.closeOnImg(...args), ["stop"]))
|
|
2092
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.closeOnImg && _ctx.closeOnImg(...args), ["stop"])),
|
|
2093
|
+
onTouchstartCapture: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args))
|
|
1996
2094
|
}, [
|
|
1997
2095
|
_ctx.showPop ? (vue.openBlock(), vue.createBlock(_component_nut_swiper, {
|
|
1998
2096
|
key: 0,
|
|
1999
|
-
"auto-play":
|
|
2097
|
+
"auto-play": _ctx.autoplay,
|
|
2000
2098
|
class: "nut-imagepreview-swiper",
|
|
2001
2099
|
loop: true,
|
|
2002
2100
|
"is-preventDefault": false,
|
|
@@ -2024,21 +2122,21 @@ var __publicField = (obj, key, value) => {
|
|
|
2024
2122
|
vue.createElementVNode("img", {
|
|
2025
2123
|
src: item.src,
|
|
2026
2124
|
class: "nut-imagepreview-img"
|
|
2027
|
-
}, null, 8, _hoisted_1$
|
|
2125
|
+
}, null, 8, _hoisted_1$U)
|
|
2028
2126
|
]),
|
|
2029
2127
|
_: 2
|
|
2030
2128
|
}, 1024);
|
|
2031
2129
|
}), 128))
|
|
2032
2130
|
]),
|
|
2033
2131
|
_: 1
|
|
2034
|
-
}, 8, ["onChange", "init-page", "pagination-visible", "pagination-color"])) : vue.createCommentVNode("", true)
|
|
2035
|
-
|
|
2036
|
-
|
|
2132
|
+
}, 8, ["auto-play", "onChange", "init-page", "pagination-visible", "pagination-color"])) : vue.createCommentVNode("", true)
|
|
2133
|
+
], 32),
|
|
2134
|
+
vue.createElementVNode("view", _hoisted_2$K, vue.toDisplayString(_ctx.active) + " / " + vue.toDisplayString(_ctx.images.length + _ctx.videos.length), 1)
|
|
2037
2135
|
]),
|
|
2038
2136
|
_: 1
|
|
2039
2137
|
}, 8, ["visible", "onClick"]);
|
|
2040
2138
|
}
|
|
2041
|
-
var ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2139
|
+
var ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$14]]);
|
|
2042
2140
|
class ImagePreviewOptions {
|
|
2043
2141
|
constructor() {
|
|
2044
2142
|
__publicField(this, "show", false);
|
|
@@ -2143,8 +2241,8 @@ var __publicField = (obj, key, value) => {
|
|
|
2143
2241
|
isHorizontal
|
|
2144
2242
|
};
|
|
2145
2243
|
}
|
|
2146
|
-
const { componentName: componentName$
|
|
2147
|
-
const _sfc_main$
|
|
2244
|
+
const { componentName: componentName$S, create: create$19 } = createComponent("swipe");
|
|
2245
|
+
const _sfc_main$19 = create$19({
|
|
2148
2246
|
props: {
|
|
2149
2247
|
name: {
|
|
2150
2248
|
type: String,
|
|
@@ -2166,7 +2264,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2166
2264
|
emits: ["open", "close"],
|
|
2167
2265
|
setup(props, { emit }) {
|
|
2168
2266
|
const classes = vue.computed(() => {
|
|
2169
|
-
const prefixCls = componentName$
|
|
2267
|
+
const prefixCls = componentName$S;
|
|
2170
2268
|
return {
|
|
2171
2269
|
[prefixCls]: true
|
|
2172
2270
|
};
|
|
@@ -2290,16 +2388,16 @@ var __publicField = (obj, key, value) => {
|
|
|
2290
2388
|
});
|
|
2291
2389
|
}
|
|
2292
2390
|
});
|
|
2293
|
-
const _hoisted_1$
|
|
2391
|
+
const _hoisted_1$T = {
|
|
2294
2392
|
class: "nut-swipe__left",
|
|
2295
2393
|
ref: "leftRef"
|
|
2296
2394
|
};
|
|
2297
|
-
const _hoisted_2$
|
|
2298
|
-
const _hoisted_3$
|
|
2395
|
+
const _hoisted_2$J = { class: "nut-swipe__content" };
|
|
2396
|
+
const _hoisted_3$z = {
|
|
2299
2397
|
class: "nut-swipe__right",
|
|
2300
2398
|
ref: "rightRef"
|
|
2301
2399
|
};
|
|
2302
|
-
function _sfc_render$
|
|
2400
|
+
function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2303
2401
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
2304
2402
|
class: vue.normalizeClass(_ctx.classes),
|
|
2305
2403
|
style: vue.normalizeStyle(_ctx.touchStyle),
|
|
@@ -2308,20 +2406,20 @@ var __publicField = (obj, key, value) => {
|
|
|
2308
2406
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
|
|
2309
2407
|
onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
2310
2408
|
}, [
|
|
2311
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
2409
|
+
vue.createElementVNode("view", _hoisted_1$T, [
|
|
2312
2410
|
vue.renderSlot(_ctx.$slots, "left")
|
|
2313
2411
|
], 512),
|
|
2314
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
2412
|
+
vue.createElementVNode("view", _hoisted_2$J, [
|
|
2315
2413
|
vue.renderSlot(_ctx.$slots, "default")
|
|
2316
2414
|
]),
|
|
2317
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
2415
|
+
vue.createElementVNode("view", _hoisted_3$z, [
|
|
2318
2416
|
vue.renderSlot(_ctx.$slots, "right")
|
|
2319
2417
|
], 512)
|
|
2320
2418
|
], 38);
|
|
2321
2419
|
}
|
|
2322
|
-
var Swipe = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2323
|
-
const { componentName: componentName$
|
|
2324
|
-
const _sfc_main$
|
|
2420
|
+
var Swipe = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$13]]);
|
|
2421
|
+
const { componentName: componentName$R, create: create$18 } = createComponent("actionsheet");
|
|
2422
|
+
const _sfc_main$18 = create$18({
|
|
2325
2423
|
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
2326
2424
|
cancelTxt: {
|
|
2327
2425
|
type: String,
|
|
@@ -2359,7 +2457,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2359
2457
|
emits: ["cancel", "choose", "update:visible"],
|
|
2360
2458
|
setup(props, { emit }) {
|
|
2361
2459
|
const classes = vue.computed(() => {
|
|
2362
|
-
const prefixCls = componentName$
|
|
2460
|
+
const prefixCls = componentName$R;
|
|
2363
2461
|
return {
|
|
2364
2462
|
[prefixCls]: true
|
|
2365
2463
|
};
|
|
@@ -2390,12 +2488,12 @@ var __publicField = (obj, key, value) => {
|
|
|
2390
2488
|
};
|
|
2391
2489
|
}
|
|
2392
2490
|
});
|
|
2393
|
-
const _hoisted_1$
|
|
2394
|
-
const _hoisted_2$
|
|
2491
|
+
const _hoisted_1$S = { class: "nut-actionsheet-panel" };
|
|
2492
|
+
const _hoisted_2$I = {
|
|
2395
2493
|
key: 0,
|
|
2396
2494
|
class: "nut-actionsheet-title"
|
|
2397
2495
|
};
|
|
2398
|
-
const _hoisted_3$
|
|
2496
|
+
const _hoisted_3$y = {
|
|
2399
2497
|
key: 1,
|
|
2400
2498
|
class: "nut-actionsheet-item desc"
|
|
2401
2499
|
};
|
|
@@ -2405,7 +2503,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2405
2503
|
};
|
|
2406
2504
|
const _hoisted_5$i = ["onClick"];
|
|
2407
2505
|
const _hoisted_6$f = { class: "subdesc" };
|
|
2408
|
-
function _sfc_render
|
|
2506
|
+
function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2409
2507
|
const _component_nut_popup = vue.resolveComponent("nut-popup");
|
|
2410
2508
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
2411
2509
|
class: vue.normalizeClass(_ctx.classes)
|
|
@@ -2418,9 +2516,9 @@ var __publicField = (obj, key, value) => {
|
|
|
2418
2516
|
onClickOverlay: _ctx.close
|
|
2419
2517
|
}, {
|
|
2420
2518
|
default: vue.withCtx(() => [
|
|
2421
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
2422
|
-
_ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
2423
|
-
_ctx.description ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$
|
|
2519
|
+
vue.createElementVNode("view", _hoisted_1$S, [
|
|
2520
|
+
_ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$I, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
|
|
2521
|
+
_ctx.description ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$y, vue.toDisplayString(_ctx.description), 1)) : vue.createCommentVNode("", true),
|
|
2424
2522
|
_ctx.menuItems.length ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$q, [
|
|
2425
2523
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.menuItems, (item, index) => {
|
|
2426
2524
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -2445,9 +2543,9 @@ var __publicField = (obj, key, value) => {
|
|
|
2445
2543
|
}, 8, ["visible", "onClickOverlay"])
|
|
2446
2544
|
], 2);
|
|
2447
2545
|
}
|
|
2448
|
-
var ActionSheet = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2449
|
-
const { componentName: componentName$
|
|
2450
|
-
const _sfc_main$
|
|
2546
|
+
var ActionSheet = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["render", _sfc_render$12]]);
|
|
2547
|
+
const { componentName: componentName$Q, create: create$17 } = createComponent("backtop");
|
|
2548
|
+
const _sfc_main$17 = create$17({
|
|
2451
2549
|
props: {
|
|
2452
2550
|
bottom: {
|
|
2453
2551
|
type: Number,
|
|
@@ -2488,7 +2586,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2488
2586
|
keepAlive: false
|
|
2489
2587
|
});
|
|
2490
2588
|
const classes = vue.computed(() => {
|
|
2491
|
-
const prefixCls = componentName$
|
|
2589
|
+
const prefixCls = componentName$Q;
|
|
2492
2590
|
return {
|
|
2493
2591
|
[prefixCls]: true,
|
|
2494
2592
|
show: state.backTop
|
|
@@ -2579,7 +2677,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2579
2677
|
};
|
|
2580
2678
|
}
|
|
2581
2679
|
});
|
|
2582
|
-
function _sfc_render$
|
|
2680
|
+
function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2583
2681
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
2584
2682
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
2585
2683
|
class: vue.normalizeClass(_ctx.classes),
|
|
@@ -2595,9 +2693,9 @@ var __publicField = (obj, key, value) => {
|
|
|
2595
2693
|
])
|
|
2596
2694
|
], 6);
|
|
2597
2695
|
}
|
|
2598
|
-
var BackTop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2599
|
-
const { create: create$
|
|
2600
|
-
const _sfc_main$
|
|
2696
|
+
var BackTop = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["render", _sfc_render$11]]);
|
|
2697
|
+
const { create: create$16 } = createComponent("collapse");
|
|
2698
|
+
const _sfc_main$16 = create$16({
|
|
2601
2699
|
props: {
|
|
2602
2700
|
active: {
|
|
2603
2701
|
type: [String, Number, Array]
|
|
@@ -2670,14 +2768,14 @@ var __publicField = (obj, key, value) => {
|
|
|
2670
2768
|
});
|
|
2671
2769
|
}
|
|
2672
2770
|
});
|
|
2673
|
-
function _sfc_render$
|
|
2771
|
+
function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2674
2772
|
return vue.openBlock(), vue.createElementBlock("view", null, [
|
|
2675
2773
|
vue.renderSlot(_ctx.$slots, "default")
|
|
2676
2774
|
]);
|
|
2677
2775
|
}
|
|
2678
|
-
var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2679
|
-
const { create: create$
|
|
2680
|
-
const _sfc_main$
|
|
2776
|
+
var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_render$10]]);
|
|
2777
|
+
const { create: create$15, componentName: componentName$P } = createComponent("collapse-item");
|
|
2778
|
+
const _sfc_main$15 = create$15({
|
|
2681
2779
|
props: {
|
|
2682
2780
|
title: {
|
|
2683
2781
|
type: String,
|
|
@@ -2700,11 +2798,11 @@ var __publicField = (obj, key, value) => {
|
|
|
2700
2798
|
type: Object
|
|
2701
2799
|
}
|
|
2702
2800
|
},
|
|
2703
|
-
setup(props) {
|
|
2801
|
+
setup(props, ctx) {
|
|
2704
2802
|
const collapse = vue.inject("collapseParent");
|
|
2705
2803
|
const parent = vue.reactive(collapse);
|
|
2706
2804
|
const classes = vue.computed(() => {
|
|
2707
|
-
const prefixCls = componentName$
|
|
2805
|
+
const prefixCls = componentName$P;
|
|
2708
2806
|
return {
|
|
2709
2807
|
[prefixCls]: true,
|
|
2710
2808
|
[`${prefixCls}-icon`]: parent.props.icon
|
|
@@ -2744,7 +2842,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2744
2842
|
if (!wrapperRefEle || !contentRefEle) {
|
|
2745
2843
|
return;
|
|
2746
2844
|
}
|
|
2747
|
-
const offsetHeight = contentRefEle.offsetHeight;
|
|
2845
|
+
const offsetHeight = contentRefEle.offsetHeight || "auto";
|
|
2748
2846
|
if (offsetHeight) {
|
|
2749
2847
|
const contentHeight = `${offsetHeight}px`;
|
|
2750
2848
|
wrapperRefEle.style.willChange = "height";
|
|
@@ -2803,6 +2901,14 @@ var __publicField = (obj, key, value) => {
|
|
|
2803
2901
|
proxyData.openExpanded = true;
|
|
2804
2902
|
}
|
|
2805
2903
|
});
|
|
2904
|
+
vue.watch(() => {
|
|
2905
|
+
var _a, _b;
|
|
2906
|
+
return (_b = (_a = ctx == null ? void 0 : ctx.slots) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a);
|
|
2907
|
+
}, () => {
|
|
2908
|
+
setTimeout(() => {
|
|
2909
|
+
animation();
|
|
2910
|
+
}, 300);
|
|
2911
|
+
});
|
|
2806
2912
|
vue.onMounted(() => {
|
|
2807
2913
|
const { name } = props;
|
|
2808
2914
|
const active = parent && parent.props.active;
|
|
@@ -2829,9 +2935,9 @@ var __publicField = (obj, key, value) => {
|
|
|
2829
2935
|
});
|
|
2830
2936
|
}
|
|
2831
2937
|
});
|
|
2832
|
-
const _hoisted_1$
|
|
2833
|
-
const _hoisted_2$
|
|
2834
|
-
const _hoisted_3$
|
|
2938
|
+
const _hoisted_1$R = { class: "collapse-title" };
|
|
2939
|
+
const _hoisted_2$H = { class: "collapse-title-value" };
|
|
2940
|
+
const _hoisted_3$x = ["innerHTML"];
|
|
2835
2941
|
const _hoisted_4$p = {
|
|
2836
2942
|
key: 0,
|
|
2837
2943
|
class: "subTitle"
|
|
@@ -2845,7 +2951,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2845
2951
|
class: "collapse-content",
|
|
2846
2952
|
ref: "contentRef"
|
|
2847
2953
|
};
|
|
2848
|
-
function _sfc_render
|
|
2954
|
+
function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2849
2955
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
2850
2956
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
2851
2957
|
class: vue.normalizeClass(_ctx.classes)
|
|
@@ -2854,9 +2960,9 @@ var __publicField = (obj, key, value) => {
|
|
|
2854
2960
|
class: vue.normalizeClass(["collapse-item", { "item-expanded": _ctx.openExpanded }, { "nut-collapse-item-disabled": _ctx.disabled }]),
|
|
2855
2961
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggleOpen && _ctx.toggleOpen(...args))
|
|
2856
2962
|
}, [
|
|
2857
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
2963
|
+
vue.createElementVNode("view", _hoisted_1$R, [
|
|
2858
2964
|
vue.createElementVNode("view", null, [
|
|
2859
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
2965
|
+
vue.createElementVNode("view", _hoisted_2$H, [
|
|
2860
2966
|
_ctx.titleIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
2861
2967
|
key: 0,
|
|
2862
2968
|
name: _ctx.titleIcon,
|
|
@@ -2868,7 +2974,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2868
2974
|
key: 2,
|
|
2869
2975
|
innerHTML: _ctx.title,
|
|
2870
2976
|
class: "collapse-icon-title"
|
|
2871
|
-
}, null, 8, _hoisted_3$
|
|
2977
|
+
}, null, 8, _hoisted_3$x))
|
|
2872
2978
|
])
|
|
2873
2979
|
])
|
|
2874
2980
|
]),
|
|
@@ -2895,7 +3001,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2895
3001
|
], 512)
|
|
2896
3002
|
], 2);
|
|
2897
3003
|
}
|
|
2898
|
-
var CollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3004
|
+
var CollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["render", _sfc_render$$]]);
|
|
2899
3005
|
const _window = window;
|
|
2900
3006
|
function requestAniFrame() {
|
|
2901
3007
|
if (typeof _window !== "undefined") {
|
|
@@ -2909,8 +3015,8 @@ var __publicField = (obj, key, value) => {
|
|
|
2909
3015
|
}
|
|
2910
3016
|
}
|
|
2911
3017
|
var requestAniFrame$1 = requestAniFrame();
|
|
2912
|
-
const { componentName: componentName$
|
|
2913
|
-
const _sfc_main$
|
|
3018
|
+
const { componentName: componentName$O, create: create$14 } = createComponent("drag");
|
|
3019
|
+
const _sfc_main$14 = create$14({
|
|
2914
3020
|
props: {
|
|
2915
3021
|
attract: {
|
|
2916
3022
|
type: Boolean,
|
|
@@ -2955,7 +3061,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2955
3061
|
}
|
|
2956
3062
|
});
|
|
2957
3063
|
const classes = vue.computed(() => {
|
|
2958
|
-
const prefixCls = componentName$
|
|
3064
|
+
const prefixCls = componentName$O;
|
|
2959
3065
|
return {
|
|
2960
3066
|
[prefixCls]: true
|
|
2961
3067
|
};
|
|
@@ -3090,7 +3196,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3090
3196
|
};
|
|
3091
3197
|
}
|
|
3092
3198
|
});
|
|
3093
|
-
function _sfc_render$
|
|
3199
|
+
function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3094
3200
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
3095
3201
|
class: vue.normalizeClass(_ctx.classes),
|
|
3096
3202
|
ref: "myDrag",
|
|
@@ -3101,9 +3207,9 @@ var __publicField = (obj, key, value) => {
|
|
|
3101
3207
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3102
3208
|
], 34);
|
|
3103
3209
|
}
|
|
3104
|
-
var Drag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3105
|
-
const { componentName: componentName$
|
|
3106
|
-
const _sfc_main$
|
|
3210
|
+
var Drag = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_render$_]]);
|
|
3211
|
+
const { componentName: componentName$N, create: create$13 } = createComponent("dialog");
|
|
3212
|
+
const _sfc_main$13 = create$13({
|
|
3107
3213
|
inheritAttrs: false,
|
|
3108
3214
|
components: {
|
|
3109
3215
|
[Popup.name]: Popup,
|
|
@@ -3178,7 +3284,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3178
3284
|
});
|
|
3179
3285
|
const classes = vue.computed(() => {
|
|
3180
3286
|
return {
|
|
3181
|
-
[componentName$
|
|
3287
|
+
[componentName$N]: true
|
|
3182
3288
|
};
|
|
3183
3289
|
});
|
|
3184
3290
|
const update = (val) => {
|
|
@@ -3208,12 +3314,12 @@ var __publicField = (obj, key, value) => {
|
|
|
3208
3314
|
};
|
|
3209
3315
|
}
|
|
3210
3316
|
});
|
|
3211
|
-
const _hoisted_1$
|
|
3317
|
+
const _hoisted_1$Q = {
|
|
3212
3318
|
key: 0,
|
|
3213
3319
|
class: "nut-dialog__header"
|
|
3214
3320
|
};
|
|
3215
|
-
const _hoisted_2$
|
|
3216
|
-
function _sfc_render$
|
|
3321
|
+
const _hoisted_2$G = ["innerHTML"];
|
|
3322
|
+
function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3217
3323
|
const _component_nut_button = vue.resolveComponent("nut-button");
|
|
3218
3324
|
const _component_nut_popup = vue.resolveComponent("nut-popup");
|
|
3219
3325
|
return vue.openBlock(), vue.createBlock(_component_nut_popup, {
|
|
@@ -3230,7 +3336,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3230
3336
|
vue.createElementVNode("view", {
|
|
3231
3337
|
class: vue.normalizeClass(_ctx.classes)
|
|
3232
3338
|
}, [
|
|
3233
|
-
_ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
3339
|
+
_ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$Q, [
|
|
3234
3340
|
_ctx.$slots.header ? vue.renderSlot(_ctx.$slots, "header", { key: 0 }) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
3235
3341
|
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
|
3236
3342
|
], 64))
|
|
@@ -3242,7 +3348,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3242
3348
|
_ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : (vue.openBlock(), vue.createElementBlock("view", {
|
|
3243
3349
|
key: 1,
|
|
3244
3350
|
innerHTML: _ctx.content
|
|
3245
|
-
}, null, 8, _hoisted_2$
|
|
3351
|
+
}, null, 8, _hoisted_2$G))
|
|
3246
3352
|
], 4),
|
|
3247
3353
|
!_ctx.noFooter ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
3248
3354
|
key: 1,
|
|
@@ -3282,7 +3388,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3282
3388
|
_: 3
|
|
3283
3389
|
}, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "onClickOverlay", "onClickCloseIcon"]);
|
|
3284
3390
|
}
|
|
3285
|
-
var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3391
|
+
var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$Z]]);
|
|
3286
3392
|
class DialogOptions {
|
|
3287
3393
|
constructor() {
|
|
3288
3394
|
__publicField(this, "title", "");
|
|
@@ -3356,8 +3462,8 @@ var __publicField = (obj, key, value) => {
|
|
|
3356
3462
|
app.use(Dialog);
|
|
3357
3463
|
app.config.globalProperties.$dialog = _Dialog;
|
|
3358
3464
|
};
|
|
3359
|
-
const { componentName: componentName$
|
|
3360
|
-
const _sfc_main
|
|
3465
|
+
const { componentName: componentName$M, create: create$12 } = createComponent("infiniteloading");
|
|
3466
|
+
const _sfc_main$12 = create$12({
|
|
3361
3467
|
props: {
|
|
3362
3468
|
hasMore: {
|
|
3363
3469
|
type: Boolean,
|
|
@@ -3419,7 +3525,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3419
3525
|
distance: 0
|
|
3420
3526
|
});
|
|
3421
3527
|
const classes = vue.computed(() => {
|
|
3422
|
-
const prefixCls = componentName$
|
|
3528
|
+
const prefixCls = componentName$M;
|
|
3423
3529
|
return {
|
|
3424
3530
|
[prefixCls]: true
|
|
3425
3531
|
};
|
|
@@ -3543,9 +3649,9 @@ var __publicField = (obj, key, value) => {
|
|
|
3543
3649
|
});
|
|
3544
3650
|
}
|
|
3545
3651
|
});
|
|
3546
|
-
const _hoisted_1$
|
|
3547
|
-
const _hoisted_2$
|
|
3548
|
-
const _hoisted_3$
|
|
3652
|
+
const _hoisted_1$P = { class: "top-box" };
|
|
3653
|
+
const _hoisted_2$F = { class: "top-text" };
|
|
3654
|
+
const _hoisted_3$w = { class: "nut-infinite-container" };
|
|
3549
3655
|
const _hoisted_4$o = { class: "nut-infinite-bottom" };
|
|
3550
3656
|
const _hoisted_5$g = {
|
|
3551
3657
|
key: 0,
|
|
@@ -3556,7 +3662,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3556
3662
|
key: 1,
|
|
3557
3663
|
class: "tips"
|
|
3558
3664
|
};
|
|
3559
|
-
function _sfc_render$
|
|
3665
|
+
function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3560
3666
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
3561
3667
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
3562
3668
|
class: vue.normalizeClass(_ctx.classes),
|
|
@@ -3570,15 +3676,15 @@ var __publicField = (obj, key, value) => {
|
|
|
3570
3676
|
ref: "refreshTop",
|
|
3571
3677
|
style: vue.normalizeStyle(_ctx.getStyle)
|
|
3572
3678
|
}, [
|
|
3573
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
3679
|
+
vue.createElementVNode("view", _hoisted_1$P, [
|
|
3574
3680
|
vue.createVNode(_component_nut_icon, {
|
|
3575
3681
|
class: "top-img",
|
|
3576
3682
|
name: _ctx.pullIcon
|
|
3577
3683
|
}, null, 8, ["name"]),
|
|
3578
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
3684
|
+
vue.createElementVNode("view", _hoisted_2$F, vue.toDisplayString(_ctx.pullTxt), 1)
|
|
3579
3685
|
])
|
|
3580
3686
|
], 4),
|
|
3581
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
3687
|
+
vue.createElementVNode("view", _hoisted_3$w, [
|
|
3582
3688
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3583
3689
|
]),
|
|
3584
3690
|
vue.createElementVNode("view", _hoisted_4$o, [
|
|
@@ -3592,9 +3698,9 @@ var __publicField = (obj, key, value) => {
|
|
|
3592
3698
|
])
|
|
3593
3699
|
], 34);
|
|
3594
3700
|
}
|
|
3595
|
-
var InfiniteLoading = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
3596
|
-
const { componentName: componentName$
|
|
3597
|
-
const _sfc_main$
|
|
3701
|
+
var InfiniteLoading = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$Y]]);
|
|
3702
|
+
const { componentName: componentName$L, create: create$11 } = createComponent("notify");
|
|
3703
|
+
const _sfc_main$11 = create$11({
|
|
3598
3704
|
components: {
|
|
3599
3705
|
[Popup.name]: Popup
|
|
3600
3706
|
},
|
|
@@ -3664,7 +3770,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3664
3770
|
return { state, hide, onAfterLeave, clickCover };
|
|
3665
3771
|
}
|
|
3666
3772
|
});
|
|
3667
|
-
function _sfc_render$
|
|
3773
|
+
function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3668
3774
|
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
3669
3775
|
name: "toast-fade",
|
|
3670
3776
|
onAfterLeave: _ctx.onAfterLeave
|
|
@@ -3685,7 +3791,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3685
3791
|
_: 3
|
|
3686
3792
|
}, 8, ["onAfterLeave"]);
|
|
3687
3793
|
}
|
|
3688
|
-
var Notify = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3794
|
+
var Notify = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$X]]);
|
|
3689
3795
|
const defaultOptions$1 = {
|
|
3690
3796
|
type: "base",
|
|
3691
3797
|
showPopup: false,
|
|
@@ -3823,8 +3929,8 @@ var __publicField = (obj, key, value) => {
|
|
|
3823
3929
|
height: 0
|
|
3824
3930
|
};
|
|
3825
3931
|
};
|
|
3826
|
-
const { componentName: componentName$
|
|
3827
|
-
const _sfc_main$
|
|
3932
|
+
const { componentName: componentName$K, create: create$10 } = createComponent("range");
|
|
3933
|
+
const _sfc_main$10 = create$10({
|
|
3828
3934
|
props: {
|
|
3829
3935
|
range: {
|
|
3830
3936
|
type: Boolean,
|
|
@@ -3869,7 +3975,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3869
3975
|
const touch = useTouch();
|
|
3870
3976
|
const scope = vue.computed(() => Number(props.max) - Number(props.min));
|
|
3871
3977
|
const classes = vue.computed(() => {
|
|
3872
|
-
const prefixCls = componentName$
|
|
3978
|
+
const prefixCls = componentName$K;
|
|
3873
3979
|
return {
|
|
3874
3980
|
[prefixCls]: true,
|
|
3875
3981
|
[`${prefixCls}-disabled`]: props.disabled,
|
|
@@ -4020,12 +4126,12 @@ var __publicField = (obj, key, value) => {
|
|
|
4020
4126
|
});
|
|
4021
4127
|
}
|
|
4022
4128
|
});
|
|
4023
|
-
const _hoisted_1$
|
|
4024
|
-
const _hoisted_2$
|
|
4129
|
+
const _hoisted_1$O = { class: "nut-range-container" };
|
|
4130
|
+
const _hoisted_2$E = {
|
|
4025
4131
|
key: 0,
|
|
4026
4132
|
class: "min"
|
|
4027
4133
|
};
|
|
4028
|
-
const _hoisted_3$
|
|
4134
|
+
const _hoisted_3$v = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
|
|
4029
4135
|
const _hoisted_4$n = {
|
|
4030
4136
|
key: 0,
|
|
4031
4137
|
class: "number"
|
|
@@ -4039,9 +4145,9 @@ var __publicField = (obj, key, value) => {
|
|
|
4039
4145
|
key: 1,
|
|
4040
4146
|
class: "max"
|
|
4041
4147
|
};
|
|
4042
|
-
function _sfc_render$
|
|
4043
|
-
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
4044
|
-
!_ctx.hiddenRange ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
4148
|
+
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4149
|
+
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$O, [
|
|
4150
|
+
!_ctx.hiddenRange ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$E, vue.toDisplayString(+_ctx.min), 1)) : vue.createCommentVNode("", true),
|
|
4045
4151
|
vue.createElementVNode("view", {
|
|
4046
4152
|
ref: "root",
|
|
4047
4153
|
style: vue.normalizeStyle(_ctx.wrapperStyle),
|
|
@@ -4083,7 +4189,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4083
4189
|
}, [
|
|
4084
4190
|
!_ctx.hiddenTag ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$n, vue.toDisplayString(_ctx.curValue(index)), 1)) : vue.createCommentVNode("", true)
|
|
4085
4191
|
], 4))
|
|
4086
|
-
], 42, _hoisted_3$
|
|
4192
|
+
], 42, _hoisted_3$v);
|
|
4087
4193
|
}), 64)) : (vue.openBlock(), vue.createElementBlock("view", {
|
|
4088
4194
|
key: 1,
|
|
4089
4195
|
role: "slider",
|
|
@@ -4106,7 +4212,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4106
4212
|
class: "nut-range-button",
|
|
4107
4213
|
style: vue.normalizeStyle(_ctx.buttonStyle)
|
|
4108
4214
|
}, [
|
|
4109
|
-
!_ctx.hiddenTag ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$c, vue.toDisplayString(_ctx.curValue(
|
|
4215
|
+
!_ctx.hiddenTag ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$c, vue.toDisplayString(_ctx.curValue()), 1)) : vue.createCommentVNode("", true)
|
|
4110
4216
|
], 4))
|
|
4111
4217
|
], 40, _hoisted_5$f))
|
|
4112
4218
|
], 4)
|
|
@@ -4114,9 +4220,9 @@ var __publicField = (obj, key, value) => {
|
|
|
4114
4220
|
!_ctx.hiddenRange ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$8, vue.toDisplayString(+_ctx.max), 1)) : vue.createCommentVNode("", true)
|
|
4115
4221
|
]);
|
|
4116
4222
|
}
|
|
4117
|
-
var Range = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4118
|
-
const { create: create
|
|
4119
|
-
const _sfc_main
|
|
4223
|
+
var Range = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$W]]);
|
|
4224
|
+
const { create: create$$, componentName: componentName$J } = createComponent("steps");
|
|
4225
|
+
const _sfc_main$$ = create$$({
|
|
4120
4226
|
props: {
|
|
4121
4227
|
direction: {
|
|
4122
4228
|
type: String,
|
|
@@ -4136,7 +4242,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4136
4242
|
children: []
|
|
4137
4243
|
});
|
|
4138
4244
|
const classes = vue.computed(() => {
|
|
4139
|
-
const prefixCls = componentName$
|
|
4245
|
+
const prefixCls = componentName$J;
|
|
4140
4246
|
return {
|
|
4141
4247
|
[prefixCls]: true,
|
|
4142
4248
|
[`${prefixCls}-${props.direction}`]: true,
|
|
@@ -4159,8 +4265,8 @@ var __publicField = (obj, key, value) => {
|
|
|
4159
4265
|
};
|
|
4160
4266
|
}
|
|
4161
4267
|
});
|
|
4162
|
-
const { create: create$
|
|
4163
|
-
const _sfc_main$
|
|
4268
|
+
const { create: create$_, componentName: componentName$I } = createComponent("step");
|
|
4269
|
+
const _sfc_main$_ = create$_({
|
|
4164
4270
|
props: {
|
|
4165
4271
|
title: {
|
|
4166
4272
|
type: String,
|
|
@@ -4201,7 +4307,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4201
4307
|
return getCurrentStatus();
|
|
4202
4308
|
});
|
|
4203
4309
|
const classes = vue.computed(() => {
|
|
4204
|
-
const prefixCls = componentName$
|
|
4310
|
+
const prefixCls = componentName$I;
|
|
4205
4311
|
return {
|
|
4206
4312
|
[prefixCls]: true,
|
|
4207
4313
|
[`${prefixCls}-${status.value}`]: true
|
|
@@ -4213,22 +4319,22 @@ var __publicField = (obj, key, value) => {
|
|
|
4213
4319
|
});
|
|
4214
4320
|
}
|
|
4215
4321
|
});
|
|
4216
|
-
const _hoisted_1$
|
|
4217
|
-
const _hoisted_2$
|
|
4218
|
-
const _hoisted_3$
|
|
4322
|
+
const _hoisted_1$N = { class: "nut-step-head" };
|
|
4323
|
+
const _hoisted_2$D = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-step-line" }, null, -1);
|
|
4324
|
+
const _hoisted_3$u = {
|
|
4219
4325
|
key: 2,
|
|
4220
4326
|
class: "nut-step-inner"
|
|
4221
4327
|
};
|
|
4222
4328
|
const _hoisted_4$m = { class: "nut-step-main" };
|
|
4223
4329
|
const _hoisted_5$e = { class: "nut-step-title" };
|
|
4224
4330
|
const _hoisted_6$b = ["innerHTML"];
|
|
4225
|
-
function _sfc_render$
|
|
4331
|
+
function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4226
4332
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
4227
4333
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
4228
4334
|
class: vue.normalizeClass(_ctx.classes)
|
|
4229
4335
|
}, [
|
|
4230
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
4231
|
-
_hoisted_2$
|
|
4336
|
+
vue.createElementVNode("view", _hoisted_1$N, [
|
|
4337
|
+
_hoisted_2$D,
|
|
4232
4338
|
vue.createElementVNode("view", {
|
|
4233
4339
|
class: vue.normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
|
|
4234
4340
|
}, [
|
|
@@ -4238,7 +4344,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4238
4344
|
color: _ctx.iconColor,
|
|
4239
4345
|
name: _ctx.icon,
|
|
4240
4346
|
size: _ctx.size
|
|
4241
|
-
}, null, 8, ["color", "name", "size"])) : _ctx.dot ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [], 64)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$
|
|
4347
|
+
}, null, 8, ["color", "name", "size"])) : _ctx.dot ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [], 64)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$u, vue.toDisplayString(_ctx.index), 1))
|
|
4242
4348
|
], 2)
|
|
4243
4349
|
]),
|
|
4244
4350
|
vue.createElementVNode("view", _hoisted_4$m, [
|
|
@@ -4251,9 +4357,9 @@ var __publicField = (obj, key, value) => {
|
|
|
4251
4357
|
])
|
|
4252
4358
|
], 2);
|
|
4253
4359
|
}
|
|
4254
|
-
var Step = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4255
|
-
const { componentName: componentName$
|
|
4256
|
-
const _sfc_main$
|
|
4360
|
+
var Step = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$V]]);
|
|
4361
|
+
const { componentName: componentName$H, create: create$Z } = createComponent("switch");
|
|
4362
|
+
const _sfc_main$Z = create$Z({
|
|
4257
4363
|
props: {
|
|
4258
4364
|
modelValue: {
|
|
4259
4365
|
type: [String, Number, Boolean],
|
|
@@ -4308,7 +4414,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4308
4414
|
setup(props, { emit }) {
|
|
4309
4415
|
const isActive = vue.computed(() => props.modelValue === props.activeValue);
|
|
4310
4416
|
const classes = vue.computed(() => {
|
|
4311
|
-
const prefixCls = componentName$
|
|
4417
|
+
const prefixCls = componentName$H;
|
|
4312
4418
|
return {
|
|
4313
4419
|
[prefixCls]: true,
|
|
4314
4420
|
[isActive.value ? "switch-open" : "switch-close"]: true,
|
|
@@ -4336,15 +4442,15 @@ var __publicField = (obj, key, value) => {
|
|
|
4336
4442
|
};
|
|
4337
4443
|
}
|
|
4338
4444
|
});
|
|
4339
|
-
const _hoisted_1$
|
|
4340
|
-
function _sfc_render$
|
|
4445
|
+
const _hoisted_1$M = { class: "switch-button" };
|
|
4446
|
+
function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4341
4447
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
4342
4448
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
4343
4449
|
class: vue.normalizeClass(_ctx.classes),
|
|
4344
4450
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args)),
|
|
4345
4451
|
style: vue.normalizeStyle(_ctx.style)
|
|
4346
4452
|
}, [
|
|
4347
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
4453
|
+
vue.createElementVNode("view", _hoisted_1$M, [
|
|
4348
4454
|
_ctx.loading ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
4349
4455
|
key: 0,
|
|
4350
4456
|
name: _ctx.name,
|
|
@@ -4362,11 +4468,11 @@ var __publicField = (obj, key, value) => {
|
|
|
4362
4468
|
])
|
|
4363
4469
|
], 6);
|
|
4364
4470
|
}
|
|
4365
|
-
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4366
|
-
const { create: create$
|
|
4367
|
-
const _sfc_main$
|
|
4471
|
+
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$U]]);
|
|
4472
|
+
const { create: create$Y } = createComponent("toast");
|
|
4473
|
+
const _sfc_main$Y = create$Y({
|
|
4368
4474
|
components: {
|
|
4369
|
-
[_sfc_main$
|
|
4475
|
+
[_sfc_main$1o.name]: _sfc_main$1o
|
|
4370
4476
|
},
|
|
4371
4477
|
props: {
|
|
4372
4478
|
id: String,
|
|
@@ -4492,16 +4598,16 @@ var __publicField = (obj, key, value) => {
|
|
|
4492
4598
|
};
|
|
4493
4599
|
}
|
|
4494
4600
|
});
|
|
4495
|
-
const _hoisted_1$
|
|
4601
|
+
const _hoisted_1$L = {
|
|
4496
4602
|
key: 0,
|
|
4497
4603
|
class: "nut-toast-icon-wrapper"
|
|
4498
4604
|
};
|
|
4499
|
-
const _hoisted_2$
|
|
4605
|
+
const _hoisted_2$C = {
|
|
4500
4606
|
key: 1,
|
|
4501
4607
|
class: "nut-toast-title"
|
|
4502
4608
|
};
|
|
4503
|
-
const _hoisted_3$
|
|
4504
|
-
function _sfc_render$
|
|
4609
|
+
const _hoisted_3$t = ["innerHTML"];
|
|
4610
|
+
function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4505
4611
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
4506
4612
|
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
4507
4613
|
name: "toast-fade",
|
|
@@ -4523,18 +4629,18 @@ var __publicField = (obj, key, value) => {
|
|
|
4523
4629
|
"background-color": _ctx.bgColor
|
|
4524
4630
|
})
|
|
4525
4631
|
}, [
|
|
4526
|
-
_ctx.hasIcon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
4632
|
+
_ctx.hasIcon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$L, [
|
|
4527
4633
|
vue.createVNode(_component_nut_icon, {
|
|
4528
4634
|
size: "20",
|
|
4529
4635
|
color: "#ffffff",
|
|
4530
4636
|
name: _ctx.icon
|
|
4531
4637
|
}, null, 8, ["name"])
|
|
4532
4638
|
])) : vue.createCommentVNode("", true),
|
|
4533
|
-
_ctx.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
4639
|
+
_ctx.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$C, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
|
|
4534
4640
|
vue.createElementVNode("view", {
|
|
4535
4641
|
class: "nut-toast-text",
|
|
4536
4642
|
innerHTML: _ctx.msg
|
|
4537
|
-
}, null, 8, _hoisted_3$
|
|
4643
|
+
}, null, 8, _hoisted_3$t)
|
|
4538
4644
|
], 4)
|
|
4539
4645
|
], 6), [
|
|
4540
4646
|
[vue.vShow, _ctx.state.mounted]
|
|
@@ -4543,7 +4649,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4543
4649
|
_: 1
|
|
4544
4650
|
}, 8, ["onAfterLeave"]);
|
|
4545
4651
|
}
|
|
4546
|
-
var Toast = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4652
|
+
var Toast = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$T]]);
|
|
4547
4653
|
const defaultOptions = {
|
|
4548
4654
|
msg: "",
|
|
4549
4655
|
id: "",
|
|
@@ -4660,8 +4766,8 @@ var __publicField = (obj, key, value) => {
|
|
|
4660
4766
|
app.config.globalProperties.$toast = ToastFunction;
|
|
4661
4767
|
}
|
|
4662
4768
|
};
|
|
4663
|
-
const { create: create$
|
|
4664
|
-
const _sfc_main$
|
|
4769
|
+
const { create: create$X } = createComponent("progress");
|
|
4770
|
+
const _sfc_main$X = create$X({
|
|
4665
4771
|
props: {
|
|
4666
4772
|
percentage: {
|
|
4667
4773
|
type: [Number, String],
|
|
@@ -4737,10 +4843,10 @@ var __publicField = (obj, key, value) => {
|
|
|
4737
4843
|
};
|
|
4738
4844
|
}
|
|
4739
4845
|
});
|
|
4740
|
-
const _hoisted_1$
|
|
4741
|
-
function _sfc_render$
|
|
4846
|
+
const _hoisted_1$K = { class: "nut-progress" };
|
|
4847
|
+
function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4742
4848
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
4743
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4849
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$K, [
|
|
4744
4850
|
vue.createElementVNode("div", {
|
|
4745
4851
|
class: vue.normalizeClass(["nut-progress-outer", [
|
|
4746
4852
|
_ctx.showText && !_ctx.textInside ? "nut-progress-outer-part" : "",
|
|
@@ -4781,9 +4887,9 @@ var __publicField = (obj, key, value) => {
|
|
|
4781
4887
|
], 4)) : vue.createCommentVNode("", true)
|
|
4782
4888
|
]);
|
|
4783
4889
|
}
|
|
4784
|
-
var Progress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4785
|
-
const { componentName: componentName$
|
|
4786
|
-
const _sfc_main$
|
|
4890
|
+
var Progress = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$S]]);
|
|
4891
|
+
const { componentName: componentName$G, create: create$W } = createComponent("circleprogress");
|
|
4892
|
+
const _sfc_main$W = create$W({
|
|
4787
4893
|
props: {
|
|
4788
4894
|
progress: {
|
|
4789
4895
|
type: [Number, String],
|
|
@@ -4805,7 +4911,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4805
4911
|
},
|
|
4806
4912
|
setup(props, { emit }) {
|
|
4807
4913
|
const classes = vue.computed(() => {
|
|
4808
|
-
const prefixCls = componentName$
|
|
4914
|
+
const prefixCls = componentName$G;
|
|
4809
4915
|
return {
|
|
4810
4916
|
[prefixCls]: true
|
|
4811
4917
|
};
|
|
@@ -4839,11 +4945,11 @@ var __publicField = (obj, key, value) => {
|
|
|
4839
4945
|
};
|
|
4840
4946
|
}
|
|
4841
4947
|
});
|
|
4842
|
-
const _hoisted_1$
|
|
4843
|
-
const _hoisted_2$
|
|
4844
|
-
const _hoisted_3$
|
|
4948
|
+
const _hoisted_1$J = ["height", "width"];
|
|
4949
|
+
const _hoisted_2$B = ["r", "cx", "cy", "stroke", "stroke-width"];
|
|
4950
|
+
const _hoisted_3$s = ["r", "cx", "cy", "stroke", "stroke-dasharray", "stroke-width", "transform"];
|
|
4845
4951
|
const _hoisted_4$l = { class: "nut-circleprogress-content" };
|
|
4846
|
-
function _sfc_render$
|
|
4952
|
+
function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4847
4953
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4848
4954
|
class: vue.normalizeClass(_ctx.classes),
|
|
4849
4955
|
style: vue.normalizeStyle({ height: _ctx.option.size + "px", width: _ctx.option.size + "px" })
|
|
@@ -4860,7 +4966,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4860
4966
|
stroke: _ctx.option.backColor,
|
|
4861
4967
|
"stroke-width": _ctx.option.strokeOutWidth,
|
|
4862
4968
|
fill: "none"
|
|
4863
|
-
}, null, 8, _hoisted_2$
|
|
4969
|
+
}, null, 8, _hoisted_2$B),
|
|
4864
4970
|
vue.createElementVNode("circle", {
|
|
4865
4971
|
r: _ctx.option.radius,
|
|
4866
4972
|
cx: _ctx.option.cx,
|
|
@@ -4872,8 +4978,8 @@ var __publicField = (obj, key, value) => {
|
|
|
4872
4978
|
transform: _ctx.option.startPosition,
|
|
4873
4979
|
"stroke-linecap": "round",
|
|
4874
4980
|
style: { "transition": "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease 0s" }
|
|
4875
|
-
}, null, 8, _hoisted_3$
|
|
4876
|
-
], 8, _hoisted_1$
|
|
4981
|
+
}, null, 8, _hoisted_3$s)
|
|
4982
|
+
], 8, _hoisted_1$J)),
|
|
4877
4983
|
vue.createElementVNode("div", _hoisted_4$l, [
|
|
4878
4984
|
!_ctx.isAuto ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
|
|
4879
4985
|
vue.createTextVNode(vue.toDisplayString(_ctx.progress) + "%", 1)
|
|
@@ -4881,9 +4987,9 @@ var __publicField = (obj, key, value) => {
|
|
|
4881
4987
|
])
|
|
4882
4988
|
], 6);
|
|
4883
4989
|
}
|
|
4884
|
-
var CircleProgress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4885
|
-
const { componentName: componentName$
|
|
4886
|
-
const _sfc_main$
|
|
4990
|
+
var CircleProgress = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$R]]);
|
|
4991
|
+
const { componentName: componentName$F, create: create$V } = createComponent("noticebar");
|
|
4992
|
+
const _sfc_main$V = create$V({
|
|
4887
4993
|
props: {
|
|
4888
4994
|
direction: {
|
|
4889
4995
|
type: String,
|
|
@@ -4949,7 +5055,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4949
5055
|
},
|
|
4950
5056
|
emits: ["click", "close"],
|
|
4951
5057
|
setup(props, { emit, slots }) {
|
|
4952
|
-
console.log("componentName", componentName$
|
|
5058
|
+
console.log("componentName", componentName$F);
|
|
4953
5059
|
const wrap = vue.ref(null);
|
|
4954
5060
|
const content = vue.ref(null);
|
|
4955
5061
|
const state = vue.reactive({
|
|
@@ -4966,7 +5072,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4966
5072
|
keepAlive: false
|
|
4967
5073
|
});
|
|
4968
5074
|
const classes = vue.computed(() => {
|
|
4969
|
-
const prefixCls = componentName$
|
|
5075
|
+
const prefixCls = componentName$F;
|
|
4970
5076
|
return {
|
|
4971
5077
|
[prefixCls]: true
|
|
4972
5078
|
};
|
|
@@ -5140,12 +5246,12 @@ var __publicField = (obj, key, value) => {
|
|
|
5140
5246
|
});
|
|
5141
5247
|
}
|
|
5142
5248
|
});
|
|
5143
|
-
const _hoisted_1$
|
|
5249
|
+
const _hoisted_1$I = {
|
|
5144
5250
|
ref: "wrap",
|
|
5145
5251
|
class: "wrap"
|
|
5146
5252
|
};
|
|
5147
|
-
const _hoisted_2$
|
|
5148
|
-
function _sfc_render$
|
|
5253
|
+
const _hoisted_2$A = ["onClick"];
|
|
5254
|
+
function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5149
5255
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
5150
5256
|
const _component_ScrollItem = vue.resolveComponent("ScrollItem");
|
|
5151
5257
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -5169,7 +5275,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5169
5275
|
color: _ctx.color
|
|
5170
5276
|
}, null, 8, ["color"])) : vue.createCommentVNode("", true)
|
|
5171
5277
|
], 4)) : vue.createCommentVNode("", true),
|
|
5172
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
5278
|
+
vue.createElementVNode("view", _hoisted_1$I, [
|
|
5173
5279
|
vue.createElementVNode("view", {
|
|
5174
5280
|
ref: "content",
|
|
5175
5281
|
class: vue.normalizeClass(["content", [_ctx.animationClass, { "nut-ellipsis": !_ctx.scrollable && !_ctx.wrapable }]]),
|
|
@@ -5178,7 +5284,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5178
5284
|
onWebkitAnimationEnd: _cache[1] || (_cache[1] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args))
|
|
5179
5285
|
}, [
|
|
5180
5286
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
5181
|
-
vue.createTextVNode(
|
|
5287
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.text), 1)
|
|
5182
5288
|
])
|
|
5183
5289
|
], 38)
|
|
5184
5290
|
], 512),
|
|
@@ -5223,7 +5329,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5223
5329
|
key: index,
|
|
5224
5330
|
style: vue.normalizeStyle({ height: _ctx.height }),
|
|
5225
5331
|
onClick: ($event) => _ctx.go(item)
|
|
5226
|
-
}, vue.toDisplayString(item), 13, _hoisted_2$
|
|
5332
|
+
}, vue.toDisplayString(item), 13, _hoisted_2$A);
|
|
5227
5333
|
}), 128))
|
|
5228
5334
|
], 4)),
|
|
5229
5335
|
vue.createElementVNode("view", {
|
|
@@ -5240,9 +5346,9 @@ var __publicField = (obj, key, value) => {
|
|
|
5240
5346
|
], 4)) : vue.createCommentVNode("", true)
|
|
5241
5347
|
], 2);
|
|
5242
5348
|
}
|
|
5243
|
-
var NoticeBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5244
|
-
const { create: create$
|
|
5245
|
-
const _sfc_main$
|
|
5349
|
+
var NoticeBar = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$Q]]);
|
|
5350
|
+
const { create: create$U } = createComponent("searchbar");
|
|
5351
|
+
const _sfc_main$U = create$U({
|
|
5246
5352
|
props: {
|
|
5247
5353
|
modelValue: {
|
|
5248
5354
|
type: [String, Number],
|
|
@@ -5333,15 +5439,15 @@ var __publicField = (obj, key, value) => {
|
|
|
5333
5439
|
});
|
|
5334
5440
|
}
|
|
5335
5441
|
});
|
|
5336
|
-
const _hoisted_1$
|
|
5442
|
+
const _hoisted_1$H = {
|
|
5337
5443
|
key: 0,
|
|
5338
5444
|
class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
|
|
5339
5445
|
};
|
|
5340
|
-
const _hoisted_2$
|
|
5446
|
+
const _hoisted_2$z = {
|
|
5341
5447
|
key: 0,
|
|
5342
5448
|
class: "nut-searchbar__search-icon nut-searchbar__iptleft-search-icon"
|
|
5343
5449
|
};
|
|
5344
|
-
const _hoisted_3$
|
|
5450
|
+
const _hoisted_3$r = { class: "nut-searchbar__input-inner" };
|
|
5345
5451
|
const _hoisted_4$k = ["type", "maxlength", "placeholder", "value"];
|
|
5346
5452
|
const _hoisted_5$d = {
|
|
5347
5453
|
key: 1,
|
|
@@ -5351,23 +5457,23 @@ var __publicField = (obj, key, value) => {
|
|
|
5351
5457
|
key: 1,
|
|
5352
5458
|
class: "nut-searchbar__search-icon nut-searchbar__right-search-icon"
|
|
5353
5459
|
};
|
|
5354
|
-
function _sfc_render$
|
|
5460
|
+
function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5355
5461
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
5356
5462
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
5357
5463
|
class: "nut-searchbar",
|
|
5358
5464
|
style: vue.normalizeStyle(_ctx.searchbarStyle)
|
|
5359
5465
|
}, [
|
|
5360
|
-
_ctx.$slots.leftout ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
5466
|
+
_ctx.$slots.leftout ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$H, [
|
|
5361
5467
|
vue.renderSlot(_ctx.$slots, "leftout")
|
|
5362
5468
|
])) : vue.createCommentVNode("", true),
|
|
5363
5469
|
vue.createElementVNode("view", {
|
|
5364
5470
|
class: "nut-searchbar__search-input",
|
|
5365
5471
|
style: vue.normalizeStyle(_ctx.inputSearchbarStyle)
|
|
5366
5472
|
}, [
|
|
5367
|
-
_ctx.$slots.leftin ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
5473
|
+
_ctx.$slots.leftin ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$z, [
|
|
5368
5474
|
vue.renderSlot(_ctx.$slots, "leftin")
|
|
5369
5475
|
])) : vue.createCommentVNode("", true),
|
|
5370
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
5476
|
+
vue.createElementVNode("view", _hoisted_3$r, [
|
|
5371
5477
|
vue.createElementVNode("form", {
|
|
5372
5478
|
action: "#",
|
|
5373
5479
|
onSubmit: _cache[3] || (_cache[3] = vue.withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
|
|
@@ -5406,14 +5512,14 @@ var __publicField = (obj, key, value) => {
|
|
|
5406
5512
|
])) : vue.createCommentVNode("", true)
|
|
5407
5513
|
], 4);
|
|
5408
5514
|
}
|
|
5409
|
-
var SearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5410
|
-
const { componentName: componentName$
|
|
5515
|
+
var SearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$P]]);
|
|
5516
|
+
const { componentName: componentName$E, create: create$T } = createComponent("empty");
|
|
5411
5517
|
const defaultStatus = {
|
|
5412
5518
|
empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
|
|
5413
5519
|
error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
|
|
5414
5520
|
network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
|
|
5415
5521
|
};
|
|
5416
|
-
const _sfc_main$
|
|
5522
|
+
const _sfc_main$T = create$T({
|
|
5417
5523
|
props: {
|
|
5418
5524
|
image: {
|
|
5419
5525
|
type: String,
|
|
@@ -5447,14 +5553,14 @@ var __publicField = (obj, key, value) => {
|
|
|
5447
5553
|
};
|
|
5448
5554
|
}
|
|
5449
5555
|
});
|
|
5450
|
-
const _hoisted_1$
|
|
5451
|
-
const _hoisted_2$
|
|
5452
|
-
const _hoisted_3$
|
|
5556
|
+
const _hoisted_1$G = { class: "nut-empty" };
|
|
5557
|
+
const _hoisted_2$y = ["src"];
|
|
5558
|
+
const _hoisted_3$q = {
|
|
5453
5559
|
key: 1,
|
|
5454
5560
|
class: "nut-empty-description"
|
|
5455
5561
|
};
|
|
5456
|
-
function _sfc_render$
|
|
5457
|
-
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
5562
|
+
function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5563
|
+
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$G, [
|
|
5458
5564
|
vue.createElementVNode("view", {
|
|
5459
5565
|
class: "nut-empty-image",
|
|
5460
5566
|
style: vue.normalizeStyle(_ctx.imgStyle)
|
|
@@ -5464,26 +5570,20 @@ var __publicField = (obj, key, value) => {
|
|
|
5464
5570
|
key: 0,
|
|
5465
5571
|
class: "img",
|
|
5466
5572
|
src: _ctx.imageUrl
|
|
5467
|
-
}, null, 8, _hoisted_2$
|
|
5573
|
+
}, null, 8, _hoisted_2$y)) : vue.createCommentVNode("", true)
|
|
5468
5574
|
], 64))
|
|
5469
5575
|
], 4),
|
|
5470
|
-
_ctx.$slots.description ? vue.renderSlot(_ctx.$slots, "description", { key: 0 }) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$
|
|
5576
|
+
_ctx.$slots.description ? vue.renderSlot(_ctx.$slots, "description", { key: 0 }) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$q, vue.toDisplayString(_ctx.description), 1)),
|
|
5471
5577
|
_ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 2 }) : vue.createCommentVNode("", true)
|
|
5472
5578
|
]);
|
|
5473
5579
|
}
|
|
5474
|
-
var Empty = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5475
|
-
const { componentName: componentName$
|
|
5476
|
-
const _sfc_main$
|
|
5580
|
+
var Empty = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$O]]);
|
|
5581
|
+
const { componentName: componentName$D, create: create$S } = createComponent("navbar");
|
|
5582
|
+
const _sfc_main$S = create$S({
|
|
5477
5583
|
props: {
|
|
5478
5584
|
leftShow: { type: Boolean, default: true },
|
|
5479
5585
|
title: { type: String, default: "" },
|
|
5480
5586
|
titIcon: { type: String, default: "" },
|
|
5481
|
-
tabs: {
|
|
5482
|
-
type: Array,
|
|
5483
|
-
defaul: () => {
|
|
5484
|
-
return [];
|
|
5485
|
-
}
|
|
5486
|
-
},
|
|
5487
5587
|
icon: { type: String, default: "" },
|
|
5488
5588
|
desc: { type: String, default: "" },
|
|
5489
5589
|
defaultIndex: {
|
|
@@ -5508,16 +5608,11 @@ var __publicField = (obj, key, value) => {
|
|
|
5508
5608
|
setup(props, { emit }) {
|
|
5509
5609
|
const activeIndex = vue.ref(props.defaultIndex);
|
|
5510
5610
|
const classes = vue.computed(() => {
|
|
5511
|
-
const prefixCls = componentName$
|
|
5611
|
+
const prefixCls = componentName$D;
|
|
5512
5612
|
return {
|
|
5513
5613
|
[prefixCls]: true
|
|
5514
5614
|
};
|
|
5515
5615
|
});
|
|
5516
|
-
function switchTitle(id, name) {
|
|
5517
|
-
activeIndex.value = id;
|
|
5518
|
-
console.log(id);
|
|
5519
|
-
emit("switch-tab", activeIndex.value, name);
|
|
5520
|
-
}
|
|
5521
5616
|
function handleLeft() {
|
|
5522
5617
|
emit("on-click-back");
|
|
5523
5618
|
}
|
|
@@ -5548,20 +5643,17 @@ var __publicField = (obj, key, value) => {
|
|
|
5548
5643
|
handleSend,
|
|
5549
5644
|
handleSlot,
|
|
5550
5645
|
handleSends,
|
|
5551
|
-
switchTitle,
|
|
5552
5646
|
activeIndex
|
|
5553
5647
|
};
|
|
5554
5648
|
}
|
|
5555
5649
|
});
|
|
5556
|
-
const _hoisted_1$
|
|
5557
|
-
|
|
5558
|
-
const _hoisted_3$o = ["onClick"];
|
|
5559
|
-
function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5650
|
+
const _hoisted_1$F = { class: "nut-navbar__left" };
|
|
5651
|
+
function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5560
5652
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
5561
5653
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
5562
5654
|
class: vue.normalizeClass(_ctx.classes)
|
|
5563
5655
|
}, [
|
|
5564
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
5656
|
+
vue.createElementVNode("view", _hoisted_1$F, [
|
|
5565
5657
|
_ctx.leftShow ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
5566
5658
|
key: 0,
|
|
5567
5659
|
color: "#979797",
|
|
@@ -5569,8 +5661,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5569
5661
|
onClick: _ctx.handleLeft
|
|
5570
5662
|
}, null, 8, ["onClick"])) : vue.createCommentVNode("", true)
|
|
5571
5663
|
]),
|
|
5572
|
-
|
|
5573
|
-
key: 0,
|
|
5664
|
+
vue.createElementVNode("view", {
|
|
5574
5665
|
class: vue.normalizeClass(["nut-navbar__title", { icon: _ctx.icon }])
|
|
5575
5666
|
}, [
|
|
5576
5667
|
_ctx.title ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -5583,21 +5674,10 @@ var __publicField = (obj, key, value) => {
|
|
|
5583
5674
|
name: _ctx.titIcon,
|
|
5584
5675
|
onClick: _ctx.handleCenterIcon
|
|
5585
5676
|
}, null, 8, ["name", "onClick"])) : vue.createCommentVNode("", true),
|
|
5586
|
-
vue.
|
|
5587
|
-
|
|
5588
|
-
return vue.openBlock(), vue.createElementBlock("view", {
|
|
5589
|
-
class: vue.normalizeClass([
|
|
5590
|
-
"tab-title-box",
|
|
5591
|
-
{ "nut-tab-active": _ctx.activeIndex == item.id || _ctx.activeIndex == index }
|
|
5592
|
-
]),
|
|
5593
|
-
onClick: ($event) => _ctx.switchTitle(item.id, item.name),
|
|
5594
|
-
key: item.id
|
|
5595
|
-
}, vue.toDisplayString(item.name), 11, _hoisted_3$o);
|
|
5596
|
-
}), 128))
|
|
5597
|
-
])
|
|
5598
|
-
], 2)) : vue.createCommentVNode("", true),
|
|
5677
|
+
vue.renderSlot(_ctx.$slots, "content")
|
|
5678
|
+
], 2),
|
|
5599
5679
|
_ctx.desc || _ctx.icon ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
5600
|
-
key:
|
|
5680
|
+
key: 0,
|
|
5601
5681
|
class: vue.normalizeClass(["nut-navbar__right", { icon: _ctx.icon }])
|
|
5602
5682
|
}, [
|
|
5603
5683
|
_ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -5622,9 +5702,9 @@ var __publicField = (obj, key, value) => {
|
|
|
5622
5702
|
], 2)) : vue.createCommentVNode("", true)
|
|
5623
5703
|
], 2);
|
|
5624
5704
|
}
|
|
5625
|
-
var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5626
|
-
const { componentName: componentName$
|
|
5627
|
-
const _sfc_main$
|
|
5705
|
+
var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$N]]);
|
|
5706
|
+
const { componentName: componentName$C, create: create$R } = createComponent("fixednav");
|
|
5707
|
+
const _sfc_main$R = create$R({
|
|
5628
5708
|
components: {
|
|
5629
5709
|
[OverLay.name]: OverLay
|
|
5630
5710
|
},
|
|
@@ -5667,7 +5747,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5667
5747
|
emits: ["update:visible", "selected"],
|
|
5668
5748
|
setup(props, { emit }) {
|
|
5669
5749
|
const classes = vue.computed(() => {
|
|
5670
|
-
const prefixCls = componentName$
|
|
5750
|
+
const prefixCls = componentName$C;
|
|
5671
5751
|
return {
|
|
5672
5752
|
[prefixCls]: true,
|
|
5673
5753
|
active: props.visible,
|
|
@@ -5686,16 +5766,16 @@ var __publicField = (obj, key, value) => {
|
|
|
5686
5766
|
return { classes, updateValue, selected };
|
|
5687
5767
|
}
|
|
5688
5768
|
});
|
|
5689
|
-
const _hoisted_1$
|
|
5690
|
-
const _hoisted_2$
|
|
5691
|
-
const _hoisted_3$
|
|
5769
|
+
const _hoisted_1$E = { class: "nut-fixednav__list" };
|
|
5770
|
+
const _hoisted_2$x = ["onClick"];
|
|
5771
|
+
const _hoisted_3$p = ["src"];
|
|
5692
5772
|
const _hoisted_4$j = { class: "span" };
|
|
5693
5773
|
const _hoisted_5$c = {
|
|
5694
5774
|
key: 0,
|
|
5695
5775
|
class: "b"
|
|
5696
5776
|
};
|
|
5697
5777
|
const _hoisted_6$9 = { class: "text" };
|
|
5698
|
-
function _sfc_render$
|
|
5778
|
+
function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5699
5779
|
const _component_nut_overlay = vue.resolveComponent("nut-overlay");
|
|
5700
5780
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
5701
5781
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -5709,7 +5789,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5709
5789
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.updateValue(false))
|
|
5710
5790
|
}, null, 8, ["visible"])) : vue.createCommentVNode("", true),
|
|
5711
5791
|
vue.renderSlot(_ctx.$slots, "list", {}, () => [
|
|
5712
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
5792
|
+
vue.createElementVNode("view", _hoisted_1$E, [
|
|
5713
5793
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.navList, (item, index) => {
|
|
5714
5794
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
5715
5795
|
class: "nut-fixednav__list-item",
|
|
@@ -5718,10 +5798,10 @@ var __publicField = (obj, key, value) => {
|
|
|
5718
5798
|
}, [
|
|
5719
5799
|
vue.createElementVNode("img", {
|
|
5720
5800
|
src: item.icon
|
|
5721
|
-
}, null, 8, _hoisted_3$
|
|
5801
|
+
}, null, 8, _hoisted_3$p),
|
|
5722
5802
|
vue.createElementVNode("view", _hoisted_4$j, vue.toDisplayString(item.text), 1),
|
|
5723
5803
|
item.num ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$c, vue.toDisplayString(item.num), 1)) : vue.createCommentVNode("", true)
|
|
5724
|
-
], 8, _hoisted_2$
|
|
5804
|
+
], 8, _hoisted_2$x);
|
|
5725
5805
|
}), 128))
|
|
5726
5806
|
])
|
|
5727
5807
|
]),
|
|
@@ -5739,13 +5819,13 @@ var __publicField = (obj, key, value) => {
|
|
|
5739
5819
|
])
|
|
5740
5820
|
], 6);
|
|
5741
5821
|
}
|
|
5742
|
-
var FixedNav = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5743
|
-
const { componentName: componentName$
|
|
5744
|
-
const _sfc_main$
|
|
5822
|
+
var FixedNav = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$M]]);
|
|
5823
|
+
const { componentName: componentName$B, create: create$Q } = createComponent("menu");
|
|
5824
|
+
const _sfc_main$Q = create$Q({
|
|
5745
5825
|
props: {
|
|
5746
5826
|
activeColor: {
|
|
5747
5827
|
type: String,
|
|
5748
|
-
default: "
|
|
5828
|
+
default: ""
|
|
5749
5829
|
},
|
|
5750
5830
|
overlay: {
|
|
5751
5831
|
type: Boolean,
|
|
@@ -5783,7 +5863,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5783
5863
|
const { children, linkChildren } = useChildren();
|
|
5784
5864
|
const opened = vue.computed(() => children.some((item) => item.state.showWrapper));
|
|
5785
5865
|
const classes = vue.computed(() => {
|
|
5786
|
-
const prefixCls = componentName$
|
|
5866
|
+
const prefixCls = componentName$B;
|
|
5787
5867
|
return {
|
|
5788
5868
|
[prefixCls]: true
|
|
5789
5869
|
};
|
|
@@ -5814,9 +5894,9 @@ var __publicField = (obj, key, value) => {
|
|
|
5814
5894
|
};
|
|
5815
5895
|
}
|
|
5816
5896
|
});
|
|
5817
|
-
const _hoisted_1$
|
|
5818
|
-
const _hoisted_2$
|
|
5819
|
-
function _sfc_render$
|
|
5897
|
+
const _hoisted_1$D = ["onClick"];
|
|
5898
|
+
const _hoisted_2$w = { class: "nut-menu__title-text" };
|
|
5899
|
+
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5820
5900
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
5821
5901
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
5822
5902
|
class: vue.normalizeClass(_ctx.classes)
|
|
@@ -5828,29 +5908,29 @@ var __publicField = (obj, key, value) => {
|
|
|
5828
5908
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.children, (item, index) => {
|
|
5829
5909
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
5830
5910
|
key: index,
|
|
5831
|
-
class: vue.normalizeClass(["nut-menu__item", { disabled: item.disabled }]),
|
|
5911
|
+
class: vue.normalizeClass(["nut-menu__item", { disabled: item.disabled, active: item.state.showPopup }]),
|
|
5832
5912
|
onClick: ($event) => !item.disabled && _ctx.toggleItem(index),
|
|
5833
5913
|
style: vue.normalizeStyle({ color: item.state.showPopup ? _ctx.activeColor : "" })
|
|
5834
5914
|
}, [
|
|
5835
5915
|
vue.createElementVNode("view", {
|
|
5836
5916
|
class: vue.normalizeClass(["nut-menu__title", { active: item.state.showPopup }])
|
|
5837
5917
|
}, [
|
|
5838
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
5918
|
+
vue.createElementVNode("view", _hoisted_2$w, vue.toDisplayString(item.renderTitle()), 1),
|
|
5839
5919
|
vue.createVNode(_component_nut_icon, {
|
|
5840
5920
|
name: item.titleIcon,
|
|
5841
5921
|
size: "10",
|
|
5842
5922
|
class: "nut-menu__title-icon"
|
|
5843
5923
|
}, null, 8, ["name"])
|
|
5844
5924
|
], 2)
|
|
5845
|
-
], 14, _hoisted_1$
|
|
5925
|
+
], 14, _hoisted_1$D);
|
|
5846
5926
|
}), 128))
|
|
5847
5927
|
], 2),
|
|
5848
5928
|
vue.renderSlot(_ctx.$slots, "default")
|
|
5849
5929
|
], 2);
|
|
5850
5930
|
}
|
|
5851
|
-
var Menu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5852
|
-
const { componentName: componentName$
|
|
5853
|
-
const _sfc_main$
|
|
5931
|
+
var Menu = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$L]]);
|
|
5932
|
+
const { componentName: componentName$A, create: create$P } = createComponent("menu-item");
|
|
5933
|
+
const _sfc_main$P = create$P({
|
|
5854
5934
|
props: {
|
|
5855
5935
|
title: String,
|
|
5856
5936
|
options: {
|
|
@@ -5872,7 +5952,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5872
5952
|
}
|
|
5873
5953
|
},
|
|
5874
5954
|
components: {
|
|
5875
|
-
[_sfc_main$
|
|
5955
|
+
[_sfc_main$1o.name]: _sfc_main$1o,
|
|
5876
5956
|
[Popup.name]: Popup
|
|
5877
5957
|
},
|
|
5878
5958
|
emits: ["update:modelValue", "change"],
|
|
@@ -5896,7 +5976,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5896
5976
|
};
|
|
5897
5977
|
const { parent } = useParent();
|
|
5898
5978
|
const classes = vue.computed(() => {
|
|
5899
|
-
const prefixCls = componentName$
|
|
5979
|
+
const prefixCls = componentName$A;
|
|
5900
5980
|
return {
|
|
5901
5981
|
[prefixCls]: true
|
|
5902
5982
|
};
|
|
@@ -5946,9 +6026,9 @@ var __publicField = (obj, key, value) => {
|
|
|
5946
6026
|
};
|
|
5947
6027
|
}
|
|
5948
6028
|
});
|
|
5949
|
-
const _hoisted_1$
|
|
5950
|
-
const _hoisted_2$
|
|
5951
|
-
function _sfc_render$
|
|
6029
|
+
const _hoisted_1$C = { class: "nut-menu-item__content" };
|
|
6030
|
+
const _hoisted_2$v = ["onClick"];
|
|
6031
|
+
function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5952
6032
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
5953
6033
|
const _component_nut_popup = vue.resolveComponent("nut-popup");
|
|
5954
6034
|
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -5976,7 +6056,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5976
6056
|
isWrapTeleport: false
|
|
5977
6057
|
}), {
|
|
5978
6058
|
default: vue.withCtx(() => [
|
|
5979
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
6059
|
+
vue.createElementVNode("view", _hoisted_1$C, [
|
|
5980
6060
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (option, index) => {
|
|
5981
6061
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
5982
6062
|
key: index,
|
|
@@ -5992,7 +6072,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5992
6072
|
vue.createElementVNode("view", {
|
|
5993
6073
|
style: vue.normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
|
|
5994
6074
|
}, vue.toDisplayString(option.text), 5)
|
|
5995
|
-
], 14, _hoisted_2$
|
|
6075
|
+
], 14, _hoisted_2$v);
|
|
5996
6076
|
}), 128)),
|
|
5997
6077
|
vue.renderSlot(_ctx.$slots, "default")
|
|
5998
6078
|
])
|
|
@@ -6003,9 +6083,9 @@ var __publicField = (obj, key, value) => {
|
|
|
6003
6083
|
[vue.vShow, _ctx.state.showWrapper]
|
|
6004
6084
|
]);
|
|
6005
6085
|
}
|
|
6006
|
-
var MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6007
|
-
const { create: create$
|
|
6008
|
-
const _sfc_main$
|
|
6086
|
+
var MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_render$K]]);
|
|
6087
|
+
const { create: create$O } = createComponent("tabbar");
|
|
6088
|
+
const _sfc_main$O = create$O({
|
|
6009
6089
|
props: {
|
|
6010
6090
|
visible: {
|
|
6011
6091
|
type: [Number, String],
|
|
@@ -6030,6 +6110,10 @@ var __publicField = (obj, key, value) => {
|
|
|
6030
6110
|
activeColor: {
|
|
6031
6111
|
type: String,
|
|
6032
6112
|
default: ""
|
|
6113
|
+
},
|
|
6114
|
+
safeAreaInsetBottom: {
|
|
6115
|
+
type: Boolean,
|
|
6116
|
+
default: false
|
|
6033
6117
|
}
|
|
6034
6118
|
},
|
|
6035
6119
|
emits: ["tab-switch", "update:visible"],
|
|
@@ -6060,16 +6144,16 @@ var __publicField = (obj, key, value) => {
|
|
|
6060
6144
|
};
|
|
6061
6145
|
}
|
|
6062
6146
|
});
|
|
6063
|
-
function _sfc_render$
|
|
6147
|
+
function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6064
6148
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
6065
|
-
class: vue.normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom }])
|
|
6149
|
+
class: vue.normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom, "nut-tabbar-safebottom": _ctx.safeAreaInsetBottom }])
|
|
6066
6150
|
}, [
|
|
6067
6151
|
vue.renderSlot(_ctx.$slots, "default")
|
|
6068
6152
|
], 2);
|
|
6069
6153
|
}
|
|
6070
|
-
var Tabbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6071
|
-
const { create: create$
|
|
6072
|
-
const _sfc_main$
|
|
6154
|
+
var Tabbar = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$J]]);
|
|
6155
|
+
const { create: create$N } = createComponent("tabbar-item");
|
|
6156
|
+
const _sfc_main$N = create$N({
|
|
6073
6157
|
props: {
|
|
6074
6158
|
tabTitle: {
|
|
6075
6159
|
type: String,
|
|
@@ -6150,17 +6234,17 @@ var __publicField = (obj, key, value) => {
|
|
|
6150
6234
|
};
|
|
6151
6235
|
}
|
|
6152
6236
|
});
|
|
6153
|
-
const _hoisted_1$
|
|
6154
|
-
const _hoisted_2$
|
|
6237
|
+
const _hoisted_1$B = { class: "nut-tabbar-item_icon-box" };
|
|
6238
|
+
const _hoisted_2$u = {
|
|
6155
6239
|
key: 0,
|
|
6156
6240
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_num"
|
|
6157
6241
|
};
|
|
6158
|
-
const _hoisted_3$
|
|
6242
|
+
const _hoisted_3$o = {
|
|
6159
6243
|
key: 1,
|
|
6160
6244
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_nums"
|
|
6161
6245
|
};
|
|
6162
6246
|
const _hoisted_4$i = { key: 2 };
|
|
6163
|
-
function _sfc_render$
|
|
6247
|
+
function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6164
6248
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
6165
6249
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
6166
6250
|
class: vue.normalizeClass(["nut-tabbar-item", { "nut-tabbar-item__icon--unactive": _ctx.state.active != _ctx.state.index }]),
|
|
@@ -6169,8 +6253,8 @@ var __publicField = (obj, key, value) => {
|
|
|
6169
6253
|
}),
|
|
6170
6254
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.change(_ctx.state.index))
|
|
6171
6255
|
}, [
|
|
6172
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
6173
|
-
_ctx.num && _ctx.num <= 99 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
6256
|
+
vue.createElementVNode("view", _hoisted_1$B, [
|
|
6257
|
+
_ctx.num && _ctx.num <= 99 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$u, vue.toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$o, vue.toDisplayString("99+"))) : vue.createCommentVNode("", true),
|
|
6174
6258
|
_ctx.icon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$i, [
|
|
6175
6259
|
vue.createVNode(_component_nut_icon, {
|
|
6176
6260
|
class: "nut-tabbar-item_icon-box_icon",
|
|
@@ -6195,9 +6279,9 @@ var __publicField = (obj, key, value) => {
|
|
|
6195
6279
|
])
|
|
6196
6280
|
], 6);
|
|
6197
6281
|
}
|
|
6198
|
-
var TabbarItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6199
|
-
const { componentName: componentName$
|
|
6200
|
-
const _sfc_main$
|
|
6282
|
+
var TabbarItem = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$I]]);
|
|
6283
|
+
const { componentName: componentName$z, create: create$M } = createComponent("elevator");
|
|
6284
|
+
const _sfc_main$M = create$M({
|
|
6201
6285
|
props: {
|
|
6202
6286
|
height: {
|
|
6203
6287
|
type: [Number, String],
|
|
@@ -6230,7 +6314,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6230
6314
|
currentIndex: 0
|
|
6231
6315
|
});
|
|
6232
6316
|
const classes = vue.computed(() => {
|
|
6233
|
-
const prefixCls = componentName$
|
|
6317
|
+
const prefixCls = componentName$z;
|
|
6234
6318
|
return {
|
|
6235
6319
|
[prefixCls]: true
|
|
6236
6320
|
};
|
|
@@ -6319,11 +6403,11 @@ var __publicField = (obj, key, value) => {
|
|
|
6319
6403
|
});
|
|
6320
6404
|
}
|
|
6321
6405
|
});
|
|
6322
|
-
const _hoisted_1$
|
|
6323
|
-
const _hoisted_2$
|
|
6324
|
-
const _hoisted_3$
|
|
6406
|
+
const _hoisted_1$A = { class: "nut-elevator__list__item__code" };
|
|
6407
|
+
const _hoisted_2$t = ["onClick", "innerHTML"];
|
|
6408
|
+
const _hoisted_3$n = { class: "nut-elevator__bars__inner" };
|
|
6325
6409
|
const _hoisted_4$h = ["data-index", "onClick"];
|
|
6326
|
-
function _sfc_render$
|
|
6410
|
+
function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6327
6411
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
6328
6412
|
class: vue.normalizeClass(_ctx.classes)
|
|
6329
6413
|
}, [
|
|
@@ -6339,14 +6423,14 @@ var __publicField = (obj, key, value) => {
|
|
|
6339
6423
|
ref_for: true,
|
|
6340
6424
|
ref: _ctx.setListGroup
|
|
6341
6425
|
}, [
|
|
6342
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
6426
|
+
vue.createElementVNode("view", _hoisted_1$A, vue.toDisplayString(item[_ctx.acceptKey]), 1),
|
|
6343
6427
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.list, (subitem) => {
|
|
6344
6428
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
6345
6429
|
class: "nut-elevator__list__item__name",
|
|
6346
6430
|
key: subitem["id"],
|
|
6347
6431
|
onClick: ($event) => _ctx.handleClickItem(item[_ctx.acceptKey], subitem),
|
|
6348
6432
|
innerHTML: subitem.name
|
|
6349
|
-
}, null, 8, _hoisted_2$
|
|
6433
|
+
}, null, 8, _hoisted_2$t);
|
|
6350
6434
|
}), 128))
|
|
6351
6435
|
]);
|
|
6352
6436
|
}), 128))
|
|
@@ -6363,7 +6447,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6363
6447
|
onTouchmove: _cache[1] || (_cache[1] = vue.withModifiers((...args) => _ctx.touchMove && _ctx.touchMove(...args), ["stop", "prevent"])),
|
|
6364
6448
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.touchEnd && _ctx.touchEnd(...args))
|
|
6365
6449
|
}, [
|
|
6366
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
6450
|
+
vue.createElementVNode("view", _hoisted_3$n, [
|
|
6367
6451
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.indexList, (item, index) => {
|
|
6368
6452
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
6369
6453
|
class: "nut-elevator__bars__inner__item",
|
|
@@ -6376,9 +6460,9 @@ var __publicField = (obj, key, value) => {
|
|
|
6376
6460
|
], 32)
|
|
6377
6461
|
], 2);
|
|
6378
6462
|
}
|
|
6379
|
-
var Elevator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6380
|
-
const { componentName: componentName$
|
|
6381
|
-
const _sfc_main$
|
|
6463
|
+
var Elevator = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$H]]);
|
|
6464
|
+
const { componentName: componentName$y, create: create$L } = createComponent("pagination");
|
|
6465
|
+
const _sfc_main$L = create$L({
|
|
6382
6466
|
props: {
|
|
6383
6467
|
modelValue: {
|
|
6384
6468
|
type: Number,
|
|
@@ -6483,19 +6567,19 @@ var __publicField = (obj, key, value) => {
|
|
|
6483
6567
|
};
|
|
6484
6568
|
}
|
|
6485
6569
|
});
|
|
6486
|
-
const _hoisted_1$
|
|
6487
|
-
const _hoisted_2$
|
|
6570
|
+
const _hoisted_1$z = { class: "nut-pagination" };
|
|
6571
|
+
const _hoisted_2$s = {
|
|
6488
6572
|
key: 0,
|
|
6489
6573
|
class: "nut-pagination-contain"
|
|
6490
6574
|
};
|
|
6491
|
-
const _hoisted_3$
|
|
6575
|
+
const _hoisted_3$m = ["onClick"];
|
|
6492
6576
|
const _hoisted_4$g = {
|
|
6493
6577
|
key: 1,
|
|
6494
6578
|
class: "nut-pagination-contain"
|
|
6495
6579
|
};
|
|
6496
6580
|
const _hoisted_5$b = { class: "nut-pagination-simple" };
|
|
6497
|
-
function _sfc_render$
|
|
6498
|
-
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
6581
|
+
function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6582
|
+
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$z, [
|
|
6499
6583
|
vue.createElementVNode("view", {
|
|
6500
6584
|
class: vue.normalizeClass(["nut-pagination-prev", _ctx.mode == "multi" ? "" : "simple-border", _ctx.modelValue == 1 ? "disabled" : ""]),
|
|
6501
6585
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.select(_ctx.modelValue - 1, true))
|
|
@@ -6504,7 +6588,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6504
6588
|
vue.createTextVNode(vue.toDisplayString(_ctx.prevText), 1)
|
|
6505
6589
|
])
|
|
6506
6590
|
], 2),
|
|
6507
|
-
_ctx.mode == "multi" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
6591
|
+
_ctx.mode == "multi" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$s, [
|
|
6508
6592
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.pages, (item, index) => {
|
|
6509
6593
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
6510
6594
|
key: index + "pagination",
|
|
@@ -6514,7 +6598,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6514
6598
|
vue.renderSlot(_ctx.$slots, "page", { item }, () => [
|
|
6515
6599
|
vue.createTextVNode(vue.toDisplayString(item.text), 1)
|
|
6516
6600
|
])
|
|
6517
|
-
], 10, _hoisted_3$
|
|
6601
|
+
], 10, _hoisted_3$m);
|
|
6518
6602
|
}), 128))
|
|
6519
6603
|
])) : vue.createCommentVNode("", true),
|
|
6520
6604
|
_ctx.mode == "simple" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$g, [
|
|
@@ -6530,8 +6614,8 @@ var __publicField = (obj, key, value) => {
|
|
|
6530
6614
|
], 2)
|
|
6531
6615
|
]);
|
|
6532
6616
|
}
|
|
6533
|
-
var Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6534
|
-
const { create: create$
|
|
6617
|
+
var Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$G]]);
|
|
6618
|
+
const { create: create$K } = createComponent("tabs");
|
|
6535
6619
|
class Title {
|
|
6536
6620
|
constructor() {
|
|
6537
6621
|
__publicField(this, "title", "");
|
|
@@ -6540,7 +6624,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6540
6624
|
__publicField(this, "disabled", false);
|
|
6541
6625
|
}
|
|
6542
6626
|
}
|
|
6543
|
-
const _sfc_main$
|
|
6627
|
+
const _sfc_main$K = create$K({
|
|
6544
6628
|
props: {
|
|
6545
6629
|
modelValue: {
|
|
6546
6630
|
type: [String, Number],
|
|
@@ -6669,8 +6753,8 @@ var __publicField = (obj, key, value) => {
|
|
|
6669
6753
|
}, methods);
|
|
6670
6754
|
}
|
|
6671
6755
|
});
|
|
6672
|
-
const _hoisted_1$
|
|
6673
|
-
function _sfc_render$
|
|
6756
|
+
const _hoisted_1$y = ["onClick"];
|
|
6757
|
+
function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6674
6758
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
6675
6759
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
6676
6760
|
class: vue.normalizeClass(["nut-tabs", [_ctx.direction]])
|
|
@@ -6704,7 +6788,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6704
6788
|
vue.createElementVNode("view", {
|
|
6705
6789
|
class: vue.normalizeClass(["nut-tabs__titles-item__text", { ellipsis: _ctx.ellipsis && !_ctx.titleScroll && _ctx.direction == "horizontal" }])
|
|
6706
6790
|
}, vue.toDisplayString(item.title), 3)
|
|
6707
|
-
], 14, _hoisted_1$
|
|
6791
|
+
], 14, _hoisted_1$y);
|
|
6708
6792
|
}), 128))
|
|
6709
6793
|
], 6),
|
|
6710
6794
|
vue.createElementVNode("view", {
|
|
@@ -6715,9 +6799,9 @@ var __publicField = (obj, key, value) => {
|
|
|
6715
6799
|
], 4)
|
|
6716
6800
|
], 2);
|
|
6717
6801
|
}
|
|
6718
|
-
var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6719
|
-
const { create: create$
|
|
6720
|
-
const _sfc_main$
|
|
6802
|
+
var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$F]]);
|
|
6803
|
+
const { create: create$J } = createComponent("tabpane");
|
|
6804
|
+
const _sfc_main$J = create$J({
|
|
6721
6805
|
props: {
|
|
6722
6806
|
title: {
|
|
6723
6807
|
type: [String, Number],
|
|
@@ -6738,16 +6822,16 @@ var __publicField = (obj, key, value) => {
|
|
|
6738
6822
|
return { activeKey: parent.activeKey };
|
|
6739
6823
|
}
|
|
6740
6824
|
});
|
|
6741
|
-
function _sfc_render$
|
|
6825
|
+
function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6742
6826
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
6743
6827
|
class: vue.normalizeClass(["nut-tabpane", { active: _ctx.paneKey == _ctx.activeKey }])
|
|
6744
6828
|
}, [
|
|
6745
6829
|
vue.renderSlot(_ctx.$slots, "default")
|
|
6746
6830
|
], 2);
|
|
6747
6831
|
}
|
|
6748
|
-
var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6749
|
-
const { componentName: componentName$
|
|
6750
|
-
const _sfc_main$
|
|
6832
|
+
var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$E]]);
|
|
6833
|
+
const { componentName: componentName$x, create: create$I } = createComponent("indicator");
|
|
6834
|
+
const _sfc_main$I = create$I({
|
|
6751
6835
|
props: {
|
|
6752
6836
|
size: {
|
|
6753
6837
|
type: Number,
|
|
@@ -6775,17 +6859,17 @@ var __publicField = (obj, key, value) => {
|
|
|
6775
6859
|
setup(props) {
|
|
6776
6860
|
const { block, align } = vue.toRefs(props);
|
|
6777
6861
|
const classes = vue.computed(() => {
|
|
6778
|
-
const prefixCls = componentName$
|
|
6862
|
+
const prefixCls = componentName$x;
|
|
6779
6863
|
return {
|
|
6780
6864
|
[prefixCls]: true,
|
|
6781
6865
|
[`${prefixCls}--block`]: block.value,
|
|
6782
6866
|
[`${prefixCls}--align__${align.value}`]: block.value && align.value
|
|
6783
6867
|
};
|
|
6784
6868
|
});
|
|
6785
|
-
return { classes, componentName: componentName$
|
|
6869
|
+
return { classes, componentName: componentName$x };
|
|
6786
6870
|
}
|
|
6787
6871
|
});
|
|
6788
|
-
function _sfc_render$
|
|
6872
|
+
function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6789
6873
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
6790
6874
|
class: vue.normalizeClass(_ctx.classes)
|
|
6791
6875
|
}, [
|
|
@@ -6802,7 +6886,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6802
6886
|
}), 128))
|
|
6803
6887
|
], 2);
|
|
6804
6888
|
}
|
|
6805
|
-
var Indicator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6889
|
+
var Indicator = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$D]]);
|
|
6806
6890
|
function flattenVNodes(children, childName) {
|
|
6807
6891
|
const result = [];
|
|
6808
6892
|
const traverse = (children2) => {
|
|
@@ -6861,7 +6945,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6861
6945
|
};
|
|
6862
6946
|
};
|
|
6863
6947
|
}
|
|
6864
|
-
const { componentName: componentName$
|
|
6948
|
+
const { componentName: componentName$w } = createComponent("grid");
|
|
6865
6949
|
const GRID_KEY = Symbol("grid");
|
|
6866
6950
|
const gridProps = {
|
|
6867
6951
|
columnNum: {
|
|
@@ -6906,9 +6990,9 @@ var __publicField = (obj, key, value) => {
|
|
|
6906
6990
|
const component$3 = {
|
|
6907
6991
|
props: gridProps,
|
|
6908
6992
|
setup(props, { slots }) {
|
|
6909
|
-
useProvide(GRID_KEY, `${componentName$
|
|
6993
|
+
useProvide(GRID_KEY, `${componentName$w}-item`)({ props });
|
|
6910
6994
|
const rootClass = vue.computed(() => {
|
|
6911
|
-
const prefixCls = componentName$
|
|
6995
|
+
const prefixCls = componentName$w;
|
|
6912
6996
|
return {
|
|
6913
6997
|
[prefixCls]: true,
|
|
6914
6998
|
[`${prefixCls}--border`]: props.border && !props.gutter
|
|
@@ -6930,8 +7014,8 @@ var __publicField = (obj, key, value) => {
|
|
|
6930
7014
|
};
|
|
6931
7015
|
}
|
|
6932
7016
|
};
|
|
6933
|
-
const { create: create$
|
|
6934
|
-
const _sfc_main$
|
|
7017
|
+
const { create: create$H } = createComponent("grid");
|
|
7018
|
+
const _sfc_main$H = create$H(component$3);
|
|
6935
7019
|
function useInject(key) {
|
|
6936
7020
|
const parent = vue.inject(key, null);
|
|
6937
7021
|
if (parent) {
|
|
@@ -6945,130 +7029,323 @@ var __publicField = (obj, key, value) => {
|
|
|
6945
7029
|
index
|
|
6946
7030
|
};
|
|
6947
7031
|
}
|
|
6948
|
-
return {
|
|
6949
|
-
parent: null,
|
|
6950
|
-
index: vue.ref(-1)
|
|
6951
|
-
};
|
|
7032
|
+
return {
|
|
7033
|
+
parent: null,
|
|
7034
|
+
index: vue.ref(-1)
|
|
7035
|
+
};
|
|
7036
|
+
}
|
|
7037
|
+
const { create: create$G, componentName: componentName$v } = createComponent("grid-item");
|
|
7038
|
+
const _sfc_main$G = create$G({
|
|
7039
|
+
props: {
|
|
7040
|
+
text: {
|
|
7041
|
+
type: String
|
|
7042
|
+
},
|
|
7043
|
+
icon: {
|
|
7044
|
+
type: String
|
|
7045
|
+
},
|
|
7046
|
+
iconSize: {
|
|
7047
|
+
type: [Number, String]
|
|
7048
|
+
},
|
|
7049
|
+
iconColor: {
|
|
7050
|
+
type: String
|
|
7051
|
+
},
|
|
7052
|
+
to: {
|
|
7053
|
+
type: [String, Object]
|
|
7054
|
+
},
|
|
7055
|
+
url: {
|
|
7056
|
+
type: String,
|
|
7057
|
+
default: ""
|
|
7058
|
+
},
|
|
7059
|
+
replace: {
|
|
7060
|
+
type: Boolean,
|
|
7061
|
+
default: false
|
|
7062
|
+
}
|
|
7063
|
+
},
|
|
7064
|
+
emits: ["click"],
|
|
7065
|
+
setup(props, { emit }) {
|
|
7066
|
+
const Parent = useInject(GRID_KEY);
|
|
7067
|
+
if (!Parent.parent)
|
|
7068
|
+
return;
|
|
7069
|
+
const index = Parent.index;
|
|
7070
|
+
const parent = Parent.parent.props;
|
|
7071
|
+
const rootClass = vue.computed(() => {
|
|
7072
|
+
const prefixCls = componentName$v;
|
|
7073
|
+
return {
|
|
7074
|
+
[prefixCls]: true
|
|
7075
|
+
};
|
|
7076
|
+
});
|
|
7077
|
+
const rootStyle = vue.computed(() => {
|
|
7078
|
+
const style = {
|
|
7079
|
+
flexBasis: `${100 / +parent.columnNum}%`
|
|
7080
|
+
};
|
|
7081
|
+
if (parent.square) {
|
|
7082
|
+
style.paddingTop = `${100 / +parent.columnNum}%`;
|
|
7083
|
+
} else if (parent.gutter) {
|
|
7084
|
+
style.paddingRight = pxCheck(parent.gutter);
|
|
7085
|
+
if (index.value >= parent.columnNum) {
|
|
7086
|
+
style.marginTop = pxCheck(parent.gutter);
|
|
7087
|
+
}
|
|
7088
|
+
}
|
|
7089
|
+
return style;
|
|
7090
|
+
});
|
|
7091
|
+
const contentClass = vue.computed(() => {
|
|
7092
|
+
const prefixCls = `${componentName$v}__content`;
|
|
7093
|
+
return {
|
|
7094
|
+
[`${prefixCls}`]: true,
|
|
7095
|
+
[`${prefixCls}--border`]: parent.border,
|
|
7096
|
+
[`${prefixCls}--surround`]: parent.border && parent.gutter,
|
|
7097
|
+
[`${prefixCls}--center`]: parent.center,
|
|
7098
|
+
[`${prefixCls}--square`]: parent.square,
|
|
7099
|
+
[`${prefixCls}--reverse`]: parent.reverse,
|
|
7100
|
+
[`${prefixCls}--${parent.direction}`]: !!parent.direction,
|
|
7101
|
+
[`${prefixCls}--clickable`]: parent.clickable || props.to || props.url
|
|
7102
|
+
};
|
|
7103
|
+
});
|
|
7104
|
+
const iconProps = vue.computed(() => {
|
|
7105
|
+
return {
|
|
7106
|
+
name: props.icon,
|
|
7107
|
+
size: props.iconSize || parent.iconSize,
|
|
7108
|
+
color: props.iconColor || parent.iconColor
|
|
7109
|
+
};
|
|
7110
|
+
});
|
|
7111
|
+
const router = vueRouter.useRouter();
|
|
7112
|
+
const handleClick = (event) => {
|
|
7113
|
+
emit("click", event);
|
|
7114
|
+
if (props.to && router) {
|
|
7115
|
+
router[props.replace ? "replace" : "push"](props.to);
|
|
7116
|
+
} else if (props.url) {
|
|
7117
|
+
props.replace ? location.replace(props.url) : location.href = props.url;
|
|
7118
|
+
}
|
|
7119
|
+
};
|
|
7120
|
+
return {
|
|
7121
|
+
rootClass,
|
|
7122
|
+
rootStyle,
|
|
7123
|
+
contentClass,
|
|
7124
|
+
iconProps,
|
|
7125
|
+
handleClick
|
|
7126
|
+
};
|
|
7127
|
+
}
|
|
7128
|
+
});
|
|
7129
|
+
const _hoisted_1$x = {
|
|
7130
|
+
key: 3,
|
|
7131
|
+
class: "nut-grid-item__text"
|
|
7132
|
+
};
|
|
7133
|
+
function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7134
|
+
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
7135
|
+
return vue.openBlock(), vue.createElementBlock("view", {
|
|
7136
|
+
class: vue.normalizeClass(_ctx.rootClass),
|
|
7137
|
+
style: vue.normalizeStyle(_ctx.rootStyle),
|
|
7138
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
7139
|
+
}, [
|
|
7140
|
+
vue.createElementVNode("view", {
|
|
7141
|
+
class: vue.normalizeClass(_ctx.contentClass)
|
|
7142
|
+
}, [
|
|
7143
|
+
_ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
7144
|
+
_ctx.$slots.icon ? vue.renderSlot(_ctx.$slots, "icon", { key: 0 }) : (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
7145
|
+
key: 1,
|
|
7146
|
+
name: _ctx.iconProps.name,
|
|
7147
|
+
size: _ctx.iconProps.size,
|
|
7148
|
+
color: _ctx.iconProps.color
|
|
7149
|
+
}, null, 8, ["name", "size", "color"])),
|
|
7150
|
+
_ctx.$slots.text ? vue.renderSlot(_ctx.$slots, "text", { key: 2 }) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$x, vue.toDisplayString(_ctx.text), 1))
|
|
7151
|
+
], 64))
|
|
7152
|
+
], 2)
|
|
7153
|
+
], 6);
|
|
7154
|
+
}
|
|
7155
|
+
var GridItem = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$C]]);
|
|
7156
|
+
const { componentName: componentName$u, create: create$F } = createComponent("sidenavbar");
|
|
7157
|
+
const _sfc_main$F = create$F({
|
|
7158
|
+
props: {
|
|
7159
|
+
offset: {
|
|
7160
|
+
type: [String, Number],
|
|
7161
|
+
default: 15
|
|
7162
|
+
}
|
|
7163
|
+
},
|
|
7164
|
+
emits: [],
|
|
7165
|
+
setup: (props, context) => {
|
|
7166
|
+
const list = vue.ref(null);
|
|
7167
|
+
const state = vue.reactive({
|
|
7168
|
+
count: 1,
|
|
7169
|
+
observer: null
|
|
7170
|
+
});
|
|
7171
|
+
const classes = vue.computed(() => {
|
|
7172
|
+
const prefixCls = componentName$u;
|
|
7173
|
+
return {
|
|
7174
|
+
[prefixCls]: true
|
|
7175
|
+
};
|
|
7176
|
+
});
|
|
7177
|
+
const setPaddingLeft = (nodeList, level = 1) => {
|
|
7178
|
+
for (let i = 0; i < nodeList.length; i++) {
|
|
7179
|
+
let item = nodeList[i];
|
|
7180
|
+
item.children[0].style.paddingLeft = props.offset * level + "px";
|
|
7181
|
+
if (!item.className.includes("nut-sidenavbaritem")) {
|
|
7182
|
+
setPaddingLeft(Array.from(item.children[1].children), ++state.count);
|
|
7183
|
+
}
|
|
7184
|
+
}
|
|
7185
|
+
state.count--;
|
|
7186
|
+
};
|
|
7187
|
+
const handleSlots = () => {
|
|
7188
|
+
let childNodes = list.value.childNodes;
|
|
7189
|
+
if (childNodes.length) {
|
|
7190
|
+
childNodes = Array.from(childNodes).filter((item) => item.nodeType !== 3).map((item) => {
|
|
7191
|
+
return item;
|
|
7192
|
+
});
|
|
7193
|
+
setPaddingLeft(childNodes);
|
|
7194
|
+
}
|
|
7195
|
+
};
|
|
7196
|
+
vue.onMounted(() => {
|
|
7197
|
+
handleSlots();
|
|
7198
|
+
state.observer = new MutationObserver(function() {
|
|
7199
|
+
state.count = 1;
|
|
7200
|
+
handleSlots();
|
|
7201
|
+
});
|
|
7202
|
+
state.observer.observe(list.value, {
|
|
7203
|
+
attributes: false,
|
|
7204
|
+
childList: true,
|
|
7205
|
+
characterData: false,
|
|
7206
|
+
subtree: false
|
|
7207
|
+
});
|
|
7208
|
+
});
|
|
7209
|
+
return __spreadProps(__spreadValues({}, vue.toRefs(state)), {
|
|
7210
|
+
list,
|
|
7211
|
+
classes
|
|
7212
|
+
});
|
|
7213
|
+
}
|
|
7214
|
+
});
|
|
7215
|
+
const _hoisted_1$w = { class: "nut-sidenavbar__content" };
|
|
7216
|
+
const _hoisted_2$r = {
|
|
7217
|
+
class: "nut-sidenavbar__content__list",
|
|
7218
|
+
ref: "list"
|
|
7219
|
+
};
|
|
7220
|
+
function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7221
|
+
return vue.openBlock(), vue.createElementBlock("view", {
|
|
7222
|
+
class: vue.normalizeClass(_ctx.classes)
|
|
7223
|
+
}, [
|
|
7224
|
+
vue.createElementVNode("view", _hoisted_1$w, [
|
|
7225
|
+
vue.createElementVNode("view", _hoisted_2$r, [
|
|
7226
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
7227
|
+
], 512)
|
|
7228
|
+
])
|
|
7229
|
+
], 2);
|
|
7230
|
+
}
|
|
7231
|
+
var SideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$B]]);
|
|
7232
|
+
const { componentName: componentName$t, create: create$E } = createComponent("sidenavbaritem");
|
|
7233
|
+
const _sfc_main$E = create$E({
|
|
7234
|
+
props: {
|
|
7235
|
+
title: {
|
|
7236
|
+
type: String,
|
|
7237
|
+
default: ""
|
|
7238
|
+
},
|
|
7239
|
+
ikey: {
|
|
7240
|
+
type: String,
|
|
7241
|
+
default: ""
|
|
7242
|
+
}
|
|
7243
|
+
},
|
|
7244
|
+
emits: ["click"],
|
|
7245
|
+
setup: (props, context) => {
|
|
7246
|
+
const classes = vue.computed(() => {
|
|
7247
|
+
const prefixCls = componentName$t;
|
|
7248
|
+
return {
|
|
7249
|
+
[prefixCls]: true
|
|
7250
|
+
};
|
|
7251
|
+
});
|
|
7252
|
+
const handleClick = () => {
|
|
7253
|
+
context.emit("click");
|
|
7254
|
+
};
|
|
7255
|
+
return {
|
|
7256
|
+
classes,
|
|
7257
|
+
handleClick
|
|
7258
|
+
};
|
|
7259
|
+
}
|
|
7260
|
+
});
|
|
7261
|
+
const _hoisted_1$v = ["ikey"];
|
|
7262
|
+
const _hoisted_2$q = { class: "nut-sidenavbaritem__title" };
|
|
7263
|
+
function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7264
|
+
return vue.openBlock(), vue.createElementBlock("view", {
|
|
7265
|
+
class: "nut-sidenavbaritem",
|
|
7266
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
|
|
7267
|
+
ikey: _ctx.ikey
|
|
7268
|
+
}, [
|
|
7269
|
+
vue.createElementVNode("span", _hoisted_2$q, vue.toDisplayString(_ctx.title), 1)
|
|
7270
|
+
], 8, _hoisted_1$v);
|
|
6952
7271
|
}
|
|
6953
|
-
|
|
7272
|
+
var SideNavBarItem = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$A]]);
|
|
7273
|
+
const { componentName: componentName$s, create: create$D } = createComponent("subsidenavbar");
|
|
6954
7274
|
const _sfc_main$D = create$D({
|
|
6955
7275
|
props: {
|
|
6956
|
-
|
|
6957
|
-
type: String
|
|
6958
|
-
},
|
|
6959
|
-
icon: {
|
|
6960
|
-
type: String
|
|
6961
|
-
},
|
|
6962
|
-
iconSize: {
|
|
6963
|
-
type: [Number, String]
|
|
6964
|
-
},
|
|
6965
|
-
iconColor: {
|
|
6966
|
-
type: String
|
|
6967
|
-
},
|
|
6968
|
-
to: {
|
|
6969
|
-
type: [String, Object]
|
|
6970
|
-
},
|
|
6971
|
-
url: {
|
|
7276
|
+
title: {
|
|
6972
7277
|
type: String,
|
|
6973
7278
|
default: ""
|
|
6974
7279
|
},
|
|
6975
|
-
|
|
7280
|
+
ikey: {
|
|
7281
|
+
type: [String, Number],
|
|
7282
|
+
default: ""
|
|
7283
|
+
},
|
|
7284
|
+
open: {
|
|
6976
7285
|
type: Boolean,
|
|
6977
|
-
default:
|
|
7286
|
+
default: true
|
|
6978
7287
|
}
|
|
6979
7288
|
},
|
|
6980
|
-
emits: ["click"],
|
|
6981
|
-
setup(props,
|
|
6982
|
-
const
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
const
|
|
6986
|
-
const parent = Parent.parent.props;
|
|
6987
|
-
const rootClass = vue.computed(() => {
|
|
7289
|
+
emits: ["title-click"],
|
|
7290
|
+
setup: (props, context) => {
|
|
7291
|
+
const state = vue.reactive({
|
|
7292
|
+
direction: ""
|
|
7293
|
+
});
|
|
7294
|
+
const classes = vue.computed(() => {
|
|
6988
7295
|
const prefixCls = componentName$s;
|
|
6989
7296
|
return {
|
|
6990
7297
|
[prefixCls]: true
|
|
6991
7298
|
};
|
|
6992
7299
|
});
|
|
6993
|
-
const
|
|
6994
|
-
const style = {
|
|
6995
|
-
flexBasis: `${100 / +parent.columnNum}%`
|
|
6996
|
-
};
|
|
6997
|
-
if (parent.square) {
|
|
6998
|
-
style.paddingTop = `${100 / +parent.columnNum}%`;
|
|
6999
|
-
} else if (parent.gutter) {
|
|
7000
|
-
style.paddingRight = pxCheck(parent.gutter);
|
|
7001
|
-
if (index.value >= parent.columnNum) {
|
|
7002
|
-
style.marginTop = pxCheck(parent.gutter);
|
|
7003
|
-
}
|
|
7004
|
-
}
|
|
7005
|
-
return style;
|
|
7006
|
-
});
|
|
7007
|
-
const contentClass = vue.computed(() => {
|
|
7008
|
-
const prefixCls = `${componentName$s}__content`;
|
|
7009
|
-
return {
|
|
7010
|
-
[`${prefixCls}`]: true,
|
|
7011
|
-
[`${prefixCls}--border`]: parent.border,
|
|
7012
|
-
[`${prefixCls}--surround`]: parent.border && parent.gutter,
|
|
7013
|
-
[`${prefixCls}--center`]: parent.center,
|
|
7014
|
-
[`${prefixCls}--square`]: parent.square,
|
|
7015
|
-
[`${prefixCls}--reverse`]: parent.reverse,
|
|
7016
|
-
[`${prefixCls}--${parent.direction}`]: !!parent.direction,
|
|
7017
|
-
[`${prefixCls}--clickable`]: parent.clickable || props.to || props.url
|
|
7018
|
-
};
|
|
7019
|
-
});
|
|
7020
|
-
const iconProps = vue.computed(() => {
|
|
7300
|
+
const style = vue.computed(() => {
|
|
7021
7301
|
return {
|
|
7022
|
-
|
|
7023
|
-
size: props.iconSize || parent.iconSize,
|
|
7024
|
-
color: props.iconColor || parent.iconColor
|
|
7302
|
+
height: !state.direction ? "auto" : "0px"
|
|
7025
7303
|
};
|
|
7026
7304
|
});
|
|
7027
|
-
const
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
if (props.to && router) {
|
|
7031
|
-
router[props.replace ? "replace" : "push"](props.to);
|
|
7032
|
-
} else if (props.url) {
|
|
7033
|
-
props.replace ? location.replace(props.url) : location.href = props.url;
|
|
7034
|
-
}
|
|
7305
|
+
const handleClick = () => {
|
|
7306
|
+
context.emit("title-click");
|
|
7307
|
+
state.direction = !state.direction ? "up" : "";
|
|
7035
7308
|
};
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7309
|
+
vue.onMounted(() => {
|
|
7310
|
+
state.direction = props.open ? "" : "up";
|
|
7311
|
+
});
|
|
7312
|
+
return __spreadProps(__spreadValues({}, vue.toRefs(state)), {
|
|
7313
|
+
classes,
|
|
7314
|
+
style,
|
|
7041
7315
|
handleClick
|
|
7042
|
-
};
|
|
7316
|
+
});
|
|
7043
7317
|
}
|
|
7044
7318
|
});
|
|
7045
|
-
const _hoisted_1$
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
};
|
|
7319
|
+
const _hoisted_1$u = ["ikey"];
|
|
7320
|
+
const _hoisted_2$p = { class: "nut-subsidenavbar__title__text" };
|
|
7321
|
+
const _hoisted_3$l = { class: "nut-subsidenavbar__title__icon" };
|
|
7049
7322
|
function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7050
7323
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
7051
7324
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
7052
|
-
class: vue.normalizeClass(_ctx.
|
|
7053
|
-
|
|
7054
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
7325
|
+
class: vue.normalizeClass(_ctx.classes),
|
|
7326
|
+
ikey: _ctx.ikey
|
|
7055
7327
|
}, [
|
|
7056
7328
|
vue.createElementVNode("view", {
|
|
7057
|
-
class:
|
|
7329
|
+
class: "nut-subsidenavbar__title",
|
|
7330
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
7058
7331
|
}, [
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
name:
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7332
|
+
vue.createElementVNode("span", _hoisted_2$p, vue.toDisplayString(_ctx.title), 1),
|
|
7333
|
+
vue.createElementVNode("span", _hoisted_3$l, [
|
|
7334
|
+
vue.createVNode(_component_nut_icon, {
|
|
7335
|
+
name: "down-arrow",
|
|
7336
|
+
class: vue.normalizeClass(_ctx.direction)
|
|
7337
|
+
}, null, 8, ["class"])
|
|
7338
|
+
])
|
|
7339
|
+
]),
|
|
7340
|
+
vue.createElementVNode("view", {
|
|
7341
|
+
class: vue.normalizeClass(["nut-subsidenavbar__list", !_ctx.direction ? "nutFadeIn" : "nutFadeOut"]),
|
|
7342
|
+
style: vue.normalizeStyle(_ctx.style)
|
|
7343
|
+
}, [
|
|
7344
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
7345
|
+
], 6)
|
|
7346
|
+
], 10, _hoisted_1$u);
|
|
7070
7347
|
}
|
|
7071
|
-
var
|
|
7348
|
+
var SubSideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$z]]);
|
|
7072
7349
|
const Utils = {
|
|
7073
7350
|
isLeapYear: function(y) {
|
|
7074
7351
|
return y % 4 == 0 && y % 100 != 0 || y % 400 == 0;
|
|
@@ -7537,9 +7814,9 @@ var __publicField = (obj, key, value) => {
|
|
|
7537
7814
|
}, vue.toRefs(state)), vue.toRefs(props));
|
|
7538
7815
|
}
|
|
7539
7816
|
});
|
|
7540
|
-
const _hoisted_1$
|
|
7541
|
-
const _hoisted_2$
|
|
7542
|
-
const _hoisted_3$
|
|
7817
|
+
const _hoisted_1$t = { class: "calendar-title" };
|
|
7818
|
+
const _hoisted_2$o = { class: "calendar-curr-month" };
|
|
7819
|
+
const _hoisted_3$k = {
|
|
7543
7820
|
class: "calendar-weeks",
|
|
7544
7821
|
ref: "weeksPanel"
|
|
7545
7822
|
};
|
|
@@ -7579,10 +7856,10 @@ var __publicField = (obj, key, value) => {
|
|
|
7579
7856
|
class: vue.normalizeClass(["nut-calendar-header", { "nut-calendar-header-tile": !_ctx.poppable }])
|
|
7580
7857
|
}, [
|
|
7581
7858
|
_ctx.poppable ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
7582
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
7583
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
7859
|
+
vue.createElementVNode("view", _hoisted_1$t, vue.toDisplayString(_ctx.title), 1),
|
|
7860
|
+
vue.createElementVNode("view", _hoisted_2$o, vue.toDisplayString(_ctx.yearMonthTitle), 1)
|
|
7584
7861
|
], 64)) : vue.createCommentVNode("", true),
|
|
7585
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
7862
|
+
vue.createElementVNode("view", _hoisted_3$k, [
|
|
7586
7863
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.weeks, (item, index) => {
|
|
7587
7864
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
7588
7865
|
class: "calendar-week-item",
|
|
@@ -7746,7 +8023,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7746
8023
|
const { create: create$A, componentName: componentName$r } = createComponent("checkbox");
|
|
7747
8024
|
const _sfc_main$A = create$A({
|
|
7748
8025
|
components: {
|
|
7749
|
-
nutIcon: _sfc_main$
|
|
8026
|
+
nutIcon: _sfc_main$1o
|
|
7750
8027
|
},
|
|
7751
8028
|
props: {
|
|
7752
8029
|
modelValue: {
|
|
@@ -7802,7 +8079,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7802
8079
|
};
|
|
7803
8080
|
const renderIcon = () => {
|
|
7804
8081
|
const { iconName, iconSize, iconActiveName } = props;
|
|
7805
|
-
return vue.h(_sfc_main$
|
|
8082
|
+
return vue.h(_sfc_main$1o, {
|
|
7806
8083
|
name: !pValue.value ? iconName : iconActiveName,
|
|
7807
8084
|
size: iconSize,
|
|
7808
8085
|
class: color.value
|
|
@@ -7906,10 +8183,6 @@ var __publicField = (obj, key, value) => {
|
|
|
7906
8183
|
type: Boolean,
|
|
7907
8184
|
default: false
|
|
7908
8185
|
},
|
|
7909
|
-
visibleItemCount: {
|
|
7910
|
-
type: [Number, String],
|
|
7911
|
-
default: 7
|
|
7912
|
-
},
|
|
7913
8186
|
defaultIndex: {
|
|
7914
8187
|
type: [Number, String],
|
|
7915
8188
|
default: 0
|
|
@@ -7919,206 +8192,208 @@ var __publicField = (obj, key, value) => {
|
|
|
7919
8192
|
default: 35
|
|
7920
8193
|
}
|
|
7921
8194
|
};
|
|
7922
|
-
const MOMENTUM_LIMIT_DISTANCE = 15;
|
|
7923
|
-
const MOMENTUM_LIMIT_TIME = 300;
|
|
7924
|
-
const DEFAULT_DURATION = 200;
|
|
7925
8195
|
const { create: create$y } = createComponent("picker-column");
|
|
7926
|
-
function range(num, min, max) {
|
|
7927
|
-
return Math.min(Math.max(num, min), max);
|
|
7928
|
-
}
|
|
7929
|
-
function stopPropagation(event) {
|
|
7930
|
-
event.stopPropagation();
|
|
7931
|
-
}
|
|
7932
|
-
function preventDefault(event, isStopPropagation) {
|
|
7933
|
-
if (typeof event.cancelable !== "boolean" || event.cancelable) {
|
|
7934
|
-
event.preventDefault();
|
|
7935
|
-
}
|
|
7936
|
-
if (isStopPropagation) {
|
|
7937
|
-
stopPropagation(event);
|
|
7938
|
-
}
|
|
7939
|
-
}
|
|
7940
|
-
function getElementTranslateY(element) {
|
|
7941
|
-
const style = window.getComputedStyle(element);
|
|
7942
|
-
const transform = style.transform || style.webkitTransform;
|
|
7943
|
-
const translateY = transform.slice(7, transform.length - 1).split(", ")[5];
|
|
7944
|
-
return Number(translateY);
|
|
7945
|
-
}
|
|
7946
|
-
function isObject$1(val) {
|
|
7947
|
-
return val !== null && typeof val === "object";
|
|
7948
|
-
}
|
|
7949
|
-
function isOptionDisabled(option) {
|
|
7950
|
-
return isObject$1(option) && option.disabled;
|
|
7951
|
-
}
|
|
7952
8196
|
const _sfc_main$y = create$y({
|
|
7953
8197
|
props: __spreadValues({
|
|
7954
|
-
dataType: String
|
|
8198
|
+
dataType: String,
|
|
8199
|
+
itemShow: {
|
|
8200
|
+
type: Boolean,
|
|
8201
|
+
default: false
|
|
8202
|
+
}
|
|
7955
8203
|
}, commonProps),
|
|
7956
8204
|
emits: ["click", "change"],
|
|
7957
8205
|
setup(props, { emit }) {
|
|
7958
8206
|
const wrapper = vue.ref();
|
|
7959
8207
|
const state = vue.reactive({
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
8208
|
+
touchParams: {
|
|
8209
|
+
startY: 0,
|
|
8210
|
+
endY: 0,
|
|
8211
|
+
startTime: 0,
|
|
8212
|
+
endTime: 0,
|
|
8213
|
+
lastY: 0
|
|
8214
|
+
},
|
|
8215
|
+
currIndex: 1,
|
|
8216
|
+
transformY: 0,
|
|
8217
|
+
scrollDistance: 0,
|
|
8218
|
+
lineSpacing: 36,
|
|
8219
|
+
rotation: 20,
|
|
8220
|
+
timer: null
|
|
7969
8221
|
});
|
|
7970
|
-
const
|
|
7971
|
-
const
|
|
7972
|
-
|
|
7973
|
-
|
|
7974
|
-
|
|
7975
|
-
|
|
7976
|
-
const
|
|
7977
|
-
return
|
|
8222
|
+
const roller = vue.ref(null);
|
|
8223
|
+
const list = vue.ref(null);
|
|
8224
|
+
const listItem = vue.ref(null);
|
|
8225
|
+
const touchDeg = vue.ref(0);
|
|
8226
|
+
const touchTime = vue.ref(0);
|
|
8227
|
+
const touchTranslateY = vue.ref(0);
|
|
8228
|
+
const touchListStyle = vue.computed(() => {
|
|
8229
|
+
return {
|
|
8230
|
+
transition: `transform ${touchTime.value}ms cubic-bezier(0.19, 1, 0.22, 1)`,
|
|
8231
|
+
transform: `translate3d(0, ${state.scrollDistance}px, 0)`
|
|
8232
|
+
};
|
|
8233
|
+
});
|
|
8234
|
+
const touchRollerStyle = vue.computed(() => {
|
|
8235
|
+
return {
|
|
8236
|
+
transition: `transform ${touchTime.value}ms cubic-bezier(0.19, 1, 0.22, 1)`,
|
|
8237
|
+
transform: `rotate3d(1, 0, 0, ${touchDeg.value})`
|
|
8238
|
+
};
|
|
8239
|
+
});
|
|
8240
|
+
const onTouchStart = (event) => {
|
|
8241
|
+
event.preventDefault();
|
|
8242
|
+
let changedTouches = event.changedTouches[0];
|
|
8243
|
+
state.touchParams.startY = changedTouches.pageY;
|
|
8244
|
+
state.touchParams.startTime = event.timeStamp || Date.now();
|
|
8245
|
+
state.transformY = state.scrollDistance;
|
|
7978
8246
|
};
|
|
7979
|
-
const
|
|
7980
|
-
|
|
8247
|
+
const onTouchMove = (event) => {
|
|
8248
|
+
event.preventDefault();
|
|
8249
|
+
let changedTouches = event.changedTouches[0];
|
|
8250
|
+
state.touchParams.lastY = changedTouches.pageY;
|
|
8251
|
+
state.touchParams.lastTime = event.timeStamp || Date.now();
|
|
8252
|
+
let move = state.touchParams.lastY - state.touchParams.startY;
|
|
8253
|
+
setMove(move);
|
|
7981
8254
|
};
|
|
7982
|
-
const
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
if (!isOptionDisabled(state.options[i]))
|
|
7994
|
-
return i;
|
|
7995
|
-
}
|
|
7996
|
-
for (let i = index - 1; i >= 0; i--) {
|
|
7997
|
-
if (!isOptionDisabled(state.options[i]))
|
|
7998
|
-
return i;
|
|
7999
|
-
}
|
|
8000
|
-
};
|
|
8001
|
-
const setIndex = (index, emitChange = false) => {
|
|
8002
|
-
index = adjustIndex(index) || 0;
|
|
8003
|
-
const offset = -index * +props.itemHeight;
|
|
8004
|
-
const trigger = () => {
|
|
8005
|
-
if (index !== state.index) {
|
|
8006
|
-
state.index = index;
|
|
8007
|
-
if (emitChange) {
|
|
8008
|
-
emit("change", index);
|
|
8009
|
-
}
|
|
8010
|
-
}
|
|
8011
|
-
};
|
|
8012
|
-
if (state.moving && offset !== state.offset) {
|
|
8013
|
-
state.transitionEndTrigger = trigger;
|
|
8255
|
+
const onTouchEnd = (event) => {
|
|
8256
|
+
event.preventDefault();
|
|
8257
|
+
let changedTouches = event.changedTouches[0];
|
|
8258
|
+
state.touchParams.lastY = changedTouches.pageY;
|
|
8259
|
+
state.touchParams.lastTime = event.timestamp || Date.now();
|
|
8260
|
+
let move = state.touchParams.lastY - state.touchParams.startY;
|
|
8261
|
+
let moveTime = state.touchParams.lastTime - state.touchParams.startTime;
|
|
8262
|
+
if (moveTime <= 300) {
|
|
8263
|
+
move = move * 2;
|
|
8264
|
+
moveTime = moveTime + 1e3;
|
|
8265
|
+
setMove(move, "end", moveTime);
|
|
8014
8266
|
} else {
|
|
8015
|
-
|
|
8267
|
+
setMove(move, "end");
|
|
8016
8268
|
}
|
|
8017
|
-
state.offset = offset;
|
|
8018
8269
|
};
|
|
8019
|
-
const
|
|
8020
|
-
|
|
8021
|
-
distance = state.offset + speed / 0.03 * (distance < 0 ? -1 : 1);
|
|
8022
|
-
const index = getIndexByOffset(distance);
|
|
8023
|
-
setIndex(index, true);
|
|
8270
|
+
const setRollerStyle = (index) => {
|
|
8271
|
+
return `transform: rotate3d(1, 0, 0, ${-state.rotation * index}deg) translate3d(0px, 0px, 104px)`;
|
|
8024
8272
|
};
|
|
8025
|
-
const
|
|
8026
|
-
if (
|
|
8027
|
-
return;
|
|
8028
|
-
}
|
|
8029
|
-
touch.start(event);
|
|
8030
|
-
if (state.moving) {
|
|
8031
|
-
const translateY = getElementTranslateY(wrapper.value);
|
|
8032
|
-
state.offset = Math.min(0, translateY - baseOffset());
|
|
8033
|
-
state.startOffset = state.offset;
|
|
8273
|
+
const isHidden = (index) => {
|
|
8274
|
+
if (index >= state.currIndex + 8 || index <= state.currIndex - 8) {
|
|
8275
|
+
return true;
|
|
8034
8276
|
} else {
|
|
8035
|
-
|
|
8277
|
+
return false;
|
|
8036
8278
|
}
|
|
8037
|
-
state.duration = 0;
|
|
8038
|
-
state.touchStartTime = Date.now();
|
|
8039
|
-
state.momentumOffset = state.startOffset;
|
|
8040
|
-
state.transitionEndTrigger = null;
|
|
8041
8279
|
};
|
|
8042
|
-
const
|
|
8043
|
-
if (
|
|
8044
|
-
|
|
8045
|
-
}
|
|
8046
|
-
state.moving = true;
|
|
8047
|
-
touch.move(event);
|
|
8048
|
-
if (touch.isVertical()) {
|
|
8049
|
-
state.moving = true;
|
|
8050
|
-
preventDefault(event, true);
|
|
8051
|
-
}
|
|
8052
|
-
const moveOffset = state.startOffset + touch.deltaY.value;
|
|
8053
|
-
if (moveOffset > props.itemHeight) {
|
|
8054
|
-
state.offset = props.itemHeight;
|
|
8280
|
+
const setTransform = (translateY = 0, type, time = 1e3, deg) => {
|
|
8281
|
+
if (type === "end") {
|
|
8282
|
+
touchTime.value = time;
|
|
8055
8283
|
} else {
|
|
8056
|
-
|
|
8057
|
-
}
|
|
8058
|
-
const now = Date.now();
|
|
8059
|
-
if (now - state.touchStartTime > MOMENTUM_LIMIT_TIME) {
|
|
8060
|
-
state.touchStartTime = now;
|
|
8061
|
-
state.momentumOffset = state.offset;
|
|
8284
|
+
touchTime.value = 0;
|
|
8062
8285
|
}
|
|
8286
|
+
touchDeg.value = deg;
|
|
8287
|
+
touchTranslateY.value = translateY;
|
|
8288
|
+
state.scrollDistance = translateY;
|
|
8063
8289
|
};
|
|
8064
|
-
const
|
|
8065
|
-
|
|
8066
|
-
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8290
|
+
const setMove = (move, type, time) => {
|
|
8291
|
+
let updateMove = move + state.transformY;
|
|
8292
|
+
if (type === "end") {
|
|
8293
|
+
if (updateMove > 0) {
|
|
8294
|
+
updateMove = 0;
|
|
8295
|
+
}
|
|
8296
|
+
if (updateMove < -(props.listData.values.length - 1) * state.lineSpacing) {
|
|
8297
|
+
updateMove = -(props.listData.values.length - 1) * state.lineSpacing;
|
|
8298
|
+
}
|
|
8299
|
+
let endMove = Math.round(updateMove / state.lineSpacing) * state.lineSpacing;
|
|
8300
|
+
let deg = `${(Math.abs(Math.round(endMove / state.lineSpacing)) + 1) * state.rotation}deg`;
|
|
8301
|
+
setTransform(endMove, type, time, deg);
|
|
8302
|
+
let t = time ? time / 2 : 0;
|
|
8303
|
+
state.timer = setTimeout(() => {
|
|
8304
|
+
setChooseValue();
|
|
8305
|
+
}, t);
|
|
8306
|
+
state.currIndex = Math.abs(Math.round(endMove / state.lineSpacing)) + 1;
|
|
8307
|
+
} else {
|
|
8308
|
+
let deg = "0deg";
|
|
8309
|
+
if (updateMove < 0) {
|
|
8310
|
+
deg = `${(Math.abs(updateMove / state.lineSpacing) + 1) * state.rotation}deg`;
|
|
8311
|
+
} else {
|
|
8312
|
+
deg = `${(-updateMove / state.lineSpacing + 1) * state.rotation}deg`;
|
|
8313
|
+
}
|
|
8314
|
+
setTransform(updateMove, null, void 0, deg);
|
|
8315
|
+
state.currIndex = Math.abs(Math.round(updateMove / state.lineSpacing)) + 1;
|
|
8074
8316
|
}
|
|
8075
8317
|
};
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
}
|
|
8318
|
+
const setChooseValue = () => {
|
|
8319
|
+
emit("change", state.currIndex - 1);
|
|
8320
|
+
};
|
|
8321
|
+
const modifyStatus = (type) => {
|
|
8322
|
+
let index = props.defaultIndex;
|
|
8323
|
+
state.currIndex = index === -1 ? 1 : index + 1;
|
|
8324
|
+
let move = index === -1 ? 0 : index * state.lineSpacing;
|
|
8325
|
+
type && setChooseValue();
|
|
8326
|
+
setMove(-move);
|
|
8327
|
+
};
|
|
8079
8328
|
vue.watch(() => props.listData, (val) => {
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8329
|
+
state.transformY = 0;
|
|
8330
|
+
modifyStatus(false);
|
|
8331
|
+
}, {
|
|
8332
|
+
deep: true
|
|
8083
8333
|
});
|
|
8084
8334
|
vue.watch(() => props.defaultIndex, (val) => {
|
|
8085
|
-
|
|
8335
|
+
state.transformY = 0;
|
|
8336
|
+
modifyStatus(false);
|
|
8086
8337
|
});
|
|
8087
|
-
|
|
8338
|
+
vue.onMounted(() => {
|
|
8339
|
+
modifyStatus(true);
|
|
8340
|
+
});
|
|
8341
|
+
return __spreadProps(__spreadValues(__spreadValues({}, vue.toRefs(state)), vue.toRefs(props)), {
|
|
8088
8342
|
wrapper,
|
|
8343
|
+
setRollerStyle,
|
|
8344
|
+
isHidden,
|
|
8345
|
+
roller,
|
|
8346
|
+
list,
|
|
8347
|
+
listItem,
|
|
8089
8348
|
onTouchStart,
|
|
8090
8349
|
onTouchMove,
|
|
8091
8350
|
onTouchEnd,
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
columns: state.options,
|
|
8095
|
-
height: Number(props.visibleItemCount) * +props.itemHeight
|
|
8351
|
+
touchRollerStyle,
|
|
8352
|
+
touchListStyle
|
|
8096
8353
|
});
|
|
8097
8354
|
}
|
|
8098
8355
|
});
|
|
8356
|
+
const _hoisted_1$s = { class: "nut-picker-content" };
|
|
8357
|
+
const _hoisted_2$n = {
|
|
8358
|
+
key: 0,
|
|
8359
|
+
class: "nut-picker-placeholder"
|
|
8360
|
+
};
|
|
8099
8361
|
function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8100
8362
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
8101
|
-
class: "nut-
|
|
8102
|
-
style: vue.normalizeStyle({ height: _ctx.height + "px" }),
|
|
8363
|
+
class: "nut-picker__list",
|
|
8103
8364
|
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
8104
8365
|
onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
|
|
8105
|
-
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
8106
|
-
onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
|
|
8107
|
-
onTransitionend: _cache[4] || (_cache[4] = (...args) => _ctx.stopMomentum && _ctx.stopMomentum(...args))
|
|
8366
|
+
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
8108
8367
|
}, [
|
|
8109
8368
|
vue.createElementVNode("view", {
|
|
8110
|
-
class: "nut-
|
|
8111
|
-
ref: "
|
|
8112
|
-
style: vue.normalizeStyle(_ctx.
|
|
8369
|
+
class: "nut-picker-roller",
|
|
8370
|
+
ref: "roller",
|
|
8371
|
+
style: vue.normalizeStyle(_ctx.touchRollerStyle)
|
|
8113
8372
|
}, [
|
|
8114
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.
|
|
8373
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.listData.values, (item, index) => {
|
|
8115
8374
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
8116
|
-
class: "nut-
|
|
8117
|
-
|
|
8118
|
-
|
|
8375
|
+
class: vue.normalizeClass(["nut-picker-roller-item", { "nut-picker-roller-item-hidden": _ctx.isHidden(index + 1) }]),
|
|
8376
|
+
style: vue.normalizeStyle(_ctx.setRollerStyle(index + 1)),
|
|
8377
|
+
key: item.label ? item.label : index
|
|
8378
|
+
}, vue.toDisplayString(_ctx.dataType === "cascade" ? item.text : item), 7);
|
|
8119
8379
|
}), 128))
|
|
8120
|
-
], 4)
|
|
8121
|
-
|
|
8380
|
+
], 4),
|
|
8381
|
+
vue.createElementVNode("view", _hoisted_1$s, [
|
|
8382
|
+
vue.createElementVNode("view", {
|
|
8383
|
+
class: "nut-picker-list-panel",
|
|
8384
|
+
ref: "list",
|
|
8385
|
+
style: vue.normalizeStyle(_ctx.touchListStyle)
|
|
8386
|
+
}, [
|
|
8387
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.listData.values, (item, index) => {
|
|
8388
|
+
return vue.openBlock(), vue.createElementBlock("view", {
|
|
8389
|
+
class: "nut-picker-item nut-picker-item-ref",
|
|
8390
|
+
key: item.label ? item.label : index
|
|
8391
|
+
}, vue.toDisplayString(_ctx.dataType === "cascade" ? item.text : item), 1);
|
|
8392
|
+
}), 128)),
|
|
8393
|
+
_ctx.listData && _ctx.listData.length === 1 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$n)) : vue.createCommentVNode("", true)
|
|
8394
|
+
], 4)
|
|
8395
|
+
])
|
|
8396
|
+
], 32);
|
|
8122
8397
|
}
|
|
8123
8398
|
var column = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$w]]);
|
|
8124
8399
|
const { create: create$x, componentName: componentName$p } = createComponent("picker");
|
|
@@ -8158,12 +8433,6 @@ var __publicField = (obj, key, value) => {
|
|
|
8158
8433
|
[prefixCls]: true
|
|
8159
8434
|
};
|
|
8160
8435
|
});
|
|
8161
|
-
const top = vue.computed(() => {
|
|
8162
|
-
return Number(+props.visibleItemCount - 1) / 2 * +props.itemHeight;
|
|
8163
|
-
});
|
|
8164
|
-
const height = vue.computed(() => {
|
|
8165
|
-
return Number(props.visibleItemCount) * +props.itemHeight;
|
|
8166
|
-
});
|
|
8167
8436
|
const dataType = vue.computed(() => {
|
|
8168
8437
|
const firstColumn = state.formattedColumns[0];
|
|
8169
8438
|
if (typeof firstColumn === "object") {
|
|
@@ -8178,9 +8447,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8178
8447
|
});
|
|
8179
8448
|
const columnList = vue.computed(() => {
|
|
8180
8449
|
if (dataType.value === "text") {
|
|
8181
|
-
return [
|
|
8182
|
-
{ values: state.formattedColumns, defaultIndex: state.defaultIndex }
|
|
8183
|
-
];
|
|
8450
|
+
return [{ values: state.formattedColumns, defaultIndex: state.defaultIndex }];
|
|
8184
8451
|
} else if (dataType.value === "multipleColumns") {
|
|
8185
8452
|
return state.formattedColumns;
|
|
8186
8453
|
} else if (dataType.value === "cascade") {
|
|
@@ -8245,7 +8512,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8245
8512
|
} else if (dataType.value === "multipleColumns") {
|
|
8246
8513
|
defaultIndexList[columnIndex] = dataIndex;
|
|
8247
8514
|
const val = defaultIndexList.map((res, i) => vue.toRaw(state.formattedColumns)[i].values[res]);
|
|
8248
|
-
emit("change", val);
|
|
8515
|
+
emit("change", val, columnIndex, dataIndex);
|
|
8249
8516
|
}
|
|
8250
8517
|
};
|
|
8251
8518
|
const confirm = () => {
|
|
@@ -8275,8 +8542,6 @@ var __publicField = (obj, key, value) => {
|
|
|
8275
8542
|
column,
|
|
8276
8543
|
dataType,
|
|
8277
8544
|
columnList,
|
|
8278
|
-
top,
|
|
8279
|
-
height,
|
|
8280
8545
|
close,
|
|
8281
8546
|
changeHandler,
|
|
8282
8547
|
confirm
|
|
@@ -8285,6 +8550,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8285
8550
|
});
|
|
8286
8551
|
const _hoisted_1$r = { class: "nut-picker__bar" };
|
|
8287
8552
|
const _hoisted_2$m = { class: "nut-picker__column" };
|
|
8553
|
+
const _hoisted_3$j = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-picker__hairline" }, null, -1);
|
|
8288
8554
|
function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8289
8555
|
const _component_nut_picker_column = vue.resolveComponent("nut-picker-column");
|
|
8290
8556
|
const _component_nut_popup = vue.resolveComponent("nut-popup");
|
|
@@ -8293,13 +8559,13 @@ var __publicField = (obj, key, value) => {
|
|
|
8293
8559
|
}, [
|
|
8294
8560
|
vue.createVNode(_component_nut_popup, {
|
|
8295
8561
|
position: "bottom",
|
|
8296
|
-
style: vue.normalizeStyle({ height: _ctx.height + 56 + "px" }),
|
|
8297
8562
|
visible: _ctx.show,
|
|
8298
8563
|
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.show = $event),
|
|
8299
8564
|
teleport: _ctx.teleport,
|
|
8300
8565
|
"lock-scroll": _ctx.lockScroll,
|
|
8301
8566
|
"close-on-click-overlay": _ctx.closeOnClickOverlay,
|
|
8302
|
-
onClose: _ctx.close
|
|
8567
|
+
onClose: _ctx.close,
|
|
8568
|
+
round: true
|
|
8303
8569
|
}, {
|
|
8304
8570
|
default: vue.withCtx(() => [
|
|
8305
8571
|
vue.createElementVNode("view", _hoisted_1$r, [
|
|
@@ -8314,36 +8580,29 @@ var __publicField = (obj, key, value) => {
|
|
|
8314
8580
|
}, vue.toDisplayString(_ctx.okText), 1)
|
|
8315
8581
|
]),
|
|
8316
8582
|
vue.createElementVNode("view", _hoisted_2$m, [
|
|
8317
|
-
|
|
8318
|
-
class: "nut-picker__mask",
|
|
8319
|
-
style: vue.normalizeStyle({ backgroundSize: `100% ${_ctx.top}px` })
|
|
8320
|
-
}, null, 4),
|
|
8321
|
-
vue.createElementVNode("view", {
|
|
8322
|
-
class: "nut-picker__hairline",
|
|
8323
|
-
style: vue.normalizeStyle({ top: ` ${_ctx.top}px` })
|
|
8324
|
-
}, null, 4),
|
|
8583
|
+
_hoisted_3$j,
|
|
8325
8584
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.columnList, (item, columnIndex) => {
|
|
8326
8585
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
8327
8586
|
class: "nut-picker__columnitem",
|
|
8328
8587
|
key: columnIndex
|
|
8329
8588
|
}, [
|
|
8330
8589
|
vue.createVNode(_component_nut_picker_column, {
|
|
8331
|
-
|
|
8590
|
+
itemShow: _ctx.show,
|
|
8591
|
+
"list-data": item,
|
|
8332
8592
|
readonly: _ctx.readonly,
|
|
8333
8593
|
"default-index": item.defaultIndex,
|
|
8334
8594
|
"visible-item-count": _ctx.visibleItemCount,
|
|
8335
|
-
"item-height": _ctx.itemHeight,
|
|
8336
8595
|
"data-type": _ctx.dataType,
|
|
8337
8596
|
onChange: (dataIndex) => {
|
|
8338
8597
|
_ctx.changeHandler(columnIndex, dataIndex);
|
|
8339
8598
|
}
|
|
8340
|
-
}, null, 8, ["list-data", "readonly", "default-index", "visible-item-count", "
|
|
8599
|
+
}, null, 8, ["itemShow", "list-data", "readonly", "default-index", "visible-item-count", "data-type", "onChange"])
|
|
8341
8600
|
]);
|
|
8342
8601
|
}), 128))
|
|
8343
8602
|
])
|
|
8344
8603
|
]),
|
|
8345
8604
|
_: 1
|
|
8346
|
-
}, 8, ["
|
|
8605
|
+
}, 8, ["visible", "teleport", "lock-scroll", "close-on-click-overlay", "onClose"])
|
|
8347
8606
|
], 2);
|
|
8348
8607
|
}
|
|
8349
8608
|
var Picker = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$v]]);
|
|
@@ -8516,8 +8775,6 @@ var __publicField = (obj, key, value) => {
|
|
|
8516
8775
|
}
|
|
8517
8776
|
};
|
|
8518
8777
|
const generateValue = (min, max, val, type) => {
|
|
8519
|
-
if (!(max > min))
|
|
8520
|
-
return;
|
|
8521
8778
|
const arr = [];
|
|
8522
8779
|
let index = 0;
|
|
8523
8780
|
while (min <= max) {
|
|
@@ -8554,6 +8811,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8554
8811
|
return 0;
|
|
8555
8812
|
};
|
|
8556
8813
|
const columns = vue.computed(() => {
|
|
8814
|
+
console.log(ranges.value);
|
|
8557
8815
|
const val = ranges.value.map((res) => {
|
|
8558
8816
|
return generateValue(res.range[0], res.range[1], getDateIndex(res.type), res.type);
|
|
8559
8817
|
});
|
|
@@ -8653,8 +8911,8 @@ var __publicField = (obj, key, value) => {
|
|
|
8653
8911
|
};
|
|
8654
8912
|
const emitChange = (value, event) => {
|
|
8655
8913
|
let output_value = fixedDecimalPlaces(value);
|
|
8656
|
-
emit("change", output_value, event);
|
|
8657
8914
|
emit("update:modelValue", output_value, event);
|
|
8915
|
+
emit("change", output_value, event);
|
|
8658
8916
|
};
|
|
8659
8917
|
const addAllow = (value = Number(props.modelValue)) => {
|
|
8660
8918
|
return value < Number(props.max) && !props.disabled;
|
|
@@ -8815,6 +9073,10 @@ var __publicField = (obj, key, value) => {
|
|
|
8815
9073
|
clearable: {
|
|
8816
9074
|
type: Boolean,
|
|
8817
9075
|
default: true
|
|
9076
|
+
},
|
|
9077
|
+
hasBorder: {
|
|
9078
|
+
type: Boolean,
|
|
9079
|
+
default: true
|
|
8818
9080
|
}
|
|
8819
9081
|
},
|
|
8820
9082
|
emits: ["change", "update:modelValue", "blur", "focus", "clear"],
|
|
@@ -8825,7 +9087,8 @@ var __publicField = (obj, key, value) => {
|
|
|
8825
9087
|
return {
|
|
8826
9088
|
[prefixCls]: true,
|
|
8827
9089
|
[`${prefixCls}-disabled`]: props.disabled,
|
|
8828
|
-
[`${prefixCls}-require`]: props.requireShow
|
|
9090
|
+
[`${prefixCls}-require`]: props.requireShow,
|
|
9091
|
+
[`${prefixCls}-border`]: props.hasBorder
|
|
8829
9092
|
};
|
|
8830
9093
|
});
|
|
8831
9094
|
const styles = vue.computed(() => {
|
|
@@ -8857,7 +9120,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8857
9120
|
const valueBlur = (event) => {
|
|
8858
9121
|
setTimeout(() => {
|
|
8859
9122
|
active.value = false;
|
|
8860
|
-
},
|
|
9123
|
+
}, 200);
|
|
8861
9124
|
const input = event.target;
|
|
8862
9125
|
let value = input.value;
|
|
8863
9126
|
if (props.maxLength && value.length > Number(props.maxLength)) {
|
|
@@ -8881,20 +9144,20 @@ var __publicField = (obj, key, value) => {
|
|
|
8881
9144
|
};
|
|
8882
9145
|
}
|
|
8883
9146
|
});
|
|
8884
|
-
const _hoisted_1$p = {
|
|
8885
|
-
const _hoisted_2$l = {
|
|
9147
|
+
const _hoisted_1$p = {
|
|
8886
9148
|
key: 0,
|
|
8887
|
-
class: "label
|
|
9149
|
+
class: "nut-input-label"
|
|
8888
9150
|
};
|
|
9151
|
+
const _hoisted_2$l = { class: "label-string" };
|
|
8889
9152
|
const _hoisted_3$i = ["type", "maxlength", "placeholder", "disabled", "readonly", "value"];
|
|
8890
9153
|
function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8891
9154
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
8892
9155
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
8893
9156
|
class: vue.normalizeClass(_ctx.classes)
|
|
8894
9157
|
}, [
|
|
8895
|
-
vue.
|
|
8896
|
-
|
|
8897
|
-
]),
|
|
9158
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$p, [
|
|
9159
|
+
vue.createElementVNode("view", _hoisted_2$l, vue.toDisplayString(_ctx.label), 1)
|
|
9160
|
+
])) : vue.createCommentVNode("", true),
|
|
8898
9161
|
vue.createElementVNode("input", {
|
|
8899
9162
|
class: "input-text",
|
|
8900
9163
|
style: vue.normalizeStyle(_ctx.styles),
|
|
@@ -8909,7 +9172,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8909
9172
|
onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
|
|
8910
9173
|
}, null, 44, _hoisted_3$i),
|
|
8911
9174
|
_ctx.clearable && !_ctx.readonly ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("view", {
|
|
8912
|
-
key:
|
|
9175
|
+
key: 1,
|
|
8913
9176
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClear && _ctx.handleClear(...args)),
|
|
8914
9177
|
class: "nut-textinput-clear"
|
|
8915
9178
|
}, [
|
|
@@ -8964,7 +9227,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8964
9227
|
});
|
|
8965
9228
|
const renderIcon = () => {
|
|
8966
9229
|
const { iconName, iconSize, iconActiveName } = props;
|
|
8967
|
-
return vue.h(_sfc_main$
|
|
9230
|
+
return vue.h(_sfc_main$1o, {
|
|
8968
9231
|
name: isCurValue.value ? iconActiveName : iconName,
|
|
8969
9232
|
size: iconSize,
|
|
8970
9233
|
class: color.value
|
|
@@ -9208,7 +9471,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9208
9471
|
setup(props, { emit }) {
|
|
9209
9472
|
const realInput = vue.ref(props.modelValue);
|
|
9210
9473
|
const realpwd = vue.ref();
|
|
9211
|
-
const comLen = vue.computed(() =>
|
|
9474
|
+
const comLen = vue.computed(() => range(Number(props.length)));
|
|
9212
9475
|
const show = vue.ref(props.visible);
|
|
9213
9476
|
function sureClick() {
|
|
9214
9477
|
emit("ok", realInput.value);
|
|
@@ -9244,7 +9507,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9244
9507
|
emit("update:visible", false);
|
|
9245
9508
|
emit("close");
|
|
9246
9509
|
}
|
|
9247
|
-
function
|
|
9510
|
+
function range(val) {
|
|
9248
9511
|
return Math.min(Math.max(4, val), 6);
|
|
9249
9512
|
}
|
|
9250
9513
|
function onTips() {
|
|
@@ -9272,7 +9535,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9272
9535
|
realInput,
|
|
9273
9536
|
realpwd,
|
|
9274
9537
|
focus,
|
|
9275
|
-
range
|
|
9538
|
+
range,
|
|
9276
9539
|
changeValue,
|
|
9277
9540
|
close,
|
|
9278
9541
|
onTips,
|
|
@@ -9414,6 +9677,10 @@ var __publicField = (obj, key, value) => {
|
|
|
9414
9677
|
autosize: {
|
|
9415
9678
|
type: Boolean,
|
|
9416
9679
|
default: false
|
|
9680
|
+
},
|
|
9681
|
+
autofocus: {
|
|
9682
|
+
type: Boolean,
|
|
9683
|
+
default: false
|
|
9417
9684
|
}
|
|
9418
9685
|
},
|
|
9419
9686
|
emits: ["update:modelValue", "change", "blur", "focus"],
|
|
@@ -9435,8 +9702,8 @@ var __publicField = (obj, key, value) => {
|
|
|
9435
9702
|
if (props.maxLength && value.length > Number(props.maxLength)) {
|
|
9436
9703
|
value = value.substring(0, Number(props.maxLength));
|
|
9437
9704
|
}
|
|
9438
|
-
emit("change", value, event);
|
|
9439
9705
|
emit("update:modelValue", value, event);
|
|
9706
|
+
emit("change", value, event);
|
|
9440
9707
|
};
|
|
9441
9708
|
const change = (event) => {
|
|
9442
9709
|
const input = event.target;
|
|
@@ -9468,7 +9735,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9468
9735
|
};
|
|
9469
9736
|
}
|
|
9470
9737
|
});
|
|
9471
|
-
const _hoisted_1$m = ["rows", "disabled", "readonly", "value", "maxlength", "placeholder"];
|
|
9738
|
+
const _hoisted_1$m = ["rows", "disabled", "readonly", "value", "maxlength", "placeholder", "autofocus"];
|
|
9472
9739
|
const _hoisted_2$j = {
|
|
9473
9740
|
key: 0,
|
|
9474
9741
|
class: "nut-textarea__limit"
|
|
@@ -9488,7 +9755,8 @@ var __publicField = (obj, key, value) => {
|
|
|
9488
9755
|
onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
|
|
9489
9756
|
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
|
|
9490
9757
|
maxlength: _ctx.maxLength,
|
|
9491
|
-
placeholder: _ctx.placeholder
|
|
9758
|
+
placeholder: _ctx.placeholder,
|
|
9759
|
+
autofocus: _ctx.autofocus
|
|
9492
9760
|
}, null, 44, _hoisted_1$m),
|
|
9493
9761
|
_ctx.limitShow ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$j, vue.toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0) + "/" + vue.toDisplayString(_ctx.maxLength), 1)) : vue.createCommentVNode("", true)
|
|
9494
9762
|
], 2);
|
|
@@ -9755,8 +10023,9 @@ var __publicField = (obj, key, value) => {
|
|
|
9755
10023
|
if (oversizes.length) {
|
|
9756
10024
|
emit("oversize", oversizes);
|
|
9757
10025
|
}
|
|
9758
|
-
|
|
9759
|
-
|
|
10026
|
+
let currentFileLength = files.length + fileList.length;
|
|
10027
|
+
if (currentFileLength > maximum) {
|
|
10028
|
+
files.splice(files.length - (currentFileLength - maximum));
|
|
9760
10029
|
}
|
|
9761
10030
|
return files;
|
|
9762
10031
|
};
|
|
@@ -9766,7 +10035,8 @@ var __publicField = (obj, key, value) => {
|
|
|
9766
10035
|
fileList.splice(index, 1);
|
|
9767
10036
|
emit("delete", {
|
|
9768
10037
|
file,
|
|
9769
|
-
fileList
|
|
10038
|
+
fileList,
|
|
10039
|
+
index
|
|
9770
10040
|
});
|
|
9771
10041
|
} else {
|
|
9772
10042
|
console.log("\u7528\u6237\u963B\u6B62\u4E86\u5220\u9664\uFF01");
|
|
@@ -11325,16 +11595,16 @@ var __publicField = (obj, key, value) => {
|
|
|
11325
11595
|
setup(props, { emit, slots }) {
|
|
11326
11596
|
const formErrorTip = vue.computed(() => vue.reactive({}));
|
|
11327
11597
|
vue.provide("formErrorTip", formErrorTip);
|
|
11328
|
-
const
|
|
11329
|
-
Object.keys(value).forEach((item) => {
|
|
11598
|
+
const clearErrorTips = (value = props.modelValue) => {
|
|
11599
|
+
Object.keys(formErrorTip.value).forEach((item) => {
|
|
11330
11600
|
formErrorTip.value[item] = "";
|
|
11331
11601
|
});
|
|
11332
11602
|
};
|
|
11333
11603
|
const reset = () => {
|
|
11334
|
-
|
|
11604
|
+
clearErrorTips();
|
|
11335
11605
|
};
|
|
11336
11606
|
vue.watch(() => props.modelValue, (value) => {
|
|
11337
|
-
|
|
11607
|
+
clearErrorTips(value);
|
|
11338
11608
|
}, { immediate: true });
|
|
11339
11609
|
const findFormItem = (vnodes) => {
|
|
11340
11610
|
let task = [];
|
|
@@ -11347,7 +11617,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11347
11617
|
prop: (_a = vnode.props) == null ? void 0 : _a["prop"],
|
|
11348
11618
|
rules: ((_b = vnode.props) == null ? void 0 : _b["rules"]) || []
|
|
11349
11619
|
});
|
|
11350
|
-
} else if ((_c = vnode.children) == null ? void 0 : _c.length) {
|
|
11620
|
+
} else if (Array.isArray(vnode.children) && ((_c = vnode.children) == null ? void 0 : _c.length)) {
|
|
11351
11621
|
task = task.concat(findFormItem(vnode.children));
|
|
11352
11622
|
}
|
|
11353
11623
|
});
|
|
@@ -11370,7 +11640,10 @@ var __publicField = (obj, key, value) => {
|
|
|
11370
11640
|
const getPropByPath = (obj, keyPath) => {
|
|
11371
11641
|
return keyPath.split(".").reduce((prev, curr) => prev[curr], obj);
|
|
11372
11642
|
};
|
|
11373
|
-
|
|
11643
|
+
if (!prop) {
|
|
11644
|
+
console.warn("[NutUI] <FormItem> \u4F7F\u7528 rules \u6821\u9A8C\u89C4\u5219\u65F6 , \u5FC5\u987B\u8BBE\u7F6E prop \u53C2\u6570");
|
|
11645
|
+
}
|
|
11646
|
+
let value = getPropByPath(props.modelValue, prop || "");
|
|
11374
11647
|
tipMessage({ prop, message: "" });
|
|
11375
11648
|
while (rules.length) {
|
|
11376
11649
|
const { required, validator, regex, message } = rules.shift();
|
|
@@ -12592,7 +12865,6 @@ var __publicField = (obj, key, value) => {
|
|
|
12592
12865
|
class: "region-item-icon",
|
|
12593
12866
|
type: "self",
|
|
12594
12867
|
name: _ctx.selectedIcon,
|
|
12595
|
-
color: "#FA2C19",
|
|
12596
12868
|
size: "13px"
|
|
12597
12869
|
}, null, 8, ["name"])) : vue.createCommentVNode("", true),
|
|
12598
12870
|
vue.createTextVNode(vue.toDisplayString(item.name), 1)
|
|
@@ -12637,9 +12909,8 @@ var __publicField = (obj, key, value) => {
|
|
|
12637
12909
|
class: "exist-item-icon",
|
|
12638
12910
|
type: "self",
|
|
12639
12911
|
name: item.selectedAddress ? _ctx.selectedIcon : _ctx.defaultIcon,
|
|
12640
|
-
color: item.selectedAddress ? "#FA2C19" : "",
|
|
12641
12912
|
size: "13px"
|
|
12642
|
-
}, null, 8, ["name"
|
|
12913
|
+
}, null, 8, ["name"]),
|
|
12643
12914
|
vue.createElementVNode("div", _hoisted_18, [
|
|
12644
12915
|
item.name && item.phone ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, [
|
|
12645
12916
|
vue.createElementVNode("div", _hoisted_20, vue.toDisplayString(item.name), 1),
|
|
@@ -13494,7 +13765,6 @@ var __publicField = (obj, key, value) => {
|
|
|
13494
13765
|
}
|
|
13495
13766
|
});
|
|
13496
13767
|
vue.onMounted(() => {
|
|
13497
|
-
console.log("\u66F4\u65B0\u53C2\u6570");
|
|
13498
13768
|
});
|
|
13499
13769
|
const getSlots = (name) => slots[name];
|
|
13500
13770
|
const selectSku = (skus) => {
|
|
@@ -13791,6 +14061,11 @@ var __publicField = (obj, key, value) => {
|
|
|
13791
14061
|
state.curData = typeof item.sorter === "function" ? state.curData.sort(item.sorter) : item.sorter === "default" ? state.curData.sort() : state.curData;
|
|
13792
14062
|
}
|
|
13793
14063
|
};
|
|
14064
|
+
const sortDataItem = () => {
|
|
14065
|
+
return props.columns.map((value) => {
|
|
14066
|
+
return value.key;
|
|
14067
|
+
});
|
|
14068
|
+
};
|
|
13794
14069
|
vue.watch(() => props.data, (val) => {
|
|
13795
14070
|
state.curData = val.slice();
|
|
13796
14071
|
});
|
|
@@ -13798,7 +14073,8 @@ var __publicField = (obj, key, value) => {
|
|
|
13798
14073
|
classes,
|
|
13799
14074
|
cellClasses,
|
|
13800
14075
|
getColumnItem,
|
|
13801
|
-
handleSorterClick
|
|
14076
|
+
handleSorterClick,
|
|
14077
|
+
sortDataItem
|
|
13802
14078
|
});
|
|
13803
14079
|
}
|
|
13804
14080
|
};
|
|
@@ -13856,7 +14132,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13856
14132
|
class: "nut-table__main__body__tr",
|
|
13857
14133
|
key: item
|
|
13858
14134
|
}, [
|
|
13859
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
14135
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.sortDataItem(), (value) => {
|
|
13860
14136
|
return vue.openBlock(), vue.createElementBlock("span", {
|
|
13861
14137
|
class: vue.normalizeClass(["nut-table__main__body__tr__td", _ctx.cellClasses(_ctx.getColumnItem(value))]),
|
|
13862
14138
|
key: value
|
|
@@ -13890,7 +14166,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13890
14166
|
}
|
|
13891
14167
|
var Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
13892
14168
|
function install(app) {
|
|
13893
|
-
const packages = [Avatar, Button, Cell, CellGroup, _sfc_main$
|
|
14169
|
+
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];
|
|
13894
14170
|
packages.forEach((item) => {
|
|
13895
14171
|
if (item.install) {
|
|
13896
14172
|
app.use(item);
|
|
@@ -13899,7 +14175,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13899
14175
|
}
|
|
13900
14176
|
});
|
|
13901
14177
|
}
|
|
13902
|
-
const version = "3.1.
|
|
14178
|
+
const version = "3.1.16-beta.1";
|
|
13903
14179
|
var nutui_vue_build = { install, version };
|
|
13904
14180
|
exports2.ActionSheet = ActionSheet;
|
|
13905
14181
|
exports2.Address = Address;
|
|
@@ -13930,15 +14206,15 @@ var __publicField = (obj, key, value) => {
|
|
|
13930
14206
|
exports2.FixedNav = FixedNav;
|
|
13931
14207
|
exports2.Form = Form;
|
|
13932
14208
|
exports2.FormItem = FormItem;
|
|
13933
|
-
exports2.Grid = _sfc_main$
|
|
14209
|
+
exports2.Grid = _sfc_main$H;
|
|
13934
14210
|
exports2.GridItem = GridItem;
|
|
13935
|
-
exports2.Icon = _sfc_main$
|
|
14211
|
+
exports2.Icon = _sfc_main$1o;
|
|
13936
14212
|
exports2.ImagePreview = _ImagePreview;
|
|
13937
14213
|
exports2.Indicator = Indicator;
|
|
13938
14214
|
exports2.InfiniteLoading = InfiniteLoading;
|
|
13939
14215
|
exports2.Input = Input;
|
|
13940
14216
|
exports2.InputNumber = InputNumber;
|
|
13941
|
-
exports2.Layout = _sfc_main$
|
|
14217
|
+
exports2.Layout = _sfc_main$1h;
|
|
13942
14218
|
exports2.Menu = Menu;
|
|
13943
14219
|
exports2.MenuItem = MenuItem;
|
|
13944
14220
|
exports2.Navbar = Navbar;
|
|
@@ -13959,11 +14235,14 @@ var __publicField = (obj, key, value) => {
|
|
|
13959
14235
|
exports2.Row = Row;
|
|
13960
14236
|
exports2.SearchBar = SearchBar;
|
|
13961
14237
|
exports2.ShortPassword = ShortPassword;
|
|
14238
|
+
exports2.SideNavBar = SideNavBar;
|
|
14239
|
+
exports2.SideNavBarItem = SideNavBarItem;
|
|
13962
14240
|
exports2.Signature = Signature;
|
|
13963
14241
|
exports2.Skeleton = Skeleton;
|
|
13964
14242
|
exports2.Sku = Sku;
|
|
13965
14243
|
exports2.Step = Step;
|
|
13966
|
-
exports2.Steps = _sfc_main
|
|
14244
|
+
exports2.Steps = _sfc_main$$;
|
|
14245
|
+
exports2.SubSideNavBar = SubSideNavBar;
|
|
13967
14246
|
exports2.Swipe = Swipe;
|
|
13968
14247
|
exports2.Swiper = Swiper;
|
|
13969
14248
|
exports2.SwiperItem = SwiperItem;
|