@nutui/nutui 4.0.0-beta.1 → 4.0.0-beta.11
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/README.md +1 -1
- package/dist/nutui.es.js +227 -103
- package/dist/nutui.umd.cjs +7 -20061
- package/dist/packages/_es/ActionSheet.js +3 -8
- package/dist/packages/_es/Address.js +4 -9
- package/dist/packages/_es/AddressList.js +6 -8
- package/dist/packages/_es/Animate.js +2 -7
- package/dist/packages/_es/Audio.js +4 -9
- package/dist/packages/_es/AudioOperate.js +2 -7
- package/dist/packages/_es/Avatar.js +2 -7
- package/dist/packages/_es/AvatarGroup.js +2 -7
- package/dist/packages/_es/Backtop.js +3 -8
- package/dist/packages/_es/Badge.js +2 -7
- package/dist/packages/_es/Barrage.js +17 -34
- package/dist/packages/_es/Button.js +2 -7
- package/dist/packages/_es/Calendar.js +6 -11
- package/dist/packages/_es/CalendarItem.js +5 -10
- package/dist/packages/_es/Card.js +2 -7
- package/dist/packages/_es/Cascader.js +14 -9
- package/dist/packages/_es/Category.js +2 -7
- package/dist/packages/_es/CategoryPane.js +2 -7
- package/dist/packages/_es/Cell.js +4 -9
- package/dist/packages/_es/CellGroup.js +2 -7
- package/dist/packages/_es/Checkbox.js +2 -7
- package/dist/packages/_es/CheckboxGroup.js +2 -7
- package/dist/packages/_es/CircleProgress.js +2 -7
- package/dist/packages/_es/Col.js +2 -7
- package/dist/packages/_es/Collapse.js +9 -14
- package/dist/packages/_es/CollapseItem.js +5 -10
- package/dist/packages/_es/Comment.js +5 -10
- package/dist/packages/_es/ConfigProvider.js +38 -11
- package/dist/packages/_es/Countdown.js +2 -7
- package/dist/packages/_es/Countup.js +2 -7
- package/dist/packages/_es/DatePicker.js +4 -9
- package/dist/packages/_es/Dialog.js +16 -28
- package/dist/packages/_es/Divider.js +2 -7
- package/dist/packages/_es/Drag.js +3 -8
- package/dist/packages/_es/Ecard.js +3 -8
- package/dist/packages/_es/Elevator.js +3 -8
- package/dist/packages/_es/Ellipsis.js +2 -7
- package/dist/packages/_es/Empty.js +2 -7
- package/dist/packages/_es/FixedNav.js +2 -7
- package/dist/packages/_es/Form.js +2 -7
- package/dist/packages/_es/FormItem.js +4 -9
- package/dist/packages/_es/Grid.js +3 -8
- package/dist/packages/_es/GridItem.js +5 -10
- package/dist/packages/_es/Image.js +3 -8
- package/dist/packages/_es/ImagePreview.js +22 -32
- package/dist/packages/_es/Indicator.js +2 -7
- package/dist/packages/_es/InfiniteLoading.js +4 -9
- package/dist/packages/_es/Input.js +2 -7
- package/dist/packages/_es/InputNumber.js +3 -8
- package/dist/packages/_es/Invoice.js +6 -11
- package/dist/packages/_es/Layout.js +1 -6
- package/dist/packages/_es/List.js +2 -7
- package/dist/packages/_es/Menu.js +3 -8
- package/dist/packages/_es/MenuItem.js +3 -8
- package/dist/packages/_es/Navbar.js +2 -7
- package/dist/packages/_es/Noticebar.js +12 -16
- package/dist/packages/_es/Notify.js +8 -13
- package/dist/packages/_es/NumberKeyboard.js +3 -8
- package/dist/packages/_es/Overlay.js +2 -7
- package/dist/packages/_es/Pagination.js +2 -7
- package/dist/packages/_es/Picker.js +4 -9
- package/dist/packages/_es/Popover.js +5 -10
- package/dist/packages/_es/Popup.js +3 -8
- package/dist/packages/_es/Price.js +3 -8
- package/dist/packages/_es/Progress.js +2 -7
- package/dist/packages/_es/PullRefresh.js +5 -10
- package/dist/packages/_es/Radio.js +3 -8
- package/dist/packages/_es/RadioGroup.js +2 -7
- package/dist/packages/_es/Range.js +4 -9
- package/dist/packages/_es/Rate.js +5 -10
- package/dist/packages/_es/Row.js +2 -7
- package/dist/packages/_es/Searchbar.js +3 -8
- package/dist/packages/_es/ShortPassword.js +3 -8
- package/dist/packages/_es/SideNavbar.js +2 -7
- package/dist/packages/_es/SideNavbarItem.js +2 -7
- package/dist/packages/_es/Signature.js +2 -7
- package/dist/packages/_es/Skeleton.js +2 -7
- package/dist/packages/_es/Sku.js +10 -9
- package/dist/packages/_es/Step.js +2 -7
- package/dist/packages/_es/Steps.js +1 -6
- package/dist/packages/_es/Sticky.js +3 -8
- package/dist/packages/_es/SubSideNavbar.js +7 -10
- package/dist/packages/_es/Swipe.js +5 -10
- package/dist/packages/_es/Swiper.js +58 -121
- package/dist/packages/_es/SwiperItem.js +3 -8
- package/dist/packages/_es/Switch.js +3 -8
- package/dist/packages/_es/TabPane.js +4 -9
- package/dist/packages/_es/Tabbar.js +2 -7
- package/dist/packages/_es/TabbarItem.js +12 -32
- package/dist/packages/_es/Table.js +2 -7
- package/dist/packages/_es/Tabs.js +18 -23
- package/dist/packages/_es/Tag.js +2 -7
- package/dist/packages/_es/Textarea.js +2 -7
- package/dist/packages/_es/TimeDetail.js +2 -7
- package/dist/packages/_es/TimePannel.js +2 -7
- package/dist/packages/_es/TimeSelect.js +3 -8
- package/dist/packages/_es/Toast.js +9 -16
- package/dist/packages/_es/Tour.js +5 -10
- package/dist/packages/_es/TrendArrow.js +2 -7
- package/dist/packages/_es/Uploader.js +3 -8
- package/dist/packages/_es/Video.js +2 -7
- package/dist/packages/_es/Watermark.js +2 -7
- package/dist/packages/_es/{_plugin-vue_export-helper-73a3d722.js → _plugin-vue_export-helper-cc2b3d55.js} +0 -5
- package/dist/packages/_es/{common-d5c1f4b1.js → common-ceb98554.js} +2 -7
- package/dist/packages/_es/{component-48526d37.js → component-81a4c1d0.js} +0 -5
- package/dist/packages/_es/{index-b05fa625.js → index-1006915b.js} +13 -8
- package/dist/packages/_es/{index-281c4c2c.js → index-1bf0d8ef.js} +5 -10
- package/dist/packages/_es/{index-c70386a5.js → index-29892cda.js} +0 -5
- package/dist/packages/_es/{index-95a5249b.js → index-43c34ac6.js} +0 -5
- package/dist/packages/_es/{index-fe4c328e.js → index-54d03fc1.js} +0 -5
- package/dist/packages/_es/{index-efc0d9e4.js → index-79c5dc33.js} +0 -5
- package/dist/packages/_es/{index-c3e2c58b.js → index-7a7385e4.js} +0 -5
- package/dist/packages/_es/{index.vue_vue_type_script_lang-959515e8.js → index.vue_vue_type_script_lang-1291fceb.js} +1 -6
- package/dist/packages/_es/{index.vue_vue_type_script_lang-5d693346.js → index.vue_vue_type_script_lang-cc5c4086.js} +2 -7
- package/dist/packages/_es/{index.vue_vue_type_script_lang-84b793e8.js → index.vue_vue_type_script_lang-d4c88f85.js} +2 -7
- package/dist/packages/_es/{interceptor-da627865.js → interceptor-956b24fc.js} +1 -6
- package/dist/packages/_es/{mountComponent-75cf7cfe.js → mountComponent-1ece4110.js} +1 -6
- package/dist/packages/_es/pxCheck-c6b9f6b7.js +6 -0
- package/dist/packages/_es/{raf-e90b8c4d.js → raf-729dad54.js} +0 -5
- package/dist/packages/_es/{renderIcon-d470170e.js → renderIcon-3d0fd47c.js} +0 -5
- package/dist/packages/actionsheet/index.mjs +3 -1
- package/dist/packages/actionsheet/style.cjs +2 -2
- package/dist/packages/actionsheet/style.mjs +2 -2
- package/dist/packages/address/index.mjs +3 -1
- package/dist/packages/address/style.cjs +3 -3
- package/dist/packages/address/style.mjs +3 -3
- package/dist/packages/addresslist/index.mjs +3 -1
- package/dist/packages/addresslist/style.cjs +2 -1
- package/dist/packages/addresslist/style.mjs +2 -1
- package/dist/packages/animate/index.mjs +3 -1
- package/dist/packages/audio/index.mjs +3 -1
- package/dist/packages/audio/index.scss +1 -1
- package/dist/packages/audio/style.cjs +1 -1
- package/dist/packages/audio/style.mjs +1 -1
- package/dist/packages/audiooperate/index.mjs +3 -1
- package/dist/packages/audiooperate/style.cjs +1 -1
- package/dist/packages/audiooperate/style.mjs +1 -1
- package/dist/packages/avatar/index.mjs +3 -1
- package/dist/packages/avatargroup/index.mjs +3 -1
- package/dist/packages/backtop/index.mjs +3 -1
- package/dist/packages/badge/index.mjs +3 -1
- package/dist/packages/barrage/index.mjs +3 -1
- package/dist/packages/barrage/index.scss +17 -1
- package/dist/packages/button/index.mjs +3 -1
- package/dist/packages/calendar/index.mjs +3 -1
- package/dist/packages/calendar/index.scss +12 -3
- package/dist/packages/calendar/style.cjs +3 -3
- package/dist/packages/calendar/style.mjs +3 -3
- package/dist/packages/calendaritem/index.mjs +3 -1
- package/dist/packages/card/index.mjs +3 -1
- package/dist/packages/card/style.cjs +2 -2
- package/dist/packages/card/style.mjs +2 -2
- package/dist/packages/cascader/index.mjs +3 -1
- package/dist/packages/cascader/style.cjs +5 -5
- package/dist/packages/cascader/style.mjs +5 -5
- package/dist/packages/category/index.mjs +3 -1
- package/dist/packages/categorypane/index.mjs +3 -1
- package/dist/packages/cell/index.mjs +3 -1
- package/dist/packages/cell/index.scss +3 -1
- package/dist/packages/cellgroup/index.mjs +3 -1
- package/dist/packages/checkbox/index.mjs +3 -1
- package/dist/packages/checkboxgroup/index.mjs +3 -1
- package/dist/packages/circleprogress/index.mjs +3 -1
- package/dist/packages/col/index.mjs +3 -1
- package/dist/packages/collapse/index.mjs +3 -1
- package/dist/packages/collapseitem/index.mjs +3 -1
- package/dist/packages/comment/index.mjs +3 -1
- package/dist/packages/comment/style.cjs +1 -1
- package/dist/packages/comment/style.mjs +1 -1
- package/dist/packages/configprovider/index.mjs +3 -1
- package/dist/packages/countdown/index.mjs +3 -1
- package/dist/packages/countup/index.mjs +3 -1
- package/dist/packages/datepicker/index.mjs +3 -1
- package/dist/packages/datepicker/style.cjs +3 -3
- package/dist/packages/datepicker/style.mjs +3 -3
- package/dist/packages/dialog/index.mjs +5 -2
- package/dist/packages/dialog/style.cjs +3 -3
- package/dist/packages/dialog/style.mjs +3 -3
- package/dist/packages/divider/index.mjs +3 -1
- package/dist/packages/drag/index.mjs +3 -1
- package/dist/packages/ecard/index.mjs +3 -1
- package/dist/packages/ecard/style.cjs +1 -1
- package/dist/packages/ecard/style.mjs +1 -1
- package/dist/packages/elevator/index.mjs +3 -1
- package/dist/packages/ellipsis/index.mjs +3 -1
- package/dist/packages/empty/index.mjs +3 -1
- package/dist/packages/fixednav/index.mjs +3 -1
- package/dist/packages/fixednav/style.cjs +1 -1
- package/dist/packages/fixednav/style.mjs +1 -1
- package/dist/packages/form/index.mjs +3 -1
- package/dist/packages/form/style.cjs +1 -1
- package/dist/packages/form/style.mjs +1 -1
- package/dist/packages/formitem/index.mjs +3 -1
- package/dist/packages/formitem/style.cjs +1 -1
- package/dist/packages/formitem/style.mjs +1 -1
- package/dist/packages/grid/index.mjs +3 -1
- package/dist/packages/griditem/index.mjs +3 -1
- package/dist/packages/image/index.mjs +3 -1
- package/dist/packages/imagepreview/index.mjs +5 -2
- package/dist/packages/imagepreview/style.cjs +5 -5
- package/dist/packages/imagepreview/style.mjs +5 -5
- package/dist/packages/indicator/index.mjs +3 -1
- package/dist/packages/infiniteloading/index.mjs +3 -1
- package/dist/packages/input/index.mjs +3 -1
- package/dist/packages/inputnumber/index.mjs +3 -1
- package/dist/packages/invoice/index.mjs +3 -1
- package/dist/packages/invoice/style.cjs +7 -7
- package/dist/packages/invoice/style.mjs +7 -7
- package/dist/packages/layout/index.mjs +3 -1
- package/dist/packages/list/index.mjs +3 -1
- package/dist/packages/locale/lang/baseLang-0bdc6353.js +5 -0
- package/dist/packages/locale/lang/en-US.js +1 -6
- package/dist/packages/locale/lang/id-ID.js +1 -6
- package/dist/packages/locale/lang/index.js +1 -6
- package/dist/packages/locale/lang/zh-CN.js +1 -6
- package/dist/packages/locale/lang/zh-TW.js +1 -6
- package/dist/packages/menu/index.mjs +3 -1
- package/dist/packages/menuitem/index.mjs +3 -1
- package/dist/packages/menuitem/style.cjs +2 -2
- package/dist/packages/menuitem/style.mjs +2 -2
- package/dist/packages/navbar/index.mjs +3 -1
- package/dist/packages/noticebar/index.mjs +3 -1
- package/dist/packages/noticebar/index.scss +2 -1
- package/dist/packages/notify/index.mjs +5 -2
- package/dist/packages/notify/style.cjs +2 -2
- package/dist/packages/notify/style.mjs +2 -2
- package/dist/packages/numberkeyboard/index.mjs +3 -1
- package/dist/packages/numberkeyboard/index.scss +3 -0
- package/dist/packages/numberkeyboard/style.cjs +2 -2
- package/dist/packages/numberkeyboard/style.mjs +2 -2
- package/dist/packages/overlay/index.mjs +3 -1
- package/dist/packages/pagination/index.mjs +3 -1
- package/dist/packages/picker/index.mjs +3 -1
- package/dist/packages/picker/style.cjs +2 -2
- package/dist/packages/picker/style.mjs +2 -2
- package/dist/packages/popover/index.mjs +3 -1
- package/dist/packages/popover/index.scss +1 -1
- package/dist/packages/popover/style.cjs +2 -2
- package/dist/packages/popover/style.mjs +2 -2
- package/dist/packages/popup/index.mjs +3 -1
- package/dist/packages/popup/style.cjs +1 -1
- package/dist/packages/popup/style.mjs +1 -1
- package/dist/packages/price/index.mjs +3 -1
- package/dist/packages/progress/index.mjs +3 -1
- package/dist/packages/pullrefresh/index.mjs +3 -1
- package/dist/packages/pullrefresh/index.scss +3 -2
- package/dist/packages/radio/index.mjs +3 -1
- package/dist/packages/radio/index.scss +14 -1
- package/dist/packages/radiogroup/index.mjs +3 -1
- package/dist/packages/range/index.mjs +3 -1
- package/dist/packages/range/index.scss +6 -3
- package/dist/packages/rate/index.mjs +3 -1
- package/dist/packages/row/index.mjs +3 -1
- package/dist/packages/searchbar/index.mjs +3 -1
- package/dist/packages/shortpassword/index.mjs +3 -1
- package/dist/packages/shortpassword/style.cjs +2 -2
- package/dist/packages/shortpassword/style.mjs +2 -2
- package/dist/packages/sidenavbar/index.mjs +3 -1
- package/dist/packages/sidenavbaritem/index.mjs +3 -1
- package/dist/packages/signature/index.mjs +3 -1
- package/dist/packages/signature/style.cjs +1 -1
- package/dist/packages/signature/style.mjs +1 -1
- package/dist/packages/skeleton/index.mjs +3 -1
- package/dist/packages/skeleton/style.cjs +1 -1
- package/dist/packages/skeleton/style.mjs +1 -1
- package/dist/packages/sku/index.mjs +3 -1
- package/dist/packages/sku/index.scss +16 -2
- package/dist/packages/sku/style.cjs +4 -4
- package/dist/packages/sku/style.mjs +4 -4
- package/dist/packages/step/index.mjs +3 -1
- package/dist/packages/steps/index.mjs +3 -1
- package/dist/packages/sticky/index.mjs +3 -1
- package/dist/packages/sticky/index.scss +1 -0
- package/dist/packages/subsidenavbar/index.mjs +3 -1
- package/dist/packages/swipe/index.mjs +3 -1
- package/dist/packages/swiper/index.mjs +3 -1
- package/dist/packages/swiperitem/index.mjs +3 -1
- package/dist/packages/switch/index.mjs +3 -1
- package/dist/packages/tabbar/index.mjs +3 -1
- package/dist/packages/tabbaritem/index.mjs +3 -1
- package/dist/packages/tabbaritem/style.cjs +1 -1
- package/dist/packages/tabbaritem/style.mjs +1 -1
- package/dist/packages/table/index.mjs +3 -1
- package/dist/packages/tabpane/index.mjs +3 -1
- package/dist/packages/tabs/index.mjs +3 -1
- package/dist/packages/tabs/style.cjs +1 -1
- package/dist/packages/tabs/style.mjs +1 -1
- package/dist/packages/tag/index.mjs +3 -1
- package/dist/packages/textarea/index.mjs +3 -1
- package/dist/packages/timedetail/index.mjs +3 -1
- package/dist/packages/timedetail/index.scss +14 -1
- package/dist/packages/timepannel/index.mjs +3 -1
- package/dist/packages/timeselect/index.mjs +3 -1
- package/dist/packages/timeselect/style.cjs +2 -2
- package/dist/packages/timeselect/style.mjs +2 -2
- package/dist/packages/toast/index.mjs +5 -2
- package/dist/packages/tour/index.mjs +3 -1
- package/dist/packages/tour/style.cjs +3 -3
- package/dist/packages/tour/style.mjs +3 -3
- package/dist/packages/trendarrow/index.mjs +3 -1
- package/dist/packages/uploader/index.mjs +3 -1
- package/dist/packages/uploader/style.cjs +2 -2
- package/dist/packages/uploader/style.mjs +2 -2
- package/dist/packages/video/index.mjs +3 -1
- package/dist/packages/watermark/index.mjs +3 -1
- package/dist/smartips/web-types.json +361 -370
- package/dist/style.css +1 -19
- package/dist/style.js +4 -0
- package/dist/styles/theme-deafult.scss +14 -16
- package/dist/styles/theme-jdt.scss +1 -7
- package/dist/styles/themes/default.scss +52 -52
- package/dist/styles/themes/jdb.scss +51 -52
- package/dist/styles/themes/jddkh.scss +51 -52
- package/dist/styles/themes/jdt.scss +52 -52
- package/dist/styles/variables.scss +8 -11
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +18 -0
- package/dist/types/__VUE/address/index.vue.d.ts +18 -0
- package/dist/types/__VUE/barrage/index.vue.d.ts +0 -1
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +2 -2
- package/dist/types/__VUE/cascader/index.vue.d.ts +18 -0
- package/dist/types/__VUE/cascader/types.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
- package/dist/types/__VUE/collapse/index.vue.d.ts +5 -5
- package/dist/types/__VUE/configprovider/index.vue.d.ts +3 -2
- package/dist/types/__VUE/countup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/dialog/index.d.ts +9 -9
- package/dist/types/__VUE/dialog/index.vue.d.ts +18 -0
- package/dist/types/__VUE/divider/index.vue.d.ts +1 -1
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +1 -1
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/icon/index.vue.d.ts +1 -0
- package/dist/types/__VUE/imagepreview/index.d.ts +12 -12
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +0 -9
- package/dist/types/__VUE/input/index.vue.d.ts +2 -2
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
- package/dist/types/__VUE/noticebar/index.vue.d.ts +2 -12
- package/dist/types/__VUE/notify/index.d.ts +3 -3
- package/dist/types/__VUE/popover/index.vue.d.ts +1 -1
- package/dist/types/__VUE/popup/common.d.ts +8 -0
- package/dist/types/__VUE/popup/index.vue.d.ts +18 -0
- package/dist/types/__VUE/popup/props.d.ts +8 -0
- package/dist/types/__VUE/rate/index.vue.d.ts +1 -1
- package/dist/types/__VUE/searchbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/skeleton/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +18 -0
- package/dist/types/__VUE/steps/index.vue.d.ts +1 -1
- package/dist/types/__VUE/swiper/index.vue.d.ts +9 -8
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +0 -1
- package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
- package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
- package/dist/types/__VUE/toast/index.d.ts +3 -3
- package/dist/types/__VUE/tour/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +10 -7
- package/package.json +11 -131
- package/dist/packages/_es/Icon.js +0 -12
- package/dist/packages/_es/index.vue_vue_type_script_lang-6a7b6f54.js +0 -12
- package/dist/packages/_es/pxCheck-524650ac.js +0 -11
- package/dist/packages/_es/style.css +0 -16
- package/dist/packages/icon/index.mjs +0 -2
- package/dist/packages/locale/lang/baseLang-d9df8b94.js +0 -10
- package/dist/smartips/attributes.json +0 -2810
- package/dist/smartips/tags.json +0 -1047
- package/dist/types/__VUE/configprovider/common.d.ts +0 -20
- package/dist/types/__VUE/swiper/use-touch.d.ts +0 -16
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.1 Mon Dec 26 2022 15:40:58 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { reactive, computed, provide, h } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
8
3
|
import "../locale/lang";
|
|
9
4
|
const { create, componentName } = createComponent("steps");
|
|
10
5
|
const _sfc_main = create({
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.1 Mon Dec 26 2022 15:40:58 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
|
-
import { _ as _sfc_main } from "./index.vue_vue_type_script_lang-5d693346.js";
|
|
1
|
+
import { _ as _sfc_main } from "./index.vue_vue_type_script_lang-cc5c4086.js";
|
|
7
2
|
import "vue";
|
|
8
|
-
import "./component-
|
|
3
|
+
import "./component-81a4c1d0.js";
|
|
9
4
|
import "../locale/lang";
|
|
10
|
-
import "./index-
|
|
5
|
+
import "./index-29892cda.js";
|
|
11
6
|
export {
|
|
12
7
|
_sfc_main as default
|
|
13
8
|
};
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
|
-
import { reactive, computed, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, toDisplayString, createBlock, normalizeStyle, renderSlot } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-48526d37.js";
|
|
1
|
+
import { reactive, computed, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, toDisplayString, createBlock, withDirectives, normalizeStyle, renderSlot, vShow } from "vue";
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
8
3
|
import { ArrowDown2, ArrowUp2 } from "@nutui/icons-vue";
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
10
5
|
import "../locale/lang";
|
|
11
6
|
const { componentName, create } = createComponent("sub-side-navbar");
|
|
12
7
|
const _sfc_main = create({
|
|
@@ -75,12 +70,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75
70
|
!_ctx.direction ? (openBlock(), createBlock(_component_ArrowDown2, { key: 0 })) : (openBlock(), createBlock(_component_ArrowUp2, { key: 1 }))
|
|
76
71
|
])
|
|
77
72
|
]),
|
|
78
|
-
createElementVNode("view", {
|
|
73
|
+
withDirectives(createElementVNode("view", {
|
|
79
74
|
class: normalizeClass(["nut-sub-side-navbar__list", !_ctx.direction ? "nutFadeIn" : "nutFadeOut"]),
|
|
80
75
|
style: normalizeStyle(_ctx.style)
|
|
81
76
|
}, [
|
|
82
77
|
renderSlot(_ctx.$slots, "default")
|
|
83
|
-
], 6)
|
|
78
|
+
], 6), [
|
|
79
|
+
[vShow, !_ctx.direction]
|
|
80
|
+
])
|
|
84
81
|
], 10, _hoisted_1);
|
|
85
82
|
}
|
|
86
83
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.1 Mon Dec 26 2022 15:40:58 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
|
-
import { u as useTouch } from "./index-c3e2c58b.js";
|
|
1
|
+
import { u as useTouch } from "./index-7a7385e4.js";
|
|
7
2
|
import { computed, ref, reactive, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
8
|
-
import { c as createComponent } from "./component-
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
3
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
10
5
|
import "../locale/lang";
|
|
11
6
|
const { componentName, create } = createComponent("swipe");
|
|
12
7
|
const _sfc_main = create({
|
|
@@ -184,7 +179,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
184
179
|
], 512)
|
|
185
180
|
], 38);
|
|
186
181
|
}
|
|
187
|
-
const
|
|
182
|
+
const Swipe = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
188
183
|
export {
|
|
189
|
-
|
|
184
|
+
Swipe as default
|
|
190
185
|
};
|
|
@@ -1,61 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
import { c as createComponent } from "./component-48526d37.js";
|
|
8
|
-
import { u as useExpose } from "./index-efc0d9e4.js";
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-73a3d722.js";
|
|
1
|
+
import { ref, reactive, computed, provide, onDeactivated, onBeforeUnmount, watch, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode } from "vue";
|
|
2
|
+
import { c as createComponent, e as clamp } from "./component-81a4c1d0.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";
|
|
10
7
|
import "../locale/lang";
|
|
11
|
-
const DISTANCE = 5;
|
|
12
|
-
function useTouch() {
|
|
13
|
-
const state = reactive({
|
|
14
|
-
startX: 0,
|
|
15
|
-
startY: 0,
|
|
16
|
-
deltaX: 0,
|
|
17
|
-
deltaY: 0,
|
|
18
|
-
offsetX: 0,
|
|
19
|
-
offsetY: 0,
|
|
20
|
-
direction: ""
|
|
21
|
-
});
|
|
22
|
-
const getDirection = (x, y) => {
|
|
23
|
-
if (x > y && x > DISTANCE)
|
|
24
|
-
return "horizontal";
|
|
25
|
-
if (y > x && y > DISTANCE)
|
|
26
|
-
return "vertical";
|
|
27
|
-
return "";
|
|
28
|
-
};
|
|
29
|
-
const reset = () => {
|
|
30
|
-
state.startX = 0;
|
|
31
|
-
state.startY = 0;
|
|
32
|
-
state.deltaX = 0;
|
|
33
|
-
state.deltaY = 0;
|
|
34
|
-
state.offsetX = 0;
|
|
35
|
-
state.offsetY = 0;
|
|
36
|
-
state.direction = "";
|
|
37
|
-
};
|
|
38
|
-
const start = (e) => {
|
|
39
|
-
reset();
|
|
40
|
-
state.startX = e.touches[0].clientX;
|
|
41
|
-
state.startY = e.touches[0].clientY;
|
|
42
|
-
};
|
|
43
|
-
const move = (e) => {
|
|
44
|
-
state.deltaX = e.touches[0].clientX - state.startX;
|
|
45
|
-
state.deltaY = e.touches[0].clientY - state.startY;
|
|
46
|
-
state.offsetX = Math.abs(state.deltaX);
|
|
47
|
-
state.offsetY = Math.abs(state.deltaY);
|
|
48
|
-
if (!state.direction) {
|
|
49
|
-
state.direction = getDirection(state.offsetX, state.offsetY);
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
return {
|
|
53
|
-
state,
|
|
54
|
-
start,
|
|
55
|
-
reset,
|
|
56
|
-
move
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
8
|
const { create, componentName } = createComponent("swiper");
|
|
60
9
|
const _sfc_main = create({
|
|
61
10
|
props: {
|
|
@@ -68,7 +17,7 @@ const _sfc_main = create({
|
|
|
68
17
|
default: 0
|
|
69
18
|
},
|
|
70
19
|
direction: {
|
|
71
|
-
type:
|
|
20
|
+
type: String,
|
|
72
21
|
default: "horizontal"
|
|
73
22
|
},
|
|
74
23
|
paginationVisible: {
|
|
@@ -137,11 +86,25 @@ const _sfc_main = create({
|
|
|
137
86
|
};
|
|
138
87
|
});
|
|
139
88
|
const isVertical = computed(() => props.direction === "vertical");
|
|
89
|
+
const classesInner = computed(() => {
|
|
90
|
+
const prefixCls = componentName;
|
|
91
|
+
return {
|
|
92
|
+
[`${prefixCls}-inner`]: true,
|
|
93
|
+
[`${prefixCls}-vertical`]: isVertical.value
|
|
94
|
+
};
|
|
95
|
+
});
|
|
96
|
+
const classesPagination = computed(() => {
|
|
97
|
+
const prefixCls = componentName;
|
|
98
|
+
return {
|
|
99
|
+
[`${prefixCls}-pagination`]: true,
|
|
100
|
+
[`${prefixCls}-pagination-vertical`]: isVertical.value
|
|
101
|
+
};
|
|
102
|
+
});
|
|
140
103
|
const delTa = computed(() => {
|
|
141
|
-
return isVertical.value ? touch.
|
|
104
|
+
return isVertical.value ? touch.deltaY.value : touch.deltaX.value;
|
|
142
105
|
});
|
|
143
106
|
const isCorrectDirection = computed(() => {
|
|
144
|
-
return touch.
|
|
107
|
+
return touch.direction.value === props.direction;
|
|
145
108
|
});
|
|
146
109
|
const childCount = computed(() => state.children.length);
|
|
147
110
|
const size = computed(() => state[isVertical.value ? "height" : "width"]);
|
|
@@ -156,12 +119,7 @@ const _sfc_main = create({
|
|
|
156
119
|
const activePagination = computed(() => (state.active + childCount.value) % childCount.value);
|
|
157
120
|
const getStyle = () => {
|
|
158
121
|
let offset = 0;
|
|
159
|
-
|
|
160
|
-
offset = state.offset;
|
|
161
|
-
} else {
|
|
162
|
-
let val = isVertical.value ? state.rect.height - size.value : state.rect.width - size.value;
|
|
163
|
-
offset = state.offset + (state.active === childCount.value - 1 ? -val / 2 : val / 2);
|
|
164
|
-
}
|
|
122
|
+
offset = state.offset;
|
|
165
123
|
state.style = {
|
|
166
124
|
transitionDuration: `${state.moving ? 0 : props.duration}ms`,
|
|
167
125
|
transform: `translate${isVertical.value ? "Y" : "X"}(${offset}px)`,
|
|
@@ -172,26 +130,27 @@ const _sfc_main = create({
|
|
|
172
130
|
const relation = (child) => {
|
|
173
131
|
var _a;
|
|
174
132
|
let children = [];
|
|
133
|
+
const childrenVNodeLen = state.childrenVNode.length;
|
|
175
134
|
let slot = (_a = slots == null ? void 0 : slots.default) == null ? void 0 : _a.call(slots);
|
|
176
135
|
slot = slot.filter((item) => item.children && Array.isArray(item.children));
|
|
177
136
|
slot.forEach((item) => {
|
|
178
137
|
children = children.concat(item.children);
|
|
179
138
|
});
|
|
180
|
-
if (!
|
|
139
|
+
if (!childrenVNodeLen) {
|
|
181
140
|
state.childrenVNode = children.slice();
|
|
182
141
|
child.proxy && state.children.push(child.proxy);
|
|
183
142
|
} else {
|
|
184
|
-
if (
|
|
143
|
+
if (childrenVNodeLen > children.length) {
|
|
185
144
|
state.children = state.children.filter((item) => child.proxy !== item);
|
|
186
|
-
} else if (
|
|
187
|
-
for (let i = 0; i <
|
|
145
|
+
} else if (childrenVNodeLen < children.length) {
|
|
146
|
+
for (let i = 0; i < childrenVNodeLen; i++) {
|
|
188
147
|
if (children[i].key !== state.childrenVNode[i].key) {
|
|
189
148
|
child.proxy && state.children.splice(i, 0, child.proxy);
|
|
190
149
|
child.vnode && state.childrenVNode.splice(i, 0, child.vnode);
|
|
191
150
|
break;
|
|
192
151
|
}
|
|
193
152
|
}
|
|
194
|
-
if (
|
|
153
|
+
if (childrenVNodeLen !== children.length) {
|
|
195
154
|
child.proxy && state.children.push(child.proxy);
|
|
196
155
|
child.vnode && state.childrenVNode.push(child.vnode);
|
|
197
156
|
}
|
|
@@ -201,12 +160,6 @@ const _sfc_main = create({
|
|
|
201
160
|
}
|
|
202
161
|
}
|
|
203
162
|
};
|
|
204
|
-
const range = (num, min, max) => {
|
|
205
|
-
return Math.min(Math.max(num, min), max);
|
|
206
|
-
};
|
|
207
|
-
const requestFrame = (fn) => {
|
|
208
|
-
window.requestAnimationFrame.call(window, fn);
|
|
209
|
-
};
|
|
210
163
|
const getOffset = (active, offset = 0) => {
|
|
211
164
|
let currentPosition = active * size.value;
|
|
212
165
|
if (!props.loop) {
|
|
@@ -214,7 +167,7 @@ const _sfc_main = create({
|
|
|
214
167
|
}
|
|
215
168
|
let targetOffset = offset - currentPosition;
|
|
216
169
|
if (!props.loop) {
|
|
217
|
-
targetOffset =
|
|
170
|
+
targetOffset = clamp(targetOffset, minOffset.value, 0);
|
|
218
171
|
}
|
|
219
172
|
return targetOffset;
|
|
220
173
|
};
|
|
@@ -222,9 +175,9 @@ const _sfc_main = create({
|
|
|
222
175
|
const { active } = state;
|
|
223
176
|
if (pace) {
|
|
224
177
|
if (props.loop) {
|
|
225
|
-
return
|
|
178
|
+
return clamp(active + pace, -1, childCount.value);
|
|
226
179
|
}
|
|
227
|
-
return
|
|
180
|
+
return clamp(active + pace, 0, childCount.value - 1);
|
|
228
181
|
}
|
|
229
182
|
return active;
|
|
230
183
|
};
|
|
@@ -263,48 +216,39 @@ const _sfc_main = create({
|
|
|
263
216
|
const stopAutoPlay = () => {
|
|
264
217
|
clearTimeout(state.autoplayTimer);
|
|
265
218
|
};
|
|
266
|
-
const
|
|
219
|
+
const jump = (pace) => {
|
|
267
220
|
resettPosition();
|
|
268
221
|
touch.reset();
|
|
269
|
-
|
|
270
|
-
|
|
222
|
+
requestAniFrame(() => {
|
|
223
|
+
requestAniFrame(() => {
|
|
271
224
|
state.moving = false;
|
|
272
225
|
move({
|
|
273
|
-
pace
|
|
226
|
+
pace,
|
|
274
227
|
isEmit: true
|
|
275
228
|
});
|
|
276
229
|
});
|
|
277
230
|
});
|
|
278
231
|
};
|
|
232
|
+
const prev = () => {
|
|
233
|
+
jump(-1);
|
|
234
|
+
};
|
|
279
235
|
const next = () => {
|
|
280
|
-
|
|
281
|
-
touch.reset();
|
|
282
|
-
requestFrame(() => {
|
|
283
|
-
requestFrame(() => {
|
|
284
|
-
state.moving = false;
|
|
285
|
-
move({
|
|
286
|
-
pace: 1,
|
|
287
|
-
isEmit: true
|
|
288
|
-
});
|
|
289
|
-
});
|
|
290
|
-
});
|
|
236
|
+
jump(1);
|
|
291
237
|
};
|
|
292
238
|
const to = (index) => {
|
|
293
239
|
resettPosition();
|
|
294
240
|
touch.reset();
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
isEmit: true
|
|
307
|
-
});
|
|
241
|
+
requestAniFrame(() => {
|
|
242
|
+
state.moving = false;
|
|
243
|
+
let targetIndex;
|
|
244
|
+
if (props.loop && childCount.value === index) {
|
|
245
|
+
targetIndex = state.active === 0 ? 0 : index;
|
|
246
|
+
} else {
|
|
247
|
+
targetIndex = index % childCount.value;
|
|
248
|
+
}
|
|
249
|
+
move({
|
|
250
|
+
pace: targetIndex - state.active,
|
|
251
|
+
isEmit: true
|
|
308
252
|
});
|
|
309
253
|
});
|
|
310
254
|
};
|
|
@@ -358,7 +302,7 @@ const _sfc_main = create({
|
|
|
358
302
|
const isShouldMove = Math.abs(speed) > 0.3 || Math.abs(delTa.value) > +(size.value / 2).toFixed(2);
|
|
359
303
|
if (isShouldMove && isCorrectDirection.value) {
|
|
360
304
|
let pace = 0;
|
|
361
|
-
const offset = isVertical.value ? touch.
|
|
305
|
+
const offset = isVertical.value ? touch.offsetY.value : touch.offsetX.value;
|
|
362
306
|
if (props.loop) {
|
|
363
307
|
pace = offset > 0 ? delTa.value > 0 ? -1 : 1 : 0;
|
|
364
308
|
} else {
|
|
@@ -416,10 +360,9 @@ const _sfc_main = create({
|
|
|
416
360
|
return {
|
|
417
361
|
state,
|
|
418
362
|
classes,
|
|
363
|
+
classesInner,
|
|
364
|
+
classesPagination,
|
|
419
365
|
container,
|
|
420
|
-
componentName,
|
|
421
|
-
isVertical,
|
|
422
|
-
slots,
|
|
423
366
|
activePagination,
|
|
424
367
|
onTouchStart,
|
|
425
368
|
onTouchMove,
|
|
@@ -437,21 +380,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
437
380
|
onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
438
381
|
}, [
|
|
439
382
|
createElementVNode("view", {
|
|
440
|
-
class: normalizeClass(
|
|
441
|
-
[`${_ctx.componentName}-inner`]: true,
|
|
442
|
-
[`${_ctx.componentName}-vertical`]: _ctx.isVertical
|
|
443
|
-
}),
|
|
383
|
+
class: normalizeClass(_ctx.classesInner),
|
|
444
384
|
style: normalizeStyle(_ctx.state.style)
|
|
445
385
|
}, [
|
|
446
386
|
renderSlot(_ctx.$slots, "default")
|
|
447
387
|
], 6),
|
|
448
388
|
renderSlot(_ctx.$slots, "page"),
|
|
449
|
-
_ctx.paginationVisible && !_ctx
|
|
389
|
+
_ctx.paginationVisible && !_ctx.$slots.page ? (openBlock(), createElementBlock("view", {
|
|
450
390
|
key: 0,
|
|
451
|
-
class: normalizeClass(
|
|
452
|
-
[`${_ctx.componentName}-pagination`]: true,
|
|
453
|
-
[`${_ctx.componentName}-pagination-vertical`]: _ctx.isVertical
|
|
454
|
-
})
|
|
391
|
+
class: normalizeClass(_ctx.classesPagination)
|
|
455
392
|
}, [
|
|
456
393
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.state.children.length, (item, index) => {
|
|
457
394
|
return openBlock(), createElementBlock("i", {
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.1 Mon Dec 26 2022 15:40:58 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { inject, getCurrentInstance, reactive, computed, onUnmounted, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { u as useExpose } from "./index-
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { u as useExpose } from "./index-79c5dc33.js";
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
10
5
|
import "../locale/lang";
|
|
11
6
|
const { create, componentName } = createComponent("swiper-item");
|
|
12
7
|
const _sfc_main = create({
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.1 Mon Dec 26 2022 15:40:58 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createVNode, createCommentVNode, Fragment, withDirectives, toDisplayString, vShow } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
8
3
|
import { Loading1 } from "@nutui/icons-vue";
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
10
5
|
import "../locale/lang";
|
|
11
6
|
const { componentName, create } = createComponent("switch");
|
|
12
7
|
const _sfc_main = create({
|
|
@@ -102,7 +97,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
102
97
|
}, [
|
|
103
98
|
createElementVNode("view", _hoisted_1, [
|
|
104
99
|
_ctx.loading ? renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
|
|
105
|
-
createVNode(_component_Loading1)
|
|
100
|
+
createVNode(_component_Loading1, { name: "loading" })
|
|
106
101
|
]) : createCommentVNode("", true),
|
|
107
102
|
_ctx.activeText ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
108
103
|
withDirectives(createElementVNode("view", { class: "nut-switch-label open" }, toDisplayString(_ctx.activeText), 513), [
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.1 Mon Dec 26 2022 15:40:58 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { inject, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
9
4
|
import "../locale/lang";
|
|
10
5
|
const { create } = createComponent("tab-pane");
|
|
11
6
|
const _sfc_main = create({
|
|
@@ -40,7 +35,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40
35
|
renderSlot(_ctx.$slots, "default")
|
|
41
36
|
], 2);
|
|
42
37
|
}
|
|
43
|
-
const
|
|
38
|
+
const TabPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
44
39
|
export {
|
|
45
|
-
|
|
40
|
+
TabPane as default
|
|
46
41
|
};
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.1 Mon Dec 26 2022 15:40:58 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { toRefs, ref, reactive, provide, watch, onMounted, nextTick, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
9
4
|
import "../locale/lang";
|
|
10
5
|
const { create } = createComponent("tabbar");
|
|
11
6
|
const _sfc_main = create({
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
import { c as createComponent } from "./component-48526d37.js";
|
|
7
|
-
import { r as renderIcon } from "./renderIcon-d470170e.js";
|
|
8
|
-
import { inject, reactive, getCurrentInstance, computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, toDisplayString } from "vue";
|
|
9
|
-
import { u as useRouter } from "./index-fe4c328e.js";
|
|
1
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
2
|
+
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
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 "./index-54d03fc1.js";
|
|
10
5
|
import Badge from "./Badge.js";
|
|
11
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
6
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
12
7
|
import "../locale/lang";
|
|
13
8
|
const { create } = createComponent("tabbar-item");
|
|
14
9
|
const _sfc_main = create({
|
|
@@ -38,7 +33,6 @@ const _sfc_main = create({
|
|
|
38
33
|
const state = reactive({
|
|
39
34
|
unactiveColor: parent.unactiveColor,
|
|
40
35
|
activeColor: parent.activeColor,
|
|
41
|
-
active: parent.modelValue,
|
|
42
36
|
index: 0
|
|
43
37
|
});
|
|
44
38
|
const router = useRouter();
|
|
@@ -50,32 +44,18 @@ const _sfc_main = create({
|
|
|
50
44
|
}
|
|
51
45
|
};
|
|
52
46
|
relation(getCurrentInstance());
|
|
53
|
-
const active = computed(() => state.index ===
|
|
47
|
+
const active = computed(() => state.index === parent.modelValue);
|
|
54
48
|
function change() {
|
|
49
|
+
var _a, _b;
|
|
55
50
|
let key = props.name ?? state.index;
|
|
56
|
-
let
|
|
51
|
+
let indexValue = null;
|
|
57
52
|
if (props.name) {
|
|
58
|
-
|
|
53
|
+
indexValue = parent.children.findIndex((item) => {
|
|
59
54
|
return item.name == key;
|
|
60
55
|
});
|
|
61
56
|
}
|
|
62
|
-
parent.changeIndex(
|
|
63
|
-
|
|
64
|
-
const choosed = computed(() => {
|
|
65
|
-
if (parent) {
|
|
66
|
-
return parent.modelValue;
|
|
67
|
-
}
|
|
68
|
-
return null;
|
|
69
|
-
});
|
|
70
|
-
watch(choosed, (value, oldValue) => {
|
|
71
|
-
var _a, _b;
|
|
72
|
-
state.active = value;
|
|
73
|
-
let index2 = value;
|
|
74
|
-
if (props.name) {
|
|
75
|
-
index2 = parent.children.findIndex((item) => {
|
|
76
|
-
return item.name == value;
|
|
77
|
-
});
|
|
78
|
-
}
|
|
57
|
+
parent.changeIndex(indexValue ?? key, state.index);
|
|
58
|
+
let index2 = indexValue ?? key;
|
|
79
59
|
if ((_a = parent.children[index2]) == null ? void 0 : _a.href) {
|
|
80
60
|
window.location.href = parent.children[index2].href;
|
|
81
61
|
return;
|
|
@@ -88,7 +68,7 @@ const _sfc_main = create({
|
|
|
88
68
|
location.replace(to);
|
|
89
69
|
}
|
|
90
70
|
}
|
|
91
|
-
}
|
|
71
|
+
}
|
|
92
72
|
return {
|
|
93
73
|
state,
|
|
94
74
|
active,
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.1 Mon Dec 26 2022 15:40:58 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
|
-
import { c as createComponent } from "./component-48526d37.js";
|
|
1
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
7
2
|
import { h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
8
3
|
import { DownArrow } from "@nutui/icons-vue";
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
10
5
|
import "../locale/lang";
|
|
11
6
|
const RenderColumn = {
|
|
12
7
|
setup(props) {
|