@nutui/nutui 4.2.7 → 4.2.9

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 (175) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +4297 -4295
  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/calendar/Calendar.js +18 -4
  14. package/dist/packages/calendaritem/CalendarItem.js +1 -1
  15. package/dist/packages/cell/Cell.js +9 -4
  16. package/dist/packages/datepicker/DatePicker.js +31 -30
  17. package/dist/packages/datepicker/index.css +1 -1
  18. package/dist/packages/dialog/Dialog.js +4 -3
  19. package/dist/packages/dialog/index.css +1 -1
  20. package/dist/packages/dialog/index.scss +0 -3
  21. package/dist/packages/divider/Divider.js +40 -18
  22. package/dist/packages/formitem/index.css +1 -1
  23. package/dist/packages/formitem/index.scss +1 -3
  24. package/dist/packages/{index-NLe0VBkN.js → index-kWulbKuH.js} +4 -2
  25. package/dist/packages/invoice/Invoice.js +3 -2
  26. package/dist/packages/invoice/index.css +1 -1
  27. package/dist/packages/list/List.js +6 -4
  28. package/dist/packages/picker/index.css +1 -1
  29. package/dist/packages/picker/index.scss +2 -0
  30. package/dist/packages/sidenavbar/SideNavbar.js +1 -1
  31. package/dist/packages/sidenavbar/index.css +1 -1
  32. package/dist/packages/sidenavbar/index.scss +0 -1
  33. package/dist/packages/sidenavbaritem/SideNavbarItem.js +4 -21
  34. package/dist/packages/signature/Signature.js +3 -2
  35. package/dist/packages/skeleton/index.css +1 -1
  36. package/dist/packages/subsidenavbar/SubSideNavbar.js +3 -10
  37. package/dist/packages/subsidenavbar/index.css +1 -1
  38. package/dist/packages/subsidenavbar/index.scss +0 -6
  39. package/dist/packages/with-install-p59gYYU_.js +12 -0
  40. package/dist/smartips/web-types.json +11 -2
  41. package/dist/style.css +1 -1
  42. package/dist/types/__VUE/actionsheet/index.vue.d.ts +7 -7
  43. package/dist/types/__VUE/address/index.vue.d.ts +11 -11
  44. package/dist/types/__VUE/addresslist/index.vue.d.ts +5 -5
  45. package/dist/types/__VUE/animate/index.vue.d.ts +4 -4
  46. package/dist/types/__VUE/audio/index.vue.d.ts +6 -6
  47. package/dist/types/__VUE/audiooperate/index.vue.d.ts +4 -4
  48. package/dist/types/__VUE/avatar/index.vue.d.ts +5 -5
  49. package/dist/types/__VUE/avatarcropper/index.vue.d.ts +16 -7
  50. package/dist/types/__VUE/avatarcropper/types.d.ts +1 -0
  51. package/dist/types/__VUE/avatargroup/index.vue.d.ts +5 -5
  52. package/dist/types/__VUE/backtop/index.vue.d.ts +6 -6
  53. package/dist/types/__VUE/badge/index.vue.d.ts +6 -6
  54. package/dist/types/__VUE/barrage/index.vue.d.ts +5 -5
  55. package/dist/types/__VUE/button/{index.vue.d.ts → button.vue.d.ts} +36 -27
  56. package/dist/types/__VUE/button/index.d.ts +5 -0
  57. package/dist/types/__VUE/calendar/index.vue.d.ts +9 -7
  58. package/dist/types/__VUE/calendaritem/index.vue.d.ts +10 -10
  59. package/dist/types/__VUE/card/index.vue.d.ts +4 -4
  60. package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +4 -4
  61. package/dist/types/__VUE/cascader/index.vue.d.ts +7 -7
  62. package/dist/types/__VUE/category/index.vue.d.ts +4 -4
  63. package/dist/types/__VUE/categorypane/index.vue.d.ts +4 -4
  64. package/dist/types/__VUE/cell/index.vue.d.ts +12 -11
  65. package/dist/types/__VUE/cell/types.d.ts +1 -0
  66. package/dist/types/__VUE/cellgroup/index.vue.d.ts +4 -4
  67. package/dist/types/__VUE/checkbox/index.vue.d.ts +13 -11
  68. package/dist/types/__VUE/checkbox/types.d.ts +2 -0
  69. package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +4 -4
  70. package/dist/types/__VUE/circleprogress/index.vue.d.ts +5 -5
  71. package/dist/types/__VUE/col/index.vue.d.ts +4 -4
  72. package/dist/types/__VUE/collapse/index.vue.d.ts +4 -4
  73. package/dist/types/__VUE/collapseitem/index.vue.d.ts +7 -7
  74. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +1 -1
  75. package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +1 -1
  76. package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +1 -1
  77. package/dist/types/__VUE/comment/index.vue.d.ts +9 -9
  78. package/dist/types/__VUE/configprovider/index.vue.d.ts +5 -5
  79. package/dist/types/__VUE/countdown/index.vue.d.ts +4 -4
  80. package/dist/types/__VUE/countup/index.vue.d.ts +8 -8
  81. package/dist/types/__VUE/datepicker/index.vue.d.ts +9 -9
  82. package/dist/types/__VUE/dialog/index.vue.d.ts +7 -7
  83. package/dist/types/__VUE/divider/divider.vue.d.ts +56 -0
  84. package/dist/types/__VUE/divider/index.d.ts +5 -0
  85. package/dist/types/__VUE/drag/index.vue.d.ts +4 -4
  86. package/dist/types/__VUE/ecard/index.vue.d.ts +7 -7
  87. package/dist/types/__VUE/elevator/index.vue.d.ts +4 -4
  88. package/dist/types/__VUE/ellipsis/index.vue.d.ts +11 -11
  89. package/dist/types/__VUE/ellipsis/types.d.ts +1 -0
  90. package/dist/types/__VUE/empty/index.vue.d.ts +4 -4
  91. package/dist/types/__VUE/fixednav/index.vue.d.ts +6 -6
  92. package/dist/types/__VUE/form/index.vue.d.ts +4 -4
  93. package/dist/types/__VUE/formitem/index.vue.d.ts +4 -4
  94. package/dist/types/__VUE/grid/index.vue.d.ts +6 -6
  95. package/dist/types/__VUE/griditem/index.vue.d.ts +4 -4
  96. package/dist/types/__VUE/image/index.vue.d.ts +8 -8
  97. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +5 -5
  98. package/dist/types/__VUE/imagepreview/index.vue.d.ts +9 -9
  99. package/dist/types/__VUE/indicator/index.vue.d.ts +4 -4
  100. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +4 -4
  101. package/dist/types/__VUE/input/index.vue.d.ts +15 -15
  102. package/dist/types/__VUE/inputnumber/index.vue.d.ts +7 -7
  103. package/dist/types/__VUE/invoice/index.vue.d.ts +6 -6
  104. package/dist/types/__VUE/layout/index.vue.d.ts +4 -4
  105. package/dist/types/__VUE/list/index.vue.d.ts +8 -11
  106. package/dist/types/__VUE/menu/index.vue.d.ts +7 -7
  107. package/dist/types/__VUE/menuitem/index.vue.d.ts +4 -4
  108. package/dist/types/__VUE/navbar/index.vue.d.ts +6 -6
  109. package/dist/types/__VUE/noticebar/index.vue.d.ts +6 -6
  110. package/dist/types/__VUE/notify/index.vue.d.ts +7 -7
  111. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +8 -8
  112. package/dist/types/__VUE/overlay/index.vue.d.ts +4 -4
  113. package/dist/types/__VUE/pagination/index.vue.d.ts +5 -5
  114. package/dist/types/__VUE/picker/Column.vue.d.ts +7 -7
  115. package/dist/types/__VUE/picker/baseProps.d.ts +4 -4
  116. package/dist/types/__VUE/picker/index.vue.d.ts +6 -6
  117. package/dist/types/__VUE/popover/index.vue.d.ts +9 -9
  118. package/dist/types/__VUE/popup/index.vue.d.ts +6 -6
  119. package/dist/types/__VUE/price/index.vue.d.ts +4 -4
  120. package/dist/types/__VUE/progress/index.vue.d.ts +6 -6
  121. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +4 -4
  122. package/dist/types/__VUE/radio/index.vue.d.ts +8 -8
  123. package/dist/types/__VUE/radiogroup/index.vue.d.ts +7 -7
  124. package/dist/types/__VUE/range/index.vue.d.ts +8 -8
  125. package/dist/types/__VUE/rate/index.vue.d.ts +9 -9
  126. package/dist/types/__VUE/row/index.vue.d.ts +5 -5
  127. package/dist/types/__VUE/searchbar/index.vue.d.ts +16 -16
  128. package/dist/types/__VUE/shortpassword/index.vue.d.ts +5 -5
  129. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +4 -4
  130. package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +6 -19
  131. package/dist/types/__VUE/signature/index.vue.d.ts +6 -6
  132. package/dist/types/__VUE/skeleton/index.vue.d.ts +7 -7
  133. package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +2 -2
  134. package/dist/types/__VUE/sku/index.vue.d.ts +6 -6
  135. package/dist/types/__VUE/space/index.vue.d.ts +4 -4
  136. package/dist/types/__VUE/step/index.vue.d.ts +4 -4
  137. package/dist/types/__VUE/steps/index.vue.d.ts +4 -4
  138. package/dist/types/__VUE/sticky/index.vue.d.ts +5 -5
  139. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +4 -13
  140. package/dist/types/__VUE/swipe/index.vue.d.ts +4 -4
  141. package/dist/types/__VUE/swipegroup/index.vue.d.ts +4 -4
  142. package/dist/types/__VUE/swiper/index.vue.d.ts +5 -5
  143. package/dist/types/__VUE/swiperitem/index.vue.d.ts +4 -4
  144. package/dist/types/__VUE/switch/index.vue.d.ts +13 -13
  145. package/dist/types/__VUE/tabbar/index.vue.d.ts +6 -6
  146. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +6 -6
  147. package/dist/types/__VUE/table/index.vue.d.ts +4 -4
  148. package/dist/types/__VUE/table/renderColumn.d.ts +4 -4
  149. package/dist/types/__VUE/tabpane/index.vue.d.ts +5 -5
  150. package/dist/types/__VUE/tabs/index.vue.d.ts +11 -11
  151. package/dist/types/__VUE/tag/index.vue.d.ts +8 -8
  152. package/dist/types/__VUE/textarea/index.vue.d.ts +11 -11
  153. package/dist/types/__VUE/timedetail/index.vue.d.ts +4 -4
  154. package/dist/types/__VUE/timepannel/index.vue.d.ts +4 -4
  155. package/dist/types/__VUE/timeselect/index.vue.d.ts +5 -5
  156. package/dist/types/__VUE/toast/index.vue.d.ts +10 -10
  157. package/dist/types/__VUE/tour/index.vue.d.ts +9 -9
  158. package/dist/types/__VUE/trendarrow/index.vue.d.ts +5 -5
  159. package/dist/types/__VUE/uploader/index.vue.d.ts +10 -10
  160. package/dist/types/__VUE/video/index.vue.d.ts +5 -5
  161. package/dist/types/__VUE/watermark/index.vue.d.ts +7 -7
  162. package/dist/types/index.d.ts +5 -3
  163. package/dist/types/utils/canvas.d.ts +1 -1
  164. package/dist/types/utils/create/renderIcon.d.ts +2 -2
  165. package/dist/types/utils/index.d.ts +1 -0
  166. package/dist/types/utils/with-install.d.ts +5 -0
  167. package/package.json +5 -3
  168. package/dist/types/__VUE/address/address-list.d.ts +0 -30
  169. package/dist/types/__VUE/divider/index.vue.d.ts +0 -71
  170. package/dist/types/__VUE/icon/index.vue.d.ts +0 -13
  171. package/dist/types/__VUE/invoice/types.d.ts +0 -6
  172. package/dist/types/__VUE/picker/doc.en.d.ts +0 -90
  173. package/dist/types/__VUE/sku/data.d.ts +0 -22
  174. package/dist/types/__VUE/tour/type.d.ts +0 -2
  175. /package/dist/types/__VUE/button/{type.d.ts → types.d.ts} +0 -0
