@dt-frames/ui 2.0.8 → 2.0.10

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.
Files changed (37) hide show
  1. package/es/components/curd/index.js +69 -77
  2. package/es/components/curd/index.less +2 -0
  3. package/es/components/curd/src/components/Curd.d.ts +16 -8
  4. package/es/components/curd/src/hooks/useCurd.d.ts +1 -1
  5. package/es/components/curd/src/props.d.ts +0 -1
  6. package/es/components/form/index.d.ts +1 -3160
  7. package/es/components/form/index.js +64 -98
  8. package/es/components/form/index.less +18 -0
  9. package/es/components/form/src/components/FormButtons.d.ts +13 -3
  10. package/es/components/form/src/components/FormItem.d.ts +0 -1
  11. package/es/components/form/src/components/formIcon.d.ts +11 -11
  12. package/es/components/form/src/components/formInputUseDialog.d.ts +6 -6
  13. package/es/components/form/src/hooks/useFormEvent.d.ts +1 -1
  14. package/es/components/form/src/hooks/useLabelWidth.d.ts +2 -18
  15. package/es/components/form/src/index.d.ts +2 -2
  16. package/es/components/form/src/props.d.ts +3 -4
  17. package/es/components/form/src/types/form.type.d.ts +11 -5
  18. package/es/components/form/src/types/items.type.d.ts +382 -0
  19. package/es/components/modal/index.js +22 -2
  20. package/es/components/modal/index.less +3 -0
  21. package/es/components/modal/src/components/Modal.d.ts +1 -1
  22. package/es/components/modal/src/components/ModalFooter.d.ts +13 -3
  23. package/es/components/modal/src/index.d.ts +23 -13
  24. package/es/components/modal/src/props.d.ts +2 -1
  25. package/es/components/source/index.js +8 -1
  26. package/es/components/source/types/source.type.d.ts +1 -1
  27. package/es/components/table/index.js +42 -61
  28. package/es/components/table/index.less +3 -3
  29. package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +15 -5
  30. package/es/theme/index.js +144 -88
  31. package/es/theme/index.less +1 -0
  32. package/es/theme/src/components/header/components/size.d.ts +5 -5
  33. package/es/theme/src/components/header/index.d.ts +5 -5
  34. package/es/theme/src/components/header/multiple-header.d.ts +5 -5
  35. package/es/theme/src/index.d.ts +10 -10
  36. package/es/theme/transition.less +105 -0
  37. package/package.json +1 -1
@@ -1,14 +1,15 @@
1
1
  import { Recordable } from "@dt-frames/core";
2
2
  import { ComputedRef, ExtractPropTypes, Ref, VNode } from "vue";
3
- import { RuleObject } from 'ant-design-vue/lib/form/interface';
3
+ import { RuleObject } from 'ant-design-vue/es/form/interface';
4
4
  import { TooltipProps } from "ant-design-vue/es/tooltip/Tooltip";
5
5
  import { BasicProps } from "../props";
6
+ import type { Cascader, Checkbox, CheckboxGroup, DatePicker, Divider, Input, InputGroup, InputNumber, InputPassword, InputSearch, InputTextArea, InputWithDialog, Radio, RadioGroup, RangePicker, Rate, Select, Switch, TimePicker, TreeSelect } from "./items.type";
6
7
  export declare type ButtonFlag = 'OK' | 'CANCEL';
7
8
  export declare type Rule = RuleObject & {
8
9
  trigger?: 'blur' | 'change' | ['change', 'blur'];
9
10
  };
10
11
  export declare type FormProps = Partial<ExtractPropTypes<typeof BasicProps>>;
