@byteluck-fe/model-driven-controls 2.8.2-beta.11 → 2.8.2-beta.13
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 +6 -6
- package/dist/esm/columnControls/FileColumn/property.js +2 -2
- package/dist/esm/listControls/SubTable/designer.js +2 -1
- package/dist/esm/listControls/SubTable/property.js +107 -104
- package/dist/index.umd.js +1 -1
- package/dist/types/listControls/SubTable/property.d.ts +1 -0
- package/package.json +4 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Description:
|
|
3
|
-
* @Autor: SuperLucky-Q
|
|
4
|
-
* @Date: 2022-12-15 10:48:27
|
|
5
|
-
* @LastEditors: SuperLucky-Q
|
|
6
|
-
* @LastEditTime: 2022-12-15 15:08:08
|
|
1
|
+
/*
|
|
2
|
+
* @Description:
|
|
3
|
+
* @Autor: SuperLucky-Q
|
|
4
|
+
* @Date: 2022-12-15 10:48:27
|
|
5
|
+
* @LastEditors: SuperLucky-Q
|
|
6
|
+
* @LastEditTime: 2022-12-15 15:08:08
|
|
7
7
|
*/ function _assert_this_initialized(self) {
|
|
8
8
|
if (self === void 0) {
|
|
9
9
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -72,8 +72,8 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
}
|
|
73
73
|
import { ColumnControlProperty } from '@byteluck-fe/model-driven-core';
|
|
74
74
|
import { DesignerFileColumnControl } from './designer';
|
|
75
|
-
/**
|
|
76
|
-
* FileColumn 文件列
|
|
75
|
+
/**
|
|
76
|
+
* FileColumn 文件列
|
|
77
77
|
*/ var FileColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
|
|
78
78
|
"use strict";
|
|
79
79
|
_inherits(FileColumnControlProperty, ColumnControlProperty);
|
|
@@ -179,7 +179,8 @@ _define_property(SubTableControl, "setting", [
|
|
|
179
179
|
COMMON_SETTING_TYPE.IS_HIDE,
|
|
180
180
|
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
|
|
181
181
|
COMMON_SETTING_TYPE.IS_PASTE,
|
|
182
|
-
COMMON_SETTING_TYPE.SERVER_PAGINATION
|
|
182
|
+
COMMON_SETTING_TYPE.SERVER_PAGINATION,
|
|
183
|
+
COMMON_SETTING_TYPE.SHOW_TABLE_INDEX
|
|
183
184
|
]
|
|
184
185
|
},
|
|
185
186
|
{
|
|
@@ -163,9 +163,9 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
|
163
163
|
}
|
|
164
164
|
return SubtableControlRuntimeRules;
|
|
165
165
|
}(PropertyRuntimeRules);
|
|
166
|
-
/**
|
|
167
|
-
* SubTable 明细表
|
|
168
|
-
* @public
|
|
166
|
+
/**
|
|
167
|
+
* SubTable 明细表
|
|
168
|
+
* @public
|
|
169
169
|
*/ var SubTableControlProperty = /*#__PURE__*/ function(ListControlProperty) {
|
|
170
170
|
"use strict";
|
|
171
171
|
_inherits(SubTableControlProperty, ListControlProperty);
|
|
@@ -176,107 +176,108 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
|
176
176
|
parent,
|
|
177
177
|
props,
|
|
178
178
|
SubTableControlProperty.mode
|
|
179
|
-
]), /**
|
|
180
|
-
* 标题
|
|
181
|
-
* */ _define_property(_this, "caption", void 0), /**
|
|
182
|
-
* 标题布局
|
|
183
|
-
* @defaultValue 'top'
|
|
184
|
-
* @public
|
|
185
|
-
* */ _define_property(_this, "labelPosition", void 0), /**
|
|
186
|
-
* 隐藏标题
|
|
187
|
-
* @defaultValue false
|
|
188
|
-
* @public
|
|
189
|
-
* */ _define_property(_this, "isHideCaption", void 0), /**
|
|
190
|
-
* 开启气泡提示
|
|
191
|
-
* @defaultValue false
|
|
192
|
-
* @public
|
|
193
|
-
* */ _define_property(_this, "isShowCaptionTip", void 0), /**
|
|
194
|
-
* 气泡提示语
|
|
195
|
-
* @defaultValue ''
|
|
196
|
-
* @public
|
|
197
|
-
* */ _define_property(_this, "captionTip", void 0), /**
|
|
198
|
-
* 默认状态 default=普通 readonly=只读
|
|
199
|
-
* @defaultValue 'default'
|
|
200
|
-
* @public
|
|
201
|
-
* */ _define_property(_this, "defaultState", void 0), /**
|
|
202
|
-
* 最小填写行数,并且是默认行数
|
|
203
|
-
* @defaultValue 1
|
|
204
|
-
* @public
|
|
205
|
-
* */ _define_property(_this, "limitRows", void 0), /**
|
|
206
|
-
* 最多填写行数
|
|
207
|
-
* @defaultValue
|
|
208
|
-
* @public
|
|
209
|
-
* */ _define_property(_this, "maxRows", void 0), /**
|
|
210
|
-
* 默认填写行数
|
|
211
|
-
* @defaultValue 1
|
|
212
|
-
* @public
|
|
213
|
-
* */ _define_property(_this, "defaultRows", void 0), /**
|
|
214
|
-
* 绑定数据源
|
|
215
|
-
* @public
|
|
216
|
-
* */ _define_property(_this, "datasourceBind", void 0), /**
|
|
217
|
-
* 打印配置 col=纵向打印|row=横向打印
|
|
218
|
-
* @defaultValue 'row'
|
|
219
|
-
* @public
|
|
220
|
-
* */ _define_property(_this, "printMode", void 0), /**
|
|
221
|
-
* 打开方式(查看,编辑,创建)
|
|
222
|
-
* default列表模式|modal表单模式
|
|
223
|
-
* @defaultValue 'default'
|
|
224
|
-
* @public
|
|
225
|
-
* */ _define_property(_this, "openType", void 0), /**
|
|
226
|
-
* openType=modal表单模式,formKey为绑定的表单
|
|
227
|
-
* @defaultValue ''
|
|
228
|
-
* @public
|
|
229
|
-
* */ _define_property(_this, "formKey", void 0), /**
|
|
230
|
-
* 使用自定义高度
|
|
231
|
-
* @defaultValue false
|
|
232
|
-
* @public
|
|
233
|
-
* */ _define_property(_this, "useCustomHeight", void 0), /**
|
|
234
|
-
* 用户自定义最大高度,默认480
|
|
235
|
-
* @defaultValue 480
|
|
236
|
-
* @public
|
|
237
|
-
* */ _define_property(_this, "maxHeight", void 0), /**
|
|
238
|
-
* 可以新增
|
|
239
|
-
* */ _define_property(_this, "canAdd", void 0), /**
|
|
240
|
-
* 可以删除
|
|
241
|
-
* */ _define_property(_this, "canDelete", void 0), /**
|
|
242
|
-
* 可以查看
|
|
243
|
-
* */ _define_property(_this, "canCheck", void 0), /**
|
|
244
|
-
* 可以编辑
|
|
245
|
-
* */ _define_property(_this, "canEdit", void 0), /**
|
|
246
|
-
* 可以导入
|
|
247
|
-
* */ _define_property(_this, "canImport", void 0), /**
|
|
248
|
-
* 可以导出
|
|
249
|
-
* */ _define_property(_this, "canExport", void 0), /**
|
|
250
|
-
* 可以清除
|
|
251
|
-
* */ _define_property(_this, "canClear", void 0), /**
|
|
252
|
-
* 是否展示粘贴按钮
|
|
253
|
-
* */ _define_property(_this, "isPaste", void 0), /**
|
|
254
|
-
* 移动端展现形式 tile=平铺|list=列表
|
|
255
|
-
* @defaultValue 'list'
|
|
256
|
-
* @public
|
|
257
|
-
* */ _define_property(_this, "mobileShowType", void 0), /**
|
|
258
|
-
* 移动端默认展示条数
|
|
259
|
-
* @defaultValue tile 5 | list 10
|
|
260
|
-
* @public
|
|
261
|
-
* */ _define_property(_this, "mobileDefaultNum", void 0), /**
|
|
262
|
-
* 数据收起简述
|
|
263
|
-
* @defaultValue
|
|
264
|
-
* @public
|
|
265
|
-
* */ _define_property(_this, "dataStorageDoc", void 0), /**
|
|
266
|
-
* 开启后端分页
|
|
267
|
-
* */ _define_property(_this, "serverPagination", void 0), /**
|
|
268
|
-
* 固定列 字段
|
|
269
|
-
* @defaultValue []
|
|
270
|
-
* @public
|
|
271
|
-
* */ _define_property(_this, "fixedColumn", void 0), /**
|
|
272
|
-
* 移动端平铺行展示标题
|
|
273
|
-
* @defaultValue '明细'
|
|
274
|
-
* @public
|
|
275
|
-
* */ _define_property(_this, "mobileRowCaption", void 0), /**
|
|
276
|
-
* 移动端平铺数据流开关
|
|
277
|
-
* @defaultValue false
|
|
278
|
-
* @public
|
|
279
|
-
* */ _define_property(_this, "mobileIsTile", void 0)
|
|
179
|
+
]), /**
|
|
180
|
+
* 标题
|
|
181
|
+
* */ _define_property(_this, "caption", void 0), /**
|
|
182
|
+
* 标题布局
|
|
183
|
+
* @defaultValue 'top'
|
|
184
|
+
* @public
|
|
185
|
+
* */ _define_property(_this, "labelPosition", void 0), /**
|
|
186
|
+
* 隐藏标题
|
|
187
|
+
* @defaultValue false
|
|
188
|
+
* @public
|
|
189
|
+
* */ _define_property(_this, "isHideCaption", void 0), /**
|
|
190
|
+
* 开启气泡提示
|
|
191
|
+
* @defaultValue false
|
|
192
|
+
* @public
|
|
193
|
+
* */ _define_property(_this, "isShowCaptionTip", void 0), /**
|
|
194
|
+
* 气泡提示语
|
|
195
|
+
* @defaultValue ''
|
|
196
|
+
* @public
|
|
197
|
+
* */ _define_property(_this, "captionTip", void 0), /**
|
|
198
|
+
* 默认状态 default=普通 readonly=只读
|
|
199
|
+
* @defaultValue 'default'
|
|
200
|
+
* @public
|
|
201
|
+
* */ _define_property(_this, "defaultState", void 0), /**
|
|
202
|
+
* 最小填写行数,并且是默认行数
|
|
203
|
+
* @defaultValue 1
|
|
204
|
+
* @public
|
|
205
|
+
* */ _define_property(_this, "limitRows", void 0), /**
|
|
206
|
+
* 最多填写行数
|
|
207
|
+
* @defaultValue
|
|
208
|
+
* @public
|
|
209
|
+
* */ _define_property(_this, "maxRows", void 0), /**
|
|
210
|
+
* 默认填写行数
|
|
211
|
+
* @defaultValue 1
|
|
212
|
+
* @public
|
|
213
|
+
* */ _define_property(_this, "defaultRows", void 0), /**
|
|
214
|
+
* 绑定数据源
|
|
215
|
+
* @public
|
|
216
|
+
* */ _define_property(_this, "datasourceBind", void 0), /**
|
|
217
|
+
* 打印配置 col=纵向打印|row=横向打印
|
|
218
|
+
* @defaultValue 'row'
|
|
219
|
+
* @public
|
|
220
|
+
* */ _define_property(_this, "printMode", void 0), /**
|
|
221
|
+
* 打开方式(查看,编辑,创建)
|
|
222
|
+
* default列表模式|modal表单模式
|
|
223
|
+
* @defaultValue 'default'
|
|
224
|
+
* @public
|
|
225
|
+
* */ _define_property(_this, "openType", void 0), /**
|
|
226
|
+
* openType=modal表单模式,formKey为绑定的表单
|
|
227
|
+
* @defaultValue ''
|
|
228
|
+
* @public
|
|
229
|
+
* */ _define_property(_this, "formKey", void 0), /**
|
|
230
|
+
* 使用自定义高度
|
|
231
|
+
* @defaultValue false
|
|
232
|
+
* @public
|
|
233
|
+
* */ _define_property(_this, "useCustomHeight", void 0), /**
|
|
234
|
+
* 用户自定义最大高度,默认480
|
|
235
|
+
* @defaultValue 480
|
|
236
|
+
* @public
|
|
237
|
+
* */ _define_property(_this, "maxHeight", void 0), /**
|
|
238
|
+
* 可以新增
|
|
239
|
+
* */ _define_property(_this, "canAdd", void 0), /**
|
|
240
|
+
* 可以删除
|
|
241
|
+
* */ _define_property(_this, "canDelete", void 0), /**
|
|
242
|
+
* 可以查看
|
|
243
|
+
* */ _define_property(_this, "canCheck", void 0), /**
|
|
244
|
+
* 可以编辑
|
|
245
|
+
* */ _define_property(_this, "canEdit", void 0), /**
|
|
246
|
+
* 可以导入
|
|
247
|
+
* */ _define_property(_this, "canImport", void 0), /**
|
|
248
|
+
* 可以导出
|
|
249
|
+
* */ _define_property(_this, "canExport", void 0), /**
|
|
250
|
+
* 可以清除
|
|
251
|
+
* */ _define_property(_this, "canClear", void 0), /**
|
|
252
|
+
* 是否展示粘贴按钮
|
|
253
|
+
* */ _define_property(_this, "isPaste", void 0), /**
|
|
254
|
+
* 移动端展现形式 tile=平铺|list=列表
|
|
255
|
+
* @defaultValue 'list'
|
|
256
|
+
* @public
|
|
257
|
+
* */ _define_property(_this, "mobileShowType", void 0), /**
|
|
258
|
+
* 移动端默认展示条数
|
|
259
|
+
* @defaultValue tile 5 | list 10
|
|
260
|
+
* @public
|
|
261
|
+
* */ _define_property(_this, "mobileDefaultNum", void 0), /**
|
|
262
|
+
* 数据收起简述
|
|
263
|
+
* @defaultValue
|
|
264
|
+
* @public
|
|
265
|
+
* */ _define_property(_this, "dataStorageDoc", void 0), /**
|
|
266
|
+
* 开启后端分页
|
|
267
|
+
* */ _define_property(_this, "serverPagination", void 0), /**
|
|
268
|
+
* 固定列 字段
|
|
269
|
+
* @defaultValue []
|
|
270
|
+
* @public
|
|
271
|
+
* */ _define_property(_this, "fixedColumn", void 0), /**
|
|
272
|
+
* 移动端平铺行展示标题
|
|
273
|
+
* @defaultValue '明细'
|
|
274
|
+
* @public
|
|
275
|
+
* */ _define_property(_this, "mobileRowCaption", void 0), /**
|
|
276
|
+
* 移动端平铺数据流开关
|
|
277
|
+
* @defaultValue false
|
|
278
|
+
* @public
|
|
279
|
+
* */ _define_property(_this, "mobileIsTile", void 0), // 是否展示序号
|
|
280
|
+
_define_property(_this, "showTableIndex", void 0);
|
|
280
281
|
var _props_caption;
|
|
281
282
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SubTableControl.controlName;
|
|
282
283
|
var _props_isHideCaption;
|
|
@@ -345,6 +346,8 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
|
345
346
|
50,
|
|
346
347
|
100
|
|
347
348
|
];
|
|
349
|
+
var _props_showTableIndex;
|
|
350
|
+
_this.showTableIndex = (_props_showTableIndex = props === null || props === void 0 ? void 0 : props.showTableIndex) !== null && _props_showTableIndex !== void 0 ? _props_showTableIndex : true;
|
|
348
351
|
return _this;
|
|
349
352
|
}
|
|
350
353
|
return SubTableControlProperty;
|