@byteluck-fe/model-driven-controls 2.23.0-beta.17 → 2.23.0-beta.19

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.
@@ -112,6 +112,10 @@ _define_property(FileColumnControl, "setting", [
112
112
  key: 'column-align-content',
113
113
  visible: true
114
114
  },
115
+ {
116
+ key: 'attachment-operation',
117
+ visible: true
118
+ },
115
119
  {
116
120
  key: 'column-fixed',
117
121
  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;