@dt-frames/ui 2.0.9 → 2.0.11
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/curd/index.js +6 -2973
- package/es/components/curd/src/components/Curd.d.ts +13 -881
- package/es/components/curd/src/hooks/useCurd.d.ts +3 -3
- package/es/components/curd/src/props.d.ts +3 -4
- package/es/components/curd/src/types/curd.type.d.ts +2 -2
- package/es/components/drawer/index.d.ts +9 -166
- package/es/components/drawer/index.js +20 -458
- package/es/components/drawer/src/components/DrawerFooter.d.ts +1 -84
- package/es/components/drawer/src/index.d.ts +9 -166
- package/es/components/drawer/src/types/index.type.d.ts +1 -1
- package/es/components/form/index.d.ts +5 -1
- package/es/components/form/index.js +97 -491
- package/es/components/form/index.less +18 -0
- package/es/components/form/src/components/FormButtons.d.ts +13 -3
- package/es/components/form/src/components/FormItem.d.ts +0 -1
- package/es/components/form/src/components/formIcon.d.ts +3 -3
- package/es/components/form/src/components/formInputUseDialog.d.ts +2 -2
- package/es/components/form/src/hooks/useLabelWidth.d.ts +2 -18
- package/es/components/form/src/props.d.ts +3 -4
- package/es/components/form/src/types/form.type.d.ts +5 -3
- package/es/components/form/src/types/items.type.d.ts +12 -5
- package/es/components/modal/index.d.ts +2 -1
- package/es/components/modal/index.js +19 -456
- package/es/components/modal/src/components/Modal.d.ts +2 -2
- package/es/components/modal/src/components/ModalFooter.d.ts +2 -85
- package/es/components/modal/src/components/ModalWrap.d.ts +1 -75
- package/es/components/modal/src/index.d.ts +14 -171
- package/es/components/modal/src/props.d.ts +2 -1
- package/es/components/table/index.js +47 -1849
- package/es/components/table/index.less +3 -3
- package/es/components/table/src/components/TableAction.d.ts +1 -1
- package/es/components/table/src/components/editTable/EditTableCell.d.ts +1 -1
- package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +1 -867
- package/es/components/table/src/index.d.ts +10 -10
- package/es/components/tree/index.js +29 -39
- package/es/components/tree/src/components/TreeHeader.d.ts +1 -1
- package/es/components/tree/src/index.d.ts +2 -2
- package/es/components/upload/index.d.ts +2 -0
- package/es/components/upload/index.js +16 -0
- package/es/components/upload/index.less +0 -0
- package/es/components/upload/src/index.d.ts +2 -0
- package/es/theme/index.d.ts +2 -1
- package/es/theme/index.js +11 -4
- package/es/theme/index.less +1 -0
- package/es/theme/src/components/header/components/size.d.ts +5 -5
- package/es/theme/src/components/header/index.d.ts +5 -5
- package/es/theme/src/components/header/multiple-header.d.ts +5 -5
- package/es/theme/src/hooks/useMenu.d.ts +1 -1
- package/es/theme/src/index.d.ts +10 -10
- package/es/theme/transition.less +105 -0
- package/index.js +21 -1
- package/manualContentPath.js +110 -0
- package/package.json +5 -2
- package/vite.config.ts +16 -4
- package/vite.config.ts.timestamp-1678694558071.mjs +59 -0
- package/vite.config.ts.timestamp-1678700851971.mjs +61 -0
- package/es/components/form/src/index.d.ts +0 -2922
- package/es/components/table/src/components/TableHeader.d.ts +0 -1136
- package/es/components/table/src/components/tableSetting/Download.d.ts +0 -922
- package/es/components/table/src/components/tableSetting/index.d.ts +0 -1030
|
@@ -317,6 +317,24 @@
|
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
+
.basic-arrow{
|
|
321
|
+
display: inline-block;
|
|
322
|
+
cursor: pointer;
|
|
323
|
+
transform: rotate(180deg);
|
|
324
|
+
transition: all 0.3s ease 0.1s;
|
|
325
|
+
transform-origin: center center;
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
.dt-icon{
|
|
329
|
+
vertical-align: middle;
|
|
330
|
+
color: @primary-color !important;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
&--active{
|
|
334
|
+
transform: rotate(0deg);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
320
338
|
.ant-select-dropdown.small .ant-select-item.ant-select-item-option {
|
|
321
339
|
font-size: 12px;
|
|
322
340
|
line-height: 20px;
|
|
@@ -26,6 +26,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
26
26
|
type: BooleanConstructor;
|
|
27
27
|
default: boolean;
|
|
28
28
|
};
|
|
29
|
+
colspan: {
|
|
30
|
+
type: ObjectConstructor;
|
|
31
|
+
};
|
|
29
32
|
}, {
|
|
30
33
|
props: any;
|
|
31
34
|
emits: (event: "handle-method", ...args: any[]) => void;
|
|
@@ -44,6 +47,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
44
47
|
showAdvanceRef: import("vue").ComputedRef<boolean>;
|
|
45
48
|
colOpt: import("vue").ComputedRef<{
|
|
46
49
|
style: Recordable<any>;
|
|
50
|
+
span?: undefined;
|
|
51
|
+
} | {
|
|
52
|
+
style: Recordable<any>;
|
|
53
|
+
span: number;
|
|
47
54
|
}>;
|
|
48
55
|
getAdvanceClass: import("vue").ComputedRef<(string | {
|
|
49
56
|
'basic-arrow--active': boolean;
|
|
@@ -75,14 +82,17 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
75
82
|
type: BooleanConstructor;
|
|
76
83
|
default: boolean;
|
|
77
84
|
};
|
|
85
|
+
colspan: {
|
|
86
|
+
type: ObjectConstructor;
|
|
87
|
+
};
|
|
78
88
|
}>> & {
|
|
79
89
|
"onHandle-method"?: (...args: any[]) => any;
|
|
80
90
|
}, {
|
|
81
91
|
mode: "search" | "dialog";
|
|
82
|
-
minShowColumn: number;
|
|
83
|
-
showAdvancedButton: boolean;
|
|
84
92
|
show: boolean;
|
|
85
|
-
|
|
93
|
+
showAdvancedButton: boolean;
|
|
94
|
+
minShowColumn: number;
|
|
86
95
|
buttonList: ButtonProps[];
|
|
96
|
+
isAdvanced: boolean;
|
|
87
97
|
}>;
|
|
88
98
|
export default _sfc_main;
|
|
@@ -10,7 +10,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
10
10
|
(key: string, list: unknown[]): string;
|
|
11
11
|
(key: string, named: Record<string, unknown>): string;
|
|
12
12
|
};
|
|
13
|
-
getUiSize: import("vue").ComputedRef<import(
|
|
13
|
+
getUiSize: import("vue").ComputedRef<import('../../../../theme').UiSize>;
|
|
14
14
|
iconRef: any;
|
|
15
15
|
props: any;
|
|
16
16
|
state: any;
|
|
@@ -457,7 +457,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
457
457
|
inputPrefixCls: StringConstructor;
|
|
458
458
|
enterButton: import("vue-types").VueTypeValidableDef<any>;
|
|
459
459
|
onSearch: {
|
|
460
|
-
type: import("vue").PropType<(value: string, event?: import("ant-design-vue/lib/_util/EventInterface").ChangeEvent |
|
|
460
|
+
type: import("vue").PropType<(value: string, event?: MouseEvent | import("ant-design-vue/lib/_util/EventInterface").ChangeEvent | KeyboardEvent) => void>;
|
|
461
461
|
};
|
|
462
462
|
id: StringConstructor;
|
|
463
463
|
prefixCls: StringConstructor;
|
|
@@ -529,7 +529,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
529
529
|
inputPrefixCls: StringConstructor;
|
|
530
530
|
enterButton: import("vue-types").VueTypeValidableDef<any>;
|
|
531
531
|
onSearch: {
|
|
532
|
-
type: import("vue").PropType<(value: string, event?: import("ant-design-vue/lib/_util/EventInterface").ChangeEvent |
|
|
532
|
+
type: import("vue").PropType<(value: string, event?: MouseEvent | import("ant-design-vue/lib/_util/EventInterface").ChangeEvent | KeyboardEvent) => void>;
|
|
533
533
|
};
|
|
534
534
|
id: StringConstructor;
|
|
535
535
|
prefixCls: StringConstructor;
|
|
@@ -410,7 +410,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
410
410
|
inputPrefixCls: StringConstructor;
|
|
411
411
|
enterButton: import("vue-types").VueTypeValidableDef<any>;
|
|
412
412
|
onSearch: {
|
|
413
|
-
type: import("vue").PropType<(value: string, event?: import("ant-design-vue/lib/_util/EventInterface").ChangeEvent |
|
|
413
|
+
type: import("vue").PropType<(value: string, event?: MouseEvent | import("ant-design-vue/lib/_util/EventInterface").ChangeEvent | KeyboardEvent) => void>;
|
|
414
414
|
};
|
|
415
415
|
id: StringConstructor;
|
|
416
416
|
prefixCls: StringConstructor;
|
|
@@ -482,7 +482,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
482
482
|
inputPrefixCls: StringConstructor;
|
|
483
483
|
enterButton: import("vue-types").VueTypeValidableDef<any>;
|
|
484
484
|
onSearch: {
|
|
485
|
-
type: import("vue").PropType<(value: string, event?: import("ant-design-vue/lib/_util/EventInterface").ChangeEvent |
|
|
485
|
+
type: import("vue").PropType<(value: string, event?: MouseEvent | import("ant-design-vue/lib/_util/EventInterface").ChangeEvent | KeyboardEvent) => void>;
|
|
486
486
|
};
|
|
487
487
|
id: StringConstructor;
|
|
488
488
|
prefixCls: StringConstructor;
|
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
import { Ref } from "vue";
|
|
2
2
|
import { FormProps, FormSchema } from "../types/form.type";
|
|
3
3
|
export declare function useLabelWidth(schemaItemRef: Ref<FormSchema>, propsRef: Ref<FormProps>): import("vue").ComputedRef<{
|
|
4
|
-
labelCol:
|
|
5
|
-
|
|
6
|
-
span?: string | number;
|
|
7
|
-
order?: string | number;
|
|
8
|
-
offset?: string | number;
|
|
9
|
-
md?: string | number;
|
|
10
|
-
xl?: string | number;
|
|
11
|
-
xxl?: string | number;
|
|
12
|
-
};
|
|
13
|
-
wrapperCol: {
|
|
14
|
-
style: any;
|
|
15
|
-
span?: string | number;
|
|
16
|
-
order?: string | number;
|
|
17
|
-
offset?: string | number;
|
|
18
|
-
md?: string | number;
|
|
19
|
-
xl?: string | number;
|
|
20
|
-
xxl?: string | number;
|
|
21
|
-
};
|
|
4
|
+
labelCol: any;
|
|
5
|
+
wrapperCol: any;
|
|
22
6
|
}>;
|
|
@@ -16,7 +16,7 @@ export declare const BasicProps: {
|
|
|
16
16
|
default: () => {};
|
|
17
17
|
};
|
|
18
18
|
layout: {
|
|
19
|
-
type: PropType<"
|
|
19
|
+
type: PropType<"inline" | "horizontal" | "vertical">;
|
|
20
20
|
default: string;
|
|
21
21
|
};
|
|
22
22
|
labelWidth: {
|
|
@@ -41,7 +41,7 @@ export declare const BasicProps: {
|
|
|
41
41
|
};
|
|
42
42
|
rowProps: {
|
|
43
43
|
type: PropType<Partial<import("vue").ExtractPropTypes<{
|
|
44
|
-
align: PropType<"
|
|
44
|
+
align: PropType<"bottom" | "top" | "stretch" | "middle">;
|
|
45
45
|
justify: PropType<"space-around" | "space-between" | "center" | "end" | "start">;
|
|
46
46
|
prefixCls: StringConstructor;
|
|
47
47
|
gutter: {
|
|
@@ -60,8 +60,7 @@ export declare const BasicProps: {
|
|
|
60
60
|
default: () => {};
|
|
61
61
|
};
|
|
62
62
|
size: {
|
|
63
|
-
type: PropType<"
|
|
64
|
-
default: string;
|
|
63
|
+
type: PropType<"large" | "small" | "middle">;
|
|
65
64
|
};
|
|
66
65
|
disabled: {
|
|
67
66
|
type: BooleanConstructor;
|
|
@@ -3,16 +3,18 @@ import { ComputedRef, ExtractPropTypes, Ref, VNode } from "vue";
|
|
|
3
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, Radio, RadioGroup, RangePicker, Rate, Select, Switch, TimePicker, TreeSelect } from "./items.type";
|
|
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";
|
|
7
7
|
export declare type ButtonFlag = 'OK' | 'CANCEL';
|
|
8
8
|
export declare type Rule = RuleObject & {
|
|
9
9
|
trigger?: 'blur' | 'change' | ['change', 'blur'];
|
|
10
10
|
};
|
|
11
11
|
export declare type FormProps = Partial<ExtractPropTypes<typeof BasicProps>>;
|
|
12
|
-
export declare type ComponentType = 'Input' | '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
|
+
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';
|
|
13
13
|
export declare type ColEx = {
|
|
14
14
|
style?: any;
|
|
15
15
|
span?: number | string;
|
|
16
|
+
pull?: number;
|
|
17
|
+
push?: number;
|
|
16
18
|
order?: number | string;
|
|
17
19
|
offset?: number | string;
|
|
18
20
|
md?: number | string;
|
|
@@ -54,7 +56,7 @@ declare type Schema<ComponentType, T> = {
|
|
|
54
56
|
isAdvanced?: boolean;
|
|
55
57
|
extraName?: string[];
|
|
56
58
|
};
|
|
57
|
-
export declare type FormSchema = Schema<'Input', Input> | 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', {
|
|
59
|
+
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
60
|
disabled?: boolean;
|
|
59
61
|
[key: string]: any;
|
|
60
62
|
}> | Schema<'Rate', Rate> | Schema<'Divider', Divider>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DtEvent, Recordable, SelectOptions } from "@dt-frames/core";
|
|
2
2
|
import dayjs from "dayjs";
|
|
3
|
-
import { Ref, Slot, VNode, CSSProperties } from "vue";
|
|
3
|
+
import { Ref, Slot, VNode, CSSProperties, ComputedRef } from "vue";
|
|
4
4
|
declare type BaseInput = {
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
addonAfter?: string | VNode;
|
|
@@ -106,7 +106,7 @@ export declare type Select = {
|
|
|
106
106
|
notFoundContent?: string | Slot;
|
|
107
107
|
open?: boolean;
|
|
108
108
|
optionFilterProp?: string;
|
|
109
|
-
options?: SelectOptions[]
|
|
109
|
+
options?: SelectOptions[] | ComputedRef<SelectOptions[]> | Ref<SelectOptions[]>;
|
|
110
110
|
placeholder?: string;
|
|
111
111
|
removeIcon?: VNode | Slot;
|
|
112
112
|
searchValue?: string;
|
|
@@ -194,7 +194,7 @@ export declare type RadioGroup = {
|
|
|
194
194
|
buttonStyle?: 'outline' | 'solid';
|
|
195
195
|
disabled?: boolean;
|
|
196
196
|
name?: string;
|
|
197
|
-
options?: string[] | number[] | SelectOptions[]
|
|
197
|
+
options?: string[] | number[] | SelectOptions[] | ComputedRef<SelectOptions[]> | Ref<SelectOptions[]>;
|
|
198
198
|
optionType?: 'default' | 'button';
|
|
199
199
|
size?: 'large' | 'default' | 'small';
|
|
200
200
|
defaultValue?: string | number | boolean;
|
|
@@ -215,7 +215,11 @@ export declare type CheckboxGroup = {
|
|
|
215
215
|
name?: string;
|
|
216
216
|
options?: string[] | (SelectOptions & {
|
|
217
217
|
indeterminate?: boolean;
|
|
218
|
-
})[]
|
|
218
|
+
})[] | ComputedRef<(SelectOptions & {
|
|
219
|
+
indeterminate?: boolean;
|
|
220
|
+
})[]> | Ref<(SelectOptions & {
|
|
221
|
+
indeterminate?: boolean;
|
|
222
|
+
})[]>;
|
|
219
223
|
onChange?: (checkedValue: (string | number | boolean)[], model: Recordable) => void;
|
|
220
224
|
[key: string]: any;
|
|
221
225
|
};
|
|
@@ -250,7 +254,7 @@ export declare type Cascader = {
|
|
|
250
254
|
multiple?: boolean;
|
|
251
255
|
notFoundContent?: string | VNode;
|
|
252
256
|
open?: boolean;
|
|
253
|
-
options?: CascaderOption[]
|
|
257
|
+
options?: CascaderOption[] | ComputedRef<CascaderOption[]> | Ref<CascaderOption[]>;
|
|
254
258
|
placement?: 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight';
|
|
255
259
|
searchValue?: string;
|
|
256
260
|
showSearch?: boolean | object;
|
|
@@ -372,4 +376,7 @@ export declare type Divider = {
|
|
|
372
376
|
type?: 'horizontal' | 'vertical';
|
|
373
377
|
[key: string]: any;
|
|
374
378
|
};
|
|
379
|
+
export declare type InputWithDialog = Input & {
|
|
380
|
+
openDialog?: (model: Recordable) => void;
|
|
381
|
+
};
|
|
375
382
|
export {};
|