@dazhicheng/ui 1.5.113 → 1.5.114
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/tt-panel-select/src/common.d.ts +1 -0
- package/dist/components/tt-panel-select/src/components/PanelLeft.vue.d.ts +1 -2
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +4 -0
- package/dist/components/tt-panel-select/src/hooks/usePanelSelectData.d.ts +1 -0
- package/dist/components/tt-panel-select/src/hooks/usePanelSelectSelection.d.ts +2 -1
- package/dist/components/tt-panel-select/src/props.d.ts +8 -0
- package/dist/index.js +39846 -15817
- package/dist/style.css +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ALL = "all";
|
|
@@ -2,7 +2,6 @@ import { PanelSelectValue } from '../props';
|
|
|
2
2
|
import { PanelTreeNode } from '../hooks/usePanelSelectData';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
prefixCls: string;
|
|
5
|
-
showNav: boolean;
|
|
6
5
|
keyword: string;
|
|
7
6
|
treeData: PanelTreeNode[];
|
|
8
7
|
expandedKeys: PanelSelectValue[];
|
|
@@ -13,5 +12,5 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
13
12
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
13
|
onSelect?: ((node: PanelTreeNode) => any) | undefined;
|
|
15
14
|
"onUpdate:keyword"?: ((value: string) => any) | undefined;
|
|
16
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
16
|
export default _default;
|
|
@@ -11,11 +11,13 @@ type __VLS_Props = {
|
|
|
11
11
|
selectedValues: PanelSelectValue[];
|
|
12
12
|
isAllChecked: boolean;
|
|
13
13
|
isIndeterminate: boolean;
|
|
14
|
+
allChecked: boolean;
|
|
14
15
|
groupCheckedMap: Record<string, boolean>;
|
|
15
16
|
groupIndeterminateMap: Record<string, boolean>;
|
|
16
17
|
scrollToGroupValue?: PanelSelectValue;
|
|
17
18
|
pasteSearch: boolean;
|
|
18
19
|
separator: string;
|
|
20
|
+
showAll: boolean;
|
|
19
21
|
};
|
|
20
22
|
declare function scrollToGroup(groupValue: PanelSelectValue): Promise<void>;
|
|
21
23
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
@@ -23,12 +25,14 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
23
25
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
26
|
"update:keyword": (value: string) => any;
|
|
25
27
|
checkAll: (checked: boolean) => any;
|
|
28
|
+
allCheck: (checked: boolean) => any;
|
|
26
29
|
groupCheck: (groupValue: PanelSelectValue, checked: boolean) => any;
|
|
27
30
|
optionCheck: (value: PanelSelectValue, checked: boolean) => any;
|
|
28
31
|
optionsCheck: (values: PanelSelectValue[], checked: boolean) => any;
|
|
29
32
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
30
33
|
"onUpdate:keyword"?: ((value: string) => any) | undefined;
|
|
31
34
|
onCheckAll?: ((checked: boolean) => any) | undefined;
|
|
35
|
+
onAllCheck?: ((checked: boolean) => any) | undefined;
|
|
32
36
|
onGroupCheck?: ((groupValue: PanelSelectValue, checked: boolean) => any) | undefined;
|
|
33
37
|
onOptionCheck?: ((value: PanelSelectValue, checked: boolean) => any) | undefined;
|
|
34
38
|
onOptionsCheck?: ((values: PanelSelectValue[], checked: boolean) => any) | undefined;
|
|
@@ -35,4 +35,5 @@ export declare function usePanelSelectData(props: PanelContainerProps): {
|
|
|
35
35
|
label: string;
|
|
36
36
|
}>(nodes: T[], keyword: string) => T[];
|
|
37
37
|
buildOptionGroups: (nodes: PanelTreeNode[], keyword: string) => OptionGroup[];
|
|
38
|
+
isFirstLoaded: import('vue').Ref<boolean, boolean>;
|
|
38
39
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref, WritableComputedRef } from 'vue';
|
|
2
|
-
import { OptionGroup, PanelTreeNode } from './usePanelSelectData';
|
|
3
2
|
import { PanelSelectModelValue, PanelSelectValue } from '../props';
|
|
3
|
+
import { OptionGroup, PanelTreeNode } from './usePanelSelectData';
|
|
4
4
|
type UsePanelSelectSelectionParams = {
|
|
5
5
|
multiple: Readonly<Ref<boolean>>;
|
|
6
6
|
modelValue: Ref<PanelSelectModelValue>;
|
|
@@ -18,6 +18,7 @@ export declare function usePanelSelectSelection(params: UsePanelSelectSelectionP
|
|
|
18
18
|
isGroupChecked: (group: OptionGroup) => boolean;
|
|
19
19
|
isGroupIndeterminate: (group: OptionGroup) => boolean;
|
|
20
20
|
handleGroupCheck: (group: OptionGroup, checked: boolean) => void;
|
|
21
|
+
handleAllOptionCheck: (checked: boolean) => void;
|
|
21
22
|
handleOptionCheck: (value: PanelSelectValue, checked: boolean) => void;
|
|
22
23
|
handleOptionsCheck: (values: PanelSelectValue[], checked: boolean) => void;
|
|
23
24
|
handleCheckAll: (checked: boolean) => void;
|
|
@@ -48,4 +48,12 @@ export interface PanelContainerProps {
|
|
|
48
48
|
separator?: string;
|
|
49
49
|
/** 粘贴后是否触发搜索 */
|
|
50
50
|
pasteSearch?: boolean;
|
|
51
|
+
/** 打开下拉框时是否总是请求接口加载数据源 */
|
|
52
|
+
alwaysLoad?: boolean;
|
|
53
|
+
/** 是否展示全部选项 */
|
|
54
|
+
showAll?: boolean;
|
|
55
|
+
/** 是否按照中文拼音的首个字母进行转换成树结构进行分组展示(优先级高于showOriginMode,低于treeConfig) */
|
|
56
|
+
showPinyinMode?: boolean;
|
|
57
|
+
/** 是否平铺原样展示数据,如果数据中是数据结构还是按照默认进行展示 */
|
|
58
|
+
showOriginMode?: boolean;
|
|
51
59
|
}
|