sard-uniapp 1.24.5 → 1.24.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/components/accordion-item/index.scss +2 -2
  3. package/components/action-sheet/action-sheet.d.ts +8 -1
  4. package/components/action-sheet/common.d.ts +99 -2
  5. package/components/action-sheet/index.scss +4 -4
  6. package/components/alert/alert.d.ts +6 -0
  7. package/components/alert/common.d.ts +63 -1
  8. package/components/avatar/avatar.d.ts +8 -0
  9. package/components/avatar/common.d.ts +99 -1
  10. package/components/avatar/index.scss +2 -2
  11. package/components/avatar-group/avatar-group.d.ts +6 -1
  12. package/components/avatar-group/common.d.ts +63 -2
  13. package/components/back-top/back-top.d.ts +4 -0
  14. package/components/back-top/common.d.ts +40 -1
  15. package/components/back-top/index.scss +1 -1
  16. package/components/badge/badge.d.ts +7 -0
  17. package/components/badge/common.d.ts +99 -2
  18. package/components/badge/index.scss +1 -1
  19. package/components/button/button.d.ts +22 -0
  20. package/components/button/common.d.ts +960 -8
  21. package/components/button/index.scss +2 -2
  22. package/components/calendar/calendar.d.ts +16 -1
  23. package/components/calendar/common.d.ts +360 -3
  24. package/components/calendar-input/calendar-input.d.ts +31 -2
  25. package/components/calendar-input/common.d.ts +1368 -7
  26. package/components/calendar-month/index.scss +3 -3
  27. package/components/calendar-popout/calendar-popout.d.ts +22 -2
  28. package/components/calendar-popout/common.d.ts +675 -5
  29. package/components/card/index.scss +2 -2
  30. package/components/cascader/index.scss +1 -1
  31. package/components/cascader-input/cascader-input.d.ts +25 -0
  32. package/components/cascader-input/common.d.ts +783 -3
  33. package/components/cascader-popout/cascader-popout.d.ts +14 -0
  34. package/components/cascader-popout/common.d.ts +288 -2
  35. package/components/check-icon/index.scss +1 -1
  36. package/components/checkbox/checkbox.d.ts +11 -0
  37. package/components/checkbox/common.d.ts +323 -3
  38. package/components/checkbox-group/checkbox-group.d.ts +10 -0
  39. package/components/checkbox-input/checkbox-input.d.ts +28 -1
  40. package/components/checkbox-input/checkbox-input.vue +6 -2
  41. package/components/checkbox-input/common.d.ts +960 -4
  42. package/components/checkbox-popout/checkbox-popout.d.ts +19 -1
  43. package/components/checkbox-popout/common.d.ts +460 -2
  44. package/components/config/index.d.ts +150 -482
  45. package/components/config/index.js +16 -34
  46. package/components/cool-icon/common.d.ts +63 -1
  47. package/components/cool-icon/cool-icon.d.ts +6 -0
  48. package/components/count-down/common.d.ts +48 -3
  49. package/components/count-down/count-down.d.ts +3 -0
  50. package/components/count-to/common.d.ts +35 -4
  51. package/components/count-to/count-to.d.ts +1 -0
  52. package/components/crop-image/common.d.ts +288 -4
  53. package/components/crop-image/crop-image.d.ts +12 -0
  54. package/components/crop-image/index.scss +1 -1
  55. package/components/crop-image-agent/common.d.ts +288 -5
  56. package/components/crop-image-agent/crop-image-agent.d.ts +11 -0
  57. package/components/datetime-picker/common.d.ts +120 -2
  58. package/components/datetime-picker/datetime-picker.d.ts +9 -1
  59. package/components/datetime-picker-input/common.d.ts +783 -4
  60. package/components/datetime-picker-input/datetime-picker-input.d.ts +23 -0
  61. package/components/datetime-picker-popout/common.d.ts +288 -3
  62. package/components/datetime-picker-popout/datetime-picker-popout.d.ts +13 -0
  63. package/components/datetime-range-picker/common.d.ts +143 -1
  64. package/components/datetime-range-picker/datetime-range-picker.d.ts +10 -0
  65. package/components/datetime-range-picker-input/common.d.ts +840 -3
  66. package/components/datetime-range-picker-input/datetime-range-picker-input.d.ts +25 -0
  67. package/components/datetime-range-picker-popout/common.d.ts +323 -2
  68. package/components/datetime-range-picker-popout/datetime-range-picker-popout.d.ts +15 -0
  69. package/components/dialog/common.d.ts +360 -6
  70. package/components/dialog/dialog.d.ts +16 -3
  71. package/components/dialog/index.scss +1 -1
  72. package/components/dialog-agent/common.d.ts +1023 -7
  73. package/components/dialog-agent/dialog-agent.d.ts +28 -3
  74. package/components/divider/common.d.ts +48 -3
  75. package/components/divider/divider.d.ts +4 -1
  76. package/components/dropdown/common.d.ts +99 -5
  77. package/components/dropdown/dropdown.d.ts +7 -3
  78. package/components/dropdown/index.scss +1 -1
  79. package/components/empty/common.d.ts +48 -1
  80. package/components/empty/empty.d.ts +5 -0
  81. package/components/fab/common.d.ts +619 -7
  82. package/components/fab/fab.d.ts +20 -2
  83. package/components/fab/index.scss +1 -0
  84. package/components/fab-item/index.scss +1 -1
  85. package/components/floating-bubble/common.d.ts +153 -4
  86. package/components/floating-bubble/floating-bubble.d.ts +10 -1
  87. package/components/floating-bubble/index.scss +1 -1
  88. package/components/floating-panel/common.d.ts +63 -3
  89. package/components/floating-panel/floating-panel.d.ts +4 -0
  90. package/components/form/README.md +11 -12
  91. package/components/form/common.d.ts +304 -1
  92. package/components/form/form.d.ts +12 -1
  93. package/components/form/index.scss +1 -1
  94. package/components/form-item/form-item.d.ts +15 -0
  95. package/components/form-item/useFormItem.d.ts +1 -1
  96. package/components/form-item-plain/form-item-plain.d.ts +15 -0
  97. package/components/form-item-plain/form-item-plain.vue +7 -3
  98. package/components/form-plain/common.d.ts +0 -1
  99. package/components/form-plain/form-plain.d.ts +12 -1
  100. package/components/grid/common.d.ts +99 -2
  101. package/components/grid/grid.d.ts +8 -1
  102. package/components/grid-item/index.scss +2 -2
  103. package/components/icon/common.d.ts +63 -3
  104. package/components/icon/icon.d.ts +5 -1
  105. package/components/indexes/common.d.ts +1 -0
  106. package/components/indexes/indexes.vue +2 -1
  107. package/components/indexes-anchor/index.scss +1 -1
  108. package/components/indexes-nav/index.scss +2 -2
  109. package/components/input/common.d.ts +2400 -14
  110. package/components/input/index.scss +2 -2
  111. package/components/input/input.d.ts +36 -2
  112. package/components/keyboard/common.d.ts +24 -2
  113. package/components/keyboard/index.scss +5 -5
  114. package/components/keyboard/keyboard.d.ts +2 -0
  115. package/components/list/common.d.ts +168 -1
  116. package/components/list-item/index.scss +2 -2
  117. package/components/list-item/list-item.d.ts +11 -0
  118. package/components/loading/common.d.ts +117 -1
  119. package/components/loading/loading.d.ts +8 -0
  120. package/components/locale/lang/ar-SA.d.ts +2 -0
  121. package/components/locale/lang/ar-SA.js +2 -0
  122. package/components/locale/lang/en-US.d.ts +2 -0
  123. package/components/locale/lang/en-US.js +2 -0
  124. package/components/locale/lang/zh-CN.d.ts +2 -0
  125. package/components/locale/lang/zh-CN.js +2 -0
  126. package/components/marquee/common.d.ts +35 -3
  127. package/components/marquee/marquee.d.ts +2 -0
  128. package/components/menu-item/index.scss +2 -2
  129. package/components/notice-bar/common.d.ts +195 -4
  130. package/components/notice-bar/index.scss +3 -2
  131. package/components/notice-bar/notice-bar.d.ts +10 -1
  132. package/components/notify/common.d.ts +143 -4
  133. package/components/notify/notify.d.ts +8 -1
  134. package/components/notify-agent/common.d.ts +483 -5
  135. package/components/notify-agent/notify-agent.d.ts +18 -1
  136. package/components/overlay/common.d.ts +63 -1
  137. package/components/overlay/index.scss +1 -1
  138. package/components/overlay/overlay.d.ts +6 -0
  139. package/components/pagination/common.d.ts +143 -6
  140. package/components/pagination/index.scss +2 -2
  141. package/components/pagination/pagination.d.ts +6 -1
  142. package/components/password-input/common.d.ts +168 -3
  143. package/components/password-input/index.scss +6 -7
  144. package/components/password-input/password-input.d.ts +9 -0
  145. package/components/picker/common.d.ts +46 -1
  146. package/components/picker/common.js +2 -1
  147. package/components/picker/picker.d.ts +5 -0
  148. package/components/picker/picker.vue +11 -14
  149. package/components/picker-input/README.md +4 -0
  150. package/components/picker-input/common.d.ts +599 -4
  151. package/components/picker-input/picker-input.d.ts +21 -1
  152. package/components/picker-input/picker-input.vue +2 -2
  153. package/components/picker-popout/README.md +4 -0
  154. package/components/picker-popout/common.d.ts +181 -3
  155. package/components/picker-popout/picker-popout.d.ts +10 -0
  156. package/components/picker-popout/picker-popout.vue +7 -7
  157. package/components/popout/common.d.ts +288 -6
  158. package/components/popout/index.scss +1 -1
  159. package/components/popout/popout.d.ts +11 -1
  160. package/components/popout-input/common.d.ts +181 -2
  161. package/components/popout-input/popout-input.d.ts +11 -0
  162. package/components/popover/common.d.ts +168 -7
  163. package/components/popover/index.scss +3 -3
  164. package/components/popover/popover.d.ts +8 -3
  165. package/components/popup/common.d.ts +168 -4
  166. package/components/popup/popup.d.ts +10 -2
  167. package/components/progress-bar/common.d.ts +143 -2
  168. package/components/progress-bar/index.scss +5 -5
  169. package/components/progress-bar/progress-bar.d.ts +9 -0
  170. package/components/progress-circle/common.d.ts +80 -2
  171. package/components/progress-circle/index.scss +1 -1
  172. package/components/progress-circle/progress-circle.d.ts +6 -0
  173. package/components/pull-down-refresh/common.d.ts +100 -8
  174. package/components/pull-down-refresh/pull-down-refresh.d.ts +3 -1
  175. package/components/qrcode/common.d.ts +168 -8
  176. package/components/qrcode/qrcode.d.ts +4 -0
  177. package/components/radio/common.d.ts +155 -2
  178. package/components/radio-group/radio-group.d.ts +10 -0
  179. package/components/radio-input/common.d.ts +869 -5
  180. package/components/radio-input/radio-input.d.ts +26 -1
  181. package/components/radio-popout/common.d.ts +397 -3
  182. package/components/radio-popout/radio-popout.d.ts +17 -1
  183. package/components/rate/common.d.ts +360 -4
  184. package/components/rate/rate.d.ts +15 -1
  185. package/components/read-more/common.d.ts +80 -1
  186. package/components/read-more/read-more.d.ts +7 -0
  187. package/components/resize-sensor/common.d.ts +24 -1
  188. package/components/resize-sensor/resize-sensor.d.ts +3 -0
  189. package/components/result/common.d.ts +80 -1
  190. package/components/result/result.d.ts +7 -0
  191. package/components/scroll-list/index.scss +2 -2
  192. package/components/scroll-spy/README.md +9 -8
  193. package/components/scroll-spy/common.d.ts +1 -0
  194. package/components/scroll-spy/scroll-spy.vue +4 -2
  195. package/components/search/common.d.ts +224 -2
  196. package/components/search/index.scss +3 -3
  197. package/components/search/search.d.ts +12 -0
  198. package/components/segmented/common.d.ts +131 -4
  199. package/components/segmented/index.scss +2 -2
  200. package/components/segmented/segmented.d.ts +8 -1
  201. package/components/segmented-item/index.scss +1 -1
  202. package/components/share-sheet/common.d.ts +120 -2
  203. package/components/share-sheet/index.scss +4 -4
  204. package/components/share-sheet/share-sheet.d.ts +9 -1
  205. package/components/sidebar-item/index.scss +1 -1
  206. package/components/signature/common.d.ts +255 -7
  207. package/components/signature/index.scss +2 -2
  208. package/components/signature/signature.d.ts +9 -1
  209. package/components/skeleton/common.d.ts +120 -2
  210. package/components/skeleton/index.scss +1 -1
  211. package/components/skeleton/skeleton.d.ts +8 -0
  212. package/components/skeleton-block/index.scss +1 -1
  213. package/components/slider/common.d.ts +528 -4
  214. package/components/slider/index.scss +7 -7
  215. package/components/slider/slider.d.ts +18 -0
  216. package/components/space/common.d.ts +63 -2
  217. package/components/space/space.d.ts +5 -0
  218. package/components/status-bar/common.d.ts +24 -1
  219. package/components/status-bar/status-bar.d.ts +3 -0
  220. package/components/step/index.scss +3 -3
  221. package/components/stepper/common.d.ts +360 -9
  222. package/components/stepper/index.scss +4 -4
  223. package/components/stepper/stepper.d.ts +10 -1
  224. package/components/steps/common.d.ts +224 -8
  225. package/components/steps/steps.d.ts +6 -0
  226. package/components/swiper-dot/common.d.ts +63 -4
  227. package/components/swiper-dot/index.scss +4 -4
  228. package/components/swiper-dot/swiper-dot.d.ts +3 -0
  229. package/components/switch/common.d.ts +153 -3
  230. package/components/switch/index.scss +3 -3
  231. package/components/switch/switch.d.ts +10 -0
  232. package/components/tab/index.scss +3 -2
  233. package/components/tabbar/common.d.ts +80 -1
  234. package/components/tabbar/index.scss +1 -1
  235. package/components/tabbar/tabbar.d.ts +7 -0
  236. package/components/table/common.d.ts +35 -2
  237. package/components/table/index.scss +1 -1
  238. package/components/table/table.d.ts +4 -1
  239. package/components/table-cell/index.scss +1 -1
  240. package/components/table-row/index.scss +1 -1
  241. package/components/tabs/README.md +4 -3
  242. package/components/tabs/common.d.ts +49 -1
  243. package/components/tabs/index.scss +3 -2
  244. package/components/tabs/tabs.d.ts +5 -0
  245. package/components/tabs/tabs.vue +3 -1
  246. package/components/tag/common.d.ts +120 -2
  247. package/components/tag/tag.d.ts +8 -0
  248. package/components/timeline-item/index.scss +2 -2
  249. package/components/toast/common.d.ts +120 -6
  250. package/components/toast/index.scss +1 -1
  251. package/components/toast/toast.d.ts +6 -2
  252. package/components/toast-agent/common.d.ts +440 -7
  253. package/components/toast-agent/toast-agent.d.ts +16 -2
  254. package/components/tree/README.md +34 -20
  255. package/components/tree/common.d.ts +391 -3
  256. package/components/tree/common.js +1 -0
  257. package/components/tree/index.scss +14 -1
  258. package/components/tree/tree.d.ts +16 -1
  259. package/components/tree/tree.vue +71 -22
  260. package/components/tree/variables.scss +4 -0
  261. package/components/tree-node/index.scss +9 -3
  262. package/components/tree-node/tree-node.vue +46 -12
  263. package/components/upload/common.d.ts +195 -1
  264. package/components/upload/index.scss +2 -2
  265. package/components/upload/upload.d.ts +13 -1
  266. package/components/upload-preview/index.scss +5 -5
  267. package/components/upload-preview/upload-preview.d.ts +12 -0
  268. package/components/waterfall/common.d.ts +35 -3
  269. package/components/waterfall/waterfall.d.ts +2 -0
  270. package/components/watermark/common.d.ts +143 -5
  271. package/components/watermark/watermark.d.ts +7 -1
  272. package/package.json +1 -1
  273. package/use/useScrollSpy.js +5 -1
  274. package/utils/dom.js +20 -15
  275. package/dev/mp-alipay/mini.project.json +0 -14
