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

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.
@@ -115,14 +115,14 @@ var SwitchProperty = /*#__PURE__*/ function(BaseControlProperty) {
115
115
  props
116
116
  ]), _define_property(_this, "defaultValue", void 0), _define_property(_this, "textDisplayStyle", void 0), _define_property(_this, "checkedText", void 0), _define_property(_this, "checkedTextColor", void 0), _define_property(_this, "checkedBackgroundColor", void 0), _define_property(_this, "uncheckedText", void 0), _define_property(_this, "uncheckedTextColor", void 0), _define_property(_this, "uncheckedBackgroundColor", void 0);
117
117
  _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : SwitchControl.controlName;
118
- _this.defaultValue = (_ref1 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref1 !== void 0 ? _ref1 : 0;
118
+ _this.defaultValue = (_ref1 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref1 !== void 0 ? _ref1 : 1;
119
119
  _this.textDisplayStyle = (_ref2 = props === null || props === void 0 ? void 0 : props.textDisplayStyle) !== null && _ref2 !== void 0 ? _ref2 : 'inside';
120
120
  _this.checkedText = (_ref3 = props === null || props === void 0 ? void 0 : props.checkedText) !== null && _ref3 !== void 0 ? _ref3 : '开启';
121
- _this.checkedTextColor = (_ref4 = props === null || props === void 0 ? void 0 : props.checkedTextColor) !== null && _ref4 !== void 0 ? _ref4 : '';
122
- _this.checkedBackgroundColor = (_ref5 = props === null || props === void 0 ? void 0 : props.checkedBackgroundColor) !== null && _ref5 !== void 0 ? _ref5 : '';
123
- _this.uncheckedText = (_ref6 = props === null || props === void 0 ? void 0 : props.uncheckedText) !== null && _ref6 !== void 0 ? _ref6 : '';
124
- _this.uncheckedTextColor = (_ref7 = props === null || props === void 0 ? void 0 : props.uncheckedTextColor) !== null && _ref7 !== void 0 ? _ref7 : '';
125
- _this.uncheckedBackgroundColor = (_ref8 = props === null || props === void 0 ? void 0 : props.uncheckedBackgroundColor) !== null && _ref8 !== void 0 ? _ref8 : '';
121
+ _this.checkedTextColor = (_ref4 = props === null || props === void 0 ? void 0 : props.checkedTextColor) !== null && _ref4 !== void 0 ? _ref4 : '#ffffff';
122
+ _this.checkedBackgroundColor = (_ref5 = props === null || props === void 0 ? void 0 : props.checkedBackgroundColor) !== null && _ref5 !== void 0 ? _ref5 : '#4C78FC';
123
+ _this.uncheckedText = (_ref6 = props === null || props === void 0 ? void 0 : props.uncheckedText) !== null && _ref6 !== void 0 ? _ref6 : '关闭';
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)';
126
126
  return _this;
127
127
  }
128
128
  return SwitchProperty;