straw-ui-vue 0.1.61 → 0.1.63
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.
- package/dist/components/st-cascade/desktop/st-cascade-desktop.d.ts +1 -0
- package/dist/components/st-cascade/desktop/types/st-cascade-desktop.d.ts +2 -0
- package/dist/components/st-cascade/index.d.ts +9 -0
- package/dist/components/st-cascade/st-cascade.d.ts +1 -0
- package/dist/components/st-select/desktop/st-select-desktop.d.ts +1 -0
- package/dist/components/st-select/desktop/types/st-select-desktop.d.ts +2 -0
- package/dist/components/st-select/index.d.ts +15 -0
- package/dist/components/st-select/st-select-dropdown.d.ts +1 -0
- package/dist/components/st-select/st-select.d.ts +1 -0
- package/dist/components/st-select/types/st-select-dropdown.d.ts +2 -0
- package/dist/components/st-tree/types/st-tree-group-checkbox.d.ts +13 -2
- package/dist/components/st-tree/types/st-tree-node.d.ts +36 -0
- package/dist/components/st-tree/types/st-tree.d.ts +36 -0
- package/dist/straw-ui.js +412 -43
- package/package.json +1 -1
|
@@ -33,6 +33,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, StCas
|
|
|
33
33
|
showPath: boolean;
|
|
34
34
|
defaultExpandedAll: boolean;
|
|
35
35
|
floatingLabel: boolean;
|
|
36
|
+
matchTriggerWidth: boolean;
|
|
36
37
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
37
38
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
38
39
|
declare const _default: typeof __VLS_export;
|
|
@@ -36,6 +36,8 @@ export interface StCascadeDesktopProps {
|
|
|
36
36
|
defaultExpandedAll?: boolean;
|
|
37
37
|
/** 是否启用浮动占位标签(placeholder 在聚焦或有值时缩到左上角) */
|
|
38
38
|
floatingLabel?: boolean;
|
|
39
|
+
/** 弹出层宽度是否锁定为触发输入框宽度:true 等宽(超长节点省略号截断),false 以触发输入框宽度为最小宽度、由内容撑开 */
|
|
40
|
+
matchTriggerWidth?: boolean;
|
|
39
41
|
/** 弹出层的类名 */
|
|
40
42
|
popoverClass?: ClassValue;
|
|
41
43
|
/** 弹出层的样式 */
|
|
@@ -21,6 +21,7 @@ export declare const StCascade: {
|
|
|
21
21
|
expandOnClick: boolean | "auto";
|
|
22
22
|
showPath: boolean;
|
|
23
23
|
floatingLabel: boolean;
|
|
24
|
+
matchTriggerWidth: boolean;
|
|
24
25
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
25
26
|
P: {};
|
|
26
27
|
B: {};
|
|
@@ -43,6 +44,7 @@ export declare const StCascade: {
|
|
|
43
44
|
expandOnClick: boolean | "auto";
|
|
44
45
|
showPath: boolean;
|
|
45
46
|
floatingLabel: boolean;
|
|
47
|
+
matchTriggerWidth: boolean;
|
|
46
48
|
}>;
|
|
47
49
|
__isFragment?: never;
|
|
48
50
|
__isTeleport?: never;
|
|
@@ -69,6 +71,7 @@ export declare const StCascade: {
|
|
|
69
71
|
expandOnClick: boolean | "auto";
|
|
70
72
|
showPath: boolean;
|
|
71
73
|
floatingLabel: boolean;
|
|
74
|
+
matchTriggerWidth: boolean;
|
|
72
75
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
73
76
|
$slots: import('./index.ts').StCascadeSlots;
|
|
74
77
|
}) & {
|
|
@@ -258,6 +261,7 @@ export declare const StCascade: {
|
|
|
258
261
|
showPath: boolean;
|
|
259
262
|
defaultExpandedAll: boolean;
|
|
260
263
|
floatingLabel: boolean;
|
|
264
|
+
matchTriggerWidth: boolean;
|
|
261
265
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
262
266
|
P: {};
|
|
263
267
|
B: {};
|
|
@@ -288,6 +292,7 @@ export declare const StCascade: {
|
|
|
288
292
|
showPath: boolean;
|
|
289
293
|
defaultExpandedAll: boolean;
|
|
290
294
|
floatingLabel: boolean;
|
|
295
|
+
matchTriggerWidth: boolean;
|
|
291
296
|
}>;
|
|
292
297
|
__isFragment?: never;
|
|
293
298
|
__isTeleport?: never;
|
|
@@ -320,6 +325,7 @@ export declare const StCascade: {
|
|
|
320
325
|
showPath: boolean;
|
|
321
326
|
defaultExpandedAll: boolean;
|
|
322
327
|
floatingLabel: boolean;
|
|
328
|
+
matchTriggerWidth: boolean;
|
|
323
329
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
324
330
|
$slots: import('./index.ts').StCascadeDesktopSlots;
|
|
325
331
|
});
|
|
@@ -627,6 +633,7 @@ export declare const StCascadeDesktop: {
|
|
|
627
633
|
showPath: boolean;
|
|
628
634
|
defaultExpandedAll: boolean;
|
|
629
635
|
floatingLabel: boolean;
|
|
636
|
+
matchTriggerWidth: boolean;
|
|
630
637
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
631
638
|
P: {};
|
|
632
639
|
B: {};
|
|
@@ -657,6 +664,7 @@ export declare const StCascadeDesktop: {
|
|
|
657
664
|
showPath: boolean;
|
|
658
665
|
defaultExpandedAll: boolean;
|
|
659
666
|
floatingLabel: boolean;
|
|
667
|
+
matchTriggerWidth: boolean;
|
|
660
668
|
}>;
|
|
661
669
|
__isFragment?: never;
|
|
662
670
|
__isTeleport?: never;
|
|
@@ -689,6 +697,7 @@ export declare const StCascadeDesktop: {
|
|
|
689
697
|
showPath: boolean;
|
|
690
698
|
defaultExpandedAll: boolean;
|
|
691
699
|
floatingLabel: boolean;
|
|
700
|
+
matchTriggerWidth: boolean;
|
|
692
701
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
693
702
|
$slots: import('./index.ts').StCascadeDesktopSlots;
|
|
694
703
|
});
|
|
@@ -27,6 +27,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, StCas
|
|
|
27
27
|
expandOnClick: boolean | "auto";
|
|
28
28
|
showPath: boolean;
|
|
29
29
|
floatingLabel: boolean;
|
|
30
|
+
matchTriggerWidth: boolean;
|
|
30
31
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
32
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
33
|
declare const _default: typeof __VLS_export;
|
|
@@ -38,6 +38,8 @@ export interface StSelectDesktopProps {
|
|
|
38
38
|
group?: boolean;
|
|
39
39
|
/** 是否启用浮动占位标签(placeholder 在聚焦或有值时缩到左上角) */
|
|
40
40
|
floatingLabel?: boolean;
|
|
41
|
+
/** 下拉面板宽度是否锁定为触发器宽度:true 等宽(超长选项省略号截断),false 以触发器宽度为最小宽度、由内容撑开 */
|
|
42
|
+
matchTriggerWidth?: boolean;
|
|
41
43
|
/** popover 下拉菜单的类名 */
|
|
42
44
|
popoverClass?: ClassValue;
|
|
43
45
|
/** popover 下拉菜单的样式 */
|
|
@@ -16,6 +16,7 @@ export declare const StSelect: {
|
|
|
16
16
|
}, import('vue').PublicProps, {
|
|
17
17
|
deviceType: import('../../types.ts').DeviceType | "auto";
|
|
18
18
|
floatingLabel: boolean;
|
|
19
|
+
matchTriggerWidth: boolean;
|
|
19
20
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
20
21
|
P: {};
|
|
21
22
|
B: {};
|
|
@@ -34,6 +35,7 @@ export declare const StSelect: {
|
|
|
34
35
|
}>, import('./index.ts').StSelectExpose, {}, {}, {}, {
|
|
35
36
|
deviceType: import('../../types.ts').DeviceType | "auto";
|
|
36
37
|
floatingLabel: boolean;
|
|
38
|
+
matchTriggerWidth: boolean;
|
|
37
39
|
}>;
|
|
38
40
|
__isFragment?: never;
|
|
39
41
|
__isTeleport?: never;
|
|
@@ -55,6 +57,7 @@ export declare const StSelect: {
|
|
|
55
57
|
}, string, {
|
|
56
58
|
deviceType: import('../../types.ts').DeviceType | "auto";
|
|
57
59
|
floatingLabel: boolean;
|
|
60
|
+
matchTriggerWidth: boolean;
|
|
58
61
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
59
62
|
$slots: import('./index.ts').StSelectSlots;
|
|
60
63
|
}) & {
|
|
@@ -170,6 +173,7 @@ export declare const StSelect: {
|
|
|
170
173
|
StSelectDropdown: {
|
|
171
174
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types/st-select-dropdown').StSelectDropdownProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
172
175
|
disabled: boolean;
|
|
176
|
+
matchTriggerWidth: boolean;
|
|
173
177
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
174
178
|
P: {};
|
|
175
179
|
B: {};
|
|
@@ -179,12 +183,14 @@ export declare const StSelect: {
|
|
|
179
183
|
Defaults: {};
|
|
180
184
|
}, Readonly<import('./types/st-select-dropdown').StSelectDropdownProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
181
185
|
disabled: boolean;
|
|
186
|
+
matchTriggerWidth: boolean;
|
|
182
187
|
}>;
|
|
183
188
|
__isFragment?: never;
|
|
184
189
|
__isTeleport?: never;
|
|
185
190
|
__isSuspense?: never;
|
|
186
191
|
} & import('vue').ComponentOptionsBase<Readonly<import('./types/st-select-dropdown').StSelectDropdownProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
187
192
|
disabled: boolean;
|
|
193
|
+
matchTriggerWidth: boolean;
|
|
188
194
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
189
195
|
$slots: import('./types/st-select-dropdown').StSelectDropdownSlots;
|
|
190
196
|
});
|
|
@@ -358,6 +364,7 @@ export declare const StSelect: {
|
|
|
358
364
|
placeholder: string;
|
|
359
365
|
clearable: boolean;
|
|
360
366
|
floatingLabel: boolean;
|
|
367
|
+
matchTriggerWidth: boolean;
|
|
361
368
|
filterable: boolean;
|
|
362
369
|
remote: boolean;
|
|
363
370
|
loadingText: string;
|
|
@@ -389,6 +396,7 @@ export declare const StSelect: {
|
|
|
389
396
|
placeholder: string;
|
|
390
397
|
clearable: boolean;
|
|
391
398
|
floatingLabel: boolean;
|
|
399
|
+
matchTriggerWidth: boolean;
|
|
392
400
|
filterable: boolean;
|
|
393
401
|
remote: boolean;
|
|
394
402
|
loadingText: string;
|
|
@@ -423,6 +431,7 @@ export declare const StSelect: {
|
|
|
423
431
|
placeholder: string;
|
|
424
432
|
clearable: boolean;
|
|
425
433
|
floatingLabel: boolean;
|
|
434
|
+
matchTriggerWidth: boolean;
|
|
426
435
|
filterable: boolean;
|
|
427
436
|
remote: boolean;
|
|
428
437
|
loadingText: string;
|
|
@@ -714,6 +723,7 @@ export declare const StSelectContent: {
|
|
|
714
723
|
export declare const StSelectDropdown: {
|
|
715
724
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types/st-select-dropdown').StSelectDropdownProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
716
725
|
disabled: boolean;
|
|
726
|
+
matchTriggerWidth: boolean;
|
|
717
727
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
718
728
|
P: {};
|
|
719
729
|
B: {};
|
|
@@ -723,12 +733,14 @@ export declare const StSelectDropdown: {
|
|
|
723
733
|
Defaults: {};
|
|
724
734
|
}, Readonly<import('./types/st-select-dropdown').StSelectDropdownProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
725
735
|
disabled: boolean;
|
|
736
|
+
matchTriggerWidth: boolean;
|
|
726
737
|
}>;
|
|
727
738
|
__isFragment?: never;
|
|
728
739
|
__isTeleport?: never;
|
|
729
740
|
__isSuspense?: never;
|
|
730
741
|
} & import('vue').ComponentOptionsBase<Readonly<import('./types/st-select-dropdown').StSelectDropdownProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
731
742
|
disabled: boolean;
|
|
743
|
+
matchTriggerWidth: boolean;
|
|
732
744
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
733
745
|
$slots: import('./types/st-select-dropdown').StSelectDropdownSlots;
|
|
734
746
|
});
|
|
@@ -903,6 +915,7 @@ export declare const StSelectDesktop: {
|
|
|
903
915
|
placeholder: string;
|
|
904
916
|
clearable: boolean;
|
|
905
917
|
floatingLabel: boolean;
|
|
918
|
+
matchTriggerWidth: boolean;
|
|
906
919
|
filterable: boolean;
|
|
907
920
|
remote: boolean;
|
|
908
921
|
loadingText: string;
|
|
@@ -934,6 +947,7 @@ export declare const StSelectDesktop: {
|
|
|
934
947
|
placeholder: string;
|
|
935
948
|
clearable: boolean;
|
|
936
949
|
floatingLabel: boolean;
|
|
950
|
+
matchTriggerWidth: boolean;
|
|
937
951
|
filterable: boolean;
|
|
938
952
|
remote: boolean;
|
|
939
953
|
loadingText: string;
|
|
@@ -968,6 +982,7 @@ export declare const StSelectDesktop: {
|
|
|
968
982
|
placeholder: string;
|
|
969
983
|
clearable: boolean;
|
|
970
984
|
floatingLabel: boolean;
|
|
985
|
+
matchTriggerWidth: boolean;
|
|
971
986
|
filterable: boolean;
|
|
972
987
|
remote: boolean;
|
|
973
988
|
loadingText: string;
|
|
@@ -2,6 +2,7 @@ import { StSelectDropdownProps, StSelectDropdownSlots } from './types/st-select-
|
|
|
2
2
|
type __VLS_Slots = StSelectDropdownSlots;
|
|
3
3
|
declare const __VLS_base: import('vue').DefineComponent<StSelectDropdownProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StSelectDropdownProps> & Readonly<{}>, {
|
|
4
4
|
disabled: boolean;
|
|
5
|
+
matchTriggerWidth: boolean;
|
|
5
6
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
7
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
8
|
declare const _default: typeof __VLS_export;
|
|
@@ -20,6 +20,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, StSel
|
|
|
20
20
|
}>, {
|
|
21
21
|
deviceType: import('../../types.ts').DeviceType | "auto";
|
|
22
22
|
floatingLabel: boolean;
|
|
23
|
+
matchTriggerWidth: boolean;
|
|
23
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
24
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
26
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
+
import type { ClassValue, StyleValue } from 'vue';
|
|
2
|
+
|
|
1
3
|
/** 树多选框组件属性接口 */
|
|
2
|
-
export interface StTreeGroupCheckboxProps {
|
|
4
|
+
export interface StTreeGroupCheckboxProps {
|
|
5
|
+
/** 多选框盒子类名 */
|
|
6
|
+
boxClass?: ClassValue;
|
|
7
|
+
/** 多选框盒子样式 */
|
|
8
|
+
boxStyle?: StyleValue;
|
|
9
|
+
/** 多选框图标类名 */
|
|
10
|
+
coreClass?: ClassValue;
|
|
11
|
+
/** 多选框图标样式 */
|
|
12
|
+
coreStyle?: StyleValue;
|
|
13
|
+
}
|
|
3
14
|
|
|
4
15
|
/** 树多选框组件插槽接口 */
|
|
5
16
|
export interface StTreeGroupCheckboxSlots {}
|
|
@@ -10,4 +21,4 @@ export interface StTreeGroupCheckboxEmits {
|
|
|
10
21
|
change: [event: MouseEvent];
|
|
11
22
|
}
|
|
12
23
|
|
|
13
|
-
export {};
|
|
24
|
+
export {};
|
|
@@ -21,6 +21,42 @@ export interface StTreeNodeProps {
|
|
|
21
21
|
labelClass?: ClassValue;
|
|
22
22
|
/** 标签样式 */
|
|
23
23
|
labelStyle?: StyleValue;
|
|
24
|
+
/** 节点行类名 */
|
|
25
|
+
nodeClass?: ClassValue;
|
|
26
|
+
/** 节点行样式 */
|
|
27
|
+
nodeStyle?: StyleValue;
|
|
28
|
+
/** 箭头外层附加区类名 */
|
|
29
|
+
arrowAddonClass?: ClassValue;
|
|
30
|
+
/** 箭头外层附加区样式 */
|
|
31
|
+
arrowAddonStyle?: StyleValue;
|
|
32
|
+
/** 多选框外层附加区类名 */
|
|
33
|
+
checkboxAddonClass?: ClassValue;
|
|
34
|
+
/** 多选框外层附加区样式 */
|
|
35
|
+
checkboxAddonStyle?: StyleValue;
|
|
36
|
+
/** 多选框类名 */
|
|
37
|
+
checkboxClass?: ClassValue;
|
|
38
|
+
/** 多选框样式 */
|
|
39
|
+
checkboxStyle?: StyleValue;
|
|
40
|
+
/** 多选框盒子类名 */
|
|
41
|
+
checkboxBoxClass?: ClassValue;
|
|
42
|
+
/** 多选框盒子样式 */
|
|
43
|
+
checkboxBoxStyle?: StyleValue;
|
|
44
|
+
/** 多选框图标类名 */
|
|
45
|
+
checkboxCoreClass?: ClassValue;
|
|
46
|
+
/** 多选框图标样式 */
|
|
47
|
+
checkboxCoreStyle?: StyleValue;
|
|
48
|
+
/** 操作区外层附加区类名 */
|
|
49
|
+
actionAddonClass?: ClassValue;
|
|
50
|
+
/** 操作区外层附加区样式 */
|
|
51
|
+
actionAddonStyle?: StyleValue;
|
|
52
|
+
/** 子节点容器类名 */
|
|
53
|
+
childrenClass?: ClassValue;
|
|
54
|
+
/** 子节点容器样式 */
|
|
55
|
+
childrenStyle?: StyleValue;
|
|
56
|
+
/** 子组容器类名 */
|
|
57
|
+
subGroupClass?: ClassValue;
|
|
58
|
+
/** 子组容器样式 */
|
|
59
|
+
subGroupStyle?: StyleValue;
|
|
24
60
|
}
|
|
25
61
|
|
|
26
62
|
/** 树内部递归渲染器插槽接口 */
|
|
@@ -56,6 +56,42 @@ export interface StTreeProps {
|
|
|
56
56
|
labelClass?: ClassValue;
|
|
57
57
|
/** 标签 style */
|
|
58
58
|
labelStyle?: StyleValue;
|
|
59
|
+
/** 节点行 class */
|
|
60
|
+
nodeClass?: ClassValue;
|
|
61
|
+
/** 节点行 style */
|
|
62
|
+
nodeStyle?: StyleValue;
|
|
63
|
+
/** 箭头外层附加区 class */
|
|
64
|
+
arrowAddonClass?: ClassValue;
|
|
65
|
+
/** 箭头外层附加区 style */
|
|
66
|
+
arrowAddonStyle?: StyleValue;
|
|
67
|
+
/** 多选框外层附加区 class */
|
|
68
|
+
checkboxAddonClass?: ClassValue;
|
|
69
|
+
/** 多选框外层附加区 style */
|
|
70
|
+
checkboxAddonStyle?: StyleValue;
|
|
71
|
+
/** 多选框 class */
|
|
72
|
+
checkboxClass?: ClassValue;
|
|
73
|
+
/** 多选框 style */
|
|
74
|
+
checkboxStyle?: StyleValue;
|
|
75
|
+
/** 多选框盒子 class */
|
|
76
|
+
checkboxBoxClass?: ClassValue;
|
|
77
|
+
/** 多选框盒子 style */
|
|
78
|
+
checkboxBoxStyle?: StyleValue;
|
|
79
|
+
/** 多选框图标 class */
|
|
80
|
+
checkboxCoreClass?: ClassValue;
|
|
81
|
+
/** 多选框图标 style */
|
|
82
|
+
checkboxCoreStyle?: StyleValue;
|
|
83
|
+
/** 操作区外层附加区 class */
|
|
84
|
+
actionAddonClass?: ClassValue;
|
|
85
|
+
/** 操作区外层附加区 style */
|
|
86
|
+
actionAddonStyle?: StyleValue;
|
|
87
|
+
/** 子节点容器 class */
|
|
88
|
+
childrenClass?: ClassValue;
|
|
89
|
+
/** 子节点容器 style */
|
|
90
|
+
childrenStyle?: StyleValue;
|
|
91
|
+
/** 子组容器 class */
|
|
92
|
+
subGroupClass?: ClassValue;
|
|
93
|
+
/** 子组容器 style */
|
|
94
|
+
subGroupStyle?: StyleValue;
|
|
59
95
|
}
|
|
60
96
|
/** 树组件插槽接口 */
|
|
61
97
|
export interface StTreeSlots {
|
package/dist/straw-ui.js
CHANGED
|
@@ -4502,23 +4502,23 @@ var En = ["data-index"], Dn = /* @__PURE__ */ I({
|
|
|
4502
4502
|
setup(e, { emit: t }) {
|
|
4503
4503
|
let n = J();
|
|
4504
4504
|
X();
|
|
4505
|
-
let r = e, i = Vn(), a = Un(), o = O(() => a ? i?.modelValue.value === a.value.value : !1), s = O(() => r.disabled || (a?.disabled.value ?? !1)),
|
|
4505
|
+
let r = e, i = Vn(), a = Un(), o = O(() => a ? i?.modelValue.value === a.value.value : !1), s = O(() => !a || i?.selection.value ? !1 : i?.modelValue.value === a.value.value), c = O(() => !a || !i?.selection.value ? !1 : i?.selectedKeys?.value.includes(a.value.value) ?? !1), u = O(() => r.disabled || (a?.disabled.value ?? !1)), f = d({
|
|
4506
4506
|
base: "flex items-center gap-default rounded",
|
|
4507
4507
|
variants: { selected: {
|
|
4508
4508
|
true: "bg-primary/10 text-primary",
|
|
4509
4509
|
false: "text-foreground hover:bg-accent"
|
|
4510
4510
|
} }
|
|
4511
|
-
}),
|
|
4511
|
+
}), p = O(() => l(f({ selected: o.value }), s.value && "is-active", c.value && "is-checked", n.class)), m = O(() => {
|
|
4512
4512
|
let e = a?.indentOffset.value ?? 0;
|
|
4513
4513
|
return [n.style, { paddingLeft: e > 0 ? `${e}px` : void 0 }];
|
|
4514
4514
|
});
|
|
4515
|
-
function
|
|
4516
|
-
a && !
|
|
4515
|
+
function h() {
|
|
4516
|
+
a && !u.value && i?.setSelected(a.value.value);
|
|
4517
4517
|
}
|
|
4518
4518
|
return (e, t) => (H(), j("div", {
|
|
4519
|
-
class: B(["st-tree-group-node",
|
|
4520
|
-
style: V(
|
|
4521
|
-
onClick:
|
|
4519
|
+
class: B(["st-tree-group-node", p.value]),
|
|
4520
|
+
style: V(m.value),
|
|
4521
|
+
onClick: h
|
|
4522
4522
|
}, [G(e.$slots, "default")], 6));
|
|
4523
4523
|
}
|
|
4524
4524
|
}), Kn = /* @__PURE__ */ I({
|
|
@@ -4787,34 +4787,72 @@ var Qn = ["for"], $n = /* @__PURE__ */ I({
|
|
|
4787
4787
|
name: "StTreeGroupCheckbox",
|
|
4788
4788
|
inheritAttrs: !1,
|
|
4789
4789
|
__name: "st-tree-group-checkbox",
|
|
4790
|
+
props: {
|
|
4791
|
+
boxClass: { type: [
|
|
4792
|
+
Boolean,
|
|
4793
|
+
null,
|
|
4794
|
+
String,
|
|
4795
|
+
Object,
|
|
4796
|
+
Array
|
|
4797
|
+
] },
|
|
4798
|
+
boxStyle: { type: [
|
|
4799
|
+
Boolean,
|
|
4800
|
+
null,
|
|
4801
|
+
String,
|
|
4802
|
+
Object,
|
|
4803
|
+
Array
|
|
4804
|
+
] },
|
|
4805
|
+
coreClass: { type: [
|
|
4806
|
+
Boolean,
|
|
4807
|
+
null,
|
|
4808
|
+
String,
|
|
4809
|
+
Object,
|
|
4810
|
+
Array
|
|
4811
|
+
] },
|
|
4812
|
+
coreStyle: { type: [
|
|
4813
|
+
Boolean,
|
|
4814
|
+
null,
|
|
4815
|
+
String,
|
|
4816
|
+
Object,
|
|
4817
|
+
Array
|
|
4818
|
+
] }
|
|
4819
|
+
},
|
|
4790
4820
|
emits: ["change"],
|
|
4791
4821
|
setup(e, { emit: t }) {
|
|
4792
4822
|
let n = J();
|
|
4793
4823
|
X();
|
|
4794
|
-
let r = t, i = Vn(),
|
|
4795
|
-
get: () =>
|
|
4824
|
+
let r = t, i = e, a = Vn(), o = Un(), s = O(() => o?.value.value), c = O(() => o?.disabled.value ?? !1), l = O(() => a?.indeterminateKeys.value.has(s.value) ?? !1), u = O({
|
|
4825
|
+
get: () => a?.selectedKeys.value.includes(s.value) ? s.value : !1,
|
|
4796
4826
|
set: () => {
|
|
4797
|
-
|
|
4827
|
+
o && a?.toggleChecked(o.value.value);
|
|
4798
4828
|
}
|
|
4799
4829
|
});
|
|
4800
|
-
function
|
|
4830
|
+
function d(e) {
|
|
4801
4831
|
r("change", e);
|
|
4802
4832
|
}
|
|
4803
4833
|
return (e, t) => (H(), j("span", {
|
|
4804
4834
|
class: "st-tree-group-checkbox inline-flex",
|
|
4805
4835
|
onClick: t[1] ||= Te(() => {}, ["stop"])
|
|
4806
4836
|
}, [F(tr, {
|
|
4807
|
-
modelValue:
|
|
4808
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
4837
|
+
modelValue: u.value,
|
|
4838
|
+
"onUpdate:modelValue": t[0] ||= (e) => u.value = e,
|
|
4839
|
+
"box-class": i.boxClass,
|
|
4840
|
+
"box-style": i.boxStyle,
|
|
4809
4841
|
class: B(q(n).class),
|
|
4810
|
-
|
|
4811
|
-
|
|
4842
|
+
"core-class": i.coreClass,
|
|
4843
|
+
"core-style": i.coreStyle,
|
|
4844
|
+
disabled: c.value,
|
|
4845
|
+
indeterminate: l.value,
|
|
4812
4846
|
style: V(q(n).style),
|
|
4813
|
-
"true-value":
|
|
4814
|
-
onChange:
|
|
4847
|
+
"true-value": s.value,
|
|
4848
|
+
onChange: d
|
|
4815
4849
|
}, null, 8, [
|
|
4816
4850
|
"modelValue",
|
|
4851
|
+
"box-class",
|
|
4852
|
+
"box-style",
|
|
4817
4853
|
"class",
|
|
4854
|
+
"core-class",
|
|
4855
|
+
"core-style",
|
|
4818
4856
|
"disabled",
|
|
4819
4857
|
"indeterminate",
|
|
4820
4858
|
"style",
|
|
@@ -4907,6 +4945,132 @@ var Qn = ["for"], $n = /* @__PURE__ */ I({
|
|
|
4907
4945
|
String,
|
|
4908
4946
|
Object,
|
|
4909
4947
|
Array
|
|
4948
|
+
] },
|
|
4949
|
+
nodeClass: { type: [
|
|
4950
|
+
Boolean,
|
|
4951
|
+
null,
|
|
4952
|
+
String,
|
|
4953
|
+
Object,
|
|
4954
|
+
Array
|
|
4955
|
+
] },
|
|
4956
|
+
nodeStyle: { type: [
|
|
4957
|
+
Boolean,
|
|
4958
|
+
null,
|
|
4959
|
+
String,
|
|
4960
|
+
Object,
|
|
4961
|
+
Array
|
|
4962
|
+
] },
|
|
4963
|
+
arrowAddonClass: { type: [
|
|
4964
|
+
Boolean,
|
|
4965
|
+
null,
|
|
4966
|
+
String,
|
|
4967
|
+
Object,
|
|
4968
|
+
Array
|
|
4969
|
+
] },
|
|
4970
|
+
arrowAddonStyle: { type: [
|
|
4971
|
+
Boolean,
|
|
4972
|
+
null,
|
|
4973
|
+
String,
|
|
4974
|
+
Object,
|
|
4975
|
+
Array
|
|
4976
|
+
] },
|
|
4977
|
+
checkboxAddonClass: { type: [
|
|
4978
|
+
Boolean,
|
|
4979
|
+
null,
|
|
4980
|
+
String,
|
|
4981
|
+
Object,
|
|
4982
|
+
Array
|
|
4983
|
+
] },
|
|
4984
|
+
checkboxAddonStyle: { type: [
|
|
4985
|
+
Boolean,
|
|
4986
|
+
null,
|
|
4987
|
+
String,
|
|
4988
|
+
Object,
|
|
4989
|
+
Array
|
|
4990
|
+
] },
|
|
4991
|
+
checkboxClass: { type: [
|
|
4992
|
+
Boolean,
|
|
4993
|
+
null,
|
|
4994
|
+
String,
|
|
4995
|
+
Object,
|
|
4996
|
+
Array
|
|
4997
|
+
] },
|
|
4998
|
+
checkboxStyle: { type: [
|
|
4999
|
+
Boolean,
|
|
5000
|
+
null,
|
|
5001
|
+
String,
|
|
5002
|
+
Object,
|
|
5003
|
+
Array
|
|
5004
|
+
] },
|
|
5005
|
+
checkboxBoxClass: { type: [
|
|
5006
|
+
Boolean,
|
|
5007
|
+
null,
|
|
5008
|
+
String,
|
|
5009
|
+
Object,
|
|
5010
|
+
Array
|
|
5011
|
+
] },
|
|
5012
|
+
checkboxBoxStyle: { type: [
|
|
5013
|
+
Boolean,
|
|
5014
|
+
null,
|
|
5015
|
+
String,
|
|
5016
|
+
Object,
|
|
5017
|
+
Array
|
|
5018
|
+
] },
|
|
5019
|
+
checkboxCoreClass: { type: [
|
|
5020
|
+
Boolean,
|
|
5021
|
+
null,
|
|
5022
|
+
String,
|
|
5023
|
+
Object,
|
|
5024
|
+
Array
|
|
5025
|
+
] },
|
|
5026
|
+
checkboxCoreStyle: { type: [
|
|
5027
|
+
Boolean,
|
|
5028
|
+
null,
|
|
5029
|
+
String,
|
|
5030
|
+
Object,
|
|
5031
|
+
Array
|
|
5032
|
+
] },
|
|
5033
|
+
actionAddonClass: { type: [
|
|
5034
|
+
Boolean,
|
|
5035
|
+
null,
|
|
5036
|
+
String,
|
|
5037
|
+
Object,
|
|
5038
|
+
Array
|
|
5039
|
+
] },
|
|
5040
|
+
actionAddonStyle: { type: [
|
|
5041
|
+
Boolean,
|
|
5042
|
+
null,
|
|
5043
|
+
String,
|
|
5044
|
+
Object,
|
|
5045
|
+
Array
|
|
5046
|
+
] },
|
|
5047
|
+
childrenClass: { type: [
|
|
5048
|
+
Boolean,
|
|
5049
|
+
null,
|
|
5050
|
+
String,
|
|
5051
|
+
Object,
|
|
5052
|
+
Array
|
|
5053
|
+
] },
|
|
5054
|
+
childrenStyle: { type: [
|
|
5055
|
+
Boolean,
|
|
5056
|
+
null,
|
|
5057
|
+
String,
|
|
5058
|
+
Object,
|
|
5059
|
+
Array
|
|
5060
|
+
] },
|
|
5061
|
+
subGroupClass: { type: [
|
|
5062
|
+
Boolean,
|
|
5063
|
+
null,
|
|
5064
|
+
String,
|
|
5065
|
+
Object,
|
|
5066
|
+
Array
|
|
5067
|
+
] },
|
|
5068
|
+
subGroupStyle: { type: [
|
|
5069
|
+
Boolean,
|
|
5070
|
+
null,
|
|
5071
|
+
String,
|
|
5072
|
+
Object,
|
|
5073
|
+
Array
|
|
4910
5074
|
] }
|
|
4911
5075
|
},
|
|
4912
5076
|
setup(e, { emit: t }) {
|
|
@@ -4914,18 +5078,24 @@ var Qn = ["for"], $n = /* @__PURE__ */ I({
|
|
|
4914
5078
|
return (e, t) => {
|
|
4915
5079
|
let r = pe("st-tree-node", !0);
|
|
4916
5080
|
return H(), k(ar, {
|
|
5081
|
+
class: B(a.subGroupClass),
|
|
4917
5082
|
disabled: m.value,
|
|
4918
5083
|
indent: a.indent,
|
|
5084
|
+
style: V(a.subGroupStyle),
|
|
4919
5085
|
value: o.value
|
|
4920
5086
|
}, {
|
|
4921
5087
|
default: $(() => [F(Gn, {
|
|
4922
|
-
class: B(["st-tree-node", q(n).class]),
|
|
5088
|
+
class: B(["st-tree-node", [a.nodeClass, q(n).class]]),
|
|
4923
5089
|
disabled: m.value,
|
|
4924
|
-
style: V(q(n).style),
|
|
5090
|
+
style: V([a.nodeStyle, q(n).style]),
|
|
4925
5091
|
value: o.value
|
|
4926
5092
|
}, {
|
|
4927
5093
|
default: $(() => [
|
|
4928
|
-
F(nn, {
|
|
5094
|
+
F(nn, {
|
|
5095
|
+
class: B(["st-tree-arrow-addon", a.arrowAddonClass]),
|
|
5096
|
+
style: V(a.arrowAddonStyle),
|
|
5097
|
+
align: "inline-start"
|
|
5098
|
+
}, {
|
|
4929
5099
|
default: $(() => [F(Kn, {
|
|
4930
5100
|
class: B(a.arrowClass),
|
|
4931
5101
|
style: V(a.arrowStyle)
|
|
@@ -4934,14 +5104,30 @@ var Qn = ["for"], $n = /* @__PURE__ */ I({
|
|
|
4934
5104
|
_: 3
|
|
4935
5105
|
}, 8, ["class", "style"])]),
|
|
4936
5106
|
_: 3
|
|
4937
|
-
}),
|
|
5107
|
+
}, 8, ["class", "style"]),
|
|
4938
5108
|
l.value ? (H(), k(nn, {
|
|
4939
5109
|
key: 0,
|
|
5110
|
+
class: B(["st-tree-checkbox-addon", a.checkboxAddonClass]),
|
|
5111
|
+
style: V(a.checkboxAddonStyle),
|
|
4940
5112
|
align: "inline-start"
|
|
4941
5113
|
}, {
|
|
4942
|
-
default: $(() => [F(nr
|
|
5114
|
+
default: $(() => [F(nr, {
|
|
5115
|
+
"box-class": a.checkboxBoxClass,
|
|
5116
|
+
"box-style": a.checkboxBoxStyle,
|
|
5117
|
+
class: B(a.checkboxClass),
|
|
5118
|
+
"core-class": a.checkboxCoreClass,
|
|
5119
|
+
"core-style": a.checkboxCoreStyle,
|
|
5120
|
+
style: V(a.checkboxStyle)
|
|
5121
|
+
}, null, 8, [
|
|
5122
|
+
"box-class",
|
|
5123
|
+
"box-style",
|
|
5124
|
+
"class",
|
|
5125
|
+
"core-class",
|
|
5126
|
+
"core-style",
|
|
5127
|
+
"style"
|
|
5128
|
+
])]),
|
|
4943
5129
|
_: 1
|
|
4944
|
-
})) : A("", !0),
|
|
5130
|
+
}, 8, ["class", "style"])) : A("", !0),
|
|
4945
5131
|
F(qn, {
|
|
4946
5132
|
class: B(a.labelClass),
|
|
4947
5133
|
style: V(a.labelStyle)
|
|
@@ -4951,11 +5137,13 @@ var Qn = ["for"], $n = /* @__PURE__ */ I({
|
|
|
4951
5137
|
}, 8, ["class", "style"]),
|
|
4952
5138
|
u.value ? (H(), k(nn, {
|
|
4953
5139
|
key: 1,
|
|
5140
|
+
class: B(["st-tree-action-addon", a.actionAddonClass]),
|
|
5141
|
+
style: V(a.actionAddonStyle),
|
|
4954
5142
|
align: "inline-end"
|
|
4955
5143
|
}, {
|
|
4956
5144
|
default: $(() => [G(e.$slots, "action", { item: a.node })]),
|
|
4957
5145
|
_: 3
|
|
4958
|
-
})) : A("", !0)
|
|
5146
|
+
}, 8, ["class", "style"])) : A("", !0)
|
|
4959
5147
|
]),
|
|
4960
5148
|
_: 3
|
|
4961
5149
|
}, 8, [
|
|
@@ -4963,7 +5151,11 @@ var Qn = ["for"], $n = /* @__PURE__ */ I({
|
|
|
4963
5151
|
"disabled",
|
|
4964
5152
|
"style",
|
|
4965
5153
|
"value"
|
|
4966
|
-
]), p.value ? (H(), k(ir, {
|
|
5154
|
+
]), p.value ? (H(), k(ir, {
|
|
5155
|
+
key: 0,
|
|
5156
|
+
class: B(a.childrenClass),
|
|
5157
|
+
style: V(a.childrenStyle)
|
|
5158
|
+
}, {
|
|
4967
5159
|
default: $(() => [(H(!0), j(E, null, W(c.value, (t) => (H(), k(r, R({ ref_for: !0 }, a, {
|
|
4968
5160
|
key: t[a.valueKey],
|
|
4969
5161
|
node: t
|
|
@@ -4972,11 +5164,13 @@ var Qn = ["for"], $n = /* @__PURE__ */ I({
|
|
|
4972
5164
|
fn: $((n) => [G(e.$slots, t, R({ ref_for: !0 }, n))])
|
|
4973
5165
|
}))]), 1040, ["node"]))), 128))]),
|
|
4974
5166
|
_: 3
|
|
4975
|
-
})) : A("", !0)]),
|
|
5167
|
+
}, 8, ["class", "style"])) : A("", !0)]),
|
|
4976
5168
|
_: 3
|
|
4977
5169
|
}, 8, [
|
|
5170
|
+
"class",
|
|
4978
5171
|
"disabled",
|
|
4979
5172
|
"indent",
|
|
5173
|
+
"style",
|
|
4980
5174
|
"value"
|
|
4981
5175
|
]);
|
|
4982
5176
|
};
|
|
@@ -5152,6 +5346,132 @@ var Qn = ["for"], $n = /* @__PURE__ */ I({
|
|
|
5152
5346
|
String,
|
|
5153
5347
|
Object,
|
|
5154
5348
|
Array
|
|
5349
|
+
] },
|
|
5350
|
+
nodeClass: { type: [
|
|
5351
|
+
Boolean,
|
|
5352
|
+
null,
|
|
5353
|
+
String,
|
|
5354
|
+
Object,
|
|
5355
|
+
Array
|
|
5356
|
+
] },
|
|
5357
|
+
nodeStyle: { type: [
|
|
5358
|
+
Boolean,
|
|
5359
|
+
null,
|
|
5360
|
+
String,
|
|
5361
|
+
Object,
|
|
5362
|
+
Array
|
|
5363
|
+
] },
|
|
5364
|
+
arrowAddonClass: { type: [
|
|
5365
|
+
Boolean,
|
|
5366
|
+
null,
|
|
5367
|
+
String,
|
|
5368
|
+
Object,
|
|
5369
|
+
Array
|
|
5370
|
+
] },
|
|
5371
|
+
arrowAddonStyle: { type: [
|
|
5372
|
+
Boolean,
|
|
5373
|
+
null,
|
|
5374
|
+
String,
|
|
5375
|
+
Object,
|
|
5376
|
+
Array
|
|
5377
|
+
] },
|
|
5378
|
+
checkboxAddonClass: { type: [
|
|
5379
|
+
Boolean,
|
|
5380
|
+
null,
|
|
5381
|
+
String,
|
|
5382
|
+
Object,
|
|
5383
|
+
Array
|
|
5384
|
+
] },
|
|
5385
|
+
checkboxAddonStyle: { type: [
|
|
5386
|
+
Boolean,
|
|
5387
|
+
null,
|
|
5388
|
+
String,
|
|
5389
|
+
Object,
|
|
5390
|
+
Array
|
|
5391
|
+
] },
|
|
5392
|
+
checkboxClass: { type: [
|
|
5393
|
+
Boolean,
|
|
5394
|
+
null,
|
|
5395
|
+
String,
|
|
5396
|
+
Object,
|
|
5397
|
+
Array
|
|
5398
|
+
] },
|
|
5399
|
+
checkboxStyle: { type: [
|
|
5400
|
+
Boolean,
|
|
5401
|
+
null,
|
|
5402
|
+
String,
|
|
5403
|
+
Object,
|
|
5404
|
+
Array
|
|
5405
|
+
] },
|
|
5406
|
+
checkboxBoxClass: { type: [
|
|
5407
|
+
Boolean,
|
|
5408
|
+
null,
|
|
5409
|
+
String,
|
|
5410
|
+
Object,
|
|
5411
|
+
Array
|
|
5412
|
+
] },
|
|
5413
|
+
checkboxBoxStyle: { type: [
|
|
5414
|
+
Boolean,
|
|
5415
|
+
null,
|
|
5416
|
+
String,
|
|
5417
|
+
Object,
|
|
5418
|
+
Array
|
|
5419
|
+
] },
|
|
5420
|
+
checkboxCoreClass: { type: [
|
|
5421
|
+
Boolean,
|
|
5422
|
+
null,
|
|
5423
|
+
String,
|
|
5424
|
+
Object,
|
|
5425
|
+
Array
|
|
5426
|
+
] },
|
|
5427
|
+
checkboxCoreStyle: { type: [
|
|
5428
|
+
Boolean,
|
|
5429
|
+
null,
|
|
5430
|
+
String,
|
|
5431
|
+
Object,
|
|
5432
|
+
Array
|
|
5433
|
+
] },
|
|
5434
|
+
actionAddonClass: { type: [
|
|
5435
|
+
Boolean,
|
|
5436
|
+
null,
|
|
5437
|
+
String,
|
|
5438
|
+
Object,
|
|
5439
|
+
Array
|
|
5440
|
+
] },
|
|
5441
|
+
actionAddonStyle: { type: [
|
|
5442
|
+
Boolean,
|
|
5443
|
+
null,
|
|
5444
|
+
String,
|
|
5445
|
+
Object,
|
|
5446
|
+
Array
|
|
5447
|
+
] },
|
|
5448
|
+
childrenClass: { type: [
|
|
5449
|
+
Boolean,
|
|
5450
|
+
null,
|
|
5451
|
+
String,
|
|
5452
|
+
Object,
|
|
5453
|
+
Array
|
|
5454
|
+
] },
|
|
5455
|
+
childrenStyle: { type: [
|
|
5456
|
+
Boolean,
|
|
5457
|
+
null,
|
|
5458
|
+
String,
|
|
5459
|
+
Object,
|
|
5460
|
+
Array
|
|
5461
|
+
] },
|
|
5462
|
+
subGroupClass: { type: [
|
|
5463
|
+
Boolean,
|
|
5464
|
+
null,
|
|
5465
|
+
String,
|
|
5466
|
+
Object,
|
|
5467
|
+
Array
|
|
5468
|
+
] },
|
|
5469
|
+
subGroupStyle: { type: [
|
|
5470
|
+
Boolean,
|
|
5471
|
+
null,
|
|
5472
|
+
String,
|
|
5473
|
+
Object,
|
|
5474
|
+
Array
|
|
5155
5475
|
] }
|
|
5156
5476
|
}, {
|
|
5157
5477
|
modelValue: {},
|
|
@@ -5315,7 +5635,25 @@ var Qn = ["for"], $n = /* @__PURE__ */ I({
|
|
|
5315
5635
|
default: $(() => [x.value.length > 0 ? (H(!0), j(E, { key: 0 }, W(x.value, (t) => (H(), k(or, {
|
|
5316
5636
|
"arrow-class": o.arrowClass,
|
|
5317
5637
|
"arrow-style": o.arrowStyle,
|
|
5638
|
+
"action-addon-class": o.actionAddonClass,
|
|
5639
|
+
"action-addon-style": o.actionAddonStyle,
|
|
5640
|
+
"arrow-addon-class": o.arrowAddonClass,
|
|
5641
|
+
"arrow-addon-style": o.arrowAddonStyle,
|
|
5642
|
+
"checkbox-addon-class": o.checkboxAddonClass,
|
|
5643
|
+
"checkbox-addon-style": o.checkboxAddonStyle,
|
|
5644
|
+
"checkbox-box-class": o.checkboxBoxClass,
|
|
5645
|
+
"checkbox-box-style": o.checkboxBoxStyle,
|
|
5646
|
+
"checkbox-class": o.checkboxClass,
|
|
5647
|
+
"checkbox-core-class": o.checkboxCoreClass,
|
|
5648
|
+
"checkbox-core-style": o.checkboxCoreStyle,
|
|
5649
|
+
"checkbox-style": o.checkboxStyle,
|
|
5650
|
+
"children-class": o.childrenClass,
|
|
5318
5651
|
"children-key": o.childrenKey,
|
|
5652
|
+
"children-style": o.childrenStyle,
|
|
5653
|
+
"node-class": o.nodeClass,
|
|
5654
|
+
"node-style": o.nodeStyle,
|
|
5655
|
+
"sub-group-class": o.subGroupClass,
|
|
5656
|
+
"sub-group-style": o.subGroupStyle,
|
|
5319
5657
|
indent: o.indent,
|
|
5320
5658
|
key: g(t),
|
|
5321
5659
|
"label-class": o.labelClass,
|
|
@@ -5326,17 +5664,7 @@ var Qn = ["for"], $n = /* @__PURE__ */ I({
|
|
|
5326
5664
|
}, N({ _: 2 }, [W(h.value, (t) => ({
|
|
5327
5665
|
name: t,
|
|
5328
5666
|
fn: $((n) => [G(e.$slots, t, R({ ref_for: !0 }, n))])
|
|
5329
|
-
}))]), 1032,
|
|
5330
|
-
"arrow-class",
|
|
5331
|
-
"arrow-style",
|
|
5332
|
-
"children-key",
|
|
5333
|
-
"indent",
|
|
5334
|
-
"label-class",
|
|
5335
|
-
"label-key",
|
|
5336
|
-
"label-style",
|
|
5337
|
-
"node",
|
|
5338
|
-
"value-key"
|
|
5339
|
-
]))), 128)) : i.empty ? G(e.$slots, "empty", {}, void 0, void 0, 1) : (H(), k(ur, { key: 2 }))]),
|
|
5667
|
+
}))]), 1032, /* @__PURE__ */ "arrow-class.arrow-style.action-addon-class.action-addon-style.arrow-addon-class.arrow-addon-style.checkbox-addon-class.checkbox-addon-style.checkbox-box-class.checkbox-box-style.checkbox-class.checkbox-core-class.checkbox-core-style.checkbox-style.children-class.children-key.children-style.node-class.node-style.sub-group-class.sub-group-style.indent.label-class.label-key.label-style.node.value-key".split(".")))), 128)) : i.empty ? G(e.$slots, "empty", {}, void 0, void 0, 1) : (H(), k(ur, { key: 2 }))]),
|
|
5340
5668
|
_: 3
|
|
5341
5669
|
}, 8, [
|
|
5342
5670
|
"modelValue",
|
|
@@ -5397,6 +5725,10 @@ var Qn = ["for"], $n = /* @__PURE__ */ I({
|
|
|
5397
5725
|
type: Boolean,
|
|
5398
5726
|
default: !0
|
|
5399
5727
|
},
|
|
5728
|
+
matchTriggerWidth: {
|
|
5729
|
+
type: Boolean,
|
|
5730
|
+
default: !1
|
|
5731
|
+
},
|
|
5400
5732
|
popoverClass: { type: [
|
|
5401
5733
|
Boolean,
|
|
5402
5734
|
null,
|
|
@@ -5484,7 +5816,14 @@ var Qn = ["for"], $n = /* @__PURE__ */ I({
|
|
|
5484
5816
|
}
|
|
5485
5817
|
let e = Ht(r.value);
|
|
5486
5818
|
return e === void 0 ? T(i.value) : E(e);
|
|
5487
|
-
}), ee = O(() => d.placeholder || "请选择"), te = O(() => !d.clearable || d.disabled || !m.value ? !1 : D.value.length > 0), A = O(() =>
|
|
5819
|
+
}), ee = O(() => d.placeholder || "请选择"), te = O(() => !d.clearable || d.disabled || !m.value ? !1 : D.value.length > 0), A = O(() => {
|
|
5820
|
+
if (d.popoverStyle) return d.popoverStyle;
|
|
5821
|
+
if (h.value > 0) {
|
|
5822
|
+
let e = `${h.value}px`;
|
|
5823
|
+
return d.matchTriggerWidth ? { width: e } : { minWidth: e };
|
|
5824
|
+
}
|
|
5825
|
+
return {};
|
|
5826
|
+
});
|
|
5488
5827
|
function j() {
|
|
5489
5828
|
d.multiple || (g.value = [...i.value], i.value.length > 0 && (_.value = [.../* @__PURE__ */ new Set([..._.value, ...i.value.slice(0, -1)])])), d.defaultExpandedAll && (_.value = [...v.value.values()].filter((e) => !e.isLeaf).map((e) => e.path[e.path.length - 1]));
|
|
5490
5829
|
}
|
|
@@ -5576,6 +5915,7 @@ var Qn = ["for"], $n = /* @__PURE__ */ I({
|
|
|
5576
5915
|
}, [d.list.length > 0 ? (H(), k(zn, {
|
|
5577
5916
|
key: 0,
|
|
5578
5917
|
class: "flex max-h-280px flex-col",
|
|
5918
|
+
"content-class": "w-full",
|
|
5579
5919
|
vertical: "",
|
|
5580
5920
|
"view-class": "min-h-0 flex-1"
|
|
5581
5921
|
}, {
|
|
@@ -8028,6 +8368,10 @@ var si = /* @__PURE__ */ I({
|
|
|
8028
8368
|
type: Boolean,
|
|
8029
8369
|
default: !0
|
|
8030
8370
|
},
|
|
8371
|
+
matchTriggerWidth: {
|
|
8372
|
+
type: Boolean,
|
|
8373
|
+
default: !1
|
|
8374
|
+
},
|
|
8031
8375
|
popoverClass: { type: [
|
|
8032
8376
|
Boolean,
|
|
8033
8377
|
null,
|
|
@@ -8181,6 +8525,7 @@ var si = /* @__PURE__ */ I({
|
|
|
8181
8525
|
"floating-label": c.floatingLabel,
|
|
8182
8526
|
"label-key": c.labelKey,
|
|
8183
8527
|
list: c.list,
|
|
8528
|
+
"match-trigger-width": c.matchTriggerWidth,
|
|
8184
8529
|
multiple: c.multiple,
|
|
8185
8530
|
"panel-class": c.panelClass,
|
|
8186
8531
|
"panel-style": c.panelStyle,
|
|
@@ -8223,6 +8568,7 @@ var si = /* @__PURE__ */ I({
|
|
|
8223
8568
|
"floating-label",
|
|
8224
8569
|
"label-key",
|
|
8225
8570
|
"list",
|
|
8571
|
+
"match-trigger-width",
|
|
8226
8572
|
"multiple",
|
|
8227
8573
|
"panel-class",
|
|
8228
8574
|
"panel-style",
|
|
@@ -18563,14 +18909,25 @@ var wf = /* @__PURE__ */ I({
|
|
|
18563
18909
|
String,
|
|
18564
18910
|
Object,
|
|
18565
18911
|
Array
|
|
18566
|
-
] }
|
|
18912
|
+
] },
|
|
18913
|
+
matchTriggerWidth: {
|
|
18914
|
+
type: Boolean,
|
|
18915
|
+
default: !1
|
|
18916
|
+
}
|
|
18567
18917
|
},
|
|
18568
18918
|
setup(e) {
|
|
18569
18919
|
let t = e;
|
|
18570
18920
|
X();
|
|
18571
18921
|
let n = Sf();
|
|
18572
18922
|
if (!n) throw Error("StSelectDropdown must be used within a StSelectContainer");
|
|
18573
|
-
let r = O(() =>
|
|
18923
|
+
let r = O(() => {
|
|
18924
|
+
if (t.popoverStyle) return t.popoverStyle;
|
|
18925
|
+
if (n.triggerWidth.value > 0) {
|
|
18926
|
+
let e = `${n.triggerWidth.value}px`;
|
|
18927
|
+
return t.matchTriggerWidth ? { width: e } : { minWidth: e };
|
|
18928
|
+
}
|
|
18929
|
+
return {};
|
|
18930
|
+
});
|
|
18574
18931
|
return (e, i) => (H(), k(Qt, {
|
|
18575
18932
|
"content-class": t.popoverClass,
|
|
18576
18933
|
"content-style": r.value,
|
|
@@ -18712,6 +19069,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
18712
19069
|
class: B(n.value),
|
|
18713
19070
|
"show-track": !1,
|
|
18714
19071
|
style: V(q(t).style),
|
|
19072
|
+
"content-class": "w-full",
|
|
18715
19073
|
"device-type": "desktop",
|
|
18716
19074
|
vertical: "",
|
|
18717
19075
|
"view-class": "min-h-0 flex-1 px-1 py-1.5"
|
|
@@ -18720,7 +19078,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
18720
19078
|
_: 3
|
|
18721
19079
|
}, 8, ["class", "style"]));
|
|
18722
19080
|
}
|
|
18723
|
-
}), kf = { class: "flex-1 truncate text-foreground" }, Af = {
|
|
19081
|
+
}), kf = { class: "min-w-0 flex-1 truncate text-foreground" }, Af = {
|
|
18724
19082
|
key: 0,
|
|
18725
19083
|
class: "st-select__check text-primary"
|
|
18726
19084
|
}, jf = /* @__PURE__ */ I({
|
|
@@ -18785,7 +19143,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
18785
19143
|
setup(e) {
|
|
18786
19144
|
let t = J(), n = e;
|
|
18787
19145
|
if (!Sf()) throw Error("SelectGroup must be used within a Select");
|
|
18788
|
-
let r = O(() => l("st-select__group-label", "px-3 py-2 text-xs font-semibold text-muted-foreground", t.class));
|
|
19146
|
+
let r = O(() => l("st-select__group-label", "truncate px-3 py-2 text-xs font-semibold text-muted-foreground", t.class));
|
|
18789
19147
|
return (e, i) => (H(), j("div", Mf, [M("div", {
|
|
18790
19148
|
class: B(r.value),
|
|
18791
19149
|
style: V(q(t).style)
|
|
@@ -18992,6 +19350,10 @@ var wf = /* @__PURE__ */ I({
|
|
|
18992
19350
|
type: Boolean,
|
|
18993
19351
|
default: !0
|
|
18994
19352
|
},
|
|
19353
|
+
matchTriggerWidth: {
|
|
19354
|
+
type: Boolean,
|
|
19355
|
+
default: !1
|
|
19356
|
+
},
|
|
18995
19357
|
popoverClass: { type: [
|
|
18996
19358
|
Boolean,
|
|
18997
19359
|
null,
|
|
@@ -19129,6 +19491,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
19129
19491
|
}, {
|
|
19130
19492
|
default: $(() => [F(Tf, {
|
|
19131
19493
|
disabled: i.disabled,
|
|
19494
|
+
"match-trigger-width": i.matchTriggerWidth,
|
|
19132
19495
|
"popover-class": i.popoverClass,
|
|
19133
19496
|
"popover-style": i.popoverStyle
|
|
19134
19497
|
}, {
|
|
@@ -19215,6 +19578,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
19215
19578
|
_: 3
|
|
19216
19579
|
}, 8, [
|
|
19217
19580
|
"disabled",
|
|
19581
|
+
"match-trigger-width",
|
|
19218
19582
|
"popover-class",
|
|
19219
19583
|
"popover-style"
|
|
19220
19584
|
])]),
|
|
@@ -19568,6 +19932,10 @@ var wf = /* @__PURE__ */ I({
|
|
|
19568
19932
|
type: Boolean,
|
|
19569
19933
|
default: !0
|
|
19570
19934
|
},
|
|
19935
|
+
matchTriggerWidth: {
|
|
19936
|
+
type: Boolean,
|
|
19937
|
+
default: !1
|
|
19938
|
+
},
|
|
19571
19939
|
popoverClass: { type: [
|
|
19572
19940
|
Boolean,
|
|
19573
19941
|
null,
|
|
@@ -19747,6 +20115,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
19747
20115
|
list: c.list,
|
|
19748
20116
|
loading: c.loading,
|
|
19749
20117
|
"loading-text": c.loadingText,
|
|
20118
|
+
"match-trigger-width": c.matchTriggerWidth,
|
|
19750
20119
|
"no-match-text": c.noMatchText,
|
|
19751
20120
|
"option-class": c.optionClass,
|
|
19752
20121
|
"option-style": c.optionStyle,
|
|
@@ -19778,7 +20147,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
19778
20147
|
fn: $(() => [G(e.$slots, "prefix")]),
|
|
19779
20148
|
key: "2"
|
|
19780
20149
|
} : void 0
|
|
19781
|
-
]), 1032, /* @__PURE__ */ "modelValue.class.clearable.content-class.content-style.debounce.disabled.dropdown-class.dropdown-style.empty-class.empty-style.filterable.floating-label.group.group-label-class.group-label-style.label-key.list.loading.loading-text.no-match-text.option-class.option-style.placeholder.popover-class.popover-style.remote.remote-method.size.style.value-key".split("."))) : (H(), k(qf, {
|
|
20150
|
+
]), 1032, /* @__PURE__ */ "modelValue.class.clearable.content-class.content-style.debounce.disabled.dropdown-class.dropdown-style.empty-class.empty-style.filterable.floating-label.group.group-label-class.group-label-style.label-key.list.loading.loading-text.match-trigger-width.no-match-text.option-class.option-style.placeholder.popover-class.popover-style.remote.remote-method.size.style.value-key".split("."))) : (H(), k(qf, {
|
|
19782
20151
|
key: 1,
|
|
19783
20152
|
ref_key: "selectRef",
|
|
19784
20153
|
ref: l,
|