@@ -1,533 +1,201 @@
1
- import { type AvatarProps } from '../avatar';
1
+ import { type ActionSheetProps } from '../action-sheet';
2
2
  import { type AlertProps } from '../alert';
3
+ import { type AvatarGroupProps } from '../avatar-group';
4
+ import { type AvatarProps } from '../avatar';
5
+ import { type BackTopProps } from '../back-top';
6
+ import { type BadgeProps } from '../badge';
3
7
  import { type ButtonProps } from '../button';
4
8
  import { type CalendarInputProps } from '../calendar-input';
9
+ import { type CalendarPopoutProps } from '../calendar-popout';
5
10
  import { type CalendarProps } from '../calendar';
6
11
  import { type CascaderInputProps } from '../cascader-input';
7
- import { type CheckboxGroupProps } from '../checkbox';
8
- import { type CheckboxPopoutProps } from '../checkbox-popout';
12
+ import { type CascaderPopoutProps } from '../cascader-popout';
9
13
  import { type CheckboxInputProps } from '../checkbox-input';
14
+ import { type CheckboxPopoutProps } from '../checkbox-popout';
15
+ import { type CheckboxProps, type CheckboxGroupProps } from '../checkbox';
10
16
  import { type CoolIconProps } from '../cool-icon';
17
+ import { type CountDownProps } from '../count-down';
18
+ import { type CountToProps } from '../count-to';
19
+ import { type CropImageAgentProps } from '../crop-image-agent';
20
+ import { type CropImageProps } from '../crop-image';
11
21
  import { type DatetimePickerInputProps } from '../datetime-picker-input';
