@byteluck-fe/model-driven-controls 7.0.0-props.83 → 7.0.0-props.85
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.
|
@@ -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, initOptions } from '@byteluck-fe/model-driven-core';
|
|
77
|
+
import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, 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, _ref6;
|
|
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), _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, '选项一'),
|
|
@@ -132,6 +132,15 @@ 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
|
+
}
|
|
135
144
|
return _this;
|
|
136
145
|
}
|
|
137
146
|
return TagProperty;
|