straw-ui-vue 0.1.41 → 0.1.43

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 (141) hide show
  1. package/dist/components/st-addon/types/st-addon.d.ts +27 -27
  2. package/dist/components/st-button/types/st-button-group.d.ts +45 -45
  3. package/dist/components/st-button/types/st-button.d.ts +79 -79
  4. package/dist/components/st-cascade/desktop/st-cascade-desktop.d.ts +3 -3
  5. package/dist/components/st-cascade/desktop/types/st-cascade-desktop.d.ts +85 -85
  6. package/dist/components/st-cascade/index.d.ts +52 -52
  7. package/dist/components/st-cascade/phone/st-cascade-phone.d.ts +5 -5
  8. package/dist/components/st-cascade/phone/types/st-cascade-phone.d.ts +107 -107
  9. package/dist/components/st-cascade/st-cascade.d.ts +4 -4
  10. package/dist/components/st-cascade/types/st-cascade.d.ts +1 -1
  11. package/dist/components/st-checkbox/types/st-checkbox-group.d.ts +67 -67
  12. package/dist/components/st-checkbox/types/st-checkbox.d.ts +61 -61
  13. package/dist/components/st-date-picker/date-utils.d.ts +186 -0
  14. package/dist/components/st-date-picker/desktop/st-date-picker-desktop.d.ts +49 -0
  15. package/dist/components/st-date-picker/desktop/st-date-picker-panel.d.ts +34 -0
  16. package/dist/components/st-date-picker/desktop/st-datetime-picker-desktop.d.ts +45 -0
  17. package/dist/components/st-date-picker/desktop/st-datetime-picker-panel.d.ts +46 -0
  18. package/dist/components/st-date-picker/desktop/st-time-picker-desktop.d.ts +52 -0
  19. package/dist/components/st-date-picker/desktop/st-time-picker-panel.d.ts +44 -0
  20. package/dist/components/st-date-picker/desktop/types/index.d.ts +6 -0
  21. package/dist/components/st-date-picker/desktop/types/st-date-picker-desktop.d.ts +91 -0
  22. package/dist/components/st-date-picker/desktop/types/st-date-picker-panel.d.ts +70 -0
  23. package/dist/components/st-date-picker/desktop/types/st-datetime-picker-desktop.d.ts +92 -0
  24. package/dist/components/st-date-picker/desktop/types/st-datetime-picker-panel.d.ts +115 -0
  25. package/dist/components/st-date-picker/desktop/types/st-time-picker-desktop.d.ts +106 -0
  26. package/dist/components/st-date-picker/desktop/types/st-time-picker-panel.d.ts +86 -0
  27. package/dist/components/st-date-picker/index.d.ts +2792 -119
  28. package/dist/components/st-date-picker/phone/st-date-picker-phone.d.ts +43 -0
  29. package/dist/components/st-date-picker/phone/st-datetime-picker-phone.d.ts +49 -0
  30. package/dist/components/st-date-picker/phone/st-time-picker-phone.d.ts +52 -0
  31. package/dist/components/st-date-picker/phone/types/index.d.ts +3 -0
  32. package/dist/components/st-date-picker/phone/types/st-date-picker-phone.d.ts +44 -0
  33. package/dist/components/st-date-picker/phone/types/st-datetime-picker-phone.d.ts +51 -0
  34. package/dist/components/st-date-picker/phone/types/st-time-picker-phone.d.ts +44 -0
  35. package/dist/components/st-date-picker/picker-classes.d.ts +37 -0
  36. package/dist/components/st-date-picker/shortcuts.d.ts +18 -0
  37. package/dist/components/st-date-picker/st-date-picker.d.ts +9 -22
  38. package/dist/components/st-date-picker/st-datetime-picker.d.ts +29 -0
  39. package/dist/components/st-date-picker/st-picker-cell-grid.d.ts +20 -0
  40. package/dist/components/st-date-picker/st-picker-cell.d.ts +31 -0
  41. package/dist/components/st-date-picker/st-picker-footer.d.ts +37 -0
  42. package/dist/components/st-date-picker/st-picker-grid.d.ts +20 -0
  43. package/dist/components/st-date-picker/st-picker-header.d.ts +37 -0
  44. package/dist/components/st-date-picker/st-picker-quick-row.d.ts +11 -0
  45. package/dist/components/st-date-picker/st-picker-tabs.d.ts +22 -0
  46. package/dist/components/st-date-picker/st-picker-time-column.d.ts +12 -0
  47. package/dist/components/st-date-picker/st-picker-time-columns.d.ts +17 -0
  48. package/dist/components/st-date-picker/st-picker-trigger.d.ts +27 -0
  49. package/dist/components/st-date-picker/st-picker-week.d.ts +7 -0
  50. package/dist/components/st-date-picker/st-picker-wheel-column.d.ts +13 -0
  51. package/dist/components/st-date-picker/st-picker-wheel.d.ts +23 -0
  52. package/dist/components/st-date-picker/st-time-picker.d.ts +29 -0
  53. package/dist/components/st-date-picker/types/index.d.ts +9 -2
  54. package/dist/components/st-date-picker/types/st-date-picker.d.ts +33 -103
  55. package/dist/components/st-date-picker/types/st-datetime-picker.d.ts +33 -0
  56. package/dist/components/st-date-picker/types/st-picker-atoms.d.ts +485 -0
  57. package/dist/components/st-date-picker/types/st-picker-shared.d.ts +154 -0
  58. package/dist/components/st-date-picker/types/st-time-picker.d.ts +32 -0
  59. package/dist/components/st-date-picker/usePickerDate.d.ts +86 -0
  60. package/dist/components/st-date-picker/usePickerModel.d.ts +28 -0
  61. package/dist/components/st-date-picker/usePickerTime.d.ts +59 -0
  62. package/dist/components/st-dialog/desktop/st-dialog-desktop-group.d.ts +18 -0
  63. package/dist/components/st-dialog/desktop/st-dialog-desktop.d.ts +32 -0
  64. package/dist/components/st-dialog/desktop/types/index.d.ts +2 -0
  65. package/dist/components/st-dialog/desktop/types/st-dialog-desktop-group.d.ts +21 -0
  66. package/dist/components/st-dialog/desktop/types/st-dialog-desktop.d.ts +25 -0
  67. package/dist/components/st-dialog/index.d.ts +418 -6
  68. package/dist/components/st-dialog/phone/st-dialog-phone-group.d.ts +22 -0
  69. package/dist/components/st-dialog/phone/st-dialog-phone.d.ts +31 -0
  70. package/dist/components/st-dialog/phone/types/index.d.ts +2 -0
  71. package/dist/components/st-dialog/phone/types/st-dialog-phone-group.d.ts +18 -0
  72. package/dist/components/st-dialog/phone/types/st-dialog-phone.d.ts +18 -0
  73. package/dist/components/st-dialog/st-dialog-group.d.ts +4 -2
  74. package/dist/components/st-dialog/st-dialog.d.ts +2 -0
  75. package/dist/components/st-dialog/types/index.d.ts +13 -10
  76. package/dist/components/st-dialog/types/st-dialog-group.d.ts +31 -24
  77. package/dist/components/st-dialog/types/st-dialog.d.ts +89 -76
  78. package/dist/components/st-drawer/desktop/st-drawer-desktop-group.d.ts +27 -0
  79. package/dist/components/st-drawer/desktop/st-drawer-desktop.d.ts +30 -0
  80. package/dist/components/st-drawer/desktop/types/index.d.ts +2 -0
  81. package/dist/components/st-drawer/desktop/types/st-drawer-desktop-group.d.ts +26 -0
  82. package/dist/components/st-drawer/desktop/types/st-drawer-desktop.d.ts +15 -0
  83. package/dist/components/st-drawer/index.d.ts +478 -8
  84. package/dist/components/st-drawer/phone/st-drawer-phone-group.d.ts +28 -0
  85. package/dist/components/st-drawer/phone/st-drawer-phone.d.ts +31 -0
  86. package/dist/components/st-drawer/phone/types/index.d.ts +2 -0
  87. package/dist/components/st-drawer/phone/types/st-drawer-phone-group.d.ts +28 -0
  88. package/dist/components/st-drawer/phone/types/st-drawer-phone.d.ts +18 -0
  89. package/dist/components/st-drawer/st-drawer-group.d.ts +3 -1
  90. package/dist/components/st-drawer/st-drawer.d.ts +3 -1
  91. package/dist/components/st-drawer/types/index.d.ts +13 -9
  92. package/dist/components/st-drawer/types/st-drawer-group.d.ts +30 -32
  93. package/dist/components/st-drawer/types/st-drawer.d.ts +93 -72
  94. package/dist/components/st-input/types/st-input-group.d.ts +27 -27
  95. package/dist/components/st-input/types/st-input-number.d.ts +59 -59
  96. package/dist/components/st-input/types/st-input.d.ts +99 -98
  97. package/dist/components/st-input/types/st-textarea.d.ts +79 -79
  98. package/dist/components/st-menu/index.d.ts +6 -6
  99. package/dist/components/st-menu/st-menu-item.d.ts +1 -1
  100. package/dist/components/st-pagination/types/st-pagination.d.ts +86 -86
  101. package/dist/components/st-radio/types/st-radio-context.d.ts +18 -18
  102. package/dist/components/st-radio/types/st-radio-group.d.ts +69 -69
  103. package/dist/components/st-radio/types/st-radio.d.ts +48 -48
  104. package/dist/components/st-scrollbar/types/st-scrollbar-group.d.ts +30 -30
  105. package/dist/components/st-scrollbar/types/st-scrollbar.d.ts +130 -130
  106. package/dist/components/st-select/desktop/types/st-select-desktop.d.ts +95 -95
  107. package/dist/components/st-select/index.d.ts +6 -6
  108. package/dist/components/st-select/phone/types/st-select-phone-footer.d.ts +38 -38
  109. package/dist/components/st-select/phone/types/st-select-phone.d.ts +86 -86
  110. package/dist/components/st-select/st-select-container.d.ts +1 -1
  111. package/dist/components/st-select/types/st-select-trigger.d.ts +29 -29
  112. package/dist/components/st-select/types/st-select.d.ts +53 -53
  113. package/dist/components/st-switch/types/st-switch.d.ts +56 -56
  114. package/dist/components/st-table/types/st-table-group.d.ts +1 -1
  115. package/dist/components/st-table/useTableDrag.d.ts +3 -1
  116. package/dist/components/st-tabs/types/st-tabs.d.ts +67 -67
  117. package/dist/components/st-tag/types/st-tag.d.ts +46 -46
  118. package/dist/components/st-toggle/types/st-toggle.d.ts +57 -57
  119. package/dist/global.d.ts +217 -190
  120. package/dist/index.d.ts +61 -9
  121. package/dist/straw-ui.js +10644 -5526
  122. package/dist/types.d.ts +5 -3
  123. package/dist/utils/back-stack.d.ts +26 -0
  124. package/dist/utils/z-index.d.ts +1 -1
  125. package/dist/utils.js +1 -1
  126. package/package.json +8 -8
  127. package/dist/components/st-date-picker/st-date-picker-panel.d.ts +0 -24
  128. package/dist/components/st-date-picker/types/st-date-picker-panel.d.ts +0 -62
  129. package/dist/components/st-datetime-picker/index.d.ts +0 -206
  130. package/dist/components/st-datetime-picker/st-datetime-picker-panel.d.ts +0 -25
  131. package/dist/components/st-datetime-picker/st-datetime-picker.d.ts +0 -43
  132. package/dist/components/st-datetime-picker/types/index.d.ts +0 -2
  133. package/dist/components/st-datetime-picker/types/st-datetime-picker-panel.d.ts +0 -64
  134. package/dist/components/st-datetime-picker/types/st-datetime-picker.d.ts +0 -103
  135. package/dist/components/st-time-picker/index.d.ts +0 -232
  136. package/dist/components/st-time-picker/st-time-picker-panel.d.ts +0 -33
  137. package/dist/components/st-time-picker/st-time-picker.d.ts +0 -46
  138. package/dist/components/st-time-picker/types/index.d.ts +0 -4
  139. package/dist/components/st-time-picker/types/st-time-picker-panel.d.ts +0 -52
  140. package/dist/components/st-time-picker/types/st-time-picker-shared.d.ts +0 -25
  141. package/dist/components/st-time-picker/types/st-time-picker.d.ts +0 -78
