@dt-frames/ui 2.0.13 → 2.0.15
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/container/index.d.ts +93 -2
- package/es/components/curd/index.js +6 -3
- package/es/components/curd/src/components/Curd.d.ts +12 -6
- package/es/components/curd/src/props.d.ts +6 -3
- package/es/components/form/index.js +21 -5
- package/es/components/form/index.less +30 -3
- package/es/components/form/src/components/FormButtons.d.ts +7 -0
- package/es/components/form/src/props.d.ts +3 -3
- package/es/components/form/src/types/form.type.d.ts +3 -3
- package/es/components/form/src/types/items.type.d.ts +25 -0
- package/es/components/modal/index.js +13 -3
- package/es/components/modal/src/components/ModalFooter.d.ts +6 -0
- package/es/components/modal/src/index.d.ts +6 -0
- package/es/components/source/hooks/useSource.d.ts +2 -0
- package/es/components/source/index.js +4 -1
- package/es/components/source/types/source.type.d.ts +1 -0
- package/es/components/table/index.js +107 -38
- package/es/components/table/index.less +11 -0
- package/es/components/table/src/components/TableAction.d.ts +13 -0
- package/es/components/table/src/index.d.ts +11 -4
- package/es/components/table/src/props.d.ts +4 -1
- package/es/components/table/src/types/table.type.d.ts +1 -0
- package/es/components/upload/index.d.ts +2 -0
- package/es/components/upload/index.js +216 -89
- package/es/components/upload/index.less +37 -7
- package/es/components/upload/src/basicProps.d.ts +4 -6
- package/es/components/upload/src/components/WordView.d.ts +6 -0
- package/es/components/upload/src/hooks/useFile.d.ts +2 -1
- package/es/components/upload/src/index.d.ts +23 -18
- package/es/components/upload/src/utils/upload.d.ts +1 -1
- package/es/packages/ui/src/assets/locales/en.d.ts +103 -0
- package/es/packages/ui/src/assets/locales/index.d.ts +2 -0
- package/es/packages/ui/src/assets/locales/zh.d.ts +104 -0
- package/es/packages/ui/src/components/form/index.d.ts +7 -0
- package/es/packages/ui/src/components/form/src/components/FormButtons.d.ts +105 -0
- package/es/packages/ui/src/components/form/src/components/FormItem.d.ts +159 -0
- package/es/packages/ui/src/components/form/src/components/componentMap.d.ts +4 -0
- package/es/packages/ui/src/components/form/src/components/formIcon.d.ts +1223 -0
- package/es/packages/ui/src/components/form/src/components/formInputUseDialog.d.ts +911 -0
- package/es/packages/ui/src/components/form/src/components/index.d.ts +4 -0
- package/es/packages/ui/src/components/form/src/components/radioButton.d.ts +34 -0
- package/es/packages/ui/src/components/form/src/enums/index.d.ts +7 -0
- package/es/packages/ui/src/components/form/src/hooks/helper.d.ts +14 -0
- package/es/packages/ui/src/components/form/src/hooks/useForm.d.ts +6 -0
- package/es/packages/ui/src/components/form/src/hooks/useFormActions.d.ts +12 -0
- package/es/packages/ui/src/components/form/src/hooks/useFormEvent.d.ts +25 -0
- package/es/packages/ui/src/components/form/src/hooks/useFormValue.d.ts +3 -0
- package/es/packages/ui/src/components/form/src/hooks/useFormValues.d.ts +11 -0
- package/es/packages/ui/src/components/form/src/hooks/useLabelWidth.d.ts +6 -0
- package/es/packages/ui/src/components/form/src/props.d.ts +127 -0
- package/es/packages/ui/src/components/form/src/types/actions.type.d.ts +15 -0
- package/es/packages/ui/src/components/form/src/types/form.type.d.ts +79 -0
- package/es/packages/ui/src/components/form/src/types/items.type.d.ts +409 -0
- package/es/packages/ui/src/components/iframe/index.d.ts +2 -0
- package/es/packages/ui/src/components/modal/index.d.ts +4 -0
- package/es/packages/ui/src/components/modal/src/hooks/useModal.d.ts +5 -0
- package/es/packages/ui/src/components/modal/src/props.d.ts +101 -0
- package/es/packages/ui/src/components/modal/src/types/modal.type.d.ts +17 -0
- package/es/packages/ui/src/components/upload/index.d.ts +4 -0
- package/es/packages/ui/src/components/upload/src/basicProps.d.ts +87 -0
- package/es/packages/ui/src/components/upload/src/components/PdfView.d.ts +9 -0
- package/es/packages/ui/src/components/upload/src/components/WordView.d.ts +6 -0
- package/es/packages/ui/src/components/upload/src/hooks/useFile.d.ts +16 -0
- package/es/packages/ui/src/components/upload/src/index.d.ts +242 -0
- package/es/packages/ui/src/components/upload/src/type/file.d.ts +10 -0
- package/es/packages/ui/src/components/upload/src/utils/upload.d.ts +2 -0
- package/es/packages/ui/src/global.d.ts +7 -0
- package/es/packages/ui/src/theme/index.d.ts +12 -0
- package/es/packages/ui/src/theme/src/components/header/helper/menu-tree.d.ts +4 -0
- package/es/packages/ui/src/theme/src/enums/index.d.ts +1 -0
- package/es/packages/ui/src/theme/src/enums/theme.enum.d.ts +34 -0
- package/es/packages/ui/src/theme/src/hooks/index.d.ts +6 -0
- package/es/packages/ui/src/theme/src/hooks/useDragLine.d.ts +2 -0
- package/es/packages/ui/src/theme/src/hooks/useHeader.d.ts +25 -0
- package/es/packages/ui/src/theme/src/hooks/useMenu.d.ts +29 -0
- package/es/packages/ui/src/theme/src/hooks/useMultifyTab.d.ts +8 -0
- package/es/packages/ui/src/theme/src/hooks/useOpenKeys.d.ts +7 -0
- package/es/packages/ui/src/theme/src/hooks/useTheme.d.ts +9 -0
- package/es/packages/ui/src/theme/src/setting/theme.setting.d.ts +2 -0
- package/es/packages/ui/src/theme/src/stores/index.d.ts +3 -0
- package/es/packages/ui/src/theme/src/stores/routeReuse.store.d.ts +25 -0
- package/es/packages/ui/src/theme/src/stores/theme.store.d.ts +19 -0
- package/es/packages/ui/src/theme/src/types/index.d.ts +3 -0
- package/es/packages/ui/src/theme/src/types/menu.type.d.ts +15 -0
- package/es/packages/ui/src/theme/src/types/theme.type.d.ts +62 -0
- package/es/packages/ui/src/utils/withInstall.d.ts +4 -0
- package/es/theme/index.js +616 -221
- package/es/theme/index.less +185 -11
- package/es/theme/src/components/header/components/lock/Lockscreen.d.ts +85 -0
- package/es/theme/src/components/header/components/lock/Recharge.d.ts +32 -0
- package/es/theme/src/components/header/components/lock/index.d.ts +2 -0
- package/es/theme/src/components/header/components/lock/useBattery.d.ts +11 -0
- package/es/theme/src/components/header/components/lock/useTime.d.ts +7 -0
- package/es/theme/src/components/header/components/logo.d.ts +1 -3
- package/es/theme/src/components/header/components/notify.d.ts +1 -3
- package/es/theme/src/components/header/components/user-info.d.ts +10 -3
- package/es/theme/src/components/header/index.d.ts +812 -809
- package/es/theme/src/components/header/multiple-header.d.ts +921 -918
- package/es/theme/src/components/sider/index.d.ts +1 -3
- package/es/theme/src/components/sider/mix-sider.d.ts +1 -3
- package/es/theme/src/hooks/useHeader.d.ts +1 -0
- package/es/theme/src/index.d.ts +2152 -2059
- package/es/theme/src/stores/lockscreen.store.d.ts +7 -0
- package/manualContentPath.js +4 -0
- package/package.json +2 -1
- package/vite.config.ts +1 -0
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
import { UploadFile } from '../../../upload';
|
|
2
|
+
import { DtEvent, Recordable, SelectOptions } from "@dt-frames/core";
|
|
3
|
+
import { UploadRequestOption } from "ant-design-vue/es/vc-upload/interface";
|
|
4
|
+
import dayjs from "dayjs";
|
|
5
|
+
import { Ref, Slot, VNode, CSSProperties, ComputedRef } from "vue";
|
|
6
|
+
declare type StrOrDynamicStr = string | Ref<string> | ComputedRef<string>;
|
|
7
|
+
declare type BaseInput = {
|
|
8
|
+
placeholder?: StrOrDynamicStr;
|
|
9
|
+
addonAfter?: string | VNode;
|
|
10
|
+
addonBefore?: string | VNode;
|
|
11
|
+
allowClear?: boolean;
|
|
12
|
+
bordered?: boolean;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
disabled?: boolean | Ref<boolean>;
|
|
15
|
+
id?: string;
|
|
16
|
+
maxlength?: number;
|
|
17
|
+
prefix?: string | VNode;
|
|
18
|
+
showCount?: boolean;
|
|
19
|
+
size?: 'large' | 'default' | 'small';
|
|
20
|
+
suffix?: string | VNode;
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
};
|
|
23
|
+
export declare type Input = BaseInput & {
|
|
24
|
+
onChange?: (e: DtEvent, model: Recordable) => void;
|
|
25
|
+
onPressEnter?: (e: DtEvent, model: Recordable) => void;
|
|
26
|
+
};
|
|
27
|
+
export declare type InputGroup = {
|
|
28
|
+
defaultValue?: any[];
|
|
29
|
+
compact?: boolean;
|
|
30
|
+
size?: 'large' | 'default' | 'small';
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
export declare type InputPassword = Input & {
|
|
34
|
+
visibilityToggle?: boolean;
|
|
35
|
+
onChange?: (e: DtEvent, model: Recordable) => void;
|
|
36
|
+
};
|
|
37
|
+
export declare type InputSearch = Input & {
|
|
38
|
+
enterButton?: boolean | VNode;
|
|
39
|
+
loading?: boolean | Ref<boolean>;
|
|
40
|
+
onSearch?: (searchValue: string) => void;
|
|
41
|
+
onChange?: (e: DtEvent, model: Recordable) => void;
|
|
42
|
+
};
|
|
43
|
+
export declare type InputTextArea = Input & {
|
|
44
|
+
autosize?: boolean | object;
|
|
45
|
+
rows?: number;
|
|
46
|
+
onPressEnter?: (e: DtEvent, model: Recordable) => void;
|
|
47
|
+
onChange?: (e: DtEvent, model: Recordable) => void;
|
|
48
|
+
};
|
|
49
|
+
export declare type InputNumber = {
|
|
50
|
+
addonAfter?: string | VNode;
|
|
51
|
+
addonBefore?: string | VNode;
|
|
52
|
+
autofocus?: boolean;
|
|
53
|
+
bordered?: boolean;
|
|
54
|
+
controls?: boolean;
|
|
55
|
+
decimalSeparator?: string;
|
|
56
|
+
defaultValue?: number;
|
|
57
|
+
disabled?: boolean | Ref<boolean>;
|
|
58
|
+
formatter?: (value: number | string, info: {
|
|
59
|
+
userTyping: boolean;
|
|
60
|
+
input: string;
|
|
61
|
+
}) => string;
|
|
62
|
+
parser?: (value: string) => number | string;
|
|
63
|
+
keyboard?: boolean;
|
|
64
|
+
max?: number;
|
|
65
|
+
min?: number;
|
|
66
|
+
precision?: number;
|
|
67
|
+
prefix?: string | VNode;
|
|
68
|
+
size?: 'large' | 'default' | 'small';
|
|
69
|
+
step?: number | string;
|
|
70
|
+
stringMode?: boolean;
|
|
71
|
+
onChange?: (value: number | string, model: Recordable) => void;
|
|
72
|
+
onPressEnter?: (e: DtEvent, model: Recordable) => void;
|
|
73
|
+
onStep?: (value: number, info: {
|
|
74
|
+
offset: number;
|
|
75
|
+
type: 'up' | 'down';
|
|
76
|
+
}, model: Recordable) => void;
|
|
77
|
+
[key: string]: any;
|
|
78
|
+
};
|
|
79
|
+
export declare type Select = {
|
|
80
|
+
allowClear?: boolean;
|
|
81
|
+
autoClearSearchValue?: boolean;
|
|
82
|
+
autofocus?: boolean;
|
|
83
|
+
bordered?: boolean;
|
|
84
|
+
clearIcon?: VNode | Slot;
|
|
85
|
+
defaultActiveFirstOption?: boolean;
|
|
86
|
+
defaultOpen?: boolean;
|
|
87
|
+
disabled?: boolean | Ref<boolean>;
|
|
88
|
+
dropdownClassName?: string;
|
|
89
|
+
dropdownMatchSelectWidth?: boolean | number;
|
|
90
|
+
dropdownMenuStyle?: CSSProperties;
|
|
91
|
+
dropdownRender?: ({ menuNode, props }: {
|
|
92
|
+
menuNode: any;
|
|
93
|
+
props: any;
|
|
94
|
+
}) => VNode | Slot;
|
|
95
|
+
dropdownStyle?: CSSProperties;
|
|
96
|
+
fieldNames?: {
|
|
97
|
+
options?: string;
|
|
98
|
+
label?: string;
|
|
99
|
+
value?: string;
|
|
100
|
+
};
|
|
101
|
+
filterOption?: boolean | ((inputValue: string, option: SelectOptions) => object);
|
|
102
|
+
firstActiveValue?: string | string[];
|
|
103
|
+
getPopupContainer?: () => object;
|
|
104
|
+
listHeight?: number;
|
|
105
|
+
maxTagCount?: number;
|
|
106
|
+
maxTagPlaceholder?: Slot;
|
|
107
|
+
maxTagTextLength?: number;
|
|
108
|
+
menuItemSelectedIcon?: VNode | Slot;
|
|
109
|
+
mode?: 'multiple' | 'tags' | 'combobox';
|
|
110
|
+
notFoundContent?: string | Slot;
|
|
111
|
+
open?: boolean;
|
|
112
|
+
optionFilterProp?: string;
|
|
113
|
+
options?: SelectOptions[] | ComputedRef<SelectOptions[]> | Ref<SelectOptions[]>;
|
|
114
|
+
placeholder?: StrOrDynamicStr;
|
|
115
|
+
removeIcon?: VNode | Slot;
|
|
116
|
+
searchValue?: string;
|
|
117
|
+
showArrow?: boolean;
|
|
118
|
+
showSearch?: boolean;
|
|
119
|
+
size?: 'large' | 'default' | 'small';
|
|
120
|
+
suffixIcon?: VNode | Slot;
|
|
121
|
+
virtual?: boolean;
|
|
122
|
+
onBlur?: (e: DtEvent, model: Recordable) => void;
|
|
123
|
+
onChange?: (value: string | number | boolean, option: SelectOptions, model: Recordable) => void;
|
|
124
|
+
onDeselect?: (value: string | number | boolean, option: SelectOptions, model: Recordable) => void;
|
|
125
|
+
dropdownVisibleChange?: (option: SelectOptions, model: Recordable) => void;
|
|
126
|
+
onFocus?: (e: DtEvent, model: Recordable) => void;
|
|
127
|
+
onInputKeyDown?: (e: DtEvent, model: Recordable) => void;
|
|
128
|
+
onPopupScroll?: (e: DtEvent, model: Recordable) => void;
|
|
129
|
+
onSearch?: (val: string, model: Recordable) => void;
|
|
130
|
+
onSelect?: (value: string | number | boolean, option: SelectOptions, model: Recordable) => void;
|
|
131
|
+
[key: string]: any;
|
|
132
|
+
};
|
|
133
|
+
declare type TreeNode = {
|
|
134
|
+
checkable?: boolean;
|
|
135
|
+
disableCheckbox?: boolean;
|
|
136
|
+
disabled?: boolean;
|
|
137
|
+
isLeaf?: boolean;
|
|
138
|
+
key?: string | number;
|
|
139
|
+
selectable?: boolean;
|
|
140
|
+
title?: string | Slot;
|
|
141
|
+
value?: string;
|
|
142
|
+
children?: TreeNode[];
|
|
143
|
+
[key: string]: any;
|
|
144
|
+
};
|
|
145
|
+
export declare type TreeSelect = {
|
|
146
|
+
allowClear?: boolean;
|
|
147
|
+
defaultValue?: string | string[];
|
|
148
|
+
disabled?: boolean | Ref<boolean>;
|
|
149
|
+
dropdownClassName?: string;
|
|
150
|
+
dropdownMatchSelectWidth?: boolean | number;
|
|
151
|
+
dropdownStyle?: CSSProperties;
|
|
152
|
+
fieldNames?: {
|
|
153
|
+
children?: string;
|
|
154
|
+
label?: string;
|
|
155
|
+
value?: string;
|
|
156
|
+
};
|
|
157
|
+
filterTreeNode?: boolean | ((inputValue: string, treeNode: TreeNode) => boolean);
|
|
158
|
+
getPopupContainer?: () => object;
|
|
159
|
+
listHeight?: number;
|
|
160
|
+
maxTagCount?: number;
|
|
161
|
+
multiple?: boolean;
|
|
162
|
+
placeholder?: StrOrDynamicStr;
|
|
163
|
+
replaceFields?: {
|
|
164
|
+
children?: string;
|
|
165
|
+
label?: string;
|
|
166
|
+
value?: string;
|
|
167
|
+
};
|
|
168
|
+
searchPlaceholder?: string;
|
|
169
|
+
showSearch?: boolean;
|
|
170
|
+
size?: 'large' | 'default' | 'small';
|
|
171
|
+
treeCheckable?: boolean;
|
|
172
|
+
treeCheckStrictly?: boolean;
|
|
173
|
+
treeData?: TreeNode[];
|
|
174
|
+
treeDataSimpleMode?: boolean;
|
|
175
|
+
treeDefaultExpandAll?: boolean;
|
|
176
|
+
treeDefaultExpandedKeys?: string[] | number[];
|
|
177
|
+
treeExpandedKeys?: string[] | number[];
|
|
178
|
+
treeIcon?: boolean;
|
|
179
|
+
treeLine?: boolean;
|
|
180
|
+
treeNodeFilterProp?: string;
|
|
181
|
+
treeNodeLabelProp?: string;
|
|
182
|
+
virtual?: boolean;
|
|
183
|
+
onChange?: (value: string | number, label: string, extra: object, model: Recordable) => void;
|
|
184
|
+
onDropdownVisibleChange?: (open: boolean, model: Recordable) => void;
|
|
185
|
+
onSearch?: (val: string, model: Recordable) => void;
|
|
186
|
+
onSelect?: (val: string | number, node: TreeNode, extra: object, model: Recordable) => void;
|
|
187
|
+
onTreeExpand?: (expandedKeys: (string | number)[], model: Recordable) => void;
|
|
188
|
+
[key: string]: any;
|
|
189
|
+
};
|
|
190
|
+
export declare type Radio = {
|
|
191
|
+
autofocus?: boolean;
|
|
192
|
+
defaultValue?: string | number;
|
|
193
|
+
disabled?: boolean | Ref<boolean>;
|
|
194
|
+
value?: string | number;
|
|
195
|
+
[key: string]: any;
|
|
196
|
+
};
|
|
197
|
+
export declare type RadioGroup = {
|
|
198
|
+
buttonStyle?: 'outline' | 'solid';
|
|
199
|
+
disabled?: boolean;
|
|
200
|
+
name?: string;
|
|
201
|
+
options?: string[] | number[] | SelectOptions[] | ComputedRef<SelectOptions[]> | Ref<SelectOptions[]>;
|
|
202
|
+
optionType?: 'default' | 'button';
|
|
203
|
+
size?: 'large' | 'default' | 'small';
|
|
204
|
+
defaultValue?: string | number | boolean;
|
|
205
|
+
[key: string]: any;
|
|
206
|
+
};
|
|
207
|
+
export declare type Checkbox = {
|
|
208
|
+
autofocus?: boolean;
|
|
209
|
+
defaultValue?: string | number | boolean;
|
|
210
|
+
disabled?: boolean;
|
|
211
|
+
indeterminate?: boolean;
|
|
212
|
+
value?: boolean | string | number;
|
|
213
|
+
onChange?: (e: Event, model: Recordable) => void;
|
|
214
|
+
[key: string]: any;
|
|
215
|
+
};
|
|
216
|
+
export declare type CheckboxGroup = {
|
|
217
|
+
defaultValue?: (string | number | boolean)[];
|
|
218
|
+
disabled?: boolean;
|
|
219
|
+
name?: string;
|
|
220
|
+
options?: string[] | (SelectOptions & {
|
|
221
|
+
indeterminate?: boolean;
|
|
222
|
+
})[] | ComputedRef<(SelectOptions & {
|
|
223
|
+
indeterminate?: boolean;
|
|
224
|
+
})[]> | Ref<(SelectOptions & {
|
|
225
|
+
indeterminate?: boolean;
|
|
226
|
+
})[]>;
|
|
227
|
+
onChange?: (checkedValue: (string | number | boolean)[], model: Recordable) => void;
|
|
228
|
+
[key: string]: any;
|
|
229
|
+
};
|
|
230
|
+
declare type CascaderOption = {
|
|
231
|
+
value?: string | number;
|
|
232
|
+
label?: any;
|
|
233
|
+
disabled?: boolean;
|
|
234
|
+
isLeaf?: boolean;
|
|
235
|
+
children?: CascaderOption[];
|
|
236
|
+
[key: string]: any;
|
|
237
|
+
};
|
|
238
|
+
export declare type Cascader = {
|
|
239
|
+
allowClear?: boolean;
|
|
240
|
+
autofocus?: boolean;
|
|
241
|
+
bordered?: boolean;
|
|
242
|
+
clearIcon?: VNode;
|
|
243
|
+
changeOnSelect?: boolean;
|
|
244
|
+
defaultValue?: string[] | number[];
|
|
245
|
+
disabled?: boolean;
|
|
246
|
+
dropdownClassName?: string;
|
|
247
|
+
dropdownStyle?: CSSProperties;
|
|
248
|
+
expandIcon?: VNode;
|
|
249
|
+
expandTrigger?: 'click' | 'hover';
|
|
250
|
+
fieldNames?: {
|
|
251
|
+
children?: string;
|
|
252
|
+
label?: string;
|
|
253
|
+
value?: string;
|
|
254
|
+
};
|
|
255
|
+
getPopupContainer?: () => object;
|
|
256
|
+
loadData?: (selectedOptions: CascaderOption) => void;
|
|
257
|
+
maxTagCount?: number | 'responsive';
|
|
258
|
+
multiple?: boolean;
|
|
259
|
+
notFoundContent?: string | VNode;
|
|
260
|
+
open?: boolean;
|
|
261
|
+
options?: CascaderOption[] | ComputedRef<CascaderOption[]> | Ref<CascaderOption[]>;
|
|
262
|
+
placement?: 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight';
|
|
263
|
+
searchValue?: string;
|
|
264
|
+
showSearch?: boolean | object;
|
|
265
|
+
size?: 'large' | 'default' | 'small';
|
|
266
|
+
suffixIcon?: string | VNode | Slot;
|
|
267
|
+
filter?: (inputValue: string | number, path: any) => boolean;
|
|
268
|
+
limit?: number | false;
|
|
269
|
+
matchInputWidth?: boolean;
|
|
270
|
+
render?: (inputValue: string | number, path: any) => VNode;
|
|
271
|
+
sort?: (a: Recordable, b: Recordable, inputValue: string | number) => boolean;
|
|
272
|
+
onChange?: (value: string | number, selectedOptions: CascaderOption, model: Recordable) => void;
|
|
273
|
+
dropdownVisibleChange?: (val: boolean, model: Recordable) => void;
|
|
274
|
+
onSearch?: (val: string | number, model: Recordable) => void;
|
|
275
|
+
[key: string]: any;
|
|
276
|
+
};
|
|
277
|
+
declare type BaseDatepicker = {
|
|
278
|
+
allowClear?: boolean;
|
|
279
|
+
autofocus?: boolean;
|
|
280
|
+
bordered?: boolean;
|
|
281
|
+
disabled?: boolean;
|
|
282
|
+
disabledDate?: (currentDate: any) => boolean;
|
|
283
|
+
dropdownClassName?: string;
|
|
284
|
+
getPopupContainer?: object;
|
|
285
|
+
inputReadOnly?: boolean;
|
|
286
|
+
mode?: 'time' | 'date' | 'month' | 'year' | 'decade';
|
|
287
|
+
open?: boolean | Ref<boolean>;
|
|
288
|
+
picker?: 'date' | 'week' | 'month' | 'quarter' | 'year';
|
|
289
|
+
placeholder?: StrOrDynamicStr;
|
|
290
|
+
popupStyle?: CSSProperties;
|
|
291
|
+
size?: 'large' | 'middle' | 'small';
|
|
292
|
+
onOpenChange?: (status: boolean, model: Recordable) => void;
|
|
293
|
+
onPanelChange?: (val: any, mode: any, model: Recordable) => void;
|
|
294
|
+
};
|
|
295
|
+
export declare type DatePicker = BaseDatepicker & {
|
|
296
|
+
defaultPickerValue?: dayjs.Dayjs;
|
|
297
|
+
disabledTime?: (date: dayjs.Dayjs) => boolean;
|
|
298
|
+
format?: string | ((value: dayjs.Dayjs) => string) | (string | ((value: dayjs.Dayjs) => string))[];
|
|
299
|
+
showNow?: boolean;
|
|
300
|
+
showTime?: boolean | {
|
|
301
|
+
defaultValue?: dayjs.Dayjs;
|
|
302
|
+
};
|
|
303
|
+
showToday?: boolean;
|
|
304
|
+
onChange?: (date: dayjs.Dayjs | string, dateString: string, model: Recordable) => void;
|
|
305
|
+
onOk?: (date: dayjs.Dayjs | string, model: Recordable) => void;
|
|
306
|
+
[key: string]: any;
|
|
307
|
+
};
|
|
308
|
+
export declare type RangePicker = BaseDatepicker & {
|
|
309
|
+
allowEmpty?: [boolean, boolean];
|
|
310
|
+
defaultPickerValue?: dayjs.Dayjs[];
|
|
311
|
+
disabled?: [boolean, boolean];
|
|
312
|
+
disabledTime?: (date: dayjs.Dayjs, partial: 'start' | 'end') => boolean;
|
|
313
|
+
format?: string;
|
|
314
|
+
showTime?: boolean | {
|
|
315
|
+
defaultValue?: dayjs.Dayjs[];
|
|
316
|
+
};
|
|
317
|
+
onCalendarChange?: (dates: [dayjs.Dayjs, dayjs.Dayjs] | [string, string], dateStrings: [string, string], info: {
|
|
318
|
+
range: 'start' | 'end';
|
|
319
|
+
}, model: Recordable) => void;
|
|
320
|
+
onChange?: (date: [dayjs.Dayjs, dayjs.Dayjs] | [string, string], dateString: [string, string], model: Recordable) => void;
|
|
321
|
+
onOk?: (date: [dayjs.Dayjs, dayjs.Dayjs] | [string, string], model: Recordable) => void;
|
|
322
|
+
[key: string]: any;
|
|
323
|
+
};
|
|
324
|
+
export declare type TimePicker = {
|
|
325
|
+
allowClear?: boolean;
|
|
326
|
+
autofocus?: boolean;
|
|
327
|
+
defaultPickerValue?: string | dayjs.Dayjs;
|
|
328
|
+
bordered?: boolean;
|
|
329
|
+
clearText?: string;
|
|
330
|
+
disabled?: boolean;
|
|
331
|
+
format?: string;
|
|
332
|
+
getPopupContainer?: () => object;
|
|
333
|
+
hideDisabledOptions?: boolean;
|
|
334
|
+
hourStep?: number;
|
|
335
|
+
inputReadOnly?: boolean;
|
|
336
|
+
minuteStep?: number;
|
|
337
|
+
open?: boolean | Ref<boolean>;
|
|
338
|
+
placeholder?: string | [string | string];
|
|
339
|
+
popupClassName?: string;
|
|
340
|
+
popupStyle?: CSSProperties;
|
|
341
|
+
secondStep?: number;
|
|
342
|
+
showNow?: boolean;
|
|
343
|
+
use12Hours?: boolean;
|
|
344
|
+
onChange?: (time: dayjs.Dayjs | string, dateString: string, model: Recordable) => void;
|
|
345
|
+
onOpenChange?: (open: boolean) => void;
|
|
346
|
+
[key: string]: any;
|
|
347
|
+
};
|
|
348
|
+
export declare type Switch = {
|
|
349
|
+
autofocus?: boolean;
|
|
350
|
+
checkedChildren?: string | VNode;
|
|
351
|
+
defaultPickerValue?: boolean | string | number;
|
|
352
|
+
checkedValue?: boolean | string | number;
|
|
353
|
+
disabled?: boolean;
|
|
354
|
+
loading?: boolean | Ref<boolean>;
|
|
355
|
+
size?: 'default' | 'small';
|
|
356
|
+
unCheckedChildren?: string | VNode;
|
|
357
|
+
unCheckedValue?: boolean | string | number;
|
|
358
|
+
onChange?: (checked: boolean | string | number, event: Event, model: Recordable) => void;
|
|
359
|
+
onClick?: (checked: boolean | string | number, event: Event, model: Recordable) => void;
|
|
360
|
+
[key: string]: any;
|
|
361
|
+
};
|
|
362
|
+
export declare type Rate = {
|
|
363
|
+
allowClear?: boolean;
|
|
364
|
+
allowHalf?: boolean;
|
|
365
|
+
autofocus?: boolean;
|
|
366
|
+
defaultPickerValue?: number;
|
|
367
|
+
character?: string | VNode;
|
|
368
|
+
count?: number;
|
|
369
|
+
disabled?: boolean;
|
|
370
|
+
tooltips?: string[];
|
|
371
|
+
onBlur?: (e: any, model: Recordable) => void;
|
|
372
|
+
onChange?: (value: number) => void;
|
|
373
|
+
[key: string]: any;
|
|
374
|
+
};
|
|
375
|
+
export declare type Divider = {
|
|
376
|
+
dashed?: boolean;
|
|
377
|
+
orientation?: boolean;
|
|
378
|
+
orientationMargin?: string | number;
|
|
379
|
+
plain?: boolean;
|
|
380
|
+
type?: 'horizontal' | 'vertical';
|
|
381
|
+
[key: string]: any;
|
|
382
|
+
};
|
|
383
|
+
export declare type InputWithDialog = Input & {
|
|
384
|
+
openDialog?: (model: Recordable) => void;
|
|
385
|
+
};
|
|
386
|
+
export declare type Upload = {
|
|
387
|
+
uploadUrl?: string;
|
|
388
|
+
downloadUrl?: string;
|
|
389
|
+
buttonText?: string;
|
|
390
|
+
preIcon?: string;
|
|
391
|
+
data?: object | ((file: UploadFile) => object);
|
|
392
|
+
filename?: string;
|
|
393
|
+
accept?: string[];
|
|
394
|
+
customRequest?: (params: UploadRequestOption) => void;
|
|
395
|
+
disabled?: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
396
|
+
defaultFiles?: UploadFile[];
|
|
397
|
+
headers?: object;
|
|
398
|
+
listType?: 'text' | 'picture-card';
|
|
399
|
+
maxCount?: number;
|
|
400
|
+
maxSize?: number;
|
|
401
|
+
helpText?: string;
|
|
402
|
+
multiple?: boolean;
|
|
403
|
+
onChange?: (ids: string[] | number[], files: UploadFile[]) => void;
|
|
404
|
+
extraParams?: Recordable;
|
|
405
|
+
showView?: boolean;
|
|
406
|
+
showDownload?: boolean;
|
|
407
|
+
showDelete?: boolean;
|
|
408
|
+
};
|
|
409
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ExtractPropTypes } from "vue";
|
|
2
|
+
import { basicProps } from "../props";
|
|
3
|
+
import { UseModalReturnType, UseModalInnerReturnType } from "../types/modal.type";
|
|
4
|
+
export declare function useModalOut(): UseModalReturnType;
|
|
5
|
+
export declare function useModal(props: Partial<ExtractPropTypes<typeof basicProps>>, setModalData?: (params: any) => void): UseModalInnerReturnType;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ButtonProps } from '../../form/src/types/form.type';
|
|
2
|
+
import { Recordable } from "@dt-frames/core";
|
|
3
|
+
import { ComputedRef, CSSProperties, PropType } from "vue";
|
|
4
|
+
export declare const basicProps: {
|
|
5
|
+
t: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
};
|
|
8
|
+
visible: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
};
|
|
11
|
+
closable: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
destroyOnClose: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
};
|
|
18
|
+
scrollTop: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
height: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
};
|
|
25
|
+
minHeight: {
|
|
26
|
+
type: NumberConstructor;
|
|
27
|
+
};
|
|
28
|
+
width: {
|
|
29
|
+
type: PropType<String | Number>;
|
|
30
|
+
};
|
|
31
|
+
draggable: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
defaultFullscreen: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
};
|
|
38
|
+
canFullscreen: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
title: {
|
|
43
|
+
type: PropType<String | ComputedRef<String> | ((data: Recordable) => String)>;
|
|
44
|
+
};
|
|
45
|
+
loading: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
loadingTip: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
useWrapper: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
wrapClassName: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
};
|
|
60
|
+
zIndex: {
|
|
61
|
+
type: NumberConstructor;
|
|
62
|
+
};
|
|
63
|
+
centered: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
};
|
|
66
|
+
showOkBtn: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
showCancelBtn: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
okText: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
};
|
|
77
|
+
cancelText: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
};
|
|
80
|
+
mask: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
maskClosable: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
keyboard: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
maskStyle: PropType<CSSProperties>;
|
|
93
|
+
footer: {
|
|
94
|
+
type: PropType<ButtonProps[]>;
|
|
95
|
+
};
|
|
96
|
+
bodyStyle: PropType<CSSProperties>;
|
|
97
|
+
wrapperProps: ObjectConstructor;
|
|
98
|
+
getContainer: PropType<() => any>;
|
|
99
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
100
|
+
afterClose: FunctionConstructor;
|
|
101
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ExtractPropTypes } from "vue";
|
|
2
|
+
import { basicProps } from "../props";
|
|
3
|
+
export declare type ModalMethods = {
|
|
4
|
+
setModalProps: (props: Partial<ExtractPropTypes<typeof basicProps>>) => void;
|
|
5
|
+
redoModalHeight?: () => void;
|
|
6
|
+
};
|
|
7
|
+
export interface ReturnMethods extends ModalMethods {
|
|
8
|
+
openModal: <T = any, U = any>(params?: T, afterClose?: (res: U) => void) => void;
|
|
9
|
+
closeModal: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface ReturnInnerMethods extends ModalMethods {
|
|
12
|
+
closeModal: <T = any>(res?: T) => void;
|
|
13
|
+
setLoading: (loading: boolean) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare type RegisterFn = (modalMethods: ModalMethods, uuid?: string) => void;
|
|
16
|
+
export declare type UseModalReturnType = [RegisterFn, ReturnMethods];
|
|
17
|
+
export declare type UseModalInnerReturnType = [RegisterFn, ReturnInnerMethods];
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { PropType, Ref, ComputedRef } from "vue";
|
|
2
|
+
import { UploadFile } from "./type/file";
|
|
3
|
+
import { UploadRequestOption } from "ant-design-vue/es/vc-upload/interface";
|
|
4
|
+
import { Recordable } from "@dt-frames/core";
|
|
5
|
+
export declare const basicProps: {
|
|
6
|
+
uploadUrl: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
};
|
|
9
|
+
downloadUrl: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
};
|
|
12
|
+
buttonText: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
preIcon: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
data: {
|
|
21
|
+
type: PropType<object | ((file: UploadFile) => object)>;
|
|
22
|
+
default: {};
|
|
23
|
+
};
|
|
24
|
+
filename: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
accept: {
|
|
29
|
+
type: PropType<string[]>;
|
|
30
|
+
default: () => any[];
|
|
31
|
+
};
|
|
32
|
+
beforeUpload: {
|
|
33
|
+
type: PropType<(<T = any>(file: UploadFile, fileList: UploadFile[]) => boolean | Promise<T>)>;
|
|
34
|
+
};
|
|
35
|
+
customRequest: {
|
|
36
|
+
type: PropType<(params: UploadRequestOption) => void>;
|
|
37
|
+
};
|
|
38
|
+
disabled: {
|
|
39
|
+
type: PropType<Boolean | Ref<Boolean> | ComputedRef<Boolean>>;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
defaultFiles: {
|
|
43
|
+
type: PropType<UploadFile[]>;
|
|
44
|
+
default: () => any[];
|
|
45
|
+
};
|
|
46
|
+
headers: {
|
|
47
|
+
type: ObjectConstructor;
|
|
48
|
+
};
|
|
49
|
+
listType: {
|
|
50
|
+
type: PropType<"text" | "picture-card">;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
maxCount: {
|
|
54
|
+
type: NumberConstructor;
|
|
55
|
+
};
|
|
56
|
+
maxSize: {
|
|
57
|
+
type: NumberConstructor;
|
|
58
|
+
default: number;
|
|
59
|
+
};
|
|
60
|
+
helpText: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
multiple: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
onChange: {
|
|
69
|
+
type: PropType<(ids: string[] | number[], files: UploadFile[]) => void>;
|
|
70
|
+
};
|
|
71
|
+
extraParams: {
|
|
72
|
+
type: PropType<Recordable<any>>;
|
|
73
|
+
default: () => {};
|
|
74
|
+
};
|
|
75
|
+
showView: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
showDownload: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
showDelete: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
exeReduce: import("vue").Ref<number>;
|
|
3
|
+
pdfUrlRef: import("vue").Ref<any>;
|
|
4
|
+
register: import("../../../modal/src/types/modal.type").RegisterFn;
|
|
5
|
+
toggleFullscreen: (isFullscreen: boolean) => void;
|
|
6
|
+
readonly DtModal: import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
7
|
+
readonly DtIframe: import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
9
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
ID: string;
|
|
3
|
+
register: import("../../../modal/src/types/modal.type").RegisterFn;
|
|
4
|
+
readonly DtModal: import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
5
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
6
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Ref } from "vue";
|
|
2
|
+
import { UploadFile } from "../type/file";
|
|
3
|
+
export declare function useFile({ fileListRef, acceptRef, helpTextRef, maxCountRef, maxSizeRef, }: {
|
|
4
|
+
fileListRef: Ref<UploadFile[]>;
|
|
5
|
+
acceptRef: Ref<string[]>;
|
|
6
|
+
helpTextRef: Ref<string>;
|
|
7
|
+
maxCountRef: Ref<number>;
|
|
8
|
+
maxSizeRef: Ref<number>;
|
|
9
|
+
}): {
|
|
10
|
+
getAccept: import("vue").ComputedRef<string[]>;
|
|
11
|
+
getStringAccept: import("vue").ComputedRef<string>;
|
|
12
|
+
getHelpText: import("vue").ComputedRef<string>;
|
|
13
|
+
fileList: Ref<any[]>;
|
|
14
|
+
setFile: (file: any) => any;
|
|
15
|
+
beforeUpload: (file: File) => void;
|
|
16
|
+
};
|