@byteluck-fe/model-driven-controls 1.7.13 → 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.
@@ -121,11 +121,13 @@ var TitleControl = /*#__PURE__*/ function(DesignerControl) {
121
121
  }(DesignerControl);
122
122
  TitleControl.controlFieldType = FieldTypes.AUTO_NUMBER;
123
123
  TitleControl.setting = [
124
- // {
125
- // key: 'common-setting',
126
- // visible: true,
127
- // showItems: [COMMON_SETTING_TYPE.IS_HIDE],
128
- // },
124
+ {
125
+ key: "common-setting",
126
+ visible: true,
127
+ showItems: [
128
+ COMMON_SETTING_TYPE.IS_HIDE
129
+ ]
130
+ },
129
131
  {
130
132
  key: "caption",
131
133
  showItems: [
@@ -137,10 +139,10 @@ TitleControl.setting = [
137
139
  key: "title-setting",
138
140
  visible: true
139
141
  },
140
- // {
141
- // key: 'position',
142
- // visible: true,
143
- // },
142
+ {
143
+ key: "position",
144
+ visible: true
145
+ },
144
146
  {
145
147
  key: "super-setting",
146
148
  visible: true
@@ -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;