@nutui/nutui 4.3.0-beta.1 → 4.3.0-beta.3

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 (170) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +5299 -5323
  4. package/dist/nutui.umd.js +1 -1
  5. package/dist/packages/addresslist/AddressList.js +4 -3
  6. package/dist/packages/audiooperate/AudioOperate.js +3 -2
  7. package/dist/packages/avatar/index.css +1 -1
  8. package/dist/packages/avatar/index.scss +1 -1
  9. package/dist/packages/avatarcropper/AvatarCropper.js +10 -5
  10. package/dist/packages/avatarcropper/index.css +1 -1
  11. package/dist/packages/avatarcropper/index.scss +3 -0
  12. package/dist/packages/button/Button.js +66 -49
  13. package/dist/packages/calendarcard/CalendarCard.js +113 -109
  14. package/dist/packages/cell/Cell.js +9 -4
  15. package/dist/packages/dialog/Dialog.js +4 -3
  16. package/dist/packages/divider/Divider.js +40 -18
  17. package/dist/packages/formitem/index.css +1 -1
  18. package/dist/packages/formitem/index.scss +1 -3
  19. package/dist/packages/invoice/Invoice.js +3 -2
  20. package/dist/packages/invoice/index.css +1 -1
  21. package/dist/packages/list/List.js +6 -4
  22. package/dist/packages/sidenavbar/SideNavbar.js +1 -1
  23. package/dist/packages/sidenavbar/index.css +1 -1
  24. package/dist/packages/sidenavbar/index.scss +0 -1
  25. package/dist/packages/sidenavbaritem/SideNavbarItem.js +4 -21
  26. package/dist/packages/signature/Signature.js +3 -2
  27. package/dist/packages/skeleton/index.css +1 -1
  28. package/dist/packages/subsidenavbar/SubSideNavbar.js +3 -10
  29. package/dist/packages/subsidenavbar/index.css +1 -1
  30. package/dist/packages/subsidenavbar/index.scss +0 -6
  31. package/dist/packages/with-install-p59gYYU_.js +12 -0
  32. package/dist/smartips/web-types.json +11 -2
  33. package/dist/style.css +1 -1
  34. package/dist/types/__VUE/actionsheet/index.vue.d.ts +7 -7
  35. package/dist/types/__VUE/address/index.vue.d.ts +11 -11
  36. package/dist/types/__VUE/addresslist/index.vue.d.ts +5 -5
  37. package/dist/types/__VUE/animate/index.vue.d.ts +4 -4
  38. package/dist/types/__VUE/audio/index.vue.d.ts +6 -6
  39. package/dist/types/__VUE/audiooperate/index.vue.d.ts +4 -4
  40. package/dist/types/__VUE/avatar/index.vue.d.ts +5 -5
  41. package/dist/types/__VUE/avatarcropper/index.vue.d.ts +16 -7
  42. package/dist/types/__VUE/avatarcropper/types.d.ts +1 -0
  43. package/dist/types/__VUE/avatargroup/index.vue.d.ts +5 -5
  44. package/dist/types/__VUE/backtop/index.vue.d.ts +6 -6
  45. package/dist/types/__VUE/badge/index.vue.d.ts +6 -6
  46. package/dist/types/__VUE/barrage/index.vue.d.ts +5 -5
  47. package/dist/types/__VUE/button/{index.vue.d.ts → button.vue.d.ts} +36 -27
  48. package/dist/types/__VUE/button/index.d.ts +5 -0
  49. package/dist/types/__VUE/calendar/index.vue.d.ts +7 -7
  50. package/dist/types/__VUE/calendarcard/{index.vue.d.ts → calendar-card.vue.d.ts} +47 -30
  51. package/dist/types/__VUE/calendarcard/index.d.ts +5 -0
  52. package/dist/types/__VUE/calendaritem/index.vue.d.ts +10 -10
  53. package/dist/types/__VUE/card/index.vue.d.ts +4 -4
  54. package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +4 -4
  55. package/dist/types/__VUE/cascader/index.vue.d.ts +7 -7
  56. package/dist/types/__VUE/category/index.vue.d.ts +4 -4
  57. package/dist/types/__VUE/categorypane/index.vue.d.ts +4 -4
  58. package/dist/types/__VUE/cell/index.vue.d.ts +12 -11
  59. package/dist/types/__VUE/cell/types.d.ts +1 -0
  60. package/dist/types/__VUE/cellgroup/index.vue.d.ts +4 -4
  61. package/dist/types/__VUE/checkbox/index.vue.d.ts +13 -11
  62. package/dist/types/__VUE/checkbox/types.d.ts +2 -0
  63. package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +4 -4
  64. package/dist/types/__VUE/circleprogress/index.vue.d.ts +5 -5
  65. package/dist/types/__VUE/col/index.vue.d.ts +4 -4
  66. package/dist/types/__VUE/collapse/index.vue.d.ts +4 -4
  67. package/dist/types/__VUE/collapseitem/index.vue.d.ts +7 -7
  68. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +1 -1
  69. package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +1 -1
  70. package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +1 -1
  71. package/dist/types/__VUE/comment/index.vue.d.ts +9 -9
  72. package/dist/types/__VUE/configprovider/index.vue.d.ts +5 -5
  73. package/dist/types/__VUE/countdown/index.vue.d.ts +4 -4
  74. package/dist/types/__VUE/countup/index.vue.d.ts +8 -8
  75. package/dist/types/__VUE/datepicker/index.vue.d.ts +9 -9
  76. package/dist/types/__VUE/dialog/index.vue.d.ts +7 -7
  77. package/dist/types/__VUE/divider/divider.vue.d.ts +56 -0
  78. package/dist/types/__VUE/divider/index.d.ts +5 -0
  79. package/dist/types/__VUE/drag/index.vue.d.ts +4 -4
  80. package/dist/types/__VUE/ecard/index.vue.d.ts +7 -7
  81. package/dist/types/__VUE/elevator/index.vue.d.ts +4 -4
  82. package/dist/types/__VUE/ellipsis/index.vue.d.ts +11 -11
  83. package/dist/types/__VUE/ellipsis/types.d.ts +1 -0
  84. package/dist/types/__VUE/empty/index.vue.d.ts +4 -4
  85. package/dist/types/__VUE/fixednav/index.vue.d.ts +6 -6
  86. package/dist/types/__VUE/form/index.vue.d.ts +4 -4
  87. package/dist/types/__VUE/formitem/index.vue.d.ts +4 -4
  88. package/dist/types/__VUE/grid/index.vue.d.ts +6 -6
  89. package/dist/types/__VUE/griditem/index.vue.d.ts +4 -4
  90. package/dist/types/__VUE/image/index.vue.d.ts +8 -8
  91. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +5 -5
  92. package/dist/types/__VUE/imagepreview/index.vue.d.ts +9 -9
  93. package/dist/types/__VUE/indicator/index.vue.d.ts +5 -5
  94. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +4 -4
  95. package/dist/types/__VUE/input/index.vue.d.ts +15 -15
  96. package/dist/types/__VUE/inputnumber/index.vue.d.ts +7 -7
  97. package/dist/types/__VUE/invoice/index.vue.d.ts +6 -6
  98. package/dist/types/__VUE/layout/index.vue.d.ts +4 -4
  99. package/dist/types/__VUE/list/index.vue.d.ts +8 -11
  100. package/dist/types/__VUE/menu/index.vue.d.ts +7 -7
  101. package/dist/types/__VUE/menuitem/index.vue.d.ts +4 -4
  102. package/dist/types/__VUE/navbar/index.vue.d.ts +6 -6
  103. package/dist/types/__VUE/noticebar/index.vue.d.ts +6 -6
  104. package/dist/types/__VUE/notify/index.vue.d.ts +7 -7
  105. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +8 -8
  106. package/dist/types/__VUE/overlay/index.vue.d.ts +4 -4
  107. package/dist/types/__VUE/pagination/index.vue.d.ts +5 -5
  108. package/dist/types/__VUE/picker/Column.vue.d.ts +7 -7
  109. package/dist/types/__VUE/picker/baseProps.d.ts +4 -4
  110. package/dist/types/__VUE/picker/index.vue.d.ts +6 -6
  111. package/dist/types/__VUE/popover/index.vue.d.ts +9 -9
  112. package/dist/types/__VUE/popup/index.vue.d.ts +6 -6
  113. package/dist/types/__VUE/price/index.vue.d.ts +4 -4
  114. package/dist/types/__VUE/progress/index.vue.d.ts +6 -6
  115. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +4 -4
  116. package/dist/types/__VUE/radio/index.vue.d.ts +8 -8
  117. package/dist/types/__VUE/radiogroup/index.vue.d.ts +7 -7
  118. package/dist/types/__VUE/range/index.vue.d.ts +8 -8
  119. package/dist/types/__VUE/rate/index.vue.d.ts +9 -9
  120. package/dist/types/__VUE/row/index.vue.d.ts +5 -5
  121. package/dist/types/__VUE/searchbar/index.vue.d.ts +16 -16
  122. package/dist/types/__VUE/shortpassword/index.vue.d.ts +5 -5
  123. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +4 -4
  124. package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +6 -19
  125. package/dist/types/__VUE/signature/index.vue.d.ts +6 -6
  126. package/dist/types/__VUE/skeleton/index.vue.d.ts +7 -7
  127. package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +2 -2
  128. package/dist/types/__VUE/sku/index.vue.d.ts +6 -6
  129. package/dist/types/__VUE/space/index.vue.d.ts +4 -4
  130. package/dist/types/__VUE/step/index.vue.d.ts +4 -4
  131. package/dist/types/__VUE/steps/index.vue.d.ts +5 -5
  132. package/dist/types/__VUE/sticky/index.vue.d.ts +5 -5
  133. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +4 -13
  134. package/dist/types/__VUE/swipe/index.vue.d.ts +4 -4
  135. package/dist/types/__VUE/swipegroup/index.vue.d.ts +4 -4
  136. package/dist/types/__VUE/swiper/index.vue.d.ts +5 -5
  137. package/dist/types/__VUE/swiperitem/index.vue.d.ts +4 -4
  138. package/dist/types/__VUE/switch/index.vue.d.ts +13 -13
  139. package/dist/types/__VUE/tabbar/index.vue.d.ts +6 -6
  140. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +6 -6
  141. package/dist/types/__VUE/table/index.vue.d.ts +4 -4
  142. package/dist/types/__VUE/table/renderColumn.d.ts +4 -4
  143. package/dist/types/__VUE/tabpane/index.vue.d.ts +5 -5
  144. package/dist/types/__VUE/tabs/index.vue.d.ts +11 -11
  145. package/dist/types/__VUE/tag/index.vue.d.ts +8 -8
  146. package/dist/types/__VUE/textarea/index.vue.d.ts +11 -11
  147. package/dist/types/__VUE/timedetail/index.vue.d.ts +4 -4
  148. package/dist/types/__VUE/timepannel/index.vue.d.ts +4 -4
  149. package/dist/types/__VUE/timeselect/index.vue.d.ts +5 -5
  150. package/dist/types/__VUE/toast/index.vue.d.ts +10 -10
  151. package/dist/types/__VUE/tour/index.vue.d.ts +9 -9
  152. package/dist/types/__VUE/trendarrow/index.vue.d.ts +5 -5
  153. package/dist/types/__VUE/uploader/index.vue.d.ts +10 -10
  154. package/dist/types/__VUE/video/index.vue.d.ts +5 -5
  155. package/dist/types/__VUE/watermark/index.vue.d.ts +7 -7
  156. package/dist/types/index.d.ts +7 -4
  157. package/dist/types/utils/canvas.d.ts +1 -1
  158. package/dist/types/utils/create/renderIcon.d.ts +2 -2
  159. package/dist/types/utils/index.d.ts +1 -0
  160. package/dist/types/utils/with-install.d.ts +5 -0
  161. package/package.json +5 -3
  162. package/dist/types/__VUE/address/address-list.d.ts +0 -30
  163. package/dist/types/__VUE/calendarcard/icon.taro.d.ts +0 -12
  164. package/dist/types/__VUE/divider/index.vue.d.ts +0 -71
  165. package/dist/types/__VUE/icon/index.vue.d.ts +0 -13
  166. package/dist/types/__VUE/invoice/types.d.ts +0 -6
  167. package/dist/types/__VUE/picker/doc.en.d.ts +0 -90
  168. package/dist/types/__VUE/sku/data.d.ts +0 -22
  169. package/dist/types/__VUE/tour/type.d.ts +0 -2
  170. /package/dist/types/__VUE/button/{type.d.ts → types.d.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { PropType, Component } from 'vue';
2
2
 
3
3
  declare type Install<T> = T & {
4
- install(app: import('vue').App): void;
4
+ install(app: import('vue').App): void;
5
5
  };
6
6
  declare const _default: Install< import("vue").DefineComponent<{
7
7
  id: StringConstructor;
@@ -73,9 +73,9 @@ declare const _default: Install< import("vue").DefineComponent<{
73
73
  'nut-toast-icon-no-animation': boolean;
74
74
  })[]>;
75
75
  onAfterLeave: () => void;
76
- renderIcon: (icon: Component, props?: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
76
+ renderIcon: (icon: Component, props?: any) => "" | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
77
77
  [key: string]: any;
78
- }> | "";
78
+ }>;
79
79
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
80
80
  id: StringConstructor;
