@byteluck-fe/model-driven-controls 7.0.0-props.112 → 7.0.0-props.114
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.
- package/dist/esm/baseControls/LineChart/designer.js +1 -1
- package/dist/esm/formControls/Barcode/designer.js +29 -10
- package/dist/esm/formControls/Barcode/property.js +6 -7
- package/dist/esm/formControls/Barcode/schema.json +19 -8
- package/dist/esm/formControls/QrCode/designer.js +29 -10
- package/dist/esm/formControls/QrCode/property.js +5 -6
- package/dist/esm/formControls/QrCode/schema.json +20 -9
- package/dist/index.umd.js +1 -1
- package/dist/types/formControls/Barcode/property.d.ts +5 -10
- package/dist/types/formControls/QrCode/property.d.ts +5 -10
- package/package.json +2 -2
|
@@ -211,18 +211,37 @@ _define_property(BarcodeControl, "setting", [
|
|
|
211
211
|
label: '样式设置',
|
|
212
212
|
children: [
|
|
213
213
|
{
|
|
214
|
-
key: '
|
|
215
|
-
visible: true,
|
|
216
|
-
name: 'backgroundColor',
|
|
217
|
-
layout: 'horizontal',
|
|
218
|
-
label: '背景色'
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
key: 'color',
|
|
214
|
+
key: 'common-select',
|
|
222
215
|
visible: true,
|
|
223
216
|
name: 'barcodeColor',
|
|
224
|
-
|
|
225
|
-
|
|
217
|
+
label: '条码颜色',
|
|
218
|
+
default: '#000000',
|
|
219
|
+
options: [
|
|
220
|
+
{
|
|
221
|
+
value: '#000000',
|
|
222
|
+
label: '纯黑'
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
value: '#001F3F',
|
|
226
|
+
label: '深海军蓝'
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
value: '#004225',
|
|
230
|
+
label: '深森林绿'
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
value: '#4A0404',
|
|
234
|
+
label: '深酒红'
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
value: '#2F2F2F',
|
|
238
|
+
label: '深炭灰'
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
value: '#1A237E',
|
|
242
|
+
label: '深靛青'
|
|
243
|
+
}
|
|
244
|
+
]
|
|
226
245
|
},
|
|
227
246
|
{
|
|
228
247
|
key: 'common-button-radio',
|
|
@@ -72,7 +72,7 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
74
|
* name: rok_barcode
|
|
75
|
-
* description:
|
|
75
|
+
* description: 条形码组件,用于展示或绑定一维条码内容。支持条码尺寸、边距、条码颜色与对齐方式配置,适合物料编码、单据号等场景。
|
|
76
76
|
*/ import BarcodeControl from './designer';
|
|
77
77
|
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
78
78
|
var BarcodePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
@@ -108,20 +108,19 @@ var BarcodeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
108
108
|
function BarcodeProperty(props) {
|
|
109
109
|
_class_call_check(this, BarcodeProperty);
|
|
110
110
|
var _this;
|
|
111
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8
|
|
111
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
|
|
112
112
|
_this = _call_super(this, BarcodeProperty, [
|
|
113
113
|
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, "
|
|
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, "barcodeColor", void 0), _define_property(_this, "align", void 0), _define_property(_this, "displayValue", void 0);
|
|
115
115
|
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : BarcodeControl.controlName;
|
|
116
116
|
_this.placeholder = (_ref1 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref1 !== void 0 ? _ref1 : '请输入';
|
|
117
117
|
_this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
118
118
|
_this.codeHeight = (_ref3 = props === null || props === void 0 ? void 0 : props.codeHeight) !== null && _ref3 !== void 0 ? _ref3 : 80;
|
|
119
119
|
_this.codeWidth = (_ref4 = props === null || props === void 0 ? void 0 : props.codeWidth) !== null && _ref4 !== void 0 ? _ref4 : 1;
|
|
120
120
|
_this.codeMargin = (_ref5 = props === null || props === void 0 ? void 0 : props.codeMargin) !== null && _ref5 !== void 0 ? _ref5 : 0;
|
|
121
|
-
_this.
|
|
122
|
-
_this.
|
|
123
|
-
_this.
|
|
124
|
-
_this.displayValue = (_ref9 = props === null || props === void 0 ? void 0 : props.displayValue) !== null && _ref9 !== void 0 ? _ref9 : false;
|
|
121
|
+
_this.barcodeColor = (_ref6 = props === null || props === void 0 ? void 0 : props.barcodeColor) !== null && _ref6 !== void 0 ? _ref6 : '#000000';
|
|
122
|
+
_this.align = (_ref7 = props === null || props === void 0 ? void 0 : props.align) !== null && _ref7 !== void 0 ? _ref7 : 'left';
|
|
123
|
+
_this.displayValue = (_ref8 = props === null || props === void 0 ? void 0 : props.displayValue) !== null && _ref8 !== void 0 ? _ref8 : false;
|
|
125
124
|
return _this;
|
|
126
125
|
}
|
|
127
126
|
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
|
-
"
|
|
186
|
-
|
|
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",
|
|
@@ -408,18 +408,37 @@ _define_property(QrCodeControl, "setting", [
|
|
|
408
408
|
label: '样式设置',
|
|
409
409
|
children: [
|
|
410
410
|
{
|
|
411
|
-
key: '
|
|
412
|
-
visible: true,
|
|
413
|
-
name: 'backgroundColor',
|
|
414
|
-
layout: 'horizontal',
|
|
415
|
-
label: '背景色'
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
key: 'color',
|
|
411
|
+
key: 'common-select',
|
|
419
412
|
visible: true,
|
|
420
413
|
name: 'qrColor',
|
|
421
|
-
|
|
422
|
-
|
|
414
|
+
label: '二维码颜色',
|
|
415
|
+
default: '#000000',
|
|
416
|
+
options: [
|
|
417
|
+
{
|
|
418
|
+
value: '#000000',
|
|
419
|
+
label: '纯黑'
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
value: '#001F3F',
|
|
423
|
+
label: '深海军蓝'
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
value: '#004225',
|
|
427
|
+
label: '深森林绿'
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
value: '#4A0404',
|
|
431
|
+
label: '深酒红'
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
value: '#2F2F2F',
|
|
435
|
+
label: '深炭灰'
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
value: '#1A237E',
|
|
439
|
+
label: '深靛青'
|
|
440
|
+
}
|
|
441
|
+
]
|
|
423
442
|
},
|
|
424
443
|
{
|
|
425
444
|
key: 'common-button-radio',
|
|
@@ -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
|
|
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, "
|
|
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.
|
|
123
|
-
_this.
|
|
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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rok_qr_code",
|
|
3
|
-
"description": "
|
|
3
|
+
"description": "二维码组件,用于展示或绑定二维码内容。支持尺寸、边距、码点颜色与对齐方式配置,适合链接、单据追溯等场景。",
|
|
4
4
|
"parameters": {
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -287,15 +287,26 @@
|
|
|
287
287
|
"description": "边距;单位 px",
|
|
288
288
|
"default": 0
|
|
289
289
|
},
|
|
290
|
-
"
|
|
290
|
+
"qrColor": {
|
|
291
291
|
"type": "string",
|
|
292
|
-
"
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
292
|
+
"enum": [
|
|
293
|
+
"#000000",
|
|
294
|
+
"#001F3F",
|
|
295
|
+
"#004225",
|
|
296
|
+
"#4A0404",
|
|
297
|
+
"#2F2F2F",
|
|
298
|
+
"#1A237E"
|
|
299
|
+
],
|
|
300
|
+
"description": "二维码颜色;",
|
|
301
|
+
"default": "#000000",
|
|
302
|
+
"enumDescription": [
|
|
303
|
+
"纯黑",
|
|
304
|
+
"深海军蓝",
|
|
305
|
+
"深森林绿",
|
|
306
|
+
"深酒红",
|
|
307
|
+
"深炭灰",
|
|
308
|
+
"深靛青"
|
|
309
|
+
]
|
|
299
310
|
},
|
|
300
311
|
"align": {
|
|
301
312
|
"type": "string",
|