@dt-frames/ui 2.0.17 → 2.0.19
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/drawer/index.d.ts +3 -4
- package/es/components/drawer/index.js +11 -15
- package/es/components/drawer/index.less +6 -0
- package/es/components/drawer/src/index.d.ts +5 -7
- package/es/components/drawer/src/types/index.type.d.ts +3 -1
- package/es/components/form/index.js +62 -65
- package/es/components/form/src/components/FormButtons.d.ts +3056 -4
- package/es/components/form/src/components/FormItem.d.ts +3 -4
- package/es/components/form/src/components/formIcon.d.ts +0 -1209
- package/es/components/form/src/components/formInputUseDialog.d.ts +0 -894
- package/es/components/form/src/props.d.ts +8 -8
- package/es/components/form/src/types/form.type.d.ts +1 -0
- package/es/components/form/src/types/items.type.d.ts +8 -0
- package/es/components/modal/index.js +19 -7
- package/es/components/modal/index.less +1 -9
- package/es/components/source/index.js +20 -10
- package/es/components/table/index.js +262 -150
- package/es/components/table/index.less +5 -1
- package/es/components/table/src/types/table.type.d.ts +1 -0
- package/es/components/tree/index.js +59 -57
- package/es/components/tree/index.less +6 -0
- package/es/components/tree/src/type/tree.d.ts +0 -4
- package/es/components/tree/src/utils/tree.d.ts +3 -1
- package/es/components/upload/index.js +103 -41
- package/es/components/upload/src/basicProps.d.ts +5 -1
- package/es/components/upload/src/hooks/useFile.d.ts +7 -6
- package/es/components/upload/src/index.d.ts +16 -0
- package/es/components/upload/src/type/file.d.ts +9 -2
- package/es/components/upload/src/utils/fileSize.d.ts +1 -0
- package/es/theme/index.js +149 -97
- package/es/theme/index.less +14 -0
- package/es/theme/src/components/sider/index.d.ts +1 -1
- package/es/theme/src/components/sider/mix-sider.d.ts +1 -1
- package/es/theme/src/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { Ref } from "vue";
|
|
2
|
-
import { UploadFile } from "../type/file";
|
|
3
|
-
export declare function useFile({ fileListRef, acceptRef, helpTextRef, maxCountRef, maxSizeRef, }: {
|
|
1
|
+
import { Ref, ComputedRef } from "vue";
|
|
2
|
+
import { FieldNames, UploadFile } from "../type/file";
|
|
3
|
+
export declare function useFile({ fileListRef, acceptRef, helpTextRef, maxCountRef, maxSizeRef, fieldNamesRef }: {
|
|
4
4
|
fileListRef: Ref<UploadFile[]>;
|
|
5
5
|
acceptRef: Ref<string[]>;
|
|
6
6
|
helpTextRef: Ref<string>;
|
|
7
7
|
maxCountRef: Ref<number>;
|
|
8
8
|
maxSizeRef: Ref<number>;
|
|
9
|
+
fieldNamesRef: ComputedRef<FieldNames>;
|
|
9
10
|
}): {
|
|
10
|
-
getAccept:
|
|
11
|
-
getStringAccept:
|
|
12
|
-
getHelpText:
|
|
11
|
+
getAccept: ComputedRef<string[]>;
|
|
12
|
+
getStringAccept: ComputedRef<string>;
|
|
13
|
+
getHelpText: ComputedRef<string>;
|
|
13
14
|
fileList: Ref<any[]>;
|
|
14
15
|
setFile: (file: any) => any;
|
|
15
16
|
beforeUpload: (file: File) => void;
|
|
@@ -19,6 +19,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
19
19
|
type: import("vue").PropType<object | ((file: UploadFile) => object)>;
|
|
20
20
|
default: {};
|
|
21
21
|
};
|
|
22
|
+
fieldNames: {
|
|
23
|
+
type: import("vue").PropType<import("./type/file").FieldNames>;
|
|
24
|
+
default: {};
|
|
25
|
+
};
|
|
22
26
|
fileName: {
|
|
23
27
|
type: StringConstructor;
|
|
24
28
|
default: string;
|
|
@@ -95,6 +99,13 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
95
99
|
helpTextRef: import("vue").Ref<string>;
|
|
96
100
|
maxCountRef: import("vue").Ref<number>;
|
|
97
101
|
maxSizeRef: import("vue").Ref<number>;
|
|
102
|
+
fieldNamesRef: import("vue").ComputedRef<{
|
|
103
|
+
fileId: string;
|
|
104
|
+
fileName: string;
|
|
105
|
+
filePath: string;
|
|
106
|
+
size: string;
|
|
107
|
+
fileType: string;
|
|
108
|
+
}>;
|
|
98
109
|
getStringAccept: import("vue").ComputedRef<string>;
|
|
99
110
|
getHelpText: import("vue").ComputedRef<string>;
|
|
100
111
|
fileList: import("vue").Ref<any[]>;
|
|
@@ -157,6 +168,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
157
168
|
type: import("vue").PropType<object | ((file: UploadFile) => object)>;
|
|
158
169
|
default: {};
|
|
159
170
|
};
|
|
171
|
+
fieldNames: {
|
|
172
|
+
type: import("vue").PropType<import("./type/file").FieldNames>;
|
|
173
|
+
default: {};
|
|
174
|
+
};
|
|
160
175
|
fileName: {
|
|
161
176
|
type: StringConstructor;
|
|
162
177
|
default: string;
|
|
@@ -226,6 +241,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
226
241
|
data: object | ((file: UploadFile) => object);
|
|
227
242
|
buttonText: string;
|
|
228
243
|
preIcon: string;
|
|
244
|
+
fieldNames: {};
|
|
229
245
|
fileName: string;
|
|
230
246
|
accept: string[];
|
|
231
247
|
disabled: Boolean | import("vue").Ref<Boolean> | import("vue").ComputedRef<Boolean>;
|
|
@@ -2,9 +2,16 @@ export declare type UploadFile = {
|
|
|
2
2
|
name?: string;
|
|
3
3
|
percent?: number;
|
|
4
4
|
status?: 'error' | 'success' | 'done' | 'uploading' | 'removed';
|
|
5
|
-
thumbUrl?: string;
|
|
6
5
|
uid?: string;
|
|
7
|
-
|
|
6
|
+
fileSize?: string | number;
|
|
7
|
+
filePath?: string;
|
|
8
8
|
fileId?: string;
|
|
9
9
|
[key: string]: any;
|
|
10
10
|
};
|
|
11
|
+
export declare type FieldNames = {
|
|
12
|
+
fileId?: string;
|
|
13
|
+
fileName?: string;
|
|
14
|
+
filePath?: string;
|
|
15
|
+
fileSize?: string;
|
|
16
|
+
fileType?: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getFileSize(size: string | number): string;
|