@byteluck-fe/model-driven-controls 2.5.0-alpha.9 → 2.5.0-beta.2
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/Address/property.js +15 -7
- package/dist/esm/formControls/Amount/property.js +9 -1
- package/dist/esm/formControls/Calc/property.js +5 -0
- package/dist/esm/formControls/DateRange/property.js +47 -14
- package/dist/esm/formControls/Department/designer.js +5 -6
- package/dist/esm/formControls/Department2/designer.js +5 -6
- package/dist/esm/formControls/OrganizationSelection/designer.js +8 -13
- package/dist/esm/formControls/OrganizationSelection/property.js +9 -4
- package/dist/esm/formControls/OrganizationSelection/runtime.js +1 -1
- package/dist/esm/formControls/SelectRelation/designer.js +1 -0
- package/dist/esm/formControls/SelectRelation/property.js +7 -0
- package/dist/esm/formControls/Tree/property.js +2 -1
- package/dist/esm/layoutControls/ListView/designer.js +4 -0
- package/dist/esm/layoutControls/ListView/property.js +14 -0
- package/dist/esm/layoutControls/Tab/designer.js +4 -0
- package/dist/esm/layoutControls/Tab/property.js +19 -1
- package/dist/esm/listControls/GridTable/property.js +1 -1
- package/dist/esm/listControls/SubTable/designer.js +0 -1
- package/dist/esm/listControls/SubTable/property.js +28 -0
- package/dist/esm/searchControls/SimpleSearch/property.js +7 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/columnControls/CustomColumn/designer.d.ts +1 -1
- package/dist/types/formControls/Address/property.d.ts +15 -0
- package/dist/types/formControls/Amount/property.d.ts +9 -0
- package/dist/types/formControls/Calc/property.d.ts +5 -0
- package/dist/types/formControls/DateRange/property.d.ts +47 -0
- package/dist/types/formControls/Department/designer.d.ts +1 -1
- package/dist/types/formControls/Department2/designer.d.ts +1 -1
- package/dist/types/formControls/OrganizationSelection/designer.d.ts +1 -1
- package/dist/types/formControls/OrganizationSelection/property.d.ts +7 -2
- package/dist/types/formControls/SelectRelation/property.d.ts +6 -0
- package/dist/types/layoutControls/ListView/property.d.ts +12 -0
- package/dist/types/layoutControls/Tab/property.d.ts +1 -0
- package/dist/types/listControls/GridTable/property.d.ts +1 -1
- package/dist/types/listControls/SubTable/property.d.ts +24 -0
- package/dist/types/searchControls/SimpleSearch/property.d.ts +6 -0
- package/package.json +5 -5
|
@@ -125,7 +125,10 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
|
|
|
125
125
|
}
|
|
126
126
|
return AddressControlPropertyRuntimeRules;
|
|
127
127
|
}(BaseControlPropertyRuntimeRules);
|
|
128
|
-
|
|
128
|
+
/**
|
|
129
|
+
* Address 地址
|
|
130
|
+
* @public
|
|
131
|
+
*/ var AddressProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
129
132
|
"use strict";
|
|
130
133
|
_inherits(AddressProperty, BaseControlProperty);
|
|
131
134
|
var _super = _createSuper(AddressProperty);
|
|
@@ -133,12 +136,17 @@ var AddressProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
133
136
|
_classCallCheck(this, AddressProperty);
|
|
134
137
|
var _this;
|
|
135
138
|
_this = _super.call(this, props);
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
/**
|
|
140
|
+
* 默认值类型 default固定地址 current当前定位
|
|
141
|
+
* @defaultValue 'default'
|
|
142
|
+
*/ _defineProperty(_assertThisInitialized(_this), "defaultValueType", void 0);
|
|
143
|
+
/**
|
|
144
|
+
* 默认值
|
|
145
|
+
*/ _defineProperty(_assertThisInitialized(_this), "defaultValue", void 0);
|
|
146
|
+
/**
|
|
147
|
+
* 地址类型
|
|
148
|
+
* @defaultValue ['province', 'city', 'district']
|
|
149
|
+
*/ _defineProperty(_assertThisInitialized(_this), "addressType", void 0);
|
|
142
150
|
var _props_caption;
|
|
143
151
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AddressControl.controlName;
|
|
144
152
|
var _props_defaultValueType;
|
|
@@ -204,7 +204,9 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
|
|
|
204
204
|
}
|
|
205
205
|
return AmountPropertyRuntimeRules;
|
|
206
206
|
}(BaseControlPropertyRuntimeRules);
|
|
207
|
-
|
|
207
|
+
/**
|
|
208
|
+
* 金额控件属性
|
|
209
|
+
*/ var AmountProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
208
210
|
"use strict";
|
|
209
211
|
_inherits(AmountProperty, BaseControlProperty);
|
|
210
212
|
var _super = _createSuper(AmountProperty);
|
|
@@ -214,24 +216,30 @@ var AmountProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
214
216
|
_this = _super.call(this, props);
|
|
215
217
|
/**
|
|
216
218
|
* 最小值
|
|
219
|
+
* @defaultValue ''
|
|
217
220
|
* */ _defineProperty(_assertThisInitialized(_this), "rangeMin", void 0);
|
|
218
221
|
/**
|
|
219
222
|
* 最大值
|
|
223
|
+
* @defaultValue ''
|
|
220
224
|
* */ _defineProperty(_assertThisInitialized(_this), "rangeMax", void 0);
|
|
221
225
|
/**
|
|
222
226
|
* 是否显示大写数字
|
|
227
|
+
* @defaultValue false
|
|
223
228
|
* */ _defineProperty(_assertThisInitialized(_this), "showUpperCase", void 0);
|
|
224
229
|
/**
|
|
225
230
|
* 提交时选择币种
|
|
231
|
+
* @defaultValue false
|
|
226
232
|
* */ _defineProperty(_assertThisInitialized(_this), "submitSelectCurrency", void 0);
|
|
227
233
|
/**
|
|
228
234
|
* 千分位展示
|
|
229
235
|
* */ _defineProperty(_assertThisInitialized(_this), "micrometer", void 0);
|
|
230
236
|
/**
|
|
231
237
|
* 小数位数
|
|
238
|
+
* @defaultValue ''
|
|
232
239
|
*/ _defineProperty(_assertThisInitialized(_this), "precision", void 0);
|
|
233
240
|
/**
|
|
234
241
|
* 选项配置 custom datasource
|
|
242
|
+
* @defaultValue 'datasource'
|
|
235
243
|
* */ _defineProperty(_assertThisInitialized(_this), "optionConfig", void 0);
|
|
236
244
|
/**
|
|
237
245
|
* 金额和币种的数据绑定
|
|
@@ -142,18 +142,23 @@ var CalcProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
142
142
|
_this = _super.call(this, props);
|
|
143
143
|
/**
|
|
144
144
|
* 保留小数点后几位
|
|
145
|
+
* @defaultValue ''
|
|
145
146
|
* */ _defineProperty(_assertThisInitialized(_this), "precision", void 0);
|
|
146
147
|
/**
|
|
147
148
|
* 千分位展示
|
|
149
|
+
* @defaultValue false
|
|
148
150
|
* */ _defineProperty(_assertThisInitialized(_this), "micrometer", void 0);
|
|
149
151
|
/**
|
|
150
152
|
* 是否显示大写数字
|
|
153
|
+
* @defaultValue false
|
|
151
154
|
* */ _defineProperty(_assertThisInitialized(_this), "showUpperCase", void 0);
|
|
152
155
|
/**
|
|
153
156
|
* 解释执行的表达式源码
|
|
157
|
+
* @defaultValue ''
|
|
154
158
|
* */ _defineProperty(_assertThisInitialized(_this), "scriptSrc", void 0);
|
|
155
159
|
/**
|
|
156
160
|
* 辅助回显的表达式
|
|
161
|
+
* @defaultValue []
|
|
157
162
|
* */ _defineProperty(_assertThisInitialized(_this), "scriptEcho", void 0);
|
|
158
163
|
/**
|
|
159
164
|
* 计算公式的数据绑定
|
|
@@ -116,7 +116,10 @@ var DateRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRu
|
|
|
116
116
|
}
|
|
117
117
|
return DateRangePropertyRuntimeRules;
|
|
118
118
|
}(BaseControlPropertyRuntimeRules);
|
|
119
|
-
|
|
119
|
+
/**
|
|
120
|
+
* DateRange 日期区间
|
|
121
|
+
* @public
|
|
122
|
+
*/ var DateRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
120
123
|
"use strict";
|
|
121
124
|
_inherits(DateRangeProperty, BaseControlProperty);
|
|
122
125
|
var _super = _createSuper(DateRangeProperty);
|
|
@@ -125,19 +128,49 @@ var DateRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
125
128
|
var _this;
|
|
126
129
|
var _props_limitDateList;
|
|
127
130
|
_this = _super.call(this, props);
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
131
|
+
/**
|
|
132
|
+
* 数据绑定项
|
|
133
|
+
*/ _defineProperty(_assertThisInitialized(_this), "dataBind", void 0);
|
|
134
|
+
/**
|
|
135
|
+
* 开始日期
|
|
136
|
+
* @public
|
|
137
|
+
* @defaultValue ''
|
|
138
|
+
*/ _defineProperty(_assertThisInitialized(_this), "rangeMin", void 0);
|
|
139
|
+
/**
|
|
140
|
+
* 结束日期
|
|
141
|
+
* @public
|
|
142
|
+
* @defaultValue ''
|
|
143
|
+
*/ _defineProperty(_assertThisInitialized(_this), "rangeMax", void 0);
|
|
144
|
+
/**
|
|
145
|
+
* 日期区间开始的提示文字
|
|
146
|
+
* @defaultValue ''
|
|
147
|
+
* @public
|
|
148
|
+
*/ _defineProperty(_assertThisInitialized(_this), "placeholderStart", void 0);
|
|
149
|
+
/**
|
|
150
|
+
* 日期区结束的提示文字
|
|
151
|
+
* @defaultValue ''
|
|
152
|
+
* @public
|
|
153
|
+
*/ _defineProperty(_assertThisInitialized(_this), "placeholderEnd", void 0);
|
|
154
|
+
/**
|
|
155
|
+
* 日期格式 date,datetime
|
|
156
|
+
* @defaultValue 'date'
|
|
157
|
+
* @public
|
|
158
|
+
*/ _defineProperty(_assertThisInitialized(_this), "dateType", void 0);
|
|
159
|
+
/**
|
|
160
|
+
* 日期默认值设置方式custom,now
|
|
161
|
+
* @defaultValue 'custom'
|
|
162
|
+
* @public
|
|
163
|
+
*/ _defineProperty(_assertThisInitialized(_this), "setValueType", void 0);
|
|
164
|
+
/**
|
|
165
|
+
* 默认值
|
|
166
|
+
* @defaultValue ''
|
|
167
|
+
* @public
|
|
168
|
+
*/ _defineProperty(_assertThisInitialized(_this), "defaultValue", void 0);
|
|
169
|
+
/**
|
|
170
|
+
* 日期限制范围
|
|
171
|
+
* @defaultValue []
|
|
172
|
+
* @public
|
|
173
|
+
*/ _defineProperty(_assertThisInitialized(_this), "limitDateList", void 0);
|
|
141
174
|
_this.dataBind = new RangeDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
142
175
|
_this.defaultValue = new RangeDateValue(props === null || props === void 0 ? void 0 : props.defaultValue);
|
|
143
176
|
var _props_dateType;
|
|
@@ -148,12 +148,6 @@ var DepartmentControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
], [
|
|
151
|
-
{
|
|
152
|
-
key: "controlName",
|
|
153
|
-
get: function get() {
|
|
154
|
-
return "部门";
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
151
|
{
|
|
158
152
|
key: "controlIcon",
|
|
159
153
|
get: function get() {
|
|
@@ -169,12 +163,17 @@ var DepartmentControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
169
163
|
]);
|
|
170
164
|
return DepartmentControl;
|
|
171
165
|
}(DesignerFormControl);
|
|
166
|
+
_defineProperty(DepartmentControl, "controlName", "部门");
|
|
172
167
|
_defineProperty(DepartmentControl, "controlFieldType", FieldTypes.DEPARTMENTS);
|
|
173
168
|
_defineProperty(DepartmentControl, "setting", [
|
|
174
169
|
{
|
|
175
170
|
key: "data-bind",
|
|
176
171
|
visible: true
|
|
177
172
|
},
|
|
173
|
+
{
|
|
174
|
+
key: "field-type",
|
|
175
|
+
visible: true
|
|
176
|
+
},
|
|
178
177
|
{
|
|
179
178
|
key: "caption",
|
|
180
179
|
showItems: [
|
|
@@ -148,12 +148,6 @@ var Department2Control = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
], [
|
|
151
|
-
{
|
|
152
|
-
key: "controlName",
|
|
153
|
-
get: function get() {
|
|
154
|
-
return "部门";
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
151
|
{
|
|
158
152
|
key: "controlIcon",
|
|
159
153
|
get: function get() {
|
|
@@ -181,12 +175,17 @@ var Department2Control = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
181
175
|
]);
|
|
182
176
|
return Department2Control;
|
|
183
177
|
}(DesignerFormControl);
|
|
178
|
+
_defineProperty(Department2Control, "controlName", "部门");
|
|
184
179
|
_defineProperty(Department2Control, "controlFieldType", FieldTypes.DEPARTMENTS);
|
|
185
180
|
_defineProperty(Department2Control, "setting", [
|
|
186
181
|
{
|
|
187
182
|
key: "data-bind",
|
|
188
183
|
visible: true
|
|
189
184
|
},
|
|
185
|
+
{
|
|
186
|
+
key: "field-type",
|
|
187
|
+
visible: true
|
|
188
|
+
},
|
|
190
189
|
{
|
|
191
190
|
key: "caption",
|
|
192
191
|
showItems: [
|
|
@@ -148,12 +148,6 @@ var OrganizationSelectionControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
], [
|
|
151
|
-
{
|
|
152
|
-
key: "controlName",
|
|
153
|
-
get: function get() {
|
|
154
|
-
return "组织";
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
151
|
{
|
|
158
152
|
key: "controlIcon",
|
|
159
153
|
get: function get() {
|
|
@@ -163,7 +157,7 @@ var OrganizationSelectionControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
163
157
|
{
|
|
164
158
|
key: "controlType",
|
|
165
159
|
get: function get() {
|
|
166
|
-
return "
|
|
160
|
+
return "organization-selection";
|
|
167
161
|
}
|
|
168
162
|
},
|
|
169
163
|
{
|
|
@@ -181,12 +175,17 @@ var OrganizationSelectionControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
181
175
|
]);
|
|
182
176
|
return OrganizationSelectionControl;
|
|
183
177
|
}(DesignerFormControl);
|
|
178
|
+
_defineProperty(OrganizationSelectionControl, "controlName", "业务组织");
|
|
184
179
|
_defineProperty(OrganizationSelectionControl, "controlFieldType", FieldTypes.DEPARTMENTS);
|
|
185
180
|
_defineProperty(OrganizationSelectionControl, "setting", [
|
|
186
181
|
{
|
|
187
182
|
key: "data-bind",
|
|
188
183
|
visible: true
|
|
189
184
|
},
|
|
185
|
+
{
|
|
186
|
+
key: "field-type",
|
|
187
|
+
visible: true
|
|
188
|
+
},
|
|
190
189
|
{
|
|
191
190
|
key: "caption",
|
|
192
191
|
showItems: [
|
|
@@ -219,15 +218,11 @@ _defineProperty(OrganizationSelectionControl, "setting", [
|
|
|
219
218
|
]
|
|
220
219
|
},
|
|
221
220
|
{
|
|
222
|
-
key: "
|
|
223
|
-
visible: true
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
key: "department-defaultval",
|
|
221
|
+
key: "organization-selection-setting",
|
|
227
222
|
visible: true
|
|
228
223
|
},
|
|
229
224
|
{
|
|
230
|
-
key: "
|
|
225
|
+
key: "org-selection-defaultval",
|
|
231
226
|
visible: true
|
|
232
227
|
},
|
|
233
228
|
{
|
|
@@ -83,7 +83,7 @@ function _createSuper(Derived) {
|
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
import OrganizationSelectionControl from "./designer";
|
|
86
|
-
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, initSuperDataSourceRules, MultistageFillingItem, SelectedContentConfig,
|
|
86
|
+
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, initSuperDataSourceRules, MultistageFillingItem, SelectedContentConfig, OrganizationDataSourceBind, ListBind } from "@byteluck-fe/model-driven-core";
|
|
87
87
|
import { RulesMessage } from "@byteluck-fe/model-driven-shared";
|
|
88
88
|
import { DepartmentType, AssignType } from "../../framework";
|
|
89
89
|
var OrganizationSelectionPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
@@ -167,6 +167,10 @@ var OrganizationSelectionProperty = /*#__PURE__*/ function(BaseControlProperty)
|
|
|
167
167
|
* 数据设置
|
|
168
168
|
* */ _defineProperty(_assertThisInitialized(_this), "datasourceBind", void 0);
|
|
169
169
|
/**
|
|
170
|
+
* 绑定列表页
|
|
171
|
+
* @public
|
|
172
|
+
*/ _defineProperty(_assertThisInitialized(_this), "listPageBind", void 0);
|
|
173
|
+
/**
|
|
170
174
|
* 数据类型 行政 or 业务
|
|
171
175
|
* */ _defineProperty(_assertThisInitialized(_this), "datasourceType", void 0 //数据类型 行政 'administration'| 业务 'business'
|
|
172
176
|
);
|
|
@@ -190,6 +194,7 @@ var OrganizationSelectionProperty = /*#__PURE__*/ function(BaseControlProperty)
|
|
|
190
194
|
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
191
195
|
var _props_range;
|
|
192
196
|
_this.range = (_props_range = props === null || props === void 0 ? void 0 : props.range) !== null && _props_range !== void 0 ? _props_range : "all";
|
|
197
|
+
_this.listPageBind = new ListBind(props === null || props === void 0 ? void 0 : props.listPageBind);
|
|
193
198
|
var _props_defaultValueType;
|
|
194
199
|
_this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : "none";
|
|
195
200
|
var _props_rangeOptions;
|
|
@@ -205,7 +210,7 @@ var OrganizationSelectionProperty = /*#__PURE__*/ function(BaseControlProperty)
|
|
|
205
210
|
var _props_placeholder;
|
|
206
211
|
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请选择组织";
|
|
207
212
|
var _props_datasourceBind;
|
|
208
|
-
_this.datasourceBind = new
|
|
213
|
+
_this.datasourceBind = new OrganizationDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
209
214
|
attributes: OrganizationSelectionControl.controlCustomAttributes
|
|
210
215
|
});
|
|
211
216
|
var _props_datasourceType;
|
|
@@ -215,9 +220,9 @@ var OrganizationSelectionProperty = /*#__PURE__*/ function(BaseControlProperty)
|
|
|
215
220
|
var _props_businessType;
|
|
216
221
|
_this.businessType = (_props_businessType = props === null || props === void 0 ? void 0 : props.businessType) !== null && _props_businessType !== void 0 ? _props_businessType : AssignType.ALL;
|
|
217
222
|
var _props_organizingFunction;
|
|
218
|
-
_this.organizingFunction = (_props_organizingFunction = props === null || props === void 0 ? void 0 : props.organizingFunction) !== null && _props_organizingFunction !== void 0 ? _props_organizingFunction :
|
|
223
|
+
_this.organizingFunction = (_props_organizingFunction = props === null || props === void 0 ? void 0 : props.organizingFunction) !== null && _props_organizingFunction !== void 0 ? _props_organizingFunction : undefined;
|
|
219
224
|
var _props_organizationView;
|
|
220
|
-
_this.organizationView = (_props_organizationView = props === null || props === void 0 ? void 0 : props.organizationView) !== null && _props_organizationView !== void 0 ? _props_organizationView :
|
|
225
|
+
_this.organizationView = (_props_organizationView = props === null || props === void 0 ? void 0 : props.organizationView) !== null && _props_organizationView !== void 0 ? _props_organizationView : undefined;
|
|
221
226
|
var _props_showSelectedDetail;
|
|
222
227
|
_this.showSelectedDetail = (_props_showSelectedDetail = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _props_showSelectedDetail !== void 0 ? _props_showSelectedDetail : false;
|
|
223
228
|
_this.selectedContentConfig = new SelectedContentConfig(props === null || props === void 0 ? void 0 : props.selectedContentConfig);
|
|
@@ -170,6 +170,7 @@ _defineProperty(SelectRelationControl, "setting", [
|
|
|
170
170
|
COMMON_SETTING_TYPE.REQUIRED,
|
|
171
171
|
COMMON_SETTING_TYPE.IS_HIDE,
|
|
172
172
|
COMMON_SETTING_TYPE.CAN_VIEW_FORM,
|
|
173
|
+
COMMON_SETTING_TYPE.VIEW_FORM_MODEL_TYPE,
|
|
173
174
|
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
174
175
|
]
|
|
175
176
|
},
|
|
@@ -161,6 +161,11 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
161
161
|
* @public
|
|
162
162
|
*/ _defineProperty(_assertThisInitialized(_this), "multistageFilling", void 0);
|
|
163
163
|
/**
|
|
164
|
+
* 表单打开方式
|
|
165
|
+
* @defaultValue []
|
|
166
|
+
* @public
|
|
167
|
+
*/ _defineProperty(_assertThisInitialized(_this), "viewFormModelType", void 0);
|
|
168
|
+
/**
|
|
164
169
|
* 查看详情
|
|
165
170
|
* @defaultValue false
|
|
166
171
|
* @public
|
|
@@ -202,6 +207,8 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
202
207
|
}
|
|
203
208
|
var _props_canViewForm;
|
|
204
209
|
_this.canViewForm = (_props_canViewForm = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _props_canViewForm !== void 0 ? _props_canViewForm : false;
|
|
210
|
+
var _props_viewFormModelType;
|
|
211
|
+
_this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : "window";
|
|
205
212
|
return _this;
|
|
206
213
|
}
|
|
207
214
|
return SelectRelationProperty;
|
|
@@ -202,6 +202,16 @@ export var TriggerType;
|
|
|
202
202
|
* @public
|
|
203
203
|
*/ _defineProperty(_assertThisInitialized(_this), "isFixedHeader", void 0);
|
|
204
204
|
/**
|
|
205
|
+
* 显示选择框类型
|
|
206
|
+
* @defaultValue undefined | 'multiple' | 'radio'
|
|
207
|
+
* @public
|
|
208
|
+
*/ _defineProperty(_assertThisInitialized(_this), "selectionType", void 0);
|
|
209
|
+
/**
|
|
210
|
+
* 显示选择框
|
|
211
|
+
* @defaultValue false
|
|
212
|
+
* @public
|
|
213
|
+
*/ _defineProperty(_assertThisInitialized(_this), "isShowSelection", void 0);
|
|
214
|
+
/**
|
|
205
215
|
* 加载全部数据
|
|
206
216
|
* @defaultValue true
|
|
207
217
|
* @public
|
|
@@ -227,8 +237,12 @@ export var TriggerType;
|
|
|
227
237
|
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "stretch";
|
|
228
238
|
var _props_showFullScreen;
|
|
229
239
|
_this.showFullScreen = (_props_showFullScreen = props === null || props === void 0 ? void 0 : props.showFullScreen) !== null && _props_showFullScreen !== void 0 ? _props_showFullScreen : false;
|
|
240
|
+
var _props_selectionType;
|
|
241
|
+
_this.selectionType = (_props_selectionType = props === null || props === void 0 ? void 0 : props.selectionType) !== null && _props_selectionType !== void 0 ? _props_selectionType : "multiple";
|
|
230
242
|
var _props_isFixedHeader;
|
|
231
243
|
_this.isFixedHeader = (_props_isFixedHeader = props === null || props === void 0 ? void 0 : props.isFixedHeader) !== null && _props_isFixedHeader !== void 0 ? _props_isFixedHeader : false;
|
|
244
|
+
var _props_isShowSelection;
|
|
245
|
+
_this.isShowSelection = (_props_isShowSelection = props === null || props === void 0 ? void 0 : props.isShowSelection) !== null && _props_isShowSelection !== void 0 ? _props_isShowSelection : false;
|
|
232
246
|
var _props_isAllLoaded;
|
|
233
247
|
_this.isAllLoaded = (_props_isAllLoaded = props === null || props === void 0 ? void 0 : props.isAllLoaded) !== null && _props_isAllLoaded !== void 0 ? _props_isAllLoaded : true;
|
|
234
248
|
_this.countType = props === null || props === void 0 ? void 0 : props.countType;
|
|
@@ -9,6 +9,19 @@ function _classCallCheck(instance, Constructor) {
|
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
+
function _defineProperty(obj, key, value) {
|
|
13
|
+
if (key in obj) {
|
|
14
|
+
Object.defineProperty(obj, key, {
|
|
15
|
+
value: value,
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true
|
|
19
|
+
});
|
|
20
|
+
} else {
|
|
21
|
+
obj[key] = value;
|
|
22
|
+
}
|
|
23
|
+
return obj;
|
|
24
|
+
}
|
|
12
25
|
function _getPrototypeOf(o) {
|
|
13
26
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
14
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
@@ -76,7 +89,12 @@ var TabControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
76
89
|
var _super = _createSuper(TabControlProperty);
|
|
77
90
|
function TabControlProperty(props) {
|
|
78
91
|
_classCallCheck(this, TabControlProperty);
|
|
79
|
-
|
|
92
|
+
var _this;
|
|
93
|
+
_this = _super.call(this, props);
|
|
94
|
+
_defineProperty(_assertThisInitialized(_this), "mobileShowType", void 0);
|
|
95
|
+
var _props_mobileShowType;
|
|
96
|
+
_this.mobileShowType = (_props_mobileShowType = props === null || props === void 0 ? void 0 : props.mobileShowType) !== null && _props_mobileShowType !== void 0 ? _props_mobileShowType : "vertical";
|
|
97
|
+
return _this;
|
|
80
98
|
}
|
|
81
99
|
return TabControlProperty;
|
|
82
100
|
}(LayoutControlProperty);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: Elvis shuaiqy@hotmail.com
|
|
3
3
|
* @Date: 2022-01-11 22:20:55
|
|
4
4
|
* @LastEditors: changjiaqi hypocrite_chang@163.com
|
|
5
|
-
* @LastEditTime: 2023-05-
|
|
5
|
+
* @LastEditTime: 2023-05-31 10:33:27
|
|
6
6
|
* @FilePath: /model-driven/packages/controls/src/listControls/GridTable/property.ts
|
|
7
7
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
8
|
*/ function _assertThisInitialized(self) {
|
|
@@ -215,6 +215,11 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
|
215
215
|
* @public
|
|
216
216
|
* */ _defineProperty(_assertThisInitialized(_this), "limitRows", void 0);
|
|
217
217
|
/**
|
|
218
|
+
* 最多填写行数
|
|
219
|
+
* @defaultValue
|
|
220
|
+
* @public
|
|
221
|
+
* */ _defineProperty(_assertThisInitialized(_this), "maxRows", void 0);
|
|
222
|
+
/**
|
|
218
223
|
* 默认填写行数
|
|
219
224
|
* @defaultValue 1
|
|
220
225
|
* @public
|
|
@@ -276,6 +281,11 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
|
276
281
|
* @public
|
|
277
282
|
* */ _defineProperty(_assertThisInitialized(_this), "mobileShowType", void 0);
|
|
278
283
|
/**
|
|
284
|
+
* 移动端默认展示条数
|
|
285
|
+
* @defaultValue tile 5 | list 10
|
|
286
|
+
* @public
|
|
287
|
+
* */ _defineProperty(_assertThisInitialized(_this), "mobileDefaultNum", void 0);
|
|
288
|
+
/**
|
|
279
289
|
* 数据收起简述
|
|
280
290
|
* @defaultValue
|
|
281
291
|
* @public
|
|
@@ -288,6 +298,16 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
|
288
298
|
* @defaultValue []
|
|
289
299
|
* @public
|
|
290
300
|
* */ _defineProperty(_assertThisInitialized(_this), "fixedColumn", void 0);
|
|
301
|
+
/**
|
|
302
|
+
* 移动端平铺行展示标题
|
|
303
|
+
* @defaultValue '明细'
|
|
304
|
+
* @public
|
|
305
|
+
* */ _defineProperty(_assertThisInitialized(_this), "mobileRowCaption", void 0);
|
|
306
|
+
/**
|
|
307
|
+
* 移动端平铺数据流开关
|
|
308
|
+
* @defaultValue false
|
|
309
|
+
* @public
|
|
310
|
+
* */ _defineProperty(_assertThisInitialized(_this), "mobileIsTile", void 0);
|
|
291
311
|
var _props_caption;
|
|
292
312
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SubTableControl.controlName;
|
|
293
313
|
var _props_isHideCaption;
|
|
@@ -308,6 +328,8 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
|
308
328
|
_this.printMode = (_props_printMode = props === null || props === void 0 ? void 0 : props.printMode) !== null && _props_printMode !== void 0 ? _props_printMode : "row";
|
|
309
329
|
var _props_limitRows;
|
|
310
330
|
_this.limitRows = (_props_limitRows = props === null || props === void 0 ? void 0 : props.limitRows) !== null && _props_limitRows !== void 0 ? _props_limitRows : 1;
|
|
331
|
+
var _props_maxRows;
|
|
332
|
+
_this.maxRows = (_props_maxRows = props === null || props === void 0 ? void 0 : props.maxRows) !== null && _props_maxRows !== void 0 ? _props_maxRows : null;
|
|
311
333
|
var _props_defaultRows;
|
|
312
334
|
_this.defaultRows = (_props_defaultRows = props === null || props === void 0 ? void 0 : props.defaultRows) !== null && _props_defaultRows !== void 0 ? _props_defaultRows : 1;
|
|
313
335
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
@@ -333,10 +355,16 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
|
333
355
|
_this.captionTip = (_props_captionTip = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _props_captionTip !== void 0 ? _props_captionTip : "";
|
|
334
356
|
var _props_mobileShowType;
|
|
335
357
|
_this.mobileShowType = (_props_mobileShowType = props === null || props === void 0 ? void 0 : props.mobileShowType) !== null && _props_mobileShowType !== void 0 ? _props_mobileShowType : "list";
|
|
358
|
+
var _props_mobileDefaultNum;
|
|
359
|
+
_this.mobileDefaultNum = ((_props_mobileDefaultNum = props === null || props === void 0 ? void 0 : props.mobileDefaultNum) !== null && _props_mobileDefaultNum !== void 0 ? _props_mobileDefaultNum : (props === null || props === void 0 ? void 0 : props.mobileShowType) === "list") ? 10 : 5;
|
|
336
360
|
var _props_dataStorageDoc;
|
|
337
361
|
_this.dataStorageDoc = (_props_dataStorageDoc = props === null || props === void 0 ? void 0 : props.dataStorageDoc) !== null && _props_dataStorageDoc !== void 0 ? _props_dataStorageDoc : new DataStorageDoc();
|
|
338
362
|
var _props_fixedColumn;
|
|
339
363
|
_this.fixedColumn = (_props_fixedColumn = props === null || props === void 0 ? void 0 : props.fixedColumn) !== null && _props_fixedColumn !== void 0 ? _props_fixedColumn : [];
|
|
364
|
+
var _props_mobileRowCaption;
|
|
365
|
+
_this.mobileRowCaption = (_props_mobileRowCaption = props === null || props === void 0 ? void 0 : props.mobileRowCaption) !== null && _props_mobileRowCaption !== void 0 ? _props_mobileRowCaption : "明细";
|
|
366
|
+
var _props_mobileIsTile;
|
|
367
|
+
_this.mobileIsTile = (_props_mobileIsTile = props === null || props === void 0 ? void 0 : props.mobileIsTile) !== null && _props_mobileIsTile !== void 0 ? _props_mobileIsTile : false;
|
|
340
368
|
return _this;
|
|
341
369
|
}
|
|
342
370
|
return SubTableControlProperty;
|
|
@@ -119,6 +119,11 @@ var SimpleSearchControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRun
|
|
|
119
119
|
* @public
|
|
120
120
|
*/ _defineProperty(_assertThisInitialized(_this), "cancel", void 0);
|
|
121
121
|
/**
|
|
122
|
+
* 查询类型
|
|
123
|
+
* @defaultValue 'model'
|
|
124
|
+
* @public
|
|
125
|
+
*/ _defineProperty(_assertThisInitialized(_this), "searchType", void 0);
|
|
126
|
+
/**
|
|
122
127
|
* 标题布局
|
|
123
128
|
* @defaultValue 'top'
|
|
124
129
|
* @public
|
|
@@ -139,6 +144,8 @@ var SimpleSearchControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRun
|
|
|
139
144
|
* @defaultValue []
|
|
140
145
|
* @public
|
|
141
146
|
*/ _defineProperty(_assertThisInitialized(_this), "queryTypeMap", void 0);
|
|
147
|
+
var _props_searchType;
|
|
148
|
+
_this.searchType = (_props_searchType = props === null || props === void 0 ? void 0 : props.searchType) !== null && _props_searchType !== void 0 ? _props_searchType : "model";
|
|
142
149
|
var _props_labelPosition;
|
|
143
150
|
_this.labelPosition = (_props_labelPosition = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _props_labelPosition !== void 0 ? _props_labelPosition : "top";
|
|
144
151
|
var _props_viewType;
|