@weitutech/by-components-v3 1.1.26 → 1.1.27
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/README.md +6 -2
- package/dist/by-component-v3.css +1 -1
- package/dist/by-component-v3.js +8914 -6156
- package/dist/by-component-v3.umd.cjs +1 -1
- package/dist/types/packages/batch-query-selector/src/index.vue.d.ts +37 -4
- package/dist/types/packages/card-selector/index.d.ts +3 -0
- package/dist/types/packages/card-selector/src/ByCardSelector.vue.d.ts +295 -0
- package/dist/types/packages/card-view/index.d.ts +3 -0
- package/dist/types/packages/card-view/src/ByCardView.vue.d.ts +69 -0
- package/dist/types/packages/cascader-panel/index.d.ts +3 -0
- package/dist/types/packages/cascader-panel/src/ByCascaderPanel.vue.d.ts +674 -0
- package/dist/types/packages/cascader-panel/src/VirtualCascaderPanel.vue.d.ts +245 -0
- package/dist/types/packages/cascader-panel/src/VirtualList.vue.d.ts +65 -0
- package/dist/types/packages/customColumn/index.vue.d.ts +29 -4
- package/dist/types/packages/datePicker/src/datePicker.vue.d.ts +4 -4
- package/dist/types/packages/datePicker/src/type.d.ts +8 -1
- package/dist/types/packages/dialog/src/dialog.vue.d.ts +9 -5
- package/dist/types/packages/dialog/src/types.d.ts +25 -7
- package/dist/types/packages/form/src/form.vue.d.ts +19 -1
- package/dist/types/packages/form/src/props.d.ts +7 -1
- package/dist/types/packages/index.d.ts +7 -0
- package/dist/types/packages/page-search/index.d.ts +2 -0
- package/dist/types/packages/page-search/src/page-search.vue.d.ts +51 -0
- package/dist/types/packages/pager-unknown-total/index.vue.d.ts +24 -0
- package/dist/types/packages/tabs/index.d.ts +4 -0
- package/dist/types/packages/tabs/src/ByTabPane.vue.d.ts +61 -0
- package/dist/types/packages/tabs/src/ByTabs.vue.d.ts +34 -0
- package/dist/types/packages/tag/index.d.ts +3 -0
- package/dist/types/packages/tag/src/ByTag.vue.d.ts +70 -0
- package/dist/types/packages/utils/tableUtils.d.ts +19 -1
- package/dist/types/src/views/configs/config.d.ts +10 -3
- package/dist/types/src/views/configs/test-components.d.ts +2 -0
- package/dist/types/src/views/tests/CardSelectorTest.vue.d.ts +2 -0
- package/dist/types/src/views/tests/CardViewTest.vue.d.ts +2 -0
- package/dist/types/src/views/tests/CascaderPanelTest.vue.d.ts +2 -0
- package/dist/types/src/views/tests/PageSearchTest.vue.d.ts +2 -0
- package/dist/types/src/views/tests/TabsTest.vue.d.ts +2 -0
- package/dist/types/src/views/tests/TagTest.vue.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
value: {
|
|
3
|
+
type: (StringConstructor | NumberConstructor | ArrayConstructor)[];
|
|
4
|
+
default: () => any[];
|
|
5
|
+
};
|
|
6
|
+
options: {
|
|
7
|
+
type: ArrayConstructor;
|
|
8
|
+
default: () => any[];
|
|
9
|
+
};
|
|
10
|
+
props: {
|
|
11
|
+
type: ObjectConstructor;
|
|
12
|
+
default: () => {
|
|
13
|
+
multiple: boolean;
|
|
14
|
+
label: string;
|
|
15
|
+
value: string;
|
|
16
|
+
children: string;
|
|
17
|
+
checkStrictly: boolean;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
height: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
columnMinWidth: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
28
|
+
columnMaxWidth: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
disabledConfig: {
|
|
33
|
+
type: ObjectConstructor;
|
|
34
|
+
default: () => {};
|
|
35
|
+
};
|
|
36
|
+
isViewMode: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
autoExpandDeep: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
syncValueFromParent: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
filterField: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
}>, {}, {
|
|
53
|
+
store: any;
|
|
54
|
+
selection: any;
|
|
55
|
+
activePath: any[];
|
|
56
|
+
itemHeight: number;
|
|
57
|
+
syncingValue: boolean;
|
|
58
|
+
suppressValueSync: boolean;
|
|
59
|
+
selectionTick: number;
|
|
60
|
+
}, {
|
|
61
|
+
multiple(): boolean;
|
|
62
|
+
checkStrictly(): boolean;
|
|
63
|
+
columns(): any[];
|
|
64
|
+
singleCheckedValue(): any;
|
|
65
|
+
}, {
|
|
66
|
+
emitModel(value: any): void;
|
|
67
|
+
syncHorizontalOverflow(): void;
|
|
68
|
+
getColumnStyle(colIndex: any, columnNodes: any): {
|
|
69
|
+
width: string;
|
|
70
|
+
minWidth: string;
|
|
71
|
+
maxWidth: string;
|
|
72
|
+
};
|
|
73
|
+
getFilterFieldText(item: any): string;
|
|
74
|
+
rebuildStore(): void;
|
|
75
|
+
syncFromValue(): void;
|
|
76
|
+
normalizeSinglePath(val: any): any;
|
|
77
|
+
emitValue(): void;
|
|
78
|
+
isActive(node: any, colIndex: any): boolean;
|
|
79
|
+
isExpanded(node: any, colIndex: any): boolean;
|
|
80
|
+
isInActivePath(node: any): boolean;
|
|
81
|
+
getNodeClass(node: any, colIndex: any): {
|
|
82
|
+
'is-selectable': boolean;
|
|
83
|
+
'is-disabled': any;
|
|
84
|
+
'in-active-path': boolean;
|
|
85
|
+
'in-checked-path': any;
|
|
86
|
+
'is-active': any;
|
|
87
|
+
};
|
|
88
|
+
isInCheckedPath(node: any): any;
|
|
89
|
+
isNodeActive(node: any): any;
|
|
90
|
+
isChecked(node: any): any;
|
|
91
|
+
isIndeterminate(node: any): any;
|
|
92
|
+
bumpSelectionView(): void;
|
|
93
|
+
sanitizeActivePath(pathIds: any): any[];
|
|
94
|
+
expandNode(node: any, silent?: boolean): void;
|
|
95
|
+
expandDeepFromNode(node: any): void;
|
|
96
|
+
expandPathValues(pathValues: any, deep?: boolean): void;
|
|
97
|
+
onNodeClick(node: any, colIndex: any): void;
|
|
98
|
+
onCheckClick(node: any, checked: any): void;
|
|
99
|
+
onRadioClick(node: any): void;
|
|
100
|
+
clearCheckedNodes(): void;
|
|
101
|
+
selectAllLeaves(): void;
|
|
102
|
+
syncCheckedValue(): void;
|
|
103
|
+
syncFromParentValues(values: any, prefix: any): void;
|
|
104
|
+
getSelectionSnapshot(): {
|
|
105
|
+
store: any;
|
|
106
|
+
selection: any;
|
|
107
|
+
isCompact: any;
|
|
108
|
+
count: any;
|
|
109
|
+
};
|
|
110
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "update:modelValue" | "change" | "expand-change" | "store-ready")[], "input" | "update:modelValue" | "change" | "expand-change" | "store-ready", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
111
|
+
value: {
|
|
112
|
+
type: (StringConstructor | NumberConstructor | ArrayConstructor)[];
|
|
113
|
+
default: () => any[];
|
|
114
|
+
};
|
|
115
|
+
options: {
|
|
116
|
+
type: ArrayConstructor;
|
|
117
|
+
default: () => any[];
|
|
118
|
+
};
|
|
119
|
+
props: {
|
|
120
|
+
type: ObjectConstructor;
|
|
121
|
+
default: () => {
|
|
122
|
+
multiple: boolean;
|
|
123
|
+
label: string;
|
|
124
|
+
value: string;
|
|
125
|
+
children: string;
|
|
126
|
+
checkStrictly: boolean;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
height: {
|
|
130
|
+
type: NumberConstructor;
|
|
131
|
+
default: number;
|
|
132
|
+
};
|
|
133
|
+
columnMinWidth: {
|
|
134
|
+
type: NumberConstructor;
|
|
135
|
+
default: number;
|
|
136
|
+
};
|
|
137
|
+
columnMaxWidth: {
|
|
138
|
+
type: NumberConstructor;
|
|
139
|
+
default: number;
|
|
140
|
+
};
|
|
141
|
+
disabledConfig: {
|
|
142
|
+
type: ObjectConstructor;
|
|
143
|
+
default: () => {};
|
|
144
|
+
};
|
|
145
|
+
isViewMode: {
|
|
146
|
+
type: BooleanConstructor;
|
|
147
|
+
default: boolean;
|
|
148
|
+
};
|
|
149
|
+
autoExpandDeep: {
|
|
150
|
+
type: BooleanConstructor;
|
|
151
|
+
default: boolean;
|
|
152
|
+
};
|
|
153
|
+
syncValueFromParent: {
|
|
154
|
+
type: BooleanConstructor;
|
|
155
|
+
default: boolean;
|
|
156
|
+
};
|
|
157
|
+
filterField: {
|
|
158
|
+
type: StringConstructor;
|
|
159
|
+
default: string;
|
|
160
|
+
};
|
|
161
|
+
}>> & Readonly<{
|
|
162
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
163
|
+
onChange?: (...args: any[]) => any;
|
|
164
|
+
onInput?: (...args: any[]) => any;
|
|
165
|
+
"onExpand-change"?: (...args: any[]) => any;
|
|
166
|
+
"onStore-ready"?: (...args: any[]) => any;
|
|
167
|
+
}>, {
|
|
168
|
+
options: unknown[];
|
|
169
|
+
value: string | number | unknown[];
|
|
170
|
+
props: Record<string, any>;
|
|
171
|
+
height: number;
|
|
172
|
+
columnMinWidth: number;
|
|
173
|
+
columnMaxWidth: number;
|
|
174
|
+
disabledConfig: Record<string, any>;
|
|
175
|
+
isViewMode: boolean;
|
|
176
|
+
autoExpandDeep: boolean;
|
|
177
|
+
syncValueFromParent: boolean;
|
|
178
|
+
filterField: string;
|
|
179
|
+
}, {}, {
|
|
180
|
+
VcpVirtualList: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
181
|
+
items: {
|
|
182
|
+
type: ArrayConstructor;
|
|
183
|
+
default: () => any[];
|
|
184
|
+
};
|
|
185
|
+
itemHeight: {
|
|
186
|
+
type: NumberConstructor;
|
|
187
|
+
default: number;
|
|
188
|
+
};
|
|
189
|
+
height: {
|
|
190
|
+
type: NumberConstructor;
|
|
191
|
+
default: number;
|
|
192
|
+
};
|
|
193
|
+
overscan: {
|
|
194
|
+
type: NumberConstructor;
|
|
195
|
+
default: number;
|
|
196
|
+
};
|
|
197
|
+
listPadding: {
|
|
198
|
+
type: NumberConstructor;
|
|
199
|
+
default: number;
|
|
200
|
+
};
|
|
201
|
+
}>, {}, {
|
|
202
|
+
scrollTop: number;
|
|
203
|
+
}, {
|
|
204
|
+
totalHeight(): number;
|
|
205
|
+
enableVirtual(): boolean;
|
|
206
|
+
startIndex(): number;
|
|
207
|
+
endIndex(): number;
|
|
208
|
+
offsetY(): number;
|
|
209
|
+
visibleItems(): unknown[];
|
|
210
|
+
}, {
|
|
211
|
+
isSameItemList(nextItems: any, prevItems: any): boolean;
|
|
212
|
+
rowKey(item: any, index: any): string;
|
|
213
|
+
getItemKey(item: any): any;
|
|
214
|
+
onScroll(event: any): void;
|
|
215
|
+
resetScroll(): void;
|
|
216
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
217
|
+
items: {
|
|
218
|
+
type: ArrayConstructor;
|
|
219
|
+
default: () => any[];
|
|
220
|
+
};
|
|
221
|
+
itemHeight: {
|
|
222
|
+
type: NumberConstructor;
|
|
223
|
+
default: number;
|
|
224
|
+
};
|
|
225
|
+
height: {
|
|
226
|
+
type: NumberConstructor;
|
|
227
|
+
default: number;
|
|
228
|
+
};
|
|
229
|
+
overscan: {
|
|
230
|
+
type: NumberConstructor;
|
|
231
|
+
default: number;
|
|
232
|
+
};
|
|
233
|
+
listPadding: {
|
|
234
|
+
type: NumberConstructor;
|
|
235
|
+
default: number;
|
|
236
|
+
};
|
|
237
|
+
}>> & Readonly<{}>, {
|
|
238
|
+
height: number;
|
|
239
|
+
items: unknown[];
|
|
240
|
+
itemHeight: number;
|
|
241
|
+
overscan: number;
|
|
242
|
+
listPadding: number;
|
|
243
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
244
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
245
|
+
export default _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
items: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
default: () => any[];
|
|
5
|
+
};
|
|
6
|
+
itemHeight: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
height: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
overscan: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
default: number;
|
|
17
|
+
};
|
|
18
|
+
listPadding: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
}>, {}, {
|
|
23
|
+
scrollTop: number;
|
|
24
|
+
}, {
|
|
25
|
+
totalHeight(): number;
|
|
26
|
+
enableVirtual(): boolean;
|
|
27
|
+
startIndex(): number;
|
|
28
|
+
endIndex(): number;
|
|
29
|
+
offsetY(): number;
|
|
30
|
+
visibleItems(): unknown[];
|
|
31
|
+
}, {
|
|
32
|
+
isSameItemList(nextItems: any, prevItems: any): boolean;
|
|
33
|
+
rowKey(item: any, index: any): string;
|
|
34
|
+
getItemKey(item: any): any;
|
|
35
|
+
onScroll(event: any): void;
|
|
36
|
+
resetScroll(): void;
|
|
37
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
+
items: {
|
|
39
|
+
type: ArrayConstructor;
|
|
40
|
+
default: () => any[];
|
|
41
|
+
};
|
|
42
|
+
itemHeight: {
|
|
43
|
+
type: NumberConstructor;
|
|
44
|
+
default: number;
|
|
45
|
+
};
|
|
46
|
+
height: {
|
|
47
|
+
type: NumberConstructor;
|
|
48
|
+
default: number;
|
|
49
|
+
};
|
|
50
|
+
overscan: {
|
|
51
|
+
type: NumberConstructor;
|
|
52
|
+
default: number;
|
|
53
|
+
};
|
|
54
|
+
listPadding: {
|
|
55
|
+
type: NumberConstructor;
|
|
56
|
+
default: number;
|
|
57
|
+
};
|
|
58
|
+
}>> & Readonly<{}>, {
|
|
59
|
+
height: number;
|
|
60
|
+
items: unknown[];
|
|
61
|
+
itemHeight: number;
|
|
62
|
+
overscan: number;
|
|
63
|
+
listPadding: number;
|
|
64
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
65
|
+
export default _default;
|
|
@@ -1,19 +1,44 @@
|
|
|
1
|
+
import './index.scss';
|
|
1
2
|
type IProps = {
|
|
2
3
|
infoMethod: (page: any) => {
|
|
3
4
|
data: any;
|
|
4
|
-
}
|
|
5
|
+
} | Promise<{
|
|
6
|
+
data: any;
|
|
7
|
+
}>;
|
|
5
8
|
infoMethodParams: Record<string, any>;
|
|
6
|
-
submitMethod: (params: Record<string, any>) => void
|
|
9
|
+
submitMethod: (params: Record<string, any>) => void | Promise<void>;
|
|
7
10
|
submitMethodParams: Record<string, any>;
|
|
11
|
+
fixedMaxCount?: number;
|
|
12
|
+
useMultiLevelHeader?: boolean;
|
|
13
|
+
aggregationGroup?: boolean;
|
|
14
|
+
columnLazyEnabled?: boolean;
|
|
15
|
+
columnLazyThreshold?: number;
|
|
16
|
+
columnLazyRequiredField?: string;
|
|
17
|
+
columnLazyIgnoreFixed?: boolean;
|
|
18
|
+
dialogVisible?: boolean;
|
|
8
19
|
};
|
|
9
20
|
declare const _default: import("vue").DefineComponent<IProps, {
|
|
10
21
|
getCustomTableList: (page2: any, column: any) => Promise<void>;
|
|
11
|
-
dialogVisible: import("vue").
|
|
22
|
+
dialogVisible: import("vue").WritableComputedRef<boolean, boolean>;
|
|
23
|
+
expandLazyMore: (leafLimit?: number, requiredField?: string) => void;
|
|
12
24
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
25
|
changeTable: (...args: any[]) => void;
|
|
26
|
+
changeTableGroup: (...args: any[]) => void;
|
|
14
27
|
closeDialog: (...args: any[]) => void;
|
|
28
|
+
"update:dialogVisible": (...args: any[]) => void;
|
|
15
29
|
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
16
30
|
onChangeTable?: (...args: any[]) => any;
|
|
31
|
+
onChangeTableGroup?: (...args: any[]) => any;
|
|
17
32
|
onCloseDialog?: (...args: any[]) => any;
|
|
18
|
-
|
|
33
|
+
"onUpdate:dialogVisible"?: (...args: any[]) => any;
|
|
34
|
+
}>, {
|
|
35
|
+
dialogVisible: boolean;
|
|
36
|
+
fixedMaxCount: number;
|
|
37
|
+
useMultiLevelHeader: boolean;
|
|
38
|
+
aggregationGroup: boolean;
|
|
39
|
+
columnLazyEnabled: boolean;
|
|
40
|
+
columnLazyThreshold: number;
|
|
41
|
+
columnLazyRequiredField: string;
|
|
42
|
+
columnLazyIgnoreFixed: boolean;
|
|
43
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
44
|
export default _default;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { IDatePickerProps } from './type';
|
|
1
|
+
import type { IDatePickerProps } from './type';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<IDatePickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
|
-
"update:modelValue": (values:
|
|
3
|
+
"update:modelValue": (values: string[]) => any;
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<IDatePickerProps> & Readonly<{
|
|
5
|
-
"onUpdate:modelValue"?: (values:
|
|
5
|
+
"onUpdate:modelValue"?: (values: string[]) => any;
|
|
6
6
|
}>, {
|
|
7
7
|
size: string;
|
|
8
8
|
type: string;
|
|
9
|
-
modelValue:
|
|
9
|
+
modelValue: string[] | string;
|
|
10
10
|
startPlaceholder: string;
|
|
11
11
|
endPlaceholder: string;
|
|
12
12
|
rangeSeparator: string;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
export type ShortcutLayout = 'external' | 'panel';
|
|
2
|
+
export interface ShortcutItem {
|
|
3
|
+
label: string;
|
|
4
|
+
start_time: string;
|
|
5
|
+
end_time: string;
|
|
6
|
+
key: string;
|
|
7
|
+
}
|
|
2
8
|
export type IDatePickerProps = {
|
|
3
|
-
modelValue:
|
|
9
|
+
modelValue: string[] | string;
|
|
4
10
|
startPlaceholder?: string;
|
|
5
11
|
endPlaceholder?: string;
|
|
6
12
|
type?: string;
|
|
7
13
|
rangeSeparator?: string;
|
|
8
14
|
size?: string;
|
|
9
15
|
active?: string;
|
|
16
|
+
clearable?: boolean;
|
|
10
17
|
/**
|
|
11
18
|
* 快捷按钮展示方式
|
|
12
19
|
* external: 快捷按钮在输入框右侧(默认,保持原有样式)
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { DialogButton, DialogProps } from './types';
|
|
2
2
|
import './dialog.scss';
|
|
3
|
-
declare var
|
|
3
|
+
declare var __VLS_22: {}, __VLS_24: {}, __VLS_42: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
|
|
5
|
+
header?: (props: typeof __VLS_22) => any;
|
|
6
6
|
} & {
|
|
7
|
-
|
|
7
|
+
default?: (props: typeof __VLS_24) => any;
|
|
8
|
+
} & {
|
|
9
|
+
footer?: (props: typeof __VLS_42) => any;
|
|
8
10
|
};
|
|
9
11
|
declare const __VLS_component: import("vue").DefineComponent<DialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
12
|
close: () => any;
|
|
@@ -20,11 +22,13 @@ declare const __VLS_component: import("vue").DefineComponent<DialogProps, {}, {}
|
|
|
20
22
|
title: string;
|
|
21
23
|
visible: boolean;
|
|
22
24
|
width: string;
|
|
23
|
-
|
|
25
|
+
tooltip: string;
|
|
24
26
|
content: string;
|
|
25
|
-
|
|
27
|
+
autoAdjustTop: boolean;
|
|
26
28
|
showFooter: boolean;
|
|
29
|
+
closeOnClickModal: boolean;
|
|
27
30
|
buttons: DialogButton[];
|
|
31
|
+
customClass: string;
|
|
28
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
33
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
30
34
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
1
2
|
/**
|
|
2
3
|
* 弹窗按钮配置接口
|
|
3
4
|
*/
|
|
@@ -6,8 +7,12 @@ export interface DialogButton {
|
|
|
6
7
|
text: string;
|
|
7
8
|
/** 按钮类型 */
|
|
8
9
|
type?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text' | 'default';
|
|
9
|
-
/**
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* 按钮尺寸。
|
|
12
|
+
* Element Plus 为 large / default / small;
|
|
13
|
+
* 兼容 Vue2:mini 会按 small 渲染,medium 会按 default 渲染。
|
|
14
|
+
*/
|
|
15
|
+
size?: 'large' | 'default' | 'small' | 'medium' | 'mini';
|
|
11
16
|
/** 是否显示加载状态 */
|
|
12
17
|
loading?: boolean;
|
|
13
18
|
/** 是否禁用 */
|
|
@@ -16,12 +21,14 @@ export interface DialogButton {
|
|
|
16
21
|
class?: string;
|
|
17
22
|
/** 自定义样式 */
|
|
18
23
|
style?: string | Record<string, any>;
|
|
19
|
-
/**
|
|
20
|
-
icon?: string;
|
|
24
|
+
/** 图标,支持图标组件或类名 */
|
|
25
|
+
icon?: string | Component;
|
|
21
26
|
/** 按钮动作 */
|
|
22
27
|
action?: string;
|
|
23
|
-
/**
|
|
28
|
+
/** 按钮点击回调,返回 false 时阻止后续事件和默认关闭 */
|
|
24
29
|
callback?: () => boolean | void | Promise<boolean | void>;
|
|
30
|
+
/** 按钮位置,未设置时显示在右侧 */
|
|
31
|
+
position?: 'left' | 'right';
|
|
25
32
|
}
|
|
26
33
|
/**
|
|
27
34
|
* 弹窗组件Props接口
|
|
@@ -31,9 +38,20 @@ export interface DialogProps {
|
|
|
31
38
|
visible: boolean;
|
|
32
39
|
/** 弹窗宽度 */
|
|
33
40
|
width?: string;
|
|
41
|
+
/**
|
|
42
|
+
* 内容区较高时自动把弹窗上移(默认 15vh,达到阈值时为 8vh)。
|
|
43
|
+
* 显式传入 top 且未开启本项时,以 top 为准。
|
|
44
|
+
*/
|
|
45
|
+
autoAdjustTop?: boolean;
|
|
46
|
+
/** 内容区固定高度,支持 px / vh / %;设置后优先于 bodyMaxHeight 的滚动上限 */
|
|
47
|
+
bodyHeight?: string | number;
|
|
48
|
+
/** 内容区最大高度,支持 px / vh / % */
|
|
49
|
+
bodyMaxHeight?: string | number;
|
|
34
50
|
/** 标题 */
|
|
35
51
|
title?: string;
|
|
36
|
-
/**
|
|
52
|
+
/** 标题右侧问号提示文案;有值时展示图标,空字符串不展示 */
|
|
53
|
+
tooltip?: string;
|
|
54
|
+
/** 内容(与默认插槽可同时使用) */
|
|
37
55
|
content?: string;
|
|
38
56
|
/** 是否显示底部按钮区域 */
|
|
39
57
|
showFooter?: boolean;
|
|
@@ -41,7 +59,7 @@ export interface DialogProps {
|
|
|
41
59
|
closeOnClickModal?: boolean;
|
|
42
60
|
/** 按钮配置 */
|
|
43
61
|
buttons?: DialogButton[];
|
|
44
|
-
/**
|
|
62
|
+
/** 自定义类名,支持 small / medium / large / fullscreen */
|
|
45
63
|
customClass?: string;
|
|
46
64
|
}
|
|
47
65
|
/**
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { type IProps, IFormItems } from './props';
|
|
2
|
-
declare
|
|
2
|
+
declare var __VLS_1: {}, __VLS_15: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
header?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
footer?: (props: typeof __VLS_15) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<IProps, {
|
|
3
9
|
formRef: import("vue").Ref<any, any>;
|
|
4
10
|
submit: () => void;
|
|
5
11
|
reset: () => void;
|
|
@@ -8,6 +14,8 @@ declare const _default: import("vue").DefineComponent<IProps, {
|
|
|
8
14
|
change: (values: Record<string, any>) => any;
|
|
9
15
|
reset: () => any;
|
|
10
16
|
submit: (formModelValue: Record<string, any>) => any;
|
|
17
|
+
"batch-selector-focus": (event: unknown) => any;
|
|
18
|
+
"batch-input-complete": (event: unknown) => any;
|
|
11
19
|
resetBtnClick: (cloneModelValue: Record<string, any>, cloneFormItems: IFormItems[]) => any;
|
|
12
20
|
queryBtnClick: () => any;
|
|
13
21
|
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
@@ -15,6 +23,8 @@ declare const _default: import("vue").DefineComponent<IProps, {
|
|
|
15
23
|
onChange?: (values: Record<string, any>) => any;
|
|
16
24
|
onReset?: () => any;
|
|
17
25
|
onSubmit?: (formModelValue: Record<string, any>) => any;
|
|
26
|
+
"onBatch-selector-focus"?: (event: unknown) => any;
|
|
27
|
+
"onBatch-input-complete"?: (event: unknown) => any;
|
|
18
28
|
onResetBtnClick?: (cloneModelValue: Record<string, any>, cloneFormItems: IFormItems[]) => any;
|
|
19
29
|
onQueryBtnClick?: () => any;
|
|
20
30
|
}>, {
|
|
@@ -39,6 +49,8 @@ declare const _default: import("vue").DefineComponent<IProps, {
|
|
|
39
49
|
disabled: boolean;
|
|
40
50
|
modelValue: Record<string, any>;
|
|
41
51
|
isFlexible: boolean;
|
|
52
|
+
builtinFold: boolean;
|
|
53
|
+
expanded: boolean | "auto";
|
|
42
54
|
flexible: {
|
|
43
55
|
foldField?: any[] | "none";
|
|
44
56
|
unfold?: boolean;
|
|
@@ -47,4 +59,10 @@ declare const _default: import("vue").DefineComponent<IProps, {
|
|
|
47
59
|
colLayout: import("./props").TColLayout;
|
|
48
60
|
elSize: "small" | "large" | "default" | "" | string;
|
|
49
61
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
62
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
50
63
|
export default _default;
|
|
64
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
65
|
+
new (): {
|
|
66
|
+
$slots: S;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
@@ -15,7 +15,7 @@ type TOtherOptions = {
|
|
|
15
15
|
resetText?: string;
|
|
16
16
|
showSubmitIcon?: boolean;
|
|
17
17
|
};
|
|
18
|
-
export type TFormItemType = 'input' | 'inputNumber' | 'select' | 'treeSelect' | 'datepicker' | 'cascader' | 'switch' | 'checkbox' | 'radio' | 'upload' | 'customDatePicker' | 'search' | 'custom' | 'formButtons' | 'commonSelector' | 'commonInput';
|
|
18
|
+
export type TFormItemType = 'input' | 'inputNumber' | 'select' | 'treeSelect' | 'datepicker' | 'cascader' | 'switch' | 'checkbox' | 'radio' | 'upload' | 'customDatePicker' | 'search' | 'custom' | 'formButtons' | 'commonSelector' | 'commonInput' | 'batchQuerySelector';
|
|
19
19
|
export type TFormItemProps = {
|
|
20
20
|
/** 避免field重复 */
|
|
21
21
|
id?: number | string;
|
|
@@ -27,6 +27,8 @@ export type TFormItemProps = {
|
|
|
27
27
|
startTimeField?: string;
|
|
28
28
|
/** 对应日期选择器的结束时间字段 */
|
|
29
29
|
endTimeField?: string;
|
|
30
|
+
/** 自定义日期选择器快捷按钮布局,也可写在 attrs.shortcutLayout */
|
|
31
|
+
shortcutLayout?: 'external' | 'panel';
|
|
30
32
|
/** 对应通用选择器的后缀输入框字段 */
|
|
31
33
|
suffixInputField?: string;
|
|
32
34
|
actions?: string;
|
|
@@ -74,6 +76,10 @@ export interface IForm {
|
|
|
74
76
|
itemStyle?: Record<string, any>;
|
|
75
77
|
/** 是否有展开按钮 */
|
|
76
78
|
isFlexible?: boolean;
|
|
79
|
+
/** 是否渲染表单自带的展开按钮。页面搜索自己渲染时关掉 */
|
|
80
|
+
builtinFold?: boolean;
|
|
81
|
+
/** 外部控制展开状态。auto 表示沿用表单内部状态 */
|
|
82
|
+
expanded?: boolean | 'auto';
|
|
77
83
|
flexible?: {
|
|
78
84
|
/** 需要折叠字段 */
|
|
79
85
|
foldField?: any[] | 'none';
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import type { App } from 'vue';
|
|
2
2
|
export * from './form/src/props';
|
|
3
3
|
export * from './pager/types';
|
|
4
|
+
import ByTag from './tag/index';
|
|
5
|
+
import ByTabs from './tabs/index';
|
|
6
|
+
import ByTabPane from './tabs/src/ByTabPane.vue';
|
|
7
|
+
import ByCardView from './card-view/index';
|
|
8
|
+
import ByCardSelector from './card-selector/index';
|
|
9
|
+
import ByCascaderPanel from './cascader-panel/index';
|
|
4
10
|
export * from './tool-bar/ToolBarType';
|
|
5
11
|
export * from './dialog/src/types';
|
|
12
|
+
export { ByTag, ByTabs, ByTabPane, ByCardView, ByCardSelector, ByCascaderPanel };
|
|
6
13
|
import 'vxe-pc-ui/lib/style.css';
|
|
7
14
|
import 'vxe-table/lib/style.css';
|
|
8
15
|
import './index.scss';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import './page-search.scss';
|
|
2
|
+
type ToolbarActions = {
|
|
3
|
+
submit?: boolean;
|
|
4
|
+
reset?: boolean;
|
|
5
|
+
submitText?: string;
|
|
6
|
+
resetText?: string;
|
|
7
|
+
showSubmitIcon?: boolean;
|
|
8
|
+
size?: string;
|
|
9
|
+
};
|
|
10
|
+
type SearchFormConfig = {
|
|
11
|
+
formItems?: Array<Record<string, any>>;
|
|
12
|
+
flexible?: {
|
|
13
|
+
foldField?: Array<string | number> | string;
|
|
14
|
+
unfold?: boolean;
|
|
15
|
+
};
|
|
16
|
+
toolbarActions?: boolean | ToolbarActions;
|
|
17
|
+
elSize?: string;
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_Props = {
|
|
21
|
+
searchFormConfig: SearchFormConfig;
|
|
22
|
+
modelValue?: Record<string, any>;
|
|
23
|
+
value?: Record<string, any>;
|
|
24
|
+
};
|
|
25
|
+
declare var __VLS_18: {}, __VLS_53: string, __VLS_54: {};
|
|
26
|
+
type __VLS_Slots = {} & {
|
|
27
|
+
[K in NonNullable<typeof __VLS_53>]?: (props: typeof __VLS_54) => any;
|
|
28
|
+
} & {
|
|
29
|
+
header?: (props: typeof __VLS_18) => any;
|
|
30
|
+
};
|
|
31
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
32
|
+
submit: () => void;
|
|
33
|
+
reset: () => void;
|
|
34
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
35
|
+
[x: string]: any;
|
|
36
|
+
} & {
|
|
37
|
+
[x: string]: any;
|
|
38
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
39
|
+
[x: `on${Capitalize<any>}`]: (...args: any) => any;
|
|
40
|
+
}>, {
|
|
41
|
+
value: Record<string, any>;
|
|
42
|
+
modelValue: Record<string, any>;
|
|
43
|
+
searchFormConfig: SearchFormConfig;
|
|
44
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
46
|
+
export default _default;
|
|
47
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
48
|
+
new (): {
|
|
49
|
+
$slots: S;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import './index.scss';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
limit?: number;
|
|
4
|
+
page?: number;
|
|
5
|
+
pageSizes?: number[];
|
|
6
|
+
currentCount?: number;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
+
change: (values: {
|
|
10
|
+
page: number;
|
|
11
|
+
limit: number;
|
|
12
|
+
}) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onChange?: (values: {
|
|
15
|
+
page: number;
|
|
16
|
+
limit: number;
|
|
17
|
+
}) => any;
|
|
18
|
+
}>, {
|
|
19
|
+
pageSizes: number[];
|
|
20
|
+
limit: number;
|
|
21
|
+
page: number;
|
|
22
|
+
currentCount: number;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
export default _default;
|