disguise-ui 0.2.3 → 0.2.5
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/dist/avatar-cell-BPzpEjQT.js +31 -0
- package/dist/context-DqlD6qDJ.js +50 -0
- package/dist/disguise-ui.js +1540 -1539
- package/dist/file-upload-BkRSvBlx.js +4 -0
- package/dist/{file-upload-g-PauJpk.js → file-upload-CeqibzK8.js} +5 -5
- package/dist/{i18n-DQW_MS90.js → i18n-DejVnxC8.js} +1 -1
- package/dist/{picture-upload-KEFFSvsi.js → picture-upload-E97PfpUU.js} +3 -3
- package/dist/{picture-upload-vp1RCUJo.js → picture-upload-uc9FsqEo.js} +1 -1
- 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 +2 -2
- 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/picture-upload/picture-upload.vue.d.ts +2 -2
- package/dist/types/components/rich-text-editor/index.vue.d.ts +1 -1
- package/dist/types/components/schema-form/index.d.ts +1 -1
- package/dist/types/components/schema-form/schema-form.type.d.ts +7 -3
- 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 +3 -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/index.d.ts +5 -1
- package/dist/types/runtime/context.d.ts +3321 -0
- package/dist/types/setup.d.ts +1 -1
- package/dist/{use-image-url-hImb4UEO.js → use-image-url-Bs5WMZ6L.js} +1 -1
- package/dist/{use-multiple-file-upload-BrhklFSk.js → use-multiple-file-upload-BFNkLVy-.js} +3 -3
- package/dist/user-avatar-info-SD6OE607.js +276 -0
- package/package.json +1 -1
- package/dist/avatar-cell-BzklaM_h.js +0 -302
- package/dist/context-CpMT_OSb.js +0 -34
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FormItemRule } from 'element-plus';
|
|
1
|
+
import type { CascaderComponentProps, FormItemRule } from 'element-plus';
|
|
2
2
|
import type { RichTextEditorProps } from '../rich-text-editor/index.type';
|
|
3
3
|
import type { SchemaFormComponent, SchemaFormComponentConfig } from './schema-form-registry';
|
|
4
4
|
/** ****************************** 基础 ********************************/
|
|
@@ -68,7 +68,7 @@ export type TranslateConfig = {
|
|
|
68
68
|
/** 未配置时使用显式提示的模拟翻译(复制源文到目标语言) */
|
|
69
69
|
translate?: (ctx: TranslateHandlerContext) => Partial<TranslateLanguageValues> | Promise<Partial<TranslateLanguageValues> | undefined> | undefined;
|
|
70
70
|
};
|
|
71
|
-
export type FieldType = 'async-select' | 'checkbox' | 'component' | 'date' | 'datetime' | 'file' | 'number' | 'picture' | 'radio' | 'rich-text' | 'select' | 'slot' | 'switch' | 'text' | 'textarea' | 'upload';
|
|
71
|
+
export type FieldType = 'async-select' | 'cascader' | 'checkbox' | 'component' | 'date' | 'datetime' | 'file' | 'number' | 'picture' | 'radio' | 'rich-text' | 'select' | 'slot' | 'switch' | 'text' | 'textarea' | 'upload';
|
|
72
72
|
/** ****************************** 字段 ********************************/
|
|
73
73
|
type BaseField<TProps extends Record<string, any> = Record<string, any>> = {
|
|
74
74
|
/** 覆盖内置控件,或配合 type: 'component' 使用注册的自定义组件 */
|
|
@@ -115,6 +115,8 @@ export type SchemaRichTextToolContext = {
|
|
|
115
115
|
};
|
|
116
116
|
/** type: 'rich-text' 字段 props 的完整类型。 */
|
|
117
117
|
export type SchemaRichTextEditorProps = Omit<RichTextEditorProps<SchemaRichTextToolContext>, 'modelValue' | 'toolContext'>;
|
|
118
|
+
/** type: 'cascader' 字段 props 的完整类型。 */
|
|
119
|
+
export type SchemaCascaderProps = Omit<CascaderComponentProps, 'modelValue'>;
|
|
118
120
|
export type ApiFieldOptions = {
|
|
119
121
|
entityKey: string;
|
|
120
122
|
labelKey?: string;
|
|
@@ -145,7 +147,9 @@ export type SchemaFormField = ((BaseField & ({
|
|
|
145
147
|
type: 'checkbox' | 'radio' | 'select';
|
|
146
148
|
} | {
|
|
147
149
|
type: 'date' | 'datetime' | 'file' | 'listExpand' | 'number' | 'picture' | 'slot' | 'switch' | 'text' | 'textarea' | 'upload';
|
|
148
|
-
})) | (BaseField<
|
|
150
|
+
})) | (BaseField<SchemaCascaderProps> & {
|
|
151
|
+
type: 'cascader';
|
|
152
|
+
}) | (BaseField<SchemaRichTextEditorProps> & {
|
|
149
153
|
type: 'rich-text';
|
|
150
154
|
})) & {
|
|
151
155
|
label: string;
|
|
@@ -38,10 +38,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
38
38
|
}>, {
|
|
39
39
|
mode: import("./schema-form.type").SchemaFormMode;
|
|
40
40
|
columns: number;
|
|
41
|
+
underline: boolean;
|
|
41
42
|
disabled: boolean;
|
|
42
43
|
loading: boolean;
|
|
43
44
|
labelPosition: "top" | "left" | "right";
|
|
44
|
-
underline: boolean;
|
|
45
45
|
labelAlign: "center" | "left" | "right";
|
|
46
46
|
itemGap: string | number;
|
|
47
47
|
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
|
-
placeholder: string;
|
|
20
19
|
disabled: boolean;
|
|
20
|
+
placeholder: string;
|
|
21
21
|
config: TranslateConfig;
|
|
22
22
|
inputProps: Record<string, any>;
|
|
23
23
|
labelPosition: "top" | "left" | "right";
|
|
@@ -8,16 +8,16 @@ type __VLS_Props = {
|
|
|
8
8
|
targetLanguage: string;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
translate: (command: TranslateCommand) => any;
|
|
11
12
|
"update:sourceLanguage": (value: string) => any;
|
|
12
13
|
"update:targetLanguage": (value: string) => any;
|
|
13
|
-
translate: (command: TranslateCommand) => any;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onTranslate?: ((command: TranslateCommand) => any) | undefined;
|
|
15
16
|
"onUpdate:sourceLanguage"?: ((value: string) => any) | undefined;
|
|
16
17
|
"onUpdate:targetLanguage"?: ((value: string) => any) | undefined;
|
|
17
|
-
onTranslate?: ((command: TranslateCommand) => any) | undefined;
|
|
18
18
|
}>, {
|
|
19
|
-
disabled: boolean;
|
|
20
19
|
inline: boolean;
|
|
20
|
+
disabled: boolean;
|
|
21
21
|
loading: boolean;
|
|
22
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const _default: typeof __VLS_export;
|
|
@@ -48,8 +48,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
48
48
|
}>, {
|
|
49
49
|
mode: SchemaFormMode;
|
|
50
50
|
columns: number;
|
|
51
|
-
showActions: boolean;
|
|
52
51
|
disabled: boolean;
|
|
52
|
+
showActions: boolean;
|
|
53
53
|
labelPosition: "top" | "left" | "right";
|
|
54
54
|
labelAlign: "center" | "left" | "right";
|
|
55
55
|
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
|
-
columns: ColumnsItem[];
|
|
64
63
|
height: number;
|
|
64
|
+
columns: ColumnsItem[];
|
|
65
|
+
multiple: boolean;
|
|
65
66
|
rowHeight: number;
|
|
66
67
|
cache: number;
|
|
67
68
|
selectable: boolean;
|
|
68
|
-
multiple: boolean;
|
|
69
69
|
rowKey: string;
|
|
70
70
|
selectedKeys: any[];
|
|
71
71
|
tree: boolean;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,10 +3,13 @@ export type * from './components/async-select/async-select.type.js';
|
|
|
3
3
|
export { default as BaseCard } from './components/card/index.vue';
|
|
4
4
|
export { CrudPage } from './components/crud-page/index.js';
|
|
5
5
|
export type * from './components/crud-page/index.type.js';
|
|
6
|
+
export { default as DialogList } from './components/dialog-list/index.vue';
|
|
6
7
|
export { default as DictTag } from './components/dict-tag/index.vue';
|
|
7
8
|
export { DrawerFormPage, useDrawerFormPage, } from './components/drawer-form-page/index.js';
|
|
8
9
|
export type * from './components/drawer-form-page/index.type.js';
|
|
9
10
|
export { default as DisguiseIcon } from './components/disguise-icon/index.vue';
|
|
11
|
+
export { default as FileUpload } from './components/file-upload/file-upload.vue';
|
|
12
|
+
export type * from './components/file-upload/file-upload.type.js';
|
|
10
13
|
export { default as ImageUpload } from './components/image-upload/index.vue';
|
|
11
14
|
export { default as ImagesView } from './components/images-view/index.vue';
|
|
12
15
|
export type { ImagesViewProps } from './components/images-view/index.vue';
|
|
@@ -22,7 +25,8 @@ export { SearchForm } from './components/search-form/index.js';
|
|
|
22
25
|
export type * from './components/search-form/index.type.js';
|
|
23
26
|
export type * from './components/table-entity/index.type.js';
|
|
24
27
|
export { default as TableEntity } from './components/table-entity/index.vue';
|
|
28
|
+
export { default as UserAvatarInfo } from './components/user-avatar-info/index.vue';
|
|
25
29
|
export { getEntity, paginateLocally, registerEntity } from './entities/index';
|
|
26
30
|
export type { EntityDefinition, EntityFetchParams, EntityFetchResult, } from './entities/index';
|
|
27
31
|
export { setupDisguise } from './setup';
|
|
28
|
-
export type { DisguiseOptions, DisguiseOptions as SetupDisguiseOptions, } from './setup';
|
|
32
|
+
export type { DisguiseOptions, DisguiseOptions as SetupDisguiseOptions, PaginationConfig, } from './setup';
|