@nutui/nutui 3.1.21-beta.1 → 3.1.21
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 +57 -0
- package/dist/nutui.es.js +1514 -431
- package/dist/nutui.umd.js +1509 -426
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/AddressList.js +4 -2
- package/dist/packages/_es/Audio.js +29 -39
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +1 -1
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +9 -2
- 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 +5 -3
- 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 +2 -2
- 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/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +1 -3
- package/dist/packages/_es/DatePicker.js +8 -8
- package/dist/packages/_es/Dialog.js +8 -6
- package/dist/packages/_es/Divider.js +47 -10
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +1 -1
- package/dist/packages/_es/Elevator.js +13 -9
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +8 -3
- 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/ImagePreview.js +1 -1
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +22 -15
- package/dist/packages/_es/Input.js +1 -1
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +3 -2
- package/dist/packages/_es/Menu.js +5 -1
- package/dist/packages/_es/MenuItem.js +4 -3
- package/dist/packages/_es/Navbar.js +119 -21
- package/dist/packages/_es/NoticeBar.js +1 -1
- package/dist/packages/_es/Notify.js +1 -1
- package/dist/packages/_es/NumberKeyboard.js +25 -8
- 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 +4 -2
- package/dist/packages/_es/Popover.js +890 -93
- package/dist/packages/_es/Popup.js +7 -4
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +3 -3
- 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 +3 -3
- package/dist/packages/_es/SearchBar.js +91 -25
- 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 +2 -2
- 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 +35 -16
- package/dist/packages/_es/SwiperItem.js +5 -2
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +7 -3
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +2 -1
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +12 -7
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +1 -1
- package/dist/packages/_es/Uploader.js +5 -4
- package/dist/packages/_es/Video.js +1 -1
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +2 -2
- 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/_es/style.css +1 -1
- package/dist/packages/addresslist/index.scss +2 -2
- package/dist/packages/card/index.scss +1 -1
- package/dist/packages/cell/index.scss +4 -0
- package/dist/packages/dialog/index.scss +0 -2
- package/dist/packages/divider/index.scss +9 -0
- package/dist/packages/formitem/index.scss +1 -0
- package/dist/packages/locale/index.d.ts +8 -3
- package/dist/packages/locale/{locale/lang → lang}/baseLang.d.ts +6 -1
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/{locale/lang → lang}/en-US.d.ts +14 -1
- package/dist/packages/locale/lang/en-US.js +15 -2
- package/dist/packages/locale/lang/id-ID.d.ts +96 -0
- package/dist/packages/locale/lang/id-ID.js +104 -0
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/{locale/lang → lang}/zh-CN.d.ts +14 -1
- package/dist/packages/locale/lang/zh-CN.js +15 -2
- package/dist/packages/locale/{locale/lang → lang}/zh-TW.d.ts +14 -1
- package/dist/packages/locale/lang/zh-TW.js +15 -2
- package/dist/packages/menuitem/index.scss +0 -1
- package/dist/packages/navbar/index.scss +8 -1
- package/dist/packages/popover/index.scss +402 -81
- package/dist/packages/popup/index.scss +3 -0
- package/dist/packages/searchbar/index.scss +4 -0
- package/dist/packages/tabbar/index.scss +2 -2
- package/dist/packages/tabpane/index.scss +4 -2
- package/dist/packages/tabs/index.scss +3 -0
- package/dist/packages/timeselect/index.scss +3 -2
- package/dist/smartips/attributes.json +130 -34
- package/dist/smartips/tags.json +49 -23
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +46 -46
- package/dist/styles/themes/jdb.scss +97 -0
- package/dist/styles/themes/jdt.scss +46 -46
- package/dist/styles/variables-jdb.scss +852 -0
- package/dist/styles/variables-jdt.scss +15 -7
- package/dist/styles/variables.scss +15 -6
- package/dist/types/__VUE/actionsheet/{index.d.ts → index.vue.d.ts} +63 -115
- package/dist/types/__VUE/address/{index.d.ts → index.vue.d.ts} +80 -150
- package/dist/types/__VUE/addresslist/components/{GeneralShell.d.ts → GeneralShell.vue.d.ts} +6 -7
- package/dist/types/__VUE/addresslist/components/{ItemContents.d.ts → ItemContents.vue.d.ts} +8 -11
- package/dist/types/__VUE/addresslist/components/{LongPressShell.d.ts → LongPressShell.vue.d.ts} +6 -7
- package/dist/types/__VUE/addresslist/components/{SwipeShell.d.ts → SwipeShell.vue.d.ts} +6 -7
- package/dist/types/__VUE/addresslist/{index.d.ts → index.vue.d.ts} +15 -24
- package/dist/types/__VUE/audio/index.vue.d.ts +102 -0
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +87 -0
- package/dist/types/__VUE/avatar/{index.d.ts → index.vue.d.ts} +19 -32
- package/dist/types/__VUE/avatargroup/{index.d.ts → index.vue.d.ts} +20 -35
- package/dist/types/__VUE/backtop/{index.d.ts → index.vue.d.ts} +19 -35
- package/dist/types/__VUE/badge/{index.d.ts → index.vue.d.ts} +20 -33
- package/dist/types/__VUE/barrage/{index.d.ts → index.vue.d.ts} +15 -26
- package/dist/types/__VUE/button/{index.d.ts → index.vue.d.ts} +34 -51
- package/dist/types/__VUE/button/type.d.ts +7 -0
- package/dist/types/__VUE/calendar/{index.d.ts → index.vue.d.ts} +32 -57
- package/dist/types/__VUE/calendaritem/{index.d.ts → index.vue.d.ts} +35 -60
- package/dist/types/__VUE/card/{index.d.ts → index.vue.d.ts} +19 -34
- package/dist/types/__VUE/cascader/{cascader-item.d.ts → cascader-item.vue.d.ts} +23 -24
- package/dist/types/__VUE/cascader/{index.d.ts → index.vue.d.ts} +63 -99
- package/dist/types/__VUE/category/{index.d.ts → index.vue.d.ts} +7 -10
- package/dist/types/__VUE/categorypane/{index.d.ts → index.vue.d.ts} +10 -15
- package/dist/types/__VUE/cell/{index.d.ts → index.vue.d.ts} +32 -40
- package/dist/types/__VUE/cellgroup/{index.d.ts → index.vue.d.ts} +8 -11
- package/dist/types/__VUE/checkbox/{index.d.ts → index.vue.d.ts} +21 -38
- package/dist/types/__VUE/checkboxgroup/{index.d.ts → index.vue.d.ts} +8 -11
- package/dist/types/__VUE/circleprogress/{index.d.ts → index.vue.d.ts} +18 -31
- package/dist/types/__VUE/col/{index.d.ts → index.vue.d.ts} +7 -10
- package/dist/types/__VUE/collapse/{index.d.ts → index.vue.d.ts} +24 -40
- package/dist/types/__VUE/collapseitem/{index.d.ts → index.vue.d.ts} +22 -30
- package/dist/types/__VUE/comment/components/{CmtBottom.d.ts → CmtBottom.vue.d.ts} +11 -16
- package/dist/types/__VUE/comment/components/{CmtHeader.d.ts → CmtHeader.vue.d.ts} +10 -15
- package/dist/types/__VUE/comment/components/{CmtImages.d.ts → CmtImages.vue.d.ts} +10 -15
- package/dist/types/__VUE/comment/{index.d.ts → index.vue.d.ts} +22 -39
- package/dist/types/__VUE/countdown/{index.d.ts → index.vue.d.ts} +22 -36
- package/dist/types/__VUE/countup/{index.d.ts → index.vue.d.ts} +41 -74
- package/dist/types/__VUE/datepicker/{index.d.ts → index.vue.d.ts} +69 -123
- package/dist/types/__VUE/dialog/index.d.ts +37 -302
- package/dist/types/__VUE/dialog/index.vue.d.ts +254 -0
- package/dist/types/__VUE/divider/{index.d.ts → index.vue.d.ts} +15 -15
- package/dist/types/__VUE/drag/{index.d.ts → index.vue.d.ts} +9 -19
- package/dist/types/__VUE/ecard/{index.d.ts → index.vue.d.ts} +25 -44
- package/dist/types/__VUE/elevator/{index.d.ts → index.vue.d.ts} +10 -14
- package/dist/types/__VUE/empty/{index.d.ts → index.vue.d.ts} +10 -15
- package/dist/types/__VUE/fixednav/{index.d.ts → index.vue.d.ts} +20 -36
- package/dist/types/__VUE/form/{index.d.ts → index.vue.d.ts} +5 -6
- package/dist/types/__VUE/formitem/{index.d.ts → index.vue.d.ts} +26 -45
- package/dist/types/__VUE/grid/{index.d.ts → index.vue.d.ts} +25 -41
- package/dist/types/__VUE/griditem/{index.d.ts → index.vue.d.ts} +19 -26
- package/dist/types/__VUE/icon/{index.d.ts → index.vue.d.ts} +15 -26
- package/dist/types/__VUE/imagepreview/index.d.ts +20 -121
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +108 -0
- package/dist/types/__VUE/indicator/{index.d.ts → index.vue.d.ts} +13 -24
- package/dist/types/__VUE/infiniteloading/{index.d.ts → index.vue.d.ts} +30 -47
- package/dist/types/__VUE/input/{index.d.ts → index.vue.d.ts} +83 -146
- package/dist/types/__VUE/input/type.d.ts +13 -0
- package/dist/types/__VUE/inputnumber/{index.d.ts → index.vue.d.ts} +22 -39
- package/dist/types/__VUE/layout/{index.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/list/{index.d.ts → index.vue.d.ts} +10 -14
- package/dist/types/__VUE/menu/{index.d.ts → index.vue.d.ts} +16 -14
- package/dist/types/__VUE/menuitem/{index.d.ts → index.vue.d.ts} +17 -21
- package/dist/types/__VUE/navbar/{index.d.ts → index.vue.d.ts} +48 -26
- package/dist/types/__VUE/noticebar/{index.d.ts → index.vue.d.ts} +34 -63
- package/dist/types/__VUE/notify/index.d.ts +12 -109
- package/dist/types/__VUE/notify/index.vue.d.ts +101 -0
- package/dist/types/__VUE/numberkeyboard/{index.d.ts → index.vue.d.ts} +44 -46
- package/dist/types/__VUE/oldpicker/{Column.d.ts → Column.vue.d.ts} +17 -22
- package/dist/types/__VUE/oldpicker/{index.d.ts → index.vue.d.ts} +75 -128
- package/dist/types/__VUE/overlay/{index.d.ts → index.vue.d.ts} +19 -30
- package/dist/types/__VUE/pagination/{index.d.ts → index.vue.d.ts} +22 -39
- package/dist/types/__VUE/picker/{Column.d.ts → Column.vue.d.ts} +16 -18
- package/dist/types/__VUE/picker/{index.d.ts → index.vue.d.ts} +80 -130
- package/dist/types/__VUE/popover/{index.d.ts → index.vue.d.ts} +86 -110
- package/dist/types/__VUE/popover/type.d.ts +6 -0
- package/dist/types/__VUE/popup/{index.d.ts → index.vue.d.ts} +47 -82
- package/dist/types/__VUE/price/{index.d.ts → index.vue.d.ts} +17 -30
- package/dist/types/__VUE/progress/{index.d.ts → index.vue.d.ts} +29 -53
- package/dist/types/__VUE/pullrefresh/{index.d.ts → index.vue.d.ts} +18 -46
- package/dist/types/__VUE/radio/{index.d.ts → index.vue.d.ts} +19 -34
- package/dist/types/__VUE/radiogroup/{index.d.ts → index.vue.d.ts} +10 -15
- package/dist/types/__VUE/range/{index.d.ts → index.vue.d.ts} +34 -46
- package/dist/types/__VUE/range/type.d.ts +5 -0
- package/dist/types/__VUE/rate/{index.d.ts → index.vue.d.ts} +29 -54
- package/dist/types/__VUE/row/{index.d.ts → index.vue.d.ts} +16 -25
- package/dist/types/__VUE/searchbar/{index.d.ts → index.vue.d.ts} +63 -33
- package/dist/types/__VUE/shortpassword/{index.d.ts → index.vue.d.ts} +25 -44
- package/dist/types/__VUE/sidenavbar/{index.d.ts → index.vue.d.ts} +6 -7
- package/dist/types/__VUE/sidenavbaritem/{index.d.ts → index.vue.d.ts} +8 -11
- package/dist/types/__VUE/signature/{index.d.ts → index.vue.d.ts} +14 -23
- package/dist/types/__VUE/skeleton/common.d.ts +1 -1
- package/dist/types/__VUE/skeleton/{index.d.ts → index.vue.d.ts} +24 -43
- package/dist/types/__VUE/sku/components/{SkuHeader.d.ts → SkuHeader.vue.d.ts} +7 -8
- package/dist/types/__VUE/sku/components/{SkuOperate.d.ts → SkuOperate.vue.d.ts} +14 -23
- package/dist/types/__VUE/sku/components/{SkuSelect.d.ts → SkuSelect.vue.d.ts} +6 -7
- package/dist/types/__VUE/sku/components/{SkuStepper.d.ts → SkuStepper.vue.d.ts} +12 -19
- package/dist/types/__VUE/sku/{index.d.ts → index.vue.d.ts} +68 -126
- package/dist/types/__VUE/step/{index.d.ts → index.vue.d.ts} +15 -24
- package/dist/types/__VUE/steps/{index.d.ts → index.vue.d.ts} +9 -14
- package/dist/types/__VUE/sticky/{index.d.ts → index.vue.d.ts} +14 -21
- package/dist/types/__VUE/subsidenavbar/{index.d.ts → index.vue.d.ts} +10 -15
- package/dist/types/__VUE/swipe/{index.d.ts → index.vue.d.ts} +12 -19
- package/dist/types/__VUE/swiper/{index.d.ts → index.vue.d.ts} +30 -50
- package/dist/types/__VUE/swiperitem/{index.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/switch/{index.d.ts → index.vue.d.ts} +27 -50
- package/dist/types/__VUE/tabbar/{index.d.ts → index.vue.d.ts} +17 -30
- package/dist/types/__VUE/tabbaritem/{index.d.ts → index.vue.d.ts} +25 -40
- package/dist/types/__VUE/table/common.d.ts +1 -1
- package/dist/types/__VUE/table/{index.d.ts → index.vue.d.ts} +14 -23
- package/dist/types/__VUE/tabpane/{index.d.ts → index.vue.d.ts} +11 -15
- package/dist/types/__VUE/tabs/common.d.ts +4 -0
- package/dist/types/__VUE/tabs/{index.d.ts → index.vue.d.ts} +30 -42
- package/dist/types/__VUE/tag/{index.d.ts → index.vue.d.ts} +21 -34
- package/dist/types/__VUE/tag/type.d.ts +5 -0
- package/dist/types/__VUE/textarea/{index.d.ts → index.vue.d.ts} +27 -46
- package/dist/types/__VUE/timedetail/{index.d.ts → index.vue.d.ts} +8 -11
- package/dist/types/__VUE/timepannel/{index.d.ts → index.vue.d.ts} +8 -11
- package/dist/types/__VUE/timeselect/{index.d.ts → index.vue.d.ts} +18 -29
- package/dist/types/__VUE/toast/index.d.ts +12 -145
- package/dist/types/__VUE/toast/index.vue.d.ts +134 -0
- package/dist/types/__VUE/uploader/{index.d.ts → index.vue.d.ts} +60 -107
- package/dist/types/__VUE/uploader/type.d.ts +17 -0
- package/dist/types/__VUE/video/{index.d.ts → index.vue.d.ts} +11 -28
- package/dist/types/index.d.ts +7 -2
- package/dist/types/nutui.d.ts +92 -92
- package/package.json +5 -3
- package/dist/packages/locale/locale/index.d.ts +0 -8
- package/dist/types/__VUE/audio/index.d.ts +0 -92
- package/dist/types/__VUE/audiooperate/index.d.ts +0 -68
package/dist/nutui.es.js
CHANGED
|
@@ -31,11 +31,11 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
33
|
/*!
|
|
34
|
-
* @nutui/nutui v3.1.21
|
|
34
|
+
* @nutui/nutui v3.1.21 Mon May 30 2022 20:19:56 GMT+0800 (中国标准时间)
|
|
35
35
|
* (c) 2022 @jdf2e.
|
|
36
36
|
* Released under the MIT License.
|
|
37
37
|
*/
|
|
38
|
-
import { reactive, ref, defineComponent, h, toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot, getCurrentInstance, Fragment, toDisplayString, createTextVNode, watch, onDeactivated, onBeforeUnmount, onMounted, onActivated, Transition, withCtx, withDirectives, withModifiers, vShow, onBeforeMount, Teleport, createVNode, inject, provide, unref, onUnmounted, shallowReactive, markRaw, isVNode, renderList, mergeProps,
|
|
38
|
+
import { reactive, ref, defineComponent, h, toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot, getCurrentInstance, Fragment, toDisplayString, createTextVNode, watch, onDeactivated, onBeforeUnmount, onMounted, onActivated, Transition, withCtx, withDirectives, withModifiers, vShow, onBeforeMount, Teleport, createVNode, inject, provide, unref, onUnmounted, shallowReactive, markRaw, isVNode, nextTick, renderList, mergeProps, watchEffect, createSlots, readonly, vModelText, toRaw, useSlots, resolveDynamicComponent, render as render$1 } from "vue";
|
|
39
39
|
class BaseLang {
|
|
40
40
|
}
|
|
41
41
|
class Lang$1 extends BaseLang {
|
|
@@ -107,7 +107,7 @@ class Lang$1 extends BaseLang {
|
|
|
107
107
|
this.sku = {
|
|
108
108
|
buyNow: "\u7ACB\u5373\u8D2D\u4E70",
|
|
109
109
|
buyNumber: "\u8D2D\u4E70\u6570\u91CF",
|
|
110
|
-
|
|
110
|
+
addToCart: "\u52A0\u5165\u8D2D\u7269\u8F66"
|
|
111
111
|
};
|
|
112
112
|
this.skuheader = {
|
|
113
113
|
skuId: "\u5546\u54C1\u7F16\u53F7"
|
|
@@ -120,6 +120,19 @@ class Lang$1 extends BaseLang {
|
|
|
120
120
|
additionalReview: (day) => `\u8D2D\u4E70${day}\u5929\u540E\u8FFD\u8BC4`,
|
|
121
121
|
additionalImages: (length) => `${length}\u5F20\u8FFD\u8BC4\u56FE\u7247`
|
|
122
122
|
};
|
|
123
|
+
this.infiniteloading = {
|
|
124
|
+
loading: "\u52A0\u8F7D\u4E2D...",
|
|
125
|
+
pullTxt: "\u677E\u5F00\u5237\u65B0",
|
|
126
|
+
loadMoreTxt: "\u54CE\u5440\uFF0C\u8FD9\u91CC\u662F\u5E95\u90E8\u4E86\u5566"
|
|
127
|
+
};
|
|
128
|
+
this.datepicker = {
|
|
129
|
+
year: "\u5E74",
|
|
130
|
+
month: "\u6708",
|
|
131
|
+
day: "\u65E5",
|
|
132
|
+
hour: "\u65F6",
|
|
133
|
+
min: "\u5206",
|
|
134
|
+
seconds: "\u79D2"
|
|
135
|
+
};
|
|
123
136
|
}
|
|
124
137
|
}
|
|
125
138
|
class Lang extends BaseLang {
|
|
@@ -191,7 +204,7 @@ class Lang extends BaseLang {
|
|
|
191
204
|
this.sku = {
|
|
192
205
|
buyNow: "Buy Now",
|
|
193
206
|
buyNumber: "Buy Number",
|
|
194
|
-
|
|
207
|
+
addToCart: "Add to Cart"
|
|
195
208
|
};
|
|
196
209
|
this.skuheader = {
|
|
197
210
|
skuId: "Sku Number"
|
|
@@ -204,6 +217,19 @@ class Lang extends BaseLang {
|
|
|
204
217
|
additionalReview: (day) => `Review after ${day} days of purchase`,
|
|
205
218
|
additionalImages: (length) => `There are ${length} follow-up comments`
|
|
206
219
|
};
|
|
220
|
+
this.infiniteloading = {
|
|
221
|
+
loading: "Loading...",
|
|
222
|
+
pullTxt: "Loose to refresh",
|
|
223
|
+
loadMoreTxt: "Oops, this is the bottom"
|
|
224
|
+
};
|
|
225
|
+
this.datepicker = {
|
|
226
|
+
year: "Year",
|
|
227
|
+
month: "Month",
|
|
228
|
+
day: "Day",
|
|
229
|
+
hour: "Hour",
|
|
230
|
+
min: "Minute",
|
|
231
|
+
seconds: "Second"
|
|
232
|
+
};
|
|
207
233
|
}
|
|
208
234
|
}
|
|
209
235
|
const TypeOfFun = (value) => {
|
|
@@ -520,7 +546,8 @@ const _sfc_main$1H = create$1H({
|
|
|
520
546
|
replace: { type: Boolean, default: false },
|
|
521
547
|
roundRadius: { type: [String, Number], default: "" },
|
|
522
548
|
url: { type: String, default: "" },
|
|
523
|
-
icon: { type: String, default: "" }
|
|
549
|
+
icon: { type: String, default: "" },
|
|
550
|
+
center: { type: Boolean, default: false }
|
|
524
551
|
},
|
|
525
552
|
emits: ["click"],
|
|
526
553
|
setup(props, { emit }) {
|
|
@@ -528,7 +555,8 @@ const _sfc_main$1H = create$1H({
|
|
|
528
555
|
const prefixCls = componentName$1l;
|
|
529
556
|
return {
|
|
530
557
|
[prefixCls]: true,
|
|
531
|
-
[`${prefixCls}--clickable`]: props.isLink || props.to
|
|
558
|
+
[`${prefixCls}--clickable`]: props.isLink || props.to,
|
|
559
|
+
[`${prefixCls}--center`]: props.center
|
|
532
560
|
};
|
|
533
561
|
});
|
|
534
562
|
const router = useRouter();
|
|
@@ -560,8 +588,8 @@ const _hoisted_2$11 = {
|
|
|
560
588
|
key: 1,
|
|
561
589
|
class: "nut-cell__title"
|
|
562
590
|
};
|
|
563
|
-
const _hoisted_3$
|
|
564
|
-
const _hoisted_4$
|
|
591
|
+
const _hoisted_3$O = { class: "title" };
|
|
592
|
+
const _hoisted_4$F = { class: "nut-cell__title-desc" };
|
|
565
593
|
function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
566
594
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
567
595
|
return openBlock(), createElementBlock("view", {
|
|
@@ -579,8 +607,8 @@ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
579
607
|
])) : createCommentVNode("", true),
|
|
580
608
|
_ctx.title || _ctx.subTitle ? (openBlock(), createElementBlock("view", _hoisted_2$11, [
|
|
581
609
|
_ctx.subTitle ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
582
|
-
createElementVNode("view", _hoisted_3$
|
|
583
|
-
createElementVNode("view", _hoisted_4$
|
|
610
|
+
createElementVNode("view", _hoisted_3$O, toDisplayString(_ctx.title), 1),
|
|
611
|
+
createElementVNode("view", _hoisted_4$F, toDisplayString(_ctx.subTitle), 1)
|
|
584
612
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
585
613
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
586
614
|
], 64))
|
|
@@ -625,14 +653,14 @@ const _hoisted_2$10 = {
|
|
|
625
653
|
key: 3,
|
|
626
654
|
class: "nut-cell-group__desc"
|
|
627
655
|
};
|
|
628
|
-
const _hoisted_3$
|
|
656
|
+
const _hoisted_3$N = { class: "nut-cell-group__warp" };
|
|
629
657
|
function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
630
658
|
return openBlock(), createElementBlock("view", {
|
|
631
659
|
class: normalizeClass(_ctx.classes)
|
|
632
660
|
}, [
|
|
633
661
|
_ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$1e, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
634
662
|
_ctx.$slots.desc ? renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_2$10, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
635
|
-
createElementVNode("view", _hoisted_3$
|
|
663
|
+
createElementVNode("view", _hoisted_3$N, [
|
|
636
664
|
renderSlot(_ctx.$slots, "default")
|
|
637
665
|
])
|
|
638
666
|
], 2);
|
|
@@ -808,6 +836,7 @@ const _sfc_main$1E = create$1E({
|
|
|
808
836
|
props: __spreadValues({}, popupProps),
|
|
809
837
|
emits: ["click", "click-close-icon", "open", "close", "opend", "closed", "update:visible", "click-overlay"],
|
|
810
838
|
setup(props, { emit }) {
|
|
839
|
+
const popupRef = ref();
|
|
811
840
|
const state = reactive({
|
|
812
841
|
zIndex: props.zIndex ? props.zIndex : _zIndex,
|
|
813
842
|
showSlot: true,
|
|
@@ -922,7 +951,8 @@ const _sfc_main$1E = create$1E({
|
|
|
922
951
|
onClickCloseIcon,
|
|
923
952
|
onClickOverlay,
|
|
924
953
|
onOpened,
|
|
925
|
-
onClosed
|
|
954
|
+
onClosed,
|
|
955
|
+
popupRef
|
|
926
956
|
});
|
|
927
957
|
}
|
|
928
958
|
});
|
|
@@ -954,7 +984,8 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
954
984
|
withDirectives(createElementVNode("view", {
|
|
955
985
|
class: normalizeClass(_ctx.classes),
|
|
956
986
|
style: normalizeStyle(_ctx.popStyle),
|
|
957
|
-
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
987
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args)),
|
|
988
|
+
ref: "popupRef"
|
|
958
989
|
}, [
|
|
959
990
|
_ctx.showSlot ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
|
|
960
991
|
_ctx.closed ? (openBlock(), createElementBlock("view", {
|
|
@@ -1088,7 +1119,7 @@ const _sfc_main$1B = create$1B({
|
|
|
1088
1119
|
type: String,
|
|
1089
1120
|
default: "flex-start"
|
|
1090
1121
|
},
|
|
1091
|
-
|
|
1122
|
+
flexWrap: {
|
|
1092
1123
|
type: String,
|
|
1093
1124
|
default: "nowrap"
|
|
1094
1125
|
}
|
|
@@ -1105,7 +1136,7 @@ const _sfc_main$1B = create$1B({
|
|
|
1105
1136
|
${getClass("", props.type)}
|
|
1106
1137
|
${getClass("justify", props.justify)}
|
|
1107
1138
|
${getClass("align", props.align)}
|
|
1108
|
-
${getClass("flex", props.
|
|
1139
|
+
${getClass("flex", props.flexWrap)}
|
|
1109
1140
|
${prefixCls}
|
|
1110
1141
|
`;
|
|
1111
1142
|
};
|
|
@@ -1204,14 +1235,14 @@ const _sfc_main$1A = create$1A({
|
|
|
1204
1235
|
const style = {
|
|
1205
1236
|
width: `${state.width}px`,
|
|
1206
1237
|
height: `${state.height}px`,
|
|
1207
|
-
[props.position]: `${
|
|
1238
|
+
[props.position]: `${offset2.value}px`,
|
|
1208
1239
|
zIndex: +props.zIndex
|
|
1209
1240
|
};
|
|
1210
1241
|
if (state.transform)
|
|
1211
1242
|
style.transform = `translate3d(0, ${state.transform}px, 0)`;
|
|
1212
1243
|
return style;
|
|
1213
1244
|
});
|
|
1214
|
-
const
|
|
1245
|
+
const offset2 = computed(() => {
|
|
1215
1246
|
return props.position === "top" ? props.top : props.bottom;
|
|
1216
1247
|
});
|
|
1217
1248
|
const isHidden = (elementRef) => {
|
|
@@ -1251,21 +1282,21 @@ const _sfc_main$1A = create$1A({
|
|
|
1251
1282
|
if (position === "top") {
|
|
1252
1283
|
if (container) {
|
|
1253
1284
|
const containerRect = useRect(container);
|
|
1254
|
-
const diff = containerRect.bottom - +
|
|
1255
|
-
state.fixed = +
|
|
1285
|
+
const diff = containerRect.bottom - +offset2.value - state.height;
|
|
1286
|
+
state.fixed = +offset2.value > rootRect.top && containerRect.bottom > 0;
|
|
1256
1287
|
state.transform = diff < 0 ? diff : 0;
|
|
1257
1288
|
} else {
|
|
1258
|
-
state.fixed =
|
|
1289
|
+
state.fixed = offset2.value > rootRect.top;
|
|
1259
1290
|
}
|
|
1260
1291
|
} else if (position === "bottom") {
|
|
1261
1292
|
const clientHeight = document.documentElement.clientHeight;
|
|
1262
1293
|
if (container) {
|
|
1263
1294
|
const containerRect = useRect(container);
|
|
1264
|
-
const diff = clientHeight - containerRect.top - +
|
|
1265
|
-
state.fixed = clientHeight - +
|
|
1295
|
+
const diff = clientHeight - containerRect.top - +offset2.value - state.height;
|
|
1296
|
+
state.fixed = clientHeight - +offset2.value < rootRect.bottom && clientHeight > containerRect.top;
|
|
1266
1297
|
state.transform = diff < 0 ? -diff : 0;
|
|
1267
1298
|
} else {
|
|
1268
|
-
state.fixed = clientHeight - +
|
|
1299
|
+
state.fixed = clientHeight - +offset2.value < rootRect.bottom;
|
|
1269
1300
|
}
|
|
1270
1301
|
}
|
|
1271
1302
|
emit("scroll", {
|
|
@@ -1305,30 +1336,48 @@ const _sfc_main$1z = create$1z({
|
|
|
1305
1336
|
hairline: {
|
|
1306
1337
|
type: Boolean,
|
|
1307
1338
|
default: true
|
|
1339
|
+
},
|
|
1340
|
+
direction: {
|
|
1341
|
+
type: String,
|
|
1342
|
+
default: "horizontal"
|
|
1308
1343
|
}
|
|
1309
1344
|
},
|
|
1310
1345
|
components: {},
|
|
1311
1346
|
setup(props, context) {
|
|
1312
1347
|
const classes = computed(() => {
|
|
1313
1348
|
const prefixCls = componentName$1e;
|
|
1314
|
-
|
|
1315
|
-
[prefixCls]: true
|
|
1316
|
-
[`${prefixCls}-center`]: context.slots.default,
|
|
1317
|
-
[`${prefixCls}-left`]: props.contentPosition === "left",
|
|
1318
|
-
[`${prefixCls}-right`]: props.contentPosition === "right",
|
|
1319
|
-
[`${prefixCls}-dashed`]: props.dashed,
|
|
1320
|
-
[`${prefixCls}-hairline`]: props.hairline
|
|
1349
|
+
let defaultClassesObj = {
|
|
1350
|
+
[prefixCls]: true
|
|
1321
1351
|
};
|
|
1352
|
+
let classesObj = {};
|
|
1353
|
+
if (props.direction === "horizontal") {
|
|
1354
|
+
classesObj = __spreadProps(__spreadValues({}, defaultClassesObj), {
|
|
1355
|
+
[`${prefixCls}-center`]: context.slots.default,
|
|
1356
|
+
[`${prefixCls}-left`]: props.contentPosition === "left",
|
|
1357
|
+
[`${prefixCls}-right`]: props.contentPosition === "right",
|
|
1358
|
+
[`${prefixCls}-dashed`]: props.dashed,
|
|
1359
|
+
[`${prefixCls}-hairline`]: props.hairline
|
|
1360
|
+
});
|
|
1361
|
+
} else {
|
|
1362
|
+
classesObj = __spreadProps(__spreadValues({}, defaultClassesObj), {
|
|
1363
|
+
[`${prefixCls}-vertical`]: props.direction === "vertical"
|
|
1364
|
+
});
|
|
1365
|
+
}
|
|
1366
|
+
return classesObj;
|
|
1322
1367
|
});
|
|
1323
1368
|
return { classes };
|
|
1324
1369
|
}
|
|
1325
1370
|
});
|
|
1326
1371
|
function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1327
|
-
return openBlock(), createElementBlock("
|
|
1372
|
+
return _ctx.direction === "horizontal" ? (openBlock(), createElementBlock("view", {
|
|
1373
|
+
key: 0,
|
|
1328
1374
|
class: normalizeClass(_ctx.classes)
|
|
1329
1375
|
}, [
|
|
1330
1376
|
renderSlot(_ctx.$slots, "default")
|
|
1331
|
-
], 2)
|
|
1377
|
+
], 2)) : (openBlock(), createElementBlock("view", {
|
|
1378
|
+
key: 1,
|
|
1379
|
+
class: normalizeClass(_ctx.classes)
|
|
1380
|
+
}, null, 2));
|
|
1332
1381
|
}
|
|
1333
1382
|
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", _sfc_render$1s]]);
|
|
1334
1383
|
function flattenVNodes(children, childName) {
|
|
@@ -1603,6 +1652,7 @@ const _sfc_main$1w = create$1w({
|
|
|
1603
1652
|
leftShow: { type: Boolean, default: true },
|
|
1604
1653
|
title: { type: String, default: "" },
|
|
1605
1654
|
titIcon: { type: String, default: "" },
|
|
1655
|
+
leftText: { type: String, default: "" },
|
|
1606
1656
|
desc: { type: String, default: "" },
|
|
1607
1657
|
fixed: {
|
|
1608
1658
|
type: Boolean,
|
|
@@ -1611,19 +1661,49 @@ const _sfc_main$1w = create$1w({
|
|
|
1611
1661
|
safeAreaInsetTop: {
|
|
1612
1662
|
type: Boolean,
|
|
1613
1663
|
default: false
|
|
1664
|
+
},
|
|
1665
|
+
border: {
|
|
1666
|
+
type: Boolean,
|
|
1667
|
+
default: false
|
|
1668
|
+
},
|
|
1669
|
+
placeholder: {
|
|
1670
|
+
type: Boolean,
|
|
1671
|
+
default: true
|
|
1672
|
+
},
|
|
1673
|
+
zIndex: {
|
|
1674
|
+
type: [Number, String],
|
|
1675
|
+
default: 10
|
|
1614
1676
|
}
|
|
1615
1677
|
},
|
|
1616
1678
|
emits: ["on-click-back", "on-click-title", "on-click-icon", "on-click-right"],
|
|
1617
1679
|
setup(props, { emit }) {
|
|
1618
|
-
const { fixed, safeAreaInsetTop } = toRefs(props);
|
|
1680
|
+
const { border, fixed, safeAreaInsetTop, placeholder, zIndex } = toRefs(props);
|
|
1681
|
+
const navBarWrap = ref(null);
|
|
1682
|
+
const navBarHtml = ref(null);
|
|
1683
|
+
let navHeight = ref(0);
|
|
1619
1684
|
const classes = computed(() => {
|
|
1620
1685
|
const prefixCls = componentName$1b;
|
|
1621
1686
|
return {
|
|
1622
1687
|
[prefixCls]: true,
|
|
1688
|
+
[`${prefixCls}--border`]: border.value,
|
|
1623
1689
|
[`${prefixCls}--fixed`]: fixed.value,
|
|
1624
1690
|
[`${prefixCls}--safe-area-inset-top`]: safeAreaInsetTop.value
|
|
1625
1691
|
};
|
|
1626
1692
|
});
|
|
1693
|
+
const styles = computed(() => {
|
|
1694
|
+
return {
|
|
1695
|
+
zIndex: zIndex.value
|
|
1696
|
+
};
|
|
1697
|
+
});
|
|
1698
|
+
onMounted(() => {
|
|
1699
|
+
if (fixed.value && placeholder.value) {
|
|
1700
|
+
nextTick(() => {
|
|
1701
|
+
var _a;
|
|
1702
|
+
navHeight = (_a = navBarHtml == null ? void 0 : navBarHtml.value) == null ? void 0 : _a.getBoundingClientRect().height;
|
|
1703
|
+
navBarWrap.value.style.height = navHeight + "px";
|
|
1704
|
+
});
|
|
1705
|
+
}
|
|
1706
|
+
});
|
|
1627
1707
|
function handleLeft() {
|
|
1628
1708
|
emit("on-click-back");
|
|
1629
1709
|
}
|
|
@@ -1637,7 +1717,10 @@ const _sfc_main$1w = create$1w({
|
|
|
1637
1717
|
emit("on-click-right");
|
|
1638
1718
|
}
|
|
1639
1719
|
return {
|
|
1720
|
+
navBarWrap,
|
|
1721
|
+
navBarHtml,
|
|
1640
1722
|
classes,
|
|
1723
|
+
styles,
|
|
1641
1724
|
handleLeft,
|
|
1642
1725
|
handleCenter,
|
|
1643
1726
|
handleCenterIcon,
|
|
@@ -1645,28 +1728,93 @@ const _sfc_main$1w = create$1w({
|
|
|
1645
1728
|
};
|
|
1646
1729
|
}
|
|
1647
1730
|
});
|
|
1648
|
-
const _hoisted_1$1b = {
|
|
1649
|
-
|
|
1650
|
-
|
|
1731
|
+
const _hoisted_1$1b = {
|
|
1732
|
+
key: 0,
|
|
1733
|
+
class: "nut-navbar--placeholder",
|
|
1734
|
+
ref: "navBarWrap"
|
|
1735
|
+
};
|
|
1736
|
+
const _hoisted_2$$ = {
|
|
1737
|
+
key: 1,
|
|
1738
|
+
class: "nut-navbar__text"
|
|
1739
|
+
};
|
|
1740
|
+
const _hoisted_3$M = { class: "nut-navbar__title" };
|
|
1741
|
+
const _hoisted_4$E = {
|
|
1742
|
+
key: 0,
|
|
1743
|
+
class: "nut-navbar__text"
|
|
1744
|
+
};
|
|
1745
|
+
const _hoisted_5$s = {
|
|
1746
|
+
key: 1,
|
|
1747
|
+
class: "nut-navbar__text"
|
|
1748
|
+
};
|
|
1749
|
+
const _hoisted_6$o = { class: "nut-navbar__title" };
|
|
1750
|
+
const _hoisted_7$j = {
|
|
1751
|
+
key: 0,
|
|
1752
|
+
class: "nut-navbar__text"
|
|
1753
|
+
};
|
|
1651
1754
|
function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1652
1755
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
1653
|
-
return openBlock(), createElementBlock("view",
|
|
1654
|
-
|
|
1756
|
+
return _ctx.fixed && _ctx.placeholder ? (openBlock(), createElementBlock("view", _hoisted_1$1b, [
|
|
1757
|
+
createElementVNode("view", {
|
|
1758
|
+
class: normalizeClass(_ctx.classes),
|
|
1759
|
+
style: normalizeStyle(_ctx.styles),
|
|
1760
|
+
ref: "navBarHtml"
|
|
1761
|
+
}, [
|
|
1762
|
+
createElementVNode("view", {
|
|
1763
|
+
class: "nut-navbar__left",
|
|
1764
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleLeft && _ctx.handleLeft(...args))
|
|
1765
|
+
}, [
|
|
1766
|
+
_ctx.leftShow ? (openBlock(), createBlock(_component_nut_icon, {
|
|
1767
|
+
key: 0,
|
|
1768
|
+
color: "#979797",
|
|
1769
|
+
name: "left"
|
|
1770
|
+
})) : createCommentVNode("", true),
|
|
1771
|
+
_ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_2$$, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
|
|
1772
|
+
renderSlot(_ctx.$slots, "left")
|
|
1773
|
+
]),
|
|
1774
|
+
createElementVNode("view", _hoisted_3$M, [
|
|
1775
|
+
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
1776
|
+
key: 0,
|
|
1777
|
+
class: "title",
|
|
1778
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
|
|
1779
|
+
}, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
1780
|
+
_ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, {
|
|
1781
|
+
key: 1,
|
|
1782
|
+
class: "icon",
|
|
1783
|
+
name: _ctx.titIcon,
|
|
1784
|
+
onClick: _ctx.handleCenterIcon
|
|
1785
|
+
}, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
|
|
1786
|
+
renderSlot(_ctx.$slots, "content")
|
|
1787
|
+
]),
|
|
1788
|
+
createElementVNode("view", {
|
|
1789
|
+
class: "nut-navbar__right",
|
|
1790
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
|
|
1791
|
+
}, [
|
|
1792
|
+
_ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_4$E, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
1793
|
+
renderSlot(_ctx.$slots, "right")
|
|
1794
|
+
])
|
|
1795
|
+
], 6)
|
|
1796
|
+
], 512)) : (openBlock(), createElementBlock("view", {
|
|
1797
|
+
key: 1,
|
|
1798
|
+
class: normalizeClass(_ctx.classes),
|
|
1799
|
+
style: normalizeStyle(_ctx.styles)
|
|
1655
1800
|
}, [
|
|
1656
|
-
createElementVNode("view",
|
|
1801
|
+
createElementVNode("view", {
|
|
1802
|
+
class: "nut-navbar__left",
|
|
1803
|
+
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleLeft && _ctx.handleLeft(...args))
|
|
1804
|
+
}, [
|
|
1657
1805
|
_ctx.leftShow ? (openBlock(), createBlock(_component_nut_icon, {
|
|
1658
1806
|
key: 0,
|
|
1659
1807
|
color: "#979797",
|
|
1660
|
-
name: "left"
|
|
1661
|
-
|
|
1662
|
-
|
|
1808
|
+
name: "left"
|
|
1809
|
+
})) : createCommentVNode("", true),
|
|
1810
|
+
_ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_5$s, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
|
|
1663
1811
|
renderSlot(_ctx.$slots, "left")
|
|
1664
1812
|
]),
|
|
1665
|
-
createElementVNode("view",
|
|
1813
|
+
createElementVNode("view", _hoisted_6$o, [
|
|
1666
1814
|
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
1667
1815
|
key: 0,
|
|
1668
1816
|
class: "title",
|
|
1669
|
-
onClick: _cache[
|
|
1817
|
+
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
|
|
1670
1818
|
}, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
1671
1819
|
_ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, {
|
|
1672
1820
|
key: 1,
|
|
@@ -1676,18 +1824,17 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1676
1824
|
}, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
|
|
1677
1825
|
renderSlot(_ctx.$slots, "content")
|
|
1678
1826
|
]),
|
|
1679
|
-
createElementVNode("view",
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
}, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
1827
|
+
createElementVNode("view", {
|
|
1828
|
+
class: "nut-navbar__right",
|
|
1829
|
+
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
|
|
1830
|
+
}, [
|
|
1831
|
+
_ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_7$j, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
1685
1832
|
renderSlot(_ctx.$slots, "right")
|
|
1686
1833
|
])
|
|
1687
|
-
],
|
|
1834
|
+
], 6));
|
|
1688
1835
|
}
|
|
1689
1836
|
var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["render", _sfc_render$1q]]);
|
|
1690
|
-
const { componentName: componentName$1a, create: create$1v, translate: translate$
|
|
1837
|
+
const { componentName: componentName$1a, create: create$1v, translate: translate$r } = createComponent("fixednav");
|
|
1691
1838
|
const _sfc_main$1v = create$1v({
|
|
1692
1839
|
components: {
|
|
1693
1840
|
[OverLay.name]: OverLay
|
|
@@ -1746,18 +1893,18 @@ const _sfc_main$1v = create$1v({
|
|
|
1746
1893
|
event
|
|
1747
1894
|
});
|
|
1748
1895
|
};
|
|
1749
|
-
return { classes, updateValue, selected, translate: translate$
|
|
1896
|
+
return { classes, updateValue, selected, translate: translate$r };
|
|
1750
1897
|
}
|
|
1751
1898
|
});
|
|
1752
1899
|
const _hoisted_1$1a = { class: "nut-fixednav__list" };
|
|
1753
1900
|
const _hoisted_2$_ = ["onClick"];
|
|
1754
|
-
const _hoisted_3$
|
|
1901
|
+
const _hoisted_3$L = ["src"];
|
|
1755
1902
|
const _hoisted_4$D = { class: "span" };
|
|
1756
1903
|
const _hoisted_5$r = {
|
|
1757
1904
|
key: 0,
|
|
1758
1905
|
class: "b"
|
|
1759
1906
|
};
|
|
1760
|
-
const _hoisted_6$
|
|
1907
|
+
const _hoisted_6$n = { class: "text" };
|
|
1761
1908
|
function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1762
1909
|
const _component_nut_overlay = resolveComponent("nut-overlay");
|
|
1763
1910
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
@@ -1781,7 +1928,7 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1781
1928
|
}, [
|
|
1782
1929
|
createElementVNode("img", {
|
|
1783
1930
|
src: item.icon
|
|
1784
|
-
}, null, 8, _hoisted_3$
|
|
1931
|
+
}, null, 8, _hoisted_3$L),
|
|
1785
1932
|
createElementVNode("view", _hoisted_4$D, toDisplayString(item.text), 1),
|
|
1786
1933
|
item.num ? (openBlock(), createElementBlock("view", _hoisted_5$r, toDisplayString(item.num), 1)) : createCommentVNode("", true)
|
|
1787
1934
|
], 8, _hoisted_2$_);
|
|
@@ -1797,7 +1944,7 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1797
1944
|
name: "left",
|
|
1798
1945
|
color: "#fff"
|
|
1799
1946
|
}),
|
|
1800
|
-
createElementVNode("view", _hoisted_6$
|
|
1947
|
+
createElementVNode("view", _hoisted_6$n, toDisplayString(_ctx.visible ? _ctx.activeText || _ctx.translate("activeText") : _ctx.unActiveText || _ctx.translate("unActiveText")), 1)
|
|
1801
1948
|
])
|
|
1802
1949
|
])
|
|
1803
1950
|
], 6);
|
|
@@ -1817,11 +1964,15 @@ const _sfc_main$1u = create$1u({
|
|
|
1817
1964
|
duration: {
|
|
1818
1965
|
type: [Number, String],
|
|
1819
1966
|
default: 0
|
|
1967
|
+
},
|
|
1968
|
+
closeOnClickOverlay: {
|
|
1969
|
+
type: Boolean,
|
|
1970
|
+
default: true
|
|
1820
1971
|
}
|
|
1821
1972
|
},
|
|
1822
1973
|
setup(props, { emit, slots }) {
|
|
1823
1974
|
const barRef = ref();
|
|
1824
|
-
const
|
|
1975
|
+
const offset2 = ref(0);
|
|
1825
1976
|
const useChildren = () => {
|
|
1826
1977
|
const publicChildren = reactive([]);
|
|
1827
1978
|
const internalChildren = reactive([]);
|
|
@@ -1854,10 +2005,10 @@ const _sfc_main$1u = create$1u({
|
|
|
1854
2005
|
const updateOffset = () => {
|
|
1855
2006
|
if (barRef.value) {
|
|
1856
2007
|
const rect = useRect(barRef);
|
|
1857
|
-
|
|
2008
|
+
offset2.value = rect.bottom;
|
|
1858
2009
|
}
|
|
1859
2010
|
};
|
|
1860
|
-
linkChildren({ props, offset });
|
|
2011
|
+
linkChildren({ props, offset: offset2 });
|
|
1861
2012
|
const toggleItem = (active) => {
|
|
1862
2013
|
children.forEach((item, index) => {
|
|
1863
2014
|
if (index === active) {
|
|
@@ -2036,7 +2187,8 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2036
2187
|
overlayClass: "nut-menu__overlay",
|
|
2037
2188
|
overlay: _ctx.parent.props.overlay,
|
|
2038
2189
|
onClosed: _ctx.handleClose,
|
|
2039
|
-
isWrapTeleport: false
|
|
2190
|
+
isWrapTeleport: false,
|
|
2191
|
+
"close-on-click-overlay": _ctx.parent.props.closeOnClickOverlay
|
|
2040
2192
|
}), {
|
|
2041
2193
|
default: withCtx(() => [
|
|
2042
2194
|
createElementVNode("view", _hoisted_1$18, [
|
|
@@ -2061,7 +2213,7 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2061
2213
|
])
|
|
2062
2214
|
]),
|
|
2063
2215
|
_: 3
|
|
2064
|
-
}, 16, ["style", "overlayStyle", "visible", "duration", "overlay", "onClosed"])
|
|
2216
|
+
}, 16, ["style", "overlayStyle", "visible", "duration", "overlay", "onClosed", "close-on-click-overlay"])
|
|
2065
2217
|
], 2)), [
|
|
2066
2218
|
[vShow, _ctx.state.showWrapper]
|
|
2067
2219
|
]);
|
|
@@ -2208,6 +2360,7 @@ const _sfc_main$1r = create$1r({
|
|
|
2208
2360
|
setTimeout(() => {
|
|
2209
2361
|
if (parent.children[value].href) {
|
|
2210
2362
|
window.location.href = parent.children[value].href;
|
|
2363
|
+
return;
|
|
2211
2364
|
}
|
|
2212
2365
|
if (parent.children[value].to) {
|
|
2213
2366
|
let to = parent.children[value].to;
|
|
@@ -2230,7 +2383,7 @@ const _hoisted_2$X = {
|
|
|
2230
2383
|
key: 0,
|
|
2231
2384
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_num"
|
|
2232
2385
|
};
|
|
2233
|
-
const _hoisted_3$
|
|
2386
|
+
const _hoisted_3$K = {
|
|
2234
2387
|
key: 1,
|
|
2235
2388
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_nums"
|
|
2236
2389
|
};
|
|
@@ -2239,7 +2392,7 @@ const _hoisted_4$C = {
|
|
|
2239
2392
|
class: "nut-tabbar-item_icon-box_dot"
|
|
2240
2393
|
};
|
|
2241
2394
|
const _hoisted_5$q = { key: 2 };
|
|
2242
|
-
const _hoisted_6$
|
|
2395
|
+
const _hoisted_6$m = { key: 0 };
|
|
2243
2396
|
function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2244
2397
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
2245
2398
|
return openBlock(), createElementBlock("div", {
|
|
@@ -2251,7 +2404,7 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2251
2404
|
}, [
|
|
2252
2405
|
createElementVNode("view", _hoisted_1$17, [
|
|
2253
2406
|
!_ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
2254
|
-
_ctx.num && _ctx.num <= 99 ? (openBlock(), createElementBlock("view", _hoisted_2$X, toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (openBlock(), createElementBlock("view", _hoisted_3$
|
|
2407
|
+
_ctx.num && _ctx.num <= 99 ? (openBlock(), createElementBlock("view", _hoisted_2$X, toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (openBlock(), createElementBlock("view", _hoisted_3$K, toDisplayString("99+"))) : createCommentVNode("", true)
|
|
2255
2408
|
], 64)) : createCommentVNode("", true),
|
|
2256
2409
|
_ctx.dot ? (openBlock(), createElementBlock("div", _hoisted_4$C)) : createCommentVNode("", true),
|
|
2257
2410
|
_ctx.icon ? (openBlock(), createElementBlock("view", _hoisted_5$q, [
|
|
@@ -2275,7 +2428,7 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2275
2428
|
createElementVNode("view", {
|
|
2276
2429
|
class: normalizeClass(["nut-tabbar-item_icon-box_nav-word", { "nut-tabbar-item_icon-box_big-word": !_ctx.icon && !_ctx.activeImg }])
|
|
2277
2430
|
}, [
|
|
2278
|
-
_ctx.tabTitle ? (openBlock(), createElementBlock("view", _hoisted_6$
|
|
2431
|
+
_ctx.tabTitle ? (openBlock(), createElementBlock("view", _hoisted_6$m, toDisplayString(_ctx.tabTitle), 1)) : createCommentVNode("", true),
|
|
2279
2432
|
!_ctx.tabTitle ? renderSlot(_ctx.$slots, "default", { key: 1 }) : createCommentVNode("", true)
|
|
2280
2433
|
], 2)
|
|
2281
2434
|
])
|
|
@@ -2320,7 +2473,8 @@ const _sfc_main$1q = create$1q({
|
|
|
2320
2473
|
},
|
|
2321
2474
|
scrollStart: false,
|
|
2322
2475
|
currentIndex: 0,
|
|
2323
|
-
currentData: {}
|
|
2476
|
+
currentData: {},
|
|
2477
|
+
currentKey: ""
|
|
2324
2478
|
});
|
|
2325
2479
|
const classes = computed(() => {
|
|
2326
2480
|
const prefixCls = componentName$17;
|
|
@@ -2363,9 +2517,6 @@ const _sfc_main$1q = create$1q({
|
|
|
2363
2517
|
if (!index && index !== 0) {
|
|
2364
2518
|
return;
|
|
2365
2519
|
}
|
|
2366
|
-
if (!state.listHeight.length) {
|
|
2367
|
-
calculateHeight();
|
|
2368
|
-
}
|
|
2369
2520
|
if (index < 0)
|
|
2370
2521
|
index = 0;
|
|
2371
2522
|
if (index > state.listHeight.length - 2)
|
|
@@ -2395,6 +2546,7 @@ const _sfc_main$1q = create$1q({
|
|
|
2395
2546
|
const handleClickItem = (key, item) => {
|
|
2396
2547
|
context.emit("click-item", key, item);
|
|
2397
2548
|
state.currentData = item;
|
|
2549
|
+
state.currentKey = key;
|
|
2398
2550
|
};
|
|
2399
2551
|
const handleClickIndex = (key) => {
|
|
2400
2552
|
context.emit("click-index", key);
|
|
@@ -2402,6 +2554,10 @@ const _sfc_main$1q = create$1q({
|
|
|
2402
2554
|
useExpose({
|
|
2403
2555
|
scrollTo
|
|
2404
2556
|
});
|
|
2557
|
+
watch(() => state.listGroup.length, () => {
|
|
2558
|
+
state.listHeight = [];
|
|
2559
|
+
nextTick(calculateHeight);
|
|
2560
|
+
});
|
|
2405
2561
|
return __spreadProps(__spreadValues({
|
|
2406
2562
|
classes
|
|
2407
2563
|
}, toRefs(state)), {
|
|
@@ -2417,7 +2573,7 @@ const _sfc_main$1q = create$1q({
|
|
|
2417
2573
|
});
|
|
2418
2574
|
const _hoisted_1$16 = { class: "nut-elevator__list__item__code" };
|
|
2419
2575
|
const _hoisted_2$W = ["onClick", "innerHTML"];
|
|
2420
|
-
const _hoisted_3$
|
|
2576
|
+
const _hoisted_3$J = { class: "nut-elevator__bars__inner" };
|
|
2421
2577
|
const _hoisted_4$B = ["data-index", "onClick"];
|
|
2422
2578
|
function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2423
2579
|
return openBlock(), createElementBlock("view", {
|
|
@@ -2432,19 +2588,20 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2432
2588
|
return openBlock(), createElementBlock("view", {
|
|
2433
2589
|
class: "nut-elevator__list__item",
|
|
2434
2590
|
key: item[_ctx.acceptKey],
|
|
2435
|
-
ref_for: true,
|
|
2436
2591
|
ref: _ctx.setListGroup
|
|
2437
2592
|
}, [
|
|
2438
2593
|
createElementVNode("view", _hoisted_1$16, toDisplayString(item[_ctx.acceptKey]), 1),
|
|
2439
2594
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (subitem) => {
|
|
2440
2595
|
return openBlock(), createElementBlock("view", {
|
|
2441
|
-
class: normalizeClass(["nut-elevator__list__item__name", {
|
|
2596
|
+
class: normalizeClass(["nut-elevator__list__item__name", {
|
|
2597
|
+
"nut-elevator__list__item__name--highcolor": _ctx.currentData.id === subitem.id && _ctx.currentKey === item[_ctx.acceptKey]
|
|
2598
|
+
}]),
|
|
2442
2599
|
key: subitem["id"],
|
|
2443
2600
|
onClick: ($event) => _ctx.handleClickItem(item[_ctx.acceptKey], subitem),
|
|
2444
2601
|
innerHTML: subitem.name
|
|
2445
2602
|
}, null, 10, _hoisted_2$W);
|
|
2446
2603
|
}), 128))
|
|
2447
|
-
]);
|
|
2604
|
+
], 512);
|
|
2448
2605
|
}), 128))
|
|
2449
2606
|
], 4),
|
|
2450
2607
|
_ctx.indexList.length ? withDirectives((openBlock(), createElementBlock("view", {
|
|
@@ -2459,7 +2616,7 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2459
2616
|
onTouchmove: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.touchMove && _ctx.touchMove(...args), ["stop", "prevent"])),
|
|
2460
2617
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.touchEnd && _ctx.touchEnd(...args))
|
|
2461
2618
|
}, [
|
|
2462
|
-
createElementVNode("view", _hoisted_3$
|
|
2619
|
+
createElementVNode("view", _hoisted_3$J, [
|
|
2463
2620
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.indexList, (item, index) => {
|
|
2464
2621
|
return openBlock(), createElementBlock("view", {
|
|
2465
2622
|
class: "nut-elevator__bars__inner__item",
|
|
@@ -2473,7 +2630,7 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2473
2630
|
], 2);
|
|
2474
2631
|
}
|
|
2475
2632
|
var Elevator = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["render", _sfc_render$1k]]);
|
|
2476
|
-
const { componentName: componentName$16, create: create$1p, translate: translate$
|
|
2633
|
+
const { componentName: componentName$16, create: create$1p, translate: translate$q } = createComponent("pagination");
|
|
2477
2634
|
const _sfc_main$1p = create$1p({
|
|
2478
2635
|
props: {
|
|
2479
2636
|
modelValue: {
|
|
@@ -2576,7 +2733,7 @@ const _sfc_main$1p = create$1p({
|
|
|
2576
2733
|
mode,
|
|
2577
2734
|
pages,
|
|
2578
2735
|
forceEllipses,
|
|
2579
|
-
translate: translate$
|
|
2736
|
+
translate: translate$q
|
|
2580
2737
|
};
|
|
2581
2738
|
}
|
|
2582
2739
|
});
|
|
@@ -2585,7 +2742,7 @@ const _hoisted_2$V = {
|
|
|
2585
2742
|
key: 0,
|
|
2586
2743
|
class: "nut-pagination-contain"
|
|
2587
2744
|
};
|
|
2588
|
-
const _hoisted_3$
|
|
2745
|
+
const _hoisted_3$I = ["onClick"];
|
|
2589
2746
|
const _hoisted_4$A = {
|
|
2590
2747
|
key: 1,
|
|
2591
2748
|
class: "nut-pagination-contain"
|
|
@@ -2611,7 +2768,7 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2611
2768
|
renderSlot(_ctx.$slots, "page", { item }, () => [
|
|
2612
2769
|
createTextVNode(toDisplayString(item.text), 1)
|
|
2613
2770
|
])
|
|
2614
|
-
], 10, _hoisted_3$
|
|
2771
|
+
], 10, _hoisted_3$I);
|
|
2615
2772
|
}), 128))
|
|
2616
2773
|
])) : createCommentVNode("", true),
|
|
2617
2774
|
_ctx.mode == "simple" ? (openBlock(), createElementBlock("view", _hoisted_4$A, [
|
|
@@ -2665,6 +2822,10 @@ const component$3 = {
|
|
|
2665
2822
|
type: Boolean,
|
|
2666
2823
|
default: true
|
|
2667
2824
|
},
|
|
2825
|
+
autoHeight: {
|
|
2826
|
+
type: Boolean,
|
|
2827
|
+
default: false
|
|
2828
|
+
},
|
|
2668
2829
|
background: {
|
|
2669
2830
|
type: String,
|
|
2670
2831
|
default: ""
|
|
@@ -2682,18 +2843,19 @@ const component$3 = {
|
|
|
2682
2843
|
emits: ["update:modelValue", "click", "change"],
|
|
2683
2844
|
setup(props, { emit, slots }) {
|
|
2684
2845
|
provide("activeKey", { activeKey: computed(() => props.modelValue) });
|
|
2846
|
+
provide("autoHeight", { autoHeight: computed(() => props.autoHeight) });
|
|
2685
2847
|
const titles = ref([]);
|
|
2686
2848
|
const renderTitles = (vnodes) => {
|
|
2687
2849
|
vnodes.forEach((vnode, index) => {
|
|
2688
|
-
var _a, _b, _c, _d, _e;
|
|
2850
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
2689
2851
|
let type = vnode.type;
|
|
2690
2852
|
type = type.name || type;
|
|
2691
2853
|
if (type == "nut-tabpane") {
|
|
2692
2854
|
let title = new Title();
|
|
2693
|
-
if (((_a = vnode.props) == null ? void 0 : _a.title) || ((_b = vnode.props) == null ? void 0 : _b["pane-key"])) {
|
|
2694
|
-
title.title = (
|
|
2695
|
-
title.paneKey = ((
|
|
2696
|
-
title.disabled = (
|
|
2855
|
+
if (((_a = vnode.props) == null ? void 0 : _a.title) || ((_b = vnode.props) == null ? void 0 : _b["pane-key"]) || ((_c = vnode.props) == null ? void 0 : _c["paneKey"])) {
|
|
2856
|
+
title.title = (_d = vnode.props) == null ? void 0 : _d.title;
|
|
2857
|
+
title.paneKey = ((_e = vnode.props) == null ? void 0 : _e["pane-key"]) || ((_f = vnode.props) == null ? void 0 : _f["paneKey"]) || index;
|
|
2858
|
+
title.disabled = (_g = vnode.props) == null ? void 0 : _g.disabled;
|
|
2697
2859
|
}
|
|
2698
2860
|
titles.value.push(title);
|
|
2699
2861
|
} else {
|
|
@@ -2806,7 +2968,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2806
2968
|
}, null, 8, ["color"])
|
|
2807
2969
|
], 4)) : createCommentVNode("", true),
|
|
2808
2970
|
createElementVNode("view", {
|
|
2809
|
-
class: normalizeClass(["nut-tabs__titles-item__text", { ellipsis: _ctx.ellipsis
|
|
2971
|
+
class: normalizeClass(["nut-tabs__titles-item__text", { ellipsis: _ctx.ellipsis }])
|
|
2810
2972
|
}, toDisplayString(item.title), 3)
|
|
2811
2973
|
], 14, _hoisted_1$14);
|
|
2812
2974
|
}), 128))
|
|
@@ -2841,12 +3003,16 @@ const _sfc_main$1n = create$1n({
|
|
|
2841
3003
|
emits: ["click"],
|
|
2842
3004
|
setup(props, { emit }) {
|
|
2843
3005
|
const parent = inject("activeKey");
|
|
2844
|
-
|
|
3006
|
+
const parentOption = inject("autoHeight");
|
|
3007
|
+
return {
|
|
3008
|
+
activeKey: parent.activeKey,
|
|
3009
|
+
autoHeight: parentOption.autoHeight
|
|
3010
|
+
};
|
|
2845
3011
|
}
|
|
2846
3012
|
});
|
|
2847
3013
|
function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2848
3014
|
return openBlock(), createElementBlock("view", {
|
|
2849
|
-
class: normalizeClass(["nut-tabpane", {
|
|
3015
|
+
class: normalizeClass(["nut-tabpane", { inactive: _ctx.paneKey != _ctx.activeKey && _ctx.autoHeight }])
|
|
2850
3016
|
}, [
|
|
2851
3017
|
renderSlot(_ctx.$slots, "default")
|
|
2852
3018
|
], 2);
|
|
@@ -3074,7 +3240,7 @@ const _sfc_main$1j = create$1j({
|
|
|
3074
3240
|
});
|
|
3075
3241
|
const _hoisted_1$11 = ["ikey"];
|
|
3076
3242
|
const _hoisted_2$S = { class: "nut-subsidenavbar__title__text" };
|
|
3077
|
-
const _hoisted_3$
|
|
3243
|
+
const _hoisted_3$H = { class: "nut-subsidenavbar__title__icon" };
|
|
3078
3244
|
function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3079
3245
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
3080
3246
|
return openBlock(), createElementBlock("view", {
|
|
@@ -3086,7 +3252,7 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3086
3252
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
3087
3253
|
}, [
|
|
3088
3254
|
createElementVNode("span", _hoisted_2$S, toDisplayString(_ctx.title), 1),
|
|
3089
|
-
createElementVNode("span", _hoisted_3$
|
|
3255
|
+
createElementVNode("span", _hoisted_3$H, [
|
|
3090
3256
|
createVNode(_component_nut_icon, {
|
|
3091
3257
|
name: "down-arrow",
|
|
3092
3258
|
class: normalizeClass(_ctx.direction)
|
|
@@ -3129,7 +3295,7 @@ function useTouch$2() {
|
|
|
3129
3295
|
offsetY.value = 0;
|
|
3130
3296
|
direction.value = "";
|
|
3131
3297
|
};
|
|
3132
|
-
const
|
|
3298
|
+
const start2 = (event) => {
|
|
3133
3299
|
reset();
|
|
3134
3300
|
startX.value = event.touches[0].clientX;
|
|
3135
3301
|
startY.value = event.touches[0].clientY;
|
|
@@ -3146,7 +3312,7 @@ function useTouch$2() {
|
|
|
3146
3312
|
};
|
|
3147
3313
|
return {
|
|
3148
3314
|
move,
|
|
3149
|
-
start,
|
|
3315
|
+
start: start2,
|
|
3150
3316
|
reset,
|
|
3151
3317
|
startX,
|
|
3152
3318
|
startY,
|
|
@@ -3282,9 +3448,9 @@ const _sfc_main$1i = create$1i({
|
|
|
3282
3448
|
let lowerBound = Number(min);
|
|
3283
3449
|
let upperBound = Number(max);
|
|
3284
3450
|
if (props.range) {
|
|
3285
|
-
const [
|
|
3286
|
-
lowerBound =
|
|
3287
|
-
upperBound =
|
|
3451
|
+
const [left2, right2] = modelValue;
|
|
3452
|
+
lowerBound = left2;
|
|
3453
|
+
upperBound = right2;
|
|
3288
3454
|
} else {
|
|
3289
3455
|
upperBound = modelValue;
|
|
3290
3456
|
}
|
|
@@ -3311,9 +3477,9 @@ const _sfc_main$1i = create$1i({
|
|
|
3311
3477
|
let lowerBound = Number(min);
|
|
3312
3478
|
let upperBound = Number(max);
|
|
3313
3479
|
if (props.range) {
|
|
3314
|
-
const [
|
|
3315
|
-
lowerBound =
|
|
3316
|
-
upperBound =
|
|
3480
|
+
const [left2, right2] = modelValue;
|
|
3481
|
+
lowerBound = left2;
|
|
3482
|
+
upperBound = right2;
|
|
3317
3483
|
}
|
|
3318
3484
|
let isActive = mark <= upperBound && mark >= lowerBound;
|
|
3319
3485
|
let style = {
|
|
@@ -3333,7 +3499,7 @@ const _sfc_main$1i = create$1i({
|
|
|
3333
3499
|
}
|
|
3334
3500
|
return value;
|
|
3335
3501
|
};
|
|
3336
|
-
const updateValue = (value,
|
|
3502
|
+
const updateValue = (value, end2) => {
|
|
3337
3503
|
if (isRange(value)) {
|
|
3338
3504
|
value = handleOverlap(value).map(format);
|
|
3339
3505
|
} else {
|
|
@@ -3342,7 +3508,7 @@ const _sfc_main$1i = create$1i({
|
|
|
3342
3508
|
if (!isSameValue(value, props.modelValue)) {
|
|
3343
3509
|
emit("update:modelValue", value);
|
|
3344
3510
|
}
|
|
3345
|
-
if (
|
|
3511
|
+
if (end2 && !isSameValue(value, startValue)) {
|
|
3346
3512
|
emit("change", value);
|
|
3347
3513
|
}
|
|
3348
3514
|
};
|
|
@@ -3360,12 +3526,12 @@ const _sfc_main$1i = create$1i({
|
|
|
3360
3526
|
}
|
|
3361
3527
|
const value = Number(min) + delta / total * scope.value;
|
|
3362
3528
|
if (isRange(modelValue)) {
|
|
3363
|
-
const [
|
|
3364
|
-
const middle = (
|
|
3529
|
+
const [left2, right2] = modelValue;
|
|
3530
|
+
const middle = (left2 + right2) / 2;
|
|
3365
3531
|
if (value <= middle) {
|
|
3366
|
-
updateValue([value,
|
|
3532
|
+
updateValue([value, right2], true);
|
|
3367
3533
|
} else {
|
|
3368
|
-
updateValue([
|
|
3534
|
+
updateValue([left2, value], true);
|
|
3369
3535
|
}
|
|
3370
3536
|
} else {
|
|
3371
3537
|
updateValue(value, true);
|
|
@@ -3454,13 +3620,13 @@ const _hoisted_2$R = {
|
|
|
3454
3620
|
key: 0,
|
|
3455
3621
|
class: "nut-range-mark"
|
|
3456
3622
|
};
|
|
3457
|
-
const _hoisted_3$
|
|
3623
|
+
const _hoisted_3$G = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
|
|
3458
3624
|
const _hoisted_4$z = {
|
|
3459
3625
|
key: 0,
|
|
3460
3626
|
class: "number"
|
|
3461
3627
|
};
|
|
3462
3628
|
const _hoisted_5$o = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax"];
|
|
3463
|
-
const _hoisted_6$
|
|
3629
|
+
const _hoisted_6$l = {
|
|
3464
3630
|
key: 0,
|
|
3465
3631
|
class: "number"
|
|
3466
3632
|
};
|
|
@@ -3529,7 +3695,7 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3529
3695
|
}, [
|
|
3530
3696
|
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_4$z, toDisplayString(_ctx.curValue(index)), 1)) : createCommentVNode("", true)
|
|
3531
3697
|
], 4))
|
|
3532
|
-
], 42, _hoisted_3$
|
|
3698
|
+
], 42, _hoisted_3$G);
|
|
3533
3699
|
}), 64)) : (openBlock(), createElementBlock("view", {
|
|
3534
3700
|
key: 1,
|
|
3535
3701
|
role: "slider",
|
|
@@ -3552,7 +3718,7 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3552
3718
|
class: "nut-range-button",
|
|
3553
3719
|
style: normalizeStyle(_ctx.buttonStyle)
|
|
3554
3720
|
}, [
|
|
3555
|
-
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_6$
|
|
3721
|
+
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_6$l, toDisplayString(_ctx.curValue()), 1)) : createCommentVNode("", true)
|
|
3556
3722
|
], 4))
|
|
3557
3723
|
], 40, _hoisted_5$o))
|
|
3558
3724
|
], 4)
|
|
@@ -3561,7 +3727,7 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3561
3727
|
], 2);
|
|
3562
3728
|
}
|
|
3563
3729
|
var Range = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["render", _sfc_render$1d]]);
|
|
3564
|
-
const { create: create$1h, translate: translate$
|
|
3730
|
+
const { create: create$1h, translate: translate$p } = createComponent("searchbar");
|
|
3565
3731
|
const _sfc_main$1h = create$1h({
|
|
3566
3732
|
props: {
|
|
3567
3733
|
modelValue: {
|
|
@@ -3570,7 +3736,11 @@ const _sfc_main$1h = create$1h({
|
|
|
3570
3736
|
},
|
|
3571
3737
|
inputType: {
|
|
3572
3738
|
type: String,
|
|
3573
|
-
default: "
|
|
3739
|
+
default: "textarea"
|
|
3740
|
+
},
|
|
3741
|
+
label: {
|
|
3742
|
+
type: String,
|
|
3743
|
+
default: ""
|
|
3574
3744
|
},
|
|
3575
3745
|
maxLength: {
|
|
3576
3746
|
type: [String, Number],
|
|
@@ -3591,9 +3761,35 @@ const _sfc_main$1h = create$1h({
|
|
|
3591
3761
|
inputBackground: {
|
|
3592
3762
|
type: String,
|
|
3593
3763
|
default: ""
|
|
3764
|
+
},
|
|
3765
|
+
autofocus: {
|
|
3766
|
+
type: Boolean,
|
|
3767
|
+
default: false
|
|
3768
|
+
},
|
|
3769
|
+
disabled: {
|
|
3770
|
+
type: Boolean,
|
|
3771
|
+
default: false
|
|
3772
|
+
},
|
|
3773
|
+
readonly: {
|
|
3774
|
+
type: Boolean,
|
|
3775
|
+
default: false
|
|
3776
|
+
},
|
|
3777
|
+
inputAlign: {
|
|
3778
|
+
type: String,
|
|
3779
|
+
default: "left"
|
|
3594
3780
|
}
|
|
3595
3781
|
},
|
|
3596
|
-
emits: [
|
|
3782
|
+
emits: [
|
|
3783
|
+
"change",
|
|
3784
|
+
"update:modelValue",
|
|
3785
|
+
"blur",
|
|
3786
|
+
"focus",
|
|
3787
|
+
"clear",
|
|
3788
|
+
"search",
|
|
3789
|
+
"click-input",
|
|
3790
|
+
"click-left-icon",
|
|
3791
|
+
"click-right-icon"
|
|
3792
|
+
],
|
|
3597
3793
|
setup(props, { emit }) {
|
|
3598
3794
|
const state = reactive({
|
|
3599
3795
|
active: false
|
|
@@ -3642,7 +3838,29 @@ const _sfc_main$1h = create$1h({
|
|
|
3642
3838
|
const handleSubmit = () => {
|
|
3643
3839
|
emit("search", props.modelValue);
|
|
3644
3840
|
};
|
|
3645
|
-
|
|
3841
|
+
const clickInput = (event) => {
|
|
3842
|
+
emit("click-input", event);
|
|
3843
|
+
};
|
|
3844
|
+
const leftIconClick = (event) => {
|
|
3845
|
+
emit("click-left-icon", props.modelValue, event);
|
|
3846
|
+
};
|
|
3847
|
+
const rightIconClick = (event) => {
|
|
3848
|
+
emit("click-right-icon", props.modelValue, event);
|
|
3849
|
+
};
|
|
3850
|
+
const styleSearchbar = computed(() => {
|
|
3851
|
+
return {
|
|
3852
|
+
"text-align": props.inputAlign
|
|
3853
|
+
};
|
|
3854
|
+
});
|
|
3855
|
+
const inputsearch = ref(null);
|
|
3856
|
+
onMounted(() => {
|
|
3857
|
+
if (props.autofocus) {
|
|
3858
|
+
inputsearch.value.focus();
|
|
3859
|
+
}
|
|
3860
|
+
});
|
|
3861
|
+
return __spreadProps(__spreadValues({
|
|
3862
|
+
inputsearch
|
|
3863
|
+
}, toRefs(state)), {
|
|
3646
3864
|
valueChange,
|
|
3647
3865
|
valueFocus,
|
|
3648
3866
|
valueBlur,
|
|
@@ -3650,26 +3868,26 @@ const _sfc_main$1h = create$1h({
|
|
|
3650
3868
|
handleSubmit,
|
|
3651
3869
|
searchbarStyle,
|
|
3652
3870
|
inputSearchbarStyle,
|
|
3653
|
-
translate: translate$
|
|
3871
|
+
translate: translate$p,
|
|
3872
|
+
clickInput,
|
|
3873
|
+
leftIconClick,
|
|
3874
|
+
rightIconClick,
|
|
3875
|
+
styleSearchbar
|
|
3654
3876
|
});
|
|
3655
3877
|
}
|
|
3656
3878
|
});
|
|
3657
3879
|
const _hoisted_1$$ = {
|
|
3658
3880
|
key: 0,
|
|
3659
|
-
class: "nut-searchbar__search-
|
|
3881
|
+
class: "nut-searchbar__search-label"
|
|
3660
3882
|
};
|
|
3661
3883
|
const _hoisted_2$Q = {
|
|
3662
|
-
key: 0,
|
|
3663
|
-
class: "nut-searchbar__search-icon nut-searchbar__iptleft-search-icon"
|
|
3664
|
-
};
|
|
3665
|
-
const _hoisted_3$G = { class: "nut-searchbar__input-inner" };
|
|
3666
|
-
const _hoisted_4$y = ["type", "maxlength", "placeholder", "value"];
|
|
3667
|
-
const _hoisted_5$n = {
|
|
3668
3884
|
key: 1,
|
|
3669
|
-
class: "nut-searchbar__search-icon nut-
|
|
3885
|
+
class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
|
|
3670
3886
|
};
|
|
3671
|
-
const
|
|
3672
|
-
|
|
3887
|
+
const _hoisted_3$F = { class: "nut-searchbar__input-inner" };
|
|
3888
|
+
const _hoisted_4$y = ["type", "maxlength", "placeholder", "value", "disabled", "readonly"];
|
|
3889
|
+
const _hoisted_5$n = {
|
|
3890
|
+
key: 2,
|
|
3673
3891
|
class: "nut-searchbar__search-icon nut-searchbar__right-search-icon"
|
|
3674
3892
|
};
|
|
3675
3893
|
function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -3678,35 +3896,45 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3678
3896
|
class: "nut-searchbar",
|
|
3679
3897
|
style: normalizeStyle(_ctx.searchbarStyle)
|
|
3680
3898
|
}, [
|
|
3681
|
-
_ctx
|
|
3899
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$$, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
|
|
3900
|
+
_ctx.$slots.leftout ? (openBlock(), createElementBlock("view", _hoisted_2$Q, [
|
|
3682
3901
|
renderSlot(_ctx.$slots, "leftout")
|
|
3683
3902
|
])) : createCommentVNode("", true),
|
|
3684
3903
|
createElementVNode("view", {
|
|
3685
3904
|
class: "nut-searchbar__search-input",
|
|
3686
3905
|
style: normalizeStyle(_ctx.inputSearchbarStyle)
|
|
3687
3906
|
}, [
|
|
3688
|
-
_ctx.$slots.leftin ? (openBlock(), createElementBlock("view",
|
|
3907
|
+
_ctx.$slots.leftin ? (openBlock(), createElementBlock("view", {
|
|
3908
|
+
key: 0,
|
|
3909
|
+
class: "nut-searchbar__search-icon nut-searchbar__iptleft-search-icon",
|
|
3910
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.leftIconClick && _ctx.leftIconClick(...args))
|
|
3911
|
+
}, [
|
|
3689
3912
|
renderSlot(_ctx.$slots, "leftin")
|
|
3690
3913
|
])) : createCommentVNode("", true),
|
|
3691
|
-
createElementVNode("view", _hoisted_3$
|
|
3914
|
+
createElementVNode("view", _hoisted_3$F, [
|
|
3692
3915
|
createElementVNode("form", {
|
|
3693
3916
|
action: "#",
|
|
3694
|
-
onSubmit: _cache[
|
|
3917
|
+
onSubmit: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
|
|
3695
3918
|
}, [
|
|
3696
3919
|
createElementVNode("input", {
|
|
3920
|
+
ref: "inputsearch",
|
|
3697
3921
|
class: "nut-searchbar__input-bar",
|
|
3698
3922
|
type: _ctx.inputType,
|
|
3699
3923
|
maxlength: _ctx.maxLength,
|
|
3700
3924
|
placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
|
|
3701
3925
|
value: _ctx.modelValue,
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3926
|
+
disabled: _ctx.disabled,
|
|
3927
|
+
readonly: _ctx.readonly,
|
|
3928
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.clickInput && _ctx.clickInput(...args)),
|
|
3929
|
+
onInput: _cache[2] || (_cache[2] = (...args) => _ctx.valueChange && _ctx.valueChange(...args)),
|
|
3930
|
+
onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.valueFocus && _ctx.valueFocus(...args)),
|
|
3931
|
+
onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args)),
|
|
3932
|
+
style: normalizeStyle(_ctx.styleSearchbar)
|
|
3933
|
+
}, null, 44, _hoisted_4$y)
|
|
3706
3934
|
], 32),
|
|
3707
3935
|
_ctx.clearable ? withDirectives((openBlock(), createElementBlock("view", {
|
|
3708
3936
|
key: 0,
|
|
3709
|
-
onClick: _cache[
|
|
3937
|
+
onClick: _cache[6] || (_cache[6] = (...args) => _ctx.handleClear && _ctx.handleClear(...args)),
|
|
3710
3938
|
class: "nut-searchbar__input-clear"
|
|
3711
3939
|
}, [
|
|
3712
3940
|
createVNode(_component_nut_icon, {
|
|
@@ -3718,11 +3946,15 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3718
3946
|
[vShow, _ctx.modelValue.length > 0]
|
|
3719
3947
|
]) : createCommentVNode("", true)
|
|
3720
3948
|
]),
|
|
3721
|
-
_ctx.$slots.rightin ? (openBlock(), createElementBlock("view",
|
|
3949
|
+
_ctx.$slots.rightin ? (openBlock(), createElementBlock("view", {
|
|
3950
|
+
key: 1,
|
|
3951
|
+
class: "nut-searchbar__search-icon nut-searchbar__iptright-sarch-icon",
|
|
3952
|
+
onClick: _cache[7] || (_cache[7] = (...args) => _ctx.rightIconClick && _ctx.rightIconClick(...args))
|
|
3953
|
+
}, [
|
|
3722
3954
|
renderSlot(_ctx.$slots, "rightin")
|
|
3723
3955
|
])) : createCommentVNode("", true)
|
|
3724
3956
|
], 4),
|
|
3725
|
-
_ctx.$slots.rightout ? (openBlock(), createElementBlock("view",
|
|
3957
|
+
_ctx.$slots.rightout ? (openBlock(), createElementBlock("view", _hoisted_5$n, [
|
|
3726
3958
|
renderSlot(_ctx.$slots, "rightout")
|
|
3727
3959
|
])) : createCommentVNode("", true)
|
|
3728
3960
|
], 4);
|
|
@@ -3844,7 +4076,7 @@ class Tree {
|
|
|
3844
4076
|
return Array.isArray(children) && Boolean(children.length);
|
|
3845
4077
|
}
|
|
3846
4078
|
}
|
|
3847
|
-
const { create: create$1g, translate: translate$
|
|
4079
|
+
const { create: create$1g, translate: translate$o } = createComponent("cascader-item");
|
|
3848
4080
|
const _sfc_main$1g = create$1g({
|
|
3849
4081
|
props: {
|
|
3850
4082
|
visible: Boolean,
|
|
@@ -4036,7 +4268,7 @@ const _sfc_main$1g = create$1g({
|
|
|
4036
4268
|
tabsCursor.value = tab.paneKey;
|
|
4037
4269
|
},
|
|
4038
4270
|
formatTabTitle(pane) {
|
|
4039
|
-
return pane.selectedNode ? pane.selectedNode.text : translate$
|
|
4271
|
+
return pane.selectedNode ? pane.selectedNode.text : translate$o("select");
|
|
4040
4272
|
},
|
|
4041
4273
|
isSelected(pane, node) {
|
|
4042
4274
|
return pane.selectedNode && pane.selectedNode.value === node.value;
|
|
@@ -4067,7 +4299,7 @@ const _hoisted_1$_ = {
|
|
|
4067
4299
|
class: "nut-cascader-pane"
|
|
4068
4300
|
};
|
|
4069
4301
|
const _hoisted_2$P = ["aria-checked", "aria-disabled", "onClick"];
|
|
4070
|
-
const _hoisted_3$
|
|
4302
|
+
const _hoisted_3$E = { class: "nut-cascader-item__title" };
|
|
4071
4303
|
const _hoisted_4$x = /* @__PURE__ */ createElementVNode("view", { class: "nut-cascader-pane" }, null, -1);
|
|
4072
4304
|
function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4073
4305
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
@@ -4097,7 +4329,7 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4097
4329
|
role: "menuitemradio",
|
|
4098
4330
|
onClick: ($event) => _ctx.handleNode(node, false)
|
|
4099
4331
|
}, [
|
|
4100
|
-
createElementVNode("view", _hoisted_3$
|
|
4332
|
+
createElementVNode("view", _hoisted_3$E, toDisplayString(node.text), 1),
|
|
4101
4333
|
node.loading ? (openBlock(), createBlock(_component_nut_icon, {
|
|
4102
4334
|
key: 0,
|
|
4103
4335
|
class: "nut-cascader-item__icon-loading",
|
|
@@ -4322,7 +4554,7 @@ function requestAniFrame() {
|
|
|
4322
4554
|
}
|
|
4323
4555
|
}
|
|
4324
4556
|
var requestAniFrame$1 = requestAniFrame();
|
|
4325
|
-
const { create: create$1e, translate: translate$
|
|
4557
|
+
const { create: create$1e, translate: translate$n } = createComponent("calendar-item");
|
|
4326
4558
|
const _sfc_main$1e = create$1e({
|
|
4327
4559
|
props: {
|
|
4328
4560
|
type: {
|
|
@@ -4380,7 +4612,7 @@ const _sfc_main$1e = create$1e({
|
|
|
4380
4612
|
},
|
|
4381
4613
|
emits: ["choose", "update", "close", "select"],
|
|
4382
4614
|
setup(props, { emit, slots }) {
|
|
4383
|
-
const weeks = ref(translate$
|
|
4615
|
+
const weeks = ref(translate$n("weekdays"));
|
|
4384
4616
|
const months = ref(null);
|
|
4385
4617
|
const monthsPanel = ref(null);
|
|
4386
4618
|
const weeksPanel = ref(null);
|
|
@@ -4562,7 +4794,7 @@ const _sfc_main$1e = create$1e({
|
|
|
4562
4794
|
};
|
|
4563
4795
|
const monthInfo = {
|
|
4564
4796
|
curData,
|
|
4565
|
-
title: translate$
|
|
4797
|
+
title: translate$n("monthTitle", title.year, title.month),
|
|
4566
4798
|
monthData: [
|
|
4567
4799
|
...getPreDaysStatus(preMonthDays, "prev", { month: preMonth, year: preYear }, preCurrMonthDays),
|
|
4568
4800
|
...getDaysStatus(currMonthDays, "curr", title)
|
|
@@ -4635,11 +4867,11 @@ const _sfc_main$1e = create$1e({
|
|
|
4635
4867
|
let current = 0;
|
|
4636
4868
|
let lastCurrent = 0;
|
|
4637
4869
|
state.monthsData.forEach((item, index) => {
|
|
4638
|
-
if (item.title == translate$
|
|
4870
|
+
if (item.title == translate$n("monthTitle", state.defaultData[0], state.defaultData[1])) {
|
|
4639
4871
|
current = index;
|
|
4640
4872
|
}
|
|
4641
4873
|
if (state.isRange) {
|
|
4642
|
-
if (item.title == translate$
|
|
4874
|
+
if (item.title == translate$n("monthTitle", state.defaultData[3], state.defaultData[4])) {
|
|
4643
4875
|
lastCurrent = index;
|
|
4644
4876
|
}
|
|
4645
4877
|
}
|
|
@@ -4764,7 +4996,7 @@ const _sfc_main$1e = create$1e({
|
|
|
4764
4996
|
weeksPanel,
|
|
4765
4997
|
viewArea
|
|
4766
4998
|
}, toRefs(state)), toRefs(props)), {
|
|
4767
|
-
translate: translate$
|
|
4999
|
+
translate: translate$n
|
|
4768
5000
|
});
|
|
4769
5001
|
}
|
|
4770
5002
|
});
|
|
@@ -4776,7 +5008,7 @@ const _hoisted_2$O = {
|
|
|
4776
5008
|
key: 1,
|
|
4777
5009
|
class: "calendar-top-slot"
|
|
4778
5010
|
};
|
|
4779
|
-
const _hoisted_3$
|
|
5011
|
+
const _hoisted_3$D = {
|
|
4780
5012
|
key: 2,
|
|
4781
5013
|
class: "calendar-curr-month"
|
|
4782
5014
|
};
|
|
@@ -4826,7 +5058,7 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4826
5058
|
_ctx.showTopBtn ? (openBlock(), createElementBlock("view", _hoisted_2$O, [
|
|
4827
5059
|
renderSlot(_ctx.$slots, "btn")
|
|
4828
5060
|
])) : createCommentVNode("", true),
|
|
4829
|
-
_ctx.showSubTitle ? (openBlock(), createElementBlock("view", _hoisted_3$
|
|
5061
|
+
_ctx.showSubTitle ? (openBlock(), createElementBlock("view", _hoisted_3$D, toDisplayString(_ctx.yearMonthTitle), 1)) : createCommentVNode("", true),
|
|
4830
5062
|
createElementVNode("view", _hoisted_4$w, [
|
|
4831
5063
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item, index) => {
|
|
4832
5064
|
return openBlock(), createElementBlock("view", {
|
|
@@ -5509,7 +5741,7 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5509
5741
|
], 32);
|
|
5510
5742
|
}
|
|
5511
5743
|
var column$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$17]]);
|
|
5512
|
-
const { componentName: componentName$_, create: create$19, translate: translate$
|
|
5744
|
+
const { componentName: componentName$_, create: create$19, translate: translate$m } = createComponent("picker");
|
|
5513
5745
|
const _sfc_main$19 = create$19({
|
|
5514
5746
|
components: {
|
|
5515
5747
|
[column$1.name]: column$1,
|
|
@@ -5623,7 +5855,7 @@ const _sfc_main$19 = create$19({
|
|
|
5623
5855
|
cursor = cursor.children[0];
|
|
5624
5856
|
}
|
|
5625
5857
|
} else {
|
|
5626
|
-
defaultValues.value[columnIndex] = option.value ? option.value : "";
|
|
5858
|
+
defaultValues.value[columnIndex] = option.hasOwnProperty("value") ? option.value : "";
|
|
5627
5859
|
}
|
|
5628
5860
|
emit("change", {
|
|
5629
5861
|
columnIndex,
|
|
@@ -5640,6 +5872,7 @@ const _sfc_main$19 = create$19({
|
|
|
5640
5872
|
emit("update:visible", false);
|
|
5641
5873
|
};
|
|
5642
5874
|
onMounted(() => {
|
|
5875
|
+
console.log(11, props.columns);
|
|
5643
5876
|
if (props.visible)
|
|
5644
5877
|
state.show = props.visible;
|
|
5645
5878
|
});
|
|
@@ -5660,6 +5893,7 @@ const _sfc_main$19 = create$19({
|
|
|
5660
5893
|
}
|
|
5661
5894
|
}, { immediate: true });
|
|
5662
5895
|
watch(() => props.visible, (val) => {
|
|
5896
|
+
console.log("props\u66F4\u65B0", props.columns);
|
|
5663
5897
|
state.show = val;
|
|
5664
5898
|
});
|
|
5665
5899
|
watch(() => props.columns, (val) => {
|
|
@@ -5676,13 +5910,13 @@ const _sfc_main$19 = create$19({
|
|
|
5676
5910
|
changeHandler,
|
|
5677
5911
|
confirmHandler,
|
|
5678
5912
|
defaultValues,
|
|
5679
|
-
translate: translate$
|
|
5913
|
+
translate: translate$m
|
|
5680
5914
|
});
|
|
5681
5915
|
}
|
|
5682
5916
|
});
|
|
5683
5917
|
const _hoisted_1$W = { class: "nut-picker__bar" };
|
|
5684
5918
|
const _hoisted_2$M = { class: "nut-picker__title" };
|
|
5685
|
-
const _hoisted_3$
|
|
5919
|
+
const _hoisted_3$C = { class: "nut-picker__column" };
|
|
5686
5920
|
const _hoisted_4$v = /* @__PURE__ */ createElementVNode("view", { class: "nut-picker__hairline" }, null, -1);
|
|
5687
5921
|
function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5688
5922
|
const _component_nut_picker_column = resolveComponent("nut-picker-column");
|
|
@@ -5714,7 +5948,7 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5714
5948
|
}, toDisplayString(_ctx.okText || _ctx.translate("confirm")), 1)
|
|
5715
5949
|
]),
|
|
5716
5950
|
renderSlot(_ctx.$slots, "top"),
|
|
5717
|
-
createElementVNode("view", _hoisted_3$
|
|
5951
|
+
createElementVNode("view", _hoisted_3$C, [
|
|
5718
5952
|
_hoisted_4$v,
|
|
5719
5953
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columnsList, (column2, columnIndex) => {
|
|
5720
5954
|
return openBlock(), createElementBlock("view", {
|
|
@@ -5748,18 +5982,18 @@ function padZero$1(num, targetLength = 2) {
|
|
|
5748
5982
|
}
|
|
5749
5983
|
return str;
|
|
5750
5984
|
}
|
|
5751
|
-
const { componentName: componentName$Z, create: create$18 } = createComponent("datepicker");
|
|
5985
|
+
const { componentName: componentName$Z, create: create$18, translate: translate$l } = createComponent("datepicker");
|
|
5752
5986
|
const currentYear = new Date().getFullYear();
|
|
5753
5987
|
function isDate(val) {
|
|
5754
5988
|
return Object.prototype.toString.call(val) === "[object Date]" && !isNaN(val.getTime());
|
|
5755
5989
|
}
|
|
5756
5990
|
const zhCNType = {
|
|
5757
|
-
day: "
|
|
5758
|
-
year: "
|
|
5759
|
-
month: "
|
|
5760
|
-
hour: "
|
|
5761
|
-
minute: "
|
|
5762
|
-
seconds: "
|
|
5991
|
+
day: translate$l("day"),
|
|
5992
|
+
year: translate$l("year"),
|
|
5993
|
+
month: translate$l("month"),
|
|
5994
|
+
hour: translate$l("hour"),
|
|
5995
|
+
minute: translate$l("minute"),
|
|
5996
|
+
seconds: translate$l("seconds")
|
|
5763
5997
|
};
|
|
5764
5998
|
const _sfc_main$18 = create$18({
|
|
5765
5999
|
components: {
|
|
@@ -6228,7 +6462,7 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
|
|
|
6228
6462
|
const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
6229
6463
|
return value.replace(regExp, "");
|
|
6230
6464
|
}
|
|
6231
|
-
const { componentName: componentName$X, create: create$16, translate: translate$
|
|
6465
|
+
const { componentName: componentName$X, create: create$16, translate: translate$k } = createComponent("input");
|
|
6232
6466
|
const _sfc_main$16 = create$16({
|
|
6233
6467
|
props: {
|
|
6234
6468
|
ref: {
|
|
@@ -6500,13 +6734,13 @@ const _sfc_main$16 = create$16({
|
|
|
6500
6734
|
onClickInput,
|
|
6501
6735
|
onClickLeftIcon,
|
|
6502
6736
|
onClickRightIcon,
|
|
6503
|
-
translate: translate$
|
|
6737
|
+
translate: translate$k
|
|
6504
6738
|
};
|
|
6505
6739
|
}
|
|
6506
6740
|
});
|
|
6507
6741
|
const _hoisted_1$U = { class: "label-string" };
|
|
6508
6742
|
const _hoisted_2$L = { class: "nut-input-value" };
|
|
6509
|
-
const _hoisted_3$
|
|
6743
|
+
const _hoisted_3$B = ["maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
|
|
6510
6744
|
const _hoisted_4$u = ["type", "maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
|
|
6511
6745
|
const _hoisted_5$l = {
|
|
6512
6746
|
key: 0,
|
|
@@ -6558,7 +6792,7 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6558
6792
|
onInput: _cache[1] || (_cache[1] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
|
|
6559
6793
|
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
|
|
6560
6794
|
onBlur: _cache[3] || (_cache[3] = (...args) => _ctx.onBlur && _ctx.onBlur(...args))
|
|
6561
|
-
}, null, 44, _hoisted_3$
|
|
6795
|
+
}, null, 44, _hoisted_3$B)) : (openBlock(), createElementBlock("input", {
|
|
6562
6796
|
key: 1,
|
|
6563
6797
|
class: "input-text",
|
|
6564
6798
|
ref: "inputRef",
|
|
@@ -6865,7 +7099,7 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6865
7099
|
], 2);
|
|
6866
7100
|
}
|
|
6867
7101
|
var Rate = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$12]]);
|
|
6868
|
-
const { create: create$12, translate: translate$
|
|
7102
|
+
const { create: create$12, translate: translate$j } = createComponent("shortpassword");
|
|
6869
7103
|
const _sfc_main$12 = create$12({
|
|
6870
7104
|
props: {
|
|
6871
7105
|
title: {
|
|
@@ -6987,13 +7221,13 @@ const _sfc_main$12 = create$12({
|
|
|
6987
7221
|
show,
|
|
6988
7222
|
systemStyle,
|
|
6989
7223
|
closeIcon,
|
|
6990
|
-
translate: translate$
|
|
7224
|
+
translate: translate$j
|
|
6991
7225
|
};
|
|
6992
7226
|
}
|
|
6993
7227
|
});
|
|
6994
7228
|
const _hoisted_1$S = { class: "nut-shortpsd-title" };
|
|
6995
7229
|
const _hoisted_2$K = { class: "nut-shortpsd-subtitle" };
|
|
6996
|
-
const _hoisted_3$
|
|
7230
|
+
const _hoisted_3$A = { class: "nut-input-normalw" };
|
|
6997
7231
|
const _hoisted_4$t = /* @__PURE__ */ createElementVNode("div", { class: "nut-input-site" }, null, -1);
|
|
6998
7232
|
const _hoisted_5$k = {
|
|
6999
7233
|
key: 0,
|
|
@@ -7030,7 +7264,7 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7030
7264
|
default: withCtx(() => [
|
|
7031
7265
|
createElementVNode("view", _hoisted_1$S, toDisplayString(_ctx.title || _ctx.translate("title")), 1),
|
|
7032
7266
|
createElementVNode("view", _hoisted_2$K, toDisplayString(_ctx.desc || _ctx.translate("desc")), 1),
|
|
7033
|
-
createElementVNode("div", _hoisted_3$
|
|
7267
|
+
createElementVNode("div", _hoisted_3$A, [
|
|
7034
7268
|
withDirectives(createElementVNode("input", {
|
|
7035
7269
|
ref: "realpwd",
|
|
7036
7270
|
class: "nut-input-real",
|
|
@@ -7086,7 +7320,7 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7086
7320
|
]);
|
|
7087
7321
|
}
|
|
7088
7322
|
var ShortPassword = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$11]]);
|
|
7089
|
-
const { componentName: componentName$T, create: create$11, translate: translate$
|
|
7323
|
+
const { componentName: componentName$T, create: create$11, translate: translate$i } = createComponent("textarea");
|
|
7090
7324
|
const _sfc_main$11 = create$11({
|
|
7091
7325
|
props: {
|
|
7092
7326
|
modelValue: {
|
|
@@ -7210,7 +7444,7 @@ const _sfc_main$11 = create$11({
|
|
|
7210
7444
|
change,
|
|
7211
7445
|
focus,
|
|
7212
7446
|
blur,
|
|
7213
|
-
translate: translate$
|
|
7447
|
+
translate: translate$i
|
|
7214
7448
|
};
|
|
7215
7449
|
}
|
|
7216
7450
|
});
|
|
@@ -7323,16 +7557,17 @@ class Uploader$1 {
|
|
|
7323
7557
|
}
|
|
7324
7558
|
}
|
|
7325
7559
|
}
|
|
7326
|
-
const {
|
|
7560
|
+
const { translate: translate$h } = createComponent("uploader");
|
|
7327
7561
|
class FileItem {
|
|
7328
7562
|
constructor() {
|
|
7329
7563
|
this.status = "ready";
|
|
7330
|
-
this.message = translate$
|
|
7564
|
+
this.message = translate$h("ready");
|
|
7331
7565
|
this.uid = new Date().getTime().toString();
|
|
7332
7566
|
this.percentage = 0;
|
|
7333
7567
|
this.formData = new FormData();
|
|
7334
7568
|
}
|
|
7335
7569
|
}
|
|
7570
|
+
const { componentName: componentName$S, create: create$10, translate: translate$g } = createComponent("uploader");
|
|
7336
7571
|
const _sfc_main$10 = create$10({
|
|
7337
7572
|
props: {
|
|
7338
7573
|
name: { type: String, default: "file" },
|
|
@@ -7406,19 +7641,19 @@ const _sfc_main$10 = create$10({
|
|
|
7406
7641
|
uploadOption.withCredentials = props.withCredentials;
|
|
7407
7642
|
uploadOption.onStart = (option) => {
|
|
7408
7643
|
fileItem.status = "ready";
|
|
7409
|
-
fileItem.message = translate$
|
|
7644
|
+
fileItem.message = translate$g("readyUpload");
|
|
7410
7645
|
clearUploadQueue(index);
|
|
7411
7646
|
emit("start", option);
|
|
7412
7647
|
};
|
|
7413
7648
|
uploadOption.onProgress = (event, option) => {
|
|
7414
7649
|
fileItem.status = "uploading";
|
|
7415
|
-
fileItem.message = translate$
|
|
7650
|
+
fileItem.message = translate$g("uploading");
|
|
7416
7651
|
fileItem.percentage = (event.loaded / event.total * 100).toFixed(0);
|
|
7417
7652
|
emit("progress", { event, option, percentage: fileItem.percentage });
|
|
7418
7653
|
};
|
|
7419
7654
|
uploadOption.onSuccess = (responseText, option) => {
|
|
7420
7655
|
fileItem.status = "success";
|
|
7421
|
-
fileItem.message = translate$
|
|
7656
|
+
fileItem.message = translate$g("success");
|
|
7422
7657
|
emit("success", {
|
|
7423
7658
|
responseText,
|
|
7424
7659
|
option,
|
|
@@ -7428,7 +7663,7 @@ const _sfc_main$10 = create$10({
|
|
|
7428
7663
|
};
|
|
7429
7664
|
uploadOption.onFailure = (responseText, option) => {
|
|
7430
7665
|
fileItem.status = "error";
|
|
7431
|
-
fileItem.message = translate$
|
|
7666
|
+
fileItem.message = translate$g("error");
|
|
7432
7667
|
emit("failure", {
|
|
7433
7668
|
responseText,
|
|
7434
7669
|
option,
|
|
@@ -7468,7 +7703,7 @@ const _sfc_main$10 = create$10({
|
|
|
7468
7703
|
fileItem.status = "ready";
|
|
7469
7704
|
fileItem.type = file.type;
|
|
7470
7705
|
fileItem.formData = formData;
|
|
7471
|
-
fileItem.message = translate$
|
|
7706
|
+
fileItem.message = translate$g("waitingUpload");
|
|
7472
7707
|
executeUpload(fileItem, index);
|
|
7473
7708
|
if (props.isPreview && file.type.includes("image")) {
|
|
7474
7709
|
const reader = new FileReader();
|
|
@@ -7553,7 +7788,7 @@ const _hoisted_1$Q = {
|
|
|
7553
7788
|
class: "nut-uploader__slot"
|
|
7554
7789
|
};
|
|
7555
7790
|
const _hoisted_2$I = ["accept", "multiple", "name", "disabled"];
|
|
7556
|
-
const _hoisted_3$
|
|
7791
|
+
const _hoisted_3$z = ["accept", "multiple", "name", "disabled"];
|
|
7557
7792
|
const _hoisted_4$s = {
|
|
7558
7793
|
key: 0,
|
|
7559
7794
|
class: "nut-uploader__preview-img"
|
|
@@ -7610,7 +7845,7 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7610
7845
|
name: _ctx.name,
|
|
7611
7846
|
disabled: _ctx.disabled,
|
|
7612
7847
|
onChange: _cache[1] || (_cache[1] = (...args) => _ctx.onChange && _ctx.onChange(...args))
|
|
7613
|
-
}, null, 40, _hoisted_3$
|
|
7848
|
+
}, null, 40, _hoisted_3$z))
|
|
7614
7849
|
], 64)) : createCommentVNode("", true)
|
|
7615
7850
|
])) : createCommentVNode("", true),
|
|
7616
7851
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fileList, (item, index) => {
|
|
@@ -7710,7 +7945,7 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7710
7945
|
], 2);
|
|
7711
7946
|
}
|
|
7712
7947
|
var Uploader = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$$]]);
|
|
7713
|
-
const { create: create$$, translate: translate$
|
|
7948
|
+
const { create: create$$, translate: translate$f } = createComponent("numberkeyboard");
|
|
7714
7949
|
const _sfc_main$$ = create$$({
|
|
7715
7950
|
props: {
|
|
7716
7951
|
confirmText: {
|
|
@@ -7752,6 +7987,14 @@ const _sfc_main$$ = create$$({
|
|
|
7752
7987
|
isWrapTeleport: {
|
|
7753
7988
|
type: Boolean,
|
|
7754
7989
|
default: true
|
|
7990
|
+
},
|
|
7991
|
+
teleport: {
|
|
7992
|
+
type: [String, Element],
|
|
7993
|
+
default: "body"
|
|
7994
|
+
},
|
|
7995
|
+
popClass: {
|
|
7996
|
+
type: String,
|
|
7997
|
+
default: ""
|
|
7755
7998
|
}
|
|
7756
7999
|
},
|
|
7757
8000
|
emits: ["input", "delete", "close", "update:value"],
|
|
@@ -7760,12 +8003,19 @@ const _sfc_main$$ = create$$({
|
|
|
7760
8003
|
const show = ref(props.visible);
|
|
7761
8004
|
const root = ref();
|
|
7762
8005
|
function defaultKey() {
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
];
|
|
8006
|
+
const { customKey } = props;
|
|
8007
|
+
let object = {
|
|
8008
|
+
id: "lock",
|
|
8009
|
+
type: "lock"
|
|
8010
|
+
};
|
|
8011
|
+
let customKeys = Array.isArray(customKey) ? customKey : [customKey];
|
|
8012
|
+
if (customKeys.length === 1) {
|
|
8013
|
+
object = {
|
|
8014
|
+
id: customKeys[0],
|
|
8015
|
+
type: "custom"
|
|
8016
|
+
};
|
|
8017
|
+
}
|
|
8018
|
+
return [...getBasicKeys(), object, { id: 0, type: "number" }, { id: "delete", type: "delete" }];
|
|
7769
8019
|
}
|
|
7770
8020
|
function getBasicKeys() {
|
|
7771
8021
|
const keys = [];
|
|
@@ -7850,7 +8100,7 @@ const _sfc_main$$ = create$$({
|
|
|
7850
8100
|
getBasicKeys,
|
|
7851
8101
|
root,
|
|
7852
8102
|
show,
|
|
7853
|
-
translate: translate$
|
|
8103
|
+
translate: translate$f
|
|
7854
8104
|
};
|
|
7855
8105
|
}
|
|
7856
8106
|
});
|
|
@@ -7862,7 +8112,7 @@ const _hoisted_2$H = {
|
|
|
7862
8112
|
key: 0,
|
|
7863
8113
|
class: "number-board-header"
|
|
7864
8114
|
};
|
|
7865
|
-
const _hoisted_3$
|
|
8115
|
+
const _hoisted_3$y = { class: "tit" };
|
|
7866
8116
|
const _hoisted_4$r = { class: "number-board-body" };
|
|
7867
8117
|
const _hoisted_5$i = { class: "number-board" };
|
|
7868
8118
|
const _hoisted_6$g = ["onTouchstart", "onTouchmove"];
|
|
@@ -7889,6 +8139,8 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7889
8139
|
visible: _ctx.show,
|
|
7890
8140
|
"onUpdate:visible": _cache[6] || (_cache[6] = ($event) => _ctx.show = $event),
|
|
7891
8141
|
position: "bottom",
|
|
8142
|
+
teleport: _ctx.teleport,
|
|
8143
|
+
popClass: _ctx.popClass,
|
|
7892
8144
|
overlay: _ctx.overlay,
|
|
7893
8145
|
onClickOverlay: _cache[7] || (_cache[7] = ($event) => _ctx.closeBoard()),
|
|
7894
8146
|
isWrapTeleport: _ctx.isWrapTeleport,
|
|
@@ -7897,7 +8149,7 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7897
8149
|
default: withCtx(() => [
|
|
7898
8150
|
createElementVNode("div", _hoisted_1$P, [
|
|
7899
8151
|
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2$H, [
|
|
7900
|
-
createElementVNode("h3", _hoisted_3$
|
|
8152
|
+
createElementVNode("h3", _hoisted_3$y, toDisplayString(_ctx.title), 1),
|
|
7901
8153
|
createElementVNode("span", {
|
|
7902
8154
|
class: "keyboard-close",
|
|
7903
8155
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.closeBoard())
|
|
@@ -7958,7 +8210,7 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7958
8210
|
], 512)
|
|
7959
8211
|
]),
|
|
7960
8212
|
_: 1
|
|
7961
|
-
}, 8, ["visible", "overlay", "isWrapTeleport"]);
|
|
8213
|
+
}, 8, ["visible", "teleport", "popClass", "overlay", "isWrapTeleport"]);
|
|
7962
8214
|
}
|
|
7963
8215
|
var NumberKeyboard = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$_]]);
|
|
7964
8216
|
const component$2 = {
|
|
@@ -7987,7 +8239,7 @@ const component$2 = {
|
|
|
7987
8239
|
const findFormItem = (vnodes) => {
|
|
7988
8240
|
let task = [];
|
|
7989
8241
|
vnodes.forEach((vnode, index) => {
|
|
7990
|
-
var _a, _b, _c;
|
|
8242
|
+
var _a, _b, _c, _d;
|
|
7991
8243
|
let type = vnode.type;
|
|
7992
8244
|
type = type.name || type;
|
|
7993
8245
|
if (type == "nut-form-item") {
|
|
@@ -7997,6 +8249,11 @@ const component$2 = {
|
|
|
7997
8249
|
});
|
|
7998
8250
|
} else if (Array.isArray(vnode.children) && ((_c = vnode.children) == null ? void 0 : _c.length)) {
|
|
7999
8251
|
task = task.concat(findFormItem(vnode.children));
|
|
8252
|
+
} else if (isObject(vnode.children) && Object.keys(vnode.children)) {
|
|
8253
|
+
if ((_d = vnode.children) == null ? void 0 : _d.default) {
|
|
8254
|
+
vnode.children = vnode.children.default();
|
|
8255
|
+
task = task.concat(findFormItem(vnode.children));
|
|
8256
|
+
}
|
|
8000
8257
|
}
|
|
8001
8258
|
});
|
|
8002
8259
|
return task;
|
|
@@ -8603,7 +8860,7 @@ const _sfc_main$X = create$X({
|
|
|
8603
8860
|
});
|
|
8604
8861
|
const _hoisted_1$M = { class: "nut-oldpicker__bar" };
|
|
8605
8862
|
const _hoisted_2$F = { class: "nut-oldpicker__title" };
|
|
8606
|
-
const _hoisted_3$
|
|
8863
|
+
const _hoisted_3$x = { class: "nut-oldpicker__column" };
|
|
8607
8864
|
const _hoisted_4$q = /* @__PURE__ */ createElementVNode("view", { class: "nut-oldpicker__hairline" }, null, -1);
|
|
8608
8865
|
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8609
8866
|
const _component_nut_oldpicker_column = resolveComponent("nut-oldpicker-column");
|
|
@@ -8634,7 +8891,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8634
8891
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.confirm())
|
|
8635
8892
|
}, toDisplayString(_ctx.okText), 1)
|
|
8636
8893
|
]),
|
|
8637
|
-
createElementVNode("view", _hoisted_3$
|
|
8894
|
+
createElementVNode("view", _hoisted_3$x, [
|
|
8638
8895
|
_hoisted_4$q,
|
|
8639
8896
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columnList, (item, columnIndex) => {
|
|
8640
8897
|
return openBlock(), createElementBlock("view", {
|
|
@@ -8730,24 +8987,24 @@ const _sfc_main$W = create$W({
|
|
|
8730
8987
|
});
|
|
8731
8988
|
const setoffset = (deltaX) => {
|
|
8732
8989
|
position = deltaX > 0 ? "right" : "left";
|
|
8733
|
-
let
|
|
8990
|
+
let offset2 = deltaX;
|
|
8734
8991
|
switch (position) {
|
|
8735
8992
|
case "left":
|
|
8736
8993
|
if (opened && oldPosition === position) {
|
|
8737
|
-
|
|
8994
|
+
offset2 = -rightRefWidth.value;
|
|
8738
8995
|
} else {
|
|
8739
|
-
|
|
8996
|
+
offset2 = Math.abs(deltaX) > rightRefWidth.value ? -rightRefWidth.value : deltaX;
|
|
8740
8997
|
}
|
|
8741
8998
|
break;
|
|
8742
8999
|
case "right":
|
|
8743
9000
|
if (opened && oldPosition === position) {
|
|
8744
|
-
|
|
9001
|
+
offset2 = leftRefWidth.value;
|
|
8745
9002
|
} else {
|
|
8746
|
-
|
|
9003
|
+
offset2 = Math.abs(deltaX) > leftRefWidth.value ? leftRefWidth.value : deltaX;
|
|
8747
9004
|
}
|
|
8748
9005
|
break;
|
|
8749
9006
|
}
|
|
8750
|
-
state.offset =
|
|
9007
|
+
state.offset = offset2;
|
|
8751
9008
|
};
|
|
8752
9009
|
const touch = useTouch$2();
|
|
8753
9010
|
const touchMethods = {
|
|
@@ -8812,7 +9069,7 @@ const _hoisted_1$L = {
|
|
|
8812
9069
|
ref: "leftRef"
|
|
8813
9070
|
};
|
|
8814
9071
|
const _hoisted_2$E = { class: "nut-swipe__content" };
|
|
8815
|
-
const _hoisted_3$
|
|
9072
|
+
const _hoisted_3$w = {
|
|
8816
9073
|
class: "nut-swipe__right",
|
|
8817
9074
|
ref: "rightRef"
|
|
8818
9075
|
};
|
|
@@ -8831,7 +9088,7 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8831
9088
|
createElementVNode("view", _hoisted_2$E, [
|
|
8832
9089
|
renderSlot(_ctx.$slots, "default")
|
|
8833
9090
|
]),
|
|
8834
|
-
createElementVNode("view", _hoisted_3$
|
|
9091
|
+
createElementVNode("view", _hoisted_3$w, [
|
|
8835
9092
|
renderSlot(_ctx.$slots, "right")
|
|
8836
9093
|
], 512)
|
|
8837
9094
|
], 38);
|
|
@@ -8918,7 +9175,7 @@ const _hoisted_2$D = {
|
|
|
8918
9175
|
key: 0,
|
|
8919
9176
|
class: "nut-actionsheet-title"
|
|
8920
9177
|
};
|
|
8921
|
-
const _hoisted_3$
|
|
9178
|
+
const _hoisted_3$v = { key: 1 };
|
|
8922
9179
|
const _hoisted_4$p = {
|
|
8923
9180
|
key: 0,
|
|
8924
9181
|
class: "nut-actionsheet-item desc"
|
|
@@ -8948,7 +9205,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8948
9205
|
createElementVNode("view", _hoisted_1$K, [
|
|
8949
9206
|
_ctx.title ? (openBlock(), createElementBlock("view", _hoisted_2$D, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
8950
9207
|
renderSlot(_ctx.$slots, "default"),
|
|
8951
|
-
!_ctx.slotDefault ? (openBlock(), createElementBlock("view", _hoisted_3$
|
|
9208
|
+
!_ctx.slotDefault ? (openBlock(), createElementBlock("view", _hoisted_3$v, [
|
|
8952
9209
|
_ctx.description ? (openBlock(), createElementBlock("view", _hoisted_4$p, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
|
|
8953
9210
|
_ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_5$h, [
|
|
8954
9211
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index) => {
|
|
@@ -9050,11 +9307,11 @@ const _sfc_main$U = create$U({
|
|
|
9050
9307
|
}
|
|
9051
9308
|
}
|
|
9052
9309
|
function scrollAnimation() {
|
|
9053
|
-
let cid = requestAniFrame2()(function
|
|
9310
|
+
let cid = requestAniFrame2()(function fn2() {
|
|
9054
9311
|
var t = props.duration - Math.max(0, state.startTime - +new Date() + props.duration);
|
|
9055
9312
|
var y = t * -state.scrollTop / props.duration + state.scrollTop;
|
|
9056
9313
|
scroll(y);
|
|
9057
|
-
cid = requestAniFrame2()(
|
|
9314
|
+
cid = requestAniFrame2()(fn2);
|
|
9058
9315
|
if (t == props.duration || y == 0) {
|
|
9059
9316
|
window.cancelAnimationFrame(cid);
|
|
9060
9317
|
}
|
|
@@ -9325,7 +9582,7 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9325
9582
|
], 34);
|
|
9326
9583
|
}
|
|
9327
9584
|
var Drag = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$S]]);
|
|
9328
|
-
const { componentName: componentName$L, create: create$S, translate: translate$
|
|
9585
|
+
const { componentName: componentName$L, create: create$S, translate: translate$e } = createComponent("dialog");
|
|
9329
9586
|
const _sfc_main$S = create$S({
|
|
9330
9587
|
inheritAttrs: false,
|
|
9331
9588
|
components: {
|
|
@@ -9342,7 +9599,7 @@ const _sfc_main$S = create$S({
|
|
|
9342
9599
|
default: ""
|
|
9343
9600
|
},
|
|
9344
9601
|
content: {
|
|
9345
|
-
type: String,
|
|
9602
|
+
type: [String, Object],
|
|
9346
9603
|
default: ""
|
|
9347
9604
|
},
|
|
9348
9605
|
noFooter: {
|
|
@@ -9424,7 +9681,7 @@ const _sfc_main$S = create$S({
|
|
|
9424
9681
|
onCancel,
|
|
9425
9682
|
onOk,
|
|
9426
9683
|
showPopup,
|
|
9427
|
-
translate: translate$
|
|
9684
|
+
translate: translate$e
|
|
9428
9685
|
};
|
|
9429
9686
|
}
|
|
9430
9687
|
});
|
|
@@ -9442,6 +9699,8 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9442
9699
|
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.showPopup = $event),
|
|
9443
9700
|
"close-on-click-overlay": _ctx.closeOnClickOverlay,
|
|
9444
9701
|
"lock-scroll": _ctx.lockScroll,
|
|
9702
|
+
"pop-class": _ctx.overlayClass,
|
|
9703
|
+
style: normalizeStyle(_ctx.overlayStyle),
|
|
9445
9704
|
round: "",
|
|
9446
9705
|
onClickOverlay: _ctx.closed,
|
|
9447
9706
|
onClickCloseIcon: _ctx.closed
|
|
@@ -9459,10 +9718,10 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9459
9718
|
class: "nut-dialog__content",
|
|
9460
9719
|
style: normalizeStyle({ textAlign: _ctx.textAlign })
|
|
9461
9720
|
}, [
|
|
9462
|
-
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("view", {
|
|
9721
|
+
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : typeof _ctx.content === "string" ? (openBlock(), createElementBlock("view", {
|
|
9463
9722
|
key: 1,
|
|
9464
9723
|
innerHTML: _ctx.content
|
|
9465
|
-
}, null, 8, _hoisted_2$C))
|
|
9724
|
+
}, null, 8, _hoisted_2$C)) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.content), { key: 2 }))
|
|
9466
9725
|
], 4),
|
|
9467
9726
|
!_ctx.noFooter ? (openBlock(), createElementBlock("view", {
|
|
9468
9727
|
key: 1,
|
|
@@ -9499,7 +9758,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9499
9758
|
], 2)
|
|
9500
9759
|
]),
|
|
9501
9760
|
_: 3
|
|
9502
|
-
}, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "onClickOverlay", "onClickCloseIcon"]);
|
|
9761
|
+
}, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "pop-class", "style", "onClickOverlay", "onClickCloseIcon"]);
|
|
9503
9762
|
}
|
|
9504
9763
|
var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$R]]);
|
|
9505
9764
|
class DialogOptions {
|
|
@@ -9577,7 +9836,7 @@ _Dialog.install = (app) => {
|
|
|
9577
9836
|
app.use(Dialog);
|
|
9578
9837
|
app.config.globalProperties.$dialog = _Dialog;
|
|
9579
9838
|
};
|
|
9580
|
-
const { componentName: componentName$K, create: create$R } = createComponent("infiniteloading");
|
|
9839
|
+
const { componentName: componentName$K, create: create$R, translate: translate$d } = createComponent("infiniteloading");
|
|
9581
9840
|
const _sfc_main$R = create$R({
|
|
9582
9841
|
props: {
|
|
9583
9842
|
hasMore: {
|
|
@@ -9594,7 +9853,7 @@ const _sfc_main$R = create$R({
|
|
|
9594
9853
|
},
|
|
9595
9854
|
pullTxt: {
|
|
9596
9855
|
type: String,
|
|
9597
|
-
default: "
|
|
9856
|
+
default: ""
|
|
9598
9857
|
},
|
|
9599
9858
|
loadIcon: {
|
|
9600
9859
|
type: String,
|
|
@@ -9602,11 +9861,11 @@ const _sfc_main$R = create$R({
|
|
|
9602
9861
|
},
|
|
9603
9862
|
loadTxt: {
|
|
9604
9863
|
type: String,
|
|
9605
|
-
default: "
|
|
9864
|
+
default: ""
|
|
9606
9865
|
},
|
|
9607
9866
|
loadMoreTxt: {
|
|
9608
9867
|
type: String,
|
|
9609
|
-
default: "
|
|
9868
|
+
default: ""
|
|
9610
9869
|
},
|
|
9611
9870
|
useWindow: {
|
|
9612
9871
|
type: Boolean,
|
|
@@ -9741,6 +10000,7 @@ const _sfc_main$R = create$R({
|
|
|
9741
10000
|
const parentElement = getParentElement(state.scroller);
|
|
9742
10001
|
state.scrollEl = props.useWindow ? window : parentElement;
|
|
9743
10002
|
scrollListener();
|
|
10003
|
+
console.log(slots);
|
|
9744
10004
|
});
|
|
9745
10005
|
onUnmounted(() => {
|
|
9746
10006
|
state.scrollEl.removeEventListener("scroll", handleScroll, props.useCapture);
|
|
@@ -9762,13 +10022,15 @@ const _sfc_main$R = create$R({
|
|
|
9762
10022
|
touchStart,
|
|
9763
10023
|
touchMove,
|
|
9764
10024
|
touchEnd,
|
|
9765
|
-
getStyle
|
|
10025
|
+
getStyle,
|
|
10026
|
+
translate: translate$d,
|
|
10027
|
+
slots
|
|
9766
10028
|
});
|
|
9767
10029
|
}
|
|
9768
10030
|
});
|
|
9769
10031
|
const _hoisted_1$I = { class: "top-box" };
|
|
9770
10032
|
const _hoisted_2$B = { class: "top-text" };
|
|
9771
|
-
const _hoisted_3$
|
|
10033
|
+
const _hoisted_3$u = { class: "nut-infinite-container" };
|
|
9772
10034
|
const _hoisted_4$o = { class: "nut-infinite-bottom" };
|
|
9773
10035
|
const _hoisted_5$g = {
|
|
9774
10036
|
key: 0,
|
|
@@ -9776,7 +10038,7 @@ const _hoisted_5$g = {
|
|
|
9776
10038
|
};
|
|
9777
10039
|
const _hoisted_6$e = { class: "bottom-text" };
|
|
9778
10040
|
const _hoisted_7$c = {
|
|
9779
|
-
key:
|
|
10041
|
+
key: 0,
|
|
9780
10042
|
class: "tips"
|
|
9781
10043
|
};
|
|
9782
10044
|
function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -9798,20 +10060,24 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9798
10060
|
class: "top-img",
|
|
9799
10061
|
name: _ctx.pullIcon
|
|
9800
10062
|
}, null, 8, ["name"]),
|
|
9801
|
-
createElementVNode("view", _hoisted_2$B, toDisplayString(_ctx.pullTxt), 1)
|
|
10063
|
+
createElementVNode("view", _hoisted_2$B, toDisplayString(_ctx.pullTxt || _ctx.translate("pullTxt")), 1)
|
|
9802
10064
|
])
|
|
9803
10065
|
], 4),
|
|
9804
|
-
createElementVNode("view", _hoisted_3$
|
|
10066
|
+
createElementVNode("view", _hoisted_3$u, [
|
|
9805
10067
|
renderSlot(_ctx.$slots, "default")
|
|
9806
10068
|
]),
|
|
9807
10069
|
createElementVNode("view", _hoisted_4$o, [
|
|
9808
10070
|
_ctx.isInfiniting ? (openBlock(), createElementBlock("view", _hoisted_5$g, [
|
|
9809
|
-
|
|
9810
|
-
|
|
9811
|
-
|
|
9812
|
-
|
|
9813
|
-
|
|
9814
|
-
|
|
10071
|
+
!_ctx.slots.loading ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
10072
|
+
createVNode(_component_nut_icon, {
|
|
10073
|
+
class: "bottom-img",
|
|
10074
|
+
name: _ctx.loadIcon
|
|
10075
|
+
}, null, 8, ["name"]),
|
|
10076
|
+
createElementVNode("view", _hoisted_6$e, toDisplayString(_ctx.loadTxt || _ctx.translate("loading")), 1)
|
|
10077
|
+
], 64)) : renderSlot(_ctx.$slots, "loading", { key: 1 })
|
|
10078
|
+
])) : !_ctx.hasMore ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
10079
|
+
!_ctx.slots.finished ? (openBlock(), createElementBlock("view", _hoisted_7$c, toDisplayString(_ctx.loadMoreTxt || _ctx.translate("loadMoreTxt")), 1)) : renderSlot(_ctx.$slots, "finished", { key: 1 })
|
|
10080
|
+
], 64)) : createCommentVNode("", true)
|
|
9815
10081
|
])
|
|
9816
10082
|
], 34);
|
|
9817
10083
|
}
|
|
@@ -10065,7 +10331,7 @@ function useTouch$1() {
|
|
|
10065
10331
|
offsetY.value = 0;
|
|
10066
10332
|
direction.value = "";
|
|
10067
10333
|
};
|
|
10068
|
-
const
|
|
10334
|
+
const start2 = (event) => {
|
|
10069
10335
|
reset();
|
|
10070
10336
|
startX.value = event.touches[0].clientX;
|
|
10071
10337
|
startY.value = event.touches[0].clientY;
|
|
@@ -10082,7 +10348,7 @@ function useTouch$1() {
|
|
|
10082
10348
|
};
|
|
10083
10349
|
return {
|
|
10084
10350
|
move,
|
|
10085
|
-
start,
|
|
10351
|
+
start: start2,
|
|
10086
10352
|
reset,
|
|
10087
10353
|
startX,
|
|
10088
10354
|
startY,
|
|
@@ -10269,8 +10535,8 @@ const _sfc_main$P = create$P({
|
|
|
10269
10535
|
const touchStart = (event) => {
|
|
10270
10536
|
if (isTouchable()) {
|
|
10271
10537
|
if (direction.value == "vertical") {
|
|
10272
|
-
const
|
|
10273
|
-
reachTop.value = Math.max(
|
|
10538
|
+
const top2 = "scrollTop" in scrollEl ? scrollEl.scrollTop : 0;
|
|
10539
|
+
reachTop.value = Math.max(top2, 0) == 0 ? true : false;
|
|
10274
10540
|
const { scrollHeight, clientHeight, scrollTop } = scrollEl;
|
|
10275
10541
|
reachBottom.value = clientHeight + scrollTop == scrollHeight ? true : false;
|
|
10276
10542
|
if (reachTop.value || reachBottom.value) {
|
|
@@ -10279,8 +10545,8 @@ const _sfc_main$P = create$P({
|
|
|
10279
10545
|
}
|
|
10280
10546
|
} else {
|
|
10281
10547
|
const { scrollWidth, clientWidth, scrollLeft } = scrollEl;
|
|
10282
|
-
const
|
|
10283
|
-
reachLeft.value = Math.max(
|
|
10548
|
+
const left2 = "scrollLeft" in scrollEl ? scrollEl.scrollLeft : 0;
|
|
10549
|
+
reachLeft.value = Math.max(left2, 0) == 0 ? true : false;
|
|
10284
10550
|
reachRight.value = clientWidth + scrollLeft == scrollWidth ? true : false;
|
|
10285
10551
|
if (reachLeft.value || reachRight.value) {
|
|
10286
10552
|
state.duration = 0;
|
|
@@ -10630,7 +10896,7 @@ const _hoisted_2$A = {
|
|
|
10630
10896
|
key: 1,
|
|
10631
10897
|
class: "nut-toast-title"
|
|
10632
10898
|
};
|
|
10633
|
-
const _hoisted_3$
|
|
10899
|
+
const _hoisted_3$t = ["innerHTML"];
|
|
10634
10900
|
function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10635
10901
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
10636
10902
|
return openBlock(), createBlock(Transition, {
|
|
@@ -10664,7 +10930,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10664
10930
|
createElementVNode("view", {
|
|
10665
10931
|
class: "nut-toast-text",
|
|
10666
10932
|
innerHTML: _ctx.msg
|
|
10667
|
-
}, null, 8, _hoisted_3$
|
|
10933
|
+
}, null, 8, _hoisted_3$t)
|
|
10668
10934
|
], 4)
|
|
10669
10935
|
], 6), [
|
|
10670
10936
|
[vShow, _ctx.state.mounted]
|
|
@@ -10796,45 +11062,31 @@ const _sfc_main$M = create$M({
|
|
|
10796
11062
|
props: {
|
|
10797
11063
|
url: {
|
|
10798
11064
|
type: String,
|
|
10799
|
-
default
|
|
10800
|
-
return "";
|
|
10801
|
-
}
|
|
11065
|
+
default: ""
|
|
10802
11066
|
},
|
|
10803
11067
|
muted: {
|
|
10804
11068
|
type: Boolean,
|
|
10805
|
-
default
|
|
10806
|
-
return false;
|
|
10807
|
-
}
|
|
11069
|
+
default: false
|
|
10808
11070
|
},
|
|
10809
11071
|
autoplay: {
|
|
10810
11072
|
type: Boolean,
|
|
10811
|
-
default
|
|
10812
|
-
return false;
|
|
10813
|
-
}
|
|
11073
|
+
default: false
|
|
10814
11074
|
},
|
|
10815
11075
|
loop: {
|
|
10816
11076
|
type: Boolean,
|
|
10817
|
-
default
|
|
10818
|
-
return false;
|
|
10819
|
-
}
|
|
11077
|
+
default: false
|
|
10820
11078
|
},
|
|
10821
11079
|
preload: {
|
|
10822
11080
|
type: String,
|
|
10823
|
-
default
|
|
10824
|
-
return "auto";
|
|
10825
|
-
}
|
|
11081
|
+
default: "auto"
|
|
10826
11082
|
},
|
|
10827
11083
|
second: {
|
|
10828
11084
|
type: Number,
|
|
10829
|
-
default
|
|
10830
|
-
return 0;
|
|
10831
|
-
}
|
|
11085
|
+
default: 0
|
|
10832
11086
|
},
|
|
10833
11087
|
type: {
|
|
10834
11088
|
type: String,
|
|
10835
|
-
default
|
|
10836
|
-
return "progress";
|
|
10837
|
-
}
|
|
11089
|
+
default: "progress"
|
|
10838
11090
|
}
|
|
10839
11091
|
},
|
|
10840
11092
|
components: {},
|
|
@@ -10848,7 +11100,8 @@ const _sfc_main$M = create$M({
|
|
|
10848
11100
|
duration: "00:00:00",
|
|
10849
11101
|
second: 0,
|
|
10850
11102
|
hanMuted: props.muted,
|
|
10851
|
-
playing: props.autoplay
|
|
11103
|
+
playing: props.autoplay,
|
|
11104
|
+
handPlaying: false
|
|
10852
11105
|
});
|
|
10853
11106
|
onMounted(() => {
|
|
10854
11107
|
var arr = ["webkitVisibilityState", "visibilitychange"];
|
|
@@ -10870,13 +11123,14 @@ const _sfc_main$M = create$M({
|
|
|
10870
11123
|
console.log(e.message);
|
|
10871
11124
|
}
|
|
10872
11125
|
setTimeout(() => {
|
|
11126
|
+
const audioR = audioRef.value;
|
|
10873
11127
|
if (props.autoplay) {
|
|
10874
|
-
if (
|
|
10875
|
-
|
|
11128
|
+
if (audioR && audioR.paused) {
|
|
11129
|
+
audioR.play();
|
|
10876
11130
|
}
|
|
10877
11131
|
}
|
|
10878
|
-
audioData.second =
|
|
10879
|
-
audioData.duration = formatSeconds(
|
|
11132
|
+
audioData.second = audioR.duration;
|
|
11133
|
+
audioData.duration = formatSeconds(audioR.duration);
|
|
10880
11134
|
}, 500);
|
|
10881
11135
|
});
|
|
10882
11136
|
const onTimeupdate = (e) => {
|
|
@@ -10888,11 +11142,12 @@ const _sfc_main$M = create$M({
|
|
|
10888
11142
|
emit("fastBack", audioData.currentTime);
|
|
10889
11143
|
};
|
|
10890
11144
|
const changeStatus = () => {
|
|
11145
|
+
const audioR = audioRef.value;
|
|
10891
11146
|
if (audioData.playing) {
|
|
10892
|
-
|
|
11147
|
+
audioR.pause();
|
|
10893
11148
|
audioData.handPlaying = false;
|
|
10894
11149
|
} else {
|
|
10895
|
-
|
|
11150
|
+
audioR.play();
|
|
10896
11151
|
audioData.handPlaying = true;
|
|
10897
11152
|
}
|
|
10898
11153
|
audioData.playing = !audioData.playing;
|
|
@@ -10912,8 +11167,9 @@ const _sfc_main$M = create$M({
|
|
|
10912
11167
|
emit("ended");
|
|
10913
11168
|
};
|
|
10914
11169
|
const progressChange = (val) => {
|
|
10915
|
-
|
|
10916
|
-
|
|
11170
|
+
const ar = audioRef.value;
|
|
11171
|
+
ar.currentTime = audioData.second * val / 100;
|
|
11172
|
+
emit("changeProgress", ar.currentTime);
|
|
10917
11173
|
};
|
|
10918
11174
|
const handleMute = () => {
|
|
10919
11175
|
audioData.hanMuted = !audioData.hanMuted;
|
|
@@ -10924,19 +11180,19 @@ const _sfc_main$M = create$M({
|
|
|
10924
11180
|
let theTime1 = 0;
|
|
10925
11181
|
let theTime2 = 0;
|
|
10926
11182
|
if (theTime > 60) {
|
|
10927
|
-
theTime1 =
|
|
10928
|
-
theTime =
|
|
11183
|
+
theTime1 = Math.floor(theTime / 60);
|
|
11184
|
+
theTime = Math.floor(theTime % 60);
|
|
10929
11185
|
if (theTime1 > 60) {
|
|
10930
|
-
theTime2 =
|
|
10931
|
-
theTime1 =
|
|
11186
|
+
theTime2 = Math.floor(theTime1 / 60);
|
|
11187
|
+
theTime1 = Math.floor(theTime1 % 60);
|
|
10932
11188
|
}
|
|
10933
11189
|
}
|
|
10934
|
-
let result = ""
|
|
10935
|
-
if (
|
|
11190
|
+
let result = "";
|
|
11191
|
+
if (theTime < 10) {
|
|
10936
11192
|
result = "0" + result;
|
|
10937
11193
|
}
|
|
10938
11194
|
if (theTime1 > 0) {
|
|
10939
|
-
result = "" +
|
|
11195
|
+
result = "" + theTime1 + ":" + result;
|
|
10940
11196
|
if (theTime1 < 10) {
|
|
10941
11197
|
result = "0" + result;
|
|
10942
11198
|
}
|
|
@@ -10944,7 +11200,7 @@ const _sfc_main$M = create$M({
|
|
|
10944
11200
|
result = "00:" + result;
|
|
10945
11201
|
}
|
|
10946
11202
|
if (theTime2 > 0) {
|
|
10947
|
-
result = "" +
|
|
11203
|
+
result = "" + theTime2 + ":" + result;
|
|
10948
11204
|
if (theTime2 < 10) {
|
|
10949
11205
|
result = "0" + result;
|
|
10950
11206
|
}
|
|
@@ -10982,7 +11238,7 @@ const _hoisted_2$z = {
|
|
|
10982
11238
|
key: 0,
|
|
10983
11239
|
class: "progress-wrapper"
|
|
10984
11240
|
};
|
|
10985
|
-
const _hoisted_3$
|
|
11241
|
+
const _hoisted_3$s = { class: "time" };
|
|
10986
11242
|
const _hoisted_4$n = { class: "progress-bar-wrapper" };
|
|
10987
11243
|
const _hoisted_5$f = /* @__PURE__ */ createElementVNode("div", { class: "custom-button" }, null, -1);
|
|
10988
11244
|
const _hoisted_6$d = { class: "time" };
|
|
@@ -10996,7 +11252,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10996
11252
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
10997
11253
|
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
10998
11254
|
_ctx.type == "progress" ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
|
|
10999
|
-
createElementVNode("div", _hoisted_3$
|
|
11255
|
+
createElementVNode("div", _hoisted_3$s, toDisplayString(_ctx.currentDuration), 1),
|
|
11000
11256
|
createElementVNode("div", _hoisted_4$n, [
|
|
11001
11257
|
createVNode(_component_nut_range, {
|
|
11002
11258
|
modelValue: _ctx.percent,
|
|
@@ -11073,7 +11329,7 @@ const _sfc_main$L = create$L({
|
|
|
11073
11329
|
});
|
|
11074
11330
|
const _hoisted_1$D = { class: "nut-audio-operate" };
|
|
11075
11331
|
const _hoisted_2$y = /* @__PURE__ */ createTextVNode("\u5012\u9000");
|
|
11076
|
-
const _hoisted_3$
|
|
11332
|
+
const _hoisted_3$r = /* @__PURE__ */ createTextVNode("\u5FEB\u8FDB");
|
|
11077
11333
|
const _hoisted_4$m = /* @__PURE__ */ createTextVNode("\u9759\u97F3");
|
|
11078
11334
|
function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11079
11335
|
const _component_nut_button = resolveComponent("nut-button");
|
|
@@ -11123,7 +11379,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11123
11379
|
size: "small"
|
|
11124
11380
|
}, {
|
|
11125
11381
|
default: withCtx(() => [
|
|
11126
|
-
_hoisted_3$
|
|
11382
|
+
_hoisted_3$r
|
|
11127
11383
|
]),
|
|
11128
11384
|
_: 1
|
|
11129
11385
|
})) : createCommentVNode("", true),
|
|
@@ -11273,7 +11529,7 @@ const _hoisted_2$x = {
|
|
|
11273
11529
|
key: 2,
|
|
11274
11530
|
class: "text"
|
|
11275
11531
|
};
|
|
11276
|
-
const _hoisted_3$
|
|
11532
|
+
const _hoisted_3$q = {
|
|
11277
11533
|
key: 1,
|
|
11278
11534
|
class: "text"
|
|
11279
11535
|
};
|
|
@@ -11302,7 +11558,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11302
11558
|
renderSlot(_ctx.$slots, "default")
|
|
11303
11559
|
])) : createCommentVNode("", true)
|
|
11304
11560
|
], 64)) : createCommentVNode("", true),
|
|
11305
|
-
_ctx.showMax ? (openBlock(), createElementBlock("view", _hoisted_3$
|
|
11561
|
+
_ctx.showMax ? (openBlock(), createElementBlock("view", _hoisted_3$q, toDisplayString(((_j = (_i = _ctx.avatarGroup) == null ? void 0 : _i.props) == null ? void 0 : _j.maxContent) ? (_l = (_k = _ctx.avatarGroup) == null ? void 0 : _k.props) == null ? void 0 : _l.maxContent : `+ ${_ctx.maxIndex - ((_n = (_m = _ctx.avatarGroup) == null ? void 0 : _m.props) == null ? void 0 : _n.maxCount)}`), 1)) : createCommentVNode("", true)
|
|
11306
11562
|
], 6)) : createCommentVNode("", true);
|
|
11307
11563
|
}
|
|
11308
11564
|
var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$J]]);
|
|
@@ -11392,7 +11648,7 @@ const _sfc_main$I = create$I({
|
|
|
11392
11648
|
default: document.documentElement.clientHeight || document.body.clientHeight || 667
|
|
11393
11649
|
}
|
|
11394
11650
|
},
|
|
11395
|
-
emits: ["scroll"],
|
|
11651
|
+
emits: ["scroll", "scroll-bottom"],
|
|
11396
11652
|
setup(props, { emit }) {
|
|
11397
11653
|
const list = ref(null);
|
|
11398
11654
|
const state = reactive({
|
|
@@ -11403,7 +11659,7 @@ const _sfc_main$I = create$I({
|
|
|
11403
11659
|
const visibleCount = computed(() => {
|
|
11404
11660
|
return Math.ceil(props.containerHeight / props.height);
|
|
11405
11661
|
});
|
|
11406
|
-
const
|
|
11662
|
+
const end2 = computed(() => {
|
|
11407
11663
|
return state.start + visibleCount.value;
|
|
11408
11664
|
});
|
|
11409
11665
|
const getTransform = computed(() => {
|
|
@@ -11419,14 +11675,15 @@ const _sfc_main$I = create$I({
|
|
|
11419
11675
|
return state.list.length * props.height;
|
|
11420
11676
|
});
|
|
11421
11677
|
const visibleData = computed(() => {
|
|
11422
|
-
return state.list.slice(state.start, Math.min(
|
|
11678
|
+
return state.list.slice(state.start, Math.min(end2.value, state.list.length));
|
|
11423
11679
|
});
|
|
11424
11680
|
const handleScrollEvent = () => {
|
|
11425
11681
|
var _a;
|
|
11426
11682
|
const scrollTop = (_a = list.value) == null ? void 0 : _a.scrollTop;
|
|
11427
11683
|
state.start = Math.floor(scrollTop / props.height);
|
|
11428
|
-
if (
|
|
11684
|
+
if (end2.value > state.list.length) {
|
|
11429
11685
|
emit("scroll");
|
|
11686
|
+
emit("scroll-bottom");
|
|
11430
11687
|
}
|
|
11431
11688
|
state.startOffset = scrollTop - scrollTop % props.height;
|
|
11432
11689
|
};
|
|
@@ -11506,11 +11763,11 @@ const _sfc_main$H = create$H({
|
|
|
11506
11763
|
default: ""
|
|
11507
11764
|
},
|
|
11508
11765
|
textColor: {
|
|
11509
|
-
|
|
11766
|
+
type: String,
|
|
11510
11767
|
default: ""
|
|
11511
11768
|
},
|
|
11512
11769
|
textBackground: {
|
|
11513
|
-
|
|
11770
|
+
type: String,
|
|
11514
11771
|
default: ""
|
|
11515
11772
|
},
|
|
11516
11773
|
iconName: {
|
|
@@ -11664,10 +11921,10 @@ const _sfc_main$G = create$G({
|
|
|
11664
11921
|
});
|
|
11665
11922
|
const hoverStyle = computed(() => {
|
|
11666
11923
|
let perimeter = 283;
|
|
11667
|
-
let
|
|
11924
|
+
let offset2 = perimeter * Number(props.progress) / 100;
|
|
11668
11925
|
return {
|
|
11669
11926
|
stroke: isObject(props.color) ? `url(#${refRandomId})` : props.color,
|
|
11670
|
-
strokeDasharray: `${
|
|
11927
|
+
strokeDasharray: `${offset2}px ${perimeter}px`
|
|
11671
11928
|
};
|
|
11672
11929
|
});
|
|
11673
11930
|
const pathStyle = computed(() => {
|
|
@@ -11707,7 +11964,7 @@ const _sfc_main$G = create$G({
|
|
|
11707
11964
|
});
|
|
11708
11965
|
const _hoisted_1$A = { viewBox: "0 0 100 100" };
|
|
11709
11966
|
const _hoisted_2$w = ["id"];
|
|
11710
|
-
const _hoisted_3$
|
|
11967
|
+
const _hoisted_3$p = ["offset", "stop-color"];
|
|
11711
11968
|
const _hoisted_4$l = ["d", "stroke-width"];
|
|
11712
11969
|
const _hoisted_5$e = ["d", "stroke", "stroke-linecap", "stroke-width"];
|
|
11713
11970
|
const _hoisted_6$c = { class: "nut-circleprogress-text" };
|
|
@@ -11731,7 +11988,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11731
11988
|
key: index,
|
|
11732
11989
|
offset: item.key,
|
|
11733
11990
|
"stop-color": item.value
|
|
11734
|
-
}, null, 8, _hoisted_3$
|
|
11991
|
+
}, null, 8, _hoisted_3$p);
|
|
11735
11992
|
}), 128))
|
|
11736
11993
|
], 8, _hoisted_2$w)
|
|
11737
11994
|
]),
|
|
@@ -12178,7 +12435,7 @@ const _sfc_main$E = create$E({
|
|
|
12178
12435
|
});
|
|
12179
12436
|
const _hoisted_1$y = { class: "nut-empty" };
|
|
12180
12437
|
const _hoisted_2$u = ["src"];
|
|
12181
|
-
const _hoisted_3$
|
|
12438
|
+
const _hoisted_3$o = {
|
|
12182
12439
|
key: 1,
|
|
12183
12440
|
class: "nut-empty-description"
|
|
12184
12441
|
};
|
|
@@ -12196,7 +12453,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12196
12453
|
}, null, 8, _hoisted_2$u)) : createCommentVNode("", true)
|
|
12197
12454
|
], 64))
|
|
12198
12455
|
], 4),
|
|
12199
|
-
_ctx.$slots.description ? renderSlot(_ctx.$slots, "description", { key: 0 }) : (openBlock(), createElementBlock("view", _hoisted_3$
|
|
12456
|
+
_ctx.$slots.description ? renderSlot(_ctx.$slots, "description", { key: 0 }) : (openBlock(), createElementBlock("view", _hoisted_3$o, toDisplayString(_ctx.description || _ctx.translate("noData")), 1)),
|
|
12200
12457
|
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 2 }) : createCommentVNode("", true)
|
|
12201
12458
|
]);
|
|
12202
12459
|
}
|
|
@@ -12429,7 +12686,7 @@ const _hoisted_1$x = {
|
|
|
12429
12686
|
ref: "videocon"
|
|
12430
12687
|
};
|
|
12431
12688
|
const _hoisted_2$t = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
|
|
12432
|
-
const _hoisted_3$
|
|
12689
|
+
const _hoisted_3$n = ["src", "type"];
|
|
12433
12690
|
const _hoisted_4$k = { class: "current-time" };
|
|
12434
12691
|
const _hoisted_5$d = { class: "progress-container" };
|
|
12435
12692
|
const _hoisted_6$b = {
|
|
@@ -12463,7 +12720,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12463
12720
|
createElementVNode("source", {
|
|
12464
12721
|
src: _ctx.source.src,
|
|
12465
12722
|
type: _ctx.source.type
|
|
12466
|
-
}, null, 8, _hoisted_3$
|
|
12723
|
+
}, null, 8, _hoisted_3$n)
|
|
12467
12724
|
], 40, _hoisted_2$t),
|
|
12468
12725
|
_ctx.showToolbox && !_ctx.isDisabled ? (openBlock(), createElementBlock("div", {
|
|
12469
12726
|
key: 0,
|
|
@@ -12639,7 +12896,7 @@ const _sfc_main$B = create$B({
|
|
|
12639
12896
|
});
|
|
12640
12897
|
const _hoisted_1$w = { class: "nut-step-head" };
|
|
12641
12898
|
const _hoisted_2$s = /* @__PURE__ */ createElementVNode("view", { class: "nut-step-line" }, null, -1);
|
|
12642
|
-
const _hoisted_3$
|
|
12899
|
+
const _hoisted_3$m = {
|
|
12643
12900
|
key: 2,
|
|
12644
12901
|
class: "nut-step-inner"
|
|
12645
12902
|
};
|
|
@@ -12668,7 +12925,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12668
12925
|
color: _ctx.iconColor,
|
|
12669
12926
|
name: _ctx.icon,
|
|
12670
12927
|
size: _ctx.size
|
|
12671
|
-
}, null, 8, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3$
|
|
12928
|
+
}, null, 8, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3$m, toDisplayString(_ctx.index), 1))
|
|
12672
12929
|
], 2)
|
|
12673
12930
|
]),
|
|
12674
12931
|
createElementVNode("view", _hoisted_4$j, [
|
|
@@ -12714,7 +12971,7 @@ function useTouch() {
|
|
|
12714
12971
|
state.offsetY = 0;
|
|
12715
12972
|
state.direction = "";
|
|
12716
12973
|
};
|
|
12717
|
-
const
|
|
12974
|
+
const start2 = (e) => {
|
|
12718
12975
|
reset();
|
|
12719
12976
|
state.startX = e.touches[0].clientX;
|
|
12720
12977
|
state.startY = e.touches[0].clientY;
|
|
@@ -12730,7 +12987,7 @@ function useTouch() {
|
|
|
12730
12987
|
};
|
|
12731
12988
|
return {
|
|
12732
12989
|
state,
|
|
12733
|
-
start,
|
|
12990
|
+
start: start2,
|
|
12734
12991
|
reset,
|
|
12735
12992
|
move
|
|
12736
12993
|
};
|
|
@@ -12801,6 +13058,7 @@ const _sfc_main$A = create$A({
|
|
|
12801
13058
|
touchTime: 0,
|
|
12802
13059
|
autoplayTimer: 0,
|
|
12803
13060
|
children: [],
|
|
13061
|
+
childrenVNode: [],
|
|
12804
13062
|
style: {}
|
|
12805
13063
|
});
|
|
12806
13064
|
const touch = useTouch();
|
|
@@ -12837,22 +13095,49 @@ const _sfc_main$A = create$A({
|
|
|
12837
13095
|
};
|
|
12838
13096
|
};
|
|
12839
13097
|
const relation = (child) => {
|
|
12840
|
-
|
|
12841
|
-
|
|
13098
|
+
var _a;
|
|
13099
|
+
let children = [];
|
|
13100
|
+
let slot = (_a = slots == null ? void 0 : slots.default) == null ? void 0 : _a.call(slots);
|
|
13101
|
+
slot = slot.filter((item) => item.children && Array.isArray(item.children));
|
|
13102
|
+
slot.forEach((item) => {
|
|
13103
|
+
children = children.concat(item.children);
|
|
13104
|
+
});
|
|
13105
|
+
if (!state.childrenVNode.length) {
|
|
13106
|
+
state.childrenVNode = children.slice();
|
|
13107
|
+
child.proxy && state.children.push(child.proxy);
|
|
13108
|
+
} else {
|
|
13109
|
+
if (state.childrenVNode.length > children.length) {
|
|
13110
|
+
state.children = state.children.filter((item) => child.proxy !== item);
|
|
13111
|
+
} else if (state.childrenVNode.length < children.length) {
|
|
13112
|
+
for (let i = 0; i < state.childrenVNode.length; i++) {
|
|
13113
|
+
if (children[i].key !== state.childrenVNode[i].key) {
|
|
13114
|
+
child.proxy && state.children.splice(i, 0, child.proxy);
|
|
13115
|
+
child.vnode && state.childrenVNode.splice(i, 0, child.vnode);
|
|
13116
|
+
break;
|
|
13117
|
+
}
|
|
13118
|
+
}
|
|
13119
|
+
if (state.childrenVNode.length !== children.length) {
|
|
13120
|
+
child.proxy && state.children.push(child.proxy);
|
|
13121
|
+
child.vnode && state.childrenVNode.push(child.vnode);
|
|
13122
|
+
}
|
|
13123
|
+
} else {
|
|
13124
|
+
state.childrenVNode = children.slice();
|
|
13125
|
+
child.proxy && state.children.push(child.proxy);
|
|
13126
|
+
}
|
|
12842
13127
|
}
|
|
12843
13128
|
};
|
|
12844
13129
|
const range = (num, min, max) => {
|
|
12845
13130
|
return Math.min(Math.max(num, min), max);
|
|
12846
13131
|
};
|
|
12847
|
-
const requestFrame = (
|
|
12848
|
-
window.requestAnimationFrame.call(window,
|
|
13132
|
+
const requestFrame = (fn2) => {
|
|
13133
|
+
window.requestAnimationFrame.call(window, fn2);
|
|
12849
13134
|
};
|
|
12850
|
-
const getOffset = (active,
|
|
13135
|
+
const getOffset = (active, offset2 = 0) => {
|
|
12851
13136
|
let currentPosition = active * size.value;
|
|
12852
13137
|
if (!props.loop) {
|
|
12853
13138
|
currentPosition = Math.min(currentPosition, -minOffset.value);
|
|
12854
13139
|
}
|
|
12855
|
-
let targetOffset =
|
|
13140
|
+
let targetOffset = offset2 - currentPosition;
|
|
12856
13141
|
if (!props.loop) {
|
|
12857
13142
|
targetOffset = range(targetOffset, minOffset.value, 0);
|
|
12858
13143
|
}
|
|
@@ -12868,12 +13153,12 @@ const _sfc_main$A = create$A({
|
|
|
12868
13153
|
}
|
|
12869
13154
|
return active;
|
|
12870
13155
|
};
|
|
12871
|
-
const move = ({ pace = 0, offset = 0, isEmit = false }) => {
|
|
13156
|
+
const move = ({ pace = 0, offset: offset2 = 0, isEmit = false }) => {
|
|
12872
13157
|
if (childCount.value <= 1)
|
|
12873
13158
|
return;
|
|
12874
13159
|
const { active } = state;
|
|
12875
13160
|
const targetActive = getActive(pace);
|
|
12876
|
-
const targetOffset = getOffset(targetActive,
|
|
13161
|
+
const targetOffset = getOffset(targetActive, offset2);
|
|
12877
13162
|
if (props.loop) {
|
|
12878
13163
|
if (state.children[0] && targetOffset !== minOffset.value) {
|
|
12879
13164
|
const rightBound = targetOffset < minOffset.value;
|
|
@@ -12998,9 +13283,9 @@ const _sfc_main$A = create$A({
|
|
|
12998
13283
|
const isShouldMove = Math.abs(speed) > 0.3 || Math.abs(delTa.value) > +(size.value / 2).toFixed(2);
|
|
12999
13284
|
if (isShouldMove && isCorrectDirection.value) {
|
|
13000
13285
|
let pace = 0;
|
|
13001
|
-
const
|
|
13286
|
+
const offset2 = isVertical.value ? touch.state.offsetY : touch.state.offsetX;
|
|
13002
13287
|
if (props.loop) {
|
|
13003
|
-
pace =
|
|
13288
|
+
pace = offset2 > 0 ? delTa.value > 0 ? -1 : 1 : 0;
|
|
13004
13289
|
} else {
|
|
13005
13290
|
pace = -Math[delTa.value > 0 ? "ceil" : "floor"](delTa.value / size.value);
|
|
13006
13291
|
}
|
|
@@ -13025,16 +13310,6 @@ const _sfc_main$A = create$A({
|
|
|
13025
13310
|
next,
|
|
13026
13311
|
to
|
|
13027
13312
|
});
|
|
13028
|
-
onMounted(() => {
|
|
13029
|
-
nextTick(() => {
|
|
13030
|
-
init();
|
|
13031
|
-
});
|
|
13032
|
-
});
|
|
13033
|
-
onActivated(() => {
|
|
13034
|
-
nextTick(() => {
|
|
13035
|
-
init();
|
|
13036
|
-
});
|
|
13037
|
-
});
|
|
13038
13313
|
onDeactivated(() => {
|
|
13039
13314
|
stopAutoPlay();
|
|
13040
13315
|
});
|
|
@@ -13048,7 +13323,7 @@ const _sfc_main$A = create$A({
|
|
|
13048
13323
|
});
|
|
13049
13324
|
watch(() => state.children.length, () => {
|
|
13050
13325
|
nextTick(() => {
|
|
13051
|
-
init(
|
|
13326
|
+
init();
|
|
13052
13327
|
});
|
|
13053
13328
|
});
|
|
13054
13329
|
watch(() => props.autoPlay, (val) => {
|
|
@@ -13099,8 +13374,9 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13099
13374
|
style: normalizeStyle({
|
|
13100
13375
|
backgroundColor: _ctx.activePagination === index ? _ctx.paginationColor : "#ddd"
|
|
13101
13376
|
}),
|
|
13377
|
+
class: normalizeClass({ active: _ctx.activePagination === index }),
|
|
13102
13378
|
key: index
|
|
13103
|
-
}, null,
|
|
13379
|
+
}, null, 6);
|
|
13104
13380
|
}), 128))
|
|
13105
13381
|
], 2)) : createCommentVNode("", true)
|
|
13106
13382
|
], 34);
|
|
@@ -13131,9 +13407,12 @@ const _sfc_main$z = create$z({
|
|
|
13131
13407
|
}
|
|
13132
13408
|
return style2;
|
|
13133
13409
|
});
|
|
13134
|
-
const setOffset = (
|
|
13135
|
-
state.offset =
|
|
13410
|
+
const setOffset = (offset2) => {
|
|
13411
|
+
state.offset = offset2;
|
|
13136
13412
|
};
|
|
13413
|
+
onUnmounted(() => {
|
|
13414
|
+
parent["relation"](getCurrentInstance(), "unmount");
|
|
13415
|
+
});
|
|
13137
13416
|
useExpose({ setOffset });
|
|
13138
13417
|
return {
|
|
13139
13418
|
style,
|
|
@@ -13995,7 +14274,6 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13995
14274
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.machineNum, (val, index) => {
|
|
13996
14275
|
return openBlock(), createElementBlock("view", {
|
|
13997
14276
|
class: "run-number-machine-img-li",
|
|
13998
|
-
ref_for: true,
|
|
13999
14277
|
ref: "run-number-machine-img-li",
|
|
14000
14278
|
key: "mImg" + index,
|
|
14001
14279
|
style: normalizeStyle({
|
|
@@ -14050,7 +14328,6 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14050
14328
|
}, [
|
|
14051
14329
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val, index) => {
|
|
14052
14330
|
return openBlock(), createElementBlock("view", {
|
|
14053
|
-
ref_for: true,
|
|
14054
14331
|
ref: _ctx.setRef,
|
|
14055
14332
|
class: "numberItem",
|
|
14056
14333
|
key: val,
|
|
@@ -14250,7 +14527,7 @@ const _sfc_main$v = create$v({
|
|
|
14250
14527
|
}
|
|
14251
14528
|
return format;
|
|
14252
14529
|
};
|
|
14253
|
-
const
|
|
14530
|
+
const start2 = () => {
|
|
14254
14531
|
if (!state.counting && !props.autoStart) {
|
|
14255
14532
|
state.counting = true;
|
|
14256
14533
|
state.handleEndTime = Date.now() + Number(state.restTime);
|
|
@@ -14305,7 +14582,7 @@ const _sfc_main$v = create$v({
|
|
|
14305
14582
|
slots,
|
|
14306
14583
|
classes,
|
|
14307
14584
|
getTimeStamp,
|
|
14308
|
-
start,
|
|
14585
|
+
start: start2,
|
|
14309
14586
|
pause,
|
|
14310
14587
|
renderTime,
|
|
14311
14588
|
translate: translate$a,
|
|
@@ -14390,7 +14667,7 @@ const _sfc_main$u = create$u({
|
|
|
14390
14667
|
});
|
|
14391
14668
|
const _hoisted_1$r = { class: "nut-badge" };
|
|
14392
14669
|
const _hoisted_2$o = { class: "slot-icons" };
|
|
14393
|
-
const _hoisted_3$
|
|
14670
|
+
const _hoisted_3$l = ["textContent"];
|
|
14394
14671
|
function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14395
14672
|
return openBlock(), createElementBlock("view", _hoisted_1$r, [
|
|
14396
14673
|
createElementVNode("view", _hoisted_2$o, [
|
|
@@ -14401,7 +14678,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14401
14678
|
textContent: toDisplayString(_ctx.content),
|
|
14402
14679
|
class: normalizeClass(["nut-badge__content sup", { "is-dot": _ctx.dot }]),
|
|
14403
14680
|
style: normalizeStyle(_ctx.stl)
|
|
14404
|
-
}, null, 14, _hoisted_3$
|
|
14681
|
+
}, null, 14, _hoisted_3$l), [
|
|
14405
14682
|
[vShow, !_ctx.hidden && (_ctx.content || _ctx.dot)]
|
|
14406
14683
|
])
|
|
14407
14684
|
]);
|
|
@@ -14435,14 +14712,14 @@ const _sfc_main$t = create$t({
|
|
|
14435
14712
|
},
|
|
14436
14713
|
emits: ["close", "click"],
|
|
14437
14714
|
setup(props, { emit }) {
|
|
14438
|
-
const { type, color, plain, round, mark, textColor } = toRefs(props);
|
|
14715
|
+
const { type, color, plain, round: round2, mark, textColor } = toRefs(props);
|
|
14439
14716
|
const classes = computed(() => {
|
|
14440
14717
|
const prefixCls = componentName$q;
|
|
14441
14718
|
return {
|
|
14442
14719
|
[prefixCls]: true,
|
|
14443
14720
|
[`${prefixCls}--${type.value}`]: type.value,
|
|
14444
14721
|
[`${prefixCls}--plain`]: plain.value,
|
|
14445
|
-
[`${prefixCls}--round`]:
|
|
14722
|
+
[`${prefixCls}--round`]: round2.value,
|
|
14446
14723
|
[`${prefixCls}--mark`]: mark.value
|
|
14447
14724
|
};
|
|
14448
14725
|
});
|
|
@@ -14499,13 +14776,781 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14499
14776
|
], 6);
|
|
14500
14777
|
}
|
|
14501
14778
|
var Tag = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$t]]);
|
|
14502
|
-
|
|
14503
|
-
|
|
14504
|
-
|
|
14505
|
-
|
|
14506
|
-
|
|
14507
|
-
|
|
14508
|
-
|
|
14779
|
+
function getWindow(node) {
|
|
14780
|
+
if (node == null) {
|
|
14781
|
+
return window;
|
|
14782
|
+
}
|
|
14783
|
+
if (node.toString() !== "[object Window]") {
|
|
14784
|
+
var ownerDocument = node.ownerDocument;
|
|
14785
|
+
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
14786
|
+
}
|
|
14787
|
+
return node;
|
|
14788
|
+
}
|
|
14789
|
+
function isElement(node) {
|
|
14790
|
+
var OwnElement = getWindow(node).Element;
|
|
14791
|
+
return node instanceof OwnElement || node instanceof Element;
|
|
14792
|
+
}
|
|
14793
|
+
function isHTMLElement(node) {
|
|
14794
|
+
var OwnElement = getWindow(node).HTMLElement;
|
|
14795
|
+
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
14796
|
+
}
|
|
14797
|
+
function isShadowRoot(node) {
|
|
14798
|
+
if (typeof ShadowRoot === "undefined") {
|
|
14799
|
+
return false;
|
|
14800
|
+
}
|
|
14801
|
+
var OwnElement = getWindow(node).ShadowRoot;
|
|
14802
|
+
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
14803
|
+
}
|
|
14804
|
+
var round = Math.round;
|
|
14805
|
+
function getBoundingClientRect(element, includeScale) {
|
|
14806
|
+
if (includeScale === void 0) {
|
|
14807
|
+
includeScale = false;
|
|
14808
|
+
}
|
|
14809
|
+
var rect = element.getBoundingClientRect();
|
|
14810
|
+
var scaleX = 1;
|
|
14811
|
+
var scaleY = 1;
|
|
14812
|
+
if (isHTMLElement(element) && includeScale) {
|
|
14813
|
+
var offsetHeight = element.offsetHeight;
|
|
14814
|
+
var offsetWidth = element.offsetWidth;
|
|
14815
|
+
if (offsetWidth > 0) {
|
|
14816
|
+
scaleX = round(rect.width) / offsetWidth || 1;
|
|
14817
|
+
}
|
|
14818
|
+
if (offsetHeight > 0) {
|
|
14819
|
+
scaleY = round(rect.height) / offsetHeight || 1;
|
|
14820
|
+
}
|
|
14821
|
+
}
|
|
14822
|
+
return {
|
|
14823
|
+
width: rect.width / scaleX,
|
|
14824
|
+
height: rect.height / scaleY,
|
|
14825
|
+
top: rect.top / scaleY,
|
|
14826
|
+
right: rect.right / scaleX,
|
|
14827
|
+
bottom: rect.bottom / scaleY,
|
|
14828
|
+
left: rect.left / scaleX,
|
|
14829
|
+
x: rect.left / scaleX,
|
|
14830
|
+
y: rect.top / scaleY
|
|
14831
|
+
};
|
|
14832
|
+
}
|
|
14833
|
+
function getWindowScroll(node) {
|
|
14834
|
+
var win = getWindow(node);
|
|
14835
|
+
var scrollLeft = win.pageXOffset;
|
|
14836
|
+
var scrollTop = win.pageYOffset;
|
|
14837
|
+
return {
|
|
14838
|
+
scrollLeft,
|
|
14839
|
+
scrollTop
|
|
14840
|
+
};
|
|
14841
|
+
}
|
|
14842
|
+
function getHTMLElementScroll(element) {
|
|
14843
|
+
return {
|
|
14844
|
+
scrollLeft: element.scrollLeft,
|
|
14845
|
+
scrollTop: element.scrollTop
|
|
14846
|
+
};
|
|
14847
|
+
}
|
|
14848
|
+
function getNodeScroll(node) {
|
|
14849
|
+
if (node === getWindow(node) || !isHTMLElement(node)) {
|
|
14850
|
+
return getWindowScroll(node);
|
|
14851
|
+
} else {
|
|
14852
|
+
return getHTMLElementScroll(node);
|
|
14853
|
+
}
|
|
14854
|
+
}
|
|
14855
|
+
function getNodeName(element) {
|
|
14856
|
+
return element ? (element.nodeName || "").toLowerCase() : null;
|
|
14857
|
+
}
|
|
14858
|
+
function getDocumentElement(element) {
|
|
14859
|
+
return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
|
|
14860
|
+
}
|
|
14861
|
+
function getWindowScrollBarX(element) {
|
|
14862
|
+
return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
|
|
14863
|
+
}
|
|
14864
|
+
function getComputedStyle(element) {
|
|
14865
|
+
return getWindow(element).getComputedStyle(element);
|
|
14866
|
+
}
|
|
14867
|
+
function isScrollParent(element) {
|
|
14868
|
+
var _getComputedStyle = getComputedStyle(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;
|
|
14869
|
+
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
14870
|
+
}
|
|
14871
|
+
function isElementScaled(element) {
|
|
14872
|
+
var rect = element.getBoundingClientRect();
|
|
14873
|
+
var scaleX = round(rect.width) / element.offsetWidth || 1;
|
|
14874
|
+
var scaleY = round(rect.height) / element.offsetHeight || 1;
|
|
14875
|
+
return scaleX !== 1 || scaleY !== 1;
|
|
14876
|
+
}
|
|
14877
|
+
function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
14878
|
+
if (isFixed === void 0) {
|
|
14879
|
+
isFixed = false;
|
|
14880
|
+
}
|
|
14881
|
+
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
14882
|
+
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
14883
|
+
var documentElement = getDocumentElement(offsetParent);
|
|
14884
|
+
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
|
|
14885
|
+
var scroll = {
|
|
14886
|
+
scrollLeft: 0,
|
|
14887
|
+
scrollTop: 0
|
|
14888
|
+
};
|
|
14889
|
+
var offsets = {
|
|
14890
|
+
x: 0,
|
|
14891
|
+
y: 0
|
|
14892
|
+
};
|
|
14893
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
14894
|
+
if (getNodeName(offsetParent) !== "body" || isScrollParent(documentElement)) {
|
|
14895
|
+
scroll = getNodeScroll(offsetParent);
|
|
14896
|
+
}
|
|
14897
|
+
if (isHTMLElement(offsetParent)) {
|
|
14898
|
+
offsets = getBoundingClientRect(offsetParent, true);
|
|
14899
|
+
offsets.x += offsetParent.clientLeft;
|
|
14900
|
+
offsets.y += offsetParent.clientTop;
|
|
14901
|
+
} else if (documentElement) {
|
|
14902
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
14903
|
+
}
|
|
14904
|
+
}
|
|
14905
|
+
return {
|
|
14906
|
+
x: rect.left + scroll.scrollLeft - offsets.x,
|
|
14907
|
+
y: rect.top + scroll.scrollTop - offsets.y,
|
|
14908
|
+
width: rect.width,
|
|
14909
|
+
height: rect.height
|
|
14910
|
+
};
|
|
14911
|
+
}
|
|
14912
|
+
function getLayoutRect(element) {
|
|
14913
|
+
var clientRect = getBoundingClientRect(element);
|
|
14914
|
+
var width = element.offsetWidth;
|
|
14915
|
+
var height = element.offsetHeight;
|
|
14916
|
+
if (Math.abs(clientRect.width - width) <= 1) {
|
|
14917
|
+
width = clientRect.width;
|
|
14918
|
+
}
|
|
14919
|
+
if (Math.abs(clientRect.height - height) <= 1) {
|
|
14920
|
+
height = clientRect.height;
|
|
14921
|
+
}
|
|
14922
|
+
return {
|
|
14923
|
+
x: element.offsetLeft,
|
|
14924
|
+
y: element.offsetTop,
|
|
14925
|
+
width,
|
|
14926
|
+
height
|
|
14927
|
+
};
|
|
14928
|
+
}
|
|
14929
|
+
function getParentNode(element) {
|
|
14930
|
+
if (getNodeName(element) === "html") {
|
|
14931
|
+
return element;
|
|
14932
|
+
}
|
|
14933
|
+
return element.assignedSlot || element.parentNode || (isShadowRoot(element) ? element.host : null) || getDocumentElement(element);
|
|
14934
|
+
}
|
|
14935
|
+
function getScrollParent(node) {
|
|
14936
|
+
if (["html", "body", "#document"].indexOf(getNodeName(node)) >= 0) {
|
|
14937
|
+
return node.ownerDocument.body;
|
|
14938
|
+
}
|
|
14939
|
+
if (isHTMLElement(node) && isScrollParent(node)) {
|
|
14940
|
+
return node;
|
|
14941
|
+
}
|
|
14942
|
+
return getScrollParent(getParentNode(node));
|
|
14943
|
+
}
|
|
14944
|
+
function listScrollParents(element, list) {
|
|
14945
|
+
var _element$ownerDocumen;
|
|
14946
|
+
if (list === void 0) {
|
|
14947
|
+
list = [];
|
|
14948
|
+
}
|
|
14949
|
+
var scrollParent = getScrollParent(element);
|
|
14950
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
|
|
14951
|
+
var win = getWindow(scrollParent);
|
|
14952
|
+
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
14953
|
+
var updatedList = list.concat(target);
|
|
14954
|
+
return isBody ? updatedList : updatedList.concat(listScrollParents(getParentNode(target)));
|
|
14955
|
+
}
|
|
14956
|
+
function isTableElement(element) {
|
|
14957
|
+
return ["table", "td", "th"].indexOf(getNodeName(element)) >= 0;
|
|
14958
|
+
}
|
|
14959
|
+
function getTrueOffsetParent(element) {
|
|
14960
|
+
if (!isHTMLElement(element) || getComputedStyle(element).position === "fixed") {
|
|
14961
|
+
return null;
|
|
14962
|
+
}
|
|
14963
|
+
return element.offsetParent;
|
|
14964
|
+
}
|
|
14965
|
+
function getContainingBlock(element) {
|
|
14966
|
+
var isFirefox = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1;
|
|
14967
|
+
var isIE = navigator.userAgent.indexOf("Trident") !== -1;
|
|
14968
|
+
if (isIE && isHTMLElement(element)) {
|
|
14969
|
+
var elementCss = getComputedStyle(element);
|
|
14970
|
+
if (elementCss.position === "fixed") {
|
|
14971
|
+
return null;
|
|
14972
|
+
}
|
|
14973
|
+
}
|
|
14974
|
+
var currentNode = getParentNode(element);
|
|
14975
|
+
if (isShadowRoot(currentNode)) {
|
|
14976
|
+
currentNode = currentNode.host;
|
|
14977
|
+
}
|
|
14978
|
+
while (isHTMLElement(currentNode) && ["html", "body"].indexOf(getNodeName(currentNode)) < 0) {
|
|
14979
|
+
var css = getComputedStyle(currentNode);
|
|
14980
|
+
if (css.transform !== "none" || css.perspective !== "none" || css.contain === "paint" || ["transform", "perspective"].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === "filter" || isFirefox && css.filter && css.filter !== "none") {
|
|
14981
|
+
return currentNode;
|
|
14982
|
+
} else {
|
|
14983
|
+
currentNode = currentNode.parentNode;
|
|
14984
|
+
}
|
|
14985
|
+
}
|
|
14986
|
+
return null;
|
|
14987
|
+
}
|
|
14988
|
+
function getOffsetParent(element) {
|
|
14989
|
+
var window2 = getWindow(element);
|
|
14990
|
+
var offsetParent = getTrueOffsetParent(element);
|
|
14991
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === "static") {
|
|
14992
|
+
offsetParent = getTrueOffsetParent(offsetParent);
|
|
14993
|
+
}
|
|
14994
|
+
if (offsetParent && (getNodeName(offsetParent) === "html" || getNodeName(offsetParent) === "body" && getComputedStyle(offsetParent).position === "static")) {
|
|
14995
|
+
return window2;
|
|
14996
|
+
}
|
|
14997
|
+
return offsetParent || getContainingBlock(element) || window2;
|
|
14998
|
+
}
|
|
14999
|
+
var top = "top";
|
|
15000
|
+
var bottom = "bottom";
|
|
15001
|
+
var right = "right";
|
|
15002
|
+
var left = "left";
|
|
15003
|
+
var auto = "auto";
|
|
15004
|
+
var basePlacements = [top, bottom, right, left];
|
|
15005
|
+
var start = "start";
|
|
15006
|
+
var end = "end";
|
|
15007
|
+
var placements = /* @__PURE__ */ [].concat(basePlacements, [auto]).reduce(function(acc, placement) {
|
|
15008
|
+
return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
|
|
15009
|
+
}, []);
|
|
15010
|
+
var beforeRead = "beforeRead";
|
|
15011
|
+
var read = "read";
|
|
15012
|
+
var afterRead = "afterRead";
|
|
15013
|
+
var beforeMain = "beforeMain";
|
|
15014
|
+
var main = "main";
|
|
15015
|
+
var afterMain = "afterMain";
|
|
15016
|
+
var beforeWrite = "beforeWrite";
|
|
15017
|
+
var write = "write";
|
|
15018
|
+
var afterWrite = "afterWrite";
|
|
15019
|
+
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
|
|
15020
|
+
function order(modifiers) {
|
|
15021
|
+
var map = /* @__PURE__ */ new Map();
|
|
15022
|
+
var visited = /* @__PURE__ */ new Set();
|
|
15023
|
+
var result = [];
|
|
15024
|
+
modifiers.forEach(function(modifier) {
|
|
15025
|
+
map.set(modifier.name, modifier);
|
|
15026
|
+
});
|
|
15027
|
+
function sort(modifier) {
|
|
15028
|
+
visited.add(modifier.name);
|
|
15029
|
+
var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
|
|
15030
|
+
requires.forEach(function(dep) {
|
|
15031
|
+
if (!visited.has(dep)) {
|
|
15032
|
+
var depModifier = map.get(dep);
|
|
15033
|
+
if (depModifier) {
|
|
15034
|
+
sort(depModifier);
|
|
15035
|
+
}
|
|
15036
|
+
}
|
|
15037
|
+
});
|
|
15038
|
+
result.push(modifier);
|
|
15039
|
+
}
|
|
15040
|
+
modifiers.forEach(function(modifier) {
|
|
15041
|
+
if (!visited.has(modifier.name)) {
|
|
15042
|
+
sort(modifier);
|
|
15043
|
+
}
|
|
15044
|
+
});
|
|
15045
|
+
return result;
|
|
15046
|
+
}
|
|
15047
|
+
function orderModifiers(modifiers) {
|
|
15048
|
+
var orderedModifiers = order(modifiers);
|
|
15049
|
+
return modifierPhases.reduce(function(acc, phase) {
|
|
15050
|
+
return acc.concat(orderedModifiers.filter(function(modifier) {
|
|
15051
|
+
return modifier.phase === phase;
|
|
15052
|
+
}));
|
|
15053
|
+
}, []);
|
|
15054
|
+
}
|
|
15055
|
+
function debounce(fn2) {
|
|
15056
|
+
var pending;
|
|
15057
|
+
return function() {
|
|
15058
|
+
if (!pending) {
|
|
15059
|
+
pending = new Promise(function(resolve) {
|
|
15060
|
+
Promise.resolve().then(function() {
|
|
15061
|
+
pending = void 0;
|
|
15062
|
+
resolve(fn2());
|
|
15063
|
+
});
|
|
15064
|
+
});
|
|
15065
|
+
}
|
|
15066
|
+
return pending;
|
|
15067
|
+
};
|
|
15068
|
+
}
|
|
15069
|
+
function getBasePlacement(placement) {
|
|
15070
|
+
return placement.split("-")[0];
|
|
15071
|
+
}
|
|
15072
|
+
function mergeByName(modifiers) {
|
|
15073
|
+
var merged = modifiers.reduce(function(merged2, current) {
|
|
15074
|
+
var existing = merged2[current.name];
|
|
15075
|
+
merged2[current.name] = existing ? Object.assign({}, existing, current, {
|
|
15076
|
+
options: Object.assign({}, existing.options, current.options),
|
|
15077
|
+
data: Object.assign({}, existing.data, current.data)
|
|
15078
|
+
}) : current;
|
|
15079
|
+
return merged2;
|
|
15080
|
+
}, {});
|
|
15081
|
+
return Object.keys(merged).map(function(key) {
|
|
15082
|
+
return merged[key];
|
|
15083
|
+
});
|
|
15084
|
+
}
|
|
15085
|
+
function getVariation(placement) {
|
|
15086
|
+
return placement.split("-")[1];
|
|
15087
|
+
}
|
|
15088
|
+
function getMainAxisFromPlacement(placement) {
|
|
15089
|
+
return ["top", "bottom"].indexOf(placement) >= 0 ? "x" : "y";
|
|
15090
|
+
}
|
|
15091
|
+
function computeOffsets(_ref) {
|
|
15092
|
+
var reference = _ref.reference, element = _ref.element, placement = _ref.placement;
|
|
15093
|
+
var basePlacement = placement ? getBasePlacement(placement) : null;
|
|
15094
|
+
var variation = placement ? getVariation(placement) : null;
|
|
15095
|
+
var commonX = reference.x + reference.width / 2 - element.width / 2;
|
|
15096
|
+
var commonY = reference.y + reference.height / 2 - element.height / 2;
|
|
15097
|
+
var offsets;
|
|
15098
|
+
switch (basePlacement) {
|
|
15099
|
+
case top:
|
|
15100
|
+
offsets = {
|
|
15101
|
+
x: commonX,
|
|
15102
|
+
y: reference.y - element.height
|
|
15103
|
+
};
|
|
15104
|
+
break;
|
|
15105
|
+
case bottom:
|
|
15106
|
+
offsets = {
|
|
15107
|
+
x: commonX,
|
|
15108
|
+
y: reference.y + reference.height
|
|
15109
|
+
};
|
|
15110
|
+
break;
|
|
15111
|
+
case right:
|
|
15112
|
+
offsets = {
|
|
15113
|
+
x: reference.x + reference.width,
|
|
15114
|
+
y: commonY
|
|
15115
|
+
};
|
|
15116
|
+
break;
|
|
15117
|
+
case left:
|
|
15118
|
+
offsets = {
|
|
15119
|
+
x: reference.x - element.width,
|
|
15120
|
+
y: commonY
|
|
15121
|
+
};
|
|
15122
|
+
break;
|
|
15123
|
+
default:
|
|
15124
|
+
offsets = {
|
|
15125
|
+
x: reference.x,
|
|
15126
|
+
y: reference.y
|
|
15127
|
+
};
|
|
15128
|
+
}
|
|
15129
|
+
var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
|
|
15130
|
+
if (mainAxis != null) {
|
|
15131
|
+
var len = mainAxis === "y" ? "height" : "width";
|
|
15132
|
+
switch (variation) {
|
|
15133
|
+
case start:
|
|
15134
|
+
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
15135
|
+
break;
|
|
15136
|
+
case end:
|
|
15137
|
+
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
15138
|
+
break;
|
|
15139
|
+
}
|
|
15140
|
+
}
|
|
15141
|
+
return offsets;
|
|
15142
|
+
}
|
|
15143
|
+
var DEFAULT_OPTIONS = {
|
|
15144
|
+
placement: "bottom",
|
|
15145
|
+
modifiers: [],
|
|
15146
|
+
strategy: "absolute"
|
|
15147
|
+
};
|
|
15148
|
+
function areValidElements() {
|
|
15149
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
15150
|
+
args[_key] = arguments[_key];
|
|
15151
|
+
}
|
|
15152
|
+
return !args.some(function(element) {
|
|
15153
|
+
return !(element && typeof element.getBoundingClientRect === "function");
|
|
15154
|
+
});
|
|
15155
|
+
}
|
|
15156
|
+
function popperGenerator(generatorOptions) {
|
|
15157
|
+
if (generatorOptions === void 0) {
|
|
15158
|
+
generatorOptions = {};
|
|
15159
|
+
}
|
|
15160
|
+
var _generatorOptions = generatorOptions, _generatorOptions$def = _generatorOptions.defaultModifiers, defaultModifiers2 = _generatorOptions$def === void 0 ? [] : _generatorOptions$def, _generatorOptions$def2 = _generatorOptions.defaultOptions, defaultOptions2 = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
|
|
15161
|
+
return function createPopper2(reference, popper, options) {
|
|
15162
|
+
if (options === void 0) {
|
|
15163
|
+
options = defaultOptions2;
|
|
15164
|
+
}
|
|
15165
|
+
var state = {
|
|
15166
|
+
placement: "bottom",
|
|
15167
|
+
orderedModifiers: [],
|
|
15168
|
+
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions2),
|
|
15169
|
+
modifiersData: {},
|
|
15170
|
+
elements: {
|
|
15171
|
+
reference,
|
|
15172
|
+
popper
|
|
15173
|
+
},
|
|
15174
|
+
attributes: {},
|
|
15175
|
+
styles: {}
|
|
15176
|
+
};
|
|
15177
|
+
var effectCleanupFns = [];
|
|
15178
|
+
var isDestroyed = false;
|
|
15179
|
+
var instance = {
|
|
15180
|
+
state,
|
|
15181
|
+
setOptions: function setOptions(setOptionsAction) {
|
|
15182
|
+
var options2 = typeof setOptionsAction === "function" ? setOptionsAction(state.options) : setOptionsAction;
|
|
15183
|
+
cleanupModifierEffects();
|
|
15184
|
+
state.options = Object.assign({}, defaultOptions2, state.options, options2);
|
|
15185
|
+
state.scrollParents = {
|
|
15186
|
+
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
15187
|
+
popper: listScrollParents(popper)
|
|
15188
|
+
};
|
|
15189
|
+
var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers2, state.options.modifiers)));
|
|
15190
|
+
state.orderedModifiers = orderedModifiers.filter(function(m) {
|
|
15191
|
+
return m.enabled;
|
|
15192
|
+
});
|
|
15193
|
+
runModifierEffects();
|
|
15194
|
+
return instance.update();
|
|
15195
|
+
},
|
|
15196
|
+
forceUpdate: function forceUpdate() {
|
|
15197
|
+
if (isDestroyed) {
|
|
15198
|
+
return;
|
|
15199
|
+
}
|
|
15200
|
+
var _state$elements = state.elements, reference2 = _state$elements.reference, popper2 = _state$elements.popper;
|
|
15201
|
+
if (!areValidElements(reference2, popper2)) {
|
|
15202
|
+
return;
|
|
15203
|
+
}
|
|
15204
|
+
state.rects = {
|
|
15205
|
+
reference: getCompositeRect(reference2, getOffsetParent(popper2), state.options.strategy === "fixed"),
|
|
15206
|
+
popper: getLayoutRect(popper2)
|
|
15207
|
+
};
|
|
15208
|
+
state.reset = false;
|
|
15209
|
+
state.placement = state.options.placement;
|
|
15210
|
+
state.orderedModifiers.forEach(function(modifier) {
|
|
15211
|
+
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
|
15212
|
+
});
|
|
15213
|
+
for (var index = 0; index < state.orderedModifiers.length; index++) {
|
|
15214
|
+
if (state.reset === true) {
|
|
15215
|
+
state.reset = false;
|
|
15216
|
+
index = -1;
|
|
15217
|
+
continue;
|
|
15218
|
+
}
|
|
15219
|
+
var _state$orderedModifie = state.orderedModifiers[index], fn2 = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name = _state$orderedModifie.name;
|
|
15220
|
+
if (typeof fn2 === "function") {
|
|
15221
|
+
state = fn2({
|
|
15222
|
+
state,
|
|
15223
|
+
options: _options,
|
|
15224
|
+
name,
|
|
15225
|
+
instance
|
|
15226
|
+
}) || state;
|
|
15227
|
+
}
|
|
15228
|
+
}
|
|
15229
|
+
},
|
|
15230
|
+
update: debounce(function() {
|
|
15231
|
+
return new Promise(function(resolve) {
|
|
15232
|
+
instance.forceUpdate();
|
|
15233
|
+
resolve(state);
|
|
15234
|
+
});
|
|
15235
|
+
}),
|
|
15236
|
+
destroy: function destroy() {
|
|
15237
|
+
cleanupModifierEffects();
|
|
15238
|
+
isDestroyed = true;
|
|
15239
|
+
}
|
|
15240
|
+
};
|
|
15241
|
+
if (!areValidElements(reference, popper)) {
|
|
15242
|
+
return instance;
|
|
15243
|
+
}
|
|
15244
|
+
instance.setOptions(options).then(function(state2) {
|
|
15245
|
+
if (!isDestroyed && options.onFirstUpdate) {
|
|
15246
|
+
options.onFirstUpdate(state2);
|
|
15247
|
+
}
|
|
15248
|
+
});
|
|
15249
|
+
function runModifierEffects() {
|
|
15250
|
+
state.orderedModifiers.forEach(function(_ref3) {
|
|
15251
|
+
var name = _ref3.name, _ref3$options = _ref3.options, options2 = _ref3$options === void 0 ? {} : _ref3$options, effect2 = _ref3.effect;
|
|
15252
|
+
if (typeof effect2 === "function") {
|
|
15253
|
+
var cleanupFn = effect2({
|
|
15254
|
+
state,
|
|
15255
|
+
name,
|
|
15256
|
+
instance,
|
|
15257
|
+
options: options2
|
|
15258
|
+
});
|
|
15259
|
+
var noopFn = function noopFn2() {
|
|
15260
|
+
};
|
|
15261
|
+
effectCleanupFns.push(cleanupFn || noopFn);
|
|
15262
|
+
}
|
|
15263
|
+
});
|
|
15264
|
+
}
|
|
15265
|
+
function cleanupModifierEffects() {
|
|
15266
|
+
effectCleanupFns.forEach(function(fn2) {
|
|
15267
|
+
return fn2();
|
|
15268
|
+
});
|
|
15269
|
+
effectCleanupFns = [];
|
|
15270
|
+
}
|
|
15271
|
+
return instance;
|
|
15272
|
+
};
|
|
15273
|
+
}
|
|
15274
|
+
var passive = {
|
|
15275
|
+
passive: true
|
|
15276
|
+
};
|
|
15277
|
+
function effect$1(_ref) {
|
|
15278
|
+
var state = _ref.state, instance = _ref.instance, options = _ref.options;
|
|
15279
|
+
var _options$scroll = options.scroll, scroll = _options$scroll === void 0 ? true : _options$scroll, _options$resize = options.resize, resize = _options$resize === void 0 ? true : _options$resize;
|
|
15280
|
+
var window2 = getWindow(state.elements.popper);
|
|
15281
|
+
var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
|
|
15282
|
+
if (scroll) {
|
|
15283
|
+
scrollParents.forEach(function(scrollParent) {
|
|
15284
|
+
scrollParent.addEventListener("scroll", instance.update, passive);
|
|
15285
|
+
});
|
|
15286
|
+
}
|
|
15287
|
+
if (resize) {
|
|
15288
|
+
window2.addEventListener("resize", instance.update, passive);
|
|
15289
|
+
}
|
|
15290
|
+
return function() {
|
|
15291
|
+
if (scroll) {
|
|
15292
|
+
scrollParents.forEach(function(scrollParent) {
|
|
15293
|
+
scrollParent.removeEventListener("scroll", instance.update, passive);
|
|
15294
|
+
});
|
|
15295
|
+
}
|
|
15296
|
+
if (resize) {
|
|
15297
|
+
window2.removeEventListener("resize", instance.update, passive);
|
|
15298
|
+
}
|
|
15299
|
+
};
|
|
15300
|
+
}
|
|
15301
|
+
var eventListeners = {
|
|
15302
|
+
name: "eventListeners",
|
|
15303
|
+
enabled: true,
|
|
15304
|
+
phase: "write",
|
|
15305
|
+
fn: function fn() {
|
|
15306
|
+
},
|
|
15307
|
+
effect: effect$1,
|
|
15308
|
+
data: {}
|
|
15309
|
+
};
|
|
15310
|
+
function popperOffsets(_ref) {
|
|
15311
|
+
var state = _ref.state, name = _ref.name;
|
|
15312
|
+
state.modifiersData[name] = computeOffsets({
|
|
15313
|
+
reference: state.rects.reference,
|
|
15314
|
+
element: state.rects.popper,
|
|
15315
|
+
strategy: "absolute",
|
|
15316
|
+
placement: state.placement
|
|
15317
|
+
});
|
|
15318
|
+
}
|
|
15319
|
+
var popperOffsets$1 = {
|
|
15320
|
+
name: "popperOffsets",
|
|
15321
|
+
enabled: true,
|
|
15322
|
+
phase: "read",
|
|
15323
|
+
fn: popperOffsets,
|
|
15324
|
+
data: {}
|
|
15325
|
+
};
|
|
15326
|
+
var unsetSides = {
|
|
15327
|
+
top: "auto",
|
|
15328
|
+
right: "auto",
|
|
15329
|
+
bottom: "auto",
|
|
15330
|
+
left: "auto"
|
|
15331
|
+
};
|
|
15332
|
+
function roundOffsetsByDPR(_ref) {
|
|
15333
|
+
var x = _ref.x, y = _ref.y;
|
|
15334
|
+
var win = window;
|
|
15335
|
+
var dpr = win.devicePixelRatio || 1;
|
|
15336
|
+
return {
|
|
15337
|
+
x: round(x * dpr) / dpr || 0,
|
|
15338
|
+
y: round(y * dpr) / dpr || 0
|
|
15339
|
+
};
|
|
15340
|
+
}
|
|
15341
|
+
function mapToStyles(_ref2) {
|
|
15342
|
+
var _Object$assign2;
|
|
15343
|
+
var popper = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed;
|
|
15344
|
+
var _offsets$x = offsets.x, x = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y = _offsets$y === void 0 ? 0 : _offsets$y;
|
|
15345
|
+
var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
|
|
15346
|
+
x,
|
|
15347
|
+
y
|
|
15348
|
+
}) : {
|
|
15349
|
+
x,
|
|
15350
|
+
y
|
|
15351
|
+
};
|
|
15352
|
+
x = _ref3.x;
|
|
15353
|
+
y = _ref3.y;
|
|
15354
|
+
var hasX = offsets.hasOwnProperty("x");
|
|
15355
|
+
var hasY = offsets.hasOwnProperty("y");
|
|
15356
|
+
var sideX = left;
|
|
15357
|
+
var sideY = top;
|
|
15358
|
+
var win = window;
|
|
15359
|
+
if (adaptive) {
|
|
15360
|
+
var offsetParent = getOffsetParent(popper);
|
|
15361
|
+
var heightProp = "clientHeight";
|
|
15362
|
+
var widthProp = "clientWidth";
|
|
15363
|
+
if (offsetParent === getWindow(popper)) {
|
|
15364
|
+
offsetParent = getDocumentElement(popper);
|
|
15365
|
+
if (getComputedStyle(offsetParent).position !== "static" && position === "absolute") {
|
|
15366
|
+
heightProp = "scrollHeight";
|
|
15367
|
+
widthProp = "scrollWidth";
|
|
15368
|
+
}
|
|
15369
|
+
}
|
|
15370
|
+
offsetParent = offsetParent;
|
|
15371
|
+
if (placement === top || (placement === left || placement === right) && variation === end) {
|
|
15372
|
+
sideY = bottom;
|
|
15373
|
+
var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : offsetParent[heightProp];
|
|
15374
|
+
y -= offsetY - popperRect.height;
|
|
15375
|
+
y *= gpuAcceleration ? 1 : -1;
|
|
15376
|
+
}
|
|
15377
|
+
if (placement === left || (placement === top || placement === bottom) && variation === end) {
|
|
15378
|
+
sideX = right;
|
|
15379
|
+
var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : offsetParent[widthProp];
|
|
15380
|
+
x -= offsetX - popperRect.width;
|
|
15381
|
+
x *= gpuAcceleration ? 1 : -1;
|
|
15382
|
+
}
|
|
15383
|
+
}
|
|
15384
|
+
var commonStyles = Object.assign({
|
|
15385
|
+
position
|
|
15386
|
+
}, adaptive && unsetSides);
|
|
15387
|
+
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
15388
|
+
x,
|
|
15389
|
+
y
|
|
15390
|
+
}) : {
|
|
15391
|
+
x,
|
|
15392
|
+
y
|
|
15393
|
+
};
|
|
15394
|
+
x = _ref4.x;
|
|
15395
|
+
y = _ref4.y;
|
|
15396
|
+
if (gpuAcceleration) {
|
|
15397
|
+
var _Object$assign;
|
|
15398
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
15399
|
+
}
|
|
15400
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2));
|
|
15401
|
+
}
|
|
15402
|
+
function computeStyles(_ref5) {
|
|
15403
|
+
var state = _ref5.state, options = _ref5.options;
|
|
15404
|
+
var _options$gpuAccelerat = options.gpuAcceleration, gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat, _options$adaptive = options.adaptive, adaptive = _options$adaptive === void 0 ? true : _options$adaptive, _options$roundOffsets = options.roundOffsets, roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
15405
|
+
var commonStyles = {
|
|
15406
|
+
placement: getBasePlacement(state.placement),
|
|
15407
|
+
variation: getVariation(state.placement),
|
|
15408
|
+
popper: state.elements.popper,
|
|
15409
|
+
popperRect: state.rects.popper,
|
|
15410
|
+
gpuAcceleration,
|
|
15411
|
+
isFixed: state.options.strategy === "fixed"
|
|
15412
|
+
};
|
|
15413
|
+
if (state.modifiersData.popperOffsets != null) {
|
|
15414
|
+
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
15415
|
+
offsets: state.modifiersData.popperOffsets,
|
|
15416
|
+
position: state.options.strategy,
|
|
15417
|
+
adaptive,
|
|
15418
|
+
roundOffsets
|
|
15419
|
+
})));
|
|
15420
|
+
}
|
|
15421
|
+
if (state.modifiersData.arrow != null) {
|
|
15422
|
+
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
15423
|
+
offsets: state.modifiersData.arrow,
|
|
15424
|
+
position: "absolute",
|
|
15425
|
+
adaptive: false,
|
|
15426
|
+
roundOffsets
|
|
15427
|
+
})));
|
|
15428
|
+
}
|
|
15429
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
15430
|
+
"data-popper-placement": state.placement
|
|
15431
|
+
});
|
|
15432
|
+
}
|
|
15433
|
+
var computeStyles$1 = {
|
|
15434
|
+
name: "computeStyles",
|
|
15435
|
+
enabled: true,
|
|
15436
|
+
phase: "beforeWrite",
|
|
15437
|
+
fn: computeStyles,
|
|
15438
|
+
data: {}
|
|
15439
|
+
};
|
|
15440
|
+
function applyStyles(_ref) {
|
|
15441
|
+
var state = _ref.state;
|
|
15442
|
+
Object.keys(state.elements).forEach(function(name) {
|
|
15443
|
+
var style = state.styles[name] || {};
|
|
15444
|
+
var attributes = state.attributes[name] || {};
|
|
15445
|
+
var element = state.elements[name];
|
|
15446
|
+
if (!isHTMLElement(element) || !getNodeName(element)) {
|
|
15447
|
+
return;
|
|
15448
|
+
}
|
|
15449
|
+
Object.assign(element.style, style);
|
|
15450
|
+
Object.keys(attributes).forEach(function(name2) {
|
|
15451
|
+
var value = attributes[name2];
|
|
15452
|
+
if (value === false) {
|
|
15453
|
+
element.removeAttribute(name2);
|
|
15454
|
+
} else {
|
|
15455
|
+
element.setAttribute(name2, value === true ? "" : value);
|
|
15456
|
+
}
|
|
15457
|
+
});
|
|
15458
|
+
});
|
|
15459
|
+
}
|
|
15460
|
+
function effect(_ref2) {
|
|
15461
|
+
var state = _ref2.state;
|
|
15462
|
+
var initialStyles = {
|
|
15463
|
+
popper: {
|
|
15464
|
+
position: state.options.strategy,
|
|
15465
|
+
left: "0",
|
|
15466
|
+
top: "0",
|
|
15467
|
+
margin: "0"
|
|
15468
|
+
},
|
|
15469
|
+
arrow: {
|
|
15470
|
+
position: "absolute"
|
|
15471
|
+
},
|
|
15472
|
+
reference: {}
|
|
15473
|
+
};
|
|
15474
|
+
Object.assign(state.elements.popper.style, initialStyles.popper);
|
|
15475
|
+
state.styles = initialStyles;
|
|
15476
|
+
if (state.elements.arrow) {
|
|
15477
|
+
Object.assign(state.elements.arrow.style, initialStyles.arrow);
|
|
15478
|
+
}
|
|
15479
|
+
return function() {
|
|
15480
|
+
Object.keys(state.elements).forEach(function(name) {
|
|
15481
|
+
var element = state.elements[name];
|
|
15482
|
+
var attributes = state.attributes[name] || {};
|
|
15483
|
+
var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]);
|
|
15484
|
+
var style = styleProperties.reduce(function(style2, property) {
|
|
15485
|
+
style2[property] = "";
|
|
15486
|
+
return style2;
|
|
15487
|
+
}, {});
|
|
15488
|
+
if (!isHTMLElement(element) || !getNodeName(element)) {
|
|
15489
|
+
return;
|
|
15490
|
+
}
|
|
15491
|
+
Object.assign(element.style, style);
|
|
15492
|
+
Object.keys(attributes).forEach(function(attribute) {
|
|
15493
|
+
element.removeAttribute(attribute);
|
|
15494
|
+
});
|
|
15495
|
+
});
|
|
15496
|
+
};
|
|
15497
|
+
}
|
|
15498
|
+
var applyStyles$1 = {
|
|
15499
|
+
name: "applyStyles",
|
|
15500
|
+
enabled: true,
|
|
15501
|
+
phase: "write",
|
|
15502
|
+
fn: applyStyles,
|
|
15503
|
+
effect,
|
|
15504
|
+
requires: ["computeStyles"]
|
|
15505
|
+
};
|
|
15506
|
+
var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1];
|
|
15507
|
+
var createPopper = /* @__PURE__ */ popperGenerator({
|
|
15508
|
+
defaultModifiers
|
|
15509
|
+
});
|
|
15510
|
+
function distanceAndSkiddingToXY(placement, rects, offset2) {
|
|
15511
|
+
var basePlacement = getBasePlacement(placement);
|
|
15512
|
+
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
15513
|
+
var _ref = typeof offset2 === "function" ? offset2(Object.assign({}, rects, {
|
|
15514
|
+
placement
|
|
15515
|
+
})) : offset2, skidding = _ref[0], distance = _ref[1];
|
|
15516
|
+
skidding = skidding || 0;
|
|
15517
|
+
distance = (distance || 0) * invertDistance;
|
|
15518
|
+
return [left, right].indexOf(basePlacement) >= 0 ? {
|
|
15519
|
+
x: distance,
|
|
15520
|
+
y: skidding
|
|
15521
|
+
} : {
|
|
15522
|
+
x: skidding,
|
|
15523
|
+
y: distance
|
|
15524
|
+
};
|
|
15525
|
+
}
|
|
15526
|
+
function offset(_ref2) {
|
|
15527
|
+
var state = _ref2.state, options = _ref2.options, name = _ref2.name;
|
|
15528
|
+
var _options$offset = options.offset, offset2 = _options$offset === void 0 ? [0, 0] : _options$offset;
|
|
15529
|
+
var data = placements.reduce(function(acc, placement) {
|
|
15530
|
+
acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset2);
|
|
15531
|
+
return acc;
|
|
15532
|
+
}, {});
|
|
15533
|
+
var _data$state$placement = data[state.placement], x = _data$state$placement.x, y = _data$state$placement.y;
|
|
15534
|
+
if (state.modifiersData.popperOffsets != null) {
|
|
15535
|
+
state.modifiersData.popperOffsets.x += x;
|
|
15536
|
+
state.modifiersData.popperOffsets.y += y;
|
|
15537
|
+
}
|
|
15538
|
+
state.modifiersData[name] = data;
|
|
15539
|
+
}
|
|
15540
|
+
var offsetModifier = {
|
|
15541
|
+
name: "offset",
|
|
15542
|
+
enabled: true,
|
|
15543
|
+
phase: "main",
|
|
15544
|
+
requires: ["popperOffsets"],
|
|
15545
|
+
fn: offset
|
|
15546
|
+
};
|
|
15547
|
+
const { componentName: componentName$p, create: create$s } = createComponent("popover");
|
|
15548
|
+
const _sfc_main$s = create$s({
|
|
15549
|
+
inheritAttrs: false,
|
|
15550
|
+
components: {
|
|
15551
|
+
[Popup.name]: Popup,
|
|
15552
|
+
[Button.name]: Button
|
|
15553
|
+
},
|
|
14509
15554
|
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
14510
15555
|
list: {
|
|
14511
15556
|
type: Array,
|
|
@@ -14518,81 +15563,103 @@ const _sfc_main$s = create$s({
|
|
|
14518
15563
|
location: {
|
|
14519
15564
|
type: String,
|
|
14520
15565
|
default: "bottom"
|
|
15566
|
+
},
|
|
15567
|
+
offset: {
|
|
15568
|
+
type: Array,
|
|
15569
|
+
default: [0, 12]
|
|
15570
|
+
},
|
|
15571
|
+
customClass: {
|
|
15572
|
+
type: String,
|
|
15573
|
+
default: ""
|
|
15574
|
+
},
|
|
15575
|
+
showArrow: {
|
|
15576
|
+
type: Boolean,
|
|
15577
|
+
default: true
|
|
14521
15578
|
}
|
|
14522
15579
|
}),
|
|
14523
|
-
emits: ["update", "update:visible", "close", "choose", "
|
|
15580
|
+
emits: ["update", "update:visible", "close", "choose", "open"],
|
|
14524
15581
|
setup(props, { emit }) {
|
|
15582
|
+
let popper;
|
|
14525
15583
|
const reference = ref();
|
|
14526
|
-
const
|
|
14527
|
-
elWidth: 0,
|
|
14528
|
-
elHeight: 0
|
|
14529
|
-
});
|
|
15584
|
+
const popoverRef = ref();
|
|
14530
15585
|
const showPopup = ref(props.visible);
|
|
14531
15586
|
const { theme, location: location2 } = toRefs(props);
|
|
14532
15587
|
const classes = computed(() => {
|
|
14533
15588
|
const prefixCls = componentName$p;
|
|
14534
|
-
return {
|
|
14535
|
-
[prefixCls]: true,
|
|
14536
|
-
[`${prefixCls}--${theme.value}`]: theme.value
|
|
14537
|
-
};
|
|
15589
|
+
return `${prefixCls} ${prefixCls}--${theme.value}`;
|
|
14538
15590
|
});
|
|
14539
15591
|
const popoverContent = computed(() => {
|
|
14540
|
-
const prefixCls = "
|
|
15592
|
+
const prefixCls = "popover-content";
|
|
14541
15593
|
return {
|
|
14542
15594
|
[prefixCls]: true,
|
|
14543
15595
|
[`${prefixCls}--${location2.value}`]: location2.value
|
|
14544
15596
|
};
|
|
14545
15597
|
});
|
|
14546
15598
|
const popoverArrow = computed(() => {
|
|
14547
|
-
const prefixCls = "
|
|
15599
|
+
const prefixCls = "popover-arrow";
|
|
14548
15600
|
return {
|
|
14549
15601
|
[prefixCls]: true,
|
|
14550
15602
|
[`${prefixCls}--${location2.value}`]: location2.value
|
|
14551
15603
|
};
|
|
14552
15604
|
});
|
|
14553
|
-
|
|
14554
|
-
|
|
14555
|
-
|
|
14556
|
-
|
|
14557
|
-
|
|
14558
|
-
|
|
14559
|
-
|
|
14560
|
-
|
|
14561
|
-
|
|
14562
|
-
|
|
14563
|
-
|
|
14564
|
-
|
|
14565
|
-
|
|
14566
|
-
|
|
14567
|
-
|
|
14568
|
-
|
|
14569
|
-
|
|
14570
|
-
|
|
15605
|
+
const createPopperInstance = () => {
|
|
15606
|
+
console.log(reference.value, popoverRef.value);
|
|
15607
|
+
if (reference.value && popoverRef.value) {
|
|
15608
|
+
return createPopper(reference.value, popoverRef.value.popupRef, {
|
|
15609
|
+
placement: props.location,
|
|
15610
|
+
modifiers: [
|
|
15611
|
+
{
|
|
15612
|
+
name: "computeStyles",
|
|
15613
|
+
options: {
|
|
15614
|
+
adaptive: false,
|
|
15615
|
+
gpuAcceleration: false
|
|
15616
|
+
}
|
|
15617
|
+
},
|
|
15618
|
+
Object.assign({}, offsetModifier, {
|
|
15619
|
+
options: {
|
|
15620
|
+
offset: props.offset
|
|
15621
|
+
}
|
|
15622
|
+
})
|
|
15623
|
+
]
|
|
15624
|
+
});
|
|
14571
15625
|
}
|
|
14572
|
-
return
|
|
14573
|
-
}
|
|
14574
|
-
const
|
|
14575
|
-
|
|
14576
|
-
|
|
14577
|
-
|
|
14578
|
-
|
|
14579
|
-
|
|
14580
|
-
|
|
14581
|
-
|
|
14582
|
-
|
|
14583
|
-
|
|
14584
|
-
|
|
14585
|
-
|
|
14586
|
-
|
|
14587
|
-
|
|
15626
|
+
return null;
|
|
15627
|
+
};
|
|
15628
|
+
const clickOverlay = () => {
|
|
15629
|
+
console.log("\u5173\u95ED");
|
|
15630
|
+
};
|
|
15631
|
+
const uploadLocation = () => {
|
|
15632
|
+
nextTick(() => {
|
|
15633
|
+
if (!showPopup.value)
|
|
15634
|
+
return;
|
|
15635
|
+
if (!popper) {
|
|
15636
|
+
popper = createPopperInstance();
|
|
15637
|
+
console.log(popper);
|
|
15638
|
+
} else {
|
|
15639
|
+
popper.setOptions({
|
|
15640
|
+
placement: props.location
|
|
15641
|
+
});
|
|
15642
|
+
}
|
|
15643
|
+
});
|
|
15644
|
+
};
|
|
15645
|
+
const clickAway = (event) => {
|
|
15646
|
+
const element = reference.value;
|
|
15647
|
+
if (element && !element.contains(event.target)) {
|
|
15648
|
+
closePopover();
|
|
14588
15649
|
}
|
|
14589
|
-
|
|
14590
|
-
});
|
|
15650
|
+
};
|
|
14591
15651
|
onMounted(() => {
|
|
14592
|
-
|
|
15652
|
+
window.addEventListener("click", clickAway, true);
|
|
15653
|
+
});
|
|
15654
|
+
onUnmounted(() => {
|
|
15655
|
+
window.removeEventListener("click", clickAway, true);
|
|
14593
15656
|
});
|
|
14594
15657
|
watch(() => props.visible, (value) => {
|
|
14595
15658
|
showPopup.value = value;
|
|
15659
|
+
uploadLocation();
|
|
15660
|
+
});
|
|
15661
|
+
watch(() => props.location, (value) => {
|
|
15662
|
+
uploadLocation();
|
|
14596
15663
|
});
|
|
14597
15664
|
const update = (val) => {
|
|
14598
15665
|
emit("update", val);
|
|
@@ -14620,57 +15687,64 @@ const _sfc_main$s = create$s({
|
|
|
14620
15687
|
popoverArrow,
|
|
14621
15688
|
closePopover,
|
|
14622
15689
|
chooseItem,
|
|
14623
|
-
getReference,
|
|
14624
15690
|
reference,
|
|
14625
|
-
|
|
14626
|
-
|
|
15691
|
+
popoverRef,
|
|
15692
|
+
clickOverlay
|
|
14627
15693
|
};
|
|
14628
15694
|
}
|
|
14629
15695
|
});
|
|
14630
|
-
const _hoisted_1$q =
|
|
14631
|
-
const _hoisted_2$n =
|
|
14632
|
-
const _hoisted_3$l = { class: "title-name" };
|
|
15696
|
+
const _hoisted_1$q = ["onClick"];
|
|
15697
|
+
const _hoisted_2$n = { class: "popover-menu-name" };
|
|
14633
15698
|
function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14634
15699
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
14635
|
-
|
|
14636
|
-
|
|
14637
|
-
|
|
14638
|
-
|
|
14639
|
-
|
|
15700
|
+
const _component_nut_popup = resolveComponent("nut-popup");
|
|
15701
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
15702
|
+
createElementVNode("view", {
|
|
15703
|
+
style: { "display": "inline-block" },
|
|
15704
|
+
class: normalizeClass(_ctx.customClass),
|
|
15705
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.openPopover && _ctx.openPopover(...args), ["stop"])),
|
|
15706
|
+
ref: "reference"
|
|
15707
|
+
}, [
|
|
14640
15708
|
renderSlot(_ctx.$slots, "reference")
|
|
14641
|
-
],
|
|
14642
|
-
|
|
14643
|
-
|
|
14644
|
-
|
|
14645
|
-
|
|
14646
|
-
|
|
14647
|
-
|
|
14648
|
-
|
|
14649
|
-
|
|
14650
|
-
|
|
14651
|
-
|
|
14652
|
-
|
|
14653
|
-
|
|
14654
|
-
}, null,
|
|
15709
|
+
], 2),
|
|
15710
|
+
createVNode(_component_nut_popup, {
|
|
15711
|
+
ref: "popoverRef",
|
|
15712
|
+
"pop-class": _ctx.classes,
|
|
15713
|
+
visible: _ctx.showPopup,
|
|
15714
|
+
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.showPopup = $event),
|
|
15715
|
+
overlay: false,
|
|
15716
|
+
onClickOverlay: _ctx.clickOverlay
|
|
15717
|
+
}, {
|
|
15718
|
+
default: withCtx(() => [
|
|
15719
|
+
_ctx.showArrow ? (openBlock(), createElementBlock("view", {
|
|
15720
|
+
key: 0,
|
|
15721
|
+
class: normalizeClass(_ctx.popoverArrow)
|
|
15722
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
14655
15723
|
renderSlot(_ctx.$slots, "content"),
|
|
14656
|
-
(
|
|
14657
|
-
|
|
14658
|
-
|
|
14659
|
-
|
|
14660
|
-
|
|
14661
|
-
|
|
14662
|
-
|
|
14663
|
-
|
|
14664
|
-
|
|
14665
|
-
|
|
14666
|
-
|
|
14667
|
-
|
|
14668
|
-
|
|
14669
|
-
|
|
14670
|
-
|
|
14671
|
-
|
|
14672
|
-
|
|
14673
|
-
|
|
15724
|
+
createElementVNode("view", {
|
|
15725
|
+
class: normalizeClass(["popover-menu", _ctx.popoverContent]),
|
|
15726
|
+
ref: "popoverMenu"
|
|
15727
|
+
}, [
|
|
15728
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index) => {
|
|
15729
|
+
return openBlock(), createElementBlock("view", {
|
|
15730
|
+
key: index,
|
|
15731
|
+
class: normalizeClass([item.className, { "popover-menu-item": true, disabled: item.disabled }]),
|
|
15732
|
+
onClick: withModifiers(($event) => _ctx.chooseItem(item, index), ["stop"])
|
|
15733
|
+
}, [
|
|
15734
|
+
item.icon ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
|
|
15735
|
+
createVNode(_component_nut_icon, {
|
|
15736
|
+
class: "item-img",
|
|
15737
|
+
name: item.icon
|
|
15738
|
+
}, null, 8, ["name"])
|
|
15739
|
+
]) : createCommentVNode("", true),
|
|
15740
|
+
createElementVNode("view", _hoisted_2$n, toDisplayString(item.name), 1)
|
|
15741
|
+
], 10, _hoisted_1$q);
|
|
15742
|
+
}), 128))
|
|
15743
|
+
], 2)
|
|
15744
|
+
]),
|
|
15745
|
+
_: 3
|
|
15746
|
+
}, 8, ["pop-class", "visible", "onClickOverlay"])
|
|
15747
|
+
], 64);
|
|
14674
15748
|
}
|
|
14675
15749
|
var Popover = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s]]);
|
|
14676
15750
|
const component$1 = {
|
|
@@ -14717,7 +15791,7 @@ const component$1 = {
|
|
|
14717
15791
|
}
|
|
14718
15792
|
},
|
|
14719
15793
|
setup(props) {
|
|
14720
|
-
const { avatarShape, round, avatarSize } = toRefs(props);
|
|
15794
|
+
const { avatarShape, round: round2, avatarSize } = toRefs(props);
|
|
14721
15795
|
const avatarClass = computed(() => {
|
|
14722
15796
|
const prefixCls = "avatarClass";
|
|
14723
15797
|
return {
|
|
@@ -14729,7 +15803,7 @@ const component$1 = {
|
|
|
14729
15803
|
const prefixCls = "blockClass";
|
|
14730
15804
|
return {
|
|
14731
15805
|
[prefixCls]: true,
|
|
14732
|
-
[`${prefixCls}--round`]:
|
|
15806
|
+
[`${prefixCls}--round`]: round2.value
|
|
14733
15807
|
};
|
|
14734
15808
|
});
|
|
14735
15809
|
const getStyle = () => {
|
|
@@ -15882,7 +16956,7 @@ const _sfc_main$m = create$m({
|
|
|
15882
16956
|
let timer = 0;
|
|
15883
16957
|
const danmuList = ref(props.danmu);
|
|
15884
16958
|
const rows = ref(props.rows);
|
|
15885
|
-
const
|
|
16959
|
+
const top2 = ref(props.top);
|
|
15886
16960
|
const index = ref(0);
|
|
15887
16961
|
const speeds = props.speeds;
|
|
15888
16962
|
const danmuCWidth = ref(0);
|
|
@@ -15903,7 +16977,11 @@ const _sfc_main$m = create$m({
|
|
|
15903
16977
|
});
|
|
15904
16978
|
const add = (word) => {
|
|
15905
16979
|
const _index = index.value % danmuList.value.length;
|
|
15906
|
-
danmuList.value.
|
|
16980
|
+
if (!props.loop && index.value === danmuList.value.length) {
|
|
16981
|
+
danmuList.value.splice(danmuList.value.length, 0, word);
|
|
16982
|
+
} else {
|
|
16983
|
+
danmuList.value.splice(_index, 0, word);
|
|
16984
|
+
}
|
|
15907
16985
|
};
|
|
15908
16986
|
const run = () => {
|
|
15909
16987
|
clearInterval(timer);
|
|
@@ -15914,6 +16992,9 @@ const _sfc_main$m = create$m({
|
|
|
15914
16992
|
}, props.frequency);
|
|
15915
16993
|
};
|
|
15916
16994
|
const play = () => {
|
|
16995
|
+
if (!props.loop && index.value >= danmuList.value.length) {
|
|
16996
|
+
return;
|
|
16997
|
+
}
|
|
15917
16998
|
const _index = props.loop ? index.value % danmuList.value.length : index.value;
|
|
15918
16999
|
let el = document.createElement(`view`);
|
|
15919
17000
|
el.innerHTML = danmuList.value[_index];
|
|
@@ -15924,7 +17005,7 @@ const _sfc_main$m = create$m({
|
|
|
15924
17005
|
const height = el.offsetHeight;
|
|
15925
17006
|
el.classList.add("move");
|
|
15926
17007
|
el.style.animationDuration = `${speeds}ms`;
|
|
15927
|
-
el.style.top = _index % rows.value * (height +
|
|
17008
|
+
el.style.top = _index % rows.value * (height + top2.value) + 20 + "px";
|
|
15928
17009
|
el.style.width = width + 20 + "px";
|
|
15929
17010
|
el.style.setProperty("--move-distance", `-${danmuCWidth.value}px`);
|
|
15930
17011
|
el.dataset.index = `${_index}`;
|
|
@@ -16787,7 +17868,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16787
17868
|
btnOptions: _ctx.btnOptions,
|
|
16788
17869
|
btnExtraText: _ctx.btnExtraText,
|
|
16789
17870
|
buyText: _ctx.buyText || _ctx.translate("buyNow"),
|
|
16790
|
-
addCartText: _ctx.addCartText || _ctx.translate("
|
|
17871
|
+
addCartText: _ctx.addCartText || _ctx.translate("addToCart"),
|
|
16791
17872
|
confirmText: _ctx.confirmText || _ctx.translate("confirm"),
|
|
16792
17873
|
onClickBtnOperate: _ctx.clickBtnOperate
|
|
16793
17874
|
}, createSlots({ _: 2 }, [
|
|
@@ -17526,12 +18607,14 @@ const _sfc_main$6 = create$6({
|
|
|
17526
18607
|
fullAddress: "\u5317\u4EAC\u5E02\u901A\u5DDE\u533A\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5"
|
|
17527
18608
|
});
|
|
17528
18609
|
const trowelData = () => {
|
|
18610
|
+
console.log("props.data", props.data);
|
|
17529
18611
|
if (Object.keys(props.dataMapOptions).length > 0 && props.data.length > 0) {
|
|
17530
18612
|
dataArray.value = props.data.map((item, index) => {
|
|
17531
18613
|
return floatData(dataInfo, item, props.dataMapOptions);
|
|
17532
18614
|
});
|
|
17533
18615
|
}
|
|
17534
18616
|
};
|
|
18617
|
+
watch(() => props.data, () => trowelData(), { deep: true });
|
|
17535
18618
|
const clickDelIcon = (event, item) => {
|
|
17536
18619
|
emit("handelDelIcon", event, item);
|
|
17537
18620
|
event.stopPropagation();
|
|
@@ -18265,6 +19348,6 @@ function install(app) {
|
|
|
18265
19348
|
}
|
|
18266
19349
|
});
|
|
18267
19350
|
}
|
|
18268
|
-
const version = "3.1.21
|
|
19351
|
+
const version = "3.1.21";
|
|
18269
19352
|
var nutui_vue_build = { install, version, Locale };
|
|
18270
19353
|
export { ActionSheet, Address, AddressList, Audio, AudioOperate, Avatar, AvatarGroup, BackTop, Badge, Barrage, Button, Calendar, CalendarItem, Card, Cascader, Category, CategoryPane, Cell, CellGroup, _sfc_main$1c as Checkbox, _sfc_main$1b as CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, Comment, CountDown, CountUp, DatePicker, _Dialog as Dialog, Divider, Drag, Ecard, Elevator, Empty, FixedNav, Form, FormItem, _sfc_main$1y as Grid, GridItem, _sfc_main$1J as Icon, _ImagePreview as ImagePreview, Indicator, InfiniteLoading, Input, InputNumber, _sfc_main$1D as Layout, List, Locale, Menu, MenuItem, Navbar, NoticeBar, NotifyFunction as Notify, NumberKeyboard, OldPicker, OverLay, Pagination, Picker, Popover, Popup, Price, Progress, PullRefresh, _sfc_main$15 as Radio, _sfc_main$14 as RadioGroup, Range, Rate, Row, SearchBar, ShortPassword, SideNavBar, SideNavBarItem, Signature, Skeleton, Sku, Step, _sfc_main$C as Steps, _sfc_main$1A as Sticky, SubSideNavBar, Swipe, Swiper, SwiperItem, Switch, TabPane, Tabbar, TabbarItem, Table, Tabs, Tag, TextArea, TimeDetail, TimePannel, TimeSelect, ToastFunction as Toast, Uploader, Video, nutui_vue_build as default, install, version };
|