11
- export declare type ComponentType = 'Input' | 'InputWithDialog' | 'InputGroup' | 'InputPassword' | 'InputSearch' | 'InputTextArea' | 'InputNumber' | 'InputCountDown' | 'Select' | 'TreeSelect' | 'ApiTree' | 'ApiTreeSelect' | 'Radio' | 'RadioButtonGroup' | 'RadioGroup' | 'Checkbox' | 'CheckboxGroup' | 'AutoComplete' | 'Cascader' | 'DatePicker' | 'MonthPicker' | 'RangePicker' | 'WeekPicker' | 'TimePicker' | 'Switch' | 'Upload' | 'IconPicker' | 'Render' | 'Slider' | 'Rate' | 'Divider' | 'Icon';
12
+ export declare type ComponentType = 'Input' | 'InputWithDialog' | 'InputGroup' | 'InputPassword' | 'InputSearch' | 'InputTextArea' | 'InputNumber' | 'Select' | 'TreeSelect' | 'Radio' | 'RadioButtonGroup' | 'RadioGroup' | 'Checkbox' | 'CheckboxGroup' | 'AutoComplete' | 'Cascader' | 'DatePicker' | 'MonthPicker' | 'RangePicker' | 'WeekPicker' | 'TimePicker' | 'Switch' | 'Upload' | 'Slider' | 'Rate' | 'Divider';
12
13
  export declare type ColEx = {
13
14
  style?: any;
14
15
  span?: number | string;
@@ -18,7 +19,7 @@ export declare type ColEx = {
18
19
  xl?: number | string;
19
20
  xxl?: number | string;
20
21
  };
21
- export declare type FormSchema = {
22
+ declare type Schema<ComponentType, T> = {
22
23
  t?: string;
23
24
  name?: string | string[];
24
25
  changeEvent?: string;
@@ -30,12 +31,13 @@ export declare type FormSchema = {
30
31
  toolTip?: boolean | ((model: Recordable) => boolean);
31
32
  toolTipProps?: TooltipProps;
32
33
  component?: ComponentType;
33
- props?: ((model: Recordable) => Recordable) | object;
34
+ props?: ((model: Recordable) => T) | T;
34
35
  required?: boolean | ((model: Recordable) => boolean) | Ref<boolean> | ComputedRef<boolean>;
35
36
  suffix?: string | number | VNode | ((model: Recordable) => VNode | VNode[] | string);
36
37
  prefix?: string | number | VNode | ((model: Recordable) => VNode | VNode[] | string);
37
38
  rules?: Rule[];
38
39
  rulesMessageJoinLabel?: boolean;
40
+ validateTrigger?: string | string[] | false;
39
41
  defaultValue?: any;
40
42
  show?: boolean | ((model: Recordable) => boolean);
41
43
  render?: (model: Recordable) => VNode | VNode[] | string;
@@ -50,9 +52,12 @@ export declare type FormSchema = {
50
52
  labelCol?: Partial<ColEx>;
51
53
  wrapperCol?: Partial<ColEx>;
52
54
  isAdvanced?: boolean;
53
- openDialog?: (parms: Recordable) => void;
54
55
  extraName?: string[];
55
56
  };
57
+ export declare type FormSchema = Schema<'Input', Input> | Schema<'InputWithDialog', InputWithDialog> | Schema<'InputGroup', InputGroup> | Schema<'InputPassword', InputPassword> | Schema<'InputSearch', InputSearch> | Schema<'InputTextArea', InputTextArea> | Schema<'InputNumber', InputNumber> | Schema<'Select', Select> | Schema<'TreeSelect', TreeSelect> | Schema<'Radio', Radio> | Schema<'RadioButtonGroup', Radio> | Schema<'RadioGroup', RadioGroup> | Schema<'Checkbox', Checkbox> | Schema<'CheckboxGroup', CheckboxGroup> | Schema<'AutoComplete', Recordable> | Schema<'Cascader', Cascader> | Schema<'DatePicker', DatePicker> | Schema<'MonthPicker', DatePicker> | Schema<'RangePicker', RangePicker> | Schema<'WeekPicker', DatePicker> | Schema<'TimePicker', TimePicker> | Schema<'Switch', Switch> | Schema<'Slider', {
58
+ disabled?: boolean;
59
+ [key: string]: any;
60
+ }> | Schema<'Rate', Rate> | Schema<'Divider', Divider>;
56
61
  export declare type ButtonProps = {
57
62
  t?: string;
58
63
  label: string;
@@ -68,3 +73,4 @@ export declare type ButtonProps = {
68
73
  loading?: Ref<boolean>;
69
74
  onClick?: (args?: any) => any;
70
75
  };
76
+ export {};
@@ -0,0 +1,382 @@
1
+ import { DtEvent, Recordable, SelectOptions } from "@dt-frames/core";
2
+ import dayjs from "dayjs";
3
+ import { Ref, Slot, VNode, CSSProperties, ComputedRef } 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[] | ComputedRef<SelectOptions[]> | Ref<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[] | ComputedRef<SelectOptions[]> | Ref<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
+ })[] | ComputedRef<(SelectOptions & {
219
+ indeterminate?: boolean;
220
+ })[]> | Ref<(SelectOptions & {
221
+ indeterminate?: boolean;
222
+ })[]>;
223
+ onChange?: (checkedValue: (string | number | boolean)[], model: Recordable) => void;
224
+ [key: string]: any;
225
+ };
226
+ declare type CascaderOption = {
227
+ value?: string | number;
228
+ label?: any;
229
+ disabled?: boolean;
230
+ isLeaf?: boolean;
231
+ children?: CascaderOption[];
232
+ [key: string]: any;
233
+ };
234
+ export declare type Cascader = {
235
+ allowClear?: boolean;
236
+ autofocus?: boolean;
237
+ bordered?: boolean;
238
+ clearIcon?: VNode;
239
+ changeOnSelect?: boolean;
240
+ defaultValue?: string[] | number[];
241
+ disabled?: boolean;
242
+ dropdownClassName?: string;
243
+ dropdownStyle?: CSSProperties;
244
+ expandIcon?: VNode;
245
+ expandTrigger?: 'click' | 'hover';
246
+ fieldNames?: {
247
+ children?: string;
248
+ label?: string;
249
+ value?: string;
250
+ };
251
+ getPopupContainer?: () => object;
252
+ loadData?: (selectedOptions: CascaderOption) => void;
253
+ maxTagCount?: number | 'responsive';
254
+ multiple?: boolean;
255
+ notFoundContent?: string | VNode;
256
+ open?: boolean;
257
+ options?: CascaderOption[] | ComputedRef<CascaderOption[]> | Ref<CascaderOption[]>;
258
+ placement?: 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight';
259
+ searchValue?: string;
260
+ showSearch?: boolean | object;
261
+ size?: 'large' | 'default' | 'small';
262
+ suffixIcon?: string | VNode | Slot;
263
+ filter?: (inputValue: string | number, path: any) => boolean;
264
+ limit?: number | false;
265
+ matchInputWidth?: boolean;
266
+ render?: (inputValue: string | number, path: any) => VNode;
267
+ sort?: (a: Recordable, b: Recordable, inputValue: string | number) => boolean;
268
+ onChange?: (value: string | number, selectedOptions: CascaderOption, model: Recordable) => void;
269
+ dropdownVisibleChange?: (val: boolean, model: Recordable) => void;
270
+ onSearch?: (val: string | number, model: Recordable) => void;
271
+ [key: string]: any;
272
+ };
273
+ declare type BaseDatepicker = {
274
+ allowClear?: boolean;
275
+ autofocus?: boolean;
276
+ bordered?: boolean;
277
+ disabled?: boolean;
278
+ disabledDate?: (currentDate: any) => boolean;
279
+ dropdownClassName?: string;
280
+ getPopupContainer?: object;
281
+ inputReadOnly?: boolean;
282
+ mode?: 'time' | 'date' | 'month' | 'year' | 'decade';
283
+ open?: boolean | Ref<boolean>;
284
+ picker?: 'date' | 'week' | 'month' | 'quarter' | 'year';
285
+ placeholder?: string;
286
+ popupStyle?: CSSProperties;
287
+ size?: 'large' | 'middle' | 'small';
288
+ onOpenChange?: (status: boolean, model: Recordable) => void;
289
+ onPanelChange?: (val: any, mode: any, model: Recordable) => void;
290
+ };
291
+ export declare type DatePicker = BaseDatepicker & {
292
+ defaultPickerValue?: dayjs.Dayjs;
293
+ disabledTime?: (date: dayjs.Dayjs) => boolean;
294
+ format?: string | ((value: dayjs.Dayjs) => string) | (string | ((value: dayjs.Dayjs) => string))[];
295
+ showNow?: boolean;
296
+ showTime?: boolean | {
297
+ defaultValue?: dayjs.Dayjs;
298
+ };
299
+ showToday?: boolean;
300
+ onChange?: (date: dayjs.Dayjs | string, dateString: string, model: Recordable) => void;
301
+ onOk?: (date: dayjs.Dayjs | string, model: Recordable) => void;
302
+ [key: string]: any;
303
+ };
304
+ export declare type RangePicker = BaseDatepicker & {
305
+ allowEmpty?: [boolean, boolean];
306
+ defaultPickerValue?: dayjs.Dayjs[];
307
+ disabled?: [boolean, boolean];
308
+ disabledTime?: (date: dayjs.Dayjs, partial: 'start' | 'end') => boolean;
309
+ format?: string;
310
+ showTime?: boolean | {
311
+ defaultValue?: dayjs.Dayjs[];
312
+ };
313
+ onCalendarChange?: (dates: [dayjs.Dayjs, dayjs.Dayjs] | [string, string], dateStrings: [string, string], info: {
314
+ range: 'start' | 'end';
315
+ }, model: Recordable) => void;
316
+ onChange?: (date: [dayjs.Dayjs, dayjs.Dayjs] | [string, string], dateString: [string, string], model: Recordable) => void;
317
+ onOk?: (date: [dayjs.Dayjs, dayjs.Dayjs] | [string, string], model: Recordable) => void;
318
+ [key: string]: any;
319
+ };
320
+ export declare type TimePicker = {
321
+ allowClear?: boolean;
322
+ autofocus?: boolean;
323
+ defaultPickerValue?: string | dayjs.Dayjs;
324
+ bordered?: boolean;
325
+ clearText?: string;
326
+ disabled?: boolean;
327
+ format?: string;
328
+ getPopupContainer?: () => object;
329
+ hideDisabledOptions?: boolean;
330
+ hourStep?: number;
331
+ inputReadOnly?: boolean;
332
+ minuteStep?: number;
333
+ open?: boolean | Ref<boolean>;
334
+ placeholder?: string | [string | string];
335
+ popupClassName?: string;
336
+ popupStyle?: CSSProperties;
337
+ secondStep?: number;
338
+ showNow?: boolean;
339
+ use12Hours?: boolean;
340
+ onChange?: (time: dayjs.Dayjs | string, dateString: string, model: Recordable) => void;
341
+ onOpenChange?: (open: boolean) => void;
342
+ [key: string]: any;
343
+ };
344
+ export declare type Switch = {
345
+ autofocus?: boolean;
346
+ checkedChildren?: string | VNode;
347
+ defaultPickerValue?: boolean | string | number;
348
+ checkedValue?: boolean | string | number;
349
+ disabled?: boolean;
350
+ loading?: boolean | Ref<boolean>;
351
+ size?: 'default' | 'small';
352
+ unCheckedChildren?: string | VNode;
353
+ unCheckedValue?: boolean | string | number;
354
+ onChange?: (checked: boolean | string | number, event: Event, model: Recordable) => void;
355
+ onClick?: (checked: boolean | string | number, event: Event, model: Recordable) => void;
356
+ [key: string]: any;
357
+ };
358
+ export declare type Rate = {
359
+ allowClear?: boolean;
360
+ allowHalf?: boolean;
361
+ autofocus?: boolean;
362
+ defaultPickerValue?: number;
363
+ character?: string | VNode;
364
+ count?: number;
365
+ disabled?: boolean;
366
+ tooltips?: string[];
367
+ onBlur?: (e: any, model: Recordable) => void;
368
+ onChange?: (value: number) => void;
369
+ [key: string]: any;
370
+ };
371
+ export declare type Divider = {
372
+ dashed?: boolean;
373
+ orientation?: boolean;
374
+ orientationMargin?: string | number;
375
+ plain?: boolean;
376
+ type?: 'horizontal' | 'vertical';
377
+ [key: string]: any;
378
+ };
379
+ export declare type InputWithDialog = Input & {
380
+ openDialog?: (model: Recordable) => void;
381
+ };
382
+ export {};
@@ -100,6 +100,12 @@ function useModal(props, setModalData) {
100
100
  return;
101
101
  nextTick(() => {
102
102
  setModalData(data);
103
+ if (!data)
104
+ return;
105
+ if (props?.title && isFunction(props?.title)) {
106
+ let title = props.title(data);
107
+ methods.setModalProps({ title });
108
+ }
103
109
  });
104
110
  });
105
111
  const methods = {
@@ -812,6 +818,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
812
818
  isAdvanced: {
813
819
  type: Boolean,
814
820
  default: true
821
+ },
822
+ colspan: {
823
+ type: Object
815
824
  }
816
825
  },
817
826
  emits: ["handle-method"],
@@ -831,6 +840,17 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
831
840
  Object.assign(style, {
832
841
  display: "inline-block"
833
842
  });
843
+ return { style };
844
+ } else if (props.mode === null) {
845
+ Object.assign(style, {
846
+ display: "flex",
847
+ justifyContent: "center",
848
+ marginBottom: "20px"
849
+ });
850
+ return {
851
+ style,
852
+ span: 24
853
+ };
834
854
  }
