@nutui/nutui 4.0.0-beta.22 → 4.0.0-beta.24

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.
Files changed (120) hide show
  1. package/dist/nutui.es.js +1 -1
  2. package/dist/nutui.umd.js +2 -2
  3. package/dist/packages/_es/Badge.js +2 -2
  4. package/dist/packages/_es/Cascader.js +1 -1
  5. package/dist/packages/_es/InputNumber.js +4 -4
  6. package/dist/packages/_es/Overlay.js +10 -4
  7. package/dist/packages/_es/Tabs.js +3 -3
  8. package/dist/packages/ecard/index.scss +19 -5
  9. package/dist/packages/inputnumber/index.scss +6 -0
  10. package/dist/packages/tabbaritem/index.scss +2 -0
  11. package/dist/packages/tour/index.scss +3 -0
  12. package/dist/smartips/web-types.json +15 -6
  13. package/dist/style.css +1 -1
  14. package/dist/styles/themes/default.scss +56 -56
  15. package/dist/styles/themes/jdb.scss +56 -56
  16. package/dist/styles/themes/jddkh.scss +56 -56
  17. package/dist/styles/themes/jdt.scss +56 -56
  18. package/dist/types/__VUE/actionsheet/index.taro.vue.d.ts +310 -0
  19. package/dist/types/__VUE/address/index.taro.vue.d.ts +397 -0
  20. package/dist/types/__VUE/addresslist/components/GeneralShell.taro.vue.d.ts +60 -0
  21. package/dist/types/__VUE/addresslist/components/ItemContents.taro.vue.d.ts +23 -0
  22. package/dist/types/__VUE/addresslist/index.taro.vue.d.ts +83 -0
  23. package/dist/types/__VUE/animate/index.taro.vue.d.ts +54 -0
  24. package/dist/types/__VUE/avatar/index.taro.vue.d.ts +76 -0
  25. package/dist/types/__VUE/avatargroup/index.taro.vue.d.ts +92 -0
  26. package/dist/types/__VUE/backtop/index.taro.vue.d.ts +76 -0
  27. package/dist/types/__VUE/badge/index.taro.vue.d.ts +93 -0
  28. package/dist/types/__VUE/barrage/index.taro.vue.d.ts +80 -0
  29. package/dist/types/__VUE/button/index.taro.vue.d.ts +90 -0
  30. package/dist/types/__VUE/calendar/index.taro.vue.d.ts +187 -0
  31. package/dist/types/__VUE/calendaritem/index.taro.vue.d.ts +217 -0
  32. package/dist/types/__VUE/card/index.taro.vue.d.ts +89 -0
  33. package/dist/types/__VUE/cascader/cascader-item.taro.vue.d.ts +77 -0
  34. package/dist/types/__VUE/cascader/index.taro.vue.d.ts +263 -0
  35. package/dist/types/__VUE/category/index.taro.vue.d.ts +42 -0
  36. package/dist/types/__VUE/categorypane/index.taro.vue.d.ts +54 -0
  37. package/dist/types/__VUE/cell/index.taro.vue.d.ts +124 -0
  38. package/dist/types/__VUE/checkbox/index.taro.vue.d.ts +12 -0
  39. package/dist/types/__VUE/circleprogress/index.taro.vue.d.ts +93 -0
  40. package/dist/types/__VUE/collapse/index.taro.vue.d.ts +38 -0
  41. package/dist/types/__VUE/collapseitem/index.taro.vue.d.ts +111 -0
  42. package/dist/types/__VUE/comment/components/CmtBottom.taro.vue.d.ts +42 -0
  43. package/dist/types/__VUE/comment/components/CmtHeader.taro.vue.d.ts +27 -0
  44. package/dist/types/__VUE/comment/components/CmtImages.taro.vue.d.ts +59 -0
  45. package/dist/types/__VUE/comment/index.taro.vue.d.ts +119 -0
  46. package/dist/types/__VUE/configprovider/index.taro.vue.d.ts +45 -0
  47. package/dist/types/__VUE/countdown/index.taro.vue.d.ts +103 -0
  48. package/dist/types/__VUE/countup/index.taro.vue.d.ts +213 -0
  49. package/dist/types/__VUE/datepicker/index.taro.vue.d.ts +232 -0
  50. package/dist/types/__VUE/dialog/index.taro.vue.d.ts +345 -0
  51. package/dist/types/__VUE/divider/index.taro.vue.d.ts +53 -0
  52. package/dist/types/__VUE/drag/index.taro.vue.d.ts +62 -0
  53. package/dist/types/__VUE/ecard/index.taro.vue.d.ts +128 -0
  54. package/dist/types/__VUE/elevator/index.taro.vue.d.ts +117 -0
  55. package/dist/types/__VUE/ellipsis/index.taro.vue.d.ts +103 -0
  56. package/dist/types/__VUE/empty/index.taro.vue.d.ts +46 -0
  57. package/dist/types/__VUE/fixednav/index.taro.vue.d.ts +105 -0
  58. package/dist/types/__VUE/form/index.taro.vue.d.ts +40 -0
  59. package/dist/types/__VUE/formitem/index.taro.vue.d.ts +114 -0
  60. package/dist/types/__VUE/grid/index.taro.vue.d.ts +84 -0
  61. package/dist/types/__VUE/griditem/index.taro.vue.d.ts +22 -0
  62. package/dist/types/__VUE/icon/index.taro.vue.d.ts +12 -0
  63. package/dist/types/__VUE/image/index.taro.vue.d.ts +32 -0
  64. package/dist/types/__VUE/imagepreview/index.taro.vue.d.ts +163 -0
  65. package/dist/types/__VUE/indicator/index.taro.vue.d.ts +70 -0
  66. package/dist/types/__VUE/input/index.taro.vue.d.ts +224 -0
  67. package/dist/types/__VUE/inputnumber/index.taro.vue.d.ts +116 -0
  68. package/dist/types/__VUE/invoice/index.taro.vue.d.ts +52 -0
  69. package/dist/types/__VUE/layout/index.taro.vue.d.ts +12 -0
  70. package/dist/types/__VUE/list/index.taro.vue.d.ts +58 -0
  71. package/dist/types/__VUE/menu/index.taro.vue.d.ts +93 -0
  72. package/dist/types/__VUE/menuitem/index.taro.vue.d.ts +89 -0
  73. package/dist/types/__VUE/navbar/index.taro.vue.d.ts +121 -0
  74. package/dist/types/__VUE/noticebar/index.taro.vue.d.ts +207 -0
  75. package/dist/types/__VUE/noticebar/index.vue.d.ts +2 -2
  76. package/dist/types/__VUE/notify/index.taro.vue.d.ts +110 -0
  77. package/dist/types/__VUE/numberkeyboard/index.taro.vue.d.ts +132 -0
  78. package/dist/types/__VUE/overlay/index.taro.vue.d.ts +85 -0
  79. package/dist/types/__VUE/pagination/index.taro.vue.d.ts +111 -0
  80. package/dist/types/__VUE/picker/index.taro.vue.d.ts +14 -0
  81. package/dist/types/__VUE/popover/index.taro.vue.d.ts +192 -0
  82. package/dist/types/__VUE/popup/index.taro.vue.d.ts +219 -0
  83. package/dist/types/__VUE/price/index.taro.vue.d.ts +87 -0
  84. package/dist/types/__VUE/progress/index.taro.vue.d.ts +128 -0
  85. package/dist/types/__VUE/radio/index.taro.vue.d.ts +53 -0
  86. package/dist/types/__VUE/range/index.taro.vue.d.ts +158 -0
  87. package/dist/types/__VUE/rate/index.taro.vue.d.ts +121 -0
  88. package/dist/types/__VUE/scrollView/index.taro.vue.d.ts +14 -0
  89. package/dist/types/__VUE/searchbar/index.taro.vue.d.ts +177 -0
  90. package/dist/types/__VUE/shortpassword/index.taro.vue.d.ts +103 -0
  91. package/dist/types/__VUE/sidenavbar/index.taro.vue.d.ts +31 -0
  92. package/dist/types/__VUE/signature/index.taro.vue.d.ts +84 -0
  93. package/dist/types/__VUE/skeleton/index.taro.vue.d.ts +115 -0
  94. package/dist/types/__VUE/sku/components/SkuHeader.taro.vue.d.ts +28 -0
  95. package/dist/types/__VUE/sku/components/SkuStepper.taro.vue.d.ts +56 -0
  96. package/dist/types/__VUE/sku/index.taro.vue.d.ts +146 -0
  97. package/dist/types/__VUE/steps/index.taro.vue.d.ts +46 -0
  98. package/dist/types/__VUE/sticky/index.taro.vue.d.ts +47 -0
  99. package/dist/types/__VUE/subsidenavbar/index.taro.vue.d.ts +53 -0
  100. package/dist/types/__VUE/swipe/index.taro.vue.d.ts +71 -0
  101. package/dist/types/__VUE/swiper/index.taro.vue.d.ts +168 -0
  102. package/dist/types/__VUE/swiperitem/index.taro.vue.d.ts +18 -0
  103. package/dist/types/__VUE/switch/index.taro.vue.d.ts +108 -0
  104. package/dist/types/__VUE/tabbar/index.taro.vue.d.ts +93 -0
  105. package/dist/types/__VUE/tabbaritem/index.taro.vue.d.ts +59 -0
  106. package/dist/types/__VUE/table/index.taro.vue.d.ts +80 -0
  107. package/dist/types/__VUE/tabs/index.taro.vue.d.ts +164 -0
  108. package/dist/types/__VUE/tag/index.taro.vue.d.ts +90 -0
  109. package/dist/types/__VUE/textarea/index.taro.vue.d.ts +127 -0
  110. package/dist/types/__VUE/timedetail/index.taro.vue.d.ts +38 -0
  111. package/dist/types/__VUE/timepannel/index.taro.vue.d.ts +42 -0
  112. package/dist/types/__VUE/timeselect/index.taro.vue.d.ts +91 -0
  113. package/dist/types/__VUE/toast/index.taro.vue.d.ts +184 -0
  114. package/dist/types/__VUE/tour/index.taro.vue.d.ts +192 -0
  115. package/dist/types/__VUE/trendarrow/index.taro.vue.d.ts +105 -0
  116. package/dist/types/__VUE/uploader/index.taro.vue.d.ts +260 -0
  117. package/dist/types/__VUE/watermark/index.taro.vue.d.ts +175 -0
  118. package/dist/types/index.d.ts +1 -1
  119. package/dist/types/nutui.taro.vue.build.d.ts +106 -0
  120. package/package.json +2 -1
