@nutui/nutui 4.2.1 → 4.2.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +6067 -6052
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/{_es/Interceptor-006f85b3.js → Interceptor-6aab6fe0.js} +1 -1
- package/dist/packages/{_es → actionsheet}/ActionSheet.js +7 -10
- package/dist/packages/actionsheet/index.mjs +2 -4
- package/dist/packages/{_es → address}/Address.js +15 -10
- package/dist/packages/address/index.mjs +2 -4
- package/dist/packages/{_es → addresslist}/AddressList.js +25 -28
- package/dist/packages/addresslist/index.mjs +2 -4
- package/dist/packages/{_es → animate}/Animate.js +2 -3
- package/dist/packages/animate/index.mjs +2 -4
- package/dist/packages/{_es → audio}/Audio.js +7 -7
- package/dist/packages/audio/index.mjs +2 -4
- package/dist/packages/{_es → audiooperate}/AudioOperate.js +10 -6
- package/dist/packages/audiooperate/index.mjs +2 -4
- package/dist/packages/{_es → avatar}/Avatar.js +4 -5
- package/dist/packages/avatar/index.mjs +2 -4
- package/dist/packages/{_es → avatarcropper}/AvatarCropper.js +7 -7
- package/dist/packages/avatarcropper/index.mjs +2 -4
- package/dist/packages/{_es → avatargroup}/AvatarGroup.js +4 -5
- package/dist/packages/avatargroup/index.mjs +2 -4
- package/dist/packages/{_es → backtop}/Backtop.js +3 -4
- package/dist/packages/backtop/index.mjs +2 -4
- package/dist/packages/{_es → badge}/Badge.js +4 -5
- package/dist/packages/badge/index.mjs +2 -4
- package/dist/packages/{_es → barrage}/Barrage.js +2 -3
- package/dist/packages/barrage/index.mjs +2 -4
- package/dist/packages/{_es → button}/Button.js +4 -5
- package/dist/packages/button/index.mjs +2 -4
- package/dist/packages/{_es → calendar}/Calendar.js +12 -10
- package/dist/packages/calendar/index.mjs +2 -4
- package/dist/packages/calendaritem/CalendarItem.js +12 -0
- package/dist/packages/calendaritem/index.mjs +2 -4
- package/dist/packages/{_es → card}/Card.js +6 -7
- package/dist/packages/card/index.mjs +2 -4
- package/dist/packages/{_es → cascader}/Cascader.js +22 -19
- package/dist/packages/cascader/index.mjs +2 -4
- package/dist/packages/{_es → category}/Category.js +2 -3
- package/dist/packages/category/index.mjs +2 -4
- package/dist/packages/{_es → categorypane}/CategoryPane.js +2 -3
- package/dist/packages/categorypane/index.mjs +2 -4
- package/dist/packages/{_es → cell}/Cell.js +15 -10
- package/dist/packages/cell/index.mjs +2 -4
- package/dist/packages/{_es → cellgroup}/CellGroup.js +4 -5
- package/dist/packages/cellgroup/index.mjs +2 -4
- package/dist/packages/{_es → checkbox}/Checkbox.js +2 -3
- package/dist/packages/checkbox/index.mjs +2 -4
- package/dist/packages/{_es → checkboxgroup}/CheckboxGroup.js +2 -3
- package/dist/packages/checkboxgroup/index.mjs +2 -4
- package/dist/packages/{_es → circleprogress}/CircleProgress.js +3 -3
- package/dist/packages/circleprogress/index.mjs +2 -4
- package/dist/packages/{_es → col}/Col.js +2 -3
- package/dist/packages/col/index.mjs +2 -4
- package/dist/packages/{_es → collapse}/Collapse.js +2 -3
- package/dist/packages/collapse/index.mjs +2 -4
- package/dist/packages/{_es → collapseitem}/CollapseItem.js +3 -4
- package/dist/packages/collapseitem/index.mjs +2 -4
- package/dist/packages/{_es → comment}/Comment.js +36 -35
- package/dist/packages/comment/index.mjs +2 -4
- package/dist/packages/{_es/common-728db750.js → common-72c11f1d.js} +2 -2
- package/dist/packages/component-669c158a.js +18 -0
- package/dist/packages/{_es → configprovider}/ConfigProvider.js +1 -2
- package/dist/packages/configprovider/index.mjs +2 -4
- package/dist/packages/{_es → countdown}/Countdown.js +14 -18
- package/dist/packages/countdown/index.mjs +2 -4
- package/dist/packages/{_es → countup}/Countup.js +2 -3
- package/dist/packages/countup/index.mjs +2 -4
- package/dist/packages/{_es → datepicker}/DatePicker.js +16 -14
- package/dist/packages/datepicker/index.mjs +2 -4
- package/dist/packages/{_es → dialog}/Dialog.js +17 -20
- package/dist/packages/dialog/index.mjs +3 -5
- package/dist/packages/{_es → divider}/Divider.js +2 -3
- package/dist/packages/divider/index.mjs +2 -4
- package/dist/packages/{_es → drag}/Drag.js +3 -4
- package/dist/packages/drag/index.mjs +2 -4
- package/dist/packages/{_es → ecard}/Ecard.js +11 -7
- package/dist/packages/ecard/index.mjs +2 -4
- package/dist/packages/{_es → elevator}/Elevator.js +8 -10
- package/dist/packages/elevator/index.mjs +2 -4
- package/dist/packages/{_es → ellipsis}/Ellipsis.js +2 -3
- package/dist/packages/ellipsis/index.mjs +2 -4
- package/dist/packages/{_es → empty}/Empty.js +9 -5
- package/dist/packages/empty/index.mjs +2 -4
- package/dist/packages/{_es → fixednav}/FixedNav.js +15 -11
- package/dist/packages/fixednav/index.mjs +2 -4
- package/dist/packages/{_es → form}/Form.js +8 -8
- package/dist/packages/form/index.mjs +2 -4
- package/dist/packages/{_es → formitem}/FormItem.js +23 -13
- package/dist/packages/formitem/index.mjs +2 -4
- package/dist/packages/grid/Grid.js +9 -0
- package/dist/packages/grid/index.mjs +2 -4
- package/dist/packages/{_es → griditem}/GridItem.js +5 -6
- package/dist/packages/griditem/index.mjs +2 -4
- package/dist/packages/{_es → image}/Image.js +3 -4
- package/dist/packages/image/index.mjs +2 -4
- package/dist/packages/{_es → imagepreview}/ImagePreview.js +21 -19
- package/dist/packages/imagepreview/index.mjs +3 -5
- package/dist/packages/{_es/index-5a1e6d22.js → index-37ae1f41.js} +5 -5
- package/dist/packages/{_es/index-a187a5aa.js → index-914a76f0.js} +7 -4
- package/dist/packages/index-c0fa0f6b.js +17 -0
- package/dist/packages/{_es/index.vue_vue_type_script_lang-1e118ab6.js → index.vue_vue_type_script_lang-0185ccea.js} +1 -1
- package/dist/packages/{_es/index.vue_vue_type_script_lang-0ccf787e.js → index.vue_vue_type_script_lang-825ed1e0.js} +2 -2
- package/dist/packages/{_es → indicator}/Indicator.js +3 -3
- package/dist/packages/indicator/index.mjs +2 -4
- package/dist/packages/{_es → infiniteloading}/InfiniteLoading.js +27 -29
- package/dist/packages/infiniteloading/index.mjs +2 -4
- package/dist/packages/{_es → input}/Input.js +2 -3
- package/dist/packages/input/index.mjs +2 -4
- package/dist/packages/{_es → inputnumber}/InputNumber.js +5 -6
- package/dist/packages/inputnumber/index.mjs +2 -4
- package/dist/packages/{_es → invoice}/Invoice.js +17 -17
- package/dist/packages/invoice/index.mjs +2 -4
- package/dist/packages/{_es → layout}/Layout.js +1 -2
- package/dist/packages/layout/index.mjs +2 -4
- package/dist/packages/{_es → list}/List.js +3 -4
- package/dist/packages/list/index.mjs +2 -4
- package/dist/packages/locale/lang/baseLang.d.ts +1 -0
- package/dist/packages/locale/lang/en-US.d.ts +1 -0
- package/dist/packages/locale/lang/en-US.js +2 -1
- package/dist/packages/locale/lang/id-ID.d.ts +1 -0
- package/dist/packages/locale/lang/id-ID.js +2 -1
- package/dist/packages/locale/lang/zh-CN.d.ts +1 -0
- package/dist/packages/locale/lang/zh-CN.js +2 -1
- package/dist/packages/locale/lang/zh-TW.d.ts +1 -0
- package/dist/packages/locale/lang/zh-TW.js +2 -1
- package/dist/packages/{_es → menu}/Menu.js +3 -4
- package/dist/packages/menu/index.mjs +2 -4
- package/dist/packages/{_es → menuitem}/MenuItem.js +6 -6
- package/dist/packages/menuitem/index.mjs +2 -4
- package/dist/packages/{_es/mountComponent-053caf41.js → mountComponent-867a9167.js} +1 -1
- package/dist/packages/{_es → navbar}/Navbar.js +2 -3
- package/dist/packages/navbar/index.mjs +2 -4
- package/dist/packages/{_es → noticebar}/Noticebar.js +4 -7
- package/dist/packages/noticebar/index.mjs +2 -4
- package/dist/packages/{_es → notify}/Notify.js +6 -6
- package/dist/packages/notify/index.mjs +3 -5
- package/dist/packages/{_es → numberkeyboard}/NumberKeyboard.js +11 -7
- package/dist/packages/numberkeyboard/index.mjs +2 -4
- package/dist/packages/{_es → overlay}/Overlay.js +5 -5
- package/dist/packages/overlay/index.mjs +2 -4
- package/dist/packages/{_es → pagination}/Pagination.js +8 -4
- package/dist/packages/pagination/index.mjs +2 -4
- package/dist/packages/{_es → picker}/Picker.js +24 -21
- package/dist/packages/picker/index.mjs +2 -4
- package/dist/packages/{_es → popover}/Popover.js +10 -10
- package/dist/packages/popover/index.mjs +2 -4
- package/dist/packages/popup/Popup.js +10 -0
- package/dist/packages/popup/index.mjs +2 -4
- package/dist/packages/{_es → price}/Price.js +4 -5
- package/dist/packages/price/index.mjs +2 -4
- package/dist/packages/{_es → progress}/Progress.js +4 -5
- package/dist/packages/progress/index.mjs +2 -4
- package/dist/packages/{_es → pullrefresh}/PullRefresh.js +41 -30
- package/dist/packages/pullrefresh/index.mjs +2 -4
- package/dist/packages/pxCheck-a27490eb.js +8 -0
- package/dist/packages/radio/Radio.js +8 -0
- package/dist/packages/radio/index.mjs +2 -4
- package/dist/packages/radiogroup/RadioGroup.js +6 -0
- package/dist/packages/radiogroup/index.mjs +2 -4
- package/dist/packages/{_es → range}/Range.js +7 -7
- package/dist/packages/range/index.mjs +2 -4
- package/dist/packages/{_es → rate}/Rate.js +27 -14
- package/dist/packages/rate/index.mjs +2 -4
- package/dist/packages/{_es → row}/Row.js +2 -3
- package/dist/packages/row/index.mjs +2 -4
- package/dist/packages/{_es → searchbar}/Searchbar.js +9 -5
- package/dist/packages/searchbar/index.mjs +2 -4
- package/dist/packages/{_es → shortpassword}/ShortPassword.js +11 -7
- package/dist/packages/shortpassword/index.mjs +2 -4
- package/dist/packages/{_es → sidenavbar}/SideNavbar.js +2 -3
- package/dist/packages/sidenavbar/index.mjs +2 -4
- package/dist/packages/{_es → sidenavbaritem}/SideNavbarItem.js +2 -3
- package/dist/packages/sidenavbaritem/index.mjs +2 -4
- package/dist/packages/{_es → signature}/Signature.js +11 -7
- package/dist/packages/signature/index.mjs +2 -4
- package/dist/packages/{_es → skeleton}/Skeleton.js +4 -5
- package/dist/packages/skeleton/index.mjs +2 -4
- package/dist/packages/{_es → sku}/Sku.js +20 -15
- package/dist/packages/sku/index.mjs +2 -4
- package/dist/packages/{_es → space}/Space.js +1 -2
- package/dist/packages/space/index.mjs +2 -4
- package/dist/packages/{_es → step}/Step.js +2 -3
- package/dist/packages/step/index.mjs +2 -4
- package/dist/packages/{_es → steps}/Steps.js +1 -2
- package/dist/packages/steps/index.mjs +2 -4
- package/dist/packages/{_es → sticky}/Sticky.js +8 -8
- package/dist/packages/sticky/index.mjs +2 -4
- package/dist/packages/{_es → subsidenavbar}/SubSideNavbar.js +2 -3
- package/dist/packages/subsidenavbar/index.mjs +2 -4
- package/dist/packages/{_es → swipe}/Swipe.js +5 -6
- package/dist/packages/swipe/index.mjs +2 -4
- package/dist/packages/{_es → swipegroup}/SwipeGroup.js +2 -3
- package/dist/packages/swipegroup/index.mjs +2 -4
- package/dist/packages/{_es → swiper}/Swiper.js +8 -8
- package/dist/packages/swiper/index.mjs +2 -4
- package/dist/packages/{_es → swiperitem}/SwiperItem.js +5 -6
- package/dist/packages/swiperitem/index.mjs +2 -4
- package/dist/packages/{_es → switch}/Switch.js +2 -3
- package/dist/packages/switch/index.mjs +2 -4
- package/dist/packages/{_es → tabbar}/Tabbar.js +2 -3
- package/dist/packages/tabbar/index.mjs +2 -4
- package/dist/packages/{_es → tabbaritem}/TabbarItem.js +6 -7
- package/dist/packages/tabbaritem/index.mjs +2 -4
- package/dist/packages/{_es → table}/Table.js +8 -4
- package/dist/packages/table/index.mjs +2 -4
- package/dist/packages/{_es → tabpane}/TabPane.js +4 -5
- package/dist/packages/tabpane/index.mjs +2 -4
- package/dist/packages/{_es → tabs}/Tabs.js +12 -12
- package/dist/packages/tabs/index.mjs +2 -4
- package/dist/packages/{_es → tag}/Tag.js +4 -5
- package/dist/packages/tag/index.mjs +2 -4
- package/dist/packages/{_es → textarea}/Textarea.js +9 -5
- package/dist/packages/textarea/index.mjs +2 -4
- package/dist/packages/{_es → timedetail}/TimeDetail.js +2 -3
- package/dist/packages/timedetail/index.mjs +2 -4
- package/dist/packages/{_es → timepannel}/TimePannel.js +2 -3
- package/dist/packages/timepannel/index.mjs +2 -4
- package/dist/packages/{_es → timeselect}/TimeSelect.js +11 -7
- package/dist/packages/timeselect/index.mjs +2 -4
- package/dist/packages/{_es → toast}/Toast.js +5 -5
- package/dist/packages/toast/index.mjs +3 -5
- package/dist/packages/{_es → tour}/Tour.js +9 -10
- package/dist/packages/tour/index.mjs +2 -4
- package/dist/packages/{_es → trendarrow}/TrendArrow.js +3 -3
- package/dist/packages/trendarrow/index.mjs +2 -4
- package/dist/packages/{_es → uploader}/Uploader.js +12 -9
- package/dist/packages/uploader/index.mjs +2 -4
- package/dist/packages/{_es/component-f86a70df.js → util-6f26722f.js} +6 -27
- package/dist/packages/{_es → video}/Video.js +10 -6
- package/dist/packages/video/index.mjs +2 -4
- package/dist/packages/{_es → watermark}/Watermark.js +2 -3
- package/dist/packages/watermark/index.mjs +2 -4
- package/dist/smartips/web-types.json +19 -1
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +12 -17
- package/dist/types/__VUE/address/index.vue.d.ts +20 -19
- package/dist/types/__VUE/address/type.d.ts +3 -2
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +1 -1
- package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -4
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +3 -1
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +1 -1
- package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +2 -2
- package/dist/types/__VUE/comment/index.vue.d.ts +4 -7
- package/dist/types/__VUE/countdown/index.vue.d.ts +1 -4
- package/dist/types/__VUE/dialog/index.vue.d.ts +1 -4
- package/dist/types/__VUE/ecard/index.vue.d.ts +1 -1
- package/dist/types/__VUE/empty/index.vue.d.ts +3 -3
- package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
- package/dist/types/__VUE/formitem/index.vue.d.ts +1 -0
- package/dist/types/__VUE/formitem/types.d.ts +3 -3
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -4
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
- package/dist/types/__VUE/menu/index.vue.d.ts +2 -2
- package/dist/types/__VUE/noticebar/index.vue.d.ts +5 -4
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
- package/dist/types/__VUE/pagination/index.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/Column.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/common.d.ts +7 -249
- package/dist/types/__VUE/picker/index.vue.d.ts +1 -122
- package/dist/types/__VUE/picker/types.d.ts +2 -9
- package/dist/types/__VUE/popover/index.vue.d.ts +2 -2
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +20 -5
- package/dist/types/__VUE/radio/index.vue.d.ts +2 -2
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/rate/index.vue.d.ts +3 -3
- package/dist/types/__VUE/searchbar/index.vue.d.ts +3 -3
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/signature/index.vue.d.ts +2 -1
- package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +3 -3
- package/dist/types/__VUE/sku/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sticky/index.vue.d.ts +3 -0
- package/dist/types/__VUE/switch/index.vue.d.ts +6 -6
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/table/common.d.ts +7 -7
- package/dist/types/__VUE/table/index.vue.d.ts +10 -10
- package/dist/types/__VUE/table/types.d.ts +2 -2
- package/dist/types/__VUE/tabs/index.vue.d.ts +5 -5
- package/dist/types/__VUE/textarea/index.vue.d.ts +5 -4
- package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
- package/dist/types/__VUE/toast/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tour/index.vue.d.ts +12 -11
- package/dist/types/__VUE/video/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/locale/lang/baseLang.d.ts +1 -0
- package/dist/types/locale/lang/en-US.d.ts +1 -0
- package/dist/types/locale/lang/id-ID.d.ts +1 -0
- package/dist/types/locale/lang/zh-CN.d.ts +1 -0
- package/dist/types/locale/lang/zh-TW.d.ts +1 -0
- package/dist/types/utils/canvas.d.ts +1 -1
- package/dist/types/utils/create/component.d.ts +0 -1
- package/dist/types/utils/create/renderIcon.d.ts +2 -2
- package/dist/types/utils/pxCheck.d.ts +1 -1
- package/dist/types/utils/useLocale/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/packages/_es/CalendarItem.js +0 -10
- package/dist/packages/_es/Grid.js +0 -10
- package/dist/packages/_es/Popup.js +0 -10
- package/dist/packages/_es/Radio.js +0 -9
- package/dist/packages/_es/RadioGroup.js +0 -7
- package/dist/packages/_es/pxCheck-c6b9f6b7.js +0 -6
- /package/dist/packages/{_es/_plugin-vue_export-helper-cc2b3d55.js → _plugin-vue_export-helper-cc2b3d55.js} +0 -0
- /package/dist/packages/{_es/index-29892cda.js → index-29892cda.js} +0 -0
- /package/dist/packages/{_es/index-54d03fc1.js → index-54d03fc1.js} +0 -0
- /package/dist/packages/{_es/index-79c5dc33.js → index-79c5dc33.js} +0 -0
- /package/dist/packages/{_es/index-7a7385e4.js → index-7a7385e4.js} +0 -0
- /package/dist/packages/{_es/index-97b44e6c.js → index-97b44e6c.js} +0 -0
- /package/dist/packages/{_es/raf-729dad54.js → raf-729dad54.js} +0 -0
- /package/dist/packages/{_es/renderIcon-3d0fd47c.js → renderIcon-3d0fd47c.js} +0 -0
|
@@ -17,15 +17,18 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { ref, reactive, computed, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock,
|
|
21
|
-
import { c as createComponent
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
20
|
+
import { ref, reactive, computed, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeStyle, createBlock, createCommentVNode, toDisplayString, renderSlot } from "vue";
|
|
21
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
22
|
+
import { j as getScrollTopRoot } from "../util-6f26722f.js";
|
|
23
|
+
import { u as useTouch } from "../index-7a7385e4.js";
|
|
24
|
+
import { p as pxCheck } from "../pxCheck-a27490eb.js";
|
|
25
|
+
import { u as useScrollParent } from "../index-97b44e6c.js";
|
|
25
26
|
import { Loading } from "@nutui/icons-vue";
|
|
26
|
-
import {
|
|
27
|
-
import "../
|
|
28
|
-
|
|
27
|
+
import { u as useLocale } from "../index-c0fa0f6b.js";
|
|
28
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
29
|
+
import "@nutui/nutui/dist/packages/locale/lang";
|
|
30
|
+
const { create } = createComponent("pull-refresh");
|
|
31
|
+
const cN = "NutPullRefresh";
|
|
29
32
|
const _sfc_main = create({
|
|
30
33
|
props: {
|
|
31
34
|
modelValue: {
|
|
@@ -34,20 +37,20 @@ const _sfc_main = create({
|
|
|
34
37
|
},
|
|
35
38
|
pullingTxt: {
|
|
36
39
|
type: String,
|
|
37
|
-
default:
|
|
40
|
+
default: ""
|
|
38
41
|
},
|
|
39
42
|
loosingTxt: {
|
|
40
43
|
type: String,
|
|
41
|
-
default:
|
|
44
|
+
default: ""
|
|
42
45
|
},
|
|
43
46
|
loadingTxt: {
|
|
44
47
|
type: String,
|
|
45
|
-
default:
|
|
48
|
+
default: ""
|
|
49
|
+
},
|
|
50
|
+
completeTxt: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: ""
|
|
46
53
|
},
|
|
47
|
-
// completeTxt: {
|
|
48
|
-
// type: String,
|
|
49
|
-
// default: ''
|
|
50
|
-
// },
|
|
51
54
|
headHeight: {
|
|
52
55
|
type: [String, Number],
|
|
53
56
|
default: 50
|
|
@@ -59,11 +62,16 @@ const _sfc_main = create({
|
|
|
59
62
|
duration: {
|
|
60
63
|
type: [String, Number],
|
|
61
64
|
default: 0.3
|
|
65
|
+
},
|
|
66
|
+
completeDuration: {
|
|
67
|
+
type: Number,
|
|
68
|
+
default: 0
|
|
62
69
|
}
|
|
63
70
|
},
|
|
64
71
|
emits: ["change", "refresh", "update:modelValue"],
|
|
65
72
|
components: { Loading },
|
|
66
73
|
setup(props, { emit, slots }) {
|
|
74
|
+
const translate = useLocale(cN);
|
|
67
75
|
const touch = useTouch();
|
|
68
76
|
const scroller = ref();
|
|
69
77
|
const scrollParent = useScrollParent(scroller);
|
|
@@ -72,20 +80,16 @@ const _sfc_main = create({
|
|
|
72
80
|
distance: 0,
|
|
73
81
|
status: "normal"
|
|
74
82
|
});
|
|
75
|
-
const classes = computed(() => {
|
|
76
|
-
const prefixCls = componentName;
|
|
77
|
-
return {
|
|
78
|
-
[prefixCls]: true
|
|
79
|
-
};
|
|
80
|
-
});
|
|
81
83
|
const getPullStatus = computed(() => {
|
|
82
84
|
switch (state.status) {
|
|
83
85
|
case "pulling":
|
|
84
|
-
return !slots.pulling ? props.pullingTxt : "";
|
|
86
|
+
return !slots.pulling ? props.pullingTxt || translate("pulling") : "";
|
|
85
87
|
case "loosing":
|
|
86
|
-
return !slots.loosing ? props.loosingTxt : "";
|
|
88
|
+
return !slots.loosing ? props.loosingTxt || translate("loosing") : "";
|
|
87
89
|
case "loading":
|
|
88
|
-
return !slots.loading ? props.loadingTxt : "";
|
|
90
|
+
return !slots.loading ? props.loadingTxt || translate("loading") : "";
|
|
91
|
+
case "complete":
|
|
92
|
+
return !slots.complete ? props.completeTxt || translate("complete") : "";
|
|
89
93
|
}
|
|
90
94
|
return "";
|
|
91
95
|
});
|
|
@@ -113,11 +117,13 @@ const _sfc_main = create({
|
|
|
113
117
|
}
|
|
114
118
|
return Math.round(moveDistance);
|
|
115
119
|
};
|
|
116
|
-
const setPullStatus = (distance, isLoading) => {
|
|
120
|
+
const setPullStatus = (distance, isLoading, isComplete) => {
|
|
117
121
|
const pullDistance = +(props.pullDistance || props.headHeight);
|
|
118
122
|
state.distance = distance;
|
|
119
123
|
if (isLoading) {
|
|
120
124
|
state.status = "loading";
|
|
125
|
+
} else if (isComplete) {
|
|
126
|
+
state.status = "complete";
|
|
121
127
|
} else if (distance === 0) {
|
|
122
128
|
state.status = "normal";
|
|
123
129
|
} else if (distance < pullDistance) {
|
|
@@ -176,12 +182,16 @@ const _sfc_main = create({
|
|
|
176
182
|
if (val) {
|
|
177
183
|
setPullStatus(+props.headHeight, true);
|
|
178
184
|
} else {
|
|
179
|
-
|
|
185
|
+
if (props.completeDuration === 0)
|
|
186
|
+
setPullStatus(0);
|
|
187
|
+
setPullStatus(+props.headHeight, false, true);
|
|
188
|
+
setTimeout(() => {
|
|
189
|
+
setPullStatus(0);
|
|
190
|
+
}, props.completeDuration);
|
|
180
191
|
}
|
|
181
192
|
}
|
|
182
193
|
);
|
|
183
194
|
return __spreadProps(__spreadValues({
|
|
184
|
-
classes,
|
|
185
195
|
scroller
|
|
186
196
|
}, toRefs(state)), {
|
|
187
197
|
touchStart,
|
|
@@ -200,7 +210,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
200
210
|
const _component_Loading = resolveComponent("Loading");
|
|
201
211
|
return openBlock(), createElementBlock("div", {
|
|
202
212
|
ref: "scroller",
|
|
203
|
-
class:
|
|
213
|
+
class: "nut-pull-refresh",
|
|
204
214
|
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.touchStart && _ctx.touchStart(...args)),
|
|
205
215
|
onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.touchMove && _ctx.touchMove(...args)),
|
|
206
216
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.touchEnd && _ctx.touchEnd(...args))
|
|
@@ -220,11 +230,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
220
230
|
createElementVNode("div", _hoisted_1, toDisplayString(_ctx.getPullStatus), 1),
|
|
221
231
|
_ctx.status == "pulling" ? renderSlot(_ctx.$slots, "pulling", { key: 1 }) : createCommentVNode("", true),
|
|
222
232
|
_ctx.status == "loosing" ? renderSlot(_ctx.$slots, "loosing", { key: 2 }) : createCommentVNode("", true),
|
|
223
|
-
_ctx.status == "loading" ? renderSlot(_ctx.$slots, "loading", { key: 3 }) : createCommentVNode("", true)
|
|
233
|
+
_ctx.status == "loading" ? renderSlot(_ctx.$slots, "loading", { key: 3 }) : createCommentVNode("", true),
|
|
234
|
+
_ctx.status == "complete" ? renderSlot(_ctx.$slots, "complete", { key: 4 }) : createCommentVNode("", true)
|
|
224
235
|
], 4),
|
|
225
236
|
renderSlot(_ctx.$slots, "default")
|
|
226
237
|
], 4)
|
|
227
|
-
],
|
|
238
|
+
], 544);
|
|
228
239
|
}
|
|
229
240
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
230
241
|
export {
|
|
@@ -18,11 +18,11 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, computed, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createElementVNode, normalizeStyle, withModifiers, Fragment, renderList, createTextVNode, renderSlot } from "vue";
|
|
21
|
-
import { c as createComponent
|
|
22
|
-
import {
|
|
23
|
-
import { u as
|
|
24
|
-
import {
|
|
25
|
-
import "../
|
|
21
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
22
|
+
import { a as isArray } from "../util-6f26722f.js";
|
|
23
|
+
import { u as useTouch } from "../index-7a7385e4.js";
|
|
24
|
+
import { u as useRect } from "../index-29892cda.js";
|
|
25
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
26
26
|
const { componentName, create } = createComponent("range");
|
|
27
27
|
const _sfc_main = create({
|
|
28
28
|
props: {
|
|
@@ -430,7 +430,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
430
430
|
!_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_7, toDisplayString(+_ctx.max), 1)) : createCommentVNode("", true)
|
|
431
431
|
], 2);
|
|
432
432
|
}
|
|
433
|
-
const
|
|
433
|
+
const NutRange = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
434
434
|
export {
|
|
435
|
-
|
|
435
|
+
NutRange as default
|
|
436
436
|
};
|
|
@@ -19,12 +19,11 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, openBlock, createElementBlock, Fragment, renderList, normalizeStyle, createElementVNode, createBlock, resolveDynamicComponent, normalizeClass, createCommentVNode } from "vue";
|
|
21
21
|
import { StarFillN } from "@nutui/icons-vue";
|
|
22
|
-
import { c as createComponent } from "
|
|
23
|
-
import { r as renderIcon } from "
|
|
24
|
-
import { p as pxCheck } from "
|
|
25
|
-
import { u as useTouch } from "
|
|
26
|
-
import { _ as _export_sfc } from "
|
|
27
|
-
import "../locale/lang";
|
|
22
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
23
|
+
import { r as renderIcon } from "../renderIcon-3d0fd47c.js";
|
|
24
|
+
import { p as pxCheck } from "../pxCheck-a27490eb.js";
|
|
25
|
+
import { u as useTouch } from "../index-7a7385e4.js";
|
|
26
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
28
27
|
const { create } = createComponent("rate");
|
|
29
28
|
const _sfc_main = create({
|
|
30
29
|
props: {
|
|
@@ -152,7 +151,7 @@ const _hoisted_4 = {
|
|
|
152
151
|
key: 1,
|
|
153
152
|
class: "nut-rate-item__icon--half"
|
|
154
153
|
};
|
|
155
|
-
function
|
|
154
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
156
155
|
return openBlock(), createElementBlock("view", {
|
|
157
156
|
class: "nut-rate",
|
|
158
157
|
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
@@ -160,21 +159,35 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
160
159
|
}, [
|
|
161
160
|
(openBlock(true), createElementBlock(Fragment, null, renderList(Number(_ctx.count), (n) => {
|
|
162
161
|
return openBlock(), createElementBlock("view", {
|
|
163
|
-
|
|
162
|
+
id: "rateRefs-" + _ctx.refRandomId + n,
|
|
164
163
|
key: n,
|
|
165
164
|
ref_for: true,
|
|
166
165
|
ref: "rateRefs",
|
|
167
|
-
|
|
166
|
+
class: "nut-rate-item",
|
|
168
167
|
style: normalizeStyle(n < Number(_ctx.count) ? { marginRight: _ctx.pxCheck(_ctx.spacing) } : {})
|
|
169
168
|
}, [
|
|
170
169
|
createElementVNode("view", _hoisted_2, [
|
|
171
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
172
|
-
|
|
170
|
+
(openBlock(), createBlock(resolveDynamicComponent(
|
|
171
|
+
_ctx.renderIcon(_ctx.customIcon, {
|
|
172
|
+
width: _ctx.size,
|
|
173
|
+
height: _ctx.size,
|
|
174
|
+
size: _ctx.size,
|
|
175
|
+
color: n <= Number(_ctx.modelValue) ? _ctx.activeColor : _ctx.voidColor
|
|
176
|
+
})
|
|
177
|
+
), {
|
|
178
|
+
class: normalizeClass(["nut-rate-item__icon", { "nut-rate-item__icon--disabled": _ctx.disabled || n > Number(_ctx.modelValue) }]),
|
|
173
179
|
onClick: ($event) => _ctx.onClick(1, n)
|
|
174
180
|
}, null, 8, ["class", "onClick"]))
|
|
175
181
|
]),
|
|
176
182
|
_ctx.allowHalf && Number(_ctx.modelValue) + 1 > n ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
177
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
183
|
+
(openBlock(), createBlock(resolveDynamicComponent(
|
|
184
|
+
_ctx.renderIcon(_ctx.customIcon, {
|
|
185
|
+
width: _ctx.size,
|
|
186
|
+
height: _ctx.size,
|
|
187
|
+
size: _ctx.size,
|
|
188
|
+
color: n <= Number(_ctx.modelValue) + 1 ? _ctx.activeColor : _ctx.voidColor
|
|
189
|
+
})
|
|
190
|
+
), {
|
|
178
191
|
class: "nut-rate-item__icon",
|
|
179
192
|
onClick: ($event) => _ctx.onClick(2, n)
|
|
180
193
|
}, null, 8, ["onClick"]))
|
|
@@ -188,7 +201,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
188
201
|
}), 128))
|
|
189
202
|
], 32);
|
|
190
203
|
}
|
|
191
|
-
const
|
|
204
|
+
const NutRate = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
192
205
|
export {
|
|
193
|
-
|
|
206
|
+
NutRate as default
|
|
194
207
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { provide, computed, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "
|
|
3
|
-
import { _ as _export_sfc } from "
|
|
4
|
-
import "../locale/lang";
|
|
2
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
3
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
4
|
const { componentName, create } = createComponent("row");
|
|
6
5
|
const _sfc_main = create({
|
|
7
6
|
props: {
|
|
@@ -18,12 +18,15 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, computed, ref, onMounted, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createElementVNode, withModifiers, withDirectives, createBlock, resolveDynamicComponent, vShow } from "vue";
|
|
21
|
-
import { c as createComponent } from "
|
|
22
|
-
import { r as renderIcon } from "
|
|
21
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
22
|
+
import { r as renderIcon } from "../renderIcon-3d0fd47c.js";
|
|
23
23
|
import { CircleClose } from "@nutui/icons-vue";
|
|
24
|
-
import {
|
|
25
|
-
import "../
|
|
26
|
-
|
|
24
|
+
import { u as useLocale } from "../index-c0fa0f6b.js";
|
|
25
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
26
|
+
import "@nutui/nutui/dist/packages/locale/lang";
|
|
27
|
+
import "../util-6f26722f.js";
|
|
28
|
+
const { create } = createComponent("searchbar");
|
|
29
|
+
const cN = "NutSearchbar";
|
|
27
30
|
const _sfc_main = create({
|
|
28
31
|
props: {
|
|
29
32
|
modelValue: {
|
|
@@ -103,6 +106,7 @@ const _sfc_main = create({
|
|
|
103
106
|
"clickRightIcon"
|
|
104
107
|
],
|
|
105
108
|
setup(props, { emit }) {
|
|
109
|
+
const translate = useLocale(cN);
|
|
106
110
|
const state = reactive({
|
|
107
111
|
active: false
|
|
108
112
|
});
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, Fragment, renderList, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "
|
|
3
|
-
import {
|
|
2
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
3
|
+
import { N as NutPopup } from "../index-37ae1f41.js";
|
|
4
4
|
import { Tips } from "@nutui/icons-vue";
|
|
5
|
-
import {
|
|
6
|
-
import "../
|
|
7
|
-
import "
|
|
8
|
-
|
|
5
|
+
import { u as useLocale } from "../index-c0fa0f6b.js";
|
|
6
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
7
|
+
import "../overlay/Overlay.js";
|
|
8
|
+
import "../util-6f26722f.js";
|
|
9
|
+
import "@nutui/nutui/dist/packages/locale/lang";
|
|
10
|
+
const { create } = createComponent("short-password");
|
|
11
|
+
const cN = "NutShortPassword";
|
|
9
12
|
const _sfc_main = create({
|
|
10
13
|
components: {
|
|
11
|
-
|
|
14
|
+
NutPopup,
|
|
12
15
|
Tips
|
|
13
16
|
},
|
|
14
17
|
props: {
|
|
@@ -52,6 +55,7 @@ const _sfc_main = create({
|
|
|
52
55
|
},
|
|
53
56
|
emits: ["update:modelValue", "update:visible", "complete", "tips", "close", "focus"],
|
|
54
57
|
setup(props, { emit }) {
|
|
58
|
+
const translate = useLocale(cN);
|
|
55
59
|
const realInput = ref(props.modelValue);
|
|
56
60
|
const comLen = computed(() => range(Number(props.length)));
|
|
57
61
|
const show = ref(props.visible);
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const ShortPassword = treeshaking(_ShortPassword);
|
|
4
|
-
export { ShortPassword };
|
|
1
|
+
import ShortPassword from './ShortPassword.js';
|
|
2
|
+
export { ShortPassword, ShortPassword as default };
|
|
@@ -18,9 +18,8 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, reactive, onMounted, toRefs, openBlock, createElementBlock, createElementVNode, renderSlot } from "vue";
|
|
21
|
-
import { c as createComponent } from "
|
|
22
|
-
import { _ as _export_sfc } from "
|
|
23
|
-
import "../locale/lang";
|
|
21
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
22
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
23
|
const { create } = createComponent("side-navbar");
|
|
25
24
|
const _sfc_main = create({
|
|
26
25
|
props: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { c as createComponent } from "
|
|
1
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
2
2
|
import { openBlock, createElementBlock, withModifiers, createElementVNode, toDisplayString } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "
|
|
4
|
-
import "../locale/lang";
|
|
3
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
4
|
const { create } = createComponent("side-navbar-item");
|
|
6
5
|
const _sfc_main = create({
|
|
7
6
|
props: {
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const SideNavbarItem = treeshaking(_SideNavbarItem);
|
|
4
|
-
export { SideNavbarItem };
|
|
1
|
+
import SideNavbarItem from './SideNavbarItem.js';
|
|
2
|
+
export { SideNavbarItem, SideNavbarItem as default };
|
|
@@ -18,12 +18,15 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, computed, reactive, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withDirectives, vShow, toDisplayString, createCommentVNode, createVNode, withCtx, createTextVNode } from "vue";
|
|
21
|
-
import { c as createComponent } from "
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
import "../
|
|
21
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
22
|
+
import NutButton from "../button/Button.js";
|
|
23
|
+
import { u as useLocale } from "../index-c0fa0f6b.js";
|
|
24
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
25
25
|
import "@nutui/icons-vue";
|
|
26
|
-
|
|
26
|
+
import "@nutui/nutui/dist/packages/locale/lang";
|
|
27
|
+
import "../util-6f26722f.js";
|
|
28
|
+
const { create } = createComponent("signature");
|
|
29
|
+
const cN = "NutSignature";
|
|
27
30
|
const _sfc_main = create({
|
|
28
31
|
props: {
|
|
29
32
|
customClass: {
|
|
@@ -56,14 +59,15 @@ const _sfc_main = create({
|
|
|
56
59
|
}
|
|
57
60
|
},
|
|
58
61
|
components: {
|
|
59
|
-
|
|
62
|
+
NutButton
|
|
60
63
|
},
|
|
61
64
|
emits: ["start", "end", "signing", "confirm", "clear"],
|
|
62
65
|
setup(props, { emit }) {
|
|
66
|
+
const translate = useLocale(cN);
|
|
63
67
|
const canvas = ref(null);
|
|
64
68
|
const wrap = ref(null);
|
|
65
69
|
const classes = computed(() => {
|
|
66
|
-
const prefixCls =
|
|
70
|
+
const prefixCls = "nut-signature";
|
|
67
71
|
return {
|
|
68
72
|
[prefixCls]: true,
|
|
69
73
|
[`${props.customClass}`]: props.customClass
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { c as createComponent } from "
|
|
1
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
2
2
|
import { toRefs, computed, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, createElementVNode, createBlock, normalizeClass, normalizeStyle, Fragment, renderList } from "vue";
|
|
3
|
-
import
|
|
4
|
-
import { _ as _export_sfc } from "
|
|
5
|
-
import "../locale/lang";
|
|
3
|
+
import NutAvatar from "../avatar/Avatar.js";
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
5
|
const { create } = createComponent("skeleton");
|
|
7
6
|
const _sfc_main = create({
|
|
8
7
|
components: {
|
|
9
|
-
|
|
8
|
+
NutAvatar
|
|
10
9
|
},
|
|
11
10
|
props: {
|
|
12
11
|
//每行宽度
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import { c as createComponent
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import "../
|
|
8
|
-
import "
|
|
2
|
+
import NutPrice from "../price/Price.js";
|
|
3
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
4
|
+
import { u as useLocale } from "../index-c0fa0f6b.js";
|
|
5
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
|
+
import { T as TypeOfFun } from "../util-6f26722f.js";
|
|
7
|
+
import NutInputNumber from "../inputnumber/InputNumber.js";
|
|
8
|
+
import { N as NutPopup } from "../index-37ae1f41.js";
|
|
9
|
+
import "@nutui/nutui/dist/packages/locale/lang";
|
|
10
|
+
import "../pxCheck-a27490eb.js";
|
|
9
11
|
import "@nutui/icons-vue";
|
|
10
|
-
import "
|
|
11
|
-
const { create: create$4
|
|
12
|
+
import "../overlay/Overlay.js";
|
|
13
|
+
const { create: create$4 } = createComponent("sku-header");
|
|
14
|
+
const cN$1 = "NutSkuHeader";
|
|
12
15
|
const _sfc_main$4 = create$4({
|
|
13
16
|
props: {
|
|
14
17
|
goods: {
|
|
@@ -16,15 +19,15 @@ const _sfc_main$4 = create$4({
|
|
|
16
19
|
default: {}
|
|
17
20
|
}
|
|
18
21
|
},
|
|
19
|
-
emits: [],
|
|
20
22
|
components: {
|
|
21
|
-
|
|
23
|
+
NutPrice
|
|
22
24
|
},
|
|
23
25
|
setup(props, { slots }) {
|
|
26
|
+
const translate = useLocale(cN$1);
|
|
24
27
|
const getSlots = (name) => slots[name];
|
|
25
28
|
return {
|
|
26
29
|
getSlots,
|
|
27
|
-
translate
|
|
30
|
+
translate
|
|
28
31
|
};
|
|
29
32
|
}
|
|
30
33
|
});
|
|
@@ -146,7 +149,7 @@ const _sfc_main$2 = create$2({
|
|
|
146
149
|
},
|
|
147
150
|
emits: ["click", "changeSku", "changeStepper", "clickBtnOptions", "overLimit", "reduce", "add"],
|
|
148
151
|
components: {
|
|
149
|
-
|
|
152
|
+
NutInputNumber
|
|
150
153
|
},
|
|
151
154
|
setup(props, { emit }) {
|
|
152
155
|
const goodsCount = ref(props.stepperMin);
|
|
@@ -291,7 +294,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
291
294
|
])) : createCommentVNode("", true);
|
|
292
295
|
}
|
|
293
296
|
const SkuOperate = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
294
|
-
const { create
|
|
297
|
+
const { create } = createComponent("sku");
|
|
298
|
+
const cN = "NutSku";
|
|
295
299
|
const _sfc_main = create({
|
|
296
300
|
props: {
|
|
297
301
|
visible: {
|
|
@@ -372,9 +376,10 @@ const _sfc_main = create({
|
|
|
372
376
|
SkuSelect,
|
|
373
377
|
SkuStepper,
|
|
374
378
|
SkuOperate,
|
|
375
|
-
|
|
379
|
+
NutPopup
|
|
376
380
|
},
|
|
377
381
|
setup(props, { emit, slots }) {
|
|
382
|
+
const translate = useLocale(cN);
|
|
378
383
|
const showPopup = ref(props.visible);
|
|
379
384
|
const goodsCount = ref(props.stepperMin);
|
|
380
385
|
watch(
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { h, Fragment, Comment, Text } from "vue";
|
|
2
|
-
import { c as createComponent } from "
|
|
3
|
-
import "../locale/lang";
|
|
2
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
4
3
|
const { create, componentName } = createComponent("space");
|
|
5
4
|
const _sfc_main = create({
|
|
6
5
|
props: {
|