@byteluck-fe/model-driven-controls 7.0.0-props.53 → 7.0.0-props.55

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.
@@ -87,7 +87,6 @@ function _is_native_reflect_construct() {
87
87
  import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
88
88
  import { FieldTypes } from '@byteluck-fe/model-driven-shared';
89
89
  import BarcodeProperty from './property';
90
- import { getLocaleText } from '@byteluck-fe/locale-message';
91
90
  var BarcodeControl = /*#__PURE__*/ function(DesignerFormControl) {
92
91
  "use strict";
93
92
  _inherits(BarcodeControl, DesignerFormControl);
@@ -104,7 +103,7 @@ var BarcodeControl = /*#__PURE__*/ function(DesignerFormControl) {
104
103
  {
105
104
  key: "controlName",
106
105
  get: function get() {
107
- return getLocaleText('CMD.barcode', null, '条形码');
106
+ return '条形码';
108
107
  }
109
108
  },
110
109
  {
@@ -165,68 +164,68 @@ _define_property(BarcodeControl, "setting", [
165
164
  {
166
165
  key: 'common-group',
167
166
  visible: true,
168
- label: getLocaleText('CMD.propsSetting', null, '属性设置'),
167
+ label: '属性设置',
169
168
  children: [
170
169
  {
171
170
  key: 'common-input-number',
172
171
  visible: true,
173
172
  name: 'codeHeight',
174
173
  layout: 'horizontal',
175
- label: getLocaleText('CMD.barcodeHeightPx', null, '条码高度(px)')
174
+ label: '条码高度(px)'
176
175
  },
177
176
  {
178
177
  key: 'common-input-number',
179
178
  visible: true,
180
179
  name: 'codeWidth',
181
180
  layout: 'horizontal',
182
- label: getLocaleText('CMD.barcodeWidthPx', null, '条码宽度(px)')
181
+ label: '条码宽度(px)'
183
182
  },
184
183
  {
185
184
  key: 'common-input-number',
186
185
  visible: true,
187
186
  name: 'codeMargin',
188
187
  layout: 'horizontal',
189
- label: getLocaleText('CMD.barcodeMarginPx', null, '边距(px)')
188
+ label: '边距(px)'
190
189
  }
191
190
  ]
192
191
  },
193
192
  {
194
193
  key: 'common-group',
195
194
  visible: true,
196
- label: getLocaleText('CMD.styleSetting', null, '样式设置'),
195
+ label: '样式设置',
197
196
  children: [
198
197
  {
199
198
  key: 'color',
200
199
  visible: true,
201
200
  name: 'backgroundColor',
202
201
  layout: 'horizontal',
203
- label: getLocaleText('CMD.backgroundColor', null, '背景色')
202
+ label: '背景色'
204
203
  },
205
204
  {
206
205
  key: 'color',
207
206
  visible: true,
208
207
  name: 'barcodeColor',
209
208
  layout: 'horizontal',
210
- label: getLocaleText('CMD.barcodeColor', null, '条码颜色')
209
+ label: '条码颜色'
211
210
  },
212
211
  {
213
212
  key: 'common-button-radio',
214
213
  visible: true,
215
214
  name: 'align',
216
- label: getLocaleText('CMD.align', null, '对齐'),
215
+ label: '对齐',
217
216
  default: 'left',
218
217
  options: [
219
218
  {
220
219
  value: 'left',
221
- label: getLocaleText('CMD.left', null, '左对齐')
220
+ label: '左对齐'
222
221
  },
223
222
  {
224
223
  value: 'center',
225
- label: getLocaleText('CMD.center', null, '居中')
224
+ label: '居中'
226
225
  },
227
226
  {
228
227
  value: 'right',
229
- label: getLocaleText('CMD.right', null, '右对齐')
228
+ label: '右对齐'
230
229
  }
231
230
  ]
232
231
  }
@@ -75,7 +75,6 @@ function _is_native_reflect_construct() {
75
75
  * description: 条形码组件,用于展示或绑定一维条码内容。支持条码尺寸、边距、前景/背景色与对齐方式配置,适合物料编码、单据号等场景。
76
76
  */ import BarcodeControl from './designer';
77
77
  import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
78
- import { getLocaleText } from '@byteluck-fe/locale-message';
79
78
  var BarcodePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
80
79
  "use strict";
81
80
  _inherits(BarcodePropertyRules, BaseControlPropertyRules);
@@ -114,10 +113,10 @@ var BarcodeProperty = /*#__PURE__*/ function(BaseControlProperty) {
114
113
  props
115
114
  ]), _define_property(_this, "defaultValue", void 0), _define_property(_this, "codeHeight", void 0), _define_property(_this, "codeWidth", void 0), _define_property(_this, "codeMargin", void 0), _define_property(_this, "backgroundColor", void 0), _define_property(_this, "barcodeColor", void 0), _define_property(_this, "align", void 0);
116
115
  _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : BarcodeControl.controlName;
117
- _this.placeholder = (_ref1 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref1 !== void 0 ? _ref1 : getLocaleText('CMD.pleaseEnter', null, '请输入');
116
+ _this.placeholder = (_ref1 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref1 !== void 0 ? _ref1 : '请输入';
118
117
  _this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
119
- _this.codeHeight = (_ref3 = props === null || props === void 0 ? void 0 : props.codeHeight) !== null && _ref3 !== void 0 ? _ref3 : 40;
120
- _this.codeWidth = (_ref4 = props === null || props === void 0 ? void 0 : props.codeWidth) !== null && _ref4 !== void 0 ? _ref4 : 200;
118
+ _this.codeHeight = (_ref3 = props === null || props === void 0 ? void 0 : props.codeHeight) !== null && _ref3 !== void 0 ? _ref3 : 80;
119
+ _this.codeWidth = (_ref4 = props === null || props === void 0 ? void 0 : props.codeWidth) !== null && _ref4 !== void 0 ? _ref4 : 1;
121
120
  _this.codeMargin = (_ref5 = props === null || props === void 0 ? void 0 : props.codeMargin) !== null && _ref5 !== void 0 ? _ref5 : 0;
122
121
  _this.backgroundColor = (_ref6 = props === null || props === void 0 ? void 0 : props.backgroundColor) !== null && _ref6 !== void 0 ? _ref6 : '#ffffff';
123
122
  _this.barcodeColor = (_ref7 = props === null || props === void 0 ? void 0 : props.barcodeColor) !== null && _ref7 !== void 0 ? _ref7 : '#000000';
@@ -87,7 +87,6 @@ function _is_native_reflect_construct() {
87
87
  import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
88
88
  import { FieldTypes } from '@byteluck-fe/model-driven-shared';
89
89
  import QrCodeProperty from './property';
90
- import { getLocaleText } from '@byteluck-fe/locale-message';
91
90
  var QrCodeControl = /*#__PURE__*/ function(DesignerFormControl) {
92
91
  "use strict";
93
92
  _inherits(QrCodeControl, DesignerFormControl);
@@ -104,7 +103,7 @@ var QrCodeControl = /*#__PURE__*/ function(DesignerFormControl) {
104
103
  {
105
104
  key: "controlName",
106
105
  get: function get() {
107
- return getLocaleText('CMD.qrCode', null, '二维码');
106
+ return '二维码';
108
107
  }
109
108
  },
110
109
  {
@@ -165,18 +164,18 @@ _define_property(QrCodeControl, "setting", [
165
164
  {
166
165
  key: 'common-group',
167
166
  visible: true,
168
- label: getLocaleText('CMD.propsSetting', null, '属性设置'),
167
+ label: '属性设置',
169
168
  children: [
170
169
  {
171
170
  key: 'common-select',
172
171
  visible: true,
173
172
  name: 'qrVersion',
174
- label: getLocaleText('CMD.qrVersion', null, '二维码版本'),
173
+ label: '二维码版本',
175
174
  default: 'auto',
176
175
  options: [
177
176
  {
178
177
  value: 'auto',
179
- label: getLocaleText('CMD.auto', null, '自动')
178
+ label: '自动'
180
179
  },
181
180
  {
182
181
  value: '1',
@@ -224,7 +223,7 @@ _define_property(QrCodeControl, "setting", [
224
223
  key: 'common-select',
225
224
  visible: true,
226
225
  name: 'errorCorrectionLevel',
227
- label: getLocaleText('CMD.errorCorrectionLevel', null, '容错级别'),
226
+ label: '容错级别',
228
227
  default: 'M',
229
228
  options: [
230
229
  {
@@ -249,20 +248,20 @@ _define_property(QrCodeControl, "setting", [
249
248
  key: 'common-button-radio',
250
249
  visible: true,
251
250
  name: 'codeMode',
252
- label: getLocaleText('CMD.codeMode', null, '码制'),
251
+ label: '码制',
253
252
  default: 'byte',
254
253
  options: [
255
254
  {
256
255
  value: 'byte',
257
- label: getLocaleText('CMD.byte', null, '字节')
256
+ label: '字节'
258
257
  },
259
258
  {
260
259
  value: 'numeric',
261
- label: getLocaleText('CMD.numeric', null, '数字')
260
+ label: '数字'
262
261
  },
263
262
  {
264
263
  value: 'alphanumeric',
265
- label: getLocaleText('CMD.alphanumeric', null, '字母数字')
264
+ label: '字母数字'
266
265
  }
267
266
  ]
268
267
  },
@@ -271,54 +270,54 @@ _define_property(QrCodeControl, "setting", [
271
270
  visible: true,
272
271
  name: 'size',
273
272
  layout: 'horizontal',
274
- label: getLocaleText('CMD.sizePx', null, '尺寸(px)')
273
+ label: '尺寸(px)'
275
274
  },
276
275
  {
277
276
  key: 'common-input-number',
278
277
  visible: true,
279
278
  name: 'codeMargin',
280
279
  layout: 'horizontal',
281
- label: getLocaleText('CMD.qrCodeMarginPx', null, '边距(px)')
280
+ label: '边距(px)'
282
281
  }
283
282
  ]
284
283
  },
285
284
  {
286
285
  key: 'common-group',
287
286
  visible: true,
288
- label: getLocaleText('CMD.styleSetting', null, '样式设置'),
287
+ label: '样式设置',
289
288
  children: [
290
289
  {
291
290
  key: 'color',
292
291
  visible: true,
293
292
  name: 'backgroundColor',
294
293
  layout: 'horizontal',
295
- label: getLocaleText('CMD.backgroundColor', null, '背景色')
294
+ label: '背景色'
296
295
  },
297
296
  {
298
297
  key: 'color',
299
298
  visible: true,
300
299
  name: 'qrcodeColor',
301
300
  layout: 'horizontal',
302
- label: getLocaleText('CMD.qrCodeColor', null, '二维码颜色')
301
+ label: '二维码颜色'
303
302
  },
304
303
  {
305
304
  key: 'common-button-radio',
306
305
  visible: true,
307
306
  name: 'align',
308
- label: getLocaleText('CMD.align', null, '对齐'),
307
+ label: '对齐',
309
308
  default: 'left',
310
309
  options: [
311
310
  {
312
311
  value: 'left',
313
- label: getLocaleText('CMD.left', null, '左对齐')
312
+ label: '左对齐'
314
313
  },
315
314
  {
316
315
  value: 'center',
317
- label: getLocaleText('CMD.center', null, '居中')
316
+ label: '居中'
318
317
  },
319
318
  {
320
319
  value: 'right',
321
- label: getLocaleText('CMD.right', null, '右对齐')
320
+ label: '右对齐'
322
321
  }
323
322
  ]
324
323
  }
@@ -75,7 +75,6 @@ function _is_native_reflect_construct() {
75
75
  * description: 二维码组件,用于展示或绑定二维码内容。支持尺寸、边距、前景/背景色与对齐方式配置,适合链接、单据追溯等场景。
76
76
  */ import QrCodeControl from './designer';
77
77
  import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
78
- import { getLocaleText } from '@byteluck-fe/locale-message';
79
78
  var QrCodePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
80
79
  "use strict";
81
80
  _inherits(QrCodePropertyRules, BaseControlPropertyRules);
@@ -114,7 +113,7 @@ var QrCodeProperty = /*#__PURE__*/ function(BaseControlProperty) {
114
113
  props
115
114
  ]), _define_property(_this, "defaultValue", void 0), _define_property(_this, "qrVersion", void 0), _define_property(_this, "errorCorrectionLevel", void 0), _define_property(_this, "codeMode", void 0), _define_property(_this, "size", void 0), _define_property(_this, "codeMargin", void 0), _define_property(_this, "backgroundColor", void 0), _define_property(_this, "qrColor", void 0), _define_property(_this, "align", void 0);
116
115
  _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : QrCodeControl.controlName;
117
- _this.placeholder = (_ref1 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref1 !== void 0 ? _ref1 : getLocaleText('CMD.pleaseEnter', null, '请输入');
116
+ _this.placeholder = (_ref1 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref1 !== void 0 ? _ref1 : '请输入';
118
117
  _this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
119
118
  _this.qrVersion = (_ref3 = props === null || props === void 0 ? void 0 : props.qrVersion) !== null && _ref3 !== void 0 ? _ref3 : 'auto';
120
119
  _this.errorCorrectionLevel = (_ref4 = props === null || props === void 0 ? void 0 : props.errorCorrectionLevel) !== null && _ref4 !== void 0 ? _ref4 : 'M';
@@ -87,7 +87,6 @@ function _is_native_reflect_construct() {
87
87
  import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
88
88
  import { FieldTypes } from '@byteluck-fe/model-driven-shared';
89
89
  import SliderProperty from './property';
90
- import { getLocaleText } from '@byteluck-fe/locale-message';
91
90
  var SliderControl = /*#__PURE__*/ function(DesignerFormControl) {
92
91
  "use strict";
93
92
  _inherits(SliderControl, DesignerFormControl);
@@ -104,7 +103,7 @@ var SliderControl = /*#__PURE__*/ function(DesignerFormControl) {
104
103
  {
105
104
  key: "controlName",
106
105
  get: function get() {
107
- return getLocaleText('CMD.slider', null, '滑块');
106
+ return '滑块';
108
107
  }
109
108
  },
110
109
  {
@@ -116,7 +115,7 @@ var SliderControl = /*#__PURE__*/ function(DesignerFormControl) {
116
115
  {
117
116
  key: "controlIcon",
118
117
  get: function get() {
119
- return 'iconjishuqi';
118
+ return 'iconhuakuai';
120
119
  }
121
120
  }
122
121
  ]);
@@ -75,7 +75,6 @@ function _is_native_reflect_construct() {
75
75
  }
76
76
  import SliderControl from './designer';
77
77
  import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, initOptions } from '@byteluck-fe/model-driven-core';
78
- import { getLocaleText } from '@byteluck-fe/locale-message';
79
78
  var SliderPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
80
79
  "use strict";
81
80
  _inherits(SliderPropertyRules, BaseControlPropertyRules);
@@ -89,7 +88,7 @@ var SliderPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
89
88
  type: 'number',
90
89
  min: 0,
91
90
  max: 100,
92
- message: getLocaleText('CMD.pleaseEnterNumberRange', null, '请输入大于等于{min}且小于等于{max}的数值')
91
+ message: '请输入大于等于{min}且小于等于{max}的数值'
93
92
  }
94
93
  ]), _define_property(_this, "max", {
95
94
  type: 'any'
@@ -98,15 +97,12 @@ var SliderPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
98
97
  var valueMin = props.min === '' ? undefined : props.min;
99
98
  _this.defaultValue[0].max = valueMax;
100
99
  _this.defaultValue[0].min = valueMin;
101
- _this.defaultValue[0].message = getLocaleText('CMD.pleaseEnterNumberRange', {
102
- max: valueMax,
103
- min: valueMin
104
- }, '请输入大于等于{min}且小于等于{max}的数值');
100
+ _this.defaultValue[0].message = '请输入大于等于{min}且小于等于{max}的数值';
105
101
  if (valueMin !== undefined && valueMax !== undefined) {
106
102
  _this.max = {
107
103
  type: 'number',
108
104
  min: valueMin,
109
- message: getLocaleText('CMD.numberRangeSetError', null, '数值范围设置有误')
105
+ message: '数值范围设置有误'
110
106
  };
111
107
  }
112
108
  return _this;
@@ -131,10 +127,7 @@ var SliderPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
131
127
  type: 'number',
132
128
  min: valueMin,
133
129
  max: valueMax,
134
- message: getLocaleText(valueMax === undefined ? 'CMD.pleaseEnterAValueGreaterThanMin' : valueMin === undefined ? 'CMD.pleaseEnterAValueLessThanMax' : 'CMD.pleaseEnterNumberRange', {
135
- max: valueMax,
136
- min: valueMin
137
- }, valueMax === undefined ? getLocaleText('CMD.pleaseEnterAValueGreaterThanMin', null, '请输入大于等于{min}的数值') : valueMin === undefined ? getLocaleText('CMD.pleaseEnterAValueLessThanMax', null, '请输入小于等于{max}的数值') : getLocaleText('CMD.pleaseEnterNumberRange', null, '请输入大于等于{min}且小于等于{max}的数值'))
130
+ message: valueMax === undefined ? '请输入大于等于{min}的数值' : valueMin === undefined ? '请输入小于等于{max}的数值' : '请输入大于等于{min}且小于等于{max}的数值'
138
131
  });
139
132
  return _this;
140
133
  }
@@ -87,7 +87,6 @@ function _is_native_reflect_construct() {
87
87
  import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
88
88
  import { FieldTypes } from '@byteluck-fe/model-driven-shared';
89
89
  import SwitchProperty from './property';
90
- import { getLocaleText } from '@byteluck-fe/locale-message';
91
90
  var SwitchControl = /*#__PURE__*/ function(DesignerFormControl) {
92
91
  "use strict";
93
92
  _inherits(SwitchControl, DesignerFormControl);
@@ -104,13 +103,13 @@ var SwitchControl = /*#__PURE__*/ function(DesignerFormControl) {
104
103
  {
105
104
  key: "controlName",
106
105
  get: function get() {
107
- return getLocaleText('CMD.switch', null, '开关');
106
+ return '开关';
108
107
  }
109
108
  },
110
109
  {
111
110
  key: "controlIcon",
112
111
  get: function get() {
113
- return 'iconkaiguan';
112
+ return 'iconkaiguanguan';
114
113
  }
115
114
  },
116
115
  {
@@ -162,16 +161,16 @@ _define_property(SwitchControl, "setting", [
162
161
  key: 'common-button-radio',
163
162
  visible: true,
164
163
  name: 'defaultValue',
165
- label: getLocaleText('CMD.defaultStatus', null, '开关状态'),
164
+ label: '开关状态',
166
165
  default: 0,
167
166
  options: [
168
167
  {
169
168
  value: 1,
170
- label: getLocaleText('CMD.on', null, '开启')
169
+ label: '开启'
171
170
  },
172
171
  {
173
172
  value: 0,
174
- label: getLocaleText('CMD.off', null, '关闭')
173
+ label: '关闭'
175
174
  }
176
175
  ]
177
176
  },
@@ -179,65 +178,65 @@ _define_property(SwitchControl, "setting", [
179
178
  key: 'common-button-radio',
180
179
  visible: true,
181
180
  name: 'textDisplayStyle',
182
- label: getLocaleText('CMD.switchTextDisplayStyle', null, '文字展示样式'),
181
+ label: '文字展示样式',
183
182
  default: 'inside',
184
183
  options: [
185
184
  {
186
185
  value: 'inside',
187
- label: getLocaleText('CMD.insideSwitch', null, '开关内')
186
+ label: '开关内'
188
187
  },
189
188
  {
190
189
  value: 'outside',
191
- label: getLocaleText('CMD.outsideSwitch', null, '开关外')
190
+ label: '开关外'
192
191
  }
193
192
  ]
194
193
  },
195
194
  {
196
195
  key: 'common-group',
197
196
  visible: true,
198
- label: getLocaleText('CMD.propsSetting', null, '属性设置'),
197
+ label: '属性设置',
199
198
  children: [
200
199
  {
201
200
  key: 'common-input',
202
201
  visible: true,
203
202
  name: 'checkedText',
204
203
  layout: 'horizontal',
205
- label: getLocaleText('CMD.checkedText', null, '开启文字')
204
+ label: '开启文字'
206
205
  },
207
206
  {
208
207
  key: 'color',
209
208
  visible: true,
210
209
  name: 'checkedTextColor',
211
210
  layout: 'horizontal',
212
- label: getLocaleText('CMD.checkedTextColor', null, '开启文字颜色')
211
+ label: '开启文字颜色'
213
212
  },
214
213
  {
215
214
  key: 'color',
216
215
  visible: true,
217
216
  name: 'checkedBackgroundColor',
218
217
  layout: 'horizontal',
219
- label: getLocaleText('CMD.checkedBgColor', null, '开启背景颜色')
218
+ label: '开启背景颜色'
220
219
  },
221
220
  {
222
221
  key: 'common-input',
223
222
  visible: true,
224
223
  name: 'uncheckedText',
225
224
  layout: 'horizontal',
226
- label: getLocaleText('CMD.checkedText', null, '关闭文字')
225
+ label: '关闭文字'
227
226
  },
228
227
  {
229
228
  key: 'color',
230
229
  visible: true,
231
230
  name: 'uncheckedTextColor',
232
231
  layout: 'horizontal',
233
- label: getLocaleText('CMD.uncheckedTextColor', null, '关闭文字颜色')
232
+ label: '关闭文字颜色'
234
233
  },
235
234
  {
236
235
  key: 'color',
237
236
  visible: true,
238
237
  name: 'uncheckedBackgroundColor',
239
238
  layout: 'horizontal',
240
- label: getLocaleText('CMD.uncheckedBackgroundColor', null, '关闭背景颜色')
239
+ label: '关闭背景颜色'
241
240
  }
242
241
  ]
243
242
  },