disguise-ui 0.3.7 → 0.3.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/README.md +4 -2
- package/dist/{avatar-cell-Cns1UqiV.js → avatar-cell-Cx1YMRjp.js} +1 -1
- package/dist/disguise-ui.js +264 -255
- package/dist/{file-upload-D02tRF4e.js → file-upload-CJIkJlcK.js} +1 -1
- package/dist/{file-upload-BYq_ZBPv.js → file-upload-CdzTspvH.js} +3 -3
- package/dist/{i18n-DyM4J6Tt.js → i18n-DZQHHiTD.js} +47 -50
- package/dist/{picture-cell--GGQKBgi.js → picture-cell-CogcfWjM.js} +1 -1
- package/dist/{picture-upload-CmNsacpE.js → picture-upload-Ba5slmTG.js} +1 -1
- package/dist/{picture-upload-BQeS_ojB.js → picture-upload-By35hBTI.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/types/components/async-select/async-select.vue.d.ts +1 -1
- package/dist/types/components/dialog-list/index.vue.d.ts +10 -10
- package/dist/types/components/dict-tag/index.vue.d.ts +1 -1
- package/dist/types/components/drawer-form-page/index.vue.d.ts +2 -2
- package/dist/types/components/file-upload/components/file-status.vue.d.ts +1 -1
- package/dist/types/components/file-upload/file-upload.vue.d.ts +4 -4
- package/dist/types/components/image-upload/index.vue.d.ts +2 -2
- package/dist/types/components/images-view/index.vue.d.ts +1 -1
- package/dist/types/components/import-dialog/index.type.d.ts +4 -0
- package/dist/types/components/import-dialog/index.vue.d.ts +19 -3
- package/dist/types/components/picture-upload/picture-upload.vue.d.ts +4 -4
- package/dist/types/components/rich-text-editor/index.vue.d.ts +1 -1
- package/dist/types/components/schema-form/schema-form.vue.d.ts +1 -1
- package/dist/types/components/schema-form/translate-field.vue.d.ts +1 -1
- package/dist/types/components/schema-form/translate-toolbar.vue.d.ts +6 -3
- package/dist/types/components/search-form/index.vue.d.ts +1 -1
- package/dist/types/components/table-entity/index.vue.d.ts +2 -2
- package/dist/types/components/user-avatar-info/index.vue.d.ts +8 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/runtime/context.d.ts +25 -3316
- package/dist/types/setup.d.ts +1 -1
- package/dist/{use-image-url-CWM0aE7u.js → use-image-url-o26z5K19.js} +1 -1
- package/dist/{use-multiple-file-upload-Vt01wSm6.js → use-multiple-file-upload-DoEljuzF.js} +2 -2
- package/dist/{user-avatar-info-CwXzoLlH.js → user-avatar-info-DObwPt9B.js} +80 -93
- package/package.json +1 -1
|
@@ -192,12 +192,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
192
192
|
rowSort: (payload: import("../table-entity/index.type").TableEntityRowSortPayload) => any;
|
|
193
193
|
}, string, {
|
|
194
194
|
data: import("../table-entity/index.type").TableEntityRecord[] | import("../table-entity/index.type").TableEntityDataFetcher<import("../table-entity/index.type").TableEntityRecord>;
|
|
195
|
-
height: number;
|
|
196
195
|
columns: ColumnsItem[];
|
|
197
|
-
|
|
196
|
+
height: number;
|
|
198
197
|
rowHeight: number;
|
|
199
198
|
cache: number;
|
|
200
199
|
selectable: boolean;
|
|
200
|
+
multiple: boolean;
|
|
201
201
|
rowKey: string;
|
|
202
202
|
selectedKeys: any[];
|
|
203
203
|
tree: boolean;
|
|
@@ -245,12 +245,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
245
245
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
246
246
|
} & Readonly<{
|
|
247
247
|
data: import("../table-entity/index.type").TableEntityRecord[] | import("../table-entity/index.type").TableEntityDataFetcher<import("../table-entity/index.type").TableEntityRecord>;
|
|
248
|
-
height: number;
|
|
249
248
|
columns: ColumnsItem[];
|
|
250
|
-
|
|
249
|
+
height: number;
|
|
251
250
|
rowHeight: number;
|
|
252
251
|
cache: number;
|
|
253
252
|
selectable: boolean;
|
|
253
|
+
multiple: boolean;
|
|
254
254
|
rowKey: string;
|
|
255
255
|
selectedKeys: any[];
|
|
256
256
|
tree: boolean;
|
|
@@ -334,7 +334,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
334
334
|
onImportSuccess?: ((result: import("../import-dialog").ImportDialogSubmitResult) => any) | undefined;
|
|
335
335
|
onImportError?: ((error: Error | import("../import-dialog").ImportDialogSubmitResult) => any) | undefined;
|
|
336
336
|
onRowSort?: ((payload: import("../table-entity/index.type").TableEntityRowSortPayload) => any) | undefined;
|
|
337
|
-
}>, "clearSelection" | "getSelectedRows" | "getSelectedCount" | "setSelectedKeys" | "openImport" | "reload" | ("data" | "
|
|
337
|
+
}>, "clearSelection" | "getSelectedRows" | "getSelectedCount" | "setSelectedKeys" | "openImport" | "reload" | ("data" | "columns" | "height" | "rowHeight" | "cache" | "selectable" | "multiple" | "rowKey" | "selectedKeys" | "tree" | "treeChildrenKey" | "expandColumnKey" | "expandedRowKeys" | "defaultExpandedRowKeys" | "indentSize" | "iconSize" | "per_page" | "current_page" | "query" | "showPagination" | "showActions" | "actionColumnTitle" | "actions" | "pushActions" | "rowDraggable" | "rowDragHandle" | "rowDragDisabled" | "resizable" | "minColumnWidth" | "showColumnSettings" | "permissionCode" | "importDialog")> & {
|
|
338
338
|
clearSelection: () => void;
|
|
339
339
|
getSelectedRows: () => Record<string, any>[];
|
|
340
340
|
getSelectedCount: () => number;
|
|
@@ -511,12 +511,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
511
511
|
rowSort: (payload: import("../table-entity/index.type").TableEntityRowSortPayload) => any;
|
|
512
512
|
}, string, {
|
|
513
513
|
data: import("../table-entity/index.type").TableEntityRecord[] | import("../table-entity/index.type").TableEntityDataFetcher<import("../table-entity/index.type").TableEntityRecord>;
|
|
514
|
-
height: number;
|
|
515
514
|
columns: ColumnsItem[];
|
|
516
|
-
|
|
515
|
+
height: number;
|
|
517
516
|
rowHeight: number;
|
|
518
517
|
cache: number;
|
|
519
518
|
selectable: boolean;
|
|
519
|
+
multiple: boolean;
|
|
520
520
|
rowKey: string;
|
|
521
521
|
selectedKeys: any[];
|
|
522
522
|
tree: boolean;
|
|
@@ -564,12 +564,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
564
564
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
565
565
|
} & Readonly<{
|
|
566
566
|
data: import("../table-entity/index.type").TableEntityRecord[] | import("../table-entity/index.type").TableEntityDataFetcher<import("../table-entity/index.type").TableEntityRecord>;
|
|
567
|
-
height: number;
|
|
568
567
|
columns: ColumnsItem[];
|
|
569
|
-
|
|
568
|
+
height: number;
|
|
570
569
|
rowHeight: number;
|
|
571
570
|
cache: number;
|
|
572
571
|
selectable: boolean;
|
|
572
|
+
multiple: boolean;
|
|
573
573
|
rowKey: string;
|
|
574
574
|
selectedKeys: any[];
|
|
575
575
|
tree: boolean;
|
|
@@ -653,7 +653,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
653
653
|
onImportSuccess?: ((result: import("../import-dialog").ImportDialogSubmitResult) => any) | undefined;
|
|
654
654
|
onImportError?: ((error: Error | import("../import-dialog").ImportDialogSubmitResult) => any) | undefined;
|
|
655
655
|
onRowSort?: ((payload: import("../table-entity/index.type").TableEntityRowSortPayload) => any) | undefined;
|
|
656
|
-
}>, "clearSelection" | "getSelectedRows" | "getSelectedCount" | "setSelectedKeys" | "openImport" | "reload" | ("data" | "
|
|
656
|
+
}>, "clearSelection" | "getSelectedRows" | "getSelectedCount" | "setSelectedKeys" | "openImport" | "reload" | ("data" | "columns" | "height" | "rowHeight" | "cache" | "selectable" | "multiple" | "rowKey" | "selectedKeys" | "tree" | "treeChildrenKey" | "expandColumnKey" | "expandedRowKeys" | "defaultExpandedRowKeys" | "indentSize" | "iconSize" | "per_page" | "current_page" | "query" | "showPagination" | "showActions" | "actionColumnTitle" | "actions" | "pushActions" | "rowDraggable" | "rowDragHandle" | "rowDragDisabled" | "resizable" | "minColumnWidth" | "showColumnSettings" | "permissionCode" | "importDialog")> & {
|
|
657
657
|
clearSelection: () => void;
|
|
658
658
|
getSelectedRows: () => Record<string, any>[];
|
|
659
659
|
getSelectedCount: () => number;
|
|
@@ -11,8 +11,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
11
11
|
code: string;
|
|
12
12
|
label: string | number | null;
|
|
13
13
|
value: string | number | null;
|
|
14
|
-
color: string | null;
|
|
15
14
|
dictType: string;
|
|
15
|
+
color: string | null;
|
|
16
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const _default: typeof __VLS_export;
|
|
18
18
|
export default _default;
|
|
@@ -68,12 +68,12 @@ declare const __VLS_base: import("vue").DefineComponent<DrawerFormPageProps, {
|
|
|
68
68
|
size: string | number;
|
|
69
69
|
mode: import("../schema-form").SchemaFormMode;
|
|
70
70
|
cancelText: string;
|
|
71
|
-
direction: "ltr" | "rtl" | "btt" | "ttb";
|
|
72
|
-
disabled: boolean;
|
|
73
71
|
drawerProps: Record<string, any>;
|
|
72
|
+
disabled: boolean;
|
|
74
73
|
loading: boolean;
|
|
75
74
|
schema: import("../schema-form").SchemaFormItem[];
|
|
76
75
|
formValues: DrawerFormValues;
|
|
76
|
+
direction: "rtl" | "btt" | "ltr" | "ttb";
|
|
77
77
|
fullscreenButton: boolean;
|
|
78
78
|
normalColumns: number;
|
|
79
79
|
fullscreenColumns: number;
|
|
@@ -32,8 +32,8 @@ interface Props {
|
|
|
32
32
|
}
|
|
33
33
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
34
34
|
progress: number;
|
|
35
|
-
disabled: boolean;
|
|
36
35
|
file: AttachmentData;
|
|
36
|
+
disabled: boolean;
|
|
37
37
|
fileName: string;
|
|
38
38
|
iconClass: string;
|
|
39
39
|
iconSvg: string;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import type { AttachmentData, FileUploadProps } from './file-upload.type';
|
|
2
2
|
declare const __VLS_export: import("vue").DefineComponent<FileUploadProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
3
|
"update:modelValue": (value: string | AttachmentData | AttachmentData[] | undefined) => any;
|
|
4
|
+
preview: (file: AttachmentData) => any;
|
|
4
5
|
uploadSuccess: (file: AttachmentData) => any;
|
|
5
6
|
uploadError: (error: Error) => any;
|
|
6
7
|
remove: (file: AttachmentData) => any;
|
|
7
|
-
preview: (file: AttachmentData) => any;
|
|
8
8
|
download: (file: AttachmentData) => any;
|
|
9
9
|
}, string, import("vue").PublicProps, Readonly<FileUploadProps> & Readonly<{
|
|
10
10
|
"onUpdate:modelValue"?: ((value: string | AttachmentData | AttachmentData[] | undefined) => any) | undefined;
|
|
11
|
+
onPreview?: ((file: AttachmentData) => any) | undefined;
|
|
11
12
|
onUploadSuccess?: ((file: AttachmentData) => any) | undefined;
|
|
12
13
|
onUploadError?: ((error: Error) => any) | undefined;
|
|
13
14
|
onRemove?: ((file: AttachmentData) => any) | undefined;
|
|
14
|
-
onPreview?: ((file: AttachmentData) => any) | undefined;
|
|
15
15
|
onDownload?: ((file: AttachmentData) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
modelValue: string | AttachmentData | AttachmentData[];
|
|
18
18
|
width: number;
|
|
19
|
-
height: number;
|
|
20
|
-
disabled: boolean;
|
|
21
19
|
accept: string[];
|
|
22
20
|
maxSize: number;
|
|
21
|
+
height: number;
|
|
23
22
|
placeholder: string;
|
|
23
|
+
disabled: boolean;
|
|
24
24
|
fileName: string;
|
|
25
25
|
errorMessage: string;
|
|
26
26
|
showPreview: boolean;
|
|
@@ -17,10 +17,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
17
17
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
18
18
|
}>, {
|
|
19
19
|
width: number;
|
|
20
|
-
height: number;
|
|
21
|
-
disabled: boolean;
|
|
22
20
|
accept: string[];
|
|
23
21
|
maxSize: number;
|
|
22
|
+
height: number;
|
|
23
|
+
disabled: boolean;
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
26
26
|
export default _default;
|
|
@@ -16,9 +16,9 @@ declare const __VLS_template: () => {
|
|
|
16
16
|
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
17
17
|
declare const __VLS_base: import("vue").DefineComponent<ImagesViewProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImagesViewProps> & Readonly<{}>, {
|
|
18
18
|
size: number;
|
|
19
|
-
offset: number;
|
|
20
19
|
images: string[];
|
|
21
20
|
maxStack: number;
|
|
21
|
+
offset: number;
|
|
22
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
@@ -85,6 +85,10 @@ export interface ImportDialogProps {
|
|
|
85
85
|
maxSize?: number;
|
|
86
86
|
maxPreviewCount?: number;
|
|
87
87
|
tips?: string[];
|
|
88
|
+
/** 导入说明文字,显示在上传区上方「导入说明」标题下;未传时不显示该区域 */
|
|
89
|
+
importDesc?: string;
|
|
90
|
+
/** 跳过的流程步骤:'preview' 确认数据、'mapping' 字段映射;跳过后上传文件确认即直接导入 */
|
|
91
|
+
skipSteps?: Array<'mapping' | 'preview'>;
|
|
88
92
|
targetFields?: ImportDialogTargetField[];
|
|
89
93
|
parseFile?: (payload: ImportDialogParsePayload) => Promise<ImportDialogParseResult>;
|
|
90
94
|
submitImport?: (payload: ImportDialogSubmitPayload) => Promise<ImportDialogSubmitResult>;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
import type { ImportDialogMode,
|
|
2
|
-
declare const
|
|
1
|
+
import type { ImportDialogMode, ImportDialogParseResult, ImportDialogProps, ImportDialogSubmitResult } from './index.type';
|
|
2
|
+
declare const __VLS_template: () => {
|
|
3
|
+
__VLS_Slots: {
|
|
4
|
+
'desc-title'?: (props: {}) => any;
|
|
5
|
+
} & {
|
|
6
|
+
'desc-content'?: (props: {}) => any;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<ImportDialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
11
|
"update:modelValue": (value: boolean) => any;
|
|
4
12
|
cancel: () => any;
|
|
5
13
|
error: (result: Error | ImportDialogSubmitResult) => any;
|
|
@@ -20,16 +28,24 @@ declare const __VLS_export: import("vue").DefineComponent<ImportDialogProps, {},
|
|
|
20
28
|
templateUrl: string;
|
|
21
29
|
templateMethod: "POST" | "GET";
|
|
22
30
|
defaultMode: ImportDialogMode;
|
|
23
|
-
modes: ImportDialogModeOption[];
|
|
31
|
+
modes: import("./index.type").ImportDialogModeOption[];
|
|
24
32
|
accept: string[];
|
|
25
33
|
maxSize: number;
|
|
26
34
|
maxPreviewCount: number;
|
|
27
35
|
tips: string[];
|
|
36
|
+
importDesc: string;
|
|
37
|
+
skipSteps: ("mapping" | "preview")[];
|
|
28
38
|
targetFields: import("./index.type").ImportDialogTargetField[];
|
|
29
39
|
parseFile: (payload: import("./index.type").ImportDialogParsePayload) => Promise<ImportDialogParseResult>;
|
|
30
40
|
submitImport: (payload: import("./index.type").ImportDialogSubmitPayload) => Promise<ImportDialogSubmitResult>;
|
|
31
41
|
resetOnClose: boolean;
|
|
32
42
|
templateName: string;
|
|
33
43
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
44
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
45
|
declare const _default: typeof __VLS_export;
|
|
35
46
|
export default _default;
|
|
47
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
48
|
+
new (): {
|
|
49
|
+
$slots: S;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -24,25 +24,25 @@ type __VLS_Slots = {
|
|
|
24
24
|
};
|
|
25
25
|
declare const __VLS_base: import("vue").DefineComponent<PictureUploadProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
26
26
|
"update:modelValue": (value: string | string[] | AttachmentData | AttachmentData[] | undefined) => any;
|
|
27
|
+
preview: (file: AttachmentData) => any;
|
|
27
28
|
uploadSuccess: (file: AttachmentData) => any;
|
|
28
29
|
uploadError: (error: Error) => any;
|
|
29
30
|
remove: (file: AttachmentData) => any;
|
|
30
|
-
preview: (file: AttachmentData) => any;
|
|
31
31
|
download: (file: AttachmentData) => any;
|
|
32
32
|
}, string, import("vue").PublicProps, Readonly<PictureUploadProps> & Readonly<{
|
|
33
33
|
"onUpdate:modelValue"?: ((value: string | string[] | AttachmentData | AttachmentData[] | undefined) => any) | undefined;
|
|
34
|
+
onPreview?: ((file: AttachmentData) => any) | undefined;
|
|
34
35
|
onUploadSuccess?: ((file: AttachmentData) => any) | undefined;
|
|
35
36
|
onUploadError?: ((error: Error) => any) | undefined;
|
|
36
37
|
onRemove?: ((file: AttachmentData) => any) | undefined;
|
|
37
|
-
onPreview?: ((file: AttachmentData) => any) | undefined;
|
|
38
38
|
onDownload?: ((file: AttachmentData) => any) | undefined;
|
|
39
39
|
}>, {
|
|
40
40
|
modelValue: string | string[] | AttachmentData | AttachmentData[];
|
|
41
41
|
width: number;
|
|
42
|
-
height: number;
|
|
43
|
-
disabled: boolean;
|
|
44
42
|
accept: string[];
|
|
45
43
|
maxSize: number;
|
|
44
|
+
height: number;
|
|
45
|
+
disabled: boolean;
|
|
46
46
|
errorMessage: string;
|
|
47
47
|
showPreview: boolean;
|
|
48
48
|
showDownload: boolean;
|
|
@@ -17,9 +17,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
17
17
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
18
18
|
}>, {
|
|
19
19
|
modelValue: string;
|
|
20
|
-
maxHeight: string;
|
|
21
20
|
placeholder: string;
|
|
22
21
|
editable: boolean;
|
|
22
|
+
maxHeight: string;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
@@ -40,10 +40,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
40
40
|
}>, {
|
|
41
41
|
mode: import("./schema-form.type").SchemaFormMode;
|
|
42
42
|
columns: number;
|
|
43
|
-
underline: boolean;
|
|
44
43
|
disabled: boolean;
|
|
45
44
|
loading: boolean;
|
|
46
45
|
labelPosition: "top" | "left" | "right";
|
|
46
|
+
underline: boolean;
|
|
47
47
|
labelAlign: "center" | "left" | "right";
|
|
48
48
|
itemGap: string | number;
|
|
49
49
|
groupGap: string | number;
|
|
@@ -16,8 +16,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
16
16
|
"onUpdate:modelValue"?: ((value: TranslateLanguageValues) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
modelValue: undefined;
|
|
19
|
-
disabled: boolean;
|
|
20
19
|
placeholder: string;
|
|
20
|
+
disabled: boolean;
|
|
21
21
|
config: TranslateConfig;
|
|
22
22
|
inputProps: Record<string, any>;
|
|
23
23
|
labelPosition: "top" | "left" | "right";
|
|
@@ -4,21 +4,24 @@ type __VLS_Props = {
|
|
|
4
4
|
inline?: boolean;
|
|
5
5
|
languages: TranslateLanguage[];
|
|
6
6
|
loading?: boolean;
|
|
7
|
+
/** 是否将语言下拉列表挂载到浮层外;富文本场景设为 false,避免鼠标移入列表时关闭悬停浮层。 */
|
|
8
|
+
selectTeleported?: boolean;
|
|
7
9
|
sourceLanguage: string;
|
|
8
10
|
targetLanguage: string;
|
|
9
11
|
};
|
|
10
12
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
-
translate: (command: TranslateCommand) => any;
|
|
12
13
|
"update:sourceLanguage": (value: string) => any;
|
|
13
14
|
"update:targetLanguage": (value: string) => any;
|
|
15
|
+
translate: (command: TranslateCommand) => any;
|
|
14
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
onTranslate?: ((command: TranslateCommand) => any) | undefined;
|
|
16
17
|
"onUpdate:sourceLanguage"?: ((value: string) => any) | undefined;
|
|
17
18
|
"onUpdate:targetLanguage"?: ((value: string) => any) | undefined;
|
|
19
|
+
onTranslate?: ((command: TranslateCommand) => any) | undefined;
|
|
18
20
|
}>, {
|
|
19
|
-
inline: boolean;
|
|
20
21
|
disabled: boolean;
|
|
22
|
+
inline: boolean;
|
|
21
23
|
loading: boolean;
|
|
24
|
+
selectTeleported: boolean;
|
|
22
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
26
|
declare const _default: typeof __VLS_export;
|
|
24
27
|
export default _default;
|
|
@@ -49,8 +49,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
49
49
|
}>, {
|
|
50
50
|
mode: SchemaFormMode;
|
|
51
51
|
columns: number;
|
|
52
|
-
disabled: boolean;
|
|
53
52
|
showActions: boolean;
|
|
53
|
+
disabled: boolean;
|
|
54
54
|
labelPosition: "top" | "left" | "right";
|
|
55
55
|
labelAlign: "center" | "left" | "right";
|
|
56
56
|
labelWidth: string | number;
|
|
@@ -60,12 +60,12 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
60
60
|
onRowSort?: ((payload: TableEntityRowSortPayload) => any) | undefined;
|
|
61
61
|
}>, {
|
|
62
62
|
data: import("./index.type").TableEntityRecord[] | import("./index.type").TableEntityDataFetcher<import("./index.type").TableEntityRecord>;
|
|
63
|
-
height: number;
|
|
64
63
|
columns: ColumnsItem[];
|
|
65
|
-
|
|
64
|
+
height: number;
|
|
66
65
|
rowHeight: number;
|
|
67
66
|
cache: number;
|
|
68
67
|
selectable: boolean;
|
|
68
|
+
multiple: boolean;
|
|
69
69
|
rowKey: string;
|
|
70
70
|
selectedKeys: any[];
|
|
71
71
|
tree: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { UserAvatarDrawerField } from '../../runtime/context';
|
|
1
2
|
/** ****************************** props ********************************/
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
userId?: number | string;
|
|
@@ -18,6 +19,7 @@ type __VLS_Props = {
|
|
|
18
19
|
drawerTitle?: string;
|
|
19
20
|
drawerSize?: number | string;
|
|
20
21
|
drawerProps?: Record<string, unknown>;
|
|
22
|
+
drawerFields?: UserAvatarDrawerField[];
|
|
21
23
|
nickName?: string;
|
|
22
24
|
deptName?: string;
|
|
23
25
|
sex?: string;
|
|
@@ -26,6 +28,11 @@ export type UserAvatarGenderInput = 1 | 2 | '' | 'F' | 'f' | 'female' | 'M' | 'm
|
|
|
26
28
|
declare function openDrawer(): void;
|
|
27
29
|
declare function closeDrawer(): void;
|
|
28
30
|
type __VLS_ModelProps = {
|
|
31
|
+
/**
|
|
32
|
+
* 抽屉详情卡片字段配置(UserAvatarDrawerField)定义在 @/runtime/context,
|
|
33
|
+
* 可通过 setupDisguise({ userAvatarDrawerFields }) 全局注入,
|
|
34
|
+
* 组件 drawerFields prop 优先于全局配置。
|
|
35
|
+
*/
|
|
29
36
|
'drawerVisible'?: boolean;
|
|
30
37
|
};
|
|
31
38
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
@@ -72,6 +79,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
72
79
|
drawerTitle: string;
|
|
73
80
|
drawerSize: string | number;
|
|
74
81
|
drawerProps: Record<string, unknown>;
|
|
82
|
+
drawerFields: UserAvatarDrawerField[];
|
|
75
83
|
nickName: string;
|
|
76
84
|
deptName: string;
|
|
77
85
|
sex: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -27,7 +27,8 @@ export type * from './components/search-form/index.type.js';
|
|
|
27
27
|
export type * from './components/table-entity/index.type.js';
|
|
28
28
|
export { default as TableEntity } from './components/table-entity/index.vue';
|
|
29
29
|
export { default as UserAvatarInfo } from './components/user-avatar-info/index.vue';
|
|
30
|
+
export type { UserAvatarGenderInput } from './components/user-avatar-info/index.vue';
|
|
30
31
|
export { getEntity, paginateLocally, registerEntity } from './entities/index';
|
|
31
32
|
export type { EntityDefinition, EntityFetchParams, EntityFetchResult, } from './entities/index';
|
|
32
33
|
export { setupDisguise } from './setup';
|
|
33
|
-
export type { DisguiseOptions, DisguiseOptions as SetupDisguiseOptions, PaginationConfig, } from './setup';
|
|
34
|
+
export type { DisguiseOptions, DisguiseOptions as SetupDisguiseOptions, PaginationConfig, UserAvatarDrawerField, } from './setup';
|