@byteluck-fe/model-driven-controls 7.0.0-props.113 → 7.0.0-props.115

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.
@@ -165,44 +165,44 @@ _define_property(BarChartControl, "setting", [
165
165
  key: 'common-select',
166
166
  visible: true,
167
167
  name: 'template',
168
- label: '模版',
168
+ label: getLocaleText('CMD.d6d01777541754654'),
169
169
  default: 'default',
170
170
  options: [
171
171
  {
172
172
  value: 'bar-basic',
173
- label: '基础柱状图'
173
+ label: getLocaleText('CMD.50c71777541662435')
174
174
  },
175
175
  {
176
176
  value: 'bar-background',
177
- label: '带背景色的柱状图'
177
+ label: getLocaleText('CMD.29961777541608579')
178
178
  },
179
179
  {
180
180
  value: 'bar-waterfall',
181
- label: '瀑布图'
181
+ label: getLocaleText('CMD.0de61777541732843')
182
182
  },
183
183
  {
184
184
  value: 'bar-alternating',
185
- label: '交错正负轴标签'
185
+ label: getLocaleText('CMD.15241777541626614')
186
186
  },
187
187
  {
188
188
  value: 'bar-multi-y',
189
- label: '多 Y 轴示例'
189
+ label: getLocaleText('CMD.12c91777541629189')
190
190
  },
191
191
  {
192
192
  value: 'bar-stacked',
193
- label: '堆叠柱状图'
193
+ label: getLocaleText('CMD.30e11777541664430')
194
194
  },
195
195
  {
196
196
  value: 'bar-stacked-rounded',
197
- label: '带圆角的堆积柱状图'
197
+ label: getLocaleText('CMD.44721777541599841')
198
198
  },
199
199
  {
200
200
  value: 'bar-stacked-horizontal',
201
- label: '堆叠条形图'
201
+ label: getLocaleText('CMD.6f651777541666780')
202
202
  },
203
203
  {
204
204
  value: 'bar-positive-negative',
205
- label: '正负条形图'
205
+ label: getLocaleText('CMD.95b31777541669068')
206
206
  }
207
207
  ]
208
208
  },
@@ -132,15 +132,15 @@ _define_property(IframeControl, "setting", [
132
132
  key: 'common-input-number',
133
133
  visible: true,
134
134
  name: 'width',
135
- label: '',
135
+ label: getLocaleText('CMD.f5311777541773110'),
136
136
  min: 1,
137
- tip: '宽度设置在移动端不生效, 移动端默认宽度为100%'
137
+ tip: getLocaleText('CMD.ee791777541581639')
138
138
  },
139
139
  {
140
140
  key: 'common-input-number',
141
141
  visible: true,
142
142
  name: 'height',
143
- label: '',
143
+ label: getLocaleText('CMD.ea8c1777541774421'),
144
144
  min: 1
145
145
  },
146
146
  {
@@ -74,6 +74,7 @@ function _is_native_reflect_construct() {
74
74
  })();
75
75
  }
76
76
  import { Property, PropertyRules } from '@byteluck-fe/model-driven-core';
77
+ import { getLocaleText } from '@byteluck-fe/locale-message';
77
78
  var IframePropertyRules = /*#__PURE__*/ function(PropertyRules) {
78
79
  "use strict";
79
80
  _inherits(IframePropertyRules, PropertyRules);
@@ -83,17 +84,17 @@ var IframePropertyRules = /*#__PURE__*/ function(PropertyRules) {
83
84
  _this = _call_super(this, IframePropertyRules, arguments), _define_property(_this, "content", {
84
85
  type: 'string',
85
86
  required: true,
86
- message: '请输入URL'
87
+ message: getLocaleText('CMD.cacc1777541637293')
87
88
  }), _define_property(_this, "width", {
88
89
  type: 'number',
89
90
  required: true,
90
91
  min: 1,
91
- message: '请输入宽'
92
+ message: getLocaleText('CMD.2f901777541688219')
92
93
  }), _define_property(_this, "height", {
93
94
  type: 'number',
94
95
  required: true,
95
96
  min: 1,
96
- message: '请输入高'
97
+ message: getLocaleText('CMD.156e1777541690112')
97
98
  });
98
99
  return _this;
99
100
  }
@@ -165,28 +165,28 @@ _define_property(LineChartControl, "setting", [
165
165
  key: 'common-select',
166
166
  visible: true,
167
167
  name: 'template',
168
- label: '模版',
168
+ label: getLocaleText('CMD.e89a1777541754655'),
169
169
  default: 'line-basic',
170
170
  options: [
171
171
  {
172
172
  value: 'line-basic',
173
- label: '基础折线图'
173
+ label: getLocaleText('CMD.9bf11777541671154')
174
174
  },
175
175
  {
176
176
  value: 'line-smooth',
177
- label: '基础平滑折线图'
177
+ label: getLocaleText('CMD.50231777541632244')
178
178
  },
179
179
  {
180
180
  value: 'line-area',
181
- label: '基础面积图'
181
+ label: getLocaleText('CMD.bad61777541673203')
182
182
  },
183
183
  {
184
184
  value: 'line-stacked',
185
- label: '堆叠折线图'
185
+ label: getLocaleText('CMD.8e651777541675555')
186
186
  },
187
187
  {
188
188
  value: 'line-stacked-area',
189
- label: '堆叠面积图'
189
+ label: getLocaleText('CMD.a75e1777541677634')
190
190
  }
191
191
  ]
192
192
  },
@@ -165,32 +165,32 @@ _define_property(PieChartControl, "setting", [
165
165
  key: 'common-select',
166
166
  visible: true,
167
167
  name: 'template',
168
- label: '模版',
168
+ label: getLocaleText('CMD.f5361777541754658'),
169
169
  default: 'default',
170
170
  options: [
171
171
  {
172
172
  value: 'pie-rounded-ring',
173
- label: '圆角环形图'
173
+ label: getLocaleText('CMD.81a51777541679974')
174
174
  },
175
175
  {
176
176
  value: 'pie-ring',
177
- label: '环形图'
177
+ label: getLocaleText('CMD.a4281777541734255')
178
178
  },
179
179
  {
180
180
  value: 'pie-half-ring',
181
- label: '半环形图'
181
+ label: getLocaleText('CMD.24b41777541692257')
182
182
  },
183
183
  {
184
184
  value: 'pie-gap',
185
- label: '饼图扇区间隙'
185
+ label: getLocaleText('CMD.5ce91777541640370')
186
186
  },
187
187
  {
188
188
  value: 'pie-rose',
189
- label: '基础南丁格尔玫瑰图'
189
+ label: getLocaleText('CMD.3f911777541602899')
190
190
  },
191
191
  {
192
192
  value: 'pie-texture',
193
- label: '饼图纹理'
193
+ label: getLocaleText('CMD.13a21777541694793')
194
194
  }
195
195
  ]
196
196
  },
@@ -98,23 +98,23 @@ var defaultPieOption = {
98
98
  "data": [
99
99
  {
100
100
  "value": 1048,
101
- "name": "搜索引擎"
101
+ "name": getLocaleText('CMD.31801777541696784')
102
102
  },
103
103
  {
104
104
  "value": 735,
105
- "name": "直接访问"
105
+ "name": getLocaleText('CMD.30781777541698808')
106
106
  },
107
107
  {
108
108
  "value": 580,
109
- "name": "邮件营销"
109
+ "name": getLocaleText('CMD.53ce1777541700854')
110
110
  },
111
111
  {
112
112
  "value": 484,
113
- "name": "联盟广告"
113
+ "name": getLocaleText('CMD.aab91777541703228')
114
114
  },
115
115
  {
116
116
  "value": 300,
117
- "name": "视频广告"
117
+ "name": getLocaleText('CMD.cb9d1777541704940')
118
118
  }
119
119
  ]
120
120
  }
@@ -160,7 +160,7 @@ _define_property(TextControl, "setting", [
160
160
  key: 'common-button-radio',
161
161
  visible: true,
162
162
  name: 'align',
163
- label: '文本对齐方式',
163
+ label: getLocaleText('CMD.54641777541642981'),
164
164
  default: 'left',
165
165
  options: [
166
166
  {
@@ -84,6 +84,7 @@ function _is_native_reflect_construct() {
84
84
  return !!result;
85
85
  })();
86
86
  }
87
+ import { getLocaleText } from '@byteluck-fe/locale-message';
87
88
  import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
88
89
  import { FieldTypes } from '@byteluck-fe/model-driven-shared';
89
90
  import BarcodeProperty from './property';
@@ -103,7 +104,7 @@ var BarcodeControl = /*#__PURE__*/ function(DesignerFormControl) {
103
104
  {
104
105
  key: "controlName",
105
106
  get: function get() {
106
- return '条形码';
107
+ return getLocaleText('CMD.9fb91777541735669');
107
108
  }
108
109
  },
109
110
  {
@@ -173,75 +174,94 @@ _define_property(BarcodeControl, "setting", [
173
174
  {
174
175
  key: 'common-group',
175
176
  visible: true,
176
- label: '属性设置',
177
+ label: getLocaleText('CMD.6e021777541706714'),
177
178
  children: [
178
179
  {
179
180
  key: 'common-input-number',
180
181
  visible: true,
181
182
  name: 'codeHeight',
182
183
  layout: 'horizontal',
183
- label: '条码高度(px)'
184
+ label: getLocaleText('CMD.a5611777541611406')
184
185
  },
185
186
  {
186
187
  key: 'common-input-number',
187
188
  visible: true,
188
189
  name: 'codeWidth',
189
190
  layout: 'horizontal',
190
- label: '条码宽度(px)'
191
+ label: getLocaleText('CMD.453a1777541614098')
191
192
  },
192
193
  {
193
194
  key: 'common-input-number',
194
195
  visible: true,
195
196
  name: 'codeMargin',
196
197
  layout: 'horizontal',
197
- label: '边距(px)'
198
+ label: getLocaleText('CMD.fc751777541645066')
198
199
  },
199
200
  {
200
201
  key: 'common-switch',
201
202
  visible: true,
202
203
  name: 'displayValue',
203
204
  layout: 'horizontal',
204
- label: '显示值'
205
+ label: getLocaleText('CMD.6c311777541737079')
205
206
  }
206
207
  ]
207
208
  },
208
209
  {
209
210
  key: 'common-group',
210
211
  visible: true,
211
- label: '样式设置',
212
+ label: getLocaleText('CMD.7a091777541710451'),
212
213
  children: [
213
214
  {
214
- key: 'color',
215
- visible: true,
216
- name: 'backgroundColor',
217
- layout: 'horizontal',
218
- label: '背景色'
219
- },
220
- {
221
- key: 'color',
215
+ key: 'common-select',
222
216
  visible: true,
223
217
  name: 'barcodeColor',
224
- layout: 'horizontal',
225
- label: '条码颜色'
218
+ label: getLocaleText('CMD.01a11777541712546'),
219
+ default: '#000000',
220
+ options: [
221
+ {
222
+ value: '#000000',
223
+ label: getLocaleText('CMD.c1fb1777541756177')
224
+ },
225
+ {
226
+ value: '#001F3F',
227
+ label: getLocaleText('CMD.c5de1777541714576')
228
+ },
229
+ {
230
+ value: '#004225',
231
+ label: getLocaleText('CMD.91211777541716842')
232
+ },
233
+ {
234
+ value: '#4A0404',
235
+ label: getLocaleText('CMD.49421777541738691')
236
+ },
237
+ {
238
+ value: '#2F2F2F',
239
+ label: getLocaleText('CMD.99701777541740192')
240
+ },
241
+ {
242
+ value: '#1A237E',
243
+ label: getLocaleText('CMD.5c681777541741804')
244
+ }
245
+ ]
226
246
  },
227
247
  {
228
248
  key: 'common-button-radio',
229
249
  visible: true,
230
250
  name: 'align',
231
- label: '对齐',
251
+ label: getLocaleText('CMD.6abe1777541757478'),
232
252
  default: 'left',
233
253
  options: [
234
254
  {
235
255
  value: 'left',
236
- label: '左对齐'
256
+ label: getLocaleText('CMD.70c61777541743098')
237
257
  },
238
258
  {
239
259
  value: 'center',
240
- label: '居中'
260
+ label: getLocaleText('CMD.41551777541758747')
241
261
  },
242
262
  {
243
263
  value: 'right',
244
- label: '右对齐'
264
+ label: getLocaleText('CMD.1fc91777541744537')
245
265
  }
246
266
  ]
247
267
  }
@@ -70,9 +70,10 @@ function _is_native_reflect_construct() {
70
70
  return !!result;
71
71
  })();
72
72
  }
73
+ import { getLocaleText } from '@byteluck-fe/locale-message';
73
74
  /**
74
75
  * name: rok_barcode
75
- * description: 条形码组件,用于展示或绑定一维条码内容。支持条码尺寸、边距、前景/背景色与对齐方式配置,适合物料编码、单据号等场景。
76
+ * description: 条形码组件,用于展示或绑定一维条码内容。支持条码尺寸、边距、条码颜色与对齐方式配置,适合物料编码、单据号等场景。
76
77
  */ import BarcodeControl from './designer';
77
78
  import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
78
79
  var BarcodePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
@@ -108,20 +109,19 @@ var BarcodeProperty = /*#__PURE__*/ function(BaseControlProperty) {
108
109
  function BarcodeProperty(props) {
109
110
  _class_call_check(this, BarcodeProperty);
110
111
  var _this;
111
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
112
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
112
113
  _this = _call_super(this, BarcodeProperty, [
113
114
  props
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), _define_property(_this, "displayValue", void 0);
115
+ ]), _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, "barcodeColor", void 0), _define_property(_this, "align", void 0), _define_property(_this, "displayValue", void 0);
115
116
  _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : BarcodeControl.controlName;
116
- _this.placeholder = (_ref1 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref1 !== void 0 ? _ref1 : '请输入';
117
+ _this.placeholder = (_ref1 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref1 !== void 0 ? _ref1 : getLocaleText('CMD.5c5a1777541746080');
117
118
  _this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
118
119
  _this.codeHeight = (_ref3 = props === null || props === void 0 ? void 0 : props.codeHeight) !== null && _ref3 !== void 0 ? _ref3 : 80;
119
120
  _this.codeWidth = (_ref4 = props === null || props === void 0 ? void 0 : props.codeWidth) !== null && _ref4 !== void 0 ? _ref4 : 1;
120
121
  _this.codeMargin = (_ref5 = props === null || props === void 0 ? void 0 : props.codeMargin) !== null && _ref5 !== void 0 ? _ref5 : 0;
121
- _this.backgroundColor = (_ref6 = props === null || props === void 0 ? void 0 : props.backgroundColor) !== null && _ref6 !== void 0 ? _ref6 : '#ffffff';
122
- _this.barcodeColor = (_ref7 = props === null || props === void 0 ? void 0 : props.barcodeColor) !== null && _ref7 !== void 0 ? _ref7 : '#000000';
123
- _this.align = (_ref8 = props === null || props === void 0 ? void 0 : props.align) !== null && _ref8 !== void 0 ? _ref8 : 'left';
124
- _this.displayValue = (_ref9 = props === null || props === void 0 ? void 0 : props.displayValue) !== null && _ref9 !== void 0 ? _ref9 : false;
122
+ _this.barcodeColor = (_ref6 = props === null || props === void 0 ? void 0 : props.barcodeColor) !== null && _ref6 !== void 0 ? _ref6 : '#000000';
123
+ _this.align = (_ref7 = props === null || props === void 0 ? void 0 : props.align) !== null && _ref7 !== void 0 ? _ref7 : 'left';
124
+ _this.displayValue = (_ref8 = props === null || props === void 0 ? void 0 : props.displayValue) !== null && _ref8 !== void 0 ? _ref8 : false;
125
125
  return _this;
126
126
  }
127
127
  return BarcodeProperty;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rok_barcode",
3
- "description": "条形码组件,用于展示或绑定一维条码内容。支持条码尺寸、边距、前景/背景色与对齐方式配置,适合物料编码、单据号等场景。",
3
+ "description": "条形码组件,用于展示或绑定一维条码内容。支持条码尺寸、边距、条码颜色与对齐方式配置,适合物料编码、单据号等场景。",
4
4
  "parameters": {
5
5
  "type": "object",
6
6
  "properties": {
@@ -175,15 +175,26 @@
175
175
  "description": "边距;单位 px",
176
176
  "default": 0
177
177
  },
178
- "backgroundColor": {
179
- "type": "string",
180
- "description": "背景色",
181
- "default": "#ffffff"
182
- },
183
178
  "barcodeColor": {
184
179
  "type": "string",
185
- "description": "条码颜色",
186
- "default": "#000000"
180
+ "enum": [
181
+ "#000000",
182
+ "#001F3F",
183
+ "#004225",
184
+ "#4A0404",
185
+ "#2F2F2F",
186
+ "#1A237E"
187
+ ],
188
+ "description": "条码颜色;",
189
+ "default": "#000000",
190
+ "enumDescription": [
191
+ "纯黑",
192
+ "深海军蓝",
193
+ "深森林绿",
194
+ "深酒红",
195
+ "深炭灰",
196
+ "深靛青"
197
+ ]
187
198
  },
188
199
  "align": {
189
200
  "type": "string",
@@ -84,6 +84,7 @@ function _is_native_reflect_construct() {
84
84
  return !!result;
85
85
  })();
86
86
  }
87
+ import { getLocaleText } from '@byteluck-fe/locale-message';
87
88
  import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
88
89
  import { FieldTypes } from '@byteluck-fe/model-driven-shared';
89
90
  import QrCodeProperty from './property';
@@ -103,7 +104,7 @@ var QrCodeControl = /*#__PURE__*/ function(DesignerFormControl) {
103
104
  {
104
105
  key: "controlName",
105
106
  get: function get() {
106
- return '二维码';
107
+ return getLocaleText('CMD.034d1777541747382');
107
108
  }
108
109
  },
109
110
  {
@@ -173,18 +174,18 @@ _define_property(QrCodeControl, "setting", [
173
174
  {
174
175
  key: 'common-group',
175
176
  visible: true,
176
- label: '属性设置',
177
+ label: getLocaleText('CMD.48ab1777541706716'),
177
178
  children: [
178
179
  {
179
180
  key: 'common-select',
180
181
  visible: true,
181
182
  name: 'qrVersion',
182
- label: '二维码版本',
183
+ label: getLocaleText('CMD.9f5f1777541682089'),
183
184
  default: 'auto',
184
185
  options: [
185
186
  {
186
187
  value: 'auto',
187
- label: '自动'
188
+ label: getLocaleText('CMD.43211777541760099')
188
189
  },
189
190
  {
190
191
  value: '1',
@@ -352,24 +353,24 @@ _define_property(QrCodeControl, "setting", [
352
353
  key: 'common-select',
353
354
  visible: true,
354
355
  name: 'errorCorrectionLevel',
355
- label: '容错级别',
356
+ label: getLocaleText('CMD.a9b81777541718919'),
356
357
  default: 'M',
357
358
  options: [
358
359
  {
359
360
  value: 'L',
360
- label: 'L(低,7%)'
361
+ label: getLocaleText('CMD.3e9b1777541634899')
361
362
  },
362
363
  {
363
364
  value: 'M',
364
- label: 'M(中,15%)'
365
+ label: getLocaleText('CMD.bc7a1777541617060')
365
366
  },
366
367
  {
367
368
  value: 'Q',
368
- label: 'Q(高,25%)'
369
+ label: getLocaleText('CMD.3ce71777541620174')
369
370
  },
370
371
  {
371
372
  value: 'H',
372
- label: 'H(最高,30%)'
373
+ label: getLocaleText('CMD.b5841777541605769')
373
374
  }
374
375
  ]
375
376
  },
@@ -377,7 +378,7 @@ _define_property(QrCodeControl, "setting", [
377
378
  key: 'common-select',
378
379
  visible: true,
379
380
  name: 'codeMode',
380
- label: '码制',
381
+ label: getLocaleText('CMD.ae891777541761573'),
381
382
  default: 'qrCode',
382
383
  options: [
383
384
  {
@@ -391,54 +392,73 @@ _define_property(QrCodeControl, "setting", [
391
392
  visible: true,
392
393
  name: 'size',
393
394
  layout: 'horizontal',
394
- label: '尺寸(px)'
395
+ label: getLocaleText('CMD.dd381777541646923')
395
396
  },
396
397
  {
397
398
  key: 'common-input-number',
398
399
  visible: true,
399
400
  name: 'codeMargin',
400
401
  layout: 'horizontal',
401
- label: '边距(px)'
402
+ label: getLocaleText('CMD.71a11777541645070')
402
403
  }
403
404
  ]
404
405
  },
405
406
  {
406
407
  key: 'common-group',
407
408
  visible: true,
408
- label: '样式设置',
409
+ label: getLocaleText('CMD.523e1777541710452'),
409
410
  children: [
410
411
  {
411
- key: 'color',
412
- visible: true,
413
- name: 'backgroundColor',
414
- layout: 'horizontal',
415
- label: '背景色'
416
- },
417
- {
418
- key: 'color',
412
+ key: 'common-select',
419
413
  visible: true,
420
414
  name: 'qrColor',
421
- layout: 'horizontal',
422
- label: '二维码颜色'
415
+ label: getLocaleText('CMD.41081777541683947'),
416
+ default: '#000000',
417
+ options: [
418
+ {
419
+ value: '#000000',
420
+ label: getLocaleText('CMD.a5211777541756178')
421
+ },
422
+ {
423
+ value: '#001F3F',
424
+ label: getLocaleText('CMD.18241777541714577')
425
+ },
426
+ {
427
+ value: '#004225',
428
+ label: getLocaleText('CMD.cb4e1777541716843')
429
+ },
430
+ {
431
+ value: '#4A0404',
432
+ label: getLocaleText('CMD.e0d51777541738692')
433
+ },
434
+ {
435
+ value: '#2F2F2F',
436
+ label: getLocaleText('CMD.98df1777541740192')
437
+ },
438
+ {
439
+ value: '#1A237E',
440
+ label: getLocaleText('CMD.9e1f1777541741805')
441
+ }
442
+ ]
423
443
  },
424
444
  {
425
445
  key: 'common-button-radio',
426
446
  visible: true,
427
447
  name: 'align',
428
- label: '对齐',
448
+ label: getLocaleText('CMD.d82e1777541757479'),
429
449
  default: 'left',
430
450
  options: [
431
451
  {
432
452
  value: 'left',
433
- label: '左对齐'
453
+ label: getLocaleText('CMD.2e381777541743100')
434
454
  },
435
455
  {
436
456
  value: 'center',
437
- label: '居中'
457
+ label: getLocaleText('CMD.262c1777541758748')
438
458
  },
439
459
  {
440
460
  value: 'right',
441
- label: '右对齐'
461
+ label: getLocaleText('CMD.c4ee1777541744538')
442
462
  }
443
463
  ]
444
464
  }
@@ -72,7 +72,7 @@ function _is_native_reflect_construct() {
72
72
  }
73
73
  /**
74
74
  * name: rok_qr_code
75
- * description: 二维码组件,用于展示或绑定二维码内容。支持尺寸、边距、前景/背景色与对齐方式配置,适合链接、单据追溯等场景。
75
+ * description: 二维码组件,用于展示或绑定二维码内容。支持尺寸、边距、码点颜色与对齐方式配置,适合链接、单据追溯等场景。
76
76
  */ import QrCodeControl from './designer';
77
77
  import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
78
78
  var QrCodePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
@@ -108,10 +108,10 @@ var QrCodeProperty = /*#__PURE__*/ function(BaseControlProperty) {
108
108
  function QrCodeProperty(props) {
109
109
  _class_call_check(this, QrCodeProperty);
110
110
  var _this;
111
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
111
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
112
112
  _this = _call_super(this, QrCodeProperty, [
113
113
  props
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);
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, "qrColor", void 0), _define_property(_this, "align", void 0);
115
115
  _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : QrCodeControl.controlName;
116
116
  _this.defaultValue = (_ref1 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref1 !== void 0 ? _ref1 : '';
117
117
  _this.qrVersion = (_ref2 = props === null || props === void 0 ? void 0 : props.qrVersion) !== null && _ref2 !== void 0 ? _ref2 : 'auto';
@@ -119,9 +119,8 @@ var QrCodeProperty = /*#__PURE__*/ function(BaseControlProperty) {
119
119
  _this.codeMode = (_ref4 = props === null || props === void 0 ? void 0 : props.codeMode) !== null && _ref4 !== void 0 ? _ref4 : 'qrCode';
120
120
  _this.size = (_ref5 = props === null || props === void 0 ? void 0 : props.size) !== null && _ref5 !== void 0 ? _ref5 : 160;
121
121
  _this.codeMargin = (_ref6 = props === null || props === void 0 ? void 0 : props.codeMargin) !== null && _ref6 !== void 0 ? _ref6 : 0;
122
- _this.backgroundColor = (_ref7 = props === null || props === void 0 ? void 0 : props.backgroundColor) !== null && _ref7 !== void 0 ? _ref7 : '#ffffff';
123
- _this.qrColor = (_ref8 = props === null || props === void 0 ? void 0 : props.qrColor) !== null && _ref8 !== void 0 ? _ref8 : '#000000';
124
- _this.align = (_ref9 = props === null || props === void 0 ? void 0 : props.align) !== null && _ref9 !== void 0 ? _ref9 : 'left';
122
+ _this.qrColor = (_ref7 = props === null || props === void 0 ? void 0 : props.qrColor) !== null && _ref7 !== void 0 ? _ref7 : '#000000';
123
+ _this.align = (_ref8 = props === null || props === void 0 ? void 0 : props.align) !== null && _ref8 !== void 0 ? _ref8 : 'left';
125
124
  return _this;
126
125
  }
127
126
  return QrCodeProperty;