@dt-frames/ui 2.0.8 → 2.0.9
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/es/components/form/index.d.ts +1 -3160
- package/es/components/form/index.js +15 -78
- package/es/components/form/src/components/formIcon.d.ts +11 -11
- package/es/components/form/src/components/formInputUseDialog.d.ts +6 -6
- package/es/components/form/src/hooks/useFormEvent.d.ts +1 -1
- package/es/components/form/src/index.d.ts +2 -2
- package/es/components/form/src/types/form.type.d.ts +11 -5
- package/es/components/form/src/types/items.type.d.ts +375 -0
- package/es/components/modal/index.less +3 -0
- package/es/components/modal/src/components/ModalFooter.d.ts +3 -3
- package/es/components/modal/src/index.d.ts +9 -9
- package/es/components/source/index.js +8 -1
- package/es/components/source/types/source.type.d.ts +1 -1
- package/es/components/table/index.js +9 -7
- package/package.json +1 -1
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
import { DtEvent, Recordable, SelectOptions } from "@dt-frames/core";
|
|
2
|
+
import dayjs from "dayjs";
|
|
3
|
+
import { Ref, Slot, VNode, CSSProperties } from "vue";
|
|
4
|
+
declare type BaseInput = {
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
addonAfter?: string | VNode;
|
|
7
|
+
addonBefore?: string | VNode;
|
|
8
|
+
allowClear?: boolean;
|
|
9
|
+
bordered?: boolean;
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
disabled?: boolean | Ref<boolean>;
|
|
12
|
+
id?: string;
|
|
13
|
+
maxlength?: number;
|
|
14
|
+
prefix?: string | VNode;
|
|
15
|
+
showCount?: boolean;
|
|
16
|
+
size?: 'large' | 'default' | 'small';
|
|
17
|
+
suffix?: string | VNode;
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
};
|
|
20
|
+
export declare type Input = BaseInput & {
|
|
21
|
+
onChange?: (e: DtEvent, model: Recordable) => void;
|
|
22
|
+
onPressEnter?: (e: DtEvent, model: Recordable) => void;
|
|
23
|
+
};
|
|
24
|
+
export declare type InputGroup = {
|
|
25
|
+
defaultValue?: any[];
|
|
26
|
+
compact?: boolean;
|
|
27
|
+
size?: 'large' | 'default' | 'small';
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
};
|
|
30
|
+
export declare type InputPassword = Input & {
|
|
31
|
+
visibilityToggle?: boolean;
|
|
32
|
+
onChange?: (e: DtEvent, model: Recordable) => void;
|
|
33
|
+
};
|
|
34
|
+
export declare type InputSearch = Input & {
|
|
35
|
+
enterButton?: boolean | VNode;
|
|
36
|
+
loading?: boolean | Ref<boolean>;
|
|
37
|
+
onSearch?: (searchValue: string) => void;
|
|
38
|
+
onChange?: (e: DtEvent, model: Recordable) => void;
|
|
39
|
+
};
|
|
40
|
+
export declare type InputTextArea = Input & {
|
|
41
|
+
autosize?: boolean | object;
|
|
42
|
+
onPressEnter?: (e: DtEvent, model: Recordable) => void;
|
|
43
|
+
onChange?: (e: DtEvent, model: Recordable) => void;
|
|
44
|
+
};
|
|
45
|
+
export declare type InputNumber = {
|
|
46
|
+
addonAfter?: string | VNode;
|
|
47
|
+
addonBefore?: string | VNode;
|
|
48
|
+
autofocus?: boolean;
|
|
49
|
+
bordered?: boolean;
|
|
50
|
+
controls?: boolean;
|
|
51
|
+
decimalSeparator?: string;
|
|
52
|
+
defaultValue?: number;
|
|
53
|
+
disabled?: boolean | Ref<boolean>;
|
|
54
|
+
formatter?: (value: number | string, info: {
|
|
55
|
+
userTyping: boolean;
|
|
56
|
+
input: string;
|
|
57
|
+
}) => string;
|
|
58
|
+
parser?: (value: string) => number | string;
|
|
59
|
+
keyboard?: boolean;
|
|
60
|
+
max?: number;
|
|
61
|
+
min?: number;
|
|
62
|
+
precision?: number;
|
|
63
|
+
prefix?: string | VNode;
|
|
64
|
+
size?: 'large' | 'default' | 'small';
|
|
65
|
+
step?: number | string;
|
|
66
|
+
stringMode?: boolean;
|
|
67
|
+
onChange?: (value: number | string, model: Recordable) => void;
|
|
68
|
+
onPressEnter?: (e: DtEvent, model: Recordable) => void;
|
|
69
|
+
onStep?: (value: number, info: {
|
|
70
|
+
offset: number;
|
|
71
|
+
type: 'up' | 'down';
|
|
72
|
+
}, model: Recordable) => void;
|
|
73
|
+
[key: string]: any;
|
|
74
|
+
};
|
|
75
|
+
export declare type Select = {
|
|
76
|
+
allowClear?: boolean;
|
|
77
|
+
autoClearSearchValue?: boolean;
|
|
78
|
+
autofocus?: boolean;
|
|
79
|
+
bordered?: boolean;
|
|
80
|
+
clearIcon?: VNode | Slot;
|
|
81
|
+
defaultActiveFirstOption?: boolean;
|
|
82
|
+
defaultOpen?: boolean;
|
|
83
|
+
disabled?: boolean | Ref<boolean>;
|
|
84
|
+
dropdownClassName?: string;
|
|
85
|
+
dropdownMatchSelectWidth?: boolean | number;
|
|
86
|
+
dropdownMenuStyle?: CSSProperties;
|
|
87
|
+
dropdownRender?: ({ menuNode, props }: {
|
|
88
|
+
menuNode: any;
|
|
89
|
+
props: any;
|
|
90
|
+
}) => VNode | Slot;
|
|
91
|
+
dropdownStyle?: CSSProperties;
|
|
92
|
+
fieldNames?: {
|
|
93
|
+
options?: string;
|
|
94
|
+
label?: string;
|
|
95
|
+
value?: string;
|
|
96
|
+
};
|
|
97
|
+
filterOption?: boolean | ((inputValue: string, option: SelectOptions) => object);
|
|
98
|
+
firstActiveValue?: string | string[];
|
|
99
|
+
getPopupContainer?: () => object;
|
|
100
|
+
listHeight?: number;
|
|
101
|
+
maxTagCount?: number;
|
|
102
|
+
maxTagPlaceholder?: Slot;
|
|
103
|
+
maxTagTextLength?: number;
|
|
104
|
+
menuItemSelectedIcon?: VNode | Slot;
|
|
105
|
+
mode?: 'multiple' | 'tags' | 'combobox';
|
|
106
|
+
notFoundContent?: string | Slot;
|
|
107
|
+
open?: boolean;
|
|
108
|
+
optionFilterProp?: string;
|
|
109
|
+
options?: SelectOptions[];
|
|
110
|
+
placeholder?: string;
|
|
111
|
+
removeIcon?: VNode | Slot;
|
|
112
|
+
searchValue?: string;
|
|
113
|
+
showArrow?: boolean;
|
|
114
|
+
showSearch?: boolean;
|
|
115
|
+
size?: 'large' | 'default' | 'small';
|
|
116
|
+
suffixIcon?: VNode | Slot;
|
|
117
|
+
virtual?: boolean;
|
|
118
|
+
onBlur?: (e: DtEvent, model: Recordable) => void;
|
|
119
|
+
onChange?: (value: string | number | boolean, option: SelectOptions, model: Recordable) => void;
|
|
120
|
+
onDeselect?: (value: string | number | boolean, option: SelectOptions, model: Recordable) => void;
|
|
121
|
+
dropdownVisibleChange?: (option: SelectOptions, model: Recordable) => void;
|
|
122
|
+
onFocus?: (e: DtEvent, model: Recordable) => void;
|
|
123
|
+
onInputKeyDown?: (e: DtEvent, model: Recordable) => void;
|
|
124
|
+
onPopupScroll?: (e: DtEvent, model: Recordable) => void;
|
|
125
|
+
onSearch?: (val: string, model: Recordable) => void;
|
|
126
|
+
onSelect?: (value: string | number | boolean, option: SelectOptions, model: Recordable) => void;
|
|
127
|
+
[key: string]: any;
|
|
128
|
+
};
|
|
129
|
+
declare type TreeNode = {
|
|
130
|
+
checkable?: boolean;
|
|
131
|
+
disableCheckbox?: boolean;
|
|
132
|
+
disabled?: boolean;
|
|
133
|
+
isLeaf?: boolean;
|
|
134
|
+
key?: string | number;
|
|
135
|
+
selectable?: boolean;
|
|
136
|
+
title?: string | Slot;
|
|
137
|
+
value?: string;
|
|
138
|
+
children?: TreeNode[];
|
|
139
|
+
[key: string]: any;
|
|
140
|
+
};
|
|
141
|
+
export declare type TreeSelect = {
|
|
142
|
+
allowClear?: boolean;
|
|
143
|
+
defaultValue?: string | string[];
|
|
144
|
+
disabled?: boolean | Ref<boolean>;
|
|
145
|
+
dropdownClassName?: string;
|
|
146
|
+
dropdownMatchSelectWidth?: boolean | number;
|
|
147
|
+
dropdownStyle?: CSSProperties;
|
|
148
|
+
fieldNames?: {
|
|
149
|
+
children?: string;
|
|
150
|
+
label?: string;
|
|
151
|
+
value?: string;
|
|
152
|
+
};
|
|
153
|
+
filterTreeNode?: boolean | ((inputValue: string, treeNode: TreeNode) => boolean);
|
|
154
|
+
getPopupContainer?: () => object;
|
|
155
|
+
listHeight?: number;
|
|
156
|
+
maxTagCount?: number;
|
|
157
|
+
multiple?: boolean;
|
|
158
|
+
placeholder?: string;
|
|
159
|
+
replaceFields?: {
|
|
160
|
+
children?: string;
|
|
161
|
+
label?: string;
|
|
162
|
+
value?: string;
|
|
163
|
+
};
|
|
164
|
+
searchPlaceholder?: string;
|
|
165
|
+
showSearch?: boolean;
|
|
166
|
+
size?: 'large' | 'default' | 'small';
|
|
167
|
+
treeCheckable?: boolean;
|
|
168
|
+
treeCheckStrictly?: boolean;
|
|
169
|
+
treeData?: TreeNode[];
|
|
170
|
+
treeDataSimpleMode?: boolean;
|
|
171
|
+
treeDefaultExpandAll?: boolean;
|
|
172
|
+
treeDefaultExpandedKeys?: string[] | number[];
|
|
173
|
+
treeExpandedKeys?: string[] | number[];
|
|
174
|
+
treeIcon?: boolean;
|
|
175
|
+
treeLine?: boolean;
|
|
176
|
+
treeNodeFilterProp?: string;
|
|
177
|
+
treeNodeLabelProp?: string;
|
|
178
|
+
virtual?: boolean;
|
|
179
|
+
onChange?: (value: string | number, label: string, extra: object, model: Recordable) => void;
|
|
180
|
+
onDropdownVisibleChange?: (open: boolean, model: Recordable) => void;
|
|
181
|
+
onSearch?: (val: string, model: Recordable) => void;
|
|
182
|
+
onSelect?: (val: string | number, node: TreeNode, extra: object, model: Recordable) => void;
|
|
183
|
+
onTreeExpand?: (expandedKeys: (string | number)[], model: Recordable) => void;
|
|
184
|
+
[key: string]: any;
|
|
185
|
+
};
|
|
186
|
+
export declare type Radio = {
|
|
187
|
+
autofocus?: boolean;
|
|
188
|
+
defaultValue?: string | number;
|
|
189
|
+
disabled?: boolean | Ref<boolean>;
|
|
190
|
+
value?: string | number;
|
|
191
|
+
[key: string]: any;
|
|
192
|
+
};
|
|
193
|
+
export declare type RadioGroup = {
|
|
194
|
+
buttonStyle?: 'outline' | 'solid';
|
|
195
|
+
disabled?: boolean;
|
|
196
|
+
name?: string;
|
|
197
|
+
options?: string[] | number[] | SelectOptions[];
|
|
198
|
+
optionType?: 'default' | 'button';
|
|
199
|
+
size?: 'large' | 'default' | 'small';
|
|
200
|
+
defaultValue?: string | number | boolean;
|
|
201
|
+
[key: string]: any;
|
|
202
|
+
};
|
|
203
|
+
export declare type Checkbox = {
|
|
204
|
+
autofocus?: boolean;
|
|
205
|
+
defaultValue?: string | number | boolean;
|
|
206
|
+
disabled?: boolean;
|
|
207
|
+
indeterminate?: boolean;
|
|
208
|
+
value?: boolean | string | number;
|
|
209
|
+
onChange?: (e: Event, model: Recordable) => void;
|
|
210
|
+
[key: string]: any;
|
|
211
|
+
};
|
|
212
|
+
export declare type CheckboxGroup = {
|
|
213
|
+
defaultValue?: (string | number | boolean)[];
|
|
214
|
+
disabled?: boolean;
|
|
215
|
+
name?: string;
|
|
216
|
+
options?: string[] | (SelectOptions & {
|
|
217
|
+
indeterminate?: boolean;
|
|
218
|
+
})[];
|
|
219
|
+
onChange?: (checkedValue: (string | number | boolean)[], model: Recordable) => void;
|
|
220
|
+
[key: string]: any;
|
|
221
|
+
};
|
|
222
|
+
declare type CascaderOption = {
|
|
223
|
+
value?: string | number;
|
|
224
|
+
label?: any;
|
|
225
|
+
disabled?: boolean;
|
|
226
|
+
isLeaf?: boolean;
|
|
227
|
+
children?: CascaderOption[];
|
|
228
|
+
[key: string]: any;
|
|
229
|
+
};
|
|
230
|
+
export declare type Cascader = {
|
|
231
|
+
allowClear?: boolean;
|
|
232
|
+
autofocus?: boolean;
|
|
233
|
+
bordered?: boolean;
|
|
234
|
+
clearIcon?: VNode;
|
|
235
|
+
changeOnSelect?: boolean;
|
|
236
|
+
defaultValue?: string[] | number[];
|
|
237
|
+
disabled?: boolean;
|
|
238
|
+
dropdownClassName?: string;
|
|
239
|
+
dropdownStyle?: CSSProperties;
|
|
240
|
+
expandIcon?: VNode;
|
|
241
|
+
expandTrigger?: 'click' | 'hover';
|
|
242
|
+
fieldNames?: {
|
|
243
|
+
children?: string;
|
|
244
|
+
label?: string;
|
|
245
|
+
value?: string;
|
|
246
|
+
};
|
|
247
|
+
getPopupContainer?: () => object;
|
|
248
|
+
loadData?: (selectedOptions: CascaderOption) => void;
|
|
249
|
+
maxTagCount?: number | 'responsive';
|
|
250
|
+
multiple?: boolean;
|
|
251
|
+
notFoundContent?: string | VNode;
|
|
252
|
+
open?: boolean;
|
|
253
|
+
options?: CascaderOption[];
|
|
254
|
+
placement?: 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight';
|
|
255
|
+
searchValue?: string;
|
|
256
|
+
showSearch?: boolean | object;
|
|
257
|
+
size?: 'large' | 'default' | 'small';
|
|
258
|
+
suffixIcon?: string | VNode | Slot;
|
|
259
|
+
filter?: (inputValue: string | number, path: any) => boolean;
|
|
260
|
+
limit?: number | false;
|
|
261
|
+
matchInputWidth?: boolean;
|
|
262
|
+
render?: (inputValue: string | number, path: any) => VNode;
|
|
263
|
+
sort?: (a: Recordable, b: Recordable, inputValue: string | number) => boolean;
|
|
264
|
+
onChange?: (value: string | number, selectedOptions: CascaderOption, model: Recordable) => void;
|
|
265
|
+
dropdownVisibleChange?: (val: boolean, model: Recordable) => void;
|
|
266
|
+
onSearch?: (val: string | number, model: Recordable) => void;
|
|
267
|
+
[key: string]: any;
|
|
268
|
+
};
|
|
269
|
+
declare type BaseDatepicker = {
|
|
270
|
+
allowClear?: boolean;
|
|
271
|
+
autofocus?: boolean;
|
|
272
|
+
bordered?: boolean;
|
|
273
|
+
disabled?: boolean;
|
|
274
|
+
disabledDate?: (currentDate: any) => boolean;
|
|
275
|
+
dropdownClassName?: string;
|
|
276
|
+
getPopupContainer?: object;
|
|
277
|
+
inputReadOnly?: boolean;
|
|
278
|
+
mode?: 'time' | 'date' | 'month' | 'year' | 'decade';
|
|
279
|
+
open?: boolean | Ref<boolean>;
|
|
280
|
+
picker?: 'date' | 'week' | 'month' | 'quarter' | 'year';
|
|
281
|
+
placeholder?: string;
|
|
282
|
+
popupStyle?: CSSProperties;
|
|
283
|
+
size?: 'large' | 'middle' | 'small';
|
|
284
|
+
onOpenChange?: (status: boolean, model: Recordable) => void;
|
|
285
|
+
onPanelChange?: (val: any, mode: any, model: Recordable) => void;
|
|
286
|
+
};
|
|
287
|
+
export declare type DatePicker = BaseDatepicker & {
|
|
288
|
+
defaultPickerValue?: dayjs.Dayjs;
|
|
289
|
+
disabledTime?: (date: dayjs.Dayjs) => boolean;
|
|
290
|
+
format?: string | ((value: dayjs.Dayjs) => string) | (string | ((value: dayjs.Dayjs) => string))[];
|
|
291
|
+
showNow?: boolean;
|
|
292
|
+
showTime?: boolean | {
|
|
293
|
+
defaultValue?: dayjs.Dayjs;
|
|
294
|
+
};
|
|
295
|
+
showToday?: boolean;
|
|
296
|
+
onChange?: (date: dayjs.Dayjs | string, dateString: string, model: Recordable) => void;
|
|
297
|
+
onOk?: (date: dayjs.Dayjs | string, model: Recordable) => void;
|
|
298
|
+
[key: string]: any;
|
|
299
|
+
};
|
|
300
|
+
export declare type RangePicker = BaseDatepicker & {
|
|
301
|
+
allowEmpty?: [boolean, boolean];
|
|
302
|
+
defaultPickerValue?: dayjs.Dayjs[];
|
|
303
|
+
disabled?: [boolean, boolean];
|
|
304
|
+
disabledTime?: (date: dayjs.Dayjs, partial: 'start' | 'end') => boolean;
|
|
305
|
+
format?: string;
|
|
306
|
+
showTime?: boolean | {
|
|
307
|
+
defaultValue?: dayjs.Dayjs[];
|
|
308
|
+
};
|
|
309
|
+
onCalendarChange?: (dates: [dayjs.Dayjs, dayjs.Dayjs] | [string, string], dateStrings: [string, string], info: {
|
|
310
|
+
range: 'start' | 'end';
|
|
311
|
+
}, model: Recordable) => void;
|
|
312
|
+
onChange?: (date: [dayjs.Dayjs, dayjs.Dayjs] | [string, string], dateString: [string, string], model: Recordable) => void;
|
|
313
|
+
onOk?: (date: [dayjs.Dayjs, dayjs.Dayjs] | [string, string], model: Recordable) => void;
|
|
314
|
+
[key: string]: any;
|
|
315
|
+
};
|
|
316
|
+
export declare type TimePicker = {
|
|
317
|
+
allowClear?: boolean;
|
|
318
|
+
autofocus?: boolean;
|
|
319
|
+
defaultPickerValue?: string | dayjs.Dayjs;
|
|
320
|
+
bordered?: boolean;
|
|
321
|
+
clearText?: string;
|
|
322
|
+
disabled?: boolean;
|
|
323
|
+
format?: string;
|
|
324
|
+
getPopupContainer?: () => object;
|
|
325
|
+
hideDisabledOptions?: boolean;
|
|
326
|
+
hourStep?: number;
|
|
327
|
+
inputReadOnly?: boolean;
|
|
328
|
+
minuteStep?: number;
|
|
329
|
+
open?: boolean | Ref<boolean>;
|
|
330
|
+
placeholder?: string | [string | string];
|
|
331
|
+
popupClassName?: string;
|
|
332
|
+
popupStyle?: CSSProperties;
|
|
333
|
+
secondStep?: number;
|
|
334
|
+
showNow?: boolean;
|
|
335
|
+
use12Hours?: boolean;
|
|
336
|
+
onChange?: (time: dayjs.Dayjs | string, dateString: string, model: Recordable) => void;
|
|
337
|
+
onOpenChange?: (open: boolean) => void;
|
|
338
|
+
[key: string]: any;
|
|
339
|
+
};
|
|
340
|
+
export declare type Switch = {
|
|
341
|
+
autofocus?: boolean;
|
|
342
|
+
checkedChildren?: string | VNode;
|
|
343
|
+
defaultPickerValue?: boolean | string | number;
|
|
344
|
+
checkedValue?: boolean | string | number;
|
|
345
|
+
disabled?: boolean;
|
|
346
|
+
loading?: boolean | Ref<boolean>;
|
|
347
|
+
size?: 'default' | 'small';
|
|
348
|
+
unCheckedChildren?: string | VNode;
|
|
349
|
+
unCheckedValue?: boolean | string | number;
|
|
350
|
+
onChange?: (checked: boolean | string | number, event: Event, model: Recordable) => void;
|
|
351
|
+
onClick?: (checked: boolean | string | number, event: Event, model: Recordable) => void;
|
|
352
|
+
[key: string]: any;
|
|
353
|
+
};
|
|
354
|
+
export declare type Rate = {
|
|
355
|
+
allowClear?: boolean;
|
|
356
|
+
allowHalf?: boolean;
|
|
357
|
+
autofocus?: boolean;
|
|
358
|
+
defaultPickerValue?: number;
|
|
359
|
+
character?: string | VNode;
|
|
360
|
+
count?: number;
|
|
361
|
+
disabled?: boolean;
|
|
362
|
+
tooltips?: string[];
|
|
363
|
+
onBlur?: (e: any, model: Recordable) => void;
|
|
364
|
+
onChange?: (value: number) => void;
|
|
365
|
+
[key: string]: any;
|
|
366
|
+
};
|
|
367
|
+
export declare type Divider = {
|
|
368
|
+
dashed?: boolean;
|
|
369
|
+
orientation?: boolean;
|
|
370
|
+
orientationMargin?: string | number;
|
|
371
|
+
plain?: boolean;
|
|
372
|
+
type?: 'horizontal' | 'vertical';
|
|
373
|
+
[key: string]: any;
|
|
374
|
+
};
|
|
375
|
+
export {};
|
|
@@ -107,11 +107,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
107
107
|
"onHandle-method"?: (...args: any[]) => any;
|
|
108
108
|
}, {
|
|
109
109
|
mode: "search" | "dialog";
|
|
110
|
-
minShowColumn: number;
|
|
111
|
-
showAdvancedButton: boolean;
|
|
112
110
|
show: boolean;
|
|
113
|
-
|
|
111
|
+
showAdvancedButton: boolean;
|
|
112
|
+
minShowColumn: number;
|
|
114
113
|
buttonList: ButtonProps[];
|
|
114
|
+
isAdvanced: boolean;
|
|
115
115
|
}>;
|
|
116
116
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleSave" | "handleCancel")[], "handleSave" | "handleCancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
117
117
|
buttons: PropType<ButtonProps[]>;
|
|
@@ -100,7 +100,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
100
100
|
afterClose: FunctionConstructor;
|
|
101
101
|
}, {
|
|
102
102
|
props: any;
|
|
103
|
-
emits: (event: "
|
|
103
|
+
emits: (event: "visible-change" | "height-change" | "cancel" | "save" | "register" | "update:visible", ...args: any[]) => void;
|
|
104
104
|
visibleRef: import("vue").Ref<boolean>;
|
|
105
105
|
propsRef: import("vue").Ref<Partial<ExtractPropTypes<{
|
|
106
106
|
t: {
|
|
@@ -620,11 +620,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
620
620
|
"onHandle-method"?: (...args: any[]) => any;
|
|
621
621
|
}, {
|
|
622
622
|
mode: "search" | "dialog";
|
|
623
|
-
minShowColumn: number;
|
|
624
|
-
showAdvancedButton: boolean;
|
|
625
623
|
show: boolean;
|
|
626
|
-
|
|
624
|
+
showAdvancedButton: boolean;
|
|
625
|
+
minShowColumn: number;
|
|
627
626
|
buttonList: import("../../form/src/types/form.type").ButtonProps[];
|
|
627
|
+
isAdvanced: boolean;
|
|
628
628
|
}>;
|
|
629
629
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleSave" | "handleCancel")[], "handleSave" | "handleCancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
630
630
|
buttons: import("vue").PropType<import("../../form/src/types/form.type").ButtonProps[]>;
|
|
@@ -649,7 +649,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
649
649
|
showSave: boolean;
|
|
650
650
|
showCancel: boolean;
|
|
651
651
|
}>;
|
|
652
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
652
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("visible-change" | "height-change" | "cancel" | "save" | "register" | "update:visible")[], "visible-change" | "height-change" | "cancel" | "save" | "register" | "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
653
653
|
t: {
|
|
654
654
|
type: StringConstructor;
|
|
655
655
|
};
|
|
@@ -747,27 +747,27 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
747
747
|
closeFunc: import("vue").PropType<() => Promise<boolean>>;
|
|
748
748
|
afterClose: FunctionConstructor;
|
|
749
749
|
}>> & {
|
|
750
|
-
onRegister?: (...args: any[]) => any;
|
|
751
|
-
"onUpdate:visible"?: (...args: any[]) => any;
|
|
752
750
|
"onVisible-change"?: (...args: any[]) => any;
|
|
753
751
|
"onHeight-change"?: (...args: any[]) => any;
|
|
754
752
|
onCancel?: (...args: any[]) => any;
|
|
755
753
|
onSave?: (...args: any[]) => any;
|
|
754
|
+
onRegister?: (...args: any[]) => any;
|
|
755
|
+
"onUpdate:visible"?: (...args: any[]) => any;
|
|
756
756
|
}, {
|
|
757
|
-
loading: boolean;
|
|
758
757
|
visible: boolean;
|
|
759
|
-
mask: boolean;
|
|
760
758
|
closable: boolean;
|
|
761
759
|
destroyOnClose: boolean;
|
|
762
760
|
scrollTop: boolean;
|
|
763
761
|
draggable: boolean;
|
|
764
762
|
defaultFullscreen: boolean;
|
|
765
763
|
canFullscreen: boolean;
|
|
764
|
+
loading: boolean;
|
|
766
765
|
loadingTip: string;
|
|
767
766
|
useWrapper: boolean;
|
|
768
767
|
centered: boolean;
|
|
769
768
|
showOkBtn: boolean;
|
|
770
769
|
showCancelBtn: boolean;
|
|
770
|
+
mask: boolean;
|
|
771
771
|
maskClosable: boolean;
|
|
772
772
|
keyboard: boolean;
|
|
773
773
|
}>;
|
|
@@ -7,7 +7,8 @@ import dayjs from "dayjs";
|
|
|
7
7
|
const getApi = (api, baseUrl) => {
|
|
8
8
|
const loading = {
|
|
9
9
|
onSearch: ref(false),
|
|
10
|
-
onReset: ref(false)
|
|
10
|
+
onReset: ref(false),
|
|
11
|
+
onQuerypage: ref(false)
|
|
11
12
|
};
|
|
12
13
|
const newApi = {};
|
|
13
14
|
const testIsFullApi = (str) => str.startsWith("/") ? str : baseUrl + str;
|
|
@@ -274,6 +275,8 @@ function useSource(props) {
|
|
|
274
275
|
curdInstance && curdInstance.closeModal();
|
|
275
276
|
if (queryAfterUpdate !== false)
|
|
276
277
|
onSearch();
|
|
278
|
+
if (afterUpdate && isFunction(afterUpdate))
|
|
279
|
+
afterUpdate(result.data);
|
|
277
280
|
}
|
|
278
281
|
} catch (err) {
|
|
279
282
|
} finally {
|
|
@@ -288,6 +291,8 @@ function useSource(props) {
|
|
|
288
291
|
curdInstance && curdInstance.closeModal();
|
|
289
292
|
if (queryAfterUpdate !== false)
|
|
290
293
|
onSearch();
|
|
294
|
+
if (afterUpdate && isFunction(afterUpdate))
|
|
295
|
+
afterUpdate(result.data);
|
|
291
296
|
}
|
|
292
297
|
} catch (err) {
|
|
293
298
|
} finally {
|
|
@@ -323,6 +328,8 @@ function useSource(props) {
|
|
|
323
328
|
!isSingleDelete && tableInstance.clearSelectedRowKeys();
|
|
324
329
|
if (queryAfterUpdate !== false)
|
|
325
330
|
onSearch();
|
|
331
|
+
if (afterUpdate && isFunction(afterUpdate))
|
|
332
|
+
afterUpdate(rsp.data);
|
|
326
333
|
}
|
|
327
334
|
}).finally(() => {
|
|
328
335
|
isSingleDelete && (loading.onDeletes.value = false);
|
|
@@ -14,7 +14,7 @@ export declare type SourceOption = {
|
|
|
14
14
|
exportName?: string | ComputedRef;
|
|
15
15
|
queryAfterUpdate?: boolean;
|
|
16
16
|
beforeUpdate?: (model: Recordable) => boolean | Recordable | undefined;
|
|
17
|
-
afterUpdate?: () => void;
|
|
17
|
+
afterUpdate?: (data: Recordable) => void;
|
|
18
18
|
api?: ApiObjType;
|
|
19
19
|
};
|
|
20
20
|
export declare type orderType = {
|