@nutui/nutui 4.0.0-beta.6 → 4.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nutui.es.js +102 -102
- package/dist/nutui.umd.cjs +243 -258
- package/dist/packages/_es/ActionSheet.js +3 -8
- package/dist/packages/_es/Address.js +4 -9
- package/dist/packages/_es/AddressList.js +3 -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 +2 -7
- 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 +3 -8
- package/dist/packages/_es/Cascader.js +8 -14
- 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 +2 -7
- package/dist/packages/_es/CollapseItem.js +3 -8
- package/dist/packages/_es/Comment.js +5 -10
- package/dist/packages/_es/ConfigProvider.js +1 -6
- 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 +5 -10
- 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 +9 -14
- 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/Loading-5f2ef345.js +59 -0
- package/dist/packages/_es/Loading-ff1ade5e.js +59 -0
- 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 +4 -9
- package/dist/packages/_es/Notify.js +3 -8
- 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 +2 -7
- 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 +4 -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 +2 -7
- package/dist/packages/_es/Swipe.js +3 -8
- package/dist/packages/_es/Swiper.js +3 -8
- package/dist/packages/_es/SwiperItem.js +3 -8
- package/dist/packages/_es/Switch.js +2 -7
- package/dist/packages/_es/TabPane.js +2 -7
- package/dist/packages/_es/Tabbar.js +2 -7
- package/dist/packages/_es/TabbarItem.js +5 -10
- package/dist/packages/_es/Table.js +2 -7
- package/dist/packages/_es/Tabs.js +5 -10
- 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 +5 -10
- 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-f84579cd.js → _plugin-vue_export-helper-214bd398.js} +1 -1
- package/dist/packages/_es/_plugin-vue_export-helper-3119770d.js +15 -0
- package/dist/packages/_es/_plugin-vue_export-helper-40ecb205.js +15 -0
- package/dist/packages/_es/_plugin-vue_export-helper-cabb815c.js +15 -0
- package/dist/packages/_es/_plugin-vue_export-helper-cc2b3d55.js +10 -0
- package/dist/packages/_es/{common-8e13240b.js → common-1144cf18.js} +3 -3
- package/dist/packages/_es/common-33d6538d.js +142 -0
- package/dist/packages/_es/common-38afc79e.js +142 -0
- package/dist/packages/_es/common-ceb98554.js +137 -0
- package/dist/packages/_es/common-fcbd940e.js +142 -0
- package/dist/packages/_es/{component-2bf83b98.js → component-555f9132.js} +1 -1
- package/dist/packages/_es/component-81a4c1d0.js +145 -0
- package/dist/packages/_es/component-93f40b7f.js +144 -0
- package/dist/packages/_es/component-cb778481.js +150 -0
- package/dist/packages/_es/component-f9e4b05e.js +144 -0
- package/dist/packages/_es/{index-99be5adc.js → index-122e380e.js} +1 -1
- package/dist/packages/_es/{index-c2175b7b.js → index-15d5ca2c.js} +1 -1
- package/dist/packages/_es/index-16f572cc.js +52 -0
- package/dist/packages/_es/{index-97b8ae5b.js → index-18e7c77e.js} +1 -1
- package/dist/packages/_es/index-22af3a75.js +35 -0
- package/dist/packages/_es/index-29892cda.js +33 -0
- package/dist/packages/_es/{index-175ca86c.js → index-2d3e73a7.js} +3 -3
- package/dist/packages/_es/index-350a8abd.js +809 -0
- package/dist/packages/_es/index-375f2695.js +15 -0
- package/dist/packages/_es/index-43c34ac6.js +30 -0
- package/dist/packages/_es/index-54d03fc1.js +8 -0
- package/dist/packages/_es/{index-da641709.js → index-57aa518c.js} +1 -1
- package/dist/packages/_es/{index-63fdf6d9.js → index-65e55319.js} +1 -1
- package/dist/packages/_es/index-673e467d.js +72 -0
- package/dist/packages/_es/index-69b79b10.js +52 -0
- package/dist/packages/_es/index-7386d8ea.js +35 -0
- package/dist/packages/_es/index-75be4de5.js +72 -0
- package/dist/packages/_es/{index-3e3fbad2.js → index-7653e348.js} +5 -5
- package/dist/packages/_es/index-79c5dc33.js +10 -0
- package/dist/packages/_es/index-7a7385e4.js +67 -0
- package/dist/packages/_es/index-83f367f2.js +15 -0
- package/dist/packages/_es/index-a0ae7438.js +72 -0
- package/dist/packages/_es/index-abb46652.js +13 -0
- package/dist/packages/_es/index-bd90ef5b.js +38 -0
- package/dist/packages/_es/index-da7aa231.js +234 -0
- package/dist/packages/_es/index-dd23f7fc.js +35 -0
- package/dist/packages/_es/index-ec1281d1.js +15 -0
- package/dist/packages/_es/index-ee55d99f.js +814 -0
- package/dist/packages/_es/index-f9640059.js +239 -0
- package/dist/packages/_es/index.taro-15624a72.js +833 -0
- package/dist/packages/_es/index.taro-2ce92fc8.js +76 -0
- package/dist/packages/_es/index.taro-356b6989.js +238 -0
- package/dist/packages/_es/index.taro-5564033f.js +833 -0
- package/dist/packages/_es/index.taro-be0723aa.js +76 -0
- package/dist/packages/_es/index.taro-da1bc684.js +238 -0
- package/dist/packages/_es/index.taro.vue_vue_type_script_lang-5696dfc0.js +102 -0
- package/dist/packages/_es/index.taro.vue_vue_type_script_lang-5b67ab83.js +102 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-1291fceb.js +45 -0
- package/dist/packages/_es/{index.vue_vue_type_script_lang-1721812a.js → index.vue_vue_type_script_lang-164ba0ab.js} +3 -3
- package/dist/packages/_es/{index.vue_vue_type_script_lang-33f247fa.js → index.vue_vue_type_script_lang-1c056efc.js} +3 -3
- package/dist/packages/_es/{index.vue_vue_type_script_lang-85ad5ab4.js → index.vue_vue_type_script_lang-2c5dd6ac.js} +2 -2
- package/dist/packages/_es/index.vue_vue_type_script_lang-3bc78a6d.js +156 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-630bc089.js +50 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-ba9e696d.js +50 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-cab1cdc4.js +102 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-cc5c4086.js +151 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-d4c88f85.js +97 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-f91aa3ff.js +50 -0
- package/dist/packages/_es/{interceptor-92c6157e.js → interceptor-5d3d8b0a.js} +2 -2
- package/dist/packages/_es/interceptor-956b24fc.js +29 -0
- package/dist/packages/_es/interceptor-bf7033c2.js +34 -0
- package/dist/packages/_es/interceptor-ccd1403c.js +34 -0
- package/dist/packages/_es/interceptor-dbee5851.js +34 -0
- package/dist/packages/_es/{mountComponent-b7bd982c.js → mountComponent-1316c4a2.js} +2 -2
- package/dist/packages/_es/mountComponent-1ece4110.js +39 -0
- package/dist/packages/_es/mountComponent-3f8ea19f.js +44 -0
- package/dist/packages/_es/{pxCheck-f4ea5980.js → pxCheck-110c0d58.js} +1 -1
- package/dist/packages/_es/pxCheck-42d1a00f.js +11 -0
- package/dist/packages/_es/pxCheck-62a0c829.js +11 -0
- package/dist/packages/_es/pxCheck-70f351cb.js +11 -0
- package/dist/packages/_es/pxCheck-c6b9f6b7.js +6 -0
- package/dist/packages/_es/{raf-9ea18668.js → raf-182636f4.js} +1 -1
- package/dist/packages/_es/raf-2ee3bcbb.js +30 -0
- package/dist/packages/_es/raf-6ea498df.js +21 -0
- package/dist/packages/_es/raf-729dad54.js +25 -0
- package/dist/packages/_es/raf-8518c796.js +21 -0
- package/dist/packages/_es/{renderIcon-e359b85f.js → renderIcon-0d8f6335.js} +1 -1
- package/dist/packages/_es/renderIcon-1be33355.js +14 -0
- package/dist/packages/_es/renderIcon-3d0fd47c.js +9 -0
- package/dist/packages/_es/renderIcon-ba0fcba3.js +14 -0
- package/dist/packages/_es/renderIcon-bde9e715.js +14 -0
- package/dist/packages/_es/style_icon-299fd467.js +6 -0
- package/dist/packages/_es/style_icon-8872f331.js +6 -0
- package/dist/packages/locale/lang/baseLang-0bdc6353.js +5 -0
- package/dist/packages/locale/lang/{baseLang-b64fda03.js → baseLang-0e7bcba4.js} +1 -1
- package/dist/packages/locale/lang/baseLang-5db74119.js +10 -0
- package/dist/packages/locale/lang/baseLang-6070c617.js +10 -0
- package/dist/packages/locale/lang/baseLang-8d65df5e.js +10 -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/popover/index.scss +1 -1
- package/dist/smartips/web-types.json +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +50 -50
- package/dist/styles/themes/jdb.scss +50 -50
- package/dist/styles/themes/jddkh.scss +50 -50
- package/dist/styles/themes/jdt.scss +50 -50
- package/dist/types/__VUE/actionsheet/index.taro.vue.d.ts +292 -0
- package/dist/types/__VUE/address/index.taro.vue.d.ts +377 -0
- package/dist/types/__VUE/addresslist/index.taro.vue.d.ts +83 -0
- package/dist/types/__VUE/animate/index.taro.vue.d.ts +54 -0
- package/dist/types/__VUE/avatar/index.taro.vue.d.ts +76 -0
- package/dist/types/__VUE/avatargroup/index.taro.vue.d.ts +92 -0
- package/dist/types/__VUE/backtop/index.taro.vue.d.ts +76 -0
- package/dist/types/__VUE/badge/index.taro.vue.d.ts +93 -0
- package/dist/types/__VUE/barrage/index.taro.vue.d.ts +81 -0
- package/dist/types/__VUE/button/index.taro.vue.d.ts +117 -0
- package/dist/types/__VUE/calendar/index.taro.vue.d.ts +187 -0
- package/dist/types/__VUE/calendaritem/index.taro.vue.d.ts +217 -0
- package/dist/types/__VUE/card/index.taro.vue.d.ts +89 -0
- package/dist/types/__VUE/cascader/cascader-item.taro.vue.d.ts +77 -0
- package/dist/types/__VUE/cascader/index.taro.vue.d.ts +245 -0
- package/dist/types/__VUE/category/index.taro.vue.d.ts +42 -0
- package/dist/types/__VUE/categorypane/index.taro.vue.d.ts +54 -0
- package/dist/types/__VUE/cell/index.taro.vue.d.ts +124 -0
- package/dist/types/__VUE/checkbox/index.taro.vue.d.ts +12 -0
- package/dist/types/__VUE/circleprogress/index.taro.vue.d.ts +93 -0
- package/dist/types/__VUE/collapse/index.taro.vue.d.ts +38 -0
- package/dist/types/__VUE/collapseitem/index.taro.vue.d.ts +111 -0
- package/dist/types/__VUE/comment/index.taro.vue.d.ts +119 -0
- package/dist/types/__VUE/configprovider/index.taro.vue.d.ts +45 -0
- package/dist/types/__VUE/countdown/index.taro.vue.d.ts +103 -0
- package/dist/types/__VUE/countup/index.taro.vue.d.ts +213 -0
- package/dist/types/__VUE/datepicker/index.taro.vue.d.ts +232 -0
- package/dist/types/__VUE/dialog/index.taro.vue.d.ts +327 -0
- package/dist/types/__VUE/divider/index.taro.vue.d.ts +53 -0
- package/dist/types/__VUE/drag/index.taro.vue.d.ts +62 -0
- package/dist/types/__VUE/ecard/index.taro.vue.d.ts +128 -0
- package/dist/types/__VUE/elevator/index.taro.vue.d.ts +119 -0
- package/dist/types/__VUE/ellipsis/index.taro.vue.d.ts +103 -0
- package/dist/types/__VUE/empty/index.taro.vue.d.ts +46 -0
- package/dist/types/__VUE/fixednav/index.taro.vue.d.ts +105 -0
- package/dist/types/__VUE/form/index.taro.vue.d.ts +40 -0
- package/dist/types/__VUE/formitem/index.taro.vue.d.ts +114 -0
- package/dist/types/__VUE/grid/index.taro.vue.d.ts +84 -0
- package/dist/types/__VUE/griditem/index.taro.vue.d.ts +22 -0
- package/dist/types/__VUE/icon/index.taro.vue.d.ts +12 -0
- package/dist/types/__VUE/image/index.taro.vue.d.ts +32 -0
- package/dist/types/__VUE/imagepreview/index.taro.vue.d.ts +172 -0
- package/dist/types/__VUE/indicator/index.taro.vue.d.ts +70 -0
- package/dist/types/__VUE/input/index.taro.vue.d.ts +257 -0
- package/dist/types/__VUE/inputnumber/index.taro.vue.d.ts +116 -0
- package/dist/types/__VUE/invoice/index.taro.vue.d.ts +52 -0
- package/dist/types/__VUE/layout/index.taro.vue.d.ts +12 -0
- package/dist/types/__VUE/list/index.taro.vue.d.ts +58 -0
- package/dist/types/__VUE/menu/index.taro.vue.d.ts +93 -0
- package/dist/types/__VUE/menuitem/index.taro.vue.d.ts +89 -0
- package/dist/types/__VUE/navbar/index.taro.vue.d.ts +121 -0
- package/dist/types/__VUE/noticebar/index.taro.vue.d.ts +217 -0
- package/dist/types/__VUE/notify/index.taro.vue.d.ts +97 -0
- package/dist/types/__VUE/numberkeyboard/index.taro.vue.d.ts +132 -0
- package/dist/types/__VUE/overlay/index.taro.vue.d.ts +85 -0
- package/dist/types/__VUE/pagination/index.taro.vue.d.ts +111 -0
- package/dist/types/__VUE/picker/index.taro.vue.d.ts +14 -0
- package/dist/types/__VUE/popover/index.taro.vue.d.ts +201 -0
- package/dist/types/__VUE/popup/index.taro.vue.d.ts +201 -0
- package/dist/types/__VUE/price/index.taro.vue.d.ts +87 -0
- package/dist/types/__VUE/progress/index.taro.vue.d.ts +128 -0
- package/dist/types/__VUE/radio/index.taro.vue.d.ts +53 -0
- package/dist/types/__VUE/range/index.taro.vue.d.ts +158 -0
- package/dist/types/__VUE/rate/index.taro.vue.d.ts +124 -0
- package/dist/types/__VUE/scrollView/index.taro.vue.d.ts +14 -0
- package/dist/types/__VUE/searchbar/index.taro.vue.d.ts +177 -0
- package/dist/types/__VUE/shortpassword/index.taro.vue.d.ts +103 -0
- package/dist/types/__VUE/sidenavbar/index.taro.vue.d.ts +31 -0
- package/dist/types/__VUE/signature/index.taro.vue.d.ts +83 -0
- package/dist/types/__VUE/skeleton/index.taro.vue.d.ts +115 -0
- package/dist/types/__VUE/sku/index.taro.vue.d.ts +182 -0
- package/dist/types/__VUE/steps/index.taro.vue.d.ts +46 -0
- package/dist/types/__VUE/sticky/index.taro.vue.d.ts +47 -0
- package/dist/types/__VUE/swipe/index.taro.vue.d.ts +71 -0
- package/dist/types/__VUE/swiper/index.taro.vue.d.ts +176 -0
- package/dist/types/__VUE/swiperitem/index.taro.vue.d.ts +18 -0
- package/dist/types/__VUE/switch/index.taro.vue.d.ts +108 -0
- package/dist/types/__VUE/tabbar/index.taro.vue.d.ts +93 -0
- package/dist/types/__VUE/tabbaritem/index.taro.vue.d.ts +59 -0
- package/dist/types/__VUE/table/index.taro.vue.d.ts +78 -0
- package/dist/types/__VUE/tabs/index.taro.vue.d.ts +164 -0
- package/dist/types/__VUE/tag/index.taro.vue.d.ts +90 -0
- package/dist/types/__VUE/textarea/index.taro.vue.d.ts +122 -0
- package/dist/types/__VUE/timedetail/index.taro.vue.d.ts +47 -0
- package/dist/types/__VUE/timepannel/index.taro.vue.d.ts +42 -0
- package/dist/types/__VUE/timeselect/index.taro.vue.d.ts +91 -0
- package/dist/types/__VUE/toast/index.taro.vue.d.ts +184 -0
- package/dist/types/__VUE/tour/index.taro.vue.d.ts +192 -0
- package/dist/types/__VUE/trendarrow/index.taro.vue.d.ts +105 -0
- package/dist/types/__VUE/uploader/index.taro.vue.d.ts +260 -0
- package/dist/types/__VUE/watermark/index.taro.vue.d.ts +175 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +5 -46
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 18:41:23 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { f as isPromise } from "./component-cb778481.js";
|
|
7
|
+
const funInterceptor = (interceptor, {
|
|
8
|
+
args = [],
|
|
9
|
+
done,
|
|
10
|
+
canceled
|
|
11
|
+
}) => {
|
|
12
|
+
if (interceptor) {
|
|
13
|
+
const returnVal = interceptor.apply(null, args);
|
|
14
|
+
if (isPromise(returnVal)) {
|
|
15
|
+
returnVal.then((value) => {
|
|
16
|
+
if (value) {
|
|
17
|
+
done(value);
|
|
18
|
+
} else if (canceled) {
|
|
19
|
+
canceled();
|
|
20
|
+
}
|
|
21
|
+
}).catch(() => {
|
|
22
|
+
});
|
|
23
|
+
} else if (returnVal) {
|
|
24
|
+
done();
|
|
25
|
+
} else if (canceled) {
|
|
26
|
+
canceled();
|
|
27
|
+
}
|
|
28
|
+
} else {
|
|
29
|
+
done();
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
funInterceptor as f
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 13:26:55 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { e as isPromise } from "./component-f9e4b05e.js";
|
|
7
|
+
const funInterceptor = (interceptor, {
|
|
8
|
+
args = [],
|
|
9
|
+
done,
|
|
10
|
+
canceled
|
|
11
|
+
}) => {
|
|
12
|
+
if (interceptor) {
|
|
13
|
+
const returnVal = interceptor.apply(null, args);
|
|
14
|
+
if (isPromise(returnVal)) {
|
|
15
|
+
returnVal.then((value) => {
|
|
16
|
+
if (value) {
|
|
17
|
+
done(value);
|
|
18
|
+
} else if (canceled) {
|
|
19
|
+
canceled();
|
|
20
|
+
}
|
|
21
|
+
}).catch(() => {
|
|
22
|
+
});
|
|
23
|
+
} else if (returnVal) {
|
|
24
|
+
done();
|
|
25
|
+
} else if (canceled) {
|
|
26
|
+
canceled();
|
|
27
|
+
}
|
|
28
|
+
} else {
|
|
29
|
+
done();
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
funInterceptor as f
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 18:47:23 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { f as isPromise } from "./component-555f9132.js";
|
|
7
|
+
const funInterceptor = (interceptor, {
|
|
8
|
+
args = [],
|
|
9
|
+
done,
|
|
10
|
+
canceled
|
|
11
|
+
}) => {
|
|
12
|
+
if (interceptor) {
|
|
13
|
+
const returnVal = interceptor.apply(null, args);
|
|
14
|
+
if (isPromise(returnVal)) {
|
|
15
|
+
returnVal.then((value) => {
|
|
16
|
+
if (value) {
|
|
17
|
+
done(value);
|
|
18
|
+
} else if (canceled) {
|
|
19
|
+
canceled();
|
|
20
|
+
}
|
|
21
|
+
}).catch(() => {
|
|
22
|
+
});
|
|
23
|
+
} else if (returnVal) {
|
|
24
|
+
done();
|
|
25
|
+
} else if (canceled) {
|
|
26
|
+
canceled();
|
|
27
|
+
}
|
|
28
|
+
} else {
|
|
29
|
+
done();
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
funInterceptor as f
|
|
34
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 18:41:23 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { createApp } from "vue";
|
|
7
|
-
import { j as isString, k as isFunction } from "./component-
|
|
7
|
+
import { j as isString, k as isFunction } from "./component-cb778481.js";
|
|
8
8
|
const CreateComponent = (options, component) => {
|
|
9
9
|
let elWarp = document.body;
|
|
10
10
|
const teleport = options.teleport || "body";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { createApp } from "vue";
|
|
2
|
+
import { j as isString, k as isFunction } from "./component-81a4c1d0.js";
|
|
3
|
+
const CreateComponent = (options, component) => {
|
|
4
|
+
let elWarp = document.body;
|
|
5
|
+
const teleport = options.teleport || "body";
|
|
6
|
+
if (teleport != "body") {
|
|
7
|
+
if (isString(teleport)) {
|
|
8
|
+
elWarp = document.querySelector(teleport);
|
|
9
|
+
} else {
|
|
10
|
+
elWarp = options.teleport;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
const root = document.createElement("view");
|
|
14
|
+
const name = component.name ? component.name + "-" : "";
|
|
15
|
+
const id1 = options.id || new Date().getTime();
|
|
16
|
+
root.id = name + id1;
|
|
17
|
+
let Wrapper = {};
|
|
18
|
+
if (isFunction(component.wrapper)) {
|
|
19
|
+
Wrapper = component.wrapper(elWarp, root);
|
|
20
|
+
} else {
|
|
21
|
+
Wrapper = component.wrapper;
|
|
22
|
+
}
|
|
23
|
+
const instance = createApp(Wrapper, options);
|
|
24
|
+
const componens = component.components;
|
|
25
|
+
componens && componens.forEach((comp) => {
|
|
26
|
+
instance.use(comp);
|
|
27
|
+
});
|
|
28
|
+
elWarp.appendChild(root);
|
|
29
|
+
return {
|
|
30
|
+
instance: instance.mount(root),
|
|
31
|
+
unmount: () => {
|
|
32
|
+
instance.unmount();
|
|
33
|
+
elWarp.removeChild(root);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
CreateComponent as C
|
|
39
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 18:47:23 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { createApp } from "vue";
|
|
7
|
+
import { j as isString, k as isFunction } from "./component-555f9132.js";
|
|
8
|
+
const CreateComponent = (options, component) => {
|
|
9
|
+
let elWarp = document.body;
|
|
10
|
+
const teleport = options.teleport || "body";
|
|
11
|
+
if (teleport != "body") {
|
|
12
|
+
if (isString(teleport)) {
|
|
13
|
+
elWarp = document.querySelector(teleport);
|
|
14
|
+
} else {
|
|
15
|
+
elWarp = options.teleport;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
const root = document.createElement("view");
|
|
19
|
+
const name = component.name ? component.name + "-" : "";
|
|
20
|
+
const id1 = options.id || new Date().getTime();
|
|
21
|
+
root.id = name + id1;
|
|
22
|
+
let Wrapper = {};
|
|
23
|
+
if (isFunction(component.wrapper)) {
|
|
24
|
+
Wrapper = component.wrapper(elWarp, root);
|
|
25
|
+
} else {
|
|
26
|
+
Wrapper = component.wrapper;
|
|
27
|
+
}
|
|
28
|
+
const instance = createApp(Wrapper, options);
|
|
29
|
+
const componens = component.components;
|
|
30
|
+
componens && componens.forEach((comp) => {
|
|
31
|
+
instance.use(comp);
|
|
32
|
+
});
|
|
33
|
+
elWarp.appendChild(root);
|
|
34
|
+
return {
|
|
35
|
+
instance: instance.mount(root),
|
|
36
|
+
unmount: () => {
|
|
37
|
+
instance.unmount();
|
|
38
|
+
elWarp.removeChild(root);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
CreateComponent as C
|
|
44
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 18:41:23 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
const pxCheck = (value) => {
|
|
7
|
+
return isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
pxCheck as p
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 13:26:55 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
const pxCheck = (value) => {
|
|
7
|
+
return isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
pxCheck as p
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 18:47:23 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
const pxCheck = (value) => {
|
|
7
|
+
return isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
pxCheck as p
|
|
11
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 18:47:23 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
const _window = window;
|
|
7
|
+
const inBrowser = typeof window !== "undefined";
|
|
8
|
+
function requestAniFrame() {
|
|
9
|
+
if (typeof _window !== "undefined") {
|
|
10
|
+
return _window.requestAnimationFrame || _window.webkitRequestAnimationFrame || function(callback) {
|
|
11
|
+
_window.setTimeout(callback, 1e3 / 60);
|
|
12
|
+
};
|
|
13
|
+
} else {
|
|
14
|
+
return function(callback) {
|
|
15
|
+
setTimeout(callback, 1e3 / 60);
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function cancelRaf(id) {
|
|
20
|
+
if (inBrowser) {
|
|
21
|
+
cancelAnimationFrame(id);
|
|
22
|
+
} else {
|
|
23
|
+
clearTimeout(id);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
const requestAniFrame$1 = requestAniFrame();
|
|
27
|
+
export {
|
|
28
|
+
cancelRaf as c,
|
|
29
|
+
requestAniFrame$1 as r
|
|
30
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 13:26:55 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
const _window = window;
|
|
7
|
+
function requestAniFrame() {
|
|
8
|
+
if (typeof _window !== "undefined") {
|
|
9
|
+
return _window.requestAnimationFrame || _window.webkitRequestAnimationFrame || function(callback) {
|
|
10
|
+
_window.setTimeout(callback, 1e3 / 60);
|
|
11
|
+
};
|
|
12
|
+
} else {
|
|
13
|
+
return function(callback) {
|
|
14
|
+
setTimeout(callback, 1e3 / 60);
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
const requestAniFrame$1 = requestAniFrame();
|
|
19
|
+
export {
|
|
20
|
+
requestAniFrame$1 as r
|
|
21
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const _window = window;
|
|
2
|
+
const inBrowser = typeof window !== "undefined";
|
|
3
|
+
function requestAniFrame() {
|
|
4
|
+
if (typeof _window !== "undefined") {
|
|
5
|
+
return _window.requestAnimationFrame || _window.webkitRequestAnimationFrame || function(callback) {
|
|
6
|
+
_window.setTimeout(callback, 1e3 / 60);
|
|
7
|
+
};
|
|
8
|
+
} else {
|
|
9
|
+
return function(callback) {
|
|
10
|
+
setTimeout(callback, 1e3 / 60);
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
function cancelRaf(id) {
|
|
15
|
+
if (inBrowser) {
|
|
16
|
+
cancelAnimationFrame(id);
|
|
17
|
+
} else {
|
|
18
|
+
clearTimeout(id);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
const requestAniFrame$1 = requestAniFrame();
|
|
22
|
+
export {
|
|
23
|
+
cancelRaf as c,
|
|
24
|
+
requestAniFrame$1 as r
|
|
25
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 18:38:20 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
const _window = window;
|
|
7
|
+
function requestAniFrame() {
|
|
8
|
+
if (typeof _window !== "undefined") {
|
|
9
|
+
return _window.requestAnimationFrame || _window.webkitRequestAnimationFrame || function(callback) {
|
|
10
|
+
_window.setTimeout(callback, 1e3 / 60);
|
|
11
|
+
};
|
|
12
|
+
} else {
|
|
13
|
+
return function(callback) {
|
|
14
|
+
setTimeout(callback, 1e3 / 60);
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
const requestAniFrame$1 = requestAniFrame();
|
|
19
|
+
export {
|
|
20
|
+
requestAniFrame$1 as r
|
|
21
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 18:38:20 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { h } from "vue";
|
|
7
|
+
const renderIcon = (icon, props) => {
|
|
8
|
+
if (icon)
|
|
9
|
+
return h(icon, props);
|
|
10
|
+
return "";
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
renderIcon as r
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 18:47:23 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { h } from "vue";
|
|
7
|
+
const renderIcon = (icon, props) => {
|
|
8
|
+
if (icon)
|
|
9
|
+
return h(icon, props);
|
|
10
|
+
return "";
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
renderIcon as r
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 18:41:23 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { h } from "vue";
|
|
7
|
+
const renderIcon = (icon, props) => {
|
|
8
|
+
if (icon)
|
|
9
|
+
return h(icon, props);
|
|
10
|
+
return "";
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
renderIcon as r
|
|
14
|
+
};
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
var d = Object.defineProperty;
|
|
2
2
|
var s = (t, a, o) => a in t ? d(t, a, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[a] = o;
|
|
3
3
|
var e = (t, a, o) => (s(t, typeof a != "symbol" ? a + "" : a, o), o);
|
|
4
|
-
import { B as i } from "./baseLang-
|
|
5
|
-
/*!
|
|
6
|
-
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:13 GMT+0800 (中国标准时间)
|
|
7
|
-
* (c) 2022 @jdf2e.
|
|
8
|
-
* Released under the MIT License.
|
|
9
|
-
*/
|
|
4
|
+
import { B as i } from "./baseLang-0bdc6353.js";
|
|
10
5
|
class u extends i {
|
|
11
6
|
constructor() {
|
|
12
7
|
super(...arguments);
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
var l = Object.defineProperty;
|
|
2
2
|
var r = (n, i, e) => i in n ? l(n, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[i] = e;
|
|
3
3
|
var a = (n, i, e) => (r(n, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
|
-
import { B as u } from "./baseLang-
|
|
5
|
-
/*!
|
|
6
|
-
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:13 GMT+0800 (中国标准时间)
|
|
7
|
-
* (c) 2022 @jdf2e.
|
|
8
|
-
* Released under the MIT License.
|
|
9
|
-
*/
|
|
4
|
+
import { B as u } from "./baseLang-0bdc6353.js";
|
|
10
5
|
class o extends u {
|
|
11
6
|
constructor() {
|
|
12
7
|
super(...arguments);
|
|
@@ -4,12 +4,7 @@ var o = (r, t, e) => (a(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
|
4
4
|
import { reactive as l, ref as m } from "vue";
|
|
5
5
|
import p from "./zh-CN.js";
|
|
6
6
|
import h from "./en-US.js";
|
|
7
|
-
import "./baseLang-
|
|
8
|
-
/*!
|
|
9
|
-
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:13 GMT+0800 (中国标准时间)
|
|
10
|
-
* (c) 2022 @jdf2e.
|
|
11
|
-
* Released under the MIT License.
|
|
12
|
-
*/
|
|
7
|
+
import "./baseLang-0bdc6353.js";
|
|
13
8
|
const f = (r) => r !== null && typeof r == "object", n = (r, t) => (Object.keys(t).forEach((e) => {
|
|
14
9
|
let c = r[e], i = t[e];
|
|
15
10
|
f(c) && f(i) ? n(c, i) : r[e] = i;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
var r = Object.defineProperty;
|
|
2
2
|
var s = (d, t, a) => t in d ? r(d, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : d[t] = a;
|
|
3
3
|
var e = (d, t, a) => (s(d, typeof t != "symbol" ? t + "" : t, a), a);
|
|
4
|
-
import { B as i } from "./baseLang-
|
|
5
|
-
/*!
|
|
6
|
-
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:13 GMT+0800 (中国标准时间)
|
|
7
|
-
* (c) 2022 @jdf2e.
|
|
8
|
-
* Released under the MIT License.
|
|
9
|
-
*/
|
|
4
|
+
import { B as i } from "./baseLang-0bdc6353.js";
|
|
10
5
|
class c extends i {
|
|
11
6
|
constructor() {
|
|
12
7
|
super(...arguments);
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
var r = Object.defineProperty;
|
|
2
2
|
var s = (d, t, a) => t in d ? r(d, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : d[t] = a;
|
|
3
3
|
var e = (d, t, a) => (s(d, typeof t != "symbol" ? t + "" : t, a), a);
|
|
4
|
-
import { B as i } from "./baseLang-
|
|
5
|
-
/*!
|
|
6
|
-
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:13 GMT+0800 (中国标准时间)
|
|
7
|
-
* (c) 2022 @jdf2e.
|
|
8
|
-
* Released under the MIT License.
|
|
9
|
-
*/
|
|
4
|
+
import { B as i } from "./baseLang-0bdc6353.js";
|
|
10
5
|
class c extends i {
|
|
11
6
|
constructor() {
|
|
12
7
|
super(...arguments);
|