@byteluck-fe/model-driven-controls 1.7.12 → 1.7.14

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.
@@ -89,6 +89,9 @@ var TitleControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
89
89
  _this.dataBind = {
90
90
  type: "any"
91
91
  };
92
+ _this.config = {
93
+ type: "array"
94
+ };
92
95
  if (props.config.includes(TitleConfigEnum.ShowBizKey)) {
93
96
  _this.dataBind = {
94
97
  type: "object",
@@ -108,6 +111,14 @@ var TitleControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
108
111
  message: RulesMessage.getMessage("bizKeyNotBindFiled")
109
112
  };
110
113
  }
114
+ if (!props.isHide && props.config.length === 0) {
115
+ _this.config = {
116
+ type: "array",
117
+ min: 1,
118
+ required: true,
119
+ message: RulesMessage.getMessage("pleaseSelectOneField")
120
+ };
121
+ }
111
122
  return _this;
112
123
  }
113
124
  return TitleControlPropertyRules;