@byteluck-fe/model-driven-controls 7.0.0-props.81 → 7.0.0-props.83
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.
|
@@ -197,20 +197,20 @@ _define_property(TagControl, "setting", [
|
|
|
197
197
|
options: [
|
|
198
198
|
{
|
|
199
199
|
value: 'left',
|
|
200
|
-
label:
|
|
200
|
+
label: '居左'
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
value: 'center',
|
|
204
|
-
label:
|
|
204
|
+
label: '居中'
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
value: 'right',
|
|
208
|
-
label:
|
|
208
|
+
label: '居右'
|
|
209
209
|
}
|
|
210
210
|
]
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
|
-
key: 'options-setting',
|
|
213
|
+
key: 'tag-options-setting',
|
|
214
214
|
visible: true
|
|
215
215
|
},
|
|
216
216
|
{
|
|
@@ -74,7 +74,7 @@ function _is_native_reflect_construct() {
|
|
|
74
74
|
* name: rok_tag
|
|
75
75
|
* description: 标签组件,参考 ant-design-vue 标签能力。支持标签/文本两种展示形式、样式主题、尺寸、字体风格和对齐方式配置,适合状态展示与轻量信息标记场景。
|
|
76
76
|
*/ import TagControl from './designer';
|
|
77
|
-
import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules,
|
|
77
|
+
import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, initOptions } from '@byteluck-fe/model-driven-core';
|
|
78
78
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
79
79
|
var TagPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
|
|
80
80
|
"use strict";
|
|
@@ -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
|
|
112
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
113
113
|
_this = _call_super(this, TagProperty, [
|
|
114
114
|
props
|
|
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)
|
|
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);
|
|
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, '选项一'),
|
|
@@ -132,15 +132,6 @@ var TagProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
132
132
|
_this.size = (_ref3 = props === null || props === void 0 ? void 0 : props.size) !== null && _ref3 !== void 0 ? _ref3 : 'middle';
|
|
133
133
|
_this.align = (_ref4 = props === null || props === void 0 ? void 0 : props.align) !== null && _ref4 !== void 0 ? _ref4 : 'left';
|
|
134
134
|
_this.optionConfig = (_ref5 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref5 !== void 0 ? _ref5 : 'custom';
|
|
135
|
-
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
136
|
-
_this.openMultistageFilling = (_ref6 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref6 !== void 0 ? _ref6 : false;
|
|
137
|
-
_this.multistageFilling = [];
|
|
138
|
-
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
139
|
-
props === null || props === void 0 ? void 0 : props.multistageFilling.forEach(function(item) {
|
|
140
|
-
var _this_multistageFilling;
|
|
141
|
-
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
135
|
return _this;
|
|
145
136
|
}
|
|
146
137
|
return TagProperty;
|