straw-ui-vue 0.1.20 → 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 (44) hide show
  1. package/README.md +146 -146
  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-sidebar/types.d.ts +85 -85
  31. package/dist/components/st-sidebar-item/types.d.ts +45 -45
  32. package/dist/components/st-skeleton/types.d.ts +56 -56
  33. package/dist/components/st-slider/types.d.ts +61 -61
  34. package/dist/components/st-splitter/types.d.ts +260 -260
  35. package/dist/components/st-splitter-panel/types.d.ts +63 -63
  36. package/dist/components/st-switch/types.d.ts +53 -53
  37. package/dist/components/st-tabs/types.d.ts +151 -151
  38. package/dist/components/st-tag/types.d.ts +51 -51
  39. package/dist/components/st-time-picker/types.d.ts +143 -143
  40. package/dist/components/st-toggle/types.d.ts +58 -58
  41. package/dist/components/st-tooltip/types.d.ts +172 -172
  42. package/dist/components/st-tree/types.d.ts +188 -188
  43. package/dist/straw-ui.js +107 -51
  44. package/package.json +16 -11
@@ -1,188 +1,188 @@
1
- import type { ClassValue, StyleValue } from 'vue';
2
-
3
- /**
4
- * 树节点数据接口
5
- * */
6
- export interface StTreeListItem {
7
- /**
8
- * 子节点列表
9
- * */
10
- children?: StTreeListItem[];
11
- /**
12
- * 其他自定义属性
13
- * */
14
- [key: string]: unknown;
15
- }
16
-
17
- /**
18
- * 树组件属性接口
19
- * */
20
- export interface StTreeProps {
21
- /**
22
- * 树数据列表
23
- * */
24
- list: StTreeListItem[];
25
- /**
26
- * 显示文本的字段名
27
- * */
28
- labelKey?: string;
29
- /**
30
- * 值的字段名
31
- * */
32
- valueKey?: string;
33
- /**
34
- * 子节点的字段名
35
- * */
36
- childrenKey?: string;
37
- /**
38
- * 节点缩进距离
39
- * */
40
- indent?: number;
41
- /**
42
- * tree 容器 class
43
- * */
44
- treeClass?: ClassValue;
45
- /**
46
- * tree 容器 style
47
- * */
48
- treeStyle?: StyleValue;
49
- /**
50
- * 节点 class
51
- * */
52
- nodeClass?: ClassValue;
53
- /**
54
- * 节点 style
55
- * */
56
- nodeStyle?: StyleValue;
57
- /**
58
- * 节点内容 class
59
- * */
60
- nodeContentClass?: ClassValue;
61
- /**
62
- * 节点内容 style
63
- * */
64
- nodeContentStyle?: StyleValue;
65
- /**
66
- * 节点图标 class
67
- * */
68
- nodeIconClass?: ClassValue;
69
- /**
70
- * 节点标签 class
71
- * */
72
- nodeLabelClass?: ClassValue;
73
- /**
74
- * 展开图标 class
75
- * */
76
- expandIconClass?: ClassValue;
77
- }
78
-
79
- /**
80
- * 树组件事件接口
81
- * */
82
- export interface StTreeEmits {
83
- /** 更新选中值事件 */
84
- 'update:modelValue': [value: string | number | undefined];
85
- /** 选择节点事件 */
86
- select: [value: string | number, node: StTreeListItem];
87
- /** 展开/收起节点事件 */
88
- expand: [value: string | number, expanded: boolean];
89
- }
90
-
91
- /**
92
- * 树组件插槽接口
93
- * */
94
- export interface StTreeSlots {
95
- /** 默认插槽 */
96
- default?: () => unknown;
97
- }
98
-
99
- /**
100
- * 树组件暴露方法接口
101
- * */
102
- export interface StTreeExpose {
103
- /** 展开指定节点 */
104
- expandNode: (value: string | number) => void;
105
- /** 收起指定节点 */
106
- collapseNode: (value: string | number) => void;
107
- /** 展开所有节点 */
108
- expandAll: () => void;
109
- /** 收起所有节点 */
110
- collapseAll: () => void;
111
- }
112
-
113
- /**
114
- * 树节点属性接口
115
- * */
116
- export interface StTreeNodeProps {
117
- /**
118
- * 节点数据
119
- * */
120
- node: StTreeListItem;
121
- /**
122
- * 节点层级
123
- * */
124
- level: number;
125
- /**
126
- * 节点缩进距离
127
- * */
128
- indent?: number;
129
- /**
130
- * 显示文本的字段名
131
- * */
132
- labelKey: string;
133
- /**
134
- * 值的字段名
135
- * */
136
- valueKey: string;
137
- /**
138
- * 子节点的字段名
139
- * */
140
- childrenKey: string;
141
- /**
142
- * 当前选中的值
143
- * */
144
- selectedValue: string | number | undefined;
145
- /**
146
- * 展开的节点值列表
147
- * */
148
- expandedKeys: (string | number)[];
149
- /**
150
- * 处理节点选择
151
- * */
152
- onSelect: (value: string | number) => void;
153
- /**
154
- * 处理节点展开/收起
155
- * */
156
- onToggle: (value: string | number) => void;
157
- }
158
-
159
- /**
160
- * 树节点组件插槽接口
161
- * */
162
- export interface StTreeNodeSlots {
163
- /** 默认插槽 */
164
- default?: () => unknown;
165
- }
166
-
167
- /**
168
- * 树组件样式上下文接口
169
- * 用于 provide/inject 传递样式配置
170
- * */
171
- export interface StTreeStyleContext {
172
- /** 节点 class */
173
- nodeClass?: ClassValue;
174
- /** 节点 style */
175
- nodeStyle?: StyleValue;
176
- /** 节点内容 class */
177
- nodeContentClass?: ClassValue;
178
- /** 节点内容 style */
179
- nodeContentStyle?: StyleValue;
180
- /** 节点图标 class */
181
- nodeIconClass?: ClassValue;
182
- /** 节点标签 class */
183
- nodeLabelClass?: ClassValue;
184
- /** 展开图标 class */
185
- expandIconClass?: ClassValue;
186
- }
187
-
188
- export {};
1
+ import type { ClassValue, StyleValue } from 'vue';
2
+
3
+ /**
4
+ * 树节点数据接口
5
+ * */
6
+ export interface StTreeListItem {
7
+ /**
8
+ * 子节点列表
9
+ * */
10
+ children?: StTreeListItem[];
11
+ /**
12
+ * 其他自定义属性
13
+ * */
14
+ [key: string]: unknown;
15
+ }
16
+
17
+ /**
18
+ * 树组件属性接口
19
+ * */
20
+ export interface StTreeProps {
21
+ /**
22
+ * 树数据列表
23
+ * */
24
+ list: StTreeListItem[];
25
+ /**
26
+ * 显示文本的字段名
27
+ * */
28
+ labelKey?: string;
29
+ /**
30
+ * 值的字段名
31
+ * */
32
+ valueKey?: string;
33
+ /**
34
+ * 子节点的字段名
35
+ * */
36
+ childrenKey?: string;
37
+ /**
38
+ * 节点缩进距离
39
+ * */
40
+ indent?: number;
41
+ /**
42
+ * tree 容器 class
43
+ * */
44
+ treeClass?: ClassValue;
45
+ /**
46
+ * tree 容器 style
47
+ * */
48
+ treeStyle?: StyleValue;
49
+ /**
50
+ * 节点 class
51
+ * */
52
+ nodeClass?: ClassValue;
53
+ /**
54
+ * 节点 style
55
+ * */
56
+ nodeStyle?: StyleValue;
57
+ /**
58
+ * 节点内容 class
59
+ * */
60
+ nodeContentClass?: ClassValue;
61
+ /**
62
+ * 节点内容 style
63
+ * */
64
+ nodeContentStyle?: StyleValue;
65
+ /**
66
+ * 节点图标 class
67
+ * */
68
+ nodeIconClass?: ClassValue;
69
+ /**
70
+ * 节点标签 class
71
+ * */
72
+ nodeLabelClass?: ClassValue;
73
+ /**
74
+ * 展开图标 class
75
+ * */
76
+ expandIconClass?: ClassValue;
77
+ }
78
+
79
+ /**
80
+ * 树组件事件接口
81
+ * */
82
+ export interface StTreeEmits {
83
+ /** 更新选中值事件 */
84
+ 'update:modelValue': [value: string | number | undefined];
85
+ /** 选择节点事件 */
86
+ select: [value: string | number, node: StTreeListItem];
87
+ /** 展开/收起节点事件 */
88
+ expand: [value: string | number, expanded: boolean];
89
+ }
90
+
91
+ /**
92
+ * 树组件插槽接口
93
+ * */
94
+ export interface StTreeSlots {
95
+ /** 默认插槽 */
96
+ default?: () => unknown;
97
+ }
98
+
99
+ /**
100
+ * 树组件暴露方法接口
101
+ * */
102
+ export interface StTreeExpose {
103
+ /** 展开指定节点 */
104
+ expandNode: (value: string | number) => void;
105
+ /** 收起指定节点 */
106
+ collapseNode: (value: string | number) => void;
107
+ /** 展开所有节点 */
108
+ expandAll: () => void;
109
+ /** 收起所有节点 */
110
+ collapseAll: () => void;
111
+ }
112
+
113
+ /**
114
+ * 树节点属性接口
115
+ * */
116
+ export interface StTreeNodeProps {
117
+ /**
118
+ * 节点数据
119
+ * */
120
+ node: StTreeListItem;
121
+ /**
122
+ * 节点层级
123
+ * */
124
+ level: number;
125
+ /**
126
+ * 节点缩进距离
127
+ * */
128
+ indent?: number;
129
+ /**
130
+ * 显示文本的字段名
131
+ * */
132
+ labelKey: string;
133
+ /**
134
+ * 值的字段名
135
+ * */
136
+ valueKey: string;
137
+ /**
138
+ * 子节点的字段名
139
+ * */
140
+ childrenKey: string;
141
+ /**
142
+ * 当前选中的值
143
+ * */
144
+ selectedValue: string | number | undefined;
145
+ /**
146
+ * 展开的节点值列表
147
+ * */
148
+ expandedKeys: (string | number)[];
149
+ /**
150
+ * 处理节点选择
151
+ * */
152
+ onSelect: (value: string | number) => void;
153
+ /**
154
+ * 处理节点展开/收起
155
+ * */
156
+ onToggle: (value: string | number) => void;
157
+ }
158
+
159
+ /**
160
+ * 树节点组件插槽接口
161
+ * */
162
+ export interface StTreeNodeSlots {
163
+ /** 默认插槽 */
164
+ default?: () => unknown;
165
+ }
166
+
167
+ /**
168
+ * 树组件样式上下文接口
169
+ * 用于 provide/inject 传递样式配置
170
+ * */
171
+ export interface StTreeStyleContext {
172
+ /** 节点 class */
173
+ nodeClass?: ClassValue;
174
+ /** 节点 style */
175
+ nodeStyle?: StyleValue;
176
+ /** 节点内容 class */
177
+ nodeContentClass?: ClassValue;
178
+ /** 节点内容 style */
179
+ nodeContentStyle?: StyleValue;
180
+ /** 节点图标 class */
181
+ nodeIconClass?: ClassValue;
182
+ /** 节点标签 class */
183
+ nodeLabelClass?: ClassValue;
184
+ /** 展开图标 class */
185
+ expandIconClass?: ClassValue;
186
+ }
187
+
188
+ export {};