@byteluck-fe/model-driven-controls 2.22.3-beta.5 → 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.
@@ -103,7 +103,7 @@ var BatchSubmissionListButtonControl = /*#__PURE__*/ function(DesignerButtonCont
103
103
  {
104
104
  key: "controlName",
105
105
  get: function get() {
106
- return getLocaleText('batchSubmissionListButton', null, '批量提交');
106
+ return getLocaleText('CMD.batchSubmissionListButton', null, '批量提交');
107
107
  }
108
108
  },
109
109
  {
@@ -101,9 +101,9 @@ var ReferenceListPropertyRules = /*#__PURE__*/ function(PropertyRules) {
101
101
  }
102
102
  return ReferenceListPropertyRules;
103
103
  }(PropertyRules);
104
- /**
105
- * ReferenceList 引用列表
106
- * @public
104
+ /**
105
+ * ReferenceList 引用列表
106
+ * @public
107
107
  */ var ReferenceListProperty = /*#__PURE__*/ function(Property) {
108
108
  "use strict";
109
109
  _inherits(ReferenceListProperty, Property);
@@ -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;
@@ -140,16 +140,16 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
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 : [
142
142
  {
143
- label: '选项一',
144
- value: '选项一'
143
+ label: getLocaleText('CMD.optionOne', null, '选项一'),
144
+ value: getLocaleText('CMD.optionOne', null, '选项一')
145
145
  },
146
146
  {
147
- label: '选项二',
148
- value: '选项二'
147
+ label: getLocaleText('CMD.optionTwo', null, '选项二'),
148
+ value: getLocaleText('CMD.optionTwo', null, '选项二')
149
149
  },
150
150
  {
151
- label: '选项三',
152
- value: '选项三'
151
+ label: getLocaleText('CMD.optionThird', null, '选项三'),
152
+ value: getLocaleText('CMD.optionThird', null, '选项三')
153
153
  }
154
154
  ]);
155
155
  var _props_checkboxMode;
@@ -70,6 +70,7 @@ function _is_native_reflect_construct() {
70
70
  return !!result;
71
71
  })();
72
72
  }
73
+ import { getLocaleText } from '@byteluck-fe/locale-message';
73
74
  import RadioControl from './designer';
74
75
  import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions } from '@byteluck-fe/model-driven-core';
75
76
  var RadioControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
@@ -102,16 +103,16 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
102
103
  var _props_options;
103
104
  _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
104
105
  {
105
- label: '选项一',
106
- value: '选项一'
106
+ label: getLocaleText('CMD.optionOne', null, '选项一'),
107
+ value: getLocaleText('CMD.optionOne', null, '选项一')
107
108
  },
108
109
  {
109
- label: '选项二',
110
- value: '选项二'
110
+ label: getLocaleText('CMD.optionTwo', null, '选项二'),
111
+ value: getLocaleText('CMD.optionTwo', null, '选项二')
111
112
  },
112
113
  {
113
- label: '选项三',
114
- value: '选项三'
114
+ label: getLocaleText('CMD.optionThird', null, '选项三'),
115
+ value: getLocaleText('CMD.optionThird', null, '选项三')
115
116
  }
116
117
  ]);
117
118
  var _props_radioMode;
@@ -125,16 +125,16 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
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 : [
127
127
  {
128
- label: '选项一',
129
- value: '选项一'
128
+ label: getLocaleText('CMD.optionOne', null, '选项一'),
129
+ value: getLocaleText('CMD.optionOne', null, '选项一')
130
130
  },
131
131
  {
132
- label: '选项二',
133
- value: '选项二'
132
+ label: getLocaleText('CMD.optionTwo', null, '选项二'),
133
+ value: getLocaleText('CMD.optionTwo', null, '选项二')
134
134
  },
135
135
  {
136
- label: '选项三',
137
- value: '选项三'
136
+ label: getLocaleText('CMD.optionThird', null, '选项三'),
137
+ value: getLocaleText('CMD.optionThird', null, '选项三')
138
138
  }
139
139
  ]);
140
140
  var _props_defaultShowOptions;
@@ -140,16 +140,16 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
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 : [
142
142
  {
143
- label: '选项一',
144
- value: '选项一'
143
+ label: getLocaleText('CMD.optionOne', null, '选项一'),
144
+ value: getLocaleText('CMD.optionOne', null, '选项一')
145
145
  },
146
146
  {
147
- label: '选项二',
148
- value: '选项二'
147
+ label: getLocaleText('CMD.optionTwo', null, '选项二'),
148
+ value: getLocaleText('CMD.optionTwo', null, '选项二')
149
149
  },
150
150
  {
151
- label: '选项三',
152
- value: '选项三'
151
+ label: getLocaleText('CMD.optionThird', null, '选项三'),
152
+ value: getLocaleText('CMD.optionThird', null, '选项三')
153
153
  }
154
154
  ]);
155
155
  var _props_defaultShowOptions;