@@ -1,27 +1,27 @@
1
- import type { VNodeChild } from 'vue';
2
- import type { StSize } from '@/types/size.d.ts';
3
-
4
- /** StAddon 对齐类型 */
5
- export type StAddonAlign = 'inline-start' | 'inline-end' | 'block-start' | 'block-end';
6
-
7
- /** StAddon 附加组件属性接口 */
8
- export interface StAddonProps {
9
- /** 对齐方式 */
10
- align?: StAddonAlign;
11
- /** 尺寸(不传则不产出尺寸类,完全交由外层控制) */
12
- size?: StSize;
13
- }
14
-
15
- /** StAddon 组件插槽接口 */
16
- export interface StAddonSlots {
17
- /** 默认插槽 */
18
- default?: () => VNodeChild;
19
- }
20
-
21
- /** StAddon 事件类型 */
22
- export interface StAddonEmits {
23
- /** 点击事件 */
24
- click: [event: MouseEvent];
25
- }
26
-
27
- export {};
1
+ import type { VNodeChild } from 'vue';
2
+ import type { StSize } from '../../../types/size.d.ts';
3
+
4
+ /** StAddon 对齐类型 */
5
+ export type StAddonAlign = 'inline-start' | 'inline-end' | 'block-start' | 'block-end';
6
+
7
+ /** StAddon 附加组件属性接口 */
8
+ export interface StAddonProps {
9
+ /** 对齐方式 */
10
+ align?: StAddonAlign;
11
+ /** 尺寸(不传则不产出尺寸类,完全交由外层控制) */
12
+ size?: StSize;
13
+ }
14
+
15
+ /** StAddon 组件插槽接口 */
16
+ export interface StAddonSlots {
17
+ /** 默认插槽 */
18
+ default?: () => VNodeChild;
19
+ }
20
+
21
+ /** StAddon 事件类型 */
22
+ export interface StAddonEmits {
23
+ /** 点击事件 */
24
+ click: [event: MouseEvent];
25
+ }
26
+
27
+ export {};
@@ -1,45 +1,45 @@
1
- import type { ComputedRef, VNodeChild } from 'vue';
2
- import type { StColor } from '@/types/color.d.ts';
3
- import type { StSize } from '@/types/size.d.ts';
4
- import type { StButtonShape, StButtonVariant } from './st-button.d.ts';
5
-
6
- /** 按钮组排列方向类型 */
7
- export type StButtonGroupDirection = 'horizontal' | 'vertical';
8
-
9
- /** 按钮组注入上下文接口 */
10
- export interface StButtonGroupContext {
11
- color: ComputedRef<StColor>;
12
- variant: ComputedRef<StButtonVariant>;
13
- shape: ComputedRef<StButtonShape>;
14
- size: ComputedRef<StSize>;
15
- disabled: ComputedRef<boolean>;
16
- loading: ComputedRef<boolean>;
17
- inGroup: ComputedRef<boolean>;
18
- direction: ComputedRef<StButtonGroupDirection>;
19
- }
20
- /** 按钮组组件属性 */
21
- export interface StButtonGroupProps {
22
- /** 按钮语义色 */
23
- color?: StColor;
24
- /** 按钮填充层次 */
25
- variant?: StButtonVariant;
26
- /** 按钮形态 */
27
- shape?: StButtonShape;
28
- /** 按钮尺寸 */
29
- size?: StSize;
30
- /** 是否禁用 */
31
- disabled?: boolean;
32
- /** 是否显示加载状态 */
33
- loading?: boolean;
34
- /** 排列方向 */
35
- direction?: StButtonGroupDirection;
36
- }
37
- /** 按钮组组件插槽 */
38
- export interface StButtonGroupSlots {
39
- /** 默认插槽 */
40
- default?: () => VNodeChild;
41
- }
42
- /** 按钮组组件事件 */
43
- export interface StButtonGroupEmits {}
44
-
45
- export {};
1
+ import type { ComputedRef, VNodeChild } from 'vue';
2
+ import type { StColor } from '../../../types/color.d.ts';
3
+ import type { StSize } from '../../../types/size.d.ts';
4
+ import type { StButtonShape, StButtonVariant } from './st-button.d.ts';
5
+
6
+ /** 按钮组排列方向类型 */
7
+ export type StButtonGroupDirection = 'horizontal' | 'vertical';
8
+
9
+ /** 按钮组注入上下文接口 */
10
+ export interface StButtonGroupContext {
11
+ color: ComputedRef<StColor>;
12
+ variant: ComputedRef<StButtonVariant>;
13
+ shape: ComputedRef<StButtonShape>;
14
+ size: ComputedRef<StSize>;
15
+ disabled: ComputedRef<boolean>;
16
+ loading: ComputedRef<boolean>;
17
+ inGroup: ComputedRef<boolean>;
18
+ direction: ComputedRef<StButtonGroupDirection>;
19
+ }
20
+ /** 按钮组组件属性 */
21
+ export interface StButtonGroupProps {
22
+ /** 按钮语义色 */
23
+ color?: StColor;
24
+ /** 按钮填充层次 */
25
+ variant?: StButtonVariant;
26
+ /** 按钮形态 */
27
+ shape?: StButtonShape;
28
+ /** 按钮尺寸 */
29
+ size?: StSize;
30
+ /** 是否禁用 */
31
+ disabled?: boolean;
32
+ /** 是否显示加载状态 */
33
+ loading?: boolean;
34
+ /** 排列方向 */
35
+ direction?: StButtonGroupDirection;
36
+ }
37
+ /** 按钮组组件插槽 */
38
+ export interface StButtonGroupSlots {
39
+ /** 默认插槽 */
40
+ default?: () => VNodeChild;
41
+ }
42
+ /** 按钮组组件事件 */
43
+ export interface StButtonGroupEmits {}
44
+
45
+ export {};
@@ -1,79 +1,79 @@
1
- import type { ClassValue, StyleValue, VNodeChild } from 'vue';
2
- import type { StColor } from '@/types/color.d.ts';
3
- import type { DeviceType } from '@/types/device.d.ts';
4
- import type { StSize } from '@/types/size.d.ts';
5
- import type {
6
- StButtonDesktopEmits,
7
- StButtonDesktopProps,
8
- StButtonDesktopSlots,
9
- } from '../desktop/types/st-button-desktop.d.ts';
10
- import type { StButtonPhoneEmits, StButtonPhoneProps, StButtonPhoneSlots } from '../phone/types/st-button-phone.d.ts';
11
-
12
- /** 按钮填充层次 */
13
- export type StButtonVariant = 'solid' | 'ghost';
14
-
15
- /** 按钮形态 */
16
- export type StButtonShape = 'default' | 'square';
17
-
18
- /** 原生 button 类型 */
19
- export type StButtonType = 'button' | 'submit' | 'reset';
20
-
21
- /** 按钮组件基础属性 */
22
- export interface StButtonBaseProps {
23
- /** 按钮语义色 */
24
- color?: StColor;
25
- /** 按钮填充层次 */
26
- variant?: StButtonVariant;
27
- /** 按钮形态 */
28
- shape?: StButtonShape;
29
- /** 原生 button 类型 */
30
- type?: StButtonType;
31
- /** 按钮尺寸 */
32
- size?: StSize;
33
- /** 是否禁用 */
34
- disabled?: boolean;
35
- /** 是否显示加载状态 */
36
- loading?: boolean;
37
- /** 前缀图标名称 */
38
- prefixIcon?: string;
39
- /** 后缀图标名称 */
40
- suffixIcon?: string;
41
- /** 前缀图标类名 */
42
- prefixIconClass?: ClassValue;
43
- /** 前缀图标样式 */
44
- prefixIconStyle?: StyleValue;
45
- /** 后缀图标类名 */
46
- suffixIconClass?: ClassValue;
47
- /** 后缀图标样式 */
48
- suffixIconStyle?: StyleValue;
49
- /** loading图标类名 */
50
- loadingIconClass?: ClassValue;
51
- /** loading图标样式 */
52
- loadingIconStyle?: StyleValue;
53
- }
54
- /** 按钮组件基础插槽 */
55
- export interface StButtonBaseSlots {
56
- /** 默认插槽 */
57
- default?: () => VNodeChild;
58
- /** 前缀图标插槽 */
59
- prefixIcon?: () => VNodeChild;
60
- /** 后缀图标插槽 */
61
- suffixIcon?: () => VNodeChild;
62
- }
63
- /** 按钮组件基础事件 */
64
- export interface StButtonBaseEmits {
65
- /** 点击事件 */
66
- click: [event: MouseEvent];
67
- }
68
-
69
- /** 按钮组件属性 */
70
- export interface StButtonProps extends StButtonDesktopProps, StButtonPhoneProps {
71
- /** 设备类型 */
72
- deviceType?: DeviceType | 'auto';
73
- }
74
- /** 按钮组件插槽类型 */
75
- export interface StButtonSlots extends StButtonDesktopSlots, StButtonPhoneSlots {}
76
- /** 按钮组件事件类型 */
77
- export interface StButtonEmits extends StButtonDesktopEmits, StButtonPhoneEmits {}
78
-
79
- export {};
1
+ import type { ClassValue, StyleValue, VNodeChild } from 'vue';
2
+ import type { StColor } from '../../../types/color.d.ts';
3
+ import type { DeviceType } from '../../../types/device.d.ts';
4
+ import type { StSize } from '../../../types/size.d.ts';
5
+ import type {
6
+ StButtonDesktopEmits,
7
+ StButtonDesktopProps,
8
+ StButtonDesktopSlots,
9
+ } from '../desktop/types/st-button-desktop.d.ts';
10
+ import type { StButtonPhoneEmits, StButtonPhoneProps, StButtonPhoneSlots } from '../phone/types/st-button-phone.d.ts';
11
+
12
+ /** 按钮填充层次 */
13
+ export type StButtonVariant = 'solid' | 'ghost';
14
+
15
+ /** 按钮形态 */
16
+ export type StButtonShape = 'default' | 'square';
17
+
18
+ /** 原生 button 类型 */
19
+ export type StButtonType = 'button' | 'submit' | 'reset';
20
+
21
+ /** 按钮组件基础属性 */
22
+ export interface StButtonBaseProps {
23
+ /** 按钮语义色 */
24
+ color?: StColor;
25
+ /** 按钮填充层次 */
26
+ variant?: StButtonVariant;
27
+ /** 按钮形态 */
28
+ shape?: StButtonShape;
29
+ /** 原生 button 类型 */
30
+ type?: StButtonType;
31
+ /** 按钮尺寸 */
32
+ size?: StSize;
33
+ /** 是否禁用 */
34
+ disabled?: boolean;
35
+ /** 是否显示加载状态 */
36
+ loading?: boolean;
37
+ /** 前缀图标名称 */
38
+ prefixIcon?: string;
39
+ /** 后缀图标名称 */
40
+ suffixIcon?: string;
41
+ /** 前缀图标类名 */
42
+ prefixIconClass?: ClassValue;
43
+ /** 前缀图标样式 */
44
+ prefixIconStyle?: StyleValue;
45
+ /** 后缀图标类名 */
46
+ suffixIconClass?: ClassValue;
47
+ /** 后缀图标样式 */
48
+ suffixIconStyle?: StyleValue;
49
+ /** loading图标类名 */
50
+ loadingIconClass?: ClassValue;
51
+ /** loading图标样式 */
52
+ loadingIconStyle?: StyleValue;
53
+ }
54
+ /** 按钮组件基础插槽 */
55
+ export interface StButtonBaseSlots {
56
+ /** 默认插槽 */
57
+ default?: () => VNodeChild;
58
+ /** 前缀图标插槽 */
59
+ prefixIcon?: () => VNodeChild;
60
+ /** 后缀图标插槽 */
61
+ suffixIcon?: () => VNodeChild;
62
+ }
63
+ /** 按钮组件基础事件 */
64
+ export interface StButtonBaseEmits {
65
+ /** 点击事件 */
66
+ click: [event: MouseEvent];
67
+ }
68
+
69
+ /** 按钮组件属性 */
70
+ export interface StButtonProps extends StButtonDesktopProps, StButtonPhoneProps {
71
+ /** 设备类型 */
72
+ deviceType?: DeviceType | 'auto';
73
+ }
74
+ /** 按钮组件插槽类型 */
75
+ export interface StButtonSlots extends StButtonDesktopSlots, StButtonPhoneSlots {}
76
+ /** 按钮组件事件类型 */
77
+ export interface StButtonEmits extends StButtonDesktopEmits, StButtonPhoneEmits {}
78
+
79
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { StCascadeDesktopExpose, StCascadeDesktopProps, StCascadeDesktopSlots } from './types/st-cascade-desktop.d.ts';
2
- import { StCascadePath } from '../types/st-cascade-context.d.ts';
2
+ import { StCascadeOption, StCascadePath } from '../types/st-cascade-context.d.ts';
3
3
  type __VLS_Slots = StCascadeDesktopSlots;
