sard-uniapp 1.24.6 → 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 (211) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/components/action-sheet/action-sheet.d.ts +8 -1
  3. package/components/action-sheet/common.d.ts +99 -2
  4. package/components/alert/alert.d.ts +6 -0
  5. package/components/alert/common.d.ts +63 -1
  6. package/components/avatar/avatar.d.ts +8 -0
  7. package/components/avatar/common.d.ts +99 -1
  8. package/components/avatar-group/avatar-group.d.ts +6 -1
  9. package/components/avatar-group/common.d.ts +63 -2
  10. package/components/back-top/back-top.d.ts +4 -0
  11. package/components/back-top/common.d.ts +40 -1
  12. package/components/badge/badge.d.ts +7 -0
  13. package/components/badge/common.d.ts +99 -2
  14. package/components/button/button.d.ts +22 -0
  15. package/components/button/common.d.ts +960 -8
  16. package/components/calendar/calendar.d.ts +16 -1
  17. package/components/calendar/common.d.ts +360 -3
  18. package/components/calendar-input/calendar-input.d.ts +31 -2
  19. package/components/calendar-input/common.d.ts +1368 -7
  20. package/components/calendar-popout/calendar-popout.d.ts +22 -2
  21. package/components/calendar-popout/common.d.ts +675 -5
  22. package/components/cascader-input/cascader-input.d.ts +25 -0
  23. package/components/cascader-input/common.d.ts +783 -3
  24. package/components/cascader-popout/cascader-popout.d.ts +14 -0
  25. package/components/cascader-popout/common.d.ts +288 -2
  26. package/components/checkbox/checkbox.d.ts +11 -0
  27. package/components/checkbox/common.d.ts +323 -3
  28. package/components/checkbox-group/checkbox-group.d.ts +10 -0
  29. package/components/checkbox-input/checkbox-input.d.ts +28 -1
  30. package/components/checkbox-input/common.d.ts +960 -4
  31. package/components/checkbox-popout/checkbox-popout.d.ts +19 -1
  32. package/components/checkbox-popout/common.d.ts +460 -2
  33. package/components/config/index.d.ts +150 -482
  34. package/components/config/index.js +16 -34
  35. package/components/cool-icon/common.d.ts +63 -1
  36. package/components/cool-icon/cool-icon.d.ts +6 -0
  37. package/components/count-down/common.d.ts +48 -3
  38. package/components/count-down/count-down.d.ts +3 -0
  39. package/components/count-to/common.d.ts +35 -4
  40. package/components/count-to/count-to.d.ts +1 -0
  41. package/components/crop-image/common.d.ts +288 -4
  42. package/components/crop-image/crop-image.d.ts +12 -0
  43. package/components/crop-image-agent/common.d.ts +288 -5
  44. package/components/crop-image-agent/crop-image-agent.d.ts +11 -0
  45. package/components/datetime-picker/common.d.ts +120 -2
  46. package/components/datetime-picker/datetime-picker.d.ts +9 -1
  47. package/components/datetime-picker-input/common.d.ts +783 -4
  48. package/components/datetime-picker-input/datetime-picker-input.d.ts +23 -0
  49. package/components/datetime-picker-popout/common.d.ts +288 -3
  50. package/components/datetime-picker-popout/datetime-picker-popout.d.ts +13 -0
  51. package/components/datetime-range-picker/common.d.ts +143 -1
  52. package/components/datetime-range-picker/datetime-range-picker.d.ts +10 -0
  53. package/components/datetime-range-picker-input/common.d.ts +840 -3
  54. package/components/datetime-range-picker-input/datetime-range-picker-input.d.ts +25 -0
  55. package/components/datetime-range-picker-popout/common.d.ts +323 -2
  56. package/components/datetime-range-picker-popout/datetime-range-picker-popout.d.ts +15 -0
  57. package/components/dialog/common.d.ts +360 -6
  58. package/components/dialog/dialog.d.ts +16 -3
  59. package/components/dialog-agent/common.d.ts +1023 -7
  60. package/components/dialog-agent/dialog-agent.d.ts +28 -3
  61. package/components/divider/common.d.ts +48 -3
  62. package/components/divider/divider.d.ts +4 -1
  63. package/components/dropdown/common.d.ts +99 -5
  64. package/components/dropdown/dropdown.d.ts +7 -3
  65. package/components/empty/common.d.ts +48 -1
  66. package/components/empty/empty.d.ts +5 -0
  67. package/components/fab/common.d.ts +619 -7
  68. package/components/fab/fab.d.ts +20 -2
  69. package/components/floating-bubble/common.d.ts +153 -4
  70. package/components/floating-bubble/floating-bubble.d.ts +10 -1
  71. package/components/floating-panel/common.d.ts +63 -3
  72. package/components/floating-panel/floating-panel.d.ts +4 -0
  73. package/components/form/README.md +11 -12
  74. package/components/form/common.d.ts +304 -1
  75. package/components/form/form.d.ts +12 -1
  76. package/components/form-item/form-item.d.ts +15 -0
  77. package/components/form-item/useFormItem.d.ts +1 -1
  78. package/components/form-item-plain/form-item-plain.d.ts +15 -0
  79. package/components/form-item-plain/form-item-plain.vue +7 -3
  80. package/components/form-plain/common.d.ts +0 -1
  81. package/components/form-plain/form-plain.d.ts +12 -1
  82. package/components/grid/common.d.ts +99 -2
  83. package/components/grid/grid.d.ts +8 -1
  84. package/components/icon/common.d.ts +63 -3
  85. package/components/icon/icon.d.ts +5 -1
  86. package/components/indexes/common.d.ts +1 -0
  87. package/components/indexes/indexes.vue +2 -1
  88. package/components/input/common.d.ts +2400 -14
  89. package/components/input/input.d.ts +36 -2
  90. package/components/keyboard/common.d.ts +24 -2
  91. package/components/keyboard/keyboard.d.ts +2 -0
  92. package/components/list/common.d.ts +168 -1
  93. package/components/list-item/list-item.d.ts +11 -0
  94. package/components/loading/common.d.ts +117 -1
  95. package/components/loading/loading.d.ts +8 -0
  96. package/components/locale/lang/ar-SA.d.ts +2 -0
  97. package/components/locale/lang/ar-SA.js +2 -0
  98. package/components/locale/lang/en-US.d.ts +2 -0
  99. package/components/locale/lang/en-US.js +2 -0
  100. package/components/locale/lang/zh-CN.d.ts +2 -0
  101. package/components/locale/lang/zh-CN.js +2 -0
  102. package/components/marquee/common.d.ts +35 -3
  103. package/components/marquee/marquee.d.ts +2 -0
  104. package/components/notice-bar/common.d.ts +195 -4
  105. package/components/notice-bar/notice-bar.d.ts +10 -1
  106. package/components/notify/common.d.ts +143 -4
  107. package/components/notify/notify.d.ts +8 -1
  108. package/components/notify-agent/common.d.ts +483 -5
  109. package/components/notify-agent/notify-agent.d.ts +18 -1
  110. package/components/overlay/common.d.ts +63 -1
  111. package/components/overlay/overlay.d.ts +6 -0
  112. package/components/pagination/common.d.ts +143 -6
  113. package/components/pagination/pagination.d.ts +6 -1
  114. package/components/password-input/common.d.ts +168 -3
  115. package/components/password-input/password-input.d.ts +9 -0
  116. package/components/picker/common.d.ts +46 -1
  117. package/components/picker/picker.d.ts +5 -0
  118. package/components/picker-input/common.d.ts +599 -4
  119. package/components/picker-input/picker-input.d.ts +21 -1
  120. package/components/picker-popout/common.d.ts +181 -3
  121. package/components/picker-popout/picker-popout.d.ts +10 -0
  122. package/components/popout/common.d.ts +288 -6
  123. package/components/popout/popout.d.ts +11 -1
  124. package/components/popout-input/common.d.ts +181 -2
  125. package/components/popout-input/popout-input.d.ts +11 -0
  126. package/components/popover/common.d.ts +168 -7
  127. package/components/popover/popover.d.ts +8 -3
  128. package/components/popup/common.d.ts +168 -4
  129. package/components/popup/popup.d.ts +10 -2
  130. package/components/progress-bar/common.d.ts +143 -2
  131. package/components/progress-bar/progress-bar.d.ts +9 -0
  132. package/components/progress-circle/common.d.ts +80 -2
  133. package/components/progress-circle/progress-circle.d.ts +6 -0
  134. package/components/pull-down-refresh/common.d.ts +100 -8
  135. package/components/pull-down-refresh/pull-down-refresh.d.ts +3 -1
  136. package/components/qrcode/common.d.ts +168 -8
  137. package/components/qrcode/qrcode.d.ts +4 -0
  138. package/components/radio/common.d.ts +155 -2
  139. package/components/radio-group/radio-group.d.ts +10 -0
  140. package/components/radio-input/common.d.ts +869 -5
  141. package/components/radio-input/radio-input.d.ts +26 -1
  142. package/components/radio-popout/common.d.ts +397 -3
  143. package/components/radio-popout/radio-popout.d.ts +17 -1
  144. package/components/rate/common.d.ts +360 -4
  145. package/components/rate/rate.d.ts +15 -1
  146. package/components/read-more/common.d.ts +80 -1
  147. package/components/read-more/read-more.d.ts +7 -0
  148. package/components/resize-sensor/common.d.ts +24 -1
  149. package/components/resize-sensor/resize-sensor.d.ts +3 -0
  150. package/components/result/common.d.ts +80 -1
  151. package/components/result/result.d.ts +7 -0
  152. package/components/scroll-spy/README.md +9 -8
  153. package/components/scroll-spy/common.d.ts +1 -0
  154. package/components/scroll-spy/scroll-spy.vue +4 -2
  155. package/components/search/common.d.ts +224 -2
  156. package/components/search/search.d.ts +12 -0
  157. package/components/segmented/common.d.ts +131 -4
  158. package/components/segmented/segmented.d.ts +8 -1
  159. package/components/share-sheet/common.d.ts +120 -2
  160. package/components/share-sheet/share-sheet.d.ts +9 -1
  161. package/components/signature/common.d.ts +255 -7
  162. package/components/signature/signature.d.ts +9 -1
  163. package/components/skeleton/common.d.ts +120 -2
  164. package/components/skeleton/skeleton.d.ts +8 -0
  165. package/components/slider/common.d.ts +528 -4
  166. package/components/slider/slider.d.ts +18 -0
  167. package/components/space/common.d.ts +63 -2
  168. package/components/space/space.d.ts +5 -0
  169. package/components/status-bar/common.d.ts +24 -1
  170. package/components/status-bar/status-bar.d.ts +3 -0
  171. package/components/stepper/common.d.ts +360 -9
  172. package/components/stepper/stepper.d.ts +10 -1
  173. package/components/steps/common.d.ts +224 -8
  174. package/components/steps/steps.d.ts +6 -0
  175. package/components/swiper-dot/common.d.ts +63 -4
  176. package/components/swiper-dot/swiper-dot.d.ts +3 -0
  177. package/components/switch/common.d.ts +153 -3
  178. package/components/switch/switch.d.ts +10 -0
  179. package/components/tabbar/common.d.ts +80 -1
  180. package/components/tabbar/tabbar.d.ts +7 -0
  181. package/components/table/common.d.ts +35 -2
  182. package/components/table/table.d.ts +4 -1
  183. package/components/tabs/README.md +4 -3
  184. package/components/tabs/common.d.ts +49 -1
  185. package/components/tabs/index.scss +2 -1
  186. package/components/tabs/tabs.d.ts +5 -0
  187. package/components/tabs/tabs.vue +3 -1
  188. package/components/tag/common.d.ts +120 -2
  189. package/components/tag/tag.d.ts +8 -0
  190. package/components/toast/common.d.ts +120 -6
  191. package/components/toast/toast.d.ts +6 -2
  192. package/components/toast-agent/common.d.ts +440 -7
  193. package/components/toast-agent/toast-agent.d.ts +16 -2
  194. package/components/tree/README.md +34 -20
  195. package/components/tree/common.d.ts +391 -3
  196. package/components/tree/common.js +1 -0
  197. package/components/tree/index.scss +13 -0
  198. package/components/tree/tree.d.ts +16 -1
  199. package/components/tree/tree.vue +71 -22
  200. package/components/tree/variables.scss +4 -0
  201. package/components/tree-node/index.scss +6 -0
  202. package/components/tree-node/tree-node.vue +46 -12
  203. package/components/upload/common.d.ts +195 -1
  204. package/components/upload/upload.d.ts +13 -1
  205. package/components/upload-preview/upload-preview.d.ts +12 -0
  206. package/components/waterfall/common.d.ts +35 -3
  207. package/components/waterfall/waterfall.d.ts +2 -0
  208. package/components/watermark/common.d.ts +143 -5
  209. package/components/watermark/watermark.d.ts +7 -1
  210. package/package.json +1 -1
  211. package/use/useScrollSpy.js +5 -1
