@byteluck-fe/model-driven-controls 2.7.0-beta.2 → 2.7.0-beta.4

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.
@@ -2,7 +2,7 @@
2
2
  * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
3
  * @Date: 2023-09-14 18:31:51
4
4
  * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
5
- * @LastEditTime: 2023-09-15 11:54:00
5
+ * @LastEditTime: 2023-09-19 15:49:31
6
6
  * @FilePath: /model-driven/packages/controls/src/formControls/Attachment/property.ts
7
7
  */ function _assert_this_initialized(self) {
8
8
  if (self === void 0) {
@@ -148,6 +148,9 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
148
148
  _define_property(_assert_this_initialized(_this), "attachmentAccept", void 0);
149
149
  _define_property(_assert_this_initialized(_this), "maxLimit", void 0);
150
150
  _define_property(_assert_this_initialized(_this), "minLimit", void 0);
151
+ _define_property(_assert_this_initialized(_this), "isShowWatermark", void 0 // 是否开启水印
152
+ );
153
+ _define_property(_assert_this_initialized(_this), "watermarkFx", void 0);
151
154
  /**
152
155
  * maxSize 存储大小,单位为Byte,默认值为100MB
153
156
  * */ _define_property(_assert_this_initialized(_this), "maxSize", void 0);
@@ -167,6 +170,10 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
167
170
  _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AttachmentControl.controlName;
168
171
  var _props_placeholder;
169
172
  _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "上传附件";
173
+ var _props_isShowWatermark;
174
+ _this.isShowWatermark = (_props_isShowWatermark = props === null || props === void 0 ? void 0 : props.isShowWatermark) !== null && _props_isShowWatermark !== void 0 ? _props_isShowWatermark : false;
175
+ var _props_watermarkFx;
176
+ _this.watermarkFx = (_props_watermarkFx = props === null || props === void 0 ? void 0 : props.watermarkFx) !== null && _props_watermarkFx !== void 0 ? _props_watermarkFx : {};
170
177
  return _this;
171
178
  }
172
179
  return AttachmentProperty;
@@ -2,7 +2,7 @@
2
2
  * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
3
  * @Date: 2022-12-01 14:40:30
4
4
  * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
5
- * @LastEditTime: 2023-09-19 14:55:15
5
+ * @LastEditTime: 2023-09-19 15:50:38
6
6
  * @FilePath: /model-driven/packages/controls/src/formControls/Image/designer.ts
7
7
  */ function _assert_this_initialized(self) {
8
8
  if (self === void 0) {
@@ -15,19 +15,6 @@ function _class_call_check(instance, Constructor) {
15
15
  throw new TypeError("Cannot call a class as a function");
16
16
  }
17
17
  }
18
- function _define_property(obj, key, value) {
19
- if (key in obj) {
20
- Object.defineProperty(obj, key, {
21
- value: value,
22
- enumerable: true,
23
- configurable: true,
24
- writable: true
25
- });
26
- } else {
27
- obj[key] = value;
28
- }
29
- return obj;
30
- }
31
18
  function _get_prototype_of(o) {
32
19
  _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
33
20
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -95,16 +82,7 @@ var ImageProperty = /*#__PURE__*/ function(AttachmentProperty) {
95
82
  var _super = _create_super(ImageProperty);
96
83
  function ImageProperty(props) {
97
84
  _class_call_check(this, ImageProperty);
98
- var _this;
99
- _this = _super.call(this, props);
100
- _define_property(_assert_this_initialized(_this), "isShowWatermark", void 0 // 是否开启水印
101
- );
102
- _define_property(_assert_this_initialized(_this), "watermarkFx", void 0);
103
- var _props_isShowWatermark;
104
- _this.isShowWatermark = (_props_isShowWatermark = props === null || props === void 0 ? void 0 : props.isShowWatermark) !== null && _props_isShowWatermark !== void 0 ? _props_isShowWatermark : false;
105
- var _props_watermarkFx;
106
- _this.watermarkFx = (_props_watermarkFx = props === null || props === void 0 ? void 0 : props.watermarkFx) !== null && _props_watermarkFx !== void 0 ? _props_watermarkFx : {};
107
- return _this;
85
+ return _super.call(this, props);
108
86
  }
109
87
  return ImageProperty;
110
88
  }(AttachmentProperty);