22
+ import { type DatetimePickerPopoutProps } from '../datetime-picker-popout';
23
+ import { type DatetimePickerProps } from '../datetime-picker';
12
24
  import { type DatetimeRangePickerInputProps } from '../datetime-range-picker-input';
25
+ import { type DatetimeRangePickerPopoutProps } from '../datetime-range-picker-popout';
26
+ import { type DatetimeRangePickerProps } from '../datetime-range-picker';
27
+ import { type DialogAgentProps } from '../dialog-agent';
13
28
  import { type DialogProps } from '../dialog';
14
29
  import { type DividerProps } from '../divider';
15
30
  import { type DropdownProps } from '../dropdown';
31
+ import { type EmptyProps } from '../empty';
16
32
  import { type FabProps } from '../fab';
17
33
  import { type FloatingBubbleProps } from '../floating-bubble';
18
- import { type FormProps } from '../form';
34
+ import { type FloatingPanelProps } from '../floating-panel';
35
+ import { type FormItemProps, type FormProps } from '../form';
19
36
  import { type GridProps } from '../grid';
20
37
  import { type IconProps } from '../icon';
38
+ import { type IndexesProps } from '../indexes';
21
39
  import { type InputProps } from '../input';
22
40
  import { type KeyboardProps } from '../keyboard';
