@dazhicheng/ui 1.5.114 → 1.5.115
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/components/PanelLeft.vue.d.ts +2 -1
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +4 -22
- package/dist/components/tt-panel-select/src/components/PanelRight.vue.d.ts +1 -1
- package/dist/components/tt-panel-select/src/components/panel.types.d.ts +1 -1
- package/dist/components/tt-panel-select/src/hooks/{usePanelSelectSelection.d.ts → usePanelSelection.d.ts} +2 -2
- package/dist/components/tt-panel-select/src/props.d.ts +37 -1
- package/dist/index.js +5230 -5140
- package/dist/style.css +1 -1
- package/package.json +3 -3
- /package/dist/components/tt-panel-select/src/hooks/{usePanelSelectData.d.ts → usePanelData.d.ts} +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { PanelSelectValue } from '../props';
|
|
2
|
-
import { PanelTreeNode } from '../hooks/
|
|
2
|
+
import { PanelTreeNode } from '../hooks/usePanelData';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
prefixCls: string;
|
|
5
5
|
keyword: string;
|
|
6
6
|
treeData: PanelTreeNode[];
|
|
7
7
|
expandedKeys: PanelSelectValue[];
|
|
8
|
+
leftPlaceholder: string;
|
|
8
9
|
};
|
|
9
10
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
11
|
select: (node: PanelTreeNode) => any;
|
|
@@ -1,26 +1,7 @@
|
|
|
1
1
|
import { nextTick } from 'vue';
|
|
2
|
-
import { PanelSelectValue } from '../props';
|
|
3
|
-
import { MiddleRow } from './panel.types';
|
|
4
|
-
type __VLS_Props = {
|
|
5
|
-
prefixCls: string;
|
|
6
|
-
multiple: boolean;
|
|
7
|
-
keyword: string;
|
|
8
|
-
rows: MiddleRow[];
|
|
9
|
-
optionPerRow: number;
|
|
10
|
-
rowHeight: number;
|
|
11
|
-
selectedValues: PanelSelectValue[];
|
|
12
|
-
isAllChecked: boolean;
|
|
13
|
-
isIndeterminate: boolean;
|
|
14
|
-
allChecked: boolean;
|
|
15
|
-
groupCheckedMap: Record<string, boolean>;
|
|
16
|
-
groupIndeterminateMap: Record<string, boolean>;
|
|
17
|
-
scrollToGroupValue?: PanelSelectValue;
|
|
18
|
-
pasteSearch: boolean;
|
|
19
|
-
separator: string;
|
|
20
|
-
showAll: boolean;
|
|
21
|
-
};
|
|
2
|
+
import { PanelSelectValue, PanelMiddleProps } from '../props';
|
|
22
3
|
declare function scrollToGroup(groupValue: PanelSelectValue): Promise<void>;
|
|
23
|
-
declare const _default: import('vue').DefineComponent<
|
|
4
|
+
declare const _default: import('vue').DefineComponent<PanelMiddleProps, {
|
|
24
5
|
scrollToGroup: typeof scrollToGroup;
|
|
25
6
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
7
|
"update:keyword": (value: string) => any;
|
|
@@ -29,7 +10,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
29
10
|
groupCheck: (groupValue: PanelSelectValue, checked: boolean) => any;
|
|
30
11
|
optionCheck: (value: PanelSelectValue, checked: boolean) => any;
|
|
31
12
|
optionsCheck: (values: PanelSelectValue[], checked: boolean) => any;
|
|
32
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<PanelMiddleProps> & Readonly<{
|
|
33
14
|
"onUpdate:keyword"?: ((value: string) => any) | undefined;
|
|
34
15
|
onCheckAll?: ((checked: boolean) => any) | undefined;
|
|
35
16
|
onAllCheck?: ((checked: boolean) => any) | undefined;
|
|
@@ -37,6 +18,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
37
18
|
onOptionCheck?: ((value: PanelSelectValue, checked: boolean) => any) | undefined;
|
|
38
19
|
onOptionsCheck?: ((values: PanelSelectValue[], checked: boolean) => any) | undefined;
|
|
39
20
|
}>, {
|
|
21
|
+
scrollToGroupValue: PanelSelectValue;
|
|
40
22
|
pasteSearch: boolean;
|
|
41
23
|
separator: string;
|
|
42
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref, WritableComputedRef } from 'vue';
|
|
2
2
|
import { PanelSelectModelValue, PanelSelectValue } from '../props';
|
|
3
|
-
import { OptionGroup, PanelTreeNode } from './
|
|
3
|
+
import { OptionGroup, PanelTreeNode } from './usePanelData';
|
|
4
4
|
type UsePanelSelectSelectionParams = {
|
|
5
5
|
multiple: Readonly<Ref<boolean>>;
|
|
6
6
|
modelValue: Ref<PanelSelectModelValue>;
|
|
@@ -8,7 +8,7 @@ type UsePanelSelectSelectionParams = {
|
|
|
8
8
|
leafNodes: Readonly<Ref<PanelTreeNode[]>>;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
-
* 管理面板选中状态与右侧已选列表。
|
|
11
|
+
* @description 管理面板选中状态与右侧已选列表。
|
|
12
12
|
* @param params 选择逻辑所需的响应式参数
|
|
13
13
|
*/
|
|
14
14
|
export declare function usePanelSelectSelection(params: UsePanelSelectSelectionParams): {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AnyPromiseFunction, Recordable } from '../../../../../utils/src';
|
|
2
|
+
import { MiddleRow } from './components/panel.types';
|
|
2
3
|
export type PanelSelectValue = string | number;
|
|
3
4
|
export type PanelSelectModelValue = PanelSelectValue | PanelSelectValue[] | undefined;
|
|
4
5
|
export interface PanelSelectOption extends Recordable {
|
|
@@ -7,6 +8,35 @@ export interface PanelSelectOption extends Recordable {
|
|
|
7
8
|
disabled?: boolean;
|
|
8
9
|
children?: PanelSelectOption[];
|
|
9
10
|
}
|
|
11
|
+
export interface PanelMiddleProps {
|
|
12
|
+
/** class */
|
|
13
|
+
prefixCls: string;
|
|
14
|
+
/** 是否多选 */
|
|
15
|
+
multiple: boolean;
|
|
16
|
+
/** 搜索关键词 */
|
|
17
|
+
keyword: string;
|
|
18
|
+
/** 数据源 */
|
|
19
|
+
rows: MiddleRow[];
|
|
20
|
+
/** */
|
|
21
|
+
optionPerRow: number;
|
|
22
|
+
/** 行高 */
|
|
23
|
+
rowHeight: number;
|
|
24
|
+
/** 选中值VModel */
|
|
25
|
+
selectedValues: PanelSelectValue[];
|
|
26
|
+
/** 全部选项是否选中 */
|
|
27
|
+
isAllChecked: boolean;
|
|
28
|
+
/** 是否初始化就选中 */
|
|
29
|
+
isIndeterminate: boolean;
|
|
30
|
+
/** */
|
|
31
|
+
allChecked: boolean;
|
|
32
|
+
groupCheckedMap: Record<string, boolean>;
|
|
33
|
+
groupIndeterminateMap: Record<string, boolean>;
|
|
34
|
+
scrollToGroupValue?: PanelSelectValue;
|
|
35
|
+
pasteSearch?: boolean;
|
|
36
|
+
separator?: string;
|
|
37
|
+
showAll: boolean;
|
|
38
|
+
middlePlaceholder?: string;
|
|
39
|
+
}
|
|
10
40
|
export interface PanelSelectTreeConfig {
|
|
11
41
|
/** 是否将平铺数据自动转换为树结构 */
|
|
12
42
|
transform?: boolean;
|
|
@@ -54,6 +84,12 @@ export interface PanelContainerProps {
|
|
|
54
84
|
showAll?: boolean;
|
|
55
85
|
/** 是否按照中文拼音的首个字母进行转换成树结构进行分组展示(优先级高于showOriginMode,低于treeConfig) */
|
|
56
86
|
showPinyinMode?: boolean;
|
|
57
|
-
/** 是否平铺原样展示数据,如果数据中是数据结构还是按照默认进行展示 */
|
|
87
|
+
/** 是否平铺原样展示数据,如果数据中是数据结构还是按照默认进行展示(默认模式) */
|
|
58
88
|
showOriginMode?: boolean;
|
|
89
|
+
/** 左侧导航的默认值 */
|
|
90
|
+
leftPlaceholder?: string;
|
|
91
|
+
/** 中间部分的默认值 */
|
|
92
|
+
middlePlaceholder?: string;
|
|
93
|
+
/** 搜索框的默认值 */
|
|
94
|
+
placeholder?: string;
|
|
59
95
|
}
|