sard-uniapp 1.6.1 → 1.7.1

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 (255) hide show
  1. package/changelog.md +18 -0
  2. package/components/action-sheet/action-sheet.d.ts +2 -2
  3. package/components/action-sheet/action-sheet.vue +2 -2
  4. package/components/action-sheet/common.d.ts +1 -1
  5. package/components/action-sheet/common.js +1 -1
  6. package/components/alert/alert.d.ts +2 -2
  7. package/components/alert/alert.vue +2 -2
  8. package/components/alert/common.d.ts +2 -2
  9. package/components/alert/common.js +1 -1
  10. package/components/avatar/avatar.d.ts +2 -2
  11. package/components/avatar/avatar.vue +2 -2
  12. package/components/avatar/common.d.ts +2 -2
  13. package/components/avatar/common.js +1 -1
  14. package/components/back-top/back-top.vue +2 -2
  15. package/components/back-top/common.d.ts +1 -1
  16. package/components/back-top/common.js +1 -1
  17. package/components/badge/badge.vue +2 -2
  18. package/components/badge/common.d.ts +1 -1
  19. package/components/badge/common.js +1 -1
  20. package/components/button/button.d.ts +7 -7
  21. package/components/button/button.vue +2 -2
  22. package/components/button/common.d.ts +4 -4
  23. package/components/button/common.js +1 -1
  24. package/components/calendar/calendar.d.ts +2 -2
  25. package/components/calendar/calendar.vue +2 -2
  26. package/components/calendar/common.d.ts +2 -2
  27. package/components/calendar/common.js +1 -1
  28. package/components/calendar-input/calendar-input.d.ts +3 -3
  29. package/components/calendar-input/calendar-input.vue +2 -2
  30. package/components/calendar-input/common.d.ts +2 -2
  31. package/components/calendar-input/common.js +1 -1
  32. package/components/cascader/cascader.vue +2 -2
  33. package/components/cascader/common.d.ts +1 -1
  34. package/components/cascader/common.js +1 -1
  35. package/components/cascader-input/cascader-input.d.ts +1 -1
  36. package/components/cascader-input/cascader-input.vue +2 -2
  37. package/components/cascader-input/common.d.ts +1 -1
  38. package/components/cascader-input/common.js +1 -1
  39. package/components/checkbox/checkbox.vue +2 -2
  40. package/components/checkbox/common.d.ts +3 -3
  41. package/components/checkbox/common.js +2 -2
  42. package/components/checkbox-group/checkbox-group.d.ts +3 -3
  43. package/components/checkbox-group/checkbox-group.vue +2 -2
  44. package/components/checkbox-input/checkbox-input.vue +2 -2
  45. package/components/checkbox-input/common.d.ts +1 -1
  46. package/components/checkbox-input/common.js +1 -1
  47. package/components/config/index.d.ts +60 -382
  48. package/components/config/index.js +12 -13
  49. package/components/count-down/common.d.ts +1 -1
  50. package/components/count-down/common.js +1 -1
  51. package/components/count-down/count-down.vue +2 -2
  52. package/components/count-to/common.d.ts +1 -1
  53. package/components/count-to/common.js +1 -1
  54. package/components/count-to/count-to.vue +2 -2
  55. package/components/datetime-picker/common.d.ts +1 -1
  56. package/components/datetime-picker/common.js +1 -1
  57. package/components/datetime-picker/datetime-picker.vue +2 -2
  58. package/components/datetime-picker-input/common.d.ts +1 -1
  59. package/components/datetime-picker-input/common.js +1 -1
  60. package/components/datetime-picker-input/datetime-picker-input.vue +2 -2
  61. package/components/dialog/common.d.ts +2 -2
  62. package/components/dialog/common.js +1 -1
  63. package/components/dialog/dialog.d.ts +5 -5
  64. package/components/dialog/dialog.vue +2 -2
  65. package/components/dialog-agent/common.d.ts +2 -2
  66. package/components/dialog-agent/common.js +3 -3
  67. package/components/dialog-agent/dialog-agent.d.ts +4 -4
  68. package/components/dialog-agent/dialog-agent.vue +2 -2
  69. package/components/dropdown/common.d.ts +3 -3
  70. package/components/dropdown/common.js +2 -2
  71. package/components/dropdown/dropdown.d.ts +4 -4
  72. package/components/dropdown/dropdown.vue +2 -2
  73. package/components/dropdown-item/dropdown-item.vue +2 -2
  74. package/components/empty/common.d.ts +1 -1
  75. package/components/empty/common.js +1 -1
  76. package/components/empty/empty.vue +2 -2
  77. package/components/fab/common.d.ts +1 -1
  78. package/components/fab/common.js +1 -1
  79. package/components/fab/fab.d.ts +1 -1
  80. package/components/fab/fab.vue +2 -2
  81. package/components/floating-bubble/common.d.ts +2 -2
  82. package/components/floating-bubble/common.js +1 -1
  83. package/components/floating-bubble/floating-bubble.d.ts +3 -3
  84. package/components/floating-bubble/floating-bubble.vue +2 -2
  85. package/components/form/common.d.ts +8 -8
  86. package/components/form/common.js +2 -2
  87. package/components/form/form.d.ts +15 -16
  88. package/components/form/form.vue +2 -2
  89. package/components/form-item/form-item.d.ts +1 -1
  90. package/components/form-item/form-item.vue +2 -2
  91. package/components/grid/common.d.ts +2 -2
  92. package/components/grid/common.js +1 -1
  93. package/components/grid/grid.d.ts +2 -2
  94. package/components/grid/grid.vue +2 -2
  95. package/components/icon/common.d.ts +1 -1
  96. package/components/icon/common.js +1 -1
  97. package/components/icon/icon.vue +2 -2
  98. package/components/input/common.d.ts +7 -1
  99. package/components/input/common.js +1 -1
  100. package/components/input/input.d.ts +18 -0
  101. package/components/input/input.vue +2 -2
  102. package/components/keyboard/common.d.ts +2 -2
  103. package/components/keyboard/common.js +1 -1
  104. package/components/keyboard/keyboard.d.ts +3 -3
  105. package/components/keyboard/keyboard.vue +2 -2
  106. package/components/list/common.d.ts +2 -2
  107. package/components/list/common.js +1 -1
  108. package/components/list-item/list-item.d.ts +3 -3
  109. package/components/list-item/list-item.vue +2 -2
  110. package/components/load-more/common.d.ts +1 -1
  111. package/components/load-more/common.js +1 -1
  112. package/components/load-more/load-more.vue +2 -2
  113. package/components/loading/common.d.ts +2 -2
  114. package/components/loading/common.js +1 -1
  115. package/components/loading/loading.d.ts +2 -2
  116. package/components/loading/loading.vue +2 -2
  117. package/components/marquee/common.d.ts +2 -2
  118. package/components/marquee/common.js +1 -1
  119. package/components/marquee/marquee.d.ts +2 -2
  120. package/components/marquee/marquee.vue +2 -2
  121. package/components/menu/common.d.ts +1 -1
  122. package/components/menu/common.js +1 -1
  123. package/components/menu/menu.vue +2 -2
  124. package/components/notice-bar/common.d.ts +2 -2
  125. package/components/notice-bar/common.js +1 -1
  126. package/components/notice-bar/notice-bar.d.ts +3 -3
  127. package/components/notice-bar/notice-bar.vue +2 -2
  128. package/components/notify/common.d.ts +3 -3
  129. package/components/notify/common.js +1 -1
  130. package/components/notify/notify.d.ts +6 -6
  131. package/components/notify/notify.vue +2 -2
  132. package/components/notify-agent/common.d.ts +3 -3
  133. package/components/notify-agent/common.js +3 -3
  134. package/components/notify-agent/notify-agent.d.ts +6 -6
  135. package/components/notify-agent/notify-agent.vue +2 -2
  136. package/components/overlay/common.d.ts +1 -1
  137. package/components/overlay/common.js +1 -1
  138. package/components/overlay/overlay.vue +2 -2
  139. package/components/pagination/common.d.ts +2 -2
  140. package/components/pagination/common.js +1 -1
  141. package/components/pagination/pagination.d.ts +2 -2
  142. package/components/pagination/pagination.vue +2 -2
  143. package/components/password-input/common.d.ts +2 -2
  144. package/components/password-input/common.js +1 -1
  145. package/components/password-input/password-input.d.ts +2 -2
  146. package/components/password-input/password-input.vue +2 -2
  147. package/components/picker/common.d.ts +1 -1
  148. package/components/picker/common.js +1 -1
  149. package/components/picker/picker.vue +2 -2
  150. package/components/picker-input/common.d.ts +1 -1
  151. package/components/picker-input/common.js +3 -3
  152. package/components/picker-input/picker-input.d.ts +1 -1
  153. package/components/picker-input/picker-input.vue +2 -2
  154. package/components/popout/common.d.ts +2 -2
  155. package/components/popout/common.js +1 -1
  156. package/components/popout/popout.d.ts +4 -4
  157. package/components/popout/popout.vue +2 -2
  158. package/components/popover/common.d.ts +4 -4
  159. package/components/popover/common.js +1 -1
  160. package/components/popover/index.d.ts +1 -0
  161. package/components/popover/popover.d.ts +7 -7
  162. package/components/popover/popover.vue +2 -2
  163. package/components/popup/common.d.ts +2 -2
  164. package/components/popup/common.js +1 -1
  165. package/components/popup/popup.d.ts +4 -4
  166. package/components/popup/popup.vue +2 -2
  167. package/components/progress-bar/common.d.ts +1 -1
  168. package/components/progress-bar/common.js +1 -1
  169. package/components/progress-bar/progress-bar.vue +2 -2
  170. package/components/progress-circle/common.d.ts +1 -1
  171. package/components/progress-circle/common.js +1 -1
  172. package/components/progress-circle/progress-circle.vue +2 -2
  173. package/components/pull-down-refresh/common.d.ts +1 -1
  174. package/components/pull-down-refresh/common.js +1 -1
  175. package/components/pull-down-refresh/pull-down-refresh.d.ts +1 -1
  176. package/components/pull-down-refresh/pull-down-refresh.vue +2 -2
  177. package/components/qrcode/common.d.ts +3 -3
  178. package/components/qrcode/common.js +1 -1
  179. package/components/qrcode/qrcode.d.ts +4 -4
  180. package/components/qrcode/qrcode.vue +2 -2
  181. package/components/radio/common.d.ts +2 -2
  182. package/components/radio/common.js +1 -1
  183. package/components/radio-group/radio-group.d.ts +3 -3
  184. package/components/radio-group/radio-group.vue +2 -2
  185. package/components/radio-input/common.d.ts +2 -2
  186. package/components/radio-input/common.js +1 -1
  187. package/components/radio-input/radio-input.d.ts +2 -2
  188. package/components/radio-input/radio-input.vue +2 -2
  189. package/components/rate/common.d.ts +1 -1
  190. package/components/rate/common.js +1 -1
  191. package/components/rate/rate.d.ts +1 -1
  192. package/components/rate/rate.vue +2 -2
  193. package/components/result/common.d.ts +2 -2
  194. package/components/result/common.js +1 -1
  195. package/components/result/result.d.ts +3 -3
  196. package/components/result/result.vue +2 -2
  197. package/components/search/common.d.ts +2 -2
  198. package/components/search/common.js +1 -1
  199. package/components/search/search.d.ts +3 -3
  200. package/components/search/search.vue +2 -2
  201. package/components/share-sheet/common.d.ts +1 -1
  202. package/components/share-sheet/common.js +1 -1
  203. package/components/share-sheet/share-sheet.d.ts +2 -2
  204. package/components/share-sheet/share-sheet.vue +2 -2
  205. package/components/skeleton/common.d.ts +1 -1
  206. package/components/skeleton/common.js +1 -1
  207. package/components/skeleton/skeleton.vue +2 -2
  208. package/components/slider/common.d.ts +1 -1
  209. package/components/slider/common.js +1 -1
  210. package/components/slider/slider.vue +2 -2
  211. package/components/stepper/common.d.ts +3 -3
  212. package/components/stepper/common.js +1 -1
  213. package/components/stepper/stepper.d.ts +5 -5
  214. package/components/stepper/stepper.vue +2 -2
  215. package/components/steps/common.d.ts +2 -2
  216. package/components/steps/common.js +1 -1
  217. package/components/steps/steps.d.ts +2 -2
  218. package/components/steps/steps.vue +2 -2
  219. package/components/swiper-dot/common.d.ts +2 -2
  220. package/components/swiper-dot/common.js +1 -1
  221. package/components/swiper-dot/swiper-dot.d.ts +3 -3
  222. package/components/swiper-dot/swiper-dot.vue +2 -2
  223. package/components/switch/common.d.ts +1 -1
  224. package/components/switch/common.js +1 -1
  225. package/components/switch/switch.vue +2 -2
  226. package/components/tabbar/common.d.ts +1 -1
  227. package/components/tabbar/common.js +1 -1
  228. package/components/tabbar/tabbar.vue +2 -2
  229. package/components/tabs/common.d.ts +2 -2
  230. package/components/tabs/common.js +1 -1
  231. package/components/tabs/tabs.d.ts +3 -3
  232. package/components/tabs/tabs.vue +2 -2
  233. package/components/tag/common.d.ts +3 -3
  234. package/components/tag/common.js +1 -1
  235. package/components/tag/tag.d.ts +5 -5
  236. package/components/tag/tag.vue +2 -2
  237. package/components/toast/common.d.ts +3 -3
  238. package/components/toast/common.js +1 -1
  239. package/components/toast/toast.d.ts +6 -6
  240. package/components/toast/toast.vue +2 -2
  241. package/components/toast-agent/common.d.ts +3 -3
  242. package/components/toast-agent/common.js +3 -3
  243. package/components/toast-agent/toast-agent.d.ts +6 -6
  244. package/components/toast-agent/toast-agent.vue +2 -2
  245. package/components/tree/common.d.ts +2 -2
  246. package/components/tree/common.js +1 -1
  247. package/components/tree/tree.d.ts +3 -3
  248. package/components/tree/tree.vue +2 -2
  249. package/components/upload/common.d.ts +7 -7
  250. package/components/upload/common.js +2 -2
  251. package/components/upload/upload.d.ts +11 -13
  252. package/components/upload/upload.vue +2 -2
  253. package/components/upload-preview/upload-preview.d.ts +2 -2
  254. package/components/upload-preview/upload-preview.vue +2 -2
  255. package/package.json +1 -1
