straw-ui-vue 0.1.19 → 0.1.21

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 (45) hide show
  1. package/README.md +146 -147
  2. package/dist/{cn-CiflBmGp.js → cn-CThBjlvA.js} +7 -7
  3. package/dist/components/st-button/types.d.ts +63 -63
  4. package/dist/components/st-card/types.d.ts +184 -184
  5. package/dist/components/st-cascade/types.d.ts +156 -156
  6. package/dist/components/st-checkbox/types.d.ts +120 -120
  7. package/dist/components/st-color-picker/types.d.ts +160 -160
  8. package/dist/components/st-date-picker/types.d.ts +157 -157
  9. package/dist/components/st-datetime-picker/types.d.ts +155 -155
  10. package/dist/components/st-dialog/types.d.ts +293 -293
  11. package/dist/components/st-divider/types.d.ts +92 -92
  12. package/dist/components/st-drawer/types.d.ts +232 -232
  13. package/dist/components/st-empty/types.d.ts +39 -39
  14. package/dist/components/st-form-control/types.d.ts +21 -21
  15. package/dist/components/st-form-description/types.d.ts +21 -21
  16. package/dist/components/st-form-field/types.d.ts +64 -64
  17. package/dist/components/st-form-item/types.d.ts +21 -21
  18. package/dist/components/st-form-label/types.d.ts +19 -19
  19. package/dist/components/st-form-message/types.d.ts +23 -23
  20. package/dist/components/st-image/types.d.ts +58 -58
  21. package/dist/components/st-input/types.d.ts +415 -415
  22. package/dist/components/st-label/types.d.ts +19 -19
  23. package/dist/components/st-menu/types.d.ts +262 -262
  24. package/dist/components/st-pagination/types.d.ts +91 -91
  25. package/dist/components/st-popover/types.d.ts +202 -202
  26. package/dist/components/st-progress/types.d.ts +37 -37
  27. package/dist/components/st-radio/types.d.ts +126 -126
  28. package/dist/components/st-scrollbar/types.d.ts +62 -62
  29. package/dist/components/st-segmented/types.d.ts +53 -53
  30. package/dist/components/st-select/types.d.ts +249 -249
  31. package/dist/components/st-sidebar/types.d.ts +85 -85
  32. package/dist/components/st-sidebar-item/types.d.ts +45 -45
  33. package/dist/components/st-skeleton/types.d.ts +56 -56
  34. package/dist/components/st-slider/types.d.ts +61 -61
  35. package/dist/components/st-splitter/types.d.ts +260 -260
  36. package/dist/components/st-splitter-panel/types.d.ts +63 -63
  37. package/dist/components/st-switch/types.d.ts +53 -53
  38. package/dist/components/st-tabs/types.d.ts +151 -151
  39. package/dist/components/st-tag/types.d.ts +51 -51
  40. package/dist/components/st-time-picker/types.d.ts +143 -143
  41. package/dist/components/st-toggle/types.d.ts +58 -58
  42. package/dist/components/st-tooltip/types.d.ts +172 -172
  43. package/dist/components/st-tree/types.d.ts +188 -188
  44. package/dist/straw-ui.js +344 -254
  45. package/package.json +16 -11