23
41
  import { type ListItemProps } from '../list';
24
42
  import { type LoadingProps } from '../loading';
25
43
  import { type MarqueeProps } from '../marquee';
26
44
  import { type NoticeBarProps } from '../notice-bar';
45
+ import { type NotifyAgentProps } from '../notify-agent';
27
46
  import { type NotifyProps } from '../notify';
47
+ import { type OverlayProps } from '../overlay';
28
48
  import { type PaginationProps } from '../pagination';
29
49
  import { type PasswordInputProps } from '../password-input';
30
50
  import { type PickerInputProps } from '../picker-input';
51
+ import { type PickerPopoutProps } from '../picker-popout';
52
+ import { type PickerProps } from '../picker';
53
+ import { type PopoutInputProps } from '../popout-input';
31
54
  import { type PopoutProps } from '../popout';
32
55
  import { type PopoverProps } from '../popover';
33
56
  import { type PopupProps } from '../popup';
57
+ import { type ProgressBarProps } from '../progress-bar';
58
+ import { type ProgressCircleProps } from '../progress-circle';
59
+ import { type PullDownRefreshProps } from '../pull-down-refresh';
34
60
  import { type QrcodeProps } from '../qrcode';
35
61
  import { type RadioGroupProps } from '../radio';
36
62
  import { type RadioInputProps } from '../radio-input';
37
63
  import { type RadioPopoutProps } from '../radio-popout';
64
+ import { type RateProps } from '../rate';
65
+ import { type ReadMoreProps } from '../read-more';
66
+ import { type ResizeSensorProps } from '../resize-sensor';
38
67
  import { type ResultProps } from '../result';
39
68
  import { type SearchProps } from '../search';
40
69
  import { type SegmentedProps } from '../segmented';
70
+ import { type ShareSheetProps } from '../share-sheet';
71
+ import { type SignatureProps } from '../signature';
72
+ import { type SkeletonProps } from '../skeleton';
73
+ import { type SliderProps } from '../slider';
41
74
  import { type SpaceProps } from '../space';
75
+ import { type StatusBarProps } from '../status-bar';
42
76
  import { type StepperProps } from '../stepper';
43
77
  import { type StepsProps } from '../steps';
44
78
  import { type SwiperDotProps } from '../swiper-dot';
79
+ import { type SwitchProps } from '../switch';
80
+ import { type TabbarProps } from '../tabbar';
81
+ import { type TableProps } from '../table';
45
82
  import { type TabsProps } from '../tabs';
46
83
  import { type TagProps } from '../tag';
84
+ import { type ToastAgentProps } from '../toast-agent';
47
85
  import { type ToastProps } from '../toast';
48
86
  import { type TreeProps } from '../tree';
49
87
  import { type UploadPreviewProps, type UploadProps } from '../upload';
88
+ import { type WaterfallProps } from '../waterfall';
50
89
  import { type WatermarkProps } from '../watermark';
