@byteluck-fe/model-driven-controls 7.0.0-props.24 → 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.
- package/dist/esm/formControls/Score/designer.js +7 -7
- package/dist/esm/formControls/Score/property.js +6 -5
- package/dist/esm/formControls/Select/property.js +6 -6
- package/dist/esm/formControls/SelectMultiple/property.js +6 -6
- package/dist/index.umd.js +1 -1
- package/dist/types/formControls/Score/property.d.ts +0 -7
- package/dist/types/formControls/Select/property.d.ts +0 -7
- package/dist/types/formControls/SelectMultiple/property.d.ts +0 -7
- package/package.json +2 -2
|
@@ -236,13 +236,13 @@ _define_property(ScoreControl, "setting", [
|
|
|
236
236
|
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
237
237
|
]
|
|
238
238
|
},
|
|
239
|
-
{
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
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
|
|
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),
|
|
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
|
-
|
|
163
|
-
_this.explainColor = (
|
|
164
|
-
_this.isShowCurrentScore = (
|
|
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;
|
|
@@ -106,10 +106,10 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
106
106
|
function SelectProperty(props) {
|
|
107
107
|
_class_call_check(this, SelectProperty);
|
|
108
108
|
var _this;
|
|
109
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11
|
|
109
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11;
|
|
110
110
|
_this = _call_super(this, SelectProperty, [
|
|
111
111
|
props
|
|
112
|
-
]), _define_property(_this, "options", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "allowCopyOptions", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "viewFormModelType", void 0), _define_property(_this, "canViewForm", void 0), _define_property(_this, "formBind", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "type", void 0)
|
|
112
|
+
]), _define_property(_this, "options", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "allowCopyOptions", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "viewFormModelType", void 0), _define_property(_this, "canViewForm", void 0), _define_property(_this, "formBind", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "type", void 0);
|
|
113
113
|
_this.options = initOptions((_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : [
|
|
114
114
|
{
|
|
115
115
|
label: getLocaleText('CMD.optionOne', null, '选项一'),
|
|
@@ -133,7 +133,7 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
133
133
|
_this.allowCopyOptions = (_ref6 = props === null || props === void 0 ? void 0 : props.allowCopyOptions) !== null && _ref6 !== void 0 ? _ref6 : false;
|
|
134
134
|
_this.openMultistageFilling = (_ref7 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
135
135
|
_this.type = (_ref8 = props === null || props === void 0 ? void 0 : props.type) !== null && _ref8 !== void 0 ? _ref8 : 'default';
|
|
136
|
-
|
|
136
|
+
// this.isUseCustomColor = props?.isUseCustomColor ?? false
|
|
137
137
|
_this.multistageFilling = [];
|
|
138
138
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
139
139
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -141,10 +141,10 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
141
141
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
-
_this.canViewForm = (
|
|
145
|
-
_this.viewFormModelType = (
|
|
144
|
+
_this.canViewForm = (_ref9 = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _ref9 !== void 0 ? _ref9 : false;
|
|
145
|
+
_this.viewFormModelType = (_ref10 = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _ref10 !== void 0 ? _ref10 : 'window';
|
|
146
146
|
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
147
|
-
_this.aiContentSearch = (
|
|
147
|
+
_this.aiContentSearch = (_ref11 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref11 !== void 0 ? _ref11 : false;
|
|
148
148
|
return _this;
|
|
149
149
|
}
|
|
150
150
|
return SelectProperty;
|
|
@@ -122,10 +122,10 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
122
122
|
function SelectMultipleProperty(props) {
|
|
123
123
|
_class_call_check(this, SelectMultipleProperty);
|
|
124
124
|
var _this;
|
|
125
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10
|
|
125
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10;
|
|
126
126
|
_this = _call_super(this, SelectMultipleProperty, [
|
|
127
127
|
props
|
|
128
|
-
]), _define_property(_this, "options", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "viewFormModelType", void 0), _define_property(_this, "canViewForm", void 0), _define_property(_this, "formBind", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "type", void 0)
|
|
128
|
+
]), _define_property(_this, "options", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "viewFormModelType", void 0), _define_property(_this, "canViewForm", void 0), _define_property(_this, "formBind", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "type", void 0);
|
|
129
129
|
_this.options = initOptions((_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : [
|
|
130
130
|
{
|
|
131
131
|
label: getLocaleText('CMD.optionOne', null, '选项一'),
|
|
@@ -148,7 +148,7 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
148
148
|
_this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
|
|
149
149
|
_this.openMultistageFilling = (_ref6 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref6 !== void 0 ? _ref6 : false;
|
|
150
150
|
_this.type = (_ref7 = props === null || props === void 0 ? void 0 : props.type) !== null && _ref7 !== void 0 ? _ref7 : 'default';
|
|
151
|
-
|
|
151
|
+
// this.isUseCustomColor = props?.isUseCustomColor ?? false
|
|
152
152
|
_this.multistageFilling = [];
|
|
153
153
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
154
154
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -156,10 +156,10 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
156
156
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
|
-
_this.canViewForm = (
|
|
160
|
-
_this.viewFormModelType = (
|
|
159
|
+
_this.canViewForm = (_ref8 = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _ref8 !== void 0 ? _ref8 : false;
|
|
160
|
+
_this.viewFormModelType = (_ref9 = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _ref9 !== void 0 ? _ref9 : 'window';
|
|
161
161
|
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
162
|
-
_this.aiContentSearch = (
|
|
162
|
+
_this.aiContentSearch = (_ref10 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref10 !== void 0 ? _ref10 : false;
|
|
163
163
|
return _this;
|
|
164
164
|
}
|
|
165
165
|
return SelectMultipleProperty;
|