@nutui/nutui 4.1.0-beta.2 → 4.1.0-beta.4
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 +80 -0
- package/README.md +10 -42
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +16174 -0
- package/dist/nutui.umd.js +1 -7
- package/dist/packages/_es/ActionSheet.js +23 -5
- package/dist/packages/_es/Address.js +42 -33
- package/dist/packages/_es/AddressList.js +6 -6
- package/dist/packages/_es/Animate.js +21 -2
- package/dist/packages/_es/Audio.js +22 -5
- package/dist/packages/_es/AudioOperate.js +21 -2
- package/dist/packages/_es/Avatar.js +20 -5
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/Backtop.js +1 -1
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +3 -3
- package/dist/packages/_es/CalendarItem.js +2 -2
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +125 -78
- 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 +12 -24
- package/dist/packages/_es/Checkbox.js +5 -5
- package/dist/packages/_es/CheckboxGroup.js +16 -31
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +19 -11
- 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 +23 -5
- package/dist/packages/_es/Countup.js +22 -5
- package/dist/packages/_es/DatePicker.js +22 -4
- package/dist/packages/_es/Dialog.js +34 -11
- package/dist/packages/_es/Divider.js +9 -19
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +1 -1
- package/dist/packages/_es/Elevator.js +24 -5
- package/dist/packages/_es/Ellipsis.js +21 -2
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +55 -25
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +2 -2
- package/dist/packages/_es/GridItem.js +2 -2
- package/dist/packages/_es/Image.js +58 -8
- package/dist/packages/_es/ImagePreview.js +47 -22
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +24 -5
- package/dist/packages/_es/Input.js +24 -6
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/{Interceptor-956b24fc.js → Interceptor-5415601e.js} +1 -1
- package/dist/packages/_es/Invoice.js +24 -6
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +22 -4
- package/dist/packages/_es/Menu.js +2 -3
- package/dist/packages/_es/MenuItem.js +45 -36
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/Noticebar.js +22 -5
- package/dist/packages/_es/Notify.js +29 -10
- package/dist/packages/_es/NumberKeyboard.js +2 -2
- package/dist/packages/_es/Overlay.js +20 -5
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +33 -20
- package/dist/packages/_es/Popover.js +2 -2
- package/dist/packages/_es/Popup.js +2 -2
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.js +24 -5
- package/dist/packages/_es/Radio.js +2 -2
- package/dist/packages/_es/RadioGroup.js +2 -2
- package/dist/packages/_es/Range.js +24 -5
- package/dist/packages/_es/Rate.js +24 -5
- package/dist/packages/_es/Row.js +13 -13
- package/dist/packages/_es/Searchbar.js +34 -13
- package/dist/packages/_es/ShortPassword.js +2 -2
- package/dist/packages/_es/SideNavbar.js +22 -4
- package/dist/packages/_es/SideNavbarItem.js +1 -1
- package/dist/packages/_es/Signature.js +21 -2
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +23 -5
- package/dist/packages/_es/Step.js +22 -4
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +2 -2
- package/dist/packages/_es/SubSideNavbar.js +22 -4
- package/dist/packages/_es/Swipe.js +24 -5
- 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 +22 -4
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +9 -8
- package/dist/packages/_es/Table.js +22 -4
- package/dist/packages/_es/Tabs.js +50 -16
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/Textarea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +24 -5
- package/dist/packages/_es/TimePannel.js +22 -4
- package/dist/packages/_es/TimeSelect.js +2 -2
- package/dist/packages/_es/Toast.js +32 -13
- package/dist/packages/_es/Tour.js +23 -5
- package/dist/packages/_es/TrendArrow.js +21 -2
- package/dist/packages/_es/Uploader.js +2 -2
- package/dist/packages/_es/Video.js +24 -6
- package/dist/packages/_es/Watermark.js +21 -2
- package/dist/packages/_es/{common-b9a5e726.js → common-21e9de3d.js} +1 -1
- package/dist/packages/_es/{component-81a4c1d0.js → component-8f0be7eb.js} +0 -6
- package/dist/packages/_es/{index-f933fcf6.js → index-c9b21ed1.js} +24 -6
- package/dist/packages/_es/{index-c55ad69e.js → index-dc2ebe90.js} +31 -16
- package/dist/packages/_es/{index.vue_vue_type_script_lang-442e4704.js → index.vue_vue_type_script_lang-7b265520.js} +1 -2
- package/dist/packages/_es/{index.vue_vue_type_script_lang-cc5c4086.js → index.vue_vue_type_script_lang-89366761.js} +1 -1
- package/dist/packages/_es/{index.vue_vue_type_script_lang-22dfc112.js → index.vue_vue_type_script_lang-dba4283d.js} +1 -1
- package/dist/packages/_es/{mountComponent-8b24c346.js → mountComponent-f2c53efb.js} +1 -1
- package/dist/packages/cell/index.scss +1 -1
- package/dist/packages/cellgroup/index.scss +1 -0
- package/dist/packages/circleprogress/index.scss +1 -1
- package/dist/packages/col/index.scss +2 -2
- package/dist/packages/imagepreview/index.scss +0 -5
- package/dist/packages/locale/lang/baseLang-3a8457ac.js +5 -0
- package/dist/packages/locale/lang/en-US.js +39 -36
- package/dist/packages/locale/lang/id-ID.js +39 -36
- package/dist/packages/locale/lang/index.js +44 -22
- package/dist/packages/locale/lang/zh-CN.js +38 -35
- package/dist/packages/locale/lang/zh-TW.js +38 -35
- package/dist/packages/menuitem/index.scss +7 -10
- package/dist/packages/numberkeyboard/index.scss +5 -3
- package/dist/packages/searchbar/index.scss +4 -0
- package/dist/packages/textarea/index.scss +1 -1
- package/dist/resolver/index.js +26 -1
- package/dist/resolver/index.mjs +17 -14
- package/dist/smartips/web-types.json +42 -159
- package/dist/style.css +1 -1
- package/dist/styles/mixins/make-animation.scss +1 -5
- package/dist/styles/themes/default.scss +158 -55
- package/dist/styles/themes/jdb.scss +158 -55
- package/dist/styles/themes/jddkh.scss +158 -55
- package/dist/styles/themes/jdt.scss +158 -55
- package/dist/styles/variables-jdb.scss +1 -0
- package/dist/styles/variables-jddkh.scss +1 -0
- package/dist/styles/variables-jdt.scss +1 -0
- package/dist/styles/variables.scss +1 -0
- 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/addresslist/index.vue.d.ts +3 -3
- package/dist/types/__VUE/animate/index.vue.d.ts +1 -1
- package/dist/types/__VUE/audio/index.vue.d.ts +2 -2
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +2 -2
- package/dist/types/__VUE/avatar/index.vue.d.ts +1 -1
- 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 +3 -3
- package/dist/types/__VUE/barrage/index.vue.d.ts +1 -1
- package/dist/types/__VUE/button/index.vue.d.ts +2 -2
- package/dist/types/__VUE/button/type.d.ts +1 -0
- package/dist/types/__VUE/calendar/index.vue.d.ts +5 -5
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +4 -4
- package/dist/types/__VUE/card/index.vue.d.ts +2 -2
- package/dist/types/__VUE/cascader/index.vue.d.ts +1 -1
- package/dist/types/__VUE/category/index.vue.d.ts +1 -1
- package/dist/types/__VUE/categorypane/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +2 -2
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +2 -6
- package/dist/types/__VUE/checkbox/index.vue.d.ts +1 -1
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +2 -2
- package/dist/types/__VUE/col/index.vue.d.ts +1 -1
- package/dist/types/__VUE/collapse/index.vue.d.ts +3 -3
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +113 -6
- package/dist/types/__VUE/comment/index.vue.d.ts +5 -5
- package/dist/types/__VUE/configprovider/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countdown/index.vue.d.ts +3 -3
- package/dist/types/__VUE/countup/index.vue.d.ts +5 -5
- package/dist/types/__VUE/datepicker/index.vue.d.ts +4 -4
- package/dist/types/__VUE/dialog/index.d.ts +1 -0
- package/dist/types/__VUE/dialog/index.vue.d.ts +3 -2
- package/dist/types/__VUE/divider/index.vue.d.ts +12 -8
- package/dist/types/__VUE/divider/types.d.ts +2 -0
- package/dist/types/__VUE/drag/index.vue.d.ts +1 -1
- package/dist/types/__VUE/ecard/index.vue.d.ts +2 -2
- package/dist/types/__VUE/elevator/index.vue.d.ts +1 -1
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +2 -2
- package/dist/types/__VUE/empty/index.vue.d.ts +2 -2
- package/dist/types/__VUE/fixednav/index.vue.d.ts +1 -1
- package/dist/types/__VUE/form/index.vue.d.ts +1 -1
- package/dist/types/__VUE/formitem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/formitem/types.d.ts +1 -1
- package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/icon/index.vue.d.ts +1 -1
- package/dist/types/__VUE/image/index.vue.d.ts +15 -4
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +5 -5
- package/dist/types/__VUE/indicator/index.vue.d.ts +2 -2
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +2 -2
- package/dist/types/__VUE/input/index.vue.d.ts +4 -4
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +4 -4
- package/dist/types/__VUE/invoice/index.vue.d.ts +1 -1
- package/dist/types/__VUE/layout/index.vue.d.ts +1 -1
- package/dist/types/__VUE/list/index.vue.d.ts +1 -1
- package/dist/types/__VUE/menu/index.vue.d.ts +2 -4
- package/dist/types/__VUE/menuitem/index.vue.d.ts +10 -18
- package/dist/types/__VUE/navbar/index.vue.d.ts +3 -3
- package/dist/types/__VUE/noticebar/index.vue.d.ts +5 -5
- package/dist/types/__VUE/notify/index.vue.d.ts +1 -1
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +2 -2
- package/dist/types/__VUE/overlay/index.vue.d.ts +1 -1
- package/dist/types/__VUE/pagination/index.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/common.d.ts +4 -405
- package/dist/types/__VUE/picker/index.vue.d.ts +6 -106
- package/dist/types/__VUE/picker/usePicker.d.ts +1 -1
- package/dist/types/__VUE/popover/index.vue.d.ts +1 -1
- package/dist/types/__VUE/popup/common.d.ts +2 -2
- package/dist/types/__VUE/popup/index.vue.d.ts +3 -3
- package/dist/types/__VUE/price/index.vue.d.ts +1 -1
- package/dist/types/__VUE/progress/index.vue.d.ts +1 -1
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +2 -2
- package/dist/types/__VUE/radio/index.vue.d.ts +1 -1
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/range/index.vue.d.ts +5 -5
- package/dist/types/__VUE/rate/index.vue.d.ts +114 -7
- package/dist/types/__VUE/row/index.vue.d.ts +2 -2
- package/dist/types/__VUE/searchbar/index.vue.d.ts +125 -9
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/signature/index.vue.d.ts +1 -1
- package/dist/types/__VUE/skeleton/index.vue.d.ts +3 -3
- package/dist/types/__VUE/sku/index.vue.d.ts +4 -4
- package/dist/types/__VUE/step/index.vue.d.ts +1 -1
- package/dist/types/__VUE/steps/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sticky/index.vue.d.ts +1 -1
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/swipe/index.vue.d.ts +1 -1
- package/dist/types/__VUE/swiper/index.vue.d.ts +4 -4
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/switch/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +3 -3
- package/dist/types/__VUE/table/common.d.ts +56 -3
- package/dist/types/__VUE/table/index.vue.d.ts +1 -1
- package/dist/types/__VUE/table/renderColumn.d.ts +1 -1
- package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabs/index.vue.d.ts +15 -3
- package/dist/types/__VUE/tag/index.vue.d.ts +1 -1
- package/dist/types/__VUE/textarea/index.vue.d.ts +4 -4
- package/dist/types/__VUE/timedetail/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timepannel/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timeselect/index.vue.d.ts +2 -2
- package/dist/types/__VUE/toast/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tour/index.vue.d.ts +2 -2
- package/dist/types/__VUE/trendarrow/index.vue.d.ts +2 -2
- package/dist/types/__VUE/uploader/index.vue.d.ts +4 -4
- package/dist/types/__VUE/video/index.vue.d.ts +1 -1
- package/dist/types/__VUE/watermark/index.vue.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/create/component.d.ts +0 -1
- package/dist/types/utils/unit.d.ts +2 -0
- package/package.json +4 -5
- package/dist/packages/locale/lang/baseLang-0bdc6353.js +0 -5
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +0 -60
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +0 -23
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +0 -77
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +0 -42
- package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +0 -36
- package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +0 -59
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +0 -117
- package/dist/types/__VUE/picker/Column.vue.d.ts +0 -114
- package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +0 -17
- package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +0 -60
- package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +0 -25
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +0 -56
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { reactive, useSlots, computed, ref, onMounted, onBeforeUnmount, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot } from "vue";
|
|
21
|
+
import { c as createComponent } from "./component-8f0be7eb.js";
|
|
3
22
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
4
23
|
import { Image, ImageError } from "@nutui/icons-vue";
|
|
5
24
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -40,6 +59,10 @@ const _sfc_main = create({
|
|
|
40
59
|
showLoading: {
|
|
41
60
|
type: Boolean,
|
|
42
61
|
default: true
|
|
62
|
+
},
|
|
63
|
+
lazyLoad: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: false
|
|
43
66
|
}
|
|
44
67
|
},
|
|
45
68
|
components: {
|
|
@@ -61,6 +84,30 @@ const _sfc_main = create({
|
|
|
61
84
|
[`${prefixCls}-round`]: props.round
|
|
62
85
|
};
|
|
63
86
|
});
|
|
87
|
+
const observer = ref(null);
|
|
88
|
+
const show = ref(false);
|
|
89
|
+
const imgRef = ref(null);
|
|
90
|
+
const initObserver = () => {
|
|
91
|
+
const options = {
|
|
92
|
+
threshold: [0],
|
|
93
|
+
rootMargin: "0px"
|
|
94
|
+
};
|
|
95
|
+
observer.value = new IntersectionObserver((entires) => {
|
|
96
|
+
entires.forEach((item) => {
|
|
97
|
+
if (item.isIntersecting) {
|
|
98
|
+
show.value = true;
|
|
99
|
+
observer.value.disconnect();
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}, options);
|
|
103
|
+
imgRef.value && observer.value.observe(imgRef.value);
|
|
104
|
+
};
|
|
105
|
+
onMounted(() => {
|
|
106
|
+
props.lazyLoad && initObserver();
|
|
107
|
+
});
|
|
108
|
+
onBeforeUnmount(() => {
|
|
109
|
+
observer.value && observer.value.disconnect();
|
|
110
|
+
});
|
|
64
111
|
const stylebox = computed(() => {
|
|
65
112
|
let style = {};
|
|
66
113
|
if (props.width)
|
|
@@ -87,6 +134,7 @@ const _sfc_main = create({
|
|
|
87
134
|
}
|
|
88
135
|
);
|
|
89
136
|
const load = () => {
|
|
137
|
+
state.isError = false;
|
|
90
138
|
state.loading = false;
|
|
91
139
|
emit("load");
|
|
92
140
|
};
|
|
@@ -98,10 +146,10 @@ const _sfc_main = create({
|
|
|
98
146
|
const imageClick = (event) => {
|
|
99
147
|
emit("click", event);
|
|
100
148
|
};
|
|
101
|
-
return {
|
|
149
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), { imageClick, classes, styles, stylebox, error, load, show, imgRef });
|
|
102
150
|
}
|
|
103
151
|
});
|
|
104
|
-
const _hoisted_1 = ["src", "alt"];
|
|
152
|
+
const _hoisted_1 = ["src", "date-src", "alt"];
|
|
105
153
|
const _hoisted_2 = {
|
|
106
154
|
key: 0,
|
|
107
155
|
class: "nut-img-loading"
|
|
@@ -113,20 +161,22 @@ const _hoisted_3 = {
|
|
|
113
161
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
114
162
|
const _component_Image = resolveComponent("Image");
|
|
115
163
|
const _component_ImageError = resolveComponent("ImageError");
|
|
116
|
-
return openBlock(), createElementBlock("
|
|
164
|
+
return openBlock(), createElementBlock("div", {
|
|
117
165
|
class: normalizeClass(_ctx.classes),
|
|
118
166
|
style: normalizeStyle(_ctx.stylebox),
|
|
119
167
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.imageClick && _ctx.imageClick(...args))
|
|
120
168
|
}, [
|
|
121
169
|
createElementVNode("img", {
|
|
170
|
+
ref: "imgRef",
|
|
122
171
|
class: "nut-img",
|
|
123
|
-
src: _ctx.src,
|
|
172
|
+
src: _ctx.lazyLoad ? _ctx.show ? _ctx.src : void 0 : _ctx.src,
|
|
173
|
+
"date-src": _ctx.lazyLoad ? _ctx.show ? void 0 : _ctx.src : void 0,
|
|
124
174
|
alt: _ctx.alt,
|
|
125
175
|
onLoad: _cache[0] || (_cache[0] = (...args) => _ctx.load && _ctx.load(...args)),
|
|
126
176
|
onError: _cache[1] || (_cache[1] = (...args) => _ctx.error && _ctx.error(...args)),
|
|
127
177
|
style: normalizeStyle(_ctx.styles)
|
|
128
178
|
}, null, 44, _hoisted_1),
|
|
129
|
-
_ctx.loading ? (openBlock(), createElementBlock("
|
|
179
|
+
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
130
180
|
!_ctx.slotLoding ? (openBlock(), createBlock(_component_Image, {
|
|
131
181
|
key: 0,
|
|
132
182
|
width: "16px",
|
|
@@ -135,7 +185,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
135
185
|
})) : createCommentVNode("", true),
|
|
136
186
|
renderSlot(_ctx.$slots, "loading")
|
|
137
187
|
])) : createCommentVNode("", true),
|
|
138
|
-
_ctx.isError && !_ctx.loading ? (openBlock(), createElementBlock("
|
|
188
|
+
_ctx.isError && !_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
139
189
|
!_ctx.slotError ? (openBlock(), createBlock(_component_ImageError, {
|
|
140
190
|
key: 0,
|
|
141
191
|
width: "16px",
|
|
@@ -1,22 +1,40 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __pow = Math.pow;
|
|
2
8
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
3
21
|
var __publicField = (obj, key, value) => {
|
|
4
22
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
23
|
return value;
|
|
6
24
|
};
|
|
7
|
-
import { reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeStyle, createElementBlock, createCommentVNode, ref, onMounted, Fragment, renderList, toDisplayString, normalizeClass, renderSlot, createVNode, h } from "vue";
|
|
8
|
-
import { c as createComponent, e as clamp, d as preventDefault, i as isArray } from "./component-
|
|
25
|
+
import { reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeStyle, createElementBlock, createCommentVNode, ref, onMounted, Fragment, renderList, toDisplayString, normalizeClass, renderSlot, createVNode, nextTick, h } from "vue";
|
|
26
|
+
import { c as createComponent, e as clamp, d as preventDefault, i as isArray } from "./component-8f0be7eb.js";
|
|
9
27
|
import { u as useRect } from "./index-29892cda.js";
|
|
10
28
|
import { u as useTouch } from "./index-7a7385e4.js";
|
|
11
29
|
import Video from "./Video.js";
|
|
12
30
|
import SwiperItem from "./SwiperItem.js";
|
|
13
31
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
14
32
|
import { CircleClose } from "@nutui/icons-vue";
|
|
15
|
-
import { P as Popup } from "./index-
|
|
33
|
+
import { P as Popup } from "./index-dc2ebe90.js";
|
|
16
34
|
import Swiper from "./Swiper.js";
|
|
17
|
-
import { f as funInterceptor } from "./Interceptor-
|
|
35
|
+
import { f as funInterceptor } from "./Interceptor-5415601e.js";
|
|
18
36
|
import "../locale/lang";
|
|
19
|
-
import { C as CreateComponent } from "./mountComponent-
|
|
37
|
+
import { C as CreateComponent } from "./mountComponent-f2c53efb.js";
|
|
20
38
|
import Overlay from "./Overlay.js";
|
|
21
39
|
import "./index-79c5dc33.js";
|
|
22
40
|
import "./raf-729dad54.js";
|
|
@@ -29,8 +47,7 @@ const baseProps = {
|
|
|
29
47
|
};
|
|
30
48
|
const { create: create$1 } = createComponent("image-preview-item");
|
|
31
49
|
const _sfc_main$1 = create$1({
|
|
32
|
-
props: {
|
|
33
|
-
...baseProps,
|
|
50
|
+
props: __spreadProps(__spreadValues({}, baseProps), {
|
|
34
51
|
image: {
|
|
35
52
|
type: Object,
|
|
36
53
|
default: () => ({})
|
|
@@ -46,8 +63,12 @@ const _sfc_main$1 = create$1({
|
|
|
46
63
|
rootHeight: {
|
|
47
64
|
type: Number,
|
|
48
65
|
default: 0
|
|
66
|
+
},
|
|
67
|
+
contentClose: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: true
|
|
49
70
|
}
|
|
50
|
-
},
|
|
71
|
+
}),
|
|
51
72
|
emits: ["close", "scale"],
|
|
52
73
|
components: {
|
|
53
74
|
[Video.name]: Video,
|
|
@@ -127,7 +148,7 @@ const _sfc_main$1 = create$1({
|
|
|
127
148
|
state.moveX = 0;
|
|
128
149
|
state.moveY = 0;
|
|
129
150
|
};
|
|
130
|
-
const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX
|
|
151
|
+
const getDistance = (touches) => Math.sqrt(__pow(touches[0].clientX - touches[1].clientX, 2) + __pow(touches[0].clientY - touches[1].clientY, 2));
|
|
131
152
|
let startMoveX;
|
|
132
153
|
let startMoveY;
|
|
133
154
|
let startScale;
|
|
@@ -187,7 +208,9 @@ const _sfc_main$1 = create$1({
|
|
|
187
208
|
toggleScale();
|
|
188
209
|
} else {
|
|
189
210
|
doubleTapTimer = setTimeout(() => {
|
|
190
|
-
|
|
211
|
+
if (props.contentClose) {
|
|
212
|
+
emit("close");
|
|
213
|
+
}
|
|
191
214
|
doubleTapTimer = null;
|
|
192
215
|
}, TAP_TIME);
|
|
193
216
|
}
|
|
@@ -234,8 +257,7 @@ const _sfc_main$1 = create$1({
|
|
|
234
257
|
}
|
|
235
258
|
}
|
|
236
259
|
);
|
|
237
|
-
return {
|
|
238
|
-
...toRefs(state),
|
|
260
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
239
261
|
onTouchStart,
|
|
240
262
|
onTouchMove,
|
|
241
263
|
onTouchEnd,
|
|
@@ -243,7 +265,7 @@ const _sfc_main$1 = create$1({
|
|
|
243
265
|
imageStyle,
|
|
244
266
|
imageLoad,
|
|
245
267
|
closeSwiper
|
|
246
|
-
};
|
|
268
|
+
});
|
|
247
269
|
}
|
|
248
270
|
});
|
|
249
271
|
const _hoisted_1$1 = ["src"];
|
|
@@ -279,8 +301,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
279
301
|
const ImagePreviewItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
280
302
|
const { create } = createComponent("image-preview");
|
|
281
303
|
const _sfc_main = create({
|
|
282
|
-
props: {
|
|
283
|
-
...baseProps,
|
|
304
|
+
props: __spreadProps(__spreadValues({}, baseProps), {
|
|
284
305
|
images: { type: Array, default: () => [] },
|
|
285
306
|
videos: { type: Array, default: () => [] },
|
|
286
307
|
contentClose: { type: Boolean, default: true },
|
|
@@ -303,7 +324,7 @@ const _sfc_main = create({
|
|
|
303
324
|
type: Boolean,
|
|
304
325
|
default: true
|
|
305
326
|
}
|
|
306
|
-
},
|
|
327
|
+
}),
|
|
307
328
|
emits: ["close", "change"],
|
|
308
329
|
components: {
|
|
309
330
|
ImagePreviewItem,
|
|
@@ -373,14 +394,14 @@ const _sfc_main = create({
|
|
|
373
394
|
onMounted(() => {
|
|
374
395
|
setActive(props.initNo);
|
|
375
396
|
});
|
|
376
|
-
return {
|
|
377
|
-
swipeRef
|
|
378
|
-
|
|
397
|
+
return __spreadProps(__spreadValues({
|
|
398
|
+
swipeRef
|
|
399
|
+
}, toRefs(state)), {
|
|
379
400
|
onClose,
|
|
380
401
|
mergeImages,
|
|
381
402
|
setActive,
|
|
382
403
|
iconClasses
|
|
383
|
-
};
|
|
404
|
+
});
|
|
384
405
|
}
|
|
385
406
|
});
|
|
386
407
|
const _hoisted_1 = {
|
|
@@ -430,9 +451,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
430
451
|
show: _ctx.showPop,
|
|
431
452
|
"init-no": _ctx.active + 1,
|
|
432
453
|
onClose: _ctx.onClose,
|
|
454
|
+
"content-close": _ctx.contentClose,
|
|
433
455
|
maxZoom: _ctx.maxZoom,
|
|
434
456
|
minZoom: _ctx.minZoom
|
|
435
|
-
}, null, 8, ["video", "image", "rootHeight", "rootWidth", "show", "init-no", "onClose", "maxZoom", "minZoom"]);
|
|
457
|
+
}, null, 8, ["video", "image", "rootHeight", "rootWidth", "show", "init-no", "onClose", "content-close", "maxZoom", "minZoom"]);
|
|
436
458
|
}), 128))
|
|
437
459
|
]),
|
|
438
460
|
_: 1
|
|
@@ -487,7 +509,10 @@ class ImagePreviewFunction {
|
|
|
487
509
|
setup() {
|
|
488
510
|
return () => {
|
|
489
511
|
options.onClose = () => {
|
|
490
|
-
|
|
512
|
+
options.show = false;
|
|
513
|
+
nextTick(() => {
|
|
514
|
+
unmount();
|
|
515
|
+
});
|
|
491
516
|
};
|
|
492
517
|
return h(ImagePreview, options);
|
|
493
518
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRefs, computed, openBlock, createElementBlock, normalizeClass, Fragment, renderList, toDisplayString } from "vue";
|
|
2
|
-
import { p as padZero, c as createComponent } from "./component-
|
|
2
|
+
import { p as padZero, c as createComponent } from "./component-8f0be7eb.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { componentName, create } = createComponent("indicator");
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
import { ref, reactive, computed, onMounted, onUnmounted, onActivated, onDeactivated, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent, l as getScrollTopRoot } from "./component-
|
|
21
|
+
import { c as createComponent, l as getScrollTopRoot } from "./component-8f0be7eb.js";
|
|
3
22
|
import { u as useScrollParent } from "./index-43c34ac6.js";
|
|
4
23
|
import { r as requestAniFrame } from "./raf-729dad54.js";
|
|
5
24
|
import { Loading } from "@nutui/icons-vue";
|
|
@@ -122,13 +141,13 @@ const _sfc_main = create({
|
|
|
122
141
|
}
|
|
123
142
|
}
|
|
124
143
|
);
|
|
125
|
-
return {
|
|
144
|
+
return __spreadProps(__spreadValues({
|
|
126
145
|
classes,
|
|
127
|
-
scroller
|
|
128
|
-
|
|
146
|
+
scroller
|
|
147
|
+
}, toRefs(state)), {
|
|
129
148
|
translate,
|
|
130
149
|
slots
|
|
131
|
-
};
|
|
150
|
+
});
|
|
132
151
|
}
|
|
133
152
|
});
|
|
134
153
|
const _hoisted_1 = { class: "nut-infinite__container" };
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
1
17
|
import { ref, reactive, computed, watch, onMounted, h, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createBlock, resolveDynamicComponent, normalizeStyle, toDisplayString, createTextVNode, createCommentVNode, withDirectives, createVNode, mergeProps, vShow } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
18
|
+
import { c as createComponent } from "./component-8f0be7eb.js";
|
|
3
19
|
import { MaskClose } from "@nutui/icons-vue";
|
|
4
20
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
21
|
import "../locale/lang";
|
|
@@ -113,12 +129,14 @@ const _sfc_main = create({
|
|
|
113
129
|
setup(props, { emit, slots }) {
|
|
114
130
|
const active = ref(false);
|
|
115
131
|
const inputRef = ref();
|
|
116
|
-
const getModelValue = () =>
|
|
132
|
+
const getModelValue = () => {
|
|
133
|
+
var _a;
|
|
134
|
+
return String((_a = props.modelValue) != null ? _a : "");
|
|
135
|
+
};
|
|
117
136
|
const renderInput = (type) => {
|
|
118
|
-
return h("input", {
|
|
119
|
-
style: styles
|
|
120
|
-
|
|
121
|
-
});
|
|
137
|
+
return h("input", __spreadValues({
|
|
138
|
+
style: styles
|
|
139
|
+
}, inputType(type)));
|
|
122
140
|
};
|
|
123
141
|
const state = reactive({
|
|
124
142
|
focused: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createVNode, normalizeStyle } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-8f0be7eb.js";
|
|
3
3
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
4
4
|
import { Minus, Plus } from "@nutui/icons-vue";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -1,9 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
import { ref, reactive, computed, onMounted, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, withDirectives, vModelText, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-8f0be7eb.js";
|
|
3
22
|
import Form from "./Form.js";
|
|
4
23
|
import FormItem from "./FormItem.js";
|
|
5
|
-
import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-
|
|
6
|
-
import { _ as _sfc_main$2 } from "./index.vue_vue_type_script_lang-
|
|
24
|
+
import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-7b265520.js";
|
|
25
|
+
import { _ as _sfc_main$2 } from "./index.vue_vue_type_script_lang-dba4283d.js";
|
|
7
26
|
import Button from "./Button.js";
|
|
8
27
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
9
28
|
import "../locale/lang";
|
|
@@ -64,13 +83,12 @@ const _sfc_main = create({
|
|
|
64
83
|
() => init(),
|
|
65
84
|
{ deep: true }
|
|
66
85
|
);
|
|
67
|
-
return {
|
|
68
|
-
...toRefs(state),
|
|
86
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
69
87
|
classes,
|
|
70
88
|
formRef,
|
|
71
89
|
list,
|
|
72
90
|
submitFun
|
|
73
|
-
};
|
|
91
|
+
});
|
|
74
92
|
}
|
|
75
93
|
});
|
|
76
94
|
const _hoisted_1 = ["placeholder", "onUpdate:modelValue"];
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
import { ref, reactive, computed, watch, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, renderList, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-8f0be7eb.js";
|
|
3
22
|
import { u as useRect } from "./index-29892cda.js";
|
|
4
23
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
24
|
import "../locale/lang";
|
|
@@ -204,8 +223,7 @@ const _sfc_main = create({
|
|
|
204
223
|
}
|
|
205
224
|
}
|
|
206
225
|
);
|
|
207
|
-
return {
|
|
208
|
-
...toRefs(state),
|
|
226
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
209
227
|
list,
|
|
210
228
|
phantom,
|
|
211
229
|
actualContent,
|
|
@@ -214,7 +232,7 @@ const _sfc_main = create({
|
|
|
214
232
|
classes,
|
|
215
233
|
getContainerHeight,
|
|
216
234
|
handleScrollEvent
|
|
217
|
-
};
|
|
235
|
+
});
|
|
218
236
|
}
|
|
219
237
|
});
|
|
220
238
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, computed, onMounted, onUnmounted, reactive, provide, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, renderSlot, createBlock } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-8f0be7eb.js";
|
|
3
3
|
import { u as useRect } from "./index-29892cda.js";
|
|
4
4
|
import { ArrowUp2, ArrowDown2 } from "@nutui/icons-vue";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -25,9 +25,8 @@ const _sfc_main = create({
|
|
|
25
25
|
},
|
|
26
26
|
duration: {
|
|
27
27
|
type: [Number, String],
|
|
28
|
-
default: 0
|
|
28
|
+
default: 0.3
|
|
29
29
|
},
|
|
30
|
-
titleIcon: String,
|
|
31
30
|
closeOnClickOverlay: {
|
|
32
31
|
type: Boolean,
|
|
33
32
|
default: true
|