@@ -0,0 +1,217 @@
1
+ import { MonthInfo, Day } from './type';
2
+
3
+ declare type Install<T> = T & {
4
+ install(app: import('vue').App): void;
5
+ };
6
+ declare const _default: Install< import("vue").DefineComponent<{
7
+ type: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ isAutoBackFill: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ toDateAnimation: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ poppable: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ showTitle: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ showSubTitle: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ showToday: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ title: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ confirmText: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ startText: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ endText: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ defaultValue: {
52
+ type: (ArrayConstructor | StringConstructor)[];
53
+ default: null;
54
+ valid: (value: string | string[]) => string | string[];
55
+ };
56
+ startDate: {
57
+ type: StringConstructor;
58
+ default: string;
59
+ };
60
+ endDate: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
64
+ firstDayOfWeek: {
65
+ type: NumberConstructor;
66
+ default: number;
67
+ };
68
+ }, {
69
+ scrollWithAnimation: import("vue").Ref<boolean>;
70
+ translate: (keyPath: string, ...args: unknown[]) => string;
71
+ title: import("vue").Ref<string>;
72
+ type: import("vue").Ref<string>;
73
+ isAutoBackFill: import("vue").Ref<boolean>;
74
+ toDateAnimation: import("vue").Ref<boolean>;
75
+ poppable: import("vue").Ref<boolean>;
76
+ showTitle: import("vue").Ref<boolean>;
77
+ showSubTitle: import("vue").Ref<boolean>;
78
+ showToday: import("vue").Ref<boolean>;
79
+ confirmText: import("vue").Ref<string>;
80
+ startText: import("vue").Ref<string>;
81
+ endText: import("vue").Ref<string>;
82
+ defaultValue: import("vue").Ref<string | unknown[]>;
83
+ startDate: import("vue").Ref<string>;
84
+ endDate: import("vue").Ref<string>;
85
+ firstDayOfWeek: import("vue").Ref<number>;
86
+ onSelect: import("vue").Ref<((...args: any[]) => any) | undefined>;
87
+ onClose: import("vue").Ref<((...args: any[]) => any) | undefined>;
88
+ onChoose: import("vue").Ref<((...args: any[]) => any) | undefined>;
89
+ onUpdate: import("vue").Ref<((...args: any[]) => any) | undefined>;
90
+ compConthsDatas: import("vue").Ref<MonthInfo[]>;
91
+ scrollTop: import("vue").Ref<number>;
92
+ containerHeight: import("vue").Ref<string>;
93
+ yearMonthTitle: import("vue").Ref<string>;
94
+ currDate: import("vue").Ref<string | string[]>;
95
+ propStartDate: import("vue").Ref<string>;
96
+ propEndDate: import("vue").Ref<string>;
97
+ currentIndex: import("vue").Ref<number>;
98
+ unLoadPrev: import("vue").Ref<boolean>;
99
+ touchParams: import("vue").Ref<import("./type").TouchParam>;
100
+ transformY: import("vue").Ref<number>;
101
+ translateY: import("vue").Ref<number>;
102
+ scrollDistance: import("vue").Ref<number>;
103
+ defaultData: import("vue").Ref<import("./type").InputDate>;
104
+ chooseData: import("vue").Ref<(string | string[])[]>;
105
+ monthsData: import("vue").Ref<MonthInfo[]>;
106
+ dayPrefix: import("vue").Ref<string>;
107
+ startData: import("vue").Ref<import("./type").InputDate>;
108
+ endData: import("vue").Ref<import("./type").InputDate>;
109
+ isRange: import("vue").Ref<boolean>;
110
+ timer: import("vue").Ref<number>;
111
+ avgHeight: import("vue").Ref<number>;
112
+ monthsNum: import("vue").Ref<number>;
113
+ defaultRange: import("vue").Ref<number[]>;
114
+ weeks: import("vue").Ref<string[]>;
115
+ showTopBtn: import("vue").ComputedRef<import("vue").Slot | undefined>;
116
+ topInfo: import("vue").ComputedRef<import("vue").Slot | undefined>;
117
+ bottomInfo: import("vue").ComputedRef<import("vue").Slot | undefined>;
118
+ rangeTip: () => boolean | undefined;
119
+ mothsViewScroll: (e: any) => void;
120
+ getClass: (day: Day, month: MonthInfo) => string | null;
121
+ isStartTip: (day: Day, month: MonthInfo) => boolean;
122
+ isEndTip: (day: Day, month: MonthInfo) => boolean;
123
+ chooseDay: (day: Day, month: MonthInfo, isFirst?: boolean) => void;
124
+ isCurrDay: (dateInfo: Day) => boolean;
125
+ confirm: () => void;
126
+ months: import("vue").Ref<HTMLElement | null>;
127
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "close" | "choose" | "update")[], "select" | "close" | "choose" | "update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
128
+ type: {
129
+ type: StringConstructor;
130
+ default: string;
131
+ };
132
+ isAutoBackFill: {
133
+ type: BooleanConstructor;
134
+ default: boolean;
135
+ };
136
+ toDateAnimation: {
137
+ type: BooleanConstructor;
138
+ default: boolean;
139
+ };
140
+ poppable: {
141
+ type: BooleanConstructor;
142
+ default: boolean;
143
+ };
144
+ showTitle: {
145
+ type: BooleanConstructor;
146
+ default: boolean;
147
+ };
148
+ showSubTitle: {
149
+ type: BooleanConstructor;
150
+ default: boolean;
151
+ };
152
+ showToday: {
153
+ type: BooleanConstructor;
154
+ default: boolean;
155
+ };
156
+ title: {
157
+ type: StringConstructor;
158
+ default: string;
159
+ };
160
+ confirmText: {
161
+ type: StringConstructor;
162
+ default: string;
163
+ };
164
+ startText: {
165
+ type: StringConstructor;
166
+ default: string;
167
+ };
168
+ endText: {
169
+ type: StringConstructor;
170
+ default: string;
171
+ };
172
+ defaultValue: {
173
+ type: (ArrayConstructor | StringConstructor)[];
174
+ default: null;
175
+ valid: (value: string | string[]) => string | string[];
176
+ };
177
+ startDate: {
178
+ type: StringConstructor;
179
+ default: string;
180
+ };
181
+ endDate: {
182
+ type: StringConstructor;
183
+ default: string;
184
+ };
185
+ firstDayOfWeek: {
186
+ type: NumberConstructor;
187
+ default: number;
188
+ };
189
+ }>> & {
190
+ onSelect?: ((...args: any[]) => any) | undefined;
191
+ onClose?: ((...args: any[]) => any) | undefined;
192
+ onChoose?: ((...args: any[]) => any) | undefined;
193
+ onUpdate?: ((...args: any[]) => any) | undefined;
194
+ }, {
195
+ title: string;
196
+ type: string;
197
+ isAutoBackFill: boolean;
198
+ toDateAnimation: boolean;
199
+ poppable: boolean;
200
+ showTitle: boolean;
201
+ showSubTitle: boolean;
202
+ showToday: boolean;
203
+ confirmText: string;
204
+ startText: string;
205
+ endText: string;
206
+ defaultValue: string | unknown[];
207
+ startDate: string;
208
+ endDate: string;
209
+ firstDayOfWeek: number;
210
+ }>>;
211
+ export default _default;
212
+
213
+ declare module 'vue' {
214
+ interface GlobalComponents {
215
+ NutCalendarItem: typeof _default;
216
+ }
217
+ }
@@ -0,0 +1,89 @@
1
+
2
+ declare type Install<T> = T & {
3
+ install(app: import('vue').App): void;
4
+ };
5
+ declare const _default: Install< import("vue").DefineComponent<{
6
+ imgUrl: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ title: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ price: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ vipPrice: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ shopDesc: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ delivery: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ shopName: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ isNeedPrice: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ }, {
39
+ isHaveSlot: (slot: string) => import("vue").Slot | undefined;
40
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
41
+ imgUrl: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
45
+ title: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ price: {
50
+ type: StringConstructor;
51
+ default: string;
52
+ };
53
+ vipPrice: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ shopDesc: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
61
+ delivery: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ shopName: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ isNeedPrice: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ }>>, {
74
+ title: string;
75
+ price: string;
76
+ imgUrl: string;
77
+ vipPrice: string;
78
+ shopDesc: string;
79
+ delivery: string;
80
+ shopName: string;
81
+ isNeedPrice: boolean;
82
+ }>>;
83
+ export default _default;
84
+
85
+ declare module 'vue' {
86
+ interface GlobalComponents {
87
+ NutCard: typeof _default;
88
+ }
89
+ }
@@ -0,0 +1,77 @@
1
+ import { Ref } from 'vue';
2
+ import { CascaderPane, CascaderOption, CascaderTabs } from './types';
3
+
4
+ declare type Install<T> = T & {
5
+ install(app: import('vue').App): void;
6
+ };
7
+ declare const _default: Install< import("vue").DefineComponent<{
8
+ visible: BooleanConstructor;
9
+ modelValue: ArrayConstructor;
10
+ options: {
11
+ type: ArrayConstructor;
12
+ default: () => never[];
13
+ };
14
+ lazy: BooleanConstructor;
15
+ lazyLoad: FunctionConstructor;
16
+ valueKey: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ textKey: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ childrenKey: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ convertConfig: ObjectConstructor;
29
+ }, {
30
+ handleNode(node: CascaderOption, silent?: boolean): Promise<void>;
31
+ handleTabClick(tab: CascaderTabs): void;
32
+ formatTabTitle(pane: CascaderPane): string | undefined;
33
+ isSelected(pane: CascaderPane, node: CascaderOption): boolean;
34
+ panes: Ref<CascaderPane[]>;
35
+ initLoading: Ref<boolean>;
36
+ tabsCursor: Ref<number>;
37
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "pathChange")[], "change" | "update:modelValue" | "pathChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
38
+ visible: BooleanConstructor;
39
+ modelValue: ArrayConstructor;
40
+ options: {
41
+ type: ArrayConstructor;
42
+ default: () => never[];
43
+ };
44
+ lazy: BooleanConstructor;
45
+ lazyLoad: FunctionConstructor;
46
+ valueKey: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
+ textKey: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ childrenKey: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
58
+ convertConfig: ObjectConstructor;
59
+ }>> & {
60
+ onChange?: ((...args: any[]) => any) | undefined;
61
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
62
+ onPathChange?: ((...args: any[]) => any) | undefined;
63
+ }, {
64
+ visible: boolean;
65
+ options: unknown[];
66
+ lazy: boolean;
67
+ valueKey: string;
68
+ textKey: string;
69
+ childrenKey: string;
70
+ }>>;
71
+ export default _default;
72
+
73
+ declare module 'vue' {
74
+ interface GlobalComponents {
75
+ NutCascader: typeof _default;
76
+ }
77
+ }
@@ -0,0 +1,263 @@
1
+ import { Ref } from 'vue';
2
+ import { CascaderValue, CascaderOption } from './types';
3
+
4
+ declare type Install<T> = T & {
5
+ install(app: import('vue').App): void;
6
+ };
7
+ declare const _default: Install< import("vue").DefineComponent<{
8
+ modelValue: ArrayConstructor;
9
+ visible: BooleanConstructor;
10
+ title: StringConstructor;
11
+ options: {
12
+ type: ArrayConstructor;
13
+ default: () => never[];
14
+ };
15
+ lazy: BooleanConstructor;
16
+ lazyLoad: FunctionConstructor;
17
+ valueKey: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ textKey: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ childrenKey: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ poppable: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ convertConfig: ObjectConstructor;
34
+ zIndex: {
35
+ type: (NumberConstructor | StringConstructor)[];
36
+ default: number;
37
+ };
38
+ duration: {
39
+ type: (NumberConstructor | StringConstructor)[];
40
+ default: number;
41
+ };
42
+ lockScroll: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ closeOnClickOverlay: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ position: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ transition: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
58
+ style: {
59
+ type: import("vue").PropType<import("vue").CSSProperties>;
60
+ default: {};
61
+ };
62
+ popClass: {
63
+ type: StringConstructor;
64
+ default: string;
65
+ };
66
+ closeable: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
70
+ closeIconPosition: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ };
74
+ closeIcon: {
75
+ type: StringConstructor;
76
+ default: string;
77
+ };
78
+ destroyOnClose: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
82
+ teleport: {
83
+ type: (StringConstructor | {
84
+ new (): Element;
85
+ prototype: Element;
86
+ })[];
87
+ default: string;
88
+ };
89
+ overlay: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
93
+ round: {
94
+ type: BooleanConstructor;
95
+ default: boolean;
96
+ };
97
+ teleportDisable: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ safeAreaInsetBottom: {
102
+ type: BooleanConstructor;
103
+ default: boolean;
104
+ };
105
+ overlayClass: {
106
+ type: StringConstructor;
107
+ default: string;
108
+ };
109
+ overlayStyle: {
110
+ type: import("vue").PropType<import("vue").CSSProperties>;
111
+ default: {};
112
+ };
113
+ }, {
114
+ onChange: (value: CascaderValue, pathNodes: CascaderOption[]) => void;
115
+ onPathChange: (pathNodes: CascaderOption[]) => void;
116
+ innerValue: Ref<CascaderValue>;
117
+ innerVisible: import("vue").WritableComputedRef<boolean>;
118
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "change" | "update:modelValue" | "pathChange")[], "update:visible" | "change" | "update:modelValue" | "pathChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
119
+ modelValue: ArrayConstructor;
120
+ visible: BooleanConstructor;
121
+ title: StringConstructor;
122
+ options: {
123
+ type: ArrayConstructor;
124
+ default: () => never[];
125
+ };
126
+ lazy: BooleanConstructor;
127
+ lazyLoad: FunctionConstructor;
128
+ valueKey: {
129
+ type: StringConstructor;
130
+ default: string;
131
+ };
132
+ textKey: {
133
+ type: StringConstructor;
134
+ default: string;
135
+ };
136
+ childrenKey: {
137
+ type: StringConstructor;
138
+ default: string;
139
+ };
140
+ poppable: {
141
+ type: BooleanConstructor;
142
+ default: boolean;
143
+ };
144
+ convertConfig: ObjectConstructor;
145
+ zIndex: {
146
+ type: (NumberConstructor | StringConstructor)[];
147
+ default: number;
148
+ };
149
+ duration: {
150
+ type: (NumberConstructor | StringConstructor)[];
151
+ default: number;
152
+ };
153
+ lockScroll: {
154
+ type: BooleanConstructor;
155
+ default: boolean;
156
+ };
157
+ closeOnClickOverlay: {
158
+ type: BooleanConstructor;
159
+ default: boolean;
160
+ };
161
+ position: {
162
+ type: StringConstructor;
163
+ default: string;
164
+ };
165
+ transition: {
166
+ type: StringConstructor;
167
+ default: string;
168
+ };
169
+ style: {
170
+ type: import("vue").PropType<import("vue").CSSProperties>;
171
+ default: {};
172
+ };
173
+ popClass: {
174
+ type: StringConstructor;
175
+ default: string;
176
+ };
177
+ closeable: {
178
+ type: BooleanConstructor;
179
+ default: boolean;
180
+ };
181
+ closeIconPosition: {
182
+ type: StringConstructor;
183
+ default: string;
184
+ };
185
+ closeIcon: {
186
+ type: StringConstructor;
187
+ default: string;
188
+ };
189
+ destroyOnClose: {
190
+ type: BooleanConstructor;
191
+ default: boolean;
192
+ };
193
+ teleport: {
194
+ type: (StringConstructor | {
195
+ new (): Element;
196
+ prototype: Element;
197
+ })[];
198
+ default: string;
199
+ };
200
+ overlay: {
201
+ type: BooleanConstructor;
202
+ default: boolean;
203
+ };
204
+ round: {
205
+ type: BooleanConstructor;
206
+ default: boolean;
207
+ };
208
+ teleportDisable: {
209
+ type: BooleanConstructor;
210
+ default: boolean;
211
+ };
212
+ safeAreaInsetBottom: {
213
+ type: BooleanConstructor;
214
+ default: boolean;
215
+ };
216
+ overlayClass: {
217
+ type: StringConstructor;
218
+ default: string;
219
+ };
220
+ overlayStyle: {
221
+ type: import("vue").PropType<import("vue").CSSProperties>;
222
+ default: {};
223
+ };
224
+ }>> & {
225
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
226
+ onChange?: ((...args: any[]) => any) | undefined;
227
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
228
+ onPathChange?: ((...args: any[]) => any) | undefined;
229
+ }, {
230
+ style: import("vue").CSSProperties;
231
+ zIndex: string | number;
232
+ round: boolean;
233
+ overlay: boolean;
234
+ visible: boolean;
235
+ duration: string | number;
236
+ overlayClass: string;
237
+ lockScroll: boolean;
238
+ overlayStyle: import("vue").CSSProperties;
239
+ closeOnClickOverlay: boolean;
240
+ position: string;
241
+ transition: string;
242
+ popClass: string;
243
+ closeable: boolean;
244
+ closeIconPosition: string;
245
+ closeIcon: string;
246
+ destroyOnClose: boolean;
247
+ teleport: string | Element;
248
+ teleportDisable: boolean;
249
+ safeAreaInsetBottom: boolean;
250
+ poppable: boolean;
251
+ options: unknown[];
252
+ lazy: boolean;
253
+ valueKey: string;
254
+ textKey: string;
255
+ childrenKey: string;
256
+ }>>;
257
+ export default _default;
258
+
259
+ declare module 'vue' {
260
+ interface GlobalComponents {
261
+ NutCascader: typeof _default;
262
+ }
263
+ }
@@ -0,0 +1,42 @@
1
+ import { PropType } from 'vue';
2
+ export type CategoryType = {
3
+ catName?: string;
4
+ [key: string]: any;
5
+ };
6
+
7
+ declare type Install<T> = T & {
8
+ install(app: import('vue').App): void;
9
+ };
10
+ declare const _default: Install< import("vue").DefineComponent<{
11
+ type: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ category: {
16
+ type: PropType<CategoryType>;
17
+ default: () => never[];
18
+ };
19
+ }, {
20
+ getChildList: (index: any) => void;
21
+ checkIndex: import("vue").Ref<number>;
22
+ categoryLeft: import("vue").Ref<boolean>;
23
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
24
+ type: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ category: {
29
+ type: PropType<CategoryType>;
30
+ default: () => never[];
31
+ };
32
+ }>>, {
33
+ type: string;
34
+ category: CategoryType;
35
+ }>>;
36
+ export default _default;
37
+
38
+ declare module 'vue' {
39
+ interface GlobalComponents {
40
+ NutCategory: typeof _default;
41
+ }
42
+ }