star-horse-lowcode 3.0.8 → 3.1.0
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 +11 -1
- package/dist/App.vue.d.ts +3 -0
- package/dist/api/WebSocketUtils.d.ts +0 -3
- package/dist/api/form_utils.d.ts +7 -0
- package/dist/api/valid_utils.d.ts +2 -1
- package/dist/assets/index.css +1 -1
- package/dist/components/comp/StarHorseDataSelector.vue.d.ts +1 -58
- package/dist/components/comp/StarHorseDataView.vue.d.ts +1 -1
- package/dist/components/comp/StarHorseFormItem.vue.d.ts +1 -5
- package/dist/components/comp/StarHorseFormList.vue.d.ts +1 -7
- package/dist/components/comp/StarHorseFormTable.vue.d.ts +1 -5
- package/dist/components/comp/StarHorseItem.vue.d.ts +1 -7
- package/dist/components/comp/StarHorseStaticTable.vue.d.ts +1 -1
- package/dist/components/comp/StarHorseTableColumn.vue.d.ts +14 -4
- package/dist/components/comp/StarHorseTableComp.vue.d.ts +1 -0
- package/dist/components/comp/StarHorseTree.vue.d.ts +1 -9
- package/dist/components/comp/app/MainSubBar.vue.d.ts +1 -3
- package/dist/components/comp/app/MenuShot.vue.d.ts +15 -0
- package/dist/components/comp/items/groupItem.vue.d.ts +23 -0
- package/dist/components/comp/items/{tableColumn.vue.d.ts → tableColumnItem.vue.d.ts} +12 -2
- package/dist/components/comp/utils/DataPicker.vue.d.ts +1 -1
- package/dist/components/comp/utils/DataSelectorUtils.d.ts +23 -0
- package/dist/components/formcomp/items/area-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/audio-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/autocomplete-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/barcode-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/button-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/cascade-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/checkbox-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/color-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/cron-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/datapicker-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/datetime-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/description-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/dialog-input-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/dialog-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/divider-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/drawer-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/html-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/htmleditor-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/icon-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/image-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/index.d.ts +6 -0
- package/dist/components/formcomp/items/input-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/input-tag-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/json-array-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/json-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/link-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/location-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/markdown-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/number-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/number-range-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/org-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/page-select-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/password-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/progress-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/qrcode-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/radio-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/rate-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/select-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/signature-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/slider-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/starhorse-form-item.vue.d.ts +3 -3
- package/dist/components/formcomp/items/switch-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/tag-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/text-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/textarea-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/time-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/time-picker-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/transfer-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/tree-select-item.vue.d.ts +19 -0
- package/dist/components/formcomp/items/tselect-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/upload-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/user-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/usercomp-item.vue.d.ts +1 -5
- package/dist/components/formcomp/items/view-markdown-item.vue.d.ts +1 -5
- package/dist/components/formcomp/utils/EditDataDialog.vue.d.ts +2 -2
- package/dist/components/formcomp/utils/FormulaEngine.d.ts +129 -0
- package/dist/components/formcomp/utils/ItemRelationEventUtils.d.ts +6 -22
- package/dist/components/help.vue.d.ts +2 -2
- package/dist/components/system/StarHorseMenu.vue.d.ts +1 -3
- package/dist/components/types/ItemPreps.d.ts +4 -0
- package/dist/components/types/PageFieldInfo.d.ts +4 -0
- package/dist/index.es.js +6 -8
- package/dist/lang/en_US.d.ts +141 -0
- package/dist/lang/zh_CN.d.ts +141 -0
- package/dist/sample/commonpage/CommonSkeleton.vue.d.ts +87 -0
- package/dist/sample/commonpage/NormalPage.vue.d.ts +15 -0
- package/dist/sample/commonpage/dynamic_form_utils.d.ts +89 -0
- package/dist/store/FormDataCache.d.ts +4418 -0
- package/dist/store/StoreManager.d.ts +8837 -0
- package/dist/views/NotFound.vue.d.ts +3 -0
- package/package.json +12 -12
|
@@ -2,81 +2,24 @@ import { ModelValueType } from './utils/DataPicker.vue';
|
|
|
2
2
|
import { CSSProperties } from 'vue';
|
|
3
3
|
import { SearchParams } from '../types';
|
|
4
4
|
export interface DataSelectorProps {
|
|
5
|
-
/**
|
|
6
|
-
* 选中数据
|
|
7
|
-
*/
|
|
8
5
|
modelValue: ModelValueType;
|
|
9
|
-
/**
|
|
10
|
-
* 选中数据
|
|
11
|
-
*/
|
|
12
6
|
selectedData?: any;
|
|
13
|
-
/**
|
|
14
|
-
* 占位符
|
|
15
|
-
*/
|
|
16
7
|
placeholder?: string;
|
|
17
|
-
/**
|
|
18
|
-
* 接口地址
|
|
19
|
-
*/
|
|
20
8
|
dataUrl?: string;
|
|
21
|
-
/**
|
|
22
|
-
* 是否使用代理
|
|
23
|
-
*/
|
|
24
9
|
proxy?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* 代理地址
|
|
27
|
-
*/
|
|
28
10
|
proxyUrl?: string;
|
|
29
|
-
/**
|
|
30
|
-
* 接口参数
|
|
31
|
-
*/
|
|
32
11
|
params?: SearchParams[];
|
|
33
|
-
/**
|
|
34
|
-
* 数据
|
|
35
|
-
*/
|
|
36
12
|
data?: Array<any>;
|
|
37
|
-
/**
|
|
38
|
-
* 页码
|
|
39
|
-
*/
|
|
40
13
|
pageSize?: number;
|
|
41
|
-
/**
|
|
42
|
-
* 标题
|
|
43
|
-
*/
|
|
44
14
|
title?: string;
|
|
45
|
-
/**
|
|
46
|
-
* 组件大小
|
|
47
|
-
*/
|
|
48
15
|
compSize?: string;
|
|
49
|
-
/**
|
|
50
|
-
* 显示名称
|
|
51
|
-
*/
|
|
52
16
|
displayName?: string;
|
|
53
|
-
/**
|
|
54
|
-
* 显示值
|
|
55
|
-
*/
|
|
56
17
|
displayValue?: string;
|
|
57
|
-
/**
|
|
58
|
-
* 是否多选
|
|
59
|
-
*/
|
|
60
18
|
multiple?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* 是否禁用
|
|
63
|
-
*/
|
|
64
19
|
disabled?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* 严格模式
|
|
67
|
-
*/
|
|
68
20
|
checkStrictly?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* 选择叶子节点
|
|
71
|
-
*/
|
|
72
21
|
selectLeaf?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* 显示标签长度
|
|
75
|
-
*/
|
|
76
22
|
showTagLength?: number;
|
|
77
|
-
/**
|
|
78
|
-
* 样式
|
|
79
|
-
*/
|
|
80
23
|
style?: CSSProperties;
|
|
81
24
|
tagType: "" | "primary" | "secondary" | "success" | "info" | "warning";
|
|
82
25
|
tagEffect: "" | "light" | "dark" | "plain";
|
|
@@ -97,10 +40,10 @@ declare const __VLS_export: import('vue').DefineComponent<DataSelectorProps, {},
|
|
|
97
40
|
displayName: string;
|
|
98
41
|
compSize: string;
|
|
99
42
|
pageSize: number;
|
|
100
|
-
displayValue: string;
|
|
101
43
|
multiple: boolean;
|
|
102
44
|
checkStrictly: boolean;
|
|
103
45
|
selectLeaf: boolean;
|
|
46
|
+
displayValue: string;
|
|
104
47
|
showTagLength: number;
|
|
105
48
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
106
49
|
declare const _default: typeof __VLS_export;
|
|
@@ -143,9 +143,9 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
143
143
|
primaryKey: any;
|
|
144
144
|
subFormFlag: string;
|
|
145
145
|
dynamicForm: boolean;
|
|
146
|
+
dataFormat: Function;
|
|
146
147
|
preview: boolean;
|
|
147
148
|
labelPosition: string;
|
|
148
|
-
dataFormat: Function;
|
|
149
149
|
batchFieldName: string;
|
|
150
150
|
formSize: string;
|
|
151
151
|
useViewUrl: boolean;
|
|
@@ -5,12 +5,8 @@ type __VLS_ModelProps = {
|
|
|
5
5
|
};
|
|
6
6
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
7
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
|
|
9
|
-
removeRow: (...args: any[]) => void;
|
|
10
|
-
"update:dataForm": (value: any) => void;
|
|
8
|
+
"update:dataForm": (value: any) => any;
|
|
11
9
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
-
onAddRow?: (...args: any[]) => any;
|
|
13
|
-
onRemoveRow?: (...args: any[]) => any;
|
|
14
10
|
"onUpdate:dataForm"?: (value: any) => any;
|
|
15
11
|
}>, {
|
|
16
12
|
source: number;
|
|
@@ -70,10 +70,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
70
70
|
type: PropType<any>;
|
|
71
71
|
};
|
|
72
72
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
73
|
-
|
|
74
|
-
removeRow: (...args: any[]) => void;
|
|
75
|
-
inited: (...args: any[]) => void;
|
|
76
|
-
"update:dataForm": (value: any) => void;
|
|
73
|
+
"update:dataForm": (value: any) => any;
|
|
77
74
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
78
75
|
compUrl: {
|
|
79
76
|
type: PropType<ApiUrls>;
|
|
@@ -143,10 +140,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
143
140
|
type: PropType<any>;
|
|
144
141
|
};
|
|
145
142
|
}>> & Readonly<{
|
|
146
|
-
onAddRow?: (...args: any[]) => any;
|
|
147
|
-
onRemoveRow?: (...args: any[]) => any;
|
|
148
143
|
"onUpdate:dataForm"?: (value: any) => any;
|
|
149
|
-
onInited?: (...args: any[]) => any;
|
|
150
144
|
}>, {
|
|
151
145
|
source: number;
|
|
152
146
|
title: string;
|
|
@@ -27,9 +27,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
27
27
|
type: PropType<any>;
|
|
28
28
|
};
|
|
29
29
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
-
|
|
31
|
-
removeRow: (...args: any[]) => void;
|
|
32
|
-
"update:dataForm": (value: any) => void;
|
|
30
|
+
"update:dataForm": (value: any) => any;
|
|
33
31
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
34
32
|
item: {
|
|
35
33
|
type: PropType<any>;
|
|
@@ -58,8 +56,6 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
58
56
|
type: PropType<any>;
|
|
59
57
|
};
|
|
60
58
|
}>> & Readonly<{
|
|
61
|
-
onAddRow?: (...args: any[]) => any;
|
|
62
|
-
onRemoveRow?: (...args: any[]) => any;
|
|
63
59
|
"onUpdate:dataForm"?: (value: any) => any;
|
|
64
60
|
}>, {
|
|
65
61
|
source: number;
|
|
@@ -42,10 +42,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
42
42
|
type: PropType<any>;
|
|
43
43
|
};
|
|
44
44
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
45
|
-
|
|
46
|
-
focus: (...args: any[]) => void;
|
|
47
|
-
dataSearch: (...args: any[]) => void;
|
|
48
|
-
"update:dataForm": (value: any) => void;
|
|
45
|
+
"update:dataForm": (value: any) => any;
|
|
49
46
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
50
47
|
item: {
|
|
51
48
|
type: PropType<any>;
|
|
@@ -89,9 +86,6 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
89
86
|
type: PropType<any>;
|
|
90
87
|
};
|
|
91
88
|
}>> & Readonly<{
|
|
92
|
-
onBlur?: (...args: any[]) => any;
|
|
93
|
-
onFocus?: (...args: any[]) => any;
|
|
94
|
-
onDataSearch?: (...args: any[]) => any;
|
|
95
89
|
"onUpdate:dataForm"?: (value: any) => any;
|
|
96
90
|
}>, {
|
|
97
91
|
source: number;
|
|
@@ -89,8 +89,8 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
89
89
|
type: ArrayConstructor;
|
|
90
90
|
};
|
|
91
91
|
}>> & Readonly<{}>, {
|
|
92
|
-
height: string;
|
|
93
92
|
dataFormat: Function;
|
|
93
|
+
height: string;
|
|
94
94
|
compSize: string;
|
|
95
95
|
dialogInput: boolean;
|
|
96
96
|
expand: boolean;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { ApiUrls, FieldInfo } from '../types';
|
|
2
3
|
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
4
|
compUrl: {
|
|
4
|
-
type:
|
|
5
|
+
type: PropType<ApiUrls>;
|
|
5
6
|
};
|
|
6
7
|
batchName: {
|
|
7
8
|
type: StringConstructor;
|
|
8
9
|
default: string;
|
|
9
10
|
};
|
|
10
11
|
item: {
|
|
11
|
-
type: PropType<
|
|
12
|
+
type: PropType<FieldInfo>;
|
|
12
13
|
required: true;
|
|
13
14
|
};
|
|
14
15
|
dataFormat: {
|
|
@@ -27,6 +28,10 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
27
28
|
type: BooleanConstructor;
|
|
28
29
|
default: boolean;
|
|
29
30
|
};
|
|
31
|
+
showBatchField: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
30
35
|
sortable: {
|
|
31
36
|
type: BooleanConstructor;
|
|
32
37
|
default: boolean;
|
|
@@ -48,14 +53,14 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
48
53
|
blurEvent: (...args: any[]) => void;
|
|
49
54
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
50
55
|
compUrl: {
|
|
51
|
-
type:
|
|
56
|
+
type: PropType<ApiUrls>;
|
|
52
57
|
};
|
|
53
58
|
batchName: {
|
|
54
59
|
type: StringConstructor;
|
|
55
60
|
default: string;
|
|
56
61
|
};
|
|
57
62
|
item: {
|
|
58
|
-
type: PropType<
|
|
63
|
+
type: PropType<FieldInfo>;
|
|
59
64
|
required: true;
|
|
60
65
|
};
|
|
61
66
|
dataFormat: {
|
|
@@ -74,6 +79,10 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
74
79
|
type: BooleanConstructor;
|
|
75
80
|
default: boolean;
|
|
76
81
|
};
|
|
82
|
+
showBatchField: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
77
86
|
sortable: {
|
|
78
87
|
type: BooleanConstructor;
|
|
79
88
|
default: boolean;
|
|
@@ -99,6 +108,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
99
108
|
batchName: string;
|
|
100
109
|
compSize: string;
|
|
101
110
|
commonFormat: Function;
|
|
111
|
+
showBatchField: boolean;
|
|
102
112
|
isDynamic: boolean;
|
|
103
113
|
sortable: boolean;
|
|
104
114
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -16,6 +16,7 @@ declare const __VLS_export: import('vue').DefineComponent<DataListProps, {
|
|
|
16
16
|
tableCompFunc: (authority: any) => void;
|
|
17
17
|
getDatas: (limitSize?: number, params?: SearchParams[], orderBys?: OrderByInfo[], url?: string, usePageCondition?: boolean) => Promise<any>;
|
|
18
18
|
permissionList: () => Record<string, string>;
|
|
19
|
+
clearData: () => void;
|
|
19
20
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
21
|
selectItem: (...args: any[]) => void;
|
|
21
22
|
permission: (...args: any[]) => void;
|
|
@@ -116,11 +116,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
116
116
|
setSelectData: (datas: Array<any>) => void;
|
|
117
117
|
createSearchParams: (params?: SearchParams[], orderBy?: OrderByInfo[]) => void;
|
|
118
118
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
119
|
-
|
|
120
|
-
changeCollapse: (...args: any[]) => void;
|
|
121
|
-
addData: (...args: any[]) => void;
|
|
122
|
-
removeData: (...args: any[]) => void;
|
|
123
|
-
"update:treeDatas": (value: any) => void;
|
|
119
|
+
"update:treeDatas": (value: any) => any;
|
|
124
120
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
125
121
|
preps: {
|
|
126
122
|
type: PropType<any>;
|
|
@@ -231,10 +227,6 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
231
227
|
type: PropType<any>;
|
|
232
228
|
};
|
|
233
229
|
}>> & Readonly<{
|
|
234
|
-
onSelectData?: (...args: any[]) => any;
|
|
235
|
-
onChangeCollapse?: (...args: any[]) => any;
|
|
236
|
-
onAddData?: (...args: any[]) => any;
|
|
237
|
-
onRemoveData?: (...args: any[]) => any;
|
|
238
230
|
"onUpdate:treeDatas"?: (value: any) => any;
|
|
239
231
|
}>, {
|
|
240
232
|
orderBy: OrderByInfo[];
|
|
@@ -12,8 +12,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
12
12
|
type: import('vue').PropType<any>;
|
|
13
13
|
};
|
|
14
14
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
-
|
|
16
|
-
"update:dataList": (value: any) => void;
|
|
15
|
+
"update:dataList": (value: any) => any;
|
|
17
16
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
18
17
|
level: {
|
|
19
18
|
type: NumberConstructor;
|
|
@@ -28,7 +27,6 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
28
27
|
type: import('vue').PropType<any>;
|
|
29
28
|
};
|
|
30
29
|
}>> & Readonly<{
|
|
31
|
-
onSelectMenu?: (...args: any[]) => any;
|
|
32
30
|
"onUpdate:dataList"?: (value: any) => any;
|
|
33
31
|
}>, {
|
|
34
32
|
level: number;
|
|
@@ -21,6 +21,13 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
21
21
|
type: StringConstructor;
|
|
22
22
|
default: string;
|
|
23
23
|
};
|
|
24
|
+
prop: {
|
|
25
|
+
type: PropType<Record<string, string>>;
|
|
26
|
+
default: () => {
|
|
27
|
+
label: string;
|
|
28
|
+
iconName: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
24
31
|
position: {
|
|
25
32
|
type: PropType<Record<string, any>>;
|
|
26
33
|
default: {};
|
|
@@ -49,6 +56,13 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
49
56
|
type: StringConstructor;
|
|
50
57
|
default: string;
|
|
51
58
|
};
|
|
59
|
+
prop: {
|
|
60
|
+
type: PropType<Record<string, string>>;
|
|
61
|
+
default: () => {
|
|
62
|
+
label: string;
|
|
63
|
+
iconName: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
52
66
|
position: {
|
|
53
67
|
type: PropType<Record<string, any>>;
|
|
54
68
|
default: {};
|
|
@@ -59,6 +73,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
59
73
|
icon: string;
|
|
60
74
|
position: Record<string, any>;
|
|
61
75
|
menus: any[];
|
|
76
|
+
prop: Record<string, string>;
|
|
62
77
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
63
78
|
declare const _default: typeof __VLS_export;
|
|
64
79
|
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ContainerPreps } from '../../types/ItemPreps';
|
|
2
|
+
type __VLS_Props = ContainerPreps;
|
|
3
|
+
type __VLS_ModelProps = {
|
|
4
|
+
"dataForm"?: any;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:dataForm": (value: any) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
"onUpdate:dataForm"?: (value: any) => any;
|
|
11
|
+
}>, {
|
|
12
|
+
source: number;
|
|
13
|
+
batchName: string;
|
|
14
|
+
subFormFlag: string;
|
|
15
|
+
dataIndex: number;
|
|
16
|
+
compSize: string;
|
|
17
|
+
propPrefix: string;
|
|
18
|
+
parentPreps: any;
|
|
19
|
+
batchFieldName: string;
|
|
20
|
+
level: number;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { ApiUrls } from '../../types/ApiUrls';
|
|
3
|
+
import { PageFieldInfo } from '../../types';
|
|
3
4
|
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
5
|
compUrl: {
|
|
5
6
|
type: PropType<ApiUrls>;
|
|
6
7
|
required: true;
|
|
7
8
|
};
|
|
8
9
|
fieldList: {
|
|
9
|
-
type:
|
|
10
|
+
type: PropType<PageFieldInfo>;
|
|
10
11
|
required: true;
|
|
11
12
|
};
|
|
12
13
|
dataFormat: {
|
|
@@ -37,13 +38,17 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
37
38
|
type: FunctionConstructor;
|
|
38
39
|
default: () => void;
|
|
39
40
|
};
|
|
41
|
+
sourceName: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
40
45
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
41
46
|
compUrl: {
|
|
42
47
|
type: PropType<ApiUrls>;
|
|
43
48
|
required: true;
|
|
44
49
|
};
|
|
45
50
|
fieldList: {
|
|
46
|
-
type:
|
|
51
|
+
type: PropType<PageFieldInfo>;
|
|
47
52
|
required: true;
|
|
48
53
|
};
|
|
49
54
|
dataFormat: {
|
|
@@ -74,6 +79,10 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
74
79
|
type: FunctionConstructor;
|
|
75
80
|
default: () => void;
|
|
76
81
|
};
|
|
82
|
+
sourceName: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
77
86
|
}>> & Readonly<{}>, {
|
|
78
87
|
dataFormat: Function;
|
|
79
88
|
compSize: string;
|
|
@@ -81,6 +90,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
81
90
|
showBatchField: boolean;
|
|
82
91
|
isDynamic: boolean;
|
|
83
92
|
sortable: boolean;
|
|
93
|
+
sourceName: string;
|
|
84
94
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
85
95
|
declare const _default: typeof __VLS_export;
|
|
86
96
|
export default _default;
|
|
@@ -75,10 +75,10 @@ declare const __VLS_export: import('vue').DefineComponent<DataDropdownProps, {
|
|
|
75
75
|
displayName: string;
|
|
76
76
|
compSize: string;
|
|
77
77
|
pageSize: number;
|
|
78
|
-
displayValue: string;
|
|
79
78
|
multiple: boolean;
|
|
80
79
|
checkStrictly: boolean;
|
|
81
80
|
selectLeaf: boolean;
|
|
81
|
+
displayValue: string;
|
|
82
82
|
autoClose: boolean;
|
|
83
83
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
84
84
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SearchParams } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* 数据选择器公共工具
|
|
4
|
+
* 抽取 DataPicker 和 StarHorseDataSelector 的共享逻辑
|
|
5
|
+
*/
|
|
6
|
+
/** 构建代理/直连请求参数 */
|
|
7
|
+
export declare const buildRequestParams: (dataUrl: string, baseParams: Record<string, any>, proxy?: boolean, proxyUrl?: string) => {
|
|
8
|
+
url: string;
|
|
9
|
+
params: Record<string, any>;
|
|
10
|
+
};
|
|
11
|
+
/** 构建分页查询基础参数 */
|
|
12
|
+
export declare const buildPageParams: (queryParams: SearchParams[], extraParams?: SearchParams[], currentPage?: number, pageSize?: number) => Record<string, any>;
|
|
13
|
+
/** 递归查找树结构数据中匹配指定值的节点 */
|
|
14
|
+
export declare const findNodesInTree: (nodes: any[], targetValue: any, displayValue?: string) => any[];
|
|
15
|
+
/** 处理节点选择/取消选择逻辑 */
|
|
16
|
+
export declare const toggleNodeSelection: (node: any, currentSelection: any[], options: {
|
|
17
|
+
multiple: boolean;
|
|
18
|
+
checkStrictly: boolean;
|
|
19
|
+
selectLeaf: boolean;
|
|
20
|
+
displayValue: string;
|
|
21
|
+
}) => any[];
|
|
22
|
+
/** 通过接口加载选中数据(用于初始化回显) */
|
|
23
|
+
export declare const loadSelectedData: (dataUrl: string, value: any, displayValue?: string, extraParams?: SearchParams[], proxy?: boolean, proxyUrl?: string) => Promise<any[]>;
|
|
@@ -5,12 +5,8 @@ type __VLS_ModelProps = {
|
|
|
5
5
|
};
|
|
6
6
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
7
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
|
|
9
|
-
selectItem: (...args: any[]) => void;
|
|
10
|
-
"update:formData": (value: any) => void;
|
|
8
|
+
"update:formData": (value: any) => any;
|
|
11
9
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
-
onSelfFunc?: (...args: any[]) => any;
|
|
13
|
-
onSelectItem?: (...args: any[]) => any;
|
|
14
10
|
"onUpdate:formData"?: (value: any) => any;
|
|
15
11
|
}>, {
|
|
16
12
|
disabled: boolean;
|
|
@@ -5,12 +5,8 @@ type __VLS_ModelProps = {
|
|
|
5
5
|
};
|
|
6
6
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
7
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
|
|
9
|
-
selectItem: (...args: any[]) => void;
|
|
10
|
-
"update:formData": (value: any) => void;
|
|
8
|
+
"update:formData": (value: any) => any;
|
|
11
9
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
-
onSelfFunc?: (...args: any[]) => any;
|
|
13
|
-
onSelectItem?: (...args: any[]) => any;
|
|
14
10
|
"onUpdate:formData"?: (value: any) => any;
|
|
15
11
|
}>, {
|
|
16
12
|
disabled: boolean;
|
|
@@ -5,12 +5,8 @@ type __VLS_ModelProps = {
|
|
|
5
5
|
};
|
|
6
6
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
7
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
|
|
9
|
-
selectItem: (...args: any[]) => void;
|
|
10
|
-
"update:formData": (value: any) => void;
|
|
8
|
+
"update:formData": (value: any) => any;
|
|
11
9
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
-
onSelfFunc?: (...args: any[]) => any;
|
|
13
|
-
onSelectItem?: (...args: any[]) => any;
|
|
14
10
|
"onUpdate:formData"?: (value: any) => any;
|
|
15
11
|
}>, {
|
|
16
12
|
disabled: boolean;
|
|
@@ -5,12 +5,8 @@ type __VLS_ModelProps = {
|
|
|
5
5
|
};
|
|
6
6
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
7
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
|
|
9
|
-
selectItem: (...args: any[]) => void;
|
|
10
|
-
"update:formData": (value: any) => void;
|
|
8
|
+
"update:formData": (value: any) => any;
|
|
11
9
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
-
onSelfFunc?: (...args: any[]) => any;
|
|
13
|
-
onSelectItem?: (...args: any[]) => any;
|
|
14
10
|
"onUpdate:formData"?: (value: any) => any;
|
|
15
11
|
}>, {
|
|
16
12
|
disabled: boolean;
|
|
@@ -5,12 +5,8 @@ type __VLS_ModelProps = {
|
|
|
5
5
|
};
|
|
6
6
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
7
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
|
|
9
|
-
selectItem: (...args: any[]) => void;
|
|
10
|
-
"update:formData": (value: any) => void;
|
|
8
|
+
"update:formData": (value: any) => any;
|
|
11
9
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
-
onSelfFunc?: (...args: any[]) => any;
|
|
13
|
-
onSelectItem?: (...args: any[]) => any;
|
|
14
10
|
"onUpdate:formData"?: (value: any) => any;
|
|
15
11
|
}>, {
|
|
16
12
|
disabled: boolean;
|
|
@@ -5,12 +5,8 @@ type __VLS_ModelProps = {
|
|
|
5
5
|
};
|
|
6
6
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
7
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
|
|
9
|
-
selectItem: (...args: any[]) => void;
|
|
10
|
-
"update:formData": (value: any) => void;
|
|
8
|
+
"update:formData": (value: any) => any;
|
|
11
9
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
-
onSelfFunc?: (...args: any[]) => any;
|
|
13
|
-
onSelectItem?: (...args: any[]) => any;
|
|
14
10
|
"onUpdate:formData"?: (value: any) => any;
|
|
15
11
|
}>, {
|
|
16
12
|
disabled: boolean;
|
|
@@ -5,12 +5,8 @@ type __VLS_ModelProps = {
|
|
|
5
5
|
};
|
|
6
6
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
7
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
|
|
9
|
-
selectItem: (...args: any[]) => void;
|
|
10
|
-
"update:formData": (value: any) => void;
|
|
8
|
+
"update:formData": (value: any) => any;
|
|
11
9
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
-
onSelfFunc?: (...args: any[]) => any;
|
|
13
|
-
onSelectItem?: (...args: any[]) => any;
|
|
14
10
|
"onUpdate:formData"?: (value: any) => any;
|
|
15
11
|
}>, {
|
|
16
12
|
disabled: boolean;
|
|
@@ -5,12 +5,8 @@ type __VLS_ModelProps = {
|
|
|
5
5
|
};
|
|
6
6
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
7
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
|
|
9
|
-
selectItem: (...args: any[]) => void;
|
|
10
|
-
"update:formData": (value: any) => void;
|
|
8
|
+
"update:formData": (value: any) => any;
|
|
11
9
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
-
onSelfFunc?: (...args: any[]) => any;
|
|
13
|
-
onSelectItem?: (...args: any[]) => any;
|
|
14
10
|
"onUpdate:formData"?: (value: any) => any;
|
|
15
11
|
}>, {
|
|
16
12
|
disabled: boolean;
|
|
@@ -5,12 +5,8 @@ type __VLS_ModelProps = {
|
|
|
5
5
|
};
|
|
6
6
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
7
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
|
|
9
|
-
selectItem: (...args: any[]) => void;
|
|
10
|
-
"update:formData": (value: any) => void;
|
|
8
|
+
"update:formData": (value: any) => any;
|
|
11
9
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
-
onSelfFunc?: (...args: any[]) => any;
|
|
13
|
-
onSelectItem?: (...args: any[]) => any;
|
|
14
10
|
"onUpdate:formData"?: (value: any) => any;
|
|
15
11
|
}>, {
|
|
16
12
|
disabled: boolean;
|
|
@@ -5,12 +5,8 @@ type __VLS_ModelProps = {
|
|
|
5
5
|
};
|
|
6
6
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
7
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
|
|
9
|
-
selectItem: (...args: any[]) => void;
|
|
10
|
-
"update:formData": (value: any) => void;
|
|
8
|
+
"update:formData": (value: any) => any;
|
|
11
9
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
-
onSelfFunc?: (...args: any[]) => any;
|
|
13
|
-
onSelectItem?: (...args: any[]) => any;
|
|
14
10
|
"onUpdate:formData"?: (value: any) => any;
|
|
15
11
|
}>, {
|
|
16
12
|
disabled: boolean;
|
|
@@ -5,12 +5,8 @@ type __VLS_ModelProps = {
|
|
|
5
5
|
};
|
|
6
6
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
7
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
|
|
9
|
-
selectItem: (...args: any[]) => void;
|
|
10
|
-
"update:formData": (value: any) => void;
|
|
8
|
+
"update:formData": (value: any) => any;
|
|
11
9
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
-
onSelfFunc?: (...args: any[]) => any;
|
|
13
|
-
onSelectItem?: (...args: any[]) => any;
|
|
14
10
|
"onUpdate:formData"?: (value: any) => any;
|
|
15
11
|
}>, {
|
|
16
12
|
disabled: boolean;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ItemPreps } from '../../types/ItemPreps';
|
|
2
|
+
type __VLS_Props = ItemPreps;
|
|
3
|
+
type __VLS_ModelProps = {
|
|
4
|
+
"formData"?: any;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:formData": (value: any) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
"onUpdate:formData"?: (value: any) => any;
|
|
11
|
+
}>, {
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
isDesign: boolean;
|
|
14
|
+
bareFlag: boolean;
|
|
15
|
+
isSearch: boolean;
|
|
16
|
+
showFormItem: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|