51
- type DeepPartial<T> = {
52
- [P in keyof T]?: T[P] extends Record<any, any> ? DeepPartial<T[P]> : T[P];
90
+ type NativeType = null | number | string | boolean | symbol | ((...args: any[]) => any);
91
+ type InferDefault<P, T> = ((props: P) => T & {}) | (T extends NativeType ? T : never);
92
+ type InferDefaults<T> = {
93
+ [K in keyof T]?: InferDefault<T, T[K]>;
53
94
  };
54
- export declare const defaultConfig: {
55
- initialZIndex: number;
56
- /**
57
- * 设置点击清除按钮后的值
58
- *
59
- * - 类型:() => any
60
- * - 默认值:() = undefined
61
- *
62
- * 支持以下组件:
63
- *
64
- * - CalendarInput
65
- * - DatetimePickerInput
66
- * - DatetimeRangePickerInput
67
- * - CascaderInput
68
- * - CheckboxInput
69
- * - PickerInput
70
- * - RadioInput
71
- */
72
- valueOnClear: (() => any) | undefined;
73
- actionSheet: {
74
- overlayClosable: boolean;
75
- duration: number;
76
- };
77
- alert: {
78
- type: AlertProps["type"];
79
- };
80
- avatar: {
81
- shape: AvatarProps["shape"];
82
- };
83
- avatarGroup: {
84
- coverage: number;
85
- showRemain: boolean;
86
- };
87
- backTop: {
88
- visibleHeight: number;
89
- };
90
- badge: {
91
- value: number;
92
- max: number;
93
- };
94
- button: {
95
- type: ButtonProps["type"];
96
- theme: ButtonProps["theme"];
97
- size: ButtonProps["size"];
98
- hoverStopPropagation: boolean;
99
- lang: string;
100
- showMessageCard: boolean;
101
- block: boolean;
102
- loadingType: LoadingProps["type"];
103
- };
104
- calendar: {
105
- type: CalendarProps["type"];
106
- maxDays: number;
107
- weekStartsOn: number;
108
- };
109
- calendarInput: {
110
- outletFormat: string;
111
- valueOnClear: CalendarInputProps["valueOnClear"];
112
- };
113
- calendarPopout: {
114
- showConfirm: boolean;
115
- validateEvent: boolean;
116
- };
117
- cascaderPopout: {
118
- showConfirm: boolean;
119
- validateEvent: boolean;
120
- };
121
- cascaderInput: {
122
- valueOnClear: CascaderInputProps["valueOnClear"];
123
- };
124
- checkbox: {
125
- validateEvent: boolean;
126
- };
127
- checkboxGroup: {
128
- direction: CheckboxGroupProps["direction"];
129
- validateEvent: boolean;
130
- };
131
- checkboxInput: {
132
- valueOnClear: CheckboxInputProps["valueOnClear"];
133
- };
134
- checkboxPopout: {
135
- validateEvent: boolean;
136
- iconPosition: CheckboxPopoutProps["iconPosition"];
137
- };
138
- coolIcon: {
139
- shape: CoolIconProps["shape"];
140
- };
141
- countDown: {
142
- time: number;
143
- autoStart: boolean;
144
- format: string;
145
- };
146
- countTo: {
147
- value: number;
148
- precision: number;
149
- separatorDigit: number;
150
- duration: number;
151
- };
152
- cropImage: {
153
- duration: number;
154
- cropScale: string;
155
- type: "png";
156
- quality: number;
157
- };
158
- cropImageAgent: {
159
- id: string;
160
- };
161
- datetimePicker: {
162
- type: string;
163
- calendar: "solar";
164
- };
165
- datetimePickerInput: {
166
- valueOnClear: DatetimePickerInputProps["valueOnClear"];
167
- };
168
- datetimePickerPopout: {
169
- validateEvent: boolean;
170
- };
171
- datetimeRangePicker: {
172
- type: string;
173
- };
174
- datetimeRangePickerInput: {
175
- valueOnClear: DatetimeRangePickerInputProps["valueOnClear"];
176
- };
177
- datetimeRangePickerPopout: {
178
- validateEvent: boolean;
179
- };
180
- dialog: {
181
- headed: boolean;
182
- buttonType: DialogProps["buttonType"];
183
- showCancel: boolean;
184
- showConfirm: boolean;
185
- overlayClosable: boolean;
186
- duration: number;
187
- };
188
- dialogAgent: {
189
- id: string;
190
- };
191
- divider: {
192
- type: DividerProps["type"];
193
- hairline: boolean;
194
- position: DividerProps["position"];
195
- };
196
- dropdown: {
197
- direction: DropdownProps["direction"];
198
- disabled: boolean;
199
- awayClosable: boolean;
200
- overlayClosable: boolean;
201
- duration: number;
202
- };
203
- empty: {
204
- icon: string;
205
- };
206
- fab: {
207
- overlayClosable: boolean;
208
- hideName: boolean;
209
- duration: number;
210
- draggable: boolean;
211
- axis: FabProps["axis"];
212
- gapX: number;
213
- gapY: number;
214
- };
215
- floatingBubble: {
216
- draggable: boolean;
217
- axis: FloatingBubbleProps["axis"];
218
- gapX: number;
219
- gapY: number;
220
- };
221
- floatingPanel: {
222
- duration: number;
223
- contentDraggable: boolean;
224
- safeAreaInsetBottom: boolean;
225
- };
226
- form: {
227
- validateTrigger: FormProps["validateTrigger"];
228
- validateOnRuleChange: boolean;
229
- direction: FormProps["direction"];
230
- labelAlign: FormProps["labelAlign"];
231
- labelValign: FormProps["labelValign"];
232
- starPosition: FormProps["starPosition"];
233
- contentPosition: FormProps["contentPosition"];
234
- showError: boolean;
235
- scrollDuration: number;
236
- };
237
- formItem: {
238
- showError: boolean;
239
- };
240
- grid: {
241
- columns: number;
242
- direction: GridProps["direction"];
243
- };
244
- icon: {
245
- name: string;
246
- family: string;
247
- separate: IconProps["separate"];
248
- };
249
- indexes: {
250
- hintDuration: number;
251
- };
252
- input: {
253
- enableNative: boolean;
254
- maxlength: number;
255
- adjustPosition: boolean;
256
- ignoreCompositionEvent: boolean;
257
- showConfirmBar: boolean;
258
- disableDefaultPadding: boolean;
259
- modelValue: string;
260
- validateEvent: boolean;
261
- cursorSpacing: number;
262
- confirmType: InputProps["confirmType"];
263
- cursor: number;
264
- selectionStart: number;
265
- selectionEnd: number;
266
- inputmode: InputProps["inputmode"];
267
- };
268
- keyboard: {
269
- type: KeyboardProps["type"];
270
- mode: KeyboardProps["mode"];
271
- };
272
- listItem: {
273
- arrowDirection: ListItemProps["arrowDirection"];
274
- };
275
- loading: {
276
- type: LoadingProps["type"];
277
- };
278
- marquee: {
279
- direction: MarqueeProps["direction"];
280
- delay: number;
281
- speed: number;
282
- };
283
- noticeBar: {
284
- delay: number;
285
- speed: number;
286
- scrollable: NoticeBarProps["scrollable"];
287
- visible: boolean;
288
- };
289
- notify: {
290
- type: NotifyProps["type"];
291
- position: NotifyProps["position"];
292
- duration: number;
293
- timeout: number;
294
- };
295
- notifyAgent: {
296
- id: string;
297
- };
298
- overlay: {
299
- duration: number;
300
- };
301
- pagination: {
302
- total: number;
303
- pageSize: number;
304
- current: number;
305
- pageButtonCount: number;
306
- type: PaginationProps["type"];
307
- multiCount: number;
308
- };
309
- passwordInput: {
310
- length: number;
311
- type: PasswordInputProps["type"];
312
- validateEvent: boolean;
313
- };
314
- picker: {
315
- immediateChange: boolean;
316
- };
317
- pickerInput: {
318
- valueOnClear: PickerInputProps["valueOnClear"];
319
- };
320
- pickerPopout: {
321
- validateEvent: boolean;
322
- };
323
- popout: {
324
- type: PopoutProps["type"];
325
- showConfirm: boolean;
326
- showClose: boolean;
327
- showFooter: boolean;
328
- overlayClosable: boolean;
329
- duration: number;
330
- };
331
- popoutInput: {
332
- arrow: string;
333
- arrowFamily: string;
334
- };
335
- popover: {
336
- position: PopoverProps["position"];
337
- direction: PopoverProps["direction"];
338
- theme: PopoverProps["theme"];
339
- refGap: number;
340
- viewportGap: number;
341
- transparent: boolean;
342
- duration: number;
343
- };
344
- popup: {
345
- duration: number;
346
- effect: PopupProps["effect"];
347
- overlay: boolean;
348
- overlayClosable: boolean;
349
- };
350
- progressBar: {
351
- percent: number;
352
- showText: boolean;
353
- };
354
- progressCircle: {
355
- percent: number;
356
- thickness: number;
357
- };
358
- pullDownRefresh: {
359
- threshold: number;
360
- headerHeight: number;
361
- transitionDuration: number;
362
- doneDuration: number;
363
- };
364
- qrcode: {
365
- ecl: QrcodeProps["ecl"];
366
- size: string;
367
- canvasSize: number;
368
- type: QrcodeProps["type"];
369
- text: string;
370
- color: string;
371
- bgColor: string;
372
- quietZoneModules: number;
373
- };
374
- radioGroup: {
375
- direction: RadioGroupProps["direction"];
376
- validateEvent: boolean;
377
- };
378
- radioInput: {
379
- valueOnClear: RadioInputProps["valueOnClear"];
380
- };
381
- radioPopout: {
382
- validateEvent: boolean;
383
- type: RadioPopoutProps["type"];
384
- iconPosition: RadioPopoutProps["iconPosition"];
385
- };
386
- rate: {
387
- count: number;
388
- icon: string;
389
- voidIcon: string;
390
- validateEvent: boolean;
391
- };
392
- readMore: {
393
- maxHeight: number;
394
- };
395
- resizeSensor: {
396
- threshold: number;
397
- };
398
- result: {
399
- status: ResultProps["status"];
400
- };
401
- search: {
402
- shape: SearchProps["shape"];
403
- focus: boolean;
404
- };
405
- segmented: {
406
- size: SegmentedProps["size"];
407
- shape: SegmentedProps["shape"];
408
- direction: SegmentedProps["direction"];
409
- validateEvent: boolean;
410
- };
411
- shareSheet: {
412
- overlayClosable: boolean;
413
- duration: number;
414
- };
415
- signature: {
416
- lineWidth: number;
417
- fullScreen: boolean;
418
- color: string;
419
- duration: number;
420
- type: "png";
421
- target: "dataURL";
422
- quality: number;
423
- };
424
- skeleton: {
425
- rows: number;
426
- loading: boolean;
427
- };
428
- slider: {
429
- min: number;
430
- max: number;
431
- step: number;
432
- validateEvent: boolean;
433
- };
434
- space: {
435
- direction: SpaceProps["direction"];
436
- size: SpaceProps["size"];
437
- };
438
- statusBar: {
439
- height: string;
440
- };
441
- stepper: {
442
- min: number;
443
- max: number;
444
- step: number;
445
- inputType: StepperProps["inputType"];
446
- press: boolean;
447
- pressTime: number;
448
- interval: number;
449
- validateEvent: boolean;
450
- size: StepperProps["size"];
451
- };
452
- steps: {
453
- current: number;
454
- center: boolean;
455
- itemList: () => never[];
456
- direction: StepsProps["direction"];
457
- finishIcon: string;
458
- processIcon: string;
459
- waitIcon: string;
460
- errorIcon: string;
461
- };
462
- swiperDot: {
463
- type: SwiperDotProps["type"];
464
- current: number;
465
- total: number;
466
- field: string;
467
- };
468
- switch: {
469
- checkedValue: boolean;
470
- uncheckedValue: boolean;
471
- validateEvent: boolean;
472
- };
473
- tabbar: {
474
- bordered: boolean;
475
- };
476
- table: {
477
- bordered: boolean;
478
- underline: boolean;
479
- };
480
- tabs: {
481
- type: TabsProps["type"];
482
- };
483
- tag: {
484
- theme: TagProps["theme"];
485
- size: TagProps["size"];
486
- };
487
- toast: {
488
- type: ToastProps["type"];
489
- position: ToastProps["position"];
490
- overlay: boolean;
491
- transparent: boolean;
492
- timeout: number;
493
- duration: number;
494
- };
495
- toastAgent: {
496
- id: string;
497
- };
498
- tree: {
499
- defaultExpandAll: boolean;
500
- filterMode: TreeProps["filterMode"];
501
- accordion: boolean;
502
- };
503
- upload: {
504
- accept: UploadProps["accept"];
505
- sourceType: () => UploadProps["sourceType"];
506
- sizeType: () => UploadProps["sizeType"];
507
- maxDuration: number;
508
- maxCount: number;
509
- maxSize: number;
510
- removable: boolean;
511
- validateEvent: boolean;
512
- };
513
- uploadPreview: {
514
- status: UploadPreviewProps["status"];
515
- };
516
- waterfall: {
517
- columns: number;
518
- columnGap: number;
519
- rowGap: number;
520
- };
521
- watermark: {
522
- width: number;
523
- height: number;
524
- rotate: number;
525
- zIndex: number;
526
- gap: () => NonNullable<WatermarkProps["gap"]>;
527
- };
95
+ type LooseRequired<T> = {
96
+ [P in keyof (T & Required<T>)]: T[P];
97
+ };
98
+ export interface ConfigOptions {
99
+ initialZIndex?: number;
100
+ valueOnClear?: () => any;
101
+ actionSheet?: InferDefaults<LooseRequired<ActionSheetProps>>;
102
+ alert?: InferDefaults<LooseRequired<AlertProps>>;
103
+ avatar?: InferDefaults<LooseRequired<AvatarProps>>;
104
+ avatarGroup?: InferDefaults<LooseRequired<AvatarGroupProps>>;
105
+ backTop?: InferDefaults<LooseRequired<BackTopProps>>;
106
+ badge?: InferDefaults<LooseRequired<BadgeProps>>;
107
+ button?: InferDefaults<LooseRequired<ButtonProps>>;
108
+ calendar?: InferDefaults<LooseRequired<CalendarProps>>;
109
+ calendarInput?: InferDefaults<LooseRequired<CalendarInputProps>>;
110
+ calendarPopout?: InferDefaults<LooseRequired<CalendarPopoutProps>>;
111
+ cascaderPopout?: InferDefaults<LooseRequired<CascaderPopoutProps>>;
112
+ cascaderInput?: InferDefaults<LooseRequired<CascaderInputProps>>;
113
+ checkbox?: InferDefaults<LooseRequired<CheckboxProps>>;
114
+ checkboxGroup?: InferDefaults<LooseRequired<CheckboxGroupProps>>;
115
+ checkboxInput?: InferDefaults<LooseRequired<CheckboxInputProps>>;
116
+ checkboxPopout?: InferDefaults<LooseRequired<CheckboxPopoutProps>>;
117
+ coolIcon?: InferDefaults<LooseRequired<CoolIconProps>>;
118
+ countDown?: InferDefaults<LooseRequired<CountDownProps>>;
119
+ countTo?: InferDefaults<LooseRequired<CountToProps>>;
120
+ cropImage?: InferDefaults<LooseRequired<CropImageProps>>;
121
+ cropImageAgent?: InferDefaults<LooseRequired<CropImageAgentProps>>;
122
+ datetimePicker?: InferDefaults<LooseRequired<DatetimePickerProps>>;
123
+ datetimePickerInput?: InferDefaults<LooseRequired<DatetimePickerInputProps>>;
124
+ datetimePickerPopout?: InferDefaults<LooseRequired<DatetimePickerPopoutProps>>;
125
+ datetimeRangePicker?: InferDefaults<LooseRequired<DatetimeRangePickerProps>>;
126
+ datetimeRangePickerInput?: InferDefaults<LooseRequired<DatetimeRangePickerInputProps>>;
127
+ datetimeRangePickerPopout?: InferDefaults<LooseRequired<DatetimeRangePickerPopoutProps>>;
128
+ dialog?: InferDefaults<LooseRequired<DialogProps>>;
129
+ dialogAgent?: InferDefaults<LooseRequired<DialogAgentProps>>;
130
+ divider?: InferDefaults<LooseRequired<DividerProps>>;
131
+ dropdown?: InferDefaults<LooseRequired<DropdownProps>>;
132
+ empty?: InferDefaults<LooseRequired<EmptyProps>>;
133
+ fab?: InferDefaults<LooseRequired<FabProps>>;
134
+ floatingBubble?: InferDefaults<LooseRequired<FloatingBubbleProps>>;
135
+ floatingPanel?: InferDefaults<LooseRequired<FloatingPanelProps>>;
136
+ form?: InferDefaults<LooseRequired<FormProps>>;
137
+ formItem?: InferDefaults<LooseRequired<FormItemProps>>;
138
+ grid?: InferDefaults<LooseRequired<GridProps>>;
139
+ icon?: InferDefaults<LooseRequired<IconProps>>;
140
+ indexes?: InferDefaults<LooseRequired<IndexesProps>>;
141
+ input?: InferDefaults<LooseRequired<InputProps>>;
142
+ keyboard?: InferDefaults<LooseRequired<KeyboardProps>>;
143
+ listItem?: InferDefaults<LooseRequired<ListItemProps>>;
144
+ loading?: InferDefaults<LooseRequired<LoadingProps>>;
145
+ marquee?: InferDefaults<LooseRequired<MarqueeProps>>;
146
+ noticeBar?: InferDefaults<LooseRequired<NoticeBarProps>>;
147
+ notify?: InferDefaults<LooseRequired<NotifyProps>>;
148
+ notifyAgent?: InferDefaults<LooseRequired<NotifyAgentProps>>;
149
+ overlay?: InferDefaults<LooseRequired<OverlayProps>>;
150
+ pagination?: InferDefaults<LooseRequired<PaginationProps>>;
151
+ passwordInput?: InferDefaults<LooseRequired<PasswordInputProps>>;
152
+ picker?: InferDefaults<LooseRequired<PickerProps>>;
153
+ pickerInput?: InferDefaults<LooseRequired<PickerInputProps>>;
154
+ pickerPopout?: InferDefaults<LooseRequired<PickerPopoutProps>>;
155
+ popout?: InferDefaults<LooseRequired<PopoutProps>>;
156
+ popoutInput?: InferDefaults<LooseRequired<PopoutInputProps>>;
157
+ popover?: InferDefaults<LooseRequired<PopoverProps>>;
158
+ popup?: InferDefaults<LooseRequired<PopupProps>>;
159
+ progressBar?: InferDefaults<LooseRequired<ProgressBarProps>>;
160
+ progressCircle?: InferDefaults<LooseRequired<ProgressCircleProps>>;
161
+ pullDownRefresh?: InferDefaults<LooseRequired<PullDownRefreshProps>>;
162
+ qrcode?: InferDefaults<LooseRequired<QrcodeProps>>;
163
+ radioGroup?: InferDefaults<LooseRequired<RadioGroupProps>>;
164
+ radioInput?: InferDefaults<LooseRequired<RadioInputProps>>;
165
+ radioPopout?: InferDefaults<LooseRequired<RadioPopoutProps>>;
166
+ rate?: InferDefaults<LooseRequired<RateProps>>;
167
+ readMore?: InferDefaults<LooseRequired<ReadMoreProps>>;
168
+ resizeSensor?: InferDefaults<LooseRequired<ResizeSensorProps>>;
169
+ result?: InferDefaults<LooseRequired<ResultProps>>;
170
+ search?: InferDefaults<LooseRequired<SearchProps>>;
171
+ segmented?: InferDefaults<LooseRequired<SegmentedProps>>;
172
+ shareSheet?: InferDefaults<LooseRequired<ShareSheetProps>>;
173
+ signature?: InferDefaults<LooseRequired<SignatureProps>>;
174
+ skeleton?: InferDefaults<LooseRequired<SkeletonProps>>;
175
+ slider?: InferDefaults<LooseRequired<SliderProps>>;
176
+ space?: InferDefaults<LooseRequired<SpaceProps>>;
177
+ statusBar?: InferDefaults<LooseRequired<StatusBarProps>>;
178
+ stepper?: InferDefaults<LooseRequired<StepperProps>>;
179
+ steps?: InferDefaults<LooseRequired<StepsProps>>;
180
+ swiperDot?: InferDefaults<LooseRequired<SwiperDotProps>>;
181
+ switch?: InferDefaults<LooseRequired<SwitchProps>>;
182
+ tabbar?: InferDefaults<LooseRequired<TabbarProps>>;
183
+ table?: InferDefaults<LooseRequired<TableProps>>;
184
+ tabs?: InferDefaults<LooseRequired<TabsProps>>;
185
+ tag?: InferDefaults<LooseRequired<TagProps>>;
186
+ toast?: InferDefaults<LooseRequired<ToastProps>>;
187
+ toastAgent?: InferDefaults<LooseRequired<ToastAgentProps>>;
188
+ tree?: InferDefaults<LooseRequired<TreeProps>>;
189
+ upload?: InferDefaults<LooseRequired<UploadProps>>;
190
+ uploadPreview?: InferDefaults<LooseRequired<UploadPreviewProps>>;
191
+ waterfall?: InferDefaults<LooseRequired<WaterfallProps>>;
192
+ watermark?: InferDefaults<LooseRequired<WatermarkProps>>;
193
+ }
194
+ export type RequiredConfigOptions = Omit<Required<ConfigOptions>, 'valueOnClear'> & {
195
+ valueOnClear: ConfigOptions['valueOnClear'];
528
196
  };
529
- export type ConfigOptions = typeof defaultConfig;
530
- export declare function setConfig(...optionsArgs: DeepPartial<ConfigOptions>[]): void;
197
+ export declare const defaultConfig: RequiredConfigOptions;
198
+ export declare function setConfig(...optionsArgs: ConfigOptions[]): void;
531
199
  export declare function getDurationConfig(duration: number): {
532
200
  actionSheet: {
533
201
  duration: number;