@nutui/nutui 3.2.6-beta.2 → 3.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +72 -0
- package/README.md +11 -1
- package/dist/nutui.es.js +682 -1156
- package/dist/nutui.umd.js +689 -1164
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/AddressList.js +1 -1
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +1 -1
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +1 -1
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +11 -4
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +1 -1
- package/dist/packages/_es/Category.js +1 -1
- package/dist/packages/_es/CategoryPane.js +1 -1
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +1 -1
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +9 -12
- package/dist/packages/_es/Comment.js +1 -1
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +1 -1
- package/dist/packages/_es/Dialog.js +1 -1
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +1 -1
- package/dist/packages/_es/Elevator.js +8 -2
- package/dist/packages/_es/Ellipsis.js +3 -3
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +1 -1
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +1 -1
- package/dist/packages/_es/ImagePreview.js +16 -5
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +9 -2
- package/dist/packages/_es/Input.js +5 -12
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Invoice.js +1 -1
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +1 -1
- package/dist/packages/_es/Menu.js +1 -1
- package/dist/packages/_es/MenuItem.js +5 -2
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +1 -1
- package/dist/packages/_es/Notify.js +1 -1
- package/dist/packages/_es/NumberKeyboard.js +1 -1
- package/dist/packages/_es/OverLay.js +1 -1
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +1 -1
- package/dist/packages/_es/Popover.js +1 -1
- package/dist/packages/_es/Popup.js +6 -47
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Radio.js +1 -1
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +1 -1
- package/dist/packages/_es/Rate.js +1 -1
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/SideNavBar.js +1 -1
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +19 -24
- package/dist/packages/_es/Sku.js +1 -1
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +1 -1
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +1 -1
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +24 -10
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +1 -1
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +1 -1
- package/dist/packages/_es/TrendArrow.js +1 -1
- package/dist/packages/_es/Uploader.js +6 -6
- package/dist/packages/_es/Video.js +3 -2
- package/dist/packages/_es/WaterMark.js +1 -1
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/index4.js +1 -1
- package/dist/packages/_es/index5.js +8 -2
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/address/index.scss +5 -1
- package/dist/packages/card/index.scss +1 -0
- package/dist/packages/ellipsis/index.scss +4 -0
- package/dist/packages/formitem/index.scss +2 -0
- package/dist/packages/imagepreview/index.scss +5 -0
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/menuitem/index.scss +1 -0
- package/dist/packages/signature/index.scss +6 -2
- package/dist/packages/skeleton/index.scss +21 -19
- package/dist/packages/sticky/index.scss +3 -0
- package/dist/packages/tabbaritem/index.scss +4 -0
- package/dist/packages/timeselect/index.scss +0 -1
- package/dist/smartips/attributes.json +32 -56
- package/dist/smartips/tags.json +6 -16
- package/dist/smartips/web-types.json +48 -109
- package/dist/style.css +1 -1
- package/dist/styles/font/config.json +4 -0
- package/dist/styles/font/demo_index.html +118 -26
- package/dist/styles/font/iconfont.css +23 -7
- package/dist/styles/font/iconfont.js +6 -6
- package/dist/styles/font/iconfont.json +35 -7
- package/dist/styles/font/iconfont.ttf +0 -0
- package/dist/styles/font/iconfont.woff +0 -0
- package/dist/styles/font/iconfont.woff2 +0 -0
- package/dist/styles/themes/default.scss +53 -54
- package/dist/styles/themes/jdb.scss +53 -54
- package/dist/styles/themes/jddkh.scss +53 -54
- package/dist/styles/themes/jdt.scss +53 -54
- package/dist/styles/variables-jdb.scss +8 -1
- package/dist/styles/variables-jddkh.scss +8 -1
- package/dist/styles/variables-jdt.scss +8 -1
- package/dist/styles/variables.scss +8 -1
- package/dist/types/__VUE/address/index.vue.d.ts +2 -2
- package/dist/types/__VUE/audio/index.vue.d.ts +4 -4
- package/dist/types/__VUE/calendar/index.vue.d.ts +11 -0
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +15 -5
- package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/divider/index.vue.d.ts +1 -1
- package/dist/types/__VUE/elevator/index.vue.d.ts +2 -1
- package/dist/types/__VUE/fixednav/index.vue.d.ts +1 -1
- package/dist/types/__VUE/image/index.vue.d.ts +4 -4
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +1 -1
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +4 -4
- package/dist/types/__VUE/input/index.vue.d.ts +1 -2
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
- package/dist/types/__VUE/menuitem/index.vue.d.ts +3 -1
- package/dist/types/__VUE/navbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/noticebar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/picker/Column.vue.d.ts +4 -4
- package/dist/types/__VUE/picker/index.vue.d.ts +4 -4
- package/dist/types/__VUE/popover/index.vue.d.ts +1 -1
- package/dist/types/__VUE/range/index.vue.d.ts +7 -7
- package/dist/types/__VUE/rate/index.vue.d.ts +1 -1
- package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/skeleton/common.d.ts +2 -3
- package/dist/types/__VUE/skeleton/index.vue.d.ts +2 -3
- package/dist/types/__VUE/swiper/index.vue.d.ts +1 -1
- package/dist/types/__VUE/switch/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -0
- package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
- package/dist/types/__VUE/uploader/index.vue.d.ts +13 -4
- package/dist/types/__VUE/video/index.vue.d.ts +2 -2
- package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +1 -2
- package/package.json +2 -1
- package/dist/packages/_es/OldPicker.js +0 -486
- package/dist/packages/oldpicker/index.scss +0 -133
- package/dist/types/__VUE/oldpicker/Column.vue.d.ts +0 -96
- package/dist/types/__VUE/oldpicker/commonProps.d.ts +0 -22
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +0 -369
- package/dist/types/__VUE/oldpicker/types.d.ts +0 -24
package/dist/nutui.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:39 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { reactive, ref, defineComponent, h, toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, mergeProps, renderSlot, getCurrentInstance, Fragment, toDisplayString, createTextVNode, watch, onDeactivated, onBeforeUnmount, onMounted, onActivated, Transition, withCtx, withDirectives, withModifiers, vShow, onBeforeMount, Teleport, createVNode, useSlots, inject, provide, unref, onUnmounted, shallowReactive, markRaw, isVNode, nextTick, renderList, watchEffect, createSlots, readonly, vModelText,
|
|
6
|
+
import { reactive, ref, defineComponent, h, toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, mergeProps, renderSlot, getCurrentInstance, Fragment, toDisplayString, createTextVNode, watch, onDeactivated, onBeforeUnmount, onMounted, onActivated, Transition, withCtx, withDirectives, withModifiers, vShow, onBeforeMount, Teleport, createVNode, useSlots, inject, provide, unref, onUnmounted, shallowReactive, markRaw, isVNode, nextTick, renderList, watchEffect, createSlots, readonly, vModelText, resolveDynamicComponent, render as render$4, useCssVars } from "vue";
|
|
7
7
|
class BaseLang {
|
|
8
8
|
}
|
|
9
9
|
class Lang$1 extends BaseLang {
|
|
@@ -357,8 +357,8 @@ function createComponent(name) {
|
|
|
357
357
|
const pxCheck = (value) => {
|
|
358
358
|
return isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
359
359
|
};
|
|
360
|
-
const { componentName: componentName$
|
|
361
|
-
const _sfc_main$
|
|
360
|
+
const { componentName: componentName$1p, create: create$1P } = createComponent("icon");
|
|
361
|
+
const _sfc_main$1P = create$1P({
|
|
362
362
|
props: {
|
|
363
363
|
name: { type: String, default: "" },
|
|
364
364
|
size: { type: [String, Number], default: "" },
|
|
@@ -381,7 +381,7 @@ const _sfc_main$1R = create$1R({
|
|
|
381
381
|
return h(
|
|
382
382
|
_isImage ? "img" : props.tag,
|
|
383
383
|
{
|
|
384
|
-
class: _isImage ? `${componentName$
|
|
384
|
+
class: _isImage ? `${componentName$1p}__img` : `${props.fontClassName} ${componentName$1p} ${props.classPrefix}-${props.name}`,
|
|
385
385
|
style: {
|
|
386
386
|
color: props.color,
|
|
387
387
|
fontSize: pxCheck(props.size),
|
|
@@ -403,10 +403,10 @@ var _export_sfc = (sfc, props) => {
|
|
|
403
403
|
}
|
|
404
404
|
return target;
|
|
405
405
|
};
|
|
406
|
-
const { componentName: componentName$
|
|
407
|
-
const _sfc_main$
|
|
406
|
+
const { componentName: componentName$1o, create: create$1O } = createComponent("button");
|
|
407
|
+
const _sfc_main$1O = create$1O({
|
|
408
408
|
components: {
|
|
409
|
-
[_sfc_main$
|
|
409
|
+
[_sfc_main$1P.name]: _sfc_main$1P
|
|
410
410
|
},
|
|
411
411
|
props: {
|
|
412
412
|
color: String,
|
|
@@ -460,7 +460,7 @@ const _sfc_main$1Q = create$1Q({
|
|
|
460
460
|
}
|
|
461
461
|
};
|
|
462
462
|
const classes = computed(() => {
|
|
463
|
-
const prefixCls = componentName$
|
|
463
|
+
const prefixCls = componentName$1o;
|
|
464
464
|
return {
|
|
465
465
|
[prefixCls]: true,
|
|
466
466
|
[`${prefixCls}--${type.value}`]: type.value,
|
|
@@ -496,15 +496,15 @@ const _sfc_main$1Q = create$1Q({
|
|
|
496
496
|
};
|
|
497
497
|
}
|
|
498
498
|
});
|
|
499
|
-
const _hoisted_1$
|
|
500
|
-
function _sfc_render$
|
|
499
|
+
const _hoisted_1$1i = { class: "nut-button__warp" };
|
|
500
|
+
function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
501
501
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
502
502
|
return openBlock(), createElementBlock("view", {
|
|
503
503
|
class: normalizeClass(_ctx.classes),
|
|
504
504
|
style: normalizeStyle(_ctx.getStyle),
|
|
505
505
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
506
506
|
}, [
|
|
507
|
-
createElementVNode("view", _hoisted_1$
|
|
507
|
+
createElementVNode("view", _hoisted_1$1i, [
|
|
508
508
|
_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
|
|
509
509
|
key: 0,
|
|
510
510
|
class: "nut-icon-loading"
|
|
@@ -525,21 +525,21 @@ function _sfc_render$1D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
525
525
|
])
|
|
526
526
|
], 6);
|
|
527
527
|
}
|
|
528
|
-
var Button = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
528
|
+
var Button = /* @__PURE__ */ _export_sfc(_sfc_main$1O, [["render", _sfc_render$1B]]);
|
|
529
529
|
function useRouter() {
|
|
530
530
|
const proxy = getCurrentInstance().proxy;
|
|
531
531
|
return proxy.$router || null;
|
|
532
532
|
}
|
|
533
|
-
const _hoisted_1$
|
|
533
|
+
const _hoisted_1$1h = {
|
|
534
534
|
key: 0,
|
|
535
535
|
class: "nut-cell__icon"
|
|
536
536
|
};
|
|
537
|
-
const _hoisted_2$
|
|
537
|
+
const _hoisted_2$11 = {
|
|
538
538
|
key: 1,
|
|
539
539
|
class: "nut-cell__title"
|
|
540
540
|
};
|
|
541
|
-
const _hoisted_3$
|
|
542
|
-
const _hoisted_4$
|
|
541
|
+
const _hoisted_3$N = { class: "title" };
|
|
542
|
+
const _hoisted_4$D = { class: "nut-cell__title-desc" };
|
|
543
543
|
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
544
544
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
545
545
|
return openBlock(), createElementBlock("view", {
|
|
@@ -548,7 +548,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
548
548
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
549
549
|
}, [
|
|
550
550
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
551
|
-
_ctx.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("view", _hoisted_1$
|
|
551
|
+
_ctx.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("view", _hoisted_1$1h, [
|
|
552
552
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
553
553
|
_ctx.icon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
554
554
|
class: "icon",
|
|
@@ -556,12 +556,12 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
556
556
|
}), null, 16, ["name"])) : createCommentVNode("", true)
|
|
557
557
|
])
|
|
558
558
|
])) : createCommentVNode("", true),
|
|
559
|
-
_ctx.title || _ctx.subTitle || _ctx.$slots.title ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
559
|
+
_ctx.title || _ctx.subTitle || _ctx.$slots.title ? (openBlock(), createElementBlock("view", _hoisted_2$11, [
|
|
560
560
|
_ctx.subTitle ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
561
561
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
562
|
-
createElementVNode("view", _hoisted_3$
|
|
562
|
+
createElementVNode("view", _hoisted_3$N, toDisplayString(_ctx.title), 1)
|
|
563
563
|
]),
|
|
564
|
-
createElementVNode("view", _hoisted_4$
|
|
564
|
+
createElementVNode("view", _hoisted_4$D, toDisplayString(_ctx.subTitle), 1)
|
|
565
565
|
], 64)) : renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
|
|
566
566
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
567
567
|
])
|
|
@@ -580,8 +580,8 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
580
580
|
])
|
|
581
581
|
], 6);
|
|
582
582
|
}
|
|
583
|
-
const { componentName: componentName$
|
|
584
|
-
const _sfc_main$
|
|
583
|
+
const { componentName: componentName$1n, create: create$1N } = createComponent("cell");
|
|
584
|
+
const _sfc_main$1N = create$1N({
|
|
585
585
|
props: {
|
|
586
586
|
title: { type: String, default: "" },
|
|
587
587
|
subTitle: { type: String, default: "" },
|
|
@@ -600,7 +600,7 @@ const _sfc_main$1P = create$1P({
|
|
|
600
600
|
emits: ["click"],
|
|
601
601
|
setup(props, { emit }) {
|
|
602
602
|
const classes = computed(() => {
|
|
603
|
-
const prefixCls = componentName$
|
|
603
|
+
const prefixCls = componentName$1n;
|
|
604
604
|
return {
|
|
605
605
|
[prefixCls]: true,
|
|
606
606
|
[`${prefixCls}--clickable`]: props.isLink || props.to,
|
|
@@ -629,16 +629,16 @@ const _sfc_main$1P = create$1P({
|
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
631
|
});
|
|
632
|
-
var Cell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
633
|
-
const { componentName: componentName$
|
|
634
|
-
const _sfc_main$
|
|
632
|
+
var Cell = /* @__PURE__ */ _export_sfc(_sfc_main$1N, [["render", render$3]]);
|
|
633
|
+
const { componentName: componentName$1m, create: create$1M } = createComponent("cell-group");
|
|
634
|
+
const _sfc_main$1M = create$1M({
|
|
635
635
|
props: {
|
|
636
636
|
title: { type: String, default: "" },
|
|
637
637
|
desc: { type: String, default: "" }
|
|
638
638
|
},
|
|
639
639
|
setup() {
|
|
640
640
|
const classes = computed(() => {
|
|
641
|
-
const prefixCls = componentName$
|
|
641
|
+
const prefixCls = componentName$1m;
|
|
642
642
|
return {
|
|
643
643
|
[prefixCls]: true
|
|
644
644
|
};
|
|
@@ -648,28 +648,28 @@ const _sfc_main$1O = create$1O({
|
|
|
648
648
|
};
|
|
649
649
|
}
|
|
650
650
|
});
|
|
651
|
-
const _hoisted_1$
|
|
651
|
+
const _hoisted_1$1g = {
|
|
652
652
|
key: 1,
|
|
653
653
|
class: "nut-cell-group__title"
|
|
654
654
|
};
|
|
655
|
-
const _hoisted_2$
|
|
655
|
+
const _hoisted_2$10 = {
|
|
656
656
|
key: 3,
|
|
657
657
|
class: "nut-cell-group__desc"
|
|
658
658
|
};
|
|
659
|
-
const _hoisted_3$
|
|
660
|
-
function _sfc_render$
|
|
659
|
+
const _hoisted_3$M = { class: "nut-cell-group__warp" };
|
|
660
|
+
function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
661
661
|
return openBlock(), createElementBlock("view", {
|
|
662
662
|
class: normalizeClass(_ctx.classes)
|
|
663
663
|
}, [
|
|
664
|
-
_ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$
|
|
665
|
-
_ctx.$slots.desc ? renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
666
|
-
createElementVNode("view", _hoisted_3$
|
|
664
|
+
_ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$1g, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
665
|
+
_ctx.$slots.desc ? renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_2$10, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
666
|
+
createElementVNode("view", _hoisted_3$M, [
|
|
667
667
|
renderSlot(_ctx.$slots, "default")
|
|
668
668
|
])
|
|
669
669
|
], 2);
|
|
670
670
|
}
|
|
671
|
-
var CellGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
672
|
-
const { componentName: componentName$
|
|
671
|
+
var CellGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1M, [["render", _sfc_render$1A]]);
|
|
672
|
+
const { componentName: componentName$1l, create: create$1L } = createComponent("overlay");
|
|
673
673
|
const overlayProps = {
|
|
674
674
|
visible: {
|
|
675
675
|
type: Boolean,
|
|
@@ -699,12 +699,12 @@ const overlayProps = {
|
|
|
699
699
|
default: true
|
|
700
700
|
}
|
|
701
701
|
};
|
|
702
|
-
const _sfc_main$
|
|
702
|
+
const _sfc_main$1L = create$1L({
|
|
703
703
|
props: overlayProps,
|
|
704
704
|
emits: ["click", "update:visible"],
|
|
705
705
|
setup(props, { emit }) {
|
|
706
706
|
const classes = computed(() => {
|
|
707
|
-
const prefixCls = componentName$
|
|
707
|
+
const prefixCls = componentName$1l;
|
|
708
708
|
return {
|
|
709
709
|
[prefixCls]: true,
|
|
710
710
|
[props.overlayClass]: true
|
|
@@ -748,7 +748,7 @@ const _sfc_main$1N = create$1N({
|
|
|
748
748
|
return { classes, style, touchmove, onClick };
|
|
749
749
|
}
|
|
750
750
|
});
|
|
751
|
-
function _sfc_render$
|
|
751
|
+
function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
752
752
|
return openBlock(), createBlock(Transition, { name: "overlay-fade" }, {
|
|
753
753
|
default: withCtx(() => [
|
|
754
754
|
withDirectives(createElementVNode("view", {
|
|
@@ -765,7 +765,7 @@ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
765
765
|
_: 3
|
|
766
766
|
});
|
|
767
767
|
}
|
|
768
|
-
var OverLay = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
768
|
+
var OverLay = /* @__PURE__ */ _export_sfc(_sfc_main$1L, [["render", _sfc_render$1z]]);
|
|
769
769
|
let count = 0;
|
|
770
770
|
const CLSNAME = "nut-overflow-hidden";
|
|
771
771
|
const useLockScroll = (isLock) => {
|
|
@@ -783,7 +783,7 @@ const useLockScroll = (isLock) => {
|
|
|
783
783
|
};
|
|
784
784
|
return [lock, unlock];
|
|
785
785
|
};
|
|
786
|
-
const { componentName: componentName$
|
|
786
|
+
const { componentName: componentName$1k, create: create$1K } = createComponent("popup");
|
|
787
787
|
let _zIndex = 2e3;
|
|
788
788
|
const popupProps = {
|
|
789
789
|
...overlayProps,
|
|
@@ -829,17 +829,17 @@ const popupProps = {
|
|
|
829
829
|
},
|
|
830
830
|
isWrapTeleport: {
|
|
831
831
|
type: Boolean,
|
|
832
|
-
default:
|
|
832
|
+
default: false
|
|
833
833
|
},
|
|
834
834
|
safeAreaInsetBottom: {
|
|
835
835
|
type: Boolean,
|
|
836
836
|
default: false
|
|
837
837
|
}
|
|
838
838
|
};
|
|
839
|
-
const _sfc_main$
|
|
839
|
+
const _sfc_main$1K = create$1K({
|
|
840
840
|
components: {
|
|
841
841
|
[OverLay.name]: OverLay,
|
|
842
|
-
[_sfc_main$
|
|
842
|
+
[_sfc_main$1P.name]: _sfc_main$1P
|
|
843
843
|
},
|
|
844
844
|
props: {
|
|
845
845
|
...popupProps
|
|
@@ -857,7 +857,7 @@ const _sfc_main$1M = create$1M({
|
|
|
857
857
|
});
|
|
858
858
|
const [lockScroll, unlockScroll] = useLockScroll(() => props.lockScroll);
|
|
859
859
|
const classes = computed(() => {
|
|
860
|
-
const prefixCls = componentName$
|
|
860
|
+
const prefixCls = componentName$1k;
|
|
861
861
|
return {
|
|
862
862
|
[prefixCls]: true,
|
|
863
863
|
["round"]: props.round,
|
|
@@ -973,13 +973,12 @@ const _sfc_main$1M = create$1M({
|
|
|
973
973
|
};
|
|
974
974
|
}
|
|
975
975
|
});
|
|
976
|
-
|
|
977
|
-
function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
976
|
+
function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
978
977
|
const _component_nut_overlay = resolveComponent("nut-overlay");
|
|
979
978
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
980
|
-
return
|
|
981
|
-
|
|
982
|
-
|
|
979
|
+
return openBlock(), createBlock(Teleport, {
|
|
980
|
+
to: _ctx.teleport,
|
|
981
|
+
disabled: !_ctx.isWrapTeleport
|
|
983
982
|
}, [
|
|
984
983
|
_ctx.overlay ? (openBlock(), createBlock(_component_nut_overlay, {
|
|
985
984
|
key: 0,
|
|
@@ -1021,49 +1020,9 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1021
1020
|
]),
|
|
1022
1021
|
_: 3
|
|
1023
1022
|
}, 8, ["name", "onAfterEnter", "onAfterLeave"])
|
|
1024
|
-
], 8, ["to"
|
|
1025
|
-
_ctx.overlay ? (openBlock(), createBlock(_component_nut_overlay, {
|
|
1026
|
-
key: 0,
|
|
1027
|
-
visible: _ctx.visible,
|
|
1028
|
-
"close-on-click-overlay": _ctx.closeOnClickOverlay,
|
|
1029
|
-
class: normalizeClass(_ctx.overlayClass),
|
|
1030
|
-
style: normalizeStyle(_ctx.overlayStyle),
|
|
1031
|
-
"z-index": _ctx.zIndex,
|
|
1032
|
-
"lock-scroll": _ctx.lockScroll,
|
|
1033
|
-
duration: _ctx.duration,
|
|
1034
|
-
onClick: _ctx.onClickOverlay
|
|
1035
|
-
}, null, 8, ["visible", "close-on-click-overlay", "class", "style", "z-index", "lock-scroll", "duration", "onClick"])) : createCommentVNode("", true),
|
|
1036
|
-
createVNode(Transition, {
|
|
1037
|
-
name: _ctx.transitionName,
|
|
1038
|
-
onAfterEnter: _ctx.onOpened,
|
|
1039
|
-
onAfterLeave: _ctx.onClosed
|
|
1040
|
-
}, {
|
|
1041
|
-
default: withCtx(() => [
|
|
1042
|
-
withDirectives(createElementVNode("view", {
|
|
1043
|
-
class: normalizeClass(_ctx.classes),
|
|
1044
|
-
style: normalizeStyle(_ctx.popStyle),
|
|
1045
|
-
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
1046
|
-
}, [
|
|
1047
|
-
_ctx.showSlot ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
|
|
1048
|
-
_ctx.closed ? (openBlock(), createElementBlock("view", {
|
|
1049
|
-
key: 1,
|
|
1050
|
-
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
|
|
1051
|
-
class: normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
|
|
1052
|
-
}, [
|
|
1053
|
-
createVNode(_component_nut_icon, {
|
|
1054
|
-
name: _ctx.closeIcon,
|
|
1055
|
-
size: "12px"
|
|
1056
|
-
}, null, 8, ["name"])
|
|
1057
|
-
], 2)) : createCommentVNode("", true)
|
|
1058
|
-
], 6), [
|
|
1059
|
-
[vShow, _ctx.visible]
|
|
1060
|
-
])
|
|
1061
|
-
]),
|
|
1062
|
-
_: 3
|
|
1063
|
-
}, 8, ["name", "onAfterEnter", "onAfterLeave"])
|
|
1064
|
-
]));
|
|
1023
|
+
], 8, ["to", "disabled"]);
|
|
1065
1024
|
}
|
|
1066
|
-
var Popup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1025
|
+
var Popup = /* @__PURE__ */ _export_sfc(_sfc_main$1K, [["render", _sfc_render$1y]]);
|
|
1067
1026
|
const component$8 = {
|
|
1068
1027
|
props: {
|
|
1069
1028
|
theme: { type: String, default: "" },
|
|
@@ -1082,10 +1041,10 @@ const component$8 = {
|
|
|
1082
1041
|
};
|
|
1083
1042
|
}
|
|
1084
1043
|
};
|
|
1085
|
-
const { componentName: componentName$
|
|
1086
|
-
const _sfc_main$
|
|
1087
|
-
const { componentName: componentName$
|
|
1088
|
-
const _sfc_main$
|
|
1044
|
+
const { componentName: componentName$1j, create: create$1J } = createComponent("config-provider");
|
|
1045
|
+
const _sfc_main$1J = create$1J(component$8);
|
|
1046
|
+
const { componentName: componentName$1i, create: create$1I } = createComponent("image");
|
|
1047
|
+
const _sfc_main$1I = create$1I({
|
|
1089
1048
|
props: {
|
|
1090
1049
|
src: String,
|
|
1091
1050
|
fit: {
|
|
@@ -1131,7 +1090,7 @@ const _sfc_main$1K = create$1K({
|
|
|
1131
1090
|
slotError: useSlots().error
|
|
1132
1091
|
});
|
|
1133
1092
|
const classes = computed(() => {
|
|
1134
|
-
const prefixCls = componentName$
|
|
1093
|
+
const prefixCls = componentName$1i;
|
|
1135
1094
|
return {
|
|
1136
1095
|
[prefixCls]: true,
|
|
1137
1096
|
[`${prefixCls}-round`]: props.round
|
|
@@ -1177,16 +1136,16 @@ const _sfc_main$1K = create$1K({
|
|
|
1177
1136
|
return { ...toRefs(state), imageClick, classes, styles, stylebox, error, load };
|
|
1178
1137
|
}
|
|
1179
1138
|
});
|
|
1180
|
-
const _hoisted_1$
|
|
1181
|
-
const _hoisted_2
|
|
1139
|
+
const _hoisted_1$1f = ["src", "alt"];
|
|
1140
|
+
const _hoisted_2$$ = {
|
|
1182
1141
|
key: 0,
|
|
1183
1142
|
class: "nut-img-loading"
|
|
1184
1143
|
};
|
|
1185
|
-
const _hoisted_3$
|
|
1144
|
+
const _hoisted_3$L = {
|
|
1186
1145
|
key: 1,
|
|
1187
1146
|
class: "nut-img-error"
|
|
1188
1147
|
};
|
|
1189
|
-
function _sfc_render$
|
|
1148
|
+
function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1190
1149
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
1191
1150
|
return openBlock(), createElementBlock("view", {
|
|
1192
1151
|
class: normalizeClass(_ctx.classes),
|
|
@@ -1200,15 +1159,15 @@ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1200
1159
|
onLoad: _cache[0] || (_cache[0] = (...args) => _ctx.load && _ctx.load(...args)),
|
|
1201
1160
|
onError: _cache[1] || (_cache[1] = (...args) => _ctx.error && _ctx.error(...args)),
|
|
1202
1161
|
style: normalizeStyle(_ctx.styles)
|
|
1203
|
-
}, null, 44, _hoisted_1$
|
|
1204
|
-
_ctx.loading ? (openBlock(), createElementBlock("view", _hoisted_2
|
|
1162
|
+
}, null, 44, _hoisted_1$1f),
|
|
1163
|
+
_ctx.loading ? (openBlock(), createElementBlock("view", _hoisted_2$$, [
|
|
1205
1164
|
!_ctx.slotLoding ? (openBlock(), createBlock(_component_nut_icon, {
|
|
1206
1165
|
key: 0,
|
|
1207
1166
|
name: "image"
|
|
1208
1167
|
})) : createCommentVNode("", true),
|
|
1209
1168
|
renderSlot(_ctx.$slots, "loading")
|
|
1210
1169
|
])) : createCommentVNode("", true),
|
|
1211
|
-
_ctx.isError && !_ctx.loading ? (openBlock(), createElementBlock("view", _hoisted_3$
|
|
1170
|
+
_ctx.isError && !_ctx.loading ? (openBlock(), createElementBlock("view", _hoisted_3$L, [
|
|
1212
1171
|
!_ctx.slotError ? (openBlock(), createBlock(_component_nut_icon, {
|
|
1213
1172
|
key: 0,
|
|
1214
1173
|
name: "image-error"
|
|
@@ -1217,11 +1176,11 @@ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1217
1176
|
])) : createCommentVNode("", true)
|
|
1218
1177
|
], 6);
|
|
1219
1178
|
}
|
|
1220
|
-
var Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1221
|
-
const { create: create$
|
|
1222
|
-
const _sfc_main$
|
|
1223
|
-
const { componentName: componentName$
|
|
1224
|
-
const _sfc_main$
|
|
1179
|
+
var Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["render", _sfc_render$1x]]);
|
|
1180
|
+
const { create: create$1H } = createComponent("layout");
|
|
1181
|
+
const _sfc_main$1H = create$1H({});
|
|
1182
|
+
const { componentName: componentName$1h, create: create$1G } = createComponent("col");
|
|
1183
|
+
const _sfc_main$1G = create$1G({
|
|
1225
1184
|
props: {
|
|
1226
1185
|
span: {
|
|
1227
1186
|
type: [String, Number],
|
|
@@ -1234,7 +1193,7 @@ const _sfc_main$1I = create$1I({
|
|
|
1234
1193
|
},
|
|
1235
1194
|
emits: [],
|
|
1236
1195
|
setup(props) {
|
|
1237
|
-
const prefixCls = componentName$
|
|
1196
|
+
const prefixCls = componentName$1h;
|
|
1238
1197
|
const gutter = inject("gutter");
|
|
1239
1198
|
const classes = computed(() => {
|
|
1240
1199
|
return {
|
|
@@ -1256,7 +1215,7 @@ const _sfc_main$1I = create$1I({
|
|
|
1256
1215
|
};
|
|
1257
1216
|
}
|
|
1258
1217
|
});
|
|
1259
|
-
function _sfc_render$
|
|
1218
|
+
function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1260
1219
|
return openBlock(), createElementBlock("view", {
|
|
1261
1220
|
class: normalizeClass(_ctx.classes),
|
|
1262
1221
|
style: normalizeStyle(_ctx.style)
|
|
@@ -1264,9 +1223,9 @@ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1264
1223
|
renderSlot(_ctx.$slots, "default")
|
|
1265
1224
|
], 6);
|
|
1266
1225
|
}
|
|
1267
|
-
var Col = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1268
|
-
const { componentName: componentName$
|
|
1269
|
-
const _sfc_main$
|
|
1226
|
+
var Col = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["render", _sfc_render$1w]]);
|
|
1227
|
+
const { componentName: componentName$1g, create: create$1F } = createComponent("row");
|
|
1228
|
+
const _sfc_main$1F = create$1F({
|
|
1270
1229
|
props: {
|
|
1271
1230
|
type: {
|
|
1272
1231
|
type: String,
|
|
@@ -1291,7 +1250,7 @@ const _sfc_main$1H = create$1H({
|
|
|
1291
1250
|
},
|
|
1292
1251
|
emits: [],
|
|
1293
1252
|
setup(props) {
|
|
1294
|
-
const prefixCls = componentName$
|
|
1253
|
+
const prefixCls = componentName$1g;
|
|
1295
1254
|
provide("gutter", props.gutter);
|
|
1296
1255
|
const getClass = (prefix, type) => {
|
|
1297
1256
|
return prefix ? type ? `nut-row-${prefix}-${type}` : "" : `nut-row-${type}`;
|
|
@@ -1310,14 +1269,14 @@ const _sfc_main$1H = create$1H({
|
|
|
1310
1269
|
};
|
|
1311
1270
|
}
|
|
1312
1271
|
});
|
|
1313
|
-
function _sfc_render$
|
|
1272
|
+
function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1314
1273
|
return openBlock(), createElementBlock("view", {
|
|
1315
1274
|
class: normalizeClass(_ctx.getClasses())
|
|
1316
1275
|
}, [
|
|
1317
1276
|
renderSlot(_ctx.$slots, "default")
|
|
1318
1277
|
], 2);
|
|
1319
1278
|
}
|
|
1320
|
-
var Row = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1279
|
+
var Row = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$1v]]);
|
|
1321
1280
|
function isWindow(val) {
|
|
1322
1281
|
return val === window;
|
|
1323
1282
|
}
|
|
@@ -1347,8 +1306,8 @@ const useRect = (elementRef) => {
|
|
|
1347
1306
|
height: 0
|
|
1348
1307
|
};
|
|
1349
1308
|
};
|
|
1350
|
-
const { componentName: componentName$
|
|
1351
|
-
const _sfc_main$
|
|
1309
|
+
const { componentName: componentName$1f, create: create$1E } = createComponent("sticky");
|
|
1310
|
+
const _sfc_main$1E = create$1E({
|
|
1352
1311
|
props: {
|
|
1353
1312
|
position: {
|
|
1354
1313
|
type: String,
|
|
@@ -1427,7 +1386,7 @@ const _sfc_main$1G = create$1G({
|
|
|
1427
1386
|
"view",
|
|
1428
1387
|
{
|
|
1429
1388
|
style: stickyStyle.value,
|
|
1430
|
-
class: state.fixed ? `${componentName$
|
|
1389
|
+
class: state.fixed ? `${componentName$1f} nut-sticky--fixed` : componentName$1f
|
|
1431
1390
|
},
|
|
1432
1391
|
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
1433
1392
|
);
|
|
@@ -1492,8 +1451,8 @@ const _sfc_main$1G = create$1G({
|
|
|
1492
1451
|
};
|
|
1493
1452
|
}
|
|
1494
1453
|
});
|
|
1495
|
-
const { componentName: componentName$
|
|
1496
|
-
const _sfc_main$
|
|
1454
|
+
const { componentName: componentName$1e, create: create$1D } = createComponent("divider");
|
|
1455
|
+
const _sfc_main$1D = create$1D({
|
|
1497
1456
|
props: {
|
|
1498
1457
|
contentPosition: {
|
|
1499
1458
|
type: String,
|
|
@@ -1515,7 +1474,7 @@ const _sfc_main$1F = create$1F({
|
|
|
1515
1474
|
components: {},
|
|
1516
1475
|
setup(props, context) {
|
|
1517
1476
|
const classes = computed(() => {
|
|
1518
|
-
const prefixCls = componentName$
|
|
1477
|
+
const prefixCls = componentName$1e;
|
|
1519
1478
|
let defaultClassesObj = {
|
|
1520
1479
|
[prefixCls]: true
|
|
1521
1480
|
};
|
|
@@ -1540,7 +1499,7 @@ const _sfc_main$1F = create$1F({
|
|
|
1540
1499
|
return { classes };
|
|
1541
1500
|
}
|
|
1542
1501
|
});
|
|
1543
|
-
function _sfc_render$
|
|
1502
|
+
function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1544
1503
|
return _ctx.direction === "horizontal" ? (openBlock(), createElementBlock("view", {
|
|
1545
1504
|
key: 0,
|
|
1546
1505
|
class: normalizeClass(_ctx.classes)
|
|
@@ -1551,7 +1510,7 @@ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1551
1510
|
class: normalizeClass(_ctx.classes)
|
|
1552
1511
|
}, null, 2));
|
|
1553
1512
|
}
|
|
1554
|
-
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1513
|
+
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$1u]]);
|
|
1555
1514
|
function flattenVNodes(children, childName) {
|
|
1556
1515
|
const result = [];
|
|
1557
1516
|
const traverse = (children2) => {
|
|
@@ -1616,7 +1575,7 @@ function useProvide(key, childName) {
|
|
|
1616
1575
|
};
|
|
1617
1576
|
};
|
|
1618
1577
|
}
|
|
1619
|
-
const { componentName: componentName$
|
|
1578
|
+
const { componentName: componentName$1d } = createComponent("grid");
|
|
1620
1579
|
const GRID_KEY = Symbol("grid");
|
|
1621
1580
|
const gridProps = {
|
|
1622
1581
|
columnNum: {
|
|
@@ -1661,9 +1620,9 @@ const gridProps = {
|
|
|
1661
1620
|
const component$7 = {
|
|
1662
1621
|
props: gridProps,
|
|
1663
1622
|
setup(props, { slots }) {
|
|
1664
|
-
useProvide(GRID_KEY, `${componentName$
|
|
1623
|
+
useProvide(GRID_KEY, `${componentName$1d}-item`)({ props });
|
|
1665
1624
|
const rootClass = computed(() => {
|
|
1666
|
-
const prefixCls = componentName$
|
|
1625
|
+
const prefixCls = componentName$1d;
|
|
1667
1626
|
return {
|
|
1668
1627
|
[prefixCls]: true,
|
|
1669
1628
|
[`${prefixCls}--border`]: props.border && !props.gutter
|
|
@@ -1689,8 +1648,8 @@ const component$7 = {
|
|
|
1689
1648
|
};
|
|
1690
1649
|
}
|
|
1691
1650
|
};
|
|
1692
|
-
const { create: create$
|
|
1693
|
-
const _sfc_main$
|
|
1651
|
+
const { create: create$1C } = createComponent("grid");
|
|
1652
|
+
const _sfc_main$1C = create$1C(component$7);
|
|
1694
1653
|
function useInject(key) {
|
|
1695
1654
|
const parent = inject(key, null);
|
|
1696
1655
|
if (parent) {
|
|
@@ -1709,8 +1668,8 @@ function useInject(key) {
|
|
|
1709
1668
|
index: ref(-1)
|
|
1710
1669
|
};
|
|
1711
1670
|
}
|
|
1712
|
-
const { create: create$
|
|
1713
|
-
const _sfc_main$
|
|
1671
|
+
const { create: create$1B, componentName: componentName$1c } = createComponent("grid-item");
|
|
1672
|
+
const _sfc_main$1B = create$1B({
|
|
1714
1673
|
props: {
|
|
1715
1674
|
text: {
|
|
1716
1675
|
type: String
|
|
@@ -1744,7 +1703,7 @@ const _sfc_main$1D = create$1D({
|
|
|
1744
1703
|
const index = Parent.index;
|
|
1745
1704
|
const parent = Parent.parent.props;
|
|
1746
1705
|
const rootClass = computed(() => {
|
|
1747
|
-
const prefixCls = componentName$
|
|
1706
|
+
const prefixCls = componentName$1c;
|
|
1748
1707
|
return {
|
|
1749
1708
|
[prefixCls]: true
|
|
1750
1709
|
};
|
|
@@ -1764,7 +1723,7 @@ const _sfc_main$1D = create$1D({
|
|
|
1764
1723
|
return style;
|
|
1765
1724
|
});
|
|
1766
1725
|
const contentClass = computed(() => {
|
|
1767
|
-
const prefixCls = `${componentName$
|
|
1726
|
+
const prefixCls = `${componentName$1c}__content`;
|
|
1768
1727
|
return {
|
|
1769
1728
|
[`${prefixCls}`]: true,
|
|
1770
1729
|
[`${prefixCls}--border`]: parent.border,
|
|
@@ -1801,11 +1760,11 @@ const _sfc_main$1D = create$1D({
|
|
|
1801
1760
|
};
|
|
1802
1761
|
}
|
|
1803
1762
|
});
|
|
1804
|
-
const _hoisted_1$
|
|
1763
|
+
const _hoisted_1$1e = {
|
|
1805
1764
|
key: 3,
|
|
1806
1765
|
class: "nut-grid-item__text"
|
|
1807
1766
|
};
|
|
1808
|
-
function _sfc_render$
|
|
1767
|
+
function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1809
1768
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
1810
1769
|
return openBlock(), createElementBlock("view", {
|
|
1811
1770
|
class: normalizeClass(_ctx.rootClass),
|
|
@@ -1823,14 +1782,14 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1823
1782
|
size: _ctx.iconProps.size,
|
|
1824
1783
|
color: _ctx.iconProps.color
|
|
1825
1784
|
}), null, 16, ["name", "size", "color"])),
|
|
1826
|
-
_ctx.$slots.text ? renderSlot(_ctx.$slots, "text", { key: 2 }) : (openBlock(), createElementBlock("view", _hoisted_1$
|
|
1785
|
+
_ctx.$slots.text ? renderSlot(_ctx.$slots, "text", { key: 2 }) : (openBlock(), createElementBlock("view", _hoisted_1$1e, toDisplayString(_ctx.text), 1))
|
|
1827
1786
|
], 64))
|
|
1828
1787
|
], 2)
|
|
1829
1788
|
], 6);
|
|
1830
1789
|
}
|
|
1831
|
-
var GridItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1832
|
-
const { componentName: componentName$
|
|
1833
|
-
const _sfc_main$
|
|
1790
|
+
var GridItem = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$1t]]);
|
|
1791
|
+
const { componentName: componentName$1b, create: create$1A } = createComponent("navbar");
|
|
1792
|
+
const _sfc_main$1A = create$1A({
|
|
1834
1793
|
props: {
|
|
1835
1794
|
leftShow: { type: Boolean, default: false },
|
|
1836
1795
|
title: { type: String, default: "" },
|
|
@@ -1865,7 +1824,7 @@ const _sfc_main$1C = create$1C({
|
|
|
1865
1824
|
const navBarHtml = ref(null);
|
|
1866
1825
|
let navHeight = ref(0);
|
|
1867
1826
|
const classes = computed(() => {
|
|
1868
|
-
const prefixCls = componentName$
|
|
1827
|
+
const prefixCls = componentName$1b;
|
|
1869
1828
|
return {
|
|
1870
1829
|
[prefixCls]: true,
|
|
1871
1830
|
[`${prefixCls}--border`]: border.value,
|
|
@@ -1911,32 +1870,32 @@ const _sfc_main$1C = create$1C({
|
|
|
1911
1870
|
};
|
|
1912
1871
|
}
|
|
1913
1872
|
});
|
|
1914
|
-
const _hoisted_1$
|
|
1873
|
+
const _hoisted_1$1d = {
|
|
1915
1874
|
key: 0,
|
|
1916
1875
|
class: "nut-navbar--placeholder",
|
|
1917
1876
|
ref: "navBarWrap"
|
|
1918
1877
|
};
|
|
1919
|
-
const _hoisted_2$
|
|
1878
|
+
const _hoisted_2$_ = {
|
|
1920
1879
|
key: 1,
|
|
1921
1880
|
class: "nut-navbar__text"
|
|
1922
1881
|
};
|
|
1923
|
-
const _hoisted_3$
|
|
1924
|
-
const _hoisted_4$
|
|
1882
|
+
const _hoisted_3$K = { class: "nut-navbar__title" };
|
|
1883
|
+
const _hoisted_4$C = {
|
|
1925
1884
|
key: 0,
|
|
1926
1885
|
class: "nut-navbar__text"
|
|
1927
1886
|
};
|
|
1928
|
-
const _hoisted_5$
|
|
1887
|
+
const _hoisted_5$s = {
|
|
1929
1888
|
key: 1,
|
|
1930
1889
|
class: "nut-navbar__text"
|
|
1931
1890
|
};
|
|
1932
|
-
const _hoisted_6$
|
|
1933
|
-
const _hoisted_7$
|
|
1891
|
+
const _hoisted_6$p = { class: "nut-navbar__title" };
|
|
1892
|
+
const _hoisted_7$l = {
|
|
1934
1893
|
key: 0,
|
|
1935
1894
|
class: "nut-navbar__text"
|
|
1936
1895
|
};
|
|
1937
|
-
function _sfc_render$
|
|
1896
|
+
function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1938
1897
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
1939
|
-
return _ctx.fixed && _ctx.placeholder ? (openBlock(), createElementBlock("view", _hoisted_1$
|
|
1898
|
+
return _ctx.fixed && _ctx.placeholder ? (openBlock(), createElementBlock("view", _hoisted_1$1d, [
|
|
1940
1899
|
createElementVNode("view", {
|
|
1941
1900
|
class: normalizeClass(_ctx.classes),
|
|
1942
1901
|
style: normalizeStyle(_ctx.styles),
|
|
@@ -1951,10 +1910,10 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1951
1910
|
color: "#979797",
|
|
1952
1911
|
name: "left"
|
|
1953
1912
|
})) : createCommentVNode("", true),
|
|
1954
|
-
_ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
1913
|
+
_ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_2$_, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
|
|
1955
1914
|
renderSlot(_ctx.$slots, "left")
|
|
1956
1915
|
]),
|
|
1957
|
-
createElementVNode("view", _hoisted_3$
|
|
1916
|
+
createElementVNode("view", _hoisted_3$K, [
|
|
1958
1917
|
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
1959
1918
|
key: 0,
|
|
1960
1919
|
class: "title",
|
|
@@ -1973,7 +1932,7 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1973
1932
|
class: "nut-navbar__right",
|
|
1974
1933
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
|
|
1975
1934
|
}, [
|
|
1976
|
-
_ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_4$
|
|
1935
|
+
_ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_4$C, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
1977
1936
|
renderSlot(_ctx.$slots, "right")
|
|
1978
1937
|
])
|
|
1979
1938
|
], 6)
|
|
@@ -1991,10 +1950,10 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1991
1950
|
color: "#979797",
|
|
1992
1951
|
name: "left"
|
|
1993
1952
|
})) : createCommentVNode("", true),
|
|
1994
|
-
_ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_5$
|
|
1953
|
+
_ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_5$s, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
|
|
1995
1954
|
renderSlot(_ctx.$slots, "left")
|
|
1996
1955
|
]),
|
|
1997
|
-
createElementVNode("view", _hoisted_6$
|
|
1956
|
+
createElementVNode("view", _hoisted_6$p, [
|
|
1998
1957
|
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
1999
1958
|
key: 0,
|
|
2000
1959
|
class: "title",
|
|
@@ -2013,13 +1972,13 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2013
1972
|
class: "nut-navbar__right",
|
|
2014
1973
|
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
|
|
2015
1974
|
}, [
|
|
2016
|
-
_ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_7$
|
|
1975
|
+
_ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_7$l, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
2017
1976
|
renderSlot(_ctx.$slots, "right")
|
|
2018
1977
|
])
|
|
2019
1978
|
], 6));
|
|
2020
1979
|
}
|
|
2021
|
-
var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2022
|
-
const { componentName: componentName$
|
|
1980
|
+
var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["render", _sfc_render$1s]]);
|
|
1981
|
+
const { componentName: componentName$1a, translate: translate$s } = createComponent("fixednav");
|
|
2023
1982
|
const component$6 = {
|
|
2024
1983
|
props: {
|
|
2025
1984
|
visible: {
|
|
@@ -2063,7 +2022,7 @@ const component$6 = {
|
|
|
2063
2022
|
emits: ["update:visible", "selected"],
|
|
2064
2023
|
setup(props, { emit }) {
|
|
2065
2024
|
const classes = computed(() => {
|
|
2066
|
-
const prefixCls = componentName$
|
|
2025
|
+
const prefixCls = componentName$1a;
|
|
2067
2026
|
return {
|
|
2068
2027
|
[prefixCls]: true,
|
|
2069
2028
|
active: props.visible,
|
|
@@ -2084,15 +2043,15 @@ const component$6 = {
|
|
|
2084
2043
|
return { classes, updateValue, selected, translate: translate$s, current };
|
|
2085
2044
|
}
|
|
2086
2045
|
};
|
|
2087
|
-
const _hoisted_1$
|
|
2088
|
-
const _hoisted_2
|
|
2089
|
-
const _hoisted_3$
|
|
2090
|
-
const _hoisted_4$
|
|
2091
|
-
const _hoisted_5$
|
|
2046
|
+
const _hoisted_1$1c = { class: "nut-fixednav__list" };
|
|
2047
|
+
const _hoisted_2$Z = ["onClick"];
|
|
2048
|
+
const _hoisted_3$J = ["src"];
|
|
2049
|
+
const _hoisted_4$B = { class: "span" };
|
|
2050
|
+
const _hoisted_5$r = {
|
|
2092
2051
|
key: 0,
|
|
2093
2052
|
class: "b"
|
|
2094
2053
|
};
|
|
2095
|
-
const _hoisted_6$
|
|
2054
|
+
const _hoisted_6$o = { class: "text" };
|
|
2096
2055
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2097
2056
|
const _component_nut_overlay = resolveComponent("nut-overlay");
|
|
2098
2057
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
@@ -2107,7 +2066,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2107
2066
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.updateValue(false))
|
|
2108
2067
|
}, null, 8, ["visible"])) : createCommentVNode("", true),
|
|
2109
2068
|
renderSlot(_ctx.$slots, "list", {}, () => [
|
|
2110
|
-
createElementVNode("view", _hoisted_1$
|
|
2069
|
+
createElementVNode("view", _hoisted_1$1c, [
|
|
2111
2070
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navList, (item, index) => {
|
|
2112
2071
|
return openBlock(), createElementBlock("view", {
|
|
2113
2072
|
class: normalizeClass(["nut-fixednav__list-item", { active: item.id == _ctx.current }]),
|
|
@@ -2116,10 +2075,10 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2116
2075
|
}, [
|
|
2117
2076
|
createElementVNode("img", {
|
|
2118
2077
|
src: item.icon
|
|
2119
|
-
}, null, 8, _hoisted_3$
|
|
2120
|
-
createElementVNode("view", _hoisted_4$
|
|
2121
|
-
item.num ? (openBlock(), createElementBlock("view", _hoisted_5$
|
|
2122
|
-
], 10, _hoisted_2
|
|
2078
|
+
}, null, 8, _hoisted_3$J),
|
|
2079
|
+
createElementVNode("view", _hoisted_4$B, toDisplayString(item.text), 1),
|
|
2080
|
+
item.num ? (openBlock(), createElementBlock("view", _hoisted_5$r, toDisplayString(item.num), 1)) : createCommentVNode("", true)
|
|
2081
|
+
], 10, _hoisted_2$Z);
|
|
2123
2082
|
}), 128))
|
|
2124
2083
|
])
|
|
2125
2084
|
]),
|
|
@@ -2132,16 +2091,16 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2132
2091
|
name: "left",
|
|
2133
2092
|
color: "#fff"
|
|
2134
2093
|
}),
|
|
2135
|
-
createElementVNode("view", _hoisted_6$
|
|
2094
|
+
createElementVNode("view", _hoisted_6$o, toDisplayString(_ctx.visible ? _ctx.activeText || _ctx.translate("activeText") : _ctx.unActiveText || _ctx.translate("unActiveText")), 1)
|
|
2136
2095
|
])
|
|
2137
2096
|
])
|
|
2138
2097
|
], 6);
|
|
2139
2098
|
}
|
|
2140
|
-
const { create: create$
|
|
2141
|
-
const _sfc_main$
|
|
2142
|
-
var FixedNav = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2143
|
-
const { componentName: componentName$
|
|
2144
|
-
const _sfc_main$
|
|
2099
|
+
const { create: create$1z } = createComponent("fixednav");
|
|
2100
|
+
const _sfc_main$1z = create$1z(component$6);
|
|
2101
|
+
var FixedNav = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", render$2]]);
|
|
2102
|
+
const { componentName: componentName$19, create: create$1y } = createComponent("menu");
|
|
2103
|
+
const _sfc_main$1y = create$1y({
|
|
2145
2104
|
props: {
|
|
2146
2105
|
activeColor: {
|
|
2147
2106
|
type: String,
|
|
@@ -2208,7 +2167,7 @@ const _sfc_main$1A = create$1A({
|
|
|
2208
2167
|
const { children, linkChildren } = useChildren();
|
|
2209
2168
|
const opened = computed(() => children.some((item) => item.state.showWrapper));
|
|
2210
2169
|
const classes = computed(() => {
|
|
2211
|
-
const prefixCls = componentName$
|
|
2170
|
+
const prefixCls = componentName$19;
|
|
2212
2171
|
return {
|
|
2213
2172
|
[prefixCls]: true,
|
|
2214
2173
|
"scroll-fixed": isScrollFixed.value
|
|
@@ -2276,9 +2235,9 @@ const _sfc_main$1A = create$1A({
|
|
|
2276
2235
|
};
|
|
2277
2236
|
}
|
|
2278
2237
|
});
|
|
2279
|
-
const _hoisted_1$
|
|
2280
|
-
const _hoisted_2$
|
|
2281
|
-
function _sfc_render$
|
|
2238
|
+
const _hoisted_1$1b = ["onClick"];
|
|
2239
|
+
const _hoisted_2$Y = { class: "nut-menu__title-text" };
|
|
2240
|
+
function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2282
2241
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
2283
2242
|
return openBlock(), createElementBlock("view", {
|
|
2284
2243
|
class: normalizeClass(_ctx.classes)
|
|
@@ -2297,22 +2256,22 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2297
2256
|
createElementVNode("view", {
|
|
2298
2257
|
class: normalizeClass(["nut-menu__title", _ctx.getClasses(item.state.showPopup)])
|
|
2299
2258
|
}, [
|
|
2300
|
-
createElementVNode("view", _hoisted_2$
|
|
2259
|
+
createElementVNode("view", _hoisted_2$Y, toDisplayString(item.renderTitle()), 1),
|
|
2301
2260
|
createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
|
|
2302
2261
|
name: _ctx.titleIcon || (_ctx.direction === "up" ? "arrow-up" : "down-arrow"),
|
|
2303
2262
|
size: "10",
|
|
2304
2263
|
class: "nut-menu__title-icon"
|
|
2305
2264
|
}), null, 16, ["name"])
|
|
2306
2265
|
], 2)
|
|
2307
|
-
], 14, _hoisted_1$
|
|
2266
|
+
], 14, _hoisted_1$1b);
|
|
2308
2267
|
}), 128))
|
|
2309
2268
|
], 2),
|
|
2310
2269
|
renderSlot(_ctx.$slots, "default")
|
|
2311
2270
|
], 2);
|
|
2312
2271
|
}
|
|
2313
|
-
var Menu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2314
|
-
const { componentName: componentName$
|
|
2315
|
-
const _sfc_main$
|
|
2272
|
+
var Menu = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["render", _sfc_render$1r]]);
|
|
2273
|
+
const { componentName: componentName$18, create: create$1x } = createComponent("menu-item");
|
|
2274
|
+
const _sfc_main$1x = create$1x({
|
|
2316
2275
|
props: {
|
|
2317
2276
|
title: String,
|
|
2318
2277
|
options: {
|
|
@@ -2336,10 +2295,10 @@ const _sfc_main$1z = create$1z({
|
|
|
2336
2295
|
}
|
|
2337
2296
|
},
|
|
2338
2297
|
components: {
|
|
2339
|
-
[_sfc_main$
|
|
2298
|
+
[_sfc_main$1P.name]: _sfc_main$1P,
|
|
2340
2299
|
[Popup.name]: Popup
|
|
2341
2300
|
},
|
|
2342
|
-
emits: ["update:modelValue", "change"],
|
|
2301
|
+
emits: ["update:modelValue", "change", "open", "close"],
|
|
2343
2302
|
setup(props, { emit, slots }) {
|
|
2344
2303
|
const state = reactive({
|
|
2345
2304
|
showPopup: false,
|
|
@@ -2360,7 +2319,7 @@ const _sfc_main$1z = create$1z({
|
|
|
2360
2319
|
};
|
|
2361
2320
|
const { parent } = useParent();
|
|
2362
2321
|
const classes = computed(() => {
|
|
2363
|
-
const prefixCls = componentName$
|
|
2322
|
+
const prefixCls = componentName$18;
|
|
2364
2323
|
return {
|
|
2365
2324
|
[prefixCls]: true
|
|
2366
2325
|
};
|
|
@@ -2381,6 +2340,7 @@ const _sfc_main$1z = create$1z({
|
|
|
2381
2340
|
state.isShowPlaceholderElement = show;
|
|
2382
2341
|
if (show) {
|
|
2383
2342
|
state.showWrapper = true;
|
|
2343
|
+
emit("open");
|
|
2384
2344
|
}
|
|
2385
2345
|
};
|
|
2386
2346
|
const renderTitle = () => {
|
|
@@ -2400,11 +2360,13 @@ const _sfc_main$1z = create$1z({
|
|
|
2400
2360
|
}
|
|
2401
2361
|
};
|
|
2402
2362
|
const handleClose = () => {
|
|
2363
|
+
emit("close");
|
|
2403
2364
|
state.showWrapper = false;
|
|
2404
2365
|
state.isShowPlaceholderElement = false;
|
|
2405
2366
|
};
|
|
2406
2367
|
const handleClickOutside = () => {
|
|
2407
2368
|
state.showPopup = false;
|
|
2369
|
+
emit("close");
|
|
2408
2370
|
};
|
|
2409
2371
|
return {
|
|
2410
2372
|
classes,
|
|
@@ -2419,9 +2381,9 @@ const _sfc_main$1z = create$1z({
|
|
|
2419
2381
|
};
|
|
2420
2382
|
}
|
|
2421
2383
|
});
|
|
2422
|
-
const _hoisted_1$
|
|
2423
|
-
const _hoisted_2$
|
|
2424
|
-
function _sfc_render$
|
|
2384
|
+
const _hoisted_1$1a = { class: "nut-menu-item__content nut-menu-item__overflow" };
|
|
2385
|
+
const _hoisted_2$X = ["onClick"];
|
|
2386
|
+
function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2425
2387
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
2426
2388
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
2427
2389
|
return withDirectives((openBlock(), createElementBlock("view", {
|
|
@@ -2451,7 +2413,7 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2451
2413
|
"close-on-click-overlay": _ctx.parent.props.closeOnClickOverlay
|
|
2452
2414
|
}), {
|
|
2453
2415
|
default: withCtx(() => [
|
|
2454
|
-
createElementVNode("view", _hoisted_1$
|
|
2416
|
+
createElementVNode("view", _hoisted_1$1a, [
|
|
2455
2417
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index) => {
|
|
2456
2418
|
return openBlock(), createElementBlock("view", {
|
|
2457
2419
|
key: index,
|
|
@@ -2468,7 +2430,7 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2468
2430
|
class: normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
|
|
2469
2431
|
style: normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
|
|
2470
2432
|
}, toDisplayString(option.text), 7)
|
|
2471
|
-
], 14, _hoisted_2$
|
|
2433
|
+
], 14, _hoisted_2$X);
|
|
2472
2434
|
}), 128)),
|
|
2473
2435
|
renderSlot(_ctx.$slots, "default")
|
|
2474
2436
|
])
|
|
@@ -2479,9 +2441,9 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2479
2441
|
[vShow, _ctx.state.showWrapper]
|
|
2480
2442
|
]);
|
|
2481
2443
|
}
|
|
2482
|
-
var MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2483
|
-
const { create: create$
|
|
2484
|
-
const _sfc_main$
|
|
2444
|
+
var MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["render", _sfc_render$1q]]);
|
|
2445
|
+
const { create: create$1w } = createComponent("tabbar");
|
|
2446
|
+
const _sfc_main$1w = create$1w({
|
|
2485
2447
|
props: {
|
|
2486
2448
|
visible: {
|
|
2487
2449
|
type: [Number, String],
|
|
@@ -2560,7 +2522,7 @@ const _sfc_main$1y = create$1y({
|
|
|
2560
2522
|
};
|
|
2561
2523
|
}
|
|
2562
2524
|
});
|
|
2563
|
-
function _sfc_render$
|
|
2525
|
+
function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2564
2526
|
return _ctx.bottom && _ctx.placeholder ? (openBlock(), createElementBlock("div", {
|
|
2565
2527
|
key: 0,
|
|
2566
2528
|
class: "nut-tabbar__placeholder",
|
|
@@ -2579,9 +2541,9 @@ function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2579
2541
|
renderSlot(_ctx.$slots, "default")
|
|
2580
2542
|
], 2));
|
|
2581
2543
|
}
|
|
2582
|
-
var Tabbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2583
|
-
const { create: create$
|
|
2584
|
-
const _sfc_main$
|
|
2544
|
+
var Tabbar = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["render", _sfc_render$1p]]);
|
|
2545
|
+
const { create: create$1v } = createComponent("tabbar-item");
|
|
2546
|
+
const _sfc_main$1v = create$1v({
|
|
2585
2547
|
props: {
|
|
2586
2548
|
tabTitle: {
|
|
2587
2549
|
type: String,
|
|
@@ -2624,7 +2586,10 @@ const _sfc_main$1x = create$1x({
|
|
|
2624
2586
|
},
|
|
2625
2587
|
to: [Object, String]
|
|
2626
2588
|
},
|
|
2627
|
-
setup(props,
|
|
2589
|
+
setup(props, { emit, slots }) {
|
|
2590
|
+
const isHaveSlot = (slot) => {
|
|
2591
|
+
return slots[slot];
|
|
2592
|
+
};
|
|
2628
2593
|
const parent = inject("parent");
|
|
2629
2594
|
const state = reactive({
|
|
2630
2595
|
size: parent.size,
|
|
@@ -2686,26 +2651,31 @@ const _sfc_main$1x = create$1x({
|
|
|
2686
2651
|
return {
|
|
2687
2652
|
state,
|
|
2688
2653
|
active,
|
|
2654
|
+
isHaveSlot,
|
|
2689
2655
|
change
|
|
2690
2656
|
};
|
|
2691
2657
|
}
|
|
2692
2658
|
});
|
|
2693
|
-
const _hoisted_1$
|
|
2694
|
-
const _hoisted_2$
|
|
2659
|
+
const _hoisted_1$19 = { class: "nut-tabbar-item_icon-box" };
|
|
2660
|
+
const _hoisted_2$W = {
|
|
2695
2661
|
key: 0,
|
|
2696
2662
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_num"
|
|
2697
2663
|
};
|
|
2698
|
-
const _hoisted_3$
|
|
2664
|
+
const _hoisted_3$I = {
|
|
2699
2665
|
key: 1,
|
|
2700
2666
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_nums"
|
|
2701
2667
|
};
|
|
2702
|
-
const _hoisted_4$
|
|
2668
|
+
const _hoisted_4$A = {
|
|
2703
2669
|
key: 1,
|
|
2704
2670
|
class: "nut-tabbar-item_icon-box_dot"
|
|
2705
2671
|
};
|
|
2706
|
-
const _hoisted_5$
|
|
2707
|
-
|
|
2708
|
-
|
|
2672
|
+
const _hoisted_5$q = {
|
|
2673
|
+
key: 2,
|
|
2674
|
+
class: "nut-tabbar-item_icon-box_icon"
|
|
2675
|
+
};
|
|
2676
|
+
const _hoisted_6$n = { key: 3 };
|
|
2677
|
+
const _hoisted_7$k = { key: 0 };
|
|
2678
|
+
function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2709
2679
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
2710
2680
|
return openBlock(), createElementBlock("div", {
|
|
2711
2681
|
class: normalizeClass(["nut-tabbar-item", { "nut-tabbar-item__icon--unactive": !_ctx.active }]),
|
|
@@ -2714,12 +2684,15 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2714
2684
|
}),
|
|
2715
2685
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.change())
|
|
2716
2686
|
}, [
|
|
2717
|
-
createElementVNode("view", _hoisted_1$
|
|
2687
|
+
createElementVNode("view", _hoisted_1$19, [
|
|
2718
2688
|
!_ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
2719
|
-
_ctx.num && _ctx.num <= 99 ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
2689
|
+
_ctx.num && _ctx.num <= 99 ? (openBlock(), createElementBlock("view", _hoisted_2$W, toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (openBlock(), createElementBlock("view", _hoisted_3$I, toDisplayString("99+"))) : createCommentVNode("", true)
|
|
2720
2690
|
], 64)) : createCommentVNode("", true),
|
|
2721
|
-
_ctx.dot ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
2722
|
-
_ctx.icon ? (openBlock(), createElementBlock("
|
|
2691
|
+
_ctx.dot ? (openBlock(), createElementBlock("div", _hoisted_4$A)) : createCommentVNode("", true),
|
|
2692
|
+
_ctx.isHaveSlot("icon") ? (openBlock(), createElementBlock("div", _hoisted_5$q, [
|
|
2693
|
+
renderSlot(_ctx.$slots, "icon", { active: _ctx.active })
|
|
2694
|
+
])) : createCommentVNode("", true),
|
|
2695
|
+
_ctx.icon && !_ctx.isHaveSlot("icon") ? (openBlock(), createElementBlock("view", _hoisted_6$n, [
|
|
2723
2696
|
createVNode(_component_nut_icon, {
|
|
2724
2697
|
class: "nut-tabbar-item_icon-box_icon",
|
|
2725
2698
|
size: _ctx.state.size,
|
|
@@ -2728,8 +2701,8 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2728
2701
|
"class-prefix": _ctx.classPrefix
|
|
2729
2702
|
}, null, 8, ["size", "name", "font-class-name", "class-prefix"])
|
|
2730
2703
|
])) : createCommentVNode("", true),
|
|
2731
|
-
!_ctx.icon && _ctx.activeImg ? (openBlock(), createElementBlock("div", {
|
|
2732
|
-
key:
|
|
2704
|
+
!_ctx.icon && _ctx.activeImg && !_ctx.isHaveSlot("icon") ? (openBlock(), createElementBlock("div", {
|
|
2705
|
+
key: 4,
|
|
2733
2706
|
class: "nut-tabbar-item_icon-box_icon",
|
|
2734
2707
|
style: normalizeStyle({
|
|
2735
2708
|
backgroundImage: `url(${_ctx.active ? _ctx.activeImg : _ctx.img})`,
|
|
@@ -2738,23 +2711,26 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2738
2711
|
})
|
|
2739
2712
|
}, null, 4)) : createCommentVNode("", true),
|
|
2740
2713
|
createElementVNode("view", {
|
|
2741
|
-
class: normalizeClass([
|
|
2714
|
+
class: normalizeClass([
|
|
2715
|
+
"nut-tabbar-item_icon-box_nav-word",
|
|
2716
|
+
{ "nut-tabbar-item_icon-box_big-word": !_ctx.icon && !_ctx.activeImg && !_ctx.isHaveSlot("icon") }
|
|
2717
|
+
])
|
|
2742
2718
|
}, [
|
|
2743
|
-
_ctx.tabTitle ? (openBlock(), createElementBlock("view",
|
|
2719
|
+
_ctx.tabTitle ? (openBlock(), createElementBlock("view", _hoisted_7$k, toDisplayString(_ctx.tabTitle), 1)) : createCommentVNode("", true),
|
|
2744
2720
|
!_ctx.tabTitle ? renderSlot(_ctx.$slots, "default", { key: 1 }) : createCommentVNode("", true)
|
|
2745
2721
|
], 2)
|
|
2746
2722
|
])
|
|
2747
2723
|
], 6);
|
|
2748
2724
|
}
|
|
2749
|
-
var TabbarItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2725
|
+
var TabbarItem = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["render", _sfc_render$1o]]);
|
|
2750
2726
|
function useExpose(apis) {
|
|
2751
2727
|
const instance = getCurrentInstance();
|
|
2752
2728
|
if (instance) {
|
|
2753
2729
|
Object.assign(instance.proxy, apis);
|
|
2754
2730
|
}
|
|
2755
2731
|
}
|
|
2756
|
-
const { componentName: componentName$
|
|
2757
|
-
const _sfc_main$
|
|
2732
|
+
const { componentName: componentName$17, create: create$1u } = createComponent("elevator");
|
|
2733
|
+
const _sfc_main$1u = create$1u({
|
|
2758
2734
|
props: {
|
|
2759
2735
|
height: {
|
|
2760
2736
|
type: [Number, String],
|
|
@@ -2783,7 +2759,7 @@ const _sfc_main$1w = create$1w({
|
|
|
2783
2759
|
default: 35
|
|
2784
2760
|
}
|
|
2785
2761
|
},
|
|
2786
|
-
emits: ["click-item", "click-index"],
|
|
2762
|
+
emits: ["click-item", "click-index", "change"],
|
|
2787
2763
|
setup(props, context) {
|
|
2788
2764
|
const listview = ref(null);
|
|
2789
2765
|
const state = reactive({
|
|
@@ -2804,7 +2780,7 @@ const _sfc_main$1w = create$1w({
|
|
|
2804
2780
|
fixedTop: 0
|
|
2805
2781
|
});
|
|
2806
2782
|
const classes = computed(() => {
|
|
2807
|
-
const prefixCls = componentName$
|
|
2783
|
+
const prefixCls = componentName$17;
|
|
2808
2784
|
return {
|
|
2809
2785
|
[prefixCls]: true
|
|
2810
2786
|
};
|
|
@@ -2918,6 +2894,12 @@ const _sfc_main$1w = create$1w({
|
|
|
2918
2894
|
state.fixedTop = fixedTop;
|
|
2919
2895
|
}
|
|
2920
2896
|
);
|
|
2897
|
+
watch(
|
|
2898
|
+
() => state.currentIndex,
|
|
2899
|
+
(newVal) => {
|
|
2900
|
+
context.emit("change", newVal);
|
|
2901
|
+
}
|
|
2902
|
+
);
|
|
2921
2903
|
return {
|
|
2922
2904
|
classes,
|
|
2923
2905
|
...toRefs(state),
|
|
@@ -2933,13 +2915,13 @@ const _sfc_main$1w = create$1w({
|
|
|
2933
2915
|
};
|
|
2934
2916
|
}
|
|
2935
2917
|
});
|
|
2936
|
-
const _hoisted_1$
|
|
2937
|
-
const _hoisted_2$
|
|
2938
|
-
const _hoisted_3$
|
|
2939
|
-
const _hoisted_4$
|
|
2940
|
-
const _hoisted_5$
|
|
2941
|
-
const _hoisted_6$
|
|
2942
|
-
function _sfc_render$
|
|
2918
|
+
const _hoisted_1$18 = { class: "nut-elevator__list__item__code" };
|
|
2919
|
+
const _hoisted_2$V = ["onClick"];
|
|
2920
|
+
const _hoisted_3$H = ["innerHTML"];
|
|
2921
|
+
const _hoisted_4$z = { class: "fixed-title" };
|
|
2922
|
+
const _hoisted_5$p = { class: "nut-elevator__bars__inner" };
|
|
2923
|
+
const _hoisted_6$m = ["data-index", "onClick"];
|
|
2924
|
+
function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2943
2925
|
return openBlock(), createElementBlock("view", {
|
|
2944
2926
|
class: normalizeClass(_ctx.classes)
|
|
2945
2927
|
}, [
|
|
@@ -2955,7 +2937,7 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2955
2937
|
ref_for: true,
|
|
2956
2938
|
ref: _ctx.setListGroup
|
|
2957
2939
|
}, [
|
|
2958
|
-
createElementVNode("view", _hoisted_1$
|
|
2940
|
+
createElementVNode("view", _hoisted_1$18, toDisplayString(item[_ctx.acceptKey]), 1),
|
|
2959
2941
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (subitem) => {
|
|
2960
2942
|
return openBlock(), createElementBlock("view", {
|
|
2961
2943
|
class: normalizeClass(["nut-elevator__list__item__name", {
|
|
@@ -2967,11 +2949,11 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2967
2949
|
!_ctx.$slots.default ? (openBlock(), createElementBlock("span", {
|
|
2968
2950
|
key: 0,
|
|
2969
2951
|
innerHTML: subitem.name
|
|
2970
|
-
}, null, 8, _hoisted_3$
|
|
2952
|
+
}, null, 8, _hoisted_3$H)) : renderSlot(_ctx.$slots, "default", {
|
|
2971
2953
|
key: 1,
|
|
2972
2954
|
item: subitem
|
|
2973
2955
|
})
|
|
2974
|
-
], 10, _hoisted_2$
|
|
2956
|
+
], 10, _hoisted_2$V);
|
|
2975
2957
|
}), 128))
|
|
2976
2958
|
]);
|
|
2977
2959
|
}), 128)),
|
|
@@ -2980,7 +2962,7 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2980
2962
|
class: "nut-elevator__list__fixed",
|
|
2981
2963
|
style: normalizeStyle(_ctx.fixedStyle)
|
|
2982
2964
|
}, [
|
|
2983
|
-
createElementVNode("span", _hoisted_4$
|
|
2965
|
+
createElementVNode("span", _hoisted_4$z, toDisplayString(_ctx.indexList[_ctx.currentIndex][_ctx.acceptKey]), 1)
|
|
2984
2966
|
], 4)), [
|
|
2985
2967
|
[vShow, _ctx.scrollY > 0]
|
|
2986
2968
|
]) : createCommentVNode("", true)
|
|
@@ -2997,22 +2979,22 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2997
2979
|
onTouchmove: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.touchMove && _ctx.touchMove(...args), ["stop", "prevent"])),
|
|
2998
2980
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.touchEnd && _ctx.touchEnd(...args))
|
|
2999
2981
|
}, [
|
|
3000
|
-
createElementVNode("view", _hoisted_5$
|
|
2982
|
+
createElementVNode("view", _hoisted_5$p, [
|
|
3001
2983
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.indexList, (item, index) => {
|
|
3002
2984
|
return openBlock(), createElementBlock("view", {
|
|
3003
2985
|
class: normalizeClass(["nut-elevator__bars__inner__item", { active: item[_ctx.acceptKey] === _ctx.indexList[_ctx.currentIndex][_ctx.acceptKey] }]),
|
|
3004
2986
|
"data-index": index,
|
|
3005
2987
|
key: item[_ctx.acceptKey],
|
|
3006
2988
|
onClick: ($event) => _ctx.handleClickIndex(item[_ctx.acceptKey])
|
|
3007
|
-
}, toDisplayString(item[_ctx.acceptKey]), 11, _hoisted_6$
|
|
2989
|
+
}, toDisplayString(item[_ctx.acceptKey]), 11, _hoisted_6$m);
|
|
3008
2990
|
}), 128))
|
|
3009
2991
|
])
|
|
3010
2992
|
], 32)
|
|
3011
2993
|
], 2);
|
|
3012
2994
|
}
|
|
3013
|
-
var Elevator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3014
|
-
const { create: create$
|
|
3015
|
-
const _sfc_main$
|
|
2995
|
+
var Elevator = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["render", _sfc_render$1n]]);
|
|
2996
|
+
const { create: create$1t, translate: translate$r } = createComponent("pagination");
|
|
2997
|
+
const _sfc_main$1t = create$1t({
|
|
3016
2998
|
props: {
|
|
3017
2999
|
modelValue: {
|
|
3018
3000
|
type: Number,
|
|
@@ -3118,19 +3100,19 @@ const _sfc_main$1v = create$1v({
|
|
|
3118
3100
|
};
|
|
3119
3101
|
}
|
|
3120
3102
|
});
|
|
3121
|
-
const _hoisted_1$
|
|
3122
|
-
const _hoisted_2$
|
|
3103
|
+
const _hoisted_1$17 = { class: "nut-pagination" };
|
|
3104
|
+
const _hoisted_2$U = {
|
|
3123
3105
|
key: 0,
|
|
3124
3106
|
class: "nut-pagination-contain"
|
|
3125
3107
|
};
|
|
3126
|
-
const _hoisted_3$
|
|
3127
|
-
const _hoisted_4$
|
|
3108
|
+
const _hoisted_3$G = ["onClick"];
|
|
3109
|
+
const _hoisted_4$y = {
|
|
3128
3110
|
key: 1,
|
|
3129
3111
|
class: "nut-pagination-contain"
|
|
3130
3112
|
};
|
|
3131
|
-
const _hoisted_5$
|
|
3132
|
-
function _sfc_render$
|
|
3133
|
-
return openBlock(), createElementBlock("view", _hoisted_1$
|
|
3113
|
+
const _hoisted_5$o = { class: "nut-pagination-simple" };
|
|
3114
|
+
function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3115
|
+
return openBlock(), createElementBlock("view", _hoisted_1$17, [
|
|
3134
3116
|
createElementVNode("view", {
|
|
3135
3117
|
class: normalizeClass(["nut-pagination-prev", _ctx.mode == "multi" ? "" : "simple-border", _ctx.modelValue == 1 ? "disabled" : ""]),
|
|
3136
3118
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.select(_ctx.modelValue - 1, true))
|
|
@@ -3139,7 +3121,7 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3139
3121
|
createTextVNode(toDisplayString(_ctx.prevText || _ctx.translate("prev")), 1)
|
|
3140
3122
|
])
|
|
3141
3123
|
], 2),
|
|
3142
|
-
_ctx.mode == "multi" ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
3124
|
+
_ctx.mode == "multi" ? (openBlock(), createElementBlock("view", _hoisted_2$U, [
|
|
3143
3125
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.pages, (item, index) => {
|
|
3144
3126
|
return openBlock(), createElementBlock("view", {
|
|
3145
3127
|
key: index + "pagination",
|
|
@@ -3149,11 +3131,11 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3149
3131
|
renderSlot(_ctx.$slots, "page", { item }, () => [
|
|
3150
3132
|
createTextVNode(toDisplayString(item.text), 1)
|
|
3151
3133
|
])
|
|
3152
|
-
], 10, _hoisted_3$
|
|
3134
|
+
], 10, _hoisted_3$G);
|
|
3153
3135
|
}), 128))
|
|
3154
3136
|
])) : createCommentVNode("", true),
|
|
3155
|
-
_ctx.mode == "simple" ? (openBlock(), createElementBlock("view", _hoisted_4$
|
|
3156
|
-
createElementVNode("view", _hoisted_5$
|
|
3137
|
+
_ctx.mode == "simple" ? (openBlock(), createElementBlock("view", _hoisted_4$y, [
|
|
3138
|
+
createElementVNode("view", _hoisted_5$o, toDisplayString(_ctx.modelValue) + "/" + toDisplayString(_ctx.countRef), 1)
|
|
3157
3139
|
])) : createCommentVNode("", true),
|
|
3158
3140
|
createElementVNode("view", {
|
|
3159
3141
|
class: normalizeClass(["nut-pagination-next", _ctx.modelValue >= _ctx.countRef ? "disabled" : ""]),
|
|
@@ -3165,7 +3147,7 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3165
3147
|
], 2)
|
|
3166
3148
|
]);
|
|
3167
3149
|
}
|
|
3168
|
-
var Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3150
|
+
var Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["render", _sfc_render$1m]]);
|
|
3169
3151
|
class Title {
|
|
3170
3152
|
constructor() {
|
|
3171
3153
|
this.title = "";
|
|
@@ -3357,8 +3339,8 @@ const component$5 = {
|
|
|
3357
3339
|
};
|
|
3358
3340
|
}
|
|
3359
3341
|
};
|
|
3360
|
-
const _hoisted_1$
|
|
3361
|
-
const _hoisted_2$
|
|
3342
|
+
const _hoisted_1$16 = ["onClick"];
|
|
3343
|
+
const _hoisted_2$T = ["onClick"];
|
|
3362
3344
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3363
3345
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
3364
3346
|
const _component_nut_sticky = resolveComponent("nut-sticky");
|
|
@@ -3403,7 +3385,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3403
3385
|
createElementVNode("view", {
|
|
3404
3386
|
class: normalizeClass(["nut-tabs__titles-item__text", { ellipsis: _ctx.ellipsis }])
|
|
3405
3387
|
}, toDisplayString(item.title), 3)
|
|
3406
|
-
], 14, _hoisted_1$
|
|
3388
|
+
], 14, _hoisted_1$16);
|
|
3407
3389
|
}), 128))
|
|
3408
3390
|
], 6)
|
|
3409
3391
|
]),
|
|
@@ -3438,7 +3420,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3438
3420
|
createElementVNode("view", {
|
|
3439
3421
|
class: normalizeClass(["nut-tabs__titles-item__text", { ellipsis: _ctx.ellipsis }])
|
|
3440
3422
|
}, toDisplayString(item.title), 3)
|
|
3441
|
-
], 14, _hoisted_2$
|
|
3423
|
+
], 14, _hoisted_2$T);
|
|
3442
3424
|
}), 128))
|
|
3443
3425
|
], 6)),
|
|
3444
3426
|
createElementVNode("view", {
|
|
@@ -3449,11 +3431,11 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3449
3431
|
], 4)
|
|
3450
3432
|
], 2);
|
|
3451
3433
|
}
|
|
3452
|
-
const { create: create$
|
|
3453
|
-
const _sfc_main$
|
|
3454
|
-
var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3455
|
-
const { create: create$
|
|
3456
|
-
const _sfc_main$
|
|
3434
|
+
const { create: create$1s } = createComponent("tabs");
|
|
3435
|
+
const _sfc_main$1s = create$1s(component$5);
|
|
3436
|
+
var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["render", render$1]]);
|
|
3437
|
+
const { create: create$1r } = createComponent("tabpane");
|
|
3438
|
+
const _sfc_main$1r = create$1r({
|
|
3457
3439
|
props: {
|
|
3458
3440
|
title: {
|
|
3459
3441
|
type: [String, Number],
|
|
@@ -3478,16 +3460,16 @@ const _sfc_main$1t = create$1t({
|
|
|
3478
3460
|
};
|
|
3479
3461
|
}
|
|
3480
3462
|
});
|
|
3481
|
-
function _sfc_render$
|
|
3463
|
+
function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3482
3464
|
return openBlock(), createElementBlock("view", {
|
|
3483
3465
|
class: normalizeClass(["nut-tabpane", { inactive: _ctx.paneKey != _ctx.activeKey && _ctx.autoHeight }])
|
|
3484
3466
|
}, [
|
|
3485
3467
|
renderSlot(_ctx.$slots, "default")
|
|
3486
3468
|
], 2);
|
|
3487
3469
|
}
|
|
3488
|
-
var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3489
|
-
const { componentName: componentName$
|
|
3490
|
-
const _sfc_main$
|
|
3470
|
+
var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$1l]]);
|
|
3471
|
+
const { componentName: componentName$16, create: create$1q } = createComponent("indicator");
|
|
3472
|
+
const _sfc_main$1q = create$1q({
|
|
3491
3473
|
props: {
|
|
3492
3474
|
size: {
|
|
3493
3475
|
type: Number,
|
|
@@ -3515,17 +3497,17 @@ const _sfc_main$1s = create$1s({
|
|
|
3515
3497
|
setup(props) {
|
|
3516
3498
|
const { block, align } = toRefs(props);
|
|
3517
3499
|
const classes = computed(() => {
|
|
3518
|
-
const prefixCls = componentName$
|
|
3500
|
+
const prefixCls = componentName$16;
|
|
3519
3501
|
return {
|
|
3520
3502
|
[prefixCls]: true,
|
|
3521
3503
|
[`${prefixCls}--block`]: block.value,
|
|
3522
3504
|
[`${prefixCls}--align__${align.value}`]: block.value && align.value
|
|
3523
3505
|
};
|
|
3524
3506
|
});
|
|
3525
|
-
return { classes, componentName: componentName$
|
|
3507
|
+
return { classes, componentName: componentName$16 };
|
|
3526
3508
|
}
|
|
3527
3509
|
});
|
|
3528
|
-
function _sfc_render$
|
|
3510
|
+
function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3529
3511
|
return openBlock(), createElementBlock("view", {
|
|
3530
3512
|
class: normalizeClass(_ctx.classes)
|
|
3531
3513
|
}, [
|
|
@@ -3542,9 +3524,9 @@ function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3542
3524
|
}), 128))
|
|
3543
3525
|
], 2);
|
|
3544
3526
|
}
|
|
3545
|
-
var Indicator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3546
|
-
const { componentName: componentName$
|
|
3547
|
-
const _sfc_main$
|
|
3527
|
+
var Indicator = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["render", _sfc_render$1k]]);
|
|
3528
|
+
const { componentName: componentName$15, create: create$1p } = createComponent("sidenavbar");
|
|
3529
|
+
const _sfc_main$1p = create$1p({
|
|
3548
3530
|
props: {
|
|
3549
3531
|
offset: {
|
|
3550
3532
|
type: [String, Number],
|
|
@@ -3559,7 +3541,7 @@ const _sfc_main$1r = create$1r({
|
|
|
3559
3541
|
observer: null
|
|
3560
3542
|
});
|
|
3561
3543
|
const classes = computed(() => {
|
|
3562
|
-
const prefixCls = componentName$
|
|
3544
|
+
const prefixCls = componentName$15;
|
|
3563
3545
|
return {
|
|
3564
3546
|
[prefixCls]: true
|
|
3565
3547
|
};
|
|
@@ -3603,25 +3585,25 @@ const _sfc_main$1r = create$1r({
|
|
|
3603
3585
|
};
|
|
3604
3586
|
}
|
|
3605
3587
|
});
|
|
3606
|
-
const _hoisted_1$
|
|
3607
|
-
const _hoisted_2$
|
|
3588
|
+
const _hoisted_1$15 = { class: "nut-sidenavbar__content" };
|
|
3589
|
+
const _hoisted_2$S = {
|
|
3608
3590
|
class: "nut-sidenavbar__content__list",
|
|
3609
3591
|
ref: "list"
|
|
3610
3592
|
};
|
|
3611
|
-
function _sfc_render$
|
|
3593
|
+
function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3612
3594
|
return openBlock(), createElementBlock("view", {
|
|
3613
3595
|
class: normalizeClass(_ctx.classes)
|
|
3614
3596
|
}, [
|
|
3615
|
-
createElementVNode("view", _hoisted_1$
|
|
3616
|
-
createElementVNode("view", _hoisted_2$
|
|
3597
|
+
createElementVNode("view", _hoisted_1$15, [
|
|
3598
|
+
createElementVNode("view", _hoisted_2$S, [
|
|
3617
3599
|
renderSlot(_ctx.$slots, "default")
|
|
3618
3600
|
], 512)
|
|
3619
3601
|
])
|
|
3620
3602
|
], 2);
|
|
3621
3603
|
}
|
|
3622
|
-
var SideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3623
|
-
const { componentName: componentName$
|
|
3624
|
-
const _sfc_main$
|
|
3604
|
+
var SideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["render", _sfc_render$1j]]);
|
|
3605
|
+
const { componentName: componentName$14, create: create$1o } = createComponent("sidenavbaritem");
|
|
3606
|
+
const _sfc_main$1o = create$1o({
|
|
3625
3607
|
props: {
|
|
3626
3608
|
title: {
|
|
3627
3609
|
type: String,
|
|
@@ -3635,7 +3617,7 @@ const _sfc_main$1q = create$1q({
|
|
|
3635
3617
|
emits: ["click"],
|
|
3636
3618
|
setup: (props, context) => {
|
|
3637
3619
|
const classes = computed(() => {
|
|
3638
|
-
const prefixCls = componentName$
|
|
3620
|
+
const prefixCls = componentName$14;
|
|
3639
3621
|
return {
|
|
3640
3622
|
[prefixCls]: true
|
|
3641
3623
|
};
|
|
@@ -3649,20 +3631,20 @@ const _sfc_main$1q = create$1q({
|
|
|
3649
3631
|
};
|
|
3650
3632
|
}
|
|
3651
3633
|
});
|
|
3652
|
-
const _hoisted_1$
|
|
3653
|
-
const _hoisted_2$
|
|
3654
|
-
function _sfc_render$
|
|
3634
|
+
const _hoisted_1$14 = ["ikey"];
|
|
3635
|
+
const _hoisted_2$R = { class: "nut-sidenavbaritem__title" };
|
|
3636
|
+
function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3655
3637
|
return openBlock(), createElementBlock("view", {
|
|
3656
3638
|
class: "nut-sidenavbaritem",
|
|
3657
3639
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
|
|
3658
3640
|
ikey: _ctx.ikey
|
|
3659
3641
|
}, [
|
|
3660
|
-
createElementVNode("span", _hoisted_2$
|
|
3661
|
-
], 8, _hoisted_1$
|
|
3642
|
+
createElementVNode("span", _hoisted_2$R, toDisplayString(_ctx.title), 1)
|
|
3643
|
+
], 8, _hoisted_1$14);
|
|
3662
3644
|
}
|
|
3663
|
-
var SideNavBarItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3664
|
-
const { componentName: componentName$
|
|
3665
|
-
const _sfc_main$
|
|
3645
|
+
var SideNavBarItem = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["render", _sfc_render$1i]]);
|
|
3646
|
+
const { componentName: componentName$13, create: create$1n } = createComponent("subsidenavbar");
|
|
3647
|
+
const _sfc_main$1n = create$1n({
|
|
3666
3648
|
props: {
|
|
3667
3649
|
title: {
|
|
3668
3650
|
type: String,
|
|
@@ -3683,7 +3665,7 @@ const _sfc_main$1p = create$1p({
|
|
|
3683
3665
|
direction: ""
|
|
3684
3666
|
});
|
|
3685
3667
|
const classes = computed(() => {
|
|
3686
|
-
const prefixCls = componentName$
|
|
3668
|
+
const prefixCls = componentName$13;
|
|
3687
3669
|
return {
|
|
3688
3670
|
[prefixCls]: true
|
|
3689
3671
|
};
|
|
@@ -3708,10 +3690,10 @@ const _sfc_main$1p = create$1p({
|
|
|
3708
3690
|
};
|
|
3709
3691
|
}
|
|
3710
3692
|
});
|
|
3711
|
-
const _hoisted_1$
|
|
3712
|
-
const _hoisted_2$
|
|
3713
|
-
const _hoisted_3$
|
|
3714
|
-
function _sfc_render$
|
|
3693
|
+
const _hoisted_1$13 = ["ikey"];
|
|
3694
|
+
const _hoisted_2$Q = { class: "nut-subsidenavbar__title__text" };
|
|
3695
|
+
const _hoisted_3$F = { class: "nut-subsidenavbar__title__icon" };
|
|
3696
|
+
function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3715
3697
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
3716
3698
|
return openBlock(), createElementBlock("view", {
|
|
3717
3699
|
class: normalizeClass(_ctx.classes),
|
|
@@ -3721,8 +3703,8 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3721
3703
|
class: "nut-subsidenavbar__title",
|
|
3722
3704
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
3723
3705
|
}, [
|
|
3724
|
-
createElementVNode("span", _hoisted_2$
|
|
3725
|
-
createElementVNode("span", _hoisted_3$
|
|
3706
|
+
createElementVNode("span", _hoisted_2$Q, toDisplayString(_ctx.title), 1),
|
|
3707
|
+
createElementVNode("span", _hoisted_3$F, [
|
|
3726
3708
|
createVNode(_component_nut_icon, {
|
|
3727
3709
|
name: "down-arrow",
|
|
3728
3710
|
class: normalizeClass(_ctx.direction)
|
|
@@ -3735,9 +3717,9 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3735
3717
|
}, [
|
|
3736
3718
|
renderSlot(_ctx.$slots, "default")
|
|
3737
3719
|
], 6)
|
|
3738
|
-
], 10, _hoisted_1$
|
|
3720
|
+
], 10, _hoisted_1$13);
|
|
3739
3721
|
}
|
|
3740
|
-
var SubSideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3722
|
+
var SubSideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_render$1h]]);
|
|
3741
3723
|
const MIN_DISTANCE$1 = 10;
|
|
3742
3724
|
function getDirection$1(x, y) {
|
|
3743
3725
|
if (x > y && x > MIN_DISTANCE$1) {
|
|
@@ -3801,8 +3783,8 @@ function useTouch$2() {
|
|
|
3801
3783
|
isHorizontal
|
|
3802
3784
|
};
|
|
3803
3785
|
}
|
|
3804
|
-
const { componentName: componentName$
|
|
3805
|
-
const _sfc_main$
|
|
3786
|
+
const { componentName: componentName$12, create: create$1m } = createComponent("range");
|
|
3787
|
+
const _sfc_main$1m = create$1m({
|
|
3806
3788
|
props: {
|
|
3807
3789
|
range: {
|
|
3808
3790
|
type: Boolean,
|
|
@@ -3861,7 +3843,7 @@ const _sfc_main$1o = create$1o({
|
|
|
3861
3843
|
});
|
|
3862
3844
|
const scope = computed(() => Number(props.max) - Number(props.min));
|
|
3863
3845
|
const classes = computed(() => {
|
|
3864
|
-
const prefixCls = componentName$
|
|
3846
|
+
const prefixCls = componentName$12;
|
|
3865
3847
|
return {
|
|
3866
3848
|
[prefixCls]: true,
|
|
3867
3849
|
[`${prefixCls}-disabled`]: props.disabled,
|
|
@@ -4088,21 +4070,21 @@ const _sfc_main$1o = create$1o({
|
|
|
4088
4070
|
};
|
|
4089
4071
|
}
|
|
4090
4072
|
});
|
|
4091
|
-
const _hoisted_1$
|
|
4073
|
+
const _hoisted_1$12 = {
|
|
4092
4074
|
key: 0,
|
|
4093
4075
|
class: "min"
|
|
4094
4076
|
};
|
|
4095
|
-
const _hoisted_2$
|
|
4077
|
+
const _hoisted_2$P = {
|
|
4096
4078
|
key: 0,
|
|
4097
4079
|
class: "nut-range-mark"
|
|
4098
4080
|
};
|
|
4099
|
-
const _hoisted_3$
|
|
4100
|
-
const _hoisted_4$
|
|
4081
|
+
const _hoisted_3$E = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
|
|
4082
|
+
const _hoisted_4$x = {
|
|
4101
4083
|
key: 0,
|
|
4102
4084
|
class: "number"
|
|
4103
4085
|
};
|
|
4104
|
-
const _hoisted_5$
|
|
4105
|
-
const _hoisted_6$
|
|
4086
|
+
const _hoisted_5$n = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax"];
|
|
4087
|
+
const _hoisted_6$l = {
|
|
4106
4088
|
key: 0,
|
|
4107
4089
|
class: "number"
|
|
4108
4090
|
};
|
|
@@ -4110,18 +4092,18 @@ const _hoisted_7$j = {
|
|
|
4110
4092
|
key: 1,
|
|
4111
4093
|
class: "max"
|
|
4112
4094
|
};
|
|
4113
|
-
function _sfc_render$
|
|
4095
|
+
function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4114
4096
|
return openBlock(), createElementBlock("view", {
|
|
4115
4097
|
class: normalizeClass(_ctx.containerClasses)
|
|
4116
4098
|
}, [
|
|
4117
|
-
!_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_1$
|
|
4099
|
+
!_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_1$12, toDisplayString(+_ctx.min), 1)) : createCommentVNode("", true),
|
|
4118
4100
|
createElementVNode("view", {
|
|
4119
4101
|
ref: "root",
|
|
4120
4102
|
style: normalizeStyle(_ctx.wrapperStyle),
|
|
4121
4103
|
class: normalizeClass(_ctx.classes),
|
|
4122
4104
|
onClick: _cache[9] || (_cache[9] = withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
|
|
4123
4105
|
}, [
|
|
4124
|
-
_ctx.marksList.length > 0 ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
4106
|
+
_ctx.marksList.length > 0 ? (openBlock(), createElementBlock("view", _hoisted_2$P, [
|
|
4125
4107
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.marksList, (marks) => {
|
|
4126
4108
|
return openBlock(), createElementBlock("span", {
|
|
4127
4109
|
key: marks,
|
|
@@ -4172,9 +4154,9 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4172
4154
|
class: "nut-range-button",
|
|
4173
4155
|
style: normalizeStyle(_ctx.buttonStyle)
|
|
4174
4156
|
}, [
|
|
4175
|
-
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_4$
|
|
4157
|
+
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_4$x, toDisplayString(_ctx.curValue(index)), 1)) : createCommentVNode("", true)
|
|
4176
4158
|
], 4))
|
|
4177
|
-
], 42, _hoisted_3$
|
|
4159
|
+
], 42, _hoisted_3$E);
|
|
4178
4160
|
}), 64)) : (openBlock(), createElementBlock("view", {
|
|
4179
4161
|
key: 1,
|
|
4180
4162
|
role: "slider",
|
|
@@ -4200,17 +4182,17 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4200
4182
|
class: "nut-range-button",
|
|
4201
4183
|
style: normalizeStyle(_ctx.buttonStyle)
|
|
4202
4184
|
}, [
|
|
4203
|
-
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_6$
|
|
4185
|
+
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_6$l, toDisplayString(_ctx.curValue()), 1)) : createCommentVNode("", true)
|
|
4204
4186
|
], 4))
|
|
4205
|
-
], 40, _hoisted_5$
|
|
4187
|
+
], 40, _hoisted_5$n))
|
|
4206
4188
|
], 4)
|
|
4207
4189
|
], 6),
|
|
4208
4190
|
!_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_7$j, toDisplayString(+_ctx.max), 1)) : createCommentVNode("", true)
|
|
4209
4191
|
], 2);
|
|
4210
4192
|
}
|
|
4211
|
-
var Range = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4212
|
-
const { create: create$
|
|
4213
|
-
const _sfc_main$
|
|
4193
|
+
var Range = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["render", _sfc_render$1g]]);
|
|
4194
|
+
const { create: create$1l, translate: translate$q } = createComponent("searchbar");
|
|
4195
|
+
const _sfc_main$1l = create$1l({
|
|
4214
4196
|
props: {
|
|
4215
4197
|
modelValue: {
|
|
4216
4198
|
type: [String, Number],
|
|
@@ -4372,28 +4354,28 @@ const _sfc_main$1n = create$1n({
|
|
|
4372
4354
|
};
|
|
4373
4355
|
}
|
|
4374
4356
|
});
|
|
4375
|
-
const _hoisted_1$
|
|
4357
|
+
const _hoisted_1$11 = {
|
|
4376
4358
|
key: 0,
|
|
4377
4359
|
class: "nut-searchbar__search-label"
|
|
4378
4360
|
};
|
|
4379
|
-
const _hoisted_2$
|
|
4361
|
+
const _hoisted_2$O = {
|
|
4380
4362
|
key: 1,
|
|
4381
4363
|
class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
|
|
4382
4364
|
};
|
|
4383
|
-
const _hoisted_3$
|
|
4384
|
-
const _hoisted_4$
|
|
4385
|
-
const _hoisted_5$
|
|
4365
|
+
const _hoisted_3$D = { class: "nut-searchbar__input-inner" };
|
|
4366
|
+
const _hoisted_4$w = ["type", "maxlength", "placeholder", "value", "disabled", "readonly"];
|
|
4367
|
+
const _hoisted_5$m = {
|
|
4386
4368
|
key: 2,
|
|
4387
4369
|
class: "nut-searchbar__search-icon nut-searchbar__right-search-icon"
|
|
4388
4370
|
};
|
|
4389
|
-
function _sfc_render$
|
|
4371
|
+
function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4390
4372
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
4391
4373
|
return openBlock(), createElementBlock("view", {
|
|
4392
4374
|
class: "nut-searchbar",
|
|
4393
4375
|
style: normalizeStyle(_ctx.searchbarStyle)
|
|
4394
4376
|
}, [
|
|
4395
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
4396
|
-
_ctx.$slots.leftout ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
4377
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$11, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
|
|
4378
|
+
_ctx.$slots.leftout ? (openBlock(), createElementBlock("view", _hoisted_2$O, [
|
|
4397
4379
|
renderSlot(_ctx.$slots, "leftout")
|
|
4398
4380
|
])) : createCommentVNode("", true),
|
|
4399
4381
|
createElementVNode("view", {
|
|
@@ -4407,7 +4389,7 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4407
4389
|
}, [
|
|
4408
4390
|
renderSlot(_ctx.$slots, "leftin")
|
|
4409
4391
|
])) : createCommentVNode("", true),
|
|
4410
|
-
createElementVNode("view", _hoisted_3$
|
|
4392
|
+
createElementVNode("view", _hoisted_3$D, [
|
|
4411
4393
|
createElementVNode("form", {
|
|
4412
4394
|
action: "#",
|
|
4413
4395
|
onSubmit: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
|
|
@@ -4426,7 +4408,7 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4426
4408
|
onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.valueFocus && _ctx.valueFocus(...args)),
|
|
4427
4409
|
onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args)),
|
|
4428
4410
|
style: normalizeStyle(_ctx.styleSearchbar)
|
|
4429
|
-
}, null, 44, _hoisted_4$
|
|
4411
|
+
}, null, 44, _hoisted_4$w)
|
|
4430
4412
|
], 32),
|
|
4431
4413
|
_ctx.clearable ? withDirectives((openBlock(), createElementBlock("view", {
|
|
4432
4414
|
key: 0,
|
|
@@ -4450,12 +4432,12 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4450
4432
|
renderSlot(_ctx.$slots, "rightin")
|
|
4451
4433
|
])) : createCommentVNode("", true)
|
|
4452
4434
|
], 4),
|
|
4453
|
-
_ctx.$slots.rightout ? (openBlock(), createElementBlock("view", _hoisted_5$
|
|
4435
|
+
_ctx.$slots.rightout ? (openBlock(), createElementBlock("view", _hoisted_5$m, [
|
|
4454
4436
|
renderSlot(_ctx.$slots, "rightout")
|
|
4455
4437
|
])) : createCommentVNode("", true)
|
|
4456
4438
|
], 4);
|
|
4457
4439
|
}
|
|
4458
|
-
var SearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4440
|
+
var SearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_render$1f]]);
|
|
4459
4441
|
const formatTree = (tree, parent, config) => tree.map((node) => {
|
|
4460
4442
|
const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
|
|
4461
4443
|
const { [valueKey]: value, [textKey]: text, [childrenKey]: children, ...others } = node;
|
|
@@ -4576,8 +4558,8 @@ class Tree {
|
|
|
4576
4558
|
return Array.isArray(children) && Boolean(children.length);
|
|
4577
4559
|
}
|
|
4578
4560
|
}
|
|
4579
|
-
const { create: create$
|
|
4580
|
-
const _sfc_main$
|
|
4561
|
+
const { create: create$1k, translate: translate$p } = createComponent("cascader-item");
|
|
4562
|
+
const _sfc_main$1k = create$1k({
|
|
4581
4563
|
props: {
|
|
4582
4564
|
visible: Boolean,
|
|
4583
4565
|
modelValue: Array,
|
|
@@ -4804,14 +4786,14 @@ const _sfc_main$1m = create$1m({
|
|
|
4804
4786
|
return { panes, initLoading, tabsCursor, ...methods };
|
|
4805
4787
|
}
|
|
4806
4788
|
});
|
|
4807
|
-
const _hoisted_1$
|
|
4789
|
+
const _hoisted_1$10 = {
|
|
4808
4790
|
role: "menu",
|
|
4809
4791
|
class: "nut-cascader-pane"
|
|
4810
4792
|
};
|
|
4811
|
-
const _hoisted_2$
|
|
4812
|
-
const _hoisted_3$
|
|
4813
|
-
const _hoisted_4$
|
|
4814
|
-
function _sfc_render$
|
|
4793
|
+
const _hoisted_2$N = ["aria-checked", "aria-disabled", "onClick"];
|
|
4794
|
+
const _hoisted_3$C = { class: "nut-cascader-item__title" };
|
|
4795
|
+
const _hoisted_4$v = /* @__PURE__ */ createElementVNode("view", { class: "nut-cascader-pane" }, null, -1);
|
|
4796
|
+
function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4815
4797
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
4816
4798
|
const _component_nut_tabpane = resolveComponent("nut-tabpane");
|
|
4817
4799
|
const _component_nut_tabs = resolveComponent("nut-tabs");
|
|
@@ -4829,7 +4811,7 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4829
4811
|
key: index
|
|
4830
4812
|
}, {
|
|
4831
4813
|
default: withCtx(() => [
|
|
4832
|
-
createElementVNode("view", _hoisted_1$
|
|
4814
|
+
createElementVNode("view", _hoisted_1$10, [
|
|
4833
4815
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pane.nodes, (node) => {
|
|
4834
4816
|
return openBlock(), createElementBlock("view", {
|
|
4835
4817
|
key: node.value,
|
|
@@ -4839,7 +4821,7 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4839
4821
|
role: "menuitemradio",
|
|
4840
4822
|
onClick: ($event) => _ctx.handleNode(node, false)
|
|
4841
4823
|
}, [
|
|
4842
|
-
createElementVNode("view", _hoisted_3$
|
|
4824
|
+
createElementVNode("view", _hoisted_3$C, toDisplayString(node.text), 1),
|
|
4843
4825
|
node.loading ? (openBlock(), createBlock(_component_nut_icon, {
|
|
4844
4826
|
key: 0,
|
|
4845
4827
|
class: "nut-cascader-item__icon-loading",
|
|
@@ -4849,7 +4831,7 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4849
4831
|
class: "nut-cascader-item__icon-check",
|
|
4850
4832
|
name: "checklist"
|
|
4851
4833
|
}))
|
|
4852
|
-
], 10, _hoisted_2$
|
|
4834
|
+
], 10, _hoisted_2$N);
|
|
4853
4835
|
}), 128))
|
|
4854
4836
|
])
|
|
4855
4837
|
]),
|
|
@@ -4860,7 +4842,7 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4860
4842
|
title: "Loading..."
|
|
4861
4843
|
}, {
|
|
4862
4844
|
default: withCtx(() => [
|
|
4863
|
-
_hoisted_4$
|
|
4845
|
+
_hoisted_4$v
|
|
4864
4846
|
]),
|
|
4865
4847
|
_: 1
|
|
4866
4848
|
}))
|
|
@@ -4868,9 +4850,9 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4868
4850
|
_: 1
|
|
4869
4851
|
}, 8, ["modelValue", "onClick"]);
|
|
4870
4852
|
}
|
|
4871
|
-
var CascaderItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4872
|
-
const { create: create$
|
|
4873
|
-
const _sfc_main$
|
|
4853
|
+
var CascaderItem = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$1e]]);
|
|
4854
|
+
const { create: create$1j } = createComponent("cascader");
|
|
4855
|
+
const _sfc_main$1j = create$1j({
|
|
4874
4856
|
components: {
|
|
4875
4857
|
[CascaderItem.name]: CascaderItem
|
|
4876
4858
|
},
|
|
@@ -4939,8 +4921,8 @@ const _sfc_main$1l = create$1l({
|
|
|
4939
4921
|
};
|
|
4940
4922
|
}
|
|
4941
4923
|
});
|
|
4942
|
-
const _hoisted_1
|
|
4943
|
-
function _sfc_render$
|
|
4924
|
+
const _hoisted_1$$ = ["innerHTML"];
|
|
4925
|
+
function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4944
4926
|
const _component_nut_cascader_item = resolveComponent("nut-cascader-item");
|
|
4945
4927
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
4946
4928
|
return _ctx.poppable ? (openBlock(), createBlock(_component_nut_popup, {
|
|
@@ -4960,7 +4942,7 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4960
4942
|
key: 0,
|
|
4961
4943
|
class: "nut-cascader__bar",
|
|
4962
4944
|
innerHTML: _ctx.title
|
|
4963
|
-
}, null, 8, _hoisted_1
|
|
4945
|
+
}, null, 8, _hoisted_1$$)) : createCommentVNode("", true),
|
|
4964
4946
|
createVNode(_component_nut_cascader_item, {
|
|
4965
4947
|
onChange: _ctx.onChange,
|
|
4966
4948
|
onPathChange: _ctx.onPathChange,
|
|
@@ -4991,7 +4973,7 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4991
4973
|
visible: _ctx.innerVisible
|
|
4992
4974
|
}, null, 8, ["onChange", "onPathChange", "modelValue", "options", "lazy", "lazy-load", "value-key", "text-key", "children-key", "convert-config", "visible"]));
|
|
4993
4975
|
}
|
|
4994
|
-
var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4976
|
+
var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["render", _sfc_render$1d]]);
|
|
4995
4977
|
const Utils = {
|
|
4996
4978
|
isLeapYear: function(y) {
|
|
4997
4979
|
return y % 4 == 0 && y % 100 != 0 || y % 400 == 0;
|
|
@@ -5086,8 +5068,8 @@ function requestAniFrame() {
|
|
|
5086
5068
|
}
|
|
5087
5069
|
}
|
|
5088
5070
|
var requestAniFrame$1 = requestAniFrame();
|
|
5089
|
-
const { create: create$
|
|
5090
|
-
const _sfc_main$
|
|
5071
|
+
const { create: create$1i, translate: translate$o } = createComponent("calendar-item");
|
|
5072
|
+
const _sfc_main$1i = create$1i({
|
|
5091
5073
|
props: {
|
|
5092
5074
|
type: {
|
|
5093
5075
|
type: String,
|
|
@@ -5144,11 +5126,16 @@ const _sfc_main$1k = create$1k({
|
|
|
5144
5126
|
endDate: {
|
|
5145
5127
|
type: String,
|
|
5146
5128
|
default: Utils.getDay(365)
|
|
5129
|
+
},
|
|
5130
|
+
firstDayOfWeek: {
|
|
5131
|
+
type: Number,
|
|
5132
|
+
default: 0
|
|
5147
5133
|
}
|
|
5148
5134
|
},
|
|
5149
5135
|
emits: ["choose", "update", "close", "select"],
|
|
5150
5136
|
setup(props, { emit, slots }) {
|
|
5151
|
-
const
|
|
5137
|
+
const weekdays = translate$o("weekdays");
|
|
5138
|
+
const weeks = ref([...weekdays.slice(props.firstDayOfWeek, 7), ...weekdays.slice(0, props.firstDayOfWeek)]);
|
|
5152
5139
|
const months = ref(null);
|
|
5153
5140
|
const monthsPanel = ref(null);
|
|
5154
5141
|
const weeksPanel = ref(null);
|
|
@@ -5337,6 +5324,7 @@ const _sfc_main$1k = create$1k({
|
|
|
5337
5324
|
});
|
|
5338
5325
|
};
|
|
5339
5326
|
const getPreDaysStatus = (days, type, dateInfo, preCurrMonthDays) => {
|
|
5327
|
+
days = days - props.firstDayOfWeek;
|
|
5340
5328
|
let { year, month } = dateInfo;
|
|
5341
5329
|
if (type == "prev" && days >= 7) {
|
|
5342
5330
|
days -= 7;
|
|
@@ -5664,27 +5652,27 @@ const _sfc_main$1k = create$1k({
|
|
|
5664
5652
|
};
|
|
5665
5653
|
}
|
|
5666
5654
|
});
|
|
5667
|
-
const _hoisted_1$
|
|
5655
|
+
const _hoisted_1$_ = {
|
|
5668
5656
|
key: 0,
|
|
5669
5657
|
class: "calendar-title"
|
|
5670
5658
|
};
|
|
5671
|
-
const _hoisted_2$
|
|
5659
|
+
const _hoisted_2$M = {
|
|
5672
5660
|
key: 1,
|
|
5673
5661
|
class: "calendar-top-slot"
|
|
5674
5662
|
};
|
|
5675
|
-
const _hoisted_3$
|
|
5663
|
+
const _hoisted_3$B = {
|
|
5676
5664
|
key: 2,
|
|
5677
5665
|
class: "calendar-curr-month"
|
|
5678
5666
|
};
|
|
5679
|
-
const _hoisted_4$
|
|
5667
|
+
const _hoisted_4$u = {
|
|
5680
5668
|
class: "calendar-weeks",
|
|
5681
5669
|
ref: "weeksPanel"
|
|
5682
5670
|
};
|
|
5683
|
-
const _hoisted_5$
|
|
5671
|
+
const _hoisted_5$l = {
|
|
5684
5672
|
class: "calendar-months-panel",
|
|
5685
5673
|
ref: "monthsPanel"
|
|
5686
5674
|
};
|
|
5687
|
-
const _hoisted_6$
|
|
5675
|
+
const _hoisted_6$k = { class: "calendar-month-title" };
|
|
5688
5676
|
const _hoisted_7$i = { class: "calendar-month-con" };
|
|
5689
5677
|
const _hoisted_8$d = ["onClick"];
|
|
5690
5678
|
const _hoisted_9$9 = { class: "calendar-day" };
|
|
@@ -5708,7 +5696,7 @@ const _hoisted_14$3 = {
|
|
|
5708
5696
|
key: 0,
|
|
5709
5697
|
class: "nut-calendar-footer"
|
|
5710
5698
|
};
|
|
5711
|
-
function _sfc_render$
|
|
5699
|
+
function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5712
5700
|
return openBlock(), createElementBlock("view", {
|
|
5713
5701
|
class: normalizeClass(["nut-calendar nut-calendar-taro", {
|
|
5714
5702
|
"nut-calendar-tile": !_ctx.poppable,
|
|
@@ -5718,12 +5706,12 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5718
5706
|
createElementVNode("view", {
|
|
5719
5707
|
class: normalizeClass(["nut-calendar-header", { "nut-calendar-header-tile": !_ctx.poppable }])
|
|
5720
5708
|
}, [
|
|
5721
|
-
_ctx.showTitle ? (openBlock(), createElementBlock("view", _hoisted_1$
|
|
5722
|
-
_ctx.showTopBtn ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
5709
|
+
_ctx.showTitle ? (openBlock(), createElementBlock("view", _hoisted_1$_, toDisplayString(_ctx.title || _ctx.translate("title")), 1)) : createCommentVNode("", true),
|
|
5710
|
+
_ctx.showTopBtn ? (openBlock(), createElementBlock("view", _hoisted_2$M, [
|
|
5723
5711
|
renderSlot(_ctx.$slots, "btn")
|
|
5724
5712
|
])) : createCommentVNode("", true),
|
|
5725
|
-
_ctx.showSubTitle ? (openBlock(), createElementBlock("view", _hoisted_3$
|
|
5726
|
-
createElementVNode("view", _hoisted_4$
|
|
5713
|
+
_ctx.showSubTitle ? (openBlock(), createElementBlock("view", _hoisted_3$B, toDisplayString(_ctx.yearMonthTitle), 1)) : createCommentVNode("", true),
|
|
5714
|
+
createElementVNode("view", _hoisted_4$u, [
|
|
5727
5715
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item, index) => {
|
|
5728
5716
|
return openBlock(), createElementBlock("view", {
|
|
5729
5717
|
class: "calendar-week-item",
|
|
@@ -5737,7 +5725,7 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5737
5725
|
ref: "months",
|
|
5738
5726
|
onScroll: _cache[0] || (_cache[0] = (...args) => _ctx.mothsViewScroll && _ctx.mothsViewScroll(...args))
|
|
5739
5727
|
}, [
|
|
5740
|
-
createElementVNode("view", _hoisted_5$
|
|
5728
|
+
createElementVNode("view", _hoisted_5$l, [
|
|
5741
5729
|
createElementVNode("view", {
|
|
5742
5730
|
class: "viewArea",
|
|
5743
5731
|
ref: "viewArea",
|
|
@@ -5748,7 +5736,7 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5748
5736
|
class: "calendar-month",
|
|
5749
5737
|
key: index
|
|
5750
5738
|
}, [
|
|
5751
|
-
createElementVNode("view", _hoisted_6$
|
|
5739
|
+
createElementVNode("view", _hoisted_6$k, toDisplayString(month.title), 1),
|
|
5752
5740
|
createElementVNode("view", _hoisted_7$i, [
|
|
5753
5741
|
createElementVNode("view", {
|
|
5754
5742
|
class: normalizeClass(["calendar-month-item", _ctx.type === "range" ? "month-item-range" : ""])
|
|
@@ -5799,9 +5787,9 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5799
5787
|
])) : createCommentVNode("", true)
|
|
5800
5788
|
], 2);
|
|
5801
5789
|
}
|
|
5802
|
-
var CalendarItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5803
|
-
const { create: create$
|
|
5804
|
-
const _sfc_main$
|
|
5790
|
+
var CalendarItem = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["render", _sfc_render$1c]]);
|
|
5791
|
+
const { create: create$1h } = createComponent("calendar");
|
|
5792
|
+
const _sfc_main$1h = create$1h({
|
|
5805
5793
|
components: {
|
|
5806
5794
|
[CalendarItem.name]: CalendarItem
|
|
5807
5795
|
},
|
|
@@ -5864,6 +5852,11 @@ const _sfc_main$1j = create$1j({
|
|
|
5864
5852
|
endDate: {
|
|
5865
5853
|
type: String,
|
|
5866
5854
|
default: Utils.getDay(365)
|
|
5855
|
+
},
|
|
5856
|
+
firstDayOfWeek: {
|
|
5857
|
+
type: Number,
|
|
5858
|
+
default: 0,
|
|
5859
|
+
validator: (val) => val >= 0 && val <= 6
|
|
5867
5860
|
}
|
|
5868
5861
|
},
|
|
5869
5862
|
emits: ["choose", "close", "update:visible", "select"],
|
|
@@ -5919,7 +5912,7 @@ const _sfc_main$1j = create$1j({
|
|
|
5919
5912
|
};
|
|
5920
5913
|
}
|
|
5921
5914
|
});
|
|
5922
|
-
function _sfc_render$
|
|
5915
|
+
function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5923
5916
|
const _component_nut_calendar_item = resolveComponent("nut-calendar-item");
|
|
5924
5917
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
5925
5918
|
return _ctx.poppable ? (openBlock(), createBlock(_component_nut_popup, {
|
|
@@ -5955,7 +5948,8 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5955
5948
|
"show-today": _ctx.showToday,
|
|
5956
5949
|
"show-title": _ctx.showTitle,
|
|
5957
5950
|
"show-sub-title": _ctx.showSubTitle,
|
|
5958
|
-
"to-date-animation": _ctx.toDateAnimation
|
|
5951
|
+
"to-date-animation": _ctx.toDateAnimation,
|
|
5952
|
+
"first-day-of-week": _ctx.firstDayOfWeek
|
|
5959
5953
|
}, createSlots({ _: 2 }, [
|
|
5960
5954
|
_ctx.showTopBtn ? {
|
|
5961
5955
|
name: "btn",
|
|
@@ -5991,7 +5985,7 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5991
5985
|
]),
|
|
5992
5986
|
key: "3"
|
|
5993
5987
|
} : void 0
|
|
5994
|
-
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation"])) : createCommentVNode("", true)
|
|
5988
|
+
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation", "first-day-of-week"])) : createCommentVNode("", true)
|
|
5995
5989
|
]),
|
|
5996
5990
|
_: 3
|
|
5997
5991
|
}, 8, ["visible", "onClickOverlay", "onClickCloseIcon"])) : (openBlock(), createBlock(_component_nut_calendar_item, {
|
|
@@ -6014,6 +6008,7 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6014
6008
|
"show-title": _ctx.showTitle,
|
|
6015
6009
|
"show-sub-title": _ctx.showSubTitle,
|
|
6016
6010
|
"to-date-animation": _ctx.toDateAnimation,
|
|
6011
|
+
"first-day-of-week": _ctx.firstDayOfWeek,
|
|
6017
6012
|
ref: "calendarRef"
|
|
6018
6013
|
}, createSlots({ _: 2 }, [
|
|
6019
6014
|
_ctx.showTopBtn ? {
|
|
@@ -6050,9 +6045,9 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6050
6045
|
]),
|
|
6051
6046
|
key: "3"
|
|
6052
6047
|
} : void 0
|
|
6053
|
-
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation"]));
|
|
6048
|
+
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation", "first-day-of-week"]));
|
|
6054
6049
|
}
|
|
6055
|
-
var Calendar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6050
|
+
var Calendar = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["render", _sfc_render$1b]]);
|
|
6056
6051
|
const component$4 = (componentName2, nutIcon) => {
|
|
6057
6052
|
return {
|
|
6058
6053
|
components: {
|
|
@@ -6206,10 +6201,10 @@ const component$4 = (componentName2, nutIcon) => {
|
|
|
6206
6201
|
}
|
|
6207
6202
|
};
|
|
6208
6203
|
};
|
|
6209
|
-
const { create: create$
|
|
6210
|
-
const _sfc_main$
|
|
6211
|
-
const { create: create$
|
|
6212
|
-
const _sfc_main$
|
|
6204
|
+
const { create: create$1g, componentName: componentName$11 } = createComponent("checkbox");
|
|
6205
|
+
const _sfc_main$1g = create$1g(component$4(componentName$11, _sfc_main$1P));
|
|
6206
|
+
const { create: create$1f, componentName: componentName$10 } = createComponent("checkboxgroup");
|
|
6207
|
+
const _sfc_main$1f = create$1f({
|
|
6213
6208
|
props: {
|
|
6214
6209
|
modelValue: {
|
|
6215
6210
|
type: Array,
|
|
@@ -6282,15 +6277,15 @@ const _sfc_main$1h = create$1h({
|
|
|
6282
6277
|
return h(
|
|
6283
6278
|
"view",
|
|
6284
6279
|
{
|
|
6285
|
-
class: `${componentName$
|
|
6280
|
+
class: `${componentName$10}`
|
|
6286
6281
|
},
|
|
6287
6282
|
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
6288
6283
|
);
|
|
6289
6284
|
};
|
|
6290
6285
|
}
|
|
6291
6286
|
});
|
|
6292
|
-
const { create: create$
|
|
6293
|
-
const _sfc_main$
|
|
6287
|
+
const { create: create$1e } = createComponent("picker-column");
|
|
6288
|
+
const _sfc_main$1e = create$1e({
|
|
6294
6289
|
props: {
|
|
6295
6290
|
value: [String, Number],
|
|
6296
6291
|
columnsType: String,
|
|
@@ -6512,16 +6507,16 @@ const _sfc_main$1g = create$1g({
|
|
|
6512
6507
|
};
|
|
6513
6508
|
}
|
|
6514
6509
|
});
|
|
6515
|
-
const _hoisted_1
|
|
6510
|
+
const _hoisted_1$Z = {
|
|
6516
6511
|
key: 1,
|
|
6517
6512
|
class: "nut-picker-roller-item-tile"
|
|
6518
6513
|
};
|
|
6519
|
-
const _hoisted_2$
|
|
6520
|
-
const _hoisted_3$
|
|
6514
|
+
const _hoisted_2$L = /* @__PURE__ */ createElementVNode("view", { class: "nut-picker-roller-mask" }, null, -1);
|
|
6515
|
+
const _hoisted_3$A = {
|
|
6521
6516
|
key: 0,
|
|
6522
6517
|
class: "nut-picker-content"
|
|
6523
6518
|
};
|
|
6524
|
-
function _sfc_render$
|
|
6519
|
+
function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6525
6520
|
return openBlock(), createElementBlock("view", {
|
|
6526
6521
|
class: "nut-picker__list",
|
|
6527
6522
|
onTouchstart: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
@@ -6543,12 +6538,12 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6543
6538
|
class: normalizeClass(["nut-picker-roller-item", { "nut-picker-roller-item-hidden": _ctx.isHidden(index + 1) }]),
|
|
6544
6539
|
style: normalizeStyle(_ctx.setRollerStyle(index + 1))
|
|
6545
6540
|
}, toDisplayString(item.text), 7)) : createCommentVNode("", true),
|
|
6546
|
-
item && item.text && !_ctx.threeDimensional ? (openBlock(), createElementBlock("view", _hoisted_1
|
|
6541
|
+
item && item.text && !_ctx.threeDimensional ? (openBlock(), createElementBlock("view", _hoisted_1$Z, toDisplayString(item.text), 1)) : createCommentVNode("", true)
|
|
6547
6542
|
], 64);
|
|
6548
6543
|
}), 128))
|
|
6549
6544
|
], 36),
|
|
6550
|
-
_hoisted_2$
|
|
6551
|
-
_ctx.threeDimensional ? (openBlock(), createElementBlock("view", _hoisted_3$
|
|
6545
|
+
_hoisted_2$L,
|
|
6546
|
+
_ctx.threeDimensional ? (openBlock(), createElementBlock("view", _hoisted_3$A, [
|
|
6552
6547
|
createElementVNode("view", {
|
|
6553
6548
|
class: "nut-picker-list-panel",
|
|
6554
6549
|
ref: "list",
|
|
@@ -6557,11 +6552,11 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6557
6552
|
])) : createCommentVNode("", true)
|
|
6558
6553
|
], 32);
|
|
6559
6554
|
}
|
|
6560
|
-
var column
|
|
6561
|
-
const { componentName: componentName
|
|
6562
|
-
const _sfc_main$
|
|
6555
|
+
var column = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$1a]]);
|
|
6556
|
+
const { componentName: componentName$$, create: create$1d, translate: translate$n } = createComponent("picker");
|
|
6557
|
+
const _sfc_main$1d = create$1d({
|
|
6563
6558
|
components: {
|
|
6564
|
-
[column
|
|
6559
|
+
[column.name]: column,
|
|
6565
6560
|
[Popup.name]: Popup
|
|
6566
6561
|
},
|
|
6567
6562
|
props: {
|
|
@@ -6617,7 +6612,7 @@ const _sfc_main$1f = create$1f({
|
|
|
6617
6612
|
}
|
|
6618
6613
|
};
|
|
6619
6614
|
const classes = computed(() => {
|
|
6620
|
-
const prefixCls = componentName
|
|
6615
|
+
const prefixCls = componentName$$;
|
|
6621
6616
|
return {
|
|
6622
6617
|
[prefixCls]: true
|
|
6623
6618
|
};
|
|
@@ -6771,7 +6766,7 @@ const _sfc_main$1f = create$1f({
|
|
|
6771
6766
|
return {
|
|
6772
6767
|
classes,
|
|
6773
6768
|
...toRefs(state),
|
|
6774
|
-
column
|
|
6769
|
+
column,
|
|
6775
6770
|
columnsType,
|
|
6776
6771
|
columnsList,
|
|
6777
6772
|
close,
|
|
@@ -6784,14 +6779,14 @@ const _sfc_main$1f = create$1f({
|
|
|
6784
6779
|
};
|
|
6785
6780
|
}
|
|
6786
6781
|
});
|
|
6787
|
-
const _hoisted_1$
|
|
6788
|
-
const _hoisted_2$
|
|
6789
|
-
const _hoisted_3$
|
|
6782
|
+
const _hoisted_1$Y = { class: "nut-picker__bar" };
|
|
6783
|
+
const _hoisted_2$K = { class: "nut-picker__title" };
|
|
6784
|
+
const _hoisted_3$z = {
|
|
6790
6785
|
class: "nut-picker__column",
|
|
6791
6786
|
ref: "wrapHeight"
|
|
6792
6787
|
};
|
|
6793
|
-
const _hoisted_4$
|
|
6794
|
-
function _sfc_render$
|
|
6788
|
+
const _hoisted_4$t = /* @__PURE__ */ createElementVNode("view", { class: "nut-picker__hairline" }, null, -1);
|
|
6789
|
+
function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6795
6790
|
const _component_nut_picker_column = resolveComponent("nut-picker-column");
|
|
6796
6791
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
6797
6792
|
return openBlock(), createElementBlock("view", {
|
|
@@ -6811,20 +6806,20 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6811
6806
|
destroyOnClose: _ctx.destroyOnClose
|
|
6812
6807
|
}, {
|
|
6813
6808
|
default: withCtx(() => [
|
|
6814
|
-
createElementVNode("view", _hoisted_1$
|
|
6809
|
+
createElementVNode("view", _hoisted_1$Y, [
|
|
6815
6810
|
createElementVNode("view", {
|
|
6816
6811
|
class: "nut-picker__cancel nut-picker__left nut-picker__button",
|
|
6817
6812
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.close && _ctx.close(...args))
|
|
6818
6813
|
}, toDisplayString(_ctx.cancelText || _ctx.translate("cancel")), 1),
|
|
6819
|
-
createElementVNode("view", _hoisted_2$
|
|
6814
|
+
createElementVNode("view", _hoisted_2$K, toDisplayString(_ctx.title), 1),
|
|
6820
6815
|
createElementVNode("view", {
|
|
6821
6816
|
class: "nut-picker__confirm nut-picker__right nut-picker__button",
|
|
6822
6817
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.confirmHandler())
|
|
6823
6818
|
}, toDisplayString(_ctx.okText || _ctx.translate("confirm")), 1)
|
|
6824
6819
|
]),
|
|
6825
6820
|
renderSlot(_ctx.$slots, "top"),
|
|
6826
|
-
createElementVNode("view", _hoisted_3$
|
|
6827
|
-
_hoisted_4$
|
|
6821
|
+
createElementVNode("view", _hoisted_3$z, [
|
|
6822
|
+
_hoisted_4$t,
|
|
6828
6823
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columnsList, (column2, columnIndex) => {
|
|
6829
6824
|
return openBlock(), createElementBlock("view", {
|
|
6830
6825
|
class: "nut-picker__columnitem",
|
|
@@ -6853,7 +6848,7 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6853
6848
|
}, 8, ["visible", "teleport", "lock-scroll", "close-on-click-overlay", "onClose", "isWrapTeleport", "safeAreaInsetBottom", "destroyOnClose"])
|
|
6854
6849
|
], 2);
|
|
6855
6850
|
}
|
|
6856
|
-
var Picker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6851
|
+
var Picker = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["render", _sfc_render$19]]);
|
|
6857
6852
|
function padZero$1(num, targetLength = 2) {
|
|
6858
6853
|
let str = num + "";
|
|
6859
6854
|
while (str.length < targetLength) {
|
|
@@ -6861,7 +6856,7 @@ function padZero$1(num, targetLength = 2) {
|
|
|
6861
6856
|
}
|
|
6862
6857
|
return str;
|
|
6863
6858
|
}
|
|
6864
|
-
const { componentName: componentName
|
|
6859
|
+
const { componentName: componentName$_, create: create$1c, translate: translate$m } = createComponent("datepicker");
|
|
6865
6860
|
const currentYear = new Date().getFullYear();
|
|
6866
6861
|
function isDate(val) {
|
|
6867
6862
|
return Object.prototype.toString.call(val) === "[object Date]" && !isNaN(val.getTime());
|
|
@@ -6874,7 +6869,7 @@ const zhCNType = {
|
|
|
6874
6869
|
minute: translate$m("minute"),
|
|
6875
6870
|
seconds: translate$m("seconds")
|
|
6876
6871
|
};
|
|
6877
|
-
const _sfc_main$
|
|
6872
|
+
const _sfc_main$1c = create$1c({
|
|
6878
6873
|
components: {
|
|
6879
6874
|
[Picker.name]: Picker
|
|
6880
6875
|
},
|
|
@@ -7175,7 +7170,7 @@ const _sfc_main$1e = create$1e({
|
|
|
7175
7170
|
};
|
|
7176
7171
|
}
|
|
7177
7172
|
});
|
|
7178
|
-
function _sfc_render$
|
|
7173
|
+
function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7179
7174
|
const _component_nut_picker = resolveComponent("nut-picker");
|
|
7180
7175
|
return openBlock(), createBlock(_component_nut_picker, {
|
|
7181
7176
|
modelValue: _ctx.selectedValue,
|
|
@@ -7204,9 +7199,9 @@ function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7204
7199
|
_: 3
|
|
7205
7200
|
}, 8, ["modelValue", "visible", "okText", "cancelText", "onClose", "columns", "onChange", "title", "onConfirm", "isWrapTeleport", "threeDimensional", "swipeDuration", "safeAreaInsetBottom", "destroyOnClose"]);
|
|
7206
7201
|
}
|
|
7207
|
-
var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7208
|
-
const { componentName: componentName$
|
|
7209
|
-
const _sfc_main$
|
|
7202
|
+
var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["render", _sfc_render$18]]);
|
|
7203
|
+
const { componentName: componentName$Z, create: create$1b } = createComponent("inputnumber");
|
|
7204
|
+
const _sfc_main$1b = create$1b({
|
|
7210
7205
|
props: {
|
|
7211
7206
|
modelValue: {
|
|
7212
7207
|
type: [Number, String],
|
|
@@ -7256,7 +7251,7 @@ const _sfc_main$1d = create$1d({
|
|
|
7256
7251
|
emits: ["update:modelValue", "change", "blur", "focus", "reduce", "add", "overlimit"],
|
|
7257
7252
|
setup(props, { emit }) {
|
|
7258
7253
|
const classes = computed(() => {
|
|
7259
|
-
const prefixCls = componentName$
|
|
7254
|
+
const prefixCls = componentName$Z;
|
|
7260
7255
|
return {
|
|
7261
7256
|
[prefixCls]: true,
|
|
7262
7257
|
[`${prefixCls}--disabled`]: props.disabled
|
|
@@ -7333,8 +7328,8 @@ const _sfc_main$1d = create$1d({
|
|
|
7333
7328
|
};
|
|
7334
7329
|
}
|
|
7335
7330
|
});
|
|
7336
|
-
const _hoisted_1$
|
|
7337
|
-
function _sfc_render$
|
|
7331
|
+
const _hoisted_1$X = ["min", "max", "disabled", "readonly", "value"];
|
|
7332
|
+
function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7338
7333
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
7339
7334
|
return openBlock(), createElementBlock("view", {
|
|
7340
7335
|
class: normalizeClass(_ctx.classes),
|
|
@@ -7356,7 +7351,7 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7356
7351
|
onInput: _cache[0] || (_cache[0] = (...args) => _ctx.change && _ctx.change(...args)),
|
|
7357
7352
|
onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
|
|
7358
7353
|
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args))
|
|
7359
|
-
}, null, 44, _hoisted_1$
|
|
7354
|
+
}, null, 44, _hoisted_1$X),
|
|
7360
7355
|
createVNode(_component_nut_icon, mergeProps({
|
|
7361
7356
|
name: _ctx.iconRight,
|
|
7362
7357
|
class: ["nut-inputnumber__icon", { "nut-inputnumber__icon--disabled": !_ctx.addAllow() }],
|
|
@@ -7364,7 +7359,7 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7364
7359
|
}, _ctx.$attrs, { onClick: _ctx.add }), null, 16, ["name", "class", "size", "onClick"])
|
|
7365
7360
|
], 6);
|
|
7366
7361
|
}
|
|
7367
|
-
var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7362
|
+
var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$17]]);
|
|
7368
7363
|
function trimExtraChar(value, char, regExp) {
|
|
7369
7364
|
const index = value.indexOf(char);
|
|
7370
7365
|
if (index === -1) {
|
|
@@ -7389,8 +7384,8 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
|
|
|
7389
7384
|
const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
7390
7385
|
return value.replace(regExp, "");
|
|
7391
7386
|
}
|
|
7392
|
-
const { componentName: componentName$
|
|
7393
|
-
const _sfc_main$
|
|
7387
|
+
const { componentName: componentName$Y, create: create$1a } = createComponent("input");
|
|
7388
|
+
const _sfc_main$1a = create$1a({
|
|
7394
7389
|
props: {
|
|
7395
7390
|
ref: {
|
|
7396
7391
|
type: String,
|
|
@@ -7546,7 +7541,7 @@ const _sfc_main$1c = create$1c({
|
|
|
7546
7541
|
validateMessage: ""
|
|
7547
7542
|
});
|
|
7548
7543
|
const classes = computed(() => {
|
|
7549
|
-
const prefixCls = componentName$
|
|
7544
|
+
const prefixCls = componentName$Y;
|
|
7550
7545
|
return {
|
|
7551
7546
|
[prefixCls]: true,
|
|
7552
7547
|
center: props.center,
|
|
@@ -7658,12 +7653,6 @@ const _sfc_main$1c = create$1c({
|
|
|
7658
7653
|
}
|
|
7659
7654
|
emit("click-right-icon", event);
|
|
7660
7655
|
};
|
|
7661
|
-
const onClick = (e) => {
|
|
7662
|
-
if (props.disabled) {
|
|
7663
|
-
e.stopImmediatePropagation();
|
|
7664
|
-
return;
|
|
7665
|
-
}
|
|
7666
|
-
};
|
|
7667
7656
|
watch(
|
|
7668
7657
|
() => props.modelValue,
|
|
7669
7658
|
() => {
|
|
@@ -7691,17 +7680,16 @@ const _sfc_main$1c = create$1c({
|
|
|
7691
7680
|
clear,
|
|
7692
7681
|
onClickInput,
|
|
7693
7682
|
onClickLeftIcon,
|
|
7694
|
-
onClickRightIcon
|
|
7695
|
-
onClick
|
|
7683
|
+
onClickRightIcon
|
|
7696
7684
|
};
|
|
7697
7685
|
}
|
|
7698
7686
|
});
|
|
7699
|
-
const _hoisted_1$
|
|
7700
|
-
const _hoisted_2$
|
|
7701
|
-
const _hoisted_3$
|
|
7702
|
-
const _hoisted_4$
|
|
7703
|
-
const _hoisted_5$
|
|
7704
|
-
const _hoisted_6$
|
|
7687
|
+
const _hoisted_1$W = { class: "label-string" };
|
|
7688
|
+
const _hoisted_2$J = { class: "nut-input-value" };
|
|
7689
|
+
const _hoisted_3$y = { class: "label-string" };
|
|
7690
|
+
const _hoisted_4$s = { class: "nut-input-value" };
|
|
7691
|
+
const _hoisted_5$k = { class: "nut-input-inner" };
|
|
7692
|
+
const _hoisted_6$j = { class: "nut-input-box" };
|
|
7705
7693
|
const _hoisted_7$h = ["maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
|
|
7706
7694
|
const _hoisted_8$c = ["type", "maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
|
|
7707
7695
|
const _hoisted_9$8 = { class: "nut-input-clear-box" };
|
|
@@ -7710,11 +7698,10 @@ const _hoisted_10$5 = {
|
|
|
7710
7698
|
class: "nut-input-word-limit"
|
|
7711
7699
|
};
|
|
7712
7700
|
const _hoisted_11$5 = { class: "nut-input-word-num" };
|
|
7713
|
-
function _sfc_render$
|
|
7701
|
+
function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7714
7702
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
7715
7703
|
return openBlock(), createElementBlock("view", {
|
|
7716
|
-
class: normalizeClass(_ctx.classes)
|
|
7717
|
-
onClick: _cache[11] || (_cache[11] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
7704
|
+
class: normalizeClass(_ctx.classes)
|
|
7718
7705
|
}, [
|
|
7719
7706
|
_ctx.$slots.input ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
7720
7707
|
_ctx.label ? (openBlock(), createElementBlock("view", {
|
|
@@ -7725,9 +7712,9 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7725
7712
|
textAlign: _ctx.labelAlign
|
|
7726
7713
|
})
|
|
7727
7714
|
}, [
|
|
7728
|
-
createElementVNode("view", _hoisted_1$
|
|
7715
|
+
createElementVNode("view", _hoisted_1$W, toDisplayString(_ctx.label) + " " + toDisplayString(_ctx.colon ? ":" : ""), 1)
|
|
7729
7716
|
], 6)) : createCommentVNode("", true),
|
|
7730
|
-
createElementVNode("view", _hoisted_2$
|
|
7717
|
+
createElementVNode("view", _hoisted_2$J, [
|
|
7731
7718
|
createElementVNode("view", {
|
|
7732
7719
|
class: "nut-input-inner",
|
|
7733
7720
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
|
|
@@ -7751,11 +7738,11 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7751
7738
|
textAlign: _ctx.labelAlign
|
|
7752
7739
|
})
|
|
7753
7740
|
}, [
|
|
7754
|
-
createElementVNode("view", _hoisted_3$
|
|
7741
|
+
createElementVNode("view", _hoisted_3$y, toDisplayString(_ctx.label) + " " + toDisplayString(_ctx.colon ? ":" : ""), 1)
|
|
7755
7742
|
], 6)) : createCommentVNode("", true),
|
|
7756
|
-
createElementVNode("view", _hoisted_4$
|
|
7757
|
-
createElementVNode("view", _hoisted_5$
|
|
7758
|
-
createElementVNode("view", _hoisted_6$
|
|
7743
|
+
createElementVNode("view", _hoisted_4$s, [
|
|
7744
|
+
createElementVNode("view", _hoisted_5$k, [
|
|
7745
|
+
createElementVNode("view", _hoisted_6$j, [
|
|
7759
7746
|
_ctx.type == "textarea" ? (openBlock(), createElementBlock("textarea", {
|
|
7760
7747
|
key: 0,
|
|
7761
7748
|
class: "input-text",
|
|
@@ -7813,7 +7800,8 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7813
7800
|
_ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {
|
|
7814
7801
|
key: 1,
|
|
7815
7802
|
class: "nut-input-button"
|
|
7816
|
-
}) : createCommentVNode("", true)
|
|
7803
|
+
}) : createCommentVNode("", true),
|
|
7804
|
+
_ctx.$slots.rightExtra ? renderSlot(_ctx.$slots, "rightExtra", { key: 2 }) : createCommentVNode("", true)
|
|
7817
7805
|
]),
|
|
7818
7806
|
_ctx.showWordLimit && _ctx.maxLength ? (openBlock(), createElementBlock("view", _hoisted_10$5, [
|
|
7819
7807
|
createElementVNode("span", _hoisted_11$5, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0), 1),
|
|
@@ -7830,9 +7818,9 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7830
7818
|
], 64))
|
|
7831
7819
|
], 2);
|
|
7832
7820
|
}
|
|
7833
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7834
|
-
const { componentName: componentName$
|
|
7835
|
-
const _sfc_main$
|
|
7821
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$16]]);
|
|
7822
|
+
const { componentName: componentName$X, create: create$19 } = createComponent("radio");
|
|
7823
|
+
const _sfc_main$19 = create$19({
|
|
7836
7824
|
props: {
|
|
7837
7825
|
disabled: {
|
|
7838
7826
|
type: Boolean,
|
|
@@ -7880,7 +7868,7 @@ const _sfc_main$1b = create$1b({
|
|
|
7880
7868
|
});
|
|
7881
7869
|
const renderIcon = () => {
|
|
7882
7870
|
const { iconName, iconSize, iconActiveName, iconClassPrefix, iconFontClassName } = props;
|
|
7883
|
-
return h(_sfc_main$
|
|
7871
|
+
return h(_sfc_main$1P, {
|
|
7884
7872
|
name: isCurValue.value ? iconActiveName : iconName,
|
|
7885
7873
|
size: iconSize,
|
|
7886
7874
|
class: color.value,
|
|
@@ -7893,7 +7881,7 @@ const _sfc_main$1b = create$1b({
|
|
|
7893
7881
|
return h(
|
|
7894
7882
|
"view",
|
|
7895
7883
|
{
|
|
7896
|
-
class: `${componentName$
|
|
7884
|
+
class: `${componentName$X}__label ${props.disabled ? `${componentName$X}__label--disabled` : ""}`
|
|
7897
7885
|
},
|
|
7898
7886
|
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
7899
7887
|
);
|
|
@@ -7903,7 +7891,7 @@ const _sfc_main$1b = create$1b({
|
|
|
7903
7891
|
return h(
|
|
7904
7892
|
"view",
|
|
7905
7893
|
{
|
|
7906
|
-
class: `${componentName$
|
|
7894
|
+
class: `${componentName$X}__button ${isCurValue.value && `${componentName$X}__button--active`} ${props.disabled ? `${componentName$X}__button--disabled` : ""}`
|
|
7907
7895
|
},
|
|
7908
7896
|
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
7909
7897
|
);
|
|
@@ -7918,7 +7906,7 @@ const _sfc_main$1b = create$1b({
|
|
|
7918
7906
|
return h(
|
|
7919
7907
|
"view",
|
|
7920
7908
|
{
|
|
7921
|
-
class: `${componentName$
|
|
7909
|
+
class: `${componentName$X} ${componentName$X}--${props.shape} ${reverseState ? `${componentName$X}--reverse` : ""}`,
|
|
7922
7910
|
onClick: handleClick
|
|
7923
7911
|
},
|
|
7924
7912
|
[
|
|
@@ -7928,8 +7916,8 @@ const _sfc_main$1b = create$1b({
|
|
|
7928
7916
|
};
|
|
7929
7917
|
}
|
|
7930
7918
|
});
|
|
7931
|
-
const { componentName: componentName$
|
|
7932
|
-
const _sfc_main$
|
|
7919
|
+
const { componentName: componentName$W, create: create$18 } = createComponent("radiogroup");
|
|
7920
|
+
const _sfc_main$18 = create$18({
|
|
7933
7921
|
props: {
|
|
7934
7922
|
modelValue: {
|
|
7935
7923
|
type: [Number, String, Boolean],
|
|
@@ -7961,14 +7949,14 @@ const _sfc_main$1a = create$1a({
|
|
|
7961
7949
|
return h(
|
|
7962
7950
|
"view",
|
|
7963
7951
|
{
|
|
7964
|
-
class: `${componentName$
|
|
7952
|
+
class: `${componentName$W} ${componentName$W}--${props.direction}`
|
|
7965
7953
|
},
|
|
7966
7954
|
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
7967
7955
|
);
|
|
7968
7956
|
};
|
|
7969
7957
|
}
|
|
7970
7958
|
});
|
|
7971
|
-
const { componentName: componentName$
|
|
7959
|
+
const { componentName: componentName$V } = createComponent("rate");
|
|
7972
7960
|
const useComponent = (touchable = true) => {
|
|
7973
7961
|
return {
|
|
7974
7962
|
props: {
|
|
@@ -8033,7 +8021,7 @@ const useComponent = (touchable = true) => {
|
|
|
8033
8021
|
setup(props, { emit }) {
|
|
8034
8022
|
const rateRefs = ref([]);
|
|
8035
8023
|
const classes = computed(() => {
|
|
8036
|
-
const prefixCls = componentName$
|
|
8024
|
+
const prefixCls = componentName$V;
|
|
8037
8025
|
return {
|
|
8038
8026
|
[prefixCls]: true
|
|
8039
8027
|
};
|
|
@@ -8103,7 +8091,7 @@ const useComponent = (touchable = true) => {
|
|
|
8103
8091
|
};
|
|
8104
8092
|
};
|
|
8105
8093
|
const component$3 = useComponent();
|
|
8106
|
-
const _hoisted_1$
|
|
8094
|
+
const _hoisted_1$V = ["id"];
|
|
8107
8095
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8108
8096
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
8109
8097
|
return openBlock(), createElementBlock("view", {
|
|
@@ -8148,15 +8136,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8148
8136
|
size: _ctx.iconSize,
|
|
8149
8137
|
name: _ctx.uncheckedIcon
|
|
8150
8138
|
}, null, 8, ["onClick", "font-class-name", "class-prefix", "color", "size", "name"])) : createCommentVNode("", true)
|
|
8151
|
-
], 12, _hoisted_1$
|
|
8139
|
+
], 12, _hoisted_1$V);
|
|
8152
8140
|
}), 128))
|
|
8153
8141
|
], 34);
|
|
8154
8142
|
}
|
|
8155
|
-
const { create: create$
|
|
8156
|
-
const _sfc_main$
|
|
8157
|
-
var Rate = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8158
|
-
const { create: create$
|
|
8159
|
-
const _sfc_main$
|
|
8143
|
+
const { create: create$17 } = createComponent("rate");
|
|
8144
|
+
const _sfc_main$17 = create$17(component$3);
|
|
8145
|
+
var Rate = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["render", render]]);
|
|
8146
|
+
const { create: create$16, translate: translate$l } = createComponent("shortpassword");
|
|
8147
|
+
const _sfc_main$16 = create$16({
|
|
8160
8148
|
props: {
|
|
8161
8149
|
title: {
|
|
8162
8150
|
type: String,
|
|
@@ -8288,15 +8276,15 @@ const _sfc_main$18 = create$18({
|
|
|
8288
8276
|
};
|
|
8289
8277
|
}
|
|
8290
8278
|
});
|
|
8291
|
-
const _hoisted_1$
|
|
8292
|
-
const _hoisted_2$
|
|
8293
|
-
const _hoisted_3$
|
|
8294
|
-
const _hoisted_4$
|
|
8295
|
-
const _hoisted_5$
|
|
8279
|
+
const _hoisted_1$U = { class: "nut-shortpsd-title" };
|
|
8280
|
+
const _hoisted_2$I = { class: "nut-shortpsd-subtitle" };
|
|
8281
|
+
const _hoisted_3$x = { class: "nut-input-normalw" };
|
|
8282
|
+
const _hoisted_4$r = /* @__PURE__ */ createElementVNode("div", { class: "nut-input-site" }, null, -1);
|
|
8283
|
+
const _hoisted_5$j = {
|
|
8296
8284
|
key: 0,
|
|
8297
8285
|
class: "nut-shortpsd-icon"
|
|
8298
8286
|
};
|
|
8299
|
-
const _hoisted_6$
|
|
8287
|
+
const _hoisted_6$i = { class: "nut-shortpsd-message" };
|
|
8300
8288
|
const _hoisted_7$g = { class: "nut-shortpsd-error" };
|
|
8301
8289
|
const _hoisted_8$b = {
|
|
8302
8290
|
key: 0,
|
|
@@ -8306,7 +8294,7 @@ const _hoisted_9$7 = {
|
|
|
8306
8294
|
key: 0,
|
|
8307
8295
|
class: "nut-shortpsd-footer"
|
|
8308
8296
|
};
|
|
8309
|
-
function _sfc_render$
|
|
8297
|
+
function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8310
8298
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
8311
8299
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
8312
8300
|
return openBlock(), createElementBlock("view", null, [
|
|
@@ -8325,9 +8313,9 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8325
8313
|
isWrapTeleport: _ctx.isWrapTeleport
|
|
8326
8314
|
}, {
|
|
8327
8315
|
default: withCtx(() => [
|
|
8328
|
-
createElementVNode("view", _hoisted_1$
|
|
8329
|
-
createElementVNode("view", _hoisted_2$
|
|
8330
|
-
createElementVNode("div", _hoisted_3$
|
|
8316
|
+
createElementVNode("view", _hoisted_1$U, toDisplayString(_ctx.title || _ctx.translate("title")), 1),
|
|
8317
|
+
createElementVNode("view", _hoisted_2$I, toDisplayString(_ctx.desc || _ctx.translate("desc")), 1),
|
|
8318
|
+
createElementVNode("div", _hoisted_3$x, [
|
|
8331
8319
|
withDirectives(createElementVNode("input", {
|
|
8332
8320
|
ref: "realpwd",
|
|
8333
8321
|
class: "nut-input-real",
|
|
@@ -8339,7 +8327,7 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8339
8327
|
}, null, 36), [
|
|
8340
8328
|
[vModelText, _ctx.realInput]
|
|
8341
8329
|
]),
|
|
8342
|
-
_hoisted_4$
|
|
8330
|
+
_hoisted_4$r,
|
|
8343
8331
|
createElementVNode("view", {
|
|
8344
8332
|
class: "nut-shortpsd-fake",
|
|
8345
8333
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args))
|
|
@@ -8349,12 +8337,12 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8349
8337
|
class: "nut-shortpsd-li",
|
|
8350
8338
|
key: index
|
|
8351
8339
|
}, [
|
|
8352
|
-
String(_ctx.realInput).length > index ? (openBlock(), createElementBlock("view", _hoisted_5$
|
|
8340
|
+
String(_ctx.realInput).length > index ? (openBlock(), createElementBlock("view", _hoisted_5$j)) : createCommentVNode("", true)
|
|
8353
8341
|
]);
|
|
8354
8342
|
}), 128))
|
|
8355
8343
|
])
|
|
8356
8344
|
]),
|
|
8357
|
-
createElementVNode("view", _hoisted_6$
|
|
8345
|
+
createElementVNode("view", _hoisted_6$i, [
|
|
8358
8346
|
createElementVNode("view", _hoisted_7$g, toDisplayString(_ctx.errorMsg), 1),
|
|
8359
8347
|
_ctx.tips || _ctx.translate("tips") ? (openBlock(), createElementBlock("view", _hoisted_8$b, [
|
|
8360
8348
|
createVNode(_component_nut_icon, {
|
|
@@ -8382,9 +8370,9 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8382
8370
|
}, 8, ["visible", "onClickCloseIcon", "close-on-click-overlay", "onClickOverlay", "isWrapTeleport"])
|
|
8383
8371
|
]);
|
|
8384
8372
|
}
|
|
8385
|
-
var ShortPassword = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8386
|
-
const { componentName: componentName$
|
|
8387
|
-
const _sfc_main$
|
|
8373
|
+
var ShortPassword = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_render$15]]);
|
|
8374
|
+
const { componentName: componentName$U, create: create$15, translate: translate$k } = createComponent("textarea");
|
|
8375
|
+
const _sfc_main$15 = create$15({
|
|
8388
8376
|
props: {
|
|
8389
8377
|
modelValue: {
|
|
8390
8378
|
type: [String, Number],
|
|
@@ -8431,7 +8419,7 @@ const _sfc_main$17 = create$17({
|
|
|
8431
8419
|
setup(props, { emit }) {
|
|
8432
8420
|
const textareaRef = ref();
|
|
8433
8421
|
const classes = computed(() => {
|
|
8434
|
-
const prefixCls = componentName$
|
|
8422
|
+
const prefixCls = componentName$U;
|
|
8435
8423
|
return {
|
|
8436
8424
|
[prefixCls]: true,
|
|
8437
8425
|
[`${prefixCls}--disabled`]: props.disabled
|
|
@@ -8514,12 +8502,12 @@ const _sfc_main$17 = create$17({
|
|
|
8514
8502
|
};
|
|
8515
8503
|
}
|
|
8516
8504
|
});
|
|
8517
|
-
const _hoisted_1$
|
|
8518
|
-
const _hoisted_2$
|
|
8505
|
+
const _hoisted_1$T = ["rows", "disabled", "readonly", "value", "maxlength", "placeholder", "autofocus"];
|
|
8506
|
+
const _hoisted_2$H = {
|
|
8519
8507
|
key: 0,
|
|
8520
8508
|
class: "nut-textarea__limit"
|
|
8521
8509
|
};
|
|
8522
|
-
function _sfc_render$
|
|
8510
|
+
function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8523
8511
|
return openBlock(), createElementBlock("view", {
|
|
8524
8512
|
class: normalizeClass(_ctx.classes)
|
|
8525
8513
|
}, [
|
|
@@ -8537,11 +8525,11 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8537
8525
|
maxlength: _ctx.maxLength,
|
|
8538
8526
|
placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
|
|
8539
8527
|
autofocus: _ctx.autofocus
|
|
8540
|
-
}, null, 44, _hoisted_1$
|
|
8541
|
-
_ctx.limitShow ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
8528
|
+
}, null, 44, _hoisted_1$T),
|
|
8529
|
+
_ctx.limitShow ? (openBlock(), createElementBlock("view", _hoisted_2$H, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0) + "/" + toDisplayString(_ctx.maxLength), 1)) : createCommentVNode("", true)
|
|
8542
8530
|
], 2);
|
|
8543
8531
|
}
|
|
8544
|
-
var TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8532
|
+
var TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["render", _sfc_render$14]]);
|
|
8545
8533
|
class UploadOptions {
|
|
8546
8534
|
constructor() {
|
|
8547
8535
|
this.url = "";
|
|
@@ -8648,8 +8636,8 @@ class FileItem {
|
|
|
8648
8636
|
this.formData = {};
|
|
8649
8637
|
}
|
|
8650
8638
|
}
|
|
8651
|
-
const { componentName: componentName$
|
|
8652
|
-
const _sfc_main$
|
|
8639
|
+
const { componentName: componentName$T, create: create$14, translate: translate$i } = createComponent("uploader");
|
|
8640
|
+
const _sfc_main$14 = create$14({
|
|
8653
8641
|
props: {
|
|
8654
8642
|
name: { type: String, default: "file" },
|
|
8655
8643
|
url: { type: String, default: "" },
|
|
@@ -8673,6 +8661,7 @@ const _sfc_main$16 = create$16({
|
|
|
8673
8661
|
multiple: { type: Boolean, default: false },
|
|
8674
8662
|
disabled: { type: Boolean, default: false },
|
|
8675
8663
|
autoUpload: { type: Boolean, default: true },
|
|
8664
|
+
deleteIcon: { type: String, default: "failure" },
|
|
8676
8665
|
beforeUpload: {
|
|
8677
8666
|
type: Function,
|
|
8678
8667
|
default: null
|
|
@@ -8704,7 +8693,7 @@ const _sfc_main$16 = create$16({
|
|
|
8704
8693
|
const fileList = reactive(props.fileList);
|
|
8705
8694
|
let uploadQueue = [];
|
|
8706
8695
|
const classes = computed(() => {
|
|
8707
|
-
const prefixCls = componentName$
|
|
8696
|
+
const prefixCls = componentName$T;
|
|
8708
8697
|
return {
|
|
8709
8698
|
[prefixCls]: true
|
|
8710
8699
|
};
|
|
@@ -8890,21 +8879,21 @@ const _sfc_main$16 = create$16({
|
|
|
8890
8879
|
};
|
|
8891
8880
|
}
|
|
8892
8881
|
});
|
|
8893
|
-
const _hoisted_1$
|
|
8882
|
+
const _hoisted_1$S = {
|
|
8894
8883
|
key: 0,
|
|
8895
8884
|
class: "nut-uploader__slot"
|
|
8896
8885
|
};
|
|
8897
|
-
const _hoisted_2$
|
|
8898
|
-
const _hoisted_3$
|
|
8899
|
-
const _hoisted_4$
|
|
8886
|
+
const _hoisted_2$G = ["accept", "multiple", "name", "disabled"];
|
|
8887
|
+
const _hoisted_3$w = ["accept", "multiple", "name", "disabled"];
|
|
8888
|
+
const _hoisted_4$q = {
|
|
8900
8889
|
key: 0,
|
|
8901
8890
|
class: "nut-uploader__preview-img"
|
|
8902
8891
|
};
|
|
8903
|
-
const _hoisted_5$
|
|
8892
|
+
const _hoisted_5$i = {
|
|
8904
8893
|
key: 0,
|
|
8905
8894
|
class: "nut-uploader__preview__progress"
|
|
8906
8895
|
};
|
|
8907
|
-
const _hoisted_6$
|
|
8896
|
+
const _hoisted_6$h = { class: "nut-uploader__preview__progress__msg" };
|
|
8908
8897
|
const _hoisted_7$f = {
|
|
8909
8898
|
key: 1,
|
|
8910
8899
|
class: "nut-uploader__preview__progress"
|
|
@@ -8924,13 +8913,13 @@ const _hoisted_13$2 = {
|
|
|
8924
8913
|
const _hoisted_14$2 = ["onClick"];
|
|
8925
8914
|
const _hoisted_15$1 = ["accept", "multiple", "name", "disabled"];
|
|
8926
8915
|
const _hoisted_16$1 = ["accept", "multiple", "name", "disabled"];
|
|
8927
|
-
function _sfc_render$
|
|
8916
|
+
function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8928
8917
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
8929
8918
|
const _component_nut_progress = resolveComponent("nut-progress");
|
|
8930
8919
|
return openBlock(), createElementBlock("view", {
|
|
8931
8920
|
class: normalizeClass(_ctx.classes)
|
|
8932
8921
|
}, [
|
|
8933
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("view", _hoisted_1$
|
|
8922
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("view", _hoisted_1$S, [
|
|
8934
8923
|
renderSlot(_ctx.$slots, "default"),
|
|
8935
8924
|
_ctx.maximum - _ctx.fileList.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
8936
8925
|
_ctx.capture ? (openBlock(), createElementBlock("input", {
|
|
@@ -8943,7 +8932,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8943
8932
|
name: _ctx.name,
|
|
8944
8933
|
disabled: _ctx.disabled,
|
|
8945
8934
|
onChange: _cache[0] || (_cache[0] = (...args) => _ctx.onChange && _ctx.onChange(...args))
|
|
8946
|
-
}, null, 40, _hoisted_2$
|
|
8935
|
+
}, null, 40, _hoisted_2$G)) : (openBlock(), createElementBlock("input", {
|
|
8947
8936
|
key: 1,
|
|
8948
8937
|
class: "nut-uploader__input",
|
|
8949
8938
|
type: "file",
|
|
@@ -8952,7 +8941,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8952
8941
|
name: _ctx.name,
|
|
8953
8942
|
disabled: _ctx.disabled,
|
|
8954
8943
|
onChange: _cache[1] || (_cache[1] = (...args) => _ctx.onChange && _ctx.onChange(...args))
|
|
8955
|
-
}, null, 40, _hoisted_3$
|
|
8944
|
+
}, null, 40, _hoisted_3$w))
|
|
8956
8945
|
], 64)) : createCommentVNode("", true)
|
|
8957
8946
|
])) : createCommentVNode("", true),
|
|
8958
8947
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fileList, (item, index) => {
|
|
@@ -8960,9 +8949,9 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8960
8949
|
class: normalizeClass(["nut-uploader__preview", [_ctx.listType]]),
|
|
8961
8950
|
key: item.uid
|
|
8962
8951
|
}, [
|
|
8963
|
-
_ctx.listType == "picture" && !_ctx.$slots.default ? (openBlock(), createElementBlock("view", _hoisted_4$
|
|
8964
|
-
item.status == "ready" ? (openBlock(), createElementBlock("view", _hoisted_5$
|
|
8965
|
-
createElementVNode("view", _hoisted_6$
|
|
8952
|
+
_ctx.listType == "picture" && !_ctx.$slots.default ? (openBlock(), createElementBlock("view", _hoisted_4$q, [
|
|
8953
|
+
item.status == "ready" ? (openBlock(), createElementBlock("view", _hoisted_5$i, [
|
|
8954
|
+
createElementVNode("view", _hoisted_6$h, toDisplayString(item.message), 1)
|
|
8966
8955
|
])) : item.status != "success" ? (openBlock(), createElementBlock("view", _hoisted_7$f, [
|
|
8967
8956
|
createVNode(_component_nut_icon, {
|
|
8968
8957
|
color: "#fff",
|
|
@@ -8970,12 +8959,11 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8970
8959
|
}, null, 8, ["name"]),
|
|
8971
8960
|
createElementVNode("view", _hoisted_8$a, toDisplayString(item.message), 1)
|
|
8972
8961
|
])) : createCommentVNode("", true),
|
|
8973
|
-
_ctx.isDeletable ? (openBlock(), createBlock(_component_nut_icon, {
|
|
8974
|
-
key: 2,
|
|
8962
|
+
_ctx.isDeletable ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 2 }, _ctx.$attrs, {
|
|
8975
8963
|
onClick: ($event) => _ctx.onDelete(item, index),
|
|
8976
8964
|
class: "close",
|
|
8977
|
-
name:
|
|
8978
|
-
}, null,
|
|
8965
|
+
name: _ctx.deleteIcon
|
|
8966
|
+
}), null, 16, ["onClick", "name"])) : createCommentVNode("", true),
|
|
8979
8967
|
item.type.includes("image") && item.url ? (openBlock(), createElementBlock("img", {
|
|
8980
8968
|
key: 3,
|
|
8981
8969
|
class: "nut-uploader__preview-img__c",
|
|
@@ -9050,9 +9038,9 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9050
9038
|
], 2)) : createCommentVNode("", true)
|
|
9051
9039
|
], 2);
|
|
9052
9040
|
}
|
|
9053
|
-
var Uploader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9054
|
-
const { create: create$
|
|
9055
|
-
const _sfc_main$
|
|
9041
|
+
var Uploader = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_render$13]]);
|
|
9042
|
+
const { create: create$13, translate: translate$h } = createComponent("numberkeyboard");
|
|
9043
|
+
const _sfc_main$13 = create$13({
|
|
9056
9044
|
props: {
|
|
9057
9045
|
confirmText: {
|
|
9058
9046
|
type: String,
|
|
@@ -9213,18 +9201,18 @@ const _sfc_main$15 = create$15({
|
|
|
9213
9201
|
};
|
|
9214
9202
|
}
|
|
9215
9203
|
});
|
|
9216
|
-
const _hoisted_1$
|
|
9204
|
+
const _hoisted_1$R = {
|
|
9217
9205
|
class: "nut-numberkeyboard",
|
|
9218
9206
|
ref: "root"
|
|
9219
9207
|
};
|
|
9220
|
-
const _hoisted_2$
|
|
9208
|
+
const _hoisted_2$F = {
|
|
9221
9209
|
key: 0,
|
|
9222
9210
|
class: "number-board-header"
|
|
9223
9211
|
};
|
|
9224
|
-
const _hoisted_3$
|
|
9225
|
-
const _hoisted_4$
|
|
9226
|
-
const _hoisted_5$
|
|
9227
|
-
const _hoisted_6$
|
|
9212
|
+
const _hoisted_3$v = { class: "tit" };
|
|
9213
|
+
const _hoisted_4$p = { class: "number-board-body" };
|
|
9214
|
+
const _hoisted_5$h = { class: "number-board" };
|
|
9215
|
+
const _hoisted_6$g = ["onTouchstart"];
|
|
9228
9216
|
const _hoisted_7$e = {
|
|
9229
9217
|
key: 1,
|
|
9230
9218
|
src: "https://img11.360buyimg.com/imagetools/jfs/t1/146371/38/8485/738/5f606425Eca239740/14f4b4f5f20d8a68.png"
|
|
@@ -9242,7 +9230,7 @@ const _hoisted_11$3 = /* @__PURE__ */ createElementVNode("img", { src: "https://
|
|
|
9242
9230
|
const _hoisted_12$3 = [
|
|
9243
9231
|
_hoisted_11$3
|
|
9244
9232
|
];
|
|
9245
|
-
function _sfc_render$
|
|
9233
|
+
function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9246
9234
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
9247
9235
|
return openBlock(), createBlock(_component_nut_popup, {
|
|
9248
9236
|
visible: _ctx.show,
|
|
@@ -9256,17 +9244,17 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9256
9244
|
"overlay-class": "nut-numberkeyboard-overlay"
|
|
9257
9245
|
}, {
|
|
9258
9246
|
default: withCtx(() => [
|
|
9259
|
-
createElementVNode("div", _hoisted_1$
|
|
9260
|
-
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9261
|
-
createElementVNode("h3", _hoisted_3$
|
|
9247
|
+
createElementVNode("div", _hoisted_1$R, [
|
|
9248
|
+
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2$F, [
|
|
9249
|
+
createElementVNode("h3", _hoisted_3$v, toDisplayString(_ctx.title), 1),
|
|
9262
9250
|
_ctx.type == "default" ? (openBlock(), createElementBlock("span", {
|
|
9263
9251
|
key: 0,
|
|
9264
9252
|
class: "keyboard-close",
|
|
9265
9253
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.closeBoard())
|
|
9266
9254
|
}, toDisplayString(_ctx.translate("done")), 1)) : createCommentVNode("", true)
|
|
9267
9255
|
])) : createCommentVNode("", true),
|
|
9268
|
-
createElementVNode("div", _hoisted_4$
|
|
9269
|
-
createElementVNode("div", _hoisted_5$
|
|
9256
|
+
createElementVNode("div", _hoisted_4$p, [
|
|
9257
|
+
createElementVNode("div", _hoisted_5$h, [
|
|
9270
9258
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.keysList, (item) => {
|
|
9271
9259
|
return openBlock(), createElementBlock("div", {
|
|
9272
9260
|
class: normalizeClass([
|
|
@@ -9293,7 +9281,7 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9293
9281
|
], 64)) : createCommentVNode("", true),
|
|
9294
9282
|
item.type == "lock" ? (openBlock(), createElementBlock("img", _hoisted_7$e)) : createCommentVNode("", true),
|
|
9295
9283
|
item.type == "delete" ? (openBlock(), createElementBlock("img", _hoisted_8$9)) : createCommentVNode("", true)
|
|
9296
|
-
], 42, _hoisted_6$
|
|
9284
|
+
], 42, _hoisted_6$g)
|
|
9297
9285
|
], 2);
|
|
9298
9286
|
}), 128))
|
|
9299
9287
|
]),
|
|
@@ -9321,7 +9309,7 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9321
9309
|
_: 1
|
|
9322
9310
|
}, 8, ["visible", "teleport", "popClass", "overlay", "isWrapTeleport"]);
|
|
9323
9311
|
}
|
|
9324
|
-
var NumberKeyboard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9312
|
+
var NumberKeyboard = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$12]]);
|
|
9325
9313
|
const component$2 = {
|
|
9326
9314
|
props: {
|
|
9327
9315
|
modelValue: {
|
|
@@ -9460,608 +9448,136 @@ const component$2 = {
|
|
|
9460
9448
|
validate();
|
|
9461
9449
|
return false;
|
|
9462
9450
|
};
|
|
9463
|
-
return { validate, reset, onSubmit, formErrorTip };
|
|
9464
|
-
}
|
|
9465
|
-
};
|
|
9466
|
-
const { create: create$14 } = createComponent("form");
|
|
9467
|
-
const _sfc_main$14 = create$14(component$2);
|
|
9468
|
-
function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9469
|
-
const _component_nut_cell_group = resolveComponent("nut-cell-group");
|
|
9470
|
-
return openBlock(), createElementBlock("form", {
|
|
9471
|
-
class: "nut-form",
|
|
9472
|
-
action: "#",
|
|
9473
|
-
onSubmit: _cache[0] || (_cache[0] = withModifiers(() => false, ["prevent"]))
|
|
9474
|
-
}, [
|
|
9475
|
-
createVNode(_component_nut_cell_group, null, {
|
|
9476
|
-
default: withCtx(() => [
|
|
9477
|
-
renderSlot(_ctx.$slots, "default")
|
|
9478
|
-
]),
|
|
9479
|
-
_: 3
|
|
9480
|
-
})
|
|
9481
|
-
], 32);
|
|
9482
|
-
}
|
|
9483
|
-
var Form = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_render$13]]);
|
|
9484
|
-
const { componentName: componentName$T, create: create$13 } = createComponent("form-item");
|
|
9485
|
-
const _sfc_main$13 = create$13({
|
|
9486
|
-
inheritAttrs: false,
|
|
9487
|
-
props: {
|
|
9488
|
-
prop: {
|
|
9489
|
-
type: String,
|
|
9490
|
-
default: ""
|
|
9491
|
-
},
|
|
9492
|
-
label: {
|
|
9493
|
-
type: String,
|
|
9494
|
-
default: ""
|
|
9495
|
-
},
|
|
9496
|
-
rules: {
|
|
9497
|
-
type: Array,
|
|
9498
|
-
default: () => {
|
|
9499
|
-
return [];
|
|
9500
|
-
}
|
|
9501
|
-
},
|
|
9502
|
-
required: {
|
|
9503
|
-
type: Boolean,
|
|
9504
|
-
default: false
|
|
9505
|
-
},
|
|
9506
|
-
showErrorMessage: {
|
|
9507
|
-
type: Boolean,
|
|
9508
|
-
default: true
|
|
9509
|
-
},
|
|
9510
|
-
showErrorLine: {
|
|
9511
|
-
type: Boolean,
|
|
9512
|
-
default: true
|
|
9513
|
-
},
|
|
9514
|
-
labelWidth: {
|
|
9515
|
-
type: [String, Number],
|
|
9516
|
-
default: ""
|
|
9517
|
-
},
|
|
9518
|
-
labelAlign: {
|
|
9519
|
-
type: String,
|
|
9520
|
-
default: ""
|
|
9521
|
-
},
|
|
9522
|
-
errorMessageAlign: {
|
|
9523
|
-
type: String,
|
|
9524
|
-
default: ""
|
|
9525
|
-
},
|
|
9526
|
-
bodyAlign: {
|
|
9527
|
-
type: String,
|
|
9528
|
-
default: ""
|
|
9529
|
-
}
|
|
9530
|
-
},
|
|
9531
|
-
components: {},
|
|
9532
|
-
emits: [""],
|
|
9533
|
-
setup(props, { emit, slots }) {
|
|
9534
|
-
const parent = inject("formErrorTip");
|
|
9535
|
-
provide("form", {
|
|
9536
|
-
props
|
|
9537
|
-
});
|
|
9538
|
-
const labelStyle = computed(() => {
|
|
9539
|
-
return {
|
|
9540
|
-
width: pxCheck(props.labelWidth),
|
|
9541
|
-
textAlign: props.labelAlign
|
|
9542
|
-
};
|
|
9543
|
-
});
|
|
9544
|
-
const bodyStyle = computed(() => {
|
|
9545
|
-
return {
|
|
9546
|
-
textAlign: props.bodyAlign
|
|
9547
|
-
};
|
|
9548
|
-
});
|
|
9549
|
-
const errorMessageStyle = computed(() => {
|
|
9550
|
-
return {
|
|
9551
|
-
textAlign: props.errorMessageAlign
|
|
9552
|
-
};
|
|
9553
|
-
});
|
|
9554
|
-
const getSlots = (name) => slots[name];
|
|
9555
|
-
return { parent, labelStyle, bodyStyle, errorMessageStyle, getSlots };
|
|
9556
|
-
}
|
|
9557
|
-
});
|
|
9558
|
-
const _hoisted_1$S = { class: "nut-cell__value nut-form-item__body" };
|
|
9559
|
-
function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9560
|
-
const _component_nut_cell = resolveComponent("nut-cell");
|
|
9561
|
-
return openBlock(), createBlock(_component_nut_cell, {
|
|
9562
|
-
class: normalizeClass(["nut-form-item", [{ error: _ctx.parent[_ctx.prop], line: _ctx.showErrorLine }, _ctx.$attrs.class]]),
|
|
9563
|
-
style: normalizeStyle(_ctx.$attrs.style)
|
|
9564
|
-
}, {
|
|
9565
|
-
default: withCtx(() => [
|
|
9566
|
-
_ctx.label || _ctx.getSlots("label") ? (openBlock(), createElementBlock("view", {
|
|
9567
|
-
key: 0,
|
|
9568
|
-
class: normalizeClass(["nut-cell__title nut-form-item__label", { required: _ctx.required }]),
|
|
9569
|
-
style: normalizeStyle(_ctx.labelStyle)
|
|
9570
|
-
}, [
|
|
9571
|
-
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
9572
|
-
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
9573
|
-
])
|
|
9574
|
-
], 6)) : createCommentVNode("", true),
|
|
9575
|
-
createElementVNode("view", _hoisted_1$S, [
|
|
9576
|
-
createElementVNode("view", {
|
|
9577
|
-
class: "nut-form-item__body__slots",
|
|
9578
|
-
style: normalizeStyle(_ctx.bodyStyle)
|
|
9579
|
-
}, [
|
|
9580
|
-
renderSlot(_ctx.$slots, "default")
|
|
9581
|
-
], 4),
|
|
9582
|
-
_ctx.parent[_ctx.prop] && _ctx.showErrorMessage ? (openBlock(), createElementBlock("view", {
|
|
9583
|
-
key: 0,
|
|
9584
|
-
class: "nut-form-item__body__tips",
|
|
9585
|
-
style: normalizeStyle(_ctx.errorMessageStyle)
|
|
9586
|
-
}, toDisplayString(_ctx.parent[_ctx.prop]), 5)) : createCommentVNode("", true)
|
|
9587
|
-
])
|
|
9588
|
-
]),
|
|
9589
|
-
_: 3
|
|
9590
|
-
}, 8, ["class", "style"]);
|
|
9591
|
-
}
|
|
9592
|
-
var FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$12]]);
|
|
9593
|
-
const { create: create$12 } = createComponent("oldpicker-column");
|
|
9594
|
-
const _sfc_main$12 = create$12({
|
|
9595
|
-
props: {
|
|
9596
|
-
dataType: String,
|
|
9597
|
-
itemShow: {
|
|
9598
|
-
type: Boolean,
|
|
9599
|
-
default: false
|
|
9600
|
-
},
|
|
9601
|
-
listData: {
|
|
9602
|
-
type: Object,
|
|
9603
|
-
default: () => {
|
|
9604
|
-
return {};
|
|
9605
|
-
}
|
|
9606
|
-
},
|
|
9607
|
-
readonly: {
|
|
9608
|
-
type: Boolean,
|
|
9609
|
-
default: false
|
|
9610
|
-
},
|
|
9611
|
-
defaultIndex: {
|
|
9612
|
-
type: [Number, String],
|
|
9613
|
-
default: 0
|
|
9614
|
-
}
|
|
9615
|
-
},
|
|
9616
|
-
emits: ["click", "change"],
|
|
9617
|
-
setup(props, { emit }) {
|
|
9618
|
-
const wrapper = ref();
|
|
9619
|
-
const state = reactive({
|
|
9620
|
-
touchParams: {
|
|
9621
|
-
startY: 0,
|
|
9622
|
-
endY: 0,
|
|
9623
|
-
startTime: 0,
|
|
9624
|
-
endTime: 0,
|
|
9625
|
-
lastY: 0
|
|
9626
|
-
},
|
|
9627
|
-
currIndex: 1,
|
|
9628
|
-
transformY: 0,
|
|
9629
|
-
scrollDistance: 0,
|
|
9630
|
-
lineSpacing: 36,
|
|
9631
|
-
rotation: 20,
|
|
9632
|
-
timer: null
|
|
9633
|
-
});
|
|
9634
|
-
const roller = ref(null);
|
|
9635
|
-
const list = ref(null);
|
|
9636
|
-
const listItem = ref(null);
|
|
9637
|
-
const touchDeg = ref(0);
|
|
9638
|
-
const touchTime = ref(0);
|
|
9639
|
-
const touchTranslateY = ref(0);
|
|
9640
|
-
const touchListStyle = computed(() => {
|
|
9641
|
-
return {
|
|
9642
|
-
transition: `transform ${touchTime.value}ms cubic-bezier(0.19, 1, 0.22, 1)`,
|
|
9643
|
-
transform: `translate3d(0, ${state.scrollDistance}px, 0)`
|
|
9644
|
-
};
|
|
9645
|
-
});
|
|
9646
|
-
const touchRollerStyle = computed(() => {
|
|
9647
|
-
return {
|
|
9648
|
-
transition: `transform ${touchTime.value}ms cubic-bezier(0.19, 1, 0.22, 1)`,
|
|
9649
|
-
transform: `rotate3d(1, 0, 0, ${touchDeg.value})`
|
|
9650
|
-
};
|
|
9651
|
-
});
|
|
9652
|
-
const onTouchStart = (event) => {
|
|
9653
|
-
event.preventDefault();
|
|
9654
|
-
let changedTouches = event.changedTouches[0];
|
|
9655
|
-
state.touchParams.startY = changedTouches.pageY;
|
|
9656
|
-
state.touchParams.startTime = event.timeStamp || Date.now();
|
|
9657
|
-
state.transformY = state.scrollDistance;
|
|
9658
|
-
};
|
|
9659
|
-
const onTouchMove = (event) => {
|
|
9660
|
-
event.preventDefault();
|
|
9661
|
-
let changedTouches = event.changedTouches[0];
|
|
9662
|
-
state.touchParams.lastY = changedTouches.pageY;
|
|
9663
|
-
state.touchParams.lastTime = event.timeStamp || Date.now();
|
|
9664
|
-
let move = state.touchParams.lastY - state.touchParams.startY;
|
|
9665
|
-
setMove(move);
|
|
9666
|
-
};
|
|
9667
|
-
const onTouchEnd = (event) => {
|
|
9668
|
-
event.preventDefault();
|
|
9669
|
-
let changedTouches = event.changedTouches[0];
|
|
9670
|
-
state.touchParams.lastY = changedTouches.pageY;
|
|
9671
|
-
state.touchParams.lastTime = event.timestamp || Date.now();
|
|
9672
|
-
let move = state.touchParams.lastY - state.touchParams.startY;
|
|
9673
|
-
let moveTime = state.touchParams.lastTime - state.touchParams.startTime;
|
|
9674
|
-
if (moveTime <= 300) {
|
|
9675
|
-
move = move * 2;
|
|
9676
|
-
moveTime = moveTime + 1e3;
|
|
9677
|
-
setMove(move, "end", moveTime);
|
|
9678
|
-
} else {
|
|
9679
|
-
setMove(move, "end");
|
|
9680
|
-
}
|
|
9681
|
-
};
|
|
9682
|
-
const setRollerStyle = (index) => {
|
|
9683
|
-
return `transform: rotate3d(1, 0, 0, ${-state.rotation * index}deg) translate3d(0px, 0px, 104px)`;
|
|
9684
|
-
};
|
|
9685
|
-
const isHidden = (index) => {
|
|
9686
|
-
if (index >= state.currIndex + 8 || index <= state.currIndex - 8) {
|
|
9687
|
-
return true;
|
|
9688
|
-
} else {
|
|
9689
|
-
return false;
|
|
9690
|
-
}
|
|
9691
|
-
};
|
|
9692
|
-
const setTransform = (translateY = 0, type, time = 1e3, deg) => {
|
|
9693
|
-
if (type === "end") {
|
|
9694
|
-
touchTime.value = time;
|
|
9695
|
-
} else {
|
|
9696
|
-
touchTime.value = 0;
|
|
9697
|
-
}
|
|
9698
|
-
touchDeg.value = deg;
|
|
9699
|
-
touchTranslateY.value = translateY;
|
|
9700
|
-
state.scrollDistance = translateY;
|
|
9701
|
-
};
|
|
9702
|
-
const setMove = (move, type, time) => {
|
|
9703
|
-
let updateMove = move + state.transformY;
|
|
9704
|
-
if (type === "end") {
|
|
9705
|
-
if (updateMove > 0) {
|
|
9706
|
-
updateMove = 0;
|
|
9707
|
-
}
|
|
9708
|
-
if (updateMove < -(props.listData.values.length - 1) * state.lineSpacing) {
|
|
9709
|
-
updateMove = -(props.listData.values.length - 1) * state.lineSpacing;
|
|
9710
|
-
}
|
|
9711
|
-
let endMove = Math.round(updateMove / state.lineSpacing) * state.lineSpacing;
|
|
9712
|
-
let deg = `${(Math.abs(Math.round(endMove / state.lineSpacing)) + 1) * state.rotation}deg`;
|
|
9713
|
-
setTransform(endMove, type, time, deg);
|
|
9714
|
-
let t = time ? time / 2 : 0;
|
|
9715
|
-
state.timer = setTimeout(() => {
|
|
9716
|
-
setChooseValue();
|
|
9717
|
-
}, t);
|
|
9718
|
-
state.currIndex = Math.abs(Math.round(endMove / state.lineSpacing)) + 1;
|
|
9719
|
-
} else {
|
|
9720
|
-
let deg = "0deg";
|
|
9721
|
-
if (updateMove < 0) {
|
|
9722
|
-
deg = `${(Math.abs(updateMove / state.lineSpacing) + 1) * state.rotation}deg`;
|
|
9723
|
-
} else {
|
|
9724
|
-
deg = `${(-updateMove / state.lineSpacing + 1) * state.rotation}deg`;
|
|
9725
|
-
}
|
|
9726
|
-
setTransform(updateMove, null, void 0, deg);
|
|
9727
|
-
state.currIndex = Math.abs(Math.round(updateMove / state.lineSpacing)) + 1;
|
|
9728
|
-
}
|
|
9729
|
-
};
|
|
9730
|
-
const setChooseValue = () => {
|
|
9731
|
-
emit("change", state.currIndex - 1);
|
|
9732
|
-
};
|
|
9733
|
-
const modifyStatus = (type) => {
|
|
9734
|
-
let index = props.defaultIndex;
|
|
9735
|
-
state.currIndex = index === -1 ? 1 : index + 1;
|
|
9736
|
-
let move = index === -1 ? 0 : index * state.lineSpacing;
|
|
9737
|
-
type && setChooseValue();
|
|
9738
|
-
setMove(-move);
|
|
9739
|
-
};
|
|
9740
|
-
watch(
|
|
9741
|
-
() => props.listData,
|
|
9742
|
-
(val) => {
|
|
9743
|
-
state.transformY = 0;
|
|
9744
|
-
modifyStatus(false);
|
|
9745
|
-
},
|
|
9746
|
-
{
|
|
9747
|
-
deep: true
|
|
9748
|
-
}
|
|
9749
|
-
);
|
|
9750
|
-
watch(
|
|
9751
|
-
() => props.defaultIndex,
|
|
9752
|
-
(val) => {
|
|
9753
|
-
state.transformY = 0;
|
|
9754
|
-
modifyStatus(false);
|
|
9755
|
-
}
|
|
9756
|
-
);
|
|
9757
|
-
onMounted(() => {
|
|
9758
|
-
modifyStatus(true);
|
|
9759
|
-
});
|
|
9760
|
-
return {
|
|
9761
|
-
...toRefs(state),
|
|
9762
|
-
...toRefs(props),
|
|
9763
|
-
wrapper,
|
|
9764
|
-
setRollerStyle,
|
|
9765
|
-
isHidden,
|
|
9766
|
-
roller,
|
|
9767
|
-
list,
|
|
9768
|
-
listItem,
|
|
9769
|
-
onTouchStart,
|
|
9770
|
-
onTouchMove,
|
|
9771
|
-
onTouchEnd,
|
|
9772
|
-
touchRollerStyle,
|
|
9773
|
-
touchListStyle,
|
|
9774
|
-
setMove
|
|
9775
|
-
};
|
|
9451
|
+
return { validate, reset, onSubmit, formErrorTip };
|
|
9776
9452
|
}
|
|
9777
|
-
});
|
|
9778
|
-
const _hoisted_1$R = { class: "nut-oldpicker-content" };
|
|
9779
|
-
const _hoisted_2$G = {
|
|
9780
|
-
key: 0,
|
|
9781
|
-
class: "nut-oldpicker-placeholder"
|
|
9782
9453
|
};
|
|
9454
|
+
const { create: create$12 } = createComponent("form");
|
|
9455
|
+
const _sfc_main$12 = create$12(component$2);
|
|
9783
9456
|
function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
|
|
9788
|
-
|
|
9457
|
+
const _component_nut_cell_group = resolveComponent("nut-cell-group");
|
|
9458
|
+
return openBlock(), createElementBlock("form", {
|
|
9459
|
+
class: "nut-form",
|
|
9460
|
+
action: "#",
|
|
9461
|
+
onSubmit: _cache[0] || (_cache[0] = withModifiers(() => false, ["prevent"]))
|
|
9789
9462
|
}, [
|
|
9790
|
-
|
|
9791
|
-
|
|
9792
|
-
|
|
9793
|
-
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
return openBlock(), createElementBlock("view", {
|
|
9797
|
-
class: normalizeClass(["nut-oldpicker-roller-item", { "nut-oldpicker-roller-item-hidden": _ctx.isHidden(index + 1) }]),
|
|
9798
|
-
style: normalizeStyle(_ctx.setRollerStyle(index + 1)),
|
|
9799
|
-
key: item.label ? item.label : index
|
|
9800
|
-
}, toDisplayString(_ctx.dataType === "cascade" ? item.text : item), 7);
|
|
9801
|
-
}), 128))
|
|
9802
|
-
], 4),
|
|
9803
|
-
createElementVNode("view", _hoisted_1$R, [
|
|
9804
|
-
createElementVNode("view", {
|
|
9805
|
-
class: "nut-oldpicker-list-panel",
|
|
9806
|
-
ref: "list",
|
|
9807
|
-
style: normalizeStyle(_ctx.touchListStyle)
|
|
9808
|
-
}, [
|
|
9809
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.listData.values, (item, index) => {
|
|
9810
|
-
return openBlock(), createElementBlock("view", {
|
|
9811
|
-
class: "nut-oldpicker-item nut-oldpicker-item-ref",
|
|
9812
|
-
key: item.label ? item.label : index
|
|
9813
|
-
}, toDisplayString(_ctx.dataType === "cascade" ? item.text : item), 1);
|
|
9814
|
-
}), 128)),
|
|
9815
|
-
_ctx.listData && _ctx.listData.length === 1 ? (openBlock(), createElementBlock("view", _hoisted_2$G)) : createCommentVNode("", true)
|
|
9816
|
-
], 4)
|
|
9817
|
-
])
|
|
9463
|
+
createVNode(_component_nut_cell_group, null, {
|
|
9464
|
+
default: withCtx(() => [
|
|
9465
|
+
renderSlot(_ctx.$slots, "default")
|
|
9466
|
+
]),
|
|
9467
|
+
_: 3
|
|
9468
|
+
})
|
|
9818
9469
|
], 32);
|
|
9819
9470
|
}
|
|
9820
|
-
var
|
|
9821
|
-
const {
|
|
9471
|
+
var Form = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$11]]);
|
|
9472
|
+
const { componentName: componentName$S, create: create$11 } = createComponent("form-item");
|
|
9822
9473
|
const _sfc_main$11 = create$11({
|
|
9823
|
-
|
|
9824
|
-
[column.name]: column,
|
|
9825
|
-
[Popup.name]: Popup
|
|
9826
|
-
},
|
|
9474
|
+
inheritAttrs: false,
|
|
9827
9475
|
props: {
|
|
9828
|
-
|
|
9829
|
-
title: {
|
|
9476
|
+
prop: {
|
|
9830
9477
|
type: String,
|
|
9831
9478
|
default: ""
|
|
9832
9479
|
},
|
|
9833
|
-
|
|
9834
|
-
type: String,
|
|
9835
|
-
default: "\u53D6\u6D88"
|
|
9836
|
-
},
|
|
9837
|
-
okText: {
|
|
9480
|
+
label: {
|
|
9838
9481
|
type: String,
|
|
9839
|
-
default: "
|
|
9482
|
+
default: ""
|
|
9840
9483
|
},
|
|
9841
|
-
|
|
9484
|
+
rules: {
|
|
9842
9485
|
type: Array,
|
|
9843
9486
|
default: () => {
|
|
9844
9487
|
return [];
|
|
9845
9488
|
}
|
|
9846
9489
|
},
|
|
9847
|
-
|
|
9490
|
+
required: {
|
|
9848
9491
|
type: Boolean,
|
|
9849
9492
|
default: false
|
|
9850
9493
|
},
|
|
9851
|
-
|
|
9852
|
-
type:
|
|
9853
|
-
default:
|
|
9494
|
+
showErrorMessage: {
|
|
9495
|
+
type: Boolean,
|
|
9496
|
+
default: true
|
|
9497
|
+
},
|
|
9498
|
+
showErrorLine: {
|
|
9499
|
+
type: Boolean,
|
|
9500
|
+
default: true
|
|
9501
|
+
},
|
|
9502
|
+
labelWidth: {
|
|
9503
|
+
type: [String, Number],
|
|
9504
|
+
default: ""
|
|
9505
|
+
},
|
|
9506
|
+
labelAlign: {
|
|
9507
|
+
type: String,
|
|
9508
|
+
default: ""
|
|
9509
|
+
},
|
|
9510
|
+
errorMessageAlign: {
|
|
9511
|
+
type: String,
|
|
9512
|
+
default: ""
|
|
9513
|
+
},
|
|
9514
|
+
bodyAlign: {
|
|
9515
|
+
type: String,
|
|
9516
|
+
default: ""
|
|
9854
9517
|
}
|
|
9855
9518
|
},
|
|
9856
|
-
|
|
9857
|
-
|
|
9858
|
-
|
|
9859
|
-
const
|
|
9860
|
-
|
|
9861
|
-
|
|
9862
|
-
formattedColumns: props.listData,
|
|
9863
|
-
defaultIndex: props.defaultIndex
|
|
9519
|
+
components: {},
|
|
9520
|
+
emits: [""],
|
|
9521
|
+
setup(props, { emit, slots }) {
|
|
9522
|
+
const parent = inject("formErrorTip");
|
|
9523
|
+
provide("form", {
|
|
9524
|
+
props
|
|
9864
9525
|
});
|
|
9865
|
-
|
|
9866
|
-
let defaultIndexList = [];
|
|
9867
|
-
const classes = computed(() => {
|
|
9868
|
-
const prefixCls = componentName$S;
|
|
9526
|
+
const labelStyle = computed(() => {
|
|
9869
9527
|
return {
|
|
9870
|
-
|
|
9528
|
+
width: pxCheck(props.labelWidth),
|
|
9529
|
+
textAlign: props.labelAlign
|
|
9871
9530
|
};
|
|
9872
9531
|
});
|
|
9873
|
-
const
|
|
9874
|
-
|
|
9875
|
-
|
|
9876
|
-
|
|
9877
|
-
return "cascade";
|
|
9878
|
-
} else if (firstColumn == null ? void 0 : firstColumn[valuesKey]) {
|
|
9879
|
-
addDefaultIndexList(props.listData);
|
|
9880
|
-
return "multipleColumns";
|
|
9881
|
-
}
|
|
9882
|
-
}
|
|
9883
|
-
return "text";
|
|
9884
|
-
});
|
|
9885
|
-
const columnList = computed(() => {
|
|
9886
|
-
if (dataType.value === "text") {
|
|
9887
|
-
return [{ values: state.formattedColumns, defaultIndex: state.defaultIndex }];
|
|
9888
|
-
} else if (dataType.value === "multipleColumns") {
|
|
9889
|
-
return state.formattedColumns;
|
|
9890
|
-
} else if (dataType.value === "cascade") {
|
|
9891
|
-
return formatCascade(state.formattedColumns, state.defaultIndex);
|
|
9892
|
-
}
|
|
9893
|
-
return state.formattedColumns;
|
|
9894
|
-
});
|
|
9895
|
-
const addDefaultIndexList = (listData) => {
|
|
9896
|
-
defaultIndexList = [];
|
|
9897
|
-
listData.forEach((res) => {
|
|
9898
|
-
defaultIndexList.push(res.defaultIndex || 0);
|
|
9899
|
-
});
|
|
9900
|
-
};
|
|
9901
|
-
const formatCascade = (listData, defaultIndex) => {
|
|
9902
|
-
const formatted = [];
|
|
9903
|
-
let children = listData;
|
|
9904
|
-
children.defaultIndex = defaultIndex;
|
|
9905
|
-
while (children) {
|
|
9906
|
-
formatted.push({
|
|
9907
|
-
values: children,
|
|
9908
|
-
defaultIndex: children.defaultIndex || 0
|
|
9909
|
-
});
|
|
9910
|
-
children = children == null ? void 0 : children[children.defaultIndex || 0].children;
|
|
9911
|
-
}
|
|
9912
|
-
addDefaultIndexList(formatted);
|
|
9913
|
-
return formatted;
|
|
9914
|
-
};
|
|
9915
|
-
const getCascadeData = (listData, defaultIndex) => {
|
|
9916
|
-
var _a;
|
|
9917
|
-
let arr = listData;
|
|
9918
|
-
arr.defaultIndex = defaultIndex;
|
|
9919
|
-
const dataList = [];
|
|
9920
|
-
while (arr) {
|
|
9921
|
-
const item = arr[(_a = arr.defaultIndex) != null ? _a : 0];
|
|
9922
|
-
dataList.push(item.text);
|
|
9923
|
-
arr = item.children;
|
|
9924
|
-
}
|
|
9925
|
-
return dataList;
|
|
9926
|
-
};
|
|
9927
|
-
const close = () => {
|
|
9928
|
-
emit("close");
|
|
9929
|
-
emit("update:visible", false);
|
|
9930
|
-
};
|
|
9931
|
-
const changeHandler = (columnIndex, dataIndex) => {
|
|
9932
|
-
if (dataType.value === "cascade") {
|
|
9933
|
-
let cursor = state.formattedColumns;
|
|
9934
|
-
if (columnIndex === 0) {
|
|
9935
|
-
state.defaultIndex = dataIndex;
|
|
9936
|
-
}
|
|
9937
|
-
let i = 0;
|
|
9938
|
-
while (cursor) {
|
|
9939
|
-
if (i === columnIndex) {
|
|
9940
|
-
cursor.defaultIndex = dataIndex;
|
|
9941
|
-
} else if (i > columnIndex) {
|
|
9942
|
-
cursor.defaultIndex = 0;
|
|
9943
|
-
}
|
|
9944
|
-
cursor = cursor[cursor.defaultIndex || 0].children;
|
|
9945
|
-
i++;
|
|
9946
|
-
}
|
|
9947
|
-
} else if (dataType.value === "text") {
|
|
9948
|
-
_defaultIndex = dataIndex;
|
|
9949
|
-
} else if (dataType.value === "multipleColumns") {
|
|
9950
|
-
defaultIndexList[columnIndex] = dataIndex;
|
|
9951
|
-
const val = defaultIndexList.map(
|
|
9952
|
-
(res, i) => toRaw(state.formattedColumns)[i].values[res]
|
|
9953
|
-
);
|
|
9954
|
-
emit("change", val, columnIndex, dataIndex);
|
|
9955
|
-
}
|
|
9956
|
-
};
|
|
9957
|
-
const confirm = () => {
|
|
9958
|
-
if (dataType.value === "text") {
|
|
9959
|
-
state.defaultIndex = _defaultIndex;
|
|
9960
|
-
emit("confirm", state.formattedColumns[_defaultIndex]);
|
|
9961
|
-
} else if (dataType.value === "multipleColumns") {
|
|
9962
|
-
for (let i = 0; i < defaultIndexList.length; i++) {
|
|
9963
|
-
state.formattedColumns[i].defaultIndex = defaultIndexList[i];
|
|
9964
|
-
}
|
|
9965
|
-
const checkedArr = toRaw(state.formattedColumns).map(
|
|
9966
|
-
(res) => res.values && res.values[res.defaultIndex]
|
|
9967
|
-
);
|
|
9968
|
-
emit("confirm", checkedArr);
|
|
9969
|
-
} else if (dataType.value === "cascade") {
|
|
9970
|
-
emit("confirm", getCascadeData(toRaw(state.formattedColumns), state.defaultIndex));
|
|
9971
|
-
}
|
|
9972
|
-
emit("update:visible", false);
|
|
9973
|
-
};
|
|
9974
|
-
onMounted(() => {
|
|
9975
|
-
if (props.visible)
|
|
9976
|
-
state.show = props.visible;
|
|
9532
|
+
const bodyStyle = computed(() => {
|
|
9533
|
+
return {
|
|
9534
|
+
textAlign: props.bodyAlign
|
|
9535
|
+
};
|
|
9977
9536
|
});
|
|
9978
|
-
|
|
9979
|
-
|
|
9980
|
-
|
|
9537
|
+
const errorMessageStyle = computed(() => {
|
|
9538
|
+
return {
|
|
9539
|
+
textAlign: props.errorMessageAlign
|
|
9540
|
+
};
|
|
9981
9541
|
});
|
|
9982
|
-
|
|
9983
|
-
|
|
9984
|
-
(val) => {
|
|
9985
|
-
state.show = val;
|
|
9986
|
-
}
|
|
9987
|
-
);
|
|
9988
|
-
watch(
|
|
9989
|
-
() => props.listData,
|
|
9990
|
-
(val) => {
|
|
9991
|
-
state.formattedColumns = val;
|
|
9992
|
-
}
|
|
9993
|
-
);
|
|
9994
|
-
return {
|
|
9995
|
-
classes,
|
|
9996
|
-
...toRefs(state),
|
|
9997
|
-
column,
|
|
9998
|
-
dataType,
|
|
9999
|
-
columnList,
|
|
10000
|
-
close,
|
|
10001
|
-
changeHandler,
|
|
10002
|
-
confirm
|
|
10003
|
-
};
|
|
9542
|
+
const getSlots = (name) => slots[name];
|
|
9543
|
+
return { parent, labelStyle, bodyStyle, errorMessageStyle, getSlots };
|
|
10004
9544
|
}
|
|
10005
9545
|
});
|
|
10006
|
-
const _hoisted_1$Q = { class: "nut-
|
|
10007
|
-
const _hoisted_2$F = { class: "nut-oldpicker__title" };
|
|
10008
|
-
const _hoisted_3$v = { class: "nut-oldpicker__column" };
|
|
10009
|
-
const _hoisted_4$p = /* @__PURE__ */ createElementVNode("view", { class: "nut-oldpicker__hairline" }, null, -1);
|
|
9546
|
+
const _hoisted_1$Q = { class: "nut-cell__value nut-form-item__body" };
|
|
10010
9547
|
function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10011
|
-
const
|
|
10012
|
-
|
|
10013
|
-
|
|
10014
|
-
|
|
10015
|
-
},
|
|
10016
|
-
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
|
|
10023
|
-
|
|
10024
|
-
round: true,
|
|
10025
|
-
isWrapTeleport: _ctx.isWrapTeleport
|
|
10026
|
-
}, {
|
|
10027
|
-
default: withCtx(() => [
|
|
10028
|
-
createElementVNode("view", _hoisted_1$Q, [
|
|
10029
|
-
createElementVNode("view", {
|
|
10030
|
-
class: "nut-oldpicker__cancel nut-oldpicker__left nut-oldpicker__button",
|
|
10031
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.close && _ctx.close(...args))
|
|
10032
|
-
}, toDisplayString(_ctx.cancelText), 1),
|
|
10033
|
-
createElementVNode("view", _hoisted_2$F, toDisplayString(_ctx.title), 1),
|
|
10034
|
-
createElementVNode("view", {
|
|
10035
|
-
class: "nut-oldpicker__confirm nut-oldpicker__button nut-oldpicker__right",
|
|
10036
|
-
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.confirm())
|
|
10037
|
-
}, toDisplayString(_ctx.okText), 1)
|
|
10038
|
-
]),
|
|
10039
|
-
createElementVNode("view", _hoisted_3$v, [
|
|
10040
|
-
_hoisted_4$p,
|
|
10041
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columnList, (item, columnIndex) => {
|
|
10042
|
-
return openBlock(), createElementBlock("view", {
|
|
10043
|
-
class: "nut-oldpicker__columnitem",
|
|
10044
|
-
key: columnIndex
|
|
10045
|
-
}, [
|
|
10046
|
-
createVNode(_component_nut_oldpicker_column, {
|
|
10047
|
-
itemShow: _ctx.show,
|
|
10048
|
-
"list-data": item,
|
|
10049
|
-
readonly: _ctx.readonly,
|
|
10050
|
-
"default-index": item.defaultIndex,
|
|
10051
|
-
"data-type": _ctx.dataType,
|
|
10052
|
-
onChange: (dataIndex) => {
|
|
10053
|
-
_ctx.changeHandler(columnIndex, dataIndex);
|
|
10054
|
-
}
|
|
10055
|
-
}, null, 8, ["itemShow", "list-data", "readonly", "default-index", "data-type", "onChange"])
|
|
10056
|
-
]);
|
|
10057
|
-
}), 128))
|
|
9548
|
+
const _component_nut_cell = resolveComponent("nut-cell");
|
|
9549
|
+
return openBlock(), createBlock(_component_nut_cell, {
|
|
9550
|
+
class: normalizeClass(["nut-form-item", [{ error: _ctx.parent[_ctx.prop], line: _ctx.showErrorLine }, _ctx.$attrs.class]]),
|
|
9551
|
+
style: normalizeStyle(_ctx.$attrs.style)
|
|
9552
|
+
}, {
|
|
9553
|
+
default: withCtx(() => [
|
|
9554
|
+
_ctx.label || _ctx.getSlots("label") ? (openBlock(), createElementBlock("view", {
|
|
9555
|
+
key: 0,
|
|
9556
|
+
class: normalizeClass(["nut-cell__title nut-form-item__label", { required: _ctx.required }]),
|
|
9557
|
+
style: normalizeStyle(_ctx.labelStyle)
|
|
9558
|
+
}, [
|
|
9559
|
+
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
9560
|
+
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
10058
9561
|
])
|
|
10059
|
-
]),
|
|
10060
|
-
|
|
10061
|
-
|
|
10062
|
-
|
|
9562
|
+
], 6)) : createCommentVNode("", true),
|
|
9563
|
+
createElementVNode("view", _hoisted_1$Q, [
|
|
9564
|
+
createElementVNode("view", {
|
|
9565
|
+
class: "nut-form-item__body__slots",
|
|
9566
|
+
style: normalizeStyle(_ctx.bodyStyle)
|
|
9567
|
+
}, [
|
|
9568
|
+
renderSlot(_ctx.$slots, "default")
|
|
9569
|
+
], 4),
|
|
9570
|
+
_ctx.parent[_ctx.prop] && _ctx.showErrorMessage ? (openBlock(), createElementBlock("view", {
|
|
9571
|
+
key: 0,
|
|
9572
|
+
class: "nut-form-item__body__tips",
|
|
9573
|
+
style: normalizeStyle(_ctx.errorMessageStyle)
|
|
9574
|
+
}, toDisplayString(_ctx.parent[_ctx.prop]), 5)) : createCommentVNode("", true)
|
|
9575
|
+
])
|
|
9576
|
+
]),
|
|
9577
|
+
_: 3
|
|
9578
|
+
}, 8, ["class", "style"]);
|
|
10063
9579
|
}
|
|
10064
|
-
var
|
|
9580
|
+
var FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$10]]);
|
|
10065
9581
|
const { componentName: componentName$R, create: create$10 } = createComponent("swipe");
|
|
10066
9582
|
const _sfc_main$10 = create$10({
|
|
10067
9583
|
props: {
|
|
@@ -10330,11 +9846,11 @@ const _hoisted_4$o = {
|
|
|
10330
9846
|
key: 0,
|
|
10331
9847
|
class: "nut-actionsheet-item desc"
|
|
10332
9848
|
};
|
|
10333
|
-
const _hoisted_5$
|
|
9849
|
+
const _hoisted_5$g = {
|
|
10334
9850
|
key: 1,
|
|
10335
9851
|
class: "nut-actionsheet-menu"
|
|
10336
9852
|
};
|
|
10337
|
-
const _hoisted_6$
|
|
9853
|
+
const _hoisted_6$f = ["onClick"];
|
|
10338
9854
|
const _hoisted_7$d = { key: 1 };
|
|
10339
9855
|
const _hoisted_8$8 = { class: "subdesc" };
|
|
10340
9856
|
function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -10358,7 +9874,7 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10358
9874
|
renderSlot(_ctx.$slots, "default"),
|
|
10359
9875
|
!_ctx.slotDefault ? (openBlock(), createElementBlock("view", _hoisted_3$t, [
|
|
10360
9876
|
_ctx.description ? (openBlock(), createElementBlock("view", _hoisted_4$o, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
|
|
10361
|
-
_ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_5$
|
|
9877
|
+
_ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_5$g, [
|
|
10362
9878
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index) => {
|
|
10363
9879
|
return openBlock(), createElementBlock("view", {
|
|
10364
9880
|
class: normalizeClass(["nut-actionsheet-item", { "nut-actionsheet-item-disabled": item.disable, "nut-actionsheet-item-loading": item.loading }]),
|
|
@@ -10371,7 +9887,7 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10371
9887
|
name: "loading"
|
|
10372
9888
|
})) : (openBlock(), createElementBlock("view", _hoisted_7$d, toDisplayString(item[_ctx.optionTag]), 1)),
|
|
10373
9889
|
createElementVNode("view", _hoisted_8$8, toDisplayString(item[_ctx.optionSubTag]), 1)
|
|
10374
|
-
], 14, _hoisted_6$
|
|
9890
|
+
], 14, _hoisted_6$f);
|
|
10375
9891
|
}), 128))
|
|
10376
9892
|
])) : createCommentVNode("", true),
|
|
10377
9893
|
_ctx.cancelTxt ? (openBlock(), createElementBlock("view", {
|
|
@@ -11077,6 +10593,7 @@ const _sfc_main$X = create$X({
|
|
|
11077
10593
|
},
|
|
11078
10594
|
emits: ["scroll-change", "load-more", "refresh"],
|
|
11079
10595
|
setup(props, { emit, slots }) {
|
|
10596
|
+
const touch = useTouch$2();
|
|
11080
10597
|
const state = reactive({
|
|
11081
10598
|
scrollEl: window,
|
|
11082
10599
|
scroller: null,
|
|
@@ -11157,6 +10674,7 @@ const _sfc_main$X = create$X({
|
|
|
11157
10674
|
state.isTouching = false;
|
|
11158
10675
|
};
|
|
11159
10676
|
const touchStart = (event) => {
|
|
10677
|
+
touch.start(event);
|
|
11160
10678
|
if (state.beforeScrollTop == 0 && !state.isTouching && props.isOpenRefresh) {
|
|
11161
10679
|
state.y = event.touches[0].pageY;
|
|
11162
10680
|
state.isTouching = true;
|
|
@@ -11165,8 +10683,9 @@ const _sfc_main$X = create$X({
|
|
|
11165
10683
|
}
|
|
11166
10684
|
};
|
|
11167
10685
|
const touchMove = (event) => {
|
|
10686
|
+
touch.move(event);
|
|
11168
10687
|
state.distance = event.touches[0].pageY - state.y;
|
|
11169
|
-
if (state.distance > 0 && state.isTouching) {
|
|
10688
|
+
if (touch.isVertical() && state.distance > 0 && state.isTouching) {
|
|
11170
10689
|
event.preventDefault();
|
|
11171
10690
|
if (state.distance >= state.refreshMaxH)
|
|
11172
10691
|
state.distance = state.refreshMaxH;
|
|
@@ -11183,6 +10702,9 @@ const _sfc_main$X = create$X({
|
|
|
11183
10702
|
emit("refresh", refreshDone);
|
|
11184
10703
|
}
|
|
11185
10704
|
}
|
|
10705
|
+
setTimeout(() => {
|
|
10706
|
+
touch.reset();
|
|
10707
|
+
}, 0);
|
|
11186
10708
|
};
|
|
11187
10709
|
const getParentElement = (el) => {
|
|
11188
10710
|
return !!props.containerId ? document.querySelector(`#${props.containerId}`) : el && el.parentNode;
|
|
@@ -11223,11 +10745,11 @@ const _hoisted_1$M = { class: "top-box" };
|
|
|
11223
10745
|
const _hoisted_2$B = { class: "top-text" };
|
|
11224
10746
|
const _hoisted_3$s = { class: "nut-infinite-container" };
|
|
11225
10747
|
const _hoisted_4$n = { class: "nut-infinite-bottom" };
|
|
11226
|
-
const _hoisted_5$
|
|
10748
|
+
const _hoisted_5$f = {
|
|
11227
10749
|
key: 0,
|
|
11228
10750
|
class: "bottom-box"
|
|
11229
10751
|
};
|
|
11230
|
-
const _hoisted_6$
|
|
10752
|
+
const _hoisted_6$e = { class: "bottom-text" };
|
|
11231
10753
|
const _hoisted_7$c = {
|
|
11232
10754
|
key: 0,
|
|
11233
10755
|
class: "tips"
|
|
@@ -11255,10 +10777,10 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11255
10777
|
renderSlot(_ctx.$slots, "default")
|
|
11256
10778
|
]),
|
|
11257
10779
|
createElementVNode("view", _hoisted_4$n, [
|
|
11258
|
-
_ctx.isInfiniting ? (openBlock(), createElementBlock("view", _hoisted_5$
|
|
10780
|
+
_ctx.isInfiniting ? (openBlock(), createElementBlock("view", _hoisted_5$f, [
|
|
11259
10781
|
!_ctx.slots.loading ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
11260
10782
|
createVNode(_component_nut_icon, mergeProps({ class: "bottom-img" }, _ctx.$attrs, { name: _ctx.loadIcon }), null, 16, ["name"]),
|
|
11261
|
-
createElementVNode("view", _hoisted_6$
|
|
10783
|
+
createElementVNode("view", _hoisted_6$e, toDisplayString(_ctx.loadTxt || _ctx.translate("loading")), 1)
|
|
11262
10784
|
], 64)) : renderSlot(_ctx.$slots, "loading", { key: 1 })
|
|
11263
10785
|
])) : !_ctx.hasMore ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
11264
10786
|
!_ctx.slots.finished ? (openBlock(), createElementBlock("view", _hoisted_7$c, toDisplayString(_ctx.loadMoreTxt || _ctx.translate("loadMoreTxt")), 1)) : renderSlot(_ctx.$slots, "finished", { key: 1 })
|
|
@@ -11942,7 +11464,7 @@ var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$T]
|
|
|
11942
11464
|
const { create: create$T } = createComponent("toast");
|
|
11943
11465
|
const _sfc_main$T = create$T({
|
|
11944
11466
|
components: {
|
|
11945
|
-
[_sfc_main$
|
|
11467
|
+
[_sfc_main$1P.name]: _sfc_main$1P
|
|
11946
11468
|
},
|
|
11947
11469
|
props: {
|
|
11948
11470
|
id: String,
|
|
@@ -12420,8 +11942,8 @@ const _hoisted_2$z = {
|
|
|
12420
11942
|
};
|
|
12421
11943
|
const _hoisted_3$r = { class: "time" };
|
|
12422
11944
|
const _hoisted_4$m = { class: "progress-bar-wrapper" };
|
|
12423
|
-
const _hoisted_5$
|
|
12424
|
-
const _hoisted_6$
|
|
11945
|
+
const _hoisted_5$e = /* @__PURE__ */ createElementVNode("div", { class: "custom-button" }, null, -1);
|
|
11946
|
+
const _hoisted_6$d = { class: "time" };
|
|
12425
11947
|
const _hoisted_7$b = {
|
|
12426
11948
|
key: 1,
|
|
12427
11949
|
class: "nut-audio-icon"
|
|
@@ -12443,12 +11965,12 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12443
11965
|
"active-color": "#fa2c19"
|
|
12444
11966
|
}, {
|
|
12445
11967
|
button: withCtx(() => [
|
|
12446
|
-
_hoisted_5$
|
|
11968
|
+
_hoisted_5$e
|
|
12447
11969
|
]),
|
|
12448
11970
|
_: 1
|
|
12449
11971
|
}, 8, ["modelValue", "onChange"])
|
|
12450
11972
|
]),
|
|
12451
|
-
createElementVNode("div", _hoisted_6$
|
|
11973
|
+
createElementVNode("div", _hoisted_6$d, toDisplayString(_ctx.duration), 1)
|
|
12452
11974
|
])) : createCommentVNode("", true),
|
|
12453
11975
|
_ctx.type == "icon" ? (openBlock(), createElementBlock("div", _hoisted_7$b, [
|
|
12454
11976
|
createElementVNode("div", {
|
|
@@ -13151,8 +12673,8 @@ const _hoisted_1$E = { viewBox: "0 0 100 100" };
|
|
|
13151
12673
|
const _hoisted_2$x = ["id"];
|
|
13152
12674
|
const _hoisted_3$p = ["offset", "stop-color"];
|
|
13153
12675
|
const _hoisted_4$l = ["d", "stroke-width"];
|
|
13154
|
-
const _hoisted_5$
|
|
13155
|
-
const _hoisted_6$
|
|
12676
|
+
const _hoisted_5$d = ["d", "stroke", "stroke-linecap", "stroke-width"];
|
|
12677
|
+
const _hoisted_6$c = { class: "nut-circleprogress-text" };
|
|
13156
12678
|
const _hoisted_7$a = { key: 0 };
|
|
13157
12679
|
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13158
12680
|
return openBlock(), createElementBlock("div", {
|
|
@@ -13192,9 +12714,9 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13192
12714
|
stroke: _ctx.hoverColor,
|
|
13193
12715
|
"stroke-linecap": _ctx.strokeLinecap,
|
|
13194
12716
|
"stroke-width": _ctx.strokeWidth
|
|
13195
|
-
}, null, 12, _hoisted_5$
|
|
12717
|
+
}, null, 12, _hoisted_5$d)
|
|
13196
12718
|
])),
|
|
13197
|
-
createElementVNode("div", _hoisted_6$
|
|
12719
|
+
createElementVNode("div", _hoisted_6$c, [
|
|
13198
12720
|
renderSlot(_ctx.$slots, "default"),
|
|
13199
12721
|
!_ctx.slotDefault ? (openBlock(), createElementBlock("div", _hoisted_7$a, toDisplayString(_ctx.progress) + "%", 1)) : createCommentVNode("", true)
|
|
13200
12722
|
])
|
|
@@ -13744,7 +13266,8 @@ const _sfc_main$J = create$J({
|
|
|
13744
13266
|
state.videoElm.load();
|
|
13745
13267
|
});
|
|
13746
13268
|
}
|
|
13747
|
-
}
|
|
13269
|
+
},
|
|
13270
|
+
{ immediate: true, deep: true }
|
|
13748
13271
|
);
|
|
13749
13272
|
watch(
|
|
13750
13273
|
() => props.options,
|
|
@@ -13935,8 +13458,8 @@ const _hoisted_1$B = {
|
|
|
13935
13458
|
const _hoisted_2$u = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
|
|
13936
13459
|
const _hoisted_3$n = ["src", "type"];
|
|
13937
13460
|
const _hoisted_4$k = { class: "current-time" };
|
|
13938
|
-
const _hoisted_5$
|
|
13939
|
-
const _hoisted_6$
|
|
13461
|
+
const _hoisted_5$c = { class: "progress-container" };
|
|
13462
|
+
const _hoisted_6$b = {
|
|
13940
13463
|
class: "progress",
|
|
13941
13464
|
ref: "progressBar"
|
|
13942
13465
|
};
|
|
@@ -13991,8 +13514,8 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13991
13514
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.play && _ctx.play(...args))
|
|
13992
13515
|
}),
|
|
13993
13516
|
createElementVNode("div", _hoisted_4$k, toDisplayString(_ctx.videoSet.displayTime), 1),
|
|
13994
|
-
createElementVNode("div", _hoisted_5$
|
|
13995
|
-
createElementVNode("div", _hoisted_6$
|
|
13517
|
+
createElementVNode("div", _hoisted_5$c, [
|
|
13518
|
+
createElementVNode("div", _hoisted_6$b, [
|
|
13996
13519
|
createElementVNode("div", {
|
|
13997
13520
|
class: "buffered",
|
|
13998
13521
|
style: normalizeStyle({ width: `${_ctx.videoSet.loaded}%` })
|
|
@@ -14153,8 +13676,8 @@ const _hoisted_3$m = {
|
|
|
14153
13676
|
class: "nut-step-inner"
|
|
14154
13677
|
};
|
|
14155
13678
|
const _hoisted_4$j = { class: "nut-step-main" };
|
|
14156
|
-
const _hoisted_5$
|
|
14157
|
-
const _hoisted_6$
|
|
13679
|
+
const _hoisted_5$b = { class: "nut-step-title" };
|
|
13680
|
+
const _hoisted_6$a = { key: 0 };
|
|
14158
13681
|
const _hoisted_7$8 = {
|
|
14159
13682
|
key: 0,
|
|
14160
13683
|
class: "nut-step-content"
|
|
@@ -14182,8 +13705,8 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14182
13705
|
], 2)
|
|
14183
13706
|
]),
|
|
14184
13707
|
createElementVNode("view", _hoisted_4$j, [
|
|
14185
|
-
createElementVNode("view", _hoisted_5$
|
|
14186
|
-
!_ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
13708
|
+
createElementVNode("view", _hoisted_5$b, [
|
|
13709
|
+
!_ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_6$a, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
14187
13710
|
renderSlot(_ctx.$slots, "title")
|
|
14188
13711
|
]),
|
|
14189
13712
|
_ctx.content || _ctx.$slots.content ? (openBlock(), createElementBlock("view", _hoisted_7$8, [
|
|
@@ -14858,7 +14381,7 @@ const _sfc_main$D = create$D({
|
|
|
14858
14381
|
[Video.name]: Video,
|
|
14859
14382
|
[Swiper.name]: Swiper,
|
|
14860
14383
|
[SwiperItem.name]: SwiperItem,
|
|
14861
|
-
[_sfc_main$
|
|
14384
|
+
[_sfc_main$1P.name]: _sfc_main$1P
|
|
14862
14385
|
},
|
|
14863
14386
|
setup(props, { emit }) {
|
|
14864
14387
|
const state = reactive({
|
|
@@ -15175,7 +14698,7 @@ const _sfc_main$C = create$C({
|
|
|
15175
14698
|
[Video.name]: Video,
|
|
15176
14699
|
[Swiper.name]: Swiper,
|
|
15177
14700
|
[SwiperItem.name]: SwiperItem,
|
|
15178
|
-
[_sfc_main$
|
|
14701
|
+
[_sfc_main$1P.name]: _sfc_main$1P,
|
|
15179
14702
|
ImagePreviewItem
|
|
15180
14703
|
},
|
|
15181
14704
|
setup(props, { emit }) {
|
|
@@ -15183,7 +14706,6 @@ const _sfc_main$C = create$C({
|
|
|
15183
14706
|
const state = reactive({
|
|
15184
14707
|
showPop: false,
|
|
15185
14708
|
active: 1,
|
|
15186
|
-
maxNo: 1,
|
|
15187
14709
|
rootWidth: 0,
|
|
15188
14710
|
rootHeight: 0
|
|
15189
14711
|
});
|
|
@@ -15218,7 +14740,6 @@ const _sfc_main$C = create$C({
|
|
|
15218
14740
|
};
|
|
15219
14741
|
const closeDone = () => {
|
|
15220
14742
|
state.showPop = false;
|
|
15221
|
-
state.active = 1;
|
|
15222
14743
|
emit("close");
|
|
15223
14744
|
};
|
|
15224
14745
|
const handleCloseIcon = () => {
|
|
@@ -15237,14 +14758,27 @@ const _sfc_main$C = create$C({
|
|
|
15237
14758
|
init();
|
|
15238
14759
|
}
|
|
15239
14760
|
);
|
|
14761
|
+
watch(
|
|
14762
|
+
() => props.initNo,
|
|
14763
|
+
(val) => {
|
|
14764
|
+
if (val != state.active) {
|
|
14765
|
+
state.active = val;
|
|
14766
|
+
}
|
|
14767
|
+
}
|
|
14768
|
+
);
|
|
14769
|
+
const initPage = computed(() => {
|
|
14770
|
+
const maxNo = props.images.length + props.videos.length;
|
|
14771
|
+
const _initPage = props.initNo > maxNo ? maxNo - 1 : props.initNo - 1;
|
|
14772
|
+
return _initPage >= 0 ? _initPage : 0;
|
|
14773
|
+
});
|
|
15240
14774
|
onMounted(() => {
|
|
15241
14775
|
state.active = props.initNo;
|
|
15242
14776
|
state.showPop = props.show;
|
|
15243
|
-
state.maxNo = props.images.length + props.videos.length;
|
|
15244
14777
|
});
|
|
15245
14778
|
return {
|
|
15246
14779
|
swipeRef,
|
|
15247
14780
|
...toRefs(state),
|
|
14781
|
+
initPage,
|
|
15248
14782
|
slideChangeEnd,
|
|
15249
14783
|
onClose,
|
|
15250
14784
|
handleCloseIcon,
|
|
@@ -15284,7 +14818,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15284
14818
|
"is-preventDefault": false,
|
|
15285
14819
|
direction: "horizontal",
|
|
15286
14820
|
onChange: _ctx.slideChangeEnd,
|
|
15287
|
-
"init-page": _ctx.
|
|
14821
|
+
"init-page": _ctx.initPage,
|
|
15288
14822
|
"pagination-visible": _ctx.paginationVisible,
|
|
15289
14823
|
"pagination-color": _ctx.paginationColor
|
|
15290
14824
|
}, {
|
|
@@ -17397,13 +16931,12 @@ const component$1 = {
|
|
|
17397
16931
|
[`${prefixCls}--${avatarShape.value}`]: avatarShape.value
|
|
17398
16932
|
};
|
|
17399
16933
|
});
|
|
17400
|
-
const
|
|
17401
|
-
const prefixCls = "blockClass";
|
|
16934
|
+
const getBlockClass = (prefixCls) => {
|
|
17402
16935
|
return {
|
|
17403
16936
|
[prefixCls]: true,
|
|
17404
16937
|
[`${prefixCls}--round`]: round2.value
|
|
17405
16938
|
};
|
|
17406
|
-
}
|
|
16939
|
+
};
|
|
17407
16940
|
const getStyle = () => {
|
|
17408
16941
|
if (avatarSize.value) {
|
|
17409
16942
|
return {
|
|
@@ -17421,7 +16954,7 @@ const component$1 = {
|
|
|
17421
16954
|
return {
|
|
17422
16955
|
avatarShape,
|
|
17423
16956
|
avatarClass,
|
|
17424
|
-
|
|
16957
|
+
getBlockClass,
|
|
17425
16958
|
getStyle
|
|
17426
16959
|
};
|
|
17427
16960
|
}
|
|
@@ -17438,11 +16971,6 @@ const _hoisted_3$l = {
|
|
|
17438
16971
|
class: "skeleton-animation"
|
|
17439
16972
|
};
|
|
17440
16973
|
const _hoisted_4$i = { class: "content" };
|
|
17441
|
-
const _hoisted_5$b = { class: "content-line" };
|
|
17442
|
-
const _hoisted_6$a = {
|
|
17443
|
-
key: 0,
|
|
17444
|
-
class: "title"
|
|
17445
|
-
};
|
|
17446
16974
|
function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17447
16975
|
const _component_nut_avatar = resolveComponent("nut-avatar");
|
|
17448
16976
|
return !_ctx.loading ? (openBlock(), createElementBlock("view", _hoisted_1$s, [
|
|
@@ -17454,24 +16982,25 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17454
16982
|
key: 0,
|
|
17455
16983
|
class: normalizeClass(_ctx.avatarClass),
|
|
17456
16984
|
shape: _ctx.avatarShape,
|
|
17457
|
-
style: normalizeStyle(_ctx.getStyle())
|
|
17458
|
-
"bg-color": "rgb(239, 239, 239)"
|
|
16985
|
+
style: normalizeStyle(_ctx.getStyle())
|
|
17459
16986
|
}, null, 8, ["class", "shape", "style"])) : createCommentVNode("", true),
|
|
17460
|
-
|
|
17461
|
-
|
|
17462
|
-
|
|
17463
|
-
|
|
17464
|
-
|
|
17465
|
-
|
|
17466
|
-
|
|
17467
|
-
|
|
16987
|
+
createElementVNode("view", {
|
|
16988
|
+
class: "content-line",
|
|
16989
|
+
style: normalizeStyle({ width: _ctx.width })
|
|
16990
|
+
}, [
|
|
16991
|
+
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
16992
|
+
key: 0,
|
|
16993
|
+
class: normalizeClass(_ctx.getBlockClass("blockTitle")),
|
|
16994
|
+
style: normalizeStyle({ height: _ctx.height })
|
|
16995
|
+
}, null, 6)) : createCommentVNode("", true),
|
|
16996
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(Number(_ctx.row), (_) => {
|
|
17468
16997
|
return openBlock(), createElementBlock("view", {
|
|
17469
|
-
key:
|
|
17470
|
-
class: normalizeClass(_ctx.
|
|
17471
|
-
style: normalizeStyle({
|
|
16998
|
+
key: _,
|
|
16999
|
+
class: normalizeClass(_ctx.getBlockClass("blockLine")),
|
|
17000
|
+
style: normalizeStyle({ height: _ctx.height })
|
|
17472
17001
|
}, null, 6);
|
|
17473
17002
|
}), 128))
|
|
17474
|
-
])
|
|
17003
|
+
], 4)
|
|
17475
17004
|
])
|
|
17476
17005
|
]));
|
|
17477
17006
|
}
|
|
@@ -17709,17 +17238,6 @@ const _sfc_main$u = create$u({
|
|
|
17709
17238
|
proxyData.openExpanded = true;
|
|
17710
17239
|
}
|
|
17711
17240
|
});
|
|
17712
|
-
watch(
|
|
17713
|
-
() => {
|
|
17714
|
-
var _a, _b;
|
|
17715
|
-
return (_b = (_a = ctx == null ? void 0 : ctx.slots) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a);
|
|
17716
|
-
},
|
|
17717
|
-
() => {
|
|
17718
|
-
setTimeout(() => {
|
|
17719
|
-
animation();
|
|
17720
|
-
}, 300);
|
|
17721
|
-
}
|
|
17722
|
-
);
|
|
17723
17241
|
const init = () => {
|
|
17724
17242
|
const { name } = props;
|
|
17725
17243
|
const active = parent && parent.props.active;
|
|
@@ -17737,6 +17255,14 @@ const _sfc_main$u = create$u({
|
|
|
17737
17255
|
});
|
|
17738
17256
|
};
|
|
17739
17257
|
onMounted(() => {
|
|
17258
|
+
const MutationObserver2 = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
|
|
17259
|
+
var observer = new MutationObserver2(() => {
|
|
17260
|
+
animation();
|
|
17261
|
+
});
|
|
17262
|
+
observer.observe(document.getElementsByClassName("collapse-wrapper")[0], {
|
|
17263
|
+
childList: true,
|
|
17264
|
+
subtree: true
|
|
17265
|
+
});
|
|
17740
17266
|
init();
|
|
17741
17267
|
});
|
|
17742
17268
|
const emptyContent = computed(() => {
|
|
@@ -18271,13 +17797,13 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18271
17797
|
}, [
|
|
18272
17798
|
!_ctx.exceeded ? (openBlock(), createElementBlock("view", _hoisted_1$n, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true),
|
|
18273
17799
|
_ctx.exceeded && !_ctx.expanded ? (openBlock(), createElementBlock("view", _hoisted_2$k, [
|
|
18274
|
-
createTextVNode(toDisplayString(_ctx.ellipsis.leading)
|
|
17800
|
+
createTextVNode(toDisplayString(_ctx.ellipsis.leading), 1),
|
|
18275
17801
|
_ctx.expandText ? (openBlock(), createElementBlock("span", {
|
|
18276
17802
|
key: 0,
|
|
18277
17803
|
class: "nut-ellipsis-text",
|
|
18278
17804
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.clickHandle(1), ["stop"]))
|
|
18279
17805
|
}, toDisplayString(_ctx.expandText), 1)) : createCommentVNode("", true),
|
|
18280
|
-
createTextVNode(
|
|
17806
|
+
createTextVNode(toDisplayString(_ctx.ellipsis.tailing), 1)
|
|
18281
17807
|
])) : createCommentVNode("", true),
|
|
18282
17808
|
_ctx.exceeded && _ctx.expanded ? (openBlock(), createElementBlock("view", _hoisted_3$i, [
|
|
18283
17809
|
createTextVNode(toDisplayString(_ctx.content) + " ", 1),
|
|
@@ -21832,7 +21358,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21832
21358
|
}
|
|
21833
21359
|
var Invoice = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
21834
21360
|
function install(app) {
|
|
21835
|
-
const packages = [Button, Cell, CellGroup, _sfc_main$
|
|
21361
|
+
const packages = [Button, Cell, CellGroup, _sfc_main$1P, OverLay, Popup, _sfc_main$1J, Image$1, _sfc_main$1H, Col, Row, _sfc_main$1E, Divider, _sfc_main$1C, GridItem, Navbar, FixedNav, Menu, MenuItem, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SideNavBarItem, SubSideNavBar, Range, SearchBar, Cascader, Calendar, _sfc_main$1g, _sfc_main$1f, DatePicker, InputNumber, Input, _sfc_main$19, _sfc_main$18, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, NumberKeyboard, Form, FormItem, Swipe, ActionSheet, BackTop, Drag, _Dialog, InfiniteLoading, NotifyFunction, PullRefresh, Switch, ToastFunction, Audio, AudioOperate, Avatar, AvatarGroup, List, Progress, CircleProgress, NoticeBar, Empty, Video, _sfc_main$I, Step, Swiper, SwiperItem, Price, _ImagePreview, CountUp, CountDown, Badge, Tag, Popover, Skeleton, Collapse, CollapseItem, Table, Animate, Ellipsis, WaterMark, TrendArrow, Address, Barrage, Signature, TimeSelect, TimePannel, TimeDetail, Sku, Card, Ecard, AddressList, Category, CategoryPane, Comment, Invoice];
|
|
21836
21362
|
packages.forEach((item) => {
|
|
21837
21363
|
if (item.install) {
|
|
21838
21364
|
app.use(item);
|
|
@@ -21841,6 +21367,6 @@ function install(app) {
|
|
|
21841
21367
|
}
|
|
21842
21368
|
});
|
|
21843
21369
|
}
|
|
21844
|
-
const version = "3.2.
|
|
21370
|
+
const version = "3.2.7";
|
|
21845
21371
|
var nutui_vue_build = { install, version, Locale };
|
|
21846
|
-
export { ActionSheet, Address, AddressList, Animate, Audio, AudioOperate, Avatar, AvatarGroup, BackTop, Badge, Barrage, Button, Calendar, CalendarItem, Card, Cascader, Category, CategoryPane, Cell, CellGroup, _sfc_main$
|
|
21372
|
+
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, Invoice, _sfc_main$1H as Layout, List, Locale, Menu, MenuItem, Navbar, NoticeBar, NotifyFunction as Notify, NumberKeyboard, 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$I 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, TrendArrow, Uploader, Video, WaterMark, nutui_vue_build as default, install, version };
|