@byteluck-fe/model-driven-controls 7.0.0-props.79 → 7.0.0-props.80
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.
|
@@ -131,10 +131,6 @@ _define_property(TagControl, "setting", [
|
|
|
131
131
|
key: 'data-bind',
|
|
132
132
|
visible: true
|
|
133
133
|
},
|
|
134
|
-
{
|
|
135
|
-
key: 'field-type',
|
|
136
|
-
visible: true
|
|
137
|
-
},
|
|
138
134
|
{
|
|
139
135
|
key: 'caption',
|
|
140
136
|
showItems: [
|
|
@@ -161,50 +157,15 @@ _define_property(TagControl, "setting", [
|
|
|
161
157
|
]
|
|
162
158
|
},
|
|
163
159
|
{
|
|
164
|
-
key: '
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
value: 'text',
|
|
176
|
-
label: getLocaleText('CMD.tagDisplayText', null, '文本')
|
|
177
|
-
}
|
|
178
|
-
]
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
key: 'common-button-radio',
|
|
182
|
-
visible: true,
|
|
183
|
-
name: 'tagStyle',
|
|
184
|
-
label: getLocaleText('CMD.tagStyle', null, '标签样式'),
|
|
185
|
-
default: 'default',
|
|
186
|
-
options: [
|
|
187
|
-
{
|
|
188
|
-
value: 'default',
|
|
189
|
-
label: getLocaleText('CMD.tagDefault', null, '默认')
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
value: 'success',
|
|
193
|
-
label: getLocaleText('CMD.success', null, '成功')
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
value: 'processing',
|
|
197
|
-
label: getLocaleText('CMD.processing', null, '处理中')
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
value: 'error',
|
|
201
|
-
label: getLocaleText('CMD.error', null, '错误')
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
value: 'warning',
|
|
205
|
-
label: getLocaleText('CMD.warning', null, '警告')
|
|
206
|
-
}
|
|
207
|
-
]
|
|
160
|
+
key: 'caption-style',
|
|
161
|
+
showItems: [
|
|
162
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
163
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
164
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC,
|
|
165
|
+
COMMON_SETTING_TYPE.CAPTION_FONT_WEIGHT,
|
|
166
|
+
COMMON_SETTING_TYPE.CAPTION_FONT_WEIGHT
|
|
167
|
+
],
|
|
168
|
+
visible: true
|
|
208
169
|
},
|
|
209
170
|
{
|
|
210
171
|
key: 'common-button-radio',
|
|
@@ -227,22 +188,11 @@ _define_property(TagControl, "setting", [
|
|
|
227
188
|
}
|
|
228
189
|
]
|
|
229
190
|
},
|
|
230
|
-
{
|
|
231
|
-
key: 'caption-style',
|
|
232
|
-
showItems: [
|
|
233
|
-
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
234
|
-
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
235
|
-
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC,
|
|
236
|
-
COMMON_SETTING_TYPE.CAPTION_FONT_WEIGHT,
|
|
237
|
-
COMMON_SETTING_TYPE.CAPTION_FONT_WEIGHT
|
|
238
|
-
],
|
|
239
|
-
visible: true
|
|
240
|
-
},
|
|
241
191
|
{
|
|
242
192
|
key: 'common-button-radio',
|
|
243
193
|
visible: true,
|
|
244
194
|
name: 'align',
|
|
245
|
-
label:
|
|
195
|
+
label: '标签位置',
|
|
246
196
|
default: 'left',
|
|
247
197
|
options: [
|
|
248
198
|
{
|
|
@@ -109,10 +109,10 @@ var TagProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
109
109
|
function TagProperty(props) {
|
|
110
110
|
_class_call_check(this, TagProperty);
|
|
111
111
|
var _this;
|
|
112
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6
|
|
112
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6;
|
|
113
113
|
_this = _call_super(this, TagProperty, [
|
|
114
114
|
props
|
|
115
|
-
]), _define_property(_this, "defaultValue", void 0), _define_property(_this, "
|
|
115
|
+
]), _define_property(_this, "defaultValue", void 0), _define_property(_this, "size", void 0), _define_property(_this, "align", void 0), _define_property(_this, "options", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "openMultistageFilling", void 0);
|
|
116
116
|
_this.options = initOptions((_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : [
|
|
117
117
|
{
|
|
118
118
|
label: getLocaleText('CMD.optionOne', null, '选项一'),
|
|
@@ -129,13 +129,11 @@ var TagProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
129
129
|
]);
|
|
130
130
|
_this.caption = (_ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref1 !== void 0 ? _ref1 : TagControl.controlName;
|
|
131
131
|
_this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
132
|
-
_this.
|
|
133
|
-
_this.
|
|
134
|
-
_this.
|
|
135
|
-
_this.align = (_ref6 = props === null || props === void 0 ? void 0 : props.align) !== null && _ref6 !== void 0 ? _ref6 : 'left';
|
|
136
|
-
_this.optionConfig = (_ref7 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref7 !== void 0 ? _ref7 : 'custom';
|
|
132
|
+
_this.size = (_ref3 = props === null || props === void 0 ? void 0 : props.size) !== null && _ref3 !== void 0 ? _ref3 : 'middle';
|
|
133
|
+
_this.align = (_ref4 = props === null || props === void 0 ? void 0 : props.align) !== null && _ref4 !== void 0 ? _ref4 : 'left';
|
|
134
|
+
_this.optionConfig = (_ref5 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref5 !== void 0 ? _ref5 : 'custom';
|
|
137
135
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
138
|
-
_this.openMultistageFilling = (
|
|
136
|
+
_this.openMultistageFilling = (_ref6 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref6 !== void 0 ? _ref6 : false;
|
|
139
137
|
_this.multistageFilling = [];
|
|
140
138
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
141
139
|
props === null || props === void 0 ? void 0 : props.multistageFilling.forEach(function(item) {
|