@liujitcn/kratos-admin-core 0.0.65 → 0.0.66
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/package/declarations/src/components/CodeBlock/index.vue.d.ts +15 -0
- package/dist/package/declarations/src/components/ProForm/components/ProFormItem.vue.d.ts +4 -4
- package/dist/package/declarations/src/components/ProForm/interface/index.d.ts +1 -1
- package/dist/package/declarations/src/components/YamlEditor/index.vue.d.ts +7 -1
- package/dist/package/declarations/src/locales/generated.d.ts +356 -0
- package/dist/package/declarations/src/views/demo/components/DemoDetailDrawer.vue.d.ts +15 -0
- package/dist/package/declarations/src/views/demo/components/DemoFormDialog.vue.d.ts +69 -0
- package/dist/package/declarations/src/views/demo/demo-data.d.ts +145 -0
- package/dist/package/declarations/src/views/demo/table/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/demo/tree-grid/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/demo/tree-table/index.vue.d.ts +3 -0
- package/dist/package/src/components/CodeBlock/index.vue +156 -0
- package/dist/package/src/components/ProForm/components/ProFormItem.vue +5 -1
- package/dist/package/src/components/ProForm/interface/index.ts +1 -0
- package/dist/package/src/components/YamlEditor/index.vue +103 -7
- package/dist/package/src/locales/en-US.json +90 -1
- package/dist/package/src/locales/ja-JP.json +90 -1
- package/dist/package/src/locales/zh-CN.json +90 -1
- package/dist/package/src/locales/zh-TW.json +90 -1
- package/dist/package/src/modules/kratosAdmin.ts +11 -1
- package/dist/package/src/utils/index.ts +2 -1
- package/dist/package/src/utils/request.ts +2 -1
- package/dist/package/src/views/demo/components/DemoDetailDrawer.vue +108 -0
- package/dist/package/src/views/demo/components/DemoFormDialog.vue +470 -0
- package/dist/package/src/views/demo/demo-data.ts +279 -0
- package/dist/package/src/views/demo/table/index.vue +391 -0
- package/dist/package/src/views/demo/tree-grid/index.vue +272 -0
- package/dist/package/src/views/demo/tree-table/index.vue +346 -0
- package/dist/package/types/generated/components.d.ts +4 -1
- package/package.json +9 -1
- package/src/runtime-messages.ts +39 -0
- package/types/generated/components.d.ts +4 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** 代码块组件属性。 */
|
|
2
|
+
interface CodeBlockProps {
|
|
3
|
+
/** 代码原文。 */
|
|
4
|
+
code: string;
|
|
5
|
+
/** 高亮语言,缺省时自动检测。 */
|
|
6
|
+
language?: string;
|
|
7
|
+
/** 代码区最大高度。 */
|
|
8
|
+
maxHeight?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<CodeBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CodeBlockProps> & Readonly<{}>, {
|
|
11
|
+
maxHeight: string;
|
|
12
|
+
language: string;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -7,20 +7,20 @@ interface ProFormItemProps {
|
|
|
7
7
|
declare var __VLS_10: string, __VLS_11: {
|
|
8
8
|
field: ProFormField;
|
|
9
9
|
model: Record<string, any>;
|
|
10
|
-
},
|
|
10
|
+
}, __VLS_145: string, __VLS_146: {
|
|
11
11
|
option: import("element-plus").TransferDataItem;
|
|
12
12
|
field: ProFormField;
|
|
13
13
|
model: Record<string, any>;
|
|
14
|
-
},
|
|
14
|
+
}, __VLS_191: string, __VLS_192: {
|
|
15
15
|
field: ProFormField;
|
|
16
16
|
model: Record<string, any>;
|
|
17
17
|
};
|
|
18
18
|
type __VLS_Slots = {} & {
|
|
19
19
|
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
20
20
|
} & {
|
|
21
|
-
[K in NonNullable<typeof
|
|
21
|
+
[K in NonNullable<typeof __VLS_145>]?: (props: typeof __VLS_146) => any;
|
|
22
22
|
} & {
|
|
23
|
-
[K in NonNullable<typeof
|
|
23
|
+
[K in NonNullable<typeof __VLS_191>]?: (props: typeof __VLS_192) => any;
|
|
24
24
|
};
|
|
25
25
|
declare const __VLS_base: import("vue").DefineComponent<ProFormItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProFormItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FormItemRule } from "element-plus";
|
|
2
2
|
import type { Component } from "vue";
|
|
3
3
|
/** ProForm 支持的字段组件类型。 */
|
|
4
|
-
export type ProFormComponentType = "input" | "password" | "textarea" | "input-number" | "color-picker" | "segmented" | "switch" | "checkbox" | "select" | "tenant-select" | "dict" | "radio-group" | "checkbox-group" | "tree-select" | "date-picker" | "cron-expression" | "transfer" | "image-upload" | "images-upload" | "file-upload" | "files-upload" | "rich-text" | "dynamic-list" | "kv-list" | "slot";
|
|
4
|
+
export type ProFormComponentType = "input" | "password" | "textarea" | "yaml-editor" | "input-number" | "color-picker" | "segmented" | "switch" | "checkbox" | "select" | "tenant-select" | "dict" | "radio-group" | "checkbox-group" | "tree-select" | "date-picker" | "cron-expression" | "transfer" | "image-upload" | "images-upload" | "file-upload" | "files-upload" | "rich-text" | "dynamic-list" | "kv-list" | "slot";
|
|
5
5
|
/** ProForm 标签布局方向。 */
|
|
6
6
|
export type ProFormLabelPosition = "left" | "right" | "top";
|
|
7
7
|
/** ProForm 选择型字段选项。 */
|
|
@@ -3,6 +3,10 @@ interface YamlEditorProps {
|
|
|
3
3
|
modelValue: string;
|
|
4
4
|
placeholderText?: string;
|
|
5
5
|
minHeight?: string;
|
|
6
|
+
/** 编辑器最大高度;内容超出后编辑器不再撑高页面,改为内部滚动。 */
|
|
7
|
+
maxHeight?: string;
|
|
8
|
+
/** 是否默认开启自动换行,可通过工具栏切换。 */
|
|
9
|
+
wrap?: boolean;
|
|
6
10
|
invalid?: boolean;
|
|
7
11
|
lineLabel?: string;
|
|
8
12
|
/** 根据光标行列生成状态栏文案。 */
|
|
@@ -13,9 +17,11 @@ declare const __VLS_export: import("vue").DefineComponent<YamlEditorProps, {}, {
|
|
|
13
17
|
}, string, import("vue").PublicProps, Readonly<YamlEditorProps> & Readonly<{
|
|
14
18
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
15
19
|
}>, {
|
|
20
|
+
maxHeight: string;
|
|
16
21
|
invalid: boolean;
|
|
17
|
-
minHeight: string;
|
|
18
22
|
placeholderText: string;
|
|
23
|
+
minHeight: string;
|
|
24
|
+
wrap: boolean;
|
|
19
25
|
lineLabel: string;
|
|
20
26
|
formatPosition: (line: number, column: number) => string;
|
|
21
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -98,6 +98,7 @@ export declare const LOCALE_MESSAGES: {
|
|
|
98
98
|
"core.markdown.action.copy_code": string;
|
|
99
99
|
"core.markdown.message.copy_success": string;
|
|
100
100
|
"core.markdown.message.copy_failed": string;
|
|
101
|
+
"core.yaml_editor.action.wrap": string;
|
|
101
102
|
"core.loading.text": string;
|
|
102
103
|
"core.layout.avatar": string;
|
|
103
104
|
"core.layout.logo_alt": string;
|
|
@@ -392,6 +393,94 @@ export declare const LOCALE_MESSAGES: {
|
|
|
392
393
|
"core.home.demo_scope": string;
|
|
393
394
|
"core.home.main_title": string;
|
|
394
395
|
"core.router.pending_view_unregistered": string;
|
|
396
|
+
"core.demo.resource.employee": string;
|
|
397
|
+
"core.demo.resource.project": string;
|
|
398
|
+
"core.demo.resource.doc_catalog": string;
|
|
399
|
+
"core.demo.tree.title.dept_tree": string;
|
|
400
|
+
"core.demo.tree.field.name": string;
|
|
401
|
+
"core.demo.tree.field.email": string;
|
|
402
|
+
"core.demo.tree.field.phone": string;
|
|
403
|
+
"core.demo.tree.field.salary": string;
|
|
404
|
+
"core.demo.tree.field.entry_date": string;
|
|
405
|
+
"core.demo.table.field.name": string;
|
|
406
|
+
"core.demo.table.field.level": string;
|
|
407
|
+
"core.demo.table.field.owner": string;
|
|
408
|
+
"core.demo.table.field.budget": string;
|
|
409
|
+
"core.demo.table.field.task_total": string;
|
|
410
|
+
"core.demo.table.field.progress": string;
|
|
411
|
+
"core.demo.table.field.region": string;
|
|
412
|
+
"core.demo.table.field.tags": string;
|
|
413
|
+
"core.demo.table.field.owner_group": string;
|
|
414
|
+
"core.demo.table.field.enabled": string;
|
|
415
|
+
"core.demo.table.group.task": string;
|
|
416
|
+
"core.demo.table.tooltip.progress": string;
|
|
417
|
+
"core.demo.grid.field.name": string;
|
|
418
|
+
"core.demo.grid.field.code": string;
|
|
419
|
+
"core.demo.grid.field.doc_count": string;
|
|
420
|
+
"core.demo.grid.field.path": string;
|
|
421
|
+
"core.demo.grid.action.create_child": string;
|
|
422
|
+
"core.demo.grid.action.expand_all": string;
|
|
423
|
+
"core.demo.grid.action.collapse_all": string;
|
|
424
|
+
"core.demo.grid.message.has_children": string;
|
|
425
|
+
"core.demo.form.title.demo_form": string;
|
|
426
|
+
"core.demo.form.group.basic": string;
|
|
427
|
+
"core.demo.form.group.choice": string;
|
|
428
|
+
"core.demo.form.group.advanced": string;
|
|
429
|
+
"core.demo.form.field.name": string;
|
|
430
|
+
"core.demo.form.field.password": string;
|
|
431
|
+
"core.demo.form.field.intro": string;
|
|
432
|
+
"core.demo.form.field.count": string;
|
|
433
|
+
"core.demo.form.field.color": string;
|
|
434
|
+
"core.demo.form.field.enabled": string;
|
|
435
|
+
"core.demo.form.field.agreed": string;
|
|
436
|
+
"core.demo.form.field.invite_code": string;
|
|
437
|
+
"core.demo.form.field.mode": string;
|
|
438
|
+
"core.demo.form.mode.card": string;
|
|
439
|
+
"core.demo.form.mode.list": string;
|
|
440
|
+
"core.demo.form.mode.table": string;
|
|
441
|
+
"core.demo.form.field.level": string;
|
|
442
|
+
"core.demo.form.field.gender": string;
|
|
443
|
+
"core.demo.form.field.visibility": string;
|
|
444
|
+
"core.demo.form.visibility.public": string;
|
|
445
|
+
"core.demo.form.visibility.private": string;
|
|
446
|
+
"core.demo.form.field.hobbies": string;
|
|
447
|
+
"core.demo.form.hobby.review": string;
|
|
448
|
+
"core.demo.form.hobby.deploy": string;
|
|
449
|
+
"core.demo.form.hobby.metric": string;
|
|
450
|
+
"core.demo.form.field.birthday": string;
|
|
451
|
+
"core.demo.form.field.range": string;
|
|
452
|
+
"core.demo.form.field.cron": string;
|
|
453
|
+
"core.demo.form.placeholder.cron": string;
|
|
454
|
+
"core.demo.form.field.members": string;
|
|
455
|
+
"core.demo.form.transfer.candidates": string;
|
|
456
|
+
"core.demo.form.transfer.selected": string;
|
|
457
|
+
"core.demo.form.field.avatar": string;
|
|
458
|
+
"core.demo.form.field.gallery": string;
|
|
459
|
+
"core.demo.form.field.attachment": string;
|
|
460
|
+
"core.demo.form.field.attachments": string;
|
|
461
|
+
"core.demo.form.field.content": string;
|
|
462
|
+
"core.demo.form.field.config": string;
|
|
463
|
+
"core.demo.form.field.aliases": string;
|
|
464
|
+
"core.demo.form.field.properties": string;
|
|
465
|
+
"core.demo.form.action.random_code": string;
|
|
466
|
+
"core.demo.form.action.add_property": string;
|
|
467
|
+
"core.demo.form.tooltip.count": string;
|
|
468
|
+
"core.demo.form.message.submit_success": string;
|
|
469
|
+
"core.demo.detail.tab.basic": string;
|
|
470
|
+
"core.demo.detail.tab.progress": string;
|
|
471
|
+
"core.demo.detail.tab.timeline": string;
|
|
472
|
+
"core.demo.detail.tab.raw": string;
|
|
473
|
+
"core.demo.detail.raw.title": string;
|
|
474
|
+
"core.demo.detail.section.basic": string;
|
|
475
|
+
"core.demo.detail.section.work": string;
|
|
476
|
+
"core.demo.detail.step.create": string;
|
|
477
|
+
"core.demo.detail.step.review": string;
|
|
478
|
+
"core.demo.detail.step.publish": string;
|
|
479
|
+
"core.demo.detail.step.done": string;
|
|
480
|
+
"core.demo.detail.timeline.created": string;
|
|
481
|
+
"core.demo.detail.timeline.updated": string;
|
|
482
|
+
"core.demo.detail.timeline.enabled": string;
|
|
483
|
+
"core.demo.detail.timeline.disabled": string;
|
|
395
484
|
};
|
|
396
485
|
readonly "en-US": {
|
|
397
486
|
"common.action.back": string;
|
|
@@ -488,6 +577,7 @@ export declare const LOCALE_MESSAGES: {
|
|
|
488
577
|
"core.markdown.action.copy_code": string;
|
|
489
578
|
"core.markdown.message.copy_success": string;
|
|
490
579
|
"core.markdown.message.copy_failed": string;
|
|
580
|
+
"core.yaml_editor.action.wrap": string;
|
|
491
581
|
"core.loading.text": string;
|
|
492
582
|
"core.layout.avatar": string;
|
|
493
583
|
"core.layout.logo_alt": string;
|
|
@@ -782,6 +872,94 @@ export declare const LOCALE_MESSAGES: {
|
|
|
782
872
|
"core.home.demo_scope": string;
|
|
783
873
|
"core.home.main_title": string;
|
|
784
874
|
"core.router.pending_view_unregistered": string;
|
|
875
|
+
"core.demo.resource.employee": string;
|
|
876
|
+
"core.demo.resource.project": string;
|
|
877
|
+
"core.demo.resource.doc_catalog": string;
|
|
878
|
+
"core.demo.tree.title.dept_tree": string;
|
|
879
|
+
"core.demo.tree.field.name": string;
|
|
880
|
+
"core.demo.tree.field.email": string;
|
|
881
|
+
"core.demo.tree.field.phone": string;
|
|
882
|
+
"core.demo.tree.field.salary": string;
|
|
883
|
+
"core.demo.tree.field.entry_date": string;
|
|
884
|
+
"core.demo.table.field.name": string;
|
|
885
|
+
"core.demo.table.field.level": string;
|
|
886
|
+
"core.demo.table.field.owner": string;
|
|
887
|
+
"core.demo.table.field.budget": string;
|
|
888
|
+
"core.demo.table.field.task_total": string;
|
|
889
|
+
"core.demo.table.field.progress": string;
|
|
890
|
+
"core.demo.table.field.region": string;
|
|
891
|
+
"core.demo.table.field.tags": string;
|
|
892
|
+
"core.demo.table.field.owner_group": string;
|
|
893
|
+
"core.demo.table.field.enabled": string;
|
|
894
|
+
"core.demo.table.group.task": string;
|
|
895
|
+
"core.demo.table.tooltip.progress": string;
|
|
896
|
+
"core.demo.grid.field.name": string;
|
|
897
|
+
"core.demo.grid.field.code": string;
|
|
898
|
+
"core.demo.grid.field.doc_count": string;
|
|
899
|
+
"core.demo.grid.field.path": string;
|
|
900
|
+
"core.demo.grid.action.create_child": string;
|
|
901
|
+
"core.demo.grid.action.expand_all": string;
|
|
902
|
+
"core.demo.grid.action.collapse_all": string;
|
|
903
|
+
"core.demo.grid.message.has_children": string;
|
|
904
|
+
"core.demo.form.title.demo_form": string;
|
|
905
|
+
"core.demo.form.group.basic": string;
|
|
906
|
+
"core.demo.form.group.choice": string;
|
|
907
|
+
"core.demo.form.group.advanced": string;
|
|
908
|
+
"core.demo.form.field.name": string;
|
|
909
|
+
"core.demo.form.field.password": string;
|
|
910
|
+
"core.demo.form.field.intro": string;
|
|
911
|
+
"core.demo.form.field.count": string;
|
|
912
|
+
"core.demo.form.field.color": string;
|
|
913
|
+
"core.demo.form.field.enabled": string;
|
|
914
|
+
"core.demo.form.field.agreed": string;
|
|
915
|
+
"core.demo.form.field.invite_code": string;
|
|
916
|
+
"core.demo.form.field.mode": string;
|
|
917
|
+
"core.demo.form.mode.card": string;
|
|
918
|
+
"core.demo.form.mode.list": string;
|
|
919
|
+
"core.demo.form.mode.table": string;
|
|
920
|
+
"core.demo.form.field.level": string;
|
|
921
|
+
"core.demo.form.field.gender": string;
|
|
922
|
+
"core.demo.form.field.visibility": string;
|
|
923
|
+
"core.demo.form.visibility.public": string;
|
|
924
|
+
"core.demo.form.visibility.private": string;
|
|
925
|
+
"core.demo.form.field.hobbies": string;
|
|
926
|
+
"core.demo.form.hobby.review": string;
|
|
927
|
+
"core.demo.form.hobby.deploy": string;
|
|
928
|
+
"core.demo.form.hobby.metric": string;
|
|
929
|
+
"core.demo.form.field.birthday": string;
|
|
930
|
+
"core.demo.form.field.range": string;
|
|
931
|
+
"core.demo.form.field.cron": string;
|
|
932
|
+
"core.demo.form.placeholder.cron": string;
|
|
933
|
+
"core.demo.form.field.members": string;
|
|
934
|
+
"core.demo.form.transfer.candidates": string;
|
|
935
|
+
"core.demo.form.transfer.selected": string;
|
|
936
|
+
"core.demo.form.field.avatar": string;
|
|
937
|
+
"core.demo.form.field.gallery": string;
|
|
938
|
+
"core.demo.form.field.attachment": string;
|
|
939
|
+
"core.demo.form.field.attachments": string;
|
|
940
|
+
"core.demo.form.field.content": string;
|
|
941
|
+
"core.demo.form.field.config": string;
|
|
942
|
+
"core.demo.form.field.aliases": string;
|
|
943
|
+
"core.demo.form.field.properties": string;
|
|
944
|
+
"core.demo.form.action.random_code": string;
|
|
945
|
+
"core.demo.form.action.add_property": string;
|
|
946
|
+
"core.demo.form.tooltip.count": string;
|
|
947
|
+
"core.demo.form.message.submit_success": string;
|
|
948
|
+
"core.demo.detail.tab.basic": string;
|
|
949
|
+
"core.demo.detail.tab.progress": string;
|
|
950
|
+
"core.demo.detail.tab.timeline": string;
|
|
951
|
+
"core.demo.detail.tab.raw": string;
|
|
952
|
+
"core.demo.detail.raw.title": string;
|
|
953
|
+
"core.demo.detail.section.basic": string;
|
|
954
|
+
"core.demo.detail.section.work": string;
|
|
955
|
+
"core.demo.detail.step.create": string;
|
|
956
|
+
"core.demo.detail.step.review": string;
|
|
957
|
+
"core.demo.detail.step.publish": string;
|
|
958
|
+
"core.demo.detail.step.done": string;
|
|
959
|
+
"core.demo.detail.timeline.created": string;
|
|
960
|
+
"core.demo.detail.timeline.updated": string;
|
|
961
|
+
"core.demo.detail.timeline.enabled": string;
|
|
962
|
+
"core.demo.detail.timeline.disabled": string;
|
|
785
963
|
};
|
|
786
964
|
readonly "ja-JP": {
|
|
787
965
|
"common.action.back": string;
|
|
@@ -878,6 +1056,7 @@ export declare const LOCALE_MESSAGES: {
|
|
|
878
1056
|
"core.markdown.action.copy_code": string;
|
|
879
1057
|
"core.markdown.message.copy_success": string;
|
|
880
1058
|
"core.markdown.message.copy_failed": string;
|
|
1059
|
+
"core.yaml_editor.action.wrap": string;
|
|
881
1060
|
"core.loading.text": string;
|
|
882
1061
|
"core.layout.avatar": string;
|
|
883
1062
|
"core.layout.logo_alt": string;
|
|
@@ -1172,6 +1351,94 @@ export declare const LOCALE_MESSAGES: {
|
|
|
1172
1351
|
"core.home.demo_scope": string;
|
|
1173
1352
|
"core.home.main_title": string;
|
|
1174
1353
|
"core.router.pending_view_unregistered": string;
|
|
1354
|
+
"core.demo.resource.employee": string;
|
|
1355
|
+
"core.demo.resource.project": string;
|
|
1356
|
+
"core.demo.resource.doc_catalog": string;
|
|
1357
|
+
"core.demo.tree.title.dept_tree": string;
|
|
1358
|
+
"core.demo.tree.field.name": string;
|
|
1359
|
+
"core.demo.tree.field.email": string;
|
|
1360
|
+
"core.demo.tree.field.phone": string;
|
|
1361
|
+
"core.demo.tree.field.salary": string;
|
|
1362
|
+
"core.demo.tree.field.entry_date": string;
|
|
1363
|
+
"core.demo.table.field.name": string;
|
|
1364
|
+
"core.demo.table.field.level": string;
|
|
1365
|
+
"core.demo.table.field.owner": string;
|
|
1366
|
+
"core.demo.table.field.budget": string;
|
|
1367
|
+
"core.demo.table.field.task_total": string;
|
|
1368
|
+
"core.demo.table.field.progress": string;
|
|
1369
|
+
"core.demo.table.field.region": string;
|
|
1370
|
+
"core.demo.table.field.tags": string;
|
|
1371
|
+
"core.demo.table.field.owner_group": string;
|
|
1372
|
+
"core.demo.table.field.enabled": string;
|
|
1373
|
+
"core.demo.table.group.task": string;
|
|
1374
|
+
"core.demo.table.tooltip.progress": string;
|
|
1375
|
+
"core.demo.grid.field.name": string;
|
|
1376
|
+
"core.demo.grid.field.code": string;
|
|
1377
|
+
"core.demo.grid.field.doc_count": string;
|
|
1378
|
+
"core.demo.grid.field.path": string;
|
|
1379
|
+
"core.demo.grid.action.create_child": string;
|
|
1380
|
+
"core.demo.grid.action.expand_all": string;
|
|
1381
|
+
"core.demo.grid.action.collapse_all": string;
|
|
1382
|
+
"core.demo.grid.message.has_children": string;
|
|
1383
|
+
"core.demo.form.title.demo_form": string;
|
|
1384
|
+
"core.demo.form.group.basic": string;
|
|
1385
|
+
"core.demo.form.group.choice": string;
|
|
1386
|
+
"core.demo.form.group.advanced": string;
|
|
1387
|
+
"core.demo.form.field.name": string;
|
|
1388
|
+
"core.demo.form.field.password": string;
|
|
1389
|
+
"core.demo.form.field.intro": string;
|
|
1390
|
+
"core.demo.form.field.count": string;
|
|
1391
|
+
"core.demo.form.field.color": string;
|
|
1392
|
+
"core.demo.form.field.enabled": string;
|
|
1393
|
+
"core.demo.form.field.agreed": string;
|
|
1394
|
+
"core.demo.form.field.invite_code": string;
|
|
1395
|
+
"core.demo.form.field.mode": string;
|
|
1396
|
+
"core.demo.form.mode.card": string;
|
|
1397
|
+
"core.demo.form.mode.list": string;
|
|
1398
|
+
"core.demo.form.mode.table": string;
|
|
1399
|
+
"core.demo.form.field.level": string;
|
|
1400
|
+
"core.demo.form.field.gender": string;
|
|
1401
|
+
"core.demo.form.field.visibility": string;
|
|
1402
|
+
"core.demo.form.visibility.public": string;
|
|
1403
|
+
"core.demo.form.visibility.private": string;
|
|
1404
|
+
"core.demo.form.field.hobbies": string;
|
|
1405
|
+
"core.demo.form.hobby.review": string;
|
|
1406
|
+
"core.demo.form.hobby.deploy": string;
|
|
1407
|
+
"core.demo.form.hobby.metric": string;
|
|
1408
|
+
"core.demo.form.field.birthday": string;
|
|
1409
|
+
"core.demo.form.field.range": string;
|
|
1410
|
+
"core.demo.form.field.cron": string;
|
|
1411
|
+
"core.demo.form.placeholder.cron": string;
|
|
1412
|
+
"core.demo.form.field.members": string;
|
|
1413
|
+
"core.demo.form.transfer.candidates": string;
|
|
1414
|
+
"core.demo.form.transfer.selected": string;
|
|
1415
|
+
"core.demo.form.field.avatar": string;
|
|
1416
|
+
"core.demo.form.field.gallery": string;
|
|
1417
|
+
"core.demo.form.field.attachment": string;
|
|
1418
|
+
"core.demo.form.field.attachments": string;
|
|
1419
|
+
"core.demo.form.field.content": string;
|
|
1420
|
+
"core.demo.form.field.config": string;
|
|
1421
|
+
"core.demo.form.field.aliases": string;
|
|
1422
|
+
"core.demo.form.field.properties": string;
|
|
1423
|
+
"core.demo.form.action.random_code": string;
|
|
1424
|
+
"core.demo.form.action.add_property": string;
|
|
1425
|
+
"core.demo.form.tooltip.count": string;
|
|
1426
|
+
"core.demo.form.message.submit_success": string;
|
|
1427
|
+
"core.demo.detail.tab.basic": string;
|
|
1428
|
+
"core.demo.detail.tab.progress": string;
|
|
1429
|
+
"core.demo.detail.tab.timeline": string;
|
|
1430
|
+
"core.demo.detail.tab.raw": string;
|
|
1431
|
+
"core.demo.detail.raw.title": string;
|
|
1432
|
+
"core.demo.detail.section.basic": string;
|
|
1433
|
+
"core.demo.detail.section.work": string;
|
|
1434
|
+
"core.demo.detail.step.create": string;
|
|
1435
|
+
"core.demo.detail.step.review": string;
|
|
1436
|
+
"core.demo.detail.step.publish": string;
|
|
1437
|
+
"core.demo.detail.step.done": string;
|
|
1438
|
+
"core.demo.detail.timeline.created": string;
|
|
1439
|
+
"core.demo.detail.timeline.updated": string;
|
|
1440
|
+
"core.demo.detail.timeline.enabled": string;
|
|
1441
|
+
"core.demo.detail.timeline.disabled": string;
|
|
1175
1442
|
};
|
|
1176
1443
|
readonly "zh-TW": {
|
|
1177
1444
|
"common.action.back": string;
|
|
@@ -1268,6 +1535,7 @@ export declare const LOCALE_MESSAGES: {
|
|
|
1268
1535
|
"core.markdown.action.copy_code": string;
|
|
1269
1536
|
"core.markdown.message.copy_success": string;
|
|
1270
1537
|
"core.markdown.message.copy_failed": string;
|
|
1538
|
+
"core.yaml_editor.action.wrap": string;
|
|
1271
1539
|
"core.loading.text": string;
|
|
1272
1540
|
"core.layout.avatar": string;
|
|
1273
1541
|
"core.layout.logo_alt": string;
|
|
@@ -1562,6 +1830,94 @@ export declare const LOCALE_MESSAGES: {
|
|
|
1562
1830
|
"core.home.demo_scope": string;
|
|
1563
1831
|
"core.home.main_title": string;
|
|
1564
1832
|
"core.router.pending_view_unregistered": string;
|
|
1833
|
+
"core.demo.resource.employee": string;
|
|
1834
|
+
"core.demo.resource.project": string;
|
|
1835
|
+
"core.demo.resource.doc_catalog": string;
|
|
1836
|
+
"core.demo.tree.title.dept_tree": string;
|
|
1837
|
+
"core.demo.tree.field.name": string;
|
|
1838
|
+
"core.demo.tree.field.email": string;
|
|
1839
|
+
"core.demo.tree.field.phone": string;
|
|
1840
|
+
"core.demo.tree.field.salary": string;
|
|
1841
|
+
"core.demo.tree.field.entry_date": string;
|
|
1842
|
+
"core.demo.table.field.name": string;
|
|
1843
|
+
"core.demo.table.field.level": string;
|
|
1844
|
+
"core.demo.table.field.owner": string;
|
|
1845
|
+
"core.demo.table.field.budget": string;
|
|
1846
|
+
"core.demo.table.field.task_total": string;
|
|
1847
|
+
"core.demo.table.field.progress": string;
|
|
1848
|
+
"core.demo.table.field.region": string;
|
|
1849
|
+
"core.demo.table.field.tags": string;
|
|
1850
|
+
"core.demo.table.field.owner_group": string;
|
|
1851
|
+
"core.demo.table.field.enabled": string;
|
|
1852
|
+
"core.demo.table.group.task": string;
|
|
1853
|
+
"core.demo.table.tooltip.progress": string;
|
|
1854
|
+
"core.demo.grid.field.name": string;
|
|
1855
|
+
"core.demo.grid.field.code": string;
|
|
1856
|
+
"core.demo.grid.field.doc_count": string;
|
|
1857
|
+
"core.demo.grid.field.path": string;
|
|
1858
|
+
"core.demo.grid.action.create_child": string;
|
|
1859
|
+
"core.demo.grid.action.expand_all": string;
|
|
1860
|
+
"core.demo.grid.action.collapse_all": string;
|
|
1861
|
+
"core.demo.grid.message.has_children": string;
|
|
1862
|
+
"core.demo.form.title.demo_form": string;
|
|
1863
|
+
"core.demo.form.group.basic": string;
|
|
1864
|
+
"core.demo.form.group.choice": string;
|
|
1865
|
+
"core.demo.form.group.advanced": string;
|
|
1866
|
+
"core.demo.form.field.name": string;
|
|
1867
|
+
"core.demo.form.field.password": string;
|
|
1868
|
+
"core.demo.form.field.intro": string;
|
|
1869
|
+
"core.demo.form.field.count": string;
|
|
1870
|
+
"core.demo.form.field.color": string;
|
|
1871
|
+
"core.demo.form.field.enabled": string;
|
|
1872
|
+
"core.demo.form.field.agreed": string;
|
|
1873
|
+
"core.demo.form.field.invite_code": string;
|
|
1874
|
+
"core.demo.form.field.mode": string;
|
|
1875
|
+
"core.demo.form.mode.card": string;
|
|
1876
|
+
"core.demo.form.mode.list": string;
|
|
1877
|
+
"core.demo.form.mode.table": string;
|
|
1878
|
+
"core.demo.form.field.level": string;
|
|
1879
|
+
"core.demo.form.field.gender": string;
|
|
1880
|
+
"core.demo.form.field.visibility": string;
|
|
1881
|
+
"core.demo.form.visibility.public": string;
|
|
1882
|
+
"core.demo.form.visibility.private": string;
|
|
1883
|
+
"core.demo.form.field.hobbies": string;
|
|
1884
|
+
"core.demo.form.hobby.review": string;
|
|
1885
|
+
"core.demo.form.hobby.deploy": string;
|
|
1886
|
+
"core.demo.form.hobby.metric": string;
|
|
1887
|
+
"core.demo.form.field.birthday": string;
|
|
1888
|
+
"core.demo.form.field.range": string;
|
|
1889
|
+
"core.demo.form.field.cron": string;
|
|
1890
|
+
"core.demo.form.placeholder.cron": string;
|
|
1891
|
+
"core.demo.form.field.members": string;
|
|
1892
|
+
"core.demo.form.transfer.candidates": string;
|
|
1893
|
+
"core.demo.form.transfer.selected": string;
|
|
1894
|
+
"core.demo.form.field.avatar": string;
|
|
1895
|
+
"core.demo.form.field.gallery": string;
|
|
1896
|
+
"core.demo.form.field.attachment": string;
|
|
1897
|
+
"core.demo.form.field.attachments": string;
|
|
1898
|
+
"core.demo.form.field.content": string;
|
|
1899
|
+
"core.demo.form.field.config": string;
|
|
1900
|
+
"core.demo.form.field.aliases": string;
|
|
1901
|
+
"core.demo.form.field.properties": string;
|
|
1902
|
+
"core.demo.form.action.random_code": string;
|
|
1903
|
+
"core.demo.form.action.add_property": string;
|
|
1904
|
+
"core.demo.form.tooltip.count": string;
|
|
1905
|
+
"core.demo.form.message.submit_success": string;
|
|
1906
|
+
"core.demo.detail.tab.basic": string;
|
|
1907
|
+
"core.demo.detail.tab.progress": string;
|
|
1908
|
+
"core.demo.detail.tab.timeline": string;
|
|
1909
|
+
"core.demo.detail.tab.raw": string;
|
|
1910
|
+
"core.demo.detail.raw.title": string;
|
|
1911
|
+
"core.demo.detail.section.basic": string;
|
|
1912
|
+
"core.demo.detail.section.work": string;
|
|
1913
|
+
"core.demo.detail.step.create": string;
|
|
1914
|
+
"core.demo.detail.step.review": string;
|
|
1915
|
+
"core.demo.detail.step.publish": string;
|
|
1916
|
+
"core.demo.detail.step.done": string;
|
|
1917
|
+
"core.demo.detail.timeline.created": string;
|
|
1918
|
+
"core.demo.detail.timeline.updated": string;
|
|
1919
|
+
"core.demo.detail.timeline.enabled": string;
|
|
1920
|
+
"core.demo.detail.timeline.disabled": string;
|
|
1565
1921
|
};
|
|
1566
1922
|
};
|
|
1567
1923
|
export type GeneratedLocale = keyof typeof LOCALE_MESSAGES;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DemoDetailModel } from "../demo-data";
|
|
2
|
+
/** 组件入参:modelValue 控制显隐,detail 为页面组装好的详情模型。 */
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** 抽屉显隐,v-model 双向绑定。 */
|
|
5
|
+
modelValue: boolean;
|
|
6
|
+
/** 详情模型,为空时抽屉仅显示标题占位。 */
|
|
7
|
+
detail: DemoDetailModel | null;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (value: boolean) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/** 表单数据模型:字段名与 formFields 的 prop 一一对应。 */
|
|
2
|
+
declare const formData: {
|
|
3
|
+
name: string;
|
|
4
|
+
password: string;
|
|
5
|
+
intro: string;
|
|
6
|
+
count: number;
|
|
7
|
+
color: string;
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
agreed: boolean;
|
|
10
|
+
invite_code: string;
|
|
11
|
+
mode: string;
|
|
12
|
+
level: string;
|
|
13
|
+
tenant_id: number | undefined;
|
|
14
|
+
gender: number;
|
|
15
|
+
visibility: string;
|
|
16
|
+
hobbies: string[];
|
|
17
|
+
dept_id: number | undefined;
|
|
18
|
+
birthday: string;
|
|
19
|
+
range: string[];
|
|
20
|
+
cron: string;
|
|
21
|
+
members: number[];
|
|
22
|
+
avatar: string;
|
|
23
|
+
gallery: never[];
|
|
24
|
+
attachment: {
|
|
25
|
+
name: string;
|
|
26
|
+
size?: number | undefined;
|
|
27
|
+
url?: string | undefined;
|
|
28
|
+
raw?: {
|
|
29
|
+
uid: number;
|
|
30
|
+
isDirectory?: boolean | undefined;
|
|
31
|
+
readonly lastModified: number;
|
|
32
|
+
readonly name: string;
|
|
33
|
+
readonly webkitRelativePath: string;
|
|
34
|
+
readonly size: number;
|
|
35
|
+
readonly type: string;
|
|
36
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
37
|
+
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
38
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
39
|
+
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
40
|
+
text: () => Promise<string>;
|
|
41
|
+
} | undefined;
|
|
42
|
+
response?: unknown;
|
|
43
|
+
percentage?: number | undefined;
|
|
44
|
+
uid?: number | undefined;
|
|
45
|
+
status?: import("element-plus").UploadStatus | undefined;
|
|
46
|
+
} | undefined;
|
|
47
|
+
attachments: never[];
|
|
48
|
+
content: string;
|
|
49
|
+
config: string;
|
|
50
|
+
aliases: string[];
|
|
51
|
+
properties: {
|
|
52
|
+
key: string;
|
|
53
|
+
value: string;
|
|
54
|
+
}[];
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* 打开弹窗:支持传入初始值(编辑回填演示)。
|
|
58
|
+
* 真实项目中可在 open 的 load 回调里请求详情接口后再回填。
|
|
59
|
+
*/
|
|
60
|
+
declare function open(initial?: Partial<typeof formData>): void;
|
|
61
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
62
|
+
open: typeof open;
|
|
63
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
64
|
+
submit: (data: Record<string, any>) => any;
|
|
65
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
66
|
+
onSubmit?: ((data: Record<string, any>) => any) | undefined;
|
|
67
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
68
|
+
declare const _default: typeof __VLS_export;
|
|
69
|
+
export default _default;
|