@byteluck-fe/model-driven-controls 6.1.0-3-beta.3 → 6.1.0-3-bate.5
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.
|
@@ -270,15 +270,15 @@ _define_property(BarcodeControl, "setting", [
|
|
|
270
270
|
{
|
|
271
271
|
key: 'common-group',
|
|
272
272
|
visible: true,
|
|
273
|
-
label: getLocaleText('CMD.6e021777541706716', null, '
|
|
274
|
-
tip: getLocaleText('CMD.6e021777541706718', null, '
|
|
273
|
+
label: getLocaleText('CMD.6e021777541706716', null, '激活设置'),
|
|
274
|
+
tip: getLocaleText('CMD.6e021777541706718', null, '用于控制是否展示激活,当有业务场景需要扫描条码验证激活时则可以使用激活按钮给当前条码组件生成一个临时访问权限,用户可以调用平台的接口对这个条码进行激活校验;激活的条码要保证条码的唯一性,建议使用条码组件的默认值作为激活的唯一标识'),
|
|
275
275
|
children: [
|
|
276
276
|
{
|
|
277
277
|
key: 'common-switch',
|
|
278
278
|
visible: true,
|
|
279
279
|
name: 'displayAuth',
|
|
280
280
|
layout: 'horizontal',
|
|
281
|
-
label: getLocaleText('CMD.6c3117775417370791', null, '
|
|
281
|
+
label: getLocaleText('CMD.6c3117775417370791', null, '展示激活按钮')
|
|
282
282
|
}
|
|
283
283
|
]
|
|
284
284
|
},
|
|
@@ -70,9 +70,9 @@ function _is_native_reflect_construct() {
|
|
|
70
70
|
return !!result;
|
|
71
71
|
})();
|
|
72
72
|
}
|
|
73
|
-
/**
|
|
74
|
-
* name: rok_barcode
|
|
75
|
-
* description: 条形码组件,用于展示或绑定一维条码内容。支持条码尺寸、边距、条码颜色与对齐方式配置,适合物料编码、单据号等场景。
|
|
73
|
+
/**
|
|
74
|
+
* name: rok_barcode
|
|
75
|
+
* description: 条形码组件,用于展示或绑定一维条码内容。支持条码尺寸、边距、条码颜色与对齐方式配置,适合物料编码、单据号等场景。
|
|
76
76
|
*/ import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
77
77
|
import BarcodeControl from './designer';
|
|
78
78
|
import { BaseControlProperty, // BaseControlPropertyInterface,
|
|
@@ -157,42 +157,42 @@ var BarcodeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
157
157
|
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10;
|
|
158
158
|
_this = _call_super(this, BarcodeProperty, [
|
|
159
159
|
props
|
|
160
|
-
]), /**
|
|
161
|
-
* 默认值
|
|
162
|
-
* @defaultValue ''
|
|
163
|
-
* @public
|
|
164
|
-
*/ _define_property(_this, "defaultValue", void 0), /**
|
|
165
|
-
* 条码高度;单位 px
|
|
166
|
-
* @defaultValue 40
|
|
167
|
-
* @public
|
|
168
|
-
*/ _define_property(_this, "codeHeight", void 0), /**
|
|
169
|
-
* 条码宽度;单位 px
|
|
170
|
-
* @defaultValue 200
|
|
171
|
-
* @public
|
|
172
|
-
*/ _define_property(_this, "codeWidth", void 0), /**
|
|
173
|
-
* 边距;单位 px
|
|
174
|
-
* @defaultValue 0
|
|
175
|
-
* @public
|
|
176
|
-
*/ _define_property(_this, "codeMargin", void 0), /**
|
|
177
|
-
* 条码颜色;取值:#000000:纯黑;#001F3F:深海军蓝;#004225:深森林绿;#4A0404:深酒红;#2F2F2F:深炭灰;#1A237E:深靛青;
|
|
178
|
-
* @defaultValue '#000000'
|
|
179
|
-
* @public
|
|
180
|
-
*/ _define_property(_this, "barcodeColor", void 0), /**
|
|
181
|
-
* 对齐;取值:left:左对齐;center:居中;right:右对齐;
|
|
182
|
-
* @defaultValue 'left'
|
|
183
|
-
* @public
|
|
184
|
-
*/ _define_property(_this, "align", void 0), /**
|
|
185
|
-
* 是否显示条码值文本
|
|
186
|
-
* @defaultValue true
|
|
187
|
-
* @public
|
|
188
|
-
*/ _define_property(_this, "displayValue", void 0), /**
|
|
189
|
-
* 是否展示授权
|
|
190
|
-
* @defaultValue false
|
|
191
|
-
* @public
|
|
192
|
-
*/ _define_property(_this, "displayAuth", void 0), /**
|
|
193
|
-
* 有效期设置
|
|
194
|
-
* @defaultValue 默认30分钟
|
|
195
|
-
* @public
|
|
160
|
+
]), /**
|
|
161
|
+
* 默认值
|
|
162
|
+
* @defaultValue ''
|
|
163
|
+
* @public
|
|
164
|
+
*/ _define_property(_this, "defaultValue", void 0), /**
|
|
165
|
+
* 条码高度;单位 px
|
|
166
|
+
* @defaultValue 40
|
|
167
|
+
* @public
|
|
168
|
+
*/ _define_property(_this, "codeHeight", void 0), /**
|
|
169
|
+
* 条码宽度;单位 px
|
|
170
|
+
* @defaultValue 200
|
|
171
|
+
* @public
|
|
172
|
+
*/ _define_property(_this, "codeWidth", void 0), /**
|
|
173
|
+
* 边距;单位 px
|
|
174
|
+
* @defaultValue 0
|
|
175
|
+
* @public
|
|
176
|
+
*/ _define_property(_this, "codeMargin", void 0), /**
|
|
177
|
+
* 条码颜色;取值:#000000:纯黑;#001F3F:深海军蓝;#004225:深森林绿;#4A0404:深酒红;#2F2F2F:深炭灰;#1A237E:深靛青;
|
|
178
|
+
* @defaultValue '#000000'
|
|
179
|
+
* @public
|
|
180
|
+
*/ _define_property(_this, "barcodeColor", void 0), /**
|
|
181
|
+
* 对齐;取值:left:左对齐;center:居中;right:右对齐;
|
|
182
|
+
* @defaultValue 'left'
|
|
183
|
+
* @public
|
|
184
|
+
*/ _define_property(_this, "align", void 0), /**
|
|
185
|
+
* 是否显示条码值文本
|
|
186
|
+
* @defaultValue true
|
|
187
|
+
* @public
|
|
188
|
+
*/ _define_property(_this, "displayValue", void 0), /**
|
|
189
|
+
* 是否展示授权
|
|
190
|
+
* @defaultValue false
|
|
191
|
+
* @public
|
|
192
|
+
*/ _define_property(_this, "displayAuth", void 0), /**
|
|
193
|
+
* 有效期设置
|
|
194
|
+
* @defaultValue 默认30分钟
|
|
195
|
+
* @public
|
|
196
196
|
*/ _define_property(_this, "expiration", void 0);
|
|
197
197
|
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : BarcodeControl.controlName;
|
|
198
198
|
_this.placeholder = (_ref1 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref1 !== void 0 ? _ref1 : getLocaleText('CMD.5c5a1777541746080');
|
|
@@ -202,7 +202,7 @@ var BarcodeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
202
202
|
_this.codeMargin = (_ref5 = props === null || props === void 0 ? void 0 : props.codeMargin) !== null && _ref5 !== void 0 ? _ref5 : 0;
|
|
203
203
|
_this.barcodeColor = (_ref6 = props === null || props === void 0 ? void 0 : props.barcodeColor) !== null && _ref6 !== void 0 ? _ref6 : '#000000';
|
|
204
204
|
_this.align = (_ref7 = props === null || props === void 0 ? void 0 : props.align) !== null && _ref7 !== void 0 ? _ref7 : 'left';
|
|
205
|
-
_this.displayValue = (_ref8 = props === null || props === void 0 ? void 0 : props.displayValue) !== null && _ref8 !== void 0 ? _ref8 :
|
|
205
|
+
_this.displayValue = (_ref8 = props === null || props === void 0 ? void 0 : props.displayValue) !== null && _ref8 !== void 0 ? _ref8 : true;
|
|
206
206
|
_this.displayAuth = (_ref9 = props === null || props === void 0 ? void 0 : props.displayAuth) !== null && _ref9 !== void 0 ? _ref9 : false;
|
|
207
207
|
_this.expiration = (_ref10 = props === null || props === void 0 ? void 0 : props.expiration) !== null && _ref10 !== void 0 ? _ref10 : 30;
|
|
208
208
|
return _this;
|