@nutui/nutui 3.1.23-beta.0 → 3.1.23-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nutui.es.js +839 -584
- package/dist/nutui.umd.js +850 -594
- package/dist/packages/_es/ActionSheet.js +8 -3
- 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 +1 -1
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +7 -4
- package/dist/packages/_es/Cascader.js +1 -1
- package/dist/packages/_es/Category.js +1 -1
- package/dist/packages/_es/CategoryPane.js +24 -22
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +11 -2
- 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 +1 -1
- package/dist/packages/_es/Comment.js +4 -3
- 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 +9 -3
- 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 +1 -1
- package/dist/packages/_es/Ellipsis.js +1 -1
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +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 +1 -1
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +1 -1
- package/dist/packages/_es/InputNumber.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 +1 -1
- 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/OldPicker.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 +117 -79
- package/dist/packages/_es/Popover.js +1 -1
- package/dist/packages/_es/Popup.js +14 -18
- 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 +1 -1
- 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 +13 -2
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +11 -3
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +1 -1
- 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/Uploader.js +1 -1
- package/dist/packages/_es/Video.js +1 -1
- package/dist/packages/_es/WaterMark.js +187 -0
- 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 +2 -1
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/imagepreview/index.scss +0 -1
- 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/picker/index.scss +23 -0
- package/dist/packages/watermark/index.scss +13 -0
- package/dist/smartips/attributes.json +68 -0
- package/dist/smartips/tags.json +24 -3
- package/dist/smartips/web-types.json +161 -1
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +58 -57
- package/dist/styles/themes/jdb.scss +58 -57
- package/dist/styles/themes/jdt.scss +58 -57
- package/dist/styles/variables-jdb.scss +3 -1
- package/dist/styles/variables-jdt.scss +3 -1
- package/dist/styles/variables.scss +4 -1
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +7 -0
- package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/backtop/index.vue.d.ts +2 -2
- package/dist/types/__VUE/button/index.vue.d.ts +2 -2
- package/dist/types/__VUE/categorypane/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +4 -4
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/datepicker/index.vue.d.ts +7 -0
- package/dist/types/__VUE/grid/index.vue.d.ts +2 -2
- package/dist/types/__VUE/input/index.vue.d.ts +2 -2
- package/dist/types/__VUE/picker/Column.vue.d.ts +11 -3
- package/dist/types/__VUE/picker/index.vue.d.ts +18 -3
- package/dist/types/__VUE/popup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/range/index.vue.d.ts +1 -1
- package/dist/types/__VUE/rate/index.vue.d.ts +2 -2
- package/dist/types/__VUE/step/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swiper/index.vue.d.ts +7 -0
- package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/toast/index.vue.d.ts +2 -2
- package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
- package/dist/types/__VUE/watermark/index.vue.d.ts +143 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +2 -1
- package/package.json +8 -2
package/dist/nutui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.23-beta.
|
|
2
|
+
* @nutui/nutui v3.1.23-beta.3 Fri Jul 08 2022 17:15:15 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -350,8 +350,8 @@ function createComponent(name) {
|
|
|
350
350
|
const pxCheck = (value) => {
|
|
351
351
|
return isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
352
352
|
};
|
|
353
|
-
const { componentName: componentName$
|
|
354
|
-
const _sfc_main$
|
|
353
|
+
const { componentName: componentName$1t, create: create$1P } = createComponent("icon");
|
|
354
|
+
const _sfc_main$1P = create$1P({
|
|
355
355
|
props: {
|
|
356
356
|
name: { type: String, default: "" },
|
|
357
357
|
size: { type: [String, Number], default: "" },
|
|
@@ -372,7 +372,7 @@ const _sfc_main$1O = create$1O({
|
|
|
372
372
|
var _a;
|
|
373
373
|
const _isImage = isImage();
|
|
374
374
|
return h(_isImage ? "img" : props.tag, {
|
|
375
|
-
class: _isImage ? `${componentName$
|
|
375
|
+
class: _isImage ? `${componentName$1t}__img` : `${props.fontClassName} ${componentName$1t} ${props.classPrefix}-${props.name}`,
|
|
376
376
|
style: {
|
|
377
377
|
color: props.color,
|
|
378
378
|
fontSize: pxCheck(props.size),
|
|
@@ -392,10 +392,10 @@ var _export_sfc = (sfc, props) => {
|
|
|
392
392
|
}
|
|
393
393
|
return target;
|
|
394
394
|
};
|
|
395
|
-
const { componentName: componentName$
|
|
396
|
-
const _sfc_main$
|
|
395
|
+
const { componentName: componentName$1s, create: create$1O } = createComponent("button");
|
|
396
|
+
const _sfc_main$1O = create$1O({
|
|
397
397
|
components: {
|
|
398
|
-
[_sfc_main$
|
|
398
|
+
[_sfc_main$1P.name]: _sfc_main$1P
|
|
399
399
|
},
|
|
400
400
|
props: {
|
|
401
401
|
color: String,
|
|
@@ -449,7 +449,7 @@ const _sfc_main$1N = create$1N({
|
|
|
449
449
|
}
|
|
450
450
|
};
|
|
451
451
|
const classes = computed(() => {
|
|
452
|
-
const prefixCls = componentName$
|
|
452
|
+
const prefixCls = componentName$1s;
|
|
453
453
|
return {
|
|
454
454
|
[prefixCls]: true,
|
|
455
455
|
[`${prefixCls}--${type.value}`]: type.value,
|
|
@@ -486,7 +486,7 @@ const _sfc_main$1N = create$1N({
|
|
|
486
486
|
}
|
|
487
487
|
});
|
|
488
488
|
const _hoisted_1$1l = { class: "nut-button__warp" };
|
|
489
|
-
function _sfc_render$
|
|
489
|
+
function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
490
490
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
491
491
|
return openBlock(), createElementBlock("view", {
|
|
492
492
|
class: normalizeClass(_ctx.classes),
|
|
@@ -513,7 +513,7 @@ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
513
513
|
])
|
|
514
514
|
], 6);
|
|
515
515
|
}
|
|
516
|
-
var Button = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
516
|
+
var Button = /* @__PURE__ */ _export_sfc(_sfc_main$1O, [["render", _sfc_render$1C]]);
|
|
517
517
|
function useRouter() {
|
|
518
518
|
const proxy = getCurrentInstance().proxy;
|
|
519
519
|
return proxy.$router || null;
|
|
@@ -526,7 +526,7 @@ const _hoisted_2$14 = {
|
|
|
526
526
|
key: 1,
|
|
527
527
|
class: "nut-cell__title"
|
|
528
528
|
};
|
|
529
|
-
const _hoisted_3$
|
|
529
|
+
const _hoisted_3$Q = { class: "title" };
|
|
530
530
|
const _hoisted_4$E = { class: "nut-cell__title-desc" };
|
|
531
531
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
532
532
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
@@ -548,7 +548,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
548
548
|
_ctx.title || _ctx.subTitle || _ctx.$slots.title ? (openBlock(), createElementBlock("view", _hoisted_2$14, [
|
|
549
549
|
_ctx.subTitle ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
550
550
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
551
|
-
createElementVNode("view", _hoisted_3$
|
|
551
|
+
createElementVNode("view", _hoisted_3$Q, toDisplayString(_ctx.title), 1)
|
|
552
552
|
]),
|
|
553
553
|
createElementVNode("view", _hoisted_4$E, toDisplayString(_ctx.subTitle), 1)
|
|
554
554
|
], 64)) : renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
|
|
@@ -570,8 +570,8 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
570
570
|
])
|
|
571
571
|
], 6);
|
|
572
572
|
}
|
|
573
|
-
const { componentName: componentName$
|
|
574
|
-
const _sfc_main$
|
|
573
|
+
const { componentName: componentName$1r, create: create$1N } = createComponent("cell");
|
|
574
|
+
const _sfc_main$1N = create$1N({
|
|
575
575
|
props: {
|
|
576
576
|
title: { type: String, default: "" },
|
|
577
577
|
subTitle: { type: String, default: "" },
|
|
@@ -589,7 +589,7 @@ const _sfc_main$1M = create$1M({
|
|
|
589
589
|
emits: ["click"],
|
|
590
590
|
setup(props, { emit }) {
|
|
591
591
|
const classes = computed(() => {
|
|
592
|
-
const prefixCls = componentName$
|
|
592
|
+
const prefixCls = componentName$1r;
|
|
593
593
|
return {
|
|
594
594
|
[prefixCls]: true,
|
|
595
595
|
[`${prefixCls}--clickable`]: props.isLink || props.to,
|
|
@@ -618,16 +618,16 @@ const _sfc_main$1M = create$1M({
|
|
|
618
618
|
};
|
|
619
619
|
}
|
|
620
620
|
});
|
|
621
|
-
var Cell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
622
|
-
const { componentName: componentName$
|
|
623
|
-
const _sfc_main$
|
|
621
|
+
var Cell = /* @__PURE__ */ _export_sfc(_sfc_main$1N, [["render", render$2]]);
|
|
622
|
+
const { componentName: componentName$1q, create: create$1M } = createComponent("cell-group");
|
|
623
|
+
const _sfc_main$1M = create$1M({
|
|
624
624
|
props: {
|
|
625
625
|
title: { type: String, default: "" },
|
|
626
626
|
desc: { type: String, default: "" }
|
|
627
627
|
},
|
|
628
628
|
setup() {
|
|
629
629
|
const classes = computed(() => {
|
|
630
|
-
const prefixCls = componentName$
|
|
630
|
+
const prefixCls = componentName$1q;
|
|
631
631
|
return {
|
|
632
632
|
[prefixCls]: true
|
|
633
633
|
};
|
|
@@ -645,20 +645,20 @@ const _hoisted_2$13 = {
|
|
|
645
645
|
key: 3,
|
|
646
646
|
class: "nut-cell-group__desc"
|
|
647
647
|
};
|
|
648
|
-
const _hoisted_3$
|
|
649
|
-
function _sfc_render$
|
|
648
|
+
const _hoisted_3$P = { class: "nut-cell-group__warp" };
|
|
649
|
+
function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
650
650
|
return openBlock(), createElementBlock("view", {
|
|
651
651
|
class: normalizeClass(_ctx.classes)
|
|
652
652
|
}, [
|
|
653
653
|
_ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$1j, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
654
654
|
_ctx.$slots.desc ? renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_2$13, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
655
|
-
createElementVNode("view", _hoisted_3$
|
|
655
|
+
createElementVNode("view", _hoisted_3$P, [
|
|
656
656
|
renderSlot(_ctx.$slots, "default")
|
|
657
657
|
])
|
|
658
658
|
], 2);
|
|
659
659
|
}
|
|
660
|
-
var CellGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
661
|
-
const { componentName: componentName$
|
|
660
|
+
var CellGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1M, [["render", _sfc_render$1B]]);
|
|
661
|
+
const { componentName: componentName$1p, create: create$1L } = createComponent("overlay");
|
|
662
662
|
const overlayProps = {
|
|
663
663
|
visible: {
|
|
664
664
|
type: Boolean,
|
|
@@ -688,12 +688,12 @@ const overlayProps = {
|
|
|
688
688
|
default: true
|
|
689
689
|
}
|
|
690
690
|
};
|
|
691
|
-
const _sfc_main$
|
|
691
|
+
const _sfc_main$1L = create$1L({
|
|
692
692
|
props: overlayProps,
|
|
693
693
|
emits: ["click", "update:visible"],
|
|
694
694
|
setup(props, { emit }) {
|
|
695
695
|
const classes = computed(() => {
|
|
696
|
-
const prefixCls = componentName$
|
|
696
|
+
const prefixCls = componentName$1p;
|
|
697
697
|
return {
|
|
698
698
|
[prefixCls]: true,
|
|
699
699
|
[props.overlayClass]: true
|
|
@@ -734,7 +734,7 @@ const _sfc_main$1K = create$1K({
|
|
|
734
734
|
return { classes, style, touchmove, onClick };
|
|
735
735
|
}
|
|
736
736
|
});
|
|
737
|
-
function _sfc_render$
|
|
737
|
+
function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
738
738
|
return openBlock(), createBlock(Transition, { name: "overlay-fade" }, {
|
|
739
739
|
default: withCtx(() => [
|
|
740
740
|
withDirectives(createElementVNode("view", {
|
|
@@ -751,7 +751,7 @@ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
751
751
|
_: 3
|
|
752
752
|
});
|
|
753
753
|
}
|
|
754
|
-
var OverLay = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
754
|
+
var OverLay = /* @__PURE__ */ _export_sfc(_sfc_main$1L, [["render", _sfc_render$1A]]);
|
|
755
755
|
let count = 0;
|
|
756
756
|
const CLSNAME = "nut-overflow-hidden";
|
|
757
757
|
const useLockScroll = (isLock) => {
|
|
@@ -769,7 +769,7 @@ const useLockScroll = (isLock) => {
|
|
|
769
769
|
};
|
|
770
770
|
return [lock, unlock];
|
|
771
771
|
};
|
|
772
|
-
const { componentName: componentName$
|
|
772
|
+
const { componentName: componentName$1o, create: create$1K } = createComponent("popup");
|
|
773
773
|
let _zIndex = 2e3;
|
|
774
774
|
const popupProps = {
|
|
775
775
|
...overlayProps,
|
|
@@ -822,10 +822,10 @@ const popupProps = {
|
|
|
822
822
|
default: false
|
|
823
823
|
}
|
|
824
824
|
};
|
|
825
|
-
const _sfc_main$
|
|
825
|
+
const _sfc_main$1K = create$1K({
|
|
826
826
|
components: {
|
|
827
827
|
[OverLay.name]: OverLay,
|
|
828
|
-
[_sfc_main$
|
|
828
|
+
[_sfc_main$1P.name]: _sfc_main$1P
|
|
829
829
|
},
|
|
830
830
|
props: {
|
|
831
831
|
...popupProps
|
|
@@ -834,7 +834,7 @@ const _sfc_main$1J = create$1J({
|
|
|
834
834
|
setup(props, { emit }) {
|
|
835
835
|
const popupRef = ref();
|
|
836
836
|
const state = reactive({
|
|
837
|
-
zIndex: props.zIndex
|
|
837
|
+
zIndex: props.zIndex,
|
|
838
838
|
showSlot: true,
|
|
839
839
|
transitionName: `popup-fade-${props.position}`,
|
|
840
840
|
overLayCount: 1,
|
|
@@ -843,7 +843,7 @@ const _sfc_main$1J = create$1J({
|
|
|
843
843
|
});
|
|
844
844
|
const [lockScroll, unlockScroll] = useLockScroll(() => props.lockScroll);
|
|
845
845
|
const classes = computed(() => {
|
|
846
|
-
const prefixCls = componentName$
|
|
846
|
+
const prefixCls = componentName$1o;
|
|
847
847
|
return {
|
|
848
848
|
[prefixCls]: true,
|
|
849
849
|
["round"]: props.round,
|
|
@@ -860,29 +860,25 @@ const _sfc_main$1J = create$1J({
|
|
|
860
860
|
};
|
|
861
861
|
});
|
|
862
862
|
const open = () => {
|
|
863
|
-
if (
|
|
864
|
-
|
|
865
|
-
_zIndex = Number(props.zIndex);
|
|
866
|
-
}
|
|
867
|
-
emit("update:visible", true);
|
|
868
|
-
lockScroll();
|
|
869
|
-
state.zIndex = ++_zIndex;
|
|
863
|
+
if (props.zIndex != 2e3) {
|
|
864
|
+
_zIndex = Number(props.zIndex);
|
|
870
865
|
}
|
|
866
|
+
emit("update:visible", true);
|
|
867
|
+
lockScroll();
|
|
868
|
+
state.zIndex = ++_zIndex;
|
|
871
869
|
if (props.destroyOnClose) {
|
|
872
870
|
state.showSlot = true;
|
|
873
871
|
}
|
|
874
872
|
emit("open");
|
|
875
873
|
};
|
|
876
874
|
const close = () => {
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
}, +props.duration * 1e3);
|
|
885
|
-
}
|
|
875
|
+
unlockScroll();
|
|
876
|
+
emit("update:visible", false);
|
|
877
|
+
if (props.destroyOnClose) {
|
|
878
|
+
setTimeout(() => {
|
|
879
|
+
state.showSlot = false;
|
|
880
|
+
emit("close");
|
|
881
|
+
}, +props.duration * 1e3);
|
|
886
882
|
}
|
|
887
883
|
};
|
|
888
884
|
const onClick = (e) => {
|
|
@@ -955,7 +951,7 @@ const _sfc_main$1J = create$1J({
|
|
|
955
951
|
}
|
|
956
952
|
});
|
|
957
953
|
const _hoisted_1$1i = { key: 1 };
|
|
958
|
-
function _sfc_render$
|
|
954
|
+
function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
959
955
|
const _component_nut_overlay = resolveComponent("nut-overlay");
|
|
960
956
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
961
957
|
return _ctx.isWrapTeleport ? (openBlock(), createBlock(Teleport, {
|
|
@@ -1044,7 +1040,7 @@ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1044
1040
|
}, 8, ["name", "onAfterEnter", "onAfterLeave"])
|
|
1045
1041
|
]));
|
|
1046
1042
|
}
|
|
1047
|
-
var Popup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1043
|
+
var Popup = /* @__PURE__ */ _export_sfc(_sfc_main$1K, [["render", _sfc_render$1z]]);
|
|
1048
1044
|
const component$7 = {
|
|
1049
1045
|
props: {
|
|
1050
1046
|
theme: { type: String, default: "" },
|
|
@@ -1059,10 +1055,10 @@ const component$7 = {
|
|
|
1059
1055
|
};
|
|
1060
1056
|
}
|
|
1061
1057
|
};
|
|
1062
|
-
const { componentName: componentName$
|
|
1063
|
-
const _sfc_main$
|
|
1064
|
-
const { componentName: componentName$
|
|
1065
|
-
const _sfc_main$
|
|
1058
|
+
const { componentName: componentName$1n, create: create$1J } = createComponent("config-provider");
|
|
1059
|
+
const _sfc_main$1J = create$1J(component$7);
|
|
1060
|
+
const { componentName: componentName$1m, create: create$1I } = createComponent("image");
|
|
1061
|
+
const _sfc_main$1I = create$1I({
|
|
1066
1062
|
props: {
|
|
1067
1063
|
src: String,
|
|
1068
1064
|
fit: {
|
|
@@ -1108,7 +1104,7 @@ const _sfc_main$1H = create$1H({
|
|
|
1108
1104
|
slotError: useSlots().error
|
|
1109
1105
|
});
|
|
1110
1106
|
const classes = computed(() => {
|
|
1111
|
-
const prefixCls = componentName$
|
|
1107
|
+
const prefixCls = componentName$1m;
|
|
1112
1108
|
return {
|
|
1113
1109
|
[prefixCls]: true,
|
|
1114
1110
|
[`${prefixCls}-round`]: props.round
|
|
@@ -1156,11 +1152,11 @@ const _hoisted_2$12 = {
|
|
|
1156
1152
|
key: 0,
|
|
1157
1153
|
class: "nut-img-loading"
|
|
1158
1154
|
};
|
|
1159
|
-
const _hoisted_3$
|
|
1155
|
+
const _hoisted_3$O = {
|
|
1160
1156
|
key: 1,
|
|
1161
1157
|
class: "nut-img-error"
|
|
1162
1158
|
};
|
|
1163
|
-
function _sfc_render$
|
|
1159
|
+
function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1164
1160
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
1165
1161
|
return openBlock(), createElementBlock("view", {
|
|
1166
1162
|
class: normalizeClass(_ctx.classes),
|
|
@@ -1182,7 +1178,7 @@ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1182
1178
|
})) : createCommentVNode("", true),
|
|
1183
1179
|
renderSlot(_ctx.$slots, "loading")
|
|
1184
1180
|
])) : createCommentVNode("", true),
|
|
1185
|
-
_ctx.isError && !_ctx.loading ? (openBlock(), createElementBlock("view", _hoisted_3$
|
|
1181
|
+
_ctx.isError && !_ctx.loading ? (openBlock(), createElementBlock("view", _hoisted_3$O, [
|
|
1186
1182
|
!_ctx.slotError ? (openBlock(), createBlock(_component_nut_icon, {
|
|
1187
1183
|
key: 0,
|
|
1188
1184
|
name: "image-error"
|
|
@@ -1191,11 +1187,11 @@ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1191
1187
|
])) : createCommentVNode("", true)
|
|
1192
1188
|
], 6);
|
|
1193
1189
|
}
|
|
1194
|
-
var Image = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1195
|
-
const { create: create$
|
|
1196
|
-
const _sfc_main$
|
|
1197
|
-
const { componentName: componentName$
|
|
1198
|
-
const _sfc_main$
|
|
1190
|
+
var Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["render", _sfc_render$1y]]);
|
|
1191
|
+
const { create: create$1H } = createComponent("layout");
|
|
1192
|
+
const _sfc_main$1H = create$1H({});
|
|
1193
|
+
const { componentName: componentName$1l, create: create$1G } = createComponent("col");
|
|
1194
|
+
const _sfc_main$1G = create$1G({
|
|
1199
1195
|
props: {
|
|
1200
1196
|
span: {
|
|
1201
1197
|
type: [String, Number],
|
|
@@ -1208,7 +1204,7 @@ const _sfc_main$1F = create$1F({
|
|
|
1208
1204
|
},
|
|
1209
1205
|
emits: ["click"],
|
|
1210
1206
|
setup(props, { emit }) {
|
|
1211
|
-
const prefixCls = componentName$
|
|
1207
|
+
const prefixCls = componentName$1l;
|
|
1212
1208
|
const gutter = inject("gutter");
|
|
1213
1209
|
const classes = computed(() => {
|
|
1214
1210
|
return {
|
|
@@ -1235,7 +1231,7 @@ const _sfc_main$1F = create$1F({
|
|
|
1235
1231
|
};
|
|
1236
1232
|
}
|
|
1237
1233
|
});
|
|
1238
|
-
function _sfc_render$
|
|
1234
|
+
function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1239
1235
|
return openBlock(), createElementBlock("view", {
|
|
1240
1236
|
class: normalizeClass(_ctx.classes),
|
|
1241
1237
|
style: normalizeStyle(_ctx.style),
|
|
@@ -1244,9 +1240,9 @@ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1244
1240
|
renderSlot(_ctx.$slots, "default")
|
|
1245
1241
|
], 6);
|
|
1246
1242
|
}
|
|
1247
|
-
var Col = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1248
|
-
const { componentName: componentName$
|
|
1249
|
-
const _sfc_main$
|
|
1243
|
+
var Col = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["render", _sfc_render$1x]]);
|
|
1244
|
+
const { componentName: componentName$1k, create: create$1F } = createComponent("row");
|
|
1245
|
+
const _sfc_main$1F = create$1F({
|
|
1250
1246
|
props: {
|
|
1251
1247
|
type: {
|
|
1252
1248
|
type: String,
|
|
@@ -1271,7 +1267,7 @@ const _sfc_main$1E = create$1E({
|
|
|
1271
1267
|
},
|
|
1272
1268
|
emits: ["click"],
|
|
1273
1269
|
setup(props, { emit }) {
|
|
1274
|
-
const prefixCls = componentName$
|
|
1270
|
+
const prefixCls = componentName$1k;
|
|
1275
1271
|
provide("gutter", props.gutter);
|
|
1276
1272
|
const getClass = (prefix, type) => {
|
|
1277
1273
|
return prefix ? type ? `nut-row-${prefix}-${type}` : "" : `nut-row-${type}`;
|
|
@@ -1295,7 +1291,7 @@ const _sfc_main$1E = create$1E({
|
|
|
1295
1291
|
};
|
|
1296
1292
|
}
|
|
1297
1293
|
});
|
|
1298
|
-
function _sfc_render$
|
|
1294
|
+
function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1299
1295
|
return openBlock(), createElementBlock("view", {
|
|
1300
1296
|
class: normalizeClass(_ctx.getClasses()),
|
|
1301
1297
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
@@ -1303,7 +1299,7 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1303
1299
|
renderSlot(_ctx.$slots, "default")
|
|
1304
1300
|
], 2);
|
|
1305
1301
|
}
|
|
1306
|
-
var Row = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1302
|
+
var Row = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$1w]]);
|
|
1307
1303
|
function isWindow(val) {
|
|
1308
1304
|
return val === window;
|
|
1309
1305
|
}
|
|
@@ -1333,8 +1329,8 @@ const useRect = (elementRef) => {
|
|
|
1333
1329
|
height: 0
|
|
1334
1330
|
};
|
|
1335
1331
|
};
|
|
1336
|
-
const { componentName: componentName$
|
|
1337
|
-
const _sfc_main$
|
|
1332
|
+
const { componentName: componentName$1j, create: create$1E } = createComponent("sticky");
|
|
1333
|
+
const _sfc_main$1E = create$1E({
|
|
1338
1334
|
props: {
|
|
1339
1335
|
position: {
|
|
1340
1336
|
type: String,
|
|
@@ -1411,7 +1407,7 @@ const _sfc_main$1D = create$1D({
|
|
|
1411
1407
|
var _a;
|
|
1412
1408
|
return h("view", {
|
|
1413
1409
|
style: stickyStyle.value,
|
|
1414
|
-
class: state.fixed ? `${componentName$
|
|
1410
|
+
class: state.fixed ? `${componentName$1j} nut-sticky--fixed` : componentName$1j
|
|
1415
1411
|
}, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
1416
1412
|
};
|
|
1417
1413
|
const onScroll = () => {
|
|
@@ -1467,8 +1463,8 @@ const _sfc_main$1D = create$1D({
|
|
|
1467
1463
|
};
|
|
1468
1464
|
}
|
|
1469
1465
|
});
|
|
1470
|
-
const { componentName: componentName$
|
|
1471
|
-
const _sfc_main$
|
|
1466
|
+
const { componentName: componentName$1i, create: create$1D } = createComponent("divider");
|
|
1467
|
+
const _sfc_main$1D = create$1D({
|
|
1472
1468
|
props: {
|
|
1473
1469
|
contentPosition: {
|
|
1474
1470
|
type: String,
|
|
@@ -1490,7 +1486,7 @@ const _sfc_main$1C = create$1C({
|
|
|
1490
1486
|
components: {},
|
|
1491
1487
|
setup(props, context) {
|
|
1492
1488
|
const classes = computed(() => {
|
|
1493
|
-
const prefixCls = componentName$
|
|
1489
|
+
const prefixCls = componentName$1i;
|
|
1494
1490
|
let defaultClassesObj = {
|
|
1495
1491
|
[prefixCls]: true
|
|
1496
1492
|
};
|
|
@@ -1515,7 +1511,7 @@ const _sfc_main$1C = create$1C({
|
|
|
1515
1511
|
return { classes };
|
|
1516
1512
|
}
|
|
1517
1513
|
});
|
|
1518
|
-
function _sfc_render$
|
|
1514
|
+
function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1519
1515
|
return _ctx.direction === "horizontal" ? (openBlock(), createElementBlock("view", {
|
|
1520
1516
|
key: 0,
|
|
1521
1517
|
class: normalizeClass(_ctx.classes)
|
|
@@ -1526,7 +1522,7 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1526
1522
|
class: normalizeClass(_ctx.classes)
|
|
1527
1523
|
}, null, 2));
|
|
1528
1524
|
}
|
|
1529
|
-
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1525
|
+
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$1v]]);
|
|
1530
1526
|
function flattenVNodes(children, childName) {
|
|
1531
1527
|
const result = [];
|
|
1532
1528
|
const traverse = (children2) => {
|
|
@@ -1585,7 +1581,7 @@ function useProvide(key, childName) {
|
|
|
1585
1581
|
};
|
|
1586
1582
|
};
|
|
1587
1583
|
}
|
|
1588
|
-
const { componentName: componentName$
|
|
1584
|
+
const { componentName: componentName$1h } = createComponent("grid");
|
|
1589
1585
|
const GRID_KEY = Symbol("grid");
|
|
1590
1586
|
const gridProps = {
|
|
1591
1587
|
columnNum: {
|
|
@@ -1630,9 +1626,9 @@ const gridProps = {
|
|
|
1630
1626
|
const component$6 = {
|
|
1631
1627
|
props: gridProps,
|
|
1632
1628
|
setup(props, { slots }) {
|
|
1633
|
-
useProvide(GRID_KEY, `${componentName$
|
|
1629
|
+
useProvide(GRID_KEY, `${componentName$1h}-item`)({ props });
|
|
1634
1630
|
const rootClass = computed(() => {
|
|
1635
|
-
const prefixCls = componentName$
|
|
1631
|
+
const prefixCls = componentName$1h;
|
|
1636
1632
|
return {
|
|
1637
1633
|
[prefixCls]: true,
|
|
1638
1634
|
[`${prefixCls}--border`]: props.border && !props.gutter
|
|
@@ -1654,8 +1650,8 @@ const component$6 = {
|
|
|
1654
1650
|
};
|
|
1655
1651
|
}
|
|
1656
1652
|
};
|
|
1657
|
-
const { create: create$
|
|
1658
|
-
const _sfc_main$
|
|
1653
|
+
const { create: create$1C } = createComponent("grid");
|
|
1654
|
+
const _sfc_main$1C = create$1C(component$6);
|
|
1659
1655
|
function useInject(key) {
|
|
1660
1656
|
const parent = inject(key, null);
|
|
1661
1657
|
if (parent) {
|
|
@@ -1674,8 +1670,8 @@ function useInject(key) {
|
|
|
1674
1670
|
index: ref(-1)
|
|
1675
1671
|
};
|
|
1676
1672
|
}
|
|
1677
|
-
const { create: create$
|
|
1678
|
-
const _sfc_main$
|
|
1673
|
+
const { create: create$1B, componentName: componentName$1g } = createComponent("grid-item");
|
|
1674
|
+
const _sfc_main$1B = create$1B({
|
|
1679
1675
|
props: {
|
|
1680
1676
|
text: {
|
|
1681
1677
|
type: String
|
|
@@ -1709,7 +1705,7 @@ const _sfc_main$1A = create$1A({
|
|
|
1709
1705
|
const index = Parent.index;
|
|
1710
1706
|
const parent = Parent.parent.props;
|
|
1711
1707
|
const rootClass = computed(() => {
|
|
1712
|
-
const prefixCls = componentName$
|
|
1708
|
+
const prefixCls = componentName$1g;
|
|
1713
1709
|
return {
|
|
1714
1710
|
[prefixCls]: true
|
|
1715
1711
|
};
|
|
@@ -1729,7 +1725,7 @@ const _sfc_main$1A = create$1A({
|
|
|
1729
1725
|
return style;
|
|
1730
1726
|
});
|
|
1731
1727
|
const contentClass = computed(() => {
|
|
1732
|
-
const prefixCls = `${componentName$
|
|
1728
|
+
const prefixCls = `${componentName$1g}__content`;
|
|
1733
1729
|
return {
|
|
1734
1730
|
[`${prefixCls}`]: true,
|
|
1735
1731
|
[`${prefixCls}--border`]: parent.border,
|
|
@@ -1770,7 +1766,7 @@ const _hoisted_1$1g = {
|
|
|
1770
1766
|
key: 3,
|
|
1771
1767
|
class: "nut-grid-item__text"
|
|
1772
1768
|
};
|
|
1773
|
-
function _sfc_render$
|
|
1769
|
+
function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1774
1770
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
1775
1771
|
return openBlock(), createElementBlock("view", {
|
|
1776
1772
|
class: normalizeClass(_ctx.rootClass),
|
|
@@ -1792,9 +1788,9 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1792
1788
|
], 2)
|
|
1793
1789
|
], 6);
|
|
1794
1790
|
}
|
|
1795
|
-
var GridItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1796
|
-
const { componentName: componentName$
|
|
1797
|
-
const _sfc_main$
|
|
1791
|
+
var GridItem = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$1u]]);
|
|
1792
|
+
const { componentName: componentName$1f, create: create$1A } = createComponent("navbar");
|
|
1793
|
+
const _sfc_main$1A = create$1A({
|
|
1798
1794
|
props: {
|
|
1799
1795
|
leftShow: { type: Boolean, default: true },
|
|
1800
1796
|
title: { type: String, default: "" },
|
|
@@ -1829,7 +1825,7 @@ const _sfc_main$1z = create$1z({
|
|
|
1829
1825
|
const navBarHtml = ref(null);
|
|
1830
1826
|
let navHeight = ref(0);
|
|
1831
1827
|
const classes = computed(() => {
|
|
1832
|
-
const prefixCls = componentName$
|
|
1828
|
+
const prefixCls = componentName$1f;
|
|
1833
1829
|
return {
|
|
1834
1830
|
[prefixCls]: true,
|
|
1835
1831
|
[`${prefixCls}--border`]: border.value,
|
|
@@ -1884,7 +1880,7 @@ const _hoisted_2$11 = {
|
|
|
1884
1880
|
key: 1,
|
|
1885
1881
|
class: "nut-navbar__text"
|
|
1886
1882
|
};
|
|
1887
|
-
const _hoisted_3$
|
|
1883
|
+
const _hoisted_3$N = { class: "nut-navbar__title" };
|
|
1888
1884
|
const _hoisted_4$D = {
|
|
1889
1885
|
key: 0,
|
|
1890
1886
|
class: "nut-navbar__text"
|
|
@@ -1898,7 +1894,7 @@ const _hoisted_7$k = {
|
|
|
1898
1894
|
key: 0,
|
|
1899
1895
|
class: "nut-navbar__text"
|
|
1900
1896
|
};
|
|
1901
|
-
function _sfc_render$
|
|
1897
|
+
function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1902
1898
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
1903
1899
|
return _ctx.fixed && _ctx.placeholder ? (openBlock(), createElementBlock("view", _hoisted_1$1f, [
|
|
1904
1900
|
createElementVNode("view", {
|
|
@@ -1918,7 +1914,7 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1918
1914
|
_ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_2$11, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
|
|
1919
1915
|
renderSlot(_ctx.$slots, "left")
|
|
1920
1916
|
]),
|
|
1921
|
-
createElementVNode("view", _hoisted_3$
|
|
1917
|
+
createElementVNode("view", _hoisted_3$N, [
|
|
1922
1918
|
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
1923
1919
|
key: 0,
|
|
1924
1920
|
class: "title",
|
|
@@ -1980,9 +1976,9 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1980
1976
|
])
|
|
1981
1977
|
], 6));
|
|
1982
1978
|
}
|
|
1983
|
-
var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1984
|
-
const { componentName: componentName$
|
|
1985
|
-
const _sfc_main$
|
|
1979
|
+
var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["render", _sfc_render$1t]]);
|
|
1980
|
+
const { componentName: componentName$1e, create: create$1z, translate: translate$t } = createComponent("fixednav");
|
|
1981
|
+
const _sfc_main$1z = create$1z({
|
|
1986
1982
|
components: {
|
|
1987
1983
|
[OverLay.name]: OverLay
|
|
1988
1984
|
},
|
|
@@ -2024,7 +2020,7 @@ const _sfc_main$1y = create$1y({
|
|
|
2024
2020
|
emits: ["update:visible", "selected"],
|
|
2025
2021
|
setup(props, { emit }) {
|
|
2026
2022
|
const classes = computed(() => {
|
|
2027
|
-
const prefixCls = componentName$
|
|
2023
|
+
const prefixCls = componentName$1e;
|
|
2028
2024
|
return {
|
|
2029
2025
|
[prefixCls]: true,
|
|
2030
2026
|
active: props.visible,
|
|
@@ -2045,14 +2041,14 @@ const _sfc_main$1y = create$1y({
|
|
|
2045
2041
|
});
|
|
2046
2042
|
const _hoisted_1$1e = { class: "nut-fixednav__list" };
|
|
2047
2043
|
const _hoisted_2$10 = ["onClick"];
|
|
2048
|
-
const _hoisted_3$
|
|
2044
|
+
const _hoisted_3$M = ["src"];
|
|
2049
2045
|
const _hoisted_4$C = { class: "span" };
|
|
2050
2046
|
const _hoisted_5$s = {
|
|
2051
2047
|
key: 0,
|
|
2052
2048
|
class: "b"
|
|
2053
2049
|
};
|
|
2054
2050
|
const _hoisted_6$p = { class: "text" };
|
|
2055
|
-
function _sfc_render$
|
|
2051
|
+
function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2056
2052
|
const _component_nut_overlay = resolveComponent("nut-overlay");
|
|
2057
2053
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
2058
2054
|
return openBlock(), createElementBlock("view", {
|
|
@@ -2075,7 +2071,7 @@ function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2075
2071
|
}, [
|
|
2076
2072
|
createElementVNode("img", {
|
|
2077
2073
|
src: item.icon
|
|
2078
|
-
}, null, 8, _hoisted_3$
|
|
2074
|
+
}, null, 8, _hoisted_3$M),
|
|
2079
2075
|
createElementVNode("view", _hoisted_4$C, toDisplayString(item.text), 1),
|
|
2080
2076
|
item.num ? (openBlock(), createElementBlock("view", _hoisted_5$s, toDisplayString(item.num), 1)) : createCommentVNode("", true)
|
|
2081
2077
|
], 8, _hoisted_2$10);
|
|
@@ -2096,9 +2092,9 @@ function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2096
2092
|
])
|
|
2097
2093
|
], 6);
|
|
2098
2094
|
}
|
|
2099
|
-
var FixedNav = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2100
|
-
const { componentName: componentName$
|
|
2101
|
-
const _sfc_main$
|
|
2095
|
+
var FixedNav = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", _sfc_render$1s]]);
|
|
2096
|
+
const { componentName: componentName$1d, create: create$1y } = createComponent("menu");
|
|
2097
|
+
const _sfc_main$1y = create$1y({
|
|
2102
2098
|
props: {
|
|
2103
2099
|
activeColor: {
|
|
2104
2100
|
type: String,
|
|
@@ -2158,7 +2154,7 @@ const _sfc_main$1x = create$1x({
|
|
|
2158
2154
|
const { children, linkChildren } = useChildren();
|
|
2159
2155
|
const opened = computed(() => children.some((item) => item.state.showWrapper));
|
|
2160
2156
|
const classes = computed(() => {
|
|
2161
|
-
const prefixCls = componentName$
|
|
2157
|
+
const prefixCls = componentName$1d;
|
|
2162
2158
|
return {
|
|
2163
2159
|
[prefixCls]: true,
|
|
2164
2160
|
"scroll-fixed": isScrollFixed.value
|
|
@@ -2228,7 +2224,7 @@ const _sfc_main$1x = create$1x({
|
|
|
2228
2224
|
});
|
|
2229
2225
|
const _hoisted_1$1d = ["onClick"];
|
|
2230
2226
|
const _hoisted_2$$ = { class: "nut-menu__title-text" };
|
|
2231
|
-
function _sfc_render$
|
|
2227
|
+
function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2232
2228
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
2233
2229
|
return openBlock(), createElementBlock("view", {
|
|
2234
2230
|
class: normalizeClass(_ctx.classes)
|
|
@@ -2260,9 +2256,9 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2260
2256
|
renderSlot(_ctx.$slots, "default")
|
|
2261
2257
|
], 2);
|
|
2262
2258
|
}
|
|
2263
|
-
var Menu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2264
|
-
const { componentName: componentName$
|
|
2265
|
-
const _sfc_main$
|
|
2259
|
+
var Menu = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["render", _sfc_render$1r]]);
|
|
2260
|
+
const { componentName: componentName$1c, create: create$1x } = createComponent("menu-item");
|
|
2261
|
+
const _sfc_main$1x = create$1x({
|
|
2266
2262
|
props: {
|
|
2267
2263
|
title: String,
|
|
2268
2264
|
options: {
|
|
@@ -2285,7 +2281,7 @@ const _sfc_main$1w = create$1w({
|
|
|
2285
2281
|
}
|
|
2286
2282
|
},
|
|
2287
2283
|
components: {
|
|
2288
|
-
[_sfc_main$
|
|
2284
|
+
[_sfc_main$1P.name]: _sfc_main$1P,
|
|
2289
2285
|
[Popup.name]: Popup
|
|
2290
2286
|
},
|
|
2291
2287
|
emits: ["update:modelValue", "change"],
|
|
@@ -2309,7 +2305,7 @@ const _sfc_main$1w = create$1w({
|
|
|
2309
2305
|
};
|
|
2310
2306
|
const { parent } = useParent();
|
|
2311
2307
|
const classes = computed(() => {
|
|
2312
|
-
const prefixCls = componentName$
|
|
2308
|
+
const prefixCls = componentName$1c;
|
|
2313
2309
|
return {
|
|
2314
2310
|
[prefixCls]: true
|
|
2315
2311
|
};
|
|
@@ -2370,7 +2366,7 @@ const _sfc_main$1w = create$1w({
|
|
|
2370
2366
|
});
|
|
2371
2367
|
const _hoisted_1$1c = { class: "nut-menu-item__content" };
|
|
2372
2368
|
const _hoisted_2$_ = ["onClick"];
|
|
2373
|
-
function _sfc_render$
|
|
2369
|
+
function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2374
2370
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
2375
2371
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
2376
2372
|
return withDirectives((openBlock(), createElementBlock("view", {
|
|
@@ -2427,9 +2423,9 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2427
2423
|
[vShow, _ctx.state.showWrapper]
|
|
2428
2424
|
]);
|
|
2429
2425
|
}
|
|
2430
|
-
var MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2431
|
-
const { create: create$
|
|
2432
|
-
const _sfc_main$
|
|
2426
|
+
var MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["render", _sfc_render$1q]]);
|
|
2427
|
+
const { create: create$1w } = createComponent("tabbar");
|
|
2428
|
+
const _sfc_main$1w = create$1w({
|
|
2433
2429
|
props: {
|
|
2434
2430
|
visible: {
|
|
2435
2431
|
type: [Number, String],
|
|
@@ -2488,16 +2484,16 @@ const _sfc_main$1v = create$1v({
|
|
|
2488
2484
|
};
|
|
2489
2485
|
}
|
|
2490
2486
|
});
|
|
2491
|
-
function _sfc_render$
|
|
2487
|
+
function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2492
2488
|
return openBlock(), createElementBlock("view", {
|
|
2493
2489
|
class: normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom, "nut-tabbar-safebottom": _ctx.safeAreaInsetBottom }])
|
|
2494
2490
|
}, [
|
|
2495
2491
|
renderSlot(_ctx.$slots, "default")
|
|
2496
2492
|
], 2);
|
|
2497
2493
|
}
|
|
2498
|
-
var Tabbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2499
|
-
const { create: create$
|
|
2500
|
-
const _sfc_main$
|
|
2494
|
+
var Tabbar = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["render", _sfc_render$1p]]);
|
|
2495
|
+
const { create: create$1v } = createComponent("tabbar-item");
|
|
2496
|
+
const _sfc_main$1v = create$1v({
|
|
2501
2497
|
props: {
|
|
2502
2498
|
tabTitle: {
|
|
2503
2499
|
type: String,
|
|
@@ -2592,7 +2588,7 @@ const _hoisted_2$Z = {
|
|
|
2592
2588
|
key: 0,
|
|
2593
2589
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_num"
|
|
2594
2590
|
};
|
|
2595
|
-
const _hoisted_3$
|
|
2591
|
+
const _hoisted_3$L = {
|
|
2596
2592
|
key: 1,
|
|
2597
2593
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_nums"
|
|
2598
2594
|
};
|
|
@@ -2602,7 +2598,7 @@ const _hoisted_4$B = {
|
|
|
2602
2598
|
};
|
|
2603
2599
|
const _hoisted_5$r = { key: 2 };
|
|
2604
2600
|
const _hoisted_6$o = { key: 0 };
|
|
2605
|
-
function _sfc_render$
|
|
2601
|
+
function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2606
2602
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
2607
2603
|
return openBlock(), createElementBlock("div", {
|
|
2608
2604
|
class: normalizeClass(["nut-tabbar-item", { "nut-tabbar-item__icon--unactive": _ctx.state.active != _ctx.state.index }]),
|
|
@@ -2613,7 +2609,7 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2613
2609
|
}, [
|
|
2614
2610
|
createElementVNode("view", _hoisted_1$1b, [
|
|
2615
2611
|
!_ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
2616
|
-
_ctx.num && _ctx.num <= 99 ? (openBlock(), createElementBlock("view", _hoisted_2$Z, toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (openBlock(), createElementBlock("view", _hoisted_3$
|
|
2612
|
+
_ctx.num && _ctx.num <= 99 ? (openBlock(), createElementBlock("view", _hoisted_2$Z, toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (openBlock(), createElementBlock("view", _hoisted_3$L, toDisplayString("99+"))) : createCommentVNode("", true)
|
|
2617
2613
|
], 64)) : createCommentVNode("", true),
|
|
2618
2614
|
_ctx.dot ? (openBlock(), createElementBlock("div", _hoisted_4$B)) : createCommentVNode("", true),
|
|
2619
2615
|
_ctx.icon ? (openBlock(), createElementBlock("view", _hoisted_5$r, [
|
|
@@ -2643,15 +2639,15 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2643
2639
|
])
|
|
2644
2640
|
], 6);
|
|
2645
2641
|
}
|
|
2646
|
-
var TabbarItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2642
|
+
var TabbarItem = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["render", _sfc_render$1o]]);
|
|
2647
2643
|
function useExpose(apis) {
|
|
2648
2644
|
const instance = getCurrentInstance();
|
|
2649
2645
|
if (instance) {
|
|
2650
2646
|
Object.assign(instance.proxy, apis);
|
|
2651
2647
|
}
|
|
2652
2648
|
}
|
|
2653
|
-
const { componentName: componentName$
|
|
2654
|
-
const _sfc_main$
|
|
2649
|
+
const { componentName: componentName$1b, create: create$1u } = createComponent("elevator");
|
|
2650
|
+
const _sfc_main$1u = create$1u({
|
|
2655
2651
|
props: {
|
|
2656
2652
|
height: {
|
|
2657
2653
|
type: [Number, String],
|
|
@@ -2701,7 +2697,7 @@ const _sfc_main$1t = create$1t({
|
|
|
2701
2697
|
fixedTop: 0
|
|
2702
2698
|
});
|
|
2703
2699
|
const classes = computed(() => {
|
|
2704
|
-
const prefixCls = componentName$
|
|
2700
|
+
const prefixCls = componentName$1b;
|
|
2705
2701
|
return {
|
|
2706
2702
|
[prefixCls]: true
|
|
2707
2703
|
};
|
|
@@ -2826,11 +2822,11 @@ const _sfc_main$1t = create$1t({
|
|
|
2826
2822
|
});
|
|
2827
2823
|
const _hoisted_1$1a = { class: "nut-elevator__list__item__code" };
|
|
2828
2824
|
const _hoisted_2$Y = ["onClick"];
|
|
2829
|
-
const _hoisted_3$
|
|
2825
|
+
const _hoisted_3$K = ["innerHTML"];
|
|
2830
2826
|
const _hoisted_4$A = { class: "fixed-title" };
|
|
2831
2827
|
const _hoisted_5$q = { class: "nut-elevator__bars__inner" };
|
|
2832
2828
|
const _hoisted_6$n = ["data-index", "onClick"];
|
|
2833
|
-
function _sfc_render$
|
|
2829
|
+
function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2834
2830
|
return openBlock(), createElementBlock("view", {
|
|
2835
2831
|
class: normalizeClass(_ctx.classes)
|
|
2836
2832
|
}, [
|
|
@@ -2857,7 +2853,7 @@ function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2857
2853
|
!_ctx.$slots.default ? (openBlock(), createElementBlock("span", {
|
|
2858
2854
|
key: 0,
|
|
2859
2855
|
innerHTML: subitem.name
|
|
2860
|
-
}, null, 8, _hoisted_3$
|
|
2856
|
+
}, null, 8, _hoisted_3$K)) : renderSlot(_ctx.$slots, "default", {
|
|
2861
2857
|
key: 1,
|
|
2862
2858
|
item: subitem
|
|
2863
2859
|
})
|
|
@@ -2900,9 +2896,9 @@ function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2900
2896
|
], 32)
|
|
2901
2897
|
], 2);
|
|
2902
2898
|
}
|
|
2903
|
-
var Elevator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2904
|
-
const { componentName: componentName$
|
|
2905
|
-
const _sfc_main$
|
|
2899
|
+
var Elevator = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["render", _sfc_render$1n]]);
|
|
2900
|
+
const { componentName: componentName$1a, create: create$1t, translate: translate$s } = createComponent("pagination");
|
|
2901
|
+
const _sfc_main$1t = create$1t({
|
|
2906
2902
|
props: {
|
|
2907
2903
|
modelValue: {
|
|
2908
2904
|
type: Number,
|
|
@@ -3013,13 +3009,13 @@ const _hoisted_2$X = {
|
|
|
3013
3009
|
key: 0,
|
|
3014
3010
|
class: "nut-pagination-contain"
|
|
3015
3011
|
};
|
|
3016
|
-
const _hoisted_3$
|
|
3012
|
+
const _hoisted_3$J = ["onClick"];
|
|
3017
3013
|
const _hoisted_4$z = {
|
|
3018
3014
|
key: 1,
|
|
3019
3015
|
class: "nut-pagination-contain"
|
|
3020
3016
|
};
|
|
3021
3017
|
const _hoisted_5$p = { class: "nut-pagination-simple" };
|
|
3022
|
-
function _sfc_render$
|
|
3018
|
+
function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3023
3019
|
return openBlock(), createElementBlock("view", _hoisted_1$19, [
|
|
3024
3020
|
createElementVNode("view", {
|
|
3025
3021
|
class: normalizeClass(["nut-pagination-prev", _ctx.mode == "multi" ? "" : "simple-border", _ctx.modelValue == 1 ? "disabled" : ""]),
|
|
@@ -3039,7 +3035,7 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3039
3035
|
renderSlot(_ctx.$slots, "page", { item }, () => [
|
|
3040
3036
|
createTextVNode(toDisplayString(item.text), 1)
|
|
3041
3037
|
])
|
|
3042
|
-
], 10, _hoisted_3$
|
|
3038
|
+
], 10, _hoisted_3$J);
|
|
3043
3039
|
}), 128))
|
|
3044
3040
|
])) : createCommentVNode("", true),
|
|
3045
3041
|
_ctx.mode == "simple" ? (openBlock(), createElementBlock("view", _hoisted_4$z, [
|
|
@@ -3055,7 +3051,7 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3055
3051
|
], 2)
|
|
3056
3052
|
]);
|
|
3057
3053
|
}
|
|
3058
|
-
var Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3054
|
+
var Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["render", _sfc_render$1m]]);
|
|
3059
3055
|
class Title {
|
|
3060
3056
|
constructor() {
|
|
3061
3057
|
this.title = "";
|
|
@@ -3253,11 +3249,11 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3253
3249
|
], 4)
|
|
3254
3250
|
], 2);
|
|
3255
3251
|
}
|
|
3256
|
-
const { create: create$
|
|
3257
|
-
const _sfc_main$
|
|
3258
|
-
var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3259
|
-
const { create: create$
|
|
3260
|
-
const _sfc_main$
|
|
3252
|
+
const { create: create$1s } = createComponent("tabs");
|
|
3253
|
+
const _sfc_main$1s = create$1s(component$5);
|
|
3254
|
+
var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["render", render$1]]);
|
|
3255
|
+
const { create: create$1r } = createComponent("tabpane");
|
|
3256
|
+
const _sfc_main$1r = create$1r({
|
|
3261
3257
|
props: {
|
|
3262
3258
|
title: {
|
|
3263
3259
|
type: [String, Number],
|
|
@@ -3282,16 +3278,16 @@ const _sfc_main$1q = create$1q({
|
|
|
3282
3278
|
};
|
|
3283
3279
|
}
|
|
3284
3280
|
});
|
|
3285
|
-
function _sfc_render$
|
|
3281
|
+
function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3286
3282
|
return openBlock(), createElementBlock("view", {
|
|
3287
3283
|
class: normalizeClass(["nut-tabpane", { inactive: _ctx.paneKey != _ctx.activeKey && _ctx.autoHeight }])
|
|
3288
3284
|
}, [
|
|
3289
3285
|
renderSlot(_ctx.$slots, "default")
|
|
3290
3286
|
], 2);
|
|
3291
3287
|
}
|
|
3292
|
-
var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3293
|
-
const { componentName: componentName$
|
|
3294
|
-
const _sfc_main$
|
|
3288
|
+
var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$1l]]);
|
|
3289
|
+
const { componentName: componentName$19, create: create$1q } = createComponent("indicator");
|
|
3290
|
+
const _sfc_main$1q = create$1q({
|
|
3295
3291
|
props: {
|
|
3296
3292
|
size: {
|
|
3297
3293
|
type: Number,
|
|
@@ -3319,17 +3315,17 @@ const _sfc_main$1p = create$1p({
|
|
|
3319
3315
|
setup(props) {
|
|
3320
3316
|
const { block, align } = toRefs(props);
|
|
3321
3317
|
const classes = computed(() => {
|
|
3322
|
-
const prefixCls = componentName$
|
|
3318
|
+
const prefixCls = componentName$19;
|
|
3323
3319
|
return {
|
|
3324
3320
|
[prefixCls]: true,
|
|
3325
3321
|
[`${prefixCls}--block`]: block.value,
|
|
3326
3322
|
[`${prefixCls}--align__${align.value}`]: block.value && align.value
|
|
3327
3323
|
};
|
|
3328
3324
|
});
|
|
3329
|
-
return { classes, componentName: componentName$
|
|
3325
|
+
return { classes, componentName: componentName$19 };
|
|
3330
3326
|
}
|
|
3331
3327
|
});
|
|
3332
|
-
function _sfc_render$
|
|
3328
|
+
function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3333
3329
|
return openBlock(), createElementBlock("view", {
|
|
3334
3330
|
class: normalizeClass(_ctx.classes)
|
|
3335
3331
|
}, [
|
|
@@ -3346,9 +3342,9 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3346
3342
|
}), 128))
|
|
3347
3343
|
], 2);
|
|
3348
3344
|
}
|
|
3349
|
-
var Indicator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3350
|
-
const { componentName: componentName$
|
|
3351
|
-
const _sfc_main$
|
|
3345
|
+
var Indicator = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["render", _sfc_render$1k]]);
|
|
3346
|
+
const { componentName: componentName$18, create: create$1p } = createComponent("sidenavbar");
|
|
3347
|
+
const _sfc_main$1p = create$1p({
|
|
3352
3348
|
props: {
|
|
3353
3349
|
offset: {
|
|
3354
3350
|
type: [String, Number],
|
|
@@ -3363,7 +3359,7 @@ const _sfc_main$1o = create$1o({
|
|
|
3363
3359
|
observer: null
|
|
3364
3360
|
});
|
|
3365
3361
|
const classes = computed(() => {
|
|
3366
|
-
const prefixCls = componentName$
|
|
3362
|
+
const prefixCls = componentName$18;
|
|
3367
3363
|
return {
|
|
3368
3364
|
[prefixCls]: true
|
|
3369
3365
|
};
|
|
@@ -3412,7 +3408,7 @@ const _hoisted_2$W = {
|
|
|
3412
3408
|
class: "nut-sidenavbar__content__list",
|
|
3413
3409
|
ref: "list"
|
|
3414
3410
|
};
|
|
3415
|
-
function _sfc_render$
|
|
3411
|
+
function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3416
3412
|
return openBlock(), createElementBlock("view", {
|
|
3417
3413
|
class: normalizeClass(_ctx.classes)
|
|
3418
3414
|
}, [
|
|
@@ -3423,9 +3419,9 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3423
3419
|
])
|
|
3424
3420
|
], 2);
|
|
3425
3421
|
}
|
|
3426
|
-
var SideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3427
|
-
const { componentName: componentName$
|
|
3428
|
-
const _sfc_main$
|
|
3422
|
+
var SideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["render", _sfc_render$1j]]);
|
|
3423
|
+
const { componentName: componentName$17, create: create$1o } = createComponent("sidenavbaritem");
|
|
3424
|
+
const _sfc_main$1o = create$1o({
|
|
3429
3425
|
props: {
|
|
3430
3426
|
title: {
|
|
3431
3427
|
type: String,
|
|
@@ -3439,7 +3435,7 @@ const _sfc_main$1n = create$1n({
|
|
|
3439
3435
|
emits: ["click"],
|
|
3440
3436
|
setup: (props, context) => {
|
|
3441
3437
|
const classes = computed(() => {
|
|
3442
|
-
const prefixCls = componentName$
|
|
3438
|
+
const prefixCls = componentName$17;
|
|
3443
3439
|
return {
|
|
3444
3440
|
[prefixCls]: true
|
|
3445
3441
|
};
|
|
@@ -3455,7 +3451,7 @@ const _sfc_main$1n = create$1n({
|
|
|
3455
3451
|
});
|
|
3456
3452
|
const _hoisted_1$16 = ["ikey"];
|
|
3457
3453
|
const _hoisted_2$V = { class: "nut-sidenavbaritem__title" };
|
|
3458
|
-
function _sfc_render$
|
|
3454
|
+
function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3459
3455
|
return openBlock(), createElementBlock("view", {
|
|
3460
3456
|
class: "nut-sidenavbaritem",
|
|
3461
3457
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
|
|
@@ -3464,9 +3460,9 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3464
3460
|
createElementVNode("span", _hoisted_2$V, toDisplayString(_ctx.title), 1)
|
|
3465
3461
|
], 8, _hoisted_1$16);
|
|
3466
3462
|
}
|
|
3467
|
-
var SideNavBarItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3468
|
-
const { componentName: componentName$
|
|
3469
|
-
const _sfc_main$
|
|
3463
|
+
var SideNavBarItem = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["render", _sfc_render$1i]]);
|
|
3464
|
+
const { componentName: componentName$16, create: create$1n } = createComponent("subsidenavbar");
|
|
3465
|
+
const _sfc_main$1n = create$1n({
|
|
3470
3466
|
props: {
|
|
3471
3467
|
title: {
|
|
3472
3468
|
type: String,
|
|
@@ -3487,7 +3483,7 @@ const _sfc_main$1m = create$1m({
|
|
|
3487
3483
|
direction: ""
|
|
3488
3484
|
});
|
|
3489
3485
|
const classes = computed(() => {
|
|
3490
|
-
const prefixCls = componentName$
|
|
3486
|
+
const prefixCls = componentName$16;
|
|
3491
3487
|
return {
|
|
3492
3488
|
[prefixCls]: true
|
|
3493
3489
|
};
|
|
@@ -3514,8 +3510,8 @@ const _sfc_main$1m = create$1m({
|
|
|
3514
3510
|
});
|
|
3515
3511
|
const _hoisted_1$15 = ["ikey"];
|
|
3516
3512
|
const _hoisted_2$U = { class: "nut-subsidenavbar__title__text" };
|
|
3517
|
-
const _hoisted_3$
|
|
3518
|
-
function _sfc_render$
|
|
3513
|
+
const _hoisted_3$I = { class: "nut-subsidenavbar__title__icon" };
|
|
3514
|
+
function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3519
3515
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
3520
3516
|
return openBlock(), createElementBlock("view", {
|
|
3521
3517
|
class: normalizeClass(_ctx.classes),
|
|
@@ -3526,7 +3522,7 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3526
3522
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
3527
3523
|
}, [
|
|
3528
3524
|
createElementVNode("span", _hoisted_2$U, toDisplayString(_ctx.title), 1),
|
|
3529
|
-
createElementVNode("span", _hoisted_3$
|
|
3525
|
+
createElementVNode("span", _hoisted_3$I, [
|
|
3530
3526
|
createVNode(_component_nut_icon, {
|
|
3531
3527
|
name: "down-arrow",
|
|
3532
3528
|
class: normalizeClass(_ctx.direction)
|
|
@@ -3541,7 +3537,7 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3541
3537
|
], 6)
|
|
3542
3538
|
], 10, _hoisted_1$15);
|
|
3543
3539
|
}
|
|
3544
|
-
var SubSideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3540
|
+
var SubSideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_render$1h]]);
|
|
3545
3541
|
const MIN_DISTANCE$1 = 10;
|
|
3546
3542
|
function getDirection$1(x, y) {
|
|
3547
3543
|
if (x > y && x > MIN_DISTANCE$1) {
|
|
@@ -3605,8 +3601,8 @@ function useTouch$2() {
|
|
|
3605
3601
|
isHorizontal
|
|
3606
3602
|
};
|
|
3607
3603
|
}
|
|
3608
|
-
const { componentName: componentName$
|
|
3609
|
-
const _sfc_main$
|
|
3604
|
+
const { componentName: componentName$15, create: create$1m } = createComponent("range");
|
|
3605
|
+
const _sfc_main$1m = create$1m({
|
|
3610
3606
|
props: {
|
|
3611
3607
|
range: {
|
|
3612
3608
|
type: Boolean,
|
|
@@ -3665,7 +3661,7 @@ const _sfc_main$1l = create$1l({
|
|
|
3665
3661
|
});
|
|
3666
3662
|
const scope = computed(() => Number(props.max) - Number(props.min));
|
|
3667
3663
|
const classes = computed(() => {
|
|
3668
|
-
const prefixCls = componentName$
|
|
3664
|
+
const prefixCls = componentName$15;
|
|
3669
3665
|
return {
|
|
3670
3666
|
[prefixCls]: true,
|
|
3671
3667
|
[`${prefixCls}-disabled`]: props.disabled,
|
|
@@ -3900,7 +3896,7 @@ const _hoisted_2$T = {
|
|
|
3900
3896
|
key: 0,
|
|
3901
3897
|
class: "nut-range-mark"
|
|
3902
3898
|
};
|
|
3903
|
-
const _hoisted_3$
|
|
3899
|
+
const _hoisted_3$H = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
|
|
3904
3900
|
const _hoisted_4$y = {
|
|
3905
3901
|
key: 0,
|
|
3906
3902
|
class: "number"
|
|
@@ -3914,7 +3910,7 @@ const _hoisted_7$j = {
|
|
|
3914
3910
|
key: 1,
|
|
3915
3911
|
class: "max"
|
|
3916
3912
|
};
|
|
3917
|
-
function _sfc_render$
|
|
3913
|
+
function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3918
3914
|
return openBlock(), createElementBlock("view", {
|
|
3919
3915
|
class: normalizeClass(_ctx.containerClasses)
|
|
3920
3916
|
}, [
|
|
@@ -3975,7 +3971,7 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3975
3971
|
}, [
|
|
3976
3972
|
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_4$y, toDisplayString(_ctx.curValue(index)), 1)) : createCommentVNode("", true)
|
|
3977
3973
|
], 4))
|
|
3978
|
-
], 42, _hoisted_3$
|
|
3974
|
+
], 42, _hoisted_3$H);
|
|
3979
3975
|
}), 64)) : (openBlock(), createElementBlock("view", {
|
|
3980
3976
|
key: 1,
|
|
3981
3977
|
role: "slider",
|
|
@@ -4006,9 +4002,9 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4006
4002
|
!_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_7$j, toDisplayString(+_ctx.max), 1)) : createCommentVNode("", true)
|
|
4007
4003
|
], 2);
|
|
4008
4004
|
}
|
|
4009
|
-
var Range = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4010
|
-
const { create: create$
|
|
4011
|
-
const _sfc_main$
|
|
4005
|
+
var Range = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["render", _sfc_render$1g]]);
|
|
4006
|
+
const { create: create$1l, translate: translate$r } = createComponent("searchbar");
|
|
4007
|
+
const _sfc_main$1l = create$1l({
|
|
4012
4008
|
props: {
|
|
4013
4009
|
modelValue: {
|
|
4014
4010
|
type: [String, Number],
|
|
@@ -4164,13 +4160,13 @@ const _hoisted_2$S = {
|
|
|
4164
4160
|
key: 1,
|
|
4165
4161
|
class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
|
|
4166
4162
|
};
|
|
4167
|
-
const _hoisted_3$
|
|
4163
|
+
const _hoisted_3$G = { class: "nut-searchbar__input-inner" };
|
|
4168
4164
|
const _hoisted_4$x = ["type", "maxlength", "placeholder", "value", "disabled", "readonly"];
|
|
4169
4165
|
const _hoisted_5$n = {
|
|
4170
4166
|
key: 2,
|
|
4171
4167
|
class: "nut-searchbar__search-icon nut-searchbar__right-search-icon"
|
|
4172
4168
|
};
|
|
4173
|
-
function _sfc_render$
|
|
4169
|
+
function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4174
4170
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
4175
4171
|
return openBlock(), createElementBlock("view", {
|
|
4176
4172
|
class: "nut-searchbar",
|
|
@@ -4191,7 +4187,7 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4191
4187
|
}, [
|
|
4192
4188
|
renderSlot(_ctx.$slots, "leftin")
|
|
4193
4189
|
])) : createCommentVNode("", true),
|
|
4194
|
-
createElementVNode("view", _hoisted_3$
|
|
4190
|
+
createElementVNode("view", _hoisted_3$G, [
|
|
4195
4191
|
createElementVNode("form", {
|
|
4196
4192
|
action: "#",
|
|
4197
4193
|
onSubmit: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
|
|
@@ -4239,7 +4235,7 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4239
4235
|
])) : createCommentVNode("", true)
|
|
4240
4236
|
], 4);
|
|
4241
4237
|
}
|
|
4242
|
-
var SearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4238
|
+
var SearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_render$1f]]);
|
|
4243
4239
|
const formatTree = (tree, parent, config) => tree.map((node) => {
|
|
4244
4240
|
const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
|
|
4245
4241
|
const { [valueKey]: value, [textKey]: text, [childrenKey]: children, ...others } = node;
|
|
@@ -4360,8 +4356,8 @@ class Tree {
|
|
|
4360
4356
|
return Array.isArray(children) && Boolean(children.length);
|
|
4361
4357
|
}
|
|
4362
4358
|
}
|
|
4363
|
-
const { create: create$
|
|
4364
|
-
const _sfc_main$
|
|
4359
|
+
const { create: create$1k, translate: translate$q } = createComponent("cascader-item");
|
|
4360
|
+
const _sfc_main$1k = create$1k({
|
|
4365
4361
|
props: {
|
|
4366
4362
|
visible: Boolean,
|
|
4367
4363
|
modelValue: Array,
|
|
@@ -4583,9 +4579,9 @@ const _hoisted_1$12 = {
|
|
|
4583
4579
|
class: "nut-cascader-pane"
|
|
4584
4580
|
};
|
|
4585
4581
|
const _hoisted_2$R = ["aria-checked", "aria-disabled", "onClick"];
|
|
4586
|
-
const _hoisted_3$
|
|
4582
|
+
const _hoisted_3$F = { class: "nut-cascader-item__title" };
|
|
4587
4583
|
const _hoisted_4$w = /* @__PURE__ */ createElementVNode("view", { class: "nut-cascader-pane" }, null, -1);
|
|
4588
|
-
function _sfc_render$
|
|
4584
|
+
function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4589
4585
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
4590
4586
|
const _component_nut_tabpane = resolveComponent("nut-tabpane");
|
|
4591
4587
|
const _component_nut_tabs = resolveComponent("nut-tabs");
|
|
@@ -4613,7 +4609,7 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4613
4609
|
role: "menuitemradio",
|
|
4614
4610
|
onClick: ($event) => _ctx.handleNode(node, false)
|
|
4615
4611
|
}, [
|
|
4616
|
-
createElementVNode("view", _hoisted_3$
|
|
4612
|
+
createElementVNode("view", _hoisted_3$F, toDisplayString(node.text), 1),
|
|
4617
4613
|
node.loading ? (openBlock(), createBlock(_component_nut_icon, {
|
|
4618
4614
|
key: 0,
|
|
4619
4615
|
class: "nut-cascader-item__icon-loading",
|
|
@@ -4642,9 +4638,9 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4642
4638
|
_: 1
|
|
4643
4639
|
}, 8, ["modelValue", "onClick"]);
|
|
4644
4640
|
}
|
|
4645
|
-
var CascaderItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4646
|
-
const { create: create$
|
|
4647
|
-
const _sfc_main$
|
|
4641
|
+
var CascaderItem = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$1e]]);
|
|
4642
|
+
const { create: create$1j } = createComponent("cascader");
|
|
4643
|
+
const _sfc_main$1j = create$1j({
|
|
4648
4644
|
components: {
|
|
4649
4645
|
[CascaderItem.name]: CascaderItem
|
|
4650
4646
|
},
|
|
@@ -4707,7 +4703,7 @@ const _sfc_main$1i = create$1i({
|
|
|
4707
4703
|
}
|
|
4708
4704
|
});
|
|
4709
4705
|
const _hoisted_1$11 = ["innerHTML"];
|
|
4710
|
-
function _sfc_render$
|
|
4706
|
+
function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4711
4707
|
const _component_nut_cascader_item = resolveComponent("nut-cascader-item");
|
|
4712
4708
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
4713
4709
|
return openBlock(), createBlock(_component_nut_popup, {
|
|
@@ -4744,7 +4740,7 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4744
4740
|
_: 1
|
|
4745
4741
|
}, 8, ["visible", "closeable", "close-icon", "close-icon-position"]);
|
|
4746
4742
|
}
|
|
4747
|
-
var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4743
|
+
var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["render", _sfc_render$1d]]);
|
|
4748
4744
|
const Utils = {
|
|
4749
4745
|
isLeapYear: function(y) {
|
|
4750
4746
|
return y % 4 == 0 && y % 100 != 0 || y % 400 == 0;
|
|
@@ -4839,8 +4835,8 @@ function requestAniFrame() {
|
|
|
4839
4835
|
}
|
|
4840
4836
|
}
|
|
4841
4837
|
var requestAniFrame$1 = requestAniFrame();
|
|
4842
|
-
const { create: create$
|
|
4843
|
-
const _sfc_main$
|
|
4838
|
+
const { create: create$1i, translate: translate$p } = createComponent("calendar-item");
|
|
4839
|
+
const _sfc_main$1i = create$1i({
|
|
4844
4840
|
props: {
|
|
4845
4841
|
type: {
|
|
4846
4842
|
type: String,
|
|
@@ -5052,6 +5048,7 @@ const _sfc_main$1h = create$1h({
|
|
|
5052
5048
|
state.chooseData = [...days];
|
|
5053
5049
|
}
|
|
5054
5050
|
if (!isFirst) {
|
|
5051
|
+
console.log(state.chooseData);
|
|
5055
5052
|
emit("select", state.chooseData);
|
|
5056
5053
|
if (props.isAutoBackFill || !props.poppable) {
|
|
5057
5054
|
confirm();
|
|
@@ -5409,7 +5406,7 @@ const _hoisted_2$Q = {
|
|
|
5409
5406
|
key: 1,
|
|
5410
5407
|
class: "calendar-top-slot"
|
|
5411
5408
|
};
|
|
5412
|
-
const _hoisted_3$
|
|
5409
|
+
const _hoisted_3$E = {
|
|
5413
5410
|
key: 2,
|
|
5414
5411
|
class: "calendar-curr-month"
|
|
5415
5412
|
};
|
|
@@ -5433,11 +5430,11 @@ const _hoisted_11$5 = {
|
|
|
5433
5430
|
key: 1,
|
|
5434
5431
|
class: "calendar-curr-tips calendar-curr-tips-bottom"
|
|
5435
5432
|
};
|
|
5436
|
-
const _hoisted_12$
|
|
5433
|
+
const _hoisted_12$5 = {
|
|
5437
5434
|
key: 2,
|
|
5438
5435
|
class: "calendar-curr-tip-curr"
|
|
5439
5436
|
};
|
|
5440
|
-
const _hoisted_13$
|
|
5437
|
+
const _hoisted_13$3 = {
|
|
5441
5438
|
key: 4,
|
|
5442
5439
|
class: "calendar-day-tip"
|
|
5443
5440
|
};
|
|
@@ -5445,7 +5442,7 @@ const _hoisted_14$2 = {
|
|
|
5445
5442
|
key: 0,
|
|
5446
5443
|
class: "nut-calendar-footer"
|
|
5447
5444
|
};
|
|
5448
|
-
function _sfc_render$
|
|
5445
|
+
function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5449
5446
|
return openBlock(), createElementBlock("view", {
|
|
5450
5447
|
class: normalizeClass(["nut-calendar nut-calendar-taro", {
|
|
5451
5448
|
"nut-calendar-tile": !_ctx.poppable,
|
|
@@ -5459,7 +5456,7 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5459
5456
|
_ctx.showTopBtn ? (openBlock(), createElementBlock("view", _hoisted_2$Q, [
|
|
5460
5457
|
renderSlot(_ctx.$slots, "btn")
|
|
5461
5458
|
])) : createCommentVNode("", true),
|
|
5462
|
-
_ctx.showSubTitle ? (openBlock(), createElementBlock("view", _hoisted_3$
|
|
5459
|
+
_ctx.showSubTitle ? (openBlock(), createElementBlock("view", _hoisted_3$E, toDisplayString(_ctx.yearMonthTitle), 1)) : createCommentVNode("", true),
|
|
5463
5460
|
createElementVNode("view", _hoisted_4$v, [
|
|
5464
5461
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item, index) => {
|
|
5465
5462
|
return openBlock(), createElementBlock("view", {
|
|
@@ -5513,12 +5510,12 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5513
5510
|
date: day.type == "curr" ? day : ""
|
|
5514
5511
|
})
|
|
5515
5512
|
])) : createCommentVNode("", true),
|
|
5516
|
-
!_ctx.bottomInfo && _ctx.showToday && _ctx.isCurrDay(day) ? (openBlock(), createElementBlock("view", _hoisted_12$
|
|
5513
|
+
!_ctx.bottomInfo && _ctx.showToday && _ctx.isCurrDay(day) ? (openBlock(), createElementBlock("view", _hoisted_12$5, toDisplayString(_ctx.translate("today")), 1)) : createCommentVNode("", true),
|
|
5517
5514
|
_ctx.isStartTip(day, month) ? (openBlock(), createElementBlock("view", {
|
|
5518
5515
|
key: 3,
|
|
5519
5516
|
class: normalizeClass(["calendar-day-tip", { "calendar-curr-tips-top": _ctx.rangeTip(day, month) }])
|
|
5520
5517
|
}, toDisplayString(_ctx.startText || _ctx.translate("start")), 3)) : createCommentVNode("", true),
|
|
5521
|
-
_ctx.isEndTip(day, month) ? (openBlock(), createElementBlock("view", _hoisted_13$
|
|
5518
|
+
_ctx.isEndTip(day, month) ? (openBlock(), createElementBlock("view", _hoisted_13$3, toDisplayString(_ctx.endText || _ctx.translate("end")), 1)) : createCommentVNode("", true)
|
|
5522
5519
|
], 10, _hoisted_8$d);
|
|
5523
5520
|
}), 128))
|
|
5524
5521
|
], 2)
|
|
@@ -5536,9 +5533,9 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5536
5533
|
])) : createCommentVNode("", true)
|
|
5537
5534
|
], 2);
|
|
5538
5535
|
}
|
|
5539
|
-
var CalendarItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5540
|
-
const { create: create$
|
|
5541
|
-
const _sfc_main$
|
|
5536
|
+
var CalendarItem = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["render", _sfc_render$1c]]);
|
|
5537
|
+
const { create: create$1h } = createComponent("calendar");
|
|
5538
|
+
const _sfc_main$1h = create$1h({
|
|
5542
5539
|
components: {
|
|
5543
5540
|
[CalendarItem.name]: CalendarItem
|
|
5544
5541
|
},
|
|
@@ -5652,7 +5649,7 @@ const _sfc_main$1g = create$1g({
|
|
|
5652
5649
|
};
|
|
5653
5650
|
}
|
|
5654
5651
|
});
|
|
5655
|
-
function _sfc_render$
|
|
5652
|
+
function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5656
5653
|
const _component_nut_calendar_item = resolveComponent("nut-calendar-item");
|
|
5657
5654
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
5658
5655
|
return _ctx.poppable ? (openBlock(), createBlock(_component_nut_popup, {
|
|
@@ -5775,7 +5772,7 @@ function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5775
5772
|
} : void 0
|
|
5776
5773
|
]), 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"]));
|
|
5777
5774
|
}
|
|
5778
|
-
var Calendar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5775
|
+
var Calendar = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["render", _sfc_render$1b]]);
|
|
5779
5776
|
const component$4 = (componentName2, nutIcon) => {
|
|
5780
5777
|
return {
|
|
5781
5778
|
components: {
|
|
@@ -5848,10 +5845,19 @@ const component$4 = (componentName2, nutIcon) => {
|
|
|
5848
5845
|
const color = computed(() => {
|
|
5849
5846
|
return !pDisabled.value ? !pValue.value ? "nut-checkbox__icon--unchecked" : state.partialSelect ? "nut-checkbox__icon--indeterminate" : "nut-checkbox__icon" : "nut-checkbox__icon--disable";
|
|
5850
5847
|
});
|
|
5848
|
+
let updateType = "";
|
|
5851
5849
|
const emitChange = (value, label) => {
|
|
5850
|
+
updateType = "click";
|
|
5852
5851
|
emit("update:modelValue", value);
|
|
5853
5852
|
emit("change", value, label);
|
|
5854
5853
|
};
|
|
5854
|
+
watch(() => props.modelValue, (v) => {
|
|
5855
|
+
if (updateType == "click") {
|
|
5856
|
+
updateType = "";
|
|
5857
|
+
} else {
|
|
5858
|
+
emit("change", v);
|
|
5859
|
+
}
|
|
5860
|
+
});
|
|
5855
5861
|
const renderIcon = () => {
|
|
5856
5862
|
const { iconName, iconSize, iconActiveName, iconClassPrefix, iconFontClassName, iconIndeterminateName } = props;
|
|
5857
5863
|
return h(nutIcon, {
|
|
@@ -5906,10 +5912,10 @@ const component$4 = (componentName2, nutIcon) => {
|
|
|
5906
5912
|
}
|
|
5907
5913
|
};
|
|
5908
5914
|
};
|
|
5909
|
-
const { create: create$
|
|
5910
|
-
const _sfc_main$
|
|
5911
|
-
const { create: create$
|
|
5912
|
-
const _sfc_main$
|
|
5915
|
+
const { create: create$1g, componentName: componentName$14 } = createComponent("checkbox");
|
|
5916
|
+
const _sfc_main$1g = create$1g(component$4(componentName$14, _sfc_main$1P));
|
|
5917
|
+
const { create: create$1f, componentName: componentName$13 } = createComponent("checkboxgroup");
|
|
5918
|
+
const _sfc_main$1f = create$1f({
|
|
5913
5919
|
props: {
|
|
5914
5920
|
modelValue: {
|
|
5915
5921
|
type: Array,
|
|
@@ -5977,13 +5983,13 @@ const _sfc_main$1e = create$1e({
|
|
|
5977
5983
|
return () => {
|
|
5978
5984
|
var _a;
|
|
5979
5985
|
return h("view", {
|
|
5980
|
-
class: `${componentName$
|
|
5986
|
+
class: `${componentName$13}`
|
|
5981
5987
|
}, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
5982
5988
|
};
|
|
5983
5989
|
}
|
|
5984
5990
|
});
|
|
5985
|
-
const { create: create$
|
|
5986
|
-
const _sfc_main$
|
|
5991
|
+
const { create: create$1e } = createComponent("picker-column");
|
|
5992
|
+
const _sfc_main$1e = create$1e({
|
|
5987
5993
|
props: {
|
|
5988
5994
|
value: [String, Number],
|
|
5989
5995
|
columnsType: String,
|
|
@@ -5998,10 +6004,15 @@ const _sfc_main$1d = create$1d({
|
|
|
5998
6004
|
readonly: {
|
|
5999
6005
|
type: Boolean,
|
|
6000
6006
|
default: false
|
|
6007
|
+
},
|
|
6008
|
+
threeDimensional: {
|
|
6009
|
+
type: Boolean,
|
|
6010
|
+
default: true
|
|
6001
6011
|
}
|
|
6002
6012
|
},
|
|
6003
6013
|
emits: ["click", "change"],
|
|
6004
6014
|
setup(props, { emit }) {
|
|
6015
|
+
const touch = useTouch$2();
|
|
6005
6016
|
const wrapper = ref();
|
|
6006
6017
|
const state = reactive({
|
|
6007
6018
|
touchParams: {
|
|
@@ -6021,54 +6032,71 @@ const _sfc_main$1d = create$1d({
|
|
|
6021
6032
|
});
|
|
6022
6033
|
const roller = ref(null);
|
|
6023
6034
|
const list = ref(null);
|
|
6024
|
-
const
|
|
6035
|
+
const moving = ref(false);
|
|
6025
6036
|
const touchDeg = ref(0);
|
|
6026
6037
|
const touchTime = ref(0);
|
|
6027
|
-
const
|
|
6028
|
-
const
|
|
6038
|
+
const INERTIA_TIME = 300;
|
|
6039
|
+
const INERTIA_DISTANCE = 15;
|
|
6040
|
+
const touchRollerStyle = computed(() => {
|
|
6029
6041
|
return {
|
|
6030
|
-
transition: `transform ${touchTime.value}ms cubic-bezier(0.
|
|
6031
|
-
transform: `
|
|
6042
|
+
transition: `transform ${touchTime.value}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,
|
|
6043
|
+
transform: `rotate3d(1, 0, 0, ${touchDeg.value})`
|
|
6032
6044
|
};
|
|
6033
6045
|
});
|
|
6034
|
-
const
|
|
6046
|
+
const touchTileStyle = computed(() => {
|
|
6035
6047
|
return {
|
|
6036
|
-
transition: `transform ${touchTime.value}ms cubic-bezier(0.
|
|
6037
|
-
transform: `
|
|
6048
|
+
transition: `transform ${touchTime.value}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,
|
|
6049
|
+
transform: `translate3d(0, ${state.scrollDistance}px, 0)`
|
|
6038
6050
|
};
|
|
6039
6051
|
});
|
|
6052
|
+
const setRollerStyle = (index) => {
|
|
6053
|
+
return `transform: rotate3d(1, 0, 0, ${-state.rotation * index}deg) translate3d(0px, 0px, 104px)`;
|
|
6054
|
+
};
|
|
6040
6055
|
const onTouchStart = (event) => {
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6056
|
+
touch.start(event);
|
|
6057
|
+
if (moving.value) {
|
|
6058
|
+
let dom = list.value;
|
|
6059
|
+
if (!props.threeDimensional) {
|
|
6060
|
+
dom = roller.value;
|
|
6061
|
+
}
|
|
6062
|
+
const { transform } = window.getComputedStyle(dom);
|
|
6063
|
+
state.scrollDistance = +transform.slice(7, transform.length - 1).split(", ")[5];
|
|
6064
|
+
}
|
|
6065
|
+
state.touchParams.startY = touch.deltaY.value;
|
|
6066
|
+
state.touchParams.startTime = Date.now();
|
|
6045
6067
|
state.transformY = state.scrollDistance;
|
|
6046
6068
|
};
|
|
6047
6069
|
const onTouchMove = (event) => {
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6070
|
+
touch.move(event);
|
|
6071
|
+
if (touch.isVertical) {
|
|
6072
|
+
moving.value = true;
|
|
6073
|
+
preventDefault2(event, true);
|
|
6074
|
+
}
|
|
6075
|
+
state.touchParams.lastY = touch.deltaY.value;
|
|
6052
6076
|
let move = state.touchParams.lastY - state.touchParams.startY;
|
|
6053
6077
|
setMove(move);
|
|
6054
6078
|
};
|
|
6055
6079
|
const onTouchEnd = (event) => {
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
state.touchParams.lastY = changedTouches.pageY;
|
|
6059
|
-
state.touchParams.lastTime = event.timeStamp || Date.now();
|
|
6080
|
+
state.touchParams.lastY = touch.deltaY.value;
|
|
6081
|
+
state.touchParams.lastTime = Date.now();
|
|
6060
6082
|
let move = state.touchParams.lastY - state.touchParams.startY;
|
|
6061
6083
|
let moveTime = state.touchParams.lastTime - state.touchParams.startTime;
|
|
6062
|
-
if (moveTime <=
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6084
|
+
if (moveTime <= INERTIA_TIME && Math.abs(move) > INERTIA_DISTANCE) {
|
|
6085
|
+
const distance = momentum(move, moveTime);
|
|
6086
|
+
setMove(distance, "end", moveTime + 1e3);
|
|
6087
|
+
return;
|
|
6066
6088
|
} else {
|
|
6067
6089
|
setMove(move, "end");
|
|
6068
6090
|
}
|
|
6091
|
+
setTimeout(() => {
|
|
6092
|
+
touch.reset();
|
|
6093
|
+
moving.value = false;
|
|
6094
|
+
}, 0);
|
|
6069
6095
|
};
|
|
6070
|
-
const
|
|
6071
|
-
|
|
6096
|
+
const momentum = (distance, duration) => {
|
|
6097
|
+
const speed = Math.abs(distance / duration);
|
|
6098
|
+
distance = speed / 3e-3 * (distance < 0 ? -1 : 1);
|
|
6099
|
+
return distance;
|
|
6072
6100
|
};
|
|
6073
6101
|
const isHidden = (index) => {
|
|
6074
6102
|
if (index >= state.currIndex + 8 || index <= state.currIndex - 8) {
|
|
@@ -6084,7 +6112,6 @@ const _sfc_main$1d = create$1d({
|
|
|
6084
6112
|
touchTime.value = 0;
|
|
6085
6113
|
}
|
|
6086
6114
|
touchDeg.value = deg;
|
|
6087
|
-
touchTranslateY.value = translateY;
|
|
6088
6115
|
state.scrollDistance = translateY;
|
|
6089
6116
|
};
|
|
6090
6117
|
const setMove = (move, type, time) => {
|
|
@@ -6099,20 +6126,17 @@ const _sfc_main$1d = create$1d({
|
|
|
6099
6126
|
let endMove = Math.round(updateMove / state.lineSpacing) * state.lineSpacing;
|
|
6100
6127
|
let deg = `${(Math.abs(Math.round(endMove / state.lineSpacing)) + 1) * state.rotation}deg`;
|
|
6101
6128
|
setTransform(endMove, type, time, deg);
|
|
6102
|
-
let t = time ? time / 2 : 0;
|
|
6103
|
-
state.timer = setTimeout(() => {
|
|
6104
|
-
setChooseValue();
|
|
6105
|
-
}, t);
|
|
6106
6129
|
state.currIndex = Math.abs(Math.round(endMove / state.lineSpacing)) + 1;
|
|
6107
6130
|
} else {
|
|
6108
|
-
let deg =
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6131
|
+
let deg = 0;
|
|
6132
|
+
let currentDeg = (-updateMove / state.lineSpacing + 1) * state.rotation;
|
|
6133
|
+
const maxDeg = (props.column.length + 1) * state.rotation;
|
|
6134
|
+
const minDeg = 0;
|
|
6135
|
+
deg = Math.min(Math.max(currentDeg, minDeg), maxDeg);
|
|
6136
|
+
if (minDeg < deg && deg < maxDeg) {
|
|
6137
|
+
setTransform(updateMove, null, void 0, deg + "deg");
|
|
6138
|
+
state.currIndex = Math.abs(Math.round(updateMove / state.lineSpacing)) + 1;
|
|
6113
6139
|
}
|
|
6114
|
-
setTransform(updateMove, null, void 0, deg);
|
|
6115
|
-
state.currIndex = Math.abs(Math.round(updateMove / state.lineSpacing)) + 1;
|
|
6116
6140
|
}
|
|
6117
6141
|
};
|
|
6118
6142
|
const setChooseValue = () => {
|
|
@@ -6126,18 +6150,25 @@ const _sfc_main$1d = create$1d({
|
|
|
6126
6150
|
type && setChooseValue();
|
|
6127
6151
|
setMove(-move);
|
|
6128
6152
|
};
|
|
6153
|
+
const preventDefault2 = (event, isStopPropagation) => {
|
|
6154
|
+
if (typeof event.cancelable !== "boolean" || event.cancelable) {
|
|
6155
|
+
event.preventDefault();
|
|
6156
|
+
}
|
|
6157
|
+
if (isStopPropagation) {
|
|
6158
|
+
event.stopPropagation();
|
|
6159
|
+
}
|
|
6160
|
+
};
|
|
6161
|
+
const stopMomentum = () => {
|
|
6162
|
+
moving.value = false;
|
|
6163
|
+
setChooseValue();
|
|
6164
|
+
};
|
|
6129
6165
|
watch(() => props.column, (val) => {
|
|
6166
|
+
console.log("props.column\u53D8\u5316", props.column);
|
|
6130
6167
|
state.transformY = 0;
|
|
6131
6168
|
modifyStatus(false);
|
|
6132
6169
|
}, {
|
|
6133
6170
|
deep: true
|
|
6134
6171
|
});
|
|
6135
|
-
watch(() => props.value, (val) => {
|
|
6136
|
-
console.log("\u5217\u66F4\u65B0", val);
|
|
6137
|
-
modifyStatus(true);
|
|
6138
|
-
}, {
|
|
6139
|
-
deep: true
|
|
6140
|
-
});
|
|
6141
6172
|
onMounted(() => {
|
|
6142
6173
|
modifyStatus(true);
|
|
6143
6174
|
});
|
|
@@ -6149,61 +6180,64 @@ const _sfc_main$1d = create$1d({
|
|
|
6149
6180
|
isHidden,
|
|
6150
6181
|
roller,
|
|
6151
6182
|
list,
|
|
6152
|
-
listItem,
|
|
6153
6183
|
onTouchStart,
|
|
6154
6184
|
onTouchMove,
|
|
6155
6185
|
onTouchEnd,
|
|
6156
6186
|
touchRollerStyle,
|
|
6157
|
-
|
|
6158
|
-
setMove
|
|
6187
|
+
touchTileStyle,
|
|
6188
|
+
setMove,
|
|
6189
|
+
stopMomentum
|
|
6159
6190
|
};
|
|
6160
6191
|
}
|
|
6161
6192
|
});
|
|
6162
|
-
const _hoisted_1$$ = {
|
|
6163
|
-
|
|
6193
|
+
const _hoisted_1$$ = {
|
|
6194
|
+
key: 1,
|
|
6195
|
+
class: "nut-picker-roller-item-tile"
|
|
6196
|
+
};
|
|
6197
|
+
const _hoisted_2$P = /* @__PURE__ */ createElementVNode("view", { class: "nut-picker-roller-mask" }, null, -1);
|
|
6198
|
+
const _hoisted_3$D = {
|
|
6164
6199
|
key: 0,
|
|
6165
|
-
class: "nut-picker-
|
|
6200
|
+
class: "nut-picker-content"
|
|
6166
6201
|
};
|
|
6167
|
-
function _sfc_render$
|
|
6202
|
+
function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6168
6203
|
return openBlock(), createElementBlock("view", {
|
|
6169
6204
|
class: "nut-picker__list",
|
|
6170
|
-
onTouchstart: _cache[
|
|
6171
|
-
onTouchmove: _cache[
|
|
6172
|
-
onTouchend: _cache[
|
|
6205
|
+
onTouchstart: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
6206
|
+
onTouchmove: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
|
|
6207
|
+
onTouchend: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
6173
6208
|
}, [
|
|
6174
6209
|
createElementVNode("view", {
|
|
6175
6210
|
class: "nut-picker-roller",
|
|
6176
6211
|
ref: "roller",
|
|
6177
|
-
style: normalizeStyle(_ctx.touchRollerStyle)
|
|
6212
|
+
style: normalizeStyle(_ctx.threeDimensional ? _ctx.touchRollerStyle : _ctx.touchTileStyle),
|
|
6213
|
+
onTransitionend: _cache[0] || (_cache[0] = (...args) => _ctx.stopMomentum && _ctx.stopMomentum(...args))
|
|
6178
6214
|
}, [
|
|
6179
6215
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.column, (item, index) => {
|
|
6180
|
-
return openBlock(), createElementBlock(
|
|
6181
|
-
class: normalizeClass(["nut-picker-roller-item", { "nut-picker-roller-item-hidden": _ctx.isHidden(index + 1) }]),
|
|
6182
|
-
style: normalizeStyle(_ctx.setRollerStyle(index + 1)),
|
|
6216
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
6183
6217
|
key: item.value ? item.value : index
|
|
6184
|
-
},
|
|
6218
|
+
}, [
|
|
6219
|
+
item && item.text && _ctx.threeDimensional ? (openBlock(), createElementBlock("view", {
|
|
6220
|
+
key: 0,
|
|
6221
|
+
class: normalizeClass(["nut-picker-roller-item", { "nut-picker-roller-item-hidden": _ctx.isHidden(index + 1) }]),
|
|
6222
|
+
style: normalizeStyle(_ctx.setRollerStyle(index + 1))
|
|
6223
|
+
}, toDisplayString(item.text), 7)) : createCommentVNode("", true),
|
|
6224
|
+
item && item.text && !_ctx.threeDimensional ? (openBlock(), createElementBlock("view", _hoisted_1$$, toDisplayString(item.text), 1)) : createCommentVNode("", true)
|
|
6225
|
+
], 64);
|
|
6185
6226
|
}), 128))
|
|
6186
|
-
],
|
|
6187
|
-
|
|
6227
|
+
], 36),
|
|
6228
|
+
_hoisted_2$P,
|
|
6229
|
+
_ctx.threeDimensional ? (openBlock(), createElementBlock("view", _hoisted_3$D, [
|
|
6188
6230
|
createElementVNode("view", {
|
|
6189
6231
|
class: "nut-picker-list-panel",
|
|
6190
6232
|
ref: "list",
|
|
6191
|
-
style: normalizeStyle(_ctx.
|
|
6192
|
-
},
|
|
6193
|
-
|
|
6194
|
-
return openBlock(), createElementBlock("view", {
|
|
6195
|
-
class: normalizeClass(["nut-picker-item", "nut-picker-item-ref", item.className]),
|
|
6196
|
-
key: item.value ? item.value : index
|
|
6197
|
-
}, toDisplayString(item.text), 3);
|
|
6198
|
-
}), 128)),
|
|
6199
|
-
_ctx.column && _ctx.column.length === 1 ? (openBlock(), createElementBlock("view", _hoisted_2$P)) : createCommentVNode("", true)
|
|
6200
|
-
], 4)
|
|
6201
|
-
])
|
|
6233
|
+
style: normalizeStyle(_ctx.touchTileStyle)
|
|
6234
|
+
}, null, 4)
|
|
6235
|
+
])) : createCommentVNode("", true)
|
|
6202
6236
|
], 32);
|
|
6203
6237
|
}
|
|
6204
|
-
var column$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6205
|
-
const { componentName: componentName$
|
|
6206
|
-
const _sfc_main$
|
|
6238
|
+
var column$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$1a]]);
|
|
6239
|
+
const { componentName: componentName$12, create: create$1d, translate: translate$o } = createComponent("picker");
|
|
6240
|
+
const _sfc_main$1d = create$1d({
|
|
6207
6241
|
components: {
|
|
6208
6242
|
[column$1.name]: column$1,
|
|
6209
6243
|
[Popup.name]: Popup
|
|
@@ -6235,6 +6269,10 @@ const _sfc_main$1c = create$1c({
|
|
|
6235
6269
|
readonly: {
|
|
6236
6270
|
type: Boolean,
|
|
6237
6271
|
default: false
|
|
6272
|
+
},
|
|
6273
|
+
threeDimensional: {
|
|
6274
|
+
type: Boolean,
|
|
6275
|
+
default: true
|
|
6238
6276
|
}
|
|
6239
6277
|
},
|
|
6240
6278
|
emits: ["close", "change", "confirm", "update:visible", "update:modelValue"],
|
|
@@ -6244,8 +6282,9 @@ const _sfc_main$1c = create$1c({
|
|
|
6244
6282
|
formattedColumns: props.columns
|
|
6245
6283
|
});
|
|
6246
6284
|
let defaultValues = ref(props.modelValue);
|
|
6285
|
+
ref();
|
|
6247
6286
|
const classes = computed(() => {
|
|
6248
|
-
const prefixCls = componentName$
|
|
6287
|
+
const prefixCls = componentName$12;
|
|
6249
6288
|
return {
|
|
6250
6289
|
[prefixCls]: true
|
|
6251
6290
|
};
|
|
@@ -6302,7 +6341,10 @@ const _sfc_main$1c = create$1c({
|
|
|
6302
6341
|
return formatted;
|
|
6303
6342
|
};
|
|
6304
6343
|
const close = () => {
|
|
6305
|
-
emit("close"
|
|
6344
|
+
emit("close", {
|
|
6345
|
+
selectedValue: defaultValues.value,
|
|
6346
|
+
selectedOptions: selectedOptions.value
|
|
6347
|
+
});
|
|
6306
6348
|
emit("update:visible", false);
|
|
6307
6349
|
};
|
|
6308
6350
|
const changeHandler = (columnIndex, option) => {
|
|
@@ -6334,7 +6376,6 @@ const _sfc_main$1c = create$1c({
|
|
|
6334
6376
|
emit("update:visible", false);
|
|
6335
6377
|
};
|
|
6336
6378
|
onMounted(() => {
|
|
6337
|
-
console.log(11, props.modelValue);
|
|
6338
6379
|
if (props.visible)
|
|
6339
6380
|
state.show = props.visible;
|
|
6340
6381
|
});
|
|
@@ -6343,7 +6384,6 @@ const _sfc_main$1c = create$1c({
|
|
|
6343
6384
|
state.show = false;
|
|
6344
6385
|
});
|
|
6345
6386
|
watch(() => props.modelValue, (newValues) => {
|
|
6346
|
-
console.log("change", newValues, defaultValues.value);
|
|
6347
6387
|
const isSameValue = JSON.stringify(newValues) === JSON.stringify(defaultValues.value);
|
|
6348
6388
|
if (!isSameValue) {
|
|
6349
6389
|
defaultValues.value = newValues;
|
|
@@ -6356,7 +6396,6 @@ const _sfc_main$1c = create$1c({
|
|
|
6356
6396
|
}
|
|
6357
6397
|
}, { immediate: true });
|
|
6358
6398
|
watch(() => props.visible, (val) => {
|
|
6359
|
-
console.log("props\u66F4\u65B0", props.columns);
|
|
6360
6399
|
state.show = val;
|
|
6361
6400
|
});
|
|
6362
6401
|
watch(() => props.columns, (val) => {
|
|
@@ -6379,9 +6418,12 @@ const _sfc_main$1c = create$1c({
|
|
|
6379
6418
|
});
|
|
6380
6419
|
const _hoisted_1$_ = { class: "nut-picker__bar" };
|
|
6381
6420
|
const _hoisted_2$O = { class: "nut-picker__title" };
|
|
6382
|
-
const _hoisted_3$C = {
|
|
6421
|
+
const _hoisted_3$C = {
|
|
6422
|
+
class: "nut-picker__column",
|
|
6423
|
+
ref: "wrapHeight"
|
|
6424
|
+
};
|
|
6383
6425
|
const _hoisted_4$u = /* @__PURE__ */ createElementVNode("view", { class: "nut-picker__hairline" }, null, -1);
|
|
6384
|
-
function _sfc_render$
|
|
6426
|
+
function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6385
6427
|
const _component_nut_picker_column = resolveComponent("nut-picker-column");
|
|
6386
6428
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
6387
6429
|
return openBlock(), createElementBlock("view", {
|
|
@@ -6424,20 +6466,21 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6424
6466
|
readonly: _ctx.readonly,
|
|
6425
6467
|
columnsType: _ctx.columnsType,
|
|
6426
6468
|
value: _ctx.defaultValues[columnIndex],
|
|
6469
|
+
threeDimensional: _ctx.threeDimensional,
|
|
6427
6470
|
onChange: (option) => {
|
|
6428
6471
|
_ctx.changeHandler(columnIndex, option);
|
|
6429
6472
|
}
|
|
6430
|
-
}, null, 8, ["itemShow", "column", "readonly", "columnsType", "value", "onChange"])
|
|
6473
|
+
}, null, 8, ["itemShow", "column", "readonly", "columnsType", "value", "threeDimensional", "onChange"])
|
|
6431
6474
|
]);
|
|
6432
6475
|
}), 128))
|
|
6433
|
-
]),
|
|
6476
|
+
], 512),
|
|
6434
6477
|
renderSlot(_ctx.$slots, "default")
|
|
6435
6478
|
]),
|
|
6436
6479
|
_: 3
|
|
6437
6480
|
}, 8, ["visible", "teleport", "lock-scroll", "close-on-click-overlay", "onClose", "isWrapTeleport"])
|
|
6438
6481
|
], 2);
|
|
6439
6482
|
}
|
|
6440
|
-
var Picker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6483
|
+
var Picker = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["render", _sfc_render$19]]);
|
|
6441
6484
|
function padZero$1(num, targetLength = 2) {
|
|
6442
6485
|
let str = num + "";
|
|
6443
6486
|
while (str.length < targetLength) {
|
|
@@ -6445,7 +6488,7 @@ function padZero$1(num, targetLength = 2) {
|
|
|
6445
6488
|
}
|
|
6446
6489
|
return str;
|
|
6447
6490
|
}
|
|
6448
|
-
const { componentName: componentName$
|
|
6491
|
+
const { componentName: componentName$11, create: create$1c, translate: translate$n } = createComponent("datepicker");
|
|
6449
6492
|
const currentYear = new Date().getFullYear();
|
|
6450
6493
|
function isDate(val) {
|
|
6451
6494
|
return Object.prototype.toString.call(val) === "[object Date]" && !isNaN(val.getTime());
|
|
@@ -6458,7 +6501,7 @@ const zhCNType = {
|
|
|
6458
6501
|
minute: translate$n("minute"),
|
|
6459
6502
|
seconds: translate$n("seconds")
|
|
6460
6503
|
};
|
|
6461
|
-
const _sfc_main$
|
|
6504
|
+
const _sfc_main$1c = create$1c({
|
|
6462
6505
|
components: {
|
|
6463
6506
|
[Picker.name]: Picker
|
|
6464
6507
|
},
|
|
@@ -6503,6 +6546,10 @@ const _sfc_main$1b = create$1b({
|
|
|
6503
6546
|
type: Function,
|
|
6504
6547
|
default: null
|
|
6505
6548
|
},
|
|
6549
|
+
threeDimensional: {
|
|
6550
|
+
type: Boolean,
|
|
6551
|
+
default: true
|
|
6552
|
+
},
|
|
6506
6553
|
filter: Function
|
|
6507
6554
|
},
|
|
6508
6555
|
emits: ["click", "update:visible", "change", "confirm", "update:moduleValue"],
|
|
@@ -6726,7 +6773,7 @@ const _sfc_main$1b = create$1b({
|
|
|
6726
6773
|
};
|
|
6727
6774
|
}
|
|
6728
6775
|
});
|
|
6729
|
-
function _sfc_render$
|
|
6776
|
+
function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6730
6777
|
const _component_nut_picker = resolveComponent("nut-picker");
|
|
6731
6778
|
return openBlock(), createBlock(_component_nut_picker, {
|
|
6732
6779
|
modelValue: _ctx.selectedValue,
|
|
@@ -6740,17 +6787,18 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6740
6787
|
onChange: _ctx.changeHandler,
|
|
6741
6788
|
title: _ctx.title,
|
|
6742
6789
|
onConfirm: _ctx.confirm,
|
|
6743
|
-
isWrapTeleport: _ctx.isWrapTeleport
|
|
6790
|
+
isWrapTeleport: _ctx.isWrapTeleport,
|
|
6791
|
+
threeDimensional: _ctx.threeDimensional
|
|
6744
6792
|
}, {
|
|
6745
6793
|
default: withCtx(() => [
|
|
6746
6794
|
renderSlot(_ctx.$slots, "default")
|
|
6747
6795
|
]),
|
|
6748
6796
|
_: 3
|
|
6749
|
-
}, 8, ["modelValue", "visible", "okText", "cancelText", "onClose", "columns", "onChange", "title", "onConfirm", "isWrapTeleport"]);
|
|
6797
|
+
}, 8, ["modelValue", "visible", "okText", "cancelText", "onClose", "columns", "onChange", "title", "onConfirm", "isWrapTeleport", "threeDimensional"]);
|
|
6750
6798
|
}
|
|
6751
|
-
var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6752
|
-
const { componentName: componentName
|
|
6753
|
-
const _sfc_main$
|
|
6799
|
+
var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["render", _sfc_render$18]]);
|
|
6800
|
+
const { componentName: componentName$10, create: create$1b } = createComponent("inputnumber");
|
|
6801
|
+
const _sfc_main$1b = create$1b({
|
|
6754
6802
|
props: {
|
|
6755
6803
|
modelValue: {
|
|
6756
6804
|
type: [Number, String],
|
|
@@ -6792,7 +6840,7 @@ const _sfc_main$1a = create$1a({
|
|
|
6792
6840
|
emits: ["update:modelValue", "change", "blur", "focus", "reduce", "add", "overlimit"],
|
|
6793
6841
|
setup(props, { emit }) {
|
|
6794
6842
|
const classes = computed(() => {
|
|
6795
|
-
const prefixCls = componentName
|
|
6843
|
+
const prefixCls = componentName$10;
|
|
6796
6844
|
return {
|
|
6797
6845
|
[prefixCls]: true,
|
|
6798
6846
|
[`${prefixCls}--disabled`]: props.disabled
|
|
@@ -6870,7 +6918,7 @@ const _sfc_main$1a = create$1a({
|
|
|
6870
6918
|
}
|
|
6871
6919
|
});
|
|
6872
6920
|
const _hoisted_1$Z = ["min", "max", "disabled", "readonly", "value"];
|
|
6873
|
-
function _sfc_render$
|
|
6921
|
+
function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6874
6922
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
6875
6923
|
return openBlock(), createElementBlock("view", {
|
|
6876
6924
|
class: normalizeClass(_ctx.classes),
|
|
@@ -6902,7 +6950,7 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6902
6950
|
}, null, 8, ["class", "size", "onClick"])
|
|
6903
6951
|
], 6);
|
|
6904
6952
|
}
|
|
6905
|
-
var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6953
|
+
var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$17]]);
|
|
6906
6954
|
function trimExtraChar(value, char, regExp) {
|
|
6907
6955
|
const index = value.indexOf(char);
|
|
6908
6956
|
if (index === -1) {
|
|
@@ -6927,8 +6975,8 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
|
|
|
6927
6975
|
const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
6928
6976
|
return value.replace(regExp, "");
|
|
6929
6977
|
}
|
|
6930
|
-
const { componentName: componentName
|
|
6931
|
-
const _sfc_main$
|
|
6978
|
+
const { componentName: componentName$$, create: create$1a, translate: translate$m } = createComponent("input");
|
|
6979
|
+
const _sfc_main$1a = create$1a({
|
|
6932
6980
|
props: {
|
|
6933
6981
|
ref: {
|
|
6934
6982
|
type: String,
|
|
@@ -7084,7 +7132,7 @@ const _sfc_main$19 = create$19({
|
|
|
7084
7132
|
validateMessage: ""
|
|
7085
7133
|
});
|
|
7086
7134
|
const classes = computed(() => {
|
|
7087
|
-
const prefixCls = componentName
|
|
7135
|
+
const prefixCls = componentName$$;
|
|
7088
7136
|
return {
|
|
7089
7137
|
[prefixCls]: true,
|
|
7090
7138
|
center: props.center,
|
|
@@ -7211,7 +7259,7 @@ const _hoisted_7$h = {
|
|
|
7211
7259
|
class: "nut-input-word-limit"
|
|
7212
7260
|
};
|
|
7213
7261
|
const _hoisted_8$c = { class: "nut-input-word-num" };
|
|
7214
|
-
function _sfc_render$
|
|
7262
|
+
function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7215
7263
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
7216
7264
|
return openBlock(), createElementBlock("view", {
|
|
7217
7265
|
class: normalizeClass(_ctx.classes)
|
|
@@ -7332,9 +7380,9 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7332
7380
|
], 64))
|
|
7333
7381
|
], 2);
|
|
7334
7382
|
}
|
|
7335
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7336
|
-
const { componentName: componentName$
|
|
7337
|
-
const _sfc_main$
|
|
7383
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$16]]);
|
|
7384
|
+
const { componentName: componentName$_, create: create$19 } = createComponent("radio");
|
|
7385
|
+
const _sfc_main$19 = create$19({
|
|
7338
7386
|
props: {
|
|
7339
7387
|
disabled: {
|
|
7340
7388
|
type: Boolean,
|
|
@@ -7382,7 +7430,7 @@ const _sfc_main$18 = create$18({
|
|
|
7382
7430
|
});
|
|
7383
7431
|
const renderIcon = () => {
|
|
7384
7432
|
const { iconName, iconSize, iconActiveName, iconClassPrefix, iconFontClassName } = props;
|
|
7385
|
-
return h(_sfc_main$
|
|
7433
|
+
return h(_sfc_main$1P, {
|
|
7386
7434
|
name: isCurValue.value ? iconActiveName : iconName,
|
|
7387
7435
|
size: iconSize,
|
|
7388
7436
|
class: color.value,
|
|
@@ -7393,13 +7441,13 @@ const _sfc_main$18 = create$18({
|
|
|
7393
7441
|
const renderLabel = () => {
|
|
7394
7442
|
var _a;
|
|
7395
7443
|
return h("view", {
|
|
7396
|
-
class: `${componentName$
|
|
7444
|
+
class: `${componentName$_}__label ${props.disabled ? `${componentName$_}__label--disabled` : ""}`
|
|
7397
7445
|
}, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
7398
7446
|
};
|
|
7399
7447
|
const renderButton = () => {
|
|
7400
7448
|
var _a;
|
|
7401
7449
|
return h("view", {
|
|
7402
|
-
class: `${componentName$
|
|
7450
|
+
class: `${componentName$_}__button ${isCurValue.value && `${componentName$_}__button--active`} ${props.disabled ? `${componentName$_}__button--disabled` : ""}`
|
|
7403
7451
|
}, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
7404
7452
|
};
|
|
7405
7453
|
const handleClick = () => {
|
|
@@ -7410,7 +7458,7 @@ const _sfc_main$18 = create$18({
|
|
|
7410
7458
|
let reverseState = position.value === "left";
|
|
7411
7459
|
return () => {
|
|
7412
7460
|
return h("view", {
|
|
7413
|
-
class: `${componentName$
|
|
7461
|
+
class: `${componentName$_} ${componentName$_}--${props.shape} ${reverseState ? `${componentName$_}--reverse` : ""}`,
|
|
7414
7462
|
onClick: handleClick
|
|
7415
7463
|
}, [
|
|
7416
7464
|
props.shape == "button" ? renderButton() : reverseState ? [renderLabel(), renderIcon()] : [renderIcon(), renderLabel()]
|
|
@@ -7418,8 +7466,8 @@ const _sfc_main$18 = create$18({
|
|
|
7418
7466
|
};
|
|
7419
7467
|
}
|
|
7420
7468
|
});
|
|
7421
|
-
const { componentName: componentName$
|
|
7422
|
-
const _sfc_main$
|
|
7469
|
+
const { componentName: componentName$Z, create: create$18 } = createComponent("radiogroup");
|
|
7470
|
+
const _sfc_main$18 = create$18({
|
|
7423
7471
|
props: {
|
|
7424
7472
|
modelValue: {
|
|
7425
7473
|
type: [Number, String, Boolean],
|
|
@@ -7446,12 +7494,12 @@ const _sfc_main$17 = create$17({
|
|
|
7446
7494
|
return () => {
|
|
7447
7495
|
var _a;
|
|
7448
7496
|
return h("view", {
|
|
7449
|
-
class: `${componentName$
|
|
7497
|
+
class: `${componentName$Z} ${componentName$Z}--${props.direction}`
|
|
7450
7498
|
}, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
7451
7499
|
};
|
|
7452
7500
|
}
|
|
7453
7501
|
});
|
|
7454
|
-
const { componentName: componentName$
|
|
7502
|
+
const { componentName: componentName$Y } = createComponent("rate");
|
|
7455
7503
|
const useComponent = (touchable = true) => {
|
|
7456
7504
|
return {
|
|
7457
7505
|
props: {
|
|
@@ -7516,7 +7564,7 @@ const useComponent = (touchable = true) => {
|
|
|
7516
7564
|
setup(props, { emit }) {
|
|
7517
7565
|
const rateRefs = ref([]);
|
|
7518
7566
|
const classes = computed(() => {
|
|
7519
|
-
const prefixCls = componentName$
|
|
7567
|
+
const prefixCls = componentName$Y;
|
|
7520
7568
|
return {
|
|
7521
7569
|
[prefixCls]: true
|
|
7522
7570
|
};
|
|
@@ -7634,11 +7682,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7634
7682
|
}), 128))
|
|
7635
7683
|
], 34);
|
|
7636
7684
|
}
|
|
7637
|
-
const { create: create$
|
|
7638
|
-
const _sfc_main$
|
|
7639
|
-
var Rate = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7640
|
-
const { create: create$
|
|
7641
|
-
const _sfc_main$
|
|
7685
|
+
const { create: create$17 } = createComponent("rate");
|
|
7686
|
+
const _sfc_main$17 = create$17(component$3);
|
|
7687
|
+
var Rate = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["render", render]]);
|
|
7688
|
+
const { create: create$16, translate: translate$l } = createComponent("shortpassword");
|
|
7689
|
+
const _sfc_main$16 = create$16({
|
|
7642
7690
|
props: {
|
|
7643
7691
|
title: {
|
|
7644
7692
|
type: String,
|
|
@@ -7781,7 +7829,7 @@ const _hoisted_9$7 = {
|
|
|
7781
7829
|
key: 0,
|
|
7782
7830
|
class: "nut-shortpsd-footer"
|
|
7783
7831
|
};
|
|
7784
|
-
function _sfc_render$
|
|
7832
|
+
function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7785
7833
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
7786
7834
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
7787
7835
|
return openBlock(), createElementBlock("view", null, [
|
|
@@ -7857,9 +7905,9 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7857
7905
|
}, 8, ["visible", "onClickCloseIcon", "close-on-click-overlay", "onClickOverlay", "isWrapTeleport"])
|
|
7858
7906
|
]);
|
|
7859
7907
|
}
|
|
7860
|
-
var ShortPassword = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7861
|
-
const { componentName: componentName$
|
|
7862
|
-
const _sfc_main$
|
|
7908
|
+
var ShortPassword = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_render$15]]);
|
|
7909
|
+
const { componentName: componentName$X, create: create$15, translate: translate$k } = createComponent("textarea");
|
|
7910
|
+
const _sfc_main$15 = create$15({
|
|
7863
7911
|
props: {
|
|
7864
7912
|
modelValue: {
|
|
7865
7913
|
type: [String, Number],
|
|
@@ -7906,7 +7954,7 @@ const _sfc_main$14 = create$14({
|
|
|
7906
7954
|
setup(props, { emit }) {
|
|
7907
7955
|
const textareaRef = ref();
|
|
7908
7956
|
const classes = computed(() => {
|
|
7909
|
-
const prefixCls = componentName$
|
|
7957
|
+
const prefixCls = componentName$X;
|
|
7910
7958
|
return {
|
|
7911
7959
|
[prefixCls]: true,
|
|
7912
7960
|
[`${prefixCls}--disabled`]: props.disabled
|
|
@@ -7991,7 +8039,7 @@ const _hoisted_2$L = {
|
|
|
7991
8039
|
key: 0,
|
|
7992
8040
|
class: "nut-textarea__limit"
|
|
7993
8041
|
};
|
|
7994
|
-
function _sfc_render$
|
|
8042
|
+
function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7995
8043
|
return openBlock(), createElementBlock("view", {
|
|
7996
8044
|
class: normalizeClass(_ctx.classes)
|
|
7997
8045
|
}, [
|
|
@@ -8013,7 +8061,7 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8013
8061
|
_ctx.limitShow ? (openBlock(), createElementBlock("view", _hoisted_2$L, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0) + "/" + toDisplayString(_ctx.maxLength), 1)) : createCommentVNode("", true)
|
|
8014
8062
|
], 2);
|
|
8015
8063
|
}
|
|
8016
|
-
var TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8064
|
+
var TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["render", _sfc_render$14]]);
|
|
8017
8065
|
class UploadOptions {
|
|
8018
8066
|
constructor() {
|
|
8019
8067
|
this.url = "";
|
|
@@ -8108,8 +8156,8 @@ class FileItem {
|
|
|
8108
8156
|
this.formData = {};
|
|
8109
8157
|
}
|
|
8110
8158
|
}
|
|
8111
|
-
const { componentName: componentName$
|
|
8112
|
-
const _sfc_main$
|
|
8159
|
+
const { componentName: componentName$W, create: create$14, translate: translate$i } = createComponent("uploader");
|
|
8160
|
+
const _sfc_main$14 = create$14({
|
|
8113
8161
|
props: {
|
|
8114
8162
|
name: { type: String, default: "file" },
|
|
8115
8163
|
url: { type: String, default: "" },
|
|
@@ -8160,7 +8208,7 @@ const _sfc_main$13 = create$13({
|
|
|
8160
8208
|
const fileList = reactive(props.fileList);
|
|
8161
8209
|
let uploadQueue = [];
|
|
8162
8210
|
const classes = computed(() => {
|
|
8163
|
-
const prefixCls = componentName$
|
|
8211
|
+
const prefixCls = componentName$W;
|
|
8164
8212
|
return {
|
|
8165
8213
|
[prefixCls]: true
|
|
8166
8214
|
};
|
|
@@ -8350,15 +8398,15 @@ const _hoisted_10$4 = {
|
|
|
8350
8398
|
class: "nut-uploader__preview-img__file"
|
|
8351
8399
|
};
|
|
8352
8400
|
const _hoisted_11$4 = ["onClick"];
|
|
8353
|
-
const _hoisted_12$
|
|
8354
|
-
const _hoisted_13$
|
|
8401
|
+
const _hoisted_12$4 = { class: "tips" };
|
|
8402
|
+
const _hoisted_13$2 = {
|
|
8355
8403
|
key: 1,
|
|
8356
8404
|
class: "nut-uploader__preview-list"
|
|
8357
8405
|
};
|
|
8358
8406
|
const _hoisted_14$1 = ["onClick"];
|
|
8359
8407
|
const _hoisted_15$1 = ["accept", "multiple", "name", "disabled"];
|
|
8360
8408
|
const _hoisted_16$1 = ["accept", "multiple", "name", "disabled"];
|
|
8361
|
-
function _sfc_render$
|
|
8409
|
+
function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8362
8410
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
8363
8411
|
const _component_nut_progress = resolveComponent("nut-progress");
|
|
8364
8412
|
return openBlock(), createElementBlock("view", {
|
|
@@ -8428,8 +8476,8 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8428
8476
|
createTextVNode("\xA0" + toDisplayString(item.name), 1)
|
|
8429
8477
|
], 8, _hoisted_11$4)
|
|
8430
8478
|
])),
|
|
8431
|
-
createElementVNode("view", _hoisted_12$
|
|
8432
|
-
])) : _ctx.listType == "list" ? (openBlock(), createElementBlock("view", _hoisted_13$
|
|
8479
|
+
createElementVNode("view", _hoisted_12$4, toDisplayString(item.name), 1)
|
|
8480
|
+
])) : _ctx.listType == "list" ? (openBlock(), createElementBlock("view", _hoisted_13$2, [
|
|
8433
8481
|
createElementVNode("view", {
|
|
8434
8482
|
onClick: ($event) => _ctx.fileItemClick(item),
|
|
8435
8483
|
class: normalizeClass(["nut-uploader__preview-img__file__name", [item.status]])
|
|
@@ -8485,9 +8533,9 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8485
8533
|
], 2)) : createCommentVNode("", true)
|
|
8486
8534
|
], 2);
|
|
8487
8535
|
}
|
|
8488
|
-
var Uploader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8489
|
-
const { create: create$
|
|
8490
|
-
const _sfc_main$
|
|
8536
|
+
var Uploader = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_render$13]]);
|
|
8537
|
+
const { create: create$13, translate: translate$h } = createComponent("numberkeyboard");
|
|
8538
|
+
const _sfc_main$13 = create$13({
|
|
8491
8539
|
props: {
|
|
8492
8540
|
confirmText: {
|
|
8493
8541
|
type: String,
|
|
@@ -8671,10 +8719,10 @@ const _hoisted_9$5 = {
|
|
|
8671
8719
|
};
|
|
8672
8720
|
const _hoisted_10$3 = { class: "key-board-wrapper" };
|
|
8673
8721
|
const _hoisted_11$3 = /* @__PURE__ */ createElementVNode("img", { src: "https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png" }, null, -1);
|
|
8674
|
-
const _hoisted_12$
|
|
8722
|
+
const _hoisted_12$3 = [
|
|
8675
8723
|
_hoisted_11$3
|
|
8676
8724
|
];
|
|
8677
|
-
function _sfc_render$
|
|
8725
|
+
function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8678
8726
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
8679
8727
|
return openBlock(), createBlock(_component_nut_popup, {
|
|
8680
8728
|
visible: _ctx.show,
|
|
@@ -8735,7 +8783,7 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8735
8783
|
onTouchstart: _cache[2] || (_cache[2] = (event) => _ctx.onTouchstart({ id: "delete", type: "delete" }, event)),
|
|
8736
8784
|
onTouchmove: _cache[3] || (_cache[3] = (event) => _ctx.onTouchMove({ id: "delete", type: "delete" }, event)),
|
|
8737
8785
|
onTouchend: _cache[4] || (_cache[4] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
8738
|
-
}, _hoisted_12$
|
|
8786
|
+
}, _hoisted_12$3, 34)
|
|
8739
8787
|
]),
|
|
8740
8788
|
_ctx.title == "" ? (openBlock(), createElementBlock("div", {
|
|
8741
8789
|
key: 0,
|
|
@@ -8753,7 +8801,7 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8753
8801
|
_: 1
|
|
8754
8802
|
}, 8, ["visible", "teleport", "popClass", "overlay", "isWrapTeleport"]);
|
|
8755
8803
|
}
|
|
8756
|
-
var NumberKeyboard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8804
|
+
var NumberKeyboard = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$12]]);
|
|
8757
8805
|
const component$2 = {
|
|
8758
8806
|
props: {
|
|
8759
8807
|
modelValue: {
|
|
@@ -8884,9 +8932,9 @@ const component$2 = {
|
|
|
8884
8932
|
return { validate, reset, onSubmit, formErrorTip };
|
|
8885
8933
|
}
|
|
8886
8934
|
};
|
|
8887
|
-
const { create: create$
|
|
8888
|
-
const _sfc_main$
|
|
8889
|
-
function _sfc_render$
|
|
8935
|
+
const { create: create$12 } = createComponent("form");
|
|
8936
|
+
const _sfc_main$12 = create$12(component$2);
|
|
8937
|
+
function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8890
8938
|
const _component_nut_cell_group = resolveComponent("nut-cell-group");
|
|
8891
8939
|
return openBlock(), createElementBlock("form", {
|
|
8892
8940
|
class: "nut-form",
|
|
@@ -8901,9 +8949,9 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8901
8949
|
})
|
|
8902
8950
|
], 32);
|
|
8903
8951
|
}
|
|
8904
|
-
var Form = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8905
|
-
const { componentName: componentName$
|
|
8906
|
-
const _sfc_main$
|
|
8952
|
+
var Form = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$11]]);
|
|
8953
|
+
const { componentName: componentName$V, create: create$11 } = createComponent("form-item");
|
|
8954
|
+
const _sfc_main$11 = create$11({
|
|
8907
8955
|
inheritAttrs: false,
|
|
8908
8956
|
props: {
|
|
8909
8957
|
prop: {
|
|
@@ -8976,7 +9024,7 @@ const _sfc_main$10 = create$10({
|
|
|
8976
9024
|
}
|
|
8977
9025
|
});
|
|
8978
9026
|
const _hoisted_1$S = { class: "nut-cell__value nut-form-item__body" };
|
|
8979
|
-
function _sfc_render
|
|
9027
|
+
function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8980
9028
|
const _component_nut_cell = resolveComponent("nut-cell");
|
|
8981
9029
|
return openBlock(), createBlock(_component_nut_cell, {
|
|
8982
9030
|
class: normalizeClass(["nut-form-item", [{ error: _ctx.parent[_ctx.prop], line: _ctx.showErrorLine }, _ctx.$attrs.class]]),
|
|
@@ -9009,9 +9057,9 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9009
9057
|
_: 3
|
|
9010
9058
|
}, 8, ["class", "style"]);
|
|
9011
9059
|
}
|
|
9012
|
-
var FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9013
|
-
const { create: create
|
|
9014
|
-
const _sfc_main
|
|
9060
|
+
var FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$10]]);
|
|
9061
|
+
const { create: create$10 } = createComponent("oldpicker-column");
|
|
9062
|
+
const _sfc_main$10 = create$10({
|
|
9015
9063
|
props: {
|
|
9016
9064
|
dataType: String,
|
|
9017
9065
|
itemShow: {
|
|
@@ -9193,7 +9241,7 @@ const _hoisted_2$I = {
|
|
|
9193
9241
|
key: 0,
|
|
9194
9242
|
class: "nut-oldpicker-placeholder"
|
|
9195
9243
|
};
|
|
9196
|
-
function _sfc_render
|
|
9244
|
+
function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9197
9245
|
return openBlock(), createElementBlock("view", {
|
|
9198
9246
|
class: "nut-oldpicker__list",
|
|
9199
9247
|
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
@@ -9230,9 +9278,9 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9230
9278
|
])
|
|
9231
9279
|
], 32);
|
|
9232
9280
|
}
|
|
9233
|
-
var column = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
9234
|
-
const { create: create
|
|
9235
|
-
const _sfc_main
|
|
9281
|
+
var column = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$$]]);
|
|
9282
|
+
const { create: create$$, componentName: componentName$U } = createComponent("oldpicker");
|
|
9283
|
+
const _sfc_main$$ = create$$({
|
|
9236
9284
|
components: {
|
|
9237
9285
|
[column.name]: column,
|
|
9238
9286
|
[Popup.name]: Popup
|
|
@@ -9278,7 +9326,7 @@ const _sfc_main$_ = create$_({
|
|
|
9278
9326
|
let _defaultIndex = props.defaultIndex;
|
|
9279
9327
|
let defaultIndexList = [];
|
|
9280
9328
|
const classes = computed(() => {
|
|
9281
|
-
const prefixCls = componentName$
|
|
9329
|
+
const prefixCls = componentName$U;
|
|
9282
9330
|
return {
|
|
9283
9331
|
[prefixCls]: true
|
|
9284
9332
|
};
|
|
@@ -9410,7 +9458,7 @@ const _hoisted_1$Q = { class: "nut-oldpicker__bar" };
|
|
|
9410
9458
|
const _hoisted_2$H = { class: "nut-oldpicker__title" };
|
|
9411
9459
|
const _hoisted_3$x = { class: "nut-oldpicker__column" };
|
|
9412
9460
|
const _hoisted_4$p = /* @__PURE__ */ createElementVNode("view", { class: "nut-oldpicker__hairline" }, null, -1);
|
|
9413
|
-
function _sfc_render$
|
|
9461
|
+
function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9414
9462
|
const _component_nut_oldpicker_column = resolveComponent("nut-oldpicker-column");
|
|
9415
9463
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
9416
9464
|
return openBlock(), createElementBlock("view", {
|
|
@@ -9464,9 +9512,9 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9464
9512
|
}, 8, ["visible", "teleport", "lock-scroll", "close-on-click-overlay", "onClose", "isWrapTeleport"])
|
|
9465
9513
|
], 2);
|
|
9466
9514
|
}
|
|
9467
|
-
var OldPicker = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
9468
|
-
const { componentName: componentName$
|
|
9469
|
-
const _sfc_main$
|
|
9515
|
+
var OldPicker = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$_]]);
|
|
9516
|
+
const { componentName: componentName$T, create: create$_ } = createComponent("swipe");
|
|
9517
|
+
const _sfc_main$_ = create$_({
|
|
9470
9518
|
props: {
|
|
9471
9519
|
name: {
|
|
9472
9520
|
type: String,
|
|
@@ -9488,7 +9536,7 @@ const _sfc_main$Z = create$Z({
|
|
|
9488
9536
|
emits: ["open", "close"],
|
|
9489
9537
|
setup(props, { emit }) {
|
|
9490
9538
|
const classes = computed(() => {
|
|
9491
|
-
const prefixCls = componentName$
|
|
9539
|
+
const prefixCls = componentName$T;
|
|
9492
9540
|
return {
|
|
9493
9541
|
[prefixCls]: true
|
|
9494
9542
|
};
|
|
@@ -9621,7 +9669,7 @@ const _hoisted_3$w = {
|
|
|
9621
9669
|
class: "nut-swipe__right",
|
|
9622
9670
|
ref: "rightRef"
|
|
9623
9671
|
};
|
|
9624
|
-
function _sfc_render$
|
|
9672
|
+
function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9625
9673
|
return openBlock(), createElementBlock("view", {
|
|
9626
9674
|
class: normalizeClass(_ctx.classes),
|
|
9627
9675
|
style: normalizeStyle(_ctx.touchStyle),
|
|
@@ -9641,9 +9689,9 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9641
9689
|
], 512)
|
|
9642
9690
|
], 38);
|
|
9643
9691
|
}
|
|
9644
|
-
var Swipe = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9645
|
-
const { componentName: componentName$
|
|
9646
|
-
const _sfc_main$
|
|
9692
|
+
var Swipe = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$Z]]);
|
|
9693
|
+
const { componentName: componentName$S, create: create$Z } = createComponent("actionsheet");
|
|
9694
|
+
const _sfc_main$Z = create$Z({
|
|
9647
9695
|
props: {
|
|
9648
9696
|
...popupProps,
|
|
9649
9697
|
cancelTxt: {
|
|
@@ -9681,13 +9729,17 @@ const _sfc_main$Y = create$Y({
|
|
|
9681
9729
|
isWrapTeleport: {
|
|
9682
9730
|
type: Boolean,
|
|
9683
9731
|
default: true
|
|
9732
|
+
},
|
|
9733
|
+
closeAbled: {
|
|
9734
|
+
type: Boolean,
|
|
9735
|
+
default: true
|
|
9684
9736
|
}
|
|
9685
9737
|
},
|
|
9686
9738
|
emits: ["cancel", "close", "choose", "update:visible"],
|
|
9687
9739
|
setup(props, { emit }) {
|
|
9688
9740
|
const slotDefault = !!useSlots().default;
|
|
9689
9741
|
const classes = computed(() => {
|
|
9690
|
-
const prefixCls = componentName$
|
|
9742
|
+
const prefixCls = componentName$S;
|
|
9691
9743
|
return {
|
|
9692
9744
|
[prefixCls]: true
|
|
9693
9745
|
};
|
|
@@ -9736,7 +9788,7 @@ const _hoisted_5$h = {
|
|
|
9736
9788
|
const _hoisted_6$g = ["onClick"];
|
|
9737
9789
|
const _hoisted_7$d = { key: 1 };
|
|
9738
9790
|
const _hoisted_8$8 = { class: "subdesc" };
|
|
9739
|
-
function _sfc_render$
|
|
9791
|
+
function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9740
9792
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
9741
9793
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
9742
9794
|
return openBlock(), createElementBlock("view", {
|
|
@@ -9748,7 +9800,8 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9748
9800
|
isWrapTeleport: _ctx.isWrapTeleport,
|
|
9749
9801
|
position: "bottom",
|
|
9750
9802
|
round: "",
|
|
9751
|
-
onClickOverlay: _ctx.close
|
|
9803
|
+
onClickOverlay: _ctx.close,
|
|
9804
|
+
closeOnClickOverlay: _ctx.closeAbled
|
|
9752
9805
|
}, {
|
|
9753
9806
|
default: withCtx(() => [
|
|
9754
9807
|
createElementVNode("view", _hoisted_1$O, [
|
|
@@ -9781,12 +9834,12 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9781
9834
|
])
|
|
9782
9835
|
]),
|
|
9783
9836
|
_: 3
|
|
9784
|
-
}, 8, ["visible", "isWrapTeleport", "onClickOverlay"])
|
|
9837
|
+
}, 8, ["visible", "isWrapTeleport", "onClickOverlay", "closeOnClickOverlay"])
|
|
9785
9838
|
], 2);
|
|
9786
9839
|
}
|
|
9787
|
-
var ActionSheet = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9788
|
-
const { componentName: componentName$
|
|
9789
|
-
const _sfc_main$
|
|
9840
|
+
var ActionSheet = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Y]]);
|
|
9841
|
+
const { componentName: componentName$R, create: create$Y } = createComponent("backtop");
|
|
9842
|
+
const _sfc_main$Y = create$Y({
|
|
9790
9843
|
props: {
|
|
9791
9844
|
bottom: {
|
|
9792
9845
|
type: Number,
|
|
@@ -9827,7 +9880,7 @@ const _sfc_main$X = create$X({
|
|
|
9827
9880
|
keepAlive: false
|
|
9828
9881
|
});
|
|
9829
9882
|
const classes = computed(() => {
|
|
9830
|
-
const prefixCls = componentName$
|
|
9883
|
+
const prefixCls = componentName$R;
|
|
9831
9884
|
return {
|
|
9832
9885
|
[prefixCls]: true,
|
|
9833
9886
|
show: state.backTop
|
|
@@ -9921,7 +9974,7 @@ const _sfc_main$X = create$X({
|
|
|
9921
9974
|
};
|
|
9922
9975
|
}
|
|
9923
9976
|
});
|
|
9924
|
-
function _sfc_render$
|
|
9977
|
+
function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9925
9978
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
9926
9979
|
return openBlock(), createElementBlock("div", {
|
|
9927
9980
|
class: normalizeClass(_ctx.classes),
|
|
@@ -9937,9 +9990,9 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9937
9990
|
])
|
|
9938
9991
|
], 6);
|
|
9939
9992
|
}
|
|
9940
|
-
var BackTop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9941
|
-
const { componentName: componentName$
|
|
9942
|
-
const _sfc_main$
|
|
9993
|
+
var BackTop = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$X]]);
|
|
9994
|
+
const { componentName: componentName$Q, create: create$X } = createComponent("drag");
|
|
9995
|
+
const _sfc_main$X = create$X({
|
|
9943
9996
|
props: {
|
|
9944
9997
|
attract: {
|
|
9945
9998
|
type: Boolean,
|
|
@@ -9984,7 +10037,7 @@ const _sfc_main$W = create$W({
|
|
|
9984
10037
|
}
|
|
9985
10038
|
});
|
|
9986
10039
|
const classes = computed(() => {
|
|
9987
|
-
const prefixCls = componentName$
|
|
10040
|
+
const prefixCls = componentName$Q;
|
|
9988
10041
|
return {
|
|
9989
10042
|
[prefixCls]: true
|
|
9990
10043
|
};
|
|
@@ -10119,7 +10172,7 @@ const _sfc_main$W = create$W({
|
|
|
10119
10172
|
};
|
|
10120
10173
|
}
|
|
10121
10174
|
});
|
|
10122
|
-
function _sfc_render$
|
|
10175
|
+
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10123
10176
|
return openBlock(), createElementBlock("view", {
|
|
10124
10177
|
class: normalizeClass(_ctx.classes),
|
|
10125
10178
|
ref: "myDrag",
|
|
@@ -10130,9 +10183,9 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10130
10183
|
renderSlot(_ctx.$slots, "default")
|
|
10131
10184
|
], 34);
|
|
10132
10185
|
}
|
|
10133
|
-
var Drag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10134
|
-
const { componentName: componentName$
|
|
10135
|
-
const _sfc_main$
|
|
10186
|
+
var Drag = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$W]]);
|
|
10187
|
+
const { componentName: componentName$P, create: create$W, translate: translate$g } = createComponent("dialog");
|
|
10188
|
+
const _sfc_main$W = create$W({
|
|
10136
10189
|
inheritAttrs: false,
|
|
10137
10190
|
components: {
|
|
10138
10191
|
[Popup.name]: Popup,
|
|
@@ -10217,7 +10270,7 @@ const _sfc_main$V = create$V({
|
|
|
10217
10270
|
});
|
|
10218
10271
|
const classes = computed(() => {
|
|
10219
10272
|
return {
|
|
10220
|
-
[componentName$
|
|
10273
|
+
[componentName$P]: true,
|
|
10221
10274
|
[props.customClass]: true
|
|
10222
10275
|
};
|
|
10223
10276
|
});
|
|
@@ -10266,7 +10319,7 @@ const _hoisted_1$N = {
|
|
|
10266
10319
|
class: "nut-dialog__header"
|
|
10267
10320
|
};
|
|
10268
10321
|
const _hoisted_2$E = ["innerHTML"];
|
|
10269
|
-
function _sfc_render$
|
|
10322
|
+
function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10270
10323
|
const _component_nut_button = resolveComponent("nut-button");
|
|
10271
10324
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
10272
10325
|
return openBlock(), createBlock(_component_nut_popup, {
|
|
@@ -10338,7 +10391,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10338
10391
|
_: 3
|
|
10339
10392
|
}, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "pop-class", "style", "overlay-class", "overlay-style", "onClickOverlay", "onClickCloseIcon"]);
|
|
10340
10393
|
}
|
|
10341
|
-
var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10394
|
+
var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$V]]);
|
|
10342
10395
|
class DialogOptions {
|
|
10343
10396
|
constructor() {
|
|
10344
10397
|
this.title = "";
|
|
@@ -10422,8 +10475,8 @@ _Dialog.install = (app) => {
|
|
|
10422
10475
|
app.use(Dialog);
|
|
10423
10476
|
app.config.globalProperties.$dialog = _Dialog;
|
|
10424
10477
|
};
|
|
10425
|
-
const { componentName: componentName$
|
|
10426
|
-
const _sfc_main$
|
|
10478
|
+
const { componentName: componentName$O, create: create$V, translate: translate$f } = createComponent("infiniteloading");
|
|
10479
|
+
const _sfc_main$V = create$V({
|
|
10427
10480
|
props: {
|
|
10428
10481
|
hasMore: {
|
|
10429
10482
|
type: Boolean,
|
|
@@ -10485,7 +10538,7 @@ const _sfc_main$U = create$U({
|
|
|
10485
10538
|
distance: 0
|
|
10486
10539
|
});
|
|
10487
10540
|
const classes = computed(() => {
|
|
10488
|
-
const prefixCls = componentName$
|
|
10541
|
+
const prefixCls = componentName$O;
|
|
10489
10542
|
return {
|
|
10490
10543
|
[prefixCls]: true
|
|
10491
10544
|
};
|
|
@@ -10627,7 +10680,7 @@ const _hoisted_7$c = {
|
|
|
10627
10680
|
key: 0,
|
|
10628
10681
|
class: "tips"
|
|
10629
10682
|
};
|
|
10630
|
-
function _sfc_render$
|
|
10683
|
+
function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10631
10684
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
10632
10685
|
return openBlock(), createElementBlock("view", {
|
|
10633
10686
|
class: normalizeClass(_ctx.classes),
|
|
@@ -10667,9 +10720,9 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10667
10720
|
])
|
|
10668
10721
|
], 34);
|
|
10669
10722
|
}
|
|
10670
|
-
var InfiniteLoading = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10671
|
-
const { componentName: componentName$
|
|
10672
|
-
const _sfc_main$
|
|
10723
|
+
var InfiniteLoading = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$U]]);
|
|
10724
|
+
const { componentName: componentName$N, create: create$U } = createComponent("notify");
|
|
10725
|
+
const _sfc_main$U = create$U({
|
|
10673
10726
|
components: {
|
|
10674
10727
|
[Popup.name]: Popup
|
|
10675
10728
|
},
|
|
@@ -10747,7 +10800,7 @@ const _sfc_main$T = create$T({
|
|
|
10747
10800
|
return { state, hide, onAfterLeave, clickCover, visible };
|
|
10748
10801
|
}
|
|
10749
10802
|
});
|
|
10750
|
-
function _sfc_render$
|
|
10803
|
+
function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10751
10804
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
10752
10805
|
return openBlock(), createBlock(_component_nut_popup, {
|
|
10753
10806
|
visible: _ctx.showPopup,
|
|
@@ -10770,7 +10823,7 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10770
10823
|
_: 3
|
|
10771
10824
|
}, 8, ["visible", "position", "isWrapTeleport"]);
|
|
10772
10825
|
}
|
|
10773
|
-
var Notify = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10826
|
+
var Notify = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$T]]);
|
|
10774
10827
|
const defaultOptions$1 = {
|
|
10775
10828
|
type: "base",
|
|
10776
10829
|
showPopup: true,
|
|
@@ -10954,8 +11007,8 @@ function preventDefault(event, isStopPropagation) {
|
|
|
10954
11007
|
if (isStopPropagation)
|
|
10955
11008
|
event.stopPropagation();
|
|
10956
11009
|
}
|
|
10957
|
-
const { componentName: componentName$
|
|
10958
|
-
const _sfc_main$
|
|
11010
|
+
const { componentName: componentName$M, create: create$T } = createComponent("pullrefresh");
|
|
11011
|
+
const _sfc_main$T = create$T({
|
|
10959
11012
|
props: {
|
|
10960
11013
|
useWindow: {
|
|
10961
11014
|
type: Boolean,
|
|
@@ -11207,7 +11260,7 @@ const _hoisted_1$L = {
|
|
|
11207
11260
|
class: "pullrefresh-content",
|
|
11208
11261
|
ref: "pull"
|
|
11209
11262
|
};
|
|
11210
|
-
function _sfc_render$
|
|
11263
|
+
function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11211
11264
|
return openBlock(), createElementBlock("view", {
|
|
11212
11265
|
class: "nut-pullrefresh",
|
|
11213
11266
|
ref: "scroller",
|
|
@@ -11228,9 +11281,9 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11228
11281
|
}, toDisplayString(_ctx.refreshBottomTem), 7)
|
|
11229
11282
|
], 36);
|
|
11230
11283
|
}
|
|
11231
|
-
var PullRefresh = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11232
|
-
const { componentName: componentName$
|
|
11233
|
-
const _sfc_main$
|
|
11284
|
+
var PullRefresh = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$S]]);
|
|
11285
|
+
const { componentName: componentName$L, create: create$S } = createComponent("switch");
|
|
11286
|
+
const _sfc_main$S = create$S({
|
|
11234
11287
|
props: {
|
|
11235
11288
|
modelValue: {
|
|
11236
11289
|
type: [String, Number, Boolean],
|
|
@@ -11285,7 +11338,7 @@ const _sfc_main$R = create$R({
|
|
|
11285
11338
|
setup(props, { emit }) {
|
|
11286
11339
|
const isActive = computed(() => props.modelValue === props.activeValue);
|
|
11287
11340
|
const classes = computed(() => {
|
|
11288
|
-
const prefixCls = componentName$
|
|
11341
|
+
const prefixCls = componentName$L;
|
|
11289
11342
|
return {
|
|
11290
11343
|
[prefixCls]: true,
|
|
11291
11344
|
[isActive.value ? "switch-open" : "switch-close"]: true,
|
|
@@ -11298,14 +11351,22 @@ const _sfc_main$R = create$R({
|
|
|
11298
11351
|
backgroundColor: isActive.value ? props.activeColor : props.inactiveColor
|
|
11299
11352
|
};
|
|
11300
11353
|
});
|
|
11354
|
+
let updateType = "";
|
|
11301
11355
|
const onClick = (event) => {
|
|
11302
11356
|
if (props.disable || props.loading)
|
|
11303
11357
|
return;
|
|
11304
11358
|
const value = isActive.value ? props.inactiveValue : props.activeValue;
|
|
11359
|
+
updateType = "click";
|
|
11305
11360
|
emit("update:modelValue", value);
|
|
11306
|
-
emit("update:loading");
|
|
11307
11361
|
emit("change", value, event);
|
|
11308
11362
|
};
|
|
11363
|
+
watch(() => props.modelValue, (v) => {
|
|
11364
|
+
if (updateType == "click") {
|
|
11365
|
+
updateType = "";
|
|
11366
|
+
} else {
|
|
11367
|
+
emit("change", v);
|
|
11368
|
+
}
|
|
11369
|
+
});
|
|
11309
11370
|
return {
|
|
11310
11371
|
classes,
|
|
11311
11372
|
style,
|
|
@@ -11314,7 +11375,7 @@ const _sfc_main$R = create$R({
|
|
|
11314
11375
|
}
|
|
11315
11376
|
});
|
|
11316
11377
|
const _hoisted_1$K = { class: "switch-button" };
|
|
11317
|
-
function _sfc_render$
|
|
11378
|
+
function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11318
11379
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
11319
11380
|
return openBlock(), createElementBlock("view", {
|
|
11320
11381
|
class: normalizeClass(_ctx.classes),
|
|
@@ -11339,11 +11400,11 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11339
11400
|
])
|
|
11340
11401
|
], 6);
|
|
11341
11402
|
}
|
|
11342
|
-
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11343
|
-
const { create: create$
|
|
11344
|
-
const _sfc_main$
|
|
11403
|
+
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$R]]);
|
|
11404
|
+
const { create: create$R } = createComponent("toast");
|
|
11405
|
+
const _sfc_main$R = create$R({
|
|
11345
11406
|
components: {
|
|
11346
|
-
[_sfc_main$
|
|
11407
|
+
[_sfc_main$1P.name]: _sfc_main$1P
|
|
11347
11408
|
},
|
|
11348
11409
|
props: {
|
|
11349
11410
|
id: String,
|
|
@@ -11484,7 +11545,7 @@ const _hoisted_2$C = {
|
|
|
11484
11545
|
class: "nut-toast-title"
|
|
11485
11546
|
};
|
|
11486
11547
|
const _hoisted_3$t = ["innerHTML"];
|
|
11487
|
-
function _sfc_render$
|
|
11548
|
+
function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11488
11549
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
11489
11550
|
return openBlock(), createBlock(Transition, {
|
|
11490
11551
|
name: "toast-fade",
|
|
@@ -11526,7 +11587,7 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11526
11587
|
_: 1
|
|
11527
11588
|
}, 8, ["onAfterLeave"]);
|
|
11528
11589
|
}
|
|
11529
|
-
var Toast = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11590
|
+
var Toast = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$Q]]);
|
|
11530
11591
|
const defaultOptions = {
|
|
11531
11592
|
msg: "",
|
|
11532
11593
|
id: "",
|
|
@@ -11644,8 +11705,8 @@ const ToastFunction = {
|
|
|
11644
11705
|
app.config.globalProperties.$toast = ToastFunction;
|
|
11645
11706
|
}
|
|
11646
11707
|
};
|
|
11647
|
-
const { componentName: componentName$
|
|
11648
|
-
const _sfc_main$
|
|
11708
|
+
const { componentName: componentName$K, create: create$Q } = createComponent("audio");
|
|
11709
|
+
const _sfc_main$Q = create$Q({
|
|
11649
11710
|
props: {
|
|
11650
11711
|
url: {
|
|
11651
11712
|
type: String,
|
|
@@ -11836,7 +11897,7 @@ const _hoisted_7$b = {
|
|
|
11836
11897
|
class: "nut-audio-icon"
|
|
11837
11898
|
};
|
|
11838
11899
|
const _hoisted_8$7 = ["controls", "src", "preload", "autoplay", "loop", "muted"];
|
|
11839
|
-
function _sfc_render$
|
|
11900
|
+
function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11840
11901
|
const _component_nut_range = resolveComponent("nut-range");
|
|
11841
11902
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
11842
11903
|
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
@@ -11896,9 +11957,9 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11896
11957
|
}, null, 40, _hoisted_8$7)
|
|
11897
11958
|
]);
|
|
11898
11959
|
}
|
|
11899
|
-
var Audio = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11900
|
-
const { componentName: componentName$
|
|
11901
|
-
const _sfc_main$
|
|
11960
|
+
var Audio = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$P]]);
|
|
11961
|
+
const { componentName: componentName$J, create: create$P, translate: translate$e } = createComponent("audio-operate");
|
|
11962
|
+
const _sfc_main$P = create$P({
|
|
11902
11963
|
props: {
|
|
11903
11964
|
type: {
|
|
11904
11965
|
type: String,
|
|
@@ -11918,7 +11979,7 @@ const _sfc_main$O = create$O({
|
|
|
11918
11979
|
});
|
|
11919
11980
|
const _hoisted_1$H = { class: "nut-audio-operate" };
|
|
11920
11981
|
const _hoisted_2$A = /* @__PURE__ */ createTextVNode("\u5FEB\u8FDB");
|
|
11921
|
-
function _sfc_render$
|
|
11982
|
+
function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11922
11983
|
const _component_nut_button = resolveComponent("nut-button");
|
|
11923
11984
|
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
11924
11985
|
_ctx.type == "back" ? (openBlock(), createElementBlock("div", {
|
|
@@ -11991,9 +12052,9 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11991
12052
|
])) : createCommentVNode("", true)
|
|
11992
12053
|
]);
|
|
11993
12054
|
}
|
|
11994
|
-
var AudioOperate = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11995
|
-
const { componentName: componentName$
|
|
11996
|
-
const _sfc_main$
|
|
12055
|
+
var AudioOperate = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_render$O]]);
|
|
12056
|
+
const { componentName: componentName$I, create: create$O } = createComponent("avatar");
|
|
12057
|
+
const _sfc_main$O = create$O({
|
|
11997
12058
|
props: {
|
|
11998
12059
|
size: {
|
|
11999
12060
|
type: String,
|
|
@@ -12047,7 +12108,7 @@ const _sfc_main$N = create$N({
|
|
|
12047
12108
|
});
|
|
12048
12109
|
const classes = computed(() => {
|
|
12049
12110
|
var _a, _b;
|
|
12050
|
-
const prefixCls = componentName$
|
|
12111
|
+
const prefixCls = componentName$I;
|
|
12051
12112
|
return {
|
|
12052
12113
|
[prefixCls]: true,
|
|
12053
12114
|
[`nut-avatar-${size.value || ((_a = avatarGroup == null ? void 0 : avatarGroup.props) == null ? void 0 : _a.size) || "normal"}`]: true,
|
|
@@ -12121,7 +12182,7 @@ const _hoisted_3$r = {
|
|
|
12121
12182
|
key: 1,
|
|
12122
12183
|
class: "text"
|
|
12123
12184
|
};
|
|
12124
|
-
function _sfc_render$
|
|
12185
|
+
function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12125
12186
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
12126
12187
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
12127
12188
|
return _ctx.showMax || !((_b = (_a = _ctx.avatarGroup) == null ? void 0 : _a.props) == null ? void 0 : _b.maxCount) || _ctx.index <= ((_d = (_c = _ctx.avatarGroup) == null ? void 0 : _c.props) == null ? void 0 : _d.maxCount) ? (openBlock(), createElementBlock("view", {
|
|
@@ -12149,9 +12210,9 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12149
12210
|
_ctx.showMax ? (openBlock(), createElementBlock("view", _hoisted_3$r, toDisplayString(((_j = (_i = _ctx.avatarGroup) == null ? void 0 : _i.props) == null ? void 0 : _j.maxContent) ? (_l = (_k = _ctx.avatarGroup) == null ? void 0 : _k.props) == null ? void 0 : _l.maxContent : `+ ${_ctx.maxIndex - ((_n = (_m = _ctx.avatarGroup) == null ? void 0 : _m.props) == null ? void 0 : _n.maxCount)}`), 1)) : createCommentVNode("", true)
|
|
12150
12211
|
], 6)) : createCommentVNode("", true);
|
|
12151
12212
|
}
|
|
12152
|
-
var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12153
|
-
const { componentName: componentName$
|
|
12154
|
-
const _sfc_main$
|
|
12213
|
+
var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$N]]);
|
|
12214
|
+
const { componentName: componentName$H, create: create$N } = createComponent("avatar-group");
|
|
12215
|
+
const _sfc_main$N = create$N({
|
|
12155
12216
|
props: {
|
|
12156
12217
|
maxContent: {
|
|
12157
12218
|
type: String,
|
|
@@ -12191,7 +12252,7 @@ const _sfc_main$M = create$M({
|
|
|
12191
12252
|
const avatarGroupRef = ref(null);
|
|
12192
12253
|
const index = ref(0);
|
|
12193
12254
|
const classes = computed(() => {
|
|
12194
|
-
const prefixCls = componentName$
|
|
12255
|
+
const prefixCls = componentName$H;
|
|
12195
12256
|
return {
|
|
12196
12257
|
[prefixCls]: true
|
|
12197
12258
|
};
|
|
@@ -12209,7 +12270,7 @@ const _sfc_main$M = create$M({
|
|
|
12209
12270
|
};
|
|
12210
12271
|
}
|
|
12211
12272
|
});
|
|
12212
|
-
function _sfc_render$
|
|
12273
|
+
function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12213
12274
|
return openBlock(), createElementBlock("view", {
|
|
12214
12275
|
class: normalizeClass(_ctx.classes),
|
|
12215
12276
|
ref: "avatarGroupRef"
|
|
@@ -12217,9 +12278,9 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12217
12278
|
renderSlot(_ctx.$slots, "default")
|
|
12218
12279
|
], 2);
|
|
12219
12280
|
}
|
|
12220
|
-
var AvatarGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12221
|
-
const { componentName: componentName$
|
|
12222
|
-
const _sfc_main$
|
|
12281
|
+
var AvatarGroup = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$M]]);
|
|
12282
|
+
const { componentName: componentName$G, create: create$M } = createComponent("list");
|
|
12283
|
+
const _sfc_main$M = create$M({
|
|
12223
12284
|
props: {
|
|
12224
12285
|
height: {
|
|
12225
12286
|
type: [Number],
|
|
@@ -12254,7 +12315,7 @@ const _sfc_main$L = create$L({
|
|
|
12254
12315
|
return `translate3d(0, ${state.startOffset}px, 0)`;
|
|
12255
12316
|
});
|
|
12256
12317
|
const classes = computed(() => {
|
|
12257
|
-
const prefixCls = componentName$
|
|
12318
|
+
const prefixCls = componentName$G;
|
|
12258
12319
|
return {
|
|
12259
12320
|
[prefixCls]: true
|
|
12260
12321
|
};
|
|
@@ -12289,7 +12350,7 @@ const _sfc_main$L = create$L({
|
|
|
12289
12350
|
};
|
|
12290
12351
|
}
|
|
12291
12352
|
});
|
|
12292
|
-
function _sfc_render$
|
|
12353
|
+
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12293
12354
|
return openBlock(), createElementBlock("view", {
|
|
12294
12355
|
class: normalizeClass(_ctx.classes),
|
|
12295
12356
|
onScrollPassive: _cache[0] || (_cache[0] = (...args) => _ctx.handleScrollEvent && _ctx.handleScrollEvent(...args)),
|
|
@@ -12318,9 +12379,9 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12318
12379
|
], 4)
|
|
12319
12380
|
], 34);
|
|
12320
12381
|
}
|
|
12321
|
-
var List = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12322
|
-
const { create: create$
|
|
12323
|
-
const _sfc_main$
|
|
12382
|
+
var List = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$L]]);
|
|
12383
|
+
const { create: create$L } = createComponent("progress");
|
|
12384
|
+
const _sfc_main$L = create$L({
|
|
12324
12385
|
props: {
|
|
12325
12386
|
percentage: {
|
|
12326
12387
|
type: [Number, String],
|
|
@@ -12401,7 +12462,7 @@ const _sfc_main$K = create$K({
|
|
|
12401
12462
|
}
|
|
12402
12463
|
});
|
|
12403
12464
|
const _hoisted_1$F = { class: "nut-progress" };
|
|
12404
|
-
function _sfc_render$
|
|
12465
|
+
function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12405
12466
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
12406
12467
|
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
12407
12468
|
createElementVNode("div", {
|
|
@@ -12459,9 +12520,9 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12459
12520
|
], 4)) : createCommentVNode("", true)
|
|
12460
12521
|
]);
|
|
12461
12522
|
}
|
|
12462
|
-
var Progress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12463
|
-
const { componentName: componentName$
|
|
12464
|
-
const _sfc_main$
|
|
12523
|
+
var Progress = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$K]]);
|
|
12524
|
+
const { componentName: componentName$F, create: create$K } = createComponent("circleprogress");
|
|
12525
|
+
const _sfc_main$K = create$K({
|
|
12465
12526
|
props: {
|
|
12466
12527
|
progress: {
|
|
12467
12528
|
type: [Number, String],
|
|
@@ -12496,7 +12557,7 @@ const _sfc_main$J = create$J({
|
|
|
12496
12557
|
const slotDefault = !!useSlots().default;
|
|
12497
12558
|
const refRandomId = Math.random().toString(36).slice(-8);
|
|
12498
12559
|
const classes = computed(() => {
|
|
12499
|
-
const prefixCls = componentName$
|
|
12560
|
+
const prefixCls = componentName$F;
|
|
12500
12561
|
return {
|
|
12501
12562
|
[prefixCls]: true
|
|
12502
12563
|
};
|
|
@@ -12558,7 +12619,7 @@ const _hoisted_4$l = ["d", "stroke-width"];
|
|
|
12558
12619
|
const _hoisted_5$e = ["d", "stroke", "stroke-linecap", "stroke-width"];
|
|
12559
12620
|
const _hoisted_6$d = { class: "nut-circleprogress-text" };
|
|
12560
12621
|
const _hoisted_7$a = { key: 0 };
|
|
12561
|
-
function _sfc_render$
|
|
12622
|
+
function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12562
12623
|
return openBlock(), createElementBlock("div", {
|
|
12563
12624
|
class: normalizeClass(_ctx.classes),
|
|
12564
12625
|
style: normalizeStyle({ height: _ctx.radius * 2 + "px", width: _ctx.radius * 2 + "px" })
|
|
@@ -12604,9 +12665,9 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12604
12665
|
])
|
|
12605
12666
|
], 6);
|
|
12606
12667
|
}
|
|
12607
|
-
var CircleProgress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12608
|
-
const { componentName: componentName$
|
|
12609
|
-
const _sfc_main$
|
|
12668
|
+
var CircleProgress = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$J]]);
|
|
12669
|
+
const { componentName: componentName$E, create: create$J } = createComponent("noticebar");
|
|
12670
|
+
const _sfc_main$J = create$J({
|
|
12610
12671
|
props: {
|
|
12611
12672
|
direction: {
|
|
12612
12673
|
type: String,
|
|
@@ -12691,7 +12752,7 @@ const _sfc_main$I = create$I({
|
|
|
12691
12752
|
isCanScroll: null
|
|
12692
12753
|
});
|
|
12693
12754
|
const classes = computed(() => {
|
|
12694
|
-
const prefixCls = componentName$
|
|
12755
|
+
const prefixCls = componentName$E;
|
|
12695
12756
|
return {
|
|
12696
12757
|
[prefixCls]: true
|
|
12697
12758
|
};
|
|
@@ -12882,7 +12943,7 @@ const _hoisted_1$D = {
|
|
|
12882
12943
|
class: "wrap"
|
|
12883
12944
|
};
|
|
12884
12945
|
const _hoisted_2$x = ["onClick"];
|
|
12885
|
-
function _sfc_render$
|
|
12946
|
+
function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12886
12947
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
12887
12948
|
const _component_ScrollItem = resolveComponent("ScrollItem");
|
|
12888
12949
|
return openBlock(), createElementBlock("view", {
|
|
@@ -12981,14 +13042,14 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12981
13042
|
], 4)) : createCommentVNode("", true)
|
|
12982
13043
|
], 2);
|
|
12983
13044
|
}
|
|
12984
|
-
var NoticeBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12985
|
-
const { componentName: componentName$
|
|
13045
|
+
var NoticeBar = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$I]]);
|
|
13046
|
+
const { componentName: componentName$D, create: create$I, translate: translate$d } = createComponent("empty");
|
|
12986
13047
|
const defaultStatus = {
|
|
12987
13048
|
empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
|
|
12988
13049
|
error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
|
|
12989
13050
|
network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
|
|
12990
13051
|
};
|
|
12991
|
-
const _sfc_main$
|
|
13052
|
+
const _sfc_main$I = create$I({
|
|
12992
13053
|
props: {
|
|
12993
13054
|
image: {
|
|
12994
13055
|
type: String,
|
|
@@ -13029,7 +13090,7 @@ const _hoisted_3$p = {
|
|
|
13029
13090
|
key: 1,
|
|
13030
13091
|
class: "nut-empty-description"
|
|
13031
13092
|
};
|
|
13032
|
-
function _sfc_render$
|
|
13093
|
+
function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13033
13094
|
return openBlock(), createElementBlock("view", _hoisted_1$C, [
|
|
13034
13095
|
createElementVNode("view", {
|
|
13035
13096
|
class: "nut-empty-image",
|
|
@@ -13047,9 +13108,9 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13047
13108
|
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 2 }) : createCommentVNode("", true)
|
|
13048
13109
|
]);
|
|
13049
13110
|
}
|
|
13050
|
-
var Empty = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13051
|
-
const { create: create$
|
|
13052
|
-
const _sfc_main$
|
|
13111
|
+
var Empty = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$H]]);
|
|
13112
|
+
const { create: create$H, translate: translate$c } = createComponent("video");
|
|
13113
|
+
const _sfc_main$H = create$H({
|
|
13053
13114
|
props: {
|
|
13054
13115
|
source: {
|
|
13055
13116
|
type: Object,
|
|
@@ -13294,8 +13355,8 @@ const _hoisted_9$4 = {
|
|
|
13294
13355
|
};
|
|
13295
13356
|
const _hoisted_10$2 = { class: "duration-time" };
|
|
13296
13357
|
const _hoisted_11$2 = { class: "nut-video-error" };
|
|
13297
|
-
const _hoisted_12$
|
|
13298
|
-
function _sfc_render$
|
|
13358
|
+
const _hoisted_12$2 = { class: "lose" };
|
|
13359
|
+
function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13299
13360
|
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
13300
13361
|
createElementVNode("video", {
|
|
13301
13362
|
ref: "root",
|
|
@@ -13366,7 +13427,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13366
13427
|
[vShow, _ctx.showToolbox && !_ctx.isDisabled]
|
|
13367
13428
|
]),
|
|
13368
13429
|
withDirectives(createElementVNode("div", _hoisted_11$2, [
|
|
13369
|
-
createElementVNode("p", _hoisted_12$
|
|
13430
|
+
createElementVNode("p", _hoisted_12$2, toDisplayString(_ctx.translate("errorTip")), 1),
|
|
13370
13431
|
createElementVNode("p", {
|
|
13371
13432
|
class: "retry",
|
|
13372
13433
|
onClick: _cache[9] || (_cache[9] = (...args) => _ctx.retry && _ctx.retry(...args))
|
|
@@ -13376,9 +13437,9 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13376
13437
|
])
|
|
13377
13438
|
], 512);
|
|
13378
13439
|
}
|
|
13379
|
-
var Video = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13380
|
-
const { create: create$
|
|
13381
|
-
const _sfc_main$
|
|
13440
|
+
var Video = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$G]]);
|
|
13441
|
+
const { create: create$G, componentName: componentName$C } = createComponent("steps");
|
|
13442
|
+
const _sfc_main$G = create$G({
|
|
13382
13443
|
props: {
|
|
13383
13444
|
direction: {
|
|
13384
13445
|
type: String,
|
|
@@ -13399,7 +13460,7 @@ const _sfc_main$F = create$F({
|
|
|
13399
13460
|
children: []
|
|
13400
13461
|
});
|
|
13401
13462
|
const classes = computed(() => {
|
|
13402
|
-
const prefixCls = componentName$
|
|
13463
|
+
const prefixCls = componentName$C;
|
|
13403
13464
|
return {
|
|
13404
13465
|
[prefixCls]: true,
|
|
13405
13466
|
[`${prefixCls}-${props.direction}`]: true,
|
|
@@ -13426,8 +13487,8 @@ const _sfc_main$F = create$F({
|
|
|
13426
13487
|
};
|
|
13427
13488
|
}
|
|
13428
13489
|
});
|
|
13429
|
-
const { create: create$
|
|
13430
|
-
const _sfc_main$
|
|
13490
|
+
const { create: create$F, componentName: componentName$B } = createComponent("step");
|
|
13491
|
+
const _sfc_main$F = create$F({
|
|
13431
13492
|
props: {
|
|
13432
13493
|
title: {
|
|
13433
13494
|
type: String,
|
|
@@ -13469,7 +13530,7 @@ const _sfc_main$E = create$E({
|
|
|
13469
13530
|
return getCurrentStatus();
|
|
13470
13531
|
});
|
|
13471
13532
|
const classes = computed(() => {
|
|
13472
|
-
const prefixCls = componentName$
|
|
13533
|
+
const prefixCls = componentName$B;
|
|
13473
13534
|
return {
|
|
13474
13535
|
[prefixCls]: true,
|
|
13475
13536
|
[`${prefixCls}-${status.value}`]: true
|
|
@@ -13500,7 +13561,7 @@ const _hoisted_7$8 = {
|
|
|
13500
13561
|
class: "nut-step-content"
|
|
13501
13562
|
};
|
|
13502
13563
|
const _hoisted_8$5 = ["innerHTML"];
|
|
13503
|
-
function _sfc_render$
|
|
13564
|
+
function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13504
13565
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
13505
13566
|
return openBlock(), createElementBlock("view", {
|
|
13506
13567
|
class: normalizeClass(_ctx.classes),
|
|
@@ -13535,7 +13596,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13535
13596
|
])
|
|
13536
13597
|
], 2);
|
|
13537
13598
|
}
|
|
13538
|
-
var Step = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13599
|
+
var Step = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$F]]);
|
|
13539
13600
|
const DISTANCE = 5;
|
|
13540
13601
|
function useTouch() {
|
|
13541
13602
|
const state = reactive({
|
|
@@ -13584,8 +13645,8 @@ function useTouch() {
|
|
|
13584
13645
|
move
|
|
13585
13646
|
};
|
|
13586
13647
|
}
|
|
13587
|
-
const { create: create$
|
|
13588
|
-
const _sfc_main$
|
|
13648
|
+
const { create: create$E, componentName: componentName$A } = createComponent("swiper");
|
|
13649
|
+
const _sfc_main$E = create$E({
|
|
13589
13650
|
props: {
|
|
13590
13651
|
width: {
|
|
13591
13652
|
type: [Number, String],
|
|
@@ -13634,6 +13695,10 @@ const _sfc_main$D = create$D({
|
|
|
13634
13695
|
isStopPropagation: {
|
|
13635
13696
|
type: Boolean,
|
|
13636
13697
|
default: true
|
|
13698
|
+
},
|
|
13699
|
+
isCenter: {
|
|
13700
|
+
type: Boolean,
|
|
13701
|
+
default: false
|
|
13637
13702
|
}
|
|
13638
13703
|
},
|
|
13639
13704
|
emits: ["change"],
|
|
@@ -13655,7 +13720,7 @@ const _sfc_main$D = create$D({
|
|
|
13655
13720
|
});
|
|
13656
13721
|
const touch = useTouch();
|
|
13657
13722
|
const classes = computed(() => {
|
|
13658
|
-
const prefixCls = componentName$
|
|
13723
|
+
const prefixCls = componentName$A;
|
|
13659
13724
|
return {
|
|
13660
13725
|
[prefixCls]: true
|
|
13661
13726
|
};
|
|
@@ -13679,9 +13744,16 @@ const _sfc_main$D = create$D({
|
|
|
13679
13744
|
});
|
|
13680
13745
|
const activePagination = computed(() => (state.active + childCount.value) % childCount.value);
|
|
13681
13746
|
const getStyle = () => {
|
|
13747
|
+
let offset2 = 0;
|
|
13748
|
+
if (!props.isCenter) {
|
|
13749
|
+
offset2 = state.offset;
|
|
13750
|
+
} else {
|
|
13751
|
+
let val = isVertical.value ? state.rect.height - size.value : state.rect.width - size.value;
|
|
13752
|
+
offset2 = state.offset + (state.active === childCount.value - 1 ? -val / 2 : val / 2);
|
|
13753
|
+
}
|
|
13682
13754
|
state.style = {
|
|
13683
13755
|
transitionDuration: `${state.moving ? 0 : props.duration}ms`,
|
|
13684
|
-
transform: `translate${isVertical.value ? "Y" : "X"}(${
|
|
13756
|
+
transform: `translate${isVertical.value ? "Y" : "X"}(${offset2}px)`,
|
|
13685
13757
|
[isVertical.value ? "height" : "width"]: `${size.value * childCount.value}px`,
|
|
13686
13758
|
[isVertical.value ? "width" : "height"]: `${isVertical.value ? state.width : state.height}px`
|
|
13687
13759
|
};
|
|
@@ -13925,7 +13997,7 @@ const _sfc_main$D = create$D({
|
|
|
13925
13997
|
state,
|
|
13926
13998
|
classes,
|
|
13927
13999
|
container,
|
|
13928
|
-
componentName: componentName$
|
|
14000
|
+
componentName: componentName$A,
|
|
13929
14001
|
isVertical,
|
|
13930
14002
|
slots,
|
|
13931
14003
|
activePagination,
|
|
@@ -13935,7 +14007,7 @@ const _sfc_main$D = create$D({
|
|
|
13935
14007
|
};
|
|
13936
14008
|
}
|
|
13937
14009
|
});
|
|
13938
|
-
function _sfc_render$
|
|
14010
|
+
function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13939
14011
|
return openBlock(), createElementBlock("view", {
|
|
13940
14012
|
ref: "container",
|
|
13941
14013
|
class: normalizeClass(_ctx.classes),
|
|
@@ -13973,9 +14045,9 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13973
14045
|
], 2)) : createCommentVNode("", true)
|
|
13974
14046
|
], 34);
|
|
13975
14047
|
}
|
|
13976
|
-
var Swiper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13977
|
-
const { create: create$
|
|
13978
|
-
const _sfc_main$
|
|
14048
|
+
var Swiper = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$E]]);
|
|
14049
|
+
const { create: create$D, componentName: componentName$z } = createComponent("swiper-item");
|
|
14050
|
+
const _sfc_main$D = create$D({
|
|
13979
14051
|
setup(props, { slots }) {
|
|
13980
14052
|
const parent = inject("parent");
|
|
13981
14053
|
parent["relation"](getCurrentInstance());
|
|
@@ -13983,7 +14055,7 @@ const _sfc_main$C = create$C({
|
|
|
13983
14055
|
offset: 0
|
|
13984
14056
|
});
|
|
13985
14057
|
const classes = computed(() => {
|
|
13986
|
-
const prefixCls = componentName$
|
|
14058
|
+
const prefixCls = componentName$z;
|
|
13987
14059
|
return {
|
|
13988
14060
|
[prefixCls]: true
|
|
13989
14061
|
};
|
|
@@ -14012,7 +14084,7 @@ const _sfc_main$C = create$C({
|
|
|
14012
14084
|
};
|
|
14013
14085
|
}
|
|
14014
14086
|
});
|
|
14015
|
-
function _sfc_render$
|
|
14087
|
+
function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14016
14088
|
return openBlock(), createElementBlock("view", {
|
|
14017
14089
|
class: normalizeClass(_ctx.classes),
|
|
14018
14090
|
style: normalizeStyle(_ctx.style)
|
|
@@ -14020,9 +14092,9 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14020
14092
|
renderSlot(_ctx.$slots, "default")
|
|
14021
14093
|
], 6);
|
|
14022
14094
|
}
|
|
14023
|
-
var SwiperItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14024
|
-
const { componentName: componentName$
|
|
14025
|
-
const _sfc_main$
|
|
14095
|
+
var SwiperItem = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$D]]);
|
|
14096
|
+
const { componentName: componentName$y, create: create$C } = createComponent("price");
|
|
14097
|
+
const _sfc_main$C = create$C({
|
|
14026
14098
|
props: {
|
|
14027
14099
|
price: {
|
|
14028
14100
|
type: [Number, String],
|
|
@@ -14056,7 +14128,7 @@ const _sfc_main$B = create$B({
|
|
|
14056
14128
|
setup(props) {
|
|
14057
14129
|
const classes = computed(() => {
|
|
14058
14130
|
return {
|
|
14059
|
-
[componentName$
|
|
14131
|
+
[componentName$y]: true
|
|
14060
14132
|
};
|
|
14061
14133
|
});
|
|
14062
14134
|
const showSymbol = computed(() => {
|
|
@@ -14107,7 +14179,7 @@ const _sfc_main$B = create$B({
|
|
|
14107
14179
|
});
|
|
14108
14180
|
const _hoisted_1$z = ["innerHTML"];
|
|
14109
14181
|
const _hoisted_2$t = ["innerHTML"];
|
|
14110
|
-
function _sfc_render$
|
|
14182
|
+
function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14111
14183
|
return openBlock(), createElementBlock("view", {
|
|
14112
14184
|
class: normalizeClass(_ctx.classes)
|
|
14113
14185
|
}, [
|
|
@@ -14133,9 +14205,9 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14133
14205
|
}, null, 10, _hoisted_2$t)) : createCommentVNode("", true)
|
|
14134
14206
|
], 2);
|
|
14135
14207
|
}
|
|
14136
|
-
var Price = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14137
|
-
const { componentName: componentName$
|
|
14138
|
-
const _sfc_main$
|
|
14208
|
+
var Price = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$C]]);
|
|
14209
|
+
const { componentName: componentName$x, create: create$B } = createComponent("imagepreviewitem");
|
|
14210
|
+
const _sfc_main$B = create$B({
|
|
14139
14211
|
props: {
|
|
14140
14212
|
show: {
|
|
14141
14213
|
type: Boolean,
|
|
@@ -14179,7 +14251,7 @@ const _sfc_main$A = create$A({
|
|
|
14179
14251
|
[Video.name]: Video,
|
|
14180
14252
|
[Swiper.name]: Swiper,
|
|
14181
14253
|
[SwiperItem.name]: SwiperItem,
|
|
14182
|
-
[_sfc_main$
|
|
14254
|
+
[_sfc_main$1P.name]: _sfc_main$1P
|
|
14183
14255
|
},
|
|
14184
14256
|
setup(props, { emit }) {
|
|
14185
14257
|
const state = reactive({
|
|
@@ -14374,7 +14446,7 @@ const _hoisted_2$s = {
|
|
|
14374
14446
|
key: 1,
|
|
14375
14447
|
class: "nut-imagepreview-box"
|
|
14376
14448
|
};
|
|
14377
|
-
function _sfc_render$
|
|
14449
|
+
function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14378
14450
|
const _component_nut_video = resolveComponent("nut-video");
|
|
14379
14451
|
const _component_nut_swiper_item = resolveComponent("nut-swiper-item");
|
|
14380
14452
|
return openBlock(), createBlock(_component_nut_swiper_item, {
|
|
@@ -14405,9 +14477,9 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14405
14477
|
_: 1
|
|
14406
14478
|
}, 8, ["onTouchstart", "onTouchmove", "onTouchend", "onTouchcancel"]);
|
|
14407
14479
|
}
|
|
14408
|
-
var ImagePreviewItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14409
|
-
const { componentName: componentName$
|
|
14410
|
-
const _sfc_main$
|
|
14480
|
+
var ImagePreviewItem = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$B]]);
|
|
14481
|
+
const { componentName: componentName$w, create: create$A } = createComponent("imagepreview");
|
|
14482
|
+
const _sfc_main$A = create$A({
|
|
14411
14483
|
props: {
|
|
14412
14484
|
show: {
|
|
14413
14485
|
type: Boolean,
|
|
@@ -14477,7 +14549,7 @@ const _sfc_main$z = create$z({
|
|
|
14477
14549
|
[Video.name]: Video,
|
|
14478
14550
|
[Swiper.name]: Swiper,
|
|
14479
14551
|
[SwiperItem.name]: SwiperItem,
|
|
14480
|
-
[_sfc_main$
|
|
14552
|
+
[_sfc_main$1P.name]: _sfc_main$1P,
|
|
14481
14553
|
ImagePreviewItem
|
|
14482
14554
|
},
|
|
14483
14555
|
setup(props, { emit }) {
|
|
@@ -14560,7 +14632,7 @@ const _hoisted_2$r = {
|
|
|
14560
14632
|
key: 0,
|
|
14561
14633
|
class: "nut-imagepreview-index"
|
|
14562
14634
|
};
|
|
14563
|
-
function _sfc_render$
|
|
14635
|
+
function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14564
14636
|
const _component_image_preview_item = resolveComponent("image-preview-item");
|
|
14565
14637
|
const _component_nut_swiper = resolveComponent("nut-swiper");
|
|
14566
14638
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
@@ -14632,7 +14704,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14632
14704
|
_: 1
|
|
14633
14705
|
}, 8, ["visible", "isWrapTeleport", "onClick"]);
|
|
14634
14706
|
}
|
|
14635
|
-
var ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14707
|
+
var ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$A]]);
|
|
14636
14708
|
class ImagePreviewOptions {
|
|
14637
14709
|
constructor() {
|
|
14638
14710
|
this.show = false;
|
|
@@ -14686,8 +14758,8 @@ function useExtend(apis) {
|
|
|
14686
14758
|
Object.assign(instance.proxy, apis);
|
|
14687
14759
|
}
|
|
14688
14760
|
}
|
|
14689
|
-
const { componentName: componentName$
|
|
14690
|
-
const _sfc_main$
|
|
14761
|
+
const { componentName: componentName$v, create: create$z } = createComponent("countup");
|
|
14762
|
+
const _sfc_main$z = create$z({
|
|
14691
14763
|
props: {
|
|
14692
14764
|
initNum: {
|
|
14693
14765
|
type: Number,
|
|
@@ -15114,7 +15186,7 @@ const _sfc_main$y = create$y({
|
|
|
15114
15186
|
});
|
|
15115
15187
|
const _hoisted_1$w = { class: "nut-countup" };
|
|
15116
15188
|
const _hoisted_2$q = ["turn-number"];
|
|
15117
|
-
function _sfc_render$
|
|
15189
|
+
function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15118
15190
|
return openBlock(), createElementBlock("view", _hoisted_1$w, [
|
|
15119
15191
|
_ctx.customBgImg != "" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
15120
15192
|
_ctx.type == "machine" ? (openBlock(), createElementBlock("view", {
|
|
@@ -15218,7 +15290,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15218
15290
|
], 64))
|
|
15219
15291
|
]);
|
|
15220
15292
|
}
|
|
15221
|
-
var CountUp = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15293
|
+
var CountUp = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z]]);
|
|
15222
15294
|
const padZero = (num, length = 2) => {
|
|
15223
15295
|
num += "";
|
|
15224
15296
|
while (num.length < length) {
|
|
@@ -15233,8 +15305,8 @@ const getTimeStamp = (timeStr) => {
|
|
|
15233
15305
|
t = t > 0 ? +t : t.toString().replace(/\-/g, "/");
|
|
15234
15306
|
return new Date(t).getTime();
|
|
15235
15307
|
};
|
|
15236
|
-
const { componentName: componentName$
|
|
15237
|
-
const _sfc_main$
|
|
15308
|
+
const { componentName: componentName$u, create: create$y, translate: translate$b } = createComponent("countdown");
|
|
15309
|
+
const _sfc_main$y = create$y({
|
|
15238
15310
|
props: {
|
|
15239
15311
|
modelValue: {
|
|
15240
15312
|
type: Object,
|
|
@@ -15287,7 +15359,7 @@ const _sfc_main$x = create$x({
|
|
|
15287
15359
|
diffTime: 0
|
|
15288
15360
|
});
|
|
15289
15361
|
const classes = computed(() => {
|
|
15290
|
-
const prefixCls = componentName$
|
|
15362
|
+
const prefixCls = componentName$u;
|
|
15291
15363
|
return {
|
|
15292
15364
|
[prefixCls]: true
|
|
15293
15365
|
};
|
|
@@ -15443,7 +15515,7 @@ const _sfc_main$x = create$x({
|
|
|
15443
15515
|
}
|
|
15444
15516
|
});
|
|
15445
15517
|
const _hoisted_1$v = ["innerHTML"];
|
|
15446
|
-
function _sfc_render$
|
|
15518
|
+
function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15447
15519
|
return openBlock(), createElementBlock("view", {
|
|
15448
15520
|
class: normalizeClass(_ctx.classes)
|
|
15449
15521
|
}, [
|
|
@@ -15454,9 +15526,9 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15454
15526
|
}, null, 8, _hoisted_1$v))
|
|
15455
15527
|
], 2);
|
|
15456
15528
|
}
|
|
15457
|
-
var CountDown = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15458
|
-
const { create: create$
|
|
15459
|
-
const _sfc_main$
|
|
15529
|
+
var CountDown = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$y]]);
|
|
15530
|
+
const { create: create$x } = createComponent("badge");
|
|
15531
|
+
const _sfc_main$x = create$x({
|
|
15460
15532
|
props: {
|
|
15461
15533
|
value: {
|
|
15462
15534
|
type: [String, Number]
|
|
@@ -15520,7 +15592,7 @@ const _sfc_main$w = create$w({
|
|
|
15520
15592
|
const _hoisted_1$u = { class: "nut-badge" };
|
|
15521
15593
|
const _hoisted_2$p = { class: "slot-icons" };
|
|
15522
15594
|
const _hoisted_3$m = ["textContent"];
|
|
15523
|
-
function _sfc_render$
|
|
15595
|
+
function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15524
15596
|
return openBlock(), createElementBlock("view", _hoisted_1$u, [
|
|
15525
15597
|
createElementVNode("view", _hoisted_2$p, [
|
|
15526
15598
|
renderSlot(_ctx.$slots, "icons")
|
|
@@ -15535,9 +15607,9 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15535
15607
|
])
|
|
15536
15608
|
]);
|
|
15537
15609
|
}
|
|
15538
|
-
var Badge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15539
|
-
const { componentName: componentName$
|
|
15540
|
-
const _sfc_main$
|
|
15610
|
+
var Badge = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$x]]);
|
|
15611
|
+
const { componentName: componentName$t, create: create$w } = createComponent("tag");
|
|
15612
|
+
const _sfc_main$w = create$w({
|
|
15541
15613
|
props: {
|
|
15542
15614
|
color: { type: String, default: "" },
|
|
15543
15615
|
textColor: { type: String, default: "" },
|
|
@@ -15566,7 +15638,7 @@ const _sfc_main$v = create$v({
|
|
|
15566
15638
|
setup(props, { emit }) {
|
|
15567
15639
|
const { type, color, plain, round: round2, mark, textColor } = toRefs(props);
|
|
15568
15640
|
const classes = computed(() => {
|
|
15569
|
-
const prefixCls = componentName$
|
|
15641
|
+
const prefixCls = componentName$t;
|
|
15570
15642
|
return {
|
|
15571
15643
|
[prefixCls]: true,
|
|
15572
15644
|
[`${prefixCls}--${type.value}`]: type.value,
|
|
@@ -15610,7 +15682,7 @@ const _sfc_main$v = create$v({
|
|
|
15610
15682
|
};
|
|
15611
15683
|
}
|
|
15612
15684
|
});
|
|
15613
|
-
function _sfc_render$
|
|
15685
|
+
function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15614
15686
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
15615
15687
|
return openBlock(), createElementBlock("view", {
|
|
15616
15688
|
class: normalizeClass(_ctx.classes),
|
|
@@ -15627,7 +15699,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15627
15699
|
}, null, 8, ["onClick"])) : createCommentVNode("", true)
|
|
15628
15700
|
], 6);
|
|
15629
15701
|
}
|
|
15630
|
-
var Tag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15702
|
+
var Tag = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$w]]);
|
|
15631
15703
|
function getWindow(node) {
|
|
15632
15704
|
if (node == null) {
|
|
15633
15705
|
return window;
|
|
@@ -16396,8 +16468,8 @@ var offsetModifier = {
|
|
|
16396
16468
|
requires: ["popperOffsets"],
|
|
16397
16469
|
fn: offset
|
|
16398
16470
|
};
|
|
16399
|
-
const { componentName: componentName$
|
|
16400
|
-
const _sfc_main$
|
|
16471
|
+
const { componentName: componentName$s, create: create$v } = createComponent("popover");
|
|
16472
|
+
const _sfc_main$v = create$v({
|
|
16401
16473
|
inheritAttrs: false,
|
|
16402
16474
|
components: {
|
|
16403
16475
|
[Popup.name]: Popup,
|
|
@@ -16438,7 +16510,7 @@ const _sfc_main$u = create$u({
|
|
|
16438
16510
|
const showPopup = ref(props.visible);
|
|
16439
16511
|
const { theme, location: location2 } = toRefs(props);
|
|
16440
16512
|
const classes = computed(() => {
|
|
16441
|
-
const prefixCls = componentName$
|
|
16513
|
+
const prefixCls = componentName$s;
|
|
16442
16514
|
return `${prefixCls} ${prefixCls}--${theme.value}`;
|
|
16443
16515
|
});
|
|
16444
16516
|
const popoverContent = computed(() => {
|
|
@@ -16548,7 +16620,7 @@ const _sfc_main$u = create$u({
|
|
|
16548
16620
|
});
|
|
16549
16621
|
const _hoisted_1$t = ["onClick"];
|
|
16550
16622
|
const _hoisted_2$o = { class: "popover-menu-name" };
|
|
16551
|
-
function _sfc_render$
|
|
16623
|
+
function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16552
16624
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
16553
16625
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
16554
16626
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -16599,7 +16671,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16599
16671
|
}, 8, ["pop-class", "visible", "onClickOverlay"])
|
|
16600
16672
|
], 64);
|
|
16601
16673
|
}
|
|
16602
|
-
var Popover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16674
|
+
var Popover = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$v]]);
|
|
16603
16675
|
const component$1 = {
|
|
16604
16676
|
props: {
|
|
16605
16677
|
width: {
|
|
@@ -16681,8 +16753,8 @@ const component$1 = {
|
|
|
16681
16753
|
};
|
|
16682
16754
|
}
|
|
16683
16755
|
};
|
|
16684
|
-
const { create: create$
|
|
16685
|
-
const _sfc_main$
|
|
16756
|
+
const { create: create$u } = createComponent("skeleton");
|
|
16757
|
+
const _sfc_main$u = create$u(component$1);
|
|
16686
16758
|
const _hoisted_1$s = { key: 0 };
|
|
16687
16759
|
const _hoisted_2$n = {
|
|
16688
16760
|
key: 1,
|
|
@@ -16698,7 +16770,7 @@ const _hoisted_6$a = {
|
|
|
16698
16770
|
key: 0,
|
|
16699
16771
|
class: "title"
|
|
16700
16772
|
};
|
|
16701
|
-
function _sfc_render$
|
|
16773
|
+
function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16702
16774
|
const _component_nut_avatar = resolveComponent("nut-avatar");
|
|
16703
16775
|
return !_ctx.loading ? (openBlock(), createElementBlock("view", _hoisted_1$s, [
|
|
16704
16776
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -16730,9 +16802,9 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16730
16802
|
])
|
|
16731
16803
|
]));
|
|
16732
16804
|
}
|
|
16733
|
-
var Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16734
|
-
const { create: create$
|
|
16735
|
-
const _sfc_main$
|
|
16805
|
+
var Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$u]]);
|
|
16806
|
+
const { create: create$t } = createComponent("collapse");
|
|
16807
|
+
const _sfc_main$t = create$t({
|
|
16736
16808
|
props: {
|
|
16737
16809
|
active: {
|
|
16738
16810
|
type: [String, Number, Array]
|
|
@@ -16830,14 +16902,14 @@ const _sfc_main$s = create$s({
|
|
|
16830
16902
|
}
|
|
16831
16903
|
});
|
|
16832
16904
|
const _hoisted_1$r = { ref: "collapseDom" };
|
|
16833
|
-
function _sfc_render$
|
|
16905
|
+
function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16834
16906
|
return openBlock(), createElementBlock("view", _hoisted_1$r, [
|
|
16835
16907
|
renderSlot(_ctx.$slots, "default")
|
|
16836
16908
|
], 512);
|
|
16837
16909
|
}
|
|
16838
|
-
var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16839
|
-
const { create: create$
|
|
16840
|
-
const _sfc_main$
|
|
16910
|
+
var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$t]]);
|
|
16911
|
+
const { create: create$s, componentName: componentName$r } = createComponent("collapse-item");
|
|
16912
|
+
const _sfc_main$s = create$s({
|
|
16841
16913
|
props: {
|
|
16842
16914
|
title: {
|
|
16843
16915
|
type: String,
|
|
@@ -16864,7 +16936,7 @@ const _sfc_main$r = create$r({
|
|
|
16864
16936
|
const collapse = inject("collapseParent");
|
|
16865
16937
|
const parent = reactive(collapse);
|
|
16866
16938
|
const classes = computed(() => {
|
|
16867
|
-
const prefixCls = componentName$
|
|
16939
|
+
const prefixCls = componentName$r;
|
|
16868
16940
|
return {
|
|
16869
16941
|
[prefixCls]: true,
|
|
16870
16942
|
[`${prefixCls}-icon`]: parent.props.icon
|
|
@@ -17027,7 +17099,7 @@ const _hoisted_8$4 = {
|
|
|
17027
17099
|
class: "collapse-wrapper",
|
|
17028
17100
|
ref: "wrapperRef"
|
|
17029
17101
|
};
|
|
17030
|
-
function _sfc_render$
|
|
17102
|
+
function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17031
17103
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
17032
17104
|
return openBlock(), createElementBlock("view", {
|
|
17033
17105
|
class: normalizeClass(_ctx.classes)
|
|
@@ -17085,7 +17157,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17085
17157
|
], 512)
|
|
17086
17158
|
], 2);
|
|
17087
17159
|
}
|
|
17088
|
-
var CollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17160
|
+
var CollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s]]);
|
|
17089
17161
|
var RenderColumn = {
|
|
17090
17162
|
setup(props) {
|
|
17091
17163
|
return () => h(`view`, {}, props.slots[0] ? props.slots[0](props.record) : props.slots[1](props.record));
|
|
@@ -17172,8 +17244,8 @@ const component = (componentName2, translate2) => {
|
|
|
17172
17244
|
}
|
|
17173
17245
|
};
|
|
17174
17246
|
};
|
|
17175
|
-
const { componentName: componentName$
|
|
17176
|
-
const _sfc_main$
|
|
17247
|
+
const { componentName: componentName$q, create: create$r, translate: translate$a } = createComponent("table");
|
|
17248
|
+
const _sfc_main$r = create$r(component(componentName$q, translate$a));
|
|
17177
17249
|
const _hoisted_1$p = { class: "nut-table__main__head" };
|
|
17178
17250
|
const _hoisted_2$l = { class: "nut-table__main__head__tr" };
|
|
17179
17251
|
const _hoisted_3$j = ["onClick"];
|
|
@@ -17192,7 +17264,7 @@ const _hoisted_9$3 = {
|
|
|
17192
17264
|
key: 0,
|
|
17193
17265
|
class: "nut-table__nodata__text"
|
|
17194
17266
|
};
|
|
17195
|
-
function _sfc_render$
|
|
17267
|
+
function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17196
17268
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
17197
17269
|
const _component_RenderColumn = resolveComponent("RenderColumn");
|
|
17198
17270
|
return openBlock(), createElementBlock("view", {
|
|
@@ -17258,9 +17330,9 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17258
17330
|
])) : createCommentVNode("", true)
|
|
17259
17331
|
], 2);
|
|
17260
17332
|
}
|
|
17261
|
-
var Table = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17262
|
-
const { componentName: componentName$
|
|
17263
|
-
const _sfc_main$
|
|
17333
|
+
var Table = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$r]]);
|
|
17334
|
+
const { componentName: componentName$p, create: create$q } = createComponent("animate");
|
|
17335
|
+
const _sfc_main$q = create$q({
|
|
17264
17336
|
props: {
|
|
17265
17337
|
type: {
|
|
17266
17338
|
type: String,
|
|
@@ -17282,7 +17354,7 @@ const _sfc_main$p = create$p({
|
|
|
17282
17354
|
clicked: false
|
|
17283
17355
|
});
|
|
17284
17356
|
let classes = computed(() => {
|
|
17285
|
-
const prefixCls = componentName$
|
|
17357
|
+
const prefixCls = componentName$p;
|
|
17286
17358
|
return {
|
|
17287
17359
|
"nut-ani-container": true,
|
|
17288
17360
|
[`${prefixCls}-${type.value}`]: action.value === "initial" || state.clicked ? type.value : false,
|
|
@@ -17302,7 +17374,7 @@ const _sfc_main$p = create$p({
|
|
|
17302
17374
|
}
|
|
17303
17375
|
});
|
|
17304
17376
|
const _hoisted_1$o = { class: "nut-animate" };
|
|
17305
|
-
function _sfc_render$
|
|
17377
|
+
function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17306
17378
|
return openBlock(), createElementBlock("view", _hoisted_1$o, [
|
|
17307
17379
|
createElementVNode("view", {
|
|
17308
17380
|
class: normalizeClass(_ctx.classes),
|
|
@@ -17312,9 +17384,9 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17312
17384
|
], 2)
|
|
17313
17385
|
]);
|
|
17314
17386
|
}
|
|
17315
|
-
var Animate = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17316
|
-
const { componentName: componentName$
|
|
17317
|
-
const _sfc_main$
|
|
17387
|
+
var Animate = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q]]);
|
|
17388
|
+
const { componentName: componentName$o, create: create$p } = createComponent("ellipsis");
|
|
17389
|
+
const _sfc_main$p = create$p({
|
|
17318
17390
|
props: {
|
|
17319
17391
|
content: {
|
|
17320
17392
|
type: String,
|
|
@@ -17352,7 +17424,7 @@ const _sfc_main$o = create$o({
|
|
|
17352
17424
|
expanded: false
|
|
17353
17425
|
});
|
|
17354
17426
|
const classes = computed(() => {
|
|
17355
|
-
const prefixCls = componentName$
|
|
17427
|
+
const prefixCls = componentName$o;
|
|
17356
17428
|
return {
|
|
17357
17429
|
[prefixCls]: true
|
|
17358
17430
|
};
|
|
@@ -17482,7 +17554,7 @@ const _sfc_main$o = create$o({
|
|
|
17482
17554
|
const _hoisted_1$n = { key: 0 };
|
|
17483
17555
|
const _hoisted_2$k = { key: 1 };
|
|
17484
17556
|
const _hoisted_3$i = { key: 2 };
|
|
17485
|
-
function _sfc_render$
|
|
17557
|
+
function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17486
17558
|
return openBlock(), createElementBlock("view", {
|
|
17487
17559
|
class: normalizeClass(_ctx.classes),
|
|
17488
17560
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
|
|
@@ -17508,7 +17580,184 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17508
17580
|
])) : createCommentVNode("", true)
|
|
17509
17581
|
], 2);
|
|
17510
17582
|
}
|
|
17511
|
-
var Ellipsis = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17583
|
+
var Ellipsis = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p]]);
|
|
17584
|
+
const { componentName: componentName$n, create: create$o } = createComponent("watermark");
|
|
17585
|
+
const _sfc_main$o = create$o({
|
|
17586
|
+
props: {
|
|
17587
|
+
name: {
|
|
17588
|
+
type: String,
|
|
17589
|
+
default: ""
|
|
17590
|
+
},
|
|
17591
|
+
gapY: {
|
|
17592
|
+
type: Number,
|
|
17593
|
+
default: 48
|
|
17594
|
+
},
|
|
17595
|
+
gapX: {
|
|
17596
|
+
type: Number,
|
|
17597
|
+
default: 24
|
|
17598
|
+
},
|
|
17599
|
+
zIndex: {
|
|
17600
|
+
type: Number,
|
|
17601
|
+
default: 2e3
|
|
17602
|
+
},
|
|
17603
|
+
width: {
|
|
17604
|
+
type: Number,
|
|
17605
|
+
default: 120
|
|
17606
|
+
},
|
|
17607
|
+
height: {
|
|
17608
|
+
type: Number,
|
|
17609
|
+
default: 64
|
|
17610
|
+
},
|
|
17611
|
+
rotate: {
|
|
17612
|
+
type: Number,
|
|
17613
|
+
default: -22
|
|
17614
|
+
},
|
|
17615
|
+
image: {
|
|
17616
|
+
type: String,
|
|
17617
|
+
default: ""
|
|
17618
|
+
},
|
|
17619
|
+
imageWidth: {
|
|
17620
|
+
type: Number,
|
|
17621
|
+
default: 120
|
|
17622
|
+
},
|
|
17623
|
+
imageHeight: {
|
|
17624
|
+
type: Number,
|
|
17625
|
+
default: 64
|
|
17626
|
+
},
|
|
17627
|
+
content: {
|
|
17628
|
+
type: String,
|
|
17629
|
+
default: ""
|
|
17630
|
+
},
|
|
17631
|
+
fontColor: {
|
|
17632
|
+
type: String,
|
|
17633
|
+
default: "rgba(0,0,0,.15)"
|
|
17634
|
+
},
|
|
17635
|
+
fontStyle: {
|
|
17636
|
+
type: String,
|
|
17637
|
+
default: "normal"
|
|
17638
|
+
},
|
|
17639
|
+
fontFamily: {
|
|
17640
|
+
type: String,
|
|
17641
|
+
default: "PingFang SC"
|
|
17642
|
+
},
|
|
17643
|
+
fontWeight: {
|
|
17644
|
+
type: String,
|
|
17645
|
+
default: "normal"
|
|
17646
|
+
},
|
|
17647
|
+
fontSize: {
|
|
17648
|
+
type: [String, Number],
|
|
17649
|
+
default: 14
|
|
17650
|
+
},
|
|
17651
|
+
fullPage: {
|
|
17652
|
+
type: Boolean,
|
|
17653
|
+
default: ""
|
|
17654
|
+
}
|
|
17655
|
+
},
|
|
17656
|
+
emits: ["click"],
|
|
17657
|
+
setup(props, { emit }) {
|
|
17658
|
+
const state = reactive({
|
|
17659
|
+
base64Url: ""
|
|
17660
|
+
});
|
|
17661
|
+
const {
|
|
17662
|
+
zIndex,
|
|
17663
|
+
gapX,
|
|
17664
|
+
gapY,
|
|
17665
|
+
width,
|
|
17666
|
+
height,
|
|
17667
|
+
rotate,
|
|
17668
|
+
image,
|
|
17669
|
+
imageWidth,
|
|
17670
|
+
imageHeight,
|
|
17671
|
+
content,
|
|
17672
|
+
fontStyle,
|
|
17673
|
+
fontWeight,
|
|
17674
|
+
fontColor,
|
|
17675
|
+
fontSize,
|
|
17676
|
+
fontFamily
|
|
17677
|
+
} = props;
|
|
17678
|
+
const init = () => {
|
|
17679
|
+
const canvas = document.createElement("canvas");
|
|
17680
|
+
const ratio = window.devicePixelRatio;
|
|
17681
|
+
console.log(ratio);
|
|
17682
|
+
const ctx = canvas.getContext("2d");
|
|
17683
|
+
const canvasWidth = `${(gapX + width) * ratio}px`;
|
|
17684
|
+
const canvasHeight = `${(gapY + height) * ratio}px`;
|
|
17685
|
+
const markWidth = width * ratio;
|
|
17686
|
+
const markHeight = height * ratio;
|
|
17687
|
+
canvas.setAttribute("width", canvasWidth);
|
|
17688
|
+
canvas.setAttribute("height", canvasHeight);
|
|
17689
|
+
if (ctx) {
|
|
17690
|
+
if (image) {
|
|
17691
|
+
ctx.translate(markWidth / 2, markHeight / 2);
|
|
17692
|
+
ctx.rotate(Math.PI / 180 * Number(rotate));
|
|
17693
|
+
const img = new Image();
|
|
17694
|
+
img.crossOrigin = "anonymous";
|
|
17695
|
+
img.referrerPolicy = "no-referrer";
|
|
17696
|
+
img.src = image;
|
|
17697
|
+
img.onload = () => {
|
|
17698
|
+
ctx.drawImage(img, -imageWidth * ratio / 2, -imageHeight * ratio / 2, imageWidth * ratio, imageHeight * ratio);
|
|
17699
|
+
ctx.restore();
|
|
17700
|
+
state.base64Url = canvas.toDataURL();
|
|
17701
|
+
console.log(state.base64Url);
|
|
17702
|
+
};
|
|
17703
|
+
} else if (content) {
|
|
17704
|
+
ctx.textBaseline = "middle";
|
|
17705
|
+
ctx.textAlign = "center";
|
|
17706
|
+
ctx.translate(markWidth / 2, markHeight / 2);
|
|
17707
|
+
ctx.rotate(Math.PI / 180 * Number(rotate));
|
|
17708
|
+
const markSize = Number(fontSize) * ratio;
|
|
17709
|
+
ctx.font = `${fontStyle} normal ${fontWeight} ${markSize}px/${markHeight}px ${fontFamily}`;
|
|
17710
|
+
ctx.fillStyle = fontColor;
|
|
17711
|
+
ctx.fillText(content, 0, 0);
|
|
17712
|
+
ctx.restore();
|
|
17713
|
+
state.base64Url = canvas.toDataURL();
|
|
17714
|
+
console.log(state.base64Url);
|
|
17715
|
+
}
|
|
17716
|
+
} else {
|
|
17717
|
+
throw new Error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas");
|
|
17718
|
+
}
|
|
17719
|
+
};
|
|
17720
|
+
init();
|
|
17721
|
+
watch(() => [
|
|
17722
|
+
zIndex,
|
|
17723
|
+
gapX,
|
|
17724
|
+
gapY,
|
|
17725
|
+
width,
|
|
17726
|
+
height,
|
|
17727
|
+
rotate,
|
|
17728
|
+
image,
|
|
17729
|
+
imageWidth,
|
|
17730
|
+
imageHeight,
|
|
17731
|
+
content,
|
|
17732
|
+
fontStyle,
|
|
17733
|
+
fontWeight,
|
|
17734
|
+
fontColor,
|
|
17735
|
+
fontSize,
|
|
17736
|
+
fontFamily
|
|
17737
|
+
], () => {
|
|
17738
|
+
init();
|
|
17739
|
+
});
|
|
17740
|
+
const classes = computed(() => {
|
|
17741
|
+
const prefixCls = componentName$n;
|
|
17742
|
+
return {
|
|
17743
|
+
[prefixCls]: true,
|
|
17744
|
+
[`${prefixCls}-full-page`]: props.fullPage
|
|
17745
|
+
};
|
|
17746
|
+
});
|
|
17747
|
+
return { ...toRefs(state), classes };
|
|
17748
|
+
}
|
|
17749
|
+
});
|
|
17750
|
+
function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17751
|
+
return openBlock(), createElementBlock("view", {
|
|
17752
|
+
class: normalizeClass(_ctx.classes),
|
|
17753
|
+
style: normalizeStyle({
|
|
17754
|
+
zIndex: _ctx.zIndex,
|
|
17755
|
+
backgroundSize: `${_ctx.gapX + _ctx.width}px`,
|
|
17756
|
+
backgroundImage: `url('${_ctx.base64Url}')`
|
|
17757
|
+
})
|
|
17758
|
+
}, null, 6);
|
|
17759
|
+
}
|
|
17760
|
+
var WaterMark = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o]]);
|
|
17512
17761
|
const { componentName: componentName$m, create: create$n, translate: translate$9 } = createComponent("address");
|
|
17513
17762
|
const _sfc_main$n = create$n({
|
|
17514
17763
|
inheritAttrs: false,
|
|
@@ -17883,8 +18132,8 @@ const _hoisted_11$1 = {
|
|
|
17883
18132
|
class: "region-tab",
|
|
17884
18133
|
ref: "tabRegion"
|
|
17885
18134
|
};
|
|
17886
|
-
const _hoisted_12 = ["onClick"];
|
|
17887
|
-
const _hoisted_13 = { class: "elevator-group" };
|
|
18135
|
+
const _hoisted_12$1 = ["onClick"];
|
|
18136
|
+
const _hoisted_13$1 = { class: "elevator-group" };
|
|
17888
18137
|
const _hoisted_14 = {
|
|
17889
18138
|
key: 2,
|
|
17890
18139
|
class: "exist-address"
|
|
@@ -17989,7 +18238,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17989
18238
|
onClick: ($event) => _ctx.changeRegionTab(item, key, index)
|
|
17990
18239
|
}, [
|
|
17991
18240
|
createElementVNode("view", null, toDisplayString(_ctx.getTabName(item, index)), 1)
|
|
17992
|
-
], 10, _hoisted_12);
|
|
18241
|
+
], 10, _hoisted_12$1);
|
|
17993
18242
|
}), 128)),
|
|
17994
18243
|
createElementVNode("view", {
|
|
17995
18244
|
class: "region-tab-line",
|
|
@@ -17997,7 +18246,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17997
18246
|
style: normalizeStyle({ left: _ctx.lineDistance + "px" })
|
|
17998
18247
|
}, null, 4)
|
|
17999
18248
|
], 512),
|
|
18000
|
-
createElementVNode("view", _hoisted_13, [
|
|
18249
|
+
createElementVNode("view", _hoisted_13$1, [
|
|
18001
18250
|
createVNode(_component_nut_elevator, {
|
|
18002
18251
|
height: _ctx.height,
|
|
18003
18252
|
"index-list": _ctx.regionList[_ctx.tabName[_ctx.tabIndex]],
|
|
@@ -19098,9 +19347,12 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19098
19347
|
createElementVNode("div", _hoisted_5$6, toDisplayString(_ctx.title), 1),
|
|
19099
19348
|
renderSlot(_ctx.$slots, "prolist"),
|
|
19100
19349
|
_ctx.isNeedPrice ? (openBlock(), createElementBlock("div", _hoisted_6$5, [
|
|
19101
|
-
|
|
19102
|
-
_ctx.isHaveSlot("origin") ? renderSlot(_ctx.$slots, "origin", { key: 0 }) : (openBlock(), createBlock(_component_nut_price, {
|
|
19350
|
+
_ctx.isHaveSlot("price") ? renderSlot(_ctx.$slots, "price", { key: 0 }) : (openBlock(), createBlock(_component_nut_price, {
|
|
19103
19351
|
key: 1,
|
|
19352
|
+
price: _ctx.price
|
|
19353
|
+
}, null, 8, ["price"])),
|
|
19354
|
+
_ctx.isHaveSlot("origin") ? renderSlot(_ctx.$slots, "origin", { key: 2 }) : (openBlock(), createBlock(_component_nut_price, {
|
|
19355
|
+
key: 3,
|
|
19104
19356
|
class: "nut-card__right__price__origin",
|
|
19105
19357
|
price: _ctx.vipPrice
|
|
19106
19358
|
}, null, 8, ["price"]))
|
|
@@ -19964,8 +20216,8 @@ const _sfc_main$4 = create$4({
|
|
|
19964
20216
|
}
|
|
19965
20217
|
},
|
|
19966
20218
|
setup(props, { emit }) {
|
|
19967
|
-
const onChange = () => {
|
|
19968
|
-
emit("onChange");
|
|
20219
|
+
const onChange = (sku) => {
|
|
20220
|
+
emit("onChange", sku);
|
|
19969
20221
|
};
|
|
19970
20222
|
return {
|
|
19971
20223
|
onChange
|
|
@@ -19982,19 +20234,21 @@ const _hoisted_4$4 = {
|
|
|
19982
20234
|
key: 0,
|
|
19983
20235
|
class: "nut-categorypane__childItemList"
|
|
19984
20236
|
};
|
|
19985
|
-
const _hoisted_5$2 = ["
|
|
19986
|
-
const _hoisted_6$1 =
|
|
19987
|
-
const _hoisted_7 = {
|
|
20237
|
+
const _hoisted_5$2 = ["onClick"];
|
|
20238
|
+
const _hoisted_6$1 = ["src"];
|
|
20239
|
+
const _hoisted_7 = { class: "nut-categorypane__skuImg" };
|
|
20240
|
+
const _hoisted_8 = {
|
|
19988
20241
|
key: 1,
|
|
19989
20242
|
class: "nut-categorypane__cateListRight"
|
|
19990
20243
|
};
|
|
19991
|
-
const
|
|
19992
|
-
const
|
|
20244
|
+
const _hoisted_9 = { class: "nut-categorypane__childTitle" };
|
|
20245
|
+
const _hoisted_10 = {
|
|
19993
20246
|
key: 0,
|
|
19994
20247
|
class: "nut-categorypane__childItemList"
|
|
19995
20248
|
};
|
|
19996
|
-
const
|
|
19997
|
-
const
|
|
20249
|
+
const _hoisted_11 = ["onClick"];
|
|
20250
|
+
const _hoisted_12 = { class: "nut-categorypane__skuName" };
|
|
20251
|
+
const _hoisted_13 = {
|
|
19998
20252
|
key: 2,
|
|
19999
20253
|
class: "nut-categorypane__selfItemList"
|
|
20000
20254
|
};
|
|
@@ -20009,43 +20263,43 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20009
20263
|
return openBlock(), createElementBlock("div", {
|
|
20010
20264
|
class: "nut-categorypane__childItem",
|
|
20011
20265
|
key,
|
|
20012
|
-
onClick:
|
|
20266
|
+
onClick: ($event) => _ctx.onChange(sku)
|
|
20013
20267
|
}, [
|
|
20014
20268
|
createElementVNode("img", {
|
|
20015
20269
|
class: "nut-categorypane__childImg",
|
|
20016
20270
|
src: sku.backImg
|
|
20017
|
-
}, null, 8,
|
|
20018
|
-
createElementVNode("div",
|
|
20019
|
-
]);
|
|
20271
|
+
}, null, 8, _hoisted_6$1),
|
|
20272
|
+
createElementVNode("div", _hoisted_7, toDisplayString(sku.catName), 1)
|
|
20273
|
+
], 8, _hoisted_5$2);
|
|
20020
20274
|
}), 128))
|
|
20021
20275
|
])) : createCommentVNode("", true)
|
|
20022
20276
|
]);
|
|
20023
20277
|
}), 128))
|
|
20024
20278
|
])) : createCommentVNode("", true),
|
|
20025
|
-
_ctx.type == "text" ? (openBlock(), createElementBlock("div",
|
|
20279
|
+
_ctx.type == "text" ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
20026
20280
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.categoryChild, (item, index) => {
|
|
20027
20281
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
20028
|
-
createElementVNode("div",
|
|
20029
|
-
item.catType == 1 ? (openBlock(), createElementBlock("div",
|
|
20282
|
+
createElementVNode("div", _hoisted_9, toDisplayString(item.catName), 1),
|
|
20283
|
+
item.catType == 1 ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
20030
20284
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.childCateList, (sku, key) => {
|
|
20031
20285
|
return openBlock(), createElementBlock("div", {
|
|
20032
20286
|
class: "nut-categorypane__childItem",
|
|
20033
20287
|
key,
|
|
20034
|
-
onClick:
|
|
20288
|
+
onClick: ($event) => _ctx.onChange(sku)
|
|
20035
20289
|
}, [
|
|
20036
|
-
createElementVNode("div",
|
|
20037
|
-
]);
|
|
20290
|
+
createElementVNode("div", _hoisted_12, toDisplayString(sku.catName), 1)
|
|
20291
|
+
], 8, _hoisted_11);
|
|
20038
20292
|
}), 128))
|
|
20039
20293
|
])) : createCommentVNode("", true)
|
|
20040
20294
|
]);
|
|
20041
20295
|
}), 128))
|
|
20042
20296
|
])) : createCommentVNode("", true),
|
|
20043
|
-
_ctx.type == "custom" ? (openBlock(), createElementBlock("div",
|
|
20297
|
+
_ctx.type == "custom" ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
20044
20298
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.customCategory, (sku, key) => {
|
|
20045
20299
|
return openBlock(), createElementBlock("div", {
|
|
20046
20300
|
class: "nut-categorypane__skuName",
|
|
20047
20301
|
key,
|
|
20048
|
-
onClick: _cache[
|
|
20302
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.onChange())
|
|
20049
20303
|
}, toDisplayString(sku.catName), 1);
|
|
20050
20304
|
}), 128))
|
|
20051
20305
|
])) : createCommentVNode("", true)
|
|
@@ -20117,7 +20371,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20117
20371
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.info.score = $event),
|
|
20118
20372
|
"icon-size": "10",
|
|
20119
20373
|
spacing: "5",
|
|
20120
|
-
|
|
20374
|
+
readonly: "",
|
|
20121
20375
|
onChange: _ctx.handleClick
|
|
20122
20376
|
}, null, 8, ["modelValue", "onChange"])
|
|
20123
20377
|
])
|
|
@@ -20141,7 +20395,8 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20141
20395
|
modelValue: _ctx.info.score,
|
|
20142
20396
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.info.score = $event),
|
|
20143
20397
|
"icon-size": "12",
|
|
20144
|
-
spacing: "3"
|
|
20398
|
+
spacing: "3",
|
|
20399
|
+
readonly: ""
|
|
20145
20400
|
}, null, 8, ["modelValue"]),
|
|
20146
20401
|
createElementVNode("i", {
|
|
20147
20402
|
class: normalizeClass([`nut-comment-header__${_ctx.type}-score-i`])
|
|
@@ -20483,7 +20738,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20483
20738
|
}
|
|
20484
20739
|
var Comment = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
20485
20740
|
function install(app) {
|
|
20486
|
-
const packages = [Button, Cell, CellGroup, _sfc_main$
|
|
20741
|
+
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, OldPicker, Swipe, ActionSheet, BackTop, Drag, _Dialog, InfiniteLoading, NotifyFunction, PullRefresh, Switch, ToastFunction, Audio, AudioOperate, Avatar, AvatarGroup, List, Progress, CircleProgress, NoticeBar, Empty, Video, _sfc_main$G, Step, Swiper, SwiperItem, Price, _ImagePreview, CountUp, CountDown, Badge, Tag, Popover, Skeleton, Collapse, CollapseItem, Table, Animate, Ellipsis, WaterMark, Address, Barrage, Signature, TimeSelect, TimePannel, TimeDetail, Sku, Card, Ecard, AddressList, Category, CategoryPane, Comment];
|
|
20487
20742
|
packages.forEach((item) => {
|
|
20488
20743
|
if (item.install) {
|
|
20489
20744
|
app.use(item);
|
|
@@ -20492,6 +20747,6 @@ function install(app) {
|
|
|
20492
20747
|
}
|
|
20493
20748
|
});
|
|
20494
20749
|
}
|
|
20495
|
-
const version = "3.1.23-beta.
|
|
20750
|
+
const version = "3.1.23-beta.3";
|
|
20496
20751
|
var nutui_vue_build = { install, version, Locale };
|
|
20497
|
-
export { ActionSheet, Address, AddressList, Animate, Audio, AudioOperate, Avatar, AvatarGroup, BackTop, Badge, Barrage, Button, Calendar, CalendarItem, Card, Cascader, Category, CategoryPane, Cell, CellGroup, _sfc_main$
|
|
20752
|
+
export { ActionSheet, Address, AddressList, Animate, Audio, AudioOperate, Avatar, AvatarGroup, BackTop, Badge, Barrage, Button, Calendar, CalendarItem, Card, Cascader, Category, CategoryPane, Cell, CellGroup, _sfc_main$1g as Checkbox, _sfc_main$1f as CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, Comment, _sfc_main$1J as ConfigProvider, CountDown, CountUp, DatePicker, _Dialog as Dialog, Divider, Drag, Ecard, Elevator, Ellipsis, Empty, FixedNav, Form, FormItem, _sfc_main$1C as Grid, GridItem, _sfc_main$1P as Icon, Image$1 as Image, _ImagePreview as ImagePreview, Indicator, InfiniteLoading, Input, InputNumber, _sfc_main$1H as Layout, List, Locale, Menu, MenuItem, Navbar, NoticeBar, NotifyFunction as Notify, NumberKeyboard, OldPicker, OverLay, Pagination, Picker, Popover, Popup, Price, Progress, PullRefresh, _sfc_main$19 as Radio, _sfc_main$18 as RadioGroup, Range, Rate, Row, SearchBar, ShortPassword, SideNavBar, SideNavBarItem, Signature, Skeleton, Sku, Step, _sfc_main$G as Steps, _sfc_main$1E as Sticky, SubSideNavBar, Swipe, Swiper, SwiperItem, Switch, TabPane, Tabbar, TabbarItem, Table, Tabs, Tag, TextArea, TimeDetail, TimePannel, TimeSelect, ToastFunction as Toast, Uploader, Video, WaterMark, nutui_vue_build as default, install, version };
|