@byteluck-fe/model-driven-controls 2.8.0-alpha.1 → 2.8.0-alpha.11
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/baseControls/Button/designer.js +2 -2
- package/dist/esm/baseControls/Button/property.js +40 -8
- package/dist/esm/columnControls/ApprovalStatusColumn/designer.js +1 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/property.js +0 -6
- package/dist/esm/columnControls/CustomColumn/designer.js +1 -1
- package/dist/esm/columnControls/CustomColumn/runtime.js +1 -1
- package/dist/esm/columnControls/OperationColumn/designer.js +1 -1
- package/dist/esm/columnControls/OperationColumn/runtime.js +1 -1
- package/dist/esm/formControls/Address/property.js +3 -1
- package/dist/esm/formControls/Amount/property.js +3 -1
- package/dist/esm/formControls/Attachment/property.js +3 -1
- package/dist/esm/formControls/Calc/property.js +3 -1
- package/dist/esm/formControls/Checkbox/property.js +3 -1
- package/dist/esm/formControls/DateRange/property.js +4 -2
- package/dist/esm/formControls/Department/property.js +3 -1
- package/dist/esm/formControls/Department2/property.js +3 -1
- package/dist/esm/formControls/Employee/property.js +3 -1
- package/dist/esm/formControls/Employee2/property.js +3 -1
- package/dist/esm/formControls/Number/property.js +3 -1
- package/dist/esm/formControls/OrganizationSelection/property.js +3 -1
- package/dist/esm/formControls/Score/property.js +3 -1
- package/dist/esm/formControls/SearchDateRange/property.js +19 -15
- package/dist/esm/formControls/SearchNumberRange/property.js +3 -1
- package/dist/esm/formControls/SelectMultiple/property.js +3 -1
- package/dist/esm/formControls/Tree/property.js +3 -1
- package/dist/esm/formControls/VueFormItem/property.js +3 -1
- package/dist/esm/formControls/WPS/property.js +3 -1
- package/dist/esm/layoutControls/ListView/designer.js +4 -0
- package/dist/esm/layoutControls/ListView/property.js +24 -1
- package/dist/esm/listControls/GridTable/designer.js +1 -1
- package/dist/esm/listControls/SubTable/property.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/Button/property.d.ts +40 -0
- package/dist/types/columnControls/ApprovalStatusColumn/property.d.ts +0 -1
- package/dist/types/layoutControls/ListView/property.d.ts +13 -1
- package/package.json +5 -5
|
@@ -132,9 +132,9 @@ var ButtonControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
132
132
|
]);
|
|
133
133
|
return ButtonControl;
|
|
134
134
|
}(DesignerControl);
|
|
135
|
+
//普通按钮去掉执行完成时事件
|
|
135
136
|
_define_property(ButtonControl, "controlEventKeys", [
|
|
136
|
-
"on_click"
|
|
137
|
-
"on_click_finish"
|
|
137
|
+
"on_click"
|
|
138
138
|
]);
|
|
139
139
|
_define_property(ButtonControl, "setting", [
|
|
140
140
|
{
|
|
@@ -91,16 +91,48 @@ var ButtonProperty = /*#__PURE__*/ function(Property) {
|
|
|
91
91
|
_class_call_check(this, ButtonProperty);
|
|
92
92
|
var _this;
|
|
93
93
|
_this = _super.call(this, props);
|
|
94
|
-
|
|
94
|
+
/**
|
|
95
|
+
* 按钮标题
|
|
96
|
+
* @public
|
|
97
|
+
* @defaultValue ''
|
|
98
|
+
*/ _define_property(_assert_this_initialized(_this), "content", void 0);
|
|
95
99
|
// public buttonType: 'primary' | 'secondary' | 'default' | 'danger'
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
/**
|
|
101
|
+
* 按钮类型
|
|
102
|
+
* @public
|
|
103
|
+
* @defaultValue 'primary'
|
|
104
|
+
*/ _define_property(_assert_this_initialized(_this), "buttonType", void 0);
|
|
105
|
+
/**
|
|
106
|
+
* 显示形式
|
|
107
|
+
* @public
|
|
108
|
+
* @defaultValue 'text'
|
|
109
|
+
*/ _define_property(_assert_this_initialized(_this), "showType", void 0);
|
|
110
|
+
/**
|
|
111
|
+
* 颜色
|
|
112
|
+
* @public
|
|
113
|
+
* @defaultValue 'primary'
|
|
114
|
+
*/ _define_property(_assert_this_initialized(_this), "color", void 0);
|
|
115
|
+
/**
|
|
116
|
+
* 图标
|
|
117
|
+
* @public
|
|
118
|
+
* @defaultValue ''
|
|
119
|
+
*/ _define_property(_assert_this_initialized(_this), "icon", void 0);
|
|
100
120
|
_define_property(_assert_this_initialized(_this), "defaultState", void 0);
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
121
|
+
/**
|
|
122
|
+
* 按钮命令
|
|
123
|
+
* @public
|
|
124
|
+
* @defaultValue ''
|
|
125
|
+
*/ _define_property(_assert_this_initialized(_this), "command", void 0);
|
|
126
|
+
/**
|
|
127
|
+
* 加载中
|
|
128
|
+
* @public
|
|
129
|
+
* @defaultValue ''
|
|
130
|
+
*/ _define_property(_assert_this_initialized(_this), "isLoading", void 0);
|
|
131
|
+
/**
|
|
132
|
+
* 操作项
|
|
133
|
+
* @public
|
|
134
|
+
* @defaultValue ''
|
|
135
|
+
*/ _define_property(_assert_this_initialized(_this), "optObj", void 0);
|
|
104
136
|
var _props_content;
|
|
105
137
|
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : "按钮";
|
|
106
138
|
var _props_buttonType;
|
|
@@ -106,10 +106,6 @@ import { DesignerApprovalStatusColumnControl } from "./designer";
|
|
|
106
106
|
* 链接操作配置
|
|
107
107
|
* @public
|
|
108
108
|
*/ _define_property(_assert_this_initialized(_this), "linkOperationOption", void 0);
|
|
109
|
-
/**
|
|
110
|
-
* 流程状态位
|
|
111
|
-
* @public
|
|
112
|
-
*/ _define_property(_assert_this_initialized(_this), "enumType", void 0);
|
|
113
109
|
var _props_caption;
|
|
114
110
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerApprovalStatusColumnControl.controlName;
|
|
115
111
|
var _props_showLinkOperation;
|
|
@@ -117,8 +113,6 @@ import { DesignerApprovalStatusColumnControl } from "./designer";
|
|
|
117
113
|
_this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
|
|
118
114
|
var _props_lineEllipsis;
|
|
119
115
|
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
|
|
120
|
-
var _props_enumType;
|
|
121
|
-
_this.enumType = (_props_enumType = props === null || props === void 0 ? void 0 : props.enumType) !== null && _props_enumType !== void 0 ? _props_enumType : "process";
|
|
122
116
|
return _this;
|
|
123
117
|
}
|
|
124
118
|
return ApprovalStatusColumnControlProperty;
|
|
@@ -183,7 +183,7 @@ var CustomColumnControl = /*#__PURE__*/ function _target(DesignerColumnControl)
|
|
|
183
183
|
_define_property(_assert_this_initialized(_this), "children", void 0);
|
|
184
184
|
var _ref = _instanceof(this, CustomColumnControl) ? this.constructor : void 0, excludes = _ref.excludes, childrenMaxLength = _ref.childrenMaxLength;
|
|
185
185
|
_this.props = new CustomColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
186
|
-
defineControlArrayToProperty(_assert_this_initialized(_this), "children", props === null || props === void 0 ? void 0 : props.children);
|
|
186
|
+
defineControlArrayToProperty(_assert_this_initialized(_this), "children", props === null || props === void 0 ? void 0 : props.children, undefined, "Designer");
|
|
187
187
|
_this.excludes = JSONCopy(excludes);
|
|
188
188
|
_this.childrenMaxLength = childrenMaxLength;
|
|
189
189
|
return _this;
|
|
@@ -96,7 +96,7 @@ var CustomColumnControl = /*#__PURE__*/ function(RuntimeColumnControl) {
|
|
|
96
96
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
97
97
|
_define_property(_assert_this_initialized(_this), "children", void 0);
|
|
98
98
|
_this.props = new CustomColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
99
|
-
defineControlArrayToProperty(_assert_this_initialized(_this), "children", props === null || props === void 0 ? void 0 : props.children);
|
|
99
|
+
defineControlArrayToProperty(_assert_this_initialized(_this), "children", props === null || props === void 0 ? void 0 : props.children, undefined, "Runtime");
|
|
100
100
|
return _this;
|
|
101
101
|
}
|
|
102
102
|
return CustomColumnControl;
|
|
@@ -296,7 +296,7 @@ var OperationColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
|
|
|
296
296
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
297
297
|
_define_property(_assert_this_initialized(_this), "children", void 0);
|
|
298
298
|
_this.props = new OperationColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
299
|
-
defineControlArrayToProperty(_assert_this_initialized(_this), "children", props === null || props === void 0 ? void 0 : props.children);
|
|
299
|
+
defineControlArrayToProperty(_assert_this_initialized(_this), "children", props === null || props === void 0 ? void 0 : props.children, undefined, "Designer");
|
|
300
300
|
return _this;
|
|
301
301
|
}
|
|
302
302
|
_create_class(OperationColumnControl, [
|
|
@@ -96,7 +96,7 @@ var OperationColumnControl = /*#__PURE__*/ function(RuntimeColumnControl) {
|
|
|
96
96
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
97
97
|
_define_property(_assert_this_initialized(_this), "children", void 0);
|
|
98
98
|
_this.props = new OperationColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
99
|
-
defineControlArrayToProperty(_assert_this_initialized(_this), "children", props === null || props === void 0 ? void 0 : props.children);
|
|
99
|
+
defineControlArrayToProperty(_assert_this_initialized(_this), "children", props === null || props === void 0 ? void 0 : props.children, undefined, "Runtime");
|
|
100
100
|
return _this;
|
|
101
101
|
}
|
|
102
102
|
return OperationColumnControl;
|
|
@@ -93,7 +93,9 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
|
|
|
93
93
|
_class_call_check(this, AddressControlPropertyRuntimeRules);
|
|
94
94
|
var _this;
|
|
95
95
|
_this = _super.call(this, props);
|
|
96
|
-
_this[0]
|
|
96
|
+
if (_this[0] !== undefined) {
|
|
97
|
+
_this[0].type = "object";
|
|
98
|
+
}
|
|
97
99
|
if (props.required && !props.isHide) {
|
|
98
100
|
var valueValidate = {
|
|
99
101
|
type: "object",
|
|
@@ -175,7 +175,9 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
|
|
|
175
175
|
_class_call_check(this, AmountPropertyRuntimeRules);
|
|
176
176
|
var _this;
|
|
177
177
|
_this = _super.call(this, props);
|
|
178
|
-
_this[0]
|
|
178
|
+
if (_this[0] !== undefined) {
|
|
179
|
+
_this[0].type = "object";
|
|
180
|
+
}
|
|
179
181
|
var amountMax = props.rangeMax === "" ? undefined : props.rangeMax;
|
|
180
182
|
var amountMin = props.rangeMin === "" ? undefined : props.rangeMin;
|
|
181
183
|
_this.push({
|
|
@@ -114,7 +114,9 @@ var AttachmentControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPr
|
|
|
114
114
|
_class_call_check(this, AttachmentControlPropertyRuntimeRules);
|
|
115
115
|
var _this;
|
|
116
116
|
_this = _super.call(this, props);
|
|
117
|
-
_this[0]
|
|
117
|
+
if (_this[0] !== undefined) {
|
|
118
|
+
_this[0].type = "array";
|
|
119
|
+
}
|
|
118
120
|
_this.push({
|
|
119
121
|
type: "array",
|
|
120
122
|
max: props.maxLimit,
|
|
@@ -111,7 +111,9 @@ var CalcControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProperty
|
|
|
111
111
|
_class_call_check(this, CalcControlPropertyRuntimeRules);
|
|
112
112
|
var _this;
|
|
113
113
|
_this = _super.call(this, props);
|
|
114
|
-
_this[0]
|
|
114
|
+
if (_this[0] !== undefined) {
|
|
115
|
+
_this[0].type = "object";
|
|
116
|
+
}
|
|
115
117
|
_this.push({
|
|
116
118
|
type: "object",
|
|
117
119
|
message: RulesMessage.getMessage("isNotObject"),
|
|
@@ -118,7 +118,9 @@ var CheckboxPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRun
|
|
|
118
118
|
_class_call_check(this, CheckboxPropertyRuntimeRules);
|
|
119
119
|
var _this;
|
|
120
120
|
_this = _super.call(this, props);
|
|
121
|
-
_this[0]
|
|
121
|
+
if (_this[0] !== undefined) {
|
|
122
|
+
_this[0].type = "array";
|
|
123
|
+
}
|
|
122
124
|
_this.push({
|
|
123
125
|
type: "array",
|
|
124
126
|
max: typeof props.limitMax === "number" ? props.limitMax : undefined,
|
|
@@ -94,8 +94,10 @@ var DateRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRu
|
|
|
94
94
|
_class_call_check(this, DateRangePropertyRuntimeRules);
|
|
95
95
|
var _this;
|
|
96
96
|
_this = _super.call(this, props);
|
|
97
|
-
_this[0]
|
|
98
|
-
|
|
97
|
+
if (_this[0] !== undefined) {
|
|
98
|
+
_this[0].type = "object";
|
|
99
|
+
}
|
|
100
|
+
if (props.required && !props.isHide) {
|
|
99
101
|
_this.push({
|
|
100
102
|
type: "object",
|
|
101
103
|
fields: {
|
|
@@ -92,7 +92,9 @@ var DepartmentPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyR
|
|
|
92
92
|
_class_call_check(this, DepartmentPropertyRuntimeRules);
|
|
93
93
|
var _this;
|
|
94
94
|
_this = _super.call(this, props);
|
|
95
|
-
_this[0]
|
|
95
|
+
if (_this[0] !== undefined) {
|
|
96
|
+
_this[0].type = "array";
|
|
97
|
+
}
|
|
96
98
|
return _this;
|
|
97
99
|
}
|
|
98
100
|
return DepartmentPropertyRuntimeRules;
|
|
@@ -123,7 +123,9 @@ var Department2PropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProperty
|
|
|
123
123
|
_class_call_check(this, Department2PropertyRuntimeRules);
|
|
124
124
|
var _this;
|
|
125
125
|
_this = _super.call(this, props);
|
|
126
|
-
_this[0]
|
|
126
|
+
if (_this[0] !== undefined) {
|
|
127
|
+
_this[0].type = "array";
|
|
128
|
+
}
|
|
127
129
|
return _this;
|
|
128
130
|
}
|
|
129
131
|
return Department2PropertyRuntimeRules;
|
|
@@ -92,7 +92,9 @@ var EmployeeControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
|
|
|
92
92
|
_class_call_check(this, EmployeeControlPropertyRuntimeRules);
|
|
93
93
|
var _this;
|
|
94
94
|
_this = _super.call(this, props);
|
|
95
|
-
_this[0]
|
|
95
|
+
if (_this[0] !== undefined) {
|
|
96
|
+
_this[0].type = "array";
|
|
97
|
+
}
|
|
96
98
|
return _this;
|
|
97
99
|
}
|
|
98
100
|
return EmployeeControlPropertyRuntimeRules;
|
|
@@ -123,7 +123,9 @@ var Employee2ControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPro
|
|
|
123
123
|
_class_call_check(this, Employee2ControlPropertyRuntimeRules);
|
|
124
124
|
var _this;
|
|
125
125
|
_this = _super.call(this, props);
|
|
126
|
-
_this[0]
|
|
126
|
+
if (_this[0] !== undefined) {
|
|
127
|
+
_this[0].type = "array";
|
|
128
|
+
}
|
|
127
129
|
return _this;
|
|
128
130
|
}
|
|
129
131
|
return Employee2ControlPropertyRuntimeRules;
|
|
@@ -138,7 +138,9 @@ var NumberControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProper
|
|
|
138
138
|
_class_call_check(this, NumberControlPropertyRuntimeRules);
|
|
139
139
|
var _this;
|
|
140
140
|
_this = _super.call(this, props);
|
|
141
|
-
_this[0]
|
|
141
|
+
if (_this[0] !== undefined) {
|
|
142
|
+
_this[0].type = "number";
|
|
143
|
+
}
|
|
142
144
|
var max = props.rangeMax !== "" ? props.rangeMax : undefined;
|
|
143
145
|
var min = props.rangeMin !== "" ? props.rangeMin : undefined;
|
|
144
146
|
_this.push({
|
|
@@ -123,7 +123,9 @@ var OrganizationSelectionPropertyRuntimeRules = /*#__PURE__*/ function(BaseContr
|
|
|
123
123
|
_class_call_check(this, OrganizationSelectionPropertyRuntimeRules);
|
|
124
124
|
var _this;
|
|
125
125
|
_this = _super.call(this, props);
|
|
126
|
-
_this[0]
|
|
126
|
+
if (_this[0] !== undefined) {
|
|
127
|
+
_this[0].type = "array";
|
|
128
|
+
}
|
|
127
129
|
return _this;
|
|
128
130
|
}
|
|
129
131
|
return OrganizationSelectionPropertyRuntimeRules;
|
|
@@ -129,7 +129,9 @@ var ScoreControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropert
|
|
|
129
129
|
_class_call_check(this, ScoreControlPropertyRuntimeRules);
|
|
130
130
|
var _this;
|
|
131
131
|
_this = _super.call(this, props);
|
|
132
|
-
_this[0]
|
|
132
|
+
if (_this[0] !== undefined) {
|
|
133
|
+
_this[0].type = "number";
|
|
134
|
+
}
|
|
133
135
|
// 如果是必填情况下,最小为1,非必填的情况下,最小为0
|
|
134
136
|
var min = props.required ? 1 : 0;
|
|
135
137
|
_this.push({
|
|
@@ -94,22 +94,26 @@ var SearchDateRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
|
|
|
94
94
|
_class_call_check(this, SearchDateRangePropertyRuntimeRules);
|
|
95
95
|
var _this;
|
|
96
96
|
_this = _super.call(this, props);
|
|
97
|
-
_this[0]
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
97
|
+
if (_this[0] !== undefined) {
|
|
98
|
+
_this[0].type = "array";
|
|
99
|
+
}
|
|
100
|
+
if (props.required && !props.isHide) {
|
|
101
|
+
_this.push({
|
|
102
|
+
type: "array",
|
|
103
|
+
fields: {
|
|
104
|
+
0: {
|
|
105
|
+
type: "string",
|
|
106
|
+
required: props.required,
|
|
107
|
+
message: _this[0].message
|
|
108
|
+
},
|
|
109
|
+
1: {
|
|
110
|
+
type: "string",
|
|
111
|
+
required: props.required,
|
|
112
|
+
message: _this[0].message
|
|
113
|
+
}
|
|
110
114
|
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
113
117
|
return _this;
|
|
114
118
|
}
|
|
115
119
|
return SearchDateRangePropertyRuntimeRules;
|
|
@@ -93,7 +93,9 @@ var SearchNumberRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPr
|
|
|
93
93
|
_class_call_check(this, SearchNumberRangePropertyRuntimeRules);
|
|
94
94
|
var _this;
|
|
95
95
|
_this = _super.call(this, props);
|
|
96
|
-
_this[0]
|
|
96
|
+
if (_this[0] !== undefined) {
|
|
97
|
+
_this[0].type = "array";
|
|
98
|
+
}
|
|
97
99
|
_this.push({
|
|
98
100
|
validator: function validator(rule, value) {
|
|
99
101
|
if (props.required) {
|
|
@@ -117,7 +117,9 @@ var SelectMultipleControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseContr
|
|
|
117
117
|
_class_call_check(this, SelectMultipleControlPropertyRuntimeRules);
|
|
118
118
|
var _this;
|
|
119
119
|
_this = _super.call(this, props);
|
|
120
|
-
_this[0]
|
|
120
|
+
if (_this[0] !== undefined) {
|
|
121
|
+
_this[0].type = "array";
|
|
122
|
+
}
|
|
121
123
|
return _this;
|
|
122
124
|
}
|
|
123
125
|
return SelectMultipleControlPropertyRuntimeRules;
|
|
@@ -142,7 +142,9 @@ var TreePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntime
|
|
|
142
142
|
_class_call_check(this, TreePropertyRuntimeRules);
|
|
143
143
|
var _this;
|
|
144
144
|
_this = _super.call(this, props);
|
|
145
|
-
_this[0]
|
|
145
|
+
if (_this[0] !== undefined) {
|
|
146
|
+
_this[0].type = "array";
|
|
147
|
+
}
|
|
146
148
|
return _this;
|
|
147
149
|
}
|
|
148
150
|
return TreePropertyRuntimeRules;
|
|
@@ -107,7 +107,9 @@ var VueFormItemPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProperty
|
|
|
107
107
|
_class_call_check(this, VueFormItemPropertyRuntimeRules);
|
|
108
108
|
var _this;
|
|
109
109
|
_this = _super.call(this, props);
|
|
110
|
-
_this[0]
|
|
110
|
+
if (_this[0] !== undefined) {
|
|
111
|
+
_this[0].type = "any";
|
|
112
|
+
}
|
|
111
113
|
return _this;
|
|
112
114
|
}
|
|
113
115
|
return VueFormItemPropertyRuntimeRules;
|
|
@@ -148,7 +148,9 @@ var WPSPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeR
|
|
|
148
148
|
_class_call_check(this, WPSPropertyRuntimeRules);
|
|
149
149
|
var _this;
|
|
150
150
|
_this = _super.call(this, props);
|
|
151
|
-
_this[0]
|
|
151
|
+
if (_this[0] !== undefined) {
|
|
152
|
+
_this[0].type = "array";
|
|
153
|
+
}
|
|
152
154
|
return _this;
|
|
153
155
|
}
|
|
154
156
|
return WPSPropertyRuntimeRules;
|
|
@@ -82,7 +82,7 @@ function _create_super(Derived) {
|
|
|
82
82
|
return _possible_constructor_return(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
import { LayoutControlProperty, PropertyRules, PropertyRuntimeRules, DataSourceBind, SubListPageConfig, JoinRelation } from "@byteluck-fe/model-driven-core";
|
|
85
|
+
import { LayoutControlProperty, PropertyRules, PropertyRuntimeRules, DataSourceBind, SubListPageConfig, JoinRelation, RowStyleRule, RowStyleRuleScript } from "@byteluck-fe/model-driven-core";
|
|
86
86
|
import { RulesMessage } from "@byteluck-fe/model-driven-shared";
|
|
87
87
|
import { initOptionAndDataSourceRules } from "@byteluck-fe/model-driven-core";
|
|
88
88
|
export var TriggerType;
|
|
@@ -228,6 +228,7 @@ export var TriggerType;
|
|
|
228
228
|
function ListViewControlProperty(props) {
|
|
229
229
|
_class_call_check(this, ListViewControlProperty);
|
|
230
230
|
var _this;
|
|
231
|
+
var _props_rowStyleRules, _props_rowStyleRulesScript;
|
|
231
232
|
_this = _super.call(this, props);
|
|
232
233
|
/**
|
|
233
234
|
* 数据高级设置
|
|
@@ -304,6 +305,16 @@ export var TriggerType;
|
|
|
304
305
|
* @defaultValue 100000
|
|
305
306
|
* @public
|
|
306
307
|
*/ _define_property(_assert_this_initialized(_this), "countLimit", void 0);
|
|
308
|
+
/**
|
|
309
|
+
* 行背景规则
|
|
310
|
+
* @defaultValue 'none'
|
|
311
|
+
*/ _define_property(_assert_this_initialized(_this), "rowStyleType", void 0);
|
|
312
|
+
/**
|
|
313
|
+
* 行背景色
|
|
314
|
+
* @defaultValue 'theme'
|
|
315
|
+
*/ _define_property(_assert_this_initialized(_this), "rowStyleBgColor", void 0);
|
|
316
|
+
_define_property(_assert_this_initialized(_this), "rowStyleRules", void 0);
|
|
317
|
+
_define_property(_assert_this_initialized(_this), "rowStyleRulesScript", void 0);
|
|
307
318
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
308
319
|
var _props_isLoading;
|
|
309
320
|
_this.isLoading = (_props_isLoading = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _props_isLoading !== void 0 ? _props_isLoading : false;
|
|
@@ -332,6 +343,18 @@ export var TriggerType;
|
|
|
332
343
|
_this.countType = props === null || props === void 0 ? void 0 : props.countType;
|
|
333
344
|
var _props_countLimit;
|
|
334
345
|
_this.countLimit = (_props_countLimit = props === null || props === void 0 ? void 0 : props.countLimit) !== null && _props_countLimit !== void 0 ? _props_countLimit : 100000;
|
|
346
|
+
var _props_rowStyleType;
|
|
347
|
+
_this.rowStyleType = (_props_rowStyleType = props === null || props === void 0 ? void 0 : props.rowStyleType) !== null && _props_rowStyleType !== void 0 ? _props_rowStyleType : "none";
|
|
348
|
+
var _props_rowStyleBgColor;
|
|
349
|
+
_this.rowStyleBgColor = (_props_rowStyleBgColor = props === null || props === void 0 ? void 0 : props.rowStyleBgColor) !== null && _props_rowStyleBgColor !== void 0 ? _props_rowStyleBgColor : "theme";
|
|
350
|
+
var _props_rowStyleRules_map;
|
|
351
|
+
_this.rowStyleRules = (_props_rowStyleRules_map = props === null || props === void 0 ? void 0 : (_props_rowStyleRules = props.rowStyleRules) === null || _props_rowStyleRules === void 0 ? void 0 : _props_rowStyleRules.map(function(item) {
|
|
352
|
+
return new RowStyleRule(item);
|
|
353
|
+
})) !== null && _props_rowStyleRules_map !== void 0 ? _props_rowStyleRules_map : [];
|
|
354
|
+
var _props_rowStyleRulesScript_map;
|
|
355
|
+
_this.rowStyleRulesScript = (_props_rowStyleRulesScript_map = props === null || props === void 0 ? void 0 : (_props_rowStyleRulesScript = props.rowStyleRulesScript) === null || _props_rowStyleRulesScript === void 0 ? void 0 : _props_rowStyleRulesScript.map(function(item) {
|
|
356
|
+
return new RowStyleRuleScript(item);
|
|
357
|
+
})) !== null && _props_rowStyleRulesScript_map !== void 0 ? _props_rowStyleRulesScript_map : [];
|
|
335
358
|
return _this;
|
|
336
359
|
}
|
|
337
360
|
return ListViewControlProperty;
|
|
@@ -298,7 +298,7 @@ var GridTableControl = /*#__PURE__*/ function(DesignerListControl) {
|
|
|
298
298
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
299
299
|
_define_property(_assert_this_initialized(_this), "children", void 0);
|
|
300
300
|
_this.props = new GridTableControlProperty(_assert_this_initialized(_this), props === null || props === void 0 ? void 0 : props.props);
|
|
301
|
-
defineControlArrayToProperty(_assert_this_initialized(_this), "children", props === null || props === void 0 ? void 0 : props.children);
|
|
301
|
+
defineControlArrayToProperty(_assert_this_initialized(_this), "children", props === null || props === void 0 ? void 0 : props.children, undefined, "Designer");
|
|
302
302
|
if ((props === null || props === void 0 ? void 0 : props.props.headers) === undefined) {
|
|
303
303
|
_this.props.headers = [
|
|
304
304
|
new DesignerOrderColumnControl(),
|
|
@@ -189,7 +189,7 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
|
189
189
|
function SubTableControlProperty(parent, props) {
|
|
190
190
|
_class_call_check(this, SubTableControlProperty);
|
|
191
191
|
var _this;
|
|
192
|
-
_this = _super.call(this, parent, props);
|
|
192
|
+
_this = _super.call(this, parent, props, SubTableControlProperty.mode);
|
|
193
193
|
/**
|
|
194
194
|
* 标题
|
|
195
195
|
* */ _define_property(_assert_this_initialized(_this), "caption", void 0);
|