@byteluck-fe/model-driven-controls 7.0.0-props.25 → 7.0.0-props.26

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.
@@ -236,13 +236,13 @@ _define_property(ScoreControl, "setting", [
236
236
  COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
237
237
  ]
238
238
  },
239
- {
240
- key: 'common-switch',
241
- visible: true,
242
- name: 'canHalf',
243
- label: '支持半选',
244
- default: false
245
- },
239
+ // {
240
+ // key: 'common-switch',
241
+ // visible: true,
242
+ // name: 'canHalf',
243
+ // label: '支持半选',
244
+ // default: false
245
+ // },
246
246
  {
247
247
  key: 'common-color-type',
248
248
  visible: true,
@@ -144,11 +144,12 @@ var ScoreProperty = /*#__PURE__*/ function(BaseControlProperty) {
144
144
  function ScoreProperty(props) {
145
145
  _class_call_check(this, ScoreProperty);
146
146
  var _this;
147
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
147
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
148
148
  var _props_explain;
149
149
  _this = _call_super(this, ScoreProperty, [
150
150
  props
151
- ]), _define_property(_this, "totalScore", void 0), _define_property(_this, "scoreType", void 0), _define_property(_this, "isShowExplain", void 0), _define_property(_this, "explain", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "canHalf", void 0), _define_property(_this, "explainColor", void 0), _define_property(_this, "isShowCurrentScore", void 0);
151
+ ]), _define_property(_this, "totalScore", void 0), _define_property(_this, "scoreType", void 0), _define_property(_this, "isShowExplain", void 0), _define_property(_this, "explain", void 0), _define_property(_this, "defaultValue", void 0), // public canHalf: boolean
152
+ _define_property(_this, "explainColor", void 0), _define_property(_this, "isShowCurrentScore", void 0);
152
153
  _this.totalScore = (_ref = props === null || props === void 0 ? void 0 : props.totalScore) !== null && _ref !== void 0 ? _ref : 5;
153
154
  _this.scoreType = (_ref1 = props === null || props === void 0 ? void 0 : props.scoreType) !== null && _ref1 !== void 0 ? _ref1 : SCORE_TYPE.STAR;
154
155
  _this.isShowExplain = (_ref2 = props === null || props === void 0 ? void 0 : props.isShowExplain) !== null && _ref2 !== void 0 ? _ref2 : true;
@@ -159,9 +160,9 @@ var ScoreProperty = /*#__PURE__*/ function(BaseControlProperty) {
159
160
  });
160
161
  _this.defaultValue = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref4 !== void 0 ? _ref4 : 0;
161
162
  _this.caption = (_ref5 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref5 !== void 0 ? _ref5 : ScoreControl.controlName;
162
- _this.canHalf = (_ref6 = props === null || props === void 0 ? void 0 : props.canHalf) !== null && _ref6 !== void 0 ? _ref6 : false;
163
- _this.explainColor = (_ref7 = props === null || props === void 0 ? void 0 : props.explainColor) !== null && _ref7 !== void 0 ? _ref7 : 'primary';
164
- _this.isShowCurrentScore = (_ref8 = props === null || props === void 0 ? void 0 : props.isShowCurrentScore) !== null && _ref8 !== void 0 ? _ref8 : false;
163
+ // this.canHalf = props?.canHalf ?? false
164
+ _this.explainColor = (_ref6 = props === null || props === void 0 ? void 0 : props.explainColor) !== null && _ref6 !== void 0 ? _ref6 : 'primary';
165
+ _this.isShowCurrentScore = (_ref7 = props === null || props === void 0 ? void 0 : props.isShowCurrentScore) !== null && _ref7 !== void 0 ? _ref7 : false;
165
166
  return _this;
166
167
  }
167
168
  return ScoreProperty;