@@ -9,7 +9,7 @@ export interface ActionSheetMenuItems {
9
9
  }
10
10
 
11
11
  declare type Install<T> = T & {
12
- install(app: import('vue').App): void;
12
+ install(app: import('vue').App): void;
13
13
  };
14
14
  declare const _default: Install< import("vue").DefineComponent<{
15
15
  cancelTxt: {
@@ -263,8 +263,11 @@ declare const _default: Install< import("vue").DefineComponent<{
263
263
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
264
264
  onChoose?: ((...args: any[]) => any) | undefined;
265
265
  }, {
266
+ round: boolean;
267
+ color: string;
266
268
  style: Record<string, any>;
267
269
  title: string;
270
+ transition: string;
268
271
  overlay: boolean;
269
272
  visible: boolean;
270
273
  zIndex: string | number;
@@ -273,10 +276,7 @@ declare const _default: Install< import("vue").DefineComponent<{
273
276
  overlayClass: string;
274
277
  overlayStyle: Record<string, any>;
275
278
  closeOnClickOverlay: boolean;
276
- color: string;
277
- round: boolean;
278
279
  position: string;
279
- transition: string;
280
280
  popClass: string;
281
281
  closeable: boolean;
282
282
  closeIconPosition: string;
@@ -296,7 +296,7 @@ declare const _default: Install< import("vue").DefineComponent<{
296
296
  export default _default;
297
297
 
298
298
  declare module 'vue' {
299
- interface GlobalComponents {
300
- NutActionSheet: typeof _default;
301
- }
299
+ interface GlobalComponents {
300
+ NutActionSheet: typeof _default;
301
+ }
302
302
  }
@@ -2,7 +2,7 @@ import { Ref, PropType } from 'vue';
2
2
  import { AddressData, CustomRegionData, existRegionData } from './type';
3
3
 
4
4
  declare type Install<T> = T & {
5
- install(app: import('vue').App): void;
5
+ install(app: import('vue').App): void;
6
6
  };
7
7
  declare const _default: Install< import("vue").DefineComponent<{
8
8
  modelValue: {
@@ -168,7 +168,7 @@ declare const _default: Install< import("vue").DefineComponent<{
168
168
  handClose: (type?: string) => void;
169
169
  handleElevatorItem: (key: string, item: AddressData) => void;
170
170
  initCustomSelected: () => void;
171
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "update:visible" | "type" | "update:modelValue" | "selected" | "closeMask" | "switchModule")[], "change" | "close" | "update:visible" | "type" | "update:modelValue" | "selected" | "closeMask" | "switchModule", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
171
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("type" | "change" | "close" | "update:visible" | "selected" | "update:modelValue" | "closeMask" | "switchModule")[], "type" | "change" | "close" | "update:visible" | "selected" | "update:modelValue" | "closeMask" | "switchModule", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
172
172
  modelValue: {
173
173
  type: ArrayConstructor;
174
174
  default: () => never[];
@@ -308,13 +308,17 @@ declare const _default: Install< import("vue").DefineComponent<{
308
308
  onChange?: ((...args: any[]) => any) | undefined;
309
309
  onClose?: ((...args: any[]) => any) | undefined;
310
310
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
311
- onType?: ((...args: any[]) => any) | undefined;
312
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
313
311
  onSelected?: ((...args: any[]) => any) | undefined;
312
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
313
+ onType?: ((...args: any[]) => any) | undefined;
314
314
  onCloseMask?: ((...args: any[]) => any) | undefined;
315
315
  onSwitchModule?: ((...args: any[]) => any) | undefined;
316
316
  }, {
317
+ round: boolean;
318
+ type: string;
319
+ height: string | number;
317
320
  style: Record<string, any>;
321
+ transition: string;
318
322
  overlay: boolean;
319
323
  visible: boolean;
320
324
  zIndex: string | number;
@@ -323,11 +327,7 @@ declare const _default: Install< import("vue").DefineComponent<{
323
327
  overlayClass: string;
324
328
  overlayStyle: Record<string, any>;
325
329
  closeOnClickOverlay: boolean;
326
- type: string;
327
- round: boolean;
328
330
  position: string;
329
- height: string | number;
330
- transition: string;
331
331
  popClass: string;
332
332
  closeable: boolean;
333
333
  closeIconPosition: string;
@@ -351,7 +351,7 @@ declare const _default: Install< import("vue").DefineComponent<{
351
351
  export default _default;
352
352
 
353
353
  declare module 'vue' {
354
- interface GlobalComponents {
355
- NutAddress: typeof _default;
356
- }
354
+ interface GlobalComponents {
355
+ NutAddress: typeof _default;
356
+ }
357
357
  }
@@ -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
  data: {
@@ -57,13 +57,13 @@ declare const _default: Install< import("vue").DefineComponent<{
57
57
  };
58
58
  }>> & {
59
59
  onClickItem?: ((...args: any[]) => any) | undefined;
60
+ onAdd?: ((...args: any[]) => any) | undefined;
60
61
  onDelIcon?: ((...args: any[]) => any) | undefined;
61
62
  onEditIcon?: ((...args: any[]) => any) | undefined;
62
63
  onLongCopy?: ((...args: any[]) => any) | undefined;
63
64
  onLongSet?: ((...args: any[]) => any) | undefined;
64
65
  onLongDel?: ((...args: any[]) => any) | undefined;
65
66
  onSwipeDel?: ((...args: any[]) => any) | undefined;
66
- onAdd?: ((...args: any[]) => any) | undefined;
67
67
  }, {
68
68
  data: unknown[];
69
69
  longPress: boolean;
@@ -74,7 +74,7 @@ declare const _default: Install< import("vue").DefineComponent<{
74
74
  export default _default;
75
75
 
76
76
  declare module 'vue' {
77
- interface GlobalComponents {
78
- NutAddressList: typeof _default;
79
- }
77
+ interface GlobalComponents {
78
+ NutAddressList: typeof _default;
79
+ }
80
80
  }
@@ -2,7 +2,7 @@ import { PropType } from 'vue';
2
2
  import { AnimateType, AnimateAction } from './type';
3
3
 
4
4
  declare type Install<T> = T & {
5
- install(app: import('vue').App): void;
5
+ install(app: import('vue').App): void;
6
6
  };
7
7
  declare const _default: Install< import("vue").DefineComponent<{
8
8
  type: {
@@ -65,7 +65,7 @@ declare const _default: Install< import("vue").DefineComponent<{
65
65
  export default _default;
66
66
 
67
67
  declare module 'vue' {
68
- interface GlobalComponents {
69
- NutAnimate: typeof _default;
70
- }
68
+ interface GlobalComponents {
69
+ NutAnimate: typeof _default;
70
+ }
71
71
  }
@@ -2,7 +2,7 @@ import { type PropType } from 'vue';
2
2
  import type { AudioType } from './types';
3
3
 
4
4
  declare type Install<T> = T & {
5
- install(app: import('vue').App): void;
5
+ install(app: import('vue').App): void;
6
6
  };
7
7
  declare const _default: Install< import("vue").DefineComponent<{
8
8
  url: {
@@ -55,10 +55,10 @@ declare const _default: Install< import("vue").DefineComponent<{
55
55
  playing: import("vue").Ref<boolean>;
56
56
  handPlaying: import("vue").Ref<boolean>;
57
57
  type: import("vue").Ref<AudioType>;
58
- loop: import("vue").Ref<boolean>;
59
58
  url: import("vue").Ref<string>;
60
59
  muted: import("vue").Ref<boolean>;
61
60
  autoplay: import("vue").Ref<boolean>;
61
+ loop: import("vue").Ref<boolean>;
62
62
  preload: import("vue").Ref<string>;
63
63
  onEnded: import("vue").Ref<((...args: any[]) => any) | undefined>;
64
64
  onPlay: import("vue").Ref<((...args: any[]) => any) | undefined>;
@@ -106,17 +106,17 @@ declare const _default: Install< import("vue").DefineComponent<{
106
106
  onCanPlay?: ((...args: any[]) => any) | undefined;
107
107
  }, {
108
108
  type: AudioType;
109
- loop: boolean;
110
109
  url: string;
111
110
  muted: boolean;
112
111
  autoplay: boolean;
112
+ loop: boolean;
113
113
  preload: string;
114
114
  second: number;
115
115
  }, {}>>;
116
116
  export default _default;
117
117
 
118
118
  declare module 'vue' {
119
- interface GlobalComponents {
120
- NutAudio: typeof _default;
121
- }
119
+ interface GlobalComponents {
120
+ NutAudio: typeof _default;
121
+ }
122
122
  }
@@ -2,7 +2,7 @@ import { type PropType } from 'vue';
2
2
  import type { AudioOperateType } from './types';
3
3
 
4
4
  declare type Install<T> = T & {
5
- install(app: import('vue').App): void;
5
+ install(app: import('vue').App): void;
6
6
  };
7
7
  declare const _default: Install< import("vue").DefineComponent<{
8
8
  type: {
@@ -33,7 +33,7 @@ declare const _default: Install< import("vue").DefineComponent<{
33
33
  export default _default;
34
34
 
35
35
  declare module 'vue' {
36
- interface GlobalComponents {
37
- NutAudioOperate: typeof _default;
38
- }
36
+ interface GlobalComponents {
37
+ NutAudioOperate: typeof _default;
38
+ }
39
39
  }
@@ -2,7 +2,7 @@ import { PropType, CSSProperties } from 'vue';
2
2
  import { type AvatarShape } from './types';
3
3
 
4
4
  declare type Install<T> = T & {
5
- install(app: import('vue').App): void;
5
+ install(app: import('vue').App): void;
6
6
  };
7
7
  declare const _default: Install< import("vue").DefineComponent<{
8
8
  size: {
@@ -46,15 +46,15 @@ declare const _default: Install< import("vue").DefineComponent<{
46
46
  default: string;
47
47
  };
48
48
  }>>, {
49
- size: string | number;
50
49
  color: string;
51
50
  shape: AvatarShape;
51
+ size: string | number;
52
52
  bgColor: string;
53
53
  }, {}>>;
54
54
  export default _default;
55
55
 
56
56
  declare module 'vue' {
57
- interface GlobalComponents {
58
- NutAvatar: typeof _default;
59
- }
57
+ interface GlobalComponents {
58
+ NutAvatar: typeof _default;
59
+ }
60
60
  }
@@ -1,8 +1,8 @@
1
1
  import { Ref, PropType } from 'vue';
2
- import type { AvatarCropperToolbarPosition } from './types';
2
+ import type { AvatarCropperToolbarPosition, AvatarCropperShape } from './types';
3
3
 
4
4
  declare type Install<T> = T & {
5
- install(app: import('vue').App): void;
5
+ install(app: import('vue').App): void;
6
6
  };
7
7
  declare const _default: Install< import("vue").DefineComponent<{
8
8
  maxZoom: {
@@ -29,6 +29,10 @@ declare const _default: Install< import("vue").DefineComponent<{
29
29
  type: StringConstructor;
30
30
  default: string;
31
31
  };
32
+ shape: {
33
+ type: PropType<AvatarCropperShape>;
34
+ default: string;
35
+ };
32
36
  }, {
33
37
  cropperPopupRef: Ref<HTMLElement>;
34
38
  canvasRef: Ref<HTMLCanvasElement>;
@@ -80,21 +84,26 @@ declare const _default: Install< import("vue").DefineComponent<{
80
84
  type: StringConstructor;
81
85
  default: string;
82
86
  };
87
+ shape: {
88
+ type: PropType<AvatarCropperShape>;
89
+ default: string;
90
+ };
83
91
  }>> & {
84
92
  onCancel?: ((...args: any[]) => any) | undefined;
85
93
  onConfirm?: ((...args: any[]) => any) | undefined;
86
94
  }, {
95
+ shape: AvatarCropperShape;
87
96
  space: number;
97
+ confirmText: string;
98
+ cancelText: string;
88
99
  maxZoom: number;
89
100
  toolbarPosition: AvatarCropperToolbarPosition;
90
101
  editText: string;
91
- cancelText: string;
92
- confirmText: string;
93
102
  }, {}>>;
94
103
  export default _default;
95
104
 
96
105
  declare module 'vue' {
97
- interface GlobalComponents {
98
- NutAvatarCropper: typeof _default;
99
- }
106
+ interface GlobalComponents {
107
+ NutAvatarCropper: typeof _default;
108
+ }
100
109
  }
@@ -1,3 +1,4 @@
1
1
  export type AvatarCropperToolbarPosition = 'top' | 'bottom';
2
2
  export type AvatarCropperSizeType = 'original' | 'compressed';
3
3
  export type AvatarCropperSourceType = 'album' | 'camera';
4
+ export type AvatarCropperShape = 'square' | 'round';
@@ -2,7 +2,7 @@ import { PropType } from 'vue';
2
2
  import { type AvatarShape, type AvatarZIndex } from '../avatar/types';
3
3
 
4
4
  declare type Install<T> = T & {
5
- install(app: import('vue').App): void;
5
+ install(app: import('vue').App): void;
6
6
  };
7
7
  declare const _default: Install< import("vue").DefineComponent<{
8
8
  maxContent: {
@@ -77,10 +77,10 @@ declare const _default: Install< import("vue").DefineComponent<{
77
77
  default: string;
78
78
  };
79
79
  }>>, {
80
+ shape: AvatarShape;
80
81
  size: string | number;
81
82
  span: string | number;
82
83
  zIndex: AvatarZIndex;
83
- shape: AvatarShape;
84
84
  maxContent: string;
85
85
  maxCount: string | number;
86
86
  maxBgColor: string;
@@ -89,7 +89,7 @@ declare const _default: Install< import("vue").DefineComponent<{
89
89
  export default _default;
90
90
 
91
91
  declare module 'vue' {
92
- interface GlobalComponents {
93
- NutAvatarGroup: typeof _default;
94
- }
92
+ interface GlobalComponents {
93
+ NutAvatarGroup: typeof _default;
94
+ }
95
95
  }
@@ -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
  bottom: {
@@ -81,10 +81,10 @@ declare const _default: Install< import("vue").DefineComponent<{
81
81
  }>> & {
82
82
  onClick?: ((...args: any[]) => any) | undefined;
83
83
  }, {
84
+ bottom: number;
85
+ right: number;
84
86
  zIndex: number;
85
87
  duration: number;
86
- right: number;
87
- bottom: number;
88
88
  elId: string;
89
89
  distance: number;
90
90
  isAnimation: boolean;
@@ -92,7 +92,7 @@ declare const _default: Install< import("vue").DefineComponent<{
92
92
  export default _default;
93
93
 
94
94
  declare module 'vue' {
95
- interface GlobalComponents {
96
- NutBacktop: typeof _default;
97
- }
95
+ interface GlobalComponents {
96
+ NutBacktop: typeof _default;
97
+ }
98
98
  }
@@ -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
  value: {
@@ -84,11 +84,11 @@ declare const _default: Install< import("vue").DefineComponent<{
84
84
  default: string;
85
85
  };
86
86
  }>>, {
87
- zIndex: number;
88
- hidden: boolean;
89
87
  color: string;
90
88
  right: string;
91
89
  top: string;
90
+ zIndex: number;
91
+ hidden: boolean;
92
92
  dot: boolean;
93
93
  max: number;
94
94
  bubble: 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
- NutBadge: typeof _default;
101
- }
99
+ interface GlobalComponents {
100
+ NutBadge: typeof _default;
101
+ }
102
102
  }
@@ -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
  danmu: {
@@ -60,16 +60,16 @@ declare const _default: Install< import("vue").DefineComponent<{
60
60
  };
61
61
  }>>, {
62
62
  top: number;
63
+ rows: number;
63
64
  loop: boolean;
64
65
  danmu: unknown[];
65
66
  frequency: number;
66
67
  speeds: number;
67
- rows: number;
68
68
  }, {}>>;
69
69
  export default _default;
70
70
 
71
71
  declare module 'vue' {
72
- interface GlobalComponents {
73
- NutBarrage: typeof _default;
74
- }
72
+ interface GlobalComponents {
73
+ NutBarrage: typeof _default;
74
+ }
75
75
  }
@@ -1,11 +1,11 @@
1
- import { PropType, CSSProperties } from 'vue';
2
- import { ButtonShape, ButtonType, ButtonSize } from './type';
3
-
4
- declare type Install<T> = T & {
5
- install(app: import('vue').App): void;
6
- };
7
- declare const _default: Install< import("vue").DefineComponent<{
8
- color: StringConstructor;
1
+ import type { WithInstall } from '../../utils';
2
+ import { PropType } from 'vue';
3
+ import type { ButtonShape, ButtonType, ButtonSize } from './types';
4
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
5
+ color: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
9
  shape: {
10
10
  type: PropType<ButtonShape>;
11
11
  default: string;
@@ -34,14 +34,13 @@ declare const _default: Install< import("vue").DefineComponent<{
34
34
  type: BooleanConstructor;
35
35
  default: boolean;
36
36
  };
37
- }, {
38
- handleClick: (event: MouseEvent) => void;
39
- classes: import("vue").ComputedRef<{
40
- [x: string]: boolean | ButtonType | ButtonSize | ButtonShape;
41
- }>;
42
- getStyle: import("vue").ComputedRef<CSSProperties>;
43
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
44
- color: StringConstructor;
37
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
38
+ click: (...args: any[]) => void;
39
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
40
+ color: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
45
44
  shape: {
46
45
  type: PropType<ButtonShape>;
47
46
  default: string;
@@ -73,18 +72,28 @@ declare const _default: Install< import("vue").DefineComponent<{
73
72
  }>> & {
74
73
  onClick?: ((...args: any[]) => any) | undefined;
75
74
  }, {
76
- size: ButtonSize;
77
- type: ButtonType;
78
- block: boolean;
79
- disabled: boolean;
80
- loading: boolean;
75
+ color: string;
81
76
  shape: ButtonShape;
82
77
  plain: boolean;
83
- }, {}>>;
84
- export default _default;
78
+ loading: boolean;
79
+ disabled: boolean;
80
+ type: ButtonType;
81
+ size: ButtonSize;
82
+ block: boolean;
83
+ }, {}>, {
84
+ icon?(_: {}): any;
85
+ default?(_: {}): any;
86
+ }>;
87
+ declare const _nut_default: WithInstall<typeof _default>;
88
+ export default _nut_default;
85
89
 
86
90
  declare module 'vue' {
87
- interface GlobalComponents {
88
- NutButton: typeof _default;
89
- }
90
- }
91
+ interface GlobalComponents {
92
+ NutButton: typeof _default;
93
+ }
94
+ }
95
+ type __VLS_WithTemplateSlots<T, S> = T & {
96
+ new (): {
97
+ $slots: S;
98
+ };
99
+ };
@@ -0,0 +1,5 @@
1
+ import Button from './button.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { ButtonType, ButtonSize, ButtonShape, ButtonFormType } from './types';
4
+ export type ButtonInstance = ComponentPublicInstance & InstanceType<typeof Button>;
5
+ export { Button, Button as default };
@@ -1,7 +1,7 @@
1
1
  import { CalendarRef } from '../calendaritem/type';
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
  type: {
@@ -74,7 +74,9 @@ declare const _default: Install< import("vue").DefineComponent<{
74
74
  };
75
75
  disabledDate: FunctionConstructor;
76
76
  }, {
77
+ visible: import("vue").WritableComputedRef<boolean>;
77
78
  closePopup: () => void;
79
+ opened: () => void;
78
80
  update: () => void;
79
81
  close: () => void;
80
82
  select: (param: any) => void;
@@ -161,17 +163,17 @@ declare const _default: Install< import("vue").DefineComponent<{
161
163
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
162
164
  onChoose?: ((...args: any[]) => any) | undefined;
163
165
  }, {
166
+ type: string;
164
167
  title: string;
165
168
  visible: boolean;
166
169
  lockScroll: boolean;
167
- type: string;
168
- confirmText: string;
170
+ poppable: boolean;
169
171
  isAutoBackFill: boolean;
170
172
  toDateAnimation: boolean;
171
- poppable: boolean;
172
173
  showTitle: boolean;
173
174
  showSubTitle: boolean;
174
175
  showToday: boolean;
176
+ confirmText: string;
175
177
  startText: string;
176
178
  endText: string;
177
179
  startDate: string;
@@ -181,7 +183,7 @@ declare const _default: Install< import("vue").DefineComponent<{
181
183
  export default _default;
182
184
 
183
185
  declare module 'vue' {
184
- interface GlobalComponents {
185
- NutCalendar: typeof _default;
186
- }
186
+ interface GlobalComponents {
187
+ NutCalendar: typeof _default;
188
+ }
187
189
  }
@@ -1,7 +1,7 @@
1
1
  import { MonthInfo, Day } from './type';
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
  type: {
@@ -70,15 +70,15 @@ declare const _default: Install< import("vue").DefineComponent<{
70
70
  monthsPanel: import("vue").Ref<HTMLElement | null>;
71
71
  weeksPanel: import("vue").Ref<HTMLElement | null>;
72
72
  viewArea: import("vue").Ref<HTMLElement | null>;
73
- title: import("vue").Ref<string>;
74
73
  type: import("vue").Ref<string>;
75
- confirmText: import("vue").Ref<string>;
74
+ title: import("vue").Ref<string>;
75
+ poppable: import("vue").Ref<boolean>;
76
76
  isAutoBackFill: import("vue").Ref<boolean>;
77
77
  toDateAnimation: import("vue").Ref<boolean>;
78
- poppable: import("vue").Ref<boolean>;
79
78
  showTitle: import("vue").Ref<boolean>;
80
79
  showSubTitle: import("vue").Ref<boolean>;
81
80
  showToday: import("vue").Ref<boolean>;
81
+ confirmText: import("vue").Ref<string>;
82
82
  startText: import("vue").Ref<string>;
83
83
  endText: import("vue").Ref<string>;
84
84
  defaultValue: import("vue").Ref<string | unknown[]>;
@@ -193,15 +193,15 @@ declare const _default: Install< import("vue").DefineComponent<{
193
193
  onChoose?: ((...args: any[]) => any) | undefined;
194
194
  onUpdate?: ((...args: any[]) => any) | undefined;
195
195
  }, {
196
- title: string;
197
196
  type: string;
198
- confirmText: string;
197
+ title: string;
198
+ poppable: boolean;
199
199
  isAutoBackFill: boolean;
200
200
  toDateAnimation: boolean;
201
- poppable: boolean;
202
201
  showTitle: boolean;
203
202
  showSubTitle: boolean;
204
203
  showToday: boolean;
204
+ confirmText: string;
205
205
  startText: string;
206
206
  endText: string;
207
207
  defaultValue: string | unknown[];
@@ -212,7 +212,7 @@ declare const _default: Install< import("vue").DefineComponent<{
212
212
  export default _default;
213
213
 
214
214
  declare module 'vue' {
215
- interface GlobalComponents {
216
- NutCalendarItem: typeof _default;
217
- }
215
+ interface GlobalComponents {
216
+ NutCalendarItem: typeof _default;
217
+ }
218
218
  }
@@ -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
  imgUrl: {
@@ -81,7 +81,7 @@ declare const _default: Install< import("vue").DefineComponent<{
81
81
  export default _default;
82
82
 
83
83
  declare module 'vue' {
84
- interface GlobalComponents {
85
- NutCard: typeof _default;
86
- }
84
+ interface GlobalComponents {
85
+ NutCard: typeof _default;
86
+ }
87
87
  }