4
4
  type __VLS_Props = StCascadeDesktopProps;
5
5
  type __VLS_ModelProps = {
@@ -11,13 +11,13 @@ type __VLS_ModelProps = {
11
11
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
12
12
  declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, StCascadeDesktopExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
13
  clear: () => any;
14
- change: (value: any) => any;
14
+ change: (value: StCascadePath | StCascadePath[]) => any;
15
15
  visibleChange: (visible: boolean) => any;
16
16
  "update:modelValue": (value: StCascadePath) => any;
17
17
  "update:multipleValue": (value: StCascadePath[]) => any;
18
18
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
19
  onClear?: () => any;
20
- onChange?: (value: any) => any;
20
+ onChange?: (value: StCascadePath | StCascadePath[]) => any;
21
21
  onVisibleChange?: (visible: boolean) => any;
22
22
  "onUpdate:modelValue"?: (value: StCascadePath) => any;
23
23
  "onUpdate:multipleValue"?: (value: StCascadePath[]) => any;
@@ -1,85 +1,85 @@
1
- import type { ClassValue, StyleValue, VNodeChild } from 'vue';
2
- import type { StCascadeOption, StCascadePath } from '../types/st-cascade-context.d.ts';
3
- import type { StSize } from '@/types/size.d.ts';
4
-
5
- /**
6
- * StCascadeDesktop 组件属性接口(桌面端预封装:触发输入框 + 弹出层 + 树形面板)
7
- * */
8
- export interface StCascadeDesktopProps {
9
- /** 级联数据列表 */
10
- list?: StCascadeOption[];
11
- /** 显示文本的字段名 */
12
- labelKey?: string;
13
- /** 值的字段名 */
14
- valueKey?: string;
15
- /** 子节点的字段名 */
16
- childrenKey?: string;
17
- /** 占位符文本 */
18
- placeholder?: string;
19
- /** 尺寸 */
20
- size?: StSize;
21
- /** 是否禁用 */
22
- disabled?: boolean;
23
- /** 是否可清空 */
24
- clearable?: boolean;
25
- /** 是否多选模式(树形多选框) */
26
- multiple?: boolean;
27
- /** 路径显示文本的分隔符 */
28
- separator?: string;
29
- /** 打开面板时是否展开全部节点 */
30
- defaultExpandedAll?: boolean;
31
- /** 弹出层的类名 */
32
- popoverClass?: ClassValue;
33
- /** 弹出层的样式 */
34
- popoverStyle?: StyleValue;
35
- /** 触发输入框的类名 */
36
- triggerClass?: ClassValue;
37
- /** 触发输入框的样式 */
38
- triggerStyle?: StyleValue;
39
- /** 面板的类名 */
40
- panelClass?: ClassValue;
41
- /** 面板的样式 */
42
- panelStyle?: StyleValue;
43
- }
44
-
45
- /**
46
- * StCascadeDesktop 组件插槽接口
47
- * */
48
- export interface StCascadeDesktopSlots {
49
- /** 触发输入框前缀插槽 */
50
- prefix?: () => VNodeChild;
51
- /** 节点标签插槽 */
52
- label?: (scope: { item: StCascadeOption }) => VNodeChild;
53
- /** 数据为空时的插槽 */
54
- empty?: () => VNodeChild;
55
- }
56
-
57
- /**
58
- * StCascadeDesktop 组件事件接口
59
- * */
60
- export interface StCascadeDesktopEmits {
61
- /** 选中值改变事件 */
62
- change: [value: StCascadePath | StCascadePath[]];
63
- /** 清空事件 */
64
- clear: [];
65
- /** 面板显示状态改变事件 */
66
- visibleChange: [visible: boolean];
67
- }
68
-
69
- /**
70
- * StCascadeDesktop 组件暴露的方法接口
71
- * */
72
- export interface StCascadeDesktopExpose {
73
- /** 聚焦触发输入框 */
74
- focus: () => void;
75
- /** 失焦触发输入框 */
76
- blur: () => void;
77
- /** 清空选中值 */
78
- clear: () => void;
79
- /** 打开面板 */
80
- open: () => void;
81
- /** 关闭面板 */
82
- close: () => void;
83
- }
84
-
85
- export {};
1
+ import type { ClassValue, StyleValue, VNodeChild } from 'vue';
2
+ import type { StCascadeOption, StCascadePath } from '../../types/st-cascade-context.d.ts';
3
+ import type { StSize } from '../../../../types/size.d.ts';
4
+
5
+ /**
6
+ * StCascadeDesktop 组件属性接口(桌面端预封装:触发输入框 + 弹出层 + 树形面板)
7
+ * */
8
+ export interface StCascadeDesktopProps {
9
+ /** 级联数据列表 */
10
+ list?: StCascadeOption[];
11
+ /** 显示文本的字段名 */
12
+ labelKey?: string;
13
+ /** 值的字段名 */
14
+ valueKey?: string;
15
+ /** 子节点的字段名 */
16
+ childrenKey?: string;
17
+ /** 占位符文本 */
18
+ placeholder?: string;
19
+ /** 尺寸 */
20
+ size?: StSize;
21
+ /** 是否禁用 */
22
+ disabled?: boolean;
23
+ /** 是否可清空 */
24
+ clearable?: boolean;
25
+ /** 是否多选模式(树形多选框) */
26
+ multiple?: boolean;
27
+ /** 路径显示文本的分隔符 */
28
+ separator?: string;
29
+ /** 打开面板时是否展开全部节点 */
30
+ defaultExpandedAll?: boolean;
31
+ /** 弹出层的类名 */
32
+ popoverClass?: ClassValue;
33
+ /** 弹出层的样式 */
34
+ popoverStyle?: StyleValue;
35
+ /** 触发输入框的类名 */
36
+ triggerClass?: ClassValue;
37
+ /** 触发输入框的样式 */
38
+ triggerStyle?: StyleValue;
39
+ /** 面板的类名 */
40
+ panelClass?: ClassValue;
41
+ /** 面板的样式 */
42
+ panelStyle?: StyleValue;
43
+ }
44
+
45
+ /**
46
+ * StCascadeDesktop 组件插槽接口
47
+ * */
48
+ export interface StCascadeDesktopSlots {
49
+ /** 触发输入框前缀插槽 */
50
+ prefix?: () => VNodeChild;
51
+ /** 节点标签插槽 */
52
+ label?: (scope: { item: StCascadeOption }) => VNodeChild;
53
+ /** 数据为空时的插槽 */
54
+ empty?: () => VNodeChild;
55
+ }
56
+
57
+ /**
58
+ * StCascadeDesktop 组件事件接口
59
+ * */
60
+ export interface StCascadeDesktopEmits {
61
+ /** 选中值改变事件 */
62
+ change: [value: StCascadePath | StCascadePath[]];
63
+ /** 清空事件 */
64
+ clear: [];
65
+ /** 面板显示状态改变事件 */
66
+ visibleChange: [visible: boolean];
67
+ }
68
+
69
+ /**
70
+ * StCascadeDesktop 组件暴露的方法接口
71
+ * */
72
+ export interface StCascadeDesktopExpose {
73
+ /** 聚焦触发输入框 */
74
+ focus: () => void;
75
+ /** 失焦触发输入框 */
76
+ blur: () => void;
77
+ /** 清空选中值 */
78
+ clear: () => void;
79
+ /** 打开面板 */
80
+ open: () => void;
81
+ /** 关闭面板 */
82
+ close: () => void;
83
+ }
84
+
85
+ export {};