@nutui/nutui 3.2.5 → 3.2.6-beta.2
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 +12 -0
- package/README.md +18 -4
- package/dist/nutui.es.js +305 -209
- package/dist/nutui.umd.js +305 -209
- 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 +10 -6
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +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 +1 -1
- 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 +1 -1
- package/dist/packages/_es/Ellipsis.js +1 -1
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +1 -1
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +1 -1
- package/dist/packages/_es/ImagePreview.js +35 -19
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +8 -4
- 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 +1 -1
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +5 -3
- package/dist/packages/_es/Notify.js +25 -36
- package/dist/packages/_es/NumberKeyboard.js +1 -1
- package/dist/packages/_es/OldPicker.js +1 -1
- package/dist/packages/_es/OverLay.js +1 -1
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +13 -6
- package/dist/packages/_es/Popover.js +1 -1
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Radio.js +1 -1
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +1 -1
- package/dist/packages/_es/Rate.js +1 -1
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/SideNavBar.js +1 -1
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +1 -1
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +1 -1
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +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 +34 -5
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +1 -1
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +1 -1
- package/dist/packages/_es/TrendArrow.js +1 -1
- package/dist/packages/_es/Uploader.js +1 -1
- package/dist/packages/_es/Video.js +48 -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 +1 -1
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/checkbox/index.scss +1 -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 +12 -3
- package/dist/packages/signature/index.scss +4 -1
- package/dist/packages/swiperitem/index.scss +1 -1
- package/dist/smartips/attributes.json +9 -1
- package/dist/smartips/tags.json +3 -1
- package/dist/smartips/web-types.json +20 -2
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +53 -53
- package/dist/styles/themes/jdb.scss +53 -53
- package/dist/styles/themes/jddkh.scss +53 -53
- package/dist/styles/themes/jdt.scss +53 -53
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +2 -2
- package/dist/types/__VUE/address/index.vue.d.ts +2 -2
- package/dist/types/__VUE/avatar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
- package/dist/types/__VUE/badge/index.vue.d.ts +1 -1
- package/dist/types/__VUE/button/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cascader/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +3 -3
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
- package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
- package/dist/types/__VUE/divider/index.vue.d.ts +1 -1
- package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
- package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
- package/dist/types/__VUE/image/index.vue.d.ts +4 -4
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -0
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +10 -1
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +4 -4
- package/dist/types/__VUE/input/index.vue.d.ts +3 -3
- package/dist/types/__VUE/menu/index.vue.d.ts +1 -1
- package/dist/types/__VUE/navbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -3
- package/dist/types/__VUE/notify/index.vue.d.ts +8 -10
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +2 -2
- package/dist/types/__VUE/picker/index.vue.d.ts +2 -2
- package/dist/types/__VUE/popover/index.vue.d.ts +4 -4
- package/dist/types/__VUE/popup/index.vue.d.ts +3 -3
- package/dist/types/__VUE/range/index.vue.d.ts +1 -1
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +2 -2
- package/dist/types/__VUE/step/index.vue.d.ts +1 -1
- package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbar/index.vue.d.ts +11 -0
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/toast/index.vue.d.ts +1 -1
- package/dist/types/__VUE/uploader/index.vue.d.ts +1 -1
- package/dist/types/__VUE/video/index.vue.d.ts +4 -2
- package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +3 -2
package/dist/nutui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:15 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -534,11 +534,11 @@ const _hoisted_1$1k = {
|
|
|
534
534
|
key: 0,
|
|
535
535
|
class: "nut-cell__icon"
|
|
536
536
|
};
|
|
537
|
-
const _hoisted_2$
|
|
537
|
+
const _hoisted_2$13 = {
|
|
538
538
|
key: 1,
|
|
539
539
|
class: "nut-cell__title"
|
|
540
540
|
};
|
|
541
|
-
const _hoisted_3$
|
|
541
|
+
const _hoisted_3$O = { class: "title" };
|
|
542
542
|
const _hoisted_4$E = { 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");
|
|
@@ -556,10 +556,10 @@ 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$13, [
|
|
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$O, toDisplayString(_ctx.title), 1)
|
|
563
563
|
]),
|
|
564
564
|
createElementVNode("view", _hoisted_4$E, toDisplayString(_ctx.subTitle), 1)
|
|
565
565
|
], 64)) : renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
|
|
@@ -652,18 +652,18 @@ const _hoisted_1$1j = {
|
|
|
652
652
|
key: 1,
|
|
653
653
|
class: "nut-cell-group__title"
|
|
654
654
|
};
|
|
655
|
-
const _hoisted_2$
|
|
655
|
+
const _hoisted_2$12 = {
|
|
656
656
|
key: 3,
|
|
657
657
|
class: "nut-cell-group__desc"
|
|
658
658
|
};
|
|
659
|
-
const _hoisted_3$
|
|
659
|
+
const _hoisted_3$N = { class: "nut-cell-group__warp" };
|
|
660
660
|
function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
661
661
|
return openBlock(), createElementBlock("view", {
|
|
662
662
|
class: normalizeClass(_ctx.classes)
|
|
663
663
|
}, [
|
|
664
664
|
_ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$1j, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
665
|
-
_ctx.$slots.desc ? renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
666
|
-
createElementVNode("view", _hoisted_3$
|
|
665
|
+
_ctx.$slots.desc ? renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_2$12, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
666
|
+
createElementVNode("view", _hoisted_3$N, [
|
|
667
667
|
renderSlot(_ctx.$slots, "default")
|
|
668
668
|
])
|
|
669
669
|
], 2);
|
|
@@ -1178,11 +1178,11 @@ const _sfc_main$1K = create$1K({
|
|
|
1178
1178
|
}
|
|
1179
1179
|
});
|
|
1180
1180
|
const _hoisted_1$1h = ["src", "alt"];
|
|
1181
|
-
const _hoisted_2$
|
|
1181
|
+
const _hoisted_2$11 = {
|
|
1182
1182
|
key: 0,
|
|
1183
1183
|
class: "nut-img-loading"
|
|
1184
1184
|
};
|
|
1185
|
-
const _hoisted_3$
|
|
1185
|
+
const _hoisted_3$M = {
|
|
1186
1186
|
key: 1,
|
|
1187
1187
|
class: "nut-img-error"
|
|
1188
1188
|
};
|
|
@@ -1201,14 +1201,14 @@ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1201
1201
|
onError: _cache[1] || (_cache[1] = (...args) => _ctx.error && _ctx.error(...args)),
|
|
1202
1202
|
style: normalizeStyle(_ctx.styles)
|
|
1203
1203
|
}, null, 44, _hoisted_1$1h),
|
|
1204
|
-
_ctx.loading ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
1204
|
+
_ctx.loading ? (openBlock(), createElementBlock("view", _hoisted_2$11, [
|
|
1205
1205
|
!_ctx.slotLoding ? (openBlock(), createBlock(_component_nut_icon, {
|
|
1206
1206
|
key: 0,
|
|
1207
1207
|
name: "image"
|
|
1208
1208
|
})) : createCommentVNode("", true),
|
|
1209
1209
|
renderSlot(_ctx.$slots, "loading")
|
|
1210
1210
|
])) : createCommentVNode("", true),
|
|
1211
|
-
_ctx.isError && !_ctx.loading ? (openBlock(), createElementBlock("view", _hoisted_3$
|
|
1211
|
+
_ctx.isError && !_ctx.loading ? (openBlock(), createElementBlock("view", _hoisted_3$M, [
|
|
1212
1212
|
!_ctx.slotError ? (openBlock(), createBlock(_component_nut_icon, {
|
|
1213
1213
|
key: 0,
|
|
1214
1214
|
name: "image-error"
|
|
@@ -1916,11 +1916,11 @@ const _hoisted_1$1f = {
|
|
|
1916
1916
|
class: "nut-navbar--placeholder",
|
|
1917
1917
|
ref: "navBarWrap"
|
|
1918
1918
|
};
|
|
1919
|
-
const _hoisted_2$
|
|
1919
|
+
const _hoisted_2$10 = {
|
|
1920
1920
|
key: 1,
|
|
1921
1921
|
class: "nut-navbar__text"
|
|
1922
1922
|
};
|
|
1923
|
-
const _hoisted_3$
|
|
1923
|
+
const _hoisted_3$L = { class: "nut-navbar__title" };
|
|
1924
1924
|
const _hoisted_4$D = {
|
|
1925
1925
|
key: 0,
|
|
1926
1926
|
class: "nut-navbar__text"
|
|
@@ -1951,10 +1951,10 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1951
1951
|
color: "#979797",
|
|
1952
1952
|
name: "left"
|
|
1953
1953
|
})) : createCommentVNode("", true),
|
|
1954
|
-
_ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
1954
|
+
_ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_2$10, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
|
|
1955
1955
|
renderSlot(_ctx.$slots, "left")
|
|
1956
1956
|
]),
|
|
1957
|
-
createElementVNode("view", _hoisted_3$
|
|
1957
|
+
createElementVNode("view", _hoisted_3$L, [
|
|
1958
1958
|
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
1959
1959
|
key: 0,
|
|
1960
1960
|
class: "title",
|
|
@@ -2085,8 +2085,8 @@ const component$6 = {
|
|
|
2085
2085
|
}
|
|
2086
2086
|
};
|
|
2087
2087
|
const _hoisted_1$1e = { class: "nut-fixednav__list" };
|
|
2088
|
-
const _hoisted_2
|
|
2089
|
-
const _hoisted_3$
|
|
2088
|
+
const _hoisted_2$$ = ["onClick"];
|
|
2089
|
+
const _hoisted_3$K = ["src"];
|
|
2090
2090
|
const _hoisted_4$C = { class: "span" };
|
|
2091
2091
|
const _hoisted_5$s = {
|
|
2092
2092
|
key: 0,
|
|
@@ -2116,10 +2116,10 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2116
2116
|
}, [
|
|
2117
2117
|
createElementVNode("img", {
|
|
2118
2118
|
src: item.icon
|
|
2119
|
-
}, null, 8, _hoisted_3$
|
|
2119
|
+
}, null, 8, _hoisted_3$K),
|
|
2120
2120
|
createElementVNode("view", _hoisted_4$C, toDisplayString(item.text), 1),
|
|
2121
2121
|
item.num ? (openBlock(), createElementBlock("view", _hoisted_5$s, toDisplayString(item.num), 1)) : createCommentVNode("", true)
|
|
2122
|
-
], 10, _hoisted_2
|
|
2122
|
+
], 10, _hoisted_2$$);
|
|
2123
2123
|
}), 128))
|
|
2124
2124
|
])
|
|
2125
2125
|
]),
|
|
@@ -2277,7 +2277,7 @@ const _sfc_main$1A = create$1A({
|
|
|
2277
2277
|
}
|
|
2278
2278
|
});
|
|
2279
2279
|
const _hoisted_1$1d = ["onClick"];
|
|
2280
|
-
const _hoisted_2
|
|
2280
|
+
const _hoisted_2$_ = { class: "nut-menu__title-text" };
|
|
2281
2281
|
function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2282
2282
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
2283
2283
|
return openBlock(), createElementBlock("view", {
|
|
@@ -2297,7 +2297,7 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2297
2297
|
createElementVNode("view", {
|
|
2298
2298
|
class: normalizeClass(["nut-menu__title", _ctx.getClasses(item.state.showPopup)])
|
|
2299
2299
|
}, [
|
|
2300
|
-
createElementVNode("view", _hoisted_2
|
|
2300
|
+
createElementVNode("view", _hoisted_2$_, toDisplayString(item.renderTitle()), 1),
|
|
2301
2301
|
createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
|
|
2302
2302
|
name: _ctx.titleIcon || (_ctx.direction === "up" ? "arrow-up" : "down-arrow"),
|
|
2303
2303
|
size: "10",
|
|
@@ -2420,7 +2420,7 @@ const _sfc_main$1z = create$1z({
|
|
|
2420
2420
|
}
|
|
2421
2421
|
});
|
|
2422
2422
|
const _hoisted_1$1c = { class: "nut-menu-item__content nut-menu-item__overflow" };
|
|
2423
|
-
const _hoisted_2$
|
|
2423
|
+
const _hoisted_2$Z = ["onClick"];
|
|
2424
2424
|
function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2425
2425
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
2426
2426
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
@@ -2468,7 +2468,7 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2468
2468
|
class: normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
|
|
2469
2469
|
style: normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
|
|
2470
2470
|
}, toDisplayString(option.text), 7)
|
|
2471
|
-
], 14, _hoisted_2$
|
|
2471
|
+
], 14, _hoisted_2$Z);
|
|
2472
2472
|
}), 128)),
|
|
2473
2473
|
renderSlot(_ctx.$slots, "default")
|
|
2474
2474
|
])
|
|
@@ -2510,14 +2510,21 @@ const _sfc_main$1y = create$1y({
|
|
|
2510
2510
|
safeAreaInsetBottom: {
|
|
2511
2511
|
type: Boolean,
|
|
2512
2512
|
default: false
|
|
2513
|
+
},
|
|
2514
|
+
placeholder: {
|
|
2515
|
+
type: Boolean,
|
|
2516
|
+
default: false
|
|
2513
2517
|
}
|
|
2514
2518
|
},
|
|
2515
2519
|
emits: ["tab-switch", "update:visible"],
|
|
2516
2520
|
setup(props, { emit, slots }) {
|
|
2521
|
+
const { bottom: bottom2, placeholder } = toRefs(props);
|
|
2522
|
+
const height = ref();
|
|
2517
2523
|
const mdValue = reactive({
|
|
2518
2524
|
val: props.visible,
|
|
2519
2525
|
children: []
|
|
2520
2526
|
});
|
|
2527
|
+
const nutTabbar = ref(null);
|
|
2521
2528
|
function changeIndex(index, active) {
|
|
2522
2529
|
emit("update:visible", active);
|
|
2523
2530
|
parentData.modelValue = active;
|
|
@@ -2538,17 +2545,39 @@ const _sfc_main$1y = create$1y({
|
|
|
2538
2545
|
parentData.modelValue = value;
|
|
2539
2546
|
}
|
|
2540
2547
|
);
|
|
2548
|
+
onMounted(() => {
|
|
2549
|
+
if (bottom2.value && placeholder.value) {
|
|
2550
|
+
nextTick(() => {
|
|
2551
|
+
var _a;
|
|
2552
|
+
height.value = (_a = nutTabbar == null ? void 0 : nutTabbar.value) == null ? void 0 : _a.getBoundingClientRect().height;
|
|
2553
|
+
});
|
|
2554
|
+
}
|
|
2555
|
+
});
|
|
2541
2556
|
return {
|
|
2542
|
-
changeIndex
|
|
2557
|
+
changeIndex,
|
|
2558
|
+
nutTabbar,
|
|
2559
|
+
height
|
|
2543
2560
|
};
|
|
2544
2561
|
}
|
|
2545
2562
|
});
|
|
2546
2563
|
function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2547
|
-
return openBlock(), createElementBlock("
|
|
2564
|
+
return _ctx.bottom && _ctx.placeholder ? (openBlock(), createElementBlock("div", {
|
|
2565
|
+
key: 0,
|
|
2566
|
+
class: "nut-tabbar__placeholder",
|
|
2567
|
+
style: normalizeStyle({ height: _ctx.height + "px" })
|
|
2568
|
+
}, [
|
|
2569
|
+
createElementVNode("view", {
|
|
2570
|
+
ref: "nutTabbar",
|
|
2571
|
+
class: normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom, "nut-tabbar-safebottom": _ctx.safeAreaInsetBottom }])
|
|
2572
|
+
}, [
|
|
2573
|
+
renderSlot(_ctx.$slots, "default")
|
|
2574
|
+
], 2)
|
|
2575
|
+
], 4)) : (openBlock(), createElementBlock("view", {
|
|
2576
|
+
key: 1,
|
|
2548
2577
|
class: normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom, "nut-tabbar-safebottom": _ctx.safeAreaInsetBottom }])
|
|
2549
2578
|
}, [
|
|
2550
2579
|
renderSlot(_ctx.$slots, "default")
|
|
2551
|
-
], 2);
|
|
2580
|
+
], 2));
|
|
2552
2581
|
}
|
|
2553
2582
|
var Tabbar = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["render", _sfc_render$1r]]);
|
|
2554
2583
|
const { create: create$1x } = createComponent("tabbar-item");
|
|
@@ -2662,11 +2691,11 @@ const _sfc_main$1x = create$1x({
|
|
|
2662
2691
|
}
|
|
2663
2692
|
});
|
|
2664
2693
|
const _hoisted_1$1b = { class: "nut-tabbar-item_icon-box" };
|
|
2665
|
-
const _hoisted_2$
|
|
2694
|
+
const _hoisted_2$Y = {
|
|
2666
2695
|
key: 0,
|
|
2667
2696
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_num"
|
|
2668
2697
|
};
|
|
2669
|
-
const _hoisted_3$
|
|
2698
|
+
const _hoisted_3$J = {
|
|
2670
2699
|
key: 1,
|
|
2671
2700
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_nums"
|
|
2672
2701
|
};
|
|
@@ -2687,7 +2716,7 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2687
2716
|
}, [
|
|
2688
2717
|
createElementVNode("view", _hoisted_1$1b, [
|
|
2689
2718
|
!_ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
2690
|
-
_ctx.num && _ctx.num <= 99 ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
2719
|
+
_ctx.num && _ctx.num <= 99 ? (openBlock(), createElementBlock("view", _hoisted_2$Y, toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (openBlock(), createElementBlock("view", _hoisted_3$J, toDisplayString("99+"))) : createCommentVNode("", true)
|
|
2691
2720
|
], 64)) : createCommentVNode("", true),
|
|
2692
2721
|
_ctx.dot ? (openBlock(), createElementBlock("div", _hoisted_4$B)) : createCommentVNode("", true),
|
|
2693
2722
|
_ctx.icon ? (openBlock(), createElementBlock("view", _hoisted_5$r, [
|
|
@@ -2905,8 +2934,8 @@ const _sfc_main$1w = create$1w({
|
|
|
2905
2934
|
}
|
|
2906
2935
|
});
|
|
2907
2936
|
const _hoisted_1$1a = { class: "nut-elevator__list__item__code" };
|
|
2908
|
-
const _hoisted_2$
|
|
2909
|
-
const _hoisted_3$
|
|
2937
|
+
const _hoisted_2$X = ["onClick"];
|
|
2938
|
+
const _hoisted_3$I = ["innerHTML"];
|
|
2910
2939
|
const _hoisted_4$A = { class: "fixed-title" };
|
|
2911
2940
|
const _hoisted_5$q = { class: "nut-elevator__bars__inner" };
|
|
2912
2941
|
const _hoisted_6$n = ["data-index", "onClick"];
|
|
@@ -2938,11 +2967,11 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2938
2967
|
!_ctx.$slots.default ? (openBlock(), createElementBlock("span", {
|
|
2939
2968
|
key: 0,
|
|
2940
2969
|
innerHTML: subitem.name
|
|
2941
|
-
}, null, 8, _hoisted_3$
|
|
2970
|
+
}, null, 8, _hoisted_3$I)) : renderSlot(_ctx.$slots, "default", {
|
|
2942
2971
|
key: 1,
|
|
2943
2972
|
item: subitem
|
|
2944
2973
|
})
|
|
2945
|
-
], 10, _hoisted_2$
|
|
2974
|
+
], 10, _hoisted_2$X);
|
|
2946
2975
|
}), 128))
|
|
2947
2976
|
]);
|
|
2948
2977
|
}), 128)),
|
|
@@ -3090,11 +3119,11 @@ const _sfc_main$1v = create$1v({
|
|
|
3090
3119
|
}
|
|
3091
3120
|
});
|
|
3092
3121
|
const _hoisted_1$19 = { class: "nut-pagination" };
|
|
3093
|
-
const _hoisted_2$
|
|
3122
|
+
const _hoisted_2$W = {
|
|
3094
3123
|
key: 0,
|
|
3095
3124
|
class: "nut-pagination-contain"
|
|
3096
3125
|
};
|
|
3097
|
-
const _hoisted_3$
|
|
3126
|
+
const _hoisted_3$H = ["onClick"];
|
|
3098
3127
|
const _hoisted_4$z = {
|
|
3099
3128
|
key: 1,
|
|
3100
3129
|
class: "nut-pagination-contain"
|
|
@@ -3110,7 +3139,7 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3110
3139
|
createTextVNode(toDisplayString(_ctx.prevText || _ctx.translate("prev")), 1)
|
|
3111
3140
|
])
|
|
3112
3141
|
], 2),
|
|
3113
|
-
_ctx.mode == "multi" ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
3142
|
+
_ctx.mode == "multi" ? (openBlock(), createElementBlock("view", _hoisted_2$W, [
|
|
3114
3143
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.pages, (item, index) => {
|
|
3115
3144
|
return openBlock(), createElementBlock("view", {
|
|
3116
3145
|
key: index + "pagination",
|
|
@@ -3120,7 +3149,7 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3120
3149
|
renderSlot(_ctx.$slots, "page", { item }, () => [
|
|
3121
3150
|
createTextVNode(toDisplayString(item.text), 1)
|
|
3122
3151
|
])
|
|
3123
|
-
], 10, _hoisted_3$
|
|
3152
|
+
], 10, _hoisted_3$H);
|
|
3124
3153
|
}), 128))
|
|
3125
3154
|
])) : createCommentVNode("", true),
|
|
3126
3155
|
_ctx.mode == "simple" ? (openBlock(), createElementBlock("view", _hoisted_4$z, [
|
|
@@ -3329,7 +3358,7 @@ const component$5 = {
|
|
|
3329
3358
|
}
|
|
3330
3359
|
};
|
|
3331
3360
|
const _hoisted_1$18 = ["onClick"];
|
|
3332
|
-
const _hoisted_2$
|
|
3361
|
+
const _hoisted_2$V = ["onClick"];
|
|
3333
3362
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3334
3363
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
3335
3364
|
const _component_nut_sticky = resolveComponent("nut-sticky");
|
|
@@ -3409,7 +3438,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3409
3438
|
createElementVNode("view", {
|
|
3410
3439
|
class: normalizeClass(["nut-tabs__titles-item__text", { ellipsis: _ctx.ellipsis }])
|
|
3411
3440
|
}, toDisplayString(item.title), 3)
|
|
3412
|
-
], 14, _hoisted_2$
|
|
3441
|
+
], 14, _hoisted_2$V);
|
|
3413
3442
|
}), 128))
|
|
3414
3443
|
], 6)),
|
|
3415
3444
|
createElementVNode("view", {
|
|
@@ -3575,7 +3604,7 @@ const _sfc_main$1r = create$1r({
|
|
|
3575
3604
|
}
|
|
3576
3605
|
});
|
|
3577
3606
|
const _hoisted_1$17 = { class: "nut-sidenavbar__content" };
|
|
3578
|
-
const _hoisted_2$
|
|
3607
|
+
const _hoisted_2$U = {
|
|
3579
3608
|
class: "nut-sidenavbar__content__list",
|
|
3580
3609
|
ref: "list"
|
|
3581
3610
|
};
|
|
@@ -3584,7 +3613,7 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3584
3613
|
class: normalizeClass(_ctx.classes)
|
|
3585
3614
|
}, [
|
|
3586
3615
|
createElementVNode("view", _hoisted_1$17, [
|
|
3587
|
-
createElementVNode("view", _hoisted_2$
|
|
3616
|
+
createElementVNode("view", _hoisted_2$U, [
|
|
3588
3617
|
renderSlot(_ctx.$slots, "default")
|
|
3589
3618
|
], 512)
|
|
3590
3619
|
])
|
|
@@ -3621,14 +3650,14 @@ const _sfc_main$1q = create$1q({
|
|
|
3621
3650
|
}
|
|
3622
3651
|
});
|
|
3623
3652
|
const _hoisted_1$16 = ["ikey"];
|
|
3624
|
-
const _hoisted_2$
|
|
3653
|
+
const _hoisted_2$T = { class: "nut-sidenavbaritem__title" };
|
|
3625
3654
|
function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3626
3655
|
return openBlock(), createElementBlock("view", {
|
|
3627
3656
|
class: "nut-sidenavbaritem",
|
|
3628
3657
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
|
|
3629
3658
|
ikey: _ctx.ikey
|
|
3630
3659
|
}, [
|
|
3631
|
-
createElementVNode("span", _hoisted_2$
|
|
3660
|
+
createElementVNode("span", _hoisted_2$T, toDisplayString(_ctx.title), 1)
|
|
3632
3661
|
], 8, _hoisted_1$16);
|
|
3633
3662
|
}
|
|
3634
3663
|
var SideNavBarItem = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["render", _sfc_render$1k]]);
|
|
@@ -3680,8 +3709,8 @@ const _sfc_main$1p = create$1p({
|
|
|
3680
3709
|
}
|
|
3681
3710
|
});
|
|
3682
3711
|
const _hoisted_1$15 = ["ikey"];
|
|
3683
|
-
const _hoisted_2$
|
|
3684
|
-
const _hoisted_3$
|
|
3712
|
+
const _hoisted_2$S = { class: "nut-subsidenavbar__title__text" };
|
|
3713
|
+
const _hoisted_3$G = { class: "nut-subsidenavbar__title__icon" };
|
|
3685
3714
|
function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3686
3715
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
3687
3716
|
return openBlock(), createElementBlock("view", {
|
|
@@ -3692,8 +3721,8 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3692
3721
|
class: "nut-subsidenavbar__title",
|
|
3693
3722
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
3694
3723
|
}, [
|
|
3695
|
-
createElementVNode("span", _hoisted_2$
|
|
3696
|
-
createElementVNode("span", _hoisted_3$
|
|
3724
|
+
createElementVNode("span", _hoisted_2$S, toDisplayString(_ctx.title), 1),
|
|
3725
|
+
createElementVNode("span", _hoisted_3$G, [
|
|
3697
3726
|
createVNode(_component_nut_icon, {
|
|
3698
3727
|
name: "down-arrow",
|
|
3699
3728
|
class: normalizeClass(_ctx.direction)
|
|
@@ -4063,11 +4092,11 @@ const _hoisted_1$14 = {
|
|
|
4063
4092
|
key: 0,
|
|
4064
4093
|
class: "min"
|
|
4065
4094
|
};
|
|
4066
|
-
const _hoisted_2$
|
|
4095
|
+
const _hoisted_2$R = {
|
|
4067
4096
|
key: 0,
|
|
4068
4097
|
class: "nut-range-mark"
|
|
4069
4098
|
};
|
|
4070
|
-
const _hoisted_3$
|
|
4099
|
+
const _hoisted_3$F = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
|
|
4071
4100
|
const _hoisted_4$y = {
|
|
4072
4101
|
key: 0,
|
|
4073
4102
|
class: "number"
|
|
@@ -4092,7 +4121,7 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4092
4121
|
class: normalizeClass(_ctx.classes),
|
|
4093
4122
|
onClick: _cache[9] || (_cache[9] = withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
|
|
4094
4123
|
}, [
|
|
4095
|
-
_ctx.marksList.length > 0 ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
4124
|
+
_ctx.marksList.length > 0 ? (openBlock(), createElementBlock("view", _hoisted_2$R, [
|
|
4096
4125
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.marksList, (marks) => {
|
|
4097
4126
|
return openBlock(), createElementBlock("span", {
|
|
4098
4127
|
key: marks,
|
|
@@ -4145,7 +4174,7 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4145
4174
|
}, [
|
|
4146
4175
|
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_4$y, toDisplayString(_ctx.curValue(index)), 1)) : createCommentVNode("", true)
|
|
4147
4176
|
], 4))
|
|
4148
|
-
], 42, _hoisted_3$
|
|
4177
|
+
], 42, _hoisted_3$F);
|
|
4149
4178
|
}), 64)) : (openBlock(), createElementBlock("view", {
|
|
4150
4179
|
key: 1,
|
|
4151
4180
|
role: "slider",
|
|
@@ -4347,11 +4376,11 @@ const _hoisted_1$13 = {
|
|
|
4347
4376
|
key: 0,
|
|
4348
4377
|
class: "nut-searchbar__search-label"
|
|
4349
4378
|
};
|
|
4350
|
-
const _hoisted_2$
|
|
4379
|
+
const _hoisted_2$Q = {
|
|
4351
4380
|
key: 1,
|
|
4352
4381
|
class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
|
|
4353
4382
|
};
|
|
4354
|
-
const _hoisted_3$
|
|
4383
|
+
const _hoisted_3$E = { class: "nut-searchbar__input-inner" };
|
|
4355
4384
|
const _hoisted_4$x = ["type", "maxlength", "placeholder", "value", "disabled", "readonly"];
|
|
4356
4385
|
const _hoisted_5$n = {
|
|
4357
4386
|
key: 2,
|
|
@@ -4364,7 +4393,7 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4364
4393
|
style: normalizeStyle(_ctx.searchbarStyle)
|
|
4365
4394
|
}, [
|
|
4366
4395
|
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$13, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
|
|
4367
|
-
_ctx.$slots.leftout ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
4396
|
+
_ctx.$slots.leftout ? (openBlock(), createElementBlock("view", _hoisted_2$Q, [
|
|
4368
4397
|
renderSlot(_ctx.$slots, "leftout")
|
|
4369
4398
|
])) : createCommentVNode("", true),
|
|
4370
4399
|
createElementVNode("view", {
|
|
@@ -4378,7 +4407,7 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4378
4407
|
}, [
|
|
4379
4408
|
renderSlot(_ctx.$slots, "leftin")
|
|
4380
4409
|
])) : createCommentVNode("", true),
|
|
4381
|
-
createElementVNode("view", _hoisted_3$
|
|
4410
|
+
createElementVNode("view", _hoisted_3$E, [
|
|
4382
4411
|
createElementVNode("form", {
|
|
4383
4412
|
action: "#",
|
|
4384
4413
|
onSubmit: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
|
|
@@ -4779,8 +4808,8 @@ const _hoisted_1$12 = {
|
|
|
4779
4808
|
role: "menu",
|
|
4780
4809
|
class: "nut-cascader-pane"
|
|
4781
4810
|
};
|
|
4782
|
-
const _hoisted_2$
|
|
4783
|
-
const _hoisted_3$
|
|
4811
|
+
const _hoisted_2$P = ["aria-checked", "aria-disabled", "onClick"];
|
|
4812
|
+
const _hoisted_3$D = { class: "nut-cascader-item__title" };
|
|
4784
4813
|
const _hoisted_4$w = /* @__PURE__ */ createElementVNode("view", { class: "nut-cascader-pane" }, null, -1);
|
|
4785
4814
|
function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4786
4815
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
@@ -4810,7 +4839,7 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4810
4839
|
role: "menuitemradio",
|
|
4811
4840
|
onClick: ($event) => _ctx.handleNode(node, false)
|
|
4812
4841
|
}, [
|
|
4813
|
-
createElementVNode("view", _hoisted_3$
|
|
4842
|
+
createElementVNode("view", _hoisted_3$D, toDisplayString(node.text), 1),
|
|
4814
4843
|
node.loading ? (openBlock(), createBlock(_component_nut_icon, {
|
|
4815
4844
|
key: 0,
|
|
4816
4845
|
class: "nut-cascader-item__icon-loading",
|
|
@@ -4820,7 +4849,7 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4820
4849
|
class: "nut-cascader-item__icon-check",
|
|
4821
4850
|
name: "checklist"
|
|
4822
4851
|
}))
|
|
4823
|
-
], 10, _hoisted_2$
|
|
4852
|
+
], 10, _hoisted_2$P);
|
|
4824
4853
|
}), 128))
|
|
4825
4854
|
])
|
|
4826
4855
|
]),
|
|
@@ -5639,11 +5668,11 @@ const _hoisted_1$10 = {
|
|
|
5639
5668
|
key: 0,
|
|
5640
5669
|
class: "calendar-title"
|
|
5641
5670
|
};
|
|
5642
|
-
const _hoisted_2$
|
|
5671
|
+
const _hoisted_2$O = {
|
|
5643
5672
|
key: 1,
|
|
5644
5673
|
class: "calendar-top-slot"
|
|
5645
5674
|
};
|
|
5646
|
-
const _hoisted_3$
|
|
5675
|
+
const _hoisted_3$C = {
|
|
5647
5676
|
key: 2,
|
|
5648
5677
|
class: "calendar-curr-month"
|
|
5649
5678
|
};
|
|
@@ -5690,10 +5719,10 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5690
5719
|
class: normalizeClass(["nut-calendar-header", { "nut-calendar-header-tile": !_ctx.poppable }])
|
|
5691
5720
|
}, [
|
|
5692
5721
|
_ctx.showTitle ? (openBlock(), createElementBlock("view", _hoisted_1$10, toDisplayString(_ctx.title || _ctx.translate("title")), 1)) : createCommentVNode("", true),
|
|
5693
|
-
_ctx.showTopBtn ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
5722
|
+
_ctx.showTopBtn ? (openBlock(), createElementBlock("view", _hoisted_2$O, [
|
|
5694
5723
|
renderSlot(_ctx.$slots, "btn")
|
|
5695
5724
|
])) : createCommentVNode("", true),
|
|
5696
|
-
_ctx.showSubTitle ? (openBlock(), createElementBlock("view", _hoisted_3$
|
|
5725
|
+
_ctx.showSubTitle ? (openBlock(), createElementBlock("view", _hoisted_3$C, toDisplayString(_ctx.yearMonthTitle), 1)) : createCommentVNode("", true),
|
|
5697
5726
|
createElementVNode("view", _hoisted_4$v, [
|
|
5698
5727
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item, index) => {
|
|
5699
5728
|
return openBlock(), createElementBlock("view", {
|
|
@@ -6487,8 +6516,8 @@ const _hoisted_1$$ = {
|
|
|
6487
6516
|
key: 1,
|
|
6488
6517
|
class: "nut-picker-roller-item-tile"
|
|
6489
6518
|
};
|
|
6490
|
-
const _hoisted_2$
|
|
6491
|
-
const _hoisted_3$
|
|
6519
|
+
const _hoisted_2$N = /* @__PURE__ */ createElementVNode("view", { class: "nut-picker-roller-mask" }, null, -1);
|
|
6520
|
+
const _hoisted_3$B = {
|
|
6492
6521
|
key: 0,
|
|
6493
6522
|
class: "nut-picker-content"
|
|
6494
6523
|
};
|
|
@@ -6518,8 +6547,8 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6518
6547
|
], 64);
|
|
6519
6548
|
}), 128))
|
|
6520
6549
|
], 36),
|
|
6521
|
-
_hoisted_2$
|
|
6522
|
-
_ctx.threeDimensional ? (openBlock(), createElementBlock("view", _hoisted_3$
|
|
6550
|
+
_hoisted_2$N,
|
|
6551
|
+
_ctx.threeDimensional ? (openBlock(), createElementBlock("view", _hoisted_3$B, [
|
|
6523
6552
|
createElementVNode("view", {
|
|
6524
6553
|
class: "nut-picker-list-panel",
|
|
6525
6554
|
ref: "list",
|
|
@@ -6578,7 +6607,9 @@ const _sfc_main$1f = create$1f({
|
|
|
6578
6607
|
show: false,
|
|
6579
6608
|
formattedColumns: props.columns
|
|
6580
6609
|
});
|
|
6581
|
-
let defaultValues = ref(
|
|
6610
|
+
let defaultValues = ref(
|
|
6611
|
+
Array.isArray(props.modelValue) && props.modelValue.length > 0 ? props.modelValue : []
|
|
6612
|
+
);
|
|
6582
6613
|
const pickerColumn = ref([]);
|
|
6583
6614
|
const swipeRef = (el) => {
|
|
6584
6615
|
if (el && pickerColumn.value.length < columnsList.value.length) {
|
|
@@ -6617,7 +6648,10 @@ const _sfc_main$1f = create$1f({
|
|
|
6617
6648
|
case "multiple":
|
|
6618
6649
|
return state.formattedColumns;
|
|
6619
6650
|
case "cascade":
|
|
6620
|
-
return formatCascade(
|
|
6651
|
+
return formatCascade(
|
|
6652
|
+
state.formattedColumns,
|
|
6653
|
+
defaultValues.value ? defaultValues.value : []
|
|
6654
|
+
);
|
|
6621
6655
|
default:
|
|
6622
6656
|
return [state.formattedColumns];
|
|
6623
6657
|
}
|
|
@@ -6651,6 +6685,7 @@ const _sfc_main$1f = create$1f({
|
|
|
6651
6685
|
};
|
|
6652
6686
|
const changeHandler = (columnIndex, option) => {
|
|
6653
6687
|
if (option && Object.keys(option).length) {
|
|
6688
|
+
defaultValues.value = defaultValues.value ? defaultValues.value : [];
|
|
6654
6689
|
if (columnsType.value === "cascade") {
|
|
6655
6690
|
defaultValues.value[columnIndex] = option.value ? option.value : "";
|
|
6656
6691
|
let index = columnIndex;
|
|
@@ -6715,14 +6750,15 @@ const _sfc_main$1f = create$1f({
|
|
|
6715
6750
|
emit("update:modelValue", newValues);
|
|
6716
6751
|
}
|
|
6717
6752
|
},
|
|
6718
|
-
{
|
|
6753
|
+
{ deep: true }
|
|
6719
6754
|
);
|
|
6720
6755
|
watch(
|
|
6721
6756
|
() => props.visible,
|
|
6722
6757
|
(val) => {
|
|
6723
6758
|
state.show = val;
|
|
6724
|
-
if (val)
|
|
6759
|
+
if (val) {
|
|
6725
6760
|
pickerColumn.value = [];
|
|
6761
|
+
}
|
|
6726
6762
|
}
|
|
6727
6763
|
);
|
|
6728
6764
|
watch(
|
|
@@ -6749,8 +6785,8 @@ const _sfc_main$1f = create$1f({
|
|
|
6749
6785
|
}
|
|
6750
6786
|
});
|
|
6751
6787
|
const _hoisted_1$_ = { class: "nut-picker__bar" };
|
|
6752
|
-
const _hoisted_2$
|
|
6753
|
-
const _hoisted_3$
|
|
6788
|
+
const _hoisted_2$M = { class: "nut-picker__title" };
|
|
6789
|
+
const _hoisted_3$A = {
|
|
6754
6790
|
class: "nut-picker__column",
|
|
6755
6791
|
ref: "wrapHeight"
|
|
6756
6792
|
};
|
|
@@ -6780,14 +6816,14 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6780
6816
|
class: "nut-picker__cancel nut-picker__left nut-picker__button",
|
|
6781
6817
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.close && _ctx.close(...args))
|
|
6782
6818
|
}, toDisplayString(_ctx.cancelText || _ctx.translate("cancel")), 1),
|
|
6783
|
-
createElementVNode("view", _hoisted_2$
|
|
6819
|
+
createElementVNode("view", _hoisted_2$M, toDisplayString(_ctx.title), 1),
|
|
6784
6820
|
createElementVNode("view", {
|
|
6785
6821
|
class: "nut-picker__confirm nut-picker__right nut-picker__button",
|
|
6786
6822
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.confirmHandler())
|
|
6787
6823
|
}, toDisplayString(_ctx.okText || _ctx.translate("confirm")), 1)
|
|
6788
6824
|
]),
|
|
6789
6825
|
renderSlot(_ctx.$slots, "top"),
|
|
6790
|
-
createElementVNode("view", _hoisted_3$
|
|
6826
|
+
createElementVNode("view", _hoisted_3$A, [
|
|
6791
6827
|
_hoisted_4$u,
|
|
6792
6828
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columnsList, (column2, columnIndex) => {
|
|
6793
6829
|
return openBlock(), createElementBlock("view", {
|
|
@@ -6801,7 +6837,7 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6801
6837
|
column: column2,
|
|
6802
6838
|
readonly: _ctx.readonly,
|
|
6803
6839
|
columnsType: _ctx.columnsType,
|
|
6804
|
-
value: _ctx.defaultValues[columnIndex],
|
|
6840
|
+
value: _ctx.defaultValues && _ctx.defaultValues[columnIndex],
|
|
6805
6841
|
threeDimensional: _ctx.threeDimensional,
|
|
6806
6842
|
swipeDuration: _ctx.swipeDuration,
|
|
6807
6843
|
onChange: (option) => {
|
|
@@ -7631,12 +7667,16 @@ const _sfc_main$1c = create$1c({
|
|
|
7631
7667
|
watch(
|
|
7632
7668
|
() => props.modelValue,
|
|
7633
7669
|
() => {
|
|
7634
|
-
|
|
7635
|
-
|
|
7670
|
+
if (!slots.input) {
|
|
7671
|
+
updateValue(getModelValue());
|
|
7672
|
+
resetValidation();
|
|
7673
|
+
}
|
|
7636
7674
|
}
|
|
7637
7675
|
);
|
|
7638
7676
|
onMounted(() => {
|
|
7639
|
-
|
|
7677
|
+
if (!slots.input) {
|
|
7678
|
+
updateValue(getModelValue(), props.formatTrigger);
|
|
7679
|
+
}
|
|
7640
7680
|
});
|
|
7641
7681
|
return {
|
|
7642
7682
|
inputRef,
|
|
@@ -7657,8 +7697,8 @@ const _sfc_main$1c = create$1c({
|
|
|
7657
7697
|
}
|
|
7658
7698
|
});
|
|
7659
7699
|
const _hoisted_1$Y = { class: "label-string" };
|
|
7660
|
-
const _hoisted_2$
|
|
7661
|
-
const _hoisted_3$
|
|
7700
|
+
const _hoisted_2$L = { class: "nut-input-value" };
|
|
7701
|
+
const _hoisted_3$z = { class: "label-string" };
|
|
7662
7702
|
const _hoisted_4$t = { class: "nut-input-value" };
|
|
7663
7703
|
const _hoisted_5$l = { class: "nut-input-inner" };
|
|
7664
7704
|
const _hoisted_6$k = { class: "nut-input-box" };
|
|
@@ -7687,7 +7727,7 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7687
7727
|
}, [
|
|
7688
7728
|
createElementVNode("view", _hoisted_1$Y, toDisplayString(_ctx.label) + " " + toDisplayString(_ctx.colon ? ":" : ""), 1)
|
|
7689
7729
|
], 6)) : createCommentVNode("", true),
|
|
7690
|
-
createElementVNode("view", _hoisted_2$
|
|
7730
|
+
createElementVNode("view", _hoisted_2$L, [
|
|
7691
7731
|
createElementVNode("view", {
|
|
7692
7732
|
class: "nut-input-inner",
|
|
7693
7733
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
|
|
@@ -7711,7 +7751,7 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7711
7751
|
textAlign: _ctx.labelAlign
|
|
7712
7752
|
})
|
|
7713
7753
|
}, [
|
|
7714
|
-
createElementVNode("view", _hoisted_3$
|
|
7754
|
+
createElementVNode("view", _hoisted_3$z, toDisplayString(_ctx.label) + " " + toDisplayString(_ctx.colon ? ":" : ""), 1)
|
|
7715
7755
|
], 6)) : createCommentVNode("", true),
|
|
7716
7756
|
createElementVNode("view", _hoisted_4$t, [
|
|
7717
7757
|
createElementVNode("view", _hoisted_5$l, [
|
|
@@ -8249,8 +8289,8 @@ const _sfc_main$18 = create$18({
|
|
|
8249
8289
|
}
|
|
8250
8290
|
});
|
|
8251
8291
|
const _hoisted_1$W = { class: "nut-shortpsd-title" };
|
|
8252
|
-
const _hoisted_2$
|
|
8253
|
-
const _hoisted_3$
|
|
8292
|
+
const _hoisted_2$K = { class: "nut-shortpsd-subtitle" };
|
|
8293
|
+
const _hoisted_3$y = { class: "nut-input-normalw" };
|
|
8254
8294
|
const _hoisted_4$s = /* @__PURE__ */ createElementVNode("div", { class: "nut-input-site" }, null, -1);
|
|
8255
8295
|
const _hoisted_5$k = {
|
|
8256
8296
|
key: 0,
|
|
@@ -8286,8 +8326,8 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8286
8326
|
}, {
|
|
8287
8327
|
default: withCtx(() => [
|
|
8288
8328
|
createElementVNode("view", _hoisted_1$W, toDisplayString(_ctx.title || _ctx.translate("title")), 1),
|
|
8289
|
-
createElementVNode("view", _hoisted_2$
|
|
8290
|
-
createElementVNode("div", _hoisted_3$
|
|
8329
|
+
createElementVNode("view", _hoisted_2$K, toDisplayString(_ctx.desc || _ctx.translate("desc")), 1),
|
|
8330
|
+
createElementVNode("div", _hoisted_3$y, [
|
|
8291
8331
|
withDirectives(createElementVNode("input", {
|
|
8292
8332
|
ref: "realpwd",
|
|
8293
8333
|
class: "nut-input-real",
|
|
@@ -8475,7 +8515,7 @@ const _sfc_main$17 = create$17({
|
|
|
8475
8515
|
}
|
|
8476
8516
|
});
|
|
8477
8517
|
const _hoisted_1$V = ["rows", "disabled", "readonly", "value", "maxlength", "placeholder", "autofocus"];
|
|
8478
|
-
const _hoisted_2$
|
|
8518
|
+
const _hoisted_2$J = {
|
|
8479
8519
|
key: 0,
|
|
8480
8520
|
class: "nut-textarea__limit"
|
|
8481
8521
|
};
|
|
@@ -8498,7 +8538,7 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8498
8538
|
placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
|
|
8499
8539
|
autofocus: _ctx.autofocus
|
|
8500
8540
|
}, null, 44, _hoisted_1$V),
|
|
8501
|
-
_ctx.limitShow ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
8541
|
+
_ctx.limitShow ? (openBlock(), createElementBlock("view", _hoisted_2$J, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0) + "/" + toDisplayString(_ctx.maxLength), 1)) : createCommentVNode("", true)
|
|
8502
8542
|
], 2);
|
|
8503
8543
|
}
|
|
8504
8544
|
var TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["render", _sfc_render$16]]);
|
|
@@ -8854,8 +8894,8 @@ const _hoisted_1$U = {
|
|
|
8854
8894
|
key: 0,
|
|
8855
8895
|
class: "nut-uploader__slot"
|
|
8856
8896
|
};
|
|
8857
|
-
const _hoisted_2$
|
|
8858
|
-
const _hoisted_3$
|
|
8897
|
+
const _hoisted_2$I = ["accept", "multiple", "name", "disabled"];
|
|
8898
|
+
const _hoisted_3$x = ["accept", "multiple", "name", "disabled"];
|
|
8859
8899
|
const _hoisted_4$r = {
|
|
8860
8900
|
key: 0,
|
|
8861
8901
|
class: "nut-uploader__preview-img"
|
|
@@ -8903,7 +8943,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8903
8943
|
name: _ctx.name,
|
|
8904
8944
|
disabled: _ctx.disabled,
|
|
8905
8945
|
onChange: _cache[0] || (_cache[0] = (...args) => _ctx.onChange && _ctx.onChange(...args))
|
|
8906
|
-
}, null, 40, _hoisted_2$
|
|
8946
|
+
}, null, 40, _hoisted_2$I)) : (openBlock(), createElementBlock("input", {
|
|
8907
8947
|
key: 1,
|
|
8908
8948
|
class: "nut-uploader__input",
|
|
8909
8949
|
type: "file",
|
|
@@ -8912,7 +8952,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8912
8952
|
name: _ctx.name,
|
|
8913
8953
|
disabled: _ctx.disabled,
|
|
8914
8954
|
onChange: _cache[1] || (_cache[1] = (...args) => _ctx.onChange && _ctx.onChange(...args))
|
|
8915
|
-
}, null, 40, _hoisted_3$
|
|
8955
|
+
}, null, 40, _hoisted_3$x))
|
|
8916
8956
|
], 64)) : createCommentVNode("", true)
|
|
8917
8957
|
])) : createCommentVNode("", true),
|
|
8918
8958
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fileList, (item, index) => {
|
|
@@ -9177,11 +9217,11 @@ const _hoisted_1$T = {
|
|
|
9177
9217
|
class: "nut-numberkeyboard",
|
|
9178
9218
|
ref: "root"
|
|
9179
9219
|
};
|
|
9180
|
-
const _hoisted_2$
|
|
9220
|
+
const _hoisted_2$H = {
|
|
9181
9221
|
key: 0,
|
|
9182
9222
|
class: "number-board-header"
|
|
9183
9223
|
};
|
|
9184
|
-
const _hoisted_3$
|
|
9224
|
+
const _hoisted_3$w = { class: "tit" };
|
|
9185
9225
|
const _hoisted_4$q = { class: "number-board-body" };
|
|
9186
9226
|
const _hoisted_5$i = { class: "number-board" };
|
|
9187
9227
|
const _hoisted_6$h = ["onTouchstart"];
|
|
@@ -9217,8 +9257,8 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9217
9257
|
}, {
|
|
9218
9258
|
default: withCtx(() => [
|
|
9219
9259
|
createElementVNode("div", _hoisted_1$T, [
|
|
9220
|
-
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
9221
|
-
createElementVNode("h3", _hoisted_3$
|
|
9260
|
+
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2$H, [
|
|
9261
|
+
createElementVNode("h3", _hoisted_3$w, toDisplayString(_ctx.title), 1),
|
|
9222
9262
|
_ctx.type == "default" ? (openBlock(), createElementBlock("span", {
|
|
9223
9263
|
key: 0,
|
|
9224
9264
|
class: "keyboard-close",
|
|
@@ -9736,7 +9776,7 @@ const _sfc_main$12 = create$12({
|
|
|
9736
9776
|
}
|
|
9737
9777
|
});
|
|
9738
9778
|
const _hoisted_1$R = { class: "nut-oldpicker-content" };
|
|
9739
|
-
const _hoisted_2$
|
|
9779
|
+
const _hoisted_2$G = {
|
|
9740
9780
|
key: 0,
|
|
9741
9781
|
class: "nut-oldpicker-placeholder"
|
|
9742
9782
|
};
|
|
@@ -9772,7 +9812,7 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9772
9812
|
key: item.label ? item.label : index
|
|
9773
9813
|
}, toDisplayString(_ctx.dataType === "cascade" ? item.text : item), 1);
|
|
9774
9814
|
}), 128)),
|
|
9775
|
-
_ctx.listData && _ctx.listData.length === 1 ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
9815
|
+
_ctx.listData && _ctx.listData.length === 1 ? (openBlock(), createElementBlock("view", _hoisted_2$G)) : createCommentVNode("", true)
|
|
9776
9816
|
], 4)
|
|
9777
9817
|
])
|
|
9778
9818
|
], 32);
|
|
@@ -9964,8 +10004,8 @@ const _sfc_main$11 = create$11({
|
|
|
9964
10004
|
}
|
|
9965
10005
|
});
|
|
9966
10006
|
const _hoisted_1$Q = { class: "nut-oldpicker__bar" };
|
|
9967
|
-
const _hoisted_2$
|
|
9968
|
-
const _hoisted_3$
|
|
10007
|
+
const _hoisted_2$F = { class: "nut-oldpicker__title" };
|
|
10008
|
+
const _hoisted_3$v = { class: "nut-oldpicker__column" };
|
|
9969
10009
|
const _hoisted_4$p = /* @__PURE__ */ createElementVNode("view", { class: "nut-oldpicker__hairline" }, null, -1);
|
|
9970
10010
|
function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9971
10011
|
const _component_nut_oldpicker_column = resolveComponent("nut-oldpicker-column");
|
|
@@ -9990,13 +10030,13 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9990
10030
|
class: "nut-oldpicker__cancel nut-oldpicker__left nut-oldpicker__button",
|
|
9991
10031
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.close && _ctx.close(...args))
|
|
9992
10032
|
}, toDisplayString(_ctx.cancelText), 1),
|
|
9993
|
-
createElementVNode("view", _hoisted_2$
|
|
10033
|
+
createElementVNode("view", _hoisted_2$F, toDisplayString(_ctx.title), 1),
|
|
9994
10034
|
createElementVNode("view", {
|
|
9995
10035
|
class: "nut-oldpicker__confirm nut-oldpicker__button nut-oldpicker__right",
|
|
9996
10036
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.confirm())
|
|
9997
10037
|
}, toDisplayString(_ctx.okText), 1)
|
|
9998
10038
|
]),
|
|
9999
|
-
createElementVNode("view", _hoisted_3$
|
|
10039
|
+
createElementVNode("view", _hoisted_3$v, [
|
|
10000
10040
|
_hoisted_4$p,
|
|
10001
10041
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columnList, (item, columnIndex) => {
|
|
10002
10042
|
return openBlock(), createElementBlock("view", {
|
|
@@ -10173,8 +10213,8 @@ const _hoisted_1$P = {
|
|
|
10173
10213
|
class: "nut-swipe__left",
|
|
10174
10214
|
ref: "leftRef"
|
|
10175
10215
|
};
|
|
10176
|
-
const _hoisted_2$
|
|
10177
|
-
const _hoisted_3$
|
|
10216
|
+
const _hoisted_2$E = { class: "nut-swipe__content" };
|
|
10217
|
+
const _hoisted_3$u = {
|
|
10178
10218
|
class: "nut-swipe__right",
|
|
10179
10219
|
ref: "rightRef"
|
|
10180
10220
|
};
|
|
@@ -10190,10 +10230,10 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10190
10230
|
createElementVNode("view", _hoisted_1$P, [
|
|
10191
10231
|
renderSlot(_ctx.$slots, "left")
|
|
10192
10232
|
], 512),
|
|
10193
|
-
createElementVNode("view", _hoisted_2$
|
|
10233
|
+
createElementVNode("view", _hoisted_2$E, [
|
|
10194
10234
|
renderSlot(_ctx.$slots, "default")
|
|
10195
10235
|
]),
|
|
10196
|
-
createElementVNode("view", _hoisted_3$
|
|
10236
|
+
createElementVNode("view", _hoisted_3$u, [
|
|
10197
10237
|
renderSlot(_ctx.$slots, "right")
|
|
10198
10238
|
], 512)
|
|
10199
10239
|
], 38);
|
|
@@ -10281,11 +10321,11 @@ const _sfc_main$$ = create$$({
|
|
|
10281
10321
|
}
|
|
10282
10322
|
});
|
|
10283
10323
|
const _hoisted_1$O = { class: "nut-actionsheet-panel" };
|
|
10284
|
-
const _hoisted_2$
|
|
10324
|
+
const _hoisted_2$D = {
|
|
10285
10325
|
key: 0,
|
|
10286
10326
|
class: "nut-actionsheet-title"
|
|
10287
10327
|
};
|
|
10288
|
-
const _hoisted_3$
|
|
10328
|
+
const _hoisted_3$t = { key: 1 };
|
|
10289
10329
|
const _hoisted_4$o = {
|
|
10290
10330
|
key: 0,
|
|
10291
10331
|
class: "nut-actionsheet-item desc"
|
|
@@ -10314,9 +10354,9 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10314
10354
|
}, {
|
|
10315
10355
|
default: withCtx(() => [
|
|
10316
10356
|
createElementVNode("view", _hoisted_1$O, [
|
|
10317
|
-
_ctx.title ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
10357
|
+
_ctx.title ? (openBlock(), createElementBlock("view", _hoisted_2$D, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
10318
10358
|
renderSlot(_ctx.$slots, "default"),
|
|
10319
|
-
!_ctx.slotDefault ? (openBlock(), createElementBlock("view", _hoisted_3$
|
|
10359
|
+
!_ctx.slotDefault ? (openBlock(), createElementBlock("view", _hoisted_3$t, [
|
|
10320
10360
|
_ctx.description ? (openBlock(), createElementBlock("view", _hoisted_4$o, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
|
|
10321
10361
|
_ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_5$h, [
|
|
10322
10362
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index) => {
|
|
@@ -10830,7 +10870,7 @@ const _hoisted_1$N = {
|
|
|
10830
10870
|
key: 0,
|
|
10831
10871
|
class: "nut-dialog__header"
|
|
10832
10872
|
};
|
|
10833
|
-
const _hoisted_2$
|
|
10873
|
+
const _hoisted_2$C = ["innerHTML"];
|
|
10834
10874
|
function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10835
10875
|
const _component_nut_button = resolveComponent("nut-button");
|
|
10836
10876
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
@@ -10864,7 +10904,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10864
10904
|
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : typeof _ctx.content === "string" ? (openBlock(), createElementBlock("view", {
|
|
10865
10905
|
key: 1,
|
|
10866
10906
|
innerHTML: _ctx.content
|
|
10867
|
-
}, null, 8, _hoisted_2$
|
|
10907
|
+
}, null, 8, _hoisted_2$C)) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.content), { key: 2 }))
|
|
10868
10908
|
], 4),
|
|
10869
10909
|
!_ctx.noFooter ? (openBlock(), createElementBlock("view", {
|
|
10870
10910
|
key: 1,
|
|
@@ -11180,8 +11220,8 @@ const _sfc_main$X = create$X({
|
|
|
11180
11220
|
}
|
|
11181
11221
|
});
|
|
11182
11222
|
const _hoisted_1$M = { class: "top-box" };
|
|
11183
|
-
const _hoisted_2$
|
|
11184
|
-
const _hoisted_3$
|
|
11223
|
+
const _hoisted_2$B = { class: "top-text" };
|
|
11224
|
+
const _hoisted_3$s = { class: "nut-infinite-container" };
|
|
11185
11225
|
const _hoisted_4$n = { class: "nut-infinite-bottom" };
|
|
11186
11226
|
const _hoisted_5$g = {
|
|
11187
11227
|
key: 0,
|
|
@@ -11208,10 +11248,10 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11208
11248
|
}, [
|
|
11209
11249
|
createElementVNode("view", _hoisted_1$M, [
|
|
11210
11250
|
createVNode(_component_nut_icon, mergeProps({ class: "top-img" }, _ctx.$attrs, { name: _ctx.pullIcon }), null, 16, ["name"]),
|
|
11211
|
-
createElementVNode("view", _hoisted_2$
|
|
11251
|
+
createElementVNode("view", _hoisted_2$B, toDisplayString(_ctx.pullTxt || _ctx.translate("pullTxt")), 1)
|
|
11212
11252
|
])
|
|
11213
11253
|
], 4),
|
|
11214
|
-
createElementVNode("view", _hoisted_3$
|
|
11254
|
+
createElementVNode("view", _hoisted_3$s, [
|
|
11215
11255
|
renderSlot(_ctx.$slots, "default")
|
|
11216
11256
|
]),
|
|
11217
11257
|
createElementVNode("view", _hoisted_4$n, [
|
|
@@ -11246,7 +11286,7 @@ const _sfc_main$W = create$W({
|
|
|
11246
11286
|
type: String,
|
|
11247
11287
|
default: "danger"
|
|
11248
11288
|
},
|
|
11249
|
-
|
|
11289
|
+
visible: {
|
|
11250
11290
|
type: Boolean,
|
|
11251
11291
|
default: false
|
|
11252
11292
|
},
|
|
@@ -11262,58 +11302,47 @@ const _sfc_main$W = create$W({
|
|
|
11262
11302
|
onClick: Function,
|
|
11263
11303
|
unmount: Function
|
|
11264
11304
|
},
|
|
11265
|
-
|
|
11266
|
-
|
|
11267
|
-
const state = reactive({
|
|
11268
|
-
mounted: false
|
|
11269
|
-
});
|
|
11270
|
-
onMounted(() => {
|
|
11271
|
-
});
|
|
11272
|
-
const showPopup = ref(props.modelVisible);
|
|
11305
|
+
emits: ["update:visible"],
|
|
11306
|
+
setup(props, { emit }) {
|
|
11273
11307
|
const clickCover = () => {
|
|
11274
11308
|
props.onClick && props.onClick();
|
|
11275
11309
|
};
|
|
11310
|
+
let timer = null;
|
|
11276
11311
|
const clearTimer = () => {
|
|
11277
|
-
|
|
11278
|
-
|
|
11279
|
-
timer = null;
|
|
11280
|
-
}
|
|
11312
|
+
timer && clearTimeout(timer);
|
|
11313
|
+
timer = null;
|
|
11281
11314
|
};
|
|
11282
11315
|
const hide = () => {
|
|
11283
|
-
|
|
11284
|
-
};
|
|
11285
|
-
const show = () => {
|
|
11286
|
-
clearTimer();
|
|
11287
|
-
if (props.duration) {
|
|
11288
|
-
timer = setTimeout(() => {
|
|
11289
|
-
hide();
|
|
11290
|
-
}, props.duration);
|
|
11291
|
-
}
|
|
11316
|
+
emit("update:visible", false);
|
|
11292
11317
|
};
|
|
11293
|
-
|
|
11294
|
-
|
|
11295
|
-
|
|
11296
|
-
|
|
11297
|
-
|
|
11298
|
-
|
|
11299
|
-
if (
|
|
11300
|
-
|
|
11318
|
+
const isShowPopup = ref(false);
|
|
11319
|
+
const unWatch = watch(
|
|
11320
|
+
() => props.visible,
|
|
11321
|
+
(newVal) => {
|
|
11322
|
+
isShowPopup.value = props.visible;
|
|
11323
|
+
const DURATION = props.duration;
|
|
11324
|
+
if (newVal && DURATION) {
|
|
11325
|
+
timer = setTimeout(() => {
|
|
11326
|
+
hide();
|
|
11327
|
+
}, DURATION);
|
|
11301
11328
|
}
|
|
11302
|
-
}
|
|
11329
|
+
},
|
|
11330
|
+
{ immediate: true }
|
|
11303
11331
|
);
|
|
11304
11332
|
const onAfterLeave = () => {
|
|
11305
11333
|
clearTimer();
|
|
11334
|
+
unWatch && unWatch();
|
|
11306
11335
|
props.unmount && props.unmount(props.id);
|
|
11307
11336
|
props.onClose && props.onClose();
|
|
11308
11337
|
};
|
|
11309
|
-
return {
|
|
11338
|
+
return { onAfterLeave, clickCover, isShowPopup };
|
|
11310
11339
|
}
|
|
11311
11340
|
});
|
|
11312
11341
|
function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11313
11342
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
11314
11343
|
return openBlock(), createBlock(_component_nut_popup, {
|
|
11315
|
-
visible: _ctx.
|
|
11316
|
-
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.
|
|
11344
|
+
visible: _ctx.isShowPopup,
|
|
11345
|
+
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.isShowPopup = $event),
|
|
11317
11346
|
position: _ctx.position,
|
|
11318
11347
|
overlay: false,
|
|
11319
11348
|
isWrapTeleport: _ctx.isWrapTeleport
|
|
@@ -12056,7 +12085,7 @@ const _hoisted_1$J = {
|
|
|
12056
12085
|
key: 1,
|
|
12057
12086
|
class: "nut-toast-title"
|
|
12058
12087
|
};
|
|
12059
|
-
const _hoisted_2$
|
|
12088
|
+
const _hoisted_2$A = ["innerHTML"];
|
|
12060
12089
|
function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12061
12090
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
12062
12091
|
return openBlock(), createBlock(Transition, {
|
|
@@ -12092,7 +12121,7 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12092
12121
|
createElementVNode("view", {
|
|
12093
12122
|
class: "nut-toast-text",
|
|
12094
12123
|
innerHTML: _ctx.msg
|
|
12095
|
-
}, null, 8, _hoisted_2$
|
|
12124
|
+
}, null, 8, _hoisted_2$A)
|
|
12096
12125
|
], 4)
|
|
12097
12126
|
], 6), [
|
|
12098
12127
|
[vShow, _ctx.state.mounted]
|
|
@@ -12385,11 +12414,11 @@ const _sfc_main$S = create$S({
|
|
|
12385
12414
|
}
|
|
12386
12415
|
});
|
|
12387
12416
|
const _hoisted_1$I = { class: "nut-audio" };
|
|
12388
|
-
const _hoisted_2$
|
|
12417
|
+
const _hoisted_2$z = {
|
|
12389
12418
|
key: 0,
|
|
12390
12419
|
class: "progress-wrapper"
|
|
12391
12420
|
};
|
|
12392
|
-
const _hoisted_3$
|
|
12421
|
+
const _hoisted_3$r = { class: "time" };
|
|
12393
12422
|
const _hoisted_4$m = { class: "progress-bar-wrapper" };
|
|
12394
12423
|
const _hoisted_5$f = /* @__PURE__ */ createElementVNode("div", { class: "custom-button" }, null, -1);
|
|
12395
12424
|
const _hoisted_6$e = { class: "time" };
|
|
@@ -12402,8 +12431,8 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12402
12431
|
const _component_nut_range = resolveComponent("nut-range");
|
|
12403
12432
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
12404
12433
|
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
12405
|
-
_ctx.type == "progress" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12406
|
-
createElementVNode("div", _hoisted_3$
|
|
12434
|
+
_ctx.type == "progress" ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
|
|
12435
|
+
createElementVNode("div", _hoisted_3$r, toDisplayString(_ctx.currentDuration), 1),
|
|
12407
12436
|
createElementVNode("div", _hoisted_4$m, [
|
|
12408
12437
|
createVNode(_component_nut_range, {
|
|
12409
12438
|
modelValue: _ctx.percent,
|
|
@@ -12673,11 +12702,11 @@ const _sfc_main$Q = create$Q({
|
|
|
12673
12702
|
}
|
|
12674
12703
|
});
|
|
12675
12704
|
const _hoisted_1$G = ["src", "alt"];
|
|
12676
|
-
const _hoisted_2$
|
|
12705
|
+
const _hoisted_2$y = {
|
|
12677
12706
|
key: 2,
|
|
12678
12707
|
class: "text"
|
|
12679
12708
|
};
|
|
12680
|
-
const _hoisted_3$
|
|
12709
|
+
const _hoisted_3$q = {
|
|
12681
12710
|
key: 1,
|
|
12682
12711
|
class: "text"
|
|
12683
12712
|
};
|
|
@@ -12701,11 +12730,11 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12701
12730
|
class: "icon",
|
|
12702
12731
|
name: _ctx.iconStyles
|
|
12703
12732
|
}), null, 16, ["name"])) : createCommentVNode("", true),
|
|
12704
|
-
_ctx.isShowText ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
12733
|
+
_ctx.isShowText ? (openBlock(), createElementBlock("view", _hoisted_2$y, [
|
|
12705
12734
|
renderSlot(_ctx.$slots, "default")
|
|
12706
12735
|
])) : createCommentVNode("", true)
|
|
12707
12736
|
], 64)) : createCommentVNode("", true),
|
|
12708
|
-
_ctx.showMax ? (openBlock(), createElementBlock("view", _hoisted_3$
|
|
12737
|
+
_ctx.showMax ? (openBlock(), createElementBlock("view", _hoisted_3$q, toDisplayString(((_j = (_i = _ctx.avatarGroup) == null ? void 0 : _i.props) == null ? void 0 : _j.maxContent) ? (_l = (_k = _ctx.avatarGroup) == null ? void 0 : _k.props) == null ? void 0 : _l.maxContent : `+ ${_ctx.maxIndex - ((_n = (_m = _ctx.avatarGroup) == null ? void 0 : _m.props) == null ? void 0 : _n.maxCount)}`), 1)) : createCommentVNode("", true)
|
|
12709
12738
|
], 6)) : createCommentVNode("", true);
|
|
12710
12739
|
}
|
|
12711
12740
|
var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$P]]);
|
|
@@ -13119,8 +13148,8 @@ const _sfc_main$M = create$M({
|
|
|
13119
13148
|
}
|
|
13120
13149
|
});
|
|
13121
13150
|
const _hoisted_1$E = { viewBox: "0 0 100 100" };
|
|
13122
|
-
const _hoisted_2$
|
|
13123
|
-
const _hoisted_3$
|
|
13151
|
+
const _hoisted_2$x = ["id"];
|
|
13152
|
+
const _hoisted_3$p = ["offset", "stop-color"];
|
|
13124
13153
|
const _hoisted_4$l = ["d", "stroke-width"];
|
|
13125
13154
|
const _hoisted_5$e = ["d", "stroke", "stroke-linecap", "stroke-width"];
|
|
13126
13155
|
const _hoisted_6$d = { class: "nut-circleprogress-text" };
|
|
@@ -13144,9 +13173,9 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13144
13173
|
key: index,
|
|
13145
13174
|
offset: item.key,
|
|
13146
13175
|
"stop-color": item.value
|
|
13147
|
-
}, null, 8, _hoisted_3$
|
|
13176
|
+
}, null, 8, _hoisted_3$p);
|
|
13148
13177
|
}), 128))
|
|
13149
|
-
], 8, _hoisted_2$
|
|
13178
|
+
], 8, _hoisted_2$x)
|
|
13150
13179
|
]),
|
|
13151
13180
|
createElementVNode("path", {
|
|
13152
13181
|
class: "nut-circleprogress-path",
|
|
@@ -13446,7 +13475,8 @@ const _sfc_main$L = create$L({
|
|
|
13446
13475
|
onAnimationEnd,
|
|
13447
13476
|
go,
|
|
13448
13477
|
handleClickIcon,
|
|
13449
|
-
slots
|
|
13478
|
+
slots,
|
|
13479
|
+
pxCheck
|
|
13450
13480
|
};
|
|
13451
13481
|
}
|
|
13452
13482
|
});
|
|
@@ -13454,7 +13484,7 @@ const _hoisted_1$D = {
|
|
|
13454
13484
|
ref: "wrap",
|
|
13455
13485
|
class: "wrap"
|
|
13456
13486
|
};
|
|
13457
|
-
const _hoisted_2$
|
|
13487
|
+
const _hoisted_2$w = ["onClick"];
|
|
13458
13488
|
function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13459
13489
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
13460
13490
|
const _component_ScrollItem = resolveComponent("ScrollItem");
|
|
@@ -13535,9 +13565,9 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13535
13565
|
return openBlock(), createElementBlock("li", {
|
|
13536
13566
|
class: "horseLamp_list_item",
|
|
13537
13567
|
key: index,
|
|
13538
|
-
style: normalizeStyle({ height: _ctx.height }),
|
|
13568
|
+
style: normalizeStyle({ height: _ctx.pxCheck(_ctx.height) }),
|
|
13539
13569
|
onClick: ($event) => _ctx.go(item)
|
|
13540
|
-
}, toDisplayString(item), 13, _hoisted_2$
|
|
13570
|
+
}, toDisplayString(item), 13, _hoisted_2$w);
|
|
13541
13571
|
}), 128))
|
|
13542
13572
|
], 4)),
|
|
13543
13573
|
createElementVNode("view", {
|
|
@@ -13597,8 +13627,8 @@ const _sfc_main$K = create$K({
|
|
|
13597
13627
|
}
|
|
13598
13628
|
});
|
|
13599
13629
|
const _hoisted_1$C = { class: "nut-empty" };
|
|
13600
|
-
const _hoisted_2$
|
|
13601
|
-
const _hoisted_3$
|
|
13630
|
+
const _hoisted_2$v = ["src"];
|
|
13631
|
+
const _hoisted_3$o = {
|
|
13602
13632
|
key: 1,
|
|
13603
13633
|
class: "nut-empty-description"
|
|
13604
13634
|
};
|
|
@@ -13613,14 +13643,30 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13613
13643
|
key: 0,
|
|
13614
13644
|
class: "img",
|
|
13615
13645
|
src: _ctx.imageUrl
|
|
13616
|
-
}, null, 8, _hoisted_2$
|
|
13646
|
+
}, null, 8, _hoisted_2$v)) : createCommentVNode("", true)
|
|
13617
13647
|
], 64))
|
|
13618
13648
|
], 4),
|
|
13619
|
-
_ctx.$slots.description ? renderSlot(_ctx.$slots, "description", { key: 0 }) : (openBlock(), createElementBlock("view", _hoisted_3$
|
|
13649
|
+
_ctx.$slots.description ? renderSlot(_ctx.$slots, "description", { key: 0 }) : (openBlock(), createElementBlock("view", _hoisted_3$o, toDisplayString(_ctx.description || _ctx.translate("noData")), 1)),
|
|
13620
13650
|
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 2 }) : createCommentVNode("", true)
|
|
13621
13651
|
]);
|
|
13622
13652
|
}
|
|
13623
13653
|
var Empty = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$J]]);
|
|
13654
|
+
function throttle(fn2, delay) {
|
|
13655
|
+
let timer = null;
|
|
13656
|
+
let startTime = Date.now();
|
|
13657
|
+
return function() {
|
|
13658
|
+
let now = Date.now();
|
|
13659
|
+
let remaining = delay - (now - startTime);
|
|
13660
|
+
if (timer)
|
|
13661
|
+
clearTimeout(timer);
|
|
13662
|
+
if (remaining <= 0) {
|
|
13663
|
+
fn2.apply(null, arguments);
|
|
13664
|
+
startTime = Date.now();
|
|
13665
|
+
} else {
|
|
13666
|
+
timer = setTimeout(fn2, remaining);
|
|
13667
|
+
}
|
|
13668
|
+
};
|
|
13669
|
+
}
|
|
13624
13670
|
const { create: create$J, translate: translate$c } = createComponent("video");
|
|
13625
13671
|
const _sfc_main$J = create$J({
|
|
13626
13672
|
props: {
|
|
@@ -13650,7 +13696,7 @@ const _sfc_main$J = create$J({
|
|
|
13650
13696
|
}
|
|
13651
13697
|
},
|
|
13652
13698
|
components: {},
|
|
13653
|
-
emits: ["click", "play", "pause", "playend"],
|
|
13699
|
+
emits: ["click", "play", "pause", "playend", "time"],
|
|
13654
13700
|
setup(props, { emit }) {
|
|
13655
13701
|
const state = reactive({
|
|
13656
13702
|
videoElm: null,
|
|
@@ -13736,6 +13782,7 @@ const _sfc_main$J = create$J({
|
|
|
13736
13782
|
emit("pause", state.videoElm);
|
|
13737
13783
|
});
|
|
13738
13784
|
state.videoElm.addEventListener("ended", playEnded);
|
|
13785
|
+
state.videoElm.addEventListener("timeupdate", throttle(getPlayTime, 1e3));
|
|
13739
13786
|
}
|
|
13740
13787
|
};
|
|
13741
13788
|
const customerInit = () => {
|
|
@@ -13761,6 +13808,7 @@ const _sfc_main$J = create$J({
|
|
|
13761
13808
|
state.videoElm.addEventListener("progress", () => {
|
|
13762
13809
|
getLoadTime();
|
|
13763
13810
|
});
|
|
13811
|
+
state.videoElm.addEventListener("timeupdate", throttle(getPlayTime, 1e3, 1));
|
|
13764
13812
|
state.videoElm.addEventListener("ended", playEnded);
|
|
13765
13813
|
emit("play", state.videoElm);
|
|
13766
13814
|
} catch (e) {
|
|
@@ -13772,10 +13820,38 @@ const _sfc_main$J = create$J({
|
|
|
13772
13820
|
}
|
|
13773
13821
|
}
|
|
13774
13822
|
};
|
|
13823
|
+
const timeFormat = (t) => {
|
|
13824
|
+
var h2 = Math.floor(t / 3600);
|
|
13825
|
+
if (h2 < 10) {
|
|
13826
|
+
h2 = "0" + h2;
|
|
13827
|
+
}
|
|
13828
|
+
var m = Math.floor(t % 3600 / 60);
|
|
13829
|
+
if (m < 10) {
|
|
13830
|
+
m = "0" + m;
|
|
13831
|
+
}
|
|
13832
|
+
var s = Math.round(t % 3600 % 60);
|
|
13833
|
+
if (s < 10) {
|
|
13834
|
+
s = "0" + s;
|
|
13835
|
+
}
|
|
13836
|
+
var str = "";
|
|
13837
|
+
if (h2 != 0) {
|
|
13838
|
+
str = h2 + ":" + m + ":" + s;
|
|
13839
|
+
} else {
|
|
13840
|
+
str = m + ":" + s;
|
|
13841
|
+
}
|
|
13842
|
+
return str;
|
|
13843
|
+
};
|
|
13775
13844
|
const getLoadTime = () => {
|
|
13776
13845
|
if (state.videoSet.loaded)
|
|
13777
13846
|
state.videoSet.loaded = state.videoElm.buffered.end(0) / state.videoElm.duration * 100;
|
|
13778
13847
|
};
|
|
13848
|
+
const getPlayTime = () => {
|
|
13849
|
+
const percent = state.videoElm.currentTime / state.videoElm.duration;
|
|
13850
|
+
state.videoSet.progress.current = Math.round(state.videoSet.progress.width * percent);
|
|
13851
|
+
state.videoSet.totalTime = timeFormat(state.videoElm.duration);
|
|
13852
|
+
state.videoSet.displayTime = timeFormat(state.videoElm.currentTime);
|
|
13853
|
+
emit("time", state.videoSet.displayTime, state.videoSet.totalTime);
|
|
13854
|
+
};
|
|
13779
13855
|
const playEnded = () => {
|
|
13780
13856
|
state.state.playing = false;
|
|
13781
13857
|
state.state.isEnd = true;
|
|
@@ -13856,8 +13932,8 @@ const _hoisted_1$B = {
|
|
|
13856
13932
|
class: "nut-video",
|
|
13857
13933
|
ref: "videocon"
|
|
13858
13934
|
};
|
|
13859
|
-
const _hoisted_2$
|
|
13860
|
-
const _hoisted_3$
|
|
13935
|
+
const _hoisted_2$u = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
|
|
13936
|
+
const _hoisted_3$n = ["src", "type"];
|
|
13861
13937
|
const _hoisted_4$k = { class: "current-time" };
|
|
13862
13938
|
const _hoisted_5$d = { class: "progress-container" };
|
|
13863
13939
|
const _hoisted_6$c = {
|
|
@@ -13891,8 +13967,8 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13891
13967
|
createElementVNode("source", {
|
|
13892
13968
|
src: _ctx.source.src,
|
|
13893
13969
|
type: _ctx.source.type
|
|
13894
|
-
}, null, 8, _hoisted_3$
|
|
13895
|
-
], 40, _hoisted_2$
|
|
13970
|
+
}, null, 8, _hoisted_3$n)
|
|
13971
|
+
], 40, _hoisted_2$u),
|
|
13896
13972
|
_ctx.showToolbox && !_ctx.isDisabled ? (openBlock(), createElementBlock("div", {
|
|
13897
13973
|
key: 0,
|
|
13898
13974
|
class: "playing-mask",
|
|
@@ -14071,8 +14147,8 @@ const _sfc_main$H = create$H({
|
|
|
14071
14147
|
}
|
|
14072
14148
|
});
|
|
14073
14149
|
const _hoisted_1$A = { class: "nut-step-head" };
|
|
14074
|
-
const _hoisted_2$
|
|
14075
|
-
const _hoisted_3$
|
|
14150
|
+
const _hoisted_2$t = /* @__PURE__ */ createElementVNode("view", { class: "nut-step-line" }, null, -1);
|
|
14151
|
+
const _hoisted_3$m = {
|
|
14076
14152
|
key: 2,
|
|
14077
14153
|
class: "nut-step-inner"
|
|
14078
14154
|
};
|
|
@@ -14091,7 +14167,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14091
14167
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClickStep && _ctx.handleClickStep(...args))
|
|
14092
14168
|
}, [
|
|
14093
14169
|
createElementVNode("view", _hoisted_1$A, [
|
|
14094
|
-
_hoisted_2$
|
|
14170
|
+
_hoisted_2$t,
|
|
14095
14171
|
createElementVNode("view", {
|
|
14096
14172
|
class: normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
|
|
14097
14173
|
}, [
|
|
@@ -14102,7 +14178,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14102
14178
|
color: _ctx.iconColor,
|
|
14103
14179
|
name: _ctx.icon,
|
|
14104
14180
|
size: _ctx.size
|
|
14105
|
-
}), null, 16, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3$
|
|
14181
|
+
}), null, 16, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3$m, toDisplayString(_ctx.index), 1))
|
|
14106
14182
|
], 2)
|
|
14107
14183
|
]),
|
|
14108
14184
|
createElementVNode("view", _hoisted_4$j, [
|
|
@@ -14711,7 +14787,7 @@ const _sfc_main$E = create$E({
|
|
|
14711
14787
|
}
|
|
14712
14788
|
});
|
|
14713
14789
|
const _hoisted_1$z = ["innerHTML"];
|
|
14714
|
-
const _hoisted_2$
|
|
14790
|
+
const _hoisted_2$s = ["innerHTML"];
|
|
14715
14791
|
function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14716
14792
|
return openBlock(), createElementBlock("view", {
|
|
14717
14793
|
class: normalizeClass(_ctx.classes)
|
|
@@ -14735,7 +14811,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14735
14811
|
key: 2,
|
|
14736
14812
|
class: normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
|
|
14737
14813
|
innerHTML: _ctx.showSymbol
|
|
14738
|
-
}, null, 10, _hoisted_2$
|
|
14814
|
+
}, null, 10, _hoisted_2$s)) : createCommentVNode("", true)
|
|
14739
14815
|
], 2);
|
|
14740
14816
|
}
|
|
14741
14817
|
var Price = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$E]]);
|
|
@@ -14897,6 +14973,9 @@ const _sfc_main$D = create$D({
|
|
|
14897
14973
|
}
|
|
14898
14974
|
};
|
|
14899
14975
|
const checkTap = () => {
|
|
14976
|
+
if (fingerNum == 1 && props.video && props.video.source) {
|
|
14977
|
+
return;
|
|
14978
|
+
}
|
|
14900
14979
|
if (fingerNum > 1) {
|
|
14901
14980
|
return;
|
|
14902
14981
|
}
|
|
@@ -14918,6 +14997,7 @@ const _sfc_main$D = create$D({
|
|
|
14918
14997
|
}
|
|
14919
14998
|
};
|
|
14920
14999
|
const onTouchEnd = (event) => {
|
|
15000
|
+
console.log("ontauchend");
|
|
14921
15001
|
let stopPropagation = false;
|
|
14922
15002
|
if (state.moving || state.zooming) {
|
|
14923
15003
|
stopPropagation = true;
|
|
@@ -14955,6 +15035,10 @@ const _sfc_main$D = create$D({
|
|
|
14955
15035
|
}
|
|
14956
15036
|
};
|
|
14957
15037
|
const clamp = (num, min, max) => Math.min(Math.max(num, min), max);
|
|
15038
|
+
const closeSwiper = (event) => {
|
|
15039
|
+
console.log("\u5173\u95ED\u89C6\u9891");
|
|
15040
|
+
emit("close");
|
|
15041
|
+
};
|
|
14958
15042
|
watch(() => props.initNo, resetScale);
|
|
14959
15043
|
watch(
|
|
14960
15044
|
() => props.show,
|
|
@@ -14971,45 +15055,49 @@ const _sfc_main$D = create$D({
|
|
|
14971
15055
|
onTouchEnd,
|
|
14972
15056
|
getDistance,
|
|
14973
15057
|
imageStyle,
|
|
14974
|
-
imageLoad
|
|
15058
|
+
imageLoad,
|
|
15059
|
+
closeSwiper
|
|
14975
15060
|
};
|
|
14976
15061
|
}
|
|
14977
15062
|
});
|
|
14978
15063
|
const _hoisted_1$y = ["src"];
|
|
14979
|
-
const _hoisted_2$s = {
|
|
14980
|
-
key: 1,
|
|
14981
|
-
class: "nut-imagepreview-box"
|
|
14982
|
-
};
|
|
14983
15064
|
function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14984
15065
|
const _component_nut_video = resolveComponent("nut-video");
|
|
14985
15066
|
const _component_nut_swiper_item = resolveComponent("nut-swiper-item");
|
|
14986
|
-
return openBlock(), createBlock(_component_nut_swiper_item, {
|
|
14987
|
-
onTouchstart: _ctx.onTouchStart,
|
|
14988
|
-
onTouchmove: _ctx.onTouchMove,
|
|
14989
|
-
onTouchend: _ctx.onTouchEnd,
|
|
14990
|
-
onTouchcancel: _ctx.onTouchEnd
|
|
14991
|
-
}, {
|
|
15067
|
+
return openBlock(), createBlock(_component_nut_swiper_item, { onClick: _ctx.closeSwiper }, {
|
|
14992
15068
|
default: withCtx(() => [
|
|
14993
15069
|
_ctx.image && _ctx.image.src ? (openBlock(), createElementBlock("view", {
|
|
14994
15070
|
key: 0,
|
|
14995
15071
|
style: normalizeStyle(_ctx.imageStyle),
|
|
14996
|
-
class: "nut-imagepreview-box"
|
|
15072
|
+
class: "nut-imagepreview-box",
|
|
15073
|
+
onTouchstart: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
15074
|
+
onTouchmove: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
|
|
15075
|
+
onTouchend: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
|
|
15076
|
+
onTouchcancel: _cache[4] || (_cache[4] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
14997
15077
|
}, [
|
|
14998
15078
|
createElementVNode("img", {
|
|
14999
15079
|
src: _ctx.image.src,
|
|
15000
15080
|
class: "nut-imagepreview-img",
|
|
15001
15081
|
onLoad: _cache[0] || (_cache[0] = (...args) => _ctx.imageLoad && _ctx.imageLoad(...args))
|
|
15002
15082
|
}, null, 40, _hoisted_1$y)
|
|
15003
|
-
],
|
|
15004
|
-
_ctx.video && _ctx.video.source ? (openBlock(), createElementBlock("view",
|
|
15083
|
+
], 36)) : createCommentVNode("", true),
|
|
15084
|
+
_ctx.video && _ctx.video.source ? (openBlock(), createElementBlock("view", {
|
|
15085
|
+
key: 1,
|
|
15086
|
+
class: "nut-imagepreview-box",
|
|
15087
|
+
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.videoClick && _ctx.videoClick(...args)),
|
|
15088
|
+
onTouchstart: _cache[6] || (_cache[6] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
15089
|
+
onTouchmove: _cache[7] || (_cache[7] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
|
|
15090
|
+
onTouchend: _cache[8] || (_cache[8] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
|
|
15091
|
+
onTouchcancel: _cache[9] || (_cache[9] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
15092
|
+
}, [
|
|
15005
15093
|
createVNode(_component_nut_video, {
|
|
15006
15094
|
source: _ctx.video.source,
|
|
15007
15095
|
options: _ctx.video.options
|
|
15008
15096
|
}, null, 8, ["source", "options"])
|
|
15009
|
-
])) : createCommentVNode("", true)
|
|
15097
|
+
], 32)) : createCommentVNode("", true)
|
|
15010
15098
|
]),
|
|
15011
15099
|
_: 1
|
|
15012
|
-
}, 8, ["
|
|
15100
|
+
}, 8, ["onClick"]);
|
|
15013
15101
|
}
|
|
15014
15102
|
var ImagePreviewItem = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$D]]);
|
|
15015
15103
|
const { create: create$C } = createComponent("imagepreview");
|
|
@@ -15075,6 +15163,10 @@ const _sfc_main$C = create$C({
|
|
|
15075
15163
|
maxZoom: {
|
|
15076
15164
|
type: Number,
|
|
15077
15165
|
default: 3
|
|
15166
|
+
},
|
|
15167
|
+
isLoop: {
|
|
15168
|
+
type: Boolean,
|
|
15169
|
+
default: true
|
|
15078
15170
|
}
|
|
15079
15171
|
},
|
|
15080
15172
|
emits: ["close", "change"],
|
|
@@ -15188,7 +15280,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15188
15280
|
key: 0,
|
|
15189
15281
|
"auto-play": _ctx.autoplay,
|
|
15190
15282
|
class: "nut-imagepreview-swiper",
|
|
15191
|
-
loop:
|
|
15283
|
+
loop: _ctx.isLoop,
|
|
15192
15284
|
"is-preventDefault": false,
|
|
15193
15285
|
direction: "horizontal",
|
|
15194
15286
|
onChange: _ctx.slideChangeEnd,
|
|
@@ -15223,7 +15315,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15223
15315
|
}), 128))
|
|
15224
15316
|
]),
|
|
15225
15317
|
_: 1
|
|
15226
|
-
}, 8, ["auto-play", "onChange", "init-page", "pagination-visible", "pagination-color"])) : createCommentVNode("", true)
|
|
15318
|
+
}, 8, ["auto-play", "loop", "onChange", "init-page", "pagination-visible", "pagination-color"])) : createCommentVNode("", true)
|
|
15227
15319
|
], 512),
|
|
15228
15320
|
_ctx.showIndex ? (openBlock(), createElementBlock("view", _hoisted_2$r, toDisplayString(_ctx.active) + " / " + toDisplayString(_ctx.images.length + _ctx.videos.length), 1)) : createCommentVNode("", true),
|
|
15229
15321
|
_ctx.closeable ? (openBlock(), createElementBlock("view", {
|
|
@@ -16154,19 +16246,23 @@ const _sfc_main$z = create$z({
|
|
|
16154
16246
|
}
|
|
16155
16247
|
});
|
|
16156
16248
|
const _hoisted_1$u = { class: "nut-badge" };
|
|
16157
|
-
const _hoisted_2$p =
|
|
16158
|
-
const _hoisted_3$m = ["textContent"];
|
|
16249
|
+
const _hoisted_2$p = ["textContent"];
|
|
16159
16250
|
function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16160
16251
|
return openBlock(), createElementBlock("view", _hoisted_1$u, [
|
|
16161
|
-
createElementVNode("view",
|
|
16252
|
+
withDirectives(createElementVNode("view", {
|
|
16253
|
+
class: "slot-icons",
|
|
16254
|
+
style: normalizeStyle(_ctx.stl)
|
|
16255
|
+
}, [
|
|
16162
16256
|
renderSlot(_ctx.$slots, "icons")
|
|
16257
|
+
], 4), [
|
|
16258
|
+
[vShow, !_ctx.hidden && !_ctx.dot]
|
|
16163
16259
|
]),
|
|
16164
16260
|
renderSlot(_ctx.$slots, "default"),
|
|
16165
16261
|
withDirectives(createElementVNode("view", {
|
|
16166
16262
|
textContent: toDisplayString(_ctx.content),
|
|
16167
16263
|
class: normalizeClass(["nut-badge__content sup", { "is-dot": _ctx.dot }]),
|
|
16168
16264
|
style: normalizeStyle(_ctx.stl)
|
|
16169
|
-
}, null, 14,
|
|
16265
|
+
}, null, 14, _hoisted_2$p), [
|
|
16170
16266
|
[vShow, !_ctx.hidden && (_ctx.content || _ctx.dot)]
|
|
16171
16267
|
])
|
|
16172
16268
|
]);
|
|
@@ -21745,6 +21841,6 @@ function install(app) {
|
|
|
21745
21841
|
}
|
|
21746
21842
|
});
|
|
21747
21843
|
}
|
|
21748
|
-
const version = "3.2.
|
|
21844
|
+
const version = "3.2.6-beta.2";
|
|
21749
21845
|
var nutui_vue_build = { install, version, Locale };
|
|
21750
21846
|
export { ActionSheet, Address, AddressList, Animate, Audio, AudioOperate, Avatar, AvatarGroup, BackTop, Badge, Barrage, Button, Calendar, CalendarItem, Card, Cascader, Category, CategoryPane, Cell, CellGroup, _sfc_main$1i as Checkbox, _sfc_main$1h as CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, Comment, _sfc_main$1L as ConfigProvider, CountDown, CountUp, DatePicker, _Dialog as Dialog, Divider, Drag, Ecard, Elevator, Ellipsis, Empty, FixedNav, Form, FormItem, _sfc_main$1E as Grid, GridItem, _sfc_main$1R as Icon, Image$1 as Image, _ImagePreview as ImagePreview, Indicator, InfiniteLoading, Input, InputNumber, Invoice, _sfc_main$1J as Layout, List, Locale, Menu, MenuItem, Navbar, NoticeBar, NotifyFunction as Notify, NumberKeyboard, OldPicker, OverLay, Pagination, Picker, Popover, Popup, Price, Progress, PullRefresh, _sfc_main$1b as Radio, _sfc_main$1a as RadioGroup, Range, Rate, Row, SearchBar, ShortPassword, SideNavBar, SideNavBarItem, Signature, Skeleton, Sku, Step, _sfc_main$I as Steps, _sfc_main$1G 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 };
|