835
855
  return { style };
836
856
  });
@@ -853,8 +873,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
853
873
  }
854
874
  }
855
875
  watch(() => props.isAdvanced, (v) => {
856
- if (v) {
857
- nextTick(() => toggleAdvanced());
876
+ if (v || props.mode !== "search") {
877
+ requestAnimationFrame(toggleAdvanced);
858
878
  }
859
879
  }, {
860
880
  immediate: true
@@ -61,4 +61,7 @@
61
61
  .ant-form-item-control-input-content{
62
62
  display: flex;
63
63
  }
64
+ .ant-btn{
65
+ display: flex;
66
+ }
64
67
  }
@@ -40,7 +40,7 @@ declare const _sfc_main: {
40
40
  default: boolean;
41
41
  };
42
42
  title: {
43
- type: import("vue").PropType<String | import("vue").ComputedRef<String>>;
43
+ type: import("vue").PropType<String | import("vue").ComputedRef<String> | ((data: import("@dt-frames/core").Recordable<any>) => String)>;
44
44
  };
45
45
  loading: {
46
46
  type: BooleanConstructor;
@@ -54,6 +54,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
54
54
  type: BooleanConstructor;
55
55
  default: boolean;
56
56
  };
57
+ colspan: {
58
+ type: ObjectConstructor;
59
+ };
57
60
  }, {
58
61
  props: any;
59
62
  emits: (event: "handle-method", ...args: any[]) => void;
@@ -72,6 +75,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
72
75
  showAdvanceRef: import("vue").ComputedRef<boolean>;
73
76
  colOpt: import("vue").ComputedRef<{
74
77
  style: import("@dt-frames/core").Recordable<any>;
78
+ span?: undefined;
79
+ } | {
80
+ style: import("@dt-frames/core").Recordable<any>;
81
+ span: number;
75
82
  }>;
76
83
  getAdvanceClass: import("vue").ComputedRef<(string | {
77
84
  'basic-arrow--active': boolean;
@@ -103,15 +110,18 @@ declare const _sfc_main: import("vue").DefineComponent<{
103
110
  type: BooleanConstructor;
104
111
  default: boolean;
105
112
  };
113
+ colspan: {
114
+ type: ObjectConstructor;
115
+ };
106
116
  }>> & {
107
117
  "onHandle-method"?: (...args: any[]) => any;
108
118
  }, {
109
119
  mode: "search" | "dialog";
110
- minShowColumn: number;
111
- showAdvancedButton: boolean;
112
120
  show: boolean;
113
- isAdvanced: boolean;
121
+ showAdvancedButton: boolean;
122
+ minShowColumn: number;
114
123
  buttonList: ButtonProps[];
124
+ isAdvanced: boolean;
115
125
  }>;
116
126
  }, 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
127
  buttons: PropType<ButtonProps[]>;
@@ -40,7 +40,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
40
40
  default: boolean;
41
41
  };
42
42
  title: {
43
- type: import("vue").PropType<String | import("vue").ComputedRef<String>>;
43
+ type: import("vue").PropType<String | import("vue").ComputedRef<String> | ((data: import("@dt-frames/core").Recordable<any>) => String)>;
44
44
  };
45
45
  loading: {
46
46
  type: BooleanConstructor;
@@ -100,7 +100,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
100
100
  afterClose: FunctionConstructor;
101
101
  }, {
102
102
  props: any;
103
- emits: (event: "register" | "visible-change" | "height-change" | "cancel" | "save" | "update:visible", ...args: any[]) => void;
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: {
@@ -141,7 +141,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
141
141
  default: boolean;
142
142
  };
143
143
  title: {
144
- type: import("vue").PropType<String | import("vue").ComputedRef<String>>;
144
+ type: import("vue").PropType<String | import("vue").ComputedRef<String> | ((data: import("@dt-frames/core").Recordable<any>) => String)>;
145
145
  };
146
146
  loading: {
147
147
  type: BooleanConstructor;
@@ -257,7 +257,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
257
257
  default: boolean;
258
258
  };
259
259
  title: {
260
- type: import("vue").PropType<String | import("vue").ComputedRef<String>>;
260
+ type: import("vue").PropType<String | import("vue").ComputedRef<String> | ((data: import("@dt-frames/core").Recordable<any>) => String)>;
261
261
  };
262
262
  loading: {
263
263
  type: BooleanConstructor;
@@ -567,6 +567,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
567
567
  type: BooleanConstructor;
568
568
  default: boolean;
569
569
  };
570
+ colspan: {
571
+ type: ObjectConstructor;
572
+ };
570
573
  }, {
571
574
  props: any;
572
575
  emits: (event: "handle-method", ...args: any[]) => void;
@@ -585,6 +588,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
585
588
  showAdvanceRef: import("vue").ComputedRef<boolean>;
586
589
  colOpt: import("vue").ComputedRef<{
587
590
  style: import("@dt-frames/core").Recordable<any>;
591
+ span?: undefined;
592
+ } | {
593
+ style: import("@dt-frames/core").Recordable<any>;
594
+ span: number;
588
595
  }>;
589
596
  getAdvanceClass: import("vue").ComputedRef<(string | {
590
597
  'basic-arrow--active': boolean;
@@ -616,15 +623,18 @@ declare const _sfc_main: import("vue").DefineComponent<{
616
623
  type: BooleanConstructor;
617
624
  default: boolean;
618
625
  };
626
+ colspan: {
627
+ type: ObjectConstructor;
628
+ };
619
629
  }>> & {
620
630
  "onHandle-method"?: (...args: any[]) => any;
621
631
  }, {
622
632
  mode: "search" | "dialog";
623
- minShowColumn: number;
624
- showAdvancedButton: boolean;
625
633
  show: boolean;
626
- isAdvanced: boolean;
634
+ showAdvancedButton: boolean;
635
+ minShowColumn: number;
627
636
  buttonList: import("../../form/src/types/form.type").ButtonProps[];
637
+ isAdvanced: boolean;
628
638
  }>;
629
639
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleSave" | "handleCancel")[], "handleSave" | "handleCancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
630
640
  buttons: import("vue").PropType<import("../../form/src/types/form.type").ButtonProps[]>;
@@ -649,7 +659,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
649
659
  showSave: boolean;
650
660
  showCancel: boolean;
651
661
  }>;
652
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("register" | "visible-change" | "height-change" | "cancel" | "save" | "update:visible")[], "register" | "visible-change" | "height-change" | "cancel" | "save" | "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
662
+ }, 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
663
  t: {
654
664
  type: StringConstructor;
655
665
  };
@@ -688,7 +698,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
688
698
  default: boolean;
689
699
  };
