@nutui/nutui 4.0.0-beta.1 → 4.0.0-beta.10
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 +11 -2
- 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/attributes.json +289 -293
- package/dist/smartips/tags.json +11 -12
- package/dist/smartips/web-types.json +336 -345
- 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 +54 -54
- package/dist/styles/themes/jdb.scss +53 -54
- package/dist/styles/themes/jddkh.scss +53 -54
- package/dist/styles/themes/jdt.scss +54 -54
- 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 +20 -47
- 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/types/__VUE/configprovider/common.d.ts +0 -20
- package/dist/types/__VUE/swiper/use-touch.d.ts +0 -16
|
@@ -4,18 +4,13 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
* @nutui/nutui v4.0.0-beta.1 Mon Dec 26 2022 15:40:58 GMT+0800 (中国标准时间)
|
|
9
|
-
* (c) 2022 @jdf2e.
|
|
10
|
-
* Released under the MIT License.
|
|
11
|
-
*/
|
|
12
|
-
import { c as createComponent, T as TypeOfFun } from "./component-48526d37.js";
|
|
7
|
+
import { c as createComponent, T as TypeOfFun } from "./component-81a4c1d0.js";
|
|
13
8
|
import { ref, provide, computed, watch, onMounted, onActivated, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode, createVNode, toDisplayString } from "vue";
|
|
14
|
-
import { p as pxCheck } from "./pxCheck-
|
|
15
|
-
import { u as useRect } from "./index-
|
|
16
|
-
import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-
|
|
9
|
+
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
10
|
+
import { u as useRect } from "./index-29892cda.js";
|
|
11
|
+
import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-cc5c4086.js";
|
|
17
12
|
import { JoySmile } from "@nutui/icons-vue";
|
|
18
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
13
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
19
14
|
import "../locale/lang";
|
|
20
15
|
class Title {
|
|
21
16
|
constructor() {
|
|
@@ -90,7 +85,7 @@ const _sfc_main = create({
|
|
|
90
85
|
provide("autoHeight", { autoHeight: computed(() => props.autoHeight) });
|
|
91
86
|
const titles = ref([]);
|
|
92
87
|
const renderTitles = (vnodes) => {
|
|
93
|
-
vnodes.forEach((vnode,
|
|
88
|
+
vnodes.forEach((vnode, index) => {
|
|
94
89
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
95
90
|
let type = vnode.type;
|
|
96
91
|
type = type.name || type;
|
|
@@ -102,7 +97,7 @@ const _sfc_main = create({
|
|
|
102
97
|
let camelPaneKeyType = TypeOfFun((_f = vnode.props) == null ? void 0 : _f["paneKey"]);
|
|
103
98
|
let camelPaneIndex = camelPaneKeyType == "number" || camelPaneKeyType == "string" ? String((_g = vnode.props) == null ? void 0 : _g["paneKey"]) : null;
|
|
104
99
|
title.title = (_h = vnode.props) == null ? void 0 : _h.title;
|
|
105
|
-
title.paneKey = paneIndex || camelPaneIndex || String(
|
|
100
|
+
title.paneKey = paneIndex || camelPaneIndex || String(index);
|
|
106
101
|
title.disabled = (_i = vnode.props) == null ? void 0 : _i.disabled;
|
|
107
102
|
}
|
|
108
103
|
titles.value.push(title);
|
|
@@ -116,13 +111,13 @@ const _sfc_main = create({
|
|
|
116
111
|
};
|
|
117
112
|
const currentIndex = ref(props.modelValue || 0);
|
|
118
113
|
const findTabsIndex = (value) => {
|
|
119
|
-
let
|
|
114
|
+
let index = titles.value.findIndex((item) => item.paneKey == value);
|
|
120
115
|
if (titles.value.length == 0) {
|
|
121
116
|
console.error("[NutUI] <Tabs> 当前未找到 TabPane 组件元素 , 请检查 .");
|
|
122
|
-
} else if (
|
|
117
|
+
} else if (index == -1) {
|
|
123
118
|
console.error("[NutUI] <Tabs> 请检查 v-model 值是否为 paneKey ,如 paneKey 未设置,请采用下标控制 .");
|
|
124
119
|
} else {
|
|
125
|
-
currentIndex.value =
|
|
120
|
+
currentIndex.value = index;
|
|
126
121
|
}
|
|
127
122
|
};
|
|
128
123
|
const init = (vnodes = ((_a) => (_a = slots.default) == null ? void 0 : _a.call(slots))()) => {
|
|
@@ -188,12 +183,12 @@ const _sfc_main = create({
|
|
|
188
183
|
};
|
|
189
184
|
});
|
|
190
185
|
const methods = {
|
|
191
|
-
tabChange: (item,
|
|
186
|
+
tabChange: (item, index) => {
|
|
192
187
|
emit("click", item);
|
|
193
188
|
if (item.disabled) {
|
|
194
189
|
return;
|
|
195
190
|
}
|
|
196
|
-
currentIndex.value =
|
|
191
|
+
currentIndex.value = index;
|
|
197
192
|
emit("update:modelValue", item.paneKey);
|
|
198
193
|
emit("change", item);
|
|
199
194
|
}
|
|
@@ -231,11 +226,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
231
226
|
class: normalizeClass(["nut-tabs__titles", { [_ctx.type]: _ctx.type, scrollable: _ctx.titleScroll, [_ctx.size]: _ctx.size }]),
|
|
232
227
|
style: normalizeStyle(_ctx.tabsNavStyle)
|
|
233
228
|
}, [
|
|
234
|
-
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item,
|
|
229
|
+
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item, index) => {
|
|
235
230
|
return openBlock(), createElementBlock("view", {
|
|
236
231
|
class: normalizeClass(["nut-tabs__titles-item", { active: item.paneKey == _ctx.modelValue, disabled: item.disabled }]),
|
|
237
232
|
style: normalizeStyle(_ctx.titleStyle),
|
|
238
|
-
onClick: ($event) => _ctx.tabChange(item,
|
|
233
|
+
onClick: ($event) => _ctx.tabChange(item, index),
|
|
239
234
|
key: item.paneKey
|
|
240
235
|
}, [
|
|
241
236
|
_ctx.type == "line" ? (openBlock(), createElementBlock("view", {
|
|
@@ -263,11 +258,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
263
258
|
class: normalizeClass(["nut-tabs__titles", { [_ctx.type]: _ctx.type, scrollable: _ctx.titleScroll, [_ctx.size]: _ctx.size }]),
|
|
264
259
|
style: normalizeStyle(_ctx.tabsNavStyle)
|
|
265
260
|
}, [
|
|
266
|
-
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item,
|
|
261
|
+
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item, index) => {
|
|
267
262
|
return openBlock(), createElementBlock("view", {
|
|
268
263
|
class: normalizeClass(["nut-tabs__titles-item", { active: item.paneKey == _ctx.modelValue, disabled: item.disabled }]),
|
|
269
264
|
style: normalizeStyle(_ctx.titleStyle),
|
|
270
|
-
onClick: ($event) => _ctx.tabChange(item,
|
|
265
|
+
onClick: ($event) => _ctx.tabChange(item, index),
|
|
271
266
|
key: item.paneKey
|
|
272
267
|
}, [
|
|
273
268
|
_ctx.type == "line" ? (openBlock(), createElementBlock("view", {
|
|
@@ -296,8 +291,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
296
291
|
], 4)
|
|
297
292
|
], 2);
|
|
298
293
|
}
|
|
299
|
-
const
|
|
294
|
+
const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
300
295
|
export {
|
|
301
296
|
Title,
|
|
302
|
-
|
|
297
|
+
Tabs as default
|
|
303
298
|
};
|
package/dist/packages/_es/Tag.js
CHANGED
|
@@ -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 { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
8
3
|
import { Close } 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("tag");
|
|
12
7
|
const _sfc_main = create({
|
|
@@ -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 { ref, computed, onMounted, nextTick, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode } 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 { componentName, create, translate } = createComponent("textarea");
|
|
11
6
|
const _sfc_main = create({
|
|
@@ -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, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, toDisplayString } 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 { componentName, create } = createComponent("time-detail");
|
|
11
6
|
const _sfc_main = create({
|
|
@@ -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, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString } 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 { componentName, create } = createComponent("time-pannel");
|
|
11
6
|
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, provide, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, renderSlot } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { P as Popup } from "./index-
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { P as Popup } from "./index-1006915b.js";
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
10
5
|
import "../locale/lang";
|
|
11
6
|
import "./Overlay.js";
|
|
12
7
|
import "@nutui/icons-vue";
|
|
@@ -1,14 +1,9 @@
|
|
|
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, onMounted, watch, computed, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, createElementBlock, resolveDynamicComponent, createCommentVNode, toDisplayString, vShow, createVNode, render } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { r as renderIcon } from "./renderIcon-
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
10
5
|
import "../locale/lang";
|
|
11
|
-
import { C as CreateComponent } from "./mountComponent-
|
|
6
|
+
import { C as CreateComponent } from "./mountComponent-1ece4110.js";
|
|
12
7
|
import { Success, Failure, Tips, Loading } from "@nutui/icons-vue";
|
|
13
8
|
const { create } = createComponent("toast");
|
|
14
9
|
const _sfc_main = create({
|
|
@@ -250,7 +245,7 @@ const updateToast = (opts) => {
|
|
|
250
245
|
}
|
|
251
246
|
const instance = createVNode(Toast, opts);
|
|
252
247
|
render(instance, container);
|
|
253
|
-
return
|
|
248
|
+
return showToast;
|
|
254
249
|
}
|
|
255
250
|
};
|
|
256
251
|
const mountToast = (opts) => {
|
|
@@ -271,7 +266,7 @@ const mountToast = (opts) => {
|
|
|
271
266
|
CreateComponent(opts, {
|
|
272
267
|
wrapper: Toast
|
|
273
268
|
});
|
|
274
|
-
return
|
|
269
|
+
return showToast;
|
|
275
270
|
};
|
|
276
271
|
const errorMsg = (msg) => {
|
|
277
272
|
if (!msg) {
|
|
@@ -279,7 +274,7 @@ const errorMsg = (msg) => {
|
|
|
279
274
|
return;
|
|
280
275
|
}
|
|
281
276
|
};
|
|
282
|
-
const
|
|
277
|
+
const showToast = {
|
|
283
278
|
text(msg, opts = {}) {
|
|
284
279
|
errorMsg(msg);
|
|
285
280
|
return mountToast({ ...opts, type: "text", msg });
|
|
@@ -309,11 +304,9 @@ const ToastFunction = {
|
|
|
309
304
|
},
|
|
310
305
|
install(app) {
|
|
311
306
|
app.use(Toast);
|
|
312
|
-
app.config.globalProperties.$toast = ToastFunction;
|
|
313
307
|
}
|
|
314
308
|
};
|
|
315
309
|
export {
|
|
316
|
-
Toast,
|
|
317
|
-
|
|
318
|
-
ToastFunction as default
|
|
310
|
+
Toast as default,
|
|
311
|
+
showToast
|
|
319
312
|
};
|
|
@@ -1,17 +1,12 @@
|
|
|
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, ref, computed, onMounted, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, createElementVNode, vShow, Fragment, renderList, normalizeStyle, createCommentVNode, createVNode, withCtx, renderSlot, toDisplayString } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { u as useRect } from "./index-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { u as useRect } from "./index-29892cda.js";
|
|
9
4
|
import { Close } from "@nutui/icons-vue";
|
|
10
5
|
import Popover from "./Popover.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
|
-
import "./renderIcon-
|
|
14
|
-
import "./index-
|
|
8
|
+
import "./renderIcon-3d0fd47c.js";
|
|
9
|
+
import "./index-1006915b.js";
|
|
15
10
|
import "./Overlay.js";
|
|
16
11
|
const { create } = createComponent("tour");
|
|
17
12
|
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 { reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createVNode } from "vue";
|
|
7
|
-
import { m as myFixed, c as createComponent } from "./component-
|
|
2
|
+
import { m as myFixed, c as createComponent } from "./component-81a4c1d0.js";
|
|
8
3
|
import { TriangleUp, TriangleDown } 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("trend-arrow");
|
|
12
7
|
const _sfc_main = create({
|
|
@@ -4,17 +4,12 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
/*!
|
|
8
|
-
* @nutui/nutui v4.0.0-beta.1 Mon Dec 26 2022 15:40:58 GMT+0800 (中国标准时间)
|
|
9
|
-
* (c) 2022 @jdf2e.
|
|
10
|
-
* Released under the MIT License.
|
|
11
|
-
*/
|
|
12
7
|
import { reactive, computed, h, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, createCommentVNode, Fragment, renderList, createElementVNode, toDisplayString, createVNode, createTextVNode } from "vue";
|
|
13
|
-
import { c as createComponent } from "./component-
|
|
14
|
-
import { f as funInterceptor } from "./interceptor-
|
|
8
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
9
|
+
import { f as funInterceptor } from "./interceptor-956b24fc.js";
|
|
15
10
|
import Progress from "./Progress.js";
|
|
16
11
|
import { Photograph, Failure, Loading, Del, Link } from "@nutui/icons-vue";
|
|
17
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
12
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
18
13
|
import "../locale/lang";
|
|
19
14
|
class UploadOptions {
|
|
20
15
|
constructor() {
|
|
@@ -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 { reactive, ref, computed, watch, nextTick, onMounted, toRefs, openBlock, createElementBlock, createElementVNode, createCommentVNode, withDirectives, vShow, normalizeClass, toDisplayString, normalizeStyle, withModifiers } 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
|
function throttle(fn, delay) {
|
|
11
6
|
let timer = null;
|
|
@@ -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 { reactive, watch, computed, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle } 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 { componentName, create } = createComponent("watermark");
|
|
11
6
|
const _sfc_main = create({
|
|
@@ -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 { shallowReactive, getCurrentInstance, provide, markRaw, isVNode, computed, h } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { p as pxCheck } from "./pxCheck-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
9
4
|
function flattenVNodes(children, childName) {
|
|
10
5
|
const result = [];
|
|
11
6
|
const traverse = (children2) => {
|
|
@@ -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 { c as createComponent } from "./component-48526d37.js";
|
|
1
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
7
2
|
import { reactive, computed, watch, watchEffect, toRefs, resolveComponent, openBlock, createBlock, Teleport, mergeProps, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, vShow } from "vue";
|
|
8
3
|
import Overlay from "./Overlay.js";
|
|
9
4
|
import { Close } from "@nutui/icons-vue";
|
|
10
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
5
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
11
6
|
const popupProps = {
|
|
12
7
|
visible: {
|
|
13
8
|
type: Boolean,
|
|
@@ -80,6 +75,14 @@ const popupProps = {
|
|
|
80
75
|
safeAreaInsetBottom: {
|
|
81
76
|
type: Boolean,
|
|
82
77
|
default: false
|
|
78
|
+
},
|
|
79
|
+
overlayClass: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: ""
|
|
82
|
+
},
|
|
83
|
+
overlayStyle: {
|
|
84
|
+
type: Object,
|
|
85
|
+
default: {}
|
|
83
86
|
}
|
|
84
87
|
};
|
|
85
88
|
const initIndex = 2e3;
|
|
@@ -201,8 +204,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
201
204
|
"z-index": _ctx.zIndex,
|
|
202
205
|
"lock-scroll": _ctx.lockScroll,
|
|
203
206
|
duration: _ctx.duration,
|
|
207
|
+
"overlay-class": _ctx.overlayClass,
|
|
208
|
+
"overlay-style": _ctx.overlayStyle,
|
|
204
209
|
onClick: _ctx.onClickOverlay
|
|
205
|
-
}, _ctx.$attrs), null, 16, ["visible", "close-on-click-overlay", "z-index", "lock-scroll", "duration", "onClick"])) : createCommentVNode("", true),
|
|
210
|
+
}, _ctx.$attrs), null, 16, ["visible", "close-on-click-overlay", "z-index", "lock-scroll", "duration", "overlay-class", "overlay-style", "onClick"])) : createCommentVNode("", true),
|
|
206
211
|
createVNode(Transition, {
|
|
207
212
|
name: _ctx.transitionName,
|
|
208
213
|
onAfterEnter: _ctx.onOpened,
|
|
@@ -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
1
|
import { ref, computed, reactive, watch, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle, createTextVNode } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { r as requestAniFrame } from "./raf-
|
|
9
|
-
import { u as useExpose } from "./index-
|
|
10
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { r as requestAniFrame } from "./raf-729dad54.js";
|
|
4
|
+
import { u as useExpose } from "./index-79c5dc33.js";
|
|
5
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
11
6
|
const Utils = {
|
|
12
7
|
isLeapYear: function(y) {
|
|
13
8
|
return y % 4 == 0 && y % 100 != 0 || y % 400 == 0;
|
|
@@ -256,7 +251,7 @@ const _sfc_main = create({
|
|
|
256
251
|
if (getClass(day, month) != `${state.dayPrefix}--disabled`) {
|
|
257
252
|
const { type } = props;
|
|
258
253
|
let days = [...month.curData];
|
|
259
|
-
days[2] =
|
|
254
|
+
days[2] = Utils.getNumTwoBit(Number(day.day));
|
|
260
255
|
days[3] = `${days[0]}-${days[1]}-${days[2]}`;
|
|
261
256
|
days[4] = Utils.getWhatDay(+days[0], +days[1], +days[2]);
|
|
262
257
|
if (type == "multiple") {
|
|
@@ -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 { provide, readonly, computed, watch, h } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
8
3
|
const { componentName, create } = createComponent("radio-group");
|
|
9
4
|
const _sfc_main = create({
|
|
10
5
|
props: {
|
|
@@ -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 { ref, reactive, computed, watch, onMounted, onUnmounted, h, unref } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { u as useRect } from "./index-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { u as useRect } from "./index-29892cda.js";
|
|
9
4
|
const { componentName, create } = createComponent("sticky");
|
|
10
5
|
const _sfc_main = create({
|
|
11
6
|
props: {
|
|
@@ -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, computed, h } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
8
3
|
import { CheckNormal, CheckChecked } from "@nutui/icons-vue";
|
|
9
|
-
import { p as pxCheck } from "./pxCheck-
|
|
4
|
+
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
10
5
|
const { componentName, create } = createComponent("radio");
|
|
11
6
|
const _sfc_main = create({
|
|
12
7
|
components: {
|
|
@@ -1,9 +1,4 @@
|
|
|
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 { f as isPromise } from "./component-48526d37.js";
|
|
1
|
+
import { f as isPromise } from "./component-81a4c1d0.js";
|
|
7
2
|
const funInterceptor = (interceptor, {
|
|
8
3
|
args = [],
|
|
9
4
|
done,
|
|
@@ -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 { createApp } from "vue";
|
|
7
|
-
import { j as isString, k as isFunction } from "./component-
|
|
2
|
+
import { j as isString, k as isFunction } from "./component-81a4c1d0.js";
|
|
8
3
|
const CreateComponent = (options, component) => {
|
|
9
4
|
let elWarp = document.body;
|
|
10
5
|
const teleport = options.teleport || "body";
|