@byteluck-fe/model-driven-controls 2.8.1-beta.19 → 2.8.1-beta.24
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/columnControls/FileColumn/designer.js +5 -1
- package/dist/esm/columnControls/FileColumn/property.js +21 -0
- package/dist/esm/formControls/Attachment/designer.js +4 -0
- package/dist/esm/formControls/Attachment/property.js +8 -0
- package/dist/esm/formControls/Employee/property.js +2 -2
- package/dist/esm/formControls/HandSignature/designer.js +1 -1
- package/dist/esm/formControls/HandSignature/property.js +3 -1
- package/dist/esm/layoutControls/ListView/property.js +69 -69
- package/dist/index.umd.js +1 -1
- package/dist/types/columnControls/CustomColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/FileColumn/property.d.ts +1 -0
- package/dist/types/formControls/Attachment/property.d.ts +1 -0
- package/dist/types/layoutControls/AdvancedContainer/Setting.d.ts +1 -1
- package/dist/types/layoutControls/Page/Setting.d.ts +1 -1
- package/dist/types/layoutControls/Position/Setting.d.ts +1 -1
- package/dist/types/layoutControls/PositioningContainer/Setting.d.ts +1 -1
- package/dist/types/wrapControls/GridLayoutWrap/Setting.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @Description:
|
|
2
|
+
* @Description:
|
|
3
3
|
* @Autor: SuperLucky-Q
|
|
4
4
|
* @Date: 2022-12-15 10:48:27
|
|
5
5
|
* @LastEditors: SuperLucky-Q
|
|
@@ -129,6 +129,10 @@ _define_property(FileColumnControl, "setting", [
|
|
|
129
129
|
key: "column-align-content",
|
|
130
130
|
visible: true
|
|
131
131
|
},
|
|
132
|
+
{
|
|
133
|
+
key: "attachment-operation",
|
|
134
|
+
visible: true
|
|
135
|
+
},
|
|
132
136
|
{
|
|
133
137
|
key: "column-fixed",
|
|
134
138
|
visible: true
|
|
@@ -9,6 +9,19 @@ function _class_call_check(instance, Constructor) {
|
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
+
function _define_property(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 _get_prototype_of(o) {
|
|
13
26
|
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
14
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
@@ -81,8 +94,16 @@ import { DesignerFileColumnControl } from "./designer";
|
|
|
81
94
|
_class_call_check(this, FileColumnControlProperty);
|
|
82
95
|
var _this;
|
|
83
96
|
_this = _super.call(this, props);
|
|
97
|
+
// 附件按钮操作数组
|
|
98
|
+
_define_property(_assert_this_initialized(_this), "operation", void 0);
|
|
84
99
|
var _props_caption;
|
|
85
100
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerFileColumnControl.controlName;
|
|
101
|
+
var _props_operation;
|
|
102
|
+
_this.operation = (_props_operation = props === null || props === void 0 ? void 0 : props.operation) !== null && _props_operation !== void 0 ? _props_operation : [
|
|
103
|
+
"info",
|
|
104
|
+
"preview",
|
|
105
|
+
"download"
|
|
106
|
+
];
|
|
86
107
|
return _this;
|
|
87
108
|
}
|
|
88
109
|
return FileColumnControlProperty;
|
|
@@ -157,6 +157,8 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
157
157
|
/**
|
|
158
158
|
* maxSize 存储大小,单位为Byte,默认值为100MB
|
|
159
159
|
* */ _define_property(_assert_this_initialized(_this), "maxSize", void 0);
|
|
160
|
+
// 附件按钮操作数组
|
|
161
|
+
_define_property(_assert_this_initialized(_this), "operation", void 0);
|
|
160
162
|
var _props_defaultValue;
|
|
161
163
|
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
162
164
|
var _props_showType;
|
|
@@ -179,6 +181,12 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
179
181
|
_this.isShowWatermark = (_props_isShowWatermark = props === null || props === void 0 ? void 0 : props.isShowWatermark) !== null && _props_isShowWatermark !== void 0 ? _props_isShowWatermark : false;
|
|
180
182
|
var _props_watermarkFx;
|
|
181
183
|
_this.watermarkFx = (_props_watermarkFx = props === null || props === void 0 ? void 0 : props.watermarkFx) !== null && _props_watermarkFx !== void 0 ? _props_watermarkFx : {};
|
|
184
|
+
var _props_operation;
|
|
185
|
+
_this.operation = (_props_operation = props === null || props === void 0 ? void 0 : props.operation) !== null && _props_operation !== void 0 ? _props_operation : [
|
|
186
|
+
"info",
|
|
187
|
+
"preview",
|
|
188
|
+
"download"
|
|
189
|
+
];
|
|
182
190
|
return _this;
|
|
183
191
|
}
|
|
184
192
|
return AttachmentProperty;
|
|
@@ -107,8 +107,8 @@ var EmployeeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
107
107
|
_class_call_check(this, EmployeeProperty);
|
|
108
108
|
var _this;
|
|
109
109
|
_this = _super.call(this, props);
|
|
110
|
-
/**
|
|
111
|
-
* 展示类型: 默认形式 / 树状人员
|
|
110
|
+
/**
|
|
111
|
+
* 展示类型: 默认形式 / 树状人员
|
|
112
112
|
* */ _define_property(_assert_this_initialized(_this), "showType", void 0);
|
|
113
113
|
_define_property(_assert_this_initialized(_this), "range", void 0 // 人员范围: 公司全员 / 指定人员
|
|
114
114
|
);
|
|
@@ -102,7 +102,9 @@ var HandSignatureControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseContro
|
|
|
102
102
|
_class_call_check(this, HandSignatureControlPropertyRuntimeRules);
|
|
103
103
|
var _this;
|
|
104
104
|
_this = _super.call(this, props);
|
|
105
|
-
_this[0]
|
|
105
|
+
if (_this[0] !== undefined) {
|
|
106
|
+
_this[0].type = "array";
|
|
107
|
+
}
|
|
106
108
|
return _this;
|
|
107
109
|
}
|
|
108
110
|
return HandSignatureControlPropertyRuntimeRules;
|
|
@@ -90,8 +90,8 @@ export var TriggerType;
|
|
|
90
90
|
TriggerType[TriggerType["CLICK_ROW"] = 1] = "CLICK_ROW";
|
|
91
91
|
TriggerType[TriggerType["CLICK_CELL"] = 2] = "CLICK_CELL";
|
|
92
92
|
})(TriggerType || (TriggerType = {}));
|
|
93
|
-
/**
|
|
94
|
-
* @internal
|
|
93
|
+
/**
|
|
94
|
+
* @internal
|
|
95
95
|
*/ var ListViewControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
96
96
|
"use strict";
|
|
97
97
|
_inherits(ListViewControlPropertyRuntimeRules, PropertyRuntimeRules);
|
|
@@ -108,8 +108,8 @@ export var TriggerType;
|
|
|
108
108
|
}
|
|
109
109
|
return ListViewControlPropertyRuntimeRules;
|
|
110
110
|
}(PropertyRuntimeRules);
|
|
111
|
-
/**
|
|
112
|
-
* @internal
|
|
111
|
+
/**
|
|
112
|
+
* @internal
|
|
113
113
|
*/ var ListViewControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
114
114
|
"use strict";
|
|
115
115
|
_inherits(ListViewControlPropertyRules, PropertyRules);
|
|
@@ -218,9 +218,9 @@ export var TriggerType;
|
|
|
218
218
|
}
|
|
219
219
|
return ListViewControlPropertyRules;
|
|
220
220
|
}(PropertyRules);
|
|
221
|
-
/**
|
|
222
|
-
* ListView 列表
|
|
223
|
-
* @public
|
|
221
|
+
/**
|
|
222
|
+
* ListView 列表
|
|
223
|
+
* @public
|
|
224
224
|
*/ var ListViewControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
225
225
|
"use strict";
|
|
226
226
|
_inherits(ListViewControlProperty, LayoutControlProperty);
|
|
@@ -230,88 +230,88 @@ export var TriggerType;
|
|
|
230
230
|
var _this;
|
|
231
231
|
var _props_rowStyleRules, _props_rowStyleRulesScript;
|
|
232
232
|
_this = _super.call(this, props);
|
|
233
|
-
/**
|
|
234
|
-
* 数据高级设置
|
|
235
|
-
* @public
|
|
233
|
+
/**
|
|
234
|
+
* 数据高级设置
|
|
235
|
+
* @public
|
|
236
236
|
*/ _define_property(_assert_this_initialized(_this), "datasourceBind", void 0);
|
|
237
|
-
/**
|
|
238
|
-
* 加载中
|
|
239
|
-
* @defaultValue false
|
|
240
|
-
* @public
|
|
237
|
+
/**
|
|
238
|
+
* 加载中
|
|
239
|
+
* @defaultValue false
|
|
240
|
+
* @public
|
|
241
241
|
*/ _define_property(_assert_this_initialized(_this), "isLoading", void 0);
|
|
242
|
-
/**
|
|
243
|
-
* 显示明细表
|
|
244
|
-
* @defaultValue false
|
|
245
|
-
* @public
|
|
242
|
+
/**
|
|
243
|
+
* 显示明细表
|
|
244
|
+
* @defaultValue false
|
|
245
|
+
* @public
|
|
246
246
|
*/ _define_property(_assert_this_initialized(_this), "isShowSubList", void 0);
|
|
247
|
-
/**
|
|
248
|
-
* 触发时机 1=整行,2=字段
|
|
249
|
-
* @defaultValue 1
|
|
250
|
-
* @public
|
|
247
|
+
/**
|
|
248
|
+
* 触发时机 1=整行,2=字段
|
|
249
|
+
* @defaultValue 1
|
|
250
|
+
* @public
|
|
251
251
|
*/ _define_property(_assert_this_initialized(_this), "triggerType", void 0);
|
|
252
|
-
/**
|
|
253
|
-
* 触发字段
|
|
254
|
-
* @public
|
|
252
|
+
/**
|
|
253
|
+
* 触发字段
|
|
254
|
+
* @public
|
|
255
255
|
*/ _define_property(_assert_this_initialized(_this), "triggerFieldCode", void 0);
|
|
256
|
-
/**
|
|
257
|
-
* 抽屉内容配置
|
|
258
|
-
* @public
|
|
256
|
+
/**
|
|
257
|
+
* 抽屉内容配置
|
|
258
|
+
* @public
|
|
259
259
|
*/ _define_property(_assert_this_initialized(_this), "sublistPage", void 0);
|
|
260
|
-
/**
|
|
261
|
-
* 显示连接表
|
|
260
|
+
/**
|
|
261
|
+
* 显示连接表
|
|
262
262
|
*/ _define_property(_assert_this_initialized(_this), "isShowJoinRelation", void 0);
|
|
263
|
-
/**
|
|
264
|
-
* 连接表配置
|
|
265
|
-
* @public
|
|
263
|
+
/**
|
|
264
|
+
* 连接表配置
|
|
265
|
+
* @public
|
|
266
266
|
*/ _define_property(_assert_this_initialized(_this), "joinRelation", void 0);
|
|
267
|
-
/**
|
|
268
|
-
* @internal
|
|
267
|
+
/**
|
|
268
|
+
* @internal
|
|
269
269
|
*/ _define_property(_assert_this_initialized(_this), "showType", void 0 //提供给关联单选中复用list-view的能力
|
|
270
270
|
);
|
|
271
|
-
/**
|
|
272
|
-
* 全屏显示
|
|
273
|
-
* @defaultValue false
|
|
274
|
-
* @public
|
|
271
|
+
/**
|
|
272
|
+
* 全屏显示
|
|
273
|
+
* @defaultValue false
|
|
274
|
+
* @public
|
|
275
275
|
*/ _define_property(_assert_this_initialized(_this), "showFullScreen", void 0);
|
|
276
|
-
/**
|
|
277
|
-
* 固定表头
|
|
278
|
-
* @defaultValue false
|
|
279
|
-
* @public
|
|
276
|
+
/**
|
|
277
|
+
* 固定表头
|
|
278
|
+
* @defaultValue false
|
|
279
|
+
* @public
|
|
280
280
|
*/ _define_property(_assert_this_initialized(_this), "isFixedHeader", void 0);
|
|
281
|
-
/**
|
|
282
|
-
* 显示选择框类型
|
|
283
|
-
* @defaultValue undefined | 'multiple' | 'radio'
|
|
284
|
-
* @public
|
|
281
|
+
/**
|
|
282
|
+
* 显示选择框类型
|
|
283
|
+
* @defaultValue undefined | 'multiple' | 'radio'
|
|
284
|
+
* @public
|
|
285
285
|
*/ _define_property(_assert_this_initialized(_this), "selectionType", void 0);
|
|
286
|
-
/**
|
|
287
|
-
* 显示选择框
|
|
288
|
-
* @defaultValue false
|
|
289
|
-
* @public
|
|
286
|
+
/**
|
|
287
|
+
* 显示选择框
|
|
288
|
+
* @defaultValue false
|
|
289
|
+
* @public
|
|
290
290
|
*/ _define_property(_assert_this_initialized(_this), "isShowSelection", void 0);
|
|
291
|
-
/**
|
|
292
|
-
* 加载全部数据
|
|
293
|
-
* @defaultValue true
|
|
294
|
-
* @public
|
|
291
|
+
/**
|
|
292
|
+
* 加载全部数据
|
|
293
|
+
* @defaultValue true
|
|
294
|
+
* @public
|
|
295
295
|
*/ _define_property(_assert_this_initialized(_this), "isAllLoaded", void 0 //数据加载
|
|
296
296
|
);
|
|
297
|
-
/**
|
|
298
|
-
* 计数模式
|
|
299
|
-
* @defaultValue 'async'
|
|
300
|
-
* @public
|
|
297
|
+
/**
|
|
298
|
+
* 计数模式
|
|
299
|
+
* @defaultValue 'async'
|
|
300
|
+
* @public
|
|
301
301
|
*/ _define_property(_assert_this_initialized(_this), "countType", void 0 //计数模式
|
|
302
302
|
);
|
|
303
|
-
/**
|
|
304
|
-
* 列表展示最多条数
|
|
305
|
-
* @defaultValue 100000
|
|
306
|
-
* @public
|
|
303
|
+
/**
|
|
304
|
+
* 列表展示最多条数
|
|
305
|
+
* @defaultValue 100000
|
|
306
|
+
* @public
|
|
307
307
|
*/ _define_property(_assert_this_initialized(_this), "countLimit", void 0);
|
|
308
|
-
/**
|
|
309
|
-
* 行背景规则
|
|
310
|
-
* @defaultValue 'none'
|
|
308
|
+
/**
|
|
309
|
+
* 行背景规则
|
|
310
|
+
* @defaultValue 'none'
|
|
311
311
|
*/ _define_property(_assert_this_initialized(_this), "rowStyleType", void 0);
|
|
312
|
-
/**
|
|
313
|
-
* 行背景色
|
|
314
|
-
* @defaultValue 'theme'
|
|
312
|
+
/**
|
|
313
|
+
* 行背景色
|
|
314
|
+
* @defaultValue 'theme'
|
|
315
315
|
*/ _define_property(_assert_this_initialized(_this), "rowStyleBgColor", void 0);
|
|
316
316
|
_define_property(_assert_this_initialized(_this), "rowStyleRules", void 0);
|
|
317
317
|
_define_property(_assert_this_initialized(_this), "rowStyleRulesScript", void 0);
|