@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.umd.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
|
*/
|
|
@@ -537,11 +537,11 @@
|
|
|
537
537
|
key: 0,
|
|
538
538
|
class: "nut-cell__icon"
|
|
539
539
|
};
|
|
540
|
-
const _hoisted_2$
|
|
540
|
+
const _hoisted_2$13 = {
|
|
541
541
|
key: 1,
|
|
542
542
|
class: "nut-cell__title"
|
|
543
543
|
};
|
|
544
|
-
const _hoisted_3$
|
|
544
|
+
const _hoisted_3$O = { class: "title" };
|
|
545
545
|
const _hoisted_4$E = { class: "nut-cell__title-desc" };
|
|
546
546
|
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
547
547
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
@@ -559,10 +559,10 @@
|
|
|
559
559
|
}), null, 16, ["name"])) : vue.createCommentVNode("", true)
|
|
560
560
|
])
|
|
561
561
|
])) : vue.createCommentVNode("", true),
|
|
562
|
-
_ctx.title || _ctx.subTitle || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
562
|
+
_ctx.title || _ctx.subTitle || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$13, [
|
|
563
563
|
_ctx.subTitle ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
564
564
|
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
565
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
565
|
+
vue.createElementVNode("view", _hoisted_3$O, vue.toDisplayString(_ctx.title), 1)
|
|
566
566
|
]),
|
|
567
567
|
vue.createElementVNode("view", _hoisted_4$E, vue.toDisplayString(_ctx.subTitle), 1)
|
|
568
568
|
], 64)) : vue.renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
|
|
@@ -655,18 +655,18 @@
|
|
|
655
655
|
key: 1,
|
|
656
656
|
class: "nut-cell-group__title"
|
|
657
657
|
};
|
|
658
|
-
const _hoisted_2$
|
|
658
|
+
const _hoisted_2$12 = {
|
|
659
659
|
key: 3,
|
|
660
660
|
class: "nut-cell-group__desc"
|
|
661
661
|
};
|
|
662
|
-
const _hoisted_3$
|
|
662
|
+
const _hoisted_3$N = { class: "nut-cell-group__warp" };
|
|
663
663
|
function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
664
664
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
665
665
|
class: vue.normalizeClass(_ctx.classes)
|
|
666
666
|
}, [
|
|
667
667
|
_ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$1j, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
|
|
668
|
-
_ctx.$slots.desc ? vue.renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
669
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
668
|
+
_ctx.$slots.desc ? vue.renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$12, vue.toDisplayString(_ctx.desc), 1)) : vue.createCommentVNode("", true),
|
|
669
|
+
vue.createElementVNode("view", _hoisted_3$N, [
|
|
670
670
|
vue.renderSlot(_ctx.$slots, "default")
|
|
671
671
|
])
|
|
672
672
|
], 2);
|
|
@@ -1181,11 +1181,11 @@
|
|
|
1181
1181
|
}
|
|
1182
1182
|
});
|
|
1183
1183
|
const _hoisted_1$1h = ["src", "alt"];
|
|
1184
|
-
const _hoisted_2$
|
|
1184
|
+
const _hoisted_2$11 = {
|
|
1185
1185
|
key: 0,
|
|
1186
1186
|
class: "nut-img-loading"
|
|
1187
1187
|
};
|
|
1188
|
-
const _hoisted_3$
|
|
1188
|
+
const _hoisted_3$M = {
|
|
1189
1189
|
key: 1,
|
|
1190
1190
|
class: "nut-img-error"
|
|
1191
1191
|
};
|
|
@@ -1204,14 +1204,14 @@
|
|
|
1204
1204
|
onError: _cache[1] || (_cache[1] = (...args) => _ctx.error && _ctx.error(...args)),
|
|
1205
1205
|
style: vue.normalizeStyle(_ctx.styles)
|
|
1206
1206
|
}, null, 44, _hoisted_1$1h),
|
|
1207
|
-
_ctx.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
1207
|
+
_ctx.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$11, [
|
|
1208
1208
|
!_ctx.slotLoding ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
1209
1209
|
key: 0,
|
|
1210
1210
|
name: "image"
|
|
1211
1211
|
})) : vue.createCommentVNode("", true),
|
|
1212
1212
|
vue.renderSlot(_ctx.$slots, "loading")
|
|
1213
1213
|
])) : vue.createCommentVNode("", true),
|
|
1214
|
-
_ctx.isError && !_ctx.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$
|
|
1214
|
+
_ctx.isError && !_ctx.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$M, [
|
|
1215
1215
|
!_ctx.slotError ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
1216
1216
|
key: 0,
|
|
1217
1217
|
name: "image-error"
|
|
@@ -1919,11 +1919,11 @@
|
|
|
1919
1919
|
class: "nut-navbar--placeholder",
|
|
1920
1920
|
ref: "navBarWrap"
|
|
1921
1921
|
};
|
|
1922
|
-
const _hoisted_2$
|
|
1922
|
+
const _hoisted_2$10 = {
|
|
1923
1923
|
key: 1,
|
|
1924
1924
|
class: "nut-navbar__text"
|
|
1925
1925
|
};
|
|
1926
|
-
const _hoisted_3$
|
|
1926
|
+
const _hoisted_3$L = { class: "nut-navbar__title" };
|
|
1927
1927
|
const _hoisted_4$D = {
|
|
1928
1928
|
key: 0,
|
|
1929
1929
|
class: "nut-navbar__text"
|
|
@@ -1954,10 +1954,10 @@
|
|
|
1954
1954
|
color: "#979797",
|
|
1955
1955
|
name: "left"
|
|
1956
1956
|
})) : vue.createCommentVNode("", true),
|
|
1957
|
-
_ctx.leftText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
1957
|
+
_ctx.leftText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$10, vue.toDisplayString(_ctx.leftText), 1)) : vue.createCommentVNode("", true),
|
|
1958
1958
|
vue.renderSlot(_ctx.$slots, "left")
|
|
1959
1959
|
]),
|
|
1960
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
1960
|
+
vue.createElementVNode("view", _hoisted_3$L, [
|
|
1961
1961
|
_ctx.title ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
1962
1962
|
key: 0,
|
|
1963
1963
|
class: "title",
|
|
@@ -2088,8 +2088,8 @@
|
|
|
2088
2088
|
}
|
|
2089
2089
|
};
|
|
2090
2090
|
const _hoisted_1$1e = { class: "nut-fixednav__list" };
|
|
2091
|
-
const _hoisted_2
|
|
2092
|
-
const _hoisted_3$
|
|
2091
|
+
const _hoisted_2$$ = ["onClick"];
|
|
2092
|
+
const _hoisted_3$K = ["src"];
|
|
2093
2093
|
const _hoisted_4$C = { class: "span" };
|
|
2094
2094
|
const _hoisted_5$s = {
|
|
2095
2095
|
key: 0,
|
|
@@ -2119,10 +2119,10 @@
|
|
|
2119
2119
|
}, [
|
|
2120
2120
|
vue.createElementVNode("img", {
|
|
2121
2121
|
src: item.icon
|
|
2122
|
-
}, null, 8, _hoisted_3$
|
|
2122
|
+
}, null, 8, _hoisted_3$K),
|
|
2123
2123
|
vue.createElementVNode("view", _hoisted_4$C, vue.toDisplayString(item.text), 1),
|
|
2124
2124
|
item.num ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$s, vue.toDisplayString(item.num), 1)) : vue.createCommentVNode("", true)
|
|
2125
|
-
], 10, _hoisted_2
|
|
2125
|
+
], 10, _hoisted_2$$);
|
|
2126
2126
|
}), 128))
|
|
2127
2127
|
])
|
|
2128
2128
|
]),
|
|
@@ -2280,7 +2280,7 @@
|
|
|
2280
2280
|
}
|
|
2281
2281
|
});
|
|
2282
2282
|
const _hoisted_1$1d = ["onClick"];
|
|
2283
|
-
const _hoisted_2
|
|
2283
|
+
const _hoisted_2$_ = { class: "nut-menu__title-text" };
|
|
2284
2284
|
function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2285
2285
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
2286
2286
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -2300,7 +2300,7 @@
|
|
|
2300
2300
|
vue.createElementVNode("view", {
|
|
2301
2301
|
class: vue.normalizeClass(["nut-menu__title", _ctx.getClasses(item.state.showPopup)])
|
|
2302
2302
|
}, [
|
|
2303
|
-
vue.createElementVNode("view", _hoisted_2
|
|
2303
|
+
vue.createElementVNode("view", _hoisted_2$_, vue.toDisplayString(item.renderTitle()), 1),
|
|
2304
2304
|
vue.createVNode(_component_nut_icon, vue.mergeProps(_ctx.$attrs, {
|
|
2305
2305
|
name: _ctx.titleIcon || (_ctx.direction === "up" ? "arrow-up" : "down-arrow"),
|
|
2306
2306
|
size: "10",
|
|
@@ -2423,7 +2423,7 @@
|
|
|
2423
2423
|
}
|
|
2424
2424
|
});
|
|
2425
2425
|
const _hoisted_1$1c = { class: "nut-menu-item__content nut-menu-item__overflow" };
|
|
2426
|
-
const _hoisted_2$
|
|
2426
|
+
const _hoisted_2$Z = ["onClick"];
|
|
2427
2427
|
function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2428
2428
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
2429
2429
|
const _component_nut_popup = vue.resolveComponent("nut-popup");
|
|
@@ -2471,7 +2471,7 @@
|
|
|
2471
2471
|
class: vue.normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
|
|
2472
2472
|
style: vue.normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
|
|
2473
2473
|
}, vue.toDisplayString(option.text), 7)
|
|
2474
|
-
], 14, _hoisted_2$
|
|
2474
|
+
], 14, _hoisted_2$Z);
|
|
2475
2475
|
}), 128)),
|
|
2476
2476
|
vue.renderSlot(_ctx.$slots, "default")
|
|
2477
2477
|
])
|
|
@@ -2513,14 +2513,21 @@
|
|
|
2513
2513
|
safeAreaInsetBottom: {
|
|
2514
2514
|
type: Boolean,
|
|
2515
2515
|
default: false
|
|
2516
|
+
},
|
|
2517
|
+
placeholder: {
|
|
2518
|
+
type: Boolean,
|
|
2519
|
+
default: false
|
|
2516
2520
|
}
|
|
2517
2521
|
},
|
|
2518
2522
|
emits: ["tab-switch", "update:visible"],
|
|
2519
2523
|
setup(props, { emit, slots }) {
|
|
2524
|
+
const { bottom: bottom2, placeholder } = vue.toRefs(props);
|
|
2525
|
+
const height = vue.ref();
|
|
2520
2526
|
const mdValue = vue.reactive({
|
|
2521
2527
|
val: props.visible,
|
|
2522
2528
|
children: []
|
|
2523
2529
|
});
|
|
2530
|
+
const nutTabbar = vue.ref(null);
|
|
2524
2531
|
function changeIndex(index, active) {
|
|
2525
2532
|
emit("update:visible", active);
|
|
2526
2533
|
parentData.modelValue = active;
|
|
@@ -2541,17 +2548,39 @@
|
|
|
2541
2548
|
parentData.modelValue = value;
|
|
2542
2549
|
}
|
|
2543
2550
|
);
|
|
2551
|
+
vue.onMounted(() => {
|
|
2552
|
+
if (bottom2.value && placeholder.value) {
|
|
2553
|
+
vue.nextTick(() => {
|
|
2554
|
+
var _a;
|
|
2555
|
+
height.value = (_a = nutTabbar == null ? void 0 : nutTabbar.value) == null ? void 0 : _a.getBoundingClientRect().height;
|
|
2556
|
+
});
|
|
2557
|
+
}
|
|
2558
|
+
});
|
|
2544
2559
|
return {
|
|
2545
|
-
changeIndex
|
|
2560
|
+
changeIndex,
|
|
2561
|
+
nutTabbar,
|
|
2562
|
+
height
|
|
2546
2563
|
};
|
|
2547
2564
|
}
|
|
2548
2565
|
});
|
|
2549
2566
|
function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2550
|
-
return vue.openBlock(), vue.createElementBlock("
|
|
2567
|
+
return _ctx.bottom && _ctx.placeholder ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
2568
|
+
key: 0,
|
|
2569
|
+
class: "nut-tabbar__placeholder",
|
|
2570
|
+
style: vue.normalizeStyle({ height: _ctx.height + "px" })
|
|
2571
|
+
}, [
|
|
2572
|
+
vue.createElementVNode("view", {
|
|
2573
|
+
ref: "nutTabbar",
|
|
2574
|
+
class: vue.normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom, "nut-tabbar-safebottom": _ctx.safeAreaInsetBottom }])
|
|
2575
|
+
}, [
|
|
2576
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
2577
|
+
], 2)
|
|
2578
|
+
], 4)) : (vue.openBlock(), vue.createElementBlock("view", {
|
|
2579
|
+
key: 1,
|
|
2551
2580
|
class: vue.normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom, "nut-tabbar-safebottom": _ctx.safeAreaInsetBottom }])
|
|
2552
2581
|
}, [
|
|
2553
2582
|
vue.renderSlot(_ctx.$slots, "default")
|
|
2554
|
-
], 2);
|
|
2583
|
+
], 2));
|
|
2555
2584
|
}
|
|
2556
2585
|
var Tabbar = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["render", _sfc_render$1r]]);
|
|
2557
2586
|
const { create: create$1x } = createComponent("tabbar-item");
|
|
@@ -2665,11 +2694,11 @@
|
|
|
2665
2694
|
}
|
|
2666
2695
|
});
|
|
2667
2696
|
const _hoisted_1$1b = { class: "nut-tabbar-item_icon-box" };
|
|
2668
|
-
const _hoisted_2$
|
|
2697
|
+
const _hoisted_2$Y = {
|
|
2669
2698
|
key: 0,
|
|
2670
2699
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_num"
|
|
2671
2700
|
};
|
|
2672
|
-
const _hoisted_3$
|
|
2701
|
+
const _hoisted_3$J = {
|
|
2673
2702
|
key: 1,
|
|
2674
2703
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_nums"
|
|
2675
2704
|
};
|
|
@@ -2690,7 +2719,7 @@
|
|
|
2690
2719
|
}, [
|
|
2691
2720
|
vue.createElementVNode("view", _hoisted_1$1b, [
|
|
2692
2721
|
!_ctx.dot ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
2693
|
-
_ctx.num && _ctx.num <= 99 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
2722
|
+
_ctx.num && _ctx.num <= 99 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$Y, vue.toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$J, vue.toDisplayString("99+"))) : vue.createCommentVNode("", true)
|
|
2694
2723
|
], 64)) : vue.createCommentVNode("", true),
|
|
2695
2724
|
_ctx.dot ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$B)) : vue.createCommentVNode("", true),
|
|
2696
2725
|
_ctx.icon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$r, [
|
|
@@ -2908,8 +2937,8 @@
|
|
|
2908
2937
|
}
|
|
2909
2938
|
});
|
|
2910
2939
|
const _hoisted_1$1a = { class: "nut-elevator__list__item__code" };
|
|
2911
|
-
const _hoisted_2$
|
|
2912
|
-
const _hoisted_3$
|
|
2940
|
+
const _hoisted_2$X = ["onClick"];
|
|
2941
|
+
const _hoisted_3$I = ["innerHTML"];
|
|
2913
2942
|
const _hoisted_4$A = { class: "fixed-title" };
|
|
2914
2943
|
const _hoisted_5$q = { class: "nut-elevator__bars__inner" };
|
|
2915
2944
|
const _hoisted_6$n = ["data-index", "onClick"];
|
|
@@ -2941,11 +2970,11 @@
|
|
|
2941
2970
|
!_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
2942
2971
|
key: 0,
|
|
2943
2972
|
innerHTML: subitem.name
|
|
2944
|
-
}, null, 8, _hoisted_3$
|
|
2973
|
+
}, null, 8, _hoisted_3$I)) : vue.renderSlot(_ctx.$slots, "default", {
|
|
2945
2974
|
key: 1,
|
|
2946
2975
|
item: subitem
|
|
2947
2976
|
})
|
|
2948
|
-
], 10, _hoisted_2$
|
|
2977
|
+
], 10, _hoisted_2$X);
|
|
2949
2978
|
}), 128))
|
|
2950
2979
|
]);
|
|
2951
2980
|
}), 128)),
|
|
@@ -3093,11 +3122,11 @@
|
|
|
3093
3122
|
}
|
|
3094
3123
|
});
|
|
3095
3124
|
const _hoisted_1$19 = { class: "nut-pagination" };
|
|
3096
|
-
const _hoisted_2$
|
|
3125
|
+
const _hoisted_2$W = {
|
|
3097
3126
|
key: 0,
|
|
3098
3127
|
class: "nut-pagination-contain"
|
|
3099
3128
|
};
|
|
3100
|
-
const _hoisted_3$
|
|
3129
|
+
const _hoisted_3$H = ["onClick"];
|
|
3101
3130
|
const _hoisted_4$z = {
|
|
3102
3131
|
key: 1,
|
|
3103
3132
|
class: "nut-pagination-contain"
|
|
@@ -3113,7 +3142,7 @@
|
|
|
3113
3142
|
vue.createTextVNode(vue.toDisplayString(_ctx.prevText || _ctx.translate("prev")), 1)
|
|
3114
3143
|
])
|
|
3115
3144
|
], 2),
|
|
3116
|
-
_ctx.mode == "multi" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
3145
|
+
_ctx.mode == "multi" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$W, [
|
|
3117
3146
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.pages, (item, index) => {
|
|
3118
3147
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
3119
3148
|
key: index + "pagination",
|
|
@@ -3123,7 +3152,7 @@
|
|
|
3123
3152
|
vue.renderSlot(_ctx.$slots, "page", { item }, () => [
|
|
3124
3153
|
vue.createTextVNode(vue.toDisplayString(item.text), 1)
|
|
3125
3154
|
])
|
|
3126
|
-
], 10, _hoisted_3$
|
|
3155
|
+
], 10, _hoisted_3$H);
|
|
3127
3156
|
}), 128))
|
|
3128
3157
|
])) : vue.createCommentVNode("", true),
|
|
3129
3158
|
_ctx.mode == "simple" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$z, [
|
|
@@ -3332,7 +3361,7 @@
|
|
|
3332
3361
|
}
|
|
3333
3362
|
};
|
|
3334
3363
|
const _hoisted_1$18 = ["onClick"];
|
|
3335
|
-
const _hoisted_2$
|
|
3364
|
+
const _hoisted_2$V = ["onClick"];
|
|
3336
3365
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3337
3366
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
3338
3367
|
const _component_nut_sticky = vue.resolveComponent("nut-sticky");
|
|
@@ -3412,7 +3441,7 @@
|
|
|
3412
3441
|
vue.createElementVNode("view", {
|
|
3413
3442
|
class: vue.normalizeClass(["nut-tabs__titles-item__text", { ellipsis: _ctx.ellipsis }])
|
|
3414
3443
|
}, vue.toDisplayString(item.title), 3)
|
|
3415
|
-
], 14, _hoisted_2$
|
|
3444
|
+
], 14, _hoisted_2$V);
|
|
3416
3445
|
}), 128))
|
|
3417
3446
|
], 6)),
|
|
3418
3447
|
vue.createElementVNode("view", {
|
|
@@ -3578,7 +3607,7 @@
|
|
|
3578
3607
|
}
|
|
3579
3608
|
});
|
|
3580
3609
|
const _hoisted_1$17 = { class: "nut-sidenavbar__content" };
|
|
3581
|
-
const _hoisted_2$
|
|
3610
|
+
const _hoisted_2$U = {
|
|
3582
3611
|
class: "nut-sidenavbar__content__list",
|
|
3583
3612
|
ref: "list"
|
|
3584
3613
|
};
|
|
@@ -3587,7 +3616,7 @@
|
|
|
3587
3616
|
class: vue.normalizeClass(_ctx.classes)
|
|
3588
3617
|
}, [
|
|
3589
3618
|
vue.createElementVNode("view", _hoisted_1$17, [
|
|
3590
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
3619
|
+
vue.createElementVNode("view", _hoisted_2$U, [
|
|
3591
3620
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3592
3621
|
], 512)
|
|
3593
3622
|
])
|
|
@@ -3624,14 +3653,14 @@
|
|
|
3624
3653
|
}
|
|
3625
3654
|
});
|
|
3626
3655
|
const _hoisted_1$16 = ["ikey"];
|
|
3627
|
-
const _hoisted_2$
|
|
3656
|
+
const _hoisted_2$T = { class: "nut-sidenavbaritem__title" };
|
|
3628
3657
|
function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3629
3658
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
3630
3659
|
class: "nut-sidenavbaritem",
|
|
3631
3660
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
|
|
3632
3661
|
ikey: _ctx.ikey
|
|
3633
3662
|
}, [
|
|
3634
|
-
vue.createElementVNode("span", _hoisted_2$
|
|
3663
|
+
vue.createElementVNode("span", _hoisted_2$T, vue.toDisplayString(_ctx.title), 1)
|
|
3635
3664
|
], 8, _hoisted_1$16);
|
|
3636
3665
|
}
|
|
3637
3666
|
var SideNavBarItem = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["render", _sfc_render$1k]]);
|
|
@@ -3683,8 +3712,8 @@
|
|
|
3683
3712
|
}
|
|
3684
3713
|
});
|
|
3685
3714
|
const _hoisted_1$15 = ["ikey"];
|
|
3686
|
-
const _hoisted_2$
|
|
3687
|
-
const _hoisted_3$
|
|
3715
|
+
const _hoisted_2$S = { class: "nut-subsidenavbar__title__text" };
|
|
3716
|
+
const _hoisted_3$G = { class: "nut-subsidenavbar__title__icon" };
|
|
3688
3717
|
function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3689
3718
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
3690
3719
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -3695,8 +3724,8 @@
|
|
|
3695
3724
|
class: "nut-subsidenavbar__title",
|
|
3696
3725
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
3697
3726
|
}, [
|
|
3698
|
-
vue.createElementVNode("span", _hoisted_2$
|
|
3699
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
3727
|
+
vue.createElementVNode("span", _hoisted_2$S, vue.toDisplayString(_ctx.title), 1),
|
|
3728
|
+
vue.createElementVNode("span", _hoisted_3$G, [
|
|
3700
3729
|
vue.createVNode(_component_nut_icon, {
|
|
3701
3730
|
name: "down-arrow",
|
|
3702
3731
|
class: vue.normalizeClass(_ctx.direction)
|
|
@@ -4066,11 +4095,11 @@
|
|
|
4066
4095
|
key: 0,
|
|
4067
4096
|
class: "min"
|
|
4068
4097
|
};
|
|
4069
|
-
const _hoisted_2$
|
|
4098
|
+
const _hoisted_2$R = {
|
|
4070
4099
|
key: 0,
|
|
4071
4100
|
class: "nut-range-mark"
|
|
4072
4101
|
};
|
|
4073
|
-
const _hoisted_3$
|
|
4102
|
+
const _hoisted_3$F = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
|
|
4074
4103
|
const _hoisted_4$y = {
|
|
4075
4104
|
key: 0,
|
|
4076
4105
|
class: "number"
|
|
@@ -4095,7 +4124,7 @@
|
|
|
4095
4124
|
class: vue.normalizeClass(_ctx.classes),
|
|
4096
4125
|
onClick: _cache[9] || (_cache[9] = vue.withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
|
|
4097
4126
|
}, [
|
|
4098
|
-
_ctx.marksList.length > 0 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
4127
|
+
_ctx.marksList.length > 0 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$R, [
|
|
4099
4128
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.marksList, (marks) => {
|
|
4100
4129
|
return vue.openBlock(), vue.createElementBlock("span", {
|
|
4101
4130
|
key: marks,
|
|
@@ -4148,7 +4177,7 @@
|
|
|
4148
4177
|
}, [
|
|
4149
4178
|
!_ctx.hiddenTag ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$y, vue.toDisplayString(_ctx.curValue(index)), 1)) : vue.createCommentVNode("", true)
|
|
4150
4179
|
], 4))
|
|
4151
|
-
], 42, _hoisted_3$
|
|
4180
|
+
], 42, _hoisted_3$F);
|
|
4152
4181
|
}), 64)) : (vue.openBlock(), vue.createElementBlock("view", {
|
|
4153
4182
|
key: 1,
|
|
4154
4183
|
role: "slider",
|
|
@@ -4350,11 +4379,11 @@
|
|
|
4350
4379
|
key: 0,
|
|
4351
4380
|
class: "nut-searchbar__search-label"
|
|
4352
4381
|
};
|
|
4353
|
-
const _hoisted_2$
|
|
4382
|
+
const _hoisted_2$Q = {
|
|
4354
4383
|
key: 1,
|
|
4355
4384
|
class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
|
|
4356
4385
|
};
|
|
4357
|
-
const _hoisted_3$
|
|
4386
|
+
const _hoisted_3$E = { class: "nut-searchbar__input-inner" };
|
|
4358
4387
|
const _hoisted_4$x = ["type", "maxlength", "placeholder", "value", "disabled", "readonly"];
|
|
4359
4388
|
const _hoisted_5$n = {
|
|
4360
4389
|
key: 2,
|
|
@@ -4367,7 +4396,7 @@
|
|
|
4367
4396
|
style: vue.normalizeStyle(_ctx.searchbarStyle)
|
|
4368
4397
|
}, [
|
|
4369
4398
|
_ctx.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$13, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
|
|
4370
|
-
_ctx.$slots.leftout ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
4399
|
+
_ctx.$slots.leftout ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$Q, [
|
|
4371
4400
|
vue.renderSlot(_ctx.$slots, "leftout")
|
|
4372
4401
|
])) : vue.createCommentVNode("", true),
|
|
4373
4402
|
vue.createElementVNode("view", {
|
|
@@ -4381,7 +4410,7 @@
|
|
|
4381
4410
|
}, [
|
|
4382
4411
|
vue.renderSlot(_ctx.$slots, "leftin")
|
|
4383
4412
|
])) : vue.createCommentVNode("", true),
|
|
4384
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
4413
|
+
vue.createElementVNode("view", _hoisted_3$E, [
|
|
4385
4414
|
vue.createElementVNode("form", {
|
|
4386
4415
|
action: "#",
|
|
4387
4416
|
onSubmit: _cache[5] || (_cache[5] = vue.withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
|
|
@@ -4782,8 +4811,8 @@
|
|
|
4782
4811
|
role: "menu",
|
|
4783
4812
|
class: "nut-cascader-pane"
|
|
4784
4813
|
};
|
|
4785
|
-
const _hoisted_2$
|
|
4786
|
-
const _hoisted_3$
|
|
4814
|
+
const _hoisted_2$P = ["aria-checked", "aria-disabled", "onClick"];
|
|
4815
|
+
const _hoisted_3$D = { class: "nut-cascader-item__title" };
|
|
4787
4816
|
const _hoisted_4$w = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-cascader-pane" }, null, -1);
|
|
4788
4817
|
function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4789
4818
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
@@ -4813,7 +4842,7 @@
|
|
|
4813
4842
|
role: "menuitemradio",
|
|
4814
4843
|
onClick: ($event) => _ctx.handleNode(node, false)
|
|
4815
4844
|
}, [
|
|
4816
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
4845
|
+
vue.createElementVNode("view", _hoisted_3$D, vue.toDisplayString(node.text), 1),
|
|
4817
4846
|
node.loading ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
4818
4847
|
key: 0,
|
|
4819
4848
|
class: "nut-cascader-item__icon-loading",
|
|
@@ -4823,7 +4852,7 @@
|
|
|
4823
4852
|
class: "nut-cascader-item__icon-check",
|
|
4824
4853
|
name: "checklist"
|
|
4825
4854
|
}))
|
|
4826
|
-
], 10, _hoisted_2$
|
|
4855
|
+
], 10, _hoisted_2$P);
|
|
4827
4856
|
}), 128))
|
|
4828
4857
|
])
|
|
4829
4858
|
]),
|
|
@@ -5642,11 +5671,11 @@
|
|
|
5642
5671
|
key: 0,
|
|
5643
5672
|
class: "calendar-title"
|
|
5644
5673
|
};
|
|
5645
|
-
const _hoisted_2$
|
|
5674
|
+
const _hoisted_2$O = {
|
|
5646
5675
|
key: 1,
|
|
5647
5676
|
class: "calendar-top-slot"
|
|
5648
5677
|
};
|
|
5649
|
-
const _hoisted_3$
|
|
5678
|
+
const _hoisted_3$C = {
|
|
5650
5679
|
key: 2,
|
|
5651
5680
|
class: "calendar-curr-month"
|
|
5652
5681
|
};
|
|
@@ -5693,10 +5722,10 @@
|
|
|
5693
5722
|
class: vue.normalizeClass(["nut-calendar-header", { "nut-calendar-header-tile": !_ctx.poppable }])
|
|
5694
5723
|
}, [
|
|
5695
5724
|
_ctx.showTitle ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$10, vue.toDisplayString(_ctx.title || _ctx.translate("title")), 1)) : vue.createCommentVNode("", true),
|
|
5696
|
-
_ctx.showTopBtn ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
5725
|
+
_ctx.showTopBtn ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$O, [
|
|
5697
5726
|
vue.renderSlot(_ctx.$slots, "btn")
|
|
5698
5727
|
])) : vue.createCommentVNode("", true),
|
|
5699
|
-
_ctx.showSubTitle ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$
|
|
5728
|
+
_ctx.showSubTitle ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$C, vue.toDisplayString(_ctx.yearMonthTitle), 1)) : vue.createCommentVNode("", true),
|
|
5700
5729
|
vue.createElementVNode("view", _hoisted_4$v, [
|
|
5701
5730
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.weeks, (item, index) => {
|
|
5702
5731
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -6490,8 +6519,8 @@
|
|
|
6490
6519
|
key: 1,
|
|
6491
6520
|
class: "nut-picker-roller-item-tile"
|
|
6492
6521
|
};
|
|
6493
|
-
const _hoisted_2$
|
|
6494
|
-
const _hoisted_3$
|
|
6522
|
+
const _hoisted_2$N = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-picker-roller-mask" }, null, -1);
|
|
6523
|
+
const _hoisted_3$B = {
|
|
6495
6524
|
key: 0,
|
|
6496
6525
|
class: "nut-picker-content"
|
|
6497
6526
|
};
|
|
@@ -6521,8 +6550,8 @@
|
|
|
6521
6550
|
], 64);
|
|
6522
6551
|
}), 128))
|
|
6523
6552
|
], 36),
|
|
6524
|
-
_hoisted_2$
|
|
6525
|
-
_ctx.threeDimensional ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$
|
|
6553
|
+
_hoisted_2$N,
|
|
6554
|
+
_ctx.threeDimensional ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$B, [
|
|
6526
6555
|
vue.createElementVNode("view", {
|
|
6527
6556
|
class: "nut-picker-list-panel",
|
|
6528
6557
|
ref: "list",
|
|
@@ -6581,7 +6610,9 @@
|
|
|
6581
6610
|
show: false,
|
|
6582
6611
|
formattedColumns: props.columns
|
|
6583
6612
|
});
|
|
6584
|
-
let defaultValues = vue.ref(
|
|
6613
|
+
let defaultValues = vue.ref(
|
|
6614
|
+
Array.isArray(props.modelValue) && props.modelValue.length > 0 ? props.modelValue : []
|
|
6615
|
+
);
|
|
6585
6616
|
const pickerColumn = vue.ref([]);
|
|
6586
6617
|
const swipeRef = (el) => {
|
|
6587
6618
|
if (el && pickerColumn.value.length < columnsList.value.length) {
|
|
@@ -6620,7 +6651,10 @@
|
|
|
6620
6651
|
case "multiple":
|
|
6621
6652
|
return state.formattedColumns;
|
|
6622
6653
|
case "cascade":
|
|
6623
|
-
return formatCascade(
|
|
6654
|
+
return formatCascade(
|
|
6655
|
+
state.formattedColumns,
|
|
6656
|
+
defaultValues.value ? defaultValues.value : []
|
|
6657
|
+
);
|
|
6624
6658
|
default:
|
|
6625
6659
|
return [state.formattedColumns];
|
|
6626
6660
|
}
|
|
@@ -6654,6 +6688,7 @@
|
|
|
6654
6688
|
};
|
|
6655
6689
|
const changeHandler = (columnIndex, option) => {
|
|
6656
6690
|
if (option && Object.keys(option).length) {
|
|
6691
|
+
defaultValues.value = defaultValues.value ? defaultValues.value : [];
|
|
6657
6692
|
if (columnsType.value === "cascade") {
|
|
6658
6693
|
defaultValues.value[columnIndex] = option.value ? option.value : "";
|
|
6659
6694
|
let index = columnIndex;
|
|
@@ -6718,14 +6753,15 @@
|
|
|
6718
6753
|
emit("update:modelValue", newValues);
|
|
6719
6754
|
}
|
|
6720
6755
|
},
|
|
6721
|
-
{
|
|
6756
|
+
{ deep: true }
|
|
6722
6757
|
);
|
|
6723
6758
|
vue.watch(
|
|
6724
6759
|
() => props.visible,
|
|
6725
6760
|
(val) => {
|
|
6726
6761
|
state.show = val;
|
|
6727
|
-
if (val)
|
|
6762
|
+
if (val) {
|
|
6728
6763
|
pickerColumn.value = [];
|
|
6764
|
+
}
|
|
6729
6765
|
}
|
|
6730
6766
|
);
|
|
6731
6767
|
vue.watch(
|
|
@@ -6752,8 +6788,8 @@
|
|
|
6752
6788
|
}
|
|
6753
6789
|
});
|
|
6754
6790
|
const _hoisted_1$_ = { class: "nut-picker__bar" };
|
|
6755
|
-
const _hoisted_2$
|
|
6756
|
-
const _hoisted_3$
|
|
6791
|
+
const _hoisted_2$M = { class: "nut-picker__title" };
|
|
6792
|
+
const _hoisted_3$A = {
|
|
6757
6793
|
class: "nut-picker__column",
|
|
6758
6794
|
ref: "wrapHeight"
|
|
6759
6795
|
};
|
|
@@ -6783,14 +6819,14 @@
|
|
|
6783
6819
|
class: "nut-picker__cancel nut-picker__left nut-picker__button",
|
|
6784
6820
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.close && _ctx.close(...args))
|
|
6785
6821
|
}, vue.toDisplayString(_ctx.cancelText || _ctx.translate("cancel")), 1),
|
|
6786
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
6822
|
+
vue.createElementVNode("view", _hoisted_2$M, vue.toDisplayString(_ctx.title), 1),
|
|
6787
6823
|
vue.createElementVNode("view", {
|
|
6788
6824
|
class: "nut-picker__confirm nut-picker__right nut-picker__button",
|
|
6789
6825
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.confirmHandler())
|
|
6790
6826
|
}, vue.toDisplayString(_ctx.okText || _ctx.translate("confirm")), 1)
|
|
6791
6827
|
]),
|
|
6792
6828
|
vue.renderSlot(_ctx.$slots, "top"),
|
|
6793
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
6829
|
+
vue.createElementVNode("view", _hoisted_3$A, [
|
|
6794
6830
|
_hoisted_4$u,
|
|
6795
6831
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.columnsList, (column2, columnIndex) => {
|
|
6796
6832
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -6804,7 +6840,7 @@
|
|
|
6804
6840
|
column: column2,
|
|
6805
6841
|
readonly: _ctx.readonly,
|
|
6806
6842
|
columnsType: _ctx.columnsType,
|
|
6807
|
-
value: _ctx.defaultValues[columnIndex],
|
|
6843
|
+
value: _ctx.defaultValues && _ctx.defaultValues[columnIndex],
|
|
6808
6844
|
threeDimensional: _ctx.threeDimensional,
|
|
6809
6845
|
swipeDuration: _ctx.swipeDuration,
|
|
6810
6846
|
onChange: (option) => {
|
|
@@ -7634,12 +7670,16 @@
|
|
|
7634
7670
|
vue.watch(
|
|
7635
7671
|
() => props.modelValue,
|
|
7636
7672
|
() => {
|
|
7637
|
-
|
|
7638
|
-
|
|
7673
|
+
if (!slots.input) {
|
|
7674
|
+
updateValue(getModelValue());
|
|
7675
|
+
resetValidation();
|
|
7676
|
+
}
|
|
7639
7677
|
}
|
|
7640
7678
|
);
|
|
7641
7679
|
vue.onMounted(() => {
|
|
7642
|
-
|
|
7680
|
+
if (!slots.input) {
|
|
7681
|
+
updateValue(getModelValue(), props.formatTrigger);
|
|
7682
|
+
}
|
|
7643
7683
|
});
|
|
7644
7684
|
return {
|
|
7645
7685
|
inputRef,
|
|
@@ -7660,8 +7700,8 @@
|
|
|
7660
7700
|
}
|
|
7661
7701
|
});
|
|
7662
7702
|
const _hoisted_1$Y = { class: "label-string" };
|
|
7663
|
-
const _hoisted_2$
|
|
7664
|
-
const _hoisted_3$
|
|
7703
|
+
const _hoisted_2$L = { class: "nut-input-value" };
|
|
7704
|
+
const _hoisted_3$z = { class: "label-string" };
|
|
7665
7705
|
const _hoisted_4$t = { class: "nut-input-value" };
|
|
7666
7706
|
const _hoisted_5$l = { class: "nut-input-inner" };
|
|
7667
7707
|
const _hoisted_6$k = { class: "nut-input-box" };
|
|
@@ -7690,7 +7730,7 @@
|
|
|
7690
7730
|
}, [
|
|
7691
7731
|
vue.createElementVNode("view", _hoisted_1$Y, vue.toDisplayString(_ctx.label) + " " + vue.toDisplayString(_ctx.colon ? ":" : ""), 1)
|
|
7692
7732
|
], 6)) : vue.createCommentVNode("", true),
|
|
7693
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
7733
|
+
vue.createElementVNode("view", _hoisted_2$L, [
|
|
7694
7734
|
vue.createElementVNode("view", {
|
|
7695
7735
|
class: "nut-input-inner",
|
|
7696
7736
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
|
|
@@ -7714,7 +7754,7 @@
|
|
|
7714
7754
|
textAlign: _ctx.labelAlign
|
|
7715
7755
|
})
|
|
7716
7756
|
}, [
|
|
7717
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
7757
|
+
vue.createElementVNode("view", _hoisted_3$z, vue.toDisplayString(_ctx.label) + " " + vue.toDisplayString(_ctx.colon ? ":" : ""), 1)
|
|
7718
7758
|
], 6)) : vue.createCommentVNode("", true),
|
|
7719
7759
|
vue.createElementVNode("view", _hoisted_4$t, [
|
|
7720
7760
|
vue.createElementVNode("view", _hoisted_5$l, [
|
|
@@ -8252,8 +8292,8 @@
|
|
|
8252
8292
|
}
|
|
8253
8293
|
});
|
|
8254
8294
|
const _hoisted_1$W = { class: "nut-shortpsd-title" };
|
|
8255
|
-
const _hoisted_2$
|
|
8256
|
-
const _hoisted_3$
|
|
8295
|
+
const _hoisted_2$K = { class: "nut-shortpsd-subtitle" };
|
|
8296
|
+
const _hoisted_3$y = { class: "nut-input-normalw" };
|
|
8257
8297
|
const _hoisted_4$s = /* @__PURE__ */ vue.createElementVNode("div", { class: "nut-input-site" }, null, -1);
|
|
8258
8298
|
const _hoisted_5$k = {
|
|
8259
8299
|
key: 0,
|
|
@@ -8289,8 +8329,8 @@
|
|
|
8289
8329
|
}, {
|
|
8290
8330
|
default: vue.withCtx(() => [
|
|
8291
8331
|
vue.createElementVNode("view", _hoisted_1$W, vue.toDisplayString(_ctx.title || _ctx.translate("title")), 1),
|
|
8292
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
8293
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
8332
|
+
vue.createElementVNode("view", _hoisted_2$K, vue.toDisplayString(_ctx.desc || _ctx.translate("desc")), 1),
|
|
8333
|
+
vue.createElementVNode("div", _hoisted_3$y, [
|
|
8294
8334
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
8295
8335
|
ref: "realpwd",
|
|
8296
8336
|
class: "nut-input-real",
|
|
@@ -8478,7 +8518,7 @@
|
|
|
8478
8518
|
}
|
|
8479
8519
|
});
|
|
8480
8520
|
const _hoisted_1$V = ["rows", "disabled", "readonly", "value", "maxlength", "placeholder", "autofocus"];
|
|
8481
|
-
const _hoisted_2$
|
|
8521
|
+
const _hoisted_2$J = {
|
|
8482
8522
|
key: 0,
|
|
8483
8523
|
class: "nut-textarea__limit"
|
|
8484
8524
|
};
|
|
@@ -8501,7 +8541,7 @@
|
|
|
8501
8541
|
placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
|
|
8502
8542
|
autofocus: _ctx.autofocus
|
|
8503
8543
|
}, null, 44, _hoisted_1$V),
|
|
8504
|
-
_ctx.limitShow ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
8544
|
+
_ctx.limitShow ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$J, vue.toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0) + "/" + vue.toDisplayString(_ctx.maxLength), 1)) : vue.createCommentVNode("", true)
|
|
8505
8545
|
], 2);
|
|
8506
8546
|
}
|
|
8507
8547
|
var TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["render", _sfc_render$16]]);
|
|
@@ -8857,8 +8897,8 @@
|
|
|
8857
8897
|
key: 0,
|
|
8858
8898
|
class: "nut-uploader__slot"
|
|
8859
8899
|
};
|
|
8860
|
-
const _hoisted_2$
|
|
8861
|
-
const _hoisted_3$
|
|
8900
|
+
const _hoisted_2$I = ["accept", "multiple", "name", "disabled"];
|
|
8901
|
+
const _hoisted_3$x = ["accept", "multiple", "name", "disabled"];
|
|
8862
8902
|
const _hoisted_4$r = {
|
|
8863
8903
|
key: 0,
|
|
8864
8904
|
class: "nut-uploader__preview-img"
|
|
@@ -8906,7 +8946,7 @@
|
|
|
8906
8946
|
name: _ctx.name,
|
|
8907
8947
|
disabled: _ctx.disabled,
|
|
8908
8948
|
onChange: _cache[0] || (_cache[0] = (...args) => _ctx.onChange && _ctx.onChange(...args))
|
|
8909
|
-
}, null, 40, _hoisted_2$
|
|
8949
|
+
}, null, 40, _hoisted_2$I)) : (vue.openBlock(), vue.createElementBlock("input", {
|
|
8910
8950
|
key: 1,
|
|
8911
8951
|
class: "nut-uploader__input",
|
|
8912
8952
|
type: "file",
|
|
@@ -8915,7 +8955,7 @@
|
|
|
8915
8955
|
name: _ctx.name,
|
|
8916
8956
|
disabled: _ctx.disabled,
|
|
8917
8957
|
onChange: _cache[1] || (_cache[1] = (...args) => _ctx.onChange && _ctx.onChange(...args))
|
|
8918
|
-
}, null, 40, _hoisted_3$
|
|
8958
|
+
}, null, 40, _hoisted_3$x))
|
|
8919
8959
|
], 64)) : vue.createCommentVNode("", true)
|
|
8920
8960
|
])) : vue.createCommentVNode("", true),
|
|
8921
8961
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.fileList, (item, index) => {
|
|
@@ -9180,11 +9220,11 @@
|
|
|
9180
9220
|
class: "nut-numberkeyboard",
|
|
9181
9221
|
ref: "root"
|
|
9182
9222
|
};
|
|
9183
|
-
const _hoisted_2$
|
|
9223
|
+
const _hoisted_2$H = {
|
|
9184
9224
|
key: 0,
|
|
9185
9225
|
class: "number-board-header"
|
|
9186
9226
|
};
|
|
9187
|
-
const _hoisted_3$
|
|
9227
|
+
const _hoisted_3$w = { class: "tit" };
|
|
9188
9228
|
const _hoisted_4$q = { class: "number-board-body" };
|
|
9189
9229
|
const _hoisted_5$i = { class: "number-board" };
|
|
9190
9230
|
const _hoisted_6$h = ["onTouchstart"];
|
|
@@ -9220,8 +9260,8 @@
|
|
|
9220
9260
|
}, {
|
|
9221
9261
|
default: vue.withCtx(() => [
|
|
9222
9262
|
vue.createElementVNode("div", _hoisted_1$T, [
|
|
9223
|
-
_ctx.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
9224
|
-
vue.createElementVNode("h3", _hoisted_3$
|
|
9263
|
+
_ctx.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$H, [
|
|
9264
|
+
vue.createElementVNode("h3", _hoisted_3$w, vue.toDisplayString(_ctx.title), 1),
|
|
9225
9265
|
_ctx.type == "default" ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
9226
9266
|
key: 0,
|
|
9227
9267
|
class: "keyboard-close",
|
|
@@ -9739,7 +9779,7 @@
|
|
|
9739
9779
|
}
|
|
9740
9780
|
});
|
|
9741
9781
|
const _hoisted_1$R = { class: "nut-oldpicker-content" };
|
|
9742
|
-
const _hoisted_2$
|
|
9782
|
+
const _hoisted_2$G = {
|
|
9743
9783
|
key: 0,
|
|
9744
9784
|
class: "nut-oldpicker-placeholder"
|
|
9745
9785
|
};
|
|
@@ -9775,7 +9815,7 @@
|
|
|
9775
9815
|
key: item.label ? item.label : index
|
|
9776
9816
|
}, vue.toDisplayString(_ctx.dataType === "cascade" ? item.text : item), 1);
|
|
9777
9817
|
}), 128)),
|
|
9778
|
-
_ctx.listData && _ctx.listData.length === 1 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
9818
|
+
_ctx.listData && _ctx.listData.length === 1 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$G)) : vue.createCommentVNode("", true)
|
|
9779
9819
|
], 4)
|
|
9780
9820
|
])
|
|
9781
9821
|
], 32);
|
|
@@ -9967,8 +10007,8 @@
|
|
|
9967
10007
|
}
|
|
9968
10008
|
});
|
|
9969
10009
|
const _hoisted_1$Q = { class: "nut-oldpicker__bar" };
|
|
9970
|
-
const _hoisted_2$
|
|
9971
|
-
const _hoisted_3$
|
|
10010
|
+
const _hoisted_2$F = { class: "nut-oldpicker__title" };
|
|
10011
|
+
const _hoisted_3$v = { class: "nut-oldpicker__column" };
|
|
9972
10012
|
const _hoisted_4$p = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-oldpicker__hairline" }, null, -1);
|
|
9973
10013
|
function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9974
10014
|
const _component_nut_oldpicker_column = vue.resolveComponent("nut-oldpicker-column");
|
|
@@ -9993,13 +10033,13 @@
|
|
|
9993
10033
|
class: "nut-oldpicker__cancel nut-oldpicker__left nut-oldpicker__button",
|
|
9994
10034
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.close && _ctx.close(...args))
|
|
9995
10035
|
}, vue.toDisplayString(_ctx.cancelText), 1),
|
|
9996
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
10036
|
+
vue.createElementVNode("view", _hoisted_2$F, vue.toDisplayString(_ctx.title), 1),
|
|
9997
10037
|
vue.createElementVNode("view", {
|
|
9998
10038
|
class: "nut-oldpicker__confirm nut-oldpicker__button nut-oldpicker__right",
|
|
9999
10039
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.confirm())
|
|
10000
10040
|
}, vue.toDisplayString(_ctx.okText), 1)
|
|
10001
10041
|
]),
|
|
10002
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
10042
|
+
vue.createElementVNode("view", _hoisted_3$v, [
|
|
10003
10043
|
_hoisted_4$p,
|
|
10004
10044
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.columnList, (item, columnIndex) => {
|
|
10005
10045
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -10176,8 +10216,8 @@
|
|
|
10176
10216
|
class: "nut-swipe__left",
|
|
10177
10217
|
ref: "leftRef"
|
|
10178
10218
|
};
|
|
10179
|
-
const _hoisted_2$
|
|
10180
|
-
const _hoisted_3$
|
|
10219
|
+
const _hoisted_2$E = { class: "nut-swipe__content" };
|
|
10220
|
+
const _hoisted_3$u = {
|
|
10181
10221
|
class: "nut-swipe__right",
|
|
10182
10222
|
ref: "rightRef"
|
|
10183
10223
|
};
|
|
@@ -10193,10 +10233,10 @@
|
|
|
10193
10233
|
vue.createElementVNode("view", _hoisted_1$P, [
|
|
10194
10234
|
vue.renderSlot(_ctx.$slots, "left")
|
|
10195
10235
|
], 512),
|
|
10196
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
10236
|
+
vue.createElementVNode("view", _hoisted_2$E, [
|
|
10197
10237
|
vue.renderSlot(_ctx.$slots, "default")
|
|
10198
10238
|
]),
|
|
10199
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
10239
|
+
vue.createElementVNode("view", _hoisted_3$u, [
|
|
10200
10240
|
vue.renderSlot(_ctx.$slots, "right")
|
|
10201
10241
|
], 512)
|
|
10202
10242
|
], 38);
|
|
@@ -10284,11 +10324,11 @@
|
|
|
10284
10324
|
}
|
|
10285
10325
|
});
|
|
10286
10326
|
const _hoisted_1$O = { class: "nut-actionsheet-panel" };
|
|
10287
|
-
const _hoisted_2$
|
|
10327
|
+
const _hoisted_2$D = {
|
|
10288
10328
|
key: 0,
|
|
10289
10329
|
class: "nut-actionsheet-title"
|
|
10290
10330
|
};
|
|
10291
|
-
const _hoisted_3$
|
|
10331
|
+
const _hoisted_3$t = { key: 1 };
|
|
10292
10332
|
const _hoisted_4$o = {
|
|
10293
10333
|
key: 0,
|
|
10294
10334
|
class: "nut-actionsheet-item desc"
|
|
@@ -10317,9 +10357,9 @@
|
|
|
10317
10357
|
}, {
|
|
10318
10358
|
default: vue.withCtx(() => [
|
|
10319
10359
|
vue.createElementVNode("view", _hoisted_1$O, [
|
|
10320
|
-
_ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
10360
|
+
_ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$D, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
|
|
10321
10361
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
10322
|
-
!_ctx.slotDefault ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$
|
|
10362
|
+
!_ctx.slotDefault ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$t, [
|
|
10323
10363
|
_ctx.description ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$o, vue.toDisplayString(_ctx.description), 1)) : vue.createCommentVNode("", true),
|
|
10324
10364
|
_ctx.menuItems.length ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$h, [
|
|
10325
10365
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.menuItems, (item, index) => {
|
|
@@ -10833,7 +10873,7 @@
|
|
|
10833
10873
|
key: 0,
|
|
10834
10874
|
class: "nut-dialog__header"
|
|
10835
10875
|
};
|
|
10836
|
-
const _hoisted_2$
|
|
10876
|
+
const _hoisted_2$C = ["innerHTML"];
|
|
10837
10877
|
function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10838
10878
|
const _component_nut_button = vue.resolveComponent("nut-button");
|
|
10839
10879
|
const _component_nut_popup = vue.resolveComponent("nut-popup");
|
|
@@ -10867,7 +10907,7 @@
|
|
|
10867
10907
|
_ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : typeof _ctx.content === "string" ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
10868
10908
|
key: 1,
|
|
10869
10909
|
innerHTML: _ctx.content
|
|
10870
|
-
}, null, 8, _hoisted_2$
|
|
10910
|
+
}, null, 8, _hoisted_2$C)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.content), { key: 2 }))
|
|
10871
10911
|
], 4),
|
|
10872
10912
|
!_ctx.noFooter ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
10873
10913
|
key: 1,
|
|
@@ -11183,8 +11223,8 @@
|
|
|
11183
11223
|
}
|
|
11184
11224
|
});
|
|
11185
11225
|
const _hoisted_1$M = { class: "top-box" };
|
|
11186
|
-
const _hoisted_2$
|
|
11187
|
-
const _hoisted_3$
|
|
11226
|
+
const _hoisted_2$B = { class: "top-text" };
|
|
11227
|
+
const _hoisted_3$s = { class: "nut-infinite-container" };
|
|
11188
11228
|
const _hoisted_4$n = { class: "nut-infinite-bottom" };
|
|
11189
11229
|
const _hoisted_5$g = {
|
|
11190
11230
|
key: 0,
|
|
@@ -11211,10 +11251,10 @@
|
|
|
11211
11251
|
}, [
|
|
11212
11252
|
vue.createElementVNode("view", _hoisted_1$M, [
|
|
11213
11253
|
vue.createVNode(_component_nut_icon, vue.mergeProps({ class: "top-img" }, _ctx.$attrs, { name: _ctx.pullIcon }), null, 16, ["name"]),
|
|
11214
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
11254
|
+
vue.createElementVNode("view", _hoisted_2$B, vue.toDisplayString(_ctx.pullTxt || _ctx.translate("pullTxt")), 1)
|
|
11215
11255
|
])
|
|
11216
11256
|
], 4),
|
|
11217
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
11257
|
+
vue.createElementVNode("view", _hoisted_3$s, [
|
|
11218
11258
|
vue.renderSlot(_ctx.$slots, "default")
|
|
11219
11259
|
]),
|
|
11220
11260
|
vue.createElementVNode("view", _hoisted_4$n, [
|
|
@@ -11249,7 +11289,7 @@
|
|
|
11249
11289
|
type: String,
|
|
11250
11290
|
default: "danger"
|
|
11251
11291
|
},
|
|
11252
|
-
|
|
11292
|
+
visible: {
|
|
11253
11293
|
type: Boolean,
|
|
11254
11294
|
default: false
|
|
11255
11295
|
},
|
|
@@ -11265,58 +11305,47 @@
|
|
|
11265
11305
|
onClick: Function,
|
|
11266
11306
|
unmount: Function
|
|
11267
11307
|
},
|
|
11268
|
-
|
|
11269
|
-
|
|
11270
|
-
const state = vue.reactive({
|
|
11271
|
-
mounted: false
|
|
11272
|
-
});
|
|
11273
|
-
vue.onMounted(() => {
|
|
11274
|
-
});
|
|
11275
|
-
const showPopup = vue.ref(props.modelVisible);
|
|
11308
|
+
emits: ["update:visible"],
|
|
11309
|
+
setup(props, { emit }) {
|
|
11276
11310
|
const clickCover = () => {
|
|
11277
11311
|
props.onClick && props.onClick();
|
|
11278
11312
|
};
|
|
11313
|
+
let timer = null;
|
|
11279
11314
|
const clearTimer = () => {
|
|
11280
|
-
|
|
11281
|
-
|
|
11282
|
-
timer = null;
|
|
11283
|
-
}
|
|
11315
|
+
timer && clearTimeout(timer);
|
|
11316
|
+
timer = null;
|
|
11284
11317
|
};
|
|
11285
11318
|
const hide = () => {
|
|
11286
|
-
|
|
11287
|
-
};
|
|
11288
|
-
const show = () => {
|
|
11289
|
-
clearTimer();
|
|
11290
|
-
if (props.duration) {
|
|
11291
|
-
timer = setTimeout(() => {
|
|
11292
|
-
hide();
|
|
11293
|
-
}, props.duration);
|
|
11294
|
-
}
|
|
11319
|
+
emit("update:visible", false);
|
|
11295
11320
|
};
|
|
11296
|
-
|
|
11297
|
-
|
|
11298
|
-
|
|
11299
|
-
|
|
11300
|
-
|
|
11301
|
-
|
|
11302
|
-
if (
|
|
11303
|
-
|
|
11321
|
+
const isShowPopup = vue.ref(false);
|
|
11322
|
+
const unWatch = vue.watch(
|
|
11323
|
+
() => props.visible,
|
|
11324
|
+
(newVal) => {
|
|
11325
|
+
isShowPopup.value = props.visible;
|
|
11326
|
+
const DURATION = props.duration;
|
|
11327
|
+
if (newVal && DURATION) {
|
|
11328
|
+
timer = setTimeout(() => {
|
|
11329
|
+
hide();
|
|
11330
|
+
}, DURATION);
|
|
11304
11331
|
}
|
|
11305
|
-
}
|
|
11332
|
+
},
|
|
11333
|
+
{ immediate: true }
|
|
11306
11334
|
);
|
|
11307
11335
|
const onAfterLeave = () => {
|
|
11308
11336
|
clearTimer();
|
|
11337
|
+
unWatch && unWatch();
|
|
11309
11338
|
props.unmount && props.unmount(props.id);
|
|
11310
11339
|
props.onClose && props.onClose();
|
|
11311
11340
|
};
|
|
11312
|
-
return {
|
|
11341
|
+
return { onAfterLeave, clickCover, isShowPopup };
|
|
11313
11342
|
}
|
|
11314
11343
|
});
|
|
11315
11344
|
function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11316
11345
|
const _component_nut_popup = vue.resolveComponent("nut-popup");
|
|
11317
11346
|
return vue.openBlock(), vue.createBlock(_component_nut_popup, {
|
|
11318
|
-
visible: _ctx.
|
|
11319
|
-
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.
|
|
11347
|
+
visible: _ctx.isShowPopup,
|
|
11348
|
+
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.isShowPopup = $event),
|
|
11320
11349
|
position: _ctx.position,
|
|
11321
11350
|
overlay: false,
|
|
11322
11351
|
isWrapTeleport: _ctx.isWrapTeleport
|
|
@@ -12059,7 +12088,7 @@
|
|
|
12059
12088
|
key: 1,
|
|
12060
12089
|
class: "nut-toast-title"
|
|
12061
12090
|
};
|
|
12062
|
-
const _hoisted_2$
|
|
12091
|
+
const _hoisted_2$A = ["innerHTML"];
|
|
12063
12092
|
function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12064
12093
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
12065
12094
|
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
@@ -12095,7 +12124,7 @@
|
|
|
12095
12124
|
vue.createElementVNode("view", {
|
|
12096
12125
|
class: "nut-toast-text",
|
|
12097
12126
|
innerHTML: _ctx.msg
|
|
12098
|
-
}, null, 8, _hoisted_2$
|
|
12127
|
+
}, null, 8, _hoisted_2$A)
|
|
12099
12128
|
], 4)
|
|
12100
12129
|
], 6), [
|
|
12101
12130
|
[vue.vShow, _ctx.state.mounted]
|
|
@@ -12388,11 +12417,11 @@
|
|
|
12388
12417
|
}
|
|
12389
12418
|
});
|
|
12390
12419
|
const _hoisted_1$I = { class: "nut-audio" };
|
|
12391
|
-
const _hoisted_2$
|
|
12420
|
+
const _hoisted_2$z = {
|
|
12392
12421
|
key: 0,
|
|
12393
12422
|
class: "progress-wrapper"
|
|
12394
12423
|
};
|
|
12395
|
-
const _hoisted_3$
|
|
12424
|
+
const _hoisted_3$r = { class: "time" };
|
|
12396
12425
|
const _hoisted_4$m = { class: "progress-bar-wrapper" };
|
|
12397
12426
|
const _hoisted_5$f = /* @__PURE__ */ vue.createElementVNode("div", { class: "custom-button" }, null, -1);
|
|
12398
12427
|
const _hoisted_6$e = { class: "time" };
|
|
@@ -12405,8 +12434,8 @@
|
|
|
12405
12434
|
const _component_nut_range = vue.resolveComponent("nut-range");
|
|
12406
12435
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
12407
12436
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [
|
|
12408
|
-
_ctx.type == "progress" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
12409
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
12437
|
+
_ctx.type == "progress" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$z, [
|
|
12438
|
+
vue.createElementVNode("div", _hoisted_3$r, vue.toDisplayString(_ctx.currentDuration), 1),
|
|
12410
12439
|
vue.createElementVNode("div", _hoisted_4$m, [
|
|
12411
12440
|
vue.createVNode(_component_nut_range, {
|
|
12412
12441
|
modelValue: _ctx.percent,
|
|
@@ -12676,11 +12705,11 @@
|
|
|
12676
12705
|
}
|
|
12677
12706
|
});
|
|
12678
12707
|
const _hoisted_1$G = ["src", "alt"];
|
|
12679
|
-
const _hoisted_2$
|
|
12708
|
+
const _hoisted_2$y = {
|
|
12680
12709
|
key: 2,
|
|
12681
12710
|
class: "text"
|
|
12682
12711
|
};
|
|
12683
|
-
const _hoisted_3$
|
|
12712
|
+
const _hoisted_3$q = {
|
|
12684
12713
|
key: 1,
|
|
12685
12714
|
class: "text"
|
|
12686
12715
|
};
|
|
@@ -12704,11 +12733,11 @@
|
|
|
12704
12733
|
class: "icon",
|
|
12705
12734
|
name: _ctx.iconStyles
|
|
12706
12735
|
}), null, 16, ["name"])) : vue.createCommentVNode("", true),
|
|
12707
|
-
_ctx.isShowText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
12736
|
+
_ctx.isShowText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$y, [
|
|
12708
12737
|
vue.renderSlot(_ctx.$slots, "default")
|
|
12709
12738
|
])) : vue.createCommentVNode("", true)
|
|
12710
12739
|
], 64)) : vue.createCommentVNode("", true),
|
|
12711
|
-
_ctx.showMax ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$
|
|
12740
|
+
_ctx.showMax ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$q, vue.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)) : vue.createCommentVNode("", true)
|
|
12712
12741
|
], 6)) : vue.createCommentVNode("", true);
|
|
12713
12742
|
}
|
|
12714
12743
|
var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$P]]);
|
|
@@ -13122,8 +13151,8 @@
|
|
|
13122
13151
|
}
|
|
13123
13152
|
});
|
|
13124
13153
|
const _hoisted_1$E = { viewBox: "0 0 100 100" };
|
|
13125
|
-
const _hoisted_2$
|
|
13126
|
-
const _hoisted_3$
|
|
13154
|
+
const _hoisted_2$x = ["id"];
|
|
13155
|
+
const _hoisted_3$p = ["offset", "stop-color"];
|
|
13127
13156
|
const _hoisted_4$l = ["d", "stroke-width"];
|
|
13128
13157
|
const _hoisted_5$e = ["d", "stroke", "stroke-linecap", "stroke-width"];
|
|
13129
13158
|
const _hoisted_6$d = { class: "nut-circleprogress-text" };
|
|
@@ -13147,9 +13176,9 @@
|
|
|
13147
13176
|
key: index,
|
|
13148
13177
|
offset: item.key,
|
|
13149
13178
|
"stop-color": item.value
|
|
13150
|
-
}, null, 8, _hoisted_3$
|
|
13179
|
+
}, null, 8, _hoisted_3$p);
|
|
13151
13180
|
}), 128))
|
|
13152
|
-
], 8, _hoisted_2$
|
|
13181
|
+
], 8, _hoisted_2$x)
|
|
13153
13182
|
]),
|
|
13154
13183
|
vue.createElementVNode("path", {
|
|
13155
13184
|
class: "nut-circleprogress-path",
|
|
@@ -13449,7 +13478,8 @@
|
|
|
13449
13478
|
onAnimationEnd,
|
|
13450
13479
|
go,
|
|
13451
13480
|
handleClickIcon,
|
|
13452
|
-
slots
|
|
13481
|
+
slots,
|
|
13482
|
+
pxCheck
|
|
13453
13483
|
};
|
|
13454
13484
|
}
|
|
13455
13485
|
});
|
|
@@ -13457,7 +13487,7 @@
|
|
|
13457
13487
|
ref: "wrap",
|
|
13458
13488
|
class: "wrap"
|
|
13459
13489
|
};
|
|
13460
|
-
const _hoisted_2$
|
|
13490
|
+
const _hoisted_2$w = ["onClick"];
|
|
13461
13491
|
function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13462
13492
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
13463
13493
|
const _component_ScrollItem = vue.resolveComponent("ScrollItem");
|
|
@@ -13538,9 +13568,9 @@
|
|
|
13538
13568
|
return vue.openBlock(), vue.createElementBlock("li", {
|
|
13539
13569
|
class: "horseLamp_list_item",
|
|
13540
13570
|
key: index,
|
|
13541
|
-
style: vue.normalizeStyle({ height: _ctx.height }),
|
|
13571
|
+
style: vue.normalizeStyle({ height: _ctx.pxCheck(_ctx.height) }),
|
|
13542
13572
|
onClick: ($event) => _ctx.go(item)
|
|
13543
|
-
}, vue.toDisplayString(item), 13, _hoisted_2$
|
|
13573
|
+
}, vue.toDisplayString(item), 13, _hoisted_2$w);
|
|
13544
13574
|
}), 128))
|
|
13545
13575
|
], 4)),
|
|
13546
13576
|
vue.createElementVNode("view", {
|
|
@@ -13600,8 +13630,8 @@
|
|
|
13600
13630
|
}
|
|
13601
13631
|
});
|
|
13602
13632
|
const _hoisted_1$C = { class: "nut-empty" };
|
|
13603
|
-
const _hoisted_2$
|
|
13604
|
-
const _hoisted_3$
|
|
13633
|
+
const _hoisted_2$v = ["src"];
|
|
13634
|
+
const _hoisted_3$o = {
|
|
13605
13635
|
key: 1,
|
|
13606
13636
|
class: "nut-empty-description"
|
|
13607
13637
|
};
|
|
@@ -13616,14 +13646,30 @@
|
|
|
13616
13646
|
key: 0,
|
|
13617
13647
|
class: "img",
|
|
13618
13648
|
src: _ctx.imageUrl
|
|
13619
|
-
}, null, 8, _hoisted_2$
|
|
13649
|
+
}, null, 8, _hoisted_2$v)) : vue.createCommentVNode("", true)
|
|
13620
13650
|
], 64))
|
|
13621
13651
|
], 4),
|
|
13622
|
-
_ctx.$slots.description ? vue.renderSlot(_ctx.$slots, "description", { key: 0 }) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$
|
|
13652
|
+
_ctx.$slots.description ? vue.renderSlot(_ctx.$slots, "description", { key: 0 }) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$o, vue.toDisplayString(_ctx.description || _ctx.translate("noData")), 1)),
|
|
13623
13653
|
_ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 2 }) : vue.createCommentVNode("", true)
|
|
13624
13654
|
]);
|
|
13625
13655
|
}
|
|
13626
13656
|
var Empty = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$J]]);
|
|
13657
|
+
function throttle(fn, delay) {
|
|
13658
|
+
let timer = null;
|
|
13659
|
+
let startTime = Date.now();
|
|
13660
|
+
return function() {
|
|
13661
|
+
let now = Date.now();
|
|
13662
|
+
let remaining = delay - (now - startTime);
|
|
13663
|
+
if (timer)
|
|
13664
|
+
clearTimeout(timer);
|
|
13665
|
+
if (remaining <= 0) {
|
|
13666
|
+
fn.apply(null, arguments);
|
|
13667
|
+
startTime = Date.now();
|
|
13668
|
+
} else {
|
|
13669
|
+
timer = setTimeout(fn, remaining);
|
|
13670
|
+
}
|
|
13671
|
+
};
|
|
13672
|
+
}
|
|
13627
13673
|
const { create: create$J, translate: translate$c } = createComponent("video");
|
|
13628
13674
|
const _sfc_main$J = create$J({
|
|
13629
13675
|
props: {
|
|
@@ -13653,7 +13699,7 @@
|
|
|
13653
13699
|
}
|
|
13654
13700
|
},
|
|
13655
13701
|
components: {},
|
|
13656
|
-
emits: ["click", "play", "pause", "playend"],
|
|
13702
|
+
emits: ["click", "play", "pause", "playend", "time"],
|
|
13657
13703
|
setup(props, { emit }) {
|
|
13658
13704
|
const state = vue.reactive({
|
|
13659
13705
|
videoElm: null,
|
|
@@ -13739,6 +13785,7 @@
|
|
|
13739
13785
|
emit("pause", state.videoElm);
|
|
13740
13786
|
});
|
|
13741
13787
|
state.videoElm.addEventListener("ended", playEnded);
|
|
13788
|
+
state.videoElm.addEventListener("timeupdate", throttle(getPlayTime, 1e3));
|
|
13742
13789
|
}
|
|
13743
13790
|
};
|
|
13744
13791
|
const customerInit = () => {
|
|
@@ -13764,6 +13811,7 @@
|
|
|
13764
13811
|
state.videoElm.addEventListener("progress", () => {
|
|
13765
13812
|
getLoadTime();
|
|
13766
13813
|
});
|
|
13814
|
+
state.videoElm.addEventListener("timeupdate", throttle(getPlayTime, 1e3, 1));
|
|
13767
13815
|
state.videoElm.addEventListener("ended", playEnded);
|
|
13768
13816
|
emit("play", state.videoElm);
|
|
13769
13817
|
} catch (e) {
|
|
@@ -13775,10 +13823,38 @@
|
|
|
13775
13823
|
}
|
|
13776
13824
|
}
|
|
13777
13825
|
};
|
|
13826
|
+
const timeFormat = (t) => {
|
|
13827
|
+
var h = Math.floor(t / 3600);
|
|
13828
|
+
if (h < 10) {
|
|
13829
|
+
h = "0" + h;
|
|
13830
|
+
}
|
|
13831
|
+
var m = Math.floor(t % 3600 / 60);
|
|
13832
|
+
if (m < 10) {
|
|
13833
|
+
m = "0" + m;
|
|
13834
|
+
}
|
|
13835
|
+
var s = Math.round(t % 3600 % 60);
|
|
13836
|
+
if (s < 10) {
|
|
13837
|
+
s = "0" + s;
|
|
13838
|
+
}
|
|
13839
|
+
var str = "";
|
|
13840
|
+
if (h != 0) {
|
|
13841
|
+
str = h + ":" + m + ":" + s;
|
|
13842
|
+
} else {
|
|
13843
|
+
str = m + ":" + s;
|
|
13844
|
+
}
|
|
13845
|
+
return str;
|
|
13846
|
+
};
|
|
13778
13847
|
const getLoadTime = () => {
|
|
13779
13848
|
if (state.videoSet.loaded)
|
|
13780
13849
|
state.videoSet.loaded = state.videoElm.buffered.end(0) / state.videoElm.duration * 100;
|
|
13781
13850
|
};
|
|
13851
|
+
const getPlayTime = () => {
|
|
13852
|
+
const percent = state.videoElm.currentTime / state.videoElm.duration;
|
|
13853
|
+
state.videoSet.progress.current = Math.round(state.videoSet.progress.width * percent);
|
|
13854
|
+
state.videoSet.totalTime = timeFormat(state.videoElm.duration);
|
|
13855
|
+
state.videoSet.displayTime = timeFormat(state.videoElm.currentTime);
|
|
13856
|
+
emit("time", state.videoSet.displayTime, state.videoSet.totalTime);
|
|
13857
|
+
};
|
|
13782
13858
|
const playEnded = () => {
|
|
13783
13859
|
state.state.playing = false;
|
|
13784
13860
|
state.state.isEnd = true;
|
|
@@ -13859,8 +13935,8 @@
|
|
|
13859
13935
|
class: "nut-video",
|
|
13860
13936
|
ref: "videocon"
|
|
13861
13937
|
};
|
|
13862
|
-
const _hoisted_2$
|
|
13863
|
-
const _hoisted_3$
|
|
13938
|
+
const _hoisted_2$u = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
|
|
13939
|
+
const _hoisted_3$n = ["src", "type"];
|
|
13864
13940
|
const _hoisted_4$k = { class: "current-time" };
|
|
13865
13941
|
const _hoisted_5$d = { class: "progress-container" };
|
|
13866
13942
|
const _hoisted_6$c = {
|
|
@@ -13894,8 +13970,8 @@
|
|
|
13894
13970
|
vue.createElementVNode("source", {
|
|
13895
13971
|
src: _ctx.source.src,
|
|
13896
13972
|
type: _ctx.source.type
|
|
13897
|
-
}, null, 8, _hoisted_3$
|
|
13898
|
-
], 40, _hoisted_2$
|
|
13973
|
+
}, null, 8, _hoisted_3$n)
|
|
13974
|
+
], 40, _hoisted_2$u),
|
|
13899
13975
|
_ctx.showToolbox && !_ctx.isDisabled ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
13900
13976
|
key: 0,
|
|
13901
13977
|
class: "playing-mask",
|
|
@@ -14074,8 +14150,8 @@
|
|
|
14074
14150
|
}
|
|
14075
14151
|
});
|
|
14076
14152
|
const _hoisted_1$A = { class: "nut-step-head" };
|
|
14077
|
-
const _hoisted_2$
|
|
14078
|
-
const _hoisted_3$
|
|
14153
|
+
const _hoisted_2$t = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-step-line" }, null, -1);
|
|
14154
|
+
const _hoisted_3$m = {
|
|
14079
14155
|
key: 2,
|
|
14080
14156
|
class: "nut-step-inner"
|
|
14081
14157
|
};
|
|
@@ -14094,7 +14170,7 @@
|
|
|
14094
14170
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClickStep && _ctx.handleClickStep(...args))
|
|
14095
14171
|
}, [
|
|
14096
14172
|
vue.createElementVNode("view", _hoisted_1$A, [
|
|
14097
|
-
_hoisted_2$
|
|
14173
|
+
_hoisted_2$t,
|
|
14098
14174
|
vue.createElementVNode("view", {
|
|
14099
14175
|
class: vue.normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
|
|
14100
14176
|
}, [
|
|
@@ -14105,7 +14181,7 @@
|
|
|
14105
14181
|
color: _ctx.iconColor,
|
|
14106
14182
|
name: _ctx.icon,
|
|
14107
14183
|
size: _ctx.size
|
|
14108
|
-
}), null, 16, ["color", "name", "size"])) : _ctx.dot ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [], 64)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$
|
|
14184
|
+
}), null, 16, ["color", "name", "size"])) : _ctx.dot ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [], 64)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$m, vue.toDisplayString(_ctx.index), 1))
|
|
14109
14185
|
], 2)
|
|
14110
14186
|
]),
|
|
14111
14187
|
vue.createElementVNode("view", _hoisted_4$j, [
|
|
@@ -14714,7 +14790,7 @@
|
|
|
14714
14790
|
}
|
|
14715
14791
|
});
|
|
14716
14792
|
const _hoisted_1$z = ["innerHTML"];
|
|
14717
|
-
const _hoisted_2$
|
|
14793
|
+
const _hoisted_2$s = ["innerHTML"];
|
|
14718
14794
|
function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14719
14795
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
14720
14796
|
class: vue.normalizeClass(_ctx.classes)
|
|
@@ -14738,7 +14814,7 @@
|
|
|
14738
14814
|
key: 2,
|
|
14739
14815
|
class: vue.normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
|
|
14740
14816
|
innerHTML: _ctx.showSymbol
|
|
14741
|
-
}, null, 10, _hoisted_2$
|
|
14817
|
+
}, null, 10, _hoisted_2$s)) : vue.createCommentVNode("", true)
|
|
14742
14818
|
], 2);
|
|
14743
14819
|
}
|
|
14744
14820
|
var Price = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$E]]);
|
|
@@ -14900,6 +14976,9 @@
|
|
|
14900
14976
|
}
|
|
14901
14977
|
};
|
|
14902
14978
|
const checkTap = () => {
|
|
14979
|
+
if (fingerNum == 1 && props.video && props.video.source) {
|
|
14980
|
+
return;
|
|
14981
|
+
}
|
|
14903
14982
|
if (fingerNum > 1) {
|
|
14904
14983
|
return;
|
|
14905
14984
|
}
|
|
@@ -14921,6 +15000,7 @@
|
|
|
14921
15000
|
}
|
|
14922
15001
|
};
|
|
14923
15002
|
const onTouchEnd = (event) => {
|
|
15003
|
+
console.log("ontauchend");
|
|
14924
15004
|
let stopPropagation = false;
|
|
14925
15005
|
if (state.moving || state.zooming) {
|
|
14926
15006
|
stopPropagation = true;
|
|
@@ -14958,6 +15038,10 @@
|
|
|
14958
15038
|
}
|
|
14959
15039
|
};
|
|
14960
15040
|
const clamp = (num, min, max) => Math.min(Math.max(num, min), max);
|
|
15041
|
+
const closeSwiper = (event) => {
|
|
15042
|
+
console.log("\u5173\u95ED\u89C6\u9891");
|
|
15043
|
+
emit("close");
|
|
15044
|
+
};
|
|
14961
15045
|
vue.watch(() => props.initNo, resetScale);
|
|
14962
15046
|
vue.watch(
|
|
14963
15047
|
() => props.show,
|
|
@@ -14974,45 +15058,49 @@
|
|
|
14974
15058
|
onTouchEnd,
|
|
14975
15059
|
getDistance,
|
|
14976
15060
|
imageStyle,
|
|
14977
|
-
imageLoad
|
|
15061
|
+
imageLoad,
|
|
15062
|
+
closeSwiper
|
|
14978
15063
|
};
|
|
14979
15064
|
}
|
|
14980
15065
|
});
|
|
14981
15066
|
const _hoisted_1$y = ["src"];
|
|
14982
|
-
const _hoisted_2$s = {
|
|
14983
|
-
key: 1,
|
|
14984
|
-
class: "nut-imagepreview-box"
|
|
14985
|
-
};
|
|
14986
15067
|
function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14987
15068
|
const _component_nut_video = vue.resolveComponent("nut-video");
|
|
14988
15069
|
const _component_nut_swiper_item = vue.resolveComponent("nut-swiper-item");
|
|
14989
|
-
return vue.openBlock(), vue.createBlock(_component_nut_swiper_item, {
|
|
14990
|
-
onTouchstart: _ctx.onTouchStart,
|
|
14991
|
-
onTouchmove: _ctx.onTouchMove,
|
|
14992
|
-
onTouchend: _ctx.onTouchEnd,
|
|
14993
|
-
onTouchcancel: _ctx.onTouchEnd
|
|
14994
|
-
}, {
|
|
15070
|
+
return vue.openBlock(), vue.createBlock(_component_nut_swiper_item, { onClick: _ctx.closeSwiper }, {
|
|
14995
15071
|
default: vue.withCtx(() => [
|
|
14996
15072
|
_ctx.image && _ctx.image.src ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
14997
15073
|
key: 0,
|
|
14998
15074
|
style: vue.normalizeStyle(_ctx.imageStyle),
|
|
14999
|
-
class: "nut-imagepreview-box"
|
|
15075
|
+
class: "nut-imagepreview-box",
|
|
15076
|
+
onTouchstart: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
15077
|
+
onTouchmove: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
|
|
15078
|
+
onTouchend: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
|
|
15079
|
+
onTouchcancel: _cache[4] || (_cache[4] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
15000
15080
|
}, [
|
|
15001
15081
|
vue.createElementVNode("img", {
|
|
15002
15082
|
src: _ctx.image.src,
|
|
15003
15083
|
class: "nut-imagepreview-img",
|
|
15004
15084
|
onLoad: _cache[0] || (_cache[0] = (...args) => _ctx.imageLoad && _ctx.imageLoad(...args))
|
|
15005
15085
|
}, null, 40, _hoisted_1$y)
|
|
15006
|
-
],
|
|
15007
|
-
_ctx.video && _ctx.video.source ? (vue.openBlock(), vue.createElementBlock("view",
|
|
15086
|
+
], 36)) : vue.createCommentVNode("", true),
|
|
15087
|
+
_ctx.video && _ctx.video.source ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
15088
|
+
key: 1,
|
|
15089
|
+
class: "nut-imagepreview-box",
|
|
15090
|
+
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.videoClick && _ctx.videoClick(...args)),
|
|
15091
|
+
onTouchstart: _cache[6] || (_cache[6] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
15092
|
+
onTouchmove: _cache[7] || (_cache[7] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
|
|
15093
|
+
onTouchend: _cache[8] || (_cache[8] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
|
|
15094
|
+
onTouchcancel: _cache[9] || (_cache[9] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
15095
|
+
}, [
|
|
15008
15096
|
vue.createVNode(_component_nut_video, {
|
|
15009
15097
|
source: _ctx.video.source,
|
|
15010
15098
|
options: _ctx.video.options
|
|
15011
15099
|
}, null, 8, ["source", "options"])
|
|
15012
|
-
])) : vue.createCommentVNode("", true)
|
|
15100
|
+
], 32)) : vue.createCommentVNode("", true)
|
|
15013
15101
|
]),
|
|
15014
15102
|
_: 1
|
|
15015
|
-
}, 8, ["
|
|
15103
|
+
}, 8, ["onClick"]);
|
|
15016
15104
|
}
|
|
15017
15105
|
var ImagePreviewItem = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$D]]);
|
|
15018
15106
|
const { create: create$C } = createComponent("imagepreview");
|
|
@@ -15078,6 +15166,10 @@
|
|
|
15078
15166
|
maxZoom: {
|
|
15079
15167
|
type: Number,
|
|
15080
15168
|
default: 3
|
|
15169
|
+
},
|
|
15170
|
+
isLoop: {
|
|
15171
|
+
type: Boolean,
|
|
15172
|
+
default: true
|
|
15081
15173
|
}
|
|
15082
15174
|
},
|
|
15083
15175
|
emits: ["close", "change"],
|
|
@@ -15191,7 +15283,7 @@
|
|
|
15191
15283
|
key: 0,
|
|
15192
15284
|
"auto-play": _ctx.autoplay,
|
|
15193
15285
|
class: "nut-imagepreview-swiper",
|
|
15194
|
-
loop:
|
|
15286
|
+
loop: _ctx.isLoop,
|
|
15195
15287
|
"is-preventDefault": false,
|
|
15196
15288
|
direction: "horizontal",
|
|
15197
15289
|
onChange: _ctx.slideChangeEnd,
|
|
@@ -15226,7 +15318,7 @@
|
|
|
15226
15318
|
}), 128))
|
|
15227
15319
|
]),
|
|
15228
15320
|
_: 1
|
|
15229
|
-
}, 8, ["auto-play", "onChange", "init-page", "pagination-visible", "pagination-color"])) : vue.createCommentVNode("", true)
|
|
15321
|
+
}, 8, ["auto-play", "loop", "onChange", "init-page", "pagination-visible", "pagination-color"])) : vue.createCommentVNode("", true)
|
|
15230
15322
|
], 512),
|
|
15231
15323
|
_ctx.showIndex ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$r, vue.toDisplayString(_ctx.active) + " / " + vue.toDisplayString(_ctx.images.length + _ctx.videos.length), 1)) : vue.createCommentVNode("", true),
|
|
15232
15324
|
_ctx.closeable ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -16157,19 +16249,23 @@
|
|
|
16157
16249
|
}
|
|
16158
16250
|
});
|
|
16159
16251
|
const _hoisted_1$u = { class: "nut-badge" };
|
|
16160
|
-
const _hoisted_2$p =
|
|
16161
|
-
const _hoisted_3$m = ["textContent"];
|
|
16252
|
+
const _hoisted_2$p = ["textContent"];
|
|
16162
16253
|
function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16163
16254
|
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$u, [
|
|
16164
|
-
vue.createElementVNode("view",
|
|
16255
|
+
vue.withDirectives(vue.createElementVNode("view", {
|
|
16256
|
+
class: "slot-icons",
|
|
16257
|
+
style: vue.normalizeStyle(_ctx.stl)
|
|
16258
|
+
}, [
|
|
16165
16259
|
vue.renderSlot(_ctx.$slots, "icons")
|
|
16260
|
+
], 4), [
|
|
16261
|
+
[vue.vShow, !_ctx.hidden && !_ctx.dot]
|
|
16166
16262
|
]),
|
|
16167
16263
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
16168
16264
|
vue.withDirectives(vue.createElementVNode("view", {
|
|
16169
16265
|
textContent: vue.toDisplayString(_ctx.content),
|
|
16170
16266
|
class: vue.normalizeClass(["nut-badge__content sup", { "is-dot": _ctx.dot }]),
|
|
16171
16267
|
style: vue.normalizeStyle(_ctx.stl)
|
|
16172
|
-
}, null, 14,
|
|
16268
|
+
}, null, 14, _hoisted_2$p), [
|
|
16173
16269
|
[vue.vShow, !_ctx.hidden && (_ctx.content || _ctx.dot)]
|
|
16174
16270
|
])
|
|
16175
16271
|
]);
|
|
@@ -21748,7 +21844,7 @@
|
|
|
21748
21844
|
}
|
|
21749
21845
|
});
|
|
21750
21846
|
}
|
|
21751
|
-
const version = "3.2.
|
|
21847
|
+
const version = "3.2.6-beta.2";
|
|
21752
21848
|
var nutui_vue_build = { install, version, Locale };
|
|
21753
21849
|
exports2.ActionSheet = ActionSheet;
|
|
21754
21850
|
exports2.Address = Address;
|