unione-form-vue 0.0.7 → 0.0.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.
@@ -1,5 +1,5 @@
1
1
  import { Ref } from 'vue';
2
- import { DataFind, DataCommit, DataResult } from '../typing';
2
+ import { DataFind, DataCommit, DataResult, DataStorage as TypeDataStorage } from '../typing';
3
3
  /**
4
4
  * 数据管理对象
5
5
  */
@@ -72,8 +72,15 @@ export declare class DataStorage {
72
72
  $data: Ref<any>;
73
73
  $dialog: any;
74
74
  $model: any;
75
+ $form: any;
76
+ $params: any;
77
+ $store: TypeDataStorage;
75
78
  constructor(sn: string, type: 'form' | 'list', model: Ref<'run' | 'view' | 'edit' | 'preview'>);
79
+ $isStorage(): boolean;
80
+ store(store?: TypeDataStorage): TypeDataStorage;
76
81
  data(): any;
82
+ setValue(data: any): void;
83
+ $processParams(data: any, params?: Array<any>): any;
77
84
  /**
78
85
  * 数据查询方法
79
86
  * @param params
@@ -0,0 +1,116 @@
1
+ import { PropType } from 'vue';
2
+ import { FormItem, TreePageSetting, ButtonSetting, DataStorage, TreePageEvent } from '../typing';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ psn: {
5
+ type: StringConstructor;
6
+ required: false;
7
+ };
8
+ params: {
9
+ type: ObjectConstructor;
10
+ default(): {};
11
+ };
12
+ storage: {
13
+ type: PropType<DataStorage>;
14
+ required: true;
15
+ };
16
+ fields: {
17
+ type: {
18
+ (arrayLength: number): PropType<FormItem>[];
19
+ (...items: PropType<FormItem>[]): PropType<FormItem>[];
20
+ new (arrayLength: number): PropType<FormItem>[];
21
+ new (...items: PropType<FormItem>[]): PropType<FormItem>[];
22
+ isArray(arg: any): arg is any[];
23
+ readonly prototype: any[];
24
+ from<T>(arrayLike: ArrayLike<T>): T[];
25
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
26
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
27
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
28
+ of<T_4>(...items: T_4[]): T_4[];
29
+ readonly [Symbol.species]: ArrayConstructor;
30
+ };
31
+ required: true;
32
+ };
33
+ setting: {
34
+ type: PropType<TreePageSetting>;
35
+ required: true;
36
+ };
37
+ btns: {
38
+ type: {
39
+ (arrayLength: number): PropType<ButtonSetting>[];
40
+ (...items: PropType<ButtonSetting>[]): PropType<ButtonSetting>[];
41
+ new (arrayLength: number): PropType<ButtonSetting>[];
42
+ new (...items: PropType<ButtonSetting>[]): PropType<ButtonSetting>[];
43
+ isArray(arg: any): arg is any[];
44
+ readonly prototype: any[];
45
+ from<T>(arrayLike: ArrayLike<T>): T[];
46
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
47
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
48
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
49
+ of<T_4>(...items: T_4[]): T_4[];
50
+ readonly [Symbol.species]: ArrayConstructor;
51
+ };
52
+ required: false;
53
+ };
54
+ event: {
55
+ type: PropType<TreePageEvent>;
56
+ required: false;
57
+ };
58
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
59
+ psn: {
60
+ type: StringConstructor;
61
+ required: false;
62
+ };
63
+ params: {
64
+ type: ObjectConstructor;
65
+ default(): {};
66
+ };
67
+ storage: {
68
+ type: PropType<DataStorage>;
69
+ required: true;
70
+ };
71
+ fields: {
72
+ type: {
73
+ (arrayLength: number): PropType<FormItem>[];
74
+ (...items: PropType<FormItem>[]): PropType<FormItem>[];
75
+ new (arrayLength: number): PropType<FormItem>[];
76
+ new (...items: PropType<FormItem>[]): PropType<FormItem>[];
77
+ isArray(arg: any): arg is any[];
78
+ readonly prototype: any[];
79
+ from<T>(arrayLike: ArrayLike<T>): T[];
80
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
81
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
82
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
83
+ of<T_4>(...items: T_4[]): T_4[];
84
+ readonly [Symbol.species]: ArrayConstructor;
85
+ };
86
+ required: true;
87
+ };
88
+ setting: {
89
+ type: PropType<TreePageSetting>;
90
+ required: true;
91
+ };
92
+ btns: {
93
+ type: {
94
+ (arrayLength: number): PropType<ButtonSetting>[];
95
+ (...items: PropType<ButtonSetting>[]): PropType<ButtonSetting>[];
96
+ new (arrayLength: number): PropType<ButtonSetting>[];
97
+ new (...items: PropType<ButtonSetting>[]): PropType<ButtonSetting>[];
98
+ isArray(arg: any): arg is any[];
99
+ readonly prototype: any[];
100
+ from<T>(arrayLike: ArrayLike<T>): T[];
101
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
102
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
103
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
104
+ of<T_4>(...items: T_4[]): T_4[];
105
+ readonly [Symbol.species]: ArrayConstructor;
106
+ };
107
+ required: false;
108
+ };
109
+ event: {
110
+ type: PropType<TreePageEvent>;
111
+ required: false;
112
+ };
113
+ }>> & Readonly<{}>, {
114
+ params: Record<string, any>;
115
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
116
+ export default _default;
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- :root{--vt-c-white: #ffffff;--vt-c-white-soft: #f8f8f8;--vt-c-white-mute: #f2f2f2;--vt-c-black: #181818;--vt-c-black-soft: #222222;--vt-c-black-mute: #282828;--vt-c-indigo: #2c3e50;--vt-c-divider-light-1: rgba(60, 60, 60, .29);--vt-c-divider-light-2: rgba(60, 60, 60, .12);--vt-c-divider-dark-1: rgba(84, 84, 84, .65);--vt-c-divider-dark-2: rgba(84, 84, 84, .48);--vt-c-text-light-1: var(--vt-c-indigo);--vt-c-text-light-2: rgba(60, 60, 60, .66);--vt-c-text-dark-1: var(--vt-c-white);--vt-c-text-dark-2: rgba(235, 235, 235, .64)}:root{--color-background: var(--vt-c-white);--color-background-soft: var(--vt-c-white-soft);--color-background-mute: var(--vt-c-white-mute);--color-border: var(--vt-c-divider-light-2);--color-border-hover: var(--vt-c-divider-light-1);--color-heading: var(--vt-c-text-light-1);--color-text: var(--vt-c-text-light-1);--section-gap: 160px}@media (prefers-color-scheme: dark){:root{--color-background: var(--vt-c-black);--color-background-soft: var(--vt-c-black-soft);--color-background-mute: var(--vt-c-black-mute);--color-border: var(--vt-c-divider-dark-2);--color-border-hover: var(--vt-c-divider-dark-1);--color-heading: var(--vt-c-text-dark-1);--color-text: var(--vt-c-text-dark-2)}}*,*:before,*:after{box-sizing:border-box;margin:0;font-weight:400}body{min-height:100vh;color:var(--color-text);background:var(--color-background);transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-track{background-color:#fff;border-radius:3px}::-webkit-scrollbar-thumb{background-color:#1677ff;border-radius:6px;border:2px solid #f1f1f1;background-color:transparent}::-webkit-scrollbar-thumb:hover{background-color:#1677ff}#app{width:100vw;height:100vh;font-weight:400}.ant-switch{background-color:#1677ff}.unione-page{padding:10px 5px}.unione-page.edit .page-setting{cursor:pointer;position:absolute;right:12px;margin-top:25px;display:none}.unione-page.edit .page-setting:hover{font-size:20px;margin-right:-2px;margin-top:23px}.unione-page.edit .btn-save{cursor:pointer;position:absolute;right:12px;margin-top:55px;display:none}.unione-page.edit .btn-save:hover{font-size:20px;margin-right:-2px;margin-top:52px}.unione-page.edit:hover .page-setting{display:block;animation:rotates 2s linear infinite}.unione-page.edit:hover .btn-save{display:block}.unione-page .btn-edit{cursor:pointer;position:absolute;right:12px;margin-top:-5px}.unione-page .btn-edit:hover{font-size:20px;margin-right:-2px;margin-top:-7px}@keyframes rotates{0%{-webkit-transform:rotate(0deg)}30%{-webkit-transform:rotate(-90deg)}50%{-webkit-transform:rotate(-180deg)}70%{-webkit-transform:rotate(-270deg)}to{-webkit-transform:rotate(-360deg)}}.page-setting-dialog{height:75vh;overflow-y:auto}.unione-page-view{padding:10px;height:100%;overflow-y:auto}.unione-page-view .form-btns{width:100%;margin:10px;text-align:center}.unione-page-view .form-btns .btn{margin:auto 5px}.unione-page-list{padding:10px;height:100%;overflow-y:auto}.ant-table .ant-table-content{border-inline-start:1px solid #cfcfcf;border-top-left-radius:8px;border-top-right-radius:8px;overflow:hidden}.ant-table .ant-table-content table{border-top:1px solid #cfcfcf!important}.ant-table .ant-table-content .ant-table-thead .ant-table-cell{background:#f0f0f0;border-inline-end:1px solid #cfcfcf!important;border-bottom:1px solid #cfcfcf!important}.ant-table .ant-table-content .ant-table-thead .ant-table-cell .ant-table-column-title{font-weight:600}.ant-table .ant-table-content .ant-table-tbody .ant-table-cell{border-inline-end:1px solid #cfcfcf!important;border-bottom:1px solid #cfcfcf!important}.ant-table .ant-table-content .ant-table-tbody .ant-table-row:hover,.ant-table .ant-table-content .ant-table-tbody .ant-table-row:hover .ant-table-cell{background-color:#e6f7ff;color:#2795f9}.ant-table .ant-table-container .ant-table-thead table{border-top:1px solid #cfcfcf!important}.ant-table .ant-table-container .ant-table-thead .ant-table-cell{background:#f0f0f0;border-inline-end:1px solid #cfcfcf!important;border-bottom:1px solid #cfcfcf!important}.ant-table .ant-table-container .ant-table-tbody table{border-top:1px solid #cfcfcf!important}.ant-table .ant-table-container .ant-table-tbody .ant-table-cell{border-inline-end:1px solid #cfcfcf!important;border-bottom:1px solid #cfcfcf!important}.ant-table .ant-table-container .ant-table-tbody .ant-table-row:hover,.ant-table .ant-table-container .ant-table-tbody .ant-table-row:hover .ant-table-cell{background-color:#e6f7ff;color:#2795f9}.unione-iframe{border:none;width:100%;height:100%}.unione-widget.edit .widget-setting[data-v-3a88c0c0]{cursor:pointer;float:right;margin-right:-6px;margin-top:6px;display:none}.unione-widget.edit .widget-setting[data-v-3a88c0c0]:hover{font-size:20px;margin-right:-10px;margin-top:6px;animation:rotates-3a88c0c0 1s linear infinite!important}.unione-widget.edit[data-v-3a88c0c0]:hover{background-color:#e6f7ff}.unione-widget.edit:hover>.widget-setting[data-v-3a88c0c0]{display:block;animation:rotates-3a88c0c0 2s linear infinite}@keyframes rotates-3a88c0c0{0%{-webkit-transform:rotate(0deg)}30%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}70%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.widget-setting-dialog[data-v-3a88c0c0]{height:75vh;overflow-y:auto}.form-mix[data-v-75055a2b] .ant-form-item{margin-bottom:5px!important}.form-mix .checkbox-tips[data-v-75055a2b] .ant-checkbox-wrapper{color:#999}.form-mix[data-v-75055a2b] .ant-tabs-tabpane{max-height:calc(60vh - 60px);overflow-y:auto}.btn-setting-form[data-v-75055a2b]{min-height:400px}.btn-setting-form .param-btn[data-v-75055a2b]{margin:auto 10px}.btn-setting-form .edit-field[data-v-75055a2b]{width:100%;height:100%}.btn-setting-form .edit-field.empty[data-v-75055a2b]{position:absolute;top:0;left:0}.btn-setting-form .edit-field.empty[data-v-75055a2b] .ant-btn{padding:4px 7px;float:right}.btn-setting-form .edit-field[data-v-75055a2b] .ant-input-number{width:calc(100% - 5px)}.btn-setting-form .edit-field[data-v-75055a2b] .ant-select{width:100%}.btn-setting-form .edit-field[data-v-75055a2b] .ant-btn{padding:4px;float:right}.btn-setting-form .edit-field[data-v-75055a2b] .ant-checkbox{margin-top:8px}.btn-setting-form .edit-field .field-txt[data-v-75055a2b]{line-height:30px}.unione-btn[data-v-6513b442]{display:inline-block;margin:auto 5px}.unione-btn.unione-btn-block[data-v-6513b442]{width:100%}.unione-btn[data-v-6513b442] .widget-setting{position:absolute;z-index:1;transform:scale(.8);margin-top:-5px!important;margin-left:-5px}.unione-btn-drawer .ant-drawer-body[data-v-6513b442]{padding:5px!important;background-color:red}.unione-layout-section .head[data-v-e75e9a84]{padding:5px 15px}.unione-layout-section .head.right[data-v-e75e9a84]{text-align:right}.unione-layout-section .head.reactive[data-v-e75e9a84]{cursor:pointer}.unione-layout-section .head .title[data-v-e75e9a84]{font-size:17px;display:inline-block}.unione-layout-section .head .title .type[data-v-e75e9a84]{background-color:#1677ff;display:inline-block;width:12px;height:12px;margin-right:2px}.unione-layout-section .head .title .type.circle[data-v-e75e9a84]{border-radius:6px}.unione-layout-section .head .title .type.square[data-v-e75e9a84]{margin-right:2px}.unione-layout-section .head .title .type.line[data-v-e75e9a84]{width:5px;margin-right:2px}.unione-layout-section .head .opts[data-v-e75e9a84]{float:right}.unione-layout-section .head .reactive[data-v-e75e9a84]{float:right;margin-top:3px}.unione-form-setting .unione-form-btns[data-v-c0f75bb9]{padding-bottom:10px}.unione-form-setting .unione-form-btns .btn[data-v-c0f75bb9]{margin:auto 5px}.unione-form-setting .unione-form-btns .btn.right[data-v-c0f75bb9]{float:right}.unione-form-setting .unione-form-btns .btn .btn-del[data-v-c0f75bb9]{display:none;position:absolute;margin-top:-25px;right:0;color:#000}.unione-form-setting .unione-form-btns .btn .btn-del[data-v-c0f75bb9]:hover{background-color:#f0f0f0}.unione-form-setting .unione-form-btns .btn.deleted[data-v-c0f75bb9]{color:#999;border-color:#999}.unione-form-setting .unione-form-btns .btn.deleted[data-v-c0f75bb9] span{text-decoration:line-through}.unione-form-setting .unione-form-btns .btn:hover .btn-del[data-v-c0f75bb9]{display:block}.unione-form-setting .unione-form-btns .selected-info[data-v-c0f75bb9]{margin:auto 5px;color:#2795f9;cursor:pointer}.unione-form-setting .unione-form-btns .selected-info[data-v-c0f75bb9]:hover{color:red;text-decoration:line-through}.unione-form-setting .unione-form-btns[data-v-c0f75bb9] .ant-btn-sm{height:27px}.unione-form-setting .unione-form-opts[data-v-c0f75bb9]{padding-bottom:10px}.unione-form-setting .unione-form-opts .btn[data-v-c0f75bb9]{margin:auto 5px}.unione-form-setting .unione-form-opts .btn.right[data-v-c0f75bb9]{float:right}.unione-form-setting .unione-form-opts .btn .btn-del[data-v-c0f75bb9]{display:none;position:absolute;margin-top:-25px;right:0;color:#000}.unione-form-setting .unione-form-opts .btn .btn-del[data-v-c0f75bb9]:hover{background-color:#f0f0f0}.unione-form-setting .unione-form-opts .btn.deleted[data-v-c0f75bb9]{color:#999;border-color:#999}.unione-form-setting .unione-form-opts .btn.deleted[data-v-c0f75bb9] span{text-decoration:line-through}.unione-form-setting .unione-form-opts .btn:hover .btn-del[data-v-c0f75bb9]{display:block}.unione-form-setting .unione-form-opts[data-v-c0f75bb9] .ant-btn-sm{height:27px}.unione-form-setting[data-v-c0f75bb9] .ant-table .ant-table-thead tr th{font-weight:400}.unione-form-setting[data-v-c0f75bb9] .ant-table .ant-table-tbody tr td{padding:3px}.unione-form-setting .edit-field[data-v-c0f75bb9]{width:100%;height:100%}.unione-form-setting .edit-field.empty[data-v-c0f75bb9]{position:absolute;top:0;left:0}.unione-form-setting .edit-field.empty[data-v-c0f75bb9] .ant-btn{padding:4px 7px;float:right}.unione-form-setting .edit-field[data-v-c0f75bb9] .ant-input-number{width:calc(100% - 5px)}.unione-form-setting .edit-field[data-v-c0f75bb9] .ant-select{width:100%}.unione-form-setting .edit-field[data-v-c0f75bb9] .ant-btn{padding:4px;float:right}.unione-form-setting .edit-field[data-v-c0f75bb9] .ant-checkbox{margin-top:8px}.unione-form-setting .edit-field .field-txt[data-v-c0f75bb9]{line-height:30px}.form-mix[data-v-c0f75bb9] .ant-form-item{margin-bottom:5px!important}.form-mix .checkbox-tips[data-v-c0f75bb9] .ant-checkbox-wrapper{color:#999}.form-mix[data-v-c0f75bb9] .ant-tabs-tabpane{max-height:calc(60vh - 60px);overflow-y:auto}.unione-form-widget[data-v-ab7f53e8]{padding:10px}.unione-form-widget[data-v-ab7f53e8] .widget-setting{margin-top:-5px!important}.unione-form-widget .unione-form.edit[data-v-ab7f53e8]{padding:0 20px}.unione-form-widget .unione-form .unione-widget[data-v-ab7f53e8]{display:block}.unione-form-widget .unione-form .unione-widget.all-line[data-v-ab7f53e8]{width:100%!important}.unione-form-widget .unione-form .unione-widget.2in_line[data-v-ab7f53e8]{width:66.66%!important}.unione-form-widget .unione-form.form-layout-col-1 .unione-widget[data-v-ab7f53e8]{width:100%}.unione-form-widget .unione-form.form-layout-col-2 .unione-widget[data-v-ab7f53e8]{width:50%;display:inline-block}.unione-form-widget .unione-form.form-layout-col-3 .unione-widget[data-v-ab7f53e8]{width:33.33%;display:inline-block}.unione-form-widget .form-btns[data-v-ab7f53e8]{width:100%;margin:10px;text-align:center}.unione-form-widget .form-btns .btn[data-v-ab7f53e8]{margin:auto 5px}.unione-form-item .ant-form-item[data-v-1a91c715]{margin-bottom:6px}.unione-form-item .ant-form-item[data-v-1a91c715] .ant-form-item-explain-error{right:5px;margin-top:-27px;position:absolute}.unione-query-setting .unione-query-tools[data-v-ce575063]{padding-bottom:10px}.unione-query-setting .unione-query-tools .btn[data-v-ce575063]{margin:auto 5px}.unione-query-setting .unione-query-tools .btn.right[data-v-ce575063]{float:right}.unione-query-setting .unione-query-tools .btn .bool-del[data-v-ce575063]{display:none;position:absolute;margin-top:-25px;right:0;color:#000}.unione-query-setting .unione-query-tools .btn .bool-del[data-v-ce575063]:hover{background-color:#f0f0f0}.unione-query-setting .unione-query-tools .btn.deleted[data-v-ce575063]{color:#999;border-color:#999}.unione-query-setting .unione-query-tools .btn.deleted[data-v-ce575063] span{text-decoration:line-through}.unione-query-setting .unione-query-tools .btn:hover .bool-del[data-v-ce575063]{display:block}.unione-query-setting .unione-query-tools .selected-info[data-v-ce575063]{margin:auto 5px;color:#2795f9;cursor:pointer}.unione-query-setting .unione-query-tools .selected-info[data-v-ce575063]:hover{color:red;text-decoration:line-through}.unione-query-setting .unione-query-tools[data-v-ce575063] .ant-btn-sm{height:27px}.unione-query-setting .unione-query-opts[data-v-ce575063]{padding-bottom:10px}.unione-query-setting .unione-query-opts .btn[data-v-ce575063]{margin:auto 5px}.unione-query-setting .unione-query-opts .btn.right[data-v-ce575063]{float:right}.unione-query-setting .unione-query-opts .btn .btn-del[data-v-ce575063]{display:none;position:absolute;margin-top:-25px;right:0;color:#000}.unione-query-setting .unione-query-opts .btn .btn-del[data-v-ce575063]:hover{background-color:#f0f0f0}.unione-query-setting .unione-query-opts .btn.deleted[data-v-ce575063]{color:#999;border-color:#999}.unione-query-setting .unione-query-opts .btn.deleted[data-v-ce575063] span{text-decoration:line-through}.unione-query-setting .unione-query-opts .btn:hover .btn-del[data-v-ce575063]{display:block}.unione-query-setting .unione-query-opts[data-v-ce575063] .ant-btn-sm{height:27px}.unione-query-setting[data-v-ce575063] .ant-table .ant-table-thead tr th{font-weight:400}.unione-query-setting[data-v-ce575063] .ant-table .ant-table-tbody tr td{padding:3px}.unione-query-setting .edit-field[data-v-ce575063]{width:100%;height:100%}.unione-query-setting .edit-field.empty[data-v-ce575063]{position:absolute;top:0;left:0}.unione-query-setting .edit-field.empty[data-v-ce575063] .ant-btn{padding:4px 7px;float:right}.unione-query-setting .edit-field[data-v-ce575063] .ant-input-number{width:calc(100% - 5px)}.unione-query-setting .edit-field[data-v-ce575063] .ant-select{width:100%}.unione-query-setting .edit-field[data-v-ce575063] .ant-btn{padding:4px;float:right}.unione-query-setting .edit-field[data-v-ce575063] .ant-checkbox{margin-top:8px}.unione-query-setting .edit-field .field-txt[data-v-ce575063]{line-height:30px}.form-mix[data-v-ce575063] .ant-form-item{margin-bottom:5px!important}.form-mix .checkbox-tips[data-v-ce575063] .ant-checkbox-wrapper{color:#999}.form-mix[data-v-ce575063] .ant-tabs-tabpane{max-height:calc(60vh - 60px);overflow-y:auto}.unione-query-form .query-field[data-v-bf93af8d]{display:inline-block;margin-bottom:5px;min-width:250px;width:25%}.unione-query-form.edit .query-field[data-v-bf93af8d]{width:calc(25% - 7px)}.unione-query-form .query-btn[data-v-bf93af8d]{display:inline-block;white-space:nowrap}.unione-query-form .query-btn .btn[data-v-bf93af8d]{margin:auto 5px}.unione-query-form .query-btn .btn.save-search[data-v-bf93af8d]{float:right;position:absolute;right:10px}.btn-advanced-overlay[data-v-bf93af8d]{padding:3px 5px;list-style-type:none;background-color:#fff;background-clip:padding-box;border-radius:8px;outline:none;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;display:flex;flex-direction:column}.btn-advanced-overlay .item[data-v-bf93af8d]{padding:3px 5px}.unione-table-setting .unione-table-tools[data-v-c966c24c]{padding-bottom:10px}.unione-table-setting .unione-table-tools .btn[data-v-c966c24c]{margin:auto 5px}.unione-table-setting .unione-table-tools .btn.right[data-v-c966c24c]{float:right}.unione-table-setting .unione-table-tools .btn .bool-del[data-v-c966c24c]{display:none;position:absolute;margin-top:-25px;right:0;color:#000}.unione-table-setting .unione-table-tools .btn .bool-del[data-v-c966c24c]:hover{background-color:#f0f0f0}.unione-table-setting .unione-table-tools .btn.deleted[data-v-c966c24c]{color:#999;border-color:#999}.unione-table-setting .unione-table-tools .btn.deleted[data-v-c966c24c] span{text-decoration:line-through}.unione-table-setting .unione-table-tools .btn:hover .bool-del[data-v-c966c24c]{display:block}.unione-table-setting .unione-table-tools .selected-info[data-v-c966c24c]{margin:auto 5px;color:#2795f9;cursor:pointer}.unione-table-setting .unione-table-tools .selected-info[data-v-c966c24c]:hover{color:red;text-decoration:line-through}.unione-table-setting .unione-table-tools[data-v-c966c24c] .ant-btn-sm{height:27px}.unione-table-setting .unione-table-opts[data-v-c966c24c]{padding-bottom:10px}.unione-table-setting .unione-table-opts .btn[data-v-c966c24c]{margin:auto 5px}.unione-table-setting .unione-table-opts .btn.right[data-v-c966c24c]{float:right}.unione-table-setting .unione-table-opts .btn .btn-del[data-v-c966c24c]{display:none;position:absolute;margin-top:-25px;right:0;color:#000}.unione-table-setting .unione-table-opts .btn .btn-del[data-v-c966c24c]:hover{background-color:#f0f0f0}.unione-table-setting .unione-table-opts .btn.deleted[data-v-c966c24c]{color:#999;border-color:#999}.unione-table-setting .unione-table-opts .btn.deleted[data-v-c966c24c] span{text-decoration:line-through}.unione-table-setting .unione-table-opts .btn:hover .btn-del[data-v-c966c24c]{display:block}.unione-table-setting .unione-table-opts[data-v-c966c24c] .ant-btn-sm{height:27px}.unione-table-setting[data-v-c966c24c] .ant-table .ant-table-thead tr th{font-weight:400}.unione-table-setting[data-v-c966c24c] .ant-table .ant-table-tbody tr td{padding:3px}.unione-table-setting .edit-field[data-v-c966c24c]{width:100%;height:100%}.unione-table-setting .edit-field.empty[data-v-c966c24c]{position:absolute;top:0;left:0}.unione-table-setting .edit-field.empty[data-v-c966c24c] .ant-btn{padding:4px 7px;float:right}.unione-table-setting .edit-field[data-v-c966c24c] .ant-input-number{width:calc(100% - 5px)}.unione-table-setting .edit-field[data-v-c966c24c] .ant-select{width:100%}.unione-table-setting .edit-field[data-v-c966c24c] .ant-btn{padding:4px;float:right}.unione-table-setting .edit-field[data-v-c966c24c] .ant-checkbox{margin-top:8px}.unione-table-setting .edit-field .field-txt[data-v-c966c24c]{line-height:30px}.form-mix[data-v-c966c24c] .ant-form-item{margin-bottom:5px!important}.form-mix .checkbox-tips[data-v-c966c24c] .ant-checkbox-wrapper{color:#999}.form-mix[data-v-c966c24c] .ant-tabs-tabpane{max-height:calc(60vh - 60px);overflow-y:auto}.unione-table-list[data-v-46ce7727]{margin-top:10px}.unione-table-list .unione-table-tools[data-v-46ce7727]{padding-bottom:10px}.unione-table-list .unione-table-tools .btn[data-v-46ce7727]{margin:auto 5px}.unione-table-list .unione-table-tools .btn.right[data-v-46ce7727]{float:right}.unione-table-list .unione-table-tools .selected-info[data-v-46ce7727]{margin:auto 5px;color:#2795f9;cursor:pointer}.unione-table-list .unione-table-tools .selected-info[data-v-46ce7727]:hover{color:red;text-decoration:line-through}.unione-table-list .unione-table-tools[data-v-46ce7727] .ant-btn-sm{height:27px}.unione-table-list .unione-table-opts .opt[data-v-46ce7727]{margin:auto 2px}.unione-table-list .unione-table-opts .opt[data-v-46ce7727] .widget-setting{display:block}.unione-table-list .unione-table-opts .opt-more.small[data-v-46ce7727]{padding:0 5px 2px;height:24px}.unione-table-list .unione-table-opts .item[data-v-46ce7727] .widget-setting{display:block}.opt-more-overlay[data-v-46ce7727]{padding:3px 5px;list-style-type:none;background-color:#fff;background-clip:padding-box;border:1px solid #e6f7ff;border-radius:8px;outline:none;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d}.opt-more-overlay.vertical[data-v-46ce7727]{display:flex;flex-direction:column}.opt-more-overlay .item[data-v-46ce7727]{padding:2px 6px}.data-field-manage .btn[data-v-f6307a23]{margin-top:-50px;float:right}.data-field-manage .btn.btn-add[data-v-f6307a23]{margin-right:70px}.data-field-manage .btn.btn-delete[data-v-f6307a23]{margin-right:5px}.data-field-manage .edit-field[data-v-f6307a23]{width:100%;height:100%}.data-field-manage .edit-field.empty[data-v-f6307a23]{position:absolute;top:0;left:0}.data-field-manage .edit-field[data-v-f6307a23] .ant-input-number{width:calc(100% - 5px)}.data-field-manage .edit-field[data-v-f6307a23] .ant-select{width:100%}.data-field-manage[data-v-f6307a23] .ant-table-thead tr th,.data-field-setting[data-v-ef9b9849] .ant-table .ant-table-thead tr th{font-weight:400}.data-field-setting[data-v-ef9b9849] .ant-table .ant-table-tbody tr td{padding:3px}.data-field-setting .edit-field[data-v-ef9b9849]{width:100%;height:100%}.data-field-setting .edit-field.empty[data-v-ef9b9849]{position:absolute;top:0;left:0}.data-field-setting .edit-field.empty[data-v-ef9b9849] .ant-btn{padding:4px 7px;float:right}.data-field-setting .edit-field[data-v-ef9b9849] .ant-input-number{width:calc(100% - 5px)}.data-field-setting .edit-field[data-v-ef9b9849] .ant-select{width:100%}.data-field-setting .edit-field[data-v-ef9b9849] .ant-btn{padding:4px;float:right}.data-field-setting .edit-field[data-v-ef9b9849] .ant-checkbox{margin-top:8px}.data-field-setting .edit-field .field-txt[data-v-ef9b9849]{line-height:30px}.form-mix[data-v-ef9b9849] .ant-form-item{margin-bottom:5px!important}.form-mix .checkbox-tips[data-v-ef9b9849] .ant-checkbox-wrapper{color:#999}.data-define[data-v-6be2cc50]{height:100%;overflow-y:auto}.data-define.center[data-v-6be2cc50]{display:flex}.data-define .data-model-list[data-v-6be2cc50]{width:180px;height:100%;border-right:1px solid #d9d9d9;display:flex;align-items:flex-start;flex-direction:column;float:left}.data-define .data-model-list .title[data-v-6be2cc50]{height:35px;width:100%;cursor:pointer;line-height:35px;padding:0 5px}.data-define .data-model-list .title.slt[data-v-6be2cc50]{background-color:#e6f7ff;color:#2795f9}.data-define .data-model-list .title.btn-add[data-v-6be2cc50]{text-align:center;font-size:20px;margin-top:5px;margin-left:5px;border:1px solid #d9d9d9;width:calc(100% - 10px);line-height:30px}.data-define .data-model-list .title[data-v-6be2cc50]:hover{background-color:#e6f7ff;color:#2795f9}.data-define .data-model-form[data-v-6be2cc50]{display:inline-block;width:calc(100% - 180px);padding:0 10px}.data-define .data-model-form.center[data-v-6be2cc50]{margin:0 auto}.unione-page-setting .form-mix[data-v-2420ce7a] .ant-form-item{margin-bottom:5px!important}.unione-page-setting .form-mix .checkbox-tips[data-v-2420ce7a] .ant-checkbox-wrapper{color:#999}.unione-page-setting .form-mix[data-v-2420ce7a] .ant-tabs-tabpane{max-height:calc(60vh - 60px);overflow-y:auto}.unione-page-view[data-v-f792d0b4]{padding:10px;height:100%;overflow-y:auto}.load-table-form[data-v-d7658b67] .query-field{width:300px}.data-field-manage[data-v-4020e3f0]{min-height:200px}.data-field-manage .btn[data-v-4020e3f0]{margin-top:-50px;float:right}.data-field-manage .btn.btn-add[data-v-4020e3f0]{margin-right:70px}.data-field-manage .btn.btn-delete[data-v-4020e3f0]{margin-right:5px}.data-field-manage .edit-field[data-v-4020e3f0]{width:100%;height:100%}.data-field-manage .edit-field.empty[data-v-4020e3f0]{position:absolute;top:0;left:0}.data-field-manage .edit-field[data-v-4020e3f0] .ant-input-number{width:calc(100% - 5px)}.data-field-manage .edit-field[data-v-4020e3f0] .ant-select{width:100%}.data-field-manage[data-v-4020e3f0] .ant-table-thead tr th{font-weight:400}.data-field-setting[data-v-d5938ab8]{min-height:200px}.data-field-setting[data-v-d5938ab8] .ant-table .ant-table-thead tr th{font-weight:400}.data-field-setting[data-v-d5938ab8] .ant-table .ant-table-tbody tr td{padding:3px}.data-field-setting .edit-field[data-v-d5938ab8]{width:100%;height:100%}.data-field-setting .edit-field.empty[data-v-d5938ab8]{position:absolute;top:0;left:0}.data-field-setting .edit-field.empty[data-v-d5938ab8] .ant-btn{padding:4px 7px;float:right}.data-field-setting .edit-field[data-v-d5938ab8] .ant-input-number{width:calc(100% - 5px)}.data-field-setting .edit-field[data-v-d5938ab8] .ant-select{width:100%}.data-field-setting .edit-field[data-v-d5938ab8] .ant-btn{padding:4px;float:right}.data-field-setting .edit-field[data-v-d5938ab8] .ant-checkbox{margin-top:8px}.data-field-setting .edit-field .field-txt[data-v-d5938ab8]{line-height:30px}.form-mix[data-v-d5938ab8] .ant-form-item{margin-bottom:5px!important}.form-mix .checkbox-tips[data-v-d5938ab8] .ant-checkbox-wrapper{color:#999}.field-setting-form[data-v-d5938ab8]{padding-top:10px}.field-setting-form[data-v-d5938ab8] .ant-input-number{width:100%}.field-setting-form.sort[data-v-d5938ab8] .ant-form-item{width:50%;display:inline-block}.field-setting-form.sort[data-v-d5938ab8] .ant-form-item .ant-form-item-label{width:50%;max-width:50%;flex:0 0 50%}.field-setting-form.sort[data-v-d5938ab8] .ant-form-item .ant-form-item-control{width:50%;max-width:50%}.data-field-fkey[data-v-84143692]{min-height:200px}.data-field-fkey[data-v-84143692] .ant-table-cell{font-weight:unset}.data-field-fkey .edit-field[data-v-84143692]{width:100%;height:100%}.data-field-fkey .edit-field.empty[data-v-84143692]{position:absolute;top:0;left:0}.data-field-fkey .edit-field[data-v-84143692] .ant-input-number{width:calc(100% - 5px)}.data-field-fkey .edit-field[data-v-84143692] .ant-select{width:100%}.data-filter[data-v-a600b93f]{height:100%;min-height:200px}.data-filter .filter-box[data-v-a600b93f]{width:calc(25% - 10px);margin:5px;height:100px;display:inline-flex}.data-filter .filter-box[data-v-a600b93f] .ant-card-body{width:100%}.data-filter .filter-box .action[data-v-a600b93f]{margin-top:10px;text-align:center}.data-filter .filter-box .action .ant-btn[data-v-a600b93f]{width:30%;margin:auto 10px}.data-filter .filter-box.btn-add[data-v-a600b93f]{line-height:80px;cursor:pointer}.data-filter .filter-box.btn-add[data-v-a600b93f] .ant-card-body{text-align:center}.data-filter .filter-box.btn-add .btn[data-v-a600b93f]{font-size:30px;color:#00000080}.data-filter .filter-box[data-v-a600b93f]:hover{background-color:#e6f7ff}.data-filter[data-v-a600b93f] .ant-card-bordered{border:1px solid #d9d9d9}.data-filter .btn-tmpl[data-v-a600b93f]{position:absolute;right:-7px;cursor:pointer}.form-mix[data-v-a600b93f] .ant-form-item{margin-bottom:5px!important}.form-mix[data-v-a600b93f] .ant-form-item .ant-form-item-explain-error{right:5px;margin-top:-27px;position:absolute}.form-mix .checkbox-tips[data-v-a600b93f] .ant-checkbox-wrapper{color:#999}.data-define-edit[data-v-3eeab6e6]{overflow-y:auto;height:100%}.data-define-edit[data-v-3eeab6e6] .page-setting-section .title{font-size:14px}.data-define-edit[data-v-3eeab6e6] .page-setting-section .reactive{font-size:12px}.data-define-edit[data-v-3eeab6e6] .page-setting-section.open .type{margin-top:6px!important}.data-define-edit[data-v-3eeab6e6] .page-setting-section.close .title,.data-define-edit[data-v-3eeab6e6] .page-setting-section.close .reactive{color:#00bd7e}.data-define-edit .actions[data-v-3eeab6e6]{width:100%;bottom:10px;text-align:center}.data-define-edit .actions .ant-btn[data-v-3eeab6e6]{margin:15px 10px}
1
+ :root{--vt-c-white: #ffffff;--vt-c-white-soft: #f8f8f8;--vt-c-white-mute: #f2f2f2;--vt-c-black: #181818;--vt-c-black-soft: #222222;--vt-c-black-mute: #282828;--vt-c-indigo: #2c3e50;--vt-c-divider-light-1: rgba(60, 60, 60, .29);--vt-c-divider-light-2: rgba(60, 60, 60, .12);--vt-c-divider-dark-1: rgba(84, 84, 84, .65);--vt-c-divider-dark-2: rgba(84, 84, 84, .48);--vt-c-text-light-1: var(--vt-c-indigo);--vt-c-text-light-2: rgba(60, 60, 60, .66);--vt-c-text-dark-1: var(--vt-c-white);--vt-c-text-dark-2: rgba(235, 235, 235, .64)}:root{--color-background: var(--vt-c-white);--color-background-soft: var(--vt-c-white-soft);--color-background-mute: var(--vt-c-white-mute);--color-border: var(--vt-c-divider-light-2);--color-border-hover: var(--vt-c-divider-light-1);--color-heading: var(--vt-c-text-light-1);--color-text: var(--vt-c-text-light-1);--section-gap: 160px}@media (prefers-color-scheme: dark){:root{--color-background: var(--vt-c-black);--color-background-soft: var(--vt-c-black-soft);--color-background-mute: var(--vt-c-black-mute);--color-border: var(--vt-c-divider-dark-2);--color-border-hover: var(--vt-c-divider-dark-1);--color-heading: var(--vt-c-text-dark-1);--color-text: var(--vt-c-text-dark-2)}}*,*:before,*:after{box-sizing:border-box;margin:0;font-weight:400}body{min-height:100vh;color:var(--color-text);background:var(--color-background);transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-track{background-color:#fff;border-radius:3px}::-webkit-scrollbar-thumb{background-color:#1677ff;border-radius:6px;border:2px solid #f1f1f1;background-color:transparent}::-webkit-scrollbar-thumb:hover{background-color:#1677ff}#app{width:100vw;height:100vh;font-weight:400}.ant-switch{background-color:#1677ff}.unione-page{padding:10px 5px}.unione-page.edit .page-setting{cursor:pointer;position:absolute;right:12px;margin-top:25px;display:none}.unione-page.edit .page-setting:hover{font-size:20px;margin-right:-2px;margin-top:23px}.unione-page.edit .btn-save{cursor:pointer;position:absolute;right:12px;margin-top:55px;display:none}.unione-page.edit .btn-save:hover{font-size:20px;margin-right:-2px;margin-top:52px}.unione-page.edit:hover .page-setting{display:block;animation:rotates 2s linear infinite}.unione-page.edit:hover .btn-save{display:block}.unione-page .btn-edit{cursor:pointer;position:absolute;right:12px;margin-top:-5px}.unione-page .btn-edit:hover{font-size:20px;margin-right:-2px;margin-top:-7px}@keyframes rotates{0%{-webkit-transform:rotate(0deg)}30%{-webkit-transform:rotate(-90deg)}50%{-webkit-transform:rotate(-180deg)}70%{-webkit-transform:rotate(-270deg)}to{-webkit-transform:rotate(-360deg)}}.page-setting-dialog{height:75vh;overflow-y:auto}.unione-page-form{padding:10px;height:100%;overflow-y:auto}.unione-page-form .form-btns{width:100%;margin:10px;text-align:center}.unione-page-form .form-btns .btn{margin:auto 5px}.unione-page-tree{display:flex;height:100%;overflow-y:auto}.unione-page-tree .tree-warp{width:250px;padding-right:10px;border-right:1px solid #d9d9d9}.unione-page-tree .tree-warp .input-search{margin:0 0 5px 5px}.unione-page-tree .tree-warp .unione-btn-add{margin-bottom:5px}.unione-page-tree .tree-warp .node-opts{float:right}.unione-page-tree .tree-warp .node-opts .unione-btn{margin:0}.unione-page-tree .form-warp{width:calc(100% - 250px)}.unione-page-tree .form-warp .form-btns{width:100%;margin:10px;text-align:center}.unione-page-tree .form-warp .form-btns .btn{margin:auto 5px}.unione-page-list{padding:10px;height:100%;overflow-y:auto}.ant-table .ant-table-content{border-inline-start:1px solid #cfcfcf;border-top-left-radius:8px;border-top-right-radius:8px;overflow:hidden}.ant-table .ant-table-content table{border-top:1px solid #cfcfcf!important}.ant-table .ant-table-content .ant-table-thead .ant-table-cell{background:#f0f0f0;border-inline-end:1px solid #cfcfcf!important;border-bottom:1px solid #cfcfcf!important}.ant-table .ant-table-content .ant-table-thead .ant-table-cell .ant-table-column-title{font-weight:600}.ant-table .ant-table-content .ant-table-tbody .ant-table-cell{border-inline-end:1px solid #cfcfcf!important;border-bottom:1px solid #cfcfcf!important}.ant-table .ant-table-content .ant-table-tbody .ant-table-row:hover,.ant-table .ant-table-content .ant-table-tbody .ant-table-row:hover .ant-table-cell{background-color:#e6f7ff;color:#2795f9}.ant-table .ant-table-container .ant-table-thead table{border-top:1px solid #cfcfcf!important}.ant-table .ant-table-container .ant-table-thead .ant-table-cell{background:#f0f0f0;border-inline-end:1px solid #cfcfcf!important;border-bottom:1px solid #cfcfcf!important}.ant-table .ant-table-container .ant-table-tbody table{border-top:1px solid #cfcfcf!important}.ant-table .ant-table-container .ant-table-tbody .ant-table-cell{border-inline-end:1px solid #cfcfcf!important;border-bottom:1px solid #cfcfcf!important}.ant-table .ant-table-container .ant-table-tbody .ant-table-row:hover,.ant-table .ant-table-container .ant-table-tbody .ant-table-row:hover .ant-table-cell{background-color:#e6f7ff;color:#2795f9}.unione-iframe{border:none;width:100%;height:100%}.unione-widget.edit .widget-setting[data-v-3a88c0c0]{cursor:pointer;float:right;margin-right:-6px;margin-top:6px;display:none}.unione-widget.edit .widget-setting[data-v-3a88c0c0]:hover{font-size:20px;margin-right:-10px;margin-top:6px;animation:rotates-3a88c0c0 1s linear infinite!important}.unione-widget.edit[data-v-3a88c0c0]:hover{background-color:#e6f7ff}.unione-widget.edit:hover>.widget-setting[data-v-3a88c0c0]{display:block;animation:rotates-3a88c0c0 2s linear infinite}@keyframes rotates-3a88c0c0{0%{-webkit-transform:rotate(0deg)}30%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}70%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(360deg)}}.widget-setting-dialog[data-v-3a88c0c0]{height:75vh;overflow-y:auto}.form-mix[data-v-75055a2b] .ant-form-item{margin-bottom:5px!important}.form-mix .checkbox-tips[data-v-75055a2b] .ant-checkbox-wrapper{color:#999}.form-mix[data-v-75055a2b] .ant-tabs-tabpane{max-height:calc(60vh - 60px);overflow-y:auto}.btn-setting-form[data-v-75055a2b]{min-height:400px}.btn-setting-form .param-btn[data-v-75055a2b]{margin:auto 10px}.btn-setting-form .edit-field[data-v-75055a2b]{width:100%;height:100%}.btn-setting-form .edit-field.empty[data-v-75055a2b]{position:absolute;top:0;left:0}.btn-setting-form .edit-field.empty[data-v-75055a2b] .ant-btn{padding:4px 7px;float:right}.btn-setting-form .edit-field[data-v-75055a2b] .ant-input-number{width:calc(100% - 5px)}.btn-setting-form .edit-field[data-v-75055a2b] .ant-select{width:100%}.btn-setting-form .edit-field[data-v-75055a2b] .ant-btn{padding:4px;float:right}.btn-setting-form .edit-field[data-v-75055a2b] .ant-checkbox{margin-top:8px}.btn-setting-form .edit-field .field-txt[data-v-75055a2b]{line-height:30px}.unione-btn[data-v-42bd8785]{display:inline-block;margin:auto 5px}.unione-btn.unione-btn-block[data-v-42bd8785]{width:100%}.unione-btn[data-v-42bd8785] .widget-setting{position:absolute;z-index:1;transform:scale(.8);margin-top:-5px!important;margin-left:-5px}.unione-btn-drawer .ant-drawer-body[data-v-42bd8785]{padding:5px!important;background-color:red}.unione-layout-section .head[data-v-e75e9a84]{padding:5px 15px}.unione-layout-section .head.right[data-v-e75e9a84]{text-align:right}.unione-layout-section .head.reactive[data-v-e75e9a84]{cursor:pointer}.unione-layout-section .head .title[data-v-e75e9a84]{font-size:17px;display:inline-block}.unione-layout-section .head .title .type[data-v-e75e9a84]{background-color:#1677ff;display:inline-block;width:12px;height:12px;margin-right:2px}.unione-layout-section .head .title .type.circle[data-v-e75e9a84]{border-radius:6px}.unione-layout-section .head .title .type.square[data-v-e75e9a84]{margin-right:2px}.unione-layout-section .head .title .type.line[data-v-e75e9a84]{width:5px;margin-right:2px}.unione-layout-section .head .opts[data-v-e75e9a84]{float:right}.unione-layout-section .head .reactive[data-v-e75e9a84]{float:right;margin-top:3px}.unione-form-setting .unione-form-btns[data-v-c0f75bb9]{padding-bottom:10px}.unione-form-setting .unione-form-btns .btn[data-v-c0f75bb9]{margin:auto 5px}.unione-form-setting .unione-form-btns .btn.right[data-v-c0f75bb9]{float:right}.unione-form-setting .unione-form-btns .btn .btn-del[data-v-c0f75bb9]{display:none;position:absolute;margin-top:-25px;right:0;color:#000}.unione-form-setting .unione-form-btns .btn .btn-del[data-v-c0f75bb9]:hover{background-color:#f0f0f0}.unione-form-setting .unione-form-btns .btn.deleted[data-v-c0f75bb9]{color:#999;border-color:#999}.unione-form-setting .unione-form-btns .btn.deleted[data-v-c0f75bb9] span{text-decoration:line-through}.unione-form-setting .unione-form-btns .btn:hover .btn-del[data-v-c0f75bb9]{display:block}.unione-form-setting .unione-form-btns .selected-info[data-v-c0f75bb9]{margin:auto 5px;color:#2795f9;cursor:pointer}.unione-form-setting .unione-form-btns .selected-info[data-v-c0f75bb9]:hover{color:red;text-decoration:line-through}.unione-form-setting .unione-form-btns[data-v-c0f75bb9] .ant-btn-sm{height:27px}.unione-form-setting .unione-form-opts[data-v-c0f75bb9]{padding-bottom:10px}.unione-form-setting .unione-form-opts .btn[data-v-c0f75bb9]{margin:auto 5px}.unione-form-setting .unione-form-opts .btn.right[data-v-c0f75bb9]{float:right}.unione-form-setting .unione-form-opts .btn .btn-del[data-v-c0f75bb9]{display:none;position:absolute;margin-top:-25px;right:0;color:#000}.unione-form-setting .unione-form-opts .btn .btn-del[data-v-c0f75bb9]:hover{background-color:#f0f0f0}.unione-form-setting .unione-form-opts .btn.deleted[data-v-c0f75bb9]{color:#999;border-color:#999}.unione-form-setting .unione-form-opts .btn.deleted[data-v-c0f75bb9] span{text-decoration:line-through}.unione-form-setting .unione-form-opts .btn:hover .btn-del[data-v-c0f75bb9]{display:block}.unione-form-setting .unione-form-opts[data-v-c0f75bb9] .ant-btn-sm{height:27px}.unione-form-setting[data-v-c0f75bb9] .ant-table .ant-table-thead tr th{font-weight:400}.unione-form-setting[data-v-c0f75bb9] .ant-table .ant-table-tbody tr td{padding:3px}.unione-form-setting .edit-field[data-v-c0f75bb9]{width:100%;height:100%}.unione-form-setting .edit-field.empty[data-v-c0f75bb9]{position:absolute;top:0;left:0}.unione-form-setting .edit-field.empty[data-v-c0f75bb9] .ant-btn{padding:4px 7px;float:right}.unione-form-setting .edit-field[data-v-c0f75bb9] .ant-input-number{width:calc(100% - 5px)}.unione-form-setting .edit-field[data-v-c0f75bb9] .ant-select{width:100%}.unione-form-setting .edit-field[data-v-c0f75bb9] .ant-btn{padding:4px;float:right}.unione-form-setting .edit-field[data-v-c0f75bb9] .ant-checkbox{margin-top:8px}.unione-form-setting .edit-field .field-txt[data-v-c0f75bb9]{line-height:30px}.form-mix[data-v-c0f75bb9] .ant-form-item{margin-bottom:5px!important}.form-mix .checkbox-tips[data-v-c0f75bb9] .ant-checkbox-wrapper{color:#999}.form-mix[data-v-c0f75bb9] .ant-tabs-tabpane{max-height:calc(60vh - 60px);overflow-y:auto}.unione-form-widget[data-v-540f619c]{padding:10px}.unione-form-widget[data-v-540f619c] .widget-setting{margin-top:-5px!important}.unione-form-widget .unione-form.edit[data-v-540f619c]{padding:0 20px}.unione-form-widget .unione-form .unione-widget[data-v-540f619c]{display:block}.unione-form-widget .unione-form .unione-widget.all-line[data-v-540f619c]{width:100%!important}.unione-form-widget .unione-form .unione-widget.2in_line[data-v-540f619c]{width:66.66%!important}.unione-form-widget .unione-form.form-layout-col-1 .unione-widget[data-v-540f619c]{width:100%}.unione-form-widget .unione-form.form-layout-col-2 .unione-widget[data-v-540f619c]{width:50%;display:inline-block}.unione-form-widget .unione-form.form-layout-col-3 .unione-widget[data-v-540f619c]{width:33.33%;display:inline-block}.unione-form-widget .form-btns[data-v-540f619c]{width:100%;margin:10px;text-align:center}.unione-form-widget .form-btns .btn[data-v-540f619c]{margin:auto 5px}.unione-form-item .ant-form-item[data-v-8941ba2b]{margin-bottom:6px}.unione-form-item .ant-form-item[data-v-8941ba2b] .ant-form-item-explain-error{right:5px;margin-top:-27px;position:absolute}.unione-query-setting .unione-query-tools[data-v-ce575063]{padding-bottom:10px}.unione-query-setting .unione-query-tools .btn[data-v-ce575063]{margin:auto 5px}.unione-query-setting .unione-query-tools .btn.right[data-v-ce575063]{float:right}.unione-query-setting .unione-query-tools .btn .bool-del[data-v-ce575063]{display:none;position:absolute;margin-top:-25px;right:0;color:#000}.unione-query-setting .unione-query-tools .btn .bool-del[data-v-ce575063]:hover{background-color:#f0f0f0}.unione-query-setting .unione-query-tools .btn.deleted[data-v-ce575063]{color:#999;border-color:#999}.unione-query-setting .unione-query-tools .btn.deleted[data-v-ce575063] span{text-decoration:line-through}.unione-query-setting .unione-query-tools .btn:hover .bool-del[data-v-ce575063]{display:block}.unione-query-setting .unione-query-tools .selected-info[data-v-ce575063]{margin:auto 5px;color:#2795f9;cursor:pointer}.unione-query-setting .unione-query-tools .selected-info[data-v-ce575063]:hover{color:red;text-decoration:line-through}.unione-query-setting .unione-query-tools[data-v-ce575063] .ant-btn-sm{height:27px}.unione-query-setting .unione-query-opts[data-v-ce575063]{padding-bottom:10px}.unione-query-setting .unione-query-opts .btn[data-v-ce575063]{margin:auto 5px}.unione-query-setting .unione-query-opts .btn.right[data-v-ce575063]{float:right}.unione-query-setting .unione-query-opts .btn .btn-del[data-v-ce575063]{display:none;position:absolute;margin-top:-25px;right:0;color:#000}.unione-query-setting .unione-query-opts .btn .btn-del[data-v-ce575063]:hover{background-color:#f0f0f0}.unione-query-setting .unione-query-opts .btn.deleted[data-v-ce575063]{color:#999;border-color:#999}.unione-query-setting .unione-query-opts .btn.deleted[data-v-ce575063] span{text-decoration:line-through}.unione-query-setting .unione-query-opts .btn:hover .btn-del[data-v-ce575063]{display:block}.unione-query-setting .unione-query-opts[data-v-ce575063] .ant-btn-sm{height:27px}.unione-query-setting[data-v-ce575063] .ant-table .ant-table-thead tr th{font-weight:400}.unione-query-setting[data-v-ce575063] .ant-table .ant-table-tbody tr td{padding:3px}.unione-query-setting .edit-field[data-v-ce575063]{width:100%;height:100%}.unione-query-setting .edit-field.empty[data-v-ce575063]{position:absolute;top:0;left:0}.unione-query-setting .edit-field.empty[data-v-ce575063] .ant-btn{padding:4px 7px;float:right}.unione-query-setting .edit-field[data-v-ce575063] .ant-input-number{width:calc(100% - 5px)}.unione-query-setting .edit-field[data-v-ce575063] .ant-select{width:100%}.unione-query-setting .edit-field[data-v-ce575063] .ant-btn{padding:4px;float:right}.unione-query-setting .edit-field[data-v-ce575063] .ant-checkbox{margin-top:8px}.unione-query-setting .edit-field .field-txt[data-v-ce575063]{line-height:30px}.form-mix[data-v-ce575063] .ant-form-item{margin-bottom:5px!important}.form-mix .checkbox-tips[data-v-ce575063] .ant-checkbox-wrapper{color:#999}.form-mix[data-v-ce575063] .ant-tabs-tabpane{max-height:calc(60vh - 60px);overflow-y:auto}.unione-query-form .query-field[data-v-bf93af8d]{display:inline-block;margin-bottom:5px;min-width:250px;width:25%}.unione-query-form.edit .query-field[data-v-bf93af8d]{width:calc(25% - 7px)}.unione-query-form .query-btn[data-v-bf93af8d]{display:inline-block;white-space:nowrap}.unione-query-form .query-btn .btn[data-v-bf93af8d]{margin:auto 5px}.unione-query-form .query-btn .btn.save-search[data-v-bf93af8d]{float:right;position:absolute;right:10px}.btn-advanced-overlay[data-v-bf93af8d]{padding:3px 5px;list-style-type:none;background-color:#fff;background-clip:padding-box;border-radius:8px;outline:none;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;display:flex;flex-direction:column}.btn-advanced-overlay .item[data-v-bf93af8d]{padding:3px 5px}.unione-table-setting .unione-table-tools[data-v-c966c24c]{padding-bottom:10px}.unione-table-setting .unione-table-tools .btn[data-v-c966c24c]{margin:auto 5px}.unione-table-setting .unione-table-tools .btn.right[data-v-c966c24c]{float:right}.unione-table-setting .unione-table-tools .btn .bool-del[data-v-c966c24c]{display:none;position:absolute;margin-top:-25px;right:0;color:#000}.unione-table-setting .unione-table-tools .btn .bool-del[data-v-c966c24c]:hover{background-color:#f0f0f0}.unione-table-setting .unione-table-tools .btn.deleted[data-v-c966c24c]{color:#999;border-color:#999}.unione-table-setting .unione-table-tools .btn.deleted[data-v-c966c24c] span{text-decoration:line-through}.unione-table-setting .unione-table-tools .btn:hover .bool-del[data-v-c966c24c]{display:block}.unione-table-setting .unione-table-tools .selected-info[data-v-c966c24c]{margin:auto 5px;color:#2795f9;cursor:pointer}.unione-table-setting .unione-table-tools .selected-info[data-v-c966c24c]:hover{color:red;text-decoration:line-through}.unione-table-setting .unione-table-tools[data-v-c966c24c] .ant-btn-sm{height:27px}.unione-table-setting .unione-table-opts[data-v-c966c24c]{padding-bottom:10px}.unione-table-setting .unione-table-opts .btn[data-v-c966c24c]{margin:auto 5px}.unione-table-setting .unione-table-opts .btn.right[data-v-c966c24c]{float:right}.unione-table-setting .unione-table-opts .btn .btn-del[data-v-c966c24c]{display:none;position:absolute;margin-top:-25px;right:0;color:#000}.unione-table-setting .unione-table-opts .btn .btn-del[data-v-c966c24c]:hover{background-color:#f0f0f0}.unione-table-setting .unione-table-opts .btn.deleted[data-v-c966c24c]{color:#999;border-color:#999}.unione-table-setting .unione-table-opts .btn.deleted[data-v-c966c24c] span{text-decoration:line-through}.unione-table-setting .unione-table-opts .btn:hover .btn-del[data-v-c966c24c]{display:block}.unione-table-setting .unione-table-opts[data-v-c966c24c] .ant-btn-sm{height:27px}.unione-table-setting[data-v-c966c24c] .ant-table .ant-table-thead tr th{font-weight:400}.unione-table-setting[data-v-c966c24c] .ant-table .ant-table-tbody tr td{padding:3px}.unione-table-setting .edit-field[data-v-c966c24c]{width:100%;height:100%}.unione-table-setting .edit-field.empty[data-v-c966c24c]{position:absolute;top:0;left:0}.unione-table-setting .edit-field.empty[data-v-c966c24c] .ant-btn{padding:4px 7px;float:right}.unione-table-setting .edit-field[data-v-c966c24c] .ant-input-number{width:calc(100% - 5px)}.unione-table-setting .edit-field[data-v-c966c24c] .ant-select{width:100%}.unione-table-setting .edit-field[data-v-c966c24c] .ant-btn{padding:4px;float:right}.unione-table-setting .edit-field[data-v-c966c24c] .ant-checkbox{margin-top:8px}.unione-table-setting .edit-field .field-txt[data-v-c966c24c]{line-height:30px}.form-mix[data-v-c966c24c] .ant-form-item{margin-bottom:5px!important}.form-mix .checkbox-tips[data-v-c966c24c] .ant-checkbox-wrapper{color:#999}.form-mix[data-v-c966c24c] .ant-tabs-tabpane{max-height:calc(60vh - 60px);overflow-y:auto}.unione-table-list[data-v-a9f2c11d]{margin-top:10px}.unione-table-list .unione-table-tools[data-v-a9f2c11d]{padding-bottom:10px}.unione-table-list .unione-table-tools .btn[data-v-a9f2c11d]{margin:auto 5px}.unione-table-list .unione-table-tools .btn.right[data-v-a9f2c11d]{float:right}.unione-table-list .unione-table-tools .selected-info[data-v-a9f2c11d]{margin:auto 5px;color:#2795f9;cursor:pointer}.unione-table-list .unione-table-tools .selected-info[data-v-a9f2c11d]:hover{color:red;text-decoration:line-through}.unione-table-list .unione-table-tools[data-v-a9f2c11d] .ant-btn-sm{height:27px}.unione-table-list .unione-table-opts .opt[data-v-a9f2c11d]{margin:auto 2px}.unione-table-list .unione-table-opts .opt[data-v-a9f2c11d] .widget-setting{display:block}.unione-table-list .unione-table-opts .opt-more.small[data-v-a9f2c11d]{padding:0 5px 2px;height:24px}.unione-table-list .unione-table-opts .item[data-v-a9f2c11d] .widget-setting{display:block}.opt-more-overlay[data-v-a9f2c11d]{padding:3px 5px;list-style-type:none;background-color:#fff;background-clip:padding-box;border:1px solid #e6f7ff;border-radius:8px;outline:none;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d}.opt-more-overlay.vertical[data-v-a9f2c11d]{display:flex;flex-direction:column}.opt-more-overlay .item[data-v-a9f2c11d]{padding:2px 6px}.data-field-manage .btn[data-v-f6307a23]{margin-top:-50px;float:right}.data-field-manage .btn.btn-add[data-v-f6307a23]{margin-right:70px}.data-field-manage .btn.btn-delete[data-v-f6307a23]{margin-right:5px}.data-field-manage .edit-field[data-v-f6307a23]{width:100%;height:100%}.data-field-manage .edit-field.empty[data-v-f6307a23]{position:absolute;top:0;left:0}.data-field-manage .edit-field[data-v-f6307a23] .ant-input-number{width:calc(100% - 5px)}.data-field-manage .edit-field[data-v-f6307a23] .ant-select{width:100%}.data-field-manage[data-v-f6307a23] .ant-table-thead tr th,.data-field-setting[data-v-ef9b9849] .ant-table .ant-table-thead tr th{font-weight:400}.data-field-setting[data-v-ef9b9849] .ant-table .ant-table-tbody tr td{padding:3px}.data-field-setting .edit-field[data-v-ef9b9849]{width:100%;height:100%}.data-field-setting .edit-field.empty[data-v-ef9b9849]{position:absolute;top:0;left:0}.data-field-setting .edit-field.empty[data-v-ef9b9849] .ant-btn{padding:4px 7px;float:right}.data-field-setting .edit-field[data-v-ef9b9849] .ant-input-number{width:calc(100% - 5px)}.data-field-setting .edit-field[data-v-ef9b9849] .ant-select{width:100%}.data-field-setting .edit-field[data-v-ef9b9849] .ant-btn{padding:4px;float:right}.data-field-setting .edit-field[data-v-ef9b9849] .ant-checkbox{margin-top:8px}.data-field-setting .edit-field .field-txt[data-v-ef9b9849]{line-height:30px}.form-mix[data-v-ef9b9849] .ant-form-item{margin-bottom:5px!important}.form-mix .checkbox-tips[data-v-ef9b9849] .ant-checkbox-wrapper{color:#999}.data-define[data-v-6be2cc50]{height:100%;overflow-y:auto}.data-define.center[data-v-6be2cc50]{display:flex}.data-define .data-model-list[data-v-6be2cc50]{width:180px;height:100%;border-right:1px solid #d9d9d9;display:flex;align-items:flex-start;flex-direction:column;float:left}.data-define .data-model-list .title[data-v-6be2cc50]{height:35px;width:100%;cursor:pointer;line-height:35px;padding:0 5px}.data-define .data-model-list .title.slt[data-v-6be2cc50]{background-color:#e6f7ff;color:#2795f9}.data-define .data-model-list .title.btn-add[data-v-6be2cc50]{text-align:center;font-size:20px;margin-top:5px;margin-left:5px;border:1px solid #d9d9d9;width:calc(100% - 10px);line-height:30px}.data-define .data-model-list .title[data-v-6be2cc50]:hover{background-color:#e6f7ff;color:#2795f9}.data-define .data-model-form[data-v-6be2cc50]{display:inline-block;width:calc(100% - 180px);padding:0 10px}.data-define .data-model-form.center[data-v-6be2cc50]{margin:0 auto}.unione-page-setting .form-mix[data-v-2420ce7a] .ant-form-item{margin-bottom:5px!important}.unione-page-setting .form-mix .checkbox-tips[data-v-2420ce7a] .ant-checkbox-wrapper{color:#999}.unione-page-setting .form-mix[data-v-2420ce7a] .ant-tabs-tabpane{max-height:calc(60vh - 60px);overflow-y:auto}.unione-page-view[data-v-f792d0b4]{padding:10px;height:100%;overflow-y:auto}.load-table-form[data-v-d7658b67] .query-field{width:300px}.data-field-manage[data-v-4020e3f0]{min-height:200px}.data-field-manage .btn[data-v-4020e3f0]{margin-top:-50px;float:right}.data-field-manage .btn.btn-add[data-v-4020e3f0]{margin-right:70px}.data-field-manage .btn.btn-delete[data-v-4020e3f0]{margin-right:5px}.data-field-manage .edit-field[data-v-4020e3f0]{width:100%;height:100%}.data-field-manage .edit-field.empty[data-v-4020e3f0]{position:absolute;top:0;left:0}.data-field-manage .edit-field[data-v-4020e3f0] .ant-input-number{width:calc(100% - 5px)}.data-field-manage .edit-field[data-v-4020e3f0] .ant-select{width:100%}.data-field-manage[data-v-4020e3f0] .ant-table-thead tr th{font-weight:400}.data-field-setting[data-v-d5938ab8]{min-height:200px}.data-field-setting[data-v-d5938ab8] .ant-table .ant-table-thead tr th{font-weight:400}.data-field-setting[data-v-d5938ab8] .ant-table .ant-table-tbody tr td{padding:3px}.data-field-setting .edit-field[data-v-d5938ab8]{width:100%;height:100%}.data-field-setting .edit-field.empty[data-v-d5938ab8]{position:absolute;top:0;left:0}.data-field-setting .edit-field.empty[data-v-d5938ab8] .ant-btn{padding:4px 7px;float:right}.data-field-setting .edit-field[data-v-d5938ab8] .ant-input-number{width:calc(100% - 5px)}.data-field-setting .edit-field[data-v-d5938ab8] .ant-select{width:100%}.data-field-setting .edit-field[data-v-d5938ab8] .ant-btn{padding:4px;float:right}.data-field-setting .edit-field[data-v-d5938ab8] .ant-checkbox{margin-top:8px}.data-field-setting .edit-field .field-txt[data-v-d5938ab8]{line-height:30px}.form-mix[data-v-d5938ab8] .ant-form-item{margin-bottom:5px!important}.form-mix .checkbox-tips[data-v-d5938ab8] .ant-checkbox-wrapper{color:#999}.field-setting-form[data-v-d5938ab8]{padding-top:10px}.field-setting-form[data-v-d5938ab8] .ant-input-number{width:100%}.field-setting-form.sort[data-v-d5938ab8] .ant-form-item{width:50%;display:inline-block}.field-setting-form.sort[data-v-d5938ab8] .ant-form-item .ant-form-item-label{width:50%;max-width:50%;flex:0 0 50%}.field-setting-form.sort[data-v-d5938ab8] .ant-form-item .ant-form-item-control{width:50%;max-width:50%}.data-field-fkey[data-v-84143692]{min-height:200px}.data-field-fkey[data-v-84143692] .ant-table-cell{font-weight:unset}.data-field-fkey .edit-field[data-v-84143692]{width:100%;height:100%}.data-field-fkey .edit-field.empty[data-v-84143692]{position:absolute;top:0;left:0}.data-field-fkey .edit-field[data-v-84143692] .ant-input-number{width:calc(100% - 5px)}.data-field-fkey .edit-field[data-v-84143692] .ant-select{width:100%}.data-filter[data-v-a600b93f]{height:100%;min-height:200px}.data-filter .filter-box[data-v-a600b93f]{width:calc(25% - 10px);margin:5px;height:100px;display:inline-flex}.data-filter .filter-box[data-v-a600b93f] .ant-card-body{width:100%}.data-filter .filter-box .action[data-v-a600b93f]{margin-top:10px;text-align:center}.data-filter .filter-box .action .ant-btn[data-v-a600b93f]{width:30%;margin:auto 10px}.data-filter .filter-box.btn-add[data-v-a600b93f]{line-height:80px;cursor:pointer}.data-filter .filter-box.btn-add[data-v-a600b93f] .ant-card-body{text-align:center}.data-filter .filter-box.btn-add .btn[data-v-a600b93f]{font-size:30px;color:#00000080}.data-filter .filter-box[data-v-a600b93f]:hover{background-color:#e6f7ff}.data-filter[data-v-a600b93f] .ant-card-bordered{border:1px solid #d9d9d9}.data-filter .btn-tmpl[data-v-a600b93f]{position:absolute;right:-7px;cursor:pointer}.form-mix[data-v-a600b93f] .ant-form-item{margin-bottom:5px!important}.form-mix[data-v-a600b93f] .ant-form-item .ant-form-item-explain-error{right:5px;margin-top:-27px;position:absolute}.form-mix .checkbox-tips[data-v-a600b93f] .ant-checkbox-wrapper{color:#999}.data-define-edit[data-v-3eeab6e6]{overflow-y:auto;height:100%}.data-define-edit[data-v-3eeab6e6] .page-setting-section .title{font-size:14px}.data-define-edit[data-v-3eeab6e6] .page-setting-section .reactive{font-size:12px}.data-define-edit[data-v-3eeab6e6] .page-setting-section.open .type{margin-top:6px!important}.data-define-edit[data-v-3eeab6e6] .page-setting-section.close .title,.data-define-edit[data-v-3eeab6e6] .page-setting-section.close .reactive{color:#00bd7e}.data-define-edit .actions[data-v-3eeab6e6]{width:100%;bottom:10px;text-align:center}.data-define-edit .actions .ant-btn[data-v-3eeab6e6]{margin:15px 10px}
package/dist/typing.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { VNodeChild } from 'vue';
2
1
  export interface Convert {
3
2
  id?: string;
4
3
  types: 'dict' | 'option' | 'dbtable' | 'remote' | 'local';
@@ -36,6 +35,64 @@ export interface Config {
36
35
  error: string;
37
36
  }>;
38
37
  }
38
+ export interface FormItem {
39
+ dsn?: string;
40
+ control?: string;
41
+ name: string;
42
+ value?: string | number;
43
+ dataType?: string;
44
+ hidden?: Array<string>;
45
+ readonly?: Array<string>;
46
+ event?: any;
47
+ convert?: Convert;
48
+ rule?: any;
49
+ fkey?: any;
50
+ conditionStyle?: Array<any>;
51
+ props?: any;
52
+ view?: any;
53
+ }
54
+ export interface FormPageEvent {
55
+ validate?: EventDefine | Function;
56
+ visible?: EventDefine | Function;
57
+ preSave?: EventDefine | Function;
58
+ postSaved?: EventDefine | Function;
59
+ }
60
+ export interface TreePageEvent {
61
+ validate?: EventDefine | Function;
62
+ visible?: EventDefine | Function;
63
+ createNode?: EventDefine | Function;
64
+ preSave?: EventDefine | Function;
65
+ postSaved?: EventDefine | Function;
66
+ }
67
+ export interface EventDefine {
68
+ enable?: boolean;
69
+ scriptText?: string;
70
+ scriptHelp?: string;
71
+ }
72
+ export interface TreeConfig {
73
+ disabled?: boolean;
74
+ draggable?: boolean;
75
+ multiple?: boolean;
76
+ selectable?: boolean;
77
+ checkable?: boolean;
78
+ showLine?: boolean;
79
+ showIcon?: boolean;
80
+ btns?: Array<ButtonSetting>;
81
+ data?: Array<any>;
82
+ idField?: string;
83
+ pidField?: string;
84
+ labelField?: string;
85
+ leafField?: string;
86
+ }
87
+ export interface TreePageSetting {
88
+ platform?: 'pc' | 'app';
89
+ form?: {
90
+ showColumn?: number;
91
+ labelWidth?: number;
92
+ valueWidth?: number;
93
+ };
94
+ tree?: TreeConfig;
95
+ }
39
96
  /**
40
97
  * 数据字段
41
98
  */
@@ -172,6 +229,7 @@ export interface EditorConfig {
172
229
  component?: string;
173
230
  widgets: Array<any>;
174
231
  dsnList?: Array<string>;
232
+ storage?: DataStorage;
175
233
  permis?: object;
176
234
  css?: {
177
235
  cssName?: string;
@@ -179,12 +237,21 @@ export interface EditorConfig {
179
237
  props?: object;
180
238
  };
181
239
  settings?: {
182
- ctx?: string;
183
- timeout?: number;
184
240
  platform?: 'pc' | 'app';
185
241
  ruleTrigger?: 'change' | 'blur';
186
242
  };
187
243
  }
244
+ export interface DataParams {
245
+ title: string;
246
+ name: string;
247
+ alias?: string;
248
+ value?: string;
249
+ }
250
+ export interface DataStorage {
251
+ controller: string;
252
+ findParams?: Array<DataParams>;
253
+ saveParams?: Array<DataParams>;
254
+ }
188
255
  /**
189
256
  * 表单页面配置
190
257
  */
@@ -355,18 +422,6 @@ export interface FormWidget extends WidgetModel {
355
422
  labelWidget?: number;
356
423
  };
357
424
  }
358
- /**
359
- * 查询字段
360
- * 使用:QueryForm
361
- */
362
- export interface QueryField {
363
- name: string;
364
- title: string;
365
- widget?: string;
366
- visible?: boolean;
367
- placeholder?: string;
368
- props?: object;
369
- }
370
425
  /**
371
426
  * 按钮设置
372
427
  * 使用:QueryForm,TableList
@@ -374,12 +429,9 @@ export interface QueryField {
374
429
  export interface ButtonSetting {
375
430
  title: string;
376
431
  name: string;
432
+ icon?: string;
377
433
  loading?: boolean;
378
434
  visible?: boolean;
379
- icon?: string | VNodeChild;
380
- shape?: string;
381
- type?: string;
382
- size?: string;
383
435
  index?: number;
384
436
  action?: {
385
437
  type?: string;
@@ -394,23 +446,49 @@ export interface ButtonSetting {
394
446
  height?: string;
395
447
  params?: Array<any>;
396
448
  };
397
- trigger?: string;
398
449
  props?: {
399
450
  danger?: boolean;
400
451
  block?: boolean;
401
452
  ghost?: boolean;
453
+ shape?: string;
454
+ type?: string;
455
+ size?: string;
402
456
  };
403
457
  event?: {
404
- click?: Function;
405
- clickScript?: string;
406
- title?: Function;
407
- titleScript?: string;
408
- disable?: Function;
409
- disableScript?: string;
410
- visible?: Function;
411
- visibleScript?: string;
458
+ click?: Function | {
459
+ enable: boolean;
460
+ scriptText: string;
461
+ scriptHelp?: string;
462
+ };
463
+ title?: Function | {
464
+ enable: boolean;
465
+ scriptText: string;
466
+ scriptHelp?: string;
467
+ };
468
+ disable?: Function | {
469
+ enable: boolean;
470
+ scriptText: string;
471
+ scriptHelp?: string;
472
+ };
473
+ visible?: Function | {
474
+ enable: boolean;
475
+ scriptText: string;
476
+ scriptHelp?: string;
477
+ };
412
478
  };
413
479
  }
480
+ /**
481
+ * 查询字段
482
+ * 使用:QueryForm
483
+ */
484
+ export interface QueryField {
485
+ name: string;
486
+ title: string;
487
+ widget?: string;
488
+ visible?: boolean;
489
+ placeholder?: string;
490
+ props?: object;
491
+ }
414
492
  /**
415
493
  * 组件配置
416
494
  */
@@ -1,2 +1,2 @@
1
- declare const _default: "0.0.7";
1
+ declare const _default: "0.0.9";
2
2
  export default _default;
@@ -3,6 +3,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
3
3
  type: ObjectConstructor;
4
4
  required: false;
5
5
  };
