@nutui/nutui 3.2.6-beta.1 → 3.2.6-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -4
- package/dist/nutui.es.js +4461 -4135
- package/dist/nutui.umd.js +4559 -4133
- package/dist/packages/_es/ActionSheet.js +19 -18
- package/dist/packages/_es/Address.js +85 -94
- package/dist/packages/_es/AddressList.js +12 -25
- package/dist/packages/_es/Animate.js +3 -3
- package/dist/packages/_es/Audio.js +2 -9
- package/dist/packages/_es/AudioOperate.js +1 -5
- package/dist/packages/_es/Avatar.js +10 -10
- package/dist/packages/_es/AvatarGroup.js +5 -5
- package/dist/packages/_es/BackTop.js +108 -55
- package/dist/packages/_es/Badge.js +12 -10
- package/dist/packages/_es/Barrage.js +103 -79
- package/dist/packages/_es/Button.js +3 -5
- package/dist/packages/_es/Calendar.js +23 -36
- package/dist/packages/_es/CalendarItem.js +3 -4
- package/dist/packages/_es/Card.js +5 -15
- package/dist/packages/_es/Cascader.js +11 -12
- package/dist/packages/_es/Category.js +12 -13
- package/dist/packages/_es/CategoryPane.js +13 -17
- package/dist/packages/_es/Cell.js +12 -9
- package/dist/packages/_es/CellGroup.js +2 -4
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +2 -2
- package/dist/packages/_es/CircleProgress.js +82 -98
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +34 -65
- package/dist/packages/_es/CollapseItem.js +60 -93
- package/dist/packages/_es/Comment.js +19 -43
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +3 -3
- package/dist/packages/_es/CountUp.js +52 -47
- package/dist/packages/_es/DatePicker.js +54 -37
- package/dist/packages/_es/Dialog.js +88 -9
- package/dist/packages/_es/Divider.js +3 -3
- package/dist/packages/_es/Drag.js +49 -75
- package/dist/packages/_es/Ecard.js +18 -20
- package/dist/packages/_es/Elevator.js +76 -101
- package/dist/packages/_es/Ellipsis.js +100 -140
- package/dist/packages/_es/Empty.js +4 -6
- package/dist/packages/_es/FixedNav.js +6 -11
- package/dist/packages/_es/Form.js +4 -4
- package/dist/packages/_es/FormItem.js +1 -3
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +27 -10
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +114 -13
- package/dist/packages/_es/ImagePreview.js +411 -149
- package/dist/packages/_es/Indicator.js +3 -3
- package/dist/packages/_es/InfiniteLoading.js +115 -103
- package/dist/packages/_es/Input.js +32 -56
- package/dist/packages/_es/InputNumber.js +16 -25
- package/dist/packages/_es/Invoice.js +5 -6
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +34 -47
- package/dist/packages/_es/Menu.js +35 -35
- package/dist/packages/_es/MenuItem.js +29 -56
- package/dist/packages/_es/Navbar.js +39 -49
- package/dist/packages/_es/NoticeBar.js +45 -54
- package/dist/packages/_es/Notify.js +162 -44
- package/dist/packages/_es/NumberKeyboard.js +20 -15
- package/dist/packages/_es/OldPicker.js +116 -130
- package/dist/packages/_es/OverLay.js +28 -5
- package/dist/packages/_es/Pagination.js +5 -8
- package/dist/packages/_es/Picker.js +74 -198
- package/dist/packages/_es/Popover.js +881 -201
- package/dist/packages/_es/Popup.js +84 -28
- package/dist/packages/_es/Price.js +6 -22
- package/dist/packages/_es/Progress.js +11 -18
- package/dist/packages/_es/PullRefresh.js +2 -4
- package/dist/packages/_es/Radio.js +3 -3
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +34 -48
- package/dist/packages/_es/Rate.js +14 -15
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +36 -39
- package/dist/packages/_es/ShortPassword.js +66 -97
- package/dist/packages/_es/SideNavBar.js +18 -7
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +80 -113
- package/dist/packages/_es/Skeleton.js +11 -12
- package/dist/packages/_es/Sku.js +38 -63
- package/dist/packages/_es/Step.js +2 -7
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +23 -33
- package/dist/packages/_es/SubSideNavBar.js +2 -4
- package/dist/packages/_es/Swipe.js +26 -41
- package/dist/packages/_es/Swiper.js +21 -38
- package/dist/packages/_es/SwiperItem.js +2 -2
- package/dist/packages/_es/Switch.js +8 -8
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +13 -15
- package/dist/packages/_es/TabbarItem.js +30 -24
- package/dist/packages/_es/Table.js +17 -22
- package/dist/packages/_es/Tabs.js +16 -49
- package/dist/packages/_es/Tag.js +5 -6
- package/dist/packages/_es/TextArea.js +49 -114
- package/dist/packages/_es/TimeDetail.js +3 -4
- package/dist/packages/_es/TimePannel.js +3 -3
- package/dist/packages/_es/TimeSelect.js +10 -12
- package/dist/packages/_es/Toast.js +164 -53
- package/dist/packages/_es/TrendArrow.js +4 -6
- package/dist/packages/_es/Uploader.js +140 -141
- package/dist/packages/_es/Video.js +18 -39
- package/dist/packages/_es/WaterMark.js +14 -22
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +6 -44
- package/dist/packages/_es/index2.js +31 -8
- package/dist/packages/_es/index3.js +7 -64
- package/dist/packages/_es/index4.js +62 -424
- package/dist/packages/_es/{index.taro.js → index5.js} +154 -167
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/_es/style.css +3 -21
- package/dist/packages/checkbox/index.scss +1 -0
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/menuitem/index.scss +12 -3
- package/dist/smartips/attributes.json +5 -1
- package/dist/smartips/tags.json +1 -0
- package/dist/smartips/web-types.json +11 -2
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +48 -48
- package/dist/styles/themes/jdb.scss +48 -48
- package/dist/styles/themes/jddkh.scss +48 -48
- package/dist/styles/themes/jdt.scss +48 -48
- package/dist/types/__VUE/actionsheet/{index.taro.vue.d.ts → index.vue.d.ts} +9 -9
- package/dist/types/__VUE/address/{index.taro.vue.d.ts → index.vue.d.ts} +33 -73
- package/dist/types/__VUE/addresslist/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/animate/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/avatar/{index.taro.vue.d.ts → index.vue.d.ts} +6 -6
- package/dist/types/__VUE/avatargroup/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/backtop/{index.taro.vue.d.ts → index.vue.d.ts} +37 -15
- package/dist/types/__VUE/badge/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/barrage/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/button/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendar/{index.taro.vue.d.ts → index.vue.d.ts} +1 -13
- package/dist/types/__VUE/calendaritem/{index.taro.vue.d.ts → index.vue.d.ts} +17 -17
- package/dist/types/__VUE/card/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/cascader/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/category/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/categorypane/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/cell/{index.taro.vue.d.ts → index.vue.d.ts} +5 -12
- package/dist/types/__VUE/checkbox/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/circleprogress/{index.taro.vue.d.ts → index.vue.d.ts} +15 -14
- package/dist/types/__VUE/collapse/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/collapseitem/{index.taro.vue.d.ts → index.vue.d.ts} +10 -2
- package/dist/types/__VUE/comment/{index.taro.vue.d.ts → index.vue.d.ts} +2 -1
- package/dist/types/__VUE/configprovider/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/countdown/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/countup/{index.taro.vue.d.ts → index.vue.d.ts} +7 -5
- package/dist/types/__VUE/datepicker/{index.taro.vue.d.ts → index.vue.d.ts} +5 -5
- package/dist/types/__VUE/dialog/index.d.ts +48 -0
- package/dist/types/__VUE/dialog/{index.taro.vue.d.ts → index.vue.d.ts} +12 -9
- package/dist/types/__VUE/divider/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/drag/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
- package/dist/types/__VUE/ecard/{index.taro.vue.d.ts → index.vue.d.ts} +3 -3
- package/dist/types/__VUE/elevator/{index.taro.vue.d.ts → index.vue.d.ts} +2 -11
- package/dist/types/__VUE/ellipsis/{index.taro.vue.d.ts → index.vue.d.ts} +0 -4
- package/dist/types/__VUE/empty/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/fixednav/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/form/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/grid/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/griditem/{index.taro.vue.d.ts → index.vue.d.ts} +27 -2
- package/dist/types/__VUE/image/index.vue.d.ts +117 -0
- package/dist/types/__VUE/image/type.d.ts +6 -0
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +109 -0
- package/dist/types/__VUE/imagepreview/index.d.ts +25 -0
- package/dist/types/__VUE/imagepreview/{index.taro.vue.d.ts → index.vue.d.ts} +44 -33
- package/dist/types/__VUE/indicator/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/infiniteloading/{index.taro.vue.d.ts → index.vue.d.ts} +12 -19
- package/dist/types/__VUE/input/{index.taro.vue.d.ts → index.vue.d.ts} +16 -34
- package/dist/types/__VUE/inputnumber/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/invoice/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/layout/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/list/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/menu/{index.taro.vue.d.ts → index.vue.d.ts} +0 -1
- package/dist/types/__VUE/menuitem/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/navbar/{index.taro.vue.d.ts → index.vue.d.ts} +3 -2
- package/dist/types/__VUE/noticebar/{index.taro.vue.d.ts → index.vue.d.ts} +4 -4
- package/dist/types/__VUE/notify/index.d.ts +26 -0
- package/dist/types/__VUE/notify/{index.taro.vue.d.ts → index.vue.d.ts} +18 -5
- package/dist/types/__VUE/numberkeyboard/{index.taro.vue.d.ts → index.vue.d.ts} +29 -5
- package/dist/types/__VUE/oldpicker/{ColumnTaro.vue.d.ts → Column.vue.d.ts} +17 -28
- package/dist/types/__VUE/oldpicker/{index.taro.vue.d.ts → index.vue.d.ts} +44 -64
- package/dist/types/__VUE/pagination/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/picker/{ColumnTaro.vue.d.ts → Column.vue.d.ts} +4 -16
- package/dist/types/__VUE/picker/{index.taro.vue.d.ts → index.vue.d.ts} +28 -53
- package/dist/types/__VUE/popover/{index.taro.vue.d.ts → index.vue.d.ts} +13 -15
- package/dist/types/__VUE/popup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/price/{index.taro.vue.d.ts → index.vue.d.ts} +0 -1
- package/dist/types/__VUE/progress/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/radio/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/range/{index.taro.vue.d.ts → index.vue.d.ts} +7 -8
- package/dist/types/__VUE/rate/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/searchbar/{index.taro.vue.d.ts → index.vue.d.ts} +19 -19
- package/dist/types/__VUE/shortpassword/{index.taro.vue.d.ts → index.vue.d.ts} +21 -6
- package/dist/types/__VUE/sidenavbar/{index.taro.vue.d.ts → index.vue.d.ts} +5 -0
- package/dist/types/__VUE/signature/{index.taro.vue.d.ts → index.vue.d.ts} +5 -8
- package/dist/types/__VUE/skeleton/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/sku/index.vue.d.ts +310 -0
- package/dist/types/__VUE/step/index.vue.d.ts +1 -1
- package/dist/types/__VUE/steps/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/sticky/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/swipe/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
- package/dist/types/__VUE/swiper/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
- package/dist/types/__VUE/swiperitem/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/switch/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/tabbar/{index.taro.vue.d.ts → index.vue.d.ts} +2 -1
- package/dist/types/__VUE/tabbaritem/{index.taro.vue.d.ts → index.vue.d.ts} +9 -9
- package/dist/types/__VUE/table/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/tabs/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/tag/{index.taro.vue.d.ts → index.vue.d.ts} +4 -4
- package/dist/types/__VUE/tag/type.d.ts +5 -0
- package/dist/types/__VUE/textarea/{index.taro.vue.d.ts → index.vue.d.ts} +3 -5
- package/dist/types/__VUE/timedetail/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/timepannel/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/timeselect/{index.taro.vue.d.ts → index.vue.d.ts} +8 -7
- package/dist/types/__VUE/toast/index.d.ts +16 -0
- package/dist/types/__VUE/toast/{index.taro.vue.d.ts → index.vue.d.ts} +22 -44
- package/dist/types/__VUE/trendarrow/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/uploader/{index.taro.vue.d.ts → index.vue.d.ts} +13 -22
- package/dist/types/__VUE/watermark/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +89 -89
- package/package.json +3 -2
- package/dist/packages/_es/use-lock-scroll.js +0 -23
- package/dist/types/__VUE/button/index.taro.vue.d.ts +0 -116
- package/dist/types/__VUE/icon/index.taro.vue.d.ts +0 -74
- package/dist/types/__VUE/image/index.taro.vue.d.ts +0 -33
- package/dist/types/__VUE/overlay/index.taro.vue.d.ts +0 -85
- package/dist/types/__VUE/popup/index.taro.vue.d.ts +0 -1728
- package/dist/types/__VUE/sku/index.taro.vue.d.ts +0 -182
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { App, PropType, CSSProperties } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
declare const _sfc_main: Install< import("vue").DefineComponent<{
|
|
6
|
+
sku: {
|
|
7
|
+
type: ArrayConstructor;
|
|
8
|
+
default: never[];
|
|
9
|
+
};
|
|
10
|
+
goods: {
|
|
11
|
+
type: ObjectConstructor;
|
|
12
|
+
default: {};
|
|
13
|
+
};
|
|
14
|
+
stepperMax: {
|
|
15
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
16
|
+
default: number;
|
|
17
|
+
};
|
|
18
|
+
stepperMin: {
|
|
19
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
btnOptions: {
|
|
23
|
+
type: ArrayConstructor;
|
|
24
|
+
default: () => string[];
|
|
25
|
+
};
|
|
26
|
+
stepperTitle: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
stepperExtraText: {
|
|
31
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
btnExtraText: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
buyText: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
addCartText: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
confirmText: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
position: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
transition: StringConstructor;
|
|
55
|
+
style: {
|
|
56
|
+
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
57
|
+
};
|
|
58
|
+
popClass: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
closeable: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
closeIconPosition: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
closeIcon: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
destroyOnClose: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
teleport: {
|
|
79
|
+
type: (StringConstructor | {
|
|
80
|
+
new (): Element;
|
|
81
|
+
prototype: Element;
|
|
82
|
+
})[];
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
overlay: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
round: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
isWrapTeleport: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
safeAreaInsetBottom: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
visible: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
zIndex: {
|
|
106
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
107
|
+
default: number;
|
|
108
|
+
};
|
|
109
|
+
duration: {
|
|
110
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
111
|
+
default: number;
|
|
112
|
+
};
|
|
113
|
+
overlayClass: {
|
|
114
|
+
type: StringConstructor;
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
lockScroll: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
121
|
+
overlayStyle: {
|
|
122
|
+
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
123
|
+
};
|
|
124
|
+
closeOnClickOverlay: {
|
|
125
|
+
type: BooleanConstructor;
|
|
126
|
+
default: boolean;
|
|
127
|
+
};
|
|
128
|
+
}, {
|
|
129
|
+
showPopup: any;
|
|
130
|
+
closePopup: (type: string) => void;
|
|
131
|
+
selectSku: (skus: any) => void;
|
|
132
|
+
changeStepper: (value: number) => void;
|
|
133
|
+
stepperOverLimit: (count: any) => void;
|
|
134
|
+
clickBtnOperate: (btn: string) => void;
|
|
135
|
+
add: (value: number) => void;
|
|
136
|
+
reduce: (value: number) => void;
|
|
137
|
+
getSlots: (name: string) => import("vue").Slot | undefined;
|
|
138
|
+
translate: (keyPath: string, ...args: unknown[]) => string;
|
|
139
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "add" | "close" | "reduce" | "selectSku" | "changeStepper" | "clickBtnOperate" | "clickCloseIcon" | "clickOverlay" | "overLimit")[], "reduce" | "update:visible" | "add" | "close" | "clickOverlay" | "selectSku" | "changeStepper" | "clickBtnOperate" | "clickCloseIcon" | "overLimit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
140
|
+
sku: {
|
|
141
|
+
type: ArrayConstructor;
|
|
142
|
+
default: never[];
|
|
143
|
+
};
|
|
144
|
+
goods: {
|
|
145
|
+
type: ObjectConstructor;
|
|
146
|
+
default: {};
|
|
147
|
+
};
|
|
148
|
+
stepperMax: {
|
|
149
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
150
|
+
default: number;
|
|
151
|
+
};
|
|
152
|
+
stepperMin: {
|
|
153
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
154
|
+
default: number;
|
|
155
|
+
};
|
|
156
|
+
btnOptions: {
|
|
157
|
+
type: ArrayConstructor;
|
|
158
|
+
default: () => string[];
|
|
159
|
+
};
|
|
160
|
+
stepperTitle: {
|
|
161
|
+
type: StringConstructor;
|
|
162
|
+
default: string;
|
|
163
|
+
};
|
|
164
|
+
stepperExtraText: {
|
|
165
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
|
166
|
+
default: boolean;
|
|
167
|
+
};
|
|
168
|
+
btnExtraText: {
|
|
169
|
+
type: StringConstructor;
|
|
170
|
+
default: string;
|
|
171
|
+
};
|
|
172
|
+
buyText: {
|
|
173
|
+
type: StringConstructor;
|
|
174
|
+
default: string;
|
|
175
|
+
};
|
|
176
|
+
addCartText: {
|
|
177
|
+
type: StringConstructor;
|
|
178
|
+
default: string;
|
|
179
|
+
};
|
|
180
|
+
confirmText: {
|
|
181
|
+
type: StringConstructor;
|
|
182
|
+
default: string;
|
|
183
|
+
};
|
|
184
|
+
position: {
|
|
185
|
+
type: StringConstructor;
|
|
186
|
+
default: string;
|
|
187
|
+
};
|
|
188
|
+
transition: StringConstructor;
|
|
189
|
+
style: {
|
|
190
|
+
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
191
|
+
};
|
|
192
|
+
popClass: {
|
|
193
|
+
type: StringConstructor;
|
|
194
|
+
default: string;
|
|
195
|
+
};
|
|
196
|
+
closeable: {
|
|
197
|
+
type: BooleanConstructor;
|
|
198
|
+
default: boolean;
|
|
199
|
+
};
|
|
200
|
+
closeIconPosition: {
|
|
201
|
+
type: StringConstructor;
|
|
202
|
+
default: string;
|
|
203
|
+
};
|
|
204
|
+
closeIcon: {
|
|
205
|
+
type: StringConstructor;
|
|
206
|
+
default: string;
|
|
207
|
+
};
|
|
208
|
+
destroyOnClose: {
|
|
209
|
+
type: BooleanConstructor;
|
|
210
|
+
default: boolean;
|
|
211
|
+
};
|
|
212
|
+
teleport: {
|
|
213
|
+
type: (StringConstructor | {
|
|
214
|
+
new (): Element;
|
|
215
|
+
prototype: Element;
|
|
216
|
+
})[];
|
|
217
|
+
default: string;
|
|
218
|
+
};
|
|
219
|
+
overlay: {
|
|
220
|
+
type: BooleanConstructor;
|
|
221
|
+
default: boolean;
|
|
222
|
+
};
|
|
223
|
+
round: {
|
|
224
|
+
type: BooleanConstructor;
|
|
225
|
+
default: boolean;
|
|
226
|
+
};
|
|
227
|
+
isWrapTeleport: {
|
|
228
|
+
type: BooleanConstructor;
|
|
229
|
+
default: boolean;
|
|
230
|
+
};
|
|
231
|
+
safeAreaInsetBottom: {
|
|
232
|
+
type: BooleanConstructor;
|
|
233
|
+
default: boolean;
|
|
234
|
+
};
|
|
235
|
+
visible: {
|
|
236
|
+
type: BooleanConstructor;
|
|
237
|
+
default: boolean;
|
|
238
|
+
};
|
|
239
|
+
zIndex: {
|
|
240
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
241
|
+
default: number;
|
|
242
|
+
};
|
|
243
|
+
duration: {
|
|
244
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
245
|
+
default: number;
|
|
246
|
+
};
|
|
247
|
+
overlayClass: {
|
|
248
|
+
type: StringConstructor;
|
|
249
|
+
default: string;
|
|
250
|
+
};
|
|
251
|
+
lockScroll: {
|
|
252
|
+
type: BooleanConstructor;
|
|
253
|
+
default: boolean;
|
|
254
|
+
};
|
|
255
|
+
overlayStyle: {
|
|
256
|
+
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
257
|
+
};
|
|
258
|
+
closeOnClickOverlay: {
|
|
259
|
+
type: BooleanConstructor;
|
|
260
|
+
default: boolean;
|
|
261
|
+
};
|
|
262
|
+
}>> & {
|
|
263
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
264
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
265
|
+
onClickCloseIcon?: ((...args: any[]) => any) | undefined;
|
|
266
|
+
onClickOverlay?: ((...args: any[]) => any) | undefined;
|
|
267
|
+
onAdd?: ((...args: any[]) => any) | undefined;
|
|
268
|
+
onReduce?: ((...args: any[]) => any) | undefined;
|
|
269
|
+
onSelectSku?: ((...args: any[]) => any) | undefined;
|
|
270
|
+
onChangeStepper?: ((...args: any[]) => any) | undefined;
|
|
271
|
+
onOverLimit?: ((...args: any[]) => any) | undefined;
|
|
272
|
+
onClickBtnOperate?: ((...args: any[]) => any) | undefined;
|
|
273
|
+
}, {
|
|
274
|
+
round: boolean;
|
|
275
|
+
overlay: boolean;
|
|
276
|
+
visible: boolean;
|
|
277
|
+
zIndex: string | number;
|
|
278
|
+
duration: string | number;
|
|
279
|
+
overlayClass: string;
|
|
280
|
+
lockScroll: boolean;
|
|
281
|
+
closeOnClickOverlay: boolean;
|
|
282
|
+
position: string;
|
|
283
|
+
popClass: string;
|
|
284
|
+
closeable: boolean;
|
|
285
|
+
closeIconPosition: string;
|
|
286
|
+
closeIcon: string;
|
|
287
|
+
destroyOnClose: boolean;
|
|
288
|
+
teleport: string | Element;
|
|
289
|
+
isWrapTeleport: boolean;
|
|
290
|
+
safeAreaInsetBottom: boolean;
|
|
291
|
+
confirmText: string;
|
|
292
|
+
sku: unknown[];
|
|
293
|
+
goods: Record<string, any>;
|
|
294
|
+
stepperMax: string | number;
|
|
295
|
+
stepperMin: string | number;
|
|
296
|
+
stepperExtraText: boolean | Function;
|
|
297
|
+
stepperTitle: string;
|
|
298
|
+
btnOptions: unknown[];
|
|
299
|
+
btnExtraText: string;
|
|
300
|
+
buyText: string;
|
|
301
|
+
addCartText: string;
|
|
302
|
+
}>>;
|
|
303
|
+
export default _sfc_main;
|
|
304
|
+
|
|
305
|
+
declare module 'vue' {
|
|
306
|
+
interface GlobalComponents {
|
|
307
|
+
NutSku: typeof _sfc_main;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
@@ -54,9 +54,9 @@ declare const _sfc_main: Install< import("vue").DefineComponent<{
|
|
|
54
54
|
}>> & {
|
|
55
55
|
"onClick-step"?: ((...args: any[]) => any) | undefined;
|
|
56
56
|
}, {
|
|
57
|
-
icon: string;
|
|
58
57
|
title: string;
|
|
59
58
|
size: string | number;
|
|
59
|
+
icon: string;
|
|
60
60
|
content: string;
|
|
61
61
|
iconColor: string;
|
|
62
62
|
}>>;
|
|
File without changes
|
|
File without changes
|
|
@@ -22,11 +22,10 @@ declare const _sfc_main: Install< import("vue").DefineComponent<{
|
|
|
22
22
|
}, {
|
|
23
23
|
leftRef: Ref<HTMLElement | undefined>;
|
|
24
24
|
rightRef: Ref<HTMLElement | undefined>;
|
|
25
|
-
refRandomId: string;
|
|
26
25
|
open: (p?: SwipePosition) => void;
|
|
27
26
|
close: () => void;
|
|
28
27
|
onTouchStart(event: Event): void;
|
|
29
|
-
onTouchMove(event: Event):
|
|
28
|
+
onTouchMove(event: Event): void;
|
|
30
29
|
onTouchEnd(): void;
|
|
31
30
|
classes: import("vue").ComputedRef<{
|
|
32
31
|
[x: string]: boolean;
|
|
@@ -82,11 +82,10 @@ declare const _sfc_main: Install< import("vue").DefineComponent<{
|
|
|
82
82
|
}>[];
|
|
83
83
|
style: {};
|
|
84
84
|
};
|
|
85
|
-
refRandomId: string;
|
|
86
85
|
classes: import("vue").ComputedRef<{
|
|
87
86
|
[x: string]: boolean;
|
|
88
87
|
}>;
|
|
89
|
-
container: import("vue").Ref<
|
|
88
|
+
container: import("vue").Ref<any>;
|
|
90
89
|
componentName: string;
|
|
91
90
|
isVertical: import("vue").ComputedRef<boolean>;
|
|
92
91
|
slots: Readonly<{
|
|
File without changes
|
|
File without changes
|
|
@@ -37,6 +37,7 @@ declare const _sfc_main: Install< import("vue").DefineComponent<{
|
|
|
37
37
|
};
|
|
38
38
|
}, {
|
|
39
39
|
changeIndex: (index: number, active: number | string) => void;
|
|
40
|
+
nutTabbar: import("vue").Ref<HTMLElement | null>;
|
|
40
41
|
height: import("vue").Ref<any>;
|
|
41
42
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "tab-switch")[], "update:visible" | "tab-switch", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
43
|
visible: {
|
|
@@ -81,8 +82,8 @@ declare const _sfc_main: Install< import("vue").DefineComponent<{
|
|
|
81
82
|
visible: string | number;
|
|
82
83
|
safeAreaInsetBottom: boolean;
|
|
83
84
|
activeColor: string;
|
|
84
|
-
placeholder: boolean;
|
|
85
85
|
unactiveColor: string;
|
|
86
|
+
placeholder: boolean;
|
|
86
87
|
}>>;
|
|
87
88
|
export default _sfc_main;
|
|
88
89
|
|
|
@@ -30,14 +30,14 @@ declare const _sfc_main: Install< import("vue").DefineComponent<{
|
|
|
30
30
|
type: StringConstructor;
|
|
31
31
|
default: string;
|
|
32
32
|
};
|
|
33
|
-
dot: {
|
|
34
|
-
type: BooleanConstructor;
|
|
35
|
-
default: boolean;
|
|
36
|
-
};
|
|
37
33
|
classPrefix: {
|
|
38
34
|
type: StringConstructor;
|
|
39
35
|
default: string;
|
|
40
36
|
};
|
|
37
|
+
dot: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
41
|
fontClassName: {
|
|
42
42
|
type: StringConstructor;
|
|
43
43
|
default: string;
|
|
@@ -81,24 +81,24 @@ declare const _sfc_main: Install< import("vue").DefineComponent<{
|
|
|
81
81
|
type: StringConstructor;
|
|
82
82
|
default: string;
|
|
83
83
|
};
|
|
84
|
-
dot: {
|
|
85
|
-
type: BooleanConstructor;
|
|
86
|
-
default: boolean;
|
|
87
|
-
};
|
|
88
84
|
classPrefix: {
|
|
89
85
|
type: StringConstructor;
|
|
90
86
|
default: string;
|
|
91
87
|
};
|
|
88
|
+
dot: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
92
|
fontClassName: {
|
|
93
93
|
type: StringConstructor;
|
|
94
94
|
default: string;
|
|
95
95
|
};
|
|
96
96
|
to: (StringConstructor | ObjectConstructor)[];
|
|
97
97
|
}>>, {
|
|
98
|
-
icon: string;
|
|
99
98
|
img: string;
|
|
100
99
|
classPrefix: string;
|
|
101
100
|
fontClassName: string;
|
|
101
|
+
icon: string;
|
|
102
102
|
dot: boolean;
|
|
103
103
|
tabTitle: string;
|
|
104
104
|
href: string;
|
|
File without changes
|
|
File without changes
|
|
@@ -12,7 +12,7 @@ declare const _sfc_main: Install< import("vue").DefineComponent<{
|
|
|
12
12
|
default: string;
|
|
13
13
|
};
|
|
14
14
|
type: {
|
|
15
|
-
type: PropType<TagType>;
|
|
15
|
+
type: PropType<import("./type").TagType>;
|
|
16
16
|
default: string;
|
|
17
17
|
};
|
|
18
18
|
plain: {
|
|
@@ -33,7 +33,7 @@ declare const _sfc_main: Install< import("vue").DefineComponent<{
|
|
|
33
33
|
};
|
|
34
34
|
}, {
|
|
35
35
|
classes: import("vue").ComputedRef<{
|
|
36
|
-
[x: string]: boolean | TagType;
|
|
36
|
+
[x: string]: boolean | import("./type").TagType;
|
|
37
37
|
}>;
|
|
38
38
|
getStyle: () => CSSProperties;
|
|
39
39
|
onClose: (event: MouseEvent) => void;
|
|
@@ -48,7 +48,7 @@ declare const _sfc_main: Install< import("vue").DefineComponent<{
|
|
|
48
48
|
default: string;
|
|
49
49
|
};
|
|
50
50
|
type: {
|
|
51
|
-
type: PropType<TagType>;
|
|
51
|
+
type: PropType<import("./type").TagType>;
|
|
52
52
|
default: string;
|
|
53
53
|
};
|
|
54
54
|
plain: {
|
|
@@ -71,7 +71,7 @@ declare const _sfc_main: Install< import("vue").DefineComponent<{
|
|
|
71
71
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
72
72
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
73
73
|
}, {
|
|
74
|
-
type: TagType;
|
|
74
|
+
type: import("./type").TagType;
|
|
75
75
|
mark: boolean;
|
|
76
76
|
color: string;
|
|
77
77
|
round: boolean;
|
|
@@ -44,8 +44,7 @@ declare const _sfc_main: Install< import("vue").DefineComponent<{
|
|
|
44
44
|
default: boolean;
|
|
45
45
|
};
|
|
46
46
|
}, {
|
|
47
|
-
|
|
48
|
-
textareaRef: any;
|
|
47
|
+
textareaRef: import("vue").Ref<any>;
|
|
49
48
|
classes: import("vue").ComputedRef<{
|
|
50
49
|
[x: string]: boolean;
|
|
51
50
|
}>;
|
|
@@ -54,8 +53,7 @@ declare const _sfc_main: Install< import("vue").DefineComponent<{
|
|
|
54
53
|
focus: (event: Event) => void;
|
|
55
54
|
blur: (event: Event) => void;
|
|
56
55
|
translate: (keyPath: string, ...args: unknown[]) => string;
|
|
57
|
-
|
|
58
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "blur" | "focus")[], "change" | "update:modelValue" | "blur" | "focus", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "blur" | "focus" | "update:modelValue")[], "change" | "blur" | "focus" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
59
57
|
modelValue: {
|
|
60
58
|
type: (NumberConstructor | StringConstructor)[];
|
|
61
59
|
default: string;
|
|
@@ -103,8 +101,8 @@ declare const _sfc_main: Install< import("vue").DefineComponent<{
|
|
|
103
101
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
104
102
|
}, {
|
|
105
103
|
disabled: boolean;
|
|
106
|
-
modelValue: string | number;
|
|
107
104
|
placeholder: string;
|
|
105
|
+
modelValue: string | number;
|
|
108
106
|
maxLength: string | number;
|
|
109
107
|
autofocus: boolean;
|
|
110
108
|
readonly: boolean;
|
|
File without changes
|
|
File without changes
|
|
@@ -23,12 +23,12 @@ declare const _sfc_main: Install< import("vue").DefineComponent<{
|
|
|
23
23
|
type: ArrayConstructor;
|
|
24
24
|
default: () => never[];
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
lockScroll: {
|
|
27
27
|
type: BooleanConstructor[];
|
|
28
28
|
default: boolean;
|
|
29
29
|
};
|
|
30
|
-
|
|
31
|
-
type: BooleanConstructor
|
|
30
|
+
isWrapTeleport: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
32
|
default: boolean;
|
|
33
33
|
};
|
|
34
34
|
}, {
|
|
@@ -39,6 +39,7 @@ declare const _sfc_main: Install< import("vue").DefineComponent<{
|
|
|
39
39
|
width: string;
|
|
40
40
|
height: any;
|
|
41
41
|
}>;
|
|
42
|
+
props: any;
|
|
42
43
|
close: () => void;
|
|
43
44
|
translate: (keyPath: string, ...args: unknown[]) => string;
|
|
44
45
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:visible")[], "select" | "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -62,12 +63,12 @@ declare const _sfc_main: Install< import("vue").DefineComponent<{
|
|
|
62
63
|
type: ArrayConstructor;
|
|
63
64
|
default: () => never[];
|
|
64
65
|
};
|
|
65
|
-
|
|
66
|
+
lockScroll: {
|
|
66
67
|
type: BooleanConstructor[];
|
|
67
68
|
default: boolean;
|
|
68
69
|
};
|
|
69
|
-
|
|
70
|
-
type: BooleanConstructor
|
|
70
|
+
isWrapTeleport: {
|
|
71
|
+
type: BooleanConstructor;
|
|
71
72
|
default: boolean;
|
|
72
73
|
};
|
|
73
74
|
}>> & {
|
|
@@ -77,10 +78,10 @@ declare const _sfc_main: Install< import("vue").DefineComponent<{
|
|
|
77
78
|
title: string;
|
|
78
79
|
visible: boolean;
|
|
79
80
|
lockScroll: boolean;
|
|
81
|
+
isWrapTeleport: boolean;
|
|
80
82
|
height: string;
|
|
81
83
|
currentKey: string | number;
|
|
82
84
|
currentTime: unknown[];
|
|
83
|
-
muti: boolean;
|
|
84
85
|
}>>;
|
|
85
86
|
export default _sfc_main;
|
|
86
87
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { App, PropType, CSSProperties } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
import Toast from './index.vue';
|
|
6
|
+
export declare const ToastFunction: {
|
|
7
|
+
text(msg: string, opts?: {}): any | undefined;
|
|
8
|
+
success(msg: string, opts?: {}): any | undefined;
|
|
9
|
+
fail(msg: string, opts?: {}): any | undefined;
|
|
10
|
+
warn(msg: string, opts?: {}): any | undefined;
|
|
11
|
+
loading(msg: string, opts?: {}): any | undefined;
|
|
12
|
+
hide(id?: string | undefined): void;
|
|
13
|
+
install(app: any): void;
|
|
14
|
+
};
|
|
15
|
+
export { Toast };
|
|
16
|
+
export default ToastFunction;
|