@byteluck-fe/model-driven-controls 7.0.0-props.41 → 7.0.0-props.42

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.
@@ -126,7 +126,7 @@ _define_property(SwitchControl, "controlEventKeys", [
126
126
  'on_change',
127
127
  'on_click'
128
128
  ]);
129
- _define_property(SwitchControl, "controlFieldType", FieldTypes.ANY);
129
+ _define_property(SwitchControl, "controlFieldType", FieldTypes.VARCHAR);
130
130
  _define_property(SwitchControl, "setting", [
131
131
  {
132
132
  key: 'data-bind',
@@ -206,6 +206,34 @@ _define_property(SwitchControl, "setting", [
206
206
  name: 'checkedTextColor',
207
207
  layout: 'horizontal',
208
208
  label: getLocaleText('CMD.checkedTextColor', null, '开启文字颜色')
209
+ },
210
+ {
211
+ key: 'color',
212
+ visible: true,
213
+ name: 'checkedBackgroundColor',
214
+ layout: 'horizontal',
215
+ label: getLocaleText('CMD.checkedBgColor', null, '开启背景颜色')
216
+ },
217
+ {
218
+ key: 'common-input',
219
+ visible: true,
220
+ name: 'uncheckedText',
221
+ layout: 'horizontal',
222
+ label: getLocaleText('CMD.checkedText', null, '关闭文字')
223
+ },
224
+ {
225
+ key: 'color',
226
+ visible: true,
227
+ name: 'uncheckedTextColor',
228
+ layout: 'horizontal',
229
+ label: getLocaleText('CMD.uncheckedTextColor', null, '关闭文字颜色')
230
+ },
231
+ {
232
+ key: 'color',
233
+ visible: true,
234
+ name: 'uncheckedBackgroundColor',
235
+ layout: 'horizontal',
236
+ label: getLocaleText('CMD.uncheckedBackgroundColor', null, '关闭背景颜色')
209
237
  }
210
238
  ]
211
239
  },