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
package/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ ## [1.24.7](https://github.com/sutras/sard-uniapp/compare/v1.24.6...v1.24.7) (2025-10-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **form:** 修复FormItemPlain错误定位问题 ([3b35b05](https://github.com/sutras/sard-uniapp/commit/3b35b05b6df5c5b3de447ffec9f7ff37b7be8ab3))
7
+ * **scroll-spy:** 修复因重复设置current导致不滚动的问题 ([cb6ba8c](https://github.com/sutras/sard-uniapp/commit/cb6ba8c0563657ae0e826e7a3816430c9ff711d7))
8
+
9
+
10
+ ### Features
11
+
12
+ * **config:** 允许全局配置组件的任意属性 ([889ad5b](https://github.com/sutras/sard-uniapp/commit/889ad5b1df4f9ddcfdeaffc6d2492d95f16550d3))
13
+ * **scroll-spy:** 新增 disabled 属性 ([0d20897](https://github.com/sutras/sard-uniapp/commit/0d20897bdf2c97f2f6423a58ab90327ba606fae7))
14
+ * **tabs:** 新增line插槽 ([1d05dd0](https://github.com/sutras/sard-uniapp/commit/1d05dd05893b3264a805e42abe6792212a4ba95a))
15
+ * **tree:** 添加懒加载功能 ([f4c7d38](https://github.com/sutras/sard-uniapp/commit/f4c7d38aa952d67b0056922c22f47c04519f5a25))
16
+
17
+
18
+
19
+ ## [1.24.6](https://github.com/sutras/sard-uniapp/compare/v1.24.5...v1.24.6) (2025-09-23)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * **picker:** 将空数组视为空值, 修复级联选择初始选择问题 ([2fd8d18](https://github.com/sutras/sard-uniapp/commit/2fd8d18e411a526dc65cb1c99826162bae3ba4c6))
25
+ * 修复getWindowInfo在支付宝端缺少safeAreaInsets的问题 ([cbd26d7](https://github.com/sutras/sard-uniapp/commit/cbd26d74074d9afe9299db92b9245de7cc46177a))
26
+
27
+
28
+
1
29
  ## [1.24.5](https://github.com/sutras/sard-uniapp/compare/v1.24.4...v1.24.5) (2025-09-20)
2
30
 
3
31
 
@@ -3,7 +3,7 @@
3
3
  @include bem(accordion-item) {
4
4
  @include b() {
5
5
  @include universal;
6
- background-color: var(--sar-accordion-bg);
6
+ background: var(--sar-accordion-bg);
7
7
 
8
8
  &::before {
9
9
  @include border-top(var(--sar-accordion-border-color));
@@ -64,7 +64,7 @@
64
64
  @include m-not(disabled) {
65
65
  @include e(header) {
66
66
  &:active {
67
- background-color: var(--sar-accordion-active-bg);
67
+ background: var(--sar-accordion-active-bg);
68
68
  }
69
69
  }
70
70
  }
@@ -1,4 +1,4 @@
1
- import { type ActionSheetProps } from './common';
1
+ import { type ActionSheetItem, type ActionSheetProps } from './common';
2
2
  declare const _default: import("vue").DefineComponent<ActionSheetProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
3
  [x: string]: any;
4
4
  } & {
@@ -6,7 +6,14 @@ declare const _default: import("vue").DefineComponent<ActionSheetProps, {}, {},
6
6
  }, string, import("vue").PublicProps, Readonly<ActionSheetProps> & Readonly<{
7
7
  [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
8
8
  }>, {
9
+ cancel: string;
10
+ rootStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
11
+ rootClass: string;
12
+ description: string;
13
+ visible: boolean;
9
14
  duration: number;
10
15
  overlayClosable: boolean;
16
+ itemList: ActionSheetItem[];
17
+ beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
11
18
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
19
  export default _default;
@@ -12,8 +12,105 @@ export interface ActionSheetProps {
12
12
  duration?: number;
13
13
  }
14
14
  export declare const defaultActionSheetProps: {
15
- overlayClosable: boolean;
16
- duration: number;
15
+ rootStyle?: (string | false | ((props: {
16
+ rootStyle: StyleValue;
17
+ rootClass: string;
18
+ description: string;
19
+ itemList: ActionSheetItem[];
20
+ cancel: string;
21
+ visible: boolean;
22
+ overlayClosable: boolean;
23
+ beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
24
+ duration: number;
25
+ }) => string | false | import("vue").CSSProperties | StyleValue[]) | null) | undefined;
26
+ rootClass?: (string | ((props: {
27
+ rootStyle: StyleValue;
28
+ rootClass: string;
29
+ description: string;
30
+ itemList: ActionSheetItem[];
31
+ cancel: string;
32
+ visible: boolean;
33
+ overlayClosable: boolean;
34
+ beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
35
+ duration: number;
36
+ }) => string)) | undefined;
37
+ description?: (string | ((props: {
38
+ rootStyle: StyleValue;
39
+ rootClass: string;
40
+ description: string;
41
+ itemList: ActionSheetItem[];
42
+ cancel: string;
43
+ visible: boolean;
44
+ overlayClosable: boolean;
45
+ beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
46
+ duration: number;
47
+ }) => string)) | undefined;
48
+ itemList?: ((props: {
49
+ rootStyle: StyleValue;
50
+ rootClass: string;
51
+ description: string;
52
+ itemList: ActionSheetItem[];
53
+ cancel: string;
54
+ visible: boolean;
55
+ overlayClosable: boolean;
56
+ beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
57
+ duration: number;
58
+ }) => ActionSheetItem[]) | undefined;
59
+ cancel?: (string | ((props: {
60
+ rootStyle: StyleValue;
61
+ rootClass: string;
62
+ description: string;
63
+ itemList: ActionSheetItem[];
64
+ cancel: string;
65
+ visible: boolean;
66
+ overlayClosable: boolean;
67
+ beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
68
+ duration: number;
69
+ }) => string)) | undefined;
70
+ visible?: (boolean | ((props: {
71
+ rootStyle: StyleValue;
72
+ rootClass: string;
73
+ description: string;
74
+ itemList: ActionSheetItem[];
75
+ cancel: string;
76
+ visible: boolean;
77
+ overlayClosable: boolean;
78
+ beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
79
+ duration: number;
80
+ }) => boolean)) | undefined;
81
+ overlayClosable?: (boolean | ((props: {
82
+ rootStyle: StyleValue;
83
+ rootClass: string;
84
+ description: string;
85
+ itemList: ActionSheetItem[];
86
+ cancel: string;
87
+ visible: boolean;
88
+ overlayClosable: boolean;
89
+ beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
90
+ duration: number;
91
+ }) => boolean)) | undefined;
92
+ beforeClose?: (((type: "close" | "cancel" | "select") => boolean | Promise<any>) | ((props: {
93
+ rootStyle: StyleValue;
94
+ rootClass: string;
95
+ description: string;
96
+ itemList: ActionSheetItem[];
97
+ cancel: string;
98
+ visible: boolean;
99
+ overlayClosable: boolean;
100
+ beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
101
+ duration: number;
102
+ }) => (type: "close" | "cancel" | "select") => boolean | Promise<any>)) | undefined;
103
+ duration?: (number | ((props: {
104
+ rootStyle: StyleValue;
105
+ rootClass: string;
106
+ description: string;
107
+ itemList: ActionSheetItem[];
108
+ cancel: string;
109
+ visible: boolean;
110
+ overlayClosable: boolean;
111
+ beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
112
+ duration: number;
113
+ }) => number)) | undefined;
17
114
  };
18
115
  export interface ActionSheetEmits extends TransitionHookEmits {
19
116
  (e: 'update:visible', visible: boolean): void;
@@ -5,7 +5,7 @@
5
5
  padding-bottom: env(safe-area-inset-bottom);
6
6
  border-top-left-radius: var(--sar-action-sheet-border-radius);
7
7
  border-top-right-radius: var(--sar-action-sheet-border-radius);
8
- background-color: var(--sar-action-sheet-bg);
8
+ background: var(--sar-action-sheet-bg);
9
9
  touch-action: none;
10
10
  }
11
11
 
@@ -24,7 +24,7 @@
24
24
  @include e(gap) {
25
25
  @include universal;
26
26
  height: var(--sar-action-sheet-gap-height);
27
- background-color: var(--sar-action-sheet-gap-bg);
27
+ background: var(--sar-action-sheet-gap-bg);
28
28
  }
29
29
 
30
30
  @include e(content) {
@@ -55,7 +55,7 @@
55
55
 
56
56
  @include m-not(disabled, loading) {
57
57
  &:active {
58
- background-color: var(--sar-action-sheet-active-bg);
58
+ background: var(--sar-action-sheet-active-bg);
59
59
  }
60
60
  }
61
61
  }
@@ -88,7 +88,7 @@
88
88
  cursor: pointer;
89
89
 
90
90
  &:active {
91
- background-color: var(--sar-action-sheet-active-bg);
91
+ background: var(--sar-action-sheet-active-bg);
92
92
  }
93
93
  }
94
94
 
@@ -5,7 +5,13 @@ declare const __VLS_component: import("vue").DefineComponent<AlertProps, {}, {},
5
5
  }, string, import("vue").PublicProps, Readonly<AlertProps> & Readonly<{
6
6
  onClose?: (() => any) | undefined;
7
7
  }>, {
8
+ rootStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
9
+ rootClass: string;
8
10
  type: "primary" | "success" | "warning" | "danger";
11
+ background: string;
12
+ showIcon: boolean;
13
+ closable: boolean;
14
+ color: 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;
@@ -9,7 +9,69 @@ export interface AlertProps {
9
9
  background?: string;
10
10
  }
11
11
  export declare const defaultAlertProps: {
12
- type: AlertProps["type"];
12
+ rootStyle?: (string | false | ((props: {
13
+ rootStyle: StyleValue;
14
+ rootClass: string;
15
+ showIcon: boolean;
16
+ closable: boolean;
17
+ type: "primary" | "success" | "warning" | "danger";
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
+ showIcon: boolean;
25
+ closable: boolean;
26
+ type: "primary" | "success" | "warning" | "danger";
27
+ color: string;
28
+ background: string;
29
+ }) => string)) | undefined;
30
+ showIcon?: (boolean | ((props: {
31
+ rootStyle: StyleValue;
32
+ rootClass: string;
33
+ showIcon: boolean;
34
+ closable: boolean;
35
+ type: "primary" | "success" | "warning" | "danger";
36
+ color: string;
37
+ background: string;
38
+ }) => boolean)) | undefined;
39
+ closable?: (boolean | ((props: {
40
+ rootStyle: StyleValue;
41
+ rootClass: string;
42
+ showIcon: boolean;
43
+ closable: boolean;
44
+ type: "primary" | "success" | "warning" | "danger";
45
+ color: string;
46
+ background: string;
47
+ }) => boolean)) | undefined;
48
+ type?: ("success" | "primary" | "warning" | "danger" | ((props: {
49
+ rootStyle: StyleValue;
50
+ rootClass: string;
51
+ showIcon: boolean;
52
+ closable: boolean;
53
+ type: "primary" | "success" | "warning" | "danger";
54
+ color: string;
55
+ background: string;
56
+ }) => "success" | "primary" | "warning" | "danger")) | undefined;
57
+ color?: (string | ((props: {
58
+ rootStyle: StyleValue;
59
+ rootClass: string;
60
+ showIcon: boolean;
61
+ closable: boolean;
62
+ type: "primary" | "success" | "warning" | "danger";
63
+ color: string;
64
+ background: string;
65
+ }) => string)) | undefined;
66
+ background?: (string | ((props: {
67
+ rootStyle: StyleValue;
68
+ rootClass: string;
69
+ showIcon: boolean;
70
+ closable: boolean;
71
+ type: "primary" | "success" | "warning" | "danger";
72
+ color: string;
73
+ background: string;
74
+ }) => string)) | undefined;
13
75
  };
14
76
  export interface AlertSlots {
15
77
  default?(props: Record<string, never>): any;
@@ -5,7 +5,15 @@ declare const __VLS_component: import("vue").DefineComponent<AvatarProps, {}, {}
5
5
  }, string, import("vue").PublicProps, Readonly<AvatarProps> & 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";
14
+ iconSize: string;
15
+ src: string;
16
+ index: number;
9
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
18
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
11
19
  export default _default;
@@ -11,7 +11,105 @@ export interface AvatarProps {
11
11
  index?: number;
12
12
  }
13
13
  export declare const defaultAvatarProps: {
14
- shape: AvatarProps["shape"];
14
+ rootStyle?: (string | false | ((props: {
15
+ rootStyle: StyleValue;
16
+ rootClass: string;
17
+ shape: "circle" | "square";
18
+ size: string;
19
+ iconSize: string;
20
+ background: string;
21
+ color: string;
22
+ src: string;
23
+ index: number;
24
+ }) => string | false | import("vue").CSSProperties | StyleValue[]) | null) | undefined;
25
+ rootClass?: (string | ((props: {
26
+ rootStyle: StyleValue;
27
+ rootClass: string;
28
+ shape: "circle" | "square";
29
+ size: string;
30
+ iconSize: string;
31
+ background: string;
32
+ color: string;
33
+ src: string;
34
+ index: number;
35
+ }) => string)) | undefined;
36
+ shape?: ("circle" | "square" | ((props: {
37
+ rootStyle: StyleValue;
38
+ rootClass: string;
39
+ shape: "circle" | "square";
40
+ size: string;
41
+ iconSize: string;
42
+ background: string;
43
+ color: string;
44
+ src: string;
45
+ index: number;
46
+ }) => "circle" | "square")) | undefined;
47
+ size?: (string | ((props: {
48
+ rootStyle: StyleValue;
49
+ rootClass: string;
50
+ shape: "circle" | "square";
51
+ size: string;
52
+ iconSize: string;
53
+ background: string;
54
+ color: string;
55
+ src: string;
56
+ index: number;
57
+ }) => string)) | undefined;
58
+ iconSize?: (string | ((props: {
59
+ rootStyle: StyleValue;
60
+ rootClass: string;
61
+ shape: "circle" | "square";
62
+ size: string;
63
+ iconSize: string;
64
+ background: string;
65
+ color: string;
66
+ src: string;
67
+ index: number;
68
+ }) => string)) | undefined;
69
+ background?: (string | ((props: {
70
+ rootStyle: StyleValue;
71
+ rootClass: string;
72
+ shape: "circle" | "square";
73
+ size: string;
74
+ iconSize: string;
75
+ background: string;
76
+ color: string;
77
+ src: string;
78
+ index: number;
79
+ }) => string)) | undefined;
80
+ color?: (string | ((props: {
81
+ rootStyle: StyleValue;
82
+ rootClass: string;
83
+ shape: "circle" | "square";
84
+ size: string;
85
+ iconSize: string;
86
+ background: string;
87
+ color: string;
88
+ src: string;
89
+ index: number;
90
+ }) => string)) | undefined;
91
+ src?: (string | ((props: {
92
+ rootStyle: StyleValue;
93
+ rootClass: string;
94
+ shape: "circle" | "square";
95
+ size: string;
96
+ iconSize: string;
97
+ background: string;
98
+ color: string;
99
+ src: string;
100
+ index: number;
101
+ }) => string)) | undefined;
102
+ index?: (number | ((props: {
103
+ rootStyle: StyleValue;
104
+ rootClass: string;
105
+ shape: "circle" | "square";
106
+ size: string;
107
+ iconSize: string;
108
+ background: string;
109
+ color: string;
110
+ src: string;
111
+ index: number;
112
+ }) => number)) | undefined;
15
113
  };
16
114
  export interface AvatarSlots {
17
115
  default?(props: Record<string, never>): any;
@@ -10,7 +10,7 @@
10
10
  width: var(--sar-avatar-width);
11
11
  height: var(--sar-avatar-height);
12
12
  font-size: var(--sar-avatar-font-size);
13
- background-color: var(--sar-avatar-bg);
13
+ background: var(--sar-avatar-bg);
14
14
  border: 1px solid transparent;
15
15
  }
16
16
 
@@ -43,7 +43,7 @@
43
43
  height: 100%;
44
44
  font-size: var(--sar-avatar-remain-font-size);
45
45
  color: var(--sar-avatar-remain-color);
46
- background-color: var(--sar-avatar-remain-bg);
46
+ background: var(--sar-avatar-remain-bg);
47
47
  border-radius: inherit;
48
48
  }
49
49
  }
@@ -5,8 +5,13 @@ declare const __VLS_component: import("vue").DefineComponent<AvatarGroupProps, {
5
5
  }, string, import("vue").PublicProps, Readonly<AvatarGroupProps> & Readonly<{
6
6
  "onRemain-click"?: ((event: any) => any) | undefined;
7
7
  }>, {
8
- showRemain: boolean;
8
+ max: number;
9
+ rootStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
10
+ rootClass: string;
11
+ total: number;
9
12
  coverage: number;
13
+ showRemain: boolean;
14
+ remainText: string | number;
10
15
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
16
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
12
17
  export default _default;
@@ -9,8 +9,69 @@ export interface AvatarGroupProps {
9
9
  remainText?: string | number;
10
10
  }
11
11
  export declare const defaultAvatarGroupProps: {
12
- coverage: number;
13
- showRemain: boolean;
12
+ rootStyle?: (string | false | ((props: {
13
+ rootStyle: StyleValue;
14
+ rootClass: string;
15
+ max: number;
16
+ total: number;
17
+ coverage: number;
18
+ showRemain: boolean;
19
+ remainText: string | number;
20
+ }) => string | false | import("vue").CSSProperties | StyleValue[]) | null) | undefined;
21
+ rootClass?: (string | ((props: {
22
+ rootStyle: StyleValue;
23
+ rootClass: string;
24
+ max: number;
25
+ total: number;
26
+ coverage: number;
27
+ showRemain: boolean;
28
+ remainText: string | number;
29
+ }) => string)) | undefined;
30
+ max?: (number | ((props: {
31
+ rootStyle: StyleValue;
32
+ rootClass: string;
33
+ max: number;
34
+ total: number;
35
+ coverage: number;
36
+ showRemain: boolean;
37
+ remainText: string | number;
38
+ }) => number)) | undefined;
39
+ total?: (number | ((props: {
40
+ rootStyle: StyleValue;
41
+ rootClass: string;
42
+ max: number;
43
+ total: number;
44
+ coverage: number;
45
+ showRemain: boolean;
46
+ remainText: string | number;
47
+ }) => number)) | undefined;
48
+ coverage?: (number | ((props: {
49
+ rootStyle: StyleValue;
50
+ rootClass: string;
51
+ max: number;
52
+ total: number;
53
+ coverage: number;
54
+ showRemain: boolean;
55
+ remainText: string | number;
56
+ }) => number)) | undefined;
57
+ showRemain?: (boolean | ((props: {
58
+ rootStyle: StyleValue;
59
+ rootClass: string;
60
+ max: number;
61
+ total: number;
62
+ coverage: number;
63
+ showRemain: boolean;
64
+ remainText: string | number;
65
+ }) => boolean)) | undefined;
66
+ remainText?: (string | number | ((props: {
67
+ rootStyle: StyleValue;
68
+ rootClass: string;
69
+ max: number;
70
+ total: number;
71
+ coverage: number;
72
+ showRemain: boolean;
73
+ remainText: string | number;
74
+ }) => string | number)) | undefined;
14
75
  };
15
76
  export interface AvatarGroupSlots {
16
77
  default?(props: Record<string, never>): any;
@@ -5,8 +5,12 @@ declare const __VLS_component: import("vue").DefineComponent<BackTopProps, {}, {
5
5
  }, string, import("vue").PublicProps, Readonly<BackTopProps> & Readonly<{
6
6
  onClick?: ((event: any) => any) | undefined;
7
7
  }>, {
8
+ rootStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
9
+ rootClass: string;
10
+ right: string;
8
11
  scrollTop: number;
9
12
  visibleHeight: number;
13
+ bottom: string;
10
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
15
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
12
16
  export default _default;
@@ -9,7 +9,46 @@ export interface BackTopProps {
9
9
  }
10
10
  export declare const defaultBackTopProps: () => {
11
11
  scrollTop: number;
12
- visibleHeight: number;
12
+ rootStyle?: (string | false | ((props: {
13
+ rootStyle: StyleValue;
14
+ rootClass: string;
15
+ scrollTop: number;
16
+ visibleHeight: number;
17
+ right: string;
18
+ bottom: string;
19
+ }) => string | false | import("vue").CSSProperties | StyleValue[]) | null) | undefined;
20
+ rootClass?: (string | ((props: {
21
+ rootStyle: StyleValue;
22
+ rootClass: string;
23
+ scrollTop: number;
24
+ visibleHeight: number;
25
+ right: string;
26
+ bottom: string;
27
+ }) => string)) | undefined;
28
+ visibleHeight?: (number | ((props: {
29
+ rootStyle: StyleValue;
30
+ rootClass: string;
31
+ scrollTop: number;
32
+ visibleHeight: number;
33
+ right: string;
34
+ bottom: string;
35
+ }) => number)) | undefined;
36
+ right?: (string | ((props: {
37
+ rootStyle: StyleValue;
38
+ rootClass: string;
39
+ scrollTop: number;
40
+ visibleHeight: number;
41
+ right: string;
42
+ bottom: string;
43
+ }) => string)) | undefined;
44
+ bottom?: (string | ((props: {
45
+ rootStyle: StyleValue;
46
+ rootClass: string;
47
+ scrollTop: number;
48
+ visibleHeight: number;
49
+ right: string;
50
+ bottom: string;
51
+ }) => string)) | undefined;
13
52
  };
14
53
  export interface BackTopSlots {
15
54
  default?(props: Record<string, never>): any;
@@ -15,7 +15,7 @@
15
15
  border-radius: var(--sar-back-top-border-radius);
16
16
  font-size: var(--sar-back-top-font-size);
17
17
  color: var(--sar-back-top-color);
18
- background-color: var(--sar-back-top-bg);
18
+ background: var(--sar-back-top-bg);
19
19
  box-shadow: var(--sar-back-top-box-shadow);
20
20
  cursor: pointer;
21
21
  pointer-events: none;
@@ -3,6 +3,13 @@ declare function __VLS_template(): Readonly<BadgeSlots> & BadgeSlots;
3
3
  declare const __VLS_component: import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
4
4
  max: number;
5
5
  value: number | string;
6
+ fixed: boolean;
7
+ rootStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
8
+ rootClass: string;
9
+ color: string;
10
+ showZero: boolean;
11
+ textColor: string;
12
+ dot: boolean;
6
13
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
14
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
8
15
  export default _default;