@nutui/nutui 3.2.6-beta.2 → 3.2.7
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 +72 -0
- package/README.md +11 -1
- package/dist/nutui.es.js +682 -1156
- package/dist/nutui.umd.js +689 -1164
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/AddressList.js +1 -1
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +1 -1
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/AvatarGroup.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 +11 -4
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +1 -1
- package/dist/packages/_es/Category.js +1 -1
- package/dist/packages/_es/CategoryPane.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 +9 -12
- package/dist/packages/_es/Comment.js +1 -1
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +1 -1
- 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/Ecard.js +1 -1
- package/dist/packages/_es/Elevator.js +8 -2
- package/dist/packages/_es/Ellipsis.js +3 -3
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +1 -1
- 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/Image.js +1 -1
- package/dist/packages/_es/ImagePreview.js +16 -5
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +9 -2
- package/dist/packages/_es/Input.js +5 -12
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Invoice.js +1 -1
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +1 -1
- package/dist/packages/_es/Menu.js +1 -1
- package/dist/packages/_es/MenuItem.js +5 -2
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +1 -1
- 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 +1 -1
- package/dist/packages/_es/Popover.js +1 -1
- package/dist/packages/_es/Popup.js +6 -47
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.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 +1 -1
- 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 +1 -1
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +19 -24
- package/dist/packages/_es/Sku.js +1 -1
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +1 -1
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- 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 +1 -1
- package/dist/packages/_es/TabbarItem.js +24 -10
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +1 -1
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +1 -1
- 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/TrendArrow.js +1 -1
- package/dist/packages/_es/Uploader.js +6 -6
- package/dist/packages/_es/Video.js +3 -2
- package/dist/packages/_es/WaterMark.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/index4.js +1 -1
- package/dist/packages/_es/index5.js +8 -2
- 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/address/index.scss +5 -1
- package/dist/packages/card/index.scss +1 -0
- package/dist/packages/ellipsis/index.scss +4 -0
- package/dist/packages/formitem/index.scss +2 -0
- package/dist/packages/imagepreview/index.scss +5 -0
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/menuitem/index.scss +1 -0
- package/dist/packages/signature/index.scss +6 -2
- package/dist/packages/skeleton/index.scss +21 -19
- package/dist/packages/sticky/index.scss +3 -0
- package/dist/packages/tabbaritem/index.scss +4 -0
- package/dist/packages/timeselect/index.scss +0 -1
- package/dist/smartips/attributes.json +32 -56
- package/dist/smartips/tags.json +6 -16
- package/dist/smartips/web-types.json +48 -109
- package/dist/style.css +1 -1
- package/dist/styles/font/config.json +4 -0
- package/dist/styles/font/demo_index.html +118 -26
- package/dist/styles/font/iconfont.css +23 -7
- package/dist/styles/font/iconfont.js +6 -6
- package/dist/styles/font/iconfont.json +35 -7
- 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 +53 -54
- package/dist/styles/themes/jdb.scss +53 -54
- package/dist/styles/themes/jddkh.scss +53 -54
- package/dist/styles/themes/jdt.scss +53 -54
- package/dist/styles/variables-jdb.scss +8 -1
- package/dist/styles/variables-jddkh.scss +8 -1
- package/dist/styles/variables-jdt.scss +8 -1
- package/dist/styles/variables.scss +8 -1
- package/dist/types/__VUE/address/index.vue.d.ts +2 -2
- package/dist/types/__VUE/audio/index.vue.d.ts +4 -4
- package/dist/types/__VUE/calendar/index.vue.d.ts +11 -0
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +15 -5
- package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/divider/index.vue.d.ts +1 -1
- package/dist/types/__VUE/elevator/index.vue.d.ts +2 -1
- package/dist/types/__VUE/fixednav/index.vue.d.ts +1 -1
- package/dist/types/__VUE/image/index.vue.d.ts +4 -4
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +1 -1
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +4 -4
- package/dist/types/__VUE/input/index.vue.d.ts +1 -2
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
- package/dist/types/__VUE/menuitem/index.vue.d.ts +3 -1
- package/dist/types/__VUE/navbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/noticebar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/picker/Column.vue.d.ts +4 -4
- package/dist/types/__VUE/picker/index.vue.d.ts +4 -4
- package/dist/types/__VUE/popover/index.vue.d.ts +1 -1
- package/dist/types/__VUE/range/index.vue.d.ts +7 -7
- package/dist/types/__VUE/rate/index.vue.d.ts +1 -1
- package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/skeleton/common.d.ts +2 -3
- package/dist/types/__VUE/skeleton/index.vue.d.ts +2 -3
- package/dist/types/__VUE/swiper/index.vue.d.ts +1 -1
- package/dist/types/__VUE/switch/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -0
- package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
- package/dist/types/__VUE/uploader/index.vue.d.ts +13 -4
- package/dist/types/__VUE/video/index.vue.d.ts +2 -2
- package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +1 -2
- package/package.json +2 -1
- package/dist/packages/_es/OldPicker.js +0 -486
- package/dist/packages/oldpicker/index.scss +0 -133
- package/dist/types/__VUE/oldpicker/Column.vue.d.ts +0 -96
- package/dist/types/__VUE/oldpicker/commonProps.d.ts +0 -22
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +0 -369
- package/dist/types/__VUE/oldpicker/types.d.ts +0 -24
package/dist/nutui.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:39 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -360,8 +360,8 @@
|
|
|
360
360
|
const pxCheck = (value) => {
|
|
361
361
|
return isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
362
362
|
};
|
|
363
|
-
const { componentName: componentName$
|
|
364
|
-
const _sfc_main$
|
|
363
|
+
const { componentName: componentName$1p, create: create$1P } = createComponent("icon");
|
|
364
|
+
const _sfc_main$1P = create$1P({
|
|
365
365
|
props: {
|
|
366
366
|
name: { type: String, default: "" },
|
|
367
367
|
size: { type: [String, Number], default: "" },
|
|
@@ -384,7 +384,7 @@
|
|
|
384
384
|
return vue.h(
|
|
385
385
|
_isImage ? "img" : props.tag,
|
|
386
386
|
{
|
|
387
|
-
class: _isImage ? `${componentName$
|
|
387
|
+
class: _isImage ? `${componentName$1p}__img` : `${props.fontClassName} ${componentName$1p} ${props.classPrefix}-${props.name}`,
|
|
388
388
|
style: {
|
|
389
389
|
color: props.color,
|
|
390
390
|
fontSize: pxCheck(props.size),
|
|
@@ -406,10 +406,10 @@
|
|
|
406
406
|
}
|
|
407
407
|
return target;
|
|
408
408
|
};
|
|
409
|
-
const { componentName: componentName$
|
|
410
|
-
const _sfc_main$
|
|
409
|
+
const { componentName: componentName$1o, create: create$1O } = createComponent("button");
|
|
410
|
+
const _sfc_main$1O = create$1O({
|
|
411
411
|
components: {
|
|
412
|
-
[_sfc_main$
|
|
412
|
+
[_sfc_main$1P.name]: _sfc_main$1P
|
|
413
413
|
},
|
|
414
414
|
props: {
|
|
415
415
|
color: String,
|
|
@@ -463,7 +463,7 @@
|
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
465
|
const classes = vue.computed(() => {
|
|
466
|
-
const prefixCls = componentName$
|
|
466
|
+
const prefixCls = componentName$1o;
|
|
467
467
|
return {
|
|
468
468
|
[prefixCls]: true,
|
|
469
469
|
[`${prefixCls}--${type.value}`]: type.value,
|
|
@@ -499,15 +499,15 @@
|
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
501
|
});
|
|
502
|
-
const _hoisted_1$
|
|
503
|
-
function _sfc_render$
|
|
502
|
+
const _hoisted_1$1i = { class: "nut-button__warp" };
|
|
503
|
+
function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
504
504
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
505
505
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
506
506
|
class: vue.normalizeClass(_ctx.classes),
|
|
507
507
|
style: vue.normalizeStyle(_ctx.getStyle),
|
|
508
508
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
509
509
|
}, [
|
|
510
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
510
|
+
vue.createElementVNode("view", _hoisted_1$1i, [
|
|
511
511
|
_ctx.loading ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
512
512
|
key: 0,
|
|
513
513
|
class: "nut-icon-loading"
|
|
@@ -528,21 +528,21 @@
|
|
|
528
528
|
])
|
|
529
529
|
], 6);
|
|
530
530
|
}
|
|
531
|
-
var Button = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
531
|
+
var Button = /* @__PURE__ */ _export_sfc(_sfc_main$1O, [["render", _sfc_render$1B]]);
|
|
532
532
|
function useRouter() {
|
|
533
533
|
const proxy = vue.getCurrentInstance().proxy;
|
|
534
534
|
return proxy.$router || null;
|
|
535
535
|
}
|
|
536
|
-
const _hoisted_1$
|
|
536
|
+
const _hoisted_1$1h = {
|
|
537
537
|
key: 0,
|
|
538
538
|
class: "nut-cell__icon"
|
|
539
539
|
};
|
|
540
|
-
const _hoisted_2$
|
|
540
|
+
const _hoisted_2$11 = {
|
|
541
541
|
key: 1,
|
|
542
542
|
class: "nut-cell__title"
|
|
543
543
|
};
|
|
544
|
-
const _hoisted_3$
|
|
545
|
-
const _hoisted_4$
|
|
544
|
+
const _hoisted_3$N = { class: "title" };
|
|
545
|
+
const _hoisted_4$D = { class: "nut-cell__title-desc" };
|
|
546
546
|
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
547
547
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
548
548
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -551,7 +551,7 @@
|
|
|
551
551
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
552
552
|
}, [
|
|
553
553
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
554
|
-
_ctx.icon || _ctx.$slots.icon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
554
|
+
_ctx.icon || _ctx.$slots.icon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$1h, [
|
|
555
555
|
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
556
556
|
_ctx.icon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
557
557
|
class: "icon",
|
|
@@ -559,12 +559,12 @@
|
|
|
559
559
|
}), null, 16, ["name"])) : vue.createCommentVNode("", true)
|
|
560
560
|
])
|
|
561
561
|
])) : vue.createCommentVNode("", true),
|
|
562
|
-
_ctx.title || _ctx.subTitle || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
562
|
+
_ctx.title || _ctx.subTitle || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$11, [
|
|
563
563
|
_ctx.subTitle ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
564
564
|
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
565
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
565
|
+
vue.createElementVNode("view", _hoisted_3$N, vue.toDisplayString(_ctx.title), 1)
|
|
566
566
|
]),
|
|
567
|
-
vue.createElementVNode("view", _hoisted_4$
|
|
567
|
+
vue.createElementVNode("view", _hoisted_4$D, vue.toDisplayString(_ctx.subTitle), 1)
|
|
568
568
|
], 64)) : vue.renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
|
|
569
569
|
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
|
570
570
|
])
|
|
@@ -583,8 +583,8 @@
|
|
|
583
583
|
])
|
|
584
584
|
], 6);
|
|
585
585
|
}
|
|
586
|
-
const { componentName: componentName$
|
|
587
|
-
const _sfc_main$
|
|
586
|
+
const { componentName: componentName$1n, create: create$1N } = createComponent("cell");
|
|
587
|
+
const _sfc_main$1N = create$1N({
|
|
588
588
|
props: {
|
|
589
589
|
title: { type: String, default: "" },
|
|
590
590
|
subTitle: { type: String, default: "" },
|
|
@@ -603,7 +603,7 @@
|
|
|
603
603
|
emits: ["click"],
|
|
604
604
|
setup(props, { emit }) {
|
|
605
605
|
const classes = vue.computed(() => {
|
|
606
|
-
const prefixCls = componentName$
|
|
606
|
+
const prefixCls = componentName$1n;
|
|
607
607
|
return {
|
|
608
608
|
[prefixCls]: true,
|
|
609
609
|
[`${prefixCls}--clickable`]: props.isLink || props.to,
|
|
@@ -632,16 +632,16 @@
|
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
634
|
});
|
|
635
|
-
var Cell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
636
|
-
const { componentName: componentName$
|
|
637
|
-
const _sfc_main$
|
|
635
|
+
var Cell = /* @__PURE__ */ _export_sfc(_sfc_main$1N, [["render", render$3]]);
|
|
636
|
+
const { componentName: componentName$1m, create: create$1M } = createComponent("cell-group");
|
|
637
|
+
const _sfc_main$1M = create$1M({
|
|
638
638
|
props: {
|
|
639
639
|
title: { type: String, default: "" },
|
|
640
640
|
desc: { type: String, default: "" }
|
|
641
641
|
},
|
|
642
642
|
setup() {
|
|
643
643
|
const classes = vue.computed(() => {
|
|
644
|
-
const prefixCls = componentName$
|
|
644
|
+
const prefixCls = componentName$1m;
|
|
645
645
|
return {
|
|
646
646
|
[prefixCls]: true
|
|
647
647
|
};
|
|
@@ -651,28 +651,28 @@
|
|
|
651
651
|
};
|
|
652
652
|
}
|
|
653
653
|
});
|
|
654
|
-
const _hoisted_1$
|
|
654
|
+
const _hoisted_1$1g = {
|
|
655
655
|
key: 1,
|
|
656
656
|
class: "nut-cell-group__title"
|
|
657
657
|
};
|
|
658
|
-
const _hoisted_2$
|
|
658
|
+
const _hoisted_2$10 = {
|
|
659
659
|
key: 3,
|
|
660
660
|
class: "nut-cell-group__desc"
|
|
661
661
|
};
|
|
662
|
-
const _hoisted_3$
|
|
663
|
-
function _sfc_render$
|
|
662
|
+
const _hoisted_3$M = { class: "nut-cell-group__warp" };
|
|
663
|
+
function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
664
664
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
665
665
|
class: vue.normalizeClass(_ctx.classes)
|
|
666
666
|
}, [
|
|
667
|
-
_ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
668
|
-
_ctx.$slots.desc ? vue.renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
669
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
667
|
+
_ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$1g, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
|
|
668
|
+
_ctx.$slots.desc ? vue.renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$10, vue.toDisplayString(_ctx.desc), 1)) : vue.createCommentVNode("", true),
|
|
669
|
+
vue.createElementVNode("view", _hoisted_3$M, [
|
|
670
670
|
vue.renderSlot(_ctx.$slots, "default")
|
|
671
671
|
])
|
|
672
672
|
], 2);
|
|
673
673
|
}
|
|
674
|
-
var CellGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
675
|
-
const { componentName: componentName$
|
|
674
|
+
var CellGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1M, [["render", _sfc_render$1A]]);
|
|
675
|
+
const { componentName: componentName$1l, create: create$1L } = createComponent("overlay");
|
|
676
676
|
const overlayProps = {
|
|
677
677
|
visible: {
|
|
678
678
|
type: Boolean,
|
|
@@ -702,12 +702,12 @@
|
|
|
702
702
|
default: true
|
|
703
703
|
}
|
|
704
704
|
};
|
|
705
|
-
const _sfc_main$
|
|
705
|
+
const _sfc_main$1L = create$1L({
|
|
706
706
|
props: overlayProps,
|
|
707
707
|
emits: ["click", "update:visible"],
|
|
708
708
|
setup(props, { emit }) {
|
|
709
709
|
const classes = vue.computed(() => {
|
|
710
|
-
const prefixCls = componentName$
|
|
710
|
+
const prefixCls = componentName$1l;
|
|
711
711
|
return {
|
|
712
712
|
[prefixCls]: true,
|
|
713
713
|
[props.overlayClass]: true
|
|
@@ -751,7 +751,7 @@
|
|
|
751
751
|
return { classes, style, touchmove, onClick };
|
|
752
752
|
}
|
|
753
753
|
});
|
|
754
|
-
function _sfc_render$
|
|
754
|
+
function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
755
755
|
return vue.openBlock(), vue.createBlock(vue.Transition, { name: "overlay-fade" }, {
|
|
756
756
|
default: vue.withCtx(() => [
|
|
757
757
|
vue.withDirectives(vue.createElementVNode("view", {
|
|
@@ -768,7 +768,7 @@
|
|
|
768
768
|
_: 3
|
|
769
769
|
});
|
|
770
770
|
}
|
|
771
|
-
var OverLay = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
771
|
+
var OverLay = /* @__PURE__ */ _export_sfc(_sfc_main$1L, [["render", _sfc_render$1z]]);
|
|
772
772
|
let count = 0;
|
|
773
773
|
const CLSNAME = "nut-overflow-hidden";
|
|
774
774
|
const useLockScroll = (isLock) => {
|
|
@@ -786,7 +786,7 @@
|
|
|
786
786
|
};
|
|
787
787
|
return [lock, unlock];
|
|
788
788
|
};
|
|
789
|
-
const { componentName: componentName$
|
|
789
|
+
const { componentName: componentName$1k, create: create$1K } = createComponent("popup");
|
|
790
790
|
let _zIndex = 2e3;
|
|
791
791
|
const popupProps = {
|
|
792
792
|
...overlayProps,
|
|
@@ -832,17 +832,17 @@
|
|
|
832
832
|
},
|
|
833
833
|
isWrapTeleport: {
|
|
834
834
|
type: Boolean,
|
|
835
|
-
default:
|
|
835
|
+
default: false
|
|
836
836
|
},
|
|
837
837
|
safeAreaInsetBottom: {
|
|
838
838
|
type: Boolean,
|
|
839
839
|
default: false
|
|
840
840
|
}
|
|
841
841
|
};
|
|
842
|
-
const _sfc_main$
|
|
842
|
+
const _sfc_main$1K = create$1K({
|
|
843
843
|
components: {
|
|
844
844
|
[OverLay.name]: OverLay,
|
|
845
|
-
[_sfc_main$
|
|
845
|
+
[_sfc_main$1P.name]: _sfc_main$1P
|
|
846
846
|
},
|
|
847
847
|
props: {
|
|
848
848
|
...popupProps
|
|
@@ -860,7 +860,7 @@
|
|
|
860
860
|
});
|
|
861
861
|
const [lockScroll, unlockScroll] = useLockScroll(() => props.lockScroll);
|
|
862
862
|
const classes = vue.computed(() => {
|
|
863
|
-
const prefixCls = componentName$
|
|
863
|
+
const prefixCls = componentName$1k;
|
|
864
864
|
return {
|
|
865
865
|
[prefixCls]: true,
|
|
866
866
|
["round"]: props.round,
|
|
@@ -976,13 +976,12 @@
|
|
|
976
976
|
};
|
|
977
977
|
}
|
|
978
978
|
});
|
|
979
|
-
|
|
980
|
-
function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
979
|
+
function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
981
980
|
const _component_nut_overlay = vue.resolveComponent("nut-overlay");
|
|
982
981
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
983
|
-
return
|
|
984
|
-
|
|
985
|
-
|
|
982
|
+
return vue.openBlock(), vue.createBlock(vue.Teleport, {
|
|
983
|
+
to: _ctx.teleport,
|
|
984
|
+
disabled: !_ctx.isWrapTeleport
|
|
986
985
|
}, [
|
|
987
986
|
_ctx.overlay ? (vue.openBlock(), vue.createBlock(_component_nut_overlay, {
|
|
988
987
|
key: 0,
|
|
@@ -1024,49 +1023,9 @@
|
|
|
1024
1023
|
]),
|
|
1025
1024
|
_: 3
|
|
1026
1025
|
}, 8, ["name", "onAfterEnter", "onAfterLeave"])
|
|
1027
|
-
], 8, ["to"
|
|
1028
|
-
_ctx.overlay ? (vue.openBlock(), vue.createBlock(_component_nut_overlay, {
|
|
1029
|
-
key: 0,
|
|
1030
|
-
visible: _ctx.visible,
|
|
1031
|
-
"close-on-click-overlay": _ctx.closeOnClickOverlay,
|
|
1032
|
-
class: vue.normalizeClass(_ctx.overlayClass),
|
|
1033
|
-
style: vue.normalizeStyle(_ctx.overlayStyle),
|
|
1034
|
-
"z-index": _ctx.zIndex,
|
|
1035
|
-
"lock-scroll": _ctx.lockScroll,
|
|
1036
|
-
duration: _ctx.duration,
|
|
1037
|
-
onClick: _ctx.onClickOverlay
|
|
1038
|
-
}, null, 8, ["visible", "close-on-click-overlay", "class", "style", "z-index", "lock-scroll", "duration", "onClick"])) : vue.createCommentVNode("", true),
|
|
1039
|
-
vue.createVNode(vue.Transition, {
|
|
1040
|
-
name: _ctx.transitionName,
|
|
1041
|
-
onAfterEnter: _ctx.onOpened,
|
|
1042
|
-
onAfterLeave: _ctx.onClosed
|
|
1043
|
-
}, {
|
|
1044
|
-
default: vue.withCtx(() => [
|
|
1045
|
-
vue.withDirectives(vue.createElementVNode("view", {
|
|
1046
|
-
class: vue.normalizeClass(_ctx.classes),
|
|
1047
|
-
style: vue.normalizeStyle(_ctx.popStyle),
|
|
1048
|
-
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
1049
|
-
}, [
|
|
1050
|
-
_ctx.showSlot ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : vue.createCommentVNode("", true),
|
|
1051
|
-
_ctx.closed ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
1052
|
-
key: 1,
|
|
1053
|
-
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
|
|
1054
|
-
class: vue.normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
|
|
1055
|
-
}, [
|
|
1056
|
-
vue.createVNode(_component_nut_icon, {
|
|
1057
|
-
name: _ctx.closeIcon,
|
|
1058
|
-
size: "12px"
|
|
1059
|
-
}, null, 8, ["name"])
|
|
1060
|
-
], 2)) : vue.createCommentVNode("", true)
|
|
1061
|
-
], 6), [
|
|
1062
|
-
[vue.vShow, _ctx.visible]
|
|
1063
|
-
])
|
|
1064
|
-
]),
|
|
1065
|
-
_: 3
|
|
1066
|
-
}, 8, ["name", "onAfterEnter", "onAfterLeave"])
|
|
1067
|
-
]));
|
|
1026
|
+
], 8, ["to", "disabled"]);
|
|
1068
1027
|
}
|
|
1069
|
-
var Popup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1028
|
+
var Popup = /* @__PURE__ */ _export_sfc(_sfc_main$1K, [["render", _sfc_render$1y]]);
|
|
1070
1029
|
const component$8 = {
|
|
1071
1030
|
props: {
|
|
1072
1031
|
theme: { type: String, default: "" },
|
|
@@ -1085,10 +1044,10 @@
|
|
|
1085
1044
|
};
|
|
1086
1045
|
}
|
|
1087
1046
|
};
|
|
1088
|
-
const { componentName: componentName$
|
|
1089
|
-
const _sfc_main$
|
|
1090
|
-
const { componentName: componentName$
|
|
1091
|
-
const _sfc_main$
|
|
1047
|
+
const { componentName: componentName$1j, create: create$1J } = createComponent("config-provider");
|
|
1048
|
+
const _sfc_main$1J = create$1J(component$8);
|
|
1049
|
+
const { componentName: componentName$1i, create: create$1I } = createComponent("image");
|
|
1050
|
+
const _sfc_main$1I = create$1I({
|
|
1092
1051
|
props: {
|
|
1093
1052
|
src: String,
|
|
1094
1053
|
fit: {
|
|
@@ -1134,7 +1093,7 @@
|
|
|
1134
1093
|
slotError: vue.useSlots().error
|
|
1135
1094
|
});
|
|
1136
1095
|
const classes = vue.computed(() => {
|
|
1137
|
-
const prefixCls = componentName$
|
|
1096
|
+
const prefixCls = componentName$1i;
|
|
1138
1097
|
return {
|
|
1139
1098
|
[prefixCls]: true,
|
|
1140
1099
|
[`${prefixCls}-round`]: props.round
|
|
@@ -1180,16 +1139,16 @@
|
|
|
1180
1139
|
return { ...vue.toRefs(state), imageClick, classes, styles, stylebox, error, load };
|
|
1181
1140
|
}
|
|
1182
1141
|
});
|
|
1183
|
-
const _hoisted_1$
|
|
1184
|
-
const _hoisted_2
|
|
1142
|
+
const _hoisted_1$1f = ["src", "alt"];
|
|
1143
|
+
const _hoisted_2$$ = {
|
|
1185
1144
|
key: 0,
|
|
1186
1145
|
class: "nut-img-loading"
|
|
1187
1146
|
};
|
|
1188
|
-
const _hoisted_3$
|
|
1147
|
+
const _hoisted_3$L = {
|
|
1189
1148
|
key: 1,
|
|
1190
1149
|
class: "nut-img-error"
|
|
1191
1150
|
};
|
|
1192
|
-
function _sfc_render$
|
|
1151
|
+
function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1193
1152
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
1194
1153
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
1195
1154
|
class: vue.normalizeClass(_ctx.classes),
|
|
@@ -1203,15 +1162,15 @@
|
|
|
1203
1162
|
onLoad: _cache[0] || (_cache[0] = (...args) => _ctx.load && _ctx.load(...args)),
|
|
1204
1163
|
onError: _cache[1] || (_cache[1] = (...args) => _ctx.error && _ctx.error(...args)),
|
|
1205
1164
|
style: vue.normalizeStyle(_ctx.styles)
|
|
1206
|
-
}, null, 44, _hoisted_1$
|
|
1207
|
-
_ctx.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2
|
|
1165
|
+
}, null, 44, _hoisted_1$1f),
|
|
1166
|
+
_ctx.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$$, [
|
|
1208
1167
|
!_ctx.slotLoding ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
1209
1168
|
key: 0,
|
|
1210
1169
|
name: "image"
|
|
1211
1170
|
})) : vue.createCommentVNode("", true),
|
|
1212
1171
|
vue.renderSlot(_ctx.$slots, "loading")
|
|
1213
1172
|
])) : vue.createCommentVNode("", true),
|
|
1214
|
-
_ctx.isError && !_ctx.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$
|
|
1173
|
+
_ctx.isError && !_ctx.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$L, [
|
|
1215
1174
|
!_ctx.slotError ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
1216
1175
|
key: 0,
|
|
1217
1176
|
name: "image-error"
|
|
@@ -1220,11 +1179,11 @@
|
|
|
1220
1179
|
])) : vue.createCommentVNode("", true)
|
|
1221
1180
|
], 6);
|
|
1222
1181
|
}
|
|
1223
|
-
var Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1224
|
-
const { create: create$
|
|
1225
|
-
const _sfc_main$
|
|
1226
|
-
const { componentName: componentName$
|
|
1227
|
-
const _sfc_main$
|
|
1182
|
+
var Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["render", _sfc_render$1x]]);
|
|
1183
|
+
const { create: create$1H } = createComponent("layout");
|
|
1184
|
+
const _sfc_main$1H = create$1H({});
|
|
1185
|
+
const { componentName: componentName$1h, create: create$1G } = createComponent("col");
|
|
1186
|
+
const _sfc_main$1G = create$1G({
|
|
1228
1187
|
props: {
|
|
1229
1188
|
span: {
|
|
1230
1189
|
type: [String, Number],
|
|
@@ -1237,7 +1196,7 @@
|
|
|
1237
1196
|
},
|
|
1238
1197
|
emits: [],
|
|
1239
1198
|
setup(props) {
|
|
1240
|
-
const prefixCls = componentName$
|
|
1199
|
+
const prefixCls = componentName$1h;
|
|
1241
1200
|
const gutter = vue.inject("gutter");
|
|
1242
1201
|
const classes = vue.computed(() => {
|
|
1243
1202
|
return {
|
|
@@ -1259,7 +1218,7 @@
|
|
|
1259
1218
|
};
|
|
1260
1219
|
}
|
|
1261
1220
|
});
|
|
1262
|
-
function _sfc_render$
|
|
1221
|
+
function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1263
1222
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
1264
1223
|
class: vue.normalizeClass(_ctx.classes),
|
|
1265
1224
|
style: vue.normalizeStyle(_ctx.style)
|
|
@@ -1267,9 +1226,9 @@
|
|
|
1267
1226
|
vue.renderSlot(_ctx.$slots, "default")
|
|
1268
1227
|
], 6);
|
|
1269
1228
|
}
|
|
1270
|
-
var Col = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1271
|
-
const { componentName: componentName$
|
|
1272
|
-
const _sfc_main$
|
|
1229
|
+
var Col = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["render", _sfc_render$1w]]);
|
|
1230
|
+
const { componentName: componentName$1g, create: create$1F } = createComponent("row");
|
|
1231
|
+
const _sfc_main$1F = create$1F({
|
|
1273
1232
|
props: {
|
|
1274
1233
|
type: {
|
|
1275
1234
|
type: String,
|
|
@@ -1294,7 +1253,7 @@
|
|
|
1294
1253
|
},
|
|
1295
1254
|
emits: [],
|
|
1296
1255
|
setup(props) {
|
|
1297
|
-
const prefixCls = componentName$
|
|
1256
|
+
const prefixCls = componentName$1g;
|
|
1298
1257
|
vue.provide("gutter", props.gutter);
|
|
1299
1258
|
const getClass = (prefix, type) => {
|
|
1300
1259
|
return prefix ? type ? `nut-row-${prefix}-${type}` : "" : `nut-row-${type}`;
|
|
@@ -1313,14 +1272,14 @@
|
|
|
1313
1272
|
};
|
|
1314
1273
|
}
|
|
1315
1274
|
});
|
|
1316
|
-
function _sfc_render$
|
|
1275
|
+
function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1317
1276
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
1318
1277
|
class: vue.normalizeClass(_ctx.getClasses())
|
|
1319
1278
|
}, [
|
|
1320
1279
|
vue.renderSlot(_ctx.$slots, "default")
|
|
1321
1280
|
], 2);
|
|
1322
1281
|
}
|
|
1323
|
-
var Row = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1282
|
+
var Row = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$1v]]);
|
|
1324
1283
|
function isWindow(val) {
|
|
1325
1284
|
return val === window;
|
|
1326
1285
|
}
|
|
@@ -1350,8 +1309,8 @@
|
|
|
1350
1309
|
height: 0
|
|
1351
1310
|
};
|
|
1352
1311
|
};
|
|
1353
|
-
const { componentName: componentName$
|
|
1354
|
-
const _sfc_main$
|
|
1312
|
+
const { componentName: componentName$1f, create: create$1E } = createComponent("sticky");
|
|
1313
|
+
const _sfc_main$1E = create$1E({
|
|
1355
1314
|
props: {
|
|
1356
1315
|
position: {
|
|
1357
1316
|
type: String,
|
|
@@ -1430,7 +1389,7 @@
|
|
|
1430
1389
|
"view",
|
|
1431
1390
|
{
|
|
1432
1391
|
style: stickyStyle.value,
|
|
1433
|
-
class: state.fixed ? `${componentName$
|
|
1392
|
+
class: state.fixed ? `${componentName$1f} nut-sticky--fixed` : componentName$1f
|
|
1434
1393
|
},
|
|
1435
1394
|
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
1436
1395
|
);
|
|
@@ -1495,8 +1454,8 @@
|
|
|
1495
1454
|
};
|
|
1496
1455
|
}
|
|
1497
1456
|
});
|
|
1498
|
-
const { componentName: componentName$
|
|
1499
|
-
const _sfc_main$
|
|
1457
|
+
const { componentName: componentName$1e, create: create$1D } = createComponent("divider");
|
|
1458
|
+
const _sfc_main$1D = create$1D({
|
|
1500
1459
|
props: {
|
|
1501
1460
|
contentPosition: {
|
|
1502
1461
|
type: String,
|
|
@@ -1518,7 +1477,7 @@
|
|
|
1518
1477
|
components: {},
|
|
1519
1478
|
setup(props, context) {
|
|
1520
1479
|
const classes = vue.computed(() => {
|
|
1521
|
-
const prefixCls = componentName$
|
|
1480
|
+
const prefixCls = componentName$1e;
|
|
1522
1481
|
let defaultClassesObj = {
|
|
1523
1482
|
[prefixCls]: true
|
|
1524
1483
|
};
|
|
@@ -1543,7 +1502,7 @@
|
|
|
1543
1502
|
return { classes };
|
|
1544
1503
|
}
|
|
1545
1504
|
});
|
|
1546
|
-
function _sfc_render$
|
|
1505
|
+
function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1547
1506
|
return _ctx.direction === "horizontal" ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
1548
1507
|
key: 0,
|
|
1549
1508
|
class: vue.normalizeClass(_ctx.classes)
|
|
@@ -1554,7 +1513,7 @@
|
|
|
1554
1513
|
class: vue.normalizeClass(_ctx.classes)
|
|
1555
1514
|
}, null, 2));
|
|
1556
1515
|
}
|
|
1557
|
-
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1516
|
+
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$1u]]);
|
|
1558
1517
|
function flattenVNodes(children, childName) {
|
|
1559
1518
|
const result = [];
|
|
1560
1519
|
const traverse = (children2) => {
|
|
@@ -1619,7 +1578,7 @@
|
|
|
1619
1578
|
};
|
|
1620
1579
|
};
|
|
1621
1580
|
}
|
|
1622
|
-
const { componentName: componentName$
|
|
1581
|
+
const { componentName: componentName$1d } = createComponent("grid");
|
|
1623
1582
|
const GRID_KEY = Symbol("grid");
|
|
1624
1583
|
const gridProps = {
|
|
1625
1584
|
columnNum: {
|
|
@@ -1664,9 +1623,9 @@
|
|
|
1664
1623
|
const component$7 = {
|
|
1665
1624
|
props: gridProps,
|
|
1666
1625
|
setup(props, { slots }) {
|
|
1667
|
-
useProvide(GRID_KEY, `${componentName$
|
|
1626
|
+
useProvide(GRID_KEY, `${componentName$1d}-item`)({ props });
|
|
1668
1627
|
const rootClass = vue.computed(() => {
|
|
1669
|
-
const prefixCls = componentName$
|
|
1628
|
+
const prefixCls = componentName$1d;
|
|
1670
1629
|
return {
|
|
1671
1630
|
[prefixCls]: true,
|
|
1672
1631
|
[`${prefixCls}--border`]: props.border && !props.gutter
|
|
@@ -1692,8 +1651,8 @@
|
|
|
1692
1651
|
};
|
|
1693
1652
|
}
|
|
1694
1653
|
};
|
|
1695
|
-
const { create: create$
|
|
1696
|
-
const _sfc_main$
|
|
1654
|
+
const { create: create$1C } = createComponent("grid");
|
|
1655
|
+
const _sfc_main$1C = create$1C(component$7);
|
|
1697
1656
|
function useInject(key) {
|
|
1698
1657
|
const parent = vue.inject(key, null);
|
|
1699
1658
|
if (parent) {
|
|
@@ -1712,8 +1671,8 @@
|
|
|
1712
1671
|
index: vue.ref(-1)
|
|
1713
1672
|
};
|
|
1714
1673
|
}
|
|
1715
|
-
const { create: create$
|
|
1716
|
-
const _sfc_main$
|
|
1674
|
+
const { create: create$1B, componentName: componentName$1c } = createComponent("grid-item");
|
|
1675
|
+
const _sfc_main$1B = create$1B({
|
|
1717
1676
|
props: {
|
|
1718
1677
|
text: {
|
|
1719
1678
|
type: String
|
|
@@ -1747,7 +1706,7 @@
|
|
|
1747
1706
|
const index = Parent.index;
|
|
1748
1707
|
const parent = Parent.parent.props;
|
|
1749
1708
|
const rootClass = vue.computed(() => {
|
|
1750
|
-
const prefixCls = componentName$
|
|
1709
|
+
const prefixCls = componentName$1c;
|
|
1751
1710
|
return {
|
|
1752
1711
|
[prefixCls]: true
|
|
1753
1712
|
};
|
|
@@ -1767,7 +1726,7 @@
|
|
|
1767
1726
|
return style;
|
|
1768
1727
|
});
|
|
1769
1728
|
const contentClass = vue.computed(() => {
|
|
1770
|
-
const prefixCls = `${componentName$
|
|
1729
|
+
const prefixCls = `${componentName$1c}__content`;
|
|
1771
1730
|
return {
|
|
1772
1731
|
[`${prefixCls}`]: true,
|
|
1773
1732
|
[`${prefixCls}--border`]: parent.border,
|
|
@@ -1804,11 +1763,11 @@
|
|
|
1804
1763
|
};
|
|
1805
1764
|
}
|
|
1806
1765
|
});
|
|
1807
|
-
const _hoisted_1$
|
|
1766
|
+
const _hoisted_1$1e = {
|
|
1808
1767
|
key: 3,
|
|
1809
1768
|
class: "nut-grid-item__text"
|
|
1810
1769
|
};
|
|
1811
|
-
function _sfc_render$
|
|
1770
|
+
function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1812
1771
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
1813
1772
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
1814
1773
|
class: vue.normalizeClass(_ctx.rootClass),
|
|
@@ -1826,14 +1785,14 @@
|
|
|
1826
1785
|
size: _ctx.iconProps.size,
|
|
1827
1786
|
color: _ctx.iconProps.color
|
|
1828
1787
|
}), null, 16, ["name", "size", "color"])),
|
|
1829
|
-
_ctx.$slots.text ? vue.renderSlot(_ctx.$slots, "text", { key: 2 }) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
1788
|
+
_ctx.$slots.text ? vue.renderSlot(_ctx.$slots, "text", { key: 2 }) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$1e, vue.toDisplayString(_ctx.text), 1))
|
|
1830
1789
|
], 64))
|
|
1831
1790
|
], 2)
|
|
1832
1791
|
], 6);
|
|
1833
1792
|
}
|
|
1834
|
-
var GridItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1835
|
-
const { componentName: componentName$
|
|
1836
|
-
const _sfc_main$
|
|
1793
|
+
var GridItem = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$1t]]);
|
|
1794
|
+
const { componentName: componentName$1b, create: create$1A } = createComponent("navbar");
|
|
1795
|
+
const _sfc_main$1A = create$1A({
|
|
1837
1796
|
props: {
|
|
1838
1797
|
leftShow: { type: Boolean, default: false },
|
|
1839
1798
|
title: { type: String, default: "" },
|
|
@@ -1868,7 +1827,7 @@
|
|
|
1868
1827
|
const navBarHtml = vue.ref(null);
|
|
1869
1828
|
let navHeight = vue.ref(0);
|
|
1870
1829
|
const classes = vue.computed(() => {
|
|
1871
|
-
const prefixCls = componentName$
|
|
1830
|
+
const prefixCls = componentName$1b;
|
|
1872
1831
|
return {
|
|
1873
1832
|
[prefixCls]: true,
|
|
1874
1833
|
[`${prefixCls}--border`]: border.value,
|
|
@@ -1914,32 +1873,32 @@
|
|
|
1914
1873
|
};
|
|
1915
1874
|
}
|
|
1916
1875
|
});
|
|
1917
|
-
const _hoisted_1$
|
|
1876
|
+
const _hoisted_1$1d = {
|
|
1918
1877
|
key: 0,
|
|
1919
1878
|
class: "nut-navbar--placeholder",
|
|
1920
1879
|
ref: "navBarWrap"
|
|
1921
1880
|
};
|
|
1922
|
-
const _hoisted_2$
|
|
1881
|
+
const _hoisted_2$_ = {
|
|
1923
1882
|
key: 1,
|
|
1924
1883
|
class: "nut-navbar__text"
|
|
1925
1884
|
};
|
|
1926
|
-
const _hoisted_3$
|
|
1927
|
-
const _hoisted_4$
|
|
1885
|
+
const _hoisted_3$K = { class: "nut-navbar__title" };
|
|
1886
|
+
const _hoisted_4$C = {
|
|
1928
1887
|
key: 0,
|
|
1929
1888
|
class: "nut-navbar__text"
|
|
1930
1889
|
};
|
|
1931
|
-
const _hoisted_5$
|
|
1890
|
+
const _hoisted_5$s = {
|
|
1932
1891
|
key: 1,
|
|
1933
1892
|
class: "nut-navbar__text"
|
|
1934
1893
|
};
|
|
1935
|
-
const _hoisted_6$
|
|
1936
|
-
const _hoisted_7$
|
|
1894
|
+
const _hoisted_6$p = { class: "nut-navbar__title" };
|
|
1895
|
+
const _hoisted_7$l = {
|
|
1937
1896
|
key: 0,
|
|
1938
1897
|
class: "nut-navbar__text"
|
|
1939
1898
|
};
|
|
1940
|
-
function _sfc_render$
|
|
1899
|
+
function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1941
1900
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
1942
|
-
return _ctx.fixed && _ctx.placeholder ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
1901
|
+
return _ctx.fixed && _ctx.placeholder ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$1d, [
|
|
1943
1902
|
vue.createElementVNode("view", {
|
|
1944
1903
|
class: vue.normalizeClass(_ctx.classes),
|
|
1945
1904
|
style: vue.normalizeStyle(_ctx.styles),
|
|
@@ -1954,10 +1913,10 @@
|
|
|
1954
1913
|
color: "#979797",
|
|
1955
1914
|
name: "left"
|
|
1956
1915
|
})) : vue.createCommentVNode("", true),
|
|
1957
|
-
_ctx.leftText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
1916
|
+
_ctx.leftText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$_, vue.toDisplayString(_ctx.leftText), 1)) : vue.createCommentVNode("", true),
|
|
1958
1917
|
vue.renderSlot(_ctx.$slots, "left")
|
|
1959
1918
|
]),
|
|
1960
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
1919
|
+
vue.createElementVNode("view", _hoisted_3$K, [
|
|
1961
1920
|
_ctx.title ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
1962
1921
|
key: 0,
|
|
1963
1922
|
class: "title",
|
|
@@ -1976,7 +1935,7 @@
|
|
|
1976
1935
|
class: "nut-navbar__right",
|
|
1977
1936
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
|
|
1978
1937
|
}, [
|
|
1979
|
-
_ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$
|
|
1938
|
+
_ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$C, vue.toDisplayString(_ctx.desc), 1)) : vue.createCommentVNode("", true),
|
|
1980
1939
|
vue.renderSlot(_ctx.$slots, "right")
|
|
1981
1940
|
])
|
|
1982
1941
|
], 6)
|
|
@@ -1994,10 +1953,10 @@
|
|
|
1994
1953
|
color: "#979797",
|
|
1995
1954
|
name: "left"
|
|
1996
1955
|
})) : vue.createCommentVNode("", true),
|
|
1997
|
-
_ctx.leftText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$
|
|
1956
|
+
_ctx.leftText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$s, vue.toDisplayString(_ctx.leftText), 1)) : vue.createCommentVNode("", true),
|
|
1998
1957
|
vue.renderSlot(_ctx.$slots, "left")
|
|
1999
1958
|
]),
|
|
2000
|
-
vue.createElementVNode("view", _hoisted_6$
|
|
1959
|
+
vue.createElementVNode("view", _hoisted_6$p, [
|
|
2001
1960
|
_ctx.title ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
2002
1961
|
key: 0,
|
|
2003
1962
|
class: "title",
|
|
@@ -2016,13 +1975,13 @@
|
|
|
2016
1975
|
class: "nut-navbar__right",
|
|
2017
1976
|
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
|
|
2018
1977
|
}, [
|
|
2019
|
-
_ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$
|
|
1978
|
+
_ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$l, vue.toDisplayString(_ctx.desc), 1)) : vue.createCommentVNode("", true),
|
|
2020
1979
|
vue.renderSlot(_ctx.$slots, "right")
|
|
2021
1980
|
])
|
|
2022
1981
|
], 6));
|
|
2023
1982
|
}
|
|
2024
|
-
var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2025
|
-
const { componentName: componentName$
|
|
1983
|
+
var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["render", _sfc_render$1s]]);
|
|
1984
|
+
const { componentName: componentName$1a, translate: translate$s } = createComponent("fixednav");
|
|
2026
1985
|
const component$6 = {
|
|
2027
1986
|
props: {
|
|
2028
1987
|
visible: {
|
|
@@ -2066,7 +2025,7 @@
|
|
|
2066
2025
|
emits: ["update:visible", "selected"],
|
|
2067
2026
|
setup(props, { emit }) {
|
|
2068
2027
|
const classes = vue.computed(() => {
|
|
2069
|
-
const prefixCls = componentName$
|
|
2028
|
+
const prefixCls = componentName$1a;
|
|
2070
2029
|
return {
|
|
2071
2030
|
[prefixCls]: true,
|
|
2072
2031
|
active: props.visible,
|
|
@@ -2087,15 +2046,15 @@
|
|
|
2087
2046
|
return { classes, updateValue, selected, translate: translate$s, current };
|
|
2088
2047
|
}
|
|
2089
2048
|
};
|
|
2090
|
-
const _hoisted_1$
|
|
2091
|
-
const _hoisted_2
|
|
2092
|
-
const _hoisted_3$
|
|
2093
|
-
const _hoisted_4$
|
|
2094
|
-
const _hoisted_5$
|
|
2049
|
+
const _hoisted_1$1c = { class: "nut-fixednav__list" };
|
|
2050
|
+
const _hoisted_2$Z = ["onClick"];
|
|
2051
|
+
const _hoisted_3$J = ["src"];
|
|
2052
|
+
const _hoisted_4$B = { class: "span" };
|
|
2053
|
+
const _hoisted_5$r = {
|
|
2095
2054
|
key: 0,
|
|
2096
2055
|
class: "b"
|
|
2097
2056
|
};
|
|
2098
|
-
const _hoisted_6$
|
|
2057
|
+
const _hoisted_6$o = { class: "text" };
|
|
2099
2058
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2100
2059
|
const _component_nut_overlay = vue.resolveComponent("nut-overlay");
|
|
2101
2060
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
@@ -2110,7 +2069,7 @@
|
|
|
2110
2069
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.updateValue(false))
|
|
2111
2070
|
}, null, 8, ["visible"])) : vue.createCommentVNode("", true),
|
|
2112
2071
|
vue.renderSlot(_ctx.$slots, "list", {}, () => [
|
|
2113
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
2072
|
+
vue.createElementVNode("view", _hoisted_1$1c, [
|
|
2114
2073
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.navList, (item, index) => {
|
|
2115
2074
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
2116
2075
|
class: vue.normalizeClass(["nut-fixednav__list-item", { active: item.id == _ctx.current }]),
|
|
@@ -2119,10 +2078,10 @@
|
|
|
2119
2078
|
}, [
|
|
2120
2079
|
vue.createElementVNode("img", {
|
|
2121
2080
|
src: item.icon
|
|
2122
|
-
}, null, 8, _hoisted_3$
|
|
2123
|
-
vue.createElementVNode("view", _hoisted_4$
|
|
2124
|
-
item.num ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$
|
|
2125
|
-
], 10, _hoisted_2
|
|
2081
|
+
}, null, 8, _hoisted_3$J),
|
|
2082
|
+
vue.createElementVNode("view", _hoisted_4$B, vue.toDisplayString(item.text), 1),
|
|
2083
|
+
item.num ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$r, vue.toDisplayString(item.num), 1)) : vue.createCommentVNode("", true)
|
|
2084
|
+
], 10, _hoisted_2$Z);
|
|
2126
2085
|
}), 128))
|
|
2127
2086
|
])
|
|
2128
2087
|
]),
|
|
@@ -2135,16 +2094,16 @@
|
|
|
2135
2094
|
name: "left",
|
|
2136
2095
|
color: "#fff"
|
|
2137
2096
|
}),
|
|
2138
|
-
vue.createElementVNode("view", _hoisted_6$
|
|
2097
|
+
vue.createElementVNode("view", _hoisted_6$o, vue.toDisplayString(_ctx.visible ? _ctx.activeText || _ctx.translate("activeText") : _ctx.unActiveText || _ctx.translate("unActiveText")), 1)
|
|
2139
2098
|
])
|
|
2140
2099
|
])
|
|
2141
2100
|
], 6);
|
|
2142
2101
|
}
|
|
2143
|
-
const { create: create$
|
|
2144
|
-
const _sfc_main$
|
|
2145
|
-
var FixedNav = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2146
|
-
const { componentName: componentName$
|
|
2147
|
-
const _sfc_main$
|
|
2102
|
+
const { create: create$1z } = createComponent("fixednav");
|
|
2103
|
+
const _sfc_main$1z = create$1z(component$6);
|
|
2104
|
+
var FixedNav = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", render$2]]);
|
|
2105
|
+
const { componentName: componentName$19, create: create$1y } = createComponent("menu");
|
|
2106
|
+
const _sfc_main$1y = create$1y({
|
|
2148
2107
|
props: {
|
|
2149
2108
|
activeColor: {
|
|
2150
2109
|
type: String,
|
|
@@ -2211,7 +2170,7 @@
|
|
|
2211
2170
|
const { children, linkChildren } = useChildren();
|
|
2212
2171
|
const opened = vue.computed(() => children.some((item) => item.state.showWrapper));
|
|
2213
2172
|
const classes = vue.computed(() => {
|
|
2214
|
-
const prefixCls = componentName$
|
|
2173
|
+
const prefixCls = componentName$19;
|
|
2215
2174
|
return {
|
|
2216
2175
|
[prefixCls]: true,
|
|
2217
2176
|
"scroll-fixed": isScrollFixed.value
|
|
@@ -2279,9 +2238,9 @@
|
|
|
2279
2238
|
};
|
|
2280
2239
|
}
|
|
2281
2240
|
});
|
|
2282
|
-
const _hoisted_1$
|
|
2283
|
-
const _hoisted_2$
|
|
2284
|
-
function _sfc_render$
|
|
2241
|
+
const _hoisted_1$1b = ["onClick"];
|
|
2242
|
+
const _hoisted_2$Y = { class: "nut-menu__title-text" };
|
|
2243
|
+
function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2285
2244
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
2286
2245
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
2287
2246
|
class: vue.normalizeClass(_ctx.classes)
|
|
@@ -2300,22 +2259,22 @@
|
|
|
2300
2259
|
vue.createElementVNode("view", {
|
|
2301
2260
|
class: vue.normalizeClass(["nut-menu__title", _ctx.getClasses(item.state.showPopup)])
|
|
2302
2261
|
}, [
|
|
2303
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
2262
|
+
vue.createElementVNode("view", _hoisted_2$Y, vue.toDisplayString(item.renderTitle()), 1),
|
|
2304
2263
|
vue.createVNode(_component_nut_icon, vue.mergeProps(_ctx.$attrs, {
|
|
2305
2264
|
name: _ctx.titleIcon || (_ctx.direction === "up" ? "arrow-up" : "down-arrow"),
|
|
2306
2265
|
size: "10",
|
|
2307
2266
|
class: "nut-menu__title-icon"
|
|
2308
2267
|
}), null, 16, ["name"])
|
|
2309
2268
|
], 2)
|
|
2310
|
-
], 14, _hoisted_1$
|
|
2269
|
+
], 14, _hoisted_1$1b);
|
|
2311
2270
|
}), 128))
|
|
2312
2271
|
], 2),
|
|
2313
2272
|
vue.renderSlot(_ctx.$slots, "default")
|
|
2314
2273
|
], 2);
|
|
2315
2274
|
}
|
|
2316
|
-
var Menu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2317
|
-
const { componentName: componentName$
|
|
2318
|
-
const _sfc_main$
|
|
2275
|
+
var Menu = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["render", _sfc_render$1r]]);
|
|
2276
|
+
const { componentName: componentName$18, create: create$1x } = createComponent("menu-item");
|
|
2277
|
+
const _sfc_main$1x = create$1x({
|
|
2319
2278
|
props: {
|
|
2320
2279
|
title: String,
|
|
2321
2280
|
options: {
|
|
@@ -2339,10 +2298,10 @@
|
|
|
2339
2298
|
}
|
|
2340
2299
|
},
|
|
2341
2300
|
components: {
|
|
2342
|
-
[_sfc_main$
|
|
2301
|
+
[_sfc_main$1P.name]: _sfc_main$1P,
|
|
2343
2302
|
[Popup.name]: Popup
|
|
2344
2303
|
},
|
|
2345
|
-
emits: ["update:modelValue", "change"],
|
|
2304
|
+
emits: ["update:modelValue", "change", "open", "close"],
|
|
2346
2305
|
setup(props, { emit, slots }) {
|
|
2347
2306
|
const state = vue.reactive({
|
|
2348
2307
|
showPopup: false,
|
|
@@ -2363,7 +2322,7 @@
|
|
|
2363
2322
|
};
|
|
2364
2323
|
const { parent } = useParent();
|
|
2365
2324
|
const classes = vue.computed(() => {
|
|
2366
|
-
const prefixCls = componentName$
|
|
2325
|
+
const prefixCls = componentName$18;
|
|
2367
2326
|
return {
|
|
2368
2327
|
[prefixCls]: true
|
|
2369
2328
|
};
|
|
@@ -2384,6 +2343,7 @@
|
|
|
2384
2343
|
state.isShowPlaceholderElement = show;
|
|
2385
2344
|
if (show) {
|
|
2386
2345
|
state.showWrapper = true;
|
|
2346
|
+
emit("open");
|
|
2387
2347
|
}
|
|
2388
2348
|
};
|
|
2389
2349
|
const renderTitle = () => {
|
|
@@ -2403,11 +2363,13 @@
|
|
|
2403
2363
|
}
|
|
2404
2364
|
};
|
|
2405
2365
|
const handleClose = () => {
|
|
2366
|
+
emit("close");
|
|
2406
2367
|
state.showWrapper = false;
|
|
2407
2368
|
state.isShowPlaceholderElement = false;
|
|
2408
2369
|
};
|
|
2409
2370
|
const handleClickOutside = () => {
|
|
2410
2371
|
state.showPopup = false;
|
|
2372
|
+
emit("close");
|
|
2411
2373
|
};
|
|
2412
2374
|
return {
|
|
2413
2375
|
classes,
|
|
@@ -2422,9 +2384,9 @@
|
|
|
2422
2384
|
};
|
|
2423
2385
|
}
|
|
2424
2386
|
});
|
|
2425
|
-
const _hoisted_1$
|
|
2426
|
-
const _hoisted_2$
|
|
2427
|
-
function _sfc_render$
|
|
2387
|
+
const _hoisted_1$1a = { class: "nut-menu-item__content nut-menu-item__overflow" };
|
|
2388
|
+
const _hoisted_2$X = ["onClick"];
|
|
2389
|
+
function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2428
2390
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
2429
2391
|
const _component_nut_popup = vue.resolveComponent("nut-popup");
|
|
2430
2392
|
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -2454,7 +2416,7 @@
|
|
|
2454
2416
|
"close-on-click-overlay": _ctx.parent.props.closeOnClickOverlay
|
|
2455
2417
|
}), {
|
|
2456
2418
|
default: vue.withCtx(() => [
|
|
2457
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
2419
|
+
vue.createElementVNode("view", _hoisted_1$1a, [
|
|
2458
2420
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (option, index) => {
|
|
2459
2421
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
2460
2422
|
key: index,
|
|
@@ -2471,7 +2433,7 @@
|
|
|
2471
2433
|
class: vue.normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
|
|
2472
2434
|
style: vue.normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
|
|
2473
2435
|
}, vue.toDisplayString(option.text), 7)
|
|
2474
|
-
], 14, _hoisted_2$
|
|
2436
|
+
], 14, _hoisted_2$X);
|
|
2475
2437
|
}), 128)),
|
|
2476
2438
|
vue.renderSlot(_ctx.$slots, "default")
|
|
2477
2439
|
])
|
|
@@ -2482,9 +2444,9 @@
|
|
|
2482
2444
|
[vue.vShow, _ctx.state.showWrapper]
|
|
2483
2445
|
]);
|
|
2484
2446
|
}
|
|
2485
|
-
var MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2486
|
-
const { create: create$
|
|
2487
|
-
const _sfc_main$
|
|
2447
|
+
var MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["render", _sfc_render$1q]]);
|
|
2448
|
+
const { create: create$1w } = createComponent("tabbar");
|
|
2449
|
+
const _sfc_main$1w = create$1w({
|
|
2488
2450
|
props: {
|
|
2489
2451
|
visible: {
|
|
2490
2452
|
type: [Number, String],
|
|
@@ -2563,7 +2525,7 @@
|
|
|
2563
2525
|
};
|
|
2564
2526
|
}
|
|
2565
2527
|
});
|
|
2566
|
-
function _sfc_render$
|
|
2528
|
+
function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2567
2529
|
return _ctx.bottom && _ctx.placeholder ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
2568
2530
|
key: 0,
|
|
2569
2531
|
class: "nut-tabbar__placeholder",
|
|
@@ -2582,9 +2544,9 @@
|
|
|
2582
2544
|
vue.renderSlot(_ctx.$slots, "default")
|
|
2583
2545
|
], 2));
|
|
2584
2546
|
}
|
|
2585
|
-
var Tabbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2586
|
-
const { create: create$
|
|
2587
|
-
const _sfc_main$
|
|
2547
|
+
var Tabbar = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["render", _sfc_render$1p]]);
|
|
2548
|
+
const { create: create$1v } = createComponent("tabbar-item");
|
|
2549
|
+
const _sfc_main$1v = create$1v({
|
|
2588
2550
|
props: {
|
|
2589
2551
|
tabTitle: {
|
|
2590
2552
|
type: String,
|
|
@@ -2627,7 +2589,10 @@
|
|
|
2627
2589
|
},
|
|
2628
2590
|
to: [Object, String]
|
|
2629
2591
|
},
|
|
2630
|
-
setup(props,
|
|
2592
|
+
setup(props, { emit, slots }) {
|
|
2593
|
+
const isHaveSlot = (slot) => {
|
|
2594
|
+
return slots[slot];
|
|
2595
|
+
};
|
|
2631
2596
|
const parent = vue.inject("parent");
|
|
2632
2597
|
const state = vue.reactive({
|
|
2633
2598
|
size: parent.size,
|
|
@@ -2689,26 +2654,31 @@
|
|
|
2689
2654
|
return {
|
|
2690
2655
|
state,
|
|
2691
2656
|
active,
|
|
2657
|
+
isHaveSlot,
|
|
2692
2658
|
change
|
|
2693
2659
|
};
|
|
2694
2660
|
}
|
|
2695
2661
|
});
|
|
2696
|
-
const _hoisted_1$
|
|
2697
|
-
const _hoisted_2$
|
|
2662
|
+
const _hoisted_1$19 = { class: "nut-tabbar-item_icon-box" };
|
|
2663
|
+
const _hoisted_2$W = {
|
|
2698
2664
|
key: 0,
|
|
2699
2665
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_num"
|
|
2700
2666
|
};
|
|
2701
|
-
const _hoisted_3$
|
|
2667
|
+
const _hoisted_3$I = {
|
|
2702
2668
|
key: 1,
|
|
2703
2669
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_nums"
|
|
2704
2670
|
};
|
|
2705
|
-
const _hoisted_4$
|
|
2671
|
+
const _hoisted_4$A = {
|
|
2706
2672
|
key: 1,
|
|
2707
2673
|
class: "nut-tabbar-item_icon-box_dot"
|
|
2708
2674
|
};
|
|
2709
|
-
const _hoisted_5$
|
|
2710
|
-
|
|
2711
|
-
|
|
2675
|
+
const _hoisted_5$q = {
|
|
2676
|
+
key: 2,
|
|
2677
|
+
class: "nut-tabbar-item_icon-box_icon"
|
|
2678
|
+
};
|
|
2679
|
+
const _hoisted_6$n = { key: 3 };
|
|
2680
|
+
const _hoisted_7$k = { key: 0 };
|
|
2681
|
+
function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2712
2682
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
2713
2683
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
2714
2684
|
class: vue.normalizeClass(["nut-tabbar-item", { "nut-tabbar-item__icon--unactive": !_ctx.active }]),
|
|
@@ -2717,12 +2687,15 @@
|
|
|
2717
2687
|
}),
|
|
2718
2688
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.change())
|
|
2719
2689
|
}, [
|
|
2720
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
2690
|
+
vue.createElementVNode("view", _hoisted_1$19, [
|
|
2721
2691
|
!_ctx.dot ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
2722
|
-
_ctx.num && _ctx.num <= 99 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
2692
|
+
_ctx.num && _ctx.num <= 99 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$W, vue.toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$I, vue.toDisplayString("99+"))) : vue.createCommentVNode("", true)
|
|
2723
2693
|
], 64)) : vue.createCommentVNode("", true),
|
|
2724
|
-
_ctx.dot ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
2725
|
-
_ctx.icon ? (vue.openBlock(), vue.createElementBlock("
|
|
2694
|
+
_ctx.dot ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$A)) : vue.createCommentVNode("", true),
|
|
2695
|
+
_ctx.isHaveSlot("icon") ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$q, [
|
|
2696
|
+
vue.renderSlot(_ctx.$slots, "icon", { active: _ctx.active })
|
|
2697
|
+
])) : vue.createCommentVNode("", true),
|
|
2698
|
+
_ctx.icon && !_ctx.isHaveSlot("icon") ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$n, [
|
|
2726
2699
|
vue.createVNode(_component_nut_icon, {
|
|
2727
2700
|
class: "nut-tabbar-item_icon-box_icon",
|
|
2728
2701
|
size: _ctx.state.size,
|
|
@@ -2731,8 +2704,8 @@
|
|
|
2731
2704
|
"class-prefix": _ctx.classPrefix
|
|
2732
2705
|
}, null, 8, ["size", "name", "font-class-name", "class-prefix"])
|
|
2733
2706
|
])) : vue.createCommentVNode("", true),
|
|
2734
|
-
!_ctx.icon && _ctx.activeImg ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
2735
|
-
key:
|
|
2707
|
+
!_ctx.icon && _ctx.activeImg && !_ctx.isHaveSlot("icon") ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
2708
|
+
key: 4,
|
|
2736
2709
|
class: "nut-tabbar-item_icon-box_icon",
|
|
2737
2710
|
style: vue.normalizeStyle({
|
|
2738
2711
|
backgroundImage: `url(${_ctx.active ? _ctx.activeImg : _ctx.img})`,
|
|
@@ -2741,23 +2714,26 @@
|
|
|
2741
2714
|
})
|
|
2742
2715
|
}, null, 4)) : vue.createCommentVNode("", true),
|
|
2743
2716
|
vue.createElementVNode("view", {
|
|
2744
|
-
class: vue.normalizeClass([
|
|
2717
|
+
class: vue.normalizeClass([
|
|
2718
|
+
"nut-tabbar-item_icon-box_nav-word",
|
|
2719
|
+
{ "nut-tabbar-item_icon-box_big-word": !_ctx.icon && !_ctx.activeImg && !_ctx.isHaveSlot("icon") }
|
|
2720
|
+
])
|
|
2745
2721
|
}, [
|
|
2746
|
-
_ctx.tabTitle ? (vue.openBlock(), vue.createElementBlock("view",
|
|
2722
|
+
_ctx.tabTitle ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$k, vue.toDisplayString(_ctx.tabTitle), 1)) : vue.createCommentVNode("", true),
|
|
2747
2723
|
!_ctx.tabTitle ? vue.renderSlot(_ctx.$slots, "default", { key: 1 }) : vue.createCommentVNode("", true)
|
|
2748
2724
|
], 2)
|
|
2749
2725
|
])
|
|
2750
2726
|
], 6);
|
|
2751
2727
|
}
|
|
2752
|
-
var TabbarItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2728
|
+
var TabbarItem = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["render", _sfc_render$1o]]);
|
|
2753
2729
|
function useExpose(apis) {
|
|
2754
2730
|
const instance = vue.getCurrentInstance();
|
|
2755
2731
|
if (instance) {
|
|
2756
2732
|
Object.assign(instance.proxy, apis);
|
|
2757
2733
|
}
|
|
2758
2734
|
}
|
|
2759
|
-
const { componentName: componentName$
|
|
2760
|
-
const _sfc_main$
|
|
2735
|
+
const { componentName: componentName$17, create: create$1u } = createComponent("elevator");
|
|
2736
|
+
const _sfc_main$1u = create$1u({
|
|
2761
2737
|
props: {
|
|
2762
2738
|
height: {
|
|
2763
2739
|
type: [Number, String],
|
|
@@ -2786,7 +2762,7 @@
|
|
|
2786
2762
|
default: 35
|
|
2787
2763
|
}
|
|
2788
2764
|
},
|
|
2789
|
-
emits: ["click-item", "click-index"],
|
|
2765
|
+
emits: ["click-item", "click-index", "change"],
|
|
2790
2766
|
setup(props, context) {
|
|
2791
2767
|
const listview = vue.ref(null);
|
|
2792
2768
|
const state = vue.reactive({
|
|
@@ -2807,7 +2783,7 @@
|
|
|
2807
2783
|
fixedTop: 0
|
|
2808
2784
|
});
|
|
2809
2785
|
const classes = vue.computed(() => {
|
|
2810
|
-
const prefixCls = componentName$
|
|
2786
|
+
const prefixCls = componentName$17;
|
|
2811
2787
|
return {
|
|
2812
2788
|
[prefixCls]: true
|
|
2813
2789
|
};
|
|
@@ -2921,6 +2897,12 @@
|
|
|
2921
2897
|
state.fixedTop = fixedTop;
|
|
2922
2898
|
}
|
|
2923
2899
|
);
|
|
2900
|
+
vue.watch(
|
|
2901
|
+
() => state.currentIndex,
|
|
2902
|
+
(newVal) => {
|
|
2903
|
+
context.emit("change", newVal);
|
|
2904
|
+
}
|
|
2905
|
+
);
|
|
2924
2906
|
return {
|
|
2925
2907
|
classes,
|
|
2926
2908
|
...vue.toRefs(state),
|
|
@@ -2936,13 +2918,13 @@
|
|
|
2936
2918
|
};
|
|
2937
2919
|
}
|
|
2938
2920
|
});
|
|
2939
|
-
const _hoisted_1$
|
|
2940
|
-
const _hoisted_2$
|
|
2941
|
-
const _hoisted_3$
|
|
2942
|
-
const _hoisted_4$
|
|
2943
|
-
const _hoisted_5$
|
|
2944
|
-
const _hoisted_6$
|
|
2945
|
-
function _sfc_render$
|
|
2921
|
+
const _hoisted_1$18 = { class: "nut-elevator__list__item__code" };
|
|
2922
|
+
const _hoisted_2$V = ["onClick"];
|
|
2923
|
+
const _hoisted_3$H = ["innerHTML"];
|
|
2924
|
+
const _hoisted_4$z = { class: "fixed-title" };
|
|
2925
|
+
const _hoisted_5$p = { class: "nut-elevator__bars__inner" };
|
|
2926
|
+
const _hoisted_6$m = ["data-index", "onClick"];
|
|
2927
|
+
function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2946
2928
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
2947
2929
|
class: vue.normalizeClass(_ctx.classes)
|
|
2948
2930
|
}, [
|
|
@@ -2958,7 +2940,7 @@
|
|
|
2958
2940
|
ref_for: true,
|
|
2959
2941
|
ref: _ctx.setListGroup
|
|
2960
2942
|
}, [
|
|
2961
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
2943
|
+
vue.createElementVNode("view", _hoisted_1$18, vue.toDisplayString(item[_ctx.acceptKey]), 1),
|
|
2962
2944
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.list, (subitem) => {
|
|
2963
2945
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
2964
2946
|
class: vue.normalizeClass(["nut-elevator__list__item__name", {
|
|
@@ -2970,11 +2952,11 @@
|
|
|
2970
2952
|
!_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
2971
2953
|
key: 0,
|
|
2972
2954
|
innerHTML: subitem.name
|
|
2973
|
-
}, null, 8, _hoisted_3$
|
|
2955
|
+
}, null, 8, _hoisted_3$H)) : vue.renderSlot(_ctx.$slots, "default", {
|
|
2974
2956
|
key: 1,
|
|
2975
2957
|
item: subitem
|
|
2976
2958
|
})
|
|
2977
|
-
], 10, _hoisted_2$
|
|
2959
|
+
], 10, _hoisted_2$V);
|
|
2978
2960
|
}), 128))
|
|
2979
2961
|
]);
|
|
2980
2962
|
}), 128)),
|
|
@@ -2983,7 +2965,7 @@
|
|
|
2983
2965
|
class: "nut-elevator__list__fixed",
|
|
2984
2966
|
style: vue.normalizeStyle(_ctx.fixedStyle)
|
|
2985
2967
|
}, [
|
|
2986
|
-
vue.createElementVNode("span", _hoisted_4$
|
|
2968
|
+
vue.createElementVNode("span", _hoisted_4$z, vue.toDisplayString(_ctx.indexList[_ctx.currentIndex][_ctx.acceptKey]), 1)
|
|
2987
2969
|
], 4)), [
|
|
2988
2970
|
[vue.vShow, _ctx.scrollY > 0]
|
|
2989
2971
|
]) : vue.createCommentVNode("", true)
|
|
@@ -3000,22 +2982,22 @@
|
|
|
3000
2982
|
onTouchmove: _cache[1] || (_cache[1] = vue.withModifiers((...args) => _ctx.touchMove && _ctx.touchMove(...args), ["stop", "prevent"])),
|
|
3001
2983
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.touchEnd && _ctx.touchEnd(...args))
|
|
3002
2984
|
}, [
|
|
3003
|
-
vue.createElementVNode("view", _hoisted_5$
|
|
2985
|
+
vue.createElementVNode("view", _hoisted_5$p, [
|
|
3004
2986
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.indexList, (item, index) => {
|
|
3005
2987
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
3006
2988
|
class: vue.normalizeClass(["nut-elevator__bars__inner__item", { active: item[_ctx.acceptKey] === _ctx.indexList[_ctx.currentIndex][_ctx.acceptKey] }]),
|
|
3007
2989
|
"data-index": index,
|
|
3008
2990
|
key: item[_ctx.acceptKey],
|
|
3009
2991
|
onClick: ($event) => _ctx.handleClickIndex(item[_ctx.acceptKey])
|
|
3010
|
-
}, vue.toDisplayString(item[_ctx.acceptKey]), 11, _hoisted_6$
|
|
2992
|
+
}, vue.toDisplayString(item[_ctx.acceptKey]), 11, _hoisted_6$m);
|
|
3011
2993
|
}), 128))
|
|
3012
2994
|
])
|
|
3013
2995
|
], 32)
|
|
3014
2996
|
], 2);
|
|
3015
2997
|
}
|
|
3016
|
-
var Elevator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3017
|
-
const { create: create$
|
|
3018
|
-
const _sfc_main$
|
|
2998
|
+
var Elevator = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["render", _sfc_render$1n]]);
|
|
2999
|
+
const { create: create$1t, translate: translate$r } = createComponent("pagination");
|
|
3000
|
+
const _sfc_main$1t = create$1t({
|
|
3019
3001
|
props: {
|
|
3020
3002
|
modelValue: {
|
|
3021
3003
|
type: Number,
|
|
@@ -3121,19 +3103,19 @@
|
|
|
3121
3103
|
};
|
|
3122
3104
|
}
|
|
3123
3105
|
});
|
|
3124
|
-
const _hoisted_1$
|
|
3125
|
-
const _hoisted_2$
|
|
3106
|
+
const _hoisted_1$17 = { class: "nut-pagination" };
|
|
3107
|
+
const _hoisted_2$U = {
|
|
3126
3108
|
key: 0,
|
|
3127
3109
|
class: "nut-pagination-contain"
|
|
3128
3110
|
};
|
|
3129
|
-
const _hoisted_3$
|
|
3130
|
-
const _hoisted_4$
|
|
3111
|
+
const _hoisted_3$G = ["onClick"];
|
|
3112
|
+
const _hoisted_4$y = {
|
|
3131
3113
|
key: 1,
|
|
3132
3114
|
class: "nut-pagination-contain"
|
|
3133
3115
|
};
|
|
3134
|
-
const _hoisted_5$
|
|
3135
|
-
function _sfc_render$
|
|
3136
|
-
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
3116
|
+
const _hoisted_5$o = { class: "nut-pagination-simple" };
|
|
3117
|
+
function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3118
|
+
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$17, [
|
|
3137
3119
|
vue.createElementVNode("view", {
|
|
3138
3120
|
class: vue.normalizeClass(["nut-pagination-prev", _ctx.mode == "multi" ? "" : "simple-border", _ctx.modelValue == 1 ? "disabled" : ""]),
|
|
3139
3121
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.select(_ctx.modelValue - 1, true))
|
|
@@ -3142,7 +3124,7 @@
|
|
|
3142
3124
|
vue.createTextVNode(vue.toDisplayString(_ctx.prevText || _ctx.translate("prev")), 1)
|
|
3143
3125
|
])
|
|
3144
3126
|
], 2),
|
|
3145
|
-
_ctx.mode == "multi" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
3127
|
+
_ctx.mode == "multi" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$U, [
|
|
3146
3128
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.pages, (item, index) => {
|
|
3147
3129
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
3148
3130
|
key: index + "pagination",
|
|
@@ -3152,11 +3134,11 @@
|
|
|
3152
3134
|
vue.renderSlot(_ctx.$slots, "page", { item }, () => [
|
|
3153
3135
|
vue.createTextVNode(vue.toDisplayString(item.text), 1)
|
|
3154
3136
|
])
|
|
3155
|
-
], 10, _hoisted_3$
|
|
3137
|
+
], 10, _hoisted_3$G);
|
|
3156
3138
|
}), 128))
|
|
3157
3139
|
])) : vue.createCommentVNode("", true),
|
|
3158
|
-
_ctx.mode == "simple" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$
|
|
3159
|
-
vue.createElementVNode("view", _hoisted_5$
|
|
3140
|
+
_ctx.mode == "simple" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$y, [
|
|
3141
|
+
vue.createElementVNode("view", _hoisted_5$o, vue.toDisplayString(_ctx.modelValue) + "/" + vue.toDisplayString(_ctx.countRef), 1)
|
|
3160
3142
|
])) : vue.createCommentVNode("", true),
|
|
3161
3143
|
vue.createElementVNode("view", {
|
|
3162
3144
|
class: vue.normalizeClass(["nut-pagination-next", _ctx.modelValue >= _ctx.countRef ? "disabled" : ""]),
|
|
@@ -3168,7 +3150,7 @@
|
|
|
3168
3150
|
], 2)
|
|
3169
3151
|
]);
|
|
3170
3152
|
}
|
|
3171
|
-
var Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3153
|
+
var Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["render", _sfc_render$1m]]);
|
|
3172
3154
|
class Title {
|
|
3173
3155
|
constructor() {
|
|
3174
3156
|
this.title = "";
|
|
@@ -3360,8 +3342,8 @@
|
|
|
3360
3342
|
};
|
|
3361
3343
|
}
|
|
3362
3344
|
};
|
|
3363
|
-
const _hoisted_1$
|
|
3364
|
-
const _hoisted_2$
|
|
3345
|
+
const _hoisted_1$16 = ["onClick"];
|
|
3346
|
+
const _hoisted_2$T = ["onClick"];
|
|
3365
3347
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3366
3348
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
3367
3349
|
const _component_nut_sticky = vue.resolveComponent("nut-sticky");
|
|
@@ -3406,7 +3388,7 @@
|
|
|
3406
3388
|
vue.createElementVNode("view", {
|
|
3407
3389
|
class: vue.normalizeClass(["nut-tabs__titles-item__text", { ellipsis: _ctx.ellipsis }])
|
|
3408
3390
|
}, vue.toDisplayString(item.title), 3)
|
|
3409
|
-
], 14, _hoisted_1$
|
|
3391
|
+
], 14, _hoisted_1$16);
|
|
3410
3392
|
}), 128))
|
|
3411
3393
|
], 6)
|
|
3412
3394
|
]),
|
|
@@ -3441,7 +3423,7 @@
|
|
|
3441
3423
|
vue.createElementVNode("view", {
|
|
3442
3424
|
class: vue.normalizeClass(["nut-tabs__titles-item__text", { ellipsis: _ctx.ellipsis }])
|
|
3443
3425
|
}, vue.toDisplayString(item.title), 3)
|
|
3444
|
-
], 14, _hoisted_2$
|
|
3426
|
+
], 14, _hoisted_2$T);
|
|
3445
3427
|
}), 128))
|
|
3446
3428
|
], 6)),
|
|
3447
3429
|
vue.createElementVNode("view", {
|
|
@@ -3452,11 +3434,11 @@
|
|
|
3452
3434
|
], 4)
|
|
3453
3435
|
], 2);
|
|
3454
3436
|
}
|
|
3455
|
-
const { create: create$
|
|
3456
|
-
const _sfc_main$
|
|
3457
|
-
var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3458
|
-
const { create: create$
|
|
3459
|
-
const _sfc_main$
|
|
3437
|
+
const { create: create$1s } = createComponent("tabs");
|
|
3438
|
+
const _sfc_main$1s = create$1s(component$5);
|
|
3439
|
+
var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["render", render$1]]);
|
|
3440
|
+
const { create: create$1r } = createComponent("tabpane");
|
|
3441
|
+
const _sfc_main$1r = create$1r({
|
|
3460
3442
|
props: {
|
|
3461
3443
|
title: {
|
|
3462
3444
|
type: [String, Number],
|
|
@@ -3481,16 +3463,16 @@
|
|
|
3481
3463
|
};
|
|
3482
3464
|
}
|
|
3483
3465
|
});
|
|
3484
|
-
function _sfc_render$
|
|
3466
|
+
function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3485
3467
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
3486
3468
|
class: vue.normalizeClass(["nut-tabpane", { inactive: _ctx.paneKey != _ctx.activeKey && _ctx.autoHeight }])
|
|
3487
3469
|
}, [
|
|
3488
3470
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3489
3471
|
], 2);
|
|
3490
3472
|
}
|
|
3491
|
-
var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3492
|
-
const { componentName: componentName$
|
|
3493
|
-
const _sfc_main$
|
|
3473
|
+
var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$1l]]);
|
|
3474
|
+
const { componentName: componentName$16, create: create$1q } = createComponent("indicator");
|
|
3475
|
+
const _sfc_main$1q = create$1q({
|
|
3494
3476
|
props: {
|
|
3495
3477
|
size: {
|
|
3496
3478
|
type: Number,
|
|
@@ -3518,17 +3500,17 @@
|
|
|
3518
3500
|
setup(props) {
|
|
3519
3501
|
const { block, align } = vue.toRefs(props);
|
|
3520
3502
|
const classes = vue.computed(() => {
|
|
3521
|
-
const prefixCls = componentName$
|
|
3503
|
+
const prefixCls = componentName$16;
|
|
3522
3504
|
return {
|
|
3523
3505
|
[prefixCls]: true,
|
|
3524
3506
|
[`${prefixCls}--block`]: block.value,
|
|
3525
3507
|
[`${prefixCls}--align__${align.value}`]: block.value && align.value
|
|
3526
3508
|
};
|
|
3527
3509
|
});
|
|
3528
|
-
return { classes, componentName: componentName$
|
|
3510
|
+
return { classes, componentName: componentName$16 };
|
|
3529
3511
|
}
|
|
3530
3512
|
});
|
|
3531
|
-
function _sfc_render$
|
|
3513
|
+
function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3532
3514
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
3533
3515
|
class: vue.normalizeClass(_ctx.classes)
|
|
3534
3516
|
}, [
|
|
@@ -3545,9 +3527,9 @@
|
|
|
3545
3527
|
}), 128))
|
|
3546
3528
|
], 2);
|
|
3547
3529
|
}
|
|
3548
|
-
var Indicator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3549
|
-
const { componentName: componentName$
|
|
3550
|
-
const _sfc_main$
|
|
3530
|
+
var Indicator = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["render", _sfc_render$1k]]);
|
|
3531
|
+
const { componentName: componentName$15, create: create$1p } = createComponent("sidenavbar");
|
|
3532
|
+
const _sfc_main$1p = create$1p({
|
|
3551
3533
|
props: {
|
|
3552
3534
|
offset: {
|
|
3553
3535
|
type: [String, Number],
|
|
@@ -3562,7 +3544,7 @@
|
|
|
3562
3544
|
observer: null
|
|
3563
3545
|
});
|
|
3564
3546
|
const classes = vue.computed(() => {
|
|
3565
|
-
const prefixCls = componentName$
|
|
3547
|
+
const prefixCls = componentName$15;
|
|
3566
3548
|
return {
|
|
3567
3549
|
[prefixCls]: true
|
|
3568
3550
|
};
|
|
@@ -3606,25 +3588,25 @@
|
|
|
3606
3588
|
};
|
|
3607
3589
|
}
|
|
3608
3590
|
});
|
|
3609
|
-
const _hoisted_1$
|
|
3610
|
-
const _hoisted_2$
|
|
3591
|
+
const _hoisted_1$15 = { class: "nut-sidenavbar__content" };
|
|
3592
|
+
const _hoisted_2$S = {
|
|
3611
3593
|
class: "nut-sidenavbar__content__list",
|
|
3612
3594
|
ref: "list"
|
|
3613
3595
|
};
|
|
3614
|
-
function _sfc_render$
|
|
3596
|
+
function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3615
3597
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
3616
3598
|
class: vue.normalizeClass(_ctx.classes)
|
|
3617
3599
|
}, [
|
|
3618
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
3619
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
3600
|
+
vue.createElementVNode("view", _hoisted_1$15, [
|
|
3601
|
+
vue.createElementVNode("view", _hoisted_2$S, [
|
|
3620
3602
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3621
3603
|
], 512)
|
|
3622
3604
|
])
|
|
3623
3605
|
], 2);
|
|
3624
3606
|
}
|
|
3625
|
-
var SideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3626
|
-
const { componentName: componentName$
|
|
3627
|
-
const _sfc_main$
|
|
3607
|
+
var SideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["render", _sfc_render$1j]]);
|
|
3608
|
+
const { componentName: componentName$14, create: create$1o } = createComponent("sidenavbaritem");
|
|
3609
|
+
const _sfc_main$1o = create$1o({
|
|
3628
3610
|
props: {
|
|
3629
3611
|
title: {
|
|
3630
3612
|
type: String,
|
|
@@ -3638,7 +3620,7 @@
|
|
|
3638
3620
|
emits: ["click"],
|
|
3639
3621
|
setup: (props, context) => {
|
|
3640
3622
|
const classes = vue.computed(() => {
|
|
3641
|
-
const prefixCls = componentName$
|
|
3623
|
+
const prefixCls = componentName$14;
|
|
3642
3624
|
return {
|
|
3643
3625
|
[prefixCls]: true
|
|
3644
3626
|
};
|
|
@@ -3652,20 +3634,20 @@
|
|
|
3652
3634
|
};
|
|
3653
3635
|
}
|
|
3654
3636
|
});
|
|
3655
|
-
const _hoisted_1$
|
|
3656
|
-
const _hoisted_2$
|
|
3657
|
-
function _sfc_render$
|
|
3637
|
+
const _hoisted_1$14 = ["ikey"];
|
|
3638
|
+
const _hoisted_2$R = { class: "nut-sidenavbaritem__title" };
|
|
3639
|
+
function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3658
3640
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
3659
3641
|
class: "nut-sidenavbaritem",
|
|
3660
3642
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
|
|
3661
3643
|
ikey: _ctx.ikey
|
|
3662
3644
|
}, [
|
|
3663
|
-
vue.createElementVNode("span", _hoisted_2$
|
|
3664
|
-
], 8, _hoisted_1$
|
|
3645
|
+
vue.createElementVNode("span", _hoisted_2$R, vue.toDisplayString(_ctx.title), 1)
|
|
3646
|
+
], 8, _hoisted_1$14);
|
|
3665
3647
|
}
|
|
3666
|
-
var SideNavBarItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3667
|
-
const { componentName: componentName$
|
|
3668
|
-
const _sfc_main$
|
|
3648
|
+
var SideNavBarItem = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["render", _sfc_render$1i]]);
|
|
3649
|
+
const { componentName: componentName$13, create: create$1n } = createComponent("subsidenavbar");
|
|
3650
|
+
const _sfc_main$1n = create$1n({
|
|
3669
3651
|
props: {
|
|
3670
3652
|
title: {
|
|
3671
3653
|
type: String,
|
|
@@ -3686,7 +3668,7 @@
|
|
|
3686
3668
|
direction: ""
|
|
3687
3669
|
});
|
|
3688
3670
|
const classes = vue.computed(() => {
|
|
3689
|
-
const prefixCls = componentName$
|
|
3671
|
+
const prefixCls = componentName$13;
|
|
3690
3672
|
return {
|
|
3691
3673
|
[prefixCls]: true
|
|
3692
3674
|
};
|
|
@@ -3711,10 +3693,10 @@
|
|
|
3711
3693
|
};
|
|
3712
3694
|
}
|
|
3713
3695
|
});
|
|
3714
|
-
const _hoisted_1$
|
|
3715
|
-
const _hoisted_2$
|
|
3716
|
-
const _hoisted_3$
|
|
3717
|
-
function _sfc_render$
|
|
3696
|
+
const _hoisted_1$13 = ["ikey"];
|
|
3697
|
+
const _hoisted_2$Q = { class: "nut-subsidenavbar__title__text" };
|
|
3698
|
+
const _hoisted_3$F = { class: "nut-subsidenavbar__title__icon" };
|
|
3699
|
+
function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3718
3700
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
3719
3701
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
3720
3702
|
class: vue.normalizeClass(_ctx.classes),
|
|
@@ -3724,8 +3706,8 @@
|
|
|
3724
3706
|
class: "nut-subsidenavbar__title",
|
|
3725
3707
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
3726
3708
|
}, [
|
|
3727
|
-
vue.createElementVNode("span", _hoisted_2$
|
|
3728
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
3709
|
+
vue.createElementVNode("span", _hoisted_2$Q, vue.toDisplayString(_ctx.title), 1),
|
|
3710
|
+
vue.createElementVNode("span", _hoisted_3$F, [
|
|
3729
3711
|
vue.createVNode(_component_nut_icon, {
|
|
3730
3712
|
name: "down-arrow",
|
|
3731
3713
|
class: vue.normalizeClass(_ctx.direction)
|
|
@@ -3738,9 +3720,9 @@
|
|
|
3738
3720
|
}, [
|
|
3739
3721
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3740
3722
|
], 6)
|
|
3741
|
-
], 10, _hoisted_1$
|
|
3723
|
+
], 10, _hoisted_1$13);
|
|
3742
3724
|
}
|
|
3743
|
-
var SubSideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3725
|
+
var SubSideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_render$1h]]);
|
|
3744
3726
|
const MIN_DISTANCE$1 = 10;
|
|
3745
3727
|
function getDirection$1(x, y) {
|
|
3746
3728
|
if (x > y && x > MIN_DISTANCE$1) {
|
|
@@ -3804,8 +3786,8 @@
|
|
|
3804
3786
|
isHorizontal
|
|
3805
3787
|
};
|
|
3806
3788
|
}
|
|
3807
|
-
const { componentName: componentName$
|
|
3808
|
-
const _sfc_main$
|
|
3789
|
+
const { componentName: componentName$12, create: create$1m } = createComponent("range");
|
|
3790
|
+
const _sfc_main$1m = create$1m({
|
|
3809
3791
|
props: {
|
|
3810
3792
|
range: {
|
|
3811
3793
|
type: Boolean,
|
|
@@ -3864,7 +3846,7 @@
|
|
|
3864
3846
|
});
|
|
3865
3847
|
const scope = vue.computed(() => Number(props.max) - Number(props.min));
|
|
3866
3848
|
const classes = vue.computed(() => {
|
|
3867
|
-
const prefixCls = componentName$
|
|
3849
|
+
const prefixCls = componentName$12;
|
|
3868
3850
|
return {
|
|
3869
3851
|
[prefixCls]: true,
|
|
3870
3852
|
[`${prefixCls}-disabled`]: props.disabled,
|
|
@@ -4091,21 +4073,21 @@
|
|
|
4091
4073
|
};
|
|
4092
4074
|
}
|
|
4093
4075
|
});
|
|
4094
|
-
const _hoisted_1$
|
|
4076
|
+
const _hoisted_1$12 = {
|
|
4095
4077
|
key: 0,
|
|
4096
4078
|
class: "min"
|
|
4097
4079
|
};
|
|
4098
|
-
const _hoisted_2$
|
|
4080
|
+
const _hoisted_2$P = {
|
|
4099
4081
|
key: 0,
|
|
4100
4082
|
class: "nut-range-mark"
|
|
4101
4083
|
};
|
|
4102
|
-
const _hoisted_3$
|
|
4103
|
-
const _hoisted_4$
|
|
4084
|
+
const _hoisted_3$E = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
|
|
4085
|
+
const _hoisted_4$x = {
|
|
4104
4086
|
key: 0,
|
|
4105
4087
|
class: "number"
|
|
4106
4088
|
};
|
|
4107
|
-
const _hoisted_5$
|
|
4108
|
-
const _hoisted_6$
|
|
4089
|
+
const _hoisted_5$n = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax"];
|
|
4090
|
+
const _hoisted_6$l = {
|
|
4109
4091
|
key: 0,
|
|
4110
4092
|
class: "number"
|
|
4111
4093
|
};
|
|
@@ -4113,18 +4095,18 @@
|
|
|
4113
4095
|
key: 1,
|
|
4114
4096
|
class: "max"
|
|
4115
4097
|
};
|
|
4116
|
-
function _sfc_render$
|
|
4098
|
+
function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4117
4099
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
4118
4100
|
class: vue.normalizeClass(_ctx.containerClasses)
|
|
4119
4101
|
}, [
|
|
4120
|
-
!_ctx.hiddenRange ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
4102
|
+
!_ctx.hiddenRange ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$12, vue.toDisplayString(+_ctx.min), 1)) : vue.createCommentVNode("", true),
|
|
4121
4103
|
vue.createElementVNode("view", {
|
|
4122
4104
|
ref: "root",
|
|
4123
4105
|
style: vue.normalizeStyle(_ctx.wrapperStyle),
|
|
4124
4106
|
class: vue.normalizeClass(_ctx.classes),
|
|
4125
4107
|
onClick: _cache[9] || (_cache[9] = vue.withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
|
|
4126
4108
|
}, [
|
|
4127
|
-
_ctx.marksList.length > 0 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
4109
|
+
_ctx.marksList.length > 0 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$P, [
|
|
4128
4110
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.marksList, (marks) => {
|
|
4129
4111
|
return vue.openBlock(), vue.createElementBlock("span", {
|
|
4130
4112
|
key: marks,
|
|
@@ -4175,9 +4157,9 @@
|
|
|
4175
4157
|
class: "nut-range-button",
|
|
4176
4158
|
style: vue.normalizeStyle(_ctx.buttonStyle)
|
|
4177
4159
|
}, [
|
|
4178
|
-
!_ctx.hiddenTag ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$
|
|
4160
|
+
!_ctx.hiddenTag ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$x, vue.toDisplayString(_ctx.curValue(index)), 1)) : vue.createCommentVNode("", true)
|
|
4179
4161
|
], 4))
|
|
4180
|
-
], 42, _hoisted_3$
|
|
4162
|
+
], 42, _hoisted_3$E);
|
|
4181
4163
|
}), 64)) : (vue.openBlock(), vue.createElementBlock("view", {
|
|
4182
4164
|
key: 1,
|
|
4183
4165
|
role: "slider",
|
|
@@ -4203,17 +4185,17 @@
|
|
|
4203
4185
|
class: "nut-range-button",
|
|
4204
4186
|
style: vue.normalizeStyle(_ctx.buttonStyle)
|
|
4205
4187
|
}, [
|
|
4206
|
-
!_ctx.hiddenTag ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$
|
|
4188
|
+
!_ctx.hiddenTag ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$l, vue.toDisplayString(_ctx.curValue()), 1)) : vue.createCommentVNode("", true)
|
|
4207
4189
|
], 4))
|
|
4208
|
-
], 40, _hoisted_5$
|
|
4190
|
+
], 40, _hoisted_5$n))
|
|
4209
4191
|
], 4)
|
|
4210
4192
|
], 6),
|
|
4211
4193
|
!_ctx.hiddenRange ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$j, vue.toDisplayString(+_ctx.max), 1)) : vue.createCommentVNode("", true)
|
|
4212
4194
|
], 2);
|
|
4213
4195
|
}
|
|
4214
|
-
var Range = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4215
|
-
const { create: create$
|
|
4216
|
-
const _sfc_main$
|
|
4196
|
+
var Range = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["render", _sfc_render$1g]]);
|
|
4197
|
+
const { create: create$1l, translate: translate$q } = createComponent("searchbar");
|
|
4198
|
+
const _sfc_main$1l = create$1l({
|
|
4217
4199
|
props: {
|
|
4218
4200
|
modelValue: {
|
|
4219
4201
|
type: [String, Number],
|
|
@@ -4375,28 +4357,28 @@
|
|
|
4375
4357
|
};
|
|
4376
4358
|
}
|
|
4377
4359
|
});
|
|
4378
|
-
const _hoisted_1$
|
|
4360
|
+
const _hoisted_1$11 = {
|
|
4379
4361
|
key: 0,
|
|
4380
4362
|
class: "nut-searchbar__search-label"
|
|
4381
4363
|
};
|
|
4382
|
-
const _hoisted_2$
|
|
4364
|
+
const _hoisted_2$O = {
|
|
4383
4365
|
key: 1,
|
|
4384
4366
|
class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
|
|
4385
4367
|
};
|
|
4386
|
-
const _hoisted_3$
|
|
4387
|
-
const _hoisted_4$
|
|
4388
|
-
const _hoisted_5$
|
|
4368
|
+
const _hoisted_3$D = { class: "nut-searchbar__input-inner" };
|
|
4369
|
+
const _hoisted_4$w = ["type", "maxlength", "placeholder", "value", "disabled", "readonly"];
|
|
4370
|
+
const _hoisted_5$m = {
|
|
4389
4371
|
key: 2,
|
|
4390
4372
|
class: "nut-searchbar__search-icon nut-searchbar__right-search-icon"
|
|
4391
4373
|
};
|
|
4392
|
-
function _sfc_render$
|
|
4374
|
+
function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4393
4375
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
4394
4376
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
4395
4377
|
class: "nut-searchbar",
|
|
4396
4378
|
style: vue.normalizeStyle(_ctx.searchbarStyle)
|
|
4397
4379
|
}, [
|
|
4398
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$
|
|
4399
|
-
_ctx.$slots.leftout ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
4380
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$11, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
|
|
4381
|
+
_ctx.$slots.leftout ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$O, [
|
|
4400
4382
|
vue.renderSlot(_ctx.$slots, "leftout")
|
|
4401
4383
|
])) : vue.createCommentVNode("", true),
|
|
4402
4384
|
vue.createElementVNode("view", {
|
|
@@ -4410,7 +4392,7 @@
|
|
|
4410
4392
|
}, [
|
|
4411
4393
|
vue.renderSlot(_ctx.$slots, "leftin")
|
|
4412
4394
|
])) : vue.createCommentVNode("", true),
|
|
4413
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
4395
|
+
vue.createElementVNode("view", _hoisted_3$D, [
|
|
4414
4396
|
vue.createElementVNode("form", {
|
|
4415
4397
|
action: "#",
|
|
4416
4398
|
onSubmit: _cache[5] || (_cache[5] = vue.withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
|
|
@@ -4429,7 +4411,7 @@
|
|
|
4429
4411
|
onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.valueFocus && _ctx.valueFocus(...args)),
|
|
4430
4412
|
onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args)),
|
|
4431
4413
|
style: vue.normalizeStyle(_ctx.styleSearchbar)
|
|
4432
|
-
}, null, 44, _hoisted_4$
|
|
4414
|
+
}, null, 44, _hoisted_4$w)
|
|
4433
4415
|
], 32),
|
|
4434
4416
|
_ctx.clearable ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("view", {
|
|
4435
4417
|
key: 0,
|
|
@@ -4453,12 +4435,12 @@
|
|
|
4453
4435
|
vue.renderSlot(_ctx.$slots, "rightin")
|
|
4454
4436
|
])) : vue.createCommentVNode("", true)
|
|
4455
4437
|
], 4),
|
|
4456
|
-
_ctx.$slots.rightout ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$
|
|
4438
|
+
_ctx.$slots.rightout ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$m, [
|
|
4457
4439
|
vue.renderSlot(_ctx.$slots, "rightout")
|
|
4458
4440
|
])) : vue.createCommentVNode("", true)
|
|
4459
4441
|
], 4);
|
|
4460
4442
|
}
|
|
4461
|
-
var SearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4443
|
+
var SearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_render$1f]]);
|
|
4462
4444
|
const formatTree = (tree, parent, config) => tree.map((node) => {
|
|
4463
4445
|
const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
|
|
4464
4446
|
const { [valueKey]: value, [textKey]: text, [childrenKey]: children, ...others } = node;
|
|
@@ -4579,8 +4561,8 @@
|
|
|
4579
4561
|
return Array.isArray(children) && Boolean(children.length);
|
|
4580
4562
|
}
|
|
4581
4563
|
}
|
|
4582
|
-
const { create: create$
|
|
4583
|
-
const _sfc_main$
|
|
4564
|
+
const { create: create$1k, translate: translate$p } = createComponent("cascader-item");
|
|
4565
|
+
const _sfc_main$1k = create$1k({
|
|
4584
4566
|
props: {
|
|
4585
4567
|
visible: Boolean,
|
|
4586
4568
|
modelValue: Array,
|
|
@@ -4807,14 +4789,14 @@
|
|
|
4807
4789
|
return { panes, initLoading, tabsCursor, ...methods };
|
|
4808
4790
|
}
|
|
4809
4791
|
});
|
|
4810
|
-
const _hoisted_1$
|
|
4792
|
+
const _hoisted_1$10 = {
|
|
4811
4793
|
role: "menu",
|
|
4812
4794
|
class: "nut-cascader-pane"
|
|
4813
4795
|
};
|
|
4814
|
-
const _hoisted_2$
|
|
4815
|
-
const _hoisted_3$
|
|
4816
|
-
const _hoisted_4$
|
|
4817
|
-
function _sfc_render$
|
|
4796
|
+
const _hoisted_2$N = ["aria-checked", "aria-disabled", "onClick"];
|
|
4797
|
+
const _hoisted_3$C = { class: "nut-cascader-item__title" };
|
|
4798
|
+
const _hoisted_4$v = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-cascader-pane" }, null, -1);
|
|
4799
|
+
function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4818
4800
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
4819
4801
|
const _component_nut_tabpane = vue.resolveComponent("nut-tabpane");
|
|
4820
4802
|
const _component_nut_tabs = vue.resolveComponent("nut-tabs");
|
|
@@ -4832,7 +4814,7 @@
|
|
|
4832
4814
|
key: index
|
|
4833
4815
|
}, {
|
|
4834
4816
|
default: vue.withCtx(() => [
|
|
4835
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
4817
|
+
vue.createElementVNode("view", _hoisted_1$10, [
|
|
4836
4818
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(pane.nodes, (node) => {
|
|
4837
4819
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
4838
4820
|
key: node.value,
|
|
@@ -4842,7 +4824,7 @@
|
|
|
4842
4824
|
role: "menuitemradio",
|
|
4843
4825
|
onClick: ($event) => _ctx.handleNode(node, false)
|
|
4844
4826
|
}, [
|
|
4845
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
4827
|
+
vue.createElementVNode("view", _hoisted_3$C, vue.toDisplayString(node.text), 1),
|
|
4846
4828
|
node.loading ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
4847
4829
|
key: 0,
|
|
4848
4830
|
class: "nut-cascader-item__icon-loading",
|
|
@@ -4852,7 +4834,7 @@
|
|
|
4852
4834
|
class: "nut-cascader-item__icon-check",
|
|
4853
4835
|
name: "checklist"
|
|
4854
4836
|
}))
|
|
4855
|
-
], 10, _hoisted_2$
|
|
4837
|
+
], 10, _hoisted_2$N);
|
|
4856
4838
|
}), 128))
|
|
4857
4839
|
])
|
|
4858
4840
|
]),
|
|
@@ -4863,7 +4845,7 @@
|
|
|
4863
4845
|
title: "Loading..."
|
|
4864
4846
|
}, {
|
|
4865
4847
|
default: vue.withCtx(() => [
|
|
4866
|
-
_hoisted_4$
|
|
4848
|
+
_hoisted_4$v
|
|
4867
4849
|
]),
|
|
4868
4850
|
_: 1
|
|
4869
4851
|
}))
|
|
@@ -4871,9 +4853,9 @@
|
|
|
4871
4853
|
_: 1
|
|
4872
4854
|
}, 8, ["modelValue", "onClick"]);
|
|
4873
4855
|
}
|
|
4874
|
-
var CascaderItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4875
|
-
const { create: create$
|
|
4876
|
-
const _sfc_main$
|
|
4856
|
+
var CascaderItem = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$1e]]);
|
|
4857
|
+
const { create: create$1j } = createComponent("cascader");
|
|
4858
|
+
const _sfc_main$1j = create$1j({
|
|
4877
4859
|
components: {
|
|
4878
4860
|
[CascaderItem.name]: CascaderItem
|
|
4879
4861
|
},
|
|
@@ -4942,8 +4924,8 @@
|
|
|
4942
4924
|
};
|
|
4943
4925
|
}
|
|
4944
4926
|
});
|
|
4945
|
-
const _hoisted_1
|
|
4946
|
-
function _sfc_render$
|
|
4927
|
+
const _hoisted_1$$ = ["innerHTML"];
|
|
4928
|
+
function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4947
4929
|
const _component_nut_cascader_item = vue.resolveComponent("nut-cascader-item");
|
|
4948
4930
|
const _component_nut_popup = vue.resolveComponent("nut-popup");
|
|
4949
4931
|
return _ctx.poppable ? (vue.openBlock(), vue.createBlock(_component_nut_popup, {
|
|
@@ -4963,7 +4945,7 @@
|
|
|
4963
4945
|
key: 0,
|
|
4964
4946
|
class: "nut-cascader__bar",
|
|
4965
4947
|
innerHTML: _ctx.title
|
|
4966
|
-
}, null, 8, _hoisted_1
|
|
4948
|
+
}, null, 8, _hoisted_1$$)) : vue.createCommentVNode("", true),
|
|
4967
4949
|
vue.createVNode(_component_nut_cascader_item, {
|
|
4968
4950
|
onChange: _ctx.onChange,
|
|
4969
4951
|
onPathChange: _ctx.onPathChange,
|
|
@@ -4994,7 +4976,7 @@
|
|
|
4994
4976
|
visible: _ctx.innerVisible
|
|
4995
4977
|
}, null, 8, ["onChange", "onPathChange", "modelValue", "options", "lazy", "lazy-load", "value-key", "text-key", "children-key", "convert-config", "visible"]));
|
|
4996
4978
|
}
|
|
4997
|
-
var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4979
|
+
var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["render", _sfc_render$1d]]);
|
|
4998
4980
|
const Utils = {
|
|
4999
4981
|
isLeapYear: function(y) {
|
|
5000
4982
|
return y % 4 == 0 && y % 100 != 0 || y % 400 == 0;
|
|
@@ -5089,8 +5071,8 @@
|
|
|
5089
5071
|
}
|
|
5090
5072
|
}
|
|
5091
5073
|
var requestAniFrame$1 = requestAniFrame();
|
|
5092
|
-
const { create: create$
|
|
5093
|
-
const _sfc_main$
|
|
5074
|
+
const { create: create$1i, translate: translate$o } = createComponent("calendar-item");
|
|
5075
|
+
const _sfc_main$1i = create$1i({
|
|
5094
5076
|
props: {
|
|
5095
5077
|
type: {
|
|
5096
5078
|
type: String,
|
|
@@ -5147,11 +5129,16 @@
|
|
|
5147
5129
|
endDate: {
|
|
5148
5130
|
type: String,
|
|
5149
5131
|
default: Utils.getDay(365)
|
|
5132
|
+
},
|
|
5133
|
+
firstDayOfWeek: {
|
|
5134
|
+
type: Number,
|
|
5135
|
+
default: 0
|
|
5150
5136
|
}
|
|
5151
5137
|
},
|
|
5152
5138
|
emits: ["choose", "update", "close", "select"],
|
|
5153
5139
|
setup(props, { emit, slots }) {
|
|
5154
|
-
const
|
|
5140
|
+
const weekdays = translate$o("weekdays");
|
|
5141
|
+
const weeks = vue.ref([...weekdays.slice(props.firstDayOfWeek, 7), ...weekdays.slice(0, props.firstDayOfWeek)]);
|
|
5155
5142
|
const months = vue.ref(null);
|
|
5156
5143
|
const monthsPanel = vue.ref(null);
|
|
5157
5144
|
const weeksPanel = vue.ref(null);
|
|
@@ -5340,6 +5327,7 @@
|
|
|
5340
5327
|
});
|
|
5341
5328
|
};
|
|
5342
5329
|
const getPreDaysStatus = (days, type, dateInfo, preCurrMonthDays) => {
|
|
5330
|
+
days = days - props.firstDayOfWeek;
|
|
5343
5331
|
let { year, month } = dateInfo;
|
|
5344
5332
|
if (type == "prev" && days >= 7) {
|
|
5345
5333
|
days -= 7;
|
|
@@ -5667,27 +5655,27 @@
|
|
|
5667
5655
|
};
|
|
5668
5656
|
}
|
|
5669
5657
|
});
|
|
5670
|
-
const _hoisted_1$
|
|
5658
|
+
const _hoisted_1$_ = {
|
|
5671
5659
|
key: 0,
|
|
5672
5660
|
class: "calendar-title"
|
|
5673
5661
|
};
|
|
5674
|
-
const _hoisted_2$
|
|
5662
|
+
const _hoisted_2$M = {
|
|
5675
5663
|
key: 1,
|
|
5676
5664
|
class: "calendar-top-slot"
|
|
5677
5665
|
};
|
|
5678
|
-
const _hoisted_3$
|
|
5666
|
+
const _hoisted_3$B = {
|
|
5679
5667
|
key: 2,
|
|
5680
5668
|
class: "calendar-curr-month"
|
|
5681
5669
|
};
|
|
5682
|
-
const _hoisted_4$
|
|
5670
|
+
const _hoisted_4$u = {
|
|
5683
5671
|
class: "calendar-weeks",
|
|
5684
5672
|
ref: "weeksPanel"
|
|
5685
5673
|
};
|
|
5686
|
-
const _hoisted_5$
|
|
5674
|
+
const _hoisted_5$l = {
|
|
5687
5675
|
class: "calendar-months-panel",
|
|
5688
5676
|
ref: "monthsPanel"
|
|
5689
5677
|
};
|
|
5690
|
-
const _hoisted_6$
|
|
5678
|
+
const _hoisted_6$k = { class: "calendar-month-title" };
|
|
5691
5679
|
const _hoisted_7$i = { class: "calendar-month-con" };
|
|
5692
5680
|
const _hoisted_8$d = ["onClick"];
|
|
5693
5681
|
const _hoisted_9$9 = { class: "calendar-day" };
|
|
@@ -5711,7 +5699,7 @@
|
|
|
5711
5699
|
key: 0,
|
|
5712
5700
|
class: "nut-calendar-footer"
|
|
5713
5701
|
};
|
|
5714
|
-
function _sfc_render$
|
|
5702
|
+
function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5715
5703
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
5716
5704
|
class: vue.normalizeClass(["nut-calendar nut-calendar-taro", {
|
|
5717
5705
|
"nut-calendar-tile": !_ctx.poppable,
|
|
@@ -5721,12 +5709,12 @@
|
|
|
5721
5709
|
vue.createElementVNode("view", {
|
|
5722
5710
|
class: vue.normalizeClass(["nut-calendar-header", { "nut-calendar-header-tile": !_ctx.poppable }])
|
|
5723
5711
|
}, [
|
|
5724
|
-
_ctx.showTitle ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
5725
|
-
_ctx.showTopBtn ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
5712
|
+
_ctx.showTitle ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$_, vue.toDisplayString(_ctx.title || _ctx.translate("title")), 1)) : vue.createCommentVNode("", true),
|
|
5713
|
+
_ctx.showTopBtn ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$M, [
|
|
5726
5714
|
vue.renderSlot(_ctx.$slots, "btn")
|
|
5727
5715
|
])) : vue.createCommentVNode("", true),
|
|
5728
|
-
_ctx.showSubTitle ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$
|
|
5729
|
-
vue.createElementVNode("view", _hoisted_4$
|
|
5716
|
+
_ctx.showSubTitle ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$B, vue.toDisplayString(_ctx.yearMonthTitle), 1)) : vue.createCommentVNode("", true),
|
|
5717
|
+
vue.createElementVNode("view", _hoisted_4$u, [
|
|
5730
5718
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.weeks, (item, index) => {
|
|
5731
5719
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
5732
5720
|
class: "calendar-week-item",
|
|
@@ -5740,7 +5728,7 @@
|
|
|
5740
5728
|
ref: "months",
|
|
5741
5729
|
onScroll: _cache[0] || (_cache[0] = (...args) => _ctx.mothsViewScroll && _ctx.mothsViewScroll(...args))
|
|
5742
5730
|
}, [
|
|
5743
|
-
vue.createElementVNode("view", _hoisted_5$
|
|
5731
|
+
vue.createElementVNode("view", _hoisted_5$l, [
|
|
5744
5732
|
vue.createElementVNode("view", {
|
|
5745
5733
|
class: "viewArea",
|
|
5746
5734
|
ref: "viewArea",
|
|
@@ -5751,7 +5739,7 @@
|
|
|
5751
5739
|
class: "calendar-month",
|
|
5752
5740
|
key: index
|
|
5753
5741
|
}, [
|
|
5754
|
-
vue.createElementVNode("view", _hoisted_6$
|
|
5742
|
+
vue.createElementVNode("view", _hoisted_6$k, vue.toDisplayString(month.title), 1),
|
|
5755
5743
|
vue.createElementVNode("view", _hoisted_7$i, [
|
|
5756
5744
|
vue.createElementVNode("view", {
|
|
5757
5745
|
class: vue.normalizeClass(["calendar-month-item", _ctx.type === "range" ? "month-item-range" : ""])
|
|
@@ -5802,9 +5790,9 @@
|
|
|
5802
5790
|
])) : vue.createCommentVNode("", true)
|
|
5803
5791
|
], 2);
|
|
5804
5792
|
}
|
|
5805
|
-
var CalendarItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5806
|
-
const { create: create$
|
|
5807
|
-
const _sfc_main$
|
|
5793
|
+
var CalendarItem = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["render", _sfc_render$1c]]);
|
|
5794
|
+
const { create: create$1h } = createComponent("calendar");
|
|
5795
|
+
const _sfc_main$1h = create$1h({
|
|
5808
5796
|
components: {
|
|
5809
5797
|
[CalendarItem.name]: CalendarItem
|
|
5810
5798
|
},
|
|
@@ -5867,6 +5855,11 @@
|
|
|
5867
5855
|
endDate: {
|
|
5868
5856
|
type: String,
|
|
5869
5857
|
default: Utils.getDay(365)
|
|
5858
|
+
},
|
|
5859
|
+
firstDayOfWeek: {
|
|
5860
|
+
type: Number,
|
|
5861
|
+
default: 0,
|
|
5862
|
+
validator: (val) => val >= 0 && val <= 6
|
|
5870
5863
|
}
|
|
5871
5864
|
},
|
|
5872
5865
|
emits: ["choose", "close", "update:visible", "select"],
|
|
@@ -5922,7 +5915,7 @@
|
|
|
5922
5915
|
};
|
|
5923
5916
|
}
|
|
5924
5917
|
});
|
|
5925
|
-
function _sfc_render$
|
|
5918
|
+
function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5926
5919
|
const _component_nut_calendar_item = vue.resolveComponent("nut-calendar-item");
|
|
5927
5920
|
const _component_nut_popup = vue.resolveComponent("nut-popup");
|
|
5928
5921
|
return _ctx.poppable ? (vue.openBlock(), vue.createBlock(_component_nut_popup, {
|
|
@@ -5958,7 +5951,8 @@
|
|
|
5958
5951
|
"show-today": _ctx.showToday,
|
|
5959
5952
|
"show-title": _ctx.showTitle,
|
|
5960
5953
|
"show-sub-title": _ctx.showSubTitle,
|
|
5961
|
-
"to-date-animation": _ctx.toDateAnimation
|
|
5954
|
+
"to-date-animation": _ctx.toDateAnimation,
|
|
5955
|
+
"first-day-of-week": _ctx.firstDayOfWeek
|
|
5962
5956
|
}, vue.createSlots({ _: 2 }, [
|
|
5963
5957
|
_ctx.showTopBtn ? {
|
|
5964
5958
|
name: "btn",
|
|
@@ -5994,7 +5988,7 @@
|
|
|
5994
5988
|
]),
|
|
5995
5989
|
key: "3"
|
|
5996
5990
|
} : void 0
|
|
5997
|
-
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation"])) : vue.createCommentVNode("", true)
|
|
5991
|
+
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation", "first-day-of-week"])) : vue.createCommentVNode("", true)
|
|
5998
5992
|
]),
|
|
5999
5993
|
_: 3
|
|
6000
5994
|
}, 8, ["visible", "onClickOverlay", "onClickCloseIcon"])) : (vue.openBlock(), vue.createBlock(_component_nut_calendar_item, {
|
|
@@ -6017,6 +6011,7 @@
|
|
|
6017
6011
|
"show-title": _ctx.showTitle,
|
|
6018
6012
|
"show-sub-title": _ctx.showSubTitle,
|
|
6019
6013
|
"to-date-animation": _ctx.toDateAnimation,
|
|
6014
|
+
"first-day-of-week": _ctx.firstDayOfWeek,
|
|
6020
6015
|
ref: "calendarRef"
|
|
6021
6016
|
}, vue.createSlots({ _: 2 }, [
|
|
6022
6017
|
_ctx.showTopBtn ? {
|
|
@@ -6053,9 +6048,9 @@
|
|
|
6053
6048
|
]),
|
|
6054
6049
|
key: "3"
|
|
6055
6050
|
} : void 0
|
|
6056
|
-
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation"]));
|
|
6051
|
+
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation", "first-day-of-week"]));
|
|
6057
6052
|
}
|
|
6058
|
-
var Calendar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6053
|
+
var Calendar = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["render", _sfc_render$1b]]);
|
|
6059
6054
|
const component$4 = (componentName2, nutIcon) => {
|
|
6060
6055
|
return {
|
|
6061
6056
|
components: {
|
|
@@ -6209,10 +6204,10 @@
|
|
|
6209
6204
|
}
|
|
6210
6205
|
};
|
|
6211
6206
|
};
|
|
6212
|
-
const { create: create$
|
|
6213
|
-
const _sfc_main$
|
|
6214
|
-
const { create: create$
|
|
6215
|
-
const _sfc_main$
|
|
6207
|
+
const { create: create$1g, componentName: componentName$11 } = createComponent("checkbox");
|
|
6208
|
+
const _sfc_main$1g = create$1g(component$4(componentName$11, _sfc_main$1P));
|
|
6209
|
+
const { create: create$1f, componentName: componentName$10 } = createComponent("checkboxgroup");
|
|
6210
|
+
const _sfc_main$1f = create$1f({
|
|
6216
6211
|
props: {
|
|
6217
6212
|
modelValue: {
|
|
6218
6213
|
type: Array,
|
|
@@ -6285,15 +6280,15 @@
|
|
|
6285
6280
|
return vue.h(
|
|
6286
6281
|
"view",
|
|
6287
6282
|
{
|
|
6288
|
-
class: `${componentName$
|
|
6283
|
+
class: `${componentName$10}`
|
|
6289
6284
|
},
|
|
6290
6285
|
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
6291
6286
|
);
|
|
6292
6287
|
};
|
|
6293
6288
|
}
|
|
6294
6289
|
});
|
|
6295
|
-
const { create: create$
|
|
6296
|
-
const _sfc_main$
|
|
6290
|
+
const { create: create$1e } = createComponent("picker-column");
|
|
6291
|
+
const _sfc_main$1e = create$1e({
|
|
6297
6292
|
props: {
|
|
6298
6293
|
value: [String, Number],
|
|
6299
6294
|
columnsType: String,
|
|
@@ -6515,16 +6510,16 @@
|
|
|
6515
6510
|
};
|
|
6516
6511
|
}
|
|
6517
6512
|
});
|
|
6518
|
-
const _hoisted_1
|
|
6513
|
+
const _hoisted_1$Z = {
|
|
6519
6514
|
key: 1,
|
|
6520
6515
|
class: "nut-picker-roller-item-tile"
|
|
6521
6516
|
};
|
|
6522
|
-
const _hoisted_2$
|
|
6523
|
-
const _hoisted_3$
|
|
6517
|
+
const _hoisted_2$L = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-picker-roller-mask" }, null, -1);
|
|
6518
|
+
const _hoisted_3$A = {
|
|
6524
6519
|
key: 0,
|
|
6525
6520
|
class: "nut-picker-content"
|
|
6526
6521
|
};
|
|
6527
|
-
function _sfc_render$
|
|
6522
|
+
function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6528
6523
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
6529
6524
|
class: "nut-picker__list",
|
|
6530
6525
|
onTouchstart: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
@@ -6546,12 +6541,12 @@
|
|
|
6546
6541
|
class: vue.normalizeClass(["nut-picker-roller-item", { "nut-picker-roller-item-hidden": _ctx.isHidden(index + 1) }]),
|
|
6547
6542
|
style: vue.normalizeStyle(_ctx.setRollerStyle(index + 1))
|
|
6548
6543
|
}, vue.toDisplayString(item.text), 7)) : vue.createCommentVNode("", true),
|
|
6549
|
-
item && item.text && !_ctx.threeDimensional ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1
|
|
6544
|
+
item && item.text && !_ctx.threeDimensional ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$Z, vue.toDisplayString(item.text), 1)) : vue.createCommentVNode("", true)
|
|
6550
6545
|
], 64);
|
|
6551
6546
|
}), 128))
|
|
6552
6547
|
], 36),
|
|
6553
|
-
_hoisted_2$
|
|
6554
|
-
_ctx.threeDimensional ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$
|
|
6548
|
+
_hoisted_2$L,
|
|
6549
|
+
_ctx.threeDimensional ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$A, [
|
|
6555
6550
|
vue.createElementVNode("view", {
|
|
6556
6551
|
class: "nut-picker-list-panel",
|
|
6557
6552
|
ref: "list",
|
|
@@ -6560,11 +6555,11 @@
|
|
|
6560
6555
|
])) : vue.createCommentVNode("", true)
|
|
6561
6556
|
], 32);
|
|
6562
6557
|
}
|
|
6563
|
-
var column
|
|
6564
|
-
const { componentName: componentName
|
|
6565
|
-
const _sfc_main$
|
|
6558
|
+
var column = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$1a]]);
|
|
6559
|
+
const { componentName: componentName$$, create: create$1d, translate: translate$n } = createComponent("picker");
|
|
6560
|
+
const _sfc_main$1d = create$1d({
|
|
6566
6561
|
components: {
|
|
6567
|
-
[column
|
|
6562
|
+
[column.name]: column,
|
|
6568
6563
|
[Popup.name]: Popup
|
|
6569
6564
|
},
|
|
6570
6565
|
props: {
|
|
@@ -6620,7 +6615,7 @@
|
|
|
6620
6615
|
}
|
|
6621
6616
|
};
|
|
6622
6617
|
const classes = vue.computed(() => {
|
|
6623
|
-
const prefixCls = componentName
|
|
6618
|
+
const prefixCls = componentName$$;
|
|
6624
6619
|
return {
|
|
6625
6620
|
[prefixCls]: true
|
|
6626
6621
|
};
|
|
@@ -6774,7 +6769,7 @@
|
|
|
6774
6769
|
return {
|
|
6775
6770
|
classes,
|
|
6776
6771
|
...vue.toRefs(state),
|
|
6777
|
-
column
|
|
6772
|
+
column,
|
|
6778
6773
|
columnsType,
|
|
6779
6774
|
columnsList,
|
|
6780
6775
|
close,
|
|
@@ -6787,14 +6782,14 @@
|
|
|
6787
6782
|
};
|
|
6788
6783
|
}
|
|
6789
6784
|
});
|
|
6790
|
-
const _hoisted_1$
|
|
6791
|
-
const _hoisted_2$
|
|
6792
|
-
const _hoisted_3$
|
|
6785
|
+
const _hoisted_1$Y = { class: "nut-picker__bar" };
|
|
6786
|
+
const _hoisted_2$K = { class: "nut-picker__title" };
|
|
6787
|
+
const _hoisted_3$z = {
|
|
6793
6788
|
class: "nut-picker__column",
|
|
6794
6789
|
ref: "wrapHeight"
|
|
6795
6790
|
};
|
|
6796
|
-
const _hoisted_4$
|
|
6797
|
-
function _sfc_render$
|
|
6791
|
+
const _hoisted_4$t = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-picker__hairline" }, null, -1);
|
|
6792
|
+
function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6798
6793
|
const _component_nut_picker_column = vue.resolveComponent("nut-picker-column");
|
|
6799
6794
|
const _component_nut_popup = vue.resolveComponent("nut-popup");
|
|
6800
6795
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -6814,20 +6809,20 @@
|
|
|
6814
6809
|
destroyOnClose: _ctx.destroyOnClose
|
|
6815
6810
|
}, {
|
|
6816
6811
|
default: vue.withCtx(() => [
|
|
6817
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
6812
|
+
vue.createElementVNode("view", _hoisted_1$Y, [
|
|
6818
6813
|
vue.createElementVNode("view", {
|
|
6819
6814
|
class: "nut-picker__cancel nut-picker__left nut-picker__button",
|
|
6820
6815
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.close && _ctx.close(...args))
|
|
6821
6816
|
}, vue.toDisplayString(_ctx.cancelText || _ctx.translate("cancel")), 1),
|
|
6822
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
6817
|
+
vue.createElementVNode("view", _hoisted_2$K, vue.toDisplayString(_ctx.title), 1),
|
|
6823
6818
|
vue.createElementVNode("view", {
|
|
6824
6819
|
class: "nut-picker__confirm nut-picker__right nut-picker__button",
|
|
6825
6820
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.confirmHandler())
|
|
6826
6821
|
}, vue.toDisplayString(_ctx.okText || _ctx.translate("confirm")), 1)
|
|
6827
6822
|
]),
|
|
6828
6823
|
vue.renderSlot(_ctx.$slots, "top"),
|
|
6829
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
6830
|
-
_hoisted_4$
|
|
6824
|
+
vue.createElementVNode("view", _hoisted_3$z, [
|
|
6825
|
+
_hoisted_4$t,
|
|
6831
6826
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.columnsList, (column2, columnIndex) => {
|
|
6832
6827
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
6833
6828
|
class: "nut-picker__columnitem",
|
|
@@ -6856,7 +6851,7 @@
|
|
|
6856
6851
|
}, 8, ["visible", "teleport", "lock-scroll", "close-on-click-overlay", "onClose", "isWrapTeleport", "safeAreaInsetBottom", "destroyOnClose"])
|
|
6857
6852
|
], 2);
|
|
6858
6853
|
}
|
|
6859
|
-
var Picker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6854
|
+
var Picker = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["render", _sfc_render$19]]);
|
|
6860
6855
|
function padZero$1(num, targetLength = 2) {
|
|
6861
6856
|
let str = num + "";
|
|
6862
6857
|
while (str.length < targetLength) {
|
|
@@ -6864,7 +6859,7 @@
|
|
|
6864
6859
|
}
|
|
6865
6860
|
return str;
|
|
6866
6861
|
}
|
|
6867
|
-
const { componentName: componentName
|
|
6862
|
+
const { componentName: componentName$_, create: create$1c, translate: translate$m } = createComponent("datepicker");
|
|
6868
6863
|
const currentYear = new Date().getFullYear();
|
|
6869
6864
|
function isDate(val) {
|
|
6870
6865
|
return Object.prototype.toString.call(val) === "[object Date]" && !isNaN(val.getTime());
|
|
@@ -6877,7 +6872,7 @@
|
|
|
6877
6872
|
minute: translate$m("minute"),
|
|
6878
6873
|
seconds: translate$m("seconds")
|
|
6879
6874
|
};
|
|
6880
|
-
const _sfc_main$
|
|
6875
|
+
const _sfc_main$1c = create$1c({
|
|
6881
6876
|
components: {
|
|
6882
6877
|
[Picker.name]: Picker
|
|
6883
6878
|
},
|
|
@@ -7178,7 +7173,7 @@
|
|
|
7178
7173
|
};
|
|
7179
7174
|
}
|
|
7180
7175
|
});
|
|
7181
|
-
function _sfc_render$
|
|
7176
|
+
function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7182
7177
|
const _component_nut_picker = vue.resolveComponent("nut-picker");
|
|
7183
7178
|
return vue.openBlock(), vue.createBlock(_component_nut_picker, {
|
|
7184
7179
|
modelValue: _ctx.selectedValue,
|
|
@@ -7207,9 +7202,9 @@
|
|
|
7207
7202
|
_: 3
|
|
7208
7203
|
}, 8, ["modelValue", "visible", "okText", "cancelText", "onClose", "columns", "onChange", "title", "onConfirm", "isWrapTeleport", "threeDimensional", "swipeDuration", "safeAreaInsetBottom", "destroyOnClose"]);
|
|
7209
7204
|
}
|
|
7210
|
-
var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7211
|
-
const { componentName: componentName$
|
|
7212
|
-
const _sfc_main$
|
|
7205
|
+
var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["render", _sfc_render$18]]);
|
|
7206
|
+
const { componentName: componentName$Z, create: create$1b } = createComponent("inputnumber");
|
|
7207
|
+
const _sfc_main$1b = create$1b({
|
|
7213
7208
|
props: {
|
|
7214
7209
|
modelValue: {
|
|
7215
7210
|
type: [Number, String],
|
|
@@ -7259,7 +7254,7 @@
|
|
|
7259
7254
|
emits: ["update:modelValue", "change", "blur", "focus", "reduce", "add", "overlimit"],
|
|
7260
7255
|
setup(props, { emit }) {
|
|
7261
7256
|
const classes = vue.computed(() => {
|
|
7262
|
-
const prefixCls = componentName$
|
|
7257
|
+
const prefixCls = componentName$Z;
|
|
7263
7258
|
return {
|
|
7264
7259
|
[prefixCls]: true,
|
|
7265
7260
|
[`${prefixCls}--disabled`]: props.disabled
|
|
@@ -7336,8 +7331,8 @@
|
|
|
7336
7331
|
};
|
|
7337
7332
|
}
|
|
7338
7333
|
});
|
|
7339
|
-
const _hoisted_1$
|
|
7340
|
-
function _sfc_render$
|
|
7334
|
+
const _hoisted_1$X = ["min", "max", "disabled", "readonly", "value"];
|
|
7335
|
+
function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7341
7336
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
7342
7337
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
7343
7338
|
class: vue.normalizeClass(_ctx.classes),
|
|
@@ -7359,7 +7354,7 @@
|
|
|
7359
7354
|
onInput: _cache[0] || (_cache[0] = (...args) => _ctx.change && _ctx.change(...args)),
|
|
7360
7355
|
onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
|
|
7361
7356
|
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args))
|
|
7362
|
-
}, null, 44, _hoisted_1$
|
|
7357
|
+
}, null, 44, _hoisted_1$X),
|
|
7363
7358
|
vue.createVNode(_component_nut_icon, vue.mergeProps({
|
|
7364
7359
|
name: _ctx.iconRight,
|
|
7365
7360
|
class: ["nut-inputnumber__icon", { "nut-inputnumber__icon--disabled": !_ctx.addAllow() }],
|
|
@@ -7367,7 +7362,7 @@
|
|
|
7367
7362
|
}, _ctx.$attrs, { onClick: _ctx.add }), null, 16, ["name", "class", "size", "onClick"])
|
|
7368
7363
|
], 6);
|
|
7369
7364
|
}
|
|
7370
|
-
var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7365
|
+
var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$17]]);
|
|
7371
7366
|
function trimExtraChar(value, char, regExp) {
|
|
7372
7367
|
const index = value.indexOf(char);
|
|
7373
7368
|
if (index === -1) {
|
|
@@ -7392,8 +7387,8 @@
|
|
|
7392
7387
|
const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
7393
7388
|
return value.replace(regExp, "");
|
|
7394
7389
|
}
|
|
7395
|
-
const { componentName: componentName$
|
|
7396
|
-
const _sfc_main$
|
|
7390
|
+
const { componentName: componentName$Y, create: create$1a } = createComponent("input");
|
|
7391
|
+
const _sfc_main$1a = create$1a({
|
|
7397
7392
|
props: {
|
|
7398
7393
|
ref: {
|
|
7399
7394
|
type: String,
|
|
@@ -7549,7 +7544,7 @@
|
|
|
7549
7544
|
validateMessage: ""
|
|
7550
7545
|
});
|
|
7551
7546
|
const classes = vue.computed(() => {
|
|
7552
|
-
const prefixCls = componentName$
|
|
7547
|
+
const prefixCls = componentName$Y;
|
|
7553
7548
|
return {
|
|
7554
7549
|
[prefixCls]: true,
|
|
7555
7550
|
center: props.center,
|
|
@@ -7661,12 +7656,6 @@
|
|
|
7661
7656
|
}
|
|
7662
7657
|
emit("click-right-icon", event);
|
|
7663
7658
|
};
|
|
7664
|
-
const onClick = (e) => {
|
|
7665
|
-
if (props.disabled) {
|
|
7666
|
-
e.stopImmediatePropagation();
|
|
7667
|
-
return;
|
|
7668
|
-
}
|
|
7669
|
-
};
|
|
7670
7659
|
vue.watch(
|
|
7671
7660
|
() => props.modelValue,
|
|
7672
7661
|
() => {
|
|
@@ -7694,17 +7683,16 @@
|
|
|
7694
7683
|
clear,
|
|
7695
7684
|
onClickInput,
|
|
7696
7685
|
onClickLeftIcon,
|
|
7697
|
-
onClickRightIcon
|
|
7698
|
-
onClick
|
|
7686
|
+
onClickRightIcon
|
|
7699
7687
|
};
|
|
7700
7688
|
}
|
|
7701
7689
|
});
|
|
7702
|
-
const _hoisted_1$
|
|
7703
|
-
const _hoisted_2$
|
|
7704
|
-
const _hoisted_3$
|
|
7705
|
-
const _hoisted_4$
|
|
7706
|
-
const _hoisted_5$
|
|
7707
|
-
const _hoisted_6$
|
|
7690
|
+
const _hoisted_1$W = { class: "label-string" };
|
|
7691
|
+
const _hoisted_2$J = { class: "nut-input-value" };
|
|
7692
|
+
const _hoisted_3$y = { class: "label-string" };
|
|
7693
|
+
const _hoisted_4$s = { class: "nut-input-value" };
|
|
7694
|
+
const _hoisted_5$k = { class: "nut-input-inner" };
|
|
7695
|
+
const _hoisted_6$j = { class: "nut-input-box" };
|
|
7708
7696
|
const _hoisted_7$h = ["maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
|
|
7709
7697
|
const _hoisted_8$c = ["type", "maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
|
|
7710
7698
|
const _hoisted_9$8 = { class: "nut-input-clear-box" };
|
|
@@ -7713,11 +7701,10 @@
|
|
|
7713
7701
|
class: "nut-input-word-limit"
|
|
7714
7702
|
};
|
|
7715
7703
|
const _hoisted_11$5 = { class: "nut-input-word-num" };
|
|
7716
|
-
function _sfc_render$
|
|
7704
|
+
function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7717
7705
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
7718
7706
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
7719
|
-
class: vue.normalizeClass(_ctx.classes)
|
|
7720
|
-
onClick: _cache[11] || (_cache[11] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
7707
|
+
class: vue.normalizeClass(_ctx.classes)
|
|
7721
7708
|
}, [
|
|
7722
7709
|
_ctx.$slots.input ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
7723
7710
|
_ctx.label ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -7728,9 +7715,9 @@
|
|
|
7728
7715
|
textAlign: _ctx.labelAlign
|
|
7729
7716
|
})
|
|
7730
7717
|
}, [
|
|
7731
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
7718
|
+
vue.createElementVNode("view", _hoisted_1$W, vue.toDisplayString(_ctx.label) + " " + vue.toDisplayString(_ctx.colon ? ":" : ""), 1)
|
|
7732
7719
|
], 6)) : vue.createCommentVNode("", true),
|
|
7733
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
7720
|
+
vue.createElementVNode("view", _hoisted_2$J, [
|
|
7734
7721
|
vue.createElementVNode("view", {
|
|
7735
7722
|
class: "nut-input-inner",
|
|
7736
7723
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
|
|
@@ -7754,11 +7741,11 @@
|
|
|
7754
7741
|
textAlign: _ctx.labelAlign
|
|
7755
7742
|
})
|
|
7756
7743
|
}, [
|
|
7757
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
7744
|
+
vue.createElementVNode("view", _hoisted_3$y, vue.toDisplayString(_ctx.label) + " " + vue.toDisplayString(_ctx.colon ? ":" : ""), 1)
|
|
7758
7745
|
], 6)) : vue.createCommentVNode("", true),
|
|
7759
|
-
vue.createElementVNode("view", _hoisted_4$
|
|
7760
|
-
vue.createElementVNode("view", _hoisted_5$
|
|
7761
|
-
vue.createElementVNode("view", _hoisted_6$
|
|
7746
|
+
vue.createElementVNode("view", _hoisted_4$s, [
|
|
7747
|
+
vue.createElementVNode("view", _hoisted_5$k, [
|
|
7748
|
+
vue.createElementVNode("view", _hoisted_6$j, [
|
|
7762
7749
|
_ctx.type == "textarea" ? (vue.openBlock(), vue.createElementBlock("textarea", {
|
|
7763
7750
|
key: 0,
|
|
7764
7751
|
class: "input-text",
|
|
@@ -7816,7 +7803,8 @@
|
|
|
7816
7803
|
_ctx.$slots.button ? vue.renderSlot(_ctx.$slots, "button", {
|
|
7817
7804
|
key: 1,
|
|
7818
7805
|
class: "nut-input-button"
|
|
7819
|
-
}) : vue.createCommentVNode("", true)
|
|
7806
|
+
}) : vue.createCommentVNode("", true),
|
|
7807
|
+
_ctx.$slots.rightExtra ? vue.renderSlot(_ctx.$slots, "rightExtra", { key: 2 }) : vue.createCommentVNode("", true)
|
|
7820
7808
|
]),
|
|
7821
7809
|
_ctx.showWordLimit && _ctx.maxLength ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_10$5, [
|
|
7822
7810
|
vue.createElementVNode("span", _hoisted_11$5, vue.toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0), 1),
|
|
@@ -7833,9 +7821,9 @@
|
|
|
7833
7821
|
], 64))
|
|
7834
7822
|
], 2);
|
|
7835
7823
|
}
|
|
7836
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7837
|
-
const { componentName: componentName$
|
|
7838
|
-
const _sfc_main$
|
|
7824
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$16]]);
|
|
7825
|
+
const { componentName: componentName$X, create: create$19 } = createComponent("radio");
|
|
7826
|
+
const _sfc_main$19 = create$19({
|
|
7839
7827
|
props: {
|
|
7840
7828
|
disabled: {
|
|
7841
7829
|
type: Boolean,
|
|
@@ -7883,7 +7871,7 @@
|
|
|
7883
7871
|
});
|
|
7884
7872
|
const renderIcon = () => {
|
|
7885
7873
|
const { iconName, iconSize, iconActiveName, iconClassPrefix, iconFontClassName } = props;
|
|
7886
|
-
return vue.h(_sfc_main$
|
|
7874
|
+
return vue.h(_sfc_main$1P, {
|
|
7887
7875
|
name: isCurValue.value ? iconActiveName : iconName,
|
|
7888
7876
|
size: iconSize,
|
|
7889
7877
|
class: color.value,
|
|
@@ -7896,7 +7884,7 @@
|
|
|
7896
7884
|
return vue.h(
|
|
7897
7885
|
"view",
|
|
7898
7886
|
{
|
|
7899
|
-
class: `${componentName$
|
|
7887
|
+
class: `${componentName$X}__label ${props.disabled ? `${componentName$X}__label--disabled` : ""}`
|
|
7900
7888
|
},
|
|
7901
7889
|
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
7902
7890
|
);
|
|
@@ -7906,7 +7894,7 @@
|
|
|
7906
7894
|
return vue.h(
|
|
7907
7895
|
"view",
|
|
7908
7896
|
{
|
|
7909
|
-
class: `${componentName$
|
|
7897
|
+
class: `${componentName$X}__button ${isCurValue.value && `${componentName$X}__button--active`} ${props.disabled ? `${componentName$X}__button--disabled` : ""}`
|
|
7910
7898
|
},
|
|
7911
7899
|
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
7912
7900
|
);
|
|
@@ -7921,7 +7909,7 @@
|
|
|
7921
7909
|
return vue.h(
|
|
7922
7910
|
"view",
|
|
7923
7911
|
{
|
|
7924
|
-
class: `${componentName$
|
|
7912
|
+
class: `${componentName$X} ${componentName$X}--${props.shape} ${reverseState ? `${componentName$X}--reverse` : ""}`,
|
|
7925
7913
|
onClick: handleClick
|
|
7926
7914
|
},
|
|
7927
7915
|
[
|
|
@@ -7931,8 +7919,8 @@
|
|
|
7931
7919
|
};
|
|
7932
7920
|
}
|
|
7933
7921
|
});
|
|
7934
|
-
const { componentName: componentName$
|
|
7935
|
-
const _sfc_main$
|
|
7922
|
+
const { componentName: componentName$W, create: create$18 } = createComponent("radiogroup");
|
|
7923
|
+
const _sfc_main$18 = create$18({
|
|
7936
7924
|
props: {
|
|
7937
7925
|
modelValue: {
|
|
7938
7926
|
type: [Number, String, Boolean],
|
|
@@ -7964,14 +7952,14 @@
|
|
|
7964
7952
|
return vue.h(
|
|
7965
7953
|
"view",
|
|
7966
7954
|
{
|
|
7967
|
-
class: `${componentName$
|
|
7955
|
+
class: `${componentName$W} ${componentName$W}--${props.direction}`
|
|
7968
7956
|
},
|
|
7969
7957
|
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
7970
7958
|
);
|
|
7971
7959
|
};
|
|
7972
7960
|
}
|
|
7973
7961
|
});
|
|
7974
|
-
const { componentName: componentName$
|
|
7962
|
+
const { componentName: componentName$V } = createComponent("rate");
|
|
7975
7963
|
const useComponent = (touchable = true) => {
|
|
7976
7964
|
return {
|
|
7977
7965
|
props: {
|
|
@@ -8036,7 +8024,7 @@
|
|
|
8036
8024
|
setup(props, { emit }) {
|
|
8037
8025
|
const rateRefs = vue.ref([]);
|
|
8038
8026
|
const classes = vue.computed(() => {
|
|
8039
|
-
const prefixCls = componentName$
|
|
8027
|
+
const prefixCls = componentName$V;
|
|
8040
8028
|
return {
|
|
8041
8029
|
[prefixCls]: true
|
|
8042
8030
|
};
|
|
@@ -8106,7 +8094,7 @@
|
|
|
8106
8094
|
};
|
|
8107
8095
|
};
|
|
8108
8096
|
const component$3 = useComponent();
|
|
8109
|
-
const _hoisted_1$
|
|
8097
|
+
const _hoisted_1$V = ["id"];
|
|
8110
8098
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8111
8099
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
8112
8100
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -8151,15 +8139,15 @@
|
|
|
8151
8139
|
size: _ctx.iconSize,
|
|
8152
8140
|
name: _ctx.uncheckedIcon
|
|
8153
8141
|
}, null, 8, ["onClick", "font-class-name", "class-prefix", "color", "size", "name"])) : vue.createCommentVNode("", true)
|
|
8154
|
-
], 12, _hoisted_1$
|
|
8142
|
+
], 12, _hoisted_1$V);
|
|
8155
8143
|
}), 128))
|
|
8156
8144
|
], 34);
|
|
8157
8145
|
}
|
|
8158
|
-
const { create: create$
|
|
8159
|
-
const _sfc_main$
|
|
8160
|
-
var Rate = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8161
|
-
const { create: create$
|
|
8162
|
-
const _sfc_main$
|
|
8146
|
+
const { create: create$17 } = createComponent("rate");
|
|
8147
|
+
const _sfc_main$17 = create$17(component$3);
|
|
8148
|
+
var Rate = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["render", render]]);
|
|
8149
|
+
const { create: create$16, translate: translate$l } = createComponent("shortpassword");
|
|
8150
|
+
const _sfc_main$16 = create$16({
|
|
8163
8151
|
props: {
|
|
8164
8152
|
title: {
|
|
8165
8153
|
type: String,
|
|
@@ -8291,15 +8279,15 @@
|
|
|
8291
8279
|
};
|
|
8292
8280
|
}
|
|
8293
8281
|
});
|
|
8294
|
-
const _hoisted_1$
|
|
8295
|
-
const _hoisted_2$
|
|
8296
|
-
const _hoisted_3$
|
|
8297
|
-
const _hoisted_4$
|
|
8298
|
-
const _hoisted_5$
|
|
8282
|
+
const _hoisted_1$U = { class: "nut-shortpsd-title" };
|
|
8283
|
+
const _hoisted_2$I = { class: "nut-shortpsd-subtitle" };
|
|
8284
|
+
const _hoisted_3$x = { class: "nut-input-normalw" };
|
|
8285
|
+
const _hoisted_4$r = /* @__PURE__ */ vue.createElementVNode("div", { class: "nut-input-site" }, null, -1);
|
|
8286
|
+
const _hoisted_5$j = {
|
|
8299
8287
|
key: 0,
|
|
8300
8288
|
class: "nut-shortpsd-icon"
|
|
8301
8289
|
};
|
|
8302
|
-
const _hoisted_6$
|
|
8290
|
+
const _hoisted_6$i = { class: "nut-shortpsd-message" };
|
|
8303
8291
|
const _hoisted_7$g = { class: "nut-shortpsd-error" };
|
|
8304
8292
|
const _hoisted_8$b = {
|
|
8305
8293
|
key: 0,
|
|
@@ -8309,7 +8297,7 @@
|
|
|
8309
8297
|
key: 0,
|
|
8310
8298
|
class: "nut-shortpsd-footer"
|
|
8311
8299
|
};
|
|
8312
|
-
function _sfc_render$
|
|
8300
|
+
function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8313
8301
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
8314
8302
|
const _component_nut_popup = vue.resolveComponent("nut-popup");
|
|
8315
8303
|
return vue.openBlock(), vue.createElementBlock("view", null, [
|
|
@@ -8328,9 +8316,9 @@
|
|
|
8328
8316
|
isWrapTeleport: _ctx.isWrapTeleport
|
|
8329
8317
|
}, {
|
|
8330
8318
|
default: vue.withCtx(() => [
|
|
8331
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
8332
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
8333
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
8319
|
+
vue.createElementVNode("view", _hoisted_1$U, vue.toDisplayString(_ctx.title || _ctx.translate("title")), 1),
|
|
8320
|
+
vue.createElementVNode("view", _hoisted_2$I, vue.toDisplayString(_ctx.desc || _ctx.translate("desc")), 1),
|
|
8321
|
+
vue.createElementVNode("div", _hoisted_3$x, [
|
|
8334
8322
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
8335
8323
|
ref: "realpwd",
|
|
8336
8324
|
class: "nut-input-real",
|
|
@@ -8342,7 +8330,7 @@
|
|
|
8342
8330
|
}, null, 36), [
|
|
8343
8331
|
[vue.vModelText, _ctx.realInput]
|
|
8344
8332
|
]),
|
|
8345
|
-
_hoisted_4$
|
|
8333
|
+
_hoisted_4$r,
|
|
8346
8334
|
vue.createElementVNode("view", {
|
|
8347
8335
|
class: "nut-shortpsd-fake",
|
|
8348
8336
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args))
|
|
@@ -8352,12 +8340,12 @@
|
|
|
8352
8340
|
class: "nut-shortpsd-li",
|
|
8353
8341
|
key: index
|
|
8354
8342
|
}, [
|
|
8355
|
-
String(_ctx.realInput).length > index ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$
|
|
8343
|
+
String(_ctx.realInput).length > index ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$j)) : vue.createCommentVNode("", true)
|
|
8356
8344
|
]);
|
|
8357
8345
|
}), 128))
|
|
8358
8346
|
])
|
|
8359
8347
|
]),
|
|
8360
|
-
vue.createElementVNode("view", _hoisted_6$
|
|
8348
|
+
vue.createElementVNode("view", _hoisted_6$i, [
|
|
8361
8349
|
vue.createElementVNode("view", _hoisted_7$g, vue.toDisplayString(_ctx.errorMsg), 1),
|
|
8362
8350
|
_ctx.tips || _ctx.translate("tips") ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_8$b, [
|
|
8363
8351
|
vue.createVNode(_component_nut_icon, {
|
|
@@ -8385,9 +8373,9 @@
|
|
|
8385
8373
|
}, 8, ["visible", "onClickCloseIcon", "close-on-click-overlay", "onClickOverlay", "isWrapTeleport"])
|
|
8386
8374
|
]);
|
|
8387
8375
|
}
|
|
8388
|
-
var ShortPassword = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8389
|
-
const { componentName: componentName$
|
|
8390
|
-
const _sfc_main$
|
|
8376
|
+
var ShortPassword = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_render$15]]);
|
|
8377
|
+
const { componentName: componentName$U, create: create$15, translate: translate$k } = createComponent("textarea");
|
|
8378
|
+
const _sfc_main$15 = create$15({
|
|
8391
8379
|
props: {
|
|
8392
8380
|
modelValue: {
|
|
8393
8381
|
type: [String, Number],
|
|
@@ -8434,7 +8422,7 @@
|
|
|
8434
8422
|
setup(props, { emit }) {
|
|
8435
8423
|
const textareaRef = vue.ref();
|
|
8436
8424
|
const classes = vue.computed(() => {
|
|
8437
|
-
const prefixCls = componentName$
|
|
8425
|
+
const prefixCls = componentName$U;
|
|
8438
8426
|
return {
|
|
8439
8427
|
[prefixCls]: true,
|
|
8440
8428
|
[`${prefixCls}--disabled`]: props.disabled
|
|
@@ -8517,12 +8505,12 @@
|
|
|
8517
8505
|
};
|
|
8518
8506
|
}
|
|
8519
8507
|
});
|
|
8520
|
-
const _hoisted_1$
|
|
8521
|
-
const _hoisted_2$
|
|
8508
|
+
const _hoisted_1$T = ["rows", "disabled", "readonly", "value", "maxlength", "placeholder", "autofocus"];
|
|
8509
|
+
const _hoisted_2$H = {
|
|
8522
8510
|
key: 0,
|
|
8523
8511
|
class: "nut-textarea__limit"
|
|
8524
8512
|
};
|
|
8525
|
-
function _sfc_render$
|
|
8513
|
+
function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8526
8514
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
8527
8515
|
class: vue.normalizeClass(_ctx.classes)
|
|
8528
8516
|
}, [
|
|
@@ -8540,11 +8528,11 @@
|
|
|
8540
8528
|
maxlength: _ctx.maxLength,
|
|
8541
8529
|
placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
|
|
8542
8530
|
autofocus: _ctx.autofocus
|
|
8543
|
-
}, null, 44, _hoisted_1$
|
|
8544
|
-
_ctx.limitShow ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
8531
|
+
}, null, 44, _hoisted_1$T),
|
|
8532
|
+
_ctx.limitShow ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$H, vue.toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0) + "/" + vue.toDisplayString(_ctx.maxLength), 1)) : vue.createCommentVNode("", true)
|
|
8545
8533
|
], 2);
|
|
8546
8534
|
}
|
|
8547
|
-
var TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8535
|
+
var TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["render", _sfc_render$14]]);
|
|
8548
8536
|
class UploadOptions {
|
|
8549
8537
|
constructor() {
|
|
8550
8538
|
this.url = "";
|
|
@@ -8651,8 +8639,8 @@
|
|
|
8651
8639
|
this.formData = {};
|
|
8652
8640
|
}
|
|
8653
8641
|
}
|
|
8654
|
-
const { componentName: componentName$
|
|
8655
|
-
const _sfc_main$
|
|
8642
|
+
const { componentName: componentName$T, create: create$14, translate: translate$i } = createComponent("uploader");
|
|
8643
|
+
const _sfc_main$14 = create$14({
|
|
8656
8644
|
props: {
|
|
8657
8645
|
name: { type: String, default: "file" },
|
|
8658
8646
|
url: { type: String, default: "" },
|
|
@@ -8676,6 +8664,7 @@
|
|
|
8676
8664
|
multiple: { type: Boolean, default: false },
|
|
8677
8665
|
disabled: { type: Boolean, default: false },
|
|
8678
8666
|
autoUpload: { type: Boolean, default: true },
|
|
8667
|
+
deleteIcon: { type: String, default: "failure" },
|
|
8679
8668
|
beforeUpload: {
|
|
8680
8669
|
type: Function,
|
|
8681
8670
|
default: null
|
|
@@ -8707,7 +8696,7 @@
|
|
|
8707
8696
|
const fileList = vue.reactive(props.fileList);
|
|
8708
8697
|
let uploadQueue = [];
|
|
8709
8698
|
const classes = vue.computed(() => {
|
|
8710
|
-
const prefixCls = componentName$
|
|
8699
|
+
const prefixCls = componentName$T;
|
|
8711
8700
|
return {
|
|
8712
8701
|
[prefixCls]: true
|
|
8713
8702
|
};
|
|
@@ -8893,21 +8882,21 @@
|
|
|
8893
8882
|
};
|
|
8894
8883
|
}
|
|
8895
8884
|
});
|
|
8896
|
-
const _hoisted_1$
|
|
8885
|
+
const _hoisted_1$S = {
|
|
8897
8886
|
key: 0,
|
|
8898
8887
|
class: "nut-uploader__slot"
|
|
8899
8888
|
};
|
|
8900
|
-
const _hoisted_2$
|
|
8901
|
-
const _hoisted_3$
|
|
8902
|
-
const _hoisted_4$
|
|
8889
|
+
const _hoisted_2$G = ["accept", "multiple", "name", "disabled"];
|
|
8890
|
+
const _hoisted_3$w = ["accept", "multiple", "name", "disabled"];
|
|
8891
|
+
const _hoisted_4$q = {
|
|
8903
8892
|
key: 0,
|
|
8904
8893
|
class: "nut-uploader__preview-img"
|
|
8905
8894
|
};
|
|
8906
|
-
const _hoisted_5$
|
|
8895
|
+
const _hoisted_5$i = {
|
|
8907
8896
|
key: 0,
|
|
8908
8897
|
class: "nut-uploader__preview__progress"
|
|
8909
8898
|
};
|
|
8910
|
-
const _hoisted_6$
|
|
8899
|
+
const _hoisted_6$h = { class: "nut-uploader__preview__progress__msg" };
|
|
8911
8900
|
const _hoisted_7$f = {
|
|
8912
8901
|
key: 1,
|
|
8913
8902
|
class: "nut-uploader__preview__progress"
|
|
@@ -8927,13 +8916,13 @@
|
|
|
8927
8916
|
const _hoisted_14$2 = ["onClick"];
|
|
8928
8917
|
const _hoisted_15$1 = ["accept", "multiple", "name", "disabled"];
|
|
8929
8918
|
const _hoisted_16$1 = ["accept", "multiple", "name", "disabled"];
|
|
8930
|
-
function _sfc_render$
|
|
8919
|
+
function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8931
8920
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
8932
8921
|
const _component_nut_progress = vue.resolveComponent("nut-progress");
|
|
8933
8922
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
8934
8923
|
class: vue.normalizeClass(_ctx.classes)
|
|
8935
8924
|
}, [
|
|
8936
|
-
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
8925
|
+
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$S, [
|
|
8937
8926
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
8938
8927
|
_ctx.maximum - _ctx.fileList.length ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
8939
8928
|
_ctx.capture ? (vue.openBlock(), vue.createElementBlock("input", {
|
|
@@ -8946,7 +8935,7 @@
|
|
|
8946
8935
|
name: _ctx.name,
|
|
8947
8936
|
disabled: _ctx.disabled,
|
|
8948
8937
|
onChange: _cache[0] || (_cache[0] = (...args) => _ctx.onChange && _ctx.onChange(...args))
|
|
8949
|
-
}, null, 40, _hoisted_2$
|
|
8938
|
+
}, null, 40, _hoisted_2$G)) : (vue.openBlock(), vue.createElementBlock("input", {
|
|
8950
8939
|
key: 1,
|
|
8951
8940
|
class: "nut-uploader__input",
|
|
8952
8941
|
type: "file",
|
|
@@ -8955,7 +8944,7 @@
|
|
|
8955
8944
|
name: _ctx.name,
|
|
8956
8945
|
disabled: _ctx.disabled,
|
|
8957
8946
|
onChange: _cache[1] || (_cache[1] = (...args) => _ctx.onChange && _ctx.onChange(...args))
|
|
8958
|
-
}, null, 40, _hoisted_3$
|
|
8947
|
+
}, null, 40, _hoisted_3$w))
|
|
8959
8948
|
], 64)) : vue.createCommentVNode("", true)
|
|
8960
8949
|
])) : vue.createCommentVNode("", true),
|
|
8961
8950
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.fileList, (item, index) => {
|
|
@@ -8963,9 +8952,9 @@
|
|
|
8963
8952
|
class: vue.normalizeClass(["nut-uploader__preview", [_ctx.listType]]),
|
|
8964
8953
|
key: item.uid
|
|
8965
8954
|
}, [
|
|
8966
|
-
_ctx.listType == "picture" && !_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$
|
|
8967
|
-
item.status == "ready" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$
|
|
8968
|
-
vue.createElementVNode("view", _hoisted_6$
|
|
8955
|
+
_ctx.listType == "picture" && !_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$q, [
|
|
8956
|
+
item.status == "ready" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$i, [
|
|
8957
|
+
vue.createElementVNode("view", _hoisted_6$h, vue.toDisplayString(item.message), 1)
|
|
8969
8958
|
])) : item.status != "success" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$f, [
|
|
8970
8959
|
vue.createVNode(_component_nut_icon, {
|
|
8971
8960
|
color: "#fff",
|
|
@@ -8973,12 +8962,11 @@
|
|
|
8973
8962
|
}, null, 8, ["name"]),
|
|
8974
8963
|
vue.createElementVNode("view", _hoisted_8$a, vue.toDisplayString(item.message), 1)
|
|
8975
8964
|
])) : vue.createCommentVNode("", true),
|
|
8976
|
-
_ctx.isDeletable ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
8977
|
-
key: 2,
|
|
8965
|
+
_ctx.isDeletable ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({ key: 2 }, _ctx.$attrs, {
|
|
8978
8966
|
onClick: ($event) => _ctx.onDelete(item, index),
|
|
8979
8967
|
class: "close",
|
|
8980
|
-
name:
|
|
8981
|
-
}, null,
|
|
8968
|
+
name: _ctx.deleteIcon
|
|
8969
|
+
}), null, 16, ["onClick", "name"])) : vue.createCommentVNode("", true),
|
|
8982
8970
|
item.type.includes("image") && item.url ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
8983
8971
|
key: 3,
|
|
8984
8972
|
class: "nut-uploader__preview-img__c",
|
|
@@ -9053,9 +9041,9 @@
|
|
|
9053
9041
|
], 2)) : vue.createCommentVNode("", true)
|
|
9054
9042
|
], 2);
|
|
9055
9043
|
}
|
|
9056
|
-
var Uploader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9057
|
-
const { create: create$
|
|
9058
|
-
const _sfc_main$
|
|
9044
|
+
var Uploader = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_render$13]]);
|
|
9045
|
+
const { create: create$13, translate: translate$h } = createComponent("numberkeyboard");
|
|
9046
|
+
const _sfc_main$13 = create$13({
|
|
9059
9047
|
props: {
|
|
9060
9048
|
confirmText: {
|
|
9061
9049
|
type: String,
|
|
@@ -9216,18 +9204,18 @@
|
|
|
9216
9204
|
};
|
|
9217
9205
|
}
|
|
9218
9206
|
});
|
|
9219
|
-
const _hoisted_1$
|
|
9207
|
+
const _hoisted_1$R = {
|
|
9220
9208
|
class: "nut-numberkeyboard",
|
|
9221
9209
|
ref: "root"
|
|
9222
9210
|
};
|
|
9223
|
-
const _hoisted_2$
|
|
9211
|
+
const _hoisted_2$F = {
|
|
9224
9212
|
key: 0,
|
|
9225
9213
|
class: "number-board-header"
|
|
9226
9214
|
};
|
|
9227
|
-
const _hoisted_3$
|
|
9228
|
-
const _hoisted_4$
|
|
9229
|
-
const _hoisted_5$
|
|
9230
|
-
const _hoisted_6$
|
|
9215
|
+
const _hoisted_3$v = { class: "tit" };
|
|
9216
|
+
const _hoisted_4$p = { class: "number-board-body" };
|
|
9217
|
+
const _hoisted_5$h = { class: "number-board" };
|
|
9218
|
+
const _hoisted_6$g = ["onTouchstart"];
|
|
9231
9219
|
const _hoisted_7$e = {
|
|
9232
9220
|
key: 1,
|
|
9233
9221
|
src: "https://img11.360buyimg.com/imagetools/jfs/t1/146371/38/8485/738/5f606425Eca239740/14f4b4f5f20d8a68.png"
|
|
@@ -9245,7 +9233,7 @@
|
|
|
9245
9233
|
const _hoisted_12$3 = [
|
|
9246
9234
|
_hoisted_11$3
|
|
9247
9235
|
];
|
|
9248
|
-
function _sfc_render$
|
|
9236
|
+
function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9249
9237
|
const _component_nut_popup = vue.resolveComponent("nut-popup");
|
|
9250
9238
|
return vue.openBlock(), vue.createBlock(_component_nut_popup, {
|
|
9251
9239
|
visible: _ctx.show,
|
|
@@ -9259,17 +9247,17 @@
|
|
|
9259
9247
|
"overlay-class": "nut-numberkeyboard-overlay"
|
|
9260
9248
|
}, {
|
|
9261
9249
|
default: vue.withCtx(() => [
|
|
9262
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
9263
|
-
_ctx.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
9264
|
-
vue.createElementVNode("h3", _hoisted_3$
|
|
9250
|
+
vue.createElementVNode("div", _hoisted_1$R, [
|
|
9251
|
+
_ctx.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$F, [
|
|
9252
|
+
vue.createElementVNode("h3", _hoisted_3$v, vue.toDisplayString(_ctx.title), 1),
|
|
9265
9253
|
_ctx.type == "default" ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
9266
9254
|
key: 0,
|
|
9267
9255
|
class: "keyboard-close",
|
|
9268
9256
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.closeBoard())
|
|
9269
9257
|
}, vue.toDisplayString(_ctx.translate("done")), 1)) : vue.createCommentVNode("", true)
|
|
9270
9258
|
])) : vue.createCommentVNode("", true),
|
|
9271
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
9272
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
9259
|
+
vue.createElementVNode("div", _hoisted_4$p, [
|
|
9260
|
+
vue.createElementVNode("div", _hoisted_5$h, [
|
|
9273
9261
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.keysList, (item) => {
|
|
9274
9262
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
9275
9263
|
class: vue.normalizeClass([
|
|
@@ -9296,7 +9284,7 @@
|
|
|
9296
9284
|
], 64)) : vue.createCommentVNode("", true),
|
|
9297
9285
|
item.type == "lock" ? (vue.openBlock(), vue.createElementBlock("img", _hoisted_7$e)) : vue.createCommentVNode("", true),
|
|
9298
9286
|
item.type == "delete" ? (vue.openBlock(), vue.createElementBlock("img", _hoisted_8$9)) : vue.createCommentVNode("", true)
|
|
9299
|
-
], 42, _hoisted_6$
|
|
9287
|
+
], 42, _hoisted_6$g)
|
|
9300
9288
|
], 2);
|
|
9301
9289
|
}), 128))
|
|
9302
9290
|
]),
|
|
@@ -9324,7 +9312,7 @@
|
|
|
9324
9312
|
_: 1
|
|
9325
9313
|
}, 8, ["visible", "teleport", "popClass", "overlay", "isWrapTeleport"]);
|
|
9326
9314
|
}
|
|
9327
|
-
var NumberKeyboard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9315
|
+
var NumberKeyboard = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$12]]);
|
|
9328
9316
|
const component$2 = {
|
|
9329
9317
|
props: {
|
|
9330
9318
|
modelValue: {
|
|
@@ -9463,608 +9451,136 @@
|
|
|
9463
9451
|
validate();
|
|
9464
9452
|
return false;
|
|
9465
9453
|
};
|
|
9466
|
-
return { validate, reset, onSubmit, formErrorTip };
|
|
9467
|
-
}
|
|
9468
|
-
};
|
|
9469
|
-
const { create: create$14 } = createComponent("form");
|
|
9470
|
-
const _sfc_main$14 = create$14(component$2);
|
|
9471
|
-
function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9472
|
-
const _component_nut_cell_group = vue.resolveComponent("nut-cell-group");
|
|
9473
|
-
return vue.openBlock(), vue.createElementBlock("form", {
|
|
9474
|
-
class: "nut-form",
|
|
9475
|
-
action: "#",
|
|
9476
|
-
onSubmit: _cache[0] || (_cache[0] = vue.withModifiers(() => false, ["prevent"]))
|
|
9477
|
-
}, [
|
|
9478
|
-
vue.createVNode(_component_nut_cell_group, null, {
|
|
9479
|
-
default: vue.withCtx(() => [
|
|
9480
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
9481
|
-
]),
|
|
9482
|
-
_: 3
|
|
9483
|
-
})
|
|
9484
|
-
], 32);
|
|
9485
|
-
}
|
|
9486
|
-
var Form = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_render$13]]);
|
|
9487
|
-
const { componentName: componentName$T, create: create$13 } = createComponent("form-item");
|
|
9488
|
-
const _sfc_main$13 = create$13({
|
|
9489
|
-
inheritAttrs: false,
|
|
9490
|
-
props: {
|
|
9491
|
-
prop: {
|
|
9492
|
-
type: String,
|
|
9493
|
-
default: ""
|
|
9494
|
-
},
|
|
9495
|
-
label: {
|
|
9496
|
-
type: String,
|
|
9497
|
-
default: ""
|
|
9498
|
-
},
|
|
9499
|
-
rules: {
|
|
9500
|
-
type: Array,
|
|
9501
|
-
default: () => {
|
|
9502
|
-
return [];
|
|
9503
|
-
}
|
|
9504
|
-
},
|
|
9505
|
-
required: {
|
|
9506
|
-
type: Boolean,
|
|
9507
|
-
default: false
|
|
9508
|
-
},
|
|
9509
|
-
showErrorMessage: {
|
|
9510
|
-
type: Boolean,
|
|
9511
|
-
default: true
|
|
9512
|
-
},
|
|
9513
|
-
showErrorLine: {
|
|
9514
|
-
type: Boolean,
|
|
9515
|
-
default: true
|
|
9516
|
-
},
|
|
9517
|
-
labelWidth: {
|
|
9518
|
-
type: [String, Number],
|
|
9519
|
-
default: ""
|
|
9520
|
-
},
|
|
9521
|
-
labelAlign: {
|
|
9522
|
-
type: String,
|
|
9523
|
-
default: ""
|
|
9524
|
-
},
|
|
9525
|
-
errorMessageAlign: {
|
|
9526
|
-
type: String,
|
|
9527
|
-
default: ""
|
|
9528
|
-
},
|
|
9529
|
-
bodyAlign: {
|
|
9530
|
-
type: String,
|
|
9531
|
-
default: ""
|
|
9532
|
-
}
|
|
9533
|
-
},
|
|
9534
|
-
components: {},
|
|
9535
|
-
emits: [""],
|
|
9536
|
-
setup(props, { emit, slots }) {
|
|
9537
|
-
const parent = vue.inject("formErrorTip");
|
|
9538
|
-
vue.provide("form", {
|
|
9539
|
-
props
|
|
9540
|
-
});
|
|
9541
|
-
const labelStyle = vue.computed(() => {
|
|
9542
|
-
return {
|
|
9543
|
-
width: pxCheck(props.labelWidth),
|
|
9544
|
-
textAlign: props.labelAlign
|
|
9545
|
-
};
|
|
9546
|
-
});
|
|
9547
|
-
const bodyStyle = vue.computed(() => {
|
|
9548
|
-
return {
|
|
9549
|
-
textAlign: props.bodyAlign
|
|
9550
|
-
};
|
|
9551
|
-
});
|
|
9552
|
-
const errorMessageStyle = vue.computed(() => {
|
|
9553
|
-
return {
|
|
9554
|
-
textAlign: props.errorMessageAlign
|
|
9555
|
-
};
|
|
9556
|
-
});
|
|
9557
|
-
const getSlots = (name) => slots[name];
|
|
9558
|
-
return { parent, labelStyle, bodyStyle, errorMessageStyle, getSlots };
|
|
9559
|
-
}
|
|
9560
|
-
});
|
|
9561
|
-
const _hoisted_1$S = { class: "nut-cell__value nut-form-item__body" };
|
|
9562
|
-
function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9563
|
-
const _component_nut_cell = vue.resolveComponent("nut-cell");
|
|
9564
|
-
return vue.openBlock(), vue.createBlock(_component_nut_cell, {
|
|
9565
|
-
class: vue.normalizeClass(["nut-form-item", [{ error: _ctx.parent[_ctx.prop], line: _ctx.showErrorLine }, _ctx.$attrs.class]]),
|
|
9566
|
-
style: vue.normalizeStyle(_ctx.$attrs.style)
|
|
9567
|
-
}, {
|
|
9568
|
-
default: vue.withCtx(() => [
|
|
9569
|
-
_ctx.label || _ctx.getSlots("label") ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
9570
|
-
key: 0,
|
|
9571
|
-
class: vue.normalizeClass(["nut-cell__title nut-form-item__label", { required: _ctx.required }]),
|
|
9572
|
-
style: vue.normalizeStyle(_ctx.labelStyle)
|
|
9573
|
-
}, [
|
|
9574
|
-
vue.renderSlot(_ctx.$slots, "label", {}, () => [
|
|
9575
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
|
|
9576
|
-
])
|
|
9577
|
-
], 6)) : vue.createCommentVNode("", true),
|
|
9578
|
-
vue.createElementVNode("view", _hoisted_1$S, [
|
|
9579
|
-
vue.createElementVNode("view", {
|
|
9580
|
-
class: "nut-form-item__body__slots",
|
|
9581
|
-
style: vue.normalizeStyle(_ctx.bodyStyle)
|
|
9582
|
-
}, [
|
|
9583
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
9584
|
-
], 4),
|
|
9585
|
-
_ctx.parent[_ctx.prop] && _ctx.showErrorMessage ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
9586
|
-
key: 0,
|
|
9587
|
-
class: "nut-form-item__body__tips",
|
|
9588
|
-
style: vue.normalizeStyle(_ctx.errorMessageStyle)
|
|
9589
|
-
}, vue.toDisplayString(_ctx.parent[_ctx.prop]), 5)) : vue.createCommentVNode("", true)
|
|
9590
|
-
])
|
|
9591
|
-
]),
|
|
9592
|
-
_: 3
|
|
9593
|
-
}, 8, ["class", "style"]);
|
|
9594
|
-
}
|
|
9595
|
-
var FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$12]]);
|
|
9596
|
-
const { create: create$12 } = createComponent("oldpicker-column");
|
|
9597
|
-
const _sfc_main$12 = create$12({
|
|
9598
|
-
props: {
|
|
9599
|
-
dataType: String,
|
|
9600
|
-
itemShow: {
|
|
9601
|
-
type: Boolean,
|
|
9602
|
-
default: false
|
|
9603
|
-
},
|
|
9604
|
-
listData: {
|
|
9605
|
-
type: Object,
|
|
9606
|
-
default: () => {
|
|
9607
|
-
return {};
|
|
9608
|
-
}
|
|
9609
|
-
},
|
|
9610
|
-
readonly: {
|
|
9611
|
-
type: Boolean,
|
|
9612
|
-
default: false
|
|
9613
|
-
},
|
|
9614
|
-
defaultIndex: {
|
|
9615
|
-
type: [Number, String],
|
|
9616
|
-
default: 0
|
|
9617
|
-
}
|
|
9618
|
-
},
|
|
9619
|
-
emits: ["click", "change"],
|
|
9620
|
-
setup(props, { emit }) {
|
|
9621
|
-
const wrapper = vue.ref();
|
|
9622
|
-
const state = vue.reactive({
|
|
9623
|
-
touchParams: {
|
|
9624
|
-
startY: 0,
|
|
9625
|
-
endY: 0,
|
|
9626
|
-
startTime: 0,
|
|
9627
|
-
endTime: 0,
|
|
9628
|
-
lastY: 0
|
|
9629
|
-
},
|
|
9630
|
-
currIndex: 1,
|
|
9631
|
-
transformY: 0,
|
|
9632
|
-
scrollDistance: 0,
|
|
9633
|
-
lineSpacing: 36,
|
|
9634
|
-
rotation: 20,
|
|
9635
|
-
timer: null
|
|
9636
|
-
});
|
|
9637
|
-
const roller = vue.ref(null);
|
|
9638
|
-
const list = vue.ref(null);
|
|
9639
|
-
const listItem = vue.ref(null);
|
|
9640
|
-
const touchDeg = vue.ref(0);
|
|
9641
|
-
const touchTime = vue.ref(0);
|
|
9642
|
-
const touchTranslateY = vue.ref(0);
|
|
9643
|
-
const touchListStyle = vue.computed(() => {
|
|
9644
|
-
return {
|
|
9645
|
-
transition: `transform ${touchTime.value}ms cubic-bezier(0.19, 1, 0.22, 1)`,
|
|
9646
|
-
transform: `translate3d(0, ${state.scrollDistance}px, 0)`
|
|
9647
|
-
};
|
|
9648
|
-
});
|
|
9649
|
-
const touchRollerStyle = vue.computed(() => {
|
|
9650
|
-
return {
|
|
9651
|
-
transition: `transform ${touchTime.value}ms cubic-bezier(0.19, 1, 0.22, 1)`,
|
|
9652
|
-
transform: `rotate3d(1, 0, 0, ${touchDeg.value})`
|
|
9653
|
-
};
|
|
9654
|
-
});
|
|
9655
|
-
const onTouchStart = (event) => {
|
|
9656
|
-
event.preventDefault();
|
|
9657
|
-
let changedTouches = event.changedTouches[0];
|
|
9658
|
-
state.touchParams.startY = changedTouches.pageY;
|
|
9659
|
-
state.touchParams.startTime = event.timeStamp || Date.now();
|
|
9660
|
-
state.transformY = state.scrollDistance;
|
|
9661
|
-
};
|
|
9662
|
-
const onTouchMove = (event) => {
|
|
9663
|
-
event.preventDefault();
|
|
9664
|
-
let changedTouches = event.changedTouches[0];
|
|
9665
|
-
state.touchParams.lastY = changedTouches.pageY;
|
|
9666
|
-
state.touchParams.lastTime = event.timeStamp || Date.now();
|
|
9667
|
-
let move = state.touchParams.lastY - state.touchParams.startY;
|
|
9668
|
-
setMove(move);
|
|
9669
|
-
};
|
|
9670
|
-
const onTouchEnd = (event) => {
|
|
9671
|
-
event.preventDefault();
|
|
9672
|
-
let changedTouches = event.changedTouches[0];
|
|
9673
|
-
state.touchParams.lastY = changedTouches.pageY;
|
|
9674
|
-
state.touchParams.lastTime = event.timestamp || Date.now();
|
|
9675
|
-
let move = state.touchParams.lastY - state.touchParams.startY;
|
|
9676
|
-
let moveTime = state.touchParams.lastTime - state.touchParams.startTime;
|
|
9677
|
-
if (moveTime <= 300) {
|
|
9678
|
-
move = move * 2;
|
|
9679
|
-
moveTime = moveTime + 1e3;
|
|
9680
|
-
setMove(move, "end", moveTime);
|
|
9681
|
-
} else {
|
|
9682
|
-
setMove(move, "end");
|
|
9683
|
-
}
|
|
9684
|
-
};
|
|
9685
|
-
const setRollerStyle = (index) => {
|
|
9686
|
-
return `transform: rotate3d(1, 0, 0, ${-state.rotation * index}deg) translate3d(0px, 0px, 104px)`;
|
|
9687
|
-
};
|
|
9688
|
-
const isHidden = (index) => {
|
|
9689
|
-
if (index >= state.currIndex + 8 || index <= state.currIndex - 8) {
|
|
9690
|
-
return true;
|
|
9691
|
-
} else {
|
|
9692
|
-
return false;
|
|
9693
|
-
}
|
|
9694
|
-
};
|
|
9695
|
-
const setTransform = (translateY = 0, type, time = 1e3, deg) => {
|
|
9696
|
-
if (type === "end") {
|
|
9697
|
-
touchTime.value = time;
|
|
9698
|
-
} else {
|
|
9699
|
-
touchTime.value = 0;
|
|
9700
|
-
}
|
|
9701
|
-
touchDeg.value = deg;
|
|
9702
|
-
touchTranslateY.value = translateY;
|
|
9703
|
-
state.scrollDistance = translateY;
|
|
9704
|
-
};
|
|
9705
|
-
const setMove = (move, type, time) => {
|
|
9706
|
-
let updateMove = move + state.transformY;
|
|
9707
|
-
if (type === "end") {
|
|
9708
|
-
if (updateMove > 0) {
|
|
9709
|
-
updateMove = 0;
|
|
9710
|
-
}
|
|
9711
|
-
if (updateMove < -(props.listData.values.length - 1) * state.lineSpacing) {
|
|
9712
|
-
updateMove = -(props.listData.values.length - 1) * state.lineSpacing;
|
|
9713
|
-
}
|
|
9714
|
-
let endMove = Math.round(updateMove / state.lineSpacing) * state.lineSpacing;
|
|
9715
|
-
let deg = `${(Math.abs(Math.round(endMove / state.lineSpacing)) + 1) * state.rotation}deg`;
|
|
9716
|
-
setTransform(endMove, type, time, deg);
|
|
9717
|
-
let t = time ? time / 2 : 0;
|
|
9718
|
-
state.timer = setTimeout(() => {
|
|
9719
|
-
setChooseValue();
|
|
9720
|
-
}, t);
|
|
9721
|
-
state.currIndex = Math.abs(Math.round(endMove / state.lineSpacing)) + 1;
|
|
9722
|
-
} else {
|
|
9723
|
-
let deg = "0deg";
|
|
9724
|
-
if (updateMove < 0) {
|
|
9725
|
-
deg = `${(Math.abs(updateMove / state.lineSpacing) + 1) * state.rotation}deg`;
|
|
9726
|
-
} else {
|
|
9727
|
-
deg = `${(-updateMove / state.lineSpacing + 1) * state.rotation}deg`;
|
|
9728
|
-
}
|
|
9729
|
-
setTransform(updateMove, null, void 0, deg);
|
|
9730
|
-
state.currIndex = Math.abs(Math.round(updateMove / state.lineSpacing)) + 1;
|
|
9731
|
-
}
|
|
9732
|
-
};
|
|
9733
|
-
const setChooseValue = () => {
|
|
9734
|
-
emit("change", state.currIndex - 1);
|
|
9735
|
-
};
|
|
9736
|
-
const modifyStatus = (type) => {
|
|
9737
|
-
let index = props.defaultIndex;
|
|
9738
|
-
state.currIndex = index === -1 ? 1 : index + 1;
|
|
9739
|
-
let move = index === -1 ? 0 : index * state.lineSpacing;
|
|
9740
|
-
type && setChooseValue();
|
|
9741
|
-
setMove(-move);
|
|
9742
|
-
};
|
|
9743
|
-
vue.watch(
|
|
9744
|
-
() => props.listData,
|
|
9745
|
-
(val) => {
|
|
9746
|
-
state.transformY = 0;
|
|
9747
|
-
modifyStatus(false);
|
|
9748
|
-
},
|
|
9749
|
-
{
|
|
9750
|
-
deep: true
|
|
9751
|
-
}
|
|
9752
|
-
);
|
|
9753
|
-
vue.watch(
|
|
9754
|
-
() => props.defaultIndex,
|
|
9755
|
-
(val) => {
|
|
9756
|
-
state.transformY = 0;
|
|
9757
|
-
modifyStatus(false);
|
|
9758
|
-
}
|
|
9759
|
-
);
|
|
9760
|
-
vue.onMounted(() => {
|
|
9761
|
-
modifyStatus(true);
|
|
9762
|
-
});
|
|
9763
|
-
return {
|
|
9764
|
-
...vue.toRefs(state),
|
|
9765
|
-
...vue.toRefs(props),
|
|
9766
|
-
wrapper,
|
|
9767
|
-
setRollerStyle,
|
|
9768
|
-
isHidden,
|
|
9769
|
-
roller,
|
|
9770
|
-
list,
|
|
9771
|
-
listItem,
|
|
9772
|
-
onTouchStart,
|
|
9773
|
-
onTouchMove,
|
|
9774
|
-
onTouchEnd,
|
|
9775
|
-
touchRollerStyle,
|
|
9776
|
-
touchListStyle,
|
|
9777
|
-
setMove
|
|
9778
|
-
};
|
|
9454
|
+
return { validate, reset, onSubmit, formErrorTip };
|
|
9779
9455
|
}
|
|
9780
|
-
});
|
|
9781
|
-
const _hoisted_1$R = { class: "nut-oldpicker-content" };
|
|
9782
|
-
const _hoisted_2$G = {
|
|
9783
|
-
key: 0,
|
|
9784
|
-
class: "nut-oldpicker-placeholder"
|
|
9785
9456
|
};
|
|
9457
|
+
const { create: create$12 } = createComponent("form");
|
|
9458
|
+
const _sfc_main$12 = create$12(component$2);
|
|
9786
9459
|
function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9787
|
-
|
|
9788
|
-
|
|
9789
|
-
|
|
9790
|
-
|
|
9791
|
-
|
|
9460
|
+
const _component_nut_cell_group = vue.resolveComponent("nut-cell-group");
|
|
9461
|
+
return vue.openBlock(), vue.createElementBlock("form", {
|
|
9462
|
+
class: "nut-form",
|
|
9463
|
+
action: "#",
|
|
9464
|
+
onSubmit: _cache[0] || (_cache[0] = vue.withModifiers(() => false, ["prevent"]))
|
|
9792
9465
|
}, [
|
|
9793
|
-
vue.
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
9799
|
-
return vue.openBlock(), vue.createElementBlock("view", {
|
|
9800
|
-
class: vue.normalizeClass(["nut-oldpicker-roller-item", { "nut-oldpicker-roller-item-hidden": _ctx.isHidden(index + 1) }]),
|
|
9801
|
-
style: vue.normalizeStyle(_ctx.setRollerStyle(index + 1)),
|
|
9802
|
-
key: item.label ? item.label : index
|
|
9803
|
-
}, vue.toDisplayString(_ctx.dataType === "cascade" ? item.text : item), 7);
|
|
9804
|
-
}), 128))
|
|
9805
|
-
], 4),
|
|
9806
|
-
vue.createElementVNode("view", _hoisted_1$R, [
|
|
9807
|
-
vue.createElementVNode("view", {
|
|
9808
|
-
class: "nut-oldpicker-list-panel",
|
|
9809
|
-
ref: "list",
|
|
9810
|
-
style: vue.normalizeStyle(_ctx.touchListStyle)
|
|
9811
|
-
}, [
|
|
9812
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.listData.values, (item, index) => {
|
|
9813
|
-
return vue.openBlock(), vue.createElementBlock("view", {
|
|
9814
|
-
class: "nut-oldpicker-item nut-oldpicker-item-ref",
|
|
9815
|
-
key: item.label ? item.label : index
|
|
9816
|
-
}, vue.toDisplayString(_ctx.dataType === "cascade" ? item.text : item), 1);
|
|
9817
|
-
}), 128)),
|
|
9818
|
-
_ctx.listData && _ctx.listData.length === 1 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$G)) : vue.createCommentVNode("", true)
|
|
9819
|
-
], 4)
|
|
9820
|
-
])
|
|
9466
|
+
vue.createVNode(_component_nut_cell_group, null, {
|
|
9467
|
+
default: vue.withCtx(() => [
|
|
9468
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
9469
|
+
]),
|
|
9470
|
+
_: 3
|
|
9471
|
+
})
|
|
9821
9472
|
], 32);
|
|
9822
9473
|
}
|
|
9823
|
-
var
|
|
9824
|
-
const {
|
|
9474
|
+
var Form = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$11]]);
|
|
9475
|
+
const { componentName: componentName$S, create: create$11 } = createComponent("form-item");
|
|
9825
9476
|
const _sfc_main$11 = create$11({
|
|
9826
|
-
|
|
9827
|
-
[column.name]: column,
|
|
9828
|
-
[Popup.name]: Popup
|
|
9829
|
-
},
|
|
9477
|
+
inheritAttrs: false,
|
|
9830
9478
|
props: {
|
|
9831
|
-
|
|
9832
|
-
title: {
|
|
9479
|
+
prop: {
|
|
9833
9480
|
type: String,
|
|
9834
9481
|
default: ""
|
|
9835
9482
|
},
|
|
9836
|
-
|
|
9837
|
-
type: String,
|
|
9838
|
-
default: "\u53D6\u6D88"
|
|
9839
|
-
},
|
|
9840
|
-
okText: {
|
|
9483
|
+
label: {
|
|
9841
9484
|
type: String,
|
|
9842
|
-
default: "
|
|
9485
|
+
default: ""
|
|
9843
9486
|
},
|
|
9844
|
-
|
|
9487
|
+
rules: {
|
|
9845
9488
|
type: Array,
|
|
9846
9489
|
default: () => {
|
|
9847
9490
|
return [];
|
|
9848
9491
|
}
|
|
9849
9492
|
},
|
|
9850
|
-
|
|
9493
|
+
required: {
|
|
9851
9494
|
type: Boolean,
|
|
9852
9495
|
default: false
|
|
9853
9496
|
},
|
|
9854
|
-
|
|
9855
|
-
type:
|
|
9856
|
-
default:
|
|
9497
|
+
showErrorMessage: {
|
|
9498
|
+
type: Boolean,
|
|
9499
|
+
default: true
|
|
9500
|
+
},
|
|
9501
|
+
showErrorLine: {
|
|
9502
|
+
type: Boolean,
|
|
9503
|
+
default: true
|
|
9504
|
+
},
|
|
9505
|
+
labelWidth: {
|
|
9506
|
+
type: [String, Number],
|
|
9507
|
+
default: ""
|
|
9508
|
+
},
|
|
9509
|
+
labelAlign: {
|
|
9510
|
+
type: String,
|
|
9511
|
+
default: ""
|
|
9512
|
+
},
|
|
9513
|
+
errorMessageAlign: {
|
|
9514
|
+
type: String,
|
|
9515
|
+
default: ""
|
|
9516
|
+
},
|
|
9517
|
+
bodyAlign: {
|
|
9518
|
+
type: String,
|
|
9519
|
+
default: ""
|
|
9857
9520
|
}
|
|
9858
9521
|
},
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
|
|
9862
|
-
const
|
|
9863
|
-
|
|
9864
|
-
|
|
9865
|
-
formattedColumns: props.listData,
|
|
9866
|
-
defaultIndex: props.defaultIndex
|
|
9522
|
+
components: {},
|
|
9523
|
+
emits: [""],
|
|
9524
|
+
setup(props, { emit, slots }) {
|
|
9525
|
+
const parent = vue.inject("formErrorTip");
|
|
9526
|
+
vue.provide("form", {
|
|
9527
|
+
props
|
|
9867
9528
|
});
|
|
9868
|
-
|
|
9869
|
-
let defaultIndexList = [];
|
|
9870
|
-
const classes = vue.computed(() => {
|
|
9871
|
-
const prefixCls = componentName$S;
|
|
9529
|
+
const labelStyle = vue.computed(() => {
|
|
9872
9530
|
return {
|
|
9873
|
-
|
|
9531
|
+
width: pxCheck(props.labelWidth),
|
|
9532
|
+
textAlign: props.labelAlign
|
|
9874
9533
|
};
|
|
9875
9534
|
});
|
|
9876
|
-
const
|
|
9877
|
-
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
return "cascade";
|
|
9881
|
-
} else if (firstColumn == null ? void 0 : firstColumn[valuesKey]) {
|
|
9882
|
-
addDefaultIndexList(props.listData);
|
|
9883
|
-
return "multipleColumns";
|
|
9884
|
-
}
|
|
9885
|
-
}
|
|
9886
|
-
return "text";
|
|
9887
|
-
});
|
|
9888
|
-
const columnList = vue.computed(() => {
|
|
9889
|
-
if (dataType.value === "text") {
|
|
9890
|
-
return [{ values: state.formattedColumns, defaultIndex: state.defaultIndex }];
|
|
9891
|
-
} else if (dataType.value === "multipleColumns") {
|
|
9892
|
-
return state.formattedColumns;
|
|
9893
|
-
} else if (dataType.value === "cascade") {
|
|
9894
|
-
return formatCascade(state.formattedColumns, state.defaultIndex);
|
|
9895
|
-
}
|
|
9896
|
-
return state.formattedColumns;
|
|
9897
|
-
});
|
|
9898
|
-
const addDefaultIndexList = (listData) => {
|
|
9899
|
-
defaultIndexList = [];
|
|
9900
|
-
listData.forEach((res) => {
|
|
9901
|
-
defaultIndexList.push(res.defaultIndex || 0);
|
|
9902
|
-
});
|
|
9903
|
-
};
|
|
9904
|
-
const formatCascade = (listData, defaultIndex) => {
|
|
9905
|
-
const formatted = [];
|
|
9906
|
-
let children = listData;
|
|
9907
|
-
children.defaultIndex = defaultIndex;
|
|
9908
|
-
while (children) {
|
|
9909
|
-
formatted.push({
|
|
9910
|
-
values: children,
|
|
9911
|
-
defaultIndex: children.defaultIndex || 0
|
|
9912
|
-
});
|
|
9913
|
-
children = children == null ? void 0 : children[children.defaultIndex || 0].children;
|
|
9914
|
-
}
|
|
9915
|
-
addDefaultIndexList(formatted);
|
|
9916
|
-
return formatted;
|
|
9917
|
-
};
|
|
9918
|
-
const getCascadeData = (listData, defaultIndex) => {
|
|
9919
|
-
var _a;
|
|
9920
|
-
let arr = listData;
|
|
9921
|
-
arr.defaultIndex = defaultIndex;
|
|
9922
|
-
const dataList = [];
|
|
9923
|
-
while (arr) {
|
|
9924
|
-
const item = arr[(_a = arr.defaultIndex) != null ? _a : 0];
|
|
9925
|
-
dataList.push(item.text);
|
|
9926
|
-
arr = item.children;
|
|
9927
|
-
}
|
|
9928
|
-
return dataList;
|
|
9929
|
-
};
|
|
9930
|
-
const close = () => {
|
|
9931
|
-
emit("close");
|
|
9932
|
-
emit("update:visible", false);
|
|
9933
|
-
};
|
|
9934
|
-
const changeHandler = (columnIndex, dataIndex) => {
|
|
9935
|
-
if (dataType.value === "cascade") {
|
|
9936
|
-
let cursor = state.formattedColumns;
|
|
9937
|
-
if (columnIndex === 0) {
|
|
9938
|
-
state.defaultIndex = dataIndex;
|
|
9939
|
-
}
|
|
9940
|
-
let i = 0;
|
|
9941
|
-
while (cursor) {
|
|
9942
|
-
if (i === columnIndex) {
|
|
9943
|
-
cursor.defaultIndex = dataIndex;
|
|
9944
|
-
} else if (i > columnIndex) {
|
|
9945
|
-
cursor.defaultIndex = 0;
|
|
9946
|
-
}
|
|
9947
|
-
cursor = cursor[cursor.defaultIndex || 0].children;
|
|
9948
|
-
i++;
|
|
9949
|
-
}
|
|
9950
|
-
} else if (dataType.value === "text") {
|
|
9951
|
-
_defaultIndex = dataIndex;
|
|
9952
|
-
} else if (dataType.value === "multipleColumns") {
|
|
9953
|
-
defaultIndexList[columnIndex] = dataIndex;
|
|
9954
|
-
const val = defaultIndexList.map(
|
|
9955
|
-
(res, i) => vue.toRaw(state.formattedColumns)[i].values[res]
|
|
9956
|
-
);
|
|
9957
|
-
emit("change", val, columnIndex, dataIndex);
|
|
9958
|
-
}
|
|
9959
|
-
};
|
|
9960
|
-
const confirm = () => {
|
|
9961
|
-
if (dataType.value === "text") {
|
|
9962
|
-
state.defaultIndex = _defaultIndex;
|
|
9963
|
-
emit("confirm", state.formattedColumns[_defaultIndex]);
|
|
9964
|
-
} else if (dataType.value === "multipleColumns") {
|
|
9965
|
-
for (let i = 0; i < defaultIndexList.length; i++) {
|
|
9966
|
-
state.formattedColumns[i].defaultIndex = defaultIndexList[i];
|
|
9967
|
-
}
|
|
9968
|
-
const checkedArr = vue.toRaw(state.formattedColumns).map(
|
|
9969
|
-
(res) => res.values && res.values[res.defaultIndex]
|
|
9970
|
-
);
|
|
9971
|
-
emit("confirm", checkedArr);
|
|
9972
|
-
} else if (dataType.value === "cascade") {
|
|
9973
|
-
emit("confirm", getCascadeData(vue.toRaw(state.formattedColumns), state.defaultIndex));
|
|
9974
|
-
}
|
|
9975
|
-
emit("update:visible", false);
|
|
9976
|
-
};
|
|
9977
|
-
vue.onMounted(() => {
|
|
9978
|
-
if (props.visible)
|
|
9979
|
-
state.show = props.visible;
|
|
9535
|
+
const bodyStyle = vue.computed(() => {
|
|
9536
|
+
return {
|
|
9537
|
+
textAlign: props.bodyAlign
|
|
9538
|
+
};
|
|
9980
9539
|
});
|
|
9981
|
-
vue.
|
|
9982
|
-
|
|
9983
|
-
|
|
9540
|
+
const errorMessageStyle = vue.computed(() => {
|
|
9541
|
+
return {
|
|
9542
|
+
textAlign: props.errorMessageAlign
|
|
9543
|
+
};
|
|
9984
9544
|
});
|
|
9985
|
-
|
|
9986
|
-
|
|
9987
|
-
(val) => {
|
|
9988
|
-
state.show = val;
|
|
9989
|
-
}
|
|
9990
|
-
);
|
|
9991
|
-
vue.watch(
|
|
9992
|
-
() => props.listData,
|
|
9993
|
-
(val) => {
|
|
9994
|
-
state.formattedColumns = val;
|
|
9995
|
-
}
|
|
9996
|
-
);
|
|
9997
|
-
return {
|
|
9998
|
-
classes,
|
|
9999
|
-
...vue.toRefs(state),
|
|
10000
|
-
column,
|
|
10001
|
-
dataType,
|
|
10002
|
-
columnList,
|
|
10003
|
-
close,
|
|
10004
|
-
changeHandler,
|
|
10005
|
-
confirm
|
|
10006
|
-
};
|
|
9545
|
+
const getSlots = (name) => slots[name];
|
|
9546
|
+
return { parent, labelStyle, bodyStyle, errorMessageStyle, getSlots };
|
|
10007
9547
|
}
|
|
10008
9548
|
});
|
|
10009
|
-
const _hoisted_1$Q = { class: "nut-
|
|
10010
|
-
const _hoisted_2$F = { class: "nut-oldpicker__title" };
|
|
10011
|
-
const _hoisted_3$v = { class: "nut-oldpicker__column" };
|
|
10012
|
-
const _hoisted_4$p = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-oldpicker__hairline" }, null, -1);
|
|
9549
|
+
const _hoisted_1$Q = { class: "nut-cell__value nut-form-item__body" };
|
|
10013
9550
|
function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10014
|
-
const
|
|
10015
|
-
|
|
10016
|
-
|
|
10017
|
-
|
|
10018
|
-
},
|
|
10019
|
-
vue.
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
|
|
10023
|
-
|
|
10024
|
-
|
|
10025
|
-
|
|
10026
|
-
|
|
10027
|
-
round: true,
|
|
10028
|
-
isWrapTeleport: _ctx.isWrapTeleport
|
|
10029
|
-
}, {
|
|
10030
|
-
default: vue.withCtx(() => [
|
|
10031
|
-
vue.createElementVNode("view", _hoisted_1$Q, [
|
|
10032
|
-
vue.createElementVNode("view", {
|
|
10033
|
-
class: "nut-oldpicker__cancel nut-oldpicker__left nut-oldpicker__button",
|
|
10034
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.close && _ctx.close(...args))
|
|
10035
|
-
}, vue.toDisplayString(_ctx.cancelText), 1),
|
|
10036
|
-
vue.createElementVNode("view", _hoisted_2$F, vue.toDisplayString(_ctx.title), 1),
|
|
10037
|
-
vue.createElementVNode("view", {
|
|
10038
|
-
class: "nut-oldpicker__confirm nut-oldpicker__button nut-oldpicker__right",
|
|
10039
|
-
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.confirm())
|
|
10040
|
-
}, vue.toDisplayString(_ctx.okText), 1)
|
|
10041
|
-
]),
|
|
10042
|
-
vue.createElementVNode("view", _hoisted_3$v, [
|
|
10043
|
-
_hoisted_4$p,
|
|
10044
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.columnList, (item, columnIndex) => {
|
|
10045
|
-
return vue.openBlock(), vue.createElementBlock("view", {
|
|
10046
|
-
class: "nut-oldpicker__columnitem",
|
|
10047
|
-
key: columnIndex
|
|
10048
|
-
}, [
|
|
10049
|
-
vue.createVNode(_component_nut_oldpicker_column, {
|
|
10050
|
-
itemShow: _ctx.show,
|
|
10051
|
-
"list-data": item,
|
|
10052
|
-
readonly: _ctx.readonly,
|
|
10053
|
-
"default-index": item.defaultIndex,
|
|
10054
|
-
"data-type": _ctx.dataType,
|
|
10055
|
-
onChange: (dataIndex) => {
|
|
10056
|
-
_ctx.changeHandler(columnIndex, dataIndex);
|
|
10057
|
-
}
|
|
10058
|
-
}, null, 8, ["itemShow", "list-data", "readonly", "default-index", "data-type", "onChange"])
|
|
10059
|
-
]);
|
|
10060
|
-
}), 128))
|
|
9551
|
+
const _component_nut_cell = vue.resolveComponent("nut-cell");
|
|
9552
|
+
return vue.openBlock(), vue.createBlock(_component_nut_cell, {
|
|
9553
|
+
class: vue.normalizeClass(["nut-form-item", [{ error: _ctx.parent[_ctx.prop], line: _ctx.showErrorLine }, _ctx.$attrs.class]]),
|
|
9554
|
+
style: vue.normalizeStyle(_ctx.$attrs.style)
|
|
9555
|
+
}, {
|
|
9556
|
+
default: vue.withCtx(() => [
|
|
9557
|
+
_ctx.label || _ctx.getSlots("label") ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
9558
|
+
key: 0,
|
|
9559
|
+
class: vue.normalizeClass(["nut-cell__title nut-form-item__label", { required: _ctx.required }]),
|
|
9560
|
+
style: vue.normalizeStyle(_ctx.labelStyle)
|
|
9561
|
+
}, [
|
|
9562
|
+
vue.renderSlot(_ctx.$slots, "label", {}, () => [
|
|
9563
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
|
|
10061
9564
|
])
|
|
10062
|
-
]),
|
|
10063
|
-
|
|
10064
|
-
|
|
10065
|
-
|
|
9565
|
+
], 6)) : vue.createCommentVNode("", true),
|
|
9566
|
+
vue.createElementVNode("view", _hoisted_1$Q, [
|
|
9567
|
+
vue.createElementVNode("view", {
|
|
9568
|
+
class: "nut-form-item__body__slots",
|
|
9569
|
+
style: vue.normalizeStyle(_ctx.bodyStyle)
|
|
9570
|
+
}, [
|
|
9571
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
9572
|
+
], 4),
|
|
9573
|
+
_ctx.parent[_ctx.prop] && _ctx.showErrorMessage ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
9574
|
+
key: 0,
|
|
9575
|
+
class: "nut-form-item__body__tips",
|
|
9576
|
+
style: vue.normalizeStyle(_ctx.errorMessageStyle)
|
|
9577
|
+
}, vue.toDisplayString(_ctx.parent[_ctx.prop]), 5)) : vue.createCommentVNode("", true)
|
|
9578
|
+
])
|
|
9579
|
+
]),
|
|
9580
|
+
_: 3
|
|
9581
|
+
}, 8, ["class", "style"]);
|
|
10066
9582
|
}
|
|
10067
|
-
var
|
|
9583
|
+
var FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$10]]);
|
|
10068
9584
|
const { componentName: componentName$R, create: create$10 } = createComponent("swipe");
|
|
10069
9585
|
const _sfc_main$10 = create$10({
|
|
10070
9586
|
props: {
|
|
@@ -10333,11 +9849,11 @@
|
|
|
10333
9849
|
key: 0,
|
|
10334
9850
|
class: "nut-actionsheet-item desc"
|
|
10335
9851
|
};
|
|
10336
|
-
const _hoisted_5$
|
|
9852
|
+
const _hoisted_5$g = {
|
|
10337
9853
|
key: 1,
|
|
10338
9854
|
class: "nut-actionsheet-menu"
|
|
10339
9855
|
};
|
|
10340
|
-
const _hoisted_6$
|
|
9856
|
+
const _hoisted_6$f = ["onClick"];
|
|
10341
9857
|
const _hoisted_7$d = { key: 1 };
|
|
10342
9858
|
const _hoisted_8$8 = { class: "subdesc" };
|
|
10343
9859
|
function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -10361,7 +9877,7 @@
|
|
|
10361
9877
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
10362
9878
|
!_ctx.slotDefault ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$t, [
|
|
10363
9879
|
_ctx.description ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$o, vue.toDisplayString(_ctx.description), 1)) : vue.createCommentVNode("", true),
|
|
10364
|
-
_ctx.menuItems.length ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$
|
|
9880
|
+
_ctx.menuItems.length ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$g, [
|
|
10365
9881
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.menuItems, (item, index) => {
|
|
10366
9882
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
10367
9883
|
class: vue.normalizeClass(["nut-actionsheet-item", { "nut-actionsheet-item-disabled": item.disable, "nut-actionsheet-item-loading": item.loading }]),
|
|
@@ -10374,7 +9890,7 @@
|
|
|
10374
9890
|
name: "loading"
|
|
10375
9891
|
})) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$d, vue.toDisplayString(item[_ctx.optionTag]), 1)),
|
|
10376
9892
|
vue.createElementVNode("view", _hoisted_8$8, vue.toDisplayString(item[_ctx.optionSubTag]), 1)
|
|
10377
|
-
], 14, _hoisted_6$
|
|
9893
|
+
], 14, _hoisted_6$f);
|
|
10378
9894
|
}), 128))
|
|
10379
9895
|
])) : vue.createCommentVNode("", true),
|
|
10380
9896
|
_ctx.cancelTxt ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -11080,6 +10596,7 @@
|
|
|
11080
10596
|
},
|
|
11081
10597
|
emits: ["scroll-change", "load-more", "refresh"],
|
|
11082
10598
|
setup(props, { emit, slots }) {
|
|
10599
|
+
const touch = useTouch$2();
|
|
11083
10600
|
const state = vue.reactive({
|
|
11084
10601
|
scrollEl: window,
|
|
11085
10602
|
scroller: null,
|
|
@@ -11160,6 +10677,7 @@
|
|
|
11160
10677
|
state.isTouching = false;
|
|
11161
10678
|
};
|
|
11162
10679
|
const touchStart = (event) => {
|
|
10680
|
+
touch.start(event);
|
|
11163
10681
|
if (state.beforeScrollTop == 0 && !state.isTouching && props.isOpenRefresh) {
|
|
11164
10682
|
state.y = event.touches[0].pageY;
|
|
11165
10683
|
state.isTouching = true;
|
|
@@ -11168,8 +10686,9 @@
|
|
|
11168
10686
|
}
|
|
11169
10687
|
};
|
|
11170
10688
|
const touchMove = (event) => {
|
|
10689
|
+
touch.move(event);
|
|
11171
10690
|
state.distance = event.touches[0].pageY - state.y;
|
|
11172
|
-
if (state.distance > 0 && state.isTouching) {
|
|
10691
|
+
if (touch.isVertical() && state.distance > 0 && state.isTouching) {
|
|
11173
10692
|
event.preventDefault();
|
|
11174
10693
|
if (state.distance >= state.refreshMaxH)
|
|
11175
10694
|
state.distance = state.refreshMaxH;
|
|
@@ -11186,6 +10705,9 @@
|
|
|
11186
10705
|
emit("refresh", refreshDone);
|
|
11187
10706
|
}
|
|
11188
10707
|
}
|
|
10708
|
+
setTimeout(() => {
|
|
10709
|
+
touch.reset();
|
|
10710
|
+
}, 0);
|
|
11189
10711
|
};
|
|
11190
10712
|
const getParentElement = (el) => {
|
|
11191
10713
|
return !!props.containerId ? document.querySelector(`#${props.containerId}`) : el && el.parentNode;
|
|
@@ -11226,11 +10748,11 @@
|
|
|
11226
10748
|
const _hoisted_2$B = { class: "top-text" };
|
|
11227
10749
|
const _hoisted_3$s = { class: "nut-infinite-container" };
|
|
11228
10750
|
const _hoisted_4$n = { class: "nut-infinite-bottom" };
|
|
11229
|
-
const _hoisted_5$
|
|
10751
|
+
const _hoisted_5$f = {
|
|
11230
10752
|
key: 0,
|
|
11231
10753
|
class: "bottom-box"
|
|
11232
10754
|
};
|
|
11233
|
-
const _hoisted_6$
|
|
10755
|
+
const _hoisted_6$e = { class: "bottom-text" };
|
|
11234
10756
|
const _hoisted_7$c = {
|
|
11235
10757
|
key: 0,
|
|
11236
10758
|
class: "tips"
|
|
@@ -11258,10 +10780,10 @@
|
|
|
11258
10780
|
vue.renderSlot(_ctx.$slots, "default")
|
|
11259
10781
|
]),
|
|
11260
10782
|
vue.createElementVNode("view", _hoisted_4$n, [
|
|
11261
|
-
_ctx.isInfiniting ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$
|
|
10783
|
+
_ctx.isInfiniting ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$f, [
|
|
11262
10784
|
!_ctx.slots.loading ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
11263
10785
|
vue.createVNode(_component_nut_icon, vue.mergeProps({ class: "bottom-img" }, _ctx.$attrs, { name: _ctx.loadIcon }), null, 16, ["name"]),
|
|
11264
|
-
vue.createElementVNode("view", _hoisted_6$
|
|
10786
|
+
vue.createElementVNode("view", _hoisted_6$e, vue.toDisplayString(_ctx.loadTxt || _ctx.translate("loading")), 1)
|
|
11265
10787
|
], 64)) : vue.renderSlot(_ctx.$slots, "loading", { key: 1 })
|
|
11266
10788
|
])) : !_ctx.hasMore ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
11267
10789
|
!_ctx.slots.finished ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$c, vue.toDisplayString(_ctx.loadMoreTxt || _ctx.translate("loadMoreTxt")), 1)) : vue.renderSlot(_ctx.$slots, "finished", { key: 1 })
|
|
@@ -11945,7 +11467,7 @@
|
|
|
11945
11467
|
const { create: create$T } = createComponent("toast");
|
|
11946
11468
|
const _sfc_main$T = create$T({
|
|
11947
11469
|
components: {
|
|
11948
|
-
[_sfc_main$
|
|
11470
|
+
[_sfc_main$1P.name]: _sfc_main$1P
|
|
11949
11471
|
},
|
|
11950
11472
|
props: {
|
|
11951
11473
|
id: String,
|
|
@@ -12423,8 +11945,8 @@
|
|
|
12423
11945
|
};
|
|
12424
11946
|
const _hoisted_3$r = { class: "time" };
|
|
12425
11947
|
const _hoisted_4$m = { class: "progress-bar-wrapper" };
|
|
12426
|
-
const _hoisted_5$
|
|
12427
|
-
const _hoisted_6$
|
|
11948
|
+
const _hoisted_5$e = /* @__PURE__ */ vue.createElementVNode("div", { class: "custom-button" }, null, -1);
|
|
11949
|
+
const _hoisted_6$d = { class: "time" };
|
|
12428
11950
|
const _hoisted_7$b = {
|
|
12429
11951
|
key: 1,
|
|
12430
11952
|
class: "nut-audio-icon"
|
|
@@ -12446,12 +11968,12 @@
|
|
|
12446
11968
|
"active-color": "#fa2c19"
|
|
12447
11969
|
}, {
|
|
12448
11970
|
button: vue.withCtx(() => [
|
|
12449
|
-
_hoisted_5$
|
|
11971
|
+
_hoisted_5$e
|
|
12450
11972
|
]),
|
|
12451
11973
|
_: 1
|
|
12452
11974
|
}, 8, ["modelValue", "onChange"])
|
|
12453
11975
|
]),
|
|
12454
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
11976
|
+
vue.createElementVNode("div", _hoisted_6$d, vue.toDisplayString(_ctx.duration), 1)
|
|
12455
11977
|
])) : vue.createCommentVNode("", true),
|
|
12456
11978
|
_ctx.type == "icon" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$b, [
|
|
12457
11979
|
vue.createElementVNode("div", {
|
|
@@ -13154,8 +12676,8 @@
|
|
|
13154
12676
|
const _hoisted_2$x = ["id"];
|
|
13155
12677
|
const _hoisted_3$p = ["offset", "stop-color"];
|
|
13156
12678
|
const _hoisted_4$l = ["d", "stroke-width"];
|
|
13157
|
-
const _hoisted_5$
|
|
13158
|
-
const _hoisted_6$
|
|
12679
|
+
const _hoisted_5$d = ["d", "stroke", "stroke-linecap", "stroke-width"];
|
|
12680
|
+
const _hoisted_6$c = { class: "nut-circleprogress-text" };
|
|
13159
12681
|
const _hoisted_7$a = { key: 0 };
|
|
13160
12682
|
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13161
12683
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -13195,9 +12717,9 @@
|
|
|
13195
12717
|
stroke: _ctx.hoverColor,
|
|
13196
12718
|
"stroke-linecap": _ctx.strokeLinecap,
|
|
13197
12719
|
"stroke-width": _ctx.strokeWidth
|
|
13198
|
-
}, null, 12, _hoisted_5$
|
|
12720
|
+
}, null, 12, _hoisted_5$d)
|
|
13199
12721
|
])),
|
|
13200
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
12722
|
+
vue.createElementVNode("div", _hoisted_6$c, [
|
|
13201
12723
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
13202
12724
|
!_ctx.slotDefault ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$a, vue.toDisplayString(_ctx.progress) + "%", 1)) : vue.createCommentVNode("", true)
|
|
13203
12725
|
])
|
|
@@ -13747,7 +13269,8 @@
|
|
|
13747
13269
|
state.videoElm.load();
|
|
13748
13270
|
});
|
|
13749
13271
|
}
|
|
13750
|
-
}
|
|
13272
|
+
},
|
|
13273
|
+
{ immediate: true, deep: true }
|
|
13751
13274
|
);
|
|
13752
13275
|
vue.watch(
|
|
13753
13276
|
() => props.options,
|
|
@@ -13938,8 +13461,8 @@
|
|
|
13938
13461
|
const _hoisted_2$u = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
|
|
13939
13462
|
const _hoisted_3$n = ["src", "type"];
|
|
13940
13463
|
const _hoisted_4$k = { class: "current-time" };
|
|
13941
|
-
const _hoisted_5$
|
|
13942
|
-
const _hoisted_6$
|
|
13464
|
+
const _hoisted_5$c = { class: "progress-container" };
|
|
13465
|
+
const _hoisted_6$b = {
|
|
13943
13466
|
class: "progress",
|
|
13944
13467
|
ref: "progressBar"
|
|
13945
13468
|
};
|
|
@@ -13994,8 +13517,8 @@
|
|
|
13994
13517
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.play && _ctx.play(...args))
|
|
13995
13518
|
}),
|
|
13996
13519
|
vue.createElementVNode("div", _hoisted_4$k, vue.toDisplayString(_ctx.videoSet.displayTime), 1),
|
|
13997
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
13998
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
13520
|
+
vue.createElementVNode("div", _hoisted_5$c, [
|
|
13521
|
+
vue.createElementVNode("div", _hoisted_6$b, [
|
|
13999
13522
|
vue.createElementVNode("div", {
|
|
14000
13523
|
class: "buffered",
|
|
14001
13524
|
style: vue.normalizeStyle({ width: `${_ctx.videoSet.loaded}%` })
|
|
@@ -14156,8 +13679,8 @@
|
|
|
14156
13679
|
class: "nut-step-inner"
|
|
14157
13680
|
};
|
|
14158
13681
|
const _hoisted_4$j = { class: "nut-step-main" };
|
|
14159
|
-
const _hoisted_5$
|
|
14160
|
-
const _hoisted_6$
|
|
13682
|
+
const _hoisted_5$b = { class: "nut-step-title" };
|
|
13683
|
+
const _hoisted_6$a = { key: 0 };
|
|
14161
13684
|
const _hoisted_7$8 = {
|
|
14162
13685
|
key: 0,
|
|
14163
13686
|
class: "nut-step-content"
|
|
@@ -14185,8 +13708,8 @@
|
|
|
14185
13708
|
], 2)
|
|
14186
13709
|
]),
|
|
14187
13710
|
vue.createElementVNode("view", _hoisted_4$j, [
|
|
14188
|
-
vue.createElementVNode("view", _hoisted_5$
|
|
14189
|
-
!_ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$
|
|
13711
|
+
vue.createElementVNode("view", _hoisted_5$b, [
|
|
13712
|
+
!_ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$a, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
|
|
14190
13713
|
vue.renderSlot(_ctx.$slots, "title")
|
|
14191
13714
|
]),
|
|
14192
13715
|
_ctx.content || _ctx.$slots.content ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$8, [
|
|
@@ -14861,7 +14384,7 @@
|
|
|
14861
14384
|
[Video.name]: Video,
|
|
14862
14385
|
[Swiper.name]: Swiper,
|
|
14863
14386
|
[SwiperItem.name]: SwiperItem,
|
|
14864
|
-
[_sfc_main$
|
|
14387
|
+
[_sfc_main$1P.name]: _sfc_main$1P
|
|
14865
14388
|
},
|
|
14866
14389
|
setup(props, { emit }) {
|
|
14867
14390
|
const state = vue.reactive({
|
|
@@ -15178,7 +14701,7 @@
|
|
|
15178
14701
|
[Video.name]: Video,
|
|
15179
14702
|
[Swiper.name]: Swiper,
|
|
15180
14703
|
[SwiperItem.name]: SwiperItem,
|
|
15181
|
-
[_sfc_main$
|
|
14704
|
+
[_sfc_main$1P.name]: _sfc_main$1P,
|
|
15182
14705
|
ImagePreviewItem
|
|
15183
14706
|
},
|
|
15184
14707
|
setup(props, { emit }) {
|
|
@@ -15186,7 +14709,6 @@
|
|
|
15186
14709
|
const state = vue.reactive({
|
|
15187
14710
|
showPop: false,
|
|
15188
14711
|
active: 1,
|
|
15189
|
-
maxNo: 1,
|
|
15190
14712
|
rootWidth: 0,
|
|
15191
14713
|
rootHeight: 0
|
|
15192
14714
|
});
|
|
@@ -15221,7 +14743,6 @@
|
|
|
15221
14743
|
};
|
|
15222
14744
|
const closeDone = () => {
|
|
15223
14745
|
state.showPop = false;
|
|
15224
|
-
state.active = 1;
|
|
15225
14746
|
emit("close");
|
|
15226
14747
|
};
|
|
15227
14748
|
const handleCloseIcon = () => {
|
|
@@ -15240,14 +14761,27 @@
|
|
|
15240
14761
|
init();
|
|
15241
14762
|
}
|
|
15242
14763
|
);
|
|
14764
|
+
vue.watch(
|
|
14765
|
+
() => props.initNo,
|
|
14766
|
+
(val) => {
|
|
14767
|
+
if (val != state.active) {
|
|
14768
|
+
state.active = val;
|
|
14769
|
+
}
|
|
14770
|
+
}
|
|
14771
|
+
);
|
|
14772
|
+
const initPage = vue.computed(() => {
|
|
14773
|
+
const maxNo = props.images.length + props.videos.length;
|
|
14774
|
+
const _initPage = props.initNo > maxNo ? maxNo - 1 : props.initNo - 1;
|
|
14775
|
+
return _initPage >= 0 ? _initPage : 0;
|
|
14776
|
+
});
|
|
15243
14777
|
vue.onMounted(() => {
|
|
15244
14778
|
state.active = props.initNo;
|
|
15245
14779
|
state.showPop = props.show;
|
|
15246
|
-
state.maxNo = props.images.length + props.videos.length;
|
|
15247
14780
|
});
|
|
15248
14781
|
return {
|
|
15249
14782
|
swipeRef,
|
|
15250
14783
|
...vue.toRefs(state),
|
|
14784
|
+
initPage,
|
|
15251
14785
|
slideChangeEnd,
|
|
15252
14786
|
onClose,
|
|
15253
14787
|
handleCloseIcon,
|
|
@@ -15287,7 +14821,7 @@
|
|
|
15287
14821
|
"is-preventDefault": false,
|
|
15288
14822
|
direction: "horizontal",
|
|
15289
14823
|
onChange: _ctx.slideChangeEnd,
|
|
15290
|
-
"init-page": _ctx.
|
|
14824
|
+
"init-page": _ctx.initPage,
|
|
15291
14825
|
"pagination-visible": _ctx.paginationVisible,
|
|
15292
14826
|
"pagination-color": _ctx.paginationColor
|
|
15293
14827
|
}, {
|
|
@@ -17400,13 +16934,12 @@
|
|
|
17400
16934
|
[`${prefixCls}--${avatarShape.value}`]: avatarShape.value
|
|
17401
16935
|
};
|
|
17402
16936
|
});
|
|
17403
|
-
const
|
|
17404
|
-
const prefixCls = "blockClass";
|
|
16937
|
+
const getBlockClass = (prefixCls) => {
|
|
17405
16938
|
return {
|
|
17406
16939
|
[prefixCls]: true,
|
|
17407
16940
|
[`${prefixCls}--round`]: round2.value
|
|
17408
16941
|
};
|
|
17409
|
-
}
|
|
16942
|
+
};
|
|
17410
16943
|
const getStyle = () => {
|
|
17411
16944
|
if (avatarSize.value) {
|
|
17412
16945
|
return {
|
|
@@ -17424,7 +16957,7 @@
|
|
|
17424
16957
|
return {
|
|
17425
16958
|
avatarShape,
|
|
17426
16959
|
avatarClass,
|
|
17427
|
-
|
|
16960
|
+
getBlockClass,
|
|
17428
16961
|
getStyle
|
|
17429
16962
|
};
|
|
17430
16963
|
}
|
|
@@ -17441,11 +16974,6 @@
|
|
|
17441
16974
|
class: "skeleton-animation"
|
|
17442
16975
|
};
|
|
17443
16976
|
const _hoisted_4$i = { class: "content" };
|
|
17444
|
-
const _hoisted_5$b = { class: "content-line" };
|
|
17445
|
-
const _hoisted_6$a = {
|
|
17446
|
-
key: 0,
|
|
17447
|
-
class: "title"
|
|
17448
|
-
};
|
|
17449
16977
|
function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17450
16978
|
const _component_nut_avatar = vue.resolveComponent("nut-avatar");
|
|
17451
16979
|
return !_ctx.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$s, [
|
|
@@ -17457,24 +16985,25 @@
|
|
|
17457
16985
|
key: 0,
|
|
17458
16986
|
class: vue.normalizeClass(_ctx.avatarClass),
|
|
17459
16987
|
shape: _ctx.avatarShape,
|
|
17460
|
-
style: vue.normalizeStyle(_ctx.getStyle())
|
|
17461
|
-
"bg-color": "rgb(239, 239, 239)"
|
|
16988
|
+
style: vue.normalizeStyle(_ctx.getStyle())
|
|
17462
16989
|
}, null, 8, ["class", "shape", "style"])) : vue.createCommentVNode("", true),
|
|
17463
|
-
|
|
17464
|
-
|
|
17465
|
-
|
|
17466
|
-
|
|
17467
|
-
|
|
17468
|
-
|
|
17469
|
-
|
|
17470
|
-
|
|
16990
|
+
vue.createElementVNode("view", {
|
|
16991
|
+
class: "content-line",
|
|
16992
|
+
style: vue.normalizeStyle({ width: _ctx.width })
|
|
16993
|
+
}, [
|
|
16994
|
+
_ctx.title ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
16995
|
+
key: 0,
|
|
16996
|
+
class: vue.normalizeClass(_ctx.getBlockClass("blockTitle")),
|
|
16997
|
+
style: vue.normalizeStyle({ height: _ctx.height })
|
|
16998
|
+
}, null, 6)) : vue.createCommentVNode("", true),
|
|
16999
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(Number(_ctx.row), (_) => {
|
|
17471
17000
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
17472
|
-
key:
|
|
17473
|
-
class: vue.normalizeClass(_ctx.
|
|
17474
|
-
style: vue.normalizeStyle({
|
|
17001
|
+
key: _,
|
|
17002
|
+
class: vue.normalizeClass(_ctx.getBlockClass("blockLine")),
|
|
17003
|
+
style: vue.normalizeStyle({ height: _ctx.height })
|
|
17475
17004
|
}, null, 6);
|
|
17476
17005
|
}), 128))
|
|
17477
|
-
])
|
|
17006
|
+
], 4)
|
|
17478
17007
|
])
|
|
17479
17008
|
]));
|
|
17480
17009
|
}
|
|
@@ -17712,17 +17241,6 @@
|
|
|
17712
17241
|
proxyData.openExpanded = true;
|
|
17713
17242
|
}
|
|
17714
17243
|
});
|
|
17715
|
-
vue.watch(
|
|
17716
|
-
() => {
|
|
17717
|
-
var _a, _b;
|
|
17718
|
-
return (_b = (_a = ctx == null ? void 0 : ctx.slots) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a);
|
|
17719
|
-
},
|
|
17720
|
-
() => {
|
|
17721
|
-
setTimeout(() => {
|
|
17722
|
-
animation();
|
|
17723
|
-
}, 300);
|
|
17724
|
-
}
|
|
17725
|
-
);
|
|
17726
17244
|
const init = () => {
|
|
17727
17245
|
const { name } = props;
|
|
17728
17246
|
const active = parent && parent.props.active;
|
|
@@ -17740,6 +17258,14 @@
|
|
|
17740
17258
|
});
|
|
17741
17259
|
};
|
|
17742
17260
|
vue.onMounted(() => {
|
|
17261
|
+
const MutationObserver2 = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
|
|
17262
|
+
var observer = new MutationObserver2(() => {
|
|
17263
|
+
animation();
|
|
17264
|
+
});
|
|
17265
|
+
observer.observe(document.getElementsByClassName("collapse-wrapper")[0], {
|
|
17266
|
+
childList: true,
|
|
17267
|
+
subtree: true
|
|
17268
|
+
});
|
|
17743
17269
|
init();
|
|
17744
17270
|
});
|
|
17745
17271
|
const emptyContent = vue.computed(() => {
|
|
@@ -18274,13 +17800,13 @@
|
|
|
18274
17800
|
}, [
|
|
18275
17801
|
!_ctx.exceeded ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$n, vue.toDisplayString(_ctx.content), 1)) : vue.createCommentVNode("", true),
|
|
18276
17802
|
_ctx.exceeded && !_ctx.expanded ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$k, [
|
|
18277
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.ellipsis.leading)
|
|
17803
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.ellipsis.leading), 1),
|
|
18278
17804
|
_ctx.expandText ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
18279
17805
|
key: 0,
|
|
18280
17806
|
class: "nut-ellipsis-text",
|
|
18281
17807
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => _ctx.clickHandle(1), ["stop"]))
|
|
18282
17808
|
}, vue.toDisplayString(_ctx.expandText), 1)) : vue.createCommentVNode("", true),
|
|
18283
|
-
vue.createTextVNode(
|
|
17809
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.ellipsis.tailing), 1)
|
|
18284
17810
|
])) : vue.createCommentVNode("", true),
|
|
18285
17811
|
_ctx.exceeded && _ctx.expanded ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$i, [
|
|
18286
17812
|
vue.createTextVNode(vue.toDisplayString(_ctx.content) + " ", 1),
|
|
@@ -21835,7 +21361,7 @@
|
|
|
21835
21361
|
}
|
|
21836
21362
|
var Invoice = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
21837
21363
|
function install(app) {
|
|
21838
|
-
const packages = [Button, Cell, CellGroup, _sfc_main$
|
|
21364
|
+
const packages = [Button, Cell, CellGroup, _sfc_main$1P, OverLay, Popup, _sfc_main$1J, Image$1, _sfc_main$1H, Col, Row, _sfc_main$1E, Divider, _sfc_main$1C, GridItem, Navbar, FixedNav, Menu, MenuItem, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SideNavBarItem, SubSideNavBar, Range, SearchBar, Cascader, Calendar, _sfc_main$1g, _sfc_main$1f, DatePicker, InputNumber, Input, _sfc_main$19, _sfc_main$18, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, NumberKeyboard, Form, FormItem, Swipe, ActionSheet, BackTop, Drag, _Dialog, InfiniteLoading, NotifyFunction, PullRefresh, Switch, ToastFunction, Audio, AudioOperate, Avatar, AvatarGroup, List, Progress, CircleProgress, NoticeBar, Empty, Video, _sfc_main$I, Step, Swiper, SwiperItem, Price, _ImagePreview, CountUp, CountDown, Badge, Tag, Popover, Skeleton, Collapse, CollapseItem, Table, Animate, Ellipsis, WaterMark, TrendArrow, Address, Barrage, Signature, TimeSelect, TimePannel, TimeDetail, Sku, Card, Ecard, AddressList, Category, CategoryPane, Comment, Invoice];
|
|
21839
21365
|
packages.forEach((item) => {
|
|
21840
21366
|
if (item.install) {
|
|
21841
21367
|
app.use(item);
|
|
@@ -21844,7 +21370,7 @@
|
|
|
21844
21370
|
}
|
|
21845
21371
|
});
|
|
21846
21372
|
}
|
|
21847
|
-
const version = "3.2.
|
|
21373
|
+
const version = "3.2.7";
|
|
21848
21374
|
var nutui_vue_build = { install, version, Locale };
|
|
21849
21375
|
exports2.ActionSheet = ActionSheet;
|
|
21850
21376
|
exports2.Address = Address;
|
|
@@ -21866,14 +21392,14 @@
|
|
|
21866
21392
|
exports2.CategoryPane = CategoryPane;
|
|
21867
21393
|
exports2.Cell = Cell;
|
|
21868
21394
|
exports2.CellGroup = CellGroup;
|
|
21869
|
-
exports2.Checkbox = _sfc_main$
|
|
21870
|
-
exports2.CheckboxGroup = _sfc_main$
|
|
21395
|
+
exports2.Checkbox = _sfc_main$1g;
|
|
21396
|
+
exports2.CheckboxGroup = _sfc_main$1f;
|
|
21871
21397
|
exports2.CircleProgress = CircleProgress;
|
|
21872
21398
|
exports2.Col = Col;
|
|
21873
21399
|
exports2.Collapse = Collapse;
|
|
21874
21400
|
exports2.CollapseItem = CollapseItem;
|
|
21875
21401
|
exports2.Comment = Comment;
|
|
21876
|
-
exports2.ConfigProvider = _sfc_main$
|
|
21402
|
+
exports2.ConfigProvider = _sfc_main$1J;
|
|
21877
21403
|
exports2.CountDown = CountDown;
|
|
21878
21404
|
exports2.CountUp = CountUp;
|
|
21879
21405
|
exports2.DatePicker = DatePicker;
|
|
@@ -21887,9 +21413,9 @@
|
|
|
21887
21413
|
exports2.FixedNav = FixedNav;
|
|
21888
21414
|
exports2.Form = Form;
|
|
21889
21415
|
exports2.FormItem = FormItem;
|
|
21890
|
-
exports2.Grid = _sfc_main$
|
|
21416
|
+
exports2.Grid = _sfc_main$1C;
|
|
21891
21417
|
exports2.GridItem = GridItem;
|
|
21892
|
-
exports2.Icon = _sfc_main$
|
|
21418
|
+
exports2.Icon = _sfc_main$1P;
|
|
21893
21419
|
exports2.Image = Image$1;
|
|
21894
21420
|
exports2.ImagePreview = _ImagePreview;
|
|
21895
21421
|
exports2.Indicator = Indicator;
|
|
@@ -21897,7 +21423,7 @@
|
|
|
21897
21423
|
exports2.Input = Input;
|
|
21898
21424
|
exports2.InputNumber = InputNumber;
|
|
21899
21425
|
exports2.Invoice = Invoice;
|
|
21900
|
-
exports2.Layout = _sfc_main$
|
|
21426
|
+
exports2.Layout = _sfc_main$1H;
|
|
21901
21427
|
exports2.List = List;
|
|
21902
21428
|
exports2.Locale = Locale;
|
|
21903
21429
|
exports2.Menu = Menu;
|
|
@@ -21906,7 +21432,6 @@
|
|
|
21906
21432
|
exports2.NoticeBar = NoticeBar;
|
|
21907
21433
|
exports2.Notify = NotifyFunction;
|
|
21908
21434
|
exports2.NumberKeyboard = NumberKeyboard;
|
|
21909
|
-
exports2.OldPicker = OldPicker;
|
|
21910
21435
|
exports2.OverLay = OverLay;
|
|
21911
21436
|
exports2.Pagination = Pagination;
|
|
21912
21437
|
exports2.Picker = Picker;
|
|
@@ -21915,8 +21440,8 @@
|
|
|
21915
21440
|
exports2.Price = Price;
|
|
21916
21441
|
exports2.Progress = Progress;
|
|
21917
21442
|
exports2.PullRefresh = PullRefresh;
|
|
21918
|
-
exports2.Radio = _sfc_main$
|
|
21919
|
-
exports2.RadioGroup = _sfc_main$
|
|
21443
|
+
exports2.Radio = _sfc_main$19;
|
|
21444
|
+
exports2.RadioGroup = _sfc_main$18;
|
|
21920
21445
|
exports2.Range = Range;
|
|
21921
21446
|
exports2.Rate = Rate;
|
|
21922
21447
|
exports2.Row = Row;
|
|
@@ -21929,7 +21454,7 @@
|
|
|
21929
21454
|
exports2.Sku = Sku;
|
|
21930
21455
|
exports2.Step = Step;
|
|
21931
21456
|
exports2.Steps = _sfc_main$I;
|
|
21932
|
-
exports2.Sticky = _sfc_main$
|
|
21457
|
+
exports2.Sticky = _sfc_main$1E;
|
|
21933
21458
|
exports2.SubSideNavBar = SubSideNavBar;
|
|
21934
21459
|
exports2.Swipe = Swipe;
|
|
21935
21460
|
exports2.Swiper = Swiper;
|