straw-ui-vue 0.1.34 → 0.1.35

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 (173) hide show
  1. package/README.md +1 -1
  2. package/dist/components/st-addon/st-addon.d.ts +1 -1
  3. package/dist/components/st-button/desktop/st-button-desktop.d.ts +1 -1
  4. package/dist/components/st-button/desktop/types/index.d.ts +1 -1
  5. package/dist/components/st-button/desktop/types/st-button-desktop.d.ts +8 -8
  6. package/dist/components/st-button/index.d.ts +3 -3
  7. package/dist/components/st-button/phone/st-button-phone.d.ts +1 -1
  8. package/dist/components/st-button/phone/types/index.d.ts +1 -1
  9. package/dist/components/st-button/phone/types/st-button-phone.d.ts +1 -1
  10. package/dist/components/st-button/st-button-group.d.ts +3 -3
  11. package/dist/components/st-button/st-button.d.ts +4 -4
  12. package/dist/components/st-button/types/index.d.ts +5 -5
  13. package/dist/components/st-button/types/st-button-group.d.ts +37 -37
  14. package/dist/components/st-button/types/st-button.d.ts +2 -4
  15. package/dist/components/st-button/useButtonGroupState.d.ts +1 -1
  16. package/dist/components/st-card/st-card-group-addon.d.ts +1 -1
  17. package/dist/components/st-card/st-card-group-content.d.ts +1 -1
  18. package/dist/components/st-card/st-card-group-description.d.ts +1 -1
  19. package/dist/components/st-card/st-card-group-footer.d.ts +1 -1
  20. package/dist/components/st-card/st-card-group-header.d.ts +1 -1
  21. package/dist/components/st-card/st-card-group-title.d.ts +1 -1
  22. package/dist/components/st-card/st-card-group.d.ts +1 -1
  23. package/dist/components/st-card/st-card.d.ts +1 -1
  24. package/dist/components/st-card/types/st-card-group-addon.d.ts +3 -11
  25. package/dist/components/st-card/types/st-card-group-content.d.ts +3 -11
  26. package/dist/components/st-card/types/st-card-group-description.d.ts +3 -11
  27. package/dist/components/st-card/types/st-card-group-footer.d.ts +3 -11
  28. package/dist/components/st-card/types/st-card-group-header.d.ts +3 -11
  29. package/dist/components/st-card/types/st-card-group-title.d.ts +3 -11
  30. package/dist/components/st-card/types/st-card-group.d.ts +3 -11
  31. package/dist/components/st-card/types/st-card.d.ts +3 -11
  32. package/dist/components/st-cascade/types/st-cascade.d.ts +2 -4
  33. package/dist/components/st-checkbox/index.d.ts +6 -6
  34. package/dist/components/st-checkbox/st-checkbox-group.d.ts +2 -2
  35. package/dist/components/st-checkbox/st-checkbox.d.ts +1 -1
  36. package/dist/components/st-checkbox/types/st-checkbox-group.d.ts +64 -64
  37. package/dist/components/st-checkbox/useCheckboxGroupState.d.ts +1 -1
  38. package/dist/components/st-color-picker/st-color-picker-panel.d.ts +1 -2
  39. package/dist/components/st-color-picker/st-color-picker.d.ts +1 -1
  40. package/dist/components/st-date-picker/index.d.ts +10 -10
  41. package/dist/components/st-date-picker/st-date-picker-panel.d.ts +2 -2
  42. package/dist/components/st-datetime-picker/index.d.ts +10 -10
  43. package/dist/components/st-datetime-picker/st-datetime-picker-panel.d.ts +2 -2
  44. package/dist/components/st-datetime-picker/types/st-datetime-picker.d.ts +1 -1
  45. package/dist/components/st-dialog/index.d.ts +152 -76
  46. package/dist/components/st-dialog/st-dialog-group-body.d.ts +7 -1
  47. package/dist/components/st-dialog/st-dialog-group-content.d.ts +1 -1
  48. package/dist/components/st-dialog/st-dialog-group-draggable.d.ts +5 -5
  49. package/dist/components/st-dialog/st-dialog-group-footer.d.ts +1 -1
  50. package/dist/components/st-dialog/st-dialog-group-header.d.ts +1 -1
  51. package/dist/components/st-dialog/st-dialog-group-overlay.d.ts +9 -1
  52. package/dist/components/st-dialog/st-dialog-group-title.d.ts +1 -1
  53. package/dist/components/st-dialog/st-dialog-group.d.ts +11 -4
  54. package/dist/components/st-dialog/st-dialog.d.ts +4 -4
  55. package/dist/components/st-dialog/types/index.d.ts +0 -1
  56. package/dist/components/st-dialog/types/st-dialog-context.d.ts +15 -44
  57. package/dist/components/st-dialog/types/st-dialog-group-body.d.ts +18 -19
  58. package/dist/components/st-dialog/types/st-dialog-group-content.d.ts +3 -11
  59. package/dist/components/st-dialog/types/st-dialog-group-draggable.d.ts +14 -19
  60. package/dist/components/st-dialog/types/st-dialog-group-footer.d.ts +3 -11
  61. package/dist/components/st-dialog/types/st-dialog-group-header.d.ts +3 -11
  62. package/dist/components/st-dialog/types/st-dialog-group-overlay.d.ts +17 -22
  63. package/dist/components/st-dialog/types/st-dialog-group-title.d.ts +3 -11
  64. package/dist/components/st-dialog/types/st-dialog-group.d.ts +24 -19
  65. package/dist/components/st-dialog/useDialogState.d.ts +2 -2
  66. package/dist/components/st-drawer/index.d.ts +5 -5
  67. package/dist/components/st-drawer/st-drawer.d.ts +2 -2
  68. package/dist/components/st-form/types/st-form-label.d.ts +1 -1
  69. package/dist/components/st-input/index.d.ts +252 -252
  70. package/dist/components/st-input/st-input-group-input.d.ts +4 -4
  71. package/dist/components/st-input/st-input-group-textarea.d.ts +4 -4
  72. package/dist/components/st-input/st-input-number.d.ts +4 -4
  73. package/dist/components/st-input/st-input.d.ts +22 -22
  74. package/dist/components/st-input/st-textarea.d.ts +22 -22
  75. package/dist/components/st-input/types/st-input-group-addon.d.ts +1 -1
  76. package/dist/components/st-input/types/st-input-group-button.d.ts +1 -1
  77. package/dist/components/st-input/types/st-input.d.ts +1 -1
  78. package/dist/components/st-popover/index.d.ts +6 -6
  79. package/dist/components/st-popover/st-popover-container.d.ts +1 -1
  80. package/dist/components/st-progress/index.d.ts +3 -3
  81. package/dist/components/st-progress/st-progress.d.ts +1 -1
  82. package/dist/components/st-radio/index.d.ts +6 -6
  83. package/dist/components/st-radio/st-radio-group.d.ts +1 -1
  84. package/dist/components/st-radio/types/st-radio-group.d.ts +66 -66
  85. package/dist/components/st-scrollbar/desktop/st-scrollbar-desktop-group.d.ts +1 -1
  86. package/dist/components/st-scrollbar/desktop/st-scrollbar-desktop.d.ts +1 -1
  87. package/dist/components/st-scrollbar/desktop/types/index.d.ts +2 -2
  88. package/dist/components/st-scrollbar/desktop/types/st-scrollbar-desktop-group.d.ts +17 -13
  89. package/dist/components/st-scrollbar/desktop/types/st-scrollbar-desktop.d.ts +15 -15
  90. package/dist/components/st-scrollbar/index.d.ts +9 -9
  91. package/dist/components/st-scrollbar/phone/st-scrollbar-phone-group-pull-action.d.ts +1 -1
  92. package/dist/components/st-scrollbar/phone/st-scrollbar-phone-group.d.ts +1 -1
  93. package/dist/components/st-scrollbar/phone/st-scrollbar-phone.d.ts +1 -1
  94. package/dist/components/st-scrollbar/phone/types/index.d.ts +3 -3
  95. package/dist/components/st-scrollbar/phone/types/st-scrollbar-phone-group-pull-action.d.ts +27 -27
  96. package/dist/components/st-scrollbar/phone/types/st-scrollbar-phone-group.d.ts +28 -24
  97. package/dist/components/st-scrollbar/phone/types/st-scrollbar-phone.d.ts +38 -43
  98. package/dist/components/st-scrollbar/st-scrollbar-group-back-top.d.ts +1 -1
  99. package/dist/components/st-scrollbar/st-scrollbar-group-nav-button.d.ts +1 -1
  100. package/dist/components/st-scrollbar/st-scrollbar-group-thumb.d.ts +2 -2
  101. package/dist/components/st-scrollbar/st-scrollbar-group-track.d.ts +2 -2
  102. package/dist/components/st-scrollbar/st-scrollbar-group-view.d.ts +1 -1
  103. package/dist/components/st-scrollbar/st-scrollbar-group.d.ts +2 -2
  104. package/dist/components/st-scrollbar/st-scrollbar.d.ts +2 -2
  105. package/dist/components/st-scrollbar/types/index.d.ts +11 -11
  106. package/dist/components/st-scrollbar/types/st-scrollbar-context.d.ts +62 -62
  107. package/dist/components/st-scrollbar/types/st-scrollbar-group-view.d.ts +27 -27
  108. package/dist/components/st-scrollbar/types/st-scrollbar-group.d.ts +21 -27
  109. package/dist/components/st-scrollbar/types/st-scrollbar.d.ts +82 -90
  110. package/dist/components/st-scrollbar/useScrollbarState.d.ts +1 -3
  111. package/dist/components/st-segmented/index.d.ts +2 -2
  112. package/dist/components/st-segmented/st-segmented-group-indicator.d.ts +1 -1
  113. package/dist/components/st-select/index.d.ts +15 -15
  114. package/dist/components/st-select/st-select-container.d.ts +2 -2
  115. package/dist/components/st-select/st-select.d.ts +2 -2
  116. package/dist/components/st-select/types/st-select-container.d.ts +0 -2
  117. package/dist/components/st-tabs/desktop/st-tabs-desktop-group-panel.d.ts +13 -0
  118. package/dist/components/st-tabs/desktop/st-tabs-desktop.d.ts +25 -0
  119. package/dist/components/st-tabs/desktop/types/index.d.ts +2 -0
  120. package/dist/components/st-tabs/desktop/types/st-tabs-desktop-group-panel.d.ts +10 -0
  121. package/dist/components/st-tabs/desktop/types/st-tabs-desktop.d.ts +10 -0
  122. package/dist/components/st-tabs/index.d.ts +345 -102
  123. package/dist/components/st-tabs/phone/st-tabs-phone-group-panel.d.ts +15 -0
  124. package/dist/components/st-tabs/phone/st-tabs-phone.d.ts +25 -0
  125. package/dist/components/st-tabs/phone/types/index.d.ts +2 -0
  126. package/dist/components/st-tabs/phone/types/st-tabs-phone-group-panel.d.ts +15 -0
  127. package/dist/components/st-tabs/phone/types/st-tabs-phone.d.ts +10 -0
  128. package/dist/components/st-tabs/st-tabs-group-bar.d.ts +16 -0
  129. package/dist/components/st-tabs/st-tabs-group-label.d.ts +13 -0
  130. package/dist/components/st-tabs/st-tabs-group-line.d.ts +14 -0
  131. package/dist/components/st-tabs/st-tabs-group.d.ts +23 -0
  132. package/dist/components/st-tabs/st-tabs-panel.d.ts +16 -0
  133. package/dist/components/st-tabs/st-tabs.d.ts +10 -20
  134. package/dist/components/st-tabs/types/index.d.ts +9 -1
  135. package/dist/components/st-tabs/types/st-tabs-context.d.ts +44 -0
  136. package/dist/components/st-tabs/types/st-tabs-group-bar.d.ts +23 -0
  137. package/dist/components/st-tabs/types/st-tabs-group-label.d.ts +18 -0
  138. package/dist/components/st-tabs/types/st-tabs-group-line.d.ts +13 -0
  139. package/dist/components/st-tabs/types/st-tabs-group.d.ts +21 -0
  140. package/dist/components/st-tabs/types/st-tabs-panel.d.ts +42 -0
  141. package/dist/components/st-tabs/types/st-tabs.d.ts +37 -113
  142. package/dist/components/st-tabs/useTabsState.d.ts +5 -12
  143. package/dist/components/st-time-picker/index.d.ts +15 -15
  144. package/dist/components/st-time-picker/st-time-picker-panel.d.ts +2 -2
  145. package/dist/components/st-time-picker/st-time-picker.d.ts +2 -2
  146. package/dist/components/st-time-picker/types/st-time-picker-panel.d.ts +1 -1
  147. package/dist/components/st-time-picker/types/st-time-picker.d.ts +1 -1
  148. package/dist/components/st-tooltip/types/st-tooltip.d.ts +1 -1
  149. package/dist/directive.js +48 -0
  150. package/dist/{cva-BU8WjbHO.js → forward-emit-Bsrbc9QV.js} +724 -424
  151. package/dist/global.d.ts +10 -3
  152. package/dist/index.d.ts +21 -49
  153. package/dist/straw-ui.js +4734 -4983
  154. package/dist/types.d.ts +39 -0
  155. package/dist/types.js +0 -0
  156. package/dist/unocss.d.ts +1 -0
  157. package/dist/unocss.js +329 -0
  158. package/dist/utils/array.d.ts +1 -1
  159. package/dist/utils/cva/types.d.ts +45 -45
  160. package/dist/utils/device.d.ts +3 -2
  161. package/dist/utils/index.d.ts +7 -0
  162. package/dist/utils.js +3 -0
  163. package/dist/v-mutation-Dk16dA2k.js +104 -0
  164. package/package.json +24 -1
  165. package/dist/components/st-dialog/context.d.ts +0 -6
  166. package/dist/components/st-dialog/st-dialog-group-addon.d.ts +0 -11
  167. package/dist/components/st-dialog/types/st-dialog-group-addon.d.ts +0 -19
  168. package/dist/components/st-divider/context.d.ts +0 -6
  169. package/dist/components/st-drawer/context.d.ts +0 -6
  170. package/dist/components/st-tabs/st-tabs-pane.d.ts +0 -21
  171. package/dist/components/st-tabs/types/st-tabs-pane.d.ts +0 -37
  172. package/dist/dist-QodMTiuA.js +0 -79
  173. package/dist/st-button-DguHNR5j.js +0 -297
