@nutui/nutui 4.2.0 → 4.2.2-beta.1
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 +26 -0
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +6839 -6866
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/{_es/Interceptor-006f85b3.js → Interceptor-a7d38af1.js} +1 -1
- package/dist/packages/{_es → actionsheet}/ActionSheet.js +27 -37
- package/dist/packages/actionsheet/index.mjs +2 -4
- package/dist/packages/{_es → address}/Address.js +15 -10
- package/dist/packages/address/index.css +1 -1
- package/dist/packages/address/index.mjs +2 -4
- package/dist/packages/{_es → addresslist}/AddressList.js +23 -27
- package/dist/packages/addresslist/index.mjs +2 -4
- package/dist/packages/{_es → animate}/Animate.js +2 -2
- package/dist/packages/animate/index.mjs +2 -4
- package/dist/packages/{_es → audio}/Audio.js +6 -6
- package/dist/packages/audio/index.mjs +2 -4
- package/dist/packages/{_es → audiooperate}/AudioOperate.js +8 -5
- package/dist/packages/audiooperate/index.mjs +2 -4
- package/dist/packages/{_es → avatar}/Avatar.js +4 -4
- package/dist/packages/avatar/index.mjs +2 -4
- package/dist/packages/{_es → avatarcropper}/AvatarCropper.js +6 -6
- package/dist/packages/avatarcropper/index.mjs +2 -4
- package/dist/packages/{_es → avatargroup}/AvatarGroup.js +4 -4
- package/dist/packages/avatargroup/index.mjs +2 -4
- package/dist/packages/{_es → backtop}/Backtop.js +3 -3
- package/dist/packages/backtop/index.mjs +2 -4
- package/dist/packages/{_es → badge}/Badge.js +4 -4
- package/dist/packages/badge/index.mjs +2 -4
- package/dist/packages/{_es → barrage}/Barrage.js +11 -16
- package/dist/packages/barrage/index.mjs +2 -4
- package/dist/packages/{_es → button}/Button.js +4 -4
- package/dist/packages/button/index.mjs +2 -4
- package/dist/packages/{_es → calendar}/Calendar.js +16 -12
- package/dist/packages/calendar/index.mjs +2 -4
- package/dist/packages/calendaritem/CalendarItem.js +11 -0
- package/dist/packages/calendaritem/index.mjs +2 -4
- package/dist/packages/{_es → card}/Card.js +6 -6
- package/dist/packages/card/index.mjs +2 -4
- package/dist/packages/{_es → cascader}/Cascader.js +23 -20
- package/dist/packages/cascader/index.mjs +2 -4
- package/dist/packages/{_es → category}/Category.js +2 -2
- package/dist/packages/category/index.mjs +2 -4
- package/dist/packages/{_es → categorypane}/CategoryPane.js +2 -2
- package/dist/packages/categorypane/index.mjs +2 -4
- package/dist/packages/{_es → cell}/Cell.js +15 -9
- package/dist/packages/cell/index.mjs +2 -4
- package/dist/packages/{_es → cellgroup}/CellGroup.js +4 -4
- package/dist/packages/cellgroup/index.mjs +2 -4
- package/dist/packages/{_es → checkbox}/Checkbox.js +2 -2
- package/dist/packages/checkbox/index.css +1 -1
- package/dist/packages/checkbox/index.mjs +2 -4
- package/dist/packages/checkbox/index.scss +1 -0
- package/dist/packages/{_es → checkboxgroup}/CheckboxGroup.js +2 -2
- package/dist/packages/checkboxgroup/index.mjs +2 -4
- package/dist/packages/{_es → circleprogress}/CircleProgress.js +2 -2
- package/dist/packages/circleprogress/index.mjs +2 -4
- package/dist/packages/{_es → col}/Col.js +2 -2
- package/dist/packages/col/index.mjs +2 -4
- package/dist/packages/{_es → collapse}/Collapse.js +11 -16
- package/dist/packages/collapse/index.mjs +2 -4
- package/dist/packages/{_es → collapseitem}/CollapseItem.js +3 -3
- package/dist/packages/collapseitem/index.mjs +2 -4
- package/dist/packages/{_es → comment}/Comment.js +34 -34
- package/dist/packages/comment/index.mjs +2 -4
- package/dist/packages/{_es/common-728db750.js → common-3db007cd.js} +2 -2
- package/dist/packages/{_es/component-f86a70df.js → component-a8dfbf81.js} +7 -7
- package/dist/packages/{_es → configprovider}/ConfigProvider.js +1 -1
- package/dist/packages/configprovider/index.mjs +2 -4
- package/dist/packages/{_es → countdown}/Countdown.js +12 -17
- package/dist/packages/countdown/index.mjs +2 -4
- package/dist/packages/{_es → countup}/Countup.js +2 -2
- package/dist/packages/countup/index.mjs +2 -4
- package/dist/packages/{_es → datepicker}/DatePicker.js +14 -13
- package/dist/packages/datepicker/index.mjs +2 -4
- package/dist/packages/{_es → dialog}/Dialog.js +26 -21
- package/dist/packages/dialog/index.mjs +3 -5
- package/dist/packages/{_es → divider}/Divider.js +2 -2
- package/dist/packages/divider/index.mjs +2 -4
- package/dist/packages/{_es → drag}/Drag.js +7 -14
- package/dist/packages/drag/index.mjs +2 -4
- package/dist/packages/{_es → ecard}/Ecard.js +9 -6
- package/dist/packages/ecard/index.mjs +2 -4
- package/dist/packages/{_es → elevator}/Elevator.js +34 -51
- package/dist/packages/elevator/index.css +1 -1
- package/dist/packages/elevator/index.mjs +2 -4
- package/dist/packages/elevator/index.scss +0 -13
- package/dist/packages/{_es → ellipsis}/Ellipsis.js +7 -13
- package/dist/packages/ellipsis/index.mjs +2 -4
- package/dist/packages/{_es → empty}/Empty.js +7 -4
- package/dist/packages/empty/index.mjs +2 -4
- package/dist/packages/{_es → fixednav}/FixedNav.js +13 -10
- package/dist/packages/fixednav/index.mjs +2 -4
- package/dist/packages/{_es → form}/Form.js +7 -7
- package/dist/packages/form/index.mjs +2 -4
- package/dist/packages/{_es → formitem}/FormItem.js +23 -12
- package/dist/packages/formitem/index.mjs +2 -4
- package/dist/packages/{_es → grid}/Grid.js +3 -3
- package/dist/packages/grid/index.mjs +2 -4
- package/dist/packages/{_es → griditem}/GridItem.js +5 -5
- package/dist/packages/griditem/index.mjs +2 -4
- package/dist/packages/{_es → image}/Image.js +3 -3
- package/dist/packages/image/index.mjs +2 -4
- package/dist/packages/{_es → imagepreview}/ImagePreview.js +19 -18
- package/dist/packages/imagepreview/index.css +1 -1
- package/dist/packages/imagepreview/index.mjs +3 -5
- package/dist/packages/{_es/index-b53aec83.js → index-47708e50.js} +10 -6
- package/dist/packages/index-99fdd331.js +17 -0
- package/dist/packages/{_es/index-5a1e6d22.js → index-ae743c4f.js} +5 -5
- package/dist/packages/{_es/index.vue_vue_type_script_lang-0ccf787e.js → index.vue_vue_type_script_lang-336a1e7d.js} +2 -2
- package/dist/packages/{_es/index.vue_vue_type_script_lang-1e118ab6.js → index.vue_vue_type_script_lang-e1fb856d.js} +1 -1
- package/dist/packages/{_es → indicator}/Indicator.js +2 -2
- package/dist/packages/indicator/index.mjs +2 -4
- package/dist/packages/{_es → infiniteloading}/InfiniteLoading.js +25 -28
- package/dist/packages/infiniteloading/index.mjs +2 -4
- package/dist/packages/{_es → input}/Input.js +17 -9
- package/dist/packages/input/index.mjs +2 -4
- package/dist/packages/{_es → inputnumber}/InputNumber.js +5 -5
- package/dist/packages/inputnumber/index.mjs +2 -4
- package/dist/packages/{_es → invoice}/Invoice.js +16 -16
- package/dist/packages/invoice/index.mjs +2 -4
- package/dist/packages/{_es → layout}/Layout.js +1 -1
- package/dist/packages/layout/index.mjs +2 -4
- package/dist/packages/{_es → list}/List.js +7 -14
- 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 -3
- package/dist/packages/menu/index.mjs +2 -4
- package/dist/packages/{_es → menuitem}/MenuItem.js +5 -5
- package/dist/packages/menuitem/index.mjs +2 -4
- package/dist/packages/{_es/mountComponent-053caf41.js → mountComponent-614f1309.js} +1 -1
- package/dist/packages/{_es → navbar}/Navbar.js +2 -2
- package/dist/packages/navbar/index.mjs +2 -4
- package/dist/packages/{_es → noticebar}/Noticebar.js +20 -30
- package/dist/packages/noticebar/index.mjs +2 -4
- package/dist/packages/{_es → notify}/Notify.js +5 -5
- package/dist/packages/notify/index.mjs +3 -5
- package/dist/packages/{_es → numberkeyboard}/NumberKeyboard.js +9 -6
- package/dist/packages/numberkeyboard/index.mjs +2 -4
- package/dist/packages/{_es → overlay}/Overlay.js +4 -4
- package/dist/packages/overlay/index.mjs +2 -4
- package/dist/packages/{_es → pagination}/Pagination.js +6 -3
- package/dist/packages/pagination/index.mjs +2 -4
- package/dist/packages/{_es → picker}/Picker.js +22 -20
- package/dist/packages/picker/index.mjs +2 -4
- package/dist/packages/{_es → popover}/Popover.js +9 -9
- 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 -4
- package/dist/packages/price/index.mjs +2 -4
- package/dist/packages/{_es → progress}/Progress.js +4 -4
- package/dist/packages/progress/index.mjs +2 -4
- package/dist/packages/{_es → pullrefresh}/PullRefresh.js +39 -29
- package/dist/packages/pullrefresh/index.mjs +2 -4
- package/dist/packages/pxCheck-a27490eb.js +8 -0
- package/dist/packages/radio/Radio.js +9 -0
- package/dist/packages/radio/index.mjs +2 -4
- package/dist/packages/radiogroup/RadioGroup.js +7 -0
- package/dist/packages/radiogroup/index.mjs +2 -4
- package/dist/packages/{_es → range}/Range.js +6 -6
- package/dist/packages/range/index.mjs +2 -4
- package/dist/packages/{_es → rate}/Rate.js +32 -26
- package/dist/packages/rate/index.mjs +2 -4
- package/dist/packages/{_es → row}/Row.js +2 -2
- package/dist/packages/row/index.mjs +2 -4
- package/dist/packages/{_es → searchbar}/Searchbar.js +7 -4
- package/dist/packages/searchbar/index.mjs +2 -4
- package/dist/packages/{_es → shortpassword}/ShortPassword.js +9 -6
- package/dist/packages/shortpassword/index.mjs +2 -4
- package/dist/packages/{_es → sidenavbar}/SideNavbar.js +12 -20
- package/dist/packages/sidenavbar/index.mjs +2 -4
- package/dist/packages/{_es → sidenavbaritem}/SideNavbarItem.js +8 -15
- package/dist/packages/sidenavbaritem/index.mjs +2 -4
- package/dist/packages/{_es → signature}/Signature.js +9 -6
- package/dist/packages/signature/index.mjs +2 -4
- package/dist/packages/{_es → skeleton}/Skeleton.js +4 -4
- package/dist/packages/skeleton/index.mjs +2 -4
- package/dist/packages/{_es → sku}/Sku.js +32 -42
- package/dist/packages/sku/index.mjs +2 -4
- package/dist/packages/{_es → space}/Space.js +1 -1
- package/dist/packages/space/index.mjs +2 -4
- package/dist/packages/{_es → step}/Step.js +2 -2
- package/dist/packages/step/index.mjs +2 -4
- package/dist/packages/{_es → steps}/Steps.js +1 -1
- package/dist/packages/steps/index.mjs +2 -4
- package/dist/packages/{_es → sticky}/Sticky.js +8 -7
- package/dist/packages/sticky/index.mjs +2 -4
- package/dist/packages/{_es → subsidenavbar}/SubSideNavbar.js +8 -15
- package/dist/packages/subsidenavbar/index.mjs +2 -4
- package/dist/packages/{_es → swipe}/Swipe.js +5 -5
- package/dist/packages/swipe/index.mjs +2 -4
- package/dist/packages/{_es → swipegroup}/SwipeGroup.js +2 -2
- package/dist/packages/swipegroup/index.mjs +2 -4
- package/dist/packages/{_es → swiper}/Swiper.js +18 -17
- package/dist/packages/swiper/index.css +1 -1
- package/dist/packages/swiper/index.mjs +2 -4
- package/dist/packages/swiper/index.scss +0 -1
- package/dist/packages/{_es → swiperitem}/SwiperItem.js +10 -17
- package/dist/packages/swiperitem/index.mjs +2 -4
- package/dist/packages/{_es → switch}/Switch.js +2 -2
- package/dist/packages/switch/index.mjs +2 -4
- package/dist/packages/{_es → tabbar}/Tabbar.js +2 -2
- package/dist/packages/tabbar/index.mjs +2 -4
- package/dist/packages/{_es → tabbaritem}/TabbarItem.js +6 -6
- package/dist/packages/tabbaritem/index.mjs +2 -4
- package/dist/packages/{_es → table}/Table.js +30 -39
- package/dist/packages/table/index.mjs +2 -4
- package/dist/packages/{_es → tabpane}/TabPane.js +4 -4
- package/dist/packages/tabpane/index.mjs +2 -4
- package/dist/packages/{_es → tabs}/Tabs.js +11 -11
- package/dist/packages/tabs/index.mjs +2 -4
- package/dist/packages/{_es → tag}/Tag.js +4 -4
- package/dist/packages/tag/index.mjs +2 -4
- package/dist/packages/{_es → textarea}/Textarea.js +7 -4
- package/dist/packages/textarea/index.mjs +2 -4
- package/dist/packages/{_es → timedetail}/TimeDetail.js +17 -28
- package/dist/packages/timedetail/index.mjs +2 -4
- package/dist/packages/{_es → timepannel}/TimePannel.js +2 -2
- package/dist/packages/timepannel/index.mjs +2 -4
- package/dist/packages/{_es → timeselect}/TimeSelect.js +28 -34
- package/dist/packages/timeselect/index.mjs +2 -4
- package/dist/packages/{_es → toast}/Toast.js +4 -4
- package/dist/packages/toast/index.mjs +3 -5
- package/dist/packages/{_es → tour}/Tour.js +8 -9
- package/dist/packages/tour/index.mjs +2 -4
- package/dist/packages/{_es → trendarrow}/TrendArrow.js +8 -15
- package/dist/packages/trendarrow/index.mjs +2 -4
- package/dist/packages/{_es → uploader}/Uploader.js +10 -8
- package/dist/packages/uploader/index.mjs +2 -4
- package/dist/packages/{_es → video}/Video.js +8 -5
- package/dist/packages/video/index.mjs +2 -4
- package/dist/packages/{_es → watermark}/Watermark.js +2 -2
- package/dist/packages/watermark/index.mjs +2 -4
- package/dist/smartips/web-types.json +38 -2
- package/dist/style.css +1 -1
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +12 -20
- 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/barrage/index.vue.d.ts +0 -3
- package/dist/types/__VUE/calendar/index.vue.d.ts +4 -2
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +4 -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/collapse/index.vue.d.ts +0 -3
- 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 +2 -5
- package/dist/types/__VUE/countdown/index.vue.d.ts +1 -4
- package/dist/types/__VUE/dialog/index.d.ts +10 -8
- package/dist/types/__VUE/dialog/index.vue.d.ts +10 -4
- package/dist/types/__VUE/drag/index.vue.d.ts +0 -3
- package/dist/types/__VUE/ecard/index.vue.d.ts +1 -1
- package/dist/types/__VUE/elevator/index.vue.d.ts +0 -6
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +0 -3
- 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/imagepreview/index.d.ts +1 -0
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -4
- package/dist/types/__VUE/input/index.vue.d.ts +7 -4
- package/dist/types/__VUE/input/type.d.ts +5 -0
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
- package/dist/types/__VUE/list/index.vue.d.ts +0 -3
- package/dist/types/__VUE/noticebar/index.vue.d.ts +5 -24
- 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/pullrefresh/index.vue.d.ts +20 -5
- package/dist/types/__VUE/rate/index.vue.d.ts +4 -5
- package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +0 -3
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +0 -3
- 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 +9 -177
- package/dist/types/__VUE/sticky/index.vue.d.ts +3 -0
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +0 -3
- package/dist/types/__VUE/swiper/index.vue.d.ts +0 -3
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +0 -3
- package/dist/types/__VUE/table/common.d.ts +7 -7
- package/dist/types/__VUE/table/index.vue.d.ts +13 -16
- 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 +3 -2
- package/dist/types/__VUE/timedetail/index.vue.d.ts +4 -6
- package/dist/types/__VUE/timeselect/index.vue.d.ts +2 -6
- package/dist/types/__VUE/tour/index.vue.d.ts +12 -11
- package/dist/types/__VUE/trendarrow/index.vue.d.ts +0 -3
- 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/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/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
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ref, reactive, computed, provide, onDeactivated, onBeforeUnmount, watch, nextTick, openBlock, createElementBlock,
|
|
2
|
-
import { c as createComponent,
|
|
3
|
-
import { u as useTouch } from "
|
|
4
|
-
import { u as useExpose } from "
|
|
5
|
-
import { r as requestAniFrame } from "
|
|
6
|
-
import { _ as _export_sfc } from "
|
|
1
|
+
import { ref, reactive, computed, provide, onDeactivated, onBeforeUnmount, watch, nextTick, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode } from "vue";
|
|
2
|
+
import { c as createComponent, f as clamp } from "../component-a8dfbf81.js";
|
|
3
|
+
import { u as useTouch } from "../index-7a7385e4.js";
|
|
4
|
+
import { u as useExpose } from "../index-79c5dc33.js";
|
|
5
|
+
import { r as requestAniFrame } from "../raf-729dad54.js";
|
|
6
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
8
|
const { create, componentName } = createComponent("swiper");
|
|
9
9
|
const _sfc_main = create({
|
|
@@ -76,12 +76,6 @@ const _sfc_main = create({
|
|
|
76
76
|
style: {}
|
|
77
77
|
});
|
|
78
78
|
const touch = useTouch();
|
|
79
|
-
const classes = computed(() => {
|
|
80
|
-
const prefixCls = componentName;
|
|
81
|
-
return {
|
|
82
|
-
[prefixCls]: true
|
|
83
|
-
};
|
|
84
|
-
});
|
|
85
79
|
const isVertical = computed(() => props.direction === "vertical");
|
|
86
80
|
const classesInner = computed(() => {
|
|
87
81
|
const prefixCls = componentName;
|
|
@@ -342,6 +336,14 @@ const _sfc_main = create({
|
|
|
342
336
|
});
|
|
343
337
|
}
|
|
344
338
|
);
|
|
339
|
+
watch(
|
|
340
|
+
() => props.height,
|
|
341
|
+
() => {
|
|
342
|
+
nextTick(() => {
|
|
343
|
+
init();
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
);
|
|
345
347
|
watch(
|
|
346
348
|
() => state.children.length,
|
|
347
349
|
() => {
|
|
@@ -358,7 +360,6 @@ const _sfc_main = create({
|
|
|
358
360
|
);
|
|
359
361
|
return {
|
|
360
362
|
state,
|
|
361
|
-
classes,
|
|
362
363
|
classesInner,
|
|
363
364
|
classesPagination,
|
|
364
365
|
container,
|
|
@@ -372,7 +373,7 @@ const _sfc_main = create({
|
|
|
372
373
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
373
374
|
return openBlock(), createElementBlock("view", {
|
|
374
375
|
ref: "container",
|
|
375
|
-
class:
|
|
376
|
+
class: "nut-swiper",
|
|
376
377
|
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
377
378
|
onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
|
|
378
379
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
|
|
@@ -399,9 +400,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
399
400
|
}, null, 6);
|
|
400
401
|
}), 128))
|
|
401
402
|
], 2)) : createCommentVNode("", true)
|
|
402
|
-
],
|
|
403
|
+
], 544);
|
|
403
404
|
}
|
|
404
|
-
const
|
|
405
|
+
const NutSwiper = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
405
406
|
export {
|
|
406
|
-
|
|
407
|
+
NutSwiper as default
|
|
407
408
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nut-swiper{position:relative;
|
|
1
|
+
.nut-swiper{position:relative;display:flex;transition-property:transform;box-sizing:content-box;overflow:hidden;cursor:grab;user-select:none}.nut-swiper-inner{display:flex;height:100%}.nut-swiper-vertical{-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}.nut-swiper-pagination{display:flex;position:absolute;left:50%;bottom:12px;transform:translateX(-50%)}.nut-swiper-pagination i{width:var(--nut-swiper-pagination-item-width, 8px);height:var(--nut-swiper-pagination-item-height, 3px);margin-right:var(--nut-swiper-pagination-item-margin-right, 7px);border-radius:var(--nut-swiper-pagination-item-border-radius, 2px)}.nut-swiper-pagination i:last-child{margin-right:0}.nut-swiper-pagination-vertical{top:50%;left:12px;bottom:auto;flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;transform:translateY(-50%)}.nut-swiper-pagination-vertical i{margin-bottom:5px}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { inject, getCurrentInstance, reactive, computed, onUnmounted, openBlock, createElementBlock,
|
|
2
|
-
import { c as createComponent } from "
|
|
3
|
-
import { u as useExpose } from "
|
|
4
|
-
import { _ as _export_sfc } from "
|
|
1
|
+
import { inject, getCurrentInstance, reactive, computed, onUnmounted, openBlock, createElementBlock, normalizeStyle, renderSlot } from "vue";
|
|
2
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
3
|
+
import { u as useExpose } from "../index-79c5dc33.js";
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
|
-
const { create
|
|
6
|
+
const { create } = createComponent("swiper-item");
|
|
7
7
|
const _sfc_main = create({
|
|
8
8
|
setup() {
|
|
9
9
|
const parent = inject("parent");
|
|
@@ -11,12 +11,6 @@ const _sfc_main = create({
|
|
|
11
11
|
const state = reactive({
|
|
12
12
|
offset: 0
|
|
13
13
|
});
|
|
14
|
-
const classes = computed(() => {
|
|
15
|
-
const prefixCls = componentName;
|
|
16
|
-
return {
|
|
17
|
-
[prefixCls]: true
|
|
18
|
-
};
|
|
19
|
-
});
|
|
20
14
|
const style = computed(() => {
|
|
21
15
|
const style2 = {};
|
|
22
16
|
const direction = parent == null ? void 0 : parent.props.direction;
|
|
@@ -36,20 +30,19 @@ const _sfc_main = create({
|
|
|
36
30
|
});
|
|
37
31
|
useExpose({ setOffset });
|
|
38
32
|
return {
|
|
39
|
-
style
|
|
40
|
-
classes
|
|
33
|
+
style
|
|
41
34
|
};
|
|
42
35
|
}
|
|
43
36
|
});
|
|
44
37
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
45
38
|
return openBlock(), createElementBlock("view", {
|
|
46
|
-
class:
|
|
39
|
+
class: "nut-swiper-item",
|
|
47
40
|
style: normalizeStyle(_ctx.style)
|
|
48
41
|
}, [
|
|
49
42
|
renderSlot(_ctx.$slots, "default")
|
|
50
|
-
],
|
|
43
|
+
], 4);
|
|
51
44
|
}
|
|
52
|
-
const
|
|
45
|
+
const NutSwiperItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
53
46
|
export {
|
|
54
|
-
|
|
47
|
+
NutSwiperItem as default
|
|
55
48
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createVNode, createCommentVNode, Fragment, withDirectives, toDisplayString, vShow } from "vue";
|
|
2
|
-
import { c as createComponent } from "
|
|
2
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
3
3
|
import { Loading1 } from "@nutui/icons-vue";
|
|
4
|
-
import { _ as _export_sfc } from "
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
const { componentName, create } = createComponent("switch");
|
|
7
7
|
const _sfc_main = create({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toRefs, ref, reactive, provide, watch, onMounted, nextTick, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "
|
|
3
|
-
import { _ as _export_sfc } from "
|
|
2
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
3
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { create } = createComponent("tabbar");
|
|
6
6
|
const _sfc_main = create({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as createComponent } from "
|
|
2
|
-
import { r as renderIcon } from "
|
|
1
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
2
|
+
import { r as renderIcon } from "../renderIcon-3d0fd47c.js";
|
|
3
3
|
import { inject, reactive, getCurrentInstance, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, toDisplayString } from "vue";
|
|
4
|
-
import { u as useRouter } from "
|
|
5
|
-
import
|
|
6
|
-
import { _ as _export_sfc } from "
|
|
4
|
+
import { u as useRouter } from "../index-54d03fc1.js";
|
|
5
|
+
import NutBadge from "../badge/Badge.js";
|
|
6
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
8
|
const { create } = createComponent("tabbar-item");
|
|
9
9
|
const _sfc_main = create({
|
|
10
|
-
components: {
|
|
10
|
+
components: { NutBadge },
|
|
11
11
|
props: {
|
|
12
12
|
tabTitle: {
|
|
13
13
|
// 标签页的标题
|
|
@@ -17,10 +17,11 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, h, reactive,
|
|
21
|
-
import { c as createComponent } from "
|
|
20
|
+
import { defineComponent, h, reactive, watch, toRefs, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
21
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
22
22
|
import { DownArrow } from "@nutui/icons-vue";
|
|
23
|
-
import {
|
|
23
|
+
import { u as useLocale } from "../index-99fdd331.js";
|
|
24
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
25
|
import "../locale/lang";
|
|
25
26
|
const RenderColumn = defineComponent({
|
|
26
27
|
props: {
|
|
@@ -37,7 +38,8 @@ const RenderColumn = defineComponent({
|
|
|
37
38
|
return () => h(`view`, {}, props.slots[0] ? props.slots[0](props.record) : props.slots[1](props.record));
|
|
38
39
|
}
|
|
39
40
|
});
|
|
40
|
-
const {
|
|
41
|
+
const { create } = createComponent("table");
|
|
42
|
+
const cN = "NutTable";
|
|
41
43
|
const _sfc_main = create({
|
|
42
44
|
components: {
|
|
43
45
|
RenderColumn,
|
|
@@ -50,15 +52,11 @@ const _sfc_main = create({
|
|
|
50
52
|
},
|
|
51
53
|
columns: {
|
|
52
54
|
type: Array,
|
|
53
|
-
default: () =>
|
|
54
|
-
return [];
|
|
55
|
-
}
|
|
55
|
+
default: () => []
|
|
56
56
|
},
|
|
57
57
|
data: {
|
|
58
58
|
type: Object,
|
|
59
|
-
default: () => {
|
|
60
|
-
return {};
|
|
61
|
-
}
|
|
59
|
+
default: () => ({})
|
|
62
60
|
},
|
|
63
61
|
summary: {
|
|
64
62
|
type: Function,
|
|
@@ -71,15 +69,10 @@ const _sfc_main = create({
|
|
|
71
69
|
},
|
|
72
70
|
emits: ["sorter"],
|
|
73
71
|
setup(props, { emit }) {
|
|
72
|
+
const translate = useLocale(cN);
|
|
74
73
|
const state = reactive({
|
|
75
74
|
curData: props.data
|
|
76
75
|
});
|
|
77
|
-
const classes = computed(() => {
|
|
78
|
-
const prefixCls = componentName;
|
|
79
|
-
return {
|
|
80
|
-
[prefixCls]: true
|
|
81
|
-
};
|
|
82
|
-
});
|
|
83
76
|
const cellClasses = (item) => {
|
|
84
77
|
return {
|
|
85
78
|
"nut-table__main__head__tr--border": props.bordered,
|
|
@@ -117,7 +110,6 @@ const _sfc_main = create({
|
|
|
117
110
|
}
|
|
118
111
|
);
|
|
119
112
|
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
120
|
-
classes,
|
|
121
113
|
cellClasses,
|
|
122
114
|
getColumnItem,
|
|
123
115
|
getColumnItemStyle,
|
|
@@ -129,35 +121,34 @@ const _sfc_main = create({
|
|
|
129
121
|
});
|
|
130
122
|
}
|
|
131
123
|
});
|
|
132
|
-
const _hoisted_1 = { class: "nut-
|
|
133
|
-
const _hoisted_2 = { class: "nut-
|
|
134
|
-
const _hoisted_3 =
|
|
135
|
-
const _hoisted_4 =
|
|
136
|
-
const _hoisted_5 = {
|
|
137
|
-
const _hoisted_6 = {
|
|
124
|
+
const _hoisted_1 = { class: "nut-table" };
|
|
125
|
+
const _hoisted_2 = { class: "nut-table__main__head" };
|
|
126
|
+
const _hoisted_3 = { class: "nut-table__main__head__tr" };
|
|
127
|
+
const _hoisted_4 = ["onClick"];
|
|
128
|
+
const _hoisted_5 = { class: "nut-table__main__body" };
|
|
129
|
+
const _hoisted_6 = { key: 1 };
|
|
130
|
+
const _hoisted_7 = {
|
|
138
131
|
key: 0,
|
|
139
132
|
class: "nut-table__nodata"
|
|
140
133
|
};
|
|
141
|
-
const
|
|
134
|
+
const _hoisted_8 = {
|
|
142
135
|
key: 0,
|
|
143
136
|
class: "nut-table__nodata__text"
|
|
144
137
|
};
|
|
145
|
-
const
|
|
138
|
+
const _hoisted_9 = {
|
|
146
139
|
key: 1,
|
|
147
140
|
class: "nut-table__summary"
|
|
148
141
|
};
|
|
149
|
-
const
|
|
142
|
+
const _hoisted_10 = ["innerHTML"];
|
|
150
143
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
151
144
|
const _component_DownArrow = resolveComponent("DownArrow");
|
|
152
145
|
const _component_RenderColumn = resolveComponent("RenderColumn");
|
|
153
|
-
return openBlock(), createElementBlock("view",
|
|
154
|
-
class: normalizeClass(_ctx.classes)
|
|
155
|
-
}, [
|
|
146
|
+
return openBlock(), createElementBlock("view", _hoisted_1, [
|
|
156
147
|
createElementVNode("view", {
|
|
157
148
|
class: normalizeClass(["nut-table__main", { "nut-table__main--striped": _ctx.striped }])
|
|
158
149
|
}, [
|
|
159
|
-
createElementVNode("view",
|
|
160
|
-
createElementVNode("view",
|
|
150
|
+
createElementVNode("view", _hoisted_2, [
|
|
151
|
+
createElementVNode("view", _hoisted_3, [
|
|
161
152
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (item) => {
|
|
162
153
|
return openBlock(), createElementBlock("span", {
|
|
163
154
|
key: item.key,
|
|
@@ -172,11 +163,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
172
163
|
width: "12px",
|
|
173
164
|
height: "12px"
|
|
174
165
|
})) : createCommentVNode("", true)
|
|
175
|
-
], 14,
|
|
166
|
+
], 14, _hoisted_4);
|
|
176
167
|
}), 128))
|
|
177
168
|
])
|
|
178
169
|
]),
|
|
179
|
-
createElementVNode("view",
|
|
170
|
+
createElementVNode("view", _hoisted_5, [
|
|
180
171
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.curData, (item) => {
|
|
181
172
|
return openBlock(), createElementBlock("view", {
|
|
182
173
|
key: item,
|
|
@@ -192,28 +183,28 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
192
183
|
key: 0,
|
|
193
184
|
slots: [render, item[value]],
|
|
194
185
|
record: item
|
|
195
|
-
}, null, 8, ["slots", "record"])) : (openBlock(), createElementBlock("view",
|
|
186
|
+
}, null, 8, ["slots", "record"])) : (openBlock(), createElementBlock("view", _hoisted_6, toDisplayString(item[value]), 1))
|
|
196
187
|
], 6);
|
|
197
188
|
}), 128))
|
|
198
189
|
]);
|
|
199
190
|
}), 128))
|
|
200
191
|
])
|
|
201
192
|
], 2),
|
|
202
|
-
!_ctx.curData.length ? (openBlock(), createElementBlock("view",
|
|
193
|
+
!_ctx.curData.length ? (openBlock(), createElementBlock("view", _hoisted_7, [
|
|
203
194
|
createElementVNode("div", {
|
|
204
195
|
class: normalizeClass(["nut-table__nodata", { "nut-table__nodata--border": _ctx.bordered }])
|
|
205
196
|
}, [
|
|
206
197
|
renderSlot(_ctx.$slots, "nodata"),
|
|
207
|
-
!_ctx.$slots.nodata ? (openBlock(), createElementBlock("div",
|
|
198
|
+
!_ctx.$slots.nodata ? (openBlock(), createElementBlock("div", _hoisted_8, toDisplayString(_ctx.translate("noData")), 1)) : createCommentVNode("", true)
|
|
208
199
|
], 2)
|
|
209
200
|
])) : createCommentVNode("", true),
|
|
210
|
-
_ctx.summary ? (openBlock(), createElementBlock("view",
|
|
201
|
+
_ctx.summary ? (openBlock(), createElementBlock("view", _hoisted_9, [
|
|
211
202
|
createElementVNode("span", {
|
|
212
203
|
class: "nut-table__summary__text",
|
|
213
204
|
innerHTML: _ctx.summary().value
|
|
214
|
-
}, null, 8,
|
|
205
|
+
}, null, 8, _hoisted_10)
|
|
215
206
|
])) : createCommentVNode("", true)
|
|
216
|
-
]
|
|
207
|
+
]);
|
|
217
208
|
}
|
|
218
209
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
219
210
|
export {
|
|
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { inject, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
21
|
-
import { c as createComponent } from "
|
|
22
|
-
import { _ as _export_sfc } from "
|
|
21
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
22
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
23
|
import "../locale/lang";
|
|
24
24
|
const { create } = createComponent("tab-pane");
|
|
25
25
|
const _sfc_main = create({
|
|
@@ -58,7 +58,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
58
58
|
renderSlot(_ctx.$slots, "default")
|
|
59
59
|
], 6);
|
|
60
60
|
}
|
|
61
|
-
const
|
|
61
|
+
const NutTabPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
62
62
|
export {
|
|
63
|
-
|
|
63
|
+
NutTabPane as default
|
|
64
64
|
};
|
|
@@ -38,17 +38,17 @@ var __async = (__this, __arguments, generator) => {
|
|
|
38
38
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
|
-
import { c as createComponent, T as TypeOfFun } from "
|
|
41
|
+
import { c as createComponent, T as TypeOfFun } from "../component-a8dfbf81.js";
|
|
42
42
|
import { ref, onMounted, reactive, provide, computed, watch, onActivated, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode, createVNode, toDisplayString } from "vue";
|
|
43
|
-
import { p as pxCheck } from "
|
|
44
|
-
import { u as useRect } from "
|
|
45
|
-
import { r as requestAniFrame } from "
|
|
46
|
-
import
|
|
43
|
+
import { p as pxCheck } from "../pxCheck-a27490eb.js";
|
|
44
|
+
import { u as useRect } from "../index-29892cda.js";
|
|
45
|
+
import { r as requestAniFrame } from "../raf-729dad54.js";
|
|
46
|
+
import NutSticky from "../sticky/Sticky.js";
|
|
47
47
|
import { JoySmile } from "@nutui/icons-vue";
|
|
48
|
-
import { u as useTouch } from "
|
|
49
|
-
import { _ as _export_sfc } from "
|
|
48
|
+
import { u as useTouch } from "../index-7a7385e4.js";
|
|
49
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
50
50
|
import "../locale/lang";
|
|
51
|
-
import "
|
|
51
|
+
import "../index-97b44e6c.js";
|
|
52
52
|
const useTabContentTouch = (props, tabMethods, taro, useTaroRect) => {
|
|
53
53
|
const tabsContentRef = ref();
|
|
54
54
|
const tabsContentRefRect = ref({ width: 0, height: 0 });
|
|
@@ -165,7 +165,7 @@ class Title {
|
|
|
165
165
|
}
|
|
166
166
|
const { create } = createComponent("tabs");
|
|
167
167
|
const _sfc_main = create({
|
|
168
|
-
components: {
|
|
168
|
+
components: { NutSticky, JoySmile },
|
|
169
169
|
props: {
|
|
170
170
|
modelValue: {
|
|
171
171
|
type: [String, Number],
|
|
@@ -544,8 +544,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
544
544
|
], 36)
|
|
545
545
|
], 2);
|
|
546
546
|
}
|
|
547
|
-
const
|
|
547
|
+
const NutTabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
548
548
|
export {
|
|
549
549
|
Title,
|
|
550
|
-
|
|
550
|
+
NutTabs as default
|
|
551
551
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "
|
|
2
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
3
3
|
import { Close } from "@nutui/icons-vue";
|
|
4
|
-
import { _ as _export_sfc } from "
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
const { create } = createComponent("tag");
|
|
7
7
|
const _sfc_main = create({
|
|
@@ -97,7 +97,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
97
97
|
}, null, 8, ["onClick"])) : createCommentVNode("", true)
|
|
98
98
|
], 6);
|
|
99
99
|
}
|
|
100
|
-
const
|
|
100
|
+
const NutTag = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
101
101
|
export {
|
|
102
|
-
|
|
102
|
+
NutTag as default
|
|
103
103
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ref, computed, onMounted, nextTick, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "
|
|
3
|
-
import {
|
|
2
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
3
|
+
import { u as useLocale } from "../index-99fdd331.js";
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
5
|
import "../locale/lang";
|
|
5
|
-
const {
|
|
6
|
+
const { create } = createComponent("textarea");
|
|
7
|
+
const cN = "NutTextarea";
|
|
6
8
|
const _sfc_main = create({
|
|
7
9
|
props: {
|
|
8
10
|
modelValue: {
|
|
@@ -48,9 +50,10 @@ const _sfc_main = create({
|
|
|
48
50
|
},
|
|
49
51
|
emits: ["update:modelValue", "change", "blur", "focus"],
|
|
50
52
|
setup(props, { emit }) {
|
|
53
|
+
const translate = useLocale(cN);
|
|
51
54
|
const textareaRef = ref();
|
|
52
55
|
const classes = computed(() => {
|
|
53
|
-
const prefixCls =
|
|
56
|
+
const prefixCls = "nut-textarea";
|
|
54
57
|
return {
|
|
55
58
|
[prefixCls]: true,
|
|
56
59
|
[`${prefixCls}--disabled`]: props.disabled
|
|
@@ -17,35 +17,27 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { inject, reactive, computed, toRefs, openBlock, createElementBlock,
|
|
21
|
-
import { c as createComponent } from "
|
|
22
|
-
import { _ as _export_sfc } from "
|
|
20
|
+
import { inject, reactive, computed, toRefs, openBlock, createElementBlock, createElementVNode, Fragment, renderList, normalizeClass, toDisplayString } from "vue";
|
|
21
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
22
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
23
|
import "../locale/lang";
|
|
24
|
-
const {
|
|
24
|
+
const { create } = createComponent("time-detail");
|
|
25
25
|
const _sfc_main = create({
|
|
26
26
|
name: "timedetail",
|
|
27
27
|
props: {
|
|
28
28
|
times: {
|
|
29
29
|
type: Array,
|
|
30
|
-
default: () =>
|
|
31
|
-
return [];
|
|
32
|
-
}
|
|
30
|
+
default: () => []
|
|
33
31
|
}
|
|
34
32
|
},
|
|
35
33
|
emits: ["select"],
|
|
36
|
-
setup: (props,
|
|
34
|
+
setup: (props, { emit }) => {
|
|
37
35
|
const currentKey = inject("currentKey");
|
|
38
36
|
const currentTime = inject("currentTime");
|
|
39
37
|
const state = reactive({
|
|
40
38
|
currentKey,
|
|
41
39
|
currentTime
|
|
42
40
|
});
|
|
43
|
-
const classes = computed(() => {
|
|
44
|
-
const prefixCls = componentName;
|
|
45
|
-
return {
|
|
46
|
-
[prefixCls]: true
|
|
47
|
-
};
|
|
48
|
-
});
|
|
49
41
|
const getClass = (item) => {
|
|
50
42
|
let find = state.currentTime.find((item2) => item2.key == state.currentKey);
|
|
51
43
|
if (find) {
|
|
@@ -59,36 +51,33 @@ const _sfc_main = create({
|
|
|
59
51
|
return props.times.find((time) => time.key == state.currentKey)["list"];
|
|
60
52
|
});
|
|
61
53
|
const handleTime = (time) => {
|
|
62
|
-
|
|
54
|
+
emit("select", time);
|
|
63
55
|
};
|
|
64
|
-
return __spreadProps(__spreadValues({
|
|
65
|
-
classes
|
|
66
|
-
}, toRefs(state)), {
|
|
56
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
67
57
|
getClass,
|
|
68
58
|
renderData,
|
|
69
59
|
handleTime
|
|
70
60
|
});
|
|
71
61
|
}
|
|
72
62
|
});
|
|
73
|
-
const _hoisted_1 = { class: "nut-time-
|
|
74
|
-
const _hoisted_2 = { class: "nut-time-
|
|
75
|
-
const _hoisted_3 =
|
|
63
|
+
const _hoisted_1 = { class: "nut-time-detail" };
|
|
64
|
+
const _hoisted_2 = { class: "nut-time-detail__detail nut-time-detail__detail--moring" };
|
|
65
|
+
const _hoisted_3 = { class: "nut-time-detail__detail__list" };
|
|
66
|
+
const _hoisted_4 = ["onClick"];
|
|
76
67
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
77
|
-
return openBlock(), createElementBlock("view",
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
createElementVNode("view", _hoisted_1, [
|
|
81
|
-
createElementVNode("view", _hoisted_2, [
|
|
68
|
+
return openBlock(), createElementBlock("view", _hoisted_1, [
|
|
69
|
+
createElementVNode("view", _hoisted_2, [
|
|
70
|
+
createElementVNode("view", _hoisted_3, [
|
|
82
71
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.renderData, (item) => {
|
|
83
72
|
return openBlock(), createElementBlock("view", {
|
|
84
73
|
key: item,
|
|
85
74
|
class: normalizeClass(_ctx.getClass(item)),
|
|
86
75
|
onClick: ($event) => _ctx.handleTime(item)
|
|
87
|
-
}, toDisplayString(item), 11,
|
|
76
|
+
}, toDisplayString(item), 11, _hoisted_4);
|
|
88
77
|
}), 128))
|
|
89
78
|
])
|
|
90
79
|
])
|
|
91
|
-
]
|
|
80
|
+
]);
|
|
92
81
|
}
|
|
93
82
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
94
83
|
export {
|