@byteluck-fe/model-driven-controls 7.0.0-props.46 → 7.0.0-props.48

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.
@@ -144,6 +144,10 @@ _define_property(SwitchControl, "setting", [
144
144
  key: 'label-position',
145
145
  visible: true
146
146
  },
147
+ {
148
+ key: 'default-state',
149
+ visible: true
150
+ },
147
151
  {
148
152
  key: 'common-setting',
149
153
  visible: true,
@@ -158,7 +162,7 @@ _define_property(SwitchControl, "setting", [
158
162
  key: 'common-button-radio',
159
163
  visible: true,
160
164
  name: 'defaultValue',
161
- label: getLocaleText('CMD.defaultStatus', null, '默认状态'),
165
+ label: getLocaleText('CMD.defaultStatus', null, '开关状态'),
162
166
  default: 0,
163
167
  options: [
164
168
  {
@@ -122,7 +122,7 @@ var SwitchProperty = /*#__PURE__*/ function(BaseControlProperty) {
122
122
  _this.checkedBackgroundColor = (_ref5 = props === null || props === void 0 ? void 0 : props.checkedBackgroundColor) !== null && _ref5 !== void 0 ? _ref5 : '#4C78FC';
123
123
  _this.uncheckedText = (_ref6 = props === null || props === void 0 ? void 0 : props.uncheckedText) !== null && _ref6 !== void 0 ? _ref6 : '关闭';
124
124
  _this.uncheckedTextColor = (_ref7 = props === null || props === void 0 ? void 0 : props.uncheckedTextColor) !== null && _ref7 !== void 0 ? _ref7 : '#ffffff';
125
- _this.uncheckedBackgroundColor = (_ref8 = props === null || props === void 0 ? void 0 : props.uncheckedBackgroundColor) !== null && _ref8 !== void 0 ? _ref8 : 'rgba(0, 0, 0, 0.25)';
125
+ _this.uncheckedBackgroundColor = (_ref8 = props === null || props === void 0 ? void 0 : props.uncheckedBackgroundColor) !== null && _ref8 !== void 0 ? _ref8 : '#BFBFBF';
126
126
  return _this;
127
127
  }
128
128
  return SwitchProperty;