unione-form-vue 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/editor.d.ts +52 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.umd.js +365 -0
- package/dist/lib/data.d.ts +62 -0
- package/dist/lib/utils.d.ts +10 -0
- package/dist/locales/index.d.ts +9 -0
- package/dist/locales/lang/en-US.d.ts +11 -0
- package/dist/locales/lang/global/en-US.d.ts +9 -0
- package/dist/locales/lang/global/zh-CN.d.ts +9 -0
- package/dist/locales/lang/pages/en-US.d.ts +4 -0
- package/dist/locales/lang/pages/zh-CN.d.ts +4 -0
- package/dist/locales/lang/routes/en-US.d.ts +4 -0
- package/dist/locales/lang/routes/zh-CN.d.ts +4 -0
- package/dist/locales/lang/zh-CN.d.ts +11 -0
- package/dist/page/page.vue.d.ts +36 -0
- package/dist/page/view.vue.d.ts +46 -0
- package/dist/style.css +1 -0
- package/dist/typing.d.ts +285 -0
- package/dist/version/index.d.ts +2 -0
- package/dist/version/version.d.ts +2 -0
- package/dist/widgets/base/btn.vue.d.ts +40 -0
- package/dist/widgets/form/form.vue.d.ts +34 -0
- package/dist/widgets/form/render.vue.d.ts +38 -0
- package/dist/widgets/layout/tabs.vue.d.ts +28 -0
- package/dist/widgets/props/base/btnSetting.vue.d.ts +44 -0
- package/dist/widgets/props/data/dataDefine.vue.d.ts +25 -0
- package/dist/widgets/props/data/dataField.vue.d.ts +53 -0
- package/dist/widgets/props/data/dataFieldMange.vue.d.ts +10 -0
- package/dist/widgets/props/data/dataFieldSetting.vue.d.ts +10 -0
- package/dist/widgets/props/form/formSetting.vue.d.ts +20 -0
- package/dist/widgets/props/page/pageSetting.vue.d.ts +12 -0
- package/dist/widgets/props/query/querySetting.vue.d.ts +20 -0
- package/dist/widgets/props/table/tableSetting.vue.d.ts +20 -0
- package/dist/widgets/query/queryForm.vue.d.ts +38 -0
- package/dist/widgets/table/tableList.vue.d.ts +88 -0
- package/dist/widgets/widget.vue.d.ts +45 -0
- package/package.json +87 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { DataModel, DataParams, DataResult } from '../typing';
|
|
3
|
+
export default class DataManager {
|
|
4
|
+
$dataModels: Ref<Array<DataModel>>;
|
|
5
|
+
$dataModelMap: Ref<any>;
|
|
6
|
+
$settings: Ref<any>;
|
|
7
|
+
$axios: any;
|
|
8
|
+
$axiosProccess: any;
|
|
9
|
+
constructor(dataModel: Array<DataModel>, config?: any);
|
|
10
|
+
/**
|
|
11
|
+
* 初始化Axios实例
|
|
12
|
+
*/
|
|
13
|
+
$initAxios(): void;
|
|
14
|
+
/**
|
|
15
|
+
* 获取/设置数据模型
|
|
16
|
+
* @param sn
|
|
17
|
+
* @param data
|
|
18
|
+
* @returns
|
|
19
|
+
*/
|
|
20
|
+
dataModel(sn: string, data?: any): any;
|
|
21
|
+
/**
|
|
22
|
+
* 设置/获取数据模型列表
|
|
23
|
+
* @param models
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
dataModels(models?: Array<DataModel>): DataModel[] | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* 设置
|
|
29
|
+
* @param settings
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
settings(settings: any): any;
|
|
33
|
+
/**
|
|
34
|
+
* 获取数据实例
|
|
35
|
+
* @param sn
|
|
36
|
+
*/
|
|
37
|
+
use(sn: string): import('pinia').StoreDefinition<string, import('pinia')._UnwrapAll<Pick<{
|
|
38
|
+
find: (params: DataParams) => Promise<DataResult>;
|
|
39
|
+
save: (data: any) => Promise<DataResult>;
|
|
40
|
+
loadByIds: (ids: Array<string>) => Promise<DataResult>;
|
|
41
|
+
detail: (id: string) => Promise<DataResult>;
|
|
42
|
+
deleteByIds: (ids: Array<string>) => Promise<DataResult>;
|
|
43
|
+
request: (req: any) => Promise<DataResult>;
|
|
44
|
+
resolve: (scope: Array<string>) => Promise<DataResult>;
|
|
45
|
+
}, never>>, Pick<{
|
|
46
|
+
find: (params: DataParams) => Promise<DataResult>;
|
|
47
|
+
save: (data: any) => Promise<DataResult>;
|
|
48
|
+
loadByIds: (ids: Array<string>) => Promise<DataResult>;
|
|
49
|
+
detail: (id: string) => Promise<DataResult>;
|
|
50
|
+
deleteByIds: (ids: Array<string>) => Promise<DataResult>;
|
|
51
|
+
request: (req: any) => Promise<DataResult>;
|
|
52
|
+
resolve: (scope: Array<string>) => Promise<DataResult>;
|
|
53
|
+
}, never>, Pick<{
|
|
54
|
+
find: (params: DataParams) => Promise<DataResult>;
|
|
55
|
+
save: (data: any) => Promise<DataResult>;
|
|
56
|
+
loadByIds: (ids: Array<string>) => Promise<DataResult>;
|
|
57
|
+
detail: (id: string) => Promise<DataResult>;
|
|
58
|
+
deleteByIds: (ids: Array<string>) => Promise<DataResult>;
|
|
59
|
+
request: (req: any) => Promise<DataResult>;
|
|
60
|
+
resolve: (scope: Array<string>) => Promise<DataResult>;
|
|
61
|
+
}, "find" | "save" | "loadByIds" | "detail" | "deleteByIds" | "request" | "resolve">>;
|
|
62
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function loadLanguage(lang: string, extLocal: Function | Object): Promise<string>;
|
|
2
|
+
declare const locales: {
|
|
3
|
+
i18n: import('vue-i18n').I18n<{
|
|
4
|
+
"zh-CN": any;
|
|
5
|
+
}, {}, {}, string, false>;
|
|
6
|
+
loadLanguage: typeof import('unione-base-vue/dist/locales').loadLanguage;
|
|
7
|
+
langMessage: any;
|
|
8
|
+
};
|
|
9
|
+
export default locales;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const locales: {
|
|
2
|
+
'pages.layouts.userLayout.title': string;
|
|
3
|
+
'pages.home': string;
|
|
4
|
+
submit: string;
|
|
5
|
+
'submit.ok': string;
|
|
6
|
+
'submit.error': string;
|
|
7
|
+
'confirm.ok': string;
|
|
8
|
+
'confirm.cancel': string;
|
|
9
|
+
'global.setting.title': string;
|
|
10
|
+
};
|
|
11
|
+
export default locales;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'pages.layouts.userLayout.title': string;
|
|
3
|
+
'pages.home': string;
|
|
4
|
+
submit: string;
|
|
5
|
+
'submit.ok': string;
|
|
6
|
+
'submit.error': string;
|
|
7
|
+
'confirm.ok': string;
|
|
8
|
+
'confirm.cancel': string;
|
|
9
|
+
'global.setting.title': string;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
settingTitle: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
editor: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
required: false;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
setting: (...args: any[]) => void;
|
|
12
|
+
saving: (...args: any[]) => void;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
14
|
+
settingTitle: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
editor: {
|
|
19
|
+
type: ObjectConstructor;
|
|
20
|
+
required: false;
|
|
21
|
+
};
|
|
22
|
+
}>> & Readonly<{
|
|
23
|
+
onSetting?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
onSaving?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
settingTitle: string;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
28
|
+
default?(_: {}): any;
|
|
29
|
+
"page-setting"?(_: {}): any;
|
|
30
|
+
}>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { WidgetModel } from '../typing';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
psn: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
};
|
|
7
|
+
params: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
default(): {};
|
|
10
|
+
};
|
|
11
|
+
wid: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
required: false;
|
|
14
|
+
};
|
|
15
|
+
editor: {
|
|
16
|
+
type: ObjectConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
};
|
|
19
|
+
widget: {
|
|
20
|
+
type: PropType<WidgetModel>;
|
|
21
|
+
required: false;
|
|
22
|
+
};
|
|
23
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
24
|
+
psn: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
};
|
|
27
|
+
params: {
|
|
28
|
+
type: ObjectConstructor;
|
|
29
|
+
default(): {};
|
|
30
|
+
};
|
|
31
|
+
wid: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
required: false;
|
|
34
|
+
};
|
|
35
|
+
editor: {
|
|
36
|
+
type: ObjectConstructor;
|
|
37
|
+
required: false;
|
|
38
|
+
};
|
|
39
|
+
widget: {
|
|
40
|
+
type: PropType<WidgetModel>;
|
|
41
|
+
required: false;
|
|
42
|
+
};
|
|
43
|
+
}>> & Readonly<{}>, {
|
|
44
|
+
params: Record<string, any>;
|
|
45
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
46
|
+
export default _default;
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.unione-widget.edit .widget-setting[data-v-af42a5b2]{cursor:pointer;float:right;margin-right:-6px;margin-top:6px;display:none}.unione-widget.edit .widget-setting[data-v-af42a5b2]:hover{font-size:20px;margin-right:-10px;margin-top:6px;animation:rotates-af42a5b2 1s linear infinite!important}.unione-widget.edit[data-v-af42a5b2]:hover{background-color:#e6f7ff}.unione-widget.edit:hover>.widget-setting[data-v-af42a5b2]{display:block;animation:rotates-af42a5b2 2s linear infinite}@keyframes rotates-af42a5b2{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-af42a5b2]{height:75vh;overflow-y:auto}.form-mix[data-v-937393aa] .ant-form-item{margin-bottom:5px!important}.form-mix .checkbox-tips[data-v-937393aa] .ant-checkbox-wrapper{color:#999}.form-mix[data-v-937393aa] .ant-tabs-tabpane{max-height:calc(60vh - 60px);overflow-y:auto}.btn-setting-form[data-v-937393aa]{min-height:400px}.btn-setting-form .param-btn[data-v-937393aa]{margin:auto 10px}.btn-setting-form .edit-field[data-v-937393aa]{width:100%;height:100%}.btn-setting-form .edit-field.empty[data-v-937393aa]{position:absolute;top:0;left:0}.btn-setting-form .edit-field.empty[data-v-937393aa] .ant-btn{padding:4px 7px;float:right}.btn-setting-form .edit-field[data-v-937393aa] .ant-input-number{width:calc(100% - 5px)}.btn-setting-form .edit-field[data-v-937393aa] .ant-select{width:100%}.btn-setting-form .edit-field[data-v-937393aa] .ant-btn{padding:4px;float:right}.btn-setting-form .edit-field[data-v-937393aa] .ant-checkbox{margin-top:8px}.btn-setting-form .edit-field .field-txt[data-v-937393aa]{line-height:30px}.unione-btn[data-v-255caa3a]{display:inline-block;margin:auto 5px}.unione-btn.unione-btn-block[data-v-255caa3a]{width:100%}.unione-btn-drawer .ant-drawer-body[data-v-255caa3a]{padding:5px!important;background-color:red}.unione-form-render .ant-form-item[data-v-afd62b6d]{margin-bottom:6px}.unione-form-render .ant-form-item[data-v-afd62b6d] .ant-form-item-explain-error{right:5px;margin-top:-27px;position:absolute}.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-ab85bf08]{padding:10px;height:100%}.unione-form-widget[data-v-ab85bf08] .widget-setting{margin-top:-5px!important}.unione-form-widget .unione-form.edit[data-v-ab85bf08]{padding:0 20px}.unione-form-widget .unione-form .unione-widget[data-v-ab85bf08]{display:block}.unione-form-widget .unione-form .unione-widget.all-line[data-v-ab85bf08]{width:100%!important}.unione-form-widget .unione-form.form-layout-col-1 .unione-widget[data-v-ab85bf08]{width:100%}.unione-form-widget .unione-form.form-layout-col-2 .unione-widget[data-v-ab85bf08]{width:50%;display:inline-block}.unione-form-widget .unione-form.form-layout-col-3 .unione-widget[data-v-ab85bf08]{width:33.33%;display:inline-block}.unione-form-widget .form-btns[data-v-ab85bf08]{width:100%;margin:10px;text-align:center}.unione-form-widget .form-btns .btn[data-v-ab85bf08]{margin:auto 5px}.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[data-v-4c6e1c2a]{padding-bottom:10px;padding-left:5px}.unione-query-form .query-field[data-v-4c6e1c2a]{display:inline-block;margin-bottom:5px;min-width:250px;width:25%}.unione-query-form.edit .query-field[data-v-4c6e1c2a]{width:calc(25% - 7px)}.unione-query-form .query-btn[data-v-4c6e1c2a]{display:inline-block;white-space:nowrap}.unione-query-form .query-btn .btn[data-v-4c6e1c2a]{margin:auto 5px}.unione-query-form .query-btn .btn.save-search[data-v-4c6e1c2a]{float:right;position:absolute;right:10px}.btn-advanced-overlay[data-v-4c6e1c2a]{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-4c6e1c2a]{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-df2a5ad7]{padding:10px}.unione-table-list .unione-table-tools[data-v-df2a5ad7]{padding-bottom:10px}.unione-table-list .unione-table-tools .btn[data-v-df2a5ad7]{margin:auto 5px}.unione-table-list .unione-table-tools .btn.right[data-v-df2a5ad7]{float:right}.unione-table-list .unione-table-tools .selected-info[data-v-df2a5ad7]{margin:auto 5px;color:#2795f9;cursor:pointer}.unione-table-list .unione-table-tools .selected-info[data-v-df2a5ad7]:hover{color:red;text-decoration:line-through}.unione-table-list .unione-table-tools[data-v-df2a5ad7] .ant-btn-sm{height:27px}.unione-table-list .unione-table-opts .opt[data-v-df2a5ad7]{margin:auto 2px}.unione-table-list .unione-table-opts .opt[data-v-df2a5ad7] .widget-setting{display:block}.unione-table-list .unione-table-opts .opt.unione-widget.edit[data-v-df2a5ad7]{padding-right:8px}.unione-table-list .unione-table-opts .opt-more.small[data-v-df2a5ad7]{padding:0 5px 2px;height:24px}.unione-table-list .unione-table-opts .item[data-v-df2a5ad7] .widget-setting{display:block}.opt-more-overlay[data-v-df2a5ad7]{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-df2a5ad7]{display:flex;flex-direction:column}.opt-more-overlay .item[data-v-df2a5ad7]{padding:2px 6px}.unione-page.edit .page-setting[data-v-f85f9514]{cursor:pointer;position:absolute;right:12px;margin-top:25px;display:none}.unione-page.edit .page-setting[data-v-f85f9514]:hover{font-size:20px;margin-right:-2px;margin-top:23px}.unione-page.edit .btn-save[data-v-f85f9514]{cursor:pointer;position:absolute;right:12px;margin-top:55px;display:none}.unione-page.edit .btn-save[data-v-f85f9514]:hover{font-size:20px;margin-right:-2px;margin-top:52px}.unione-page.edit:hover .page-setting[data-v-f85f9514]{display:block;animation:rotates-f85f9514 2s linear infinite}.unione-page.edit:hover .btn-save[data-v-f85f9514]{display:block}.unione-page .btn-edit[data-v-f85f9514]{cursor:pointer;position:absolute;right:12px;margin-top:-5px}.unione-page .btn-edit[data-v-f85f9514]:hover{font-size:20px;margin-right:-2px;margin-top:-7px}@keyframes rotates-f85f9514{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[data-v-f85f9514]{height:75vh;overflow-y:auto}.data-field-manage .btn[data-v-ec6d21c7]{margin-top:-50px;float:right}.data-field-manage .btn.btn-add[data-v-ec6d21c7]{margin-right:70px}.data-field-manage .btn.btn-delete[data-v-ec6d21c7]{margin-right:5px}.data-field-manage .edit-field[data-v-ec6d21c7]{width:100%;height:100%}.data-field-manage .edit-field.empty[data-v-ec6d21c7]{position:absolute;top:0;left:0}.data-field-manage .edit-field[data-v-ec6d21c7] .ant-input-number{width:calc(100% - 5px)}.data-field-manage .edit-field[data-v-ec6d21c7] .ant-select{width:100%}.data-field-manage[data-v-ec6d21c7] .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[data-v-2d722d75]{padding:10px;height:100%;overflow-y:auto}
|
package/dist/typing.d.ts
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import { VNodeChild } from 'vue';
|
|
2
|
+
import { Rule } from 'ant-design-vue/es/form';
|
|
3
|
+
/**
|
|
4
|
+
* 查询字段
|
|
5
|
+
* 使用:QueryForm
|
|
6
|
+
*/
|
|
7
|
+
export interface QueryField {
|
|
8
|
+
name: string;
|
|
9
|
+
title: string;
|
|
10
|
+
widget?: string;
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
props?: object;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 按钮设置
|
|
17
|
+
* 使用:QueryForm,TableList
|
|
18
|
+
*/
|
|
19
|
+
export interface ButtonSetting {
|
|
20
|
+
title: string;
|
|
21
|
+
name: string;
|
|
22
|
+
visible?: boolean | Function;
|
|
23
|
+
disable?: boolean | Function;
|
|
24
|
+
loading?: boolean;
|
|
25
|
+
icon?: string | VNodeChild;
|
|
26
|
+
shape?: string;
|
|
27
|
+
type?: string;
|
|
28
|
+
size?: string;
|
|
29
|
+
index?: number;
|
|
30
|
+
action?: {
|
|
31
|
+
type?: string;
|
|
32
|
+
href?: string;
|
|
33
|
+
target?: string;
|
|
34
|
+
component?: string;
|
|
35
|
+
position?: string;
|
|
36
|
+
maskClosable?: boolean;
|
|
37
|
+
psn?: string;
|
|
38
|
+
title?: string;
|
|
39
|
+
width?: string;
|
|
40
|
+
height?: string;
|
|
41
|
+
params?: Array<any>;
|
|
42
|
+
};
|
|
43
|
+
trigger?: string;
|
|
44
|
+
props?: {
|
|
45
|
+
danger?: boolean;
|
|
46
|
+
block?: boolean;
|
|
47
|
+
ghost?: boolean;
|
|
48
|
+
};
|
|
49
|
+
event?: {
|
|
50
|
+
click?: Function;
|
|
51
|
+
clickScript?: string;
|
|
52
|
+
title?: Function;
|
|
53
|
+
titleScript?: string;
|
|
54
|
+
disable?: Function;
|
|
55
|
+
disableScript?: string;
|
|
56
|
+
visible?: Function;
|
|
57
|
+
visibleScript?: string;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 数据字段
|
|
62
|
+
*/
|
|
63
|
+
export interface DataField {
|
|
64
|
+
name: string;
|
|
65
|
+
title: string;
|
|
66
|
+
widget?: string;
|
|
67
|
+
isPk: boolean;
|
|
68
|
+
isFk?: boolean;
|
|
69
|
+
isForm?: boolean;
|
|
70
|
+
isView?: boolean;
|
|
71
|
+
isList?: boolean;
|
|
72
|
+
isQuery?: boolean;
|
|
73
|
+
isNull?: boolean;
|
|
74
|
+
isSort?: boolean;
|
|
75
|
+
placeholder?: string;
|
|
76
|
+
props?: object;
|
|
77
|
+
show?: {
|
|
78
|
+
list?: {
|
|
79
|
+
fixed?: string;
|
|
80
|
+
align?: string;
|
|
81
|
+
width?: number | string;
|
|
82
|
+
index?: number;
|
|
83
|
+
};
|
|
84
|
+
form?: {
|
|
85
|
+
width?: number;
|
|
86
|
+
labelWidth?: number;
|
|
87
|
+
valueWidth?: number;
|
|
88
|
+
index?: number;
|
|
89
|
+
};
|
|
90
|
+
view?: {
|
|
91
|
+
width?: number;
|
|
92
|
+
labelWidth?: number;
|
|
93
|
+
valueWidth?: number;
|
|
94
|
+
index?: number;
|
|
95
|
+
};
|
|
96
|
+
query?: {
|
|
97
|
+
width?: number;
|
|
98
|
+
index?: number;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
convert?: {
|
|
102
|
+
type?: string;
|
|
103
|
+
dict?: string;
|
|
104
|
+
options?: Array<any>;
|
|
105
|
+
};
|
|
106
|
+
dataFormat?: string;
|
|
107
|
+
rules?: Array<Rule>;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* 数据模型
|
|
111
|
+
* CRUD接口按照标准规范,统一为POST请求
|
|
112
|
+
* 保存接口:url/save
|
|
113
|
+
* 查询接口:url/find
|
|
114
|
+
* 删除接口:url/delete
|
|
115
|
+
* 详情接口:url/detail
|
|
116
|
+
* 列表接口:url/loadByIds
|
|
117
|
+
*/
|
|
118
|
+
export interface DataModel {
|
|
119
|
+
dsId?: string;
|
|
120
|
+
sn: string;
|
|
121
|
+
vers?: number;
|
|
122
|
+
name?: string;
|
|
123
|
+
title: string;
|
|
124
|
+
category?: string;
|
|
125
|
+
url?: string;
|
|
126
|
+
fields: Array<DataField>;
|
|
127
|
+
setting?: {
|
|
128
|
+
silence?: boolean;
|
|
129
|
+
};
|
|
130
|
+
publishDate?: string;
|
|
131
|
+
sqlFind?: string;
|
|
132
|
+
sqlInsert?: string;
|
|
133
|
+
sqlUpdate?: string;
|
|
134
|
+
sqlDelete?: string;
|
|
135
|
+
syncFlag?: number;
|
|
136
|
+
ordered?: number;
|
|
137
|
+
status?: number;
|
|
138
|
+
descs?: string;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* 数据请求参数对象
|
|
142
|
+
*/
|
|
143
|
+
export interface DataParams {
|
|
144
|
+
page?: number;
|
|
145
|
+
pageSize?: number;
|
|
146
|
+
body?: any;
|
|
147
|
+
id?: string;
|
|
148
|
+
ids?: Array<string>;
|
|
149
|
+
keywords?: string;
|
|
150
|
+
sortName?: string;
|
|
151
|
+
sortOrder?: string;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* 数据请求响应对象
|
|
155
|
+
*/
|
|
156
|
+
export interface DataResult {
|
|
157
|
+
success?: boolean;
|
|
158
|
+
code?: number;
|
|
159
|
+
message?: string;
|
|
160
|
+
body?: any;
|
|
161
|
+
page?: number;
|
|
162
|
+
pageSize?: number;
|
|
163
|
+
total?: number;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* 组件模型
|
|
167
|
+
*/
|
|
168
|
+
export interface WidgetModel {
|
|
169
|
+
wid: string;
|
|
170
|
+
widget: string;
|
|
171
|
+
render?: string;
|
|
172
|
+
title: string;
|
|
173
|
+
isHide?: boolean;
|
|
174
|
+
configs?: any;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* 组件配置
|
|
178
|
+
*/
|
|
179
|
+
export interface WidgetConfig {
|
|
180
|
+
name: string;
|
|
181
|
+
label: string;
|
|
182
|
+
placeholder?: string;
|
|
183
|
+
required?: boolean;
|
|
184
|
+
value?: any;
|
|
185
|
+
className?: string | object;
|
|
186
|
+
style?: string | object;
|
|
187
|
+
attrs?: object;
|
|
188
|
+
event?: {
|
|
189
|
+
onClick?: string;
|
|
190
|
+
onChange?: string;
|
|
191
|
+
onVisible?: string;
|
|
192
|
+
onRequired?: string;
|
|
193
|
+
};
|
|
194
|
+
rules?: Array<any>;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* 列表配置对象
|
|
198
|
+
*/
|
|
199
|
+
export interface ListTableConfig {
|
|
200
|
+
pagination?: object;
|
|
201
|
+
selection?: boolean;
|
|
202
|
+
leftBtns?: Array<object>;
|
|
203
|
+
rightBtns?: Array<object>;
|
|
204
|
+
rownum?: {
|
|
205
|
+
title?: string;
|
|
206
|
+
fixed?: 'left' | 'right';
|
|
207
|
+
align?: 'center' | 'left' | 'right';
|
|
208
|
+
width?: number;
|
|
209
|
+
visible?: boolean;
|
|
210
|
+
};
|
|
211
|
+
columns?: Array<object>;
|
|
212
|
+
operation?: {
|
|
213
|
+
title?: string;
|
|
214
|
+
visible?: boolean;
|
|
215
|
+
width?: number;
|
|
216
|
+
count?: number;
|
|
217
|
+
btns?: Array<object>;
|
|
218
|
+
more?: {};
|
|
219
|
+
};
|
|
220
|
+
attrs?: object;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* 表单页面配置
|
|
224
|
+
*/
|
|
225
|
+
export interface FormPageConfig {
|
|
226
|
+
widgets: Array<WidgetModel>;
|
|
227
|
+
dataModel?: string;
|
|
228
|
+
setting?: {
|
|
229
|
+
platform?: 'pc' | 'app';
|
|
230
|
+
showColumn?: number;
|
|
231
|
+
labelWidget?: number;
|
|
232
|
+
};
|
|
233
|
+
saveBtn?: ButtonSetting;
|
|
234
|
+
submitBtn?: ButtonSetting;
|
|
235
|
+
resetBtn?: ButtonSetting;
|
|
236
|
+
backBtn?: ButtonSetting;
|
|
237
|
+
btns?: Array<ButtonSetting>;
|
|
238
|
+
css?: string | object;
|
|
239
|
+
event?: {
|
|
240
|
+
onValidate?: string;
|
|
241
|
+
onPreSave?: string;
|
|
242
|
+
onSaved?: string;
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* 列表页面配置
|
|
247
|
+
*/
|
|
248
|
+
export interface ListPageConfig {
|
|
249
|
+
widgets: Array<WidgetModel>;
|
|
250
|
+
dataModel?: string;
|
|
251
|
+
css?: string | object;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* 页面定义
|
|
255
|
+
*/
|
|
256
|
+
export interface PageDefine {
|
|
257
|
+
sn: string;
|
|
258
|
+
title: string;
|
|
259
|
+
types: string;
|
|
260
|
+
component?: string;
|
|
261
|
+
appId?: string;
|
|
262
|
+
tmplId?: string;
|
|
263
|
+
vers: number;
|
|
264
|
+
summary?: string;
|
|
265
|
+
icon?: string;
|
|
266
|
+
picMax?: string;
|
|
267
|
+
picMid?: string;
|
|
268
|
+
picMix?: string;
|
|
269
|
+
trades?: string;
|
|
270
|
+
reviewPic?: string;
|
|
271
|
+
isTmpl?: number;
|
|
272
|
+
isGlobal?: number;
|
|
273
|
+
status?: number;
|
|
274
|
+
descs?: string;
|
|
275
|
+
configs: string;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* 编辑器配置对象
|
|
279
|
+
*/
|
|
280
|
+
export interface EditorConfig {
|
|
281
|
+
widgetList: Array<any>;
|
|
282
|
+
dataModels: Array<DataModel>;
|
|
283
|
+
css?: string;
|
|
284
|
+
settings?: object;
|
|
285
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
editor: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
};
|
|
6
|
+
type: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
};
|
|
9
|
+
btn: {
|
|
10
|
+
type: any;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
ctx: {
|
|
14
|
+
type: ObjectConstructor;
|
|
15
|
+
default(): {};
|
|
16
|
+
};
|
|
17
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
click: (...args: any[]) => void;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
20
|
+
editor: {
|
|
21
|
+
type: ObjectConstructor;
|
|
22
|
+
required: false;
|
|
23
|
+
};
|
|
24
|
+
type: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
};
|
|
27
|
+
btn: {
|
|
28
|
+
type: any;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
ctx: {
|
|
32
|
+
type: ObjectConstructor;
|
|
33
|
+
default(): {};
|
|
34
|
+
};
|
|
35
|
+
}>> & Readonly<{
|
|
36
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
ctx: Record<string, any>;
|
|
39
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { WidgetModel } from '../../typing';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
wid: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: false;
|
|
7
|
+
};
|
|
8
|
+
editor: {
|
|
9
|
+
type: ObjectConstructor;
|
|
10
|
+
required: false;
|
|
11
|
+
};
|
|
12
|
+
widget: {
|
|
13
|
+
type: PropType<WidgetModel>;
|
|
14
|
+
required: false;
|
|
15
|
+
};
|
|
16
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
btnClick: (...args: any[]) => void;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
19
|
+
wid: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
required: false;
|
|
22
|
+
};
|
|
23
|
+
editor: {
|
|
24
|
+
type: ObjectConstructor;
|
|
25
|
+
required: false;
|
|
26
|
+
};
|
|
27
|
+
widget: {
|
|
28
|
+
type: PropType<WidgetModel>;
|
|
29
|
+
required: false;
|
|
30
|
+
};
|
|
31
|
+
}>> & Readonly<{
|
|
32
|
+
onBtnClick?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { WidgetModel } from '../../typing';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
wid: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: false;
|
|
7
|
+
};
|
|
8
|
+
editor: {
|
|
9
|
+
type: ObjectConstructor;
|
|
10
|
+
required: false;
|
|
11
|
+
};
|
|
12
|
+
widget: {
|
|
13
|
+
type: PropType<WidgetModel>;
|
|
14
|
+
required: false;
|
|
15
|
+
};
|
|
16
|
+
formData: {
|
|
17
|
+
type: ObjectConstructor;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
21
|
+
wid: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
required: false;
|
|
24
|
+
};
|
|
25
|
+
editor: {
|
|
26
|
+
type: ObjectConstructor;
|
|
27
|
+
required: false;
|
|
28
|
+
};
|
|
29
|
+
widget: {
|
|
30
|
+
type: PropType<WidgetModel>;
|
|
31
|
+
required: false;
|
|
32
|
+
};
|
|
33
|
+
formData: {
|
|
34
|
+
type: ObjectConstructor;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
38
|
+
export default _default;
|