@@ -1,172 +1,172 @@
1
- import type { ClassValue, StyleValue } from 'vue';
2
- import type { StPopoverPlacement, StPopoverTrigger } from '../st-popover/types.d.ts';
3
-
4
- /**
5
- * Tooltip 触发方式类型
6
- * click: 点击触发
7
- * focus: 聚焦触发
8
- * hover: 悬停触发
9
- * contextmenu: 右键菜单触发
10
- * */
11
- export type StTooltipTrigger = StPopoverTrigger;
12
-
13
- /**
14
- * Tooltip 弹出方向类型
15
- * top-left: 上方左侧对齐
16
- * top-center: 上方居中对齐
17
- * top-right: 上方右侧对齐
18
- * bottom-left: 下方左侧对齐
19
- * bottom-center: 下方居中对齐
20
- * bottom-right: 下方右侧对齐
21
- * left-top: 左侧顶部对齐
22
- * left-center: 左侧居中对齐
23
- * left-bottom: 左侧底部对齐
24
- * right-top: 右侧顶部对齐
25
- * right-center: 右侧居中对齐
26
- * right-bottom: 右侧底部对齐
27
- * */
28
- export type StTooltipPlacement = StPopoverPlacement;
29
-
30
- /**
31
- * Tooltip 容器组件属性接口
32
- * */
33
- export interface StTooltipContainerProps {
34
- /** 受控模式下的显示状态 */
35
- open?: boolean;
36
- /** 非受控模式下的默认显示状态 */
37
- defaultOpen?: boolean;
38
- /** 显示延迟时间(毫秒) */
39
- openDelay?: number;
40
- /** 隐藏延迟时间(毫秒) */
41
- closeDelay?: number;
42
- /** 弹出方向 */
43
- placement?: StTooltipPlacement;
44
- }
45
-
46
- /**
47
- * Tooltip 容器组件事件接口
48
- * */
49
- export interface StTooltipContainerEmits {
50
- /** 更新显示状态事件 */
51
- 'update:open': [value: boolean];
52
- }
53
-
54
- /**
55
- * Tooltip 容器组件暴露的方法接口
56
- * */
57
- export interface StTooltipContainerExpose {
58
- /** 显示提示 */
59
- show: () => void;
60
- /** 隐藏提示 */
61
- hide: () => void;
62
- /** 切换显示状态 */
63
- toggle: () => void;
64
- /** 当前显示状态 */
65
- visible: { value: boolean };
66
- }
67
-
68
- /**
69
- * StTooltipTrigger 触发器组件属性接口
70
- * */
71
- export interface StTooltipTriggerProps {
72
- /** 自定义类名 */
73
- class?: ClassValue;
74
- /** 自定义样式 */
75
- style?: StyleValue;
76
- /** 是否作为子元素渲染(不添加额外包装元素) */
77
- asChild?: boolean;
78
- }
79
-
80
- /**
81
- * StTooltipTrigger 触发器组件暴露的方法接口
82
- * */
83
- export interface StTooltipTriggerExpose {
84
- /** 触发器元素引用 */
85
- triggerRef: { value: HTMLElement | null };
86
- }
87
-
88
- /**
89
- * TooltipContent 内容组件属性接口
90
- * */
91
- export interface StTooltipContentProps {
92
- /** 自定义类名 */
93
- class?: ClassValue;
94
- /** 自定义样式 */
95
- style?: StyleValue;
96
- /** 是否显示箭头 */
97
- showArrow?: boolean;
98
- /** 箭头自定义类名 */
99
- arrowClass?: ClassValue;
100
- /** 箭头自定义样式 */
101
- arrowStyle?: StyleValue;
102
- }
103
-
104
- /**
105
- * TooltipContent 内容组件暴露的方法接口
106
- * */
107
- export interface StTooltipContentExpose {
108
- /** 内容元素引用 */
109
- contentRef: { value: HTMLElement | null };
110
- /** 计算位置方法 */
111
- calculatePosition: () => Promise<void>;
112
- }
113
-
114
- /**
115
- * StTooltip 封装组件属性接口
116
- * */
117
- export interface StTooltipProps {
118
- /** 触发方式 */
119
- trigger?: StTooltipTrigger;
120
- /** 弹出方向 */
121
- placement?: StTooltipPlacement;
122
- /** 是否禁用 */
123
- disabled?: boolean;
124
- /** 是否可见 */
125
- visible?: boolean;
126
- /** 提示内容 */
127
- content?: string;
128
- /** 偏移距离 */
129
- offset?: number;
130
- /** 内容区域自定义类名 */
131
- contentClass?: ClassValue;
132
- /** 内容区域自定义样式 */
133
- contentStyle?: StyleValue;
134
- /** 箭头自定义类名 */
135
- arrowClass?: ClassValue;
136
- /** 箭头自定义样式 */
137
- arrowStyle?: StyleValue;
138
- }
139
-
140
- /**
141
- * StTooltip 封装组件事件接口
142
- * */
143
- export interface StTooltipEmits {
144
- /** 更新可见状态事件 */
145
- 'update:visible': [value: boolean];
146
- /** 可见状态改变事件 */
147
- visibleChange: [value: boolean];
148
- }
149
-
150
- /**
151
- * StTooltip 封装组件插槽接口
152
- * */
153
- export interface StTooltipSlots {
154
- /** 默认插槽 */
155
- default?: () => any;
156
- /** 提示内容插槽 */
157
- content?: () => any;
158
- }
159
-
160
- /**
161
- * StTooltip 封装组件暴露的方法接口
162
- * */
163
- export interface StTooltipExpose {
164
- /** 显示提示 */
165
- show: () => void;
166
- /** 隐藏提示 */
167
- hide: () => void;
168
- /** 切换显示状态 */
169
- toggle: () => void;
170
- }
171
-
172
- export {};
1
+ import type { ClassValue, StyleValue } from 'vue';
2
+ import type { StPopoverPlacement, StPopoverTrigger } from '../st-popover/types.d.ts';
3
+
4
+ /**
5
+ * Tooltip 触发方式类型
6
+ * click: 点击触发
7
+ * focus: 聚焦触发
8
+ * hover: 悬停触发
9
+ * contextmenu: 右键菜单触发
10
+ * */
11
+ export type StTooltipTrigger = StPopoverTrigger;
12
+
13
+ /**
14
+ * Tooltip 弹出方向类型
15
+ * top-left: 上方左侧对齐
16
+ * top-center: 上方居中对齐
17
+ * top-right: 上方右侧对齐
18
+ * bottom-left: 下方左侧对齐
19
+ * bottom-center: 下方居中对齐
20
+ * bottom-right: 下方右侧对齐
21
+ * left-top: 左侧顶部对齐
22
+ * left-center: 左侧居中对齐
23
+ * left-bottom: 左侧底部对齐
24
+ * right-top: 右侧顶部对齐
25
+ * right-center: 右侧居中对齐
26
+ * right-bottom: 右侧底部对齐
27
+ * */
28
+ export type StTooltipPlacement = StPopoverPlacement;
29
+
30
+ /**
31
+ * Tooltip 容器组件属性接口
32
+ * */
33
+ export interface StTooltipContainerProps {
34
+ /** 受控模式下的显示状态 */
35
+ open?: boolean;
36
+ /** 非受控模式下的默认显示状态 */
37
+ defaultOpen?: boolean;
38
+ /** 显示延迟时间(毫秒) */
39
+ openDelay?: number;
40
+ /** 隐藏延迟时间(毫秒) */
41
+ closeDelay?: number;
42
+ /** 弹出方向 */
43
+ placement?: StTooltipPlacement;
44
+ }
45
+
46
+ /**
47
+ * Tooltip 容器组件事件接口
48
+ * */
49
+ export interface StTooltipContainerEmits {
50
+ /** 更新显示状态事件 */
51
+ 'update:open': [value: boolean];
52
+ }
53
+
54
+ /**
55
+ * Tooltip 容器组件暴露的方法接口
56
+ * */
57
+ export interface StTooltipContainerExpose {
58
+ /** 显示提示 */
59
+ show: () => void;
60
+ /** 隐藏提示 */
61
+ hide: () => void;
62
+ /** 切换显示状态 */
63
+ toggle: () => void;
64
+ /** 当前显示状态 */
65
+ visible: { value: boolean };
66
+ }
67
+
68
+ /**
69
+ * StTooltipTrigger 触发器组件属性接口
70
+ * */
71
+ export interface StTooltipTriggerProps {
72
+ /** 自定义类名 */
73
+ class?: ClassValue;
74
+ /** 自定义样式 */
75
+ style?: StyleValue;
76
+ /** 是否作为子元素渲染(不添加额外包装元素) */
77
+ asChild?: boolean;
78
+ }
79
+
80
+ /**
81
+ * StTooltipTrigger 触发器组件暴露的方法接口
82
+ * */
83
+ export interface StTooltipTriggerExpose {
84
+ /** 触发器元素引用 */
85
+ triggerRef: { value: HTMLElement | null };
86
+ }
87
+
88
+ /**
89
+ * TooltipContent 内容组件属性接口
90
+ * */
91
+ export interface StTooltipContentProps {
92
+ /** 自定义类名 */
93
+ class?: ClassValue;
94
+ /** 自定义样式 */
95
+ style?: StyleValue;
96
+ /** 是否显示箭头 */
97
+ showArrow?: boolean;
98
+ /** 箭头自定义类名 */
99
+ arrowClass?: ClassValue;
100
+ /** 箭头自定义样式 */
101
+ arrowStyle?: StyleValue;
102
+ }
103
+
104
+ /**
105
+ * TooltipContent 内容组件暴露的方法接口
106
+ * */
107
+ export interface StTooltipContentExpose {
108
+ /** 内容元素引用 */
109
+ contentRef: { value: HTMLElement | null };
110
+ /** 计算位置方法 */
111
+ calculatePosition: () => Promise<void>;
112
+ }
113
+
114
+ /**
115
+ * StTooltip 封装组件属性接口
116
+ * */
117
+ export interface StTooltipProps {
118
+ /** 触发方式 */
119
+ trigger?: StTooltipTrigger;
120
+ /** 弹出方向 */
121
+ placement?: StTooltipPlacement;
122
+ /** 是否禁用 */
123
+ disabled?: boolean;
124
+ /** 是否可见 */
125
+ visible?: boolean;
126
+ /** 提示内容 */
127
+ content?: string;
128
+ /** 偏移距离 */
129
+ offset?: number;
130
+ /** 内容区域自定义类名 */
131
+ contentClass?: ClassValue;
132
+ /** 内容区域自定义样式 */
133
+ contentStyle?: StyleValue;
134
+ /** 箭头自定义类名 */
135
+ arrowClass?: ClassValue;
136
+ /** 箭头自定义样式 */
137
+ arrowStyle?: StyleValue;
138
+ }
139
+
140
+ /**
141
+ * StTooltip 封装组件事件接口
142
+ * */
143
+ export interface StTooltipEmits {
144
+ /** 更新可见状态事件 */
145
+ 'update:visible': [value: boolean];
146
+ /** 可见状态改变事件 */
147
+ visibleChange: [value: boolean];
148
+ }
149
+
150
+ /**
151
+ * StTooltip 封装组件插槽接口
152
+ * */
153
+ export interface StTooltipSlots {
154
+ /** 默认插槽 */
155
+ default?: () => any;
156
+ /** 提示内容插槽 */
157
+ content?: () => any;
158
+ }
159
+
160
+ /**
161
+ * StTooltip 封装组件暴露的方法接口
162
+ * */
163
+ export interface StTooltipExpose {
164
+ /** 显示提示 */
165
+ show: () => void;
166
+ /** 隐藏提示 */
167
+ hide: () => void;
168
+ /** 切换显示状态 */
169
+ toggle: () => void;
170
+ }
171
+
172
+ export {};