package/README.md CHANGED
@@ -75,7 +75,7 @@ export default defineConfig({
75
75
 
76
76
  ```ts
77
77
  // main.ts
78
- import 'straw-ui-vue/dist/variables.css'; // 主题预设变量,或使用自己的变量文件
78
+ import 'straw-ui-vue/variables.css'; // 主题预设变量,或使用自己的变量文件
79
79
  ```
80
80
 
81
81
  详细配置请参阅 [UnoCSS 集成文档](./docs/unocss.md)。
@@ -1,4 +1,4 @@
1
- import { StAddonAlign, StAddonProps, StAddonSlots } from './types/st-addon.d.ts';
1
+ import { StAddonAlign, StAddonProps, StAddonSlots } from './types/index.d.ts';
2
2
  type __VLS_Slots = StAddonSlots;
3
3
  declare const __VLS_base: import('vue').DefineComponent<StAddonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
4
  click: (event: MouseEvent) => any;
@@ -1,4 +1,4 @@
1
- import { StButtonDesktopProps, StButtonDesktopSlots } from '../../../index.ts';
1
+ import { StButtonDesktopProps, StButtonDesktopSlots } from '../types/index.d.ts';
2
2
  type __VLS_Slots = StButtonDesktopSlots;
3
3
  declare const __VLS_base: import('vue').DefineComponent<StButtonDesktopProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
4
  click: (event: MouseEvent) => any;
@@ -1 +1 @@
1
- export * from './st-button-desktop.d.ts';
1
+ export * from './st-button-desktop.d.ts';
@@ -1,8 +1,8 @@
1
- import type { StButtonBaseEmits, StButtonBaseProps, StButtonBaseSlots } from 'straw-ui-vue';
2
-
3
- /** 桌面端按钮组件属性 */
4
- export interface StButtonDesktopProps extends StButtonBaseProps {}
5
- /** 桌面端按钮组件插槽 */
6
- export interface StButtonDesktopSlots extends StButtonBaseSlots {}
7
- /** 桌面端按钮组件事件 */
8
- export interface StButtonDesktopEmits extends StButtonBaseEmits {}
1
+ import type { StButtonBaseEmits, StButtonBaseProps, StButtonBaseSlots } from '../../types/st-button.d.ts';
2
+
3
+ /** 桌面端按钮组件属性 */
4
+ export interface StButtonDesktopProps extends StButtonBaseProps {}
5
+ /** 桌面端按钮组件插槽 */
6
+ export interface StButtonDesktopSlots extends StButtonBaseSlots {}
7
+ /** 桌面端按钮组件事件 */
8
+ export interface StButtonDesktopEmits extends StButtonBaseEmits {}
@@ -8,7 +8,7 @@ export declare const StButton: {
8
8
  variant: import('./index.ts').StButtonVariant;
9
9
  disabled: boolean;
10
10
  loading: boolean;
11
- deviceType: import('../../index.ts').DeviceType | "auto";
11
+ deviceType: import('../../types.ts').DeviceType | "auto";
12
12
  }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
13
13
  P: {};
14
14
  B: {};
@@ -23,7 +23,7 @@ export declare const StButton: {
23
23
  variant: import('./index.ts').StButtonVariant;
24
24
  disabled: boolean;
25
25
  loading: boolean;
26
- deviceType: import('../../index.ts').DeviceType | "auto";
26
+ deviceType: import('../../types.ts').DeviceType | "auto";
27
27
  }>;
28
28
  __isFragment?: never;
29
29
  __isTeleport?: never;
@@ -37,7 +37,7 @@ export declare const StButton: {
37
37
  variant: import('./index.ts').StButtonVariant;
38
38
  disabled: boolean;
39
39
  loading: boolean;
40
- deviceType: import('../../index.ts').DeviceType | "auto";
40
+ deviceType: import('../../types.ts').DeviceType | "auto";
41
41
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
42
42
  $slots: import('./index.ts').StButtonSlots;
43
43
  }) & {
@@ -1,4 +1,4 @@
1
- import { StButtonPhoneProps, StButtonPhoneSlots } from '../../../index.ts';
1
+ import { StButtonPhoneProps, StButtonPhoneSlots } from '../types/index.d.ts';
2
2
  type __VLS_Slots = StButtonPhoneSlots;
3
3
  declare const __VLS_base: import('vue').DefineComponent<StButtonPhoneProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
4
  click: (event: MouseEvent) => any;
@@ -1 +1 @@
1
- export * from './st-button-phone.d.ts';
1
+ export * from './st-button-phone.d.ts';
@@ -1,4 +1,4 @@
1
- import type { StButtonBaseEmits, StButtonBaseProps, StButtonBaseSlots } from 'straw-ui-vue';
1
+ import type { StButtonBaseEmits, StButtonBaseProps, StButtonBaseSlots } from '../../types/st-button.d.ts';
2
2
 
3
3
  /** 手机端按钮组件属性 */
4
4
  export interface StButtonPhoneProps extends StButtonBaseProps {}
@@ -1,8 +1,8 @@
1
- import { StButtonGroupDirection, StButtonGroupProps, StButtonGroupSlots } from '../../index.ts';
1
+ import { StButtonGroupDirection, StButtonGroupProps, StButtonGroupSlots } from './types/index.d.ts';
2
2
  type __VLS_Slots = StButtonGroupSlots;
3
3
  declare const __VLS_base: import('vue').DefineComponent<StButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StButtonGroupProps> & Readonly<{}>, {
4
- type: import('../../index.ts').StButtonType;
5
- variant: import('../../index.ts').StButtonVariant;
4
+ type: import('./index.ts').StButtonType;
5
+ variant: import('./index.ts').StButtonVariant;
6
6
  disabled: boolean;
7
7
  loading: boolean;
8
8
  direction: StButtonGroupDirection;
@@ -1,15 +1,15 @@
1
- import { StButtonProps, StButtonSlots } from '../../index.ts';
1
+ import { StButtonProps, StButtonSlots } from './types/index.d.ts';
2
2
  type __VLS_Slots = StButtonSlots;
3
3
  declare const __VLS_base: import('vue').DefineComponent<StButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
4
  click: (event: MouseEvent) => any;
5
5
  }, string, import('vue').PublicProps, Readonly<StButtonProps> & Readonly<{
6
6
  onClick?: (event: MouseEvent) => any;
7
7
  }>, {
8
- type: import('../../index.ts').StButtonType;
9
- variant: import('../../index.ts').StButtonVariant;
8
+ type: import('./index.ts').StButtonType;
9
+ variant: import('./index.ts').StButtonVariant;
10
10
  disabled: boolean;
11
11
  loading: boolean;
12
- deviceType: import('../../index.ts').DeviceType | "auto";
12
+ deviceType: import('../../utils/device.ts').DeviceType | "auto";
13
13
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
14
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
15
  declare const _default: typeof __VLS_export;
@@ -1,5 +1,5 @@
1
- export * from '../desktop/types/index.d.ts';
2
- export * from '../phone/types/index.d.ts';
3
-
4
- export * from './st-button.d.ts';
5
- export * from './st-button-group.d.ts';
1
+ export * from '../desktop/types/index.d.ts';
2
+ export * from '../phone/types/index.d.ts';
3
+
4
+ export * from './st-button.d.ts';
5
+ export * from './st-button-group.d.ts';
@@ -1,37 +1,37 @@
1
- import type { ComputedRef } from 'vue';
2
- import type { StButtonType, StButtonVariant } from 'straw-ui-vue';
3
-
4
- /** 按钮组排列方向类型 */
5
- export type StButtonGroupDirection = 'horizontal' | 'vertical';
6
-
7
- /** 按钮组注入上下文接口 */
8
- export interface StButtonGroupContext {
9
- variant: ComputedRef<StButtonVariant>;
10
- type: ComputedRef<StButtonType>;
11
- disabled: ComputedRef<boolean>;
12
- loading: ComputedRef<boolean>;
13
- inGroup: ComputedRef<boolean>;
14
- direction: ComputedRef<StButtonGroupDirection>;
15
- }
16
- /** 按钮组组件属性 */
17
- export interface StButtonGroupProps {
18
- /** 按钮变体类型 */
19
- variant?: StButtonVariant;
20
- /** 按钮类型 */
21
- type?: StButtonType;
22
- /** 是否禁用 */
23
- disabled?: boolean;
24
- /** 是否显示加载状态 */
25
- loading?: boolean;
26
- /** 排列方向 */
27
- direction?: StButtonGroupDirection;
28
- }
29
- /** 按钮组组件插槽 */
30
- export interface StButtonGroupSlots {
31
- /** 默认插槽 */
32
- default?: () => unknown;
33
- }
34
- /** 按钮组组件事件 */
35
- export interface StButtonGroupEmits {}
36
-
37
- export {};
1
+ import type { ComputedRef } from 'vue';
2
+ import type { StButtonType, StButtonVariant } from './st-button.d.ts';
3
+
4
+ /** 按钮组排列方向类型 */
5
+ export type StButtonGroupDirection = 'horizontal' | 'vertical';
6
+
7
+ /** 按钮组注入上下文接口 */
8
+ export interface StButtonGroupContext {
9
+ variant: ComputedRef<StButtonVariant>;
10
+ type: ComputedRef<StButtonType>;
11
+ disabled: ComputedRef<boolean>;
12
+ loading: ComputedRef<boolean>;
13
+ inGroup: ComputedRef<boolean>;
14
+ direction: ComputedRef<StButtonGroupDirection>;
15
+ }
16
+ /** 按钮组组件属性 */
17
+ export interface StButtonGroupProps {
18
+ /** 按钮变体类型 */
19
+ variant?: StButtonVariant;
20
+ /** 按钮类型 */
21
+ type?: StButtonType;
22
+ /** 是否禁用 */
23
+ disabled?: boolean;
24
+ /** 是否显示加载状态 */
25
+ loading?: boolean;
26
+ /** 排列方向 */
27
+ direction?: StButtonGroupDirection;
28
+ }
29
+ /** 按钮组组件插槽 */
30
+ export interface StButtonGroupSlots {
31
+ /** 默认插槽 */
32
+ default?: () => unknown;
33
+ }
34
+ /** 按钮组组件事件 */
35
+ export interface StButtonGroupEmits {}
36
+
37
+ export {};
@@ -4,10 +4,8 @@ import type {
4
4
  StButtonDesktopEmits,
5
5
  StButtonDesktopProps,
6
6
  StButtonDesktopSlots,
7
- StButtonPhoneEmits,
8
- StButtonPhoneProps,
9
- StButtonPhoneSlots,
10
- } from 'straw-ui-vue';
7
+ } from '../desktop/types/st-button-desktop.d.ts';
8
+ import type { StButtonPhoneEmits, StButtonPhoneProps, StButtonPhoneSlots } from '../phone/types/st-button-phone.d.ts';
11
9
 
12
10
  /** 按钮变体类型 */
13
11
  export type StButtonVariant = 'primary' | 'default' | 'ghost';
@@ -1,2 +1,2 @@
1
- import { StButtonGroupContext } from '../../index.ts';
1
+ import { StButtonGroupContext } from './types/index.d.ts';
2
2
  export declare const useProvideButtonGroup: (context: StButtonGroupContext) => StButtonGroupContext, useInjectButtonGroup: () => StButtonGroupContext;
@@ -1,4 +1,4 @@
1
- import { StCardGroupActionProps, StCardGroupActionSlots } from './types/st-card-group-addon.d.ts';
1
+ import { StCardGroupActionProps, StCardGroupActionSlots } from './types/index.d.ts';
2
2
  type __VLS_Slots = StCardGroupActionSlots;
3
3
  declare const __VLS_base: import('vue').DefineComponent<StCardGroupActionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StCardGroupActionProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
4
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,4 +1,4 @@
1
- import { StCardGroupContentProps, StCardGroupContentSlots } from './types/st-card-group-content.d.ts';
1
+ import { StCardGroupContentProps, StCardGroupContentSlots } from './types/index.d.ts';
2
2
  type __VLS_Slots = StCardGroupContentSlots;
3
3
  declare const __VLS_base: import('vue').DefineComponent<StCardGroupContentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StCardGroupContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
4
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,4 +1,4 @@
1
- import { StCardGroupDescriptionProps, StCardGroupDescriptionSlots } from './types/st-card-group-description.d.ts';
1
+ import { StCardGroupDescriptionProps, StCardGroupDescriptionSlots } from './types/index.d.ts';
2
2
  type __VLS_Slots = StCardGroupDescriptionSlots;
3
3
  declare const __VLS_base: import('vue').DefineComponent<StCardGroupDescriptionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StCardGroupDescriptionProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
4
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,4 +1,4 @@
1
- import { StCardGroupFooterProps, StCardGroupFooterSlots } from './types/st-card-group-footer.d.ts';
1
+ import { StCardGroupFooterProps, StCardGroupFooterSlots } from './types/index.d.ts';
2
2
  type __VLS_Slots = StCardGroupFooterSlots;
3
3
  declare const __VLS_base: import('vue').DefineComponent<StCardGroupFooterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StCardGroupFooterProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
4
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,4 +1,4 @@
1
- import { StCardGroupHeaderProps, StCardGroupHeaderSlots } from './types/st-card-group-header.d.ts';
1
+ import { StCardGroupHeaderProps, StCardGroupHeaderSlots } from './types/index.d.ts';
2
2
  type __VLS_Slots = StCardGroupHeaderSlots;
3
3
  declare const __VLS_base: import('vue').DefineComponent<StCardGroupHeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StCardGroupHeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
4
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,4 +1,4 @@
1
- import { StCardGroupTitleProps, StCardGroupTitleSlots } from './types/st-card-group-title.d.ts';
1
+ import { StCardGroupTitleProps, StCardGroupTitleSlots } from './types/index.d.ts';
2
2
  type __VLS_Slots = StCardGroupTitleSlots;
3
3
  declare const __VLS_base: import('vue').DefineComponent<StCardGroupTitleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StCardGroupTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
4
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,4 +1,4 @@
1
- import { StCardGroupProps, StCardGroupSlots } from './types/st-card-group.d.ts';
1
+ import { StCardGroupProps, StCardGroupSlots } from './types/index.d.ts';
2
2
  type __VLS_Slots = StCardGroupSlots;
3
3
  declare const __VLS_base: import('vue').DefineComponent<StCardGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
4
  click: (event: MouseEvent) => any;
@@ -1,4 +1,4 @@
1
- import { StCardProps, StCardSlots } from './types/st-card.d.ts';
1
+ import { StCardProps, StCardSlots } from './types/index.d.ts';
2
2
  type __VLS_Slots = StCardSlots;
3
3
  declare const __VLS_base: import('vue').DefineComponent<StCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
4
  click: (event: MouseEvent) => any;
@@ -1,19 +1,11 @@
1
- /**
2
- * 卡片按钮组件属性
3
- * */
1
+ /** 卡片按钮组件属性 */
4
2
  export interface StCardGroupActionProps {}
5
-
6
- /**
7
- * 卡片按钮组件插槽
8
- * */
3
+ /** 卡片按钮组件插槽 */
9
4
  export interface StCardGroupActionSlots {
10
5
  /** 默认插槽 */
11
6
  default?: () => unknown;
12
7
  }
13
-
14
- /**
15
- * 卡片按钮组件事件
16
- * */
8
+ /** 卡片按钮组件事件 */
17
9
  export interface StCardGroupActionEmits {}
18
10
 
19
11
  export {};
@@ -1,19 +1,11 @@
1
- /**
2
- * 卡片主体组件属性
3
- * */
1
+ /** 卡片主体组件属性 */
4
2
  export interface StCardGroupContentProps {}
5
-
6
- /**
7
- * 卡片主体组件插槽
8
- * */
3
+ /** 卡片主体组件插槽 */
9
4
  export interface StCardGroupContentSlots {
10
5
  /** 默认插槽 */
11
6
  default?: () => unknown;
12
7
  }
13
-
14
- /**
15
- * 卡片主体组件事件
16
- * */
8
+ /** 卡片主体组件事件 */
17
9
  export interface StCardGroupContentEmits {}
18
10
 
19
11
  export {};
@@ -1,19 +1,11 @@
1
- /**
2
- * 卡片描述组件属性
3
- * */
1
+ /** 卡片描述组件属性 */
4
2
  export interface StCardGroupDescriptionProps {}
5
-
6
- /**
7
- * 卡片描述组件插槽
8
- * */
3
+ /** 卡片描述组件插槽 */
9
4
  export interface StCardGroupDescriptionSlots {
10
5
  /** 默认插槽 */
11
6
  default?: () => unknown;
12
7
  }
13
-
14
- /**
15
- * 卡片描述组件事件
16
- * */
8
+ /** 卡片描述组件事件 */
17
9
  export interface StCardGroupDescriptionEmits {}
18
10
 
19
11
  export {};
@@ -1,19 +1,11 @@
1
- /**
2
- * 卡片脚组件属性
3
- * */
1
+ /** 卡片脚组件属性 */
4
2
  export interface StCardGroupFooterProps {}
5
-
6
- /**
7
- * 卡片脚组件插槽
8
- * */
3
+ /** 卡片脚组件插槽 */
9
4
  export interface StCardGroupFooterSlots {
10
5
  /** 默认插槽 */
11
6
  default?: () => unknown;
12
7
  }
13
-
14
- /**
15
- * 卡片脚组件事件
16
- * */
8
+ /** 卡片脚组件事件 */
17
9
  export interface StCardGroupFooterEmits {}
18
10
 
19
11
  export {};
@@ -1,19 +1,11 @@
1
- /**
2
- * 卡片头组件属性
3
- * */
1
+ /** 卡片头组件属性 */
4
2
  export interface StCardGroupHeaderProps {}
5
-
6
- /**
7
- * 卡片头组件插槽
8
- * */
3
+ /** 卡片头组件插槽 */
9
4
  export interface StCardGroupHeaderSlots {
10
5
  /** 默认插槽 */
11
6
  default?: () => unknown;
12
7
  }
13
-
14
- /**
15
- * 卡片头组件事件
16
- * */
8
+ /** 卡片头组件事件 */
17
9
  export interface StCardGroupHeaderEmits {}
18
10
 
19
11
  export {};
@@ -1,19 +1,11 @@
1
- /**
2
- * 卡片标题组件属性
3
- * */
1
+ /** 卡片标题组件属性 */
4
2
  export interface StCardGroupTitleProps {}
5
-
6
- /**
7
- * 卡片标题组件插槽
8
- * */
3
+ /** 卡片标题组件插槽 */
9
4
  export interface StCardGroupTitleSlots {
10
5
  /** 默认插槽 */
11
6
  default?: () => unknown;
12
7
  }
13
-
14
- /**
15
- * 卡片标题组件事件
16
- * */
8
+ /** 卡片标题组件事件 */
17
9
  export interface StCardGroupTitleEmits {}
18
10
 
19
11
  export {};
@@ -1,19 +1,11 @@
1
- /**
2
- * 卡片组组件属性
3
- * */
1
+ /** 卡片组组件属性 */
4
2
  export interface StCardGroupProps {}
5
-
6
- /**
7
- * 卡片组组件插槽
8
- * */
3
+ /** 卡片组组件插槽 */
9
4
  export interface StCardGroupSlots {
10
5
  /** 默认插槽 */
11
6
  default?: () => unknown;
12
7
  }
13
-
14
- /**
15
- * 卡片组组件事件
16
- * */
8
+ /** 卡片组组件事件 */
17
9
  export interface StCardGroupEmits {
18
10
  /** 点击事件 */
19
11
  click: [event: MouseEvent];
@@ -1,8 +1,6 @@
1
1
  import type { ClassValue, StyleValue } from 'vue';
2
2
 
3
- /**
4
- * 卡片组件属性
5
- * */
3
+ /** 卡片组件属性 */
6
4
  export interface StCardProps {
7
5
  /** 标题 */
8
6
  title?: string;
@@ -33,10 +31,7 @@ export interface StCardProps {
33
31
  /** 脚部样式 */
34
32
  footerStyle?: StyleValue;
35
33
  }
36
-
37
- /**
38
- * 卡片组件插槽
39
- * */
34
+ /** 卡片组件插槽 */
40
35
  export interface StCardSlots {
41
36
  /** 标题插槽 */
42
37
  title?: () => unknown;
@@ -49,10 +44,7 @@ export interface StCardSlots {
49
44
  /** 脚部插槽 */
50
45
  footer?: () => unknown;
51
46
  }
52
-
53
- /**
54
- * 卡片组件事件
55
- * */
47
+ /** 卡片组件事件 */
56
48
  export interface StCardEmits {
57
49
  /** 点击事件 */
58
50
  click: [event: MouseEvent];
@@ -1,9 +1,7 @@
1
1
  import type { ClassValue, StyleValue } from 'vue';
2
- import type { StTreeListItem } from '../../st-tree/types';
2
+ import type { StTreeListItem } from '@/components/st-tree/types/st-tree.d.ts';
3
3
 
4
- /**
5
- * 级联选择选项数据结构
6
- * */
4
+ /** 级联选择选项数据结构 */
7
5
  export interface StCascadeOption extends StTreeListItem {
8
6
  /** 显示文本 */
9
7
  label: string;
@@ -60,7 +60,7 @@ export declare const StCheckbox: {
60
60
  direction: import('./index.ts').StCheckboxGroupDirection;
61
61
  labelKey: string;
62
62
  valueKey: string;
63
- list: import('./index.ts').StCheckboxGroupItem[];
63
+ list: import('./index.ts').StCheckboxGroupItem[] | [string | number][];
64
64
  }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
65
65
  P: {};
66
66
  B: {};
@@ -78,7 +78,7 @@ export declare const StCheckbox: {
78
78
  direction: import('./index.ts').StCheckboxGroupDirection;
79
79
  labelKey: string;
80
80
  valueKey: string;
81
- list: import('./index.ts').StCheckboxGroupItem[];
81
+ list: import('./index.ts').StCheckboxGroupItem[] | [string | number][];
82
82
  }>;
83
83
  __isFragment?: never;
84
84
  __isTeleport?: never;
@@ -96,7 +96,7 @@ export declare const StCheckbox: {
96
96
  direction: import('./index.ts').StCheckboxGroupDirection;
97
97
  labelKey: string;
98
98
  valueKey: string;
99
- list: import('./index.ts').StCheckboxGroupItem[];
99
+ list: import('./index.ts').StCheckboxGroupItem[] | [string | number][];
100
100
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
101
101
  $slots: import('./index.ts').StCheckboxGroupSlots;
102
102
  });
@@ -115,7 +115,7 @@ export declare const StCheckboxGroup: {
115
115
  direction: import('./index.ts').StCheckboxGroupDirection;
116
116
  labelKey: string;
117
117
  valueKey: string;
118
- list: import('./index.ts').StCheckboxGroupItem[];
118
+ list: import('./index.ts').StCheckboxGroupItem[] | [string | number][];
119
119
  }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
120
120
  P: {};
121
121
  B: {};
@@ -133,7 +133,7 @@ export declare const StCheckboxGroup: {
133
133
  direction: import('./index.ts').StCheckboxGroupDirection;
134
134
  labelKey: string;
135
135
  valueKey: string;
136
- list: import('./index.ts').StCheckboxGroupItem[];
136
+ list: import('./index.ts').StCheckboxGroupItem[] | [string | number][];
137
137
  }>;
138
138
  __isFragment?: never;
139
139
  __isTeleport?: never;
@@ -151,7 +151,7 @@ export declare const StCheckboxGroup: {
151
151
  direction: import('./index.ts').StCheckboxGroupDirection;
152
152
  labelKey: string;
153
153
  valueKey: string;
154
- list: import('./index.ts').StCheckboxGroupItem[];
154
+ list: import('./index.ts').StCheckboxGroupItem[] | [string | number][];
155
155
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
156
156
  $slots: import('./index.ts').StCheckboxGroupSlots;
157
157
  });
@@ -1,4 +1,4 @@
1
- import { StCheckboxGroupItem, StCheckboxGroupProps, StCheckboxGroupSlots } from './types/st-checkbox-group.d.ts';
1
+ import { StCheckboxGroupItem, StCheckboxGroupProps, StCheckboxGroupSlots } from './types/index.d.ts';
2
2
  type __VLS_Slots = StCheckboxGroupSlots;
3
3
  type __VLS_Props = StCheckboxGroupProps;
4
4
  type __VLS_ModelProps = {
@@ -16,7 +16,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
16
16
  direction: import('./index.ts').StCheckboxGroupDirection;
17
17
  labelKey: string;
18
18
  valueKey: string;
19
- list: StCheckboxGroupItem[];
19
+ list: StCheckboxGroupItem[] | [string | number][];
20
20
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
21
21
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
22
  declare const _default: typeof __VLS_export;
@@ -1,4 +1,4 @@
1
- import { StCheckboxProps, StCheckboxSlots } from './types/st-checkbox.d.ts';
1
+ import { StCheckboxProps, StCheckboxSlots } from './types/index.d.ts';
2
2
  type __VLS_Slots = StCheckboxSlots;
3
3
  type __VLS_Props = StCheckboxProps;
4
4
  type __VLS_ModelProps = {