cnhis-design-vue 3.1.43-beta.1 → 3.1.43-beta.3
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/es/components/big-table/src/utils.js +1 -1
- package/es/components/button-print/src/utils/print.d.ts +2 -0
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/date-picker/index.d.ts +1 -1
- package/es/components/date-picker/src/DatePicker.vue.d.ts +1 -1
- package/es/components/date-picker/src/DatePicker.vue.js +1 -1
- 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 +1 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +43 -0
- 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/useLowCodeEvent.d.ts +6 -0
- package/es/components/form-render/src/hooks/useLowCodeEvent.js +1 -0
- 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/index.d.ts +7 -3
- package/es/components/iho-table/src/IhoTable.vue.d.ts +7 -3
- package/es/components/iho-table/src/IhoTable.vue.js +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 +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +1 -1
- package/es/components/iho-table/src/types/index.d.ts +2 -2
- package/es/components/iho-table/src/types/pluginType.d.ts +18 -21
- 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/index.vue.d.ts +1 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +1 -0
- package/es/components/shortcut-setter/index.d.ts +15 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +15 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +3 -2
- package/es/shared/utils/business.d.ts +3 -3
- package/package.json +2 -2
- package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -77
- package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +0 -93
- package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/utils/dist/index.d.ts +0 -44
- package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +0 -36
- package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +0 -36
- package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +0 -82
- package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +0 -57
- package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +0 -57
|
@@ -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';
|
|
@@ -2166,8 +2166,8 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2166
2166
|
usePreset?: boolean | undefined;
|
|
2167
2167
|
} | undefined;
|
|
2168
2168
|
}>;
|
|
2169
|
+
updateConfigRefDebounced: () => void;
|
|
2169
2170
|
updateConfigRef: () => void;
|
|
2170
|
-
_updateConfigRef: () => void;
|
|
2171
2171
|
fieldListRef: import("vue").Ref<{
|
|
2172
2172
|
property?: string | undefined;
|
|
2173
2173
|
type?: import("vxe-table").VxeColumnPropTypes.Type | undefined;
|
|
@@ -2467,12 +2467,12 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2467
2467
|
getKey?: (() => string) | undefined;
|
|
2468
2468
|
annotation?: boolean | undefined;
|
|
2469
2469
|
}[]>;
|
|
2470
|
+
updateFieldListRefDebounced: () => void;
|
|
2470
2471
|
updateFieldListRef: () => void;
|
|
2471
|
-
_updateFieldListRef: () => void;
|
|
2472
2472
|
dataTransfer: (data: import("../../../es/shared/types").AnyObject[]) => Promise<import("../../../es/shared/types").AnyObject[]>;
|
|
2473
2473
|
tableDataRef: import("vue").Ref<import("../../../es/shared/types").AnyObject[]>;
|
|
2474
|
+
updateTableDataRefDebounced: () => Promise<void>;
|
|
2474
2475
|
updateTableDataRef: () => Promise<void>;
|
|
2475
|
-
_updateTableDataRef: () => Promise<void>;
|
|
2476
2476
|
tableHandler: import("../../../es/components/iho-table/src/types").IhoTableHandler;
|
|
2477
2477
|
eventHookHandler: {
|
|
2478
2478
|
onCopy: import("vxe-table").VxeTableEvents.Copy | undefined;
|
|
@@ -4580,6 +4580,10 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4580
4580
|
usePreset?: boolean | undefined;
|
|
4581
4581
|
} | undefined;
|
|
4582
4582
|
}>;
|
|
4583
|
+
configChanged: boolean;
|
|
4584
|
+
fieldChanged: boolean;
|
|
4585
|
+
dataChanged: boolean;
|
|
4586
|
+
updateState: () => void;
|
|
4583
4587
|
header: any;
|
|
4584
4588
|
footer: any;
|
|
4585
4589
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("toggleRowExpand" | "toggleTreeExpand" | "copy" | "scroll" | "formChange" | "settingClick" | "formClick" | "keyboard" | "rowDrag" | "cut" | "paste" | "keydown" | "keydownStart" | "keydownEnd" | "currentChange" | "radioChange" | "checkboxChange" | "checkboxAll" | "checkboxRangeStart" | "checkboxRangeChange" | "checkboxRangeEnd" | "cellClick" | "cellDblclick" | "cellMenu" | "cellMouseenter" | "cellMouseleave" | "headerCellClick" | "headerCellDblclick" | "headerCellMenu" | "footerCellClick" | "footerCellDblclick" | "footerCellMenu" | "sortChange" | "filterChange" | "filterVisible" | "resizableChange" | "menuClick" | "editClosed" | "editActived" | "editDisabled" | "validError" | "custom" | "openFnr" | "fnrChange" | "fnrFind" | "fnrFindAll" | "fnrReplace" | "fnrReplaceAll" | "cellAreaCopy" | "cellAreaCut" | "cellAreaPaste" | "cellAreaMerge" | "clearCellAreaMerge" | "headerCellAreaSelection" | "cellAreaSelectionStart" | "cellAreaSelectionDrag" | "cellAreaSelectionEnd" | "cellAreaExtensionStart" | "cellAreaExtensionDrag" | "cellAreaExtensionEnd" | "cellAreaArrowsStart" | "cellAreaArrowsEnd" | "activeCellChangeStart" | "activeCellChangeEnd")[], "toggleRowExpand" | "toggleTreeExpand" | "copy" | "scroll" | "formChange" | "settingClick" | "formClick" | "keyboard" | "rowDrag" | "cut" | "paste" | "keydown" | "keydownStart" | "keydownEnd" | "currentChange" | "radioChange" | "checkboxChange" | "checkboxAll" | "checkboxRangeStart" | "checkboxRangeChange" | "checkboxRangeEnd" | "cellClick" | "cellDblclick" | "cellMenu" | "cellMouseenter" | "cellMouseleave" | "headerCellClick" | "headerCellDblclick" | "headerCellMenu" | "footerCellClick" | "footerCellDblclick" | "footerCellMenu" | "sortChange" | "filterChange" | "filterVisible" | "resizableChange" | "menuClick" | "editClosed" | "editActived" | "editDisabled" | "validError" | "custom" | "openFnr" | "fnrChange" | "fnrFind" | "fnrFindAll" | "fnrReplace" | "fnrReplaceAll" | "cellAreaCopy" | "cellAreaCut" | "cellAreaPaste" | "cellAreaMerge" | "clearCellAreaMerge" | "headerCellAreaSelection" | "cellAreaSelectionStart" | "cellAreaSelectionDrag" | "cellAreaSelectionEnd" | "cellAreaExtensionStart" | "cellAreaExtensionDrag" | "cellAreaExtensionEnd" | "cellAreaArrowsStart" | "cellAreaArrowsEnd" | "activeCellChangeStart" | "activeCellChangeEnd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -2165,8 +2165,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2165
2165
|
usePreset?: boolean | undefined;
|
|
2166
2166
|
} | undefined;
|
|
2167
2167
|
}>;
|
|
2168
|
+
updateConfigRefDebounced: () => void;
|
|
2168
2169
|
updateConfigRef: () => void;
|
|
2169
|
-
_updateConfigRef: () => void;
|
|
2170
2170
|
fieldListRef: import("vue").Ref<{
|
|
2171
2171
|
property?: string | undefined;
|
|
2172
2172
|
type?: import("vxe-table").VxeColumnPropTypes.Type | undefined;
|
|
@@ -2466,12 +2466,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2466
2466
|
getKey?: (() => string) | undefined;
|
|
2467
2467
|
annotation?: boolean | undefined;
|
|
2468
2468
|
}[]>;
|
|
2469
|
+
updateFieldListRefDebounced: () => void;
|
|
2469
2470
|
updateFieldListRef: () => void;
|
|
2470
|
-
_updateFieldListRef: () => void;
|
|
2471
2471
|
dataTransfer: (data: AnyObject[]) => Promise<AnyObject[]>;
|
|
2472
2472
|
tableDataRef: import("vue").Ref<AnyObject[]>;
|
|
2473
|
+
updateTableDataRefDebounced: () => Promise<void>;
|
|
2473
2474
|
updateTableDataRef: () => Promise<void>;
|
|
2474
|
-
_updateTableDataRef: () => Promise<void>;
|
|
2475
2475
|
tableHandler: IhoTableHandler;
|
|
2476
2476
|
eventHookHandler: {
|
|
2477
2477
|
onCopy: import("vxe-table").VxeTableEvents.Copy | undefined;
|
|
@@ -4579,6 +4579,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4579
4579
|
usePreset?: boolean | undefined;
|
|
4580
4580
|
} | undefined;
|
|
4581
4581
|
}>;
|
|
4582
|
+
configChanged: boolean;
|
|
4583
|
+
fieldChanged: boolean;
|
|
4584
|
+
dataChanged: boolean;
|
|
4585
|
+
updateState: () => void;
|
|
4582
4586
|
header: any;
|
|
4583
4587
|
footer: any;
|
|
4584
4588
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("toggleRowExpand" | "toggleTreeExpand" | "copy" | "scroll" | "formChange" | "settingClick" | "formClick" | "keyboard" | "rowDrag" | "cut" | "paste" | "keydown" | "keydownStart" | "keydownEnd" | "currentChange" | "radioChange" | "checkboxChange" | "checkboxAll" | "checkboxRangeStart" | "checkboxRangeChange" | "checkboxRangeEnd" | "cellClick" | "cellDblclick" | "cellMenu" | "cellMouseenter" | "cellMouseleave" | "headerCellClick" | "headerCellDblclick" | "headerCellMenu" | "footerCellClick" | "footerCellDblclick" | "footerCellMenu" | "sortChange" | "filterChange" | "filterVisible" | "resizableChange" | "menuClick" | "editClosed" | "editActived" | "editDisabled" | "validError" | "custom" | "openFnr" | "fnrChange" | "fnrFind" | "fnrFindAll" | "fnrReplace" | "fnrReplaceAll" | "cellAreaCopy" | "cellAreaCut" | "cellAreaPaste" | "cellAreaMerge" | "clearCellAreaMerge" | "headerCellAreaSelection" | "cellAreaSelectionStart" | "cellAreaSelectionDrag" | "cellAreaSelectionEnd" | "cellAreaExtensionStart" | "cellAreaExtensionDrag" | "cellAreaExtensionEnd" | "cellAreaArrowsStart" | "cellAreaArrowsEnd" | "activeCellChangeStart" | "activeCellChangeEnd")[], "toggleRowExpand" | "toggleTreeExpand" | "copy" | "scroll" | "formChange" | "settingClick" | "formClick" | "keyboard" | "rowDrag" | "cut" | "paste" | "keydown" | "keydownStart" | "keydownEnd" | "currentChange" | "radioChange" | "checkboxChange" | "checkboxAll" | "checkboxRangeStart" | "checkboxRangeChange" | "checkboxRangeEnd" | "cellClick" | "cellDblclick" | "cellMenu" | "cellMouseenter" | "cellMouseleave" | "headerCellClick" | "headerCellDblclick" | "headerCellMenu" | "footerCellClick" | "footerCellDblclick" | "footerCellMenu" | "sortChange" | "filterChange" | "filterVisible" | "resizableChange" | "menuClick" | "editClosed" | "editActived" | "editDisabled" | "validError" | "custom" | "openFnr" | "fnrChange" | "fnrFind" | "fnrFindAll" | "fnrReplace" | "fnrReplaceAll" | "cellAreaCopy" | "cellAreaCut" | "cellAreaPaste" | "cellAreaMerge" | "clearCellAreaMerge" | "headerCellAreaSelection" | "cellAreaSelectionStart" | "cellAreaSelectionDrag" | "cellAreaSelectionEnd" | "cellAreaExtensionStart" | "cellAreaExtensionDrag" | "cellAreaExtensionEnd" | "cellAreaArrowsStart" | "cellAreaArrowsEnd" | "activeCellChangeStart" | "activeCellChangeEnd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as t,provide as a,ref as o,watch as l,resolveComponent as s,openBlock as n,createElementBlock as i,unref as r,normalizeStyle as u,createBlock as c,resolveDynamicComponent as f,createElementVNode as d,createVNode as m,mergeProps as p,createSlots as v,renderList as b,withCtx as h,createCommentVNode as g,renderSlot as x}from"vue";import{useTheme as k}from"../../../shared/hooks/useTheme.js";import{useDebounceFn as y}from"@vueuse/core";import"date-fns";import{isString as C,isFunction as D}from"lodash-es";import{widthAppend as j,uuidGenerator as $}from"../../../shared/utils/index.js";import{promiseTimeout as _}from"@vueuse/shared";import{VxeTableEventNameList as H,InjectionIhoTableEmits as T,InjectionIhoTableAnnotation as w,InjectionIhoTableUUID as A,InjectionIhoTableInstance as L,InjectionIhoTableConfig as R,InjectionIhoTableFieldList as E,InjectionIhoTableHandler as F}from"./constants/index.js";import{createTableHooks as I,applyTableConfigHooks as O,applyTableFieldHooks as S,createTableEventHandlers as W,createDomInsertComponent as q,createDataTransfer as z}from"./hooks/tapHooks/index.js";import{provideIhoTableEventListener as B}from"./hooks/tapHooks/useEventHooks.js";import{eventName2EventListener as G}from"./utils/index.js";import J from"../../../_virtual/plugin-vue_export-helper.js";const K=["id"];var M=J(e({__name:"IhoTable",props:{tableConfig:{type:Object,default:()=>({})},fieldList:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},annotation:{type:Object}},emits:["formChange","settingClick","formClick","keyboard","rowDrag",...H],setup(e,{expose:H,emit:J}){var M,N;const P=e,Q=k({"--c-border-color":"#e2e2e2","--c-head-bg-color":"#f2f2f2","--c-hover-color":"#f7f7f7"}),U=t((()=>{var e,t;const a=null!=(t=null==(e=P.tableConfig)?void 0:e.height)?t:"100%";return{height:"auto"===a?"100%":C(a)&&(a.includes("calc")||a.endsWith("%"))?a:j(a)}})),V=B(),X=function(e,...t){J(e,...t);const a=r(te)[G(e)];D(a)&&a(...t),V.trigger(e,...t)};a(T,X);const Y=I();a(w,t((()=>P.annotation)));const Z=$();a(A,Z);const ee=o();a(L,ee);const te=o({uuid:null!=(N=null==(M=P.tableConfig)?void 0:M.uuid)?N:Z});a(R,te);const ae=y(oe,10);function oe(){te.value=O(Y,P.tableConfig,{$table:ee,emits:X}),te.value.uuid=Z}const le=o([]);a(E,le);const se=y(ne,10);function ne(){le.value=S(Y,P.fieldList,te.value,{$table:ee,emits:X})}const ie=z(Y,te,ee),re=o([])
|
|
1
|
+
import{defineComponent as e,computed as t,provide as a,ref as o,watch as l,resolveComponent as s,openBlock as n,createElementBlock as i,unref as r,normalizeStyle as u,createBlock as c,resolveDynamicComponent as f,createElementVNode as d,createVNode as m,mergeProps as p,createSlots as v,renderList as b,withCtx as h,createCommentVNode as g,renderSlot as x}from"vue";import{useTheme as k}from"../../../shared/hooks/useTheme.js";import{useDebounceFn as y}from"@vueuse/core";import"date-fns";import{isString as C,isFunction as D}from"lodash-es";import{widthAppend as j,uuidGenerator as $}from"../../../shared/utils/index.js";import{promiseTimeout as _}from"@vueuse/shared";import{VxeTableEventNameList as H,InjectionIhoTableEmits as T,InjectionIhoTableAnnotation as w,InjectionIhoTableUUID as A,InjectionIhoTableInstance as L,InjectionIhoTableConfig as R,InjectionIhoTableFieldList as E,InjectionIhoTableHandler as F}from"./constants/index.js";import{createTableHooks as I,applyTableConfigHooks as O,applyTableFieldHooks as S,createTableEventHandlers as W,createDomInsertComponent as q,createDataTransfer as z}from"./hooks/tapHooks/index.js";import{provideIhoTableEventListener as B}from"./hooks/tapHooks/useEventHooks.js";import{eventName2EventListener as G}from"./utils/index.js";import J from"../../../_virtual/plugin-vue_export-helper.js";const K=["id"];var M=J(e({__name:"IhoTable",props:{tableConfig:{type:Object,default:()=>({})},fieldList:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},annotation:{type:Object}},emits:["formChange","settingClick","formClick","keyboard","rowDrag",...H],setup(e,{expose:H,emit:J}){var M,N;const P=e,Q=k({"--c-border-color":"#e2e2e2","--c-head-bg-color":"#f2f2f2","--c-hover-color":"#f7f7f7"}),U=t((()=>{var e,t;const a=null!=(t=null==(e=P.tableConfig)?void 0:e.height)?t:"100%";return{height:"auto"===a?"100%":C(a)&&(a.includes("calc")||a.endsWith("%"))?a:j(a)}})),V=B(),X=function(e,...t){J(e,...t);const a=r(te)[G(e)];D(a)&&a(...t),V.trigger(e,...t)};a(T,X);const Y=I();a(w,t((()=>P.annotation)));const Z=$();a(A,Z);const ee=o();a(L,ee);const te=o({uuid:null!=(N=null==(M=P.tableConfig)?void 0:M.uuid)?N:Z});a(R,te);const ae=y(oe,10);function oe(){te.value=O(Y,P.tableConfig,{$table:ee,emits:X}),te.value.uuid=Z}const le=o([]);a(E,le);const se=y(ne,10);function ne(){le.value=S(Y,P.fieldList,te.value,{$table:ee,emits:X})}const ie=z(Y,te,ee),re=o([]);async function ue(){var e;re.value=await ie(P.tableData),null==(e=ee.value)||e.recalculate(!0)}const ce={updateTableDataRef:y(ue,10),updateConfigRef:ae,updateFieldListRef:se};a(F,ce);const fe=W({hooks:Y,config:te,$table:ee,context:ce,emits:X}),de=t((()=>({...te.value,...fe})));let me=!1,pe=!1,ve=!1;const be=y((()=>{me&&oe(),pe&&ne(),ve&&ue(),me=!1,pe=!1,ve=!1}),10);l((()=>P.tableConfig),(()=>{me=!0,pe=!0,ve=!0,be()}),{deep:!0}),l((()=>P.fieldList),(()=>{pe=!0,ve=!0,be()}),{deep:!0}),l([()=>[...P.tableData],()=>{var e;return null==(e=P.tableData)?void 0:e.length}],(()=>{ve=!0,be()})),l([()=>P.tableData,()=>{var e;return null==(e=P.tableData)?void 0:e.length}],(async()=>{var e,t;(null==(e=te.value.treeConfig)?void 0:e.expandAll)&&(await _(11),null==(t=ee.value)||t.setAllTreeExpand(!0))})),oe(),ne(),ue();const{header:he,footer:ge}=q(Y);return H({$table:ee,async loadData(e){var t;null==(t=ee.value)||t.loadData(await ie(e))},setSort:(e,t)=>({field:e,value:t}),setFilter:(e,t)=>({field:e,value:t}),...Y.exposeHooks.expose.call({},te,{$table:ee,emits:X})}),Y.setupHooks.setup.call(te,le,{$table:ee,emits:X}),(e,t)=>{const a=s("vxe-grid");return n(),i("section",{class:"iho-table",id:r(Z),style:u(r(Q))},[(n(),c(f(r(he)))),d("section",{style:u(r(U))},[m(a,p({ref_key:"$table",ref:ee},r(de),{columns:le.value,data:re.value}),v({_:2},[b(e.$slots,((t,a)=>({name:a,fn:h((()=>[g(" 实际上所有的vxe-grid插槽都支持 "),x(e.$slots,a)]))})))]),1040,["columns","data"])],4),(n(),c(f(r(ge))))],12,K)}}}),[["__file","IhoTable.vue"]]);export{M as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../../../../shared/utils/index.js";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};
|
|
@@ -52,7 +52,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
52
|
focus: () => any;
|
|
53
53
|
blur: () => any;
|
|
54
54
|
onUpdateShow: (show: boolean) => void;
|
|
55
|
-
onConfirm: () => void;
|
|
55
|
+
onConfirm: (...args: any[]) => void;
|
|
56
56
|
NDatePicker: any;
|
|
57
57
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
58
|
updateUnchangedValue: {
|
|
@@ -93,7 +93,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
93
93
|
focus: () => any;
|
|
94
94
|
blur: () => any;
|
|
95
95
|
onUpdateShow: (show: boolean) => void;
|
|
96
|
-
onConfirm: () => void;
|
|
96
|
+
onConfirm: (...args: any[]) => void;
|
|
97
97
|
NDatePicker: any;
|
|
98
98
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
99
99
|
updateUnchangedValue: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyObject, ArrayAble,
|
|
1
|
+
import { AnyObject, ArrayAble, BindEventSettingItem, LOW_CODE_VALUE_RELATION, MaybeString, TupleToUnion } from '../../../../../es/shared/types';
|
|
2
2
|
import { VxeTableProps, VxeTableDefines, VxeTableInstance, VxeColumnPropTypes, VxeTablePropTypes } from 'vxe-table';
|
|
3
3
|
import { VxeTableListeners } from 'vxe-table/types/table';
|
|
4
4
|
import { IHO_TABLE_STRING_STATUS, IhoTableEventNameTuple, IhoTableRowGroupSequence } from '../../../../../es/components/iho-table/src/constants';
|
|
@@ -118,7 +118,7 @@ export declare type LowCodeTableFieldItem = {
|
|
|
118
118
|
colorAndIcon: IhoTableLowCodeField.ColorAndIconItem[];
|
|
119
119
|
variableHeight: boolean;
|
|
120
120
|
filterSetting: IhoTableLowCodeField.FilterSetting;
|
|
121
|
-
bindEventSetting:
|
|
121
|
+
bindEventSetting: BindEventSettingItem[];
|
|
122
122
|
}> & Partial<VxeTableDefines.ColumnInfo>;
|
|
123
123
|
export declare type IhoTableFormChangePayload = {
|
|
124
124
|
column: IhoTableFieldItem;
|
|
@@ -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;
|
|
@@ -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
|
}>;
|
|
@@ -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
|
}>;
|
|
@@ -347,6 +347,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
347
347
|
observeFormGraph: Record<string, import("../../../../../../es/components/form-render").GeneralField>;
|
|
348
348
|
setGraph: (field: import("../../../../../../es/components/form-render").GeneralField) => void;
|
|
349
349
|
removeGraph: (field: import("../../../../../../es/components/form-render").GeneralField) => void;
|
|
350
|
+
lowCodeEventTrigger: (field: import("../../../../../../es/components/form-render").GeneralField) => void;
|
|
350
351
|
formModel: import("../../../../../../es/components/form-render").Form<{
|
|
351
352
|
[x: string]: any;
|
|
352
353
|
}>;
|
|
@@ -142,6 +142,20 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
142
142
|
remark?: string | undefined;
|
|
143
143
|
free_entry?: import("..").FormCommonState | undefined;
|
|
144
144
|
initialize_high?: number | undefined;
|
|
145
|
+
bindEventSetting?: {
|
|
146
|
+
[x: string]: unknown;
|
|
147
|
+
event_type: import("../../../es/shared/types").LOW_CODE_EVENT_TYPE;
|
|
148
|
+
event_field?: string | undefined;
|
|
149
|
+
params?: {
|
|
150
|
+
p_value?: string | undefined;
|
|
151
|
+
p_name: string;
|
|
152
|
+
p_select: import("../../../es/shared/types").LOW_CODE_VALUE_RELATION;
|
|
153
|
+
}[] | undefined;
|
|
154
|
+
results?: {
|
|
155
|
+
p_value: string;
|
|
156
|
+
p_name: string;
|
|
157
|
+
}[] | undefined;
|
|
158
|
+
}[] | undefined;
|
|
145
159
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
146
160
|
content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
|
|
147
161
|
lazyRequest?: boolean | undefined;
|
|
@@ -2020,6 +2034,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2020
2034
|
observeFormGraph: Record<string, import("@formily/core").GeneralField>;
|
|
2021
2035
|
setGraph: (field: import("@formily/core").GeneralField) => void;
|
|
2022
2036
|
removeGraph: (field: import("@formily/core").GeneralField) => void;
|
|
2037
|
+
lowCodeEventTrigger: (field: import("@formily/core").GeneralField) => void;
|
|
2023
2038
|
formModel: import("@formily/core").Form<{
|
|
2024
2039
|
[x: string]: any;
|
|
2025
2040
|
}>;
|
|
@@ -144,6 +144,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
144
144
|
remark?: string | undefined;
|
|
145
145
|
free_entry?: import("../../../../es/components/form-render").FormCommonState | undefined;
|
|
146
146
|
initialize_high?: number | undefined;
|
|
147
|
+
bindEventSetting?: {
|
|
148
|
+
[x: string]: unknown;
|
|
149
|
+
event_type: import("../../../../es/shared/types").LOW_CODE_EVENT_TYPE;
|
|
150
|
+
event_field?: string | undefined;
|
|
151
|
+
params?: {
|
|
152
|
+
p_value?: string | undefined;
|
|
153
|
+
p_name: string;
|
|
154
|
+
p_select: import("../../../../es/shared/types").LOW_CODE_VALUE_RELATION;
|
|
155
|
+
}[] | undefined;
|
|
156
|
+
results?: {
|
|
157
|
+
p_value: string;
|
|
158
|
+
p_name: string;
|
|
159
|
+
}[] | undefined;
|
|
160
|
+
}[] | undefined;
|
|
147
161
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
148
162
|
content?: string | import("../../../../es/components/form-render").FormRenderer | Record<string, import("../../../../es/components/form-render").FormRenderer> | undefined;
|
|
149
163
|
lazyRequest?: boolean | undefined;
|
|
@@ -2022,6 +2036,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2022
2036
|
observeFormGraph: Record<string, import("../../../../es/components/form-render").GeneralField>;
|
|
2023
2037
|
setGraph: (field: import("../../../../es/components/form-render").GeneralField) => void;
|
|
2024
2038
|
removeGraph: (field: import("../../../../es/components/form-render").GeneralField) => void;
|
|
2039
|
+
lowCodeEventTrigger: (field: import("../../../../es/components/form-render").GeneralField) => void;
|
|
2025
2040
|
formModel: import("../../../../es/components/form-render").Form<{
|
|
2026
2041
|
[x: string]: any;
|
|
2027
2042
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.1.43-beta.
|
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.1.43-beta.3",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.43-beta.3",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare type LOW_CODE_VALUE_RELATION = 'EQ' | 'NEQ' | 'CL' | 'NC' | 'NULL' | 'NOT_NULL' | 'BIG' | 'BIGEQ' | 'LESS' | 'LESSEQ';
|
|
2
|
-
export declare type
|
|
3
|
-
|
|
2
|
+
export declare type LOW_CODE_EVENT_TYPE = 'SET_VALUE' | 'REPEAT_VALIDATE' | 'IS_SHOW_FIELD' | 'SQLSAVE' | 'API';
|
|
3
|
+
export declare type BindEventSettingItem = {
|
|
4
|
+
event_type: LOW_CODE_EVENT_TYPE;
|
|
4
5
|
event_field?: string;
|
|
5
6
|
params?: {
|
|
6
7
|
p_value?: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BindEventSettingItem, LOW_CODE_EVENT_TYPE, LOW_CODE_VALUE_RELATION } from '../../../es/shared/types';
|
|
2
2
|
export declare function isMatchLowCodeCondition(value: unknown, condition: {
|
|
3
3
|
con: LOW_CODE_VALUE_RELATION;
|
|
4
4
|
value: unknown;
|
|
5
5
|
}): boolean;
|
|
6
|
-
declare function handleFieldTriggerSetValue(bindEventSetting:
|
|
6
|
+
declare function handleFieldTriggerSetValue(bindEventSetting: BindEventSettingItem, { getter, setter }: {
|
|
7
7
|
setter: (key: string, value: unknown) => void;
|
|
8
8
|
getter: (key: string) => unknown;
|
|
9
9
|
}): void;
|
|
10
|
-
export declare function getBindEventSettingTrigger(key:
|
|
10
|
+
export declare function getBindEventSettingTrigger(key: LOW_CODE_EVENT_TYPE): typeof handleFieldTriggerSetValue;
|
|
11
11
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.43-beta.
|
|
3
|
+
"version": "3.1.43-beta.3",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "d1db9ca6231216259634c9422df96f031b7d1d27"
|
|
65
65
|
}
|