690
700
  title: {
691
- type: import("vue").PropType<String | import("vue").ComputedRef<String>>;
701
+ type: import("vue").PropType<String | import("vue").ComputedRef<String> | ((data: import("@dt-frames/core").Recordable<any>) => String)>;
692
702
  };
693
703
  loading: {
694
704
  type: BooleanConstructor;
@@ -747,27 +757,27 @@ declare const _sfc_main: import("vue").DefineComponent<{
747
757
  closeFunc: import("vue").PropType<() => Promise<boolean>>;
748
758
  afterClose: FunctionConstructor;
749
759
  }>> & {
750
- onRegister?: (...args: any[]) => any;
751
- "onUpdate:visible"?: (...args: any[]) => any;
752
760
  "onVisible-change"?: (...args: any[]) => any;
753
761
  "onHeight-change"?: (...args: any[]) => any;
754
762
  onCancel?: (...args: any[]) => any;
755
763
  onSave?: (...args: any[]) => any;
764
+ onRegister?: (...args: any[]) => any;
765
+ "onUpdate:visible"?: (...args: any[]) => any;
756
766
  }, {
757
- loading: boolean;
758
767
  visible: boolean;
759
- mask: boolean;
760
768
  closable: boolean;
761
769
  destroyOnClose: boolean;
762
770
  scrollTop: boolean;
763
771
  draggable: boolean;
764
772
  defaultFullscreen: boolean;
765
773
  canFullscreen: boolean;
774
+ loading: boolean;
766
775
  loadingTip: string;
767
776
  useWrapper: boolean;
768
777
  centered: boolean;
769
778
  showOkBtn: boolean;
770
779
  showCancelBtn: boolean;
780
+ mask: boolean;
771
781
  maskClosable: boolean;
772
782
  keyboard: boolean;
773
783
  }>;