@@ -48,7 +48,6 @@ export const defaultConfig = {
48
48
  lang: 'en',
49
49
  showMessageCard: false,
50
50
  block: true,
51
- loadingType: undefined,
52
51
  },
53
52
  calendar: {
54
53
  type: 'single',
@@ -57,7 +56,6 @@ export const defaultConfig = {
57
56
  },
58
57
  calendarInput: {
59
58
  outletFormat: 'YYYY-MM-DD',
60
- valueOnClear: undefined,
61
59
  },
62
60
  calendarPopout: {
63
61
  showConfirm: true,
@@ -67,9 +65,7 @@ export const defaultConfig = {
67
65
  showConfirm: true,
68
66
  validateEvent: true,
69
67
  },
70
- cascaderInput: {
71
- valueOnClear: undefined,
72
- },
68
+ cascaderInput: {},
73
69
  checkbox: {
74
70
  validateEvent: true,
75
71
  },
@@ -77,9 +73,7 @@ export const defaultConfig = {
77
73
  direction: 'vertical',
78
74
  validateEvent: true,
79
75
  },
80
- checkboxInput: {
81
- valueOnClear: undefined,
82
- },
76
+ checkboxInput: {},
83
77
  checkboxPopout: {
84
78
  validateEvent: true,
85
79
  iconPosition: 'left',
@@ -111,18 +105,14 @@ export const defaultConfig = {
111
105
  type: 'yMd',
112
106
  calendar: 'solar',
113
107
  },
114
- datetimePickerInput: {
115
- valueOnClear: undefined,
116
- },
108
+ datetimePickerInput: {},
117
109
  datetimePickerPopout: {
118
110
  validateEvent: true,
119
111
  },
120
112
  datetimeRangePicker: {
121
113
  type: 'yMd',
122
114
  },
123
- datetimeRangePickerInput: {
124
- valueOnClear: undefined,
125
- },
115
+ datetimeRangePickerInput: {},
126
116
  datetimeRangePickerPopout: {
127
117
  validateEvent: true,
128
118
  },
@@ -208,7 +198,6 @@ export const defaultConfig = {
208
198
  modelValue: '',
209
199
  validateEvent: true,
210
200
  cursorSpacing: 30,
211
- confirmType: undefined,
212
201
  cursor: -1,
213
202
  selectionStart: -1,
214
203
  selectionEnd: -1,
@@ -263,9 +252,7 @@ export const defaultConfig = {
263
252
  picker: {
264
253
  immediateChange: false,
265
254
  },
266
- pickerInput: {
267
- valueOnClear: undefined,
268
- },
255
+ pickerInput: {},
269
256
  pickerPopout: {
270
257
  validateEvent: true,
271
258
  },
@@ -324,9 +311,7 @@ export const defaultConfig = {
324
311
  direction: 'vertical',
325
312
  validateEvent: true,
326
313
  },
327
- radioInput: {
328
- valueOnClear: undefined,
329
- },
314
+ radioInput: {},
330
315
  radioPopout: {
331
316
  validateEvent: true,
332
317
  type: 'circle',
@@ -384,9 +369,7 @@ export const defaultConfig = {
384
369
  direction: 'horizontal',
385
370
  size: 'middle',
386
371
  },
387
- statusBar: {
388
- height: '',
389
- },
372
+ statusBar: {},
390
373
  stepper: {
391
374
  min: Number.MIN_SAFE_INTEGER,
392
375
  max: Number.MAX_SAFE_INTEGER,
@@ -475,18 +458,17 @@ export const defaultConfig = {
475
458
  gap: () => [30, 30],
476
459
  },
477
460
  };
461
+ // #enddefaultConfig
478
462
  function extendProps(source, target) {
479
463
  Object.keys(target).forEach((key) => {
480
- if (key in source) {
481
- const sourceValue = source[key];
482
- const targetValue = target[key];
483
- if (targetValue !== undefined && targetValue !== null) {
484
- if (typeof sourceValue !== 'object') {
485
- source[key] = targetValue;
486
- }
487
- else if (typeof targetValue === 'object') {
488
- extendProps(sourceValue, targetValue);
489
- }
464
+ const sourceValue = source[key];
465
+ const targetValue = target[key];
466
+ if (targetValue !== undefined && targetValue !== null) {
467
+ if (typeof sourceValue !== 'object') {
468
+ source[key] = targetValue;
469
+ }
470
+ else if (typeof targetValue === 'object') {
471
+ extendProps(sourceValue, targetValue);
490
472
  }
491
473
  }
492
474
  });
@@ -9,7 +9,69 @@ export interface CoolIconProps {
9
9
  background?: string;
10
10
  }
11
11
  export declare const defaultCoolIconProps: {
12
- shape: CoolIconProps["shape"];
12
+ rootStyle?: (string | false | ((props: {
13
+ rootStyle: StyleValue;
14
+ rootClass: string;
15
+ shape: "circle" | "square" | "oval" | "triangle" | "flower";
16
+ size: string;
17
+ iconSize: string;
18
+ color: string;
19
+ background: string;
20
+ }) => string | false | import("vue").CSSProperties | StyleValue[]) | null) | undefined;
21
+ rootClass?: (string | ((props: {
22
+ rootStyle: StyleValue;
23
+ rootClass: string;
24
+ shape: "circle" | "square" | "oval" | "triangle" | "flower";
25
+ size: string;
26
+ iconSize: string;
27
+ color: string;
28
+ background: string;
29
+ }) => string)) | undefined;
30
+ shape?: ("circle" | "square" | "oval" | "triangle" | "flower" | ((props: {
31
+ rootStyle: StyleValue;
32
+ rootClass: string;
33
+ shape: "circle" | "square" | "oval" | "triangle" | "flower";
34
+ size: string;
35
+ iconSize: string;
36
+ color: string;
37
+ background: string;
38
+ }) => "circle" | "square" | "oval" | "triangle" | "flower")) | undefined;
39
+ size?: (string | ((props: {
40
+ rootStyle: StyleValue;
41
+ rootClass: string;
42
+ shape: "circle" | "square" | "oval" | "triangle" | "flower";
43
+ size: string;
44
+ iconSize: string;
45
+ color: string;
46
+ background: string;
47
+ }) => string)) | undefined;
48
+ iconSize?: (string | ((props: {
49
+ rootStyle: StyleValue;
50
+ rootClass: string;
51
+ shape: "circle" | "square" | "oval" | "triangle" | "flower";
52
+ size: string;
53
+ iconSize: string;
54
+ color: string;
55
+ background: string;
56
+ }) => string)) | undefined;
57
+ color?: (string | ((props: {
58
+ rootStyle: StyleValue;
59
+ rootClass: string;
60
+ shape: "circle" | "square" | "oval" | "triangle" | "flower";
61
+ size: string;
62
+ iconSize: string;
63
+ color: string;
64
+ background: string;
65
+ }) => string)) | undefined;
66
+ background?: (string | ((props: {
67
+ rootStyle: StyleValue;
68
+ rootClass: string;
69
+ shape: "circle" | "square" | "oval" | "triangle" | "flower";
70
+ size: string;
71
+ iconSize: string;
72
+ color: string;
73
+ background: string;
74
+ }) => string)) | undefined;
13
75
  };
14
76
  export interface CoolIconSlots {
15
77
  default?(props: Record<string, never>): any;
@@ -5,7 +5,13 @@ declare const __VLS_component: import("vue").DefineComponent<CoolIconProps, {},
5
5
  }, string, import("vue").PublicProps, Readonly<CoolIconProps> & Readonly<{
6
6
  onClick?: ((event: any) => any) | undefined;
7
7
  }>, {
8
+ size: string;
9
+ rootStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
10
+ rootClass: string;
11
+ background: string;
12
+ color: string;
8
13
  shape: "circle" | "square" | "oval" | "triangle" | "flower";
14
+ iconSize: string;
9
15
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
16
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
11
17
  export default _default;
@@ -8,9 +8,54 @@ export interface CountDownProps {
8
8
  millisecond?: boolean;
9
9
  }
10
10
  export declare const defaultCountDownProps: {
11
- time: number;
12
- autoStart: boolean;
13
- format: string;
11
+ rootStyle?: (string | false | ((props: {
12
+ rootStyle: StyleValue;
13
+ rootClass: string;
14
+ time: number;
15
+ autoStart: boolean;
16
+ format: string;
17
+ millisecond: boolean;
18
+ }) => string | false | import("vue").CSSProperties | StyleValue[]) | null) | undefined;
19
+ rootClass?: (string | ((props: {
20
+ rootStyle: StyleValue;
21
+ rootClass: string;
22
+ time: number;
23
+ autoStart: boolean;
24
+ format: string;
25
+ millisecond: boolean;
26
+ }) => string)) | undefined;
27
+ time?: (number | ((props: {
28
+ rootStyle: StyleValue;
29
+ rootClass: string;
30
+ time: number;
31
+ autoStart: boolean;
32
+ format: string;
33
+ millisecond: boolean;
34
+ }) => number)) | undefined;
35
+ autoStart?: (boolean | ((props: {
36
+ rootStyle: StyleValue;
37
+ rootClass: string;
38
+ time: number;
39
+ autoStart: boolean;
40
+ format: string;
41
+ millisecond: boolean;
42
+ }) => boolean)) | undefined;
43
+ format?: (string | ((props: {
44
+ rootStyle: StyleValue;
45
+ rootClass: string;
46
+ time: number;
47
+ autoStart: boolean;
48
+ format: string;
49
+ millisecond: boolean;
50
+ }) => string)) | undefined;
51
+ millisecond?: (boolean | ((props: {
52
+ rootStyle: StyleValue;
53
+ rootClass: string;
54
+ time: number;
55
+ autoStart: boolean;
56
+ format: string;
57
+ millisecond: boolean;
58
+ }) => boolean)) | undefined;
14
59
  };
15
60
  export interface CountDownSlots {
16
61
  default?(props: {
@@ -11,9 +11,12 @@ declare const __VLS_component: import("vue").DefineComponent<CountDownProps, {
11
11
  onChange?: ((time: CountDownCurrentTime) => any) | undefined;
12
12
  onFinish?: (() => any) | undefined;
13
13
  }>, {
14
+ rootStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
15
+ rootClass: string;
14
16
  time: number;
15
17
  autoStart: boolean;
16
18
  format: string;
19
+ millisecond: boolean;
17
20
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
21
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
19
22
  export default _default;
@@ -6,8 +6,39 @@ export interface CountToProps {
6
6
  duration?: number;
7
7
  }
8
8
  export declare const defaultCountToProps: {
9
- value: number;
10
- precision: number;
11
- separatorDigit: number;
12
- duration: number;
9
+ value?: (number | ((props: {
10
+ value: number;
11
+ precision: number;
12
+ separator: string;
13
+ separatorDigit: number;
14
+ duration: number;
15
+ }) => number)) | undefined;
16
+ precision?: (number | ((props: {
17
+ value: number;
18
+ precision: number;
19
+ separator: string;
20
+ separatorDigit: number;
21
+ duration: number;
22
+ }) => number)) | undefined;
23
+ separator?: (string | ((props: {
24
+ value: number;
25
+ precision: number;
26
+ separator: string;
27
+ separatorDigit: number;
28
+ duration: number;
29
+ }) => string)) | undefined;
30
+ separatorDigit?: (number | ((props: {
31
+ value: number;
32
+ precision: number;
33
+ separator: string;
34
+ separatorDigit: number;
35
+ duration: number;
36
+ }) => number)) | undefined;
37
+ duration?: (number | ((props: {
38
+ value: number;
39
+ precision: number;
40
+ separator: string;
41
+ separatorDigit: number;
42
+ duration: number;
43
+ }) => number)) | undefined;
13
44
  };
@@ -3,6 +3,7 @@ declare const _default: import("vue").DefineComponent<CountToProps, {}, {}, {},
3
3
  value: number;
4
4
  duration: number;
5
5
  precision: number;
6
+ separator: string;
6
7
  separatorDigit: number;
7
8
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
9
  export default _default;
@@ -19,10 +19,294 @@ export interface CropImageProps {
19
19
  confirmText?: string;
20
20
  }
21
21
  export declare const defaultCropImageProps: {
22
- duration: number;
23
- cropScale: string;
24
- type: "png";
25
- quality: number;
22
+ rootStyle?: (string | false | ((props: {
23
+ rootStyle: StyleValue;
24
+ rootClass: string;
25
+ visible: boolean;
26
+ src: string;
27
+ cropScale: string;
28
+ type: "png" | "jpg";
29
+ quality: number;
30
+ duration: number;
31
+ success: (filePath: string) => void;
32
+ fail: (err: any) => void;
33
+ complete: () => void;
34
+ cancel: () => void;
35
+ id: string;
36
+ beforeCrop: (width: number, height: number) => number;
37
+ cancelText: string;
38
+ confirmText: string;
39
+ }) => string | false | import("vue").CSSProperties | StyleValue[]) | null) | undefined;
40
+ rootClass?: (string | ((props: {
41
+ rootStyle: StyleValue;
42
+ rootClass: string;
43
+ visible: boolean;
44
+ src: string;
45
+ cropScale: string;
46
+ type: "png" | "jpg";
47
+ quality: number;
48
+ duration: number;
49
+ success: (filePath: string) => void;
50
+ fail: (err: any) => void;
51
+ complete: () => void;
52
+ cancel: () => void;
53
+ id: string;
54
+ beforeCrop: (width: number, height: number) => number;
55
+ cancelText: string;
56
+ confirmText: string;
57
+ }) => string)) | undefined;
58
+ visible?: (boolean | ((props: {
59
+ rootStyle: StyleValue;
60
+ rootClass: string;
61
+ visible: boolean;
62
+ src: string;
63
+ cropScale: string;
64
+ type: "png" | "jpg";
65
+ quality: number;
66
+ duration: number;
67
+ success: (filePath: string) => void;
68
+ fail: (err: any) => void;
69
+ complete: () => void;
70
+ cancel: () => void;
71
+ id: string;
72
+ beforeCrop: (width: number, height: number) => number;
73
+ cancelText: string;
74
+ confirmText: string;
75
+ }) => boolean)) | undefined;
76
+ src?: (string | ((props: {
77
+ rootStyle: StyleValue;
78
+ rootClass: string;
79
+ visible: boolean;
80
+ src: string;
81
+ cropScale: string;
82
+ type: "png" | "jpg";
83
+ quality: number;
84
+ duration: number;
85
+ success: (filePath: string) => void;
86
+ fail: (err: any) => void;
87
+ complete: () => void;
88
+ cancel: () => void;
89
+ id: string;
90
+ beforeCrop: (width: number, height: number) => number;
91
+ cancelText: string;
92
+ confirmText: string;
93
+ }) => string)) | undefined;
94
+ cropScale?: (string | ((props: {
95
+ rootStyle: StyleValue;
96
+ rootClass: string;
97
+ visible: boolean;
98
+ src: string;
99
+ cropScale: string;
100
+ type: "png" | "jpg";
101
+ quality: number;
102
+ duration: number;
103
+ success: (filePath: string) => void;
104
+ fail: (err: any) => void;
105
+ complete: () => void;
106
+ cancel: () => void;
107
+ id: string;
108
+ beforeCrop: (width: number, height: number) => number;
109
+ cancelText: string;
110
+ confirmText: string;
111
+ }) => string)) | undefined;
112
+ type?: ("png" | "jpg" | ((props: {
113
+ rootStyle: StyleValue;
114
+ rootClass: string;
115
+ visible: boolean;
116
+ src: string;
117
+ cropScale: string;
118
+ type: "png" | "jpg";
119
+ quality: number;
120
+ duration: number;
121
+ success: (filePath: string) => void;
122
+ fail: (err: any) => void;
123
+ complete: () => void;
124
+ cancel: () => void;
125
+ id: string;
126
+ beforeCrop: (width: number, height: number) => number;
127
+ cancelText: string;
128
+ confirmText: string;
129
+ }) => "png" | "jpg")) | undefined;
130
+ quality?: (number | ((props: {
131
+ rootStyle: StyleValue;
132
+ rootClass: string;
133
+ visible: boolean;
134
+ src: string;
135
+ cropScale: string;
136
+ type: "png" | "jpg";
137
+ quality: number;
138
+ duration: number;
139
+ success: (filePath: string) => void;
140
+ fail: (err: any) => void;
141
+ complete: () => void;
142
+ cancel: () => void;
143
+ id: string;
144
+ beforeCrop: (width: number, height: number) => number;
145
+ cancelText: string;
146
+ confirmText: string;
147
+ }) => number)) | undefined;
148
+ duration?: (number | ((props: {
149
+ rootStyle: StyleValue;
150
+ rootClass: string;
151
+ visible: boolean;
152
+ src: string;
153
+ cropScale: string;
154
+ type: "png" | "jpg";
155
+ quality: number;
156
+ duration: number;
157
+ success: (filePath: string) => void;
158
+ fail: (err: any) => void;
159
+ complete: () => void;
160
+ cancel: () => void;
161
+ id: string;
162
+ beforeCrop: (width: number, height: number) => number;
163
+ cancelText: string;
164
+ confirmText: string;
165
+ }) => number)) | undefined;
166
+ success?: (((filePath: string) => void) | ((props: {
167
+ rootStyle: StyleValue;
168
+ rootClass: string;
169
+ visible: boolean;
170
+ src: string;
171
+ cropScale: string;
172
+ type: "png" | "jpg";
173
+ quality: number;
174
+ duration: number;
175
+ success: (filePath: string) => void;
176
+ fail: (err: any) => void;
177
+ complete: () => void;
178
+ cancel: () => void;
179
+ id: string;
180
+ beforeCrop: (width: number, height: number) => number;
181
+ cancelText: string;
182
+ confirmText: string;
183
+ }) => (filePath: string) => void)) | undefined;
184
+ fail?: (((err: any) => void) | ((props: {
185
+ rootStyle: StyleValue;
186
+ rootClass: string;
187
+ visible: boolean;
188
+ src: string;
189
+ cropScale: string;
190
+ type: "png" | "jpg";
191
+ quality: number;
192
+ duration: number;
193
+ success: (filePath: string) => void;
194
+ fail: (err: any) => void;
195
+ complete: () => void;
196
+ cancel: () => void;
197
+ id: string;
198
+ beforeCrop: (width: number, height: number) => number;
199
+ cancelText: string;
200
+ confirmText: string;
201
+ }) => (err: any) => void)) | undefined;
202
+ complete?: ((() => void) | ((props: {
203
+ rootStyle: StyleValue;
204
+ rootClass: string;
205
+ visible: boolean;
206
+ src: string;
207
+ cropScale: string;
208
+ type: "png" | "jpg";
209
+ quality: number;
210
+ duration: number;
211
+ success: (filePath: string) => void;
212
+ fail: (err: any) => void;
213
+ complete: () => void;
214
+ cancel: () => void;
215
+ id: string;
216
+ beforeCrop: (width: number, height: number) => number;
217
+ cancelText: string;
218
+ confirmText: string;
219
+ }) => () => void)) | undefined;
220
+ cancel?: ((() => void) | ((props: {
221
+ rootStyle: StyleValue;
222
+ rootClass: string;
223
+ visible: boolean;
224
+ src: string;
225
+ cropScale: string;
226
+ type: "png" | "jpg";
227
+ quality: number;
228
+ duration: number;
229
+ success: (filePath: string) => void;
230
+ fail: (err: any) => void;
231
+ complete: () => void;
232
+ cancel: () => void;
233
+ id: string;
234
+ beforeCrop: (width: number, height: number) => number;
235
+ cancelText: string;
236
+ confirmText: string;
237
+ }) => () => void)) | undefined;
238
+ id?: (string | ((props: {
239
+ rootStyle: StyleValue;
240
+ rootClass: string;
241
+ visible: boolean;
242
+ src: string;
243
+ cropScale: string;
244
+ type: "png" | "jpg";
245
+ quality: number;
246
+ duration: number;
247
+ success: (filePath: string) => void;
248
+ fail: (err: any) => void;
249
+ complete: () => void;
250
+ cancel: () => void;
251
+ id: string;
252
+ beforeCrop: (width: number, height: number) => number;
253
+ cancelText: string;
254
+ confirmText: string;
255
+ }) => string)) | undefined;
256
+ beforeCrop?: (((width: number, height: number) => number) | ((props: {
257
+ rootStyle: StyleValue;
258
+ rootClass: string;
259
+ visible: boolean;
260
+ src: string;
261
+ cropScale: string;
262
+ type: "png" | "jpg";
263
+ quality: number;
264
+ duration: number;
265
+ success: (filePath: string) => void;
266
+ fail: (err: any) => void;
267
+ complete: () => void;
268
+ cancel: () => void;
269
+ id: string;
270
+ beforeCrop: (width: number, height: number) => number;
271
+ cancelText: string;
272
+ confirmText: string;
273
+ }) => (width: number, height: number) => number)) | undefined;
274
+ cancelText?: (string | ((props: {
275
+ rootStyle: StyleValue;
276
+ rootClass: string;
277
+ visible: boolean;
278
+ src: string;
279
+ cropScale: string;
280
+ type: "png" | "jpg";
281
+ quality: number;
282
+ duration: number;
283
+ success: (filePath: string) => void;
284
+ fail: (err: any) => void;
285
+ complete: () => void;
286
+ cancel: () => void;
287
+ id: string;
288
+ beforeCrop: (width: number, height: number) => number;
289
+ cancelText: string;
290
+ confirmText: string;
291
+ }) => string)) | undefined;
292
+ confirmText?: (string | ((props: {
293
+ rootStyle: StyleValue;
294
+ rootClass: string;
295
+ visible: boolean;
296
+ src: string;
297
+ cropScale: string;
298
+ type: "png" | "jpg";
299
+ quality: number;
300
+ duration: number;
301
+ success: (filePath: string) => void;
302
+ fail: (err: any) => void;
303
+ complete: () => void;
304
+ cancel: () => void;
305
+ id: string;
306
+ beforeCrop: (width: number, height: number) => number;
307
+ cancelText: string;
308
+ confirmText: string;
309
+ }) => string)) | undefined;
26
310
  };
27
311
  export interface CropImageSlots {
28
312
  default?(props: Record<string, never>): any;
@@ -7,10 +7,22 @@ declare const __VLS_component: import("vue").DefineComponent<CropImageProps, {},
7
7
  }, string, import("vue").PublicProps, Readonly<CropImageProps> & Readonly<{
8
8
  [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
9
9
  }>, {
10
+ complete: () => void;
11
+ success: (filePath: string) => void;
12
+ fail: (err: any) => void;
13
+ cancel: () => void;
14
+ rootStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
15
+ rootClass: string;
10
16
  type: "png" | "jpg";
17
+ visible: boolean;
18
+ id: string;
11
19
  duration: number;
20
+ src: string;
12
21
  cropScale: string;
13
22
  quality: number;
23
+ beforeCrop: (width: number, height: number) => number;
24
+ cancelText: string;
25
+ confirmText: string;
14
26
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
27
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
16
28
  export default _default;