81
81
  msg: StringConstructor;
@@ -137,24 +137,24 @@ declare const _default: Install< import("vue").DefineComponent<{
137
137
  }>> & {
138
138
  onClose?: ((...args: any[]) => any) | undefined;
139
139
  }, {
140
+ type: string;
140
141
  size: string | number;
141
142
  title: string;
143
+ icon: Component;
144
+ bottom: string;
142
145
  center: boolean;
143
146
  duration: number;
144
147
  closeOnClickOverlay: boolean;
145
- type: string;
146
148
  cover: boolean;
147
- bottom: string;
148
- icon: Component;
149
- bgColor: string;
150
149
  textAlignCenter: boolean;
151
150
  loadingRotate: boolean;
151
+ bgColor: string;
152
152
  coverColor: string;
153
153
  }, {}>>;
154
154
  export default _default;
155
155
 
156
156
  declare module 'vue' {
157
- interface GlobalComponents {
158
- NutToast: typeof _default;
159
- }
157
+ interface GlobalComponents {
158
+ NutToast: typeof _default;
159
+ }
160
160
  }
@@ -10,7 +10,7 @@ export interface StepOptions {
10
10
  export type TourType = 'step' | 'tile';
11
11
 
12
12
  declare type Install<T> = T & {
13
- install(app: import('vue').App): void;
13
+ install(app: import('vue').App): void;
14
14
  };
15
15
  declare const _default: Install< import("vue").DefineComponent<{
16
16
  modelValue: {
@@ -169,17 +169,17 @@ declare const _default: Install< import("vue").DefineComponent<{
169
169
  onClose?: ((...args: any[]) => any) | undefined;
170
170
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
171
171
  }, {
172
+ type: TourType;
172
173
  mask: boolean;
173
174
  closeOnClickOverlay: boolean;
174
- type: TourType;
175
- modelValue: boolean;
175
+ theme: PopoverTheme;
176
176
  offset: Number[];
177
- bgColor: string;
178
177
  current: number;
179
- theme: PopoverTheme;
180
- location: PopoverLocation;
178
+ modelValue: boolean;
181
179
  completeTxt: string;
180
+ bgColor: string;
182
181
  steps: StepOptions[];
182
+ location: PopoverLocation;
183
183
  nextStepTxt: string;
184
184
  prevStepTxt: string;
185
185
  maskWidth: string | number;
@@ -190,7 +190,7 @@ declare const _default: Install< import("vue").DefineComponent<{
190
190
  export default _default;
191
191
 
192
192
  declare module 'vue' {
193
- interface GlobalComponents {
194
- NutTour: typeof _default;
195
- }
193
+ interface GlobalComponents {
194
+ NutTour: typeof _default;
195
+ }
196
196
  }
@@ -1,6 +1,6 @@
1
1
 
2
2
  declare type Install<T> = T & {
3
- install(app: import('vue').App): void;
3
+ install(app: import('vue').App): void;
4
4
  };
5
5
  declare const _default: Install< import("vue").DefineComponent<{
6
6
  rate: {
@@ -83,8 +83,8 @@ declare const _default: Install< import("vue").DefineComponent<{
83
83
  default: string;
84
84
  };
85
85
  }>>, {
86
- textColor: string;
87
86
  rate: number;
87
+ textColor: string;
88
88
  digits: number;
89
89
  showSign: boolean;
90
90
  showZero: boolean;
@@ -96,7 +96,7 @@ declare const _default: Install< import("vue").DefineComponent<{
96
96
  export default _default;
97
97
 
98
98
  declare module 'vue' {
99
- interface GlobalComponents {
100
- NutTrendArrow: typeof _default;
101
- }
99
+ interface GlobalComponents {
100
+ NutTrendArrow: typeof _default;
101
+ }
102
102
  }
@@ -3,7 +3,7 @@ import { FileItem } from './type';
3
3
  import { Interceptor } from '@/packages/utils/util';
4
4
 
5
5
  declare type Install<T> = T & {
6
- install(app: import('vue').App): void;
6
+ install(app: import('vue').App): void;
7
7
  };
8
8
  declare const _default: Install< import("vue").DefineComponent<{
9
9
  name: {
@@ -121,7 +121,7 @@ declare const _default: Install< import("vue").DefineComponent<{
121
121
  renderInput: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
122
122
  [key: string]: any;
123
123
  }>;
124
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "progress" | "change" | "start" | "success" | "oversize" | "failure" | "update:fileList" | "fileItemClick")[], "delete" | "progress" | "change" | "start" | "success" | "oversize" | "failure" | "update:fileList" | "fileItemClick", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
124
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("success" | "progress" | "delete" | "change" | "start" | "oversize" | "failure" | "update:fileList" | "fileItemClick")[], "success" | "progress" | "delete" | "change" | "start" | "oversize" | "failure" | "update:fileList" | "fileItemClick", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
125
125
  name: {
126
126
  type: StringConstructor;
127
127
  default: string;
@@ -218,23 +218,22 @@ declare const _default: Install< import("vue").DefineComponent<{
218
218
  type: FunctionConstructor;
219
219
  };
220
220
  }>> & {
221
- onProgress?: ((...args: any[]) => any) | undefined;
222
221
  onChange?: ((...args: any[]) => any) | undefined;
223
- onDelete?: ((...args: any[]) => any) | undefined;
222
+ onProgress?: ((...args: any[]) => any) | undefined;
224
223
  onStart?: ((...args: any[]) => any) | undefined;
225
224
  onFailure?: ((...args: any[]) => any) | undefined;
226
225
  onSuccess?: ((...args: any[]) => any) | undefined;
226
+ onDelete?: ((...args: any[]) => any) | undefined;
227
227
  onOversize?: ((...args: any[]) => any) | undefined;
228
228
  "onUpdate:fileList"?: ((...args: any[]) => any) | undefined;
229
229
  onFileItemClick?: ((...args: any[]) => any) | undefined;
230
230
  }, {
231
231
  name: string;
232
+ disabled: boolean;
232
233
  data: Record<string, any>;
234
+ url: string;
233
235
  maximum: string | number;
234
236
  multiple: boolean;
235
- disabled: boolean;
236
- url: string;
237
- accept: string;
238
237
  timeout: string | number;
239
238
  fileList: any[];
240
239
  isPreview: boolean;
@@ -244,6 +243,7 @@ declare const _default: Install< import("vue").DefineComponent<{
244
243
  capture: boolean;
245
244
  maximize: string | number;
246
245
  clearInput: boolean;
246
+ accept: string;
247
247
  headers: Record<string, any>;
248
248
  xhrState: string | number;
249
249
  withCredentials: boolean;
@@ -255,7 +255,7 @@ declare const _default: Install< import("vue").DefineComponent<{
255
255
  export default _default;
256
256
 
257
257
  declare module 'vue' {
258
- interface GlobalComponents {
259
- NutUploader: typeof _default;
260
- }
258
+ interface GlobalComponents {
259
+ NutUploader: typeof _default;
260
+ }
261
261
  }
@@ -1,7 +1,7 @@
1
1
  import { Ref } from 'vue';
2
2
 
3
3
  declare type Install<T> = T & {
4
- install(app: import('vue').App): void;
4
+ install(app: import('vue').App): void;
5
5
  };
6
6
  declare const _default: Install< import("vue").DefineComponent<{
7
7
  source: {
@@ -80,7 +80,7 @@ declare const _default: Install< import("vue").DefineComponent<{
80
80
  onTime: Ref<((...args: any[]) => any) | undefined>;
81
81
  onPlayend: Ref<((...args: any[]) => any) | undefined>;
82
82
  root: Ref<any>;
83
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("time" | "click" | "pause" | "play" | "playend")[], "time" | "click" | "pause" | "play" | "playend", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
83
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "time" | "pause" | "play" | "playend")[], "click" | "time" | "pause" | "play" | "playend", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
84
84
  source: {
85
85
  type: ObjectConstructor;
86
86
  default: {};
@@ -119,7 +119,7 @@ declare const _default: Install< import("vue").DefineComponent<{
119
119
  export default _default;
120
120
 
121
121
  declare module 'vue' {
122
- interface GlobalComponents {
123
- NutVideo: typeof _default;
124
- }
122
+ interface GlobalComponents {
123
+ NutVideo: typeof _default;
124
+ }
125
125
  }
@@ -1,6 +1,6 @@
1
1
 
2
2
  declare type Install<T> = T & {
3
- install(app: import('vue').App): void;
3
+ install(app: import('vue').App): void;
4
4
  };
5
5
  declare const _default: Install< import("vue").DefineComponent<{
6
6
  name: {
@@ -175,13 +175,13 @@ declare const _default: Install< import("vue").DefineComponent<{
175
175
  onClick?: ((...args: any[]) => any) | undefined;
176
176
  }, {
177
177
  name: string;
178
+ width: number;
179
+ height: number;
178
180
  image: string;
179
181
  zIndex: number;
180
182
  content: string | string[];
181
- width: number;
182
- height: number;
183
- rotate: number;
184
183
  fontSize: string | number;
184
+ rotate: number;
185
185
  gapY: number;
186
186
  gapX: number;
187
187
  imageWidth: number;
@@ -195,7 +195,7 @@ declare const _default: Install< import("vue").DefineComponent<{
195
195
  export default _default;
196
196
 
197
197
  declare module 'vue' {
198
- interface GlobalComponents {
199
- NutWatermark: typeof _default;
200
- }
198
+ interface GlobalComponents {
199
+ NutWatermark: typeof _default;
200
+ }
201
201
  }
@@ -1,6 +1,7 @@
1
1
  import { App } from 'vue';
2
2
  import Locale from './locale';
3
- import Button from './__VUE/button/index.vue';
3
+ import Button from './__VUE/button/index';
4
+ export * from './__VUE/button/index';
4
5
  import Cell from './__VUE/cell/index.vue';
5
6
  import CellGroup from './__VUE/cellgroup/index.vue';
6
7
  import Overlay from './__VUE/overlay/index.vue';
@@ -11,7 +12,8 @@ import Layout from './__VUE/layout/index.vue';
11
12
  import Col from './__VUE/col/index.vue';
12
13
  import Row from './__VUE/row/index.vue';
13
14
  import Sticky from './__VUE/sticky/index.vue';
14
- import Divider from './__VUE/divider/index.vue';
15
+ import Divider from './__VUE/divider/index';
16
+ export * from './__VUE/divider/index';
15
17
  import Grid from './__VUE/grid/index.vue';
16
18
  import GridItem from './__VUE/griditem/index.vue';
17
19
  import Space from './__VUE/space/index.vue';
@@ -33,7 +35,8 @@ import Range from './__VUE/range/index.vue';
33
35
  import Searchbar from './__VUE/searchbar/index.vue';
34
36
  import Cascader from './__VUE/cascader/index.vue';
35
37
  import Calendar from './__VUE/calendar/index.vue';
36
- import CalendarCard from './__VUE/calendarcard/index.vue';
38
+ import CalendarCard from './__VUE/calendarcard/index';
39
+ export * from './__VUE/calendarcard/index';
37
40
  import Checkbox from './__VUE/checkbox/index.vue';
38
41
  import CheckboxGroup from './__VUE/checkboxgroup/index.vue';
39
42
  import DatePicker from './__VUE/datepicker/index.vue';
@@ -111,7 +114,7 @@ import Comment from './__VUE/comment/index.vue';
111
114
  import Invoice from './__VUE/invoice/index.vue';
112
115
  import AvatarCropper from './__VUE/avatarcropper/index.vue';
113
116
  declare function install(app: App): void;
114
- declare const version = "4.3.0-beta.1";
117
+ declare const version = "4.3.0-beta.3";
115
118
  export { install, version, Locale, Button, Cell, CellGroup, Overlay, Popup, ConfigProvider, Image, Layout, Col, Row, Sticky, Divider, Grid, GridItem, Space, Navbar, FixedNav, Menu, MenuItem, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavbar, SideNavbarItem, SubSideNavbar, Range, Searchbar, Cascader, Calendar, CalendarCard, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, Textarea, Uploader, NumberKeyboard, Form, FormItem, Swipe, SwipeGroup, ActionSheet, Backtop, Drag, Dialog, InfiniteLoading, PullRefresh, Notify, Switch, Toast, Audio, AudioOperate, Avatar, AvatarGroup, List, Progress, CircleProgress, Noticebar, Empty, Video, Steps, Step, Swiper, SwiperItem, Price, ImagePreview, Countup, Countdown, Badge, Tag, Popover, Skeleton, Collapse, CollapseItem, Table, Animate, Ellipsis, Watermark, TrendArrow, Tour, Address, Barrage, Signature, TimeSelect, TimePannel, TimeDetail, Sku, Card, Ecard, AddressList, Category, CategoryPane, Comment, Invoice, AvatarCropper, showDialog, showNotify, showToast, showImagePreview };
116
119
  declare const _default: {
117
120
  install: typeof install;
@@ -1,6 +1,6 @@
1
1
  import Taro from '@tarojs/taro';
2
2
  import CanvasContext = Taro.CanvasContext;
3
- declare const compareVersion: (v1Old: string, v2Old: string) => 1 | 0 | -1;
3
+ declare const compareVersion: (v1Old: string, v2Old: string) => 1 | -1 | 0;
4
4
  declare function easySetStrokeStyle(systemInfo: Taro.getSystemInfoSync.Result, canvasContext: CanvasContext, color: string | CanvasGradient): void;
5
5
  declare function easySetLineWidth(systemInfo: Taro.getSystemInfoSync.Result, canvasContext: CanvasContext, lineWidth: number): void;
6
6
  declare function easySetFillStyle(systemInfo: Taro.getSystemInfoSync.Result, canvasContext: CanvasContext, color: string | CanvasGradient): void;
@@ -1,4 +1,4 @@
1
1
  import { Component } from 'vue';
2
- export declare const renderIcon: (icon: Component, props?: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
2
+ export declare const renderIcon: (icon: Component, props?: any) => "" | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
3
3
  [key: string]: any;
4
- }> | "";
4
+ }>;
@@ -1 +1,2 @@
1
1
  export * from './useRelation';
2
+ export * from './with-install';
@@ -0,0 +1,5 @@
1
+ import type { App, Component } from 'vue';
2
+ export type WithInstall<T> = T & {
3
+ install(app: App): void;
4
+ };
5
+ export declare const withInstall: <T extends Component>(comp: T) => WithInstall<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui",
3
- "version": "4.3.0-beta.1",
3
+ "version": "4.3.0-beta.3",
4
4
  "description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
5
5
  "main": "dist/nutui.umd.js",
6
6
  "module": "dist/nutui.es.js",
@@ -37,7 +37,8 @@
37
37
  "publish:latest": "npm publish"
38
38
  },
39
39
  "peerDependencies": {
40
- "unplugin-vue-components": "^0.25.1"
40
+ "unplugin-vue-components": ">=0.25.1",
41
+ "vue": "^3.0.0"
41
42
  },
42
43
  "peerDependenciesMeta": {
43
44
  "unplugin-vue-components": {
@@ -51,5 +52,6 @@
51
52
  "repository": {
52
53
  "type": "git",
53
54
  "url": "https://github.com/jdf2e/nutui.git"
54
- }
55
+ },
56
+ "homepage": "https://nutui.jd.com/"
55
57
  }
@@ -1,30 +0,0 @@
1
- declare const addressListData: {
2
- province: {
3
- id: number;
4
- name: string;
5
- title: string;
6
- }[];
7
- city: {
8
- id: number;
9
- name: string;
10
- title: string;
11
- }[];
12
- country: {
13
- id: number;
14
- name: string;
15
- title: string;
16
- }[];
17
- town: never[];
18
- };
19
- declare const addressExistData: {
20
- id: number;
21
- addressDetail: string;
22
- cityName: string;
23
- countyName: string;
24
- provinceName: string;
25
- selectedAddress: boolean;
26
- townName: string;
27
- name: string;
28
- phone: string;
29
- }[];
30
- export { addressListData, addressExistData };
@@ -1,12 +0,0 @@
1
- export declare const Left: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
2
- [key: string]: any;
3
- }>;
4
- export declare const Right: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
5
- [key: string]: any;
6
- }>;
7
- export declare const DoubleLeft: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
8
- [key: string]: any;
9
- }>;
10
- export declare const DoubleRight: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
11
- [key: string]: any;
12
- }>;
@@ -1,71 +0,0 @@
1
- import { PropType } from 'vue';
2
- import { DividerDirection, DividerPosition } 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
- contentPosition: {
9
- type: PropType<DividerPosition>;
10
- default: string;
11
- };
12
- dashed: {
13
- type: BooleanConstructor;
14
- default: boolean;
15
- };
16
- hairline: {
17
- type: BooleanConstructor;
18
- default: boolean;
19
- };
20
- direction: {
21
- type: PropType<DividerDirection>;
22
- default: string;
23
- };
24
- }, {
25
- classes: import("vue").ComputedRef<{
26
- "nut-divider": boolean;
27
- "nut-divider-center": import("vue").Slot<any> | undefined;
28
- "nut-divider-left": boolean;
29
- "nut-divider-right": boolean;
30
- "nut-divider-dashed": boolean;
31
- "nut-divider-hairline": boolean;
32
- "nut-divider-vertical"?: undefined;
33
- } | {
34
- "nut-divider": boolean;
35
- "nut-divider-vertical": boolean;
36
- "nut-divider-center"?: undefined;
37
- "nut-divider-left"?: undefined;
38
- "nut-divider-right"?: undefined;
39
- "nut-divider-dashed"?: undefined;
40
- "nut-divider-hairline"?: undefined;
41
- }>;
42
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
43
- contentPosition: {
44
- type: PropType<DividerPosition>;
45
- default: string;
46
- };
47
- dashed: {
48
- type: BooleanConstructor;
49
- default: boolean;
50
- };
51
- hairline: {
52
- type: BooleanConstructor;
53
- default: boolean;
54
- };
55
- direction: {
56
- type: PropType<DividerDirection>;
57
- default: string;
58
- };
59
- }>>, {
60
- dashed: boolean;
61
- direction: DividerDirection;
62
- contentPosition: DividerPosition;
63
- hairline: boolean;
64
- }, {}>>;
65
- export default _default;
66
-
67
- declare module 'vue' {
68
- interface GlobalComponents {
69
- NutDivider: typeof _default;
70
- }
71
- }
@@ -1,13 +0,0 @@
1
- import '@nutui/icons-vue/dist/style_iconfont.css';
2
-
3
- declare type Install<T> = T & {
4
- install(app: import('vue').App): void;
5
- };
6
- declare const _default: Install< import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>>;
7
- export default _default;
8
-
9
- declare module 'vue' {
10
- interface GlobalComponents {
11
- NutIcon: typeof _default;
12
- }
13
- }
@@ -1,6 +0,0 @@
1
- export declare class FormItemRule {
2
- regex?: RegExp;
3
- required?: boolean;
4
- message: string;
5
- validator?: (value: any) => boolean | string | Promise<boolean | string>;
6
- }
@@ -1,90 +0,0 @@
1
- export declare const Internation: {
2
- 'zh-CN': {
3
- basic: string;
4
- chooseCity: string;
5
- defaultSelected: string;
6
- '3d': string;
7
- popupDesc: string;
8
- customFieldNames: string;
9
- multipleColumns: string;
10
- chooseTime: string;
11
- cascade: string;
12
- async: string;
13
- custom: string;
14
- validTime: string;
15
- chooseDate: string;
16
- always: string;
17
- monday: string;
18
- tuesday: string;
19
- wednesday: string;
20
- thursday: string;
21
- friday: string;
22
- morning: string;
23
- afternoon: string;
24
- evening: string;
25
- nanJing: string;
26
- wuXi: string;
27
- zangZu: string;
28
- beiJing: string;
29
- lianYunGang: string;
30
- zheJiang: string;
31
- jiangSu: string;
32
- hangZhou: string;
33
- xiHu: string;
34
- yuHang: string;
35
- wenZhou: string;
36
- luCheng: string;
37
- ouHai: string;
38
- fuJian: string;
39
- fuZhou: string;
40
- xiaMen: string;
41
- guLou: string;
42
- taiJiang: string;
43
- siMing: string;
44
- haiCang: string;
45
- };
46
- 'en-US': {
47
- basic: string;
48
- chooseCity: string;
49
- defaultSelected: string;
50
- '3d': string;
51
- popupDesc: string;
52
- customFieldNames: string;
53
- multipleColumns: string;
54
- chooseTime: string;
55
- cascade: string;
56
- async: string;
57
- custom: string;
58
- validTime: string;
59
- chooseDate: string;
60
- always: string;
61
- monday: string;
62
- tuesday: string;
63
- wednesday: string;
64
- thursday: string;
65
- friday: string;
66
- morning: string;
67
- afternoon: string;
68
- evening: string;
69
- nanJing: string;
70
- wuXi: string;
71
- zangZu: string;
72
- beiJing: string;
73
- lianYunGang: string;
74
- zheJiang: string;
75
- jiangSu: string;
76
- hangZhou: string;
77
- xiHu: string;
78
- yuHang: string;
79
- wenZhou: string;
80
- luCheng: string;
81
- ouHai: string;
82
- fuJian: string;
83
- fuZhou: string;
84
- xiaMen: string;
85
- guLou: string;
86
- taiJiang: string;
87
- siMing: string;
88
- haiCang: string;
89
- };
90
- };
@@ -1,22 +0,0 @@
1
- export declare const Sku: {
2
- id: number;
3
- name: string;
4
- list: {
5
- name: string;
6
- id: number;
7
- active: boolean;
8
- disable: boolean;
9
- }[];
10
- }[];
11
- export declare const Goods: {
12
- skuId: string;
13
- price: string;
14
- imagePath: string;
15
- };
16
- export declare const imagePathMap: {
17
- 100016015112: string;
18
- 100016015142: string;
19
- 100016015078: string;
20
- 100009064831: string;
21
- 100009064830: string;
22
- };
@@ -1,2 +0,0 @@
1
- export type PopoverTheme = 'light' | 'dark';
2
- export type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';