6
+ disabled: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
6
10
  type: {
7
11
  type: StringConstructor;
8
12
  };
@@ -39,6 +43,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
39
43
  type: ObjectConstructor;
40
44
  required: false;
41
45
  };
46
+ disabled: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
42
50
  type: {
43
51
  type: StringConstructor;
44
52
  };
@@ -72,6 +80,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
72
80
  onClick?: ((...args: any[]) => any) | undefined;
73
81
  }>, {
74
82
  preset: string[];
83
+ disabled: boolean;
75
84
  ctx: Record<string, any>;
76
85
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
77
86
  export default _default;
@@ -17,6 +17,7 @@ declare function reset(): void;
17
17
  * 表单验证
18
18
  */
19
19
  declare function validate(): any;
20
+ declare function setDisabled(flag?: boolean): void;
20
21
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
21
22
  editor: {
22
23
  type: ObjectConstructor;
@@ -35,6 +36,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
35
36
  getValue: typeof getValue;
36
37
  setValue: typeof setValue;
37
38
  reset: typeof reset;
39
+ setDisabled: typeof setDisabled;
38
40
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
39
41
  editor: {
40
42
  type: ObjectConstructor;
@@ -17,6 +17,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
17
17
  type: ObjectConstructor;
18
18
  required: true;
19
19
  };
20
+ disabled: {
21
+ type: BooleanConstructor;
22
+ defualt: boolean;
23
+ };
20
24
  value: {
21
25
  type: PropType<any>;
22
26
  };
@@ -39,10 +43,16 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
39
43
  type: ObjectConstructor;
40
44
  required: true;
41
45
  };
46
+ disabled: {
47
+ type: BooleanConstructor;
48
+ defualt: boolean;
49
+ };
42
50
  value: {
43
51
  type: PropType<any>;
44
52
  };
45
53
  }>> & Readonly<{
46
54
  "onUpdate:value"?: ((value: any) => any) | undefined;
47
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
55
+ }>, {
56
+ disabled: boolean;
57
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
48
58
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unione-form-vue",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run version && vite serve preview --mode development",