@@ -39,7 +39,7 @@ import {
39
39
  } from "../../utils";
40
40
  import SarIcon from "../icon/icon.vue";
41
41
  import {
42
- noticeBarPropsDefaults
42
+ defaultNoticeBarProps
43
43
  } from "./common";
44
44
  import { useSetTimeout } from "../../use";
45
45
  export default _defineComponent({
@@ -64,7 +64,7 @@ export default _defineComponent({
64
64
  linkable: { type: Boolean, required: false },
65
65
  visible: { type: Boolean, required: false },
66
66
  vertical: { type: Boolean, required: false }
67
- }, noticeBarPropsDefaults),
67
+ }, defaultNoticeBarProps),
68
68
  emits: ["click", "close"],
69
69
  setup(__props, { expose: __expose, emit: __emit }) {
70
70
  const props = __props;
@@ -11,9 +11,9 @@ export interface NotifyProps {
11
11
  timeout?: number;
12
12
  duration?: number;
13
13
  }
14
- export declare const notifyPropsDefaults: {
15
- type: "primary";
16
- position: "top";
14
+ export declare const defaultNotifyProps: {
15
+ type: "success" | "primary" | "warning" | "error" | undefined;
16
+ position: "top" | "bottom" | undefined;
17
17
  duration: number;
18
18
  timeout: number;
19
19
  };
@@ -1,2 +1,2 @@
1
1
  import { defaultConfig } from '../config';
2
- export const notifyPropsDefaults = defaultConfig.notify;
2
+ export const defaultNotifyProps = defaultConfig.notify;
@@ -1,7 +1,7 @@
1
1
  import { type NotifyProps } from './common';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<NotifyProps>, {
3
- type: "primary";
4
- position: "top";
3
+ type: "success" | "primary" | "warning" | "error" | undefined;
4
+ position: "top" | "bottom" | undefined;
5
5
  duration: number;
6
6
  timeout: number;
7
7
  }>, {
@@ -11,17 +11,17 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
11
11
  click: (event: any) => void;
12
12
  "update:visible": (event: any) => void;
13
13
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NotifyProps>, {
14
- type: "primary";
15
- position: "top";
14
+ type: "success" | "primary" | "warning" | "error" | undefined;
15
+ position: "top" | "bottom" | undefined;
16
16
  duration: number;
17
17
  timeout: number;
18
18
  }>>> & {
19
19
  onClick?: ((event: any) => any) | undefined;
20
20
  "onUpdate:visible"?: ((event: any) => any) | undefined;
21
21
  }, {
22
- type: "success" | "primary" | "error" | "warning";
23
- duration: number;
22
+ type: "success" | "primary" | "warning" | "error";
24
23
  position: "top" | "bottom";
24
+ duration: number;
25
25
  timeout: number;
26
26
  }, {}>;
27
27
  export default _default;
@@ -15,7 +15,7 @@ import { computed, ref, watch, nextTick } from "vue";
15
15
  import { classNames, stringifyStyle, createBem } from "../../utils";
16
16
  import { useSetTimeout } from "../../use";
17
17
  import {
18
- notifyPropsDefaults
18
+ defaultNotifyProps
19
19
  } from "./common";
20
20
  import SarPopup from "../popup/popup.vue";
21
21
  export default _defineComponent({
@@ -37,7 +37,7 @@ export default _defineComponent({
37
37
  position: { type: String, required: false },
38
38
  timeout: { type: Number, required: false },
39
39
  duration: { type: Number, required: false }
40
- }, notifyPropsDefaults),
40
+ }, defaultNotifyProps),
41
41
  emits: ["click", "update:visible"],
42
42
  setup(__props, { expose: __expose, emit: __emit }) {
43
43
  const props = __props;
@@ -2,10 +2,10 @@ import { type NotifyProps } from '../notify/common';
2
2
  export interface NotifyAgentProps extends NotifyProps {
3
3
  id?: string;
4
4
  }
5
- export declare const notifyAgentPropsDefaults: {
5
+ export declare const defaultNotifyAgentProps: {
6
6
  id: string;
7
- type: "primary";
8
- position: "top";
7
+ type: "success" | "primary" | "warning" | "error" | undefined;
8
+ position: "top" | "bottom" | undefined;
9
9
  duration: number;
10
10
  timeout: number;
11
11
  };
@@ -1,8 +1,8 @@
1
- import { notifyPropsDefaults } from '../notify/common';
1
+ import { defaultNotifyProps } from '../notify/common';
2
2
  import { defaultConfig } from '../config';
3
3
  import { getAllImperatives, getAvailableImperative, getImperatives, } from '../../use/useImperative';
4
- export const notifyAgentPropsDefaults = {
5
- ...notifyPropsDefaults,
4
+ export const defaultNotifyAgentProps = {
5
+ ...defaultNotifyProps,
6
6
  ...defaultConfig.notifyAgent,
7
7
  };
8
8
  export const imperativeName = 'notify';
@@ -1,21 +1,21 @@
1
1
  import { type NotifyAgentProps } from './common';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<NotifyAgentProps>, {
3
3
  id: string;
4
- type: "primary";
5
- position: "top";
4
+ type: "success" | "primary" | "warning" | "error" | undefined;
5
+ position: "top" | "bottom" | undefined;
6
6
  duration: number;
7
7
  timeout: number;
8
8
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NotifyAgentProps>, {
9
9
  id: string;
10
- type: "primary";
11
- position: "top";
10
+ type: "success" | "primary" | "warning" | "error" | undefined;
11
+ position: "top" | "bottom" | undefined;
12
12
  duration: number;
13
13
  timeout: number;
14
14
  }>>>, {
15
- type: "success" | "primary" | "error" | "warning";
15
+ type: "success" | "primary" | "warning" | "error";
16
16
  id: string;
17
- duration: number;
18
17
  position: "top" | "bottom";
18
+ duration: number;
19
19
  timeout: number;
20
20
  }, {}>;
21
21
  export default _default;
@@ -19,7 +19,7 @@ import { computed, ref } from "vue";
19
19
  import SarNotify from "../notify/notify.vue";
20
20
  import {
21
21
  imperativeName,
22
- notifyAgentPropsDefaults
22
+ defaultNotifyAgentProps
23
23
  } from "./common";
24
24
  import { useImperative } from "../../use/useImperative";
25
25
  export default _defineComponent({
@@ -42,7 +42,7 @@ export default _defineComponent({
42
42
  position: { type: String, required: false },
43
43
  timeout: { type: Number, required: false },
44
44
  duration: { type: Number, required: false }
45
- }, notifyAgentPropsDefaults),
45
+ }, defaultNotifyAgentProps),
46
46
  setup(__props, { expose: __expose }) {
47
47
  __expose();
48
48
  const props = __props;
@@ -8,7 +8,7 @@ export interface OverlayProps {
8
8
  background?: string;
9
9
  transparent?: boolean;
10
10
  }
11
- export declare const overlayPropsDefaults: {
11
+ export declare const defaultOverlayProps: {
12
12
  duration: number;
13
13
  };
14
14
  export interface OverlaySlots {
@@ -1,2 +1,2 @@
1
1
  import { defaultConfig } from '../config';
2
- export const overlayPropsDefaults = defaultConfig.overlay;
2
+ export const defaultOverlayProps = defaultConfig.overlay;
@@ -17,7 +17,7 @@ import { computed, reactive, toRef } from "vue";
17
17
  import { classNames, stringifyStyle, createBem } from "../../utils";
18
18
  import { useTransition } from "../../use";
19
19
  import {
20
- overlayPropsDefaults
20
+ defaultOverlayProps
21
21
  } from "./common";
22
22
  export default _defineComponent({
23
23
  ...{
@@ -35,7 +35,7 @@ export default _defineComponent({
35
35
  duration: { type: Number, required: false },
36
36
  background: { type: String, required: false },
37
37
  transparent: { type: Boolean, required: false }
38
- }, overlayPropsDefaults),
38
+ }, defaultOverlayProps),
39
39
  emits: ["click"],
40
40
  setup(__props, { expose: __expose, emit: __emit }) {
41
41
  __expose();
@@ -12,12 +12,12 @@ export interface PaginationProps {
12
12
  ellipsis?: boolean;
13
13
  multiCount?: number;
14
14
  }
15
- export declare const paginationPropsDefaults: {
15
+ export declare const defaultPaginationProps: {
16
16
  total: number;
17
17
  pageSize: number;
18
18
  current: number;
19
19
  pageButtonCount: number;
20
- type: "multi";
20
+ type: "multi" | "simple" | undefined;
21
21
  multiCount: number;
22
22
  };
23
23
  export interface PaginationSlots {
@@ -1,5 +1,5 @@
1
1
  import { defaultConfig } from '../config';
2
- export const paginationPropsDefaults = defaultConfig.pagination;
2
+ export const defaultPaginationProps = defaultConfig.pagination;
3
3
  /**
4
4
  * @description: 获取页面范围
5
5
  * @param {number} current 当前页码
@@ -4,7 +4,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
4
4
  pageSize: number;
5
5
  current: number;
6
6
  pageButtonCount: number;
7
- type: "multi";
7
+ type: "multi" | "simple" | undefined;
8
8
  multiCount: number;
9
9
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
10
  "update:current": (page: number) => void;
@@ -13,7 +13,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
13
13
  pageSize: number;
14
14
  current: number;
15
15
  pageButtonCount: number;
16
- type: "multi";
16
+ type: "multi" | "simple" | undefined;
17
17
  multiCount: number;
18
18
  }>>> & {
19
19
  "onUpdate:current"?: ((page: number) => any) | undefined;
@@ -53,7 +53,7 @@ import { classNames, stringifyStyle, createBem, minmax } from "../../utils";
53
53
  import { useTranslate } from "../locale";
54
54
  import {
55
55
  getPageRange,
56
- paginationPropsDefaults
56
+ defaultPaginationProps
57
57
  } from "./common";
58
58
  export default _defineComponent({
59
59
  ...{
@@ -75,7 +75,7 @@ export default _defineComponent({
75
75
  type: { type: String, required: false },
76
76
  ellipsis: { type: Boolean, required: false },
77
77
  multiCount: { type: Number, required: false }
78
- }, paginationPropsDefaults),
78
+ }, defaultPaginationProps),
79
79
  emits: ["update:current"],
80
80
  setup(__props, { expose: __expose, emit: __emit }) {
81
81
  __expose();
@@ -13,9 +13,9 @@ export interface PasswordInputProps {
13
13
  readonly?: boolean;
14
14
  validateEvent?: boolean;
15
15
  }
16
- export declare const passwordInputPropsDefaults: {
16
+ export declare const defaultPasswordInputProps: {
17
17
  length: number;
18
- type: "border";
18
+ type: "border" | "underline" | undefined;
19
19
  validateEvent: boolean;
20
20
  };
21
21
  export interface PasswordInputEmits {
@@ -1,2 +1,2 @@
1
1
  import { defaultConfig } from '../config';
2
- export const passwordInputPropsDefaults = defaultConfig.passwordInput;
2
+ export const defaultPasswordInputProps = defaultConfig.passwordInput;
@@ -1,14 +1,14 @@
1
1
  import { type PasswordInputProps } from './common';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PasswordInputProps>, {
3
3
  length: number;
4
- type: "border";
4
+ type: "border" | "underline" | undefined;
5
5
  validateEvent: boolean;
6
6
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
7
  "update:model-value": (value: string) => void;
8
8
  "updat:focused": (focused: boolean) => void;
9
9
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PasswordInputProps>, {
10
10
  length: number;
11
- type: "border";
11
+ type: "border" | "underline" | undefined;
12
12
  validateEvent: boolean;
13
13
  }>>> & {
14
14
  "onUpdate:model-value"?: ((value: string) => any) | undefined;
@@ -38,7 +38,7 @@ import { computed, ref, watch } from "vue";
38
38
  import { classNames, stringifyStyle, createBem } from "../../utils";
39
39
  import { useFormContext, useFormItemContext } from "../form/common";
40
40
  import {
41
- passwordInputPropsDefaults
41
+ defaultPasswordInputProps
42
42
  } from "./common";
43
43
  export default _defineComponent({
44
44
  ...{
@@ -61,7 +61,7 @@ export default _defineComponent({
61
61
  disabled: { type: Boolean, required: false },
62
62
  readonly: { type: Boolean, required: false },
63
63
  validateEvent: { type: Boolean, required: false }
64
- }, passwordInputPropsDefaults),
64
+ }, defaultPasswordInputProps),
65
65
  emits: ["update:model-value", "updat:focused"],
66
66
  setup(__props, { expose: __expose, emit: __emit }) {
67
67
  __expose();
@@ -16,7 +16,7 @@ export interface PickerProps {
16
16
  modelValue?: any;
17
17
  immediateChange?: boolean;
18
18
  }
19
- export declare const pickerPropsDefaults: {
19
+ export declare const defaultPickerProps: {
20
20
  columns: () => never[];
21
21
  immediateChange: boolean;
22
22
  };
@@ -1,5 +1,5 @@
1
1
  import { defaultConfig } from '../config';
2
- export const pickerPropsDefaults = {
2
+ export const defaultPickerProps = {
3
3
  ...defaultConfig.picker,
4
4
  columns: () => [],
5
5
  };
@@ -37,7 +37,7 @@ import {
37
37
  getOptionsByIndexes,
38
38
  getMaySingleValueByOptions,
39
39
  getValueOrLabelByOption,
40
- pickerPropsDefaults
40
+ defaultPickerProps
41
41
  } from "./common";
42
42
  export default _defineComponent({
43
43
  ...{
@@ -54,7 +54,7 @@ export default _defineComponent({
54
54
  optionKeys: { type: Object, required: false },
55
55
  modelValue: { type: null, required: false },
56
56
  immediateChange: { type: Boolean, required: false }
57
- }, pickerPropsDefaults),
57
+ }, defaultPickerProps),
58
58
  emits: ["update:model-value"],
59
59
  setup(__props, { expose: __expose, emit: __emit }) {
60
60
  __expose();
@@ -5,7 +5,7 @@ export interface PickerInputProps extends PickerProps, Omit<PopoutInputProps, 'm
5
5
  title?: string;
6
6
  validateEvent?: boolean;
7
7
  }
8
- export declare const pickerInputPropsDefaults: {
8
+ export declare const defaultPickerInputProps: {
9
9
  validateEvent: boolean;
10
10
  columns: () => never[];
11
11
  immediateChange: boolean;
@@ -1,6 +1,6 @@
1
- import { pickerPropsDefaults } from '../picker/common';
1
+ import { defaultPickerProps } from '../picker/common';
2
2
  import { defaultConfig } from '../config';
3
- export const pickerInputPropsDefaults = {
4
- ...pickerPropsDefaults,
3
+ export const defaultPickerInputProps = {
4
+ ...defaultPickerProps,
5
5
  ...defaultConfig.pickerInput,
6
6
  };
@@ -15,8 +15,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
15
15
  "onUpdate:model-value"?: ((value: any) => any) | undefined;
16
16
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
17
17
  }, {
18
- validateEvent: boolean;
19
18
  columns: PickerOption[] | PickerOption[][];
19
+ validateEvent: boolean;
20
20
  immediateChange: boolean;
21
21
  }, {}>;
22
22
  export default _default;
@@ -46,7 +46,7 @@ import {
46
46
  } from "../picker/common";
47
47
  import { isNullish, toArray } from "../../utils";
48
48
  import {
49
- pickerInputPropsDefaults
49
+ defaultPickerInputProps
50
50
  } from "./common";
51
51
  import { useFormItemContext } from "../form/common";
52
52
  export default _defineComponent({
@@ -73,7 +73,7 @@ export default _defineComponent({
73
73
  clearable: { type: Boolean, required: false },
74
74
  loading: { type: Boolean, required: false },
75
75
  multiline: { type: Boolean, required: false }
76
- }, pickerInputPropsDefaults),
76
+ }, defaultPickerInputProps),
77
77
  emits: ["update:visible", "update:model-value"],
78
78
  setup(__props, { expose: __expose, emit: __emit }) {
79
79
  __expose();
@@ -17,8 +17,8 @@ export interface PopoutProps {
17
17
  overlayClosable?: boolean;
18
18
  beforeClose?: (type: 'close' | 'cancel' | 'confirm') => boolean | undefined | Promise<any>;
19
19
  }
20
- export declare const popoutPropsDefaults: {
21
- type: "loose";
20
+ export declare const defaultPopoutProps: {
21
+ type: "loose" | "compact" | undefined;
22
22
  showConfirm: boolean;
23
23
  showClose: boolean;
24
24
  showFooter: boolean;
@@ -1,2 +1,2 @@
1
1
  import { defaultConfig } from '../config';
2
- export const popoutPropsDefaults = defaultConfig.popout;
2
+ export const defaultPopoutProps = defaultConfig.popout;
@@ -1,7 +1,7 @@
1
1
  import { type TransitionHookName } from '../../use';
2
2
  import { type PopoutProps, type PopoutSlots } from './common';
3
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PopoutProps>, {
4
- type: "loose";
4
+ type: "loose" | "compact" | undefined;
5
5
  showConfirm: boolean;
6
6
  showClose: boolean;
7
7
  showFooter: boolean;
@@ -14,7 +14,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
14
14
  confirm: () => void;
15
15
  "visible-hook": (name: TransitionHookName) => void;
16
16
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PopoutProps>, {
17
- type: "loose";
17
+ type: "loose" | "compact" | undefined;
18
18
  showConfirm: boolean;
19
19
  showClose: boolean;
20
20
  showFooter: boolean;
@@ -22,14 +22,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
22
22
  duration: number;
23
23
  }>>> & {
24
24
  "onVisible-hook"?: ((name: TransitionHookName) => any) | undefined;
25
- onCancel?: (() => any) | undefined;
26
25
  onClose?: (() => any) | undefined;
26
+ onCancel?: (() => any) | undefined;
27
27
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
28
28
  onConfirm?: (() => any) | undefined;
29
29
  }, {
30
30
  type: "loose" | "compact";
31
- overlayClosable: boolean;
32
31
  duration: number;
32
+ overlayClosable: boolean;
33
33
  showConfirm: boolean;
34
34
  showClose: boolean;
35
35
  showFooter: boolean;
@@ -95,7 +95,7 @@ import SarIcon from "../icon/icon.vue";
95
95
  import { usePopupVisibleHookProvide } from "../popup/common";
96
96
  import { useTranslate } from "../locale";
97
97
  import {
98
- popoutPropsDefaults
98
+ defaultPopoutProps
99
99
  } from "./common";
100
100
  export default _defineComponent({
101
101
  ...{
@@ -121,7 +121,7 @@ export default _defineComponent({
121
121
  showFooter: { type: Boolean, required: false },
122
122
  overlayClosable: { type: Boolean, required: false },
123
123
  beforeClose: { type: Function, required: false }
124
- }, popoutPropsDefaults),
124
+ }, defaultPopoutProps),
125
125
  emits: ["update:visible", "close", "cancel", "confirm", "visible-hook"],
126
126
  setup(__props, { expose: __expose, emit: __emit }) {
127
127
  __expose();
@@ -17,10 +17,10 @@ export interface PopoverProps {
17
17
  controller?: PopoverController;
18
18
  duration?: number;
19
19
  }
20
- export declare const popoverPropsDefaults: {
21
- position: "bottom";
22
- direction: "vertical";
23
- theme: "light";
20
+ export declare const defaultPopoverProps: {
21
+ position: Position | undefined;
22
+ direction: "vertical" | "horizontal" | undefined;
23
+ theme: "light" | "dark" | undefined;
24
24
  refGap: number;
25
25
  viewportGap: number;
26
26
  transparent: boolean;
@@ -1,3 +1,3 @@
1
1
  import { defaultConfig } from '../config';
2
- export const popoverPropsDefaults = defaultConfig.popover;
2
+ export const defaultPopoverProps = defaultConfig.popover;
3
3
  export const popoverContextSymbol = Symbol('popover-context');
@@ -1,3 +1,4 @@
1
+ export type { PopoverProps, PopoverSlots, PopoverEmits, ReferenceExpose, PopoverReferenceProps, PopoverReferenceSlots, PopoverReferenceEmits, PopoverContext, } from './common';
1
2
  import type { Position } from './utils';
2
3
  export { usePopover } from './usePopover';
3
4
  export type PopoverPosition = Position;
@@ -1,9 +1,9 @@
1
1
  import { type MenuOption } from '../menu/common';
2
2
  import { type PopoverProps, type PopoverSlots } from './common';
3
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PopoverProps>, {
4
- position: "bottom";
5
- direction: "vertical";
6
- theme: "light";
4
+ position: import("./utils").Position | undefined;
5
+ direction: "vertical" | "horizontal" | undefined;
6
+ theme: "light" | "dark" | undefined;
7
7
  refGap: number;
8
8
  viewportGap: number;
9
9
  transparent: boolean;
@@ -12,9 +12,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
12
12
  "update:visible": (visible: boolean) => void;
13
13
  select: (option: MenuOption) => void;
14
14
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PopoverProps>, {
15
- position: "bottom";
16
- direction: "vertical";
17
- theme: "light";
15
+ position: import("./utils").Position | undefined;
16
+ direction: "vertical" | "horizontal" | undefined;
17
+ theme: "light" | "dark" | undefined;
18
18
  refGap: number;
19
19
  viewportGap: number;
20
20
  transparent: boolean;
@@ -23,10 +23,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
23
23
  onSelect?: ((option: MenuOption) => any) | undefined;
24
24
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
25
25
  }, {
26
- duration: number;
27
26
  theme: "light" | "dark";
28
27
  direction: "vertical" | "horizontal";
29
28
  position: import("./utils").Position;
29
+ duration: number;
30
30
  refGap: number;
31
31
  viewportGap: number;
32
32
  transparent: boolean;
@@ -52,7 +52,7 @@ import SarOverlay from "../overlay/overlay.vue";
52
52
  import SarMenu from "../menu/menu.vue";
53
53
  import {
54
54
  popoverContextSymbol,
55
- popoverPropsDefaults
55
+ defaultPopoverProps
56
56
  } from "./common";
57
57
  export default _defineComponent({
58
58
  ...{
@@ -75,7 +75,7 @@ export default _defineComponent({
75
75
  transparent: { type: Boolean, required: false },
76
76
  controller: { type: Object, required: false },
77
77
  duration: { type: Number, required: false }
78
- }, popoverPropsDefaults),
78
+ }, defaultPopoverProps),
79
79
  emits: ["update:visible", "select"],
80
80
  setup(__props, { expose: __expose, emit: __emit }) {
81
81
  __expose();
@@ -12,9 +12,9 @@ export interface PopupProps {
12
12
  background?: string;
13
13
  transparent?: boolean;
14
14
  }
15
- export declare const popupPropsDefaults: {
15
+ export declare const defaultPopupProps: {
16
16
  duration: number;
17
- effect: "fade";
17
+ effect: "fade" | "slide-top" | "slide-right" | "slide-bottom" | "slide-left" | "zoom" | undefined;
18
18
  overlay: boolean;
19
19
  };
20
20
  export interface PopupSlots {
@@ -1,6 +1,6 @@
1
1
  import { inject, ref, provide, watch, reactive } from 'vue';
2
2
  import { defaultConfig } from '../config';
3
- export const popupPropsDefaults = defaultConfig.popup;
3
+ export const defaultPopupProps = defaultConfig.popup;
4
4
  export const popupContextSymbol = Symbol('popup-context');
5
5
  export function usePopupVisibleHookProvide() {
6
6
  const visibleState = ref();
@@ -1,7 +1,7 @@
1
1
  import { type PopupProps, type PopupSlots } from './common';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PopupProps>, {
3
3
  duration: number;
4
- effect: "fade";
4
+ effect: "fade" | "slide-top" | "slide-right" | "slide-bottom" | "slide-left" | "zoom" | undefined;
5
5
  overlay: boolean;
6
6
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
7
  "overlay-click": (event: any) => void;
@@ -16,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
16
16
  "visible-hook": (name: import("../../use").TransitionHookName) => void;
17
17
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PopupProps>, {
18
18
  duration: number;
19
- effect: "fade";
19
+ effect: "fade" | "slide-top" | "slide-right" | "slide-bottom" | "slide-left" | "zoom" | undefined;
20
20
  overlay: boolean;
21
21
  }>>> & {
22
22
  "onBefore-enter"?: (() => any) | undefined;
@@ -27,12 +27,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
27
27
  onLeave?: (() => any) | undefined;
28
28
  "onAfter-leave"?: (() => any) | undefined;
29
29
  "onLeave-cancelled"?: (() => any) | undefined;
30
- "onOverlay-click"?: ((event: any) => any) | undefined;
31
30
  "onVisible-hook"?: ((name: import("../../use").TransitionHookName) => any) | undefined;
31
+ "onOverlay-click"?: ((event: any) => any) | undefined;
32
32
  }, {
33
33
  effect: "fade" | "slide-top" | "slide-right" | "slide-bottom" | "slide-left" | "zoom";
34
- overlay: boolean;
35
34
  duration: number;
35
+ overlay: boolean;
36
36
  }, {}>, Readonly<PopupSlots> & PopupSlots>;
37
37
  export default _default;
38
38
  type __VLS_WithDefaults<P, D> = {
@@ -26,7 +26,7 @@ import { classNames, stringifyStyle, createBem } from "../../utils";
26
26
  import { useTransition, useZIndex } from "../../use";
27
27
  import SarOverlay from "../overlay/overlay.vue";
28
28
  import {
29
- popupPropsDefaults,
29
+ defaultPopupProps,
30
30
  usePopupVisibleHookProvide
31
31
  } from "./common";
32
32
  export default _defineComponent({
@@ -48,7 +48,7 @@ export default _defineComponent({
48
48
  overlayStyle: { type: String, required: false },
49
49
  background: { type: String, required: false },
50
50
  transparent: { type: Boolean, required: false }
51
- }, popupPropsDefaults),
51
+ }, defaultPopupProps),
52
52
  emits: ["overlay-click", "before-enter", "enter", "after-enter", "enter-cancelled", "before-leave", "leave", "after-leave", "leave-cancelled", "visible-hook"],
53
53
  setup(__props, { expose: __expose, emit: __emit }) {
54
54
  __expose();