@byteluck-fe/model-driven-controls 2.22.3-beta.6 → 2.22.3-beta.7

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.
@@ -118,6 +118,10 @@ _define_property(FileColumnControl, "setting", [
118
118
  key: 'column-align-content',
119
119
  visible: true
120
120
  },
121
+ {
122
+ key: 'attachment-operation',
123
+ visible: true
124
+ },
121
125
  {
122
126
  key: 'column-fixed',
123
127
  visible: true
@@ -13,6 +13,19 @@ function _class_call_check(instance, Constructor) {
13
13
  throw new TypeError("Cannot call a class as a function");
14
14
  }
15
15
  }
16
+ function _define_property(obj, key, value) {
17
+ if (key in obj) {
18
+ Object.defineProperty(obj, key, {
19
+ value: value,
20
+ enumerable: true,
21
+ configurable: true,
22
+ writable: true
23
+ });
24
+ } else {
25
+ obj[key] = value;
26
+ }
27
+ return obj;
28
+ }
16
29
  function _get_prototype_of(o) {
17
30
  _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
18
31
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -69,9 +82,16 @@ import { DesignerFileColumnControl } from './designer';
69
82
  var _this;
70
83
  _this = _call_super(this, FileColumnControlProperty, [
71
84
  props
72
- ]);
85
+ ]), // 附件按钮操作数组
86
+ _define_property(_this, "operation", void 0);
73
87
  var _props_caption;
74
88
  _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerFileColumnControl.controlName;
89
+ var _props_operation;
90
+ _this.operation = (_props_operation = props === null || props === void 0 ? void 0 : props.operation) !== null && _props_operation !== void 0 ? _props_operation : [
91
+ 'info',
92
+ 'preview',
93
+ 'download'
94
+ ];
75
95
  return _this;
76
96
  }
77
97
  return FileColumnControlProperty;
@@ -177,6 +177,10 @@ _define_property(AttachmentControl, "setting", [
177
177
  key: 'attachment-size',
178
178
  visible: true
179
179
  },
180
+ {
181
+ key: 'attachment-operation',
182
+ visible: true
183
+ },
180
184
  {
181
185
  key: 'attachment-defaultval',
182
186
  visible: true
@@ -137,7 +137,8 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
137
137
  _define_property(_this, "showType", void 0), _define_property(_this, "resultShowType", void 0), _define_property(_this, "attachmentAccept", void 0), _define_property(_this, "maxLimit", void 0), _define_property(_this, "minLimit", void 0), _define_property(_this, "isShowWatermark", void 0 // 是否开启水印
138
138
  ), _define_property(_this, "watermarkFx", void 0), /**
139
139
  * maxSize 存储大小,单位为Byte,默认值为100MB
140
- * */ _define_property(_this, "maxSize", void 0);
140
+ * */ _define_property(_this, "maxSize", void 0), // 附件按钮操作数组
141
+ _define_property(_this, "operation", void 0);
141
142
  var _props_defaultValue;
142
143
  _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
143
144
  var _props_showType;
@@ -160,6 +161,12 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
160
161
  _this.isShowWatermark = (_props_isShowWatermark = props === null || props === void 0 ? void 0 : props.isShowWatermark) !== null && _props_isShowWatermark !== void 0 ? _props_isShowWatermark : false;
161
162
  var _props_watermarkFx;
162
163
  _this.watermarkFx = (_props_watermarkFx = props === null || props === void 0 ? void 0 : props.watermarkFx) !== null && _props_watermarkFx !== void 0 ? _props_watermarkFx : {};
164
+ var _props_operation;
165
+ _this.operation = (_props_operation = props === null || props === void 0 ? void 0 : props.operation) !== null && _props_operation !== void 0 ? _props_operation : [
166
+ 'info',
167
+ 'preview',
168
+ 'download'
169
+ ];
163
170
  return _this;
164
171
  }
165
172
  return AttachmentProperty;
@@ -108,19 +108,19 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
108
108
  ]), _define_property(_this, "options", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "optionConfig", void 0 // 选项配置 custom datasource
109
109
  ), _define_property(_this, "defaultValue", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "allowCopyOptions", void 0 //允许复制选项
110
110
  ), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
111
- ), /**
112
- * 表单打开方式
113
- * @defaultValue []
114
- * @public
115
- */ _define_property(_this, "viewFormModelType", void 0), /**
116
- * 查看详情
117
- * @defaultValue false
118
- * @public
111
+ ), /**
112
+ * 表单打开方式
113
+ * @defaultValue []
114
+ * @public
115
+ */ _define_property(_this, "viewFormModelType", void 0), /**
116
+ * 查看详情
117
+ * @defaultValue false
118
+ * @public
119
119
  */ _define_property(_this, "canViewForm", void 0 //https://www.tapd.cn/49877295/prong/stories/view/1149877295001003559
120
- ), /**
121
- * 选择表单
122
- * @defaultValue 空
123
- * @public
120
+ ), /**
121
+ * 选择表单
122
+ * @defaultValue 空
123
+ * @public
124
124
  */ _define_property(_this, "formBind", void 0);
125
125
  var _props_options;
126
126
  _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
@@ -123,19 +123,19 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
123
123
  props
124
124
  ]), _define_property(_this, "options", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "optionConfig", void 0 // 选项配置 custom datasource
125
125
  ), _define_property(_this, "defaultValue", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
126
- ), /**
127
- * 表单打开方式
128
- * @defaultValue []
129
- * @public
130
- */ _define_property(_this, "viewFormModelType", void 0), /**
131
- * 查看详情
132
- * @defaultValue false
133
- * @public
126
+ ), /**
127
+ * 表单打开方式
128
+ * @defaultValue []
129
+ * @public
130
+ */ _define_property(_this, "viewFormModelType", void 0), /**
131
+ * 查看详情
132
+ * @defaultValue false
133
+ * @public
134
134
  */ _define_property(_this, "canViewForm", void 0 //https://www.tapd.cn/49877295/prong/stories/view/1149877295001003559
135
- ), /**
136
- * 选择表单
137
- * @defaultValue 空
138
- * @public
135
+ ), /**
136
+ * 选择表单
137
+ * @defaultValue 空
138
+ * @public
139
139
  */ _define_property(_this, "formBind", void 0);
140
140
  var _props_options;
141
141
  _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [