@baosight/er4j 0.0.32 → 0.0.34

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.
@@ -2246,6 +2246,15 @@ export declare namespace ER {
2246
2246
  setLayoutItemValidateRules(configId: string, itemCode: string, rules: Array<{
2247
2247
  [key: string]: any;
2248
2248
  }>, replaceExistRules?: boolean): FormHelper;
2249
+ /**
2250
+ * 设置LayoutItem的验证器
2251
+ * @param configId 区域配置代码
2252
+ * @param itemCode 配置项目代码
2253
+ * @param validator 验证器
2254
+ * @param replaceExistRules 替换已有规则
2255
+ * @returns FormHelper
2256
+ */
2257
+ setLayoutItemValidator(configId: string, itemCode: string, validator: (value: any) => boolean | string, replaceExistRules?: boolean): FormHelper;
2249
2258
  /**
2250
2259
  * 设置LayoutItem的标题的颜色
2251
2260
  * @param configId 区域配置代码
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baosight/er4j",
3
- "version": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "description": "er4j 辅助开发",
5
5
  "private": false,
6
6
  "type": "module",