cnhis-design-vue 3.1.43-beta.0 → 3.1.43-beta.2
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 +87 -87
- package/es/components/big-table/src/hooks/useEdit.d.ts +26 -26
- package/es/components/big-table/src/utils.js +1 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +1 -1
- package/es/components/date-picker/index.d.ts +27 -2
- package/es/components/date-picker/src/DatePicker.vue.d.ts +27 -2
- package/es/components/date-picker/src/DatePicker.vue.js +1 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/form-config/index.d.ts +72 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +72 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +21 -20
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +43 -0
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +1 -1
- package/es/components/form-render/index.d.ts +1 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -0
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -0
- package/es/components/form-render/src/hooks/useChangeContext.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/hooks/useLowCodeEvent.d.ts +6 -0
- package/es/components/form-render/src/hooks/useLowCodeEvent.js +1 -0
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +2 -127
- package/es/components/form-render/src/types/index.d.ts +1 -2
- package/es/components/iho-table/src/hooks/useTableContext.d.ts +1 -1
- package/es/components/iho-table/src/plugins/fieldConnectionPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +28 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +27 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +7 -24
- package/es/components/iho-table/src/types/pluginType.d.ts +18 -21
- package/es/components/index.d.ts +1 -0
- package/es/components/info-header/index.d.ts +2 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +4 -4
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +1 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +21 -20
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +1 -1
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/select-person/index.d.ts +13 -0
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
- package/es/components/select-person/src/SelectPerson.vue.d.ts +13 -0
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/utils/index.d.ts +1 -1
- package/es/components/select-person/src/utils/index.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +15 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +15 -0
- package/es/env.d.ts +25 -25
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/hooks/useDateTime.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +16 -0
- package/es/shared/types/business.js +1 -0
- package/es/shared/types/index.d.ts +1 -1
- package/es/shared/utils/business.d.ts +11 -0
- package/es/shared/utils/business.js +1 -0
- package/es/shared/utils/index.d.ts +1 -5
- package/es/shared/utils/index.js +1 -1
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +65 -65
- package/es/components/iho-table/src/plugins/fieldConnectionPlugin/fieldConnectionUtils.d.ts +0 -11
- package/es/components/iho-table/src/plugins/fieldConnectionPlugin/fieldConnectionUtils.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyObject, ArrayAble } from '../../../../../es/shared/types';
|
|
1
|
+
import { AnyObject, ArrayAble, BindEventSettingItem } from '../../../../../es/shared/types';
|
|
2
2
|
import { SchemaEffectTypes, SchemaTypes } from '@formily/vue';
|
|
3
3
|
import { CSSProperties, VNode } from 'vue';
|
|
4
4
|
import { DependKeyType, FormCommonState, FormRequestType } from '../../../../../es/components/form-render';
|
|
@@ -89,58 +89,19 @@ export declare type FormWordbook = Partial<{
|
|
|
89
89
|
conObjFirstLevel: AnyObject[];
|
|
90
90
|
}>;
|
|
91
91
|
export declare type FieldItem = {
|
|
92
|
-
/**
|
|
93
|
-
* 字段的key
|
|
94
|
-
*/
|
|
95
92
|
val_key: string;
|
|
96
|
-
/**
|
|
97
|
-
* 控件类型
|
|
98
|
-
*/
|
|
99
93
|
html_type: HtmlType;
|
|
100
94
|
} & Partial<{
|
|
101
|
-
/**
|
|
102
|
-
* 是否开启批注(需要先在表单维度开启)
|
|
103
|
-
*/
|
|
104
95
|
annotation: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* 定制化字段, AGE类型控件时的单位字段
|
|
107
|
-
*/
|
|
108
96
|
val_key_unit: string;
|
|
109
|
-
/**
|
|
110
|
-
* 是否允许编辑('1'为允许编辑)
|
|
111
|
-
*/
|
|
112
97
|
is_edit: FormCommonState;
|
|
113
|
-
/**
|
|
114
|
-
* 控件在栅栏系统中的的宽度值, 默认为3
|
|
115
|
-
*/
|
|
116
98
|
elem_width: number;
|
|
117
|
-
/**
|
|
118
|
-
* 是否展示('1'为展示)
|
|
119
|
-
*/
|
|
120
99
|
is_show: FormCommonState;
|
|
121
|
-
/**
|
|
122
|
-
* 是否允许为空('1'为允许为空)
|
|
123
|
-
*/
|
|
124
100
|
is_null: FormCommonState;
|
|
125
|
-
/**
|
|
126
|
-
* 字段label
|
|
127
|
-
*/
|
|
128
101
|
name: string;
|
|
129
|
-
/**
|
|
130
|
-
* 字段label(优先级比name高)
|
|
131
|
-
*/
|
|
132
102
|
alias: string;
|
|
133
|
-
/**
|
|
134
|
-
* 默认值
|
|
135
|
-
*/
|
|
136
103
|
default_val: any;
|
|
137
|
-
/**
|
|
138
|
-
* 是否开启清空功能('0'表示开启)
|
|
139
|
-
*/
|
|
140
104
|
is_empty: FormCommonState;
|
|
141
|
-
/**
|
|
142
|
-
* 是否隐藏label('1'表示隐藏)
|
|
143
|
-
*/
|
|
144
105
|
hide_title: FormCommonState;
|
|
145
106
|
placeholder: string;
|
|
146
107
|
validate: ValidateItem;
|
|
@@ -150,123 +111,40 @@ export declare type FieldItem = {
|
|
|
150
111
|
* 仅在html_type为SELECT时生效
|
|
151
112
|
*/
|
|
152
113
|
multi_select: FormCommonState;
|
|
153
|
-
/**
|
|
154
|
-
* 多选时最大选择数量
|
|
155
|
-
*/
|
|
156
114
|
multi_select_value: number | string;
|
|
157
115
|
/**
|
|
158
116
|
* 1.用于CASCADER控件提供层级参数
|
|
159
117
|
* 2.用于SEARCH控件提供字段信息
|
|
160
118
|
*/
|
|
161
119
|
wordbook: FormWordbook;
|
|
162
|
-
/**
|
|
163
|
-
* switch控件,开启状态参数
|
|
164
|
-
*/
|
|
165
120
|
open: SwitchProperty;
|
|
166
|
-
/**
|
|
167
|
-
* switch控件,关闭状态参数
|
|
168
|
-
*/
|
|
169
121
|
close: SwitchProperty;
|
|
170
|
-
/**
|
|
171
|
-
* date控件value格式
|
|
172
|
-
*/
|
|
173
122
|
date_format: string;
|
|
174
|
-
/**
|
|
175
|
-
* slider控件间距
|
|
176
|
-
*/
|
|
177
123
|
step_length: string | number;
|
|
178
124
|
urlConfig: UrlConfig;
|
|
179
|
-
/**
|
|
180
|
-
* 控件组
|
|
181
|
-
*/
|
|
182
125
|
suffixConfig: ArrayAble<FieldItem>;
|
|
183
|
-
/**
|
|
184
|
-
* 数据源签名
|
|
185
|
-
*/
|
|
186
126
|
autograph: string;
|
|
187
|
-
/**
|
|
188
|
-
* 合并错误信息
|
|
189
|
-
*/
|
|
190
127
|
defined_error_msg: string;
|
|
191
|
-
/**
|
|
192
|
-
* 是否使用json格式对该字段值进行合并
|
|
193
|
-
*/
|
|
194
128
|
extendKey: string;
|
|
195
|
-
/**
|
|
196
|
-
* 是否允许linebar控件收起('1'表示不可收起)
|
|
197
|
-
*/
|
|
198
129
|
is_not_fold: string;
|
|
199
|
-
/**
|
|
200
|
-
* 控件中的备注
|
|
201
|
-
*/
|
|
202
130
|
remark: string;
|
|
203
|
-
/**
|
|
204
|
-
* 是否允许用户在下拉控件中创建自定义选项
|
|
205
|
-
*/
|
|
206
131
|
free_entry: FormCommonState;
|
|
207
|
-
/**
|
|
208
|
-
* 文本域控件默认行数
|
|
209
|
-
*/
|
|
210
132
|
initialize_high: number;
|
|
211
|
-
|
|
212
|
-
* 数据类型
|
|
213
|
-
*/
|
|
133
|
+
bindEventSetting: BindEventSettingItem[];
|
|
214
134
|
fieldType: SchemaTypes;
|
|
215
|
-
/**
|
|
216
|
-
* BUTTON/TEXT控件内容
|
|
217
|
-
*/
|
|
218
135
|
content: string | FormRenderer | Record<string, FormRenderer>;
|
|
219
|
-
/**
|
|
220
|
-
* 用于控制是否启用请求的懒执行
|
|
221
|
-
*/
|
|
222
136
|
lazyRequest: boolean;
|
|
223
|
-
/**
|
|
224
|
-
* 用于控制请求是否开启缓存
|
|
225
|
-
*/
|
|
226
137
|
requestCache: boolean;
|
|
227
|
-
/**
|
|
228
|
-
* COMBINATION控件最大表单组数量
|
|
229
|
-
*/
|
|
230
138
|
maxGroupNum: number;
|
|
231
|
-
/**
|
|
232
|
-
* COMBINATION json format
|
|
233
|
-
*/
|
|
234
139
|
jsonCombination: boolean;
|
|
235
|
-
/**
|
|
236
|
-
* COMBINATION控件子项
|
|
237
|
-
*/
|
|
238
140
|
children: FieldItem[];
|
|
239
|
-
/**
|
|
240
|
-
* 子项
|
|
241
|
-
*/
|
|
242
141
|
properties: FieldItem[];
|
|
243
|
-
/**
|
|
244
|
-
* 控件额外的props
|
|
245
|
-
*/
|
|
246
142
|
componentProps: AnyObject;
|
|
247
|
-
/**
|
|
248
|
-
* FormItem额外的props
|
|
249
|
-
*/
|
|
250
143
|
decoratorProps: AnyObject;
|
|
251
|
-
/**
|
|
252
|
-
* 是否不使用decorator组件(n-form-item)
|
|
253
|
-
*/
|
|
254
144
|
noDecorator: Boolean;
|
|
255
|
-
/**
|
|
256
|
-
* COMPLEX控件布局类型
|
|
257
|
-
*/
|
|
258
145
|
display: 'grid' | 'flex';
|
|
259
|
-
/**
|
|
260
|
-
* 控件插槽
|
|
261
|
-
*/
|
|
262
146
|
slots: Record<string, (...args: unknown[]) => unknown>;
|
|
263
|
-
/**
|
|
264
|
-
* COMPLEX控件额外样式
|
|
265
|
-
*/
|
|
266
147
|
wrapperStyle: CSSProperties | Record<string, string>;
|
|
267
|
-
/**
|
|
268
|
-
* 多级表单的显示策略, checked表示展示选中的子表单, all表示任何时候都展示所有子表单
|
|
269
|
-
*/
|
|
270
148
|
childFieldStrategy?: 'checked' | 'all';
|
|
271
149
|
/**
|
|
272
150
|
* 自定义校验规则
|
|
@@ -275,9 +153,6 @@ export declare type FieldItem = {
|
|
|
275
153
|
* @return {void|string} 返回校验信息
|
|
276
154
|
*/
|
|
277
155
|
validator: (value: unknown, fieldItem: FieldItem) => void | string;
|
|
278
|
-
/**
|
|
279
|
-
* 表单联动配置
|
|
280
|
-
*/
|
|
281
156
|
reactions: ArrayAble<ReactionType>;
|
|
282
157
|
[key: string]: any;
|
|
283
158
|
}>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AsyncQueue } from '../../../../../es/shared/hooks';
|
|
2
|
-
import { AnyObject, UndefinedAble } from '../../../../../es/shared/types';
|
|
3
|
-
import { LOW_CODE_VALUE_RELATION } from '../../../../../es/shared/utils';
|
|
2
|
+
import { AnyObject, LOW_CODE_VALUE_RELATION, UndefinedAble } from '../../../../../es/shared/types';
|
|
4
3
|
import { DataField, Field, Form } from '@formily/core';
|
|
5
4
|
import { ISchema } from '@formily/json-schema/esm/types';
|
|
6
5
|
import { Component, FunctionalComponent } from 'vue';
|
|
@@ -4,6 +4,6 @@ export declare function useTableContext(): {
|
|
|
4
4
|
tableHandler: import("../types").IhoTableHandler;
|
|
5
5
|
tableEmit: import("../types").IhoTableEmits;
|
|
6
6
|
eventListener: import("./tapHooks/useEventHooks").IhoTableEventListener;
|
|
7
|
-
$table: import("vue").Ref<import("
|
|
7
|
+
$table: import("vue").Ref<import("../../..").UndefinedAble<import("vxe-table").VxeTableInstance>>;
|
|
8
8
|
uuid: string;
|
|
9
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../../index.js";import{isFunction as n}from"lodash-es";import{
|
|
1
|
+
import"../../../../../shared/utils/index.js";import"../../../index.js";import{isFunction as n}from"lodash-es";import{defineTablePlugin as o}from"../../hooks/useTablePlugin.js";import{getBindEventSettingTrigger as e}from"../../../../../shared/utils/business.js";function t(){const t="fieldConnectionPlugin";return o({name:t,apply(o){o.configHooks.config.tap(t,(o=>{const t=o.onFormChange;return o.onFormChange=function(o){var i;const{column:r,row:s}=o,l=null==(i=r.editRender)?void 0:i.props;if(l&&(null==l?void 0:l.bindEventSetting)){l.bindEventSetting.forEach((n=>{e(n.event_type)(n,{getter:n=>s[n],setter:(n,o)=>s[n]=o})}))}n(t)&&t(o)},o}))}})}export{t as fieldConnectionPlugin};
|
|
@@ -25,11 +25,26 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
近一个月: () => number[];
|
|
26
26
|
};
|
|
27
27
|
onConfirm: (value: [number, number], formattedValue: [string, string] | null) => void;
|
|
28
|
-
CDatePicker: import("
|
|
28
|
+
CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
29
|
+
updateUnchangedValue: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
};
|
|
32
|
+
onConfirm: {
|
|
33
|
+
type: FunctionConstructor;
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
29
36
|
attrs: {
|
|
30
37
|
[x: string]: unknown;
|
|
31
38
|
};
|
|
32
|
-
|
|
39
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
updateUnchangedValue: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
};
|
|
43
|
+
onConfirm: {
|
|
44
|
+
type: FunctionConstructor;
|
|
45
|
+
};
|
|
46
|
+
}>> & {}>>;
|
|
47
|
+
datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
|
|
33
48
|
panelInstRef: import("vue").Ref<null>;
|
|
34
49
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
35
50
|
formatRef: import("vue").ComputedRef<string>;
|
|
@@ -37,8 +52,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
52
|
focus: () => any;
|
|
38
53
|
blur: () => any;
|
|
39
54
|
onUpdateShow: (show: boolean) => void;
|
|
55
|
+
onConfirm: () => void;
|
|
40
56
|
NDatePicker: any;
|
|
41
|
-
},
|
|
57
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
|
+
updateUnchangedValue: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
};
|
|
61
|
+
onConfirm: {
|
|
62
|
+
type: FunctionConstructor;
|
|
63
|
+
};
|
|
64
|
+
}>>, {
|
|
65
|
+
updateUnchangedValue: boolean;
|
|
66
|
+
}>>;
|
|
42
67
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
68
|
payload: {
|
|
44
69
|
type: PropType<VxeColumnPropTypes.FilterSlotParams>;
|
|
@@ -66,10 +66,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
66
66
|
};
|
|
67
67
|
}>;
|
|
68
68
|
dateConfig: AnyObject;
|
|
69
|
-
DatePicker: import("../../../../../../../../es/shared/types").SFCWithInstall<import("vue").DefineComponent<{
|
|
69
|
+
DatePicker: import("../../../../../../../../es/shared/types").SFCWithInstall<import("vue").DefineComponent<{
|
|
70
|
+
updateUnchangedValue: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
};
|
|
73
|
+
onConfirm: {
|
|
74
|
+
type: FunctionConstructor;
|
|
75
|
+
};
|
|
76
|
+
}, {
|
|
70
77
|
attrs: {
|
|
71
78
|
[x: string]: unknown;
|
|
72
79
|
};
|
|
80
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
81
|
+
updateUnchangedValue: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
};
|
|
84
|
+
onConfirm: {
|
|
85
|
+
type: FunctionConstructor;
|
|
86
|
+
};
|
|
87
|
+
}>> & {}>>;
|
|
73
88
|
datePickerRef: import("vue").Ref<AnyObject | null>;
|
|
74
89
|
panelInstRef: import("vue").Ref<null>;
|
|
75
90
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
@@ -78,8 +93,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
78
93
|
focus: () => any;
|
|
79
94
|
blur: () => any;
|
|
80
95
|
onUpdateShow: (show: boolean) => void;
|
|
96
|
+
onConfirm: () => void;
|
|
81
97
|
NDatePicker: any;
|
|
82
|
-
},
|
|
98
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
99
|
+
updateUnchangedValue: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
};
|
|
102
|
+
onConfirm: {
|
|
103
|
+
type: FunctionConstructor;
|
|
104
|
+
};
|
|
105
|
+
}>>, {
|
|
106
|
+
updateUnchangedValue: boolean;
|
|
107
|
+
}>>;
|
|
83
108
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
109
|
value: {
|
|
85
110
|
type: StringConstructor;
|
package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createVNode as n}from"vue";import
|
|
1
|
+
import{createVNode as n}from"vue";import"../../../../../../shared/utils/index.js";import{isObject as o,isArray as r}from"lodash-es";import"../../../../index.js";import{WIDGET_TYPE as e}from"../../../constants/index.js";import{parseMergeField as t,isRichContent as i,parseRichContent as l}from"../../../utils/index.js";import{defineTablePlugin as s}from"../../../hooks/useTablePlugin.js";import{isMatchLowCodeCondition as d}from"../../../../../../shared/utils/business.js";function c(){return s({name:"defaultRendererPlugin",vxe(s){s.renderer.add(e.DEFAULT,{renderCell(e,{row:s,column:c}){const u=t(s,c),a=i(u)?function(o){const r=l(o);return[n("div",{style:{color:r.background||r.icon}},[e(r.icon),r.change_text])];function e(o){return o?o.match(/#[\da-f]{6}|[\da-f]{3}/i)?n("i",{class:"icon-dot",style:{"--table-icon-color":o,"--table-icon-shadow":o}},null):n("i",{class:r.icon},null):null}}(u):[u];return function(o,e,t,i){if(!r(o)||!o.length)return i;const l=o.find((n=>n.condition&&n.condition.find((n=>{const o=e[n.field_key||t.field];return d(o,n)}))));return l?n("div",{style:{color:l.color},class:l.icon},[i]):i}(function(n){var r,e,t;const i=null==(r=n.editRender)?void 0:r.props;if(!o(i))return;return null!=(t=i.colorAndIcon)?t:null==(e=i.settingObj)?void 0:e.colorAndIcon}(c),s,c,a)}}),s.renderer.add(e.STATUS,s.renderer.get(e.DEFAULT))}})}export{c as defaultRendererPlugin};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { AnyObject, ArrayAble, MaybeString, TupleToUnion } from '../../../../../es/shared/types';
|
|
2
|
-
import { LOW_CODE_VALUE_RELATION } from '../../../../../es/shared/utils';
|
|
1
|
+
import { AnyObject, ArrayAble, BindEventSettingItem, LOW_CODE_VALUE_RELATION, MaybeString, TupleToUnion } from '../../../../../es/shared/types';
|
|
3
2
|
import { VxeTableProps, VxeTableDefines, VxeTableInstance, VxeColumnPropTypes, VxeTablePropTypes } from 'vxe-table';
|
|
4
3
|
import { VxeTableListeners } from 'vxe-table/types/table';
|
|
5
4
|
import { IHO_TABLE_STRING_STATUS, IhoTableEventNameTuple, IhoTableRowGroupSequence } from '../../../../../es/components/iho-table/src/constants';
|
|
@@ -57,15 +56,15 @@ export declare namespace IhoTableLowCodeField {
|
|
|
57
56
|
type FilterSetting = Partial<{
|
|
58
57
|
daterange: boolean;
|
|
59
58
|
}>;
|
|
60
|
-
type ColorAndIconItem = {
|
|
61
|
-
condition
|
|
59
|
+
type ColorAndIconItem = Partial<{
|
|
60
|
+
condition: {
|
|
62
61
|
con: LOW_CODE_VALUE_RELATION;
|
|
63
62
|
value: unknown;
|
|
64
63
|
field_key?: string;
|
|
65
64
|
}[];
|
|
66
|
-
color
|
|
67
|
-
icon
|
|
68
|
-
}
|
|
65
|
+
color: string;
|
|
66
|
+
icon: string;
|
|
67
|
+
}>;
|
|
69
68
|
type SettingObj = Partial<{
|
|
70
69
|
attr: string;
|
|
71
70
|
isHide: MaybeString<0 | 1>;
|
|
@@ -119,24 +118,8 @@ export declare type LowCodeTableFieldItem = {
|
|
|
119
118
|
colorAndIcon: IhoTableLowCodeField.ColorAndIconItem[];
|
|
120
119
|
variableHeight: boolean;
|
|
121
120
|
filterSetting: IhoTableLowCodeField.FilterSetting;
|
|
122
|
-
bindEventSetting:
|
|
121
|
+
bindEventSetting: BindEventSettingItem[];
|
|
123
122
|
}> & Partial<VxeTableDefines.ColumnInfo>;
|
|
124
|
-
export declare type FieldEventSetting = {
|
|
125
|
-
event_type: string;
|
|
126
|
-
event_field: string;
|
|
127
|
-
wookName?: string;
|
|
128
|
-
wookId?: string;
|
|
129
|
-
params?: {
|
|
130
|
-
p_value?: string;
|
|
131
|
-
p_name: string;
|
|
132
|
-
p_select: 'EQ' | 'NEQ' | 'NULL' | 'NOT_NULL' | 'CL' | 'NC' | 'BIG' | 'LESS' | 'BIGEQ' | 'LESSEQ' | 'IN_ARR';
|
|
133
|
-
}[];
|
|
134
|
-
results?: {
|
|
135
|
-
p_value: string;
|
|
136
|
-
p_name: string;
|
|
137
|
-
}[];
|
|
138
|
-
[K: string]: unknown;
|
|
139
|
-
};
|
|
140
123
|
export declare type IhoTableFormChangePayload = {
|
|
141
124
|
column: IhoTableFieldItem;
|
|
142
125
|
row: AnyObject;
|
|
@@ -34,29 +34,26 @@ export declare type TableHooks = Readonly<{
|
|
|
34
34
|
exposeHooks: AbstractExposeHooks;
|
|
35
35
|
}>;
|
|
36
36
|
export declare type WithTableConfig<T = []> = T extends any[] ? [...T, IhoTableConfig] : [T, IhoTableConfig];
|
|
37
|
-
declare type ConfigHookType<T
|
|
38
|
-
...WithTableConfig<Required<IhoTableConfig>[T]>,
|
|
39
|
-
IhoTableHandlerContext
|
|
40
|
-
]>;
|
|
37
|
+
declare type ConfigHookType<T> = SyncWaterfallHook<[...WithTableConfig<[T]>, IhoTableHandlerContext]>;
|
|
41
38
|
export declare abstract class AbstractConfigHooks {
|
|
42
39
|
abstract readonly config: SyncWaterfallHook<[IhoTableConfig, IhoTableHandlerContext]>;
|
|
43
|
-
abstract readonly rowConfig: ConfigHookType<'rowConfig'>;
|
|
44
|
-
abstract readonly editConfig: ConfigHookType<'editConfig'>;
|
|
45
|
-
abstract readonly columnConfig: ConfigHookType<'columnConfig'>;
|
|
46
|
-
abstract readonly resizableConfig: ConfigHookType<'resizableConfig'>;
|
|
47
|
-
abstract readonly seqConfig: ConfigHookType<'seqConfig'>;
|
|
48
|
-
abstract readonly sortConfig: ConfigHookType<'sortConfig'>;
|
|
49
|
-
abstract readonly filterConfig: ConfigHookType<'filterConfig'>;
|
|
50
|
-
abstract readonly radioConfig: ConfigHookType<'radioConfig'>;
|
|
51
|
-
abstract readonly checkboxConfig: ConfigHookType<'checkboxConfig'>;
|
|
52
|
-
abstract readonly expandConfig: ConfigHookType<'expandConfig'>;
|
|
53
|
-
abstract readonly treeConfig: ConfigHookType<'treeConfig'>;
|
|
54
|
-
abstract readonly mouseConfig: ConfigHookType<'mouseConfig'>;
|
|
55
|
-
abstract readonly menuConfig: ConfigHookType<'menuConfig'>;
|
|
56
|
-
abstract readonly keyboardConfig: ConfigHookType<'keyboardConfig'>;
|
|
57
|
-
abstract readonly scrollY: ConfigHookType<'scrollY'>;
|
|
58
|
-
abstract readonly scrollX: ConfigHookType<'scrollX'>;
|
|
59
|
-
abstract readonly editRules: ConfigHookType<'editRules'>;
|
|
40
|
+
abstract readonly rowConfig: ConfigHookType<IhoTableConfig['rowConfig']>;
|
|
41
|
+
abstract readonly editConfig: ConfigHookType<IhoTableConfig['editConfig']>;
|
|
42
|
+
abstract readonly columnConfig: ConfigHookType<IhoTableConfig['columnConfig']>;
|
|
43
|
+
abstract readonly resizableConfig: ConfigHookType<IhoTableConfig['resizableConfig']>;
|
|
44
|
+
abstract readonly seqConfig: ConfigHookType<IhoTableConfig['seqConfig']>;
|
|
45
|
+
abstract readonly sortConfig: ConfigHookType<IhoTableConfig['sortConfig']>;
|
|
46
|
+
abstract readonly filterConfig: ConfigHookType<IhoTableConfig['filterConfig']>;
|
|
47
|
+
abstract readonly radioConfig: ConfigHookType<IhoTableConfig['radioConfig']>;
|
|
48
|
+
abstract readonly checkboxConfig: ConfigHookType<IhoTableConfig['checkboxConfig']>;
|
|
49
|
+
abstract readonly expandConfig: ConfigHookType<IhoTableConfig['expandConfig']>;
|
|
50
|
+
abstract readonly treeConfig: ConfigHookType<IhoTableConfig['treeConfig']>;
|
|
51
|
+
abstract readonly mouseConfig: ConfigHookType<IhoTableConfig['mouseConfig']>;
|
|
52
|
+
abstract readonly menuConfig: ConfigHookType<IhoTableConfig['menuConfig']>;
|
|
53
|
+
abstract readonly keyboardConfig: ConfigHookType<IhoTableConfig['keyboardConfig']>;
|
|
54
|
+
abstract readonly scrollY: ConfigHookType<IhoTableConfig['scrollY']>;
|
|
55
|
+
abstract readonly scrollX: ConfigHookType<IhoTableConfig['scrollX']>;
|
|
56
|
+
abstract readonly editRules: ConfigHookType<IhoTableConfig['editRules']>;
|
|
60
57
|
}
|
|
61
58
|
export interface FieldHookContext {
|
|
62
59
|
index: number;
|
package/es/components/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export * from './table-filter';
|
|
|
39
39
|
export * from './config-provider';
|
|
40
40
|
export * from './field-set';
|
|
41
41
|
export * from './scale-view';
|
|
42
|
+
export * from '../../es/shared/types';
|
|
42
43
|
declare function install(app: App): void;
|
|
43
44
|
export { CGrid, CBigTable, CFieldSet, CButtonPrint, CSelectPerson, CSelectLabel, CLabelFormContent, CScaleView, CMap, CVodChunkUpload, CRadio, CCheckbox, CSelect, CDatetime, CInfoHeader, CTimeLine, CBaseSearch, CQuickSearch, CClassification, CBpmnWorkflow, CStepsWheel, CEditor, CFormRender, CFabricChart, CShortcutProvider, CShortcutSetter, CFormConfig, CIhoTable, CKeyboard, CSearchCascader, CRecommendSearch, CDatePicker, CTimePicker, CConfigProvider };
|
|
44
45
|
declare const _default: {
|
|
@@ -2753,6 +2753,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2753
2753
|
observeFormGraph: Record<string, import("@formily/core").GeneralField>;
|
|
2754
2754
|
setGraph: (field: import("@formily/core").GeneralField) => void;
|
|
2755
2755
|
removeGraph: (field: import("@formily/core").GeneralField) => void;
|
|
2756
|
+
lowCodeEventTrigger: (field: import("@formily/core").GeneralField) => void;
|
|
2756
2757
|
formModel: import("@formily/core").Form<{
|
|
2757
2758
|
[x: string]: any;
|
|
2758
2759
|
}>;
|
|
@@ -3602,6 +3603,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3602
3603
|
observeFormGraph: Record<string, import("@formily/core").GeneralField>;
|
|
3603
3604
|
setGraph: (field: import("@formily/core").GeneralField) => void;
|
|
3604
3605
|
removeGraph: (field: import("@formily/core").GeneralField) => void;
|
|
3606
|
+
lowCodeEventTrigger: (field: import("@formily/core").GeneralField) => void;
|
|
3605
3607
|
formModel: import("@formily/core").Form<{
|
|
3606
3608
|
[x: string]: any;
|
|
3607
3609
|
}>;
|
|
@@ -2747,6 +2747,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2747
2747
|
observeFormGraph: Record<string, import("../../../../es/components/form-render").GeneralField>;
|
|
2748
2748
|
setGraph: (field: import("../../../../es/components/form-render").GeneralField) => void;
|
|
2749
2749
|
removeGraph: (field: import("../../../../es/components/form-render").GeneralField) => void;
|
|
2750
|
+
lowCodeEventTrigger: (field: import("../../../../es/components/form-render").GeneralField) => void;
|
|
2750
2751
|
formModel: import("../../../../es/components/form-render").Form<{
|
|
2751
2752
|
[x: string]: any;
|
|
2752
2753
|
}>;
|
|
@@ -3596,6 +3597,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3596
3597
|
observeFormGraph: Record<string, import("../../../../es/components/form-render").GeneralField>;
|
|
3597
3598
|
setGraph: (field: import("../../../../es/components/form-render").GeneralField) => void;
|
|
3598
3599
|
removeGraph: (field: import("../../../../es/components/form-render").GeneralField) => void;
|
|
3600
|
+
lowCodeEventTrigger: (field: import("../../../../es/components/form-render").GeneralField) => void;
|
|
3599
3601
|
formModel: import("../../../../es/components/form-render").Form<{
|
|
3600
3602
|
[x: string]: any;
|
|
3601
3603
|
}>;
|
|
@@ -1795,19 +1795,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1795
1795
|
}>;
|
|
1796
1796
|
SlotRender: import("vue").DefineComponent<{
|
|
1797
1797
|
renderer: {
|
|
1798
|
-
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("
|
|
1798
|
+
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../..").Func<any[], any>>;
|
|
1799
1799
|
required: true;
|
|
1800
1800
|
};
|
|
1801
1801
|
rootSlots: {
|
|
1802
|
-
type: import("vue").PropType<Record<string, import("
|
|
1802
|
+
type: import("vue").PropType<Record<string, import("../../../..").Func<any[], any>>>;
|
|
1803
1803
|
};
|
|
1804
1804
|
}, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1805
1805
|
renderer: {
|
|
1806
|
-
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("
|
|
1806
|
+
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../..").Func<any[], any>>;
|
|
1807
1807
|
required: true;
|
|
1808
1808
|
};
|
|
1809
1809
|
rootSlots: {
|
|
1810
|
-
type: import("vue").PropType<Record<string, import("
|
|
1810
|
+
type: import("vue").PropType<Record<string, import("../../../..").Func<any[], any>>>;
|
|
1811
1811
|
};
|
|
1812
1812
|
}>>, {}>;
|
|
1813
1813
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -2335,6 +2335,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2335
2335
|
observeFormGraph: Record<string, import("../../../../../../es/components/form-render").GeneralField>;
|
|
2336
2336
|
setGraph: (field: import("../../../../../../es/components/form-render").GeneralField) => void;
|
|
2337
2337
|
removeGraph: (field: import("../../../../../../es/components/form-render").GeneralField) => void;
|
|
2338
|
+
lowCodeEventTrigger: (field: import("../../../../../../es/components/form-render").GeneralField) => void;
|
|
2338
2339
|
formModel: import("../../../../../../es/components/form-render").Form<{
|
|
2339
2340
|
[x: string]: any;
|
|
2340
2341
|
}>;
|