@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,10 +17,12 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { reactive, computed, onBeforeMount, watch, toRefs, openBlock, createElementBlock,
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import "../
|
|
20
|
+
import { reactive, computed, onBeforeMount, watch, toRefs, openBlock, createElementBlock, renderSlot } from "vue";
|
|
21
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
22
|
+
import { p as padZero } from "../util-6f26722f.js";
|
|
23
|
+
import { u as useLocale } from "../index-c0fa0f6b.js";
|
|
24
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
25
|
+
import "@nutui/nutui/dist/packages/locale/lang";
|
|
24
26
|
const getTimeStamp = (timeStr) => {
|
|
25
27
|
if (!timeStr)
|
|
26
28
|
return Date.now();
|
|
@@ -28,7 +30,8 @@ const getTimeStamp = (timeStr) => {
|
|
|
28
30
|
t = +t > 0 ? +t : t.toString().replace(/-/g, "/");
|
|
29
31
|
return new Date(t).getTime();
|
|
30
32
|
};
|
|
31
|
-
const {
|
|
33
|
+
const { create } = createComponent("countdown");
|
|
34
|
+
const cN = "NutCountdown";
|
|
32
35
|
const _sfc_main = create({
|
|
33
36
|
props: {
|
|
34
37
|
modelValue: {
|
|
@@ -88,6 +91,7 @@ const _sfc_main = create({
|
|
|
88
91
|
"onPaused"
|
|
89
92
|
],
|
|
90
93
|
setup(props, { emit, slots }) {
|
|
94
|
+
const translate = useLocale(cN);
|
|
91
95
|
const state = reactive({
|
|
92
96
|
restTime: 0,
|
|
93
97
|
// 倒计时剩余时间时间
|
|
@@ -99,12 +103,6 @@ const _sfc_main = create({
|
|
|
99
103
|
diffTime: 0
|
|
100
104
|
// 设置了 startTime 时,与 date.now() 的差异
|
|
101
105
|
});
|
|
102
|
-
const classes = computed(() => {
|
|
103
|
-
const prefixCls = componentName;
|
|
104
|
-
return {
|
|
105
|
-
[prefixCls]: true
|
|
106
|
-
};
|
|
107
|
-
});
|
|
108
106
|
const renderTime = computed(() => {
|
|
109
107
|
return formatRemainTime(state.restTime);
|
|
110
108
|
});
|
|
@@ -260,7 +258,6 @@ const _sfc_main = create({
|
|
|
260
258
|
);
|
|
261
259
|
return __spreadProps(__spreadValues({}, toRefs(props)), {
|
|
262
260
|
slots,
|
|
263
|
-
classes,
|
|
264
261
|
start,
|
|
265
262
|
pause,
|
|
266
263
|
renderTime,
|
|
@@ -269,17 +266,16 @@ const _sfc_main = create({
|
|
|
269
266
|
});
|
|
270
267
|
}
|
|
271
268
|
});
|
|
272
|
-
const _hoisted_1 =
|
|
269
|
+
const _hoisted_1 = { class: "nut-countdown" };
|
|
270
|
+
const _hoisted_2 = ["innerHTML"];
|
|
273
271
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
274
|
-
return openBlock(), createElementBlock("view",
|
|
275
|
-
class: normalizeClass(_ctx.classes)
|
|
276
|
-
}, [
|
|
272
|
+
return openBlock(), createElementBlock("view", _hoisted_1, [
|
|
277
273
|
_ctx.slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("view", {
|
|
278
274
|
key: 1,
|
|
279
275
|
class: "nut-countdown__content",
|
|
280
276
|
innerHTML: _ctx.renderTime
|
|
281
|
-
}, null, 8,
|
|
282
|
-
]
|
|
277
|
+
}, null, 8, _hoisted_2))
|
|
278
|
+
]);
|
|
283
279
|
}
|
|
284
280
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
285
281
|
export {
|
|
@@ -18,9 +18,8 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { getCurrentInstance, ref, reactive, watch, nextTick, onMounted, onUnmounted, toRefs, openBlock, createElementBlock, Fragment, normalizeStyle, renderList, createCommentVNode, toDisplayString, createTextVNode } 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
|
function useExtend(apis) {
|
|
25
24
|
const instance = getCurrentInstance();
|
|
26
25
|
if (instance) {
|
|
@@ -18,28 +18,30 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, computed, onBeforeMount, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, renderSlot } from "vue";
|
|
21
|
-
import
|
|
22
|
-
import { c as createComponent
|
|
23
|
-
import {
|
|
24
|
-
import "
|
|
25
|
-
import "
|
|
26
|
-
import "../
|
|
27
|
-
|
|
21
|
+
import NutPicker from "../picker/Picker.js";
|
|
22
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
23
|
+
import { c as isDate$1, p as padZero } from "../util-6f26722f.js";
|
|
24
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
25
|
+
import "../pxCheck-a27490eb.js";
|
|
26
|
+
import "../index-7a7385e4.js";
|
|
27
|
+
import "../index-c0fa0f6b.js";
|
|
28
|
+
import "@nutui/nutui/dist/packages/locale/lang";
|
|
29
|
+
const { create } = createComponent("date-picker");
|
|
28
30
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
29
31
|
function isDate(val) {
|
|
30
32
|
return isDate$1(val) && !isNaN(val.getTime());
|
|
31
33
|
}
|
|
32
34
|
const zhCNType = {
|
|
33
|
-
day:
|
|
34
|
-
year:
|
|
35
|
-
month:
|
|
36
|
-
hour:
|
|
37
|
-
minute:
|
|
38
|
-
seconds:
|
|
35
|
+
day: "日",
|
|
36
|
+
year: "年",
|
|
37
|
+
month: "月",
|
|
38
|
+
hour: "时",
|
|
39
|
+
minute: "分",
|
|
40
|
+
seconds: "秒"
|
|
39
41
|
};
|
|
40
42
|
const _sfc_main = create({
|
|
41
43
|
components: {
|
|
42
|
-
|
|
44
|
+
NutPicker
|
|
43
45
|
},
|
|
44
46
|
props: {
|
|
45
47
|
modelValue: null,
|
|
@@ -22,21 +22,24 @@ var __publicField = (obj, key, value) => {
|
|
|
22
22
|
return value;
|
|
23
23
|
};
|
|
24
24
|
import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, resolveDynamicComponent, nextTick, h } from "vue";
|
|
25
|
-
import { c as createComponent } from "
|
|
26
|
-
import { f as funInterceptor } from "
|
|
27
|
-
import {
|
|
28
|
-
import
|
|
29
|
-
import {
|
|
30
|
-
import
|
|
31
|
-
import "../
|
|
32
|
-
import { C as CreateComponent } from "
|
|
25
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
26
|
+
import { f as funInterceptor } from "../Interceptor-6aab6fe0.js";
|
|
27
|
+
import { N as NutPopup, p as popupProps } from "../index-37ae1f41.js";
|
|
28
|
+
import NutButton from "../button/Button.js";
|
|
29
|
+
import { u as useLocale } from "../index-c0fa0f6b.js";
|
|
30
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
31
|
+
import NutOverlay from "../overlay/Overlay.js";
|
|
32
|
+
import { C as CreateComponent } from "../mountComponent-867a9167.js";
|
|
33
|
+
import "../util-6f26722f.js";
|
|
33
34
|
import "@nutui/icons-vue";
|
|
34
|
-
|
|
35
|
+
import "@nutui/nutui/dist/packages/locale/lang";
|
|
36
|
+
const { create } = createComponent("dialog");
|
|
37
|
+
const cN = "NutDialog";
|
|
35
38
|
const _sfc_main = create({
|
|
36
39
|
inheritAttrs: false,
|
|
37
40
|
components: {
|
|
38
|
-
|
|
39
|
-
|
|
41
|
+
NutPopup,
|
|
42
|
+
NutButton
|
|
40
43
|
},
|
|
41
44
|
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
42
45
|
closeOnClickOverlay: {
|
|
@@ -103,6 +106,7 @@ const _sfc_main = create({
|
|
|
103
106
|
}),
|
|
104
107
|
emits: ["update", "update:visible", "ok", "cancel", "opened", "closed"],
|
|
105
108
|
setup(props, { emit }) {
|
|
109
|
+
const translate = useLocale(cN);
|
|
106
110
|
const showPopup = ref(props.visible);
|
|
107
111
|
onMounted(() => {
|
|
108
112
|
if (props.closeOnPopstate) {
|
|
@@ -120,12 +124,6 @@ const _sfc_main = create({
|
|
|
120
124
|
}
|
|
121
125
|
}
|
|
122
126
|
);
|
|
123
|
-
const classes = computed(() => {
|
|
124
|
-
return {
|
|
125
|
-
[componentName]: true,
|
|
126
|
-
[props.customClass]: true
|
|
127
|
-
};
|
|
128
|
-
});
|
|
129
127
|
const update = (val) => {
|
|
130
128
|
emit("update", val);
|
|
131
129
|
emit("update:visible", val);
|
|
@@ -165,7 +163,6 @@ const _sfc_main = create({
|
|
|
165
163
|
});
|
|
166
164
|
return {
|
|
167
165
|
closed,
|
|
168
|
-
classes,
|
|
169
166
|
onCancel,
|
|
170
167
|
onOk,
|
|
171
168
|
showPopup,
|
|
@@ -200,7 +197,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
200
197
|
}, {
|
|
201
198
|
default: withCtx(() => [
|
|
202
199
|
createElementVNode("view", {
|
|
203
|
-
class: normalizeClass(_ctx.
|
|
200
|
+
class: normalizeClass(["nut-dialog", _ctx.customClass])
|
|
204
201
|
}, [
|
|
205
202
|
_ctx.$slots.header || _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1, [
|
|
206
203
|
_ctx.$slots.header ? renderSlot(_ctx.$slots, "header", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -296,7 +293,7 @@ class DialogFunction {
|
|
|
296
293
|
const options = Object.assign(this.options, _options);
|
|
297
294
|
const { unmount } = CreateComponent(options, {
|
|
298
295
|
name: "dialog",
|
|
299
|
-
components: [
|
|
296
|
+
components: [NutPopup, NutButton, NutOverlay],
|
|
300
297
|
wrapper: (elWrap, root) => {
|
|
301
298
|
return {
|
|
302
299
|
setup() {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { showDialog } from '
|
|
3
|
-
|
|
4
|
-
const Dialog = treeshaking(_Dialog);
|
|
5
|
-
export { Dialog, showDialog };
|
|
1
|
+
import Dialog from './Dialog.js';
|
|
2
|
+
import { showDialog } from './Dialog.js';
|
|
3
|
+
export { Dialog, showDialog, Dialog as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode } 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("divider");
|
|
6
5
|
const _sfc_main = create({
|
|
7
6
|
props: {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ref, reactive, onMounted, onActivated, onDeactivated, openBlock, createElementBlock, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "
|
|
3
|
-
import { r as requestAniFrame } from "
|
|
4
|
-
import { _ as _export_sfc } from "
|
|
5
|
-
import "../locale/lang";
|
|
2
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
3
|
+
import { r as requestAniFrame } from "../raf-729dad54.js";
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
5
|
const { create } = createComponent("drag");
|
|
7
6
|
const _sfc_main = create({
|
|
8
7
|
props: {
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { ref, watch, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, Fragment, renderList, normalizeClass, withDirectives, vModelText, createTextVNode, createVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "../
|
|
6
|
-
import "
|
|
2
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
3
|
+
import NutInputNumber from "../inputnumber/InputNumber.js";
|
|
4
|
+
import { u as useLocale } from "../index-c0fa0f6b.js";
|
|
5
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
|
+
import "../pxCheck-a27490eb.js";
|
|
7
7
|
import "@nutui/icons-vue";
|
|
8
|
-
|
|
8
|
+
import "@nutui/nutui/dist/packages/locale/lang";
|
|
9
|
+
import "../util-6f26722f.js";
|
|
10
|
+
const { create } = createComponent("ecard");
|
|
11
|
+
const cN = "NutEcard";
|
|
9
12
|
const _sfc_main = create({
|
|
10
13
|
components: {
|
|
11
|
-
|
|
14
|
+
NutInputNumber
|
|
12
15
|
},
|
|
13
16
|
props: {
|
|
14
17
|
chooseText: {
|
|
@@ -54,6 +57,7 @@ const _sfc_main = create({
|
|
|
54
57
|
},
|
|
55
58
|
emits: ["inputChange", "changeStep", "inputClick", "change", "update:modelValue"],
|
|
56
59
|
setup(props, { emit }) {
|
|
60
|
+
const translate = useLocale(cN);
|
|
57
61
|
const currentIndex = ref(null);
|
|
58
62
|
const currentValue = ref(null);
|
|
59
63
|
const inputValue = ref("");
|
|
@@ -18,10 +18,9 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, reactive, computed, onMounted, watch, nextTick, toRefs, openBlock, createElementBlock, createElementVNode, normalizeStyle, Fragment, renderList, toDisplayString, normalizeClass, renderSlot, withDirectives, vShow, createCommentVNode, withModifiers } from "vue";
|
|
21
|
-
import { c as createComponent } from "
|
|
22
|
-
import { u as useExpose } from "
|
|
23
|
-
import { _ as _export_sfc } from "
|
|
24
|
-
import "../locale/lang";
|
|
21
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
22
|
+
import { u as useExpose } from "../index-79c5dc33.js";
|
|
23
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
25
24
|
const { create } = createComponent("elevator");
|
|
26
25
|
const _sfc_main = create({
|
|
27
26
|
props: {
|
|
@@ -35,9 +34,7 @@ const _sfc_main = create({
|
|
|
35
34
|
},
|
|
36
35
|
indexList: {
|
|
37
36
|
type: Array,
|
|
38
|
-
default: () =>
|
|
39
|
-
return [];
|
|
40
|
-
}
|
|
37
|
+
default: () => []
|
|
41
38
|
},
|
|
42
39
|
isSticky: {
|
|
43
40
|
type: [Boolean],
|
|
@@ -205,6 +202,7 @@ const _hoisted_6 = { class: "nut-elevator__list__fixed-title" };
|
|
|
205
202
|
const _hoisted_7 = { class: "nut-elevator__bars__inner" };
|
|
206
203
|
const _hoisted_8 = ["data-index", "onClick"];
|
|
207
204
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
205
|
+
var _a, _b;
|
|
208
206
|
return openBlock(), createElementBlock("view", _hoisted_1, [
|
|
209
207
|
createElementVNode("view", {
|
|
210
208
|
ref: "listview",
|
|
@@ -240,7 +238,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
240
238
|
}), 128))
|
|
241
239
|
], 4),
|
|
242
240
|
withDirectives(createElementVNode("view", _hoisted_5, [
|
|
243
|
-
createElementVNode("view", _hoisted_6, toDisplayString(_ctx.indexList[_ctx.currentIndex][_ctx.acceptKey]), 1)
|
|
241
|
+
createElementVNode("view", _hoisted_6, toDisplayString((_b = (_a = _ctx.indexList) == null ? void 0 : _a[_ctx.currentIndex]) == null ? void 0 : _b[_ctx.acceptKey]), 1)
|
|
244
242
|
], 512), [
|
|
245
243
|
[vShow, _ctx.scrollY > 0 && _ctx.isSticky]
|
|
246
244
|
]),
|
|
@@ -269,7 +267,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
269
267
|
], 32)
|
|
270
268
|
]);
|
|
271
269
|
}
|
|
272
|
-
const
|
|
270
|
+
const NutElevator = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
273
271
|
export {
|
|
274
|
-
|
|
272
|
+
NutElevator as default
|
|
275
273
|
};
|
|
@@ -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, watch, onMounted, toRefs, openBlock, createElementBlock, toDisplayString, createCommentVNode, createTextVNode, withModifiers } 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("ellipsis");
|
|
25
24
|
const _sfc_main = create({
|
|
26
25
|
props: {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { computed, openBlock, createElementBlock, createElementVNode, normalizeStyle, renderSlot, createCommentVNode, toDisplayString } from "vue";
|
|
2
|
-
import { c as createComponent } from "
|
|
3
|
-
import { p as pxCheck } from "
|
|
4
|
-
import {
|
|
5
|
-
import "../
|
|
6
|
-
|
|
2
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
3
|
+
import { p as pxCheck } from "../pxCheck-a27490eb.js";
|
|
4
|
+
import { u as useLocale } from "../index-c0fa0f6b.js";
|
|
5
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
|
+
import "@nutui/nutui/dist/packages/locale/lang";
|
|
7
|
+
import "../util-6f26722f.js";
|
|
8
|
+
const { create } = createComponent("empty");
|
|
9
|
+
const cN = "NutEmpty";
|
|
7
10
|
const defaultStatus = {
|
|
8
11
|
empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
|
|
9
12
|
error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
|
|
@@ -25,6 +28,7 @@ const _sfc_main = create({
|
|
|
25
28
|
}
|
|
26
29
|
},
|
|
27
30
|
setup(props) {
|
|
31
|
+
const translate = useLocale(cN);
|
|
28
32
|
const style = computed(() => {
|
|
29
33
|
if (props.imageSize) {
|
|
30
34
|
return {
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createBlock, createCommentVNode, renderSlot, createElementVNode, Fragment, renderList, toDisplayString, createVNode } from "vue";
|
|
2
2
|
import { Left } from "@nutui/icons-vue";
|
|
3
|
-
import
|
|
4
|
-
import { c as createComponent } from "
|
|
5
|
-
import {
|
|
6
|
-
import "../
|
|
7
|
-
|
|
3
|
+
import NutOverlay from "../overlay/Overlay.js";
|
|
4
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
5
|
+
import { u as useLocale } from "../index-c0fa0f6b.js";
|
|
6
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
7
|
+
import "../util-6f26722f.js";
|
|
8
|
+
import "@nutui/nutui/dist/packages/locale/lang";
|
|
9
|
+
const { create } = createComponent("fixed-nav");
|
|
10
|
+
const cN = "NutFixedNav";
|
|
8
11
|
const _sfc_main = create({
|
|
9
12
|
components: {
|
|
10
|
-
|
|
13
|
+
NutOverlay,
|
|
11
14
|
Left
|
|
12
15
|
},
|
|
13
16
|
props: {
|
|
@@ -51,8 +54,9 @@ const _sfc_main = create({
|
|
|
51
54
|
},
|
|
52
55
|
emits: ["update:visible", "selected"],
|
|
53
56
|
setup(props, { emit }) {
|
|
57
|
+
const translate = useLocale(cN);
|
|
54
58
|
const classes = computed(() => {
|
|
55
|
-
const prefixCls =
|
|
59
|
+
const prefixCls = "nut-fixed-nav";
|
|
56
60
|
return {
|
|
57
61
|
[prefixCls]: true,
|
|
58
62
|
active: props.visible,
|
|
@@ -82,7 +86,7 @@ const _hoisted_5 = {
|
|
|
82
86
|
class: "b"
|
|
83
87
|
};
|
|
84
88
|
const _hoisted_6 = { class: "text" };
|
|
85
|
-
function
|
|
89
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
86
90
|
const _component_nut_overlay = resolveComponent("nut-overlay");
|
|
87
91
|
const _component_Left = resolveComponent("Left");
|
|
88
92
|
return openBlock(), createElementBlock("view", {
|
|
@@ -99,9 +103,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
99
103
|
createElementVNode("view", _hoisted_1, [
|
|
100
104
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navList, (item, index2) => {
|
|
101
105
|
return openBlock(), createElementBlock("view", {
|
|
106
|
+
key: item.id || index2,
|
|
102
107
|
class: normalizeClass(["nut-fixed-nav__list-item", { active: item.id == _ctx.current }]),
|
|
103
|
-
onClick: ($event) => _ctx.selected(item, $event)
|
|
104
|
-
key: item.id || index2
|
|
108
|
+
onClick: ($event) => _ctx.selected(item, $event)
|
|
105
109
|
}, [
|
|
106
110
|
createElementVNode("img", {
|
|
107
111
|
src: item.icon
|
|
@@ -123,7 +127,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
123
127
|
])
|
|
124
128
|
], 6);
|
|
125
129
|
}
|
|
126
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render",
|
|
130
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
127
131
|
export {
|
|
128
132
|
index as default
|
|
129
133
|
};
|
|
@@ -33,11 +33,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
33
33
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
|
-
import {
|
|
36
|
+
import { c as createComponent } from "../component-669c158a.js";
|
|
37
37
|
import { computed, reactive, provide, watch, resolveComponent, openBlock, createElementBlock, withModifiers, createVNode, withCtx, renderSlot } from "vue";
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import "../
|
|
38
|
+
import { g as getPropByPath, f as isPromise } from "../util-6f26722f.js";
|
|
39
|
+
import NutCellGroup from "../cellgroup/CellGroup.js";
|
|
40
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
41
41
|
const component = (components) => {
|
|
42
42
|
return {
|
|
43
43
|
props: {
|
|
@@ -151,7 +151,7 @@ const component = (components) => {
|
|
|
151
151
|
const rule = _rules.shift();
|
|
152
152
|
const _a = rule, { validator } = _a, ruleWithoutValidator = __objRest(_a, ["validator"]);
|
|
153
153
|
const { required, regex, message } = ruleWithoutValidator;
|
|
154
|
-
const errorMsg = { prop, message };
|
|
154
|
+
const errorMsg = { prop, message: message || "" };
|
|
155
155
|
if (required) {
|
|
156
156
|
if (!value && value !== 0) {
|
|
157
157
|
return _Promise(errorMsg);
|
|
@@ -216,7 +216,7 @@ const component = (components) => {
|
|
|
216
216
|
const { create } = createComponent("form");
|
|
217
217
|
const _sfc_main = create(
|
|
218
218
|
component({
|
|
219
|
-
|
|
219
|
+
NutCellGroup
|
|
220
220
|
})
|
|
221
221
|
);
|
|
222
222
|
const _hoisted_1 = ["onSubmit"];
|
|
@@ -235,7 +235,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
235
235
|
})
|
|
236
236
|
], 40, _hoisted_1);
|
|
237
237
|
}
|
|
238
|
-
const
|
|
238
|
+
const NutForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
239
239
|
export {
|
|
240
|
-
|
|
240
|
+
NutForm as default
|
|
241
241
|
};
|