@byteluck-fe/model-driven-controls 7.0.0-props.114 → 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.
- package/dist/esm/baseControls/BarChart/designer.js +10 -10
- package/dist/esm/baseControls/Iframe/designer.js +3 -3
- package/dist/esm/baseControls/Iframe/property.js +4 -3
- package/dist/esm/baseControls/LineChart/designer.js +6 -6
- package/dist/esm/baseControls/PieChart/designer.js +7 -7
- package/dist/esm/baseControls/PieChart/property.js +5 -5
- package/dist/esm/baseControls/Text/designer.js +1 -1
- package/dist/esm/formControls/Barcode/designer.js +19 -18
- package/dist/esm/formControls/Barcode/property.js +2 -1
- package/dist/esm/formControls/QrCode/designer.js +25 -24
- package/dist/esm/formControls/RichText/designer.js +1 -1
- package/dist/esm/formControls/Slider/designer.js +2 -1
- package/dist/esm/formControls/Slider/property.js +6 -8
- package/dist/esm/formControls/Switch/designer.js +15 -14
- package/dist/esm/formControls/Switch/property.js +3 -2
- package/dist/esm/formControls/Tag/designer.js +14 -14
- package/dist/esm/layoutControls/BlankContainer/designer.js +8 -7
- package/dist/esm/layoutControls/BlankContainer/property.js +4 -6
- package/dist/index.umd.js +1 -1
- package/dist/types/layoutControls/BlankContainer/property.d.ts +1 -1
- package/package.json +2 -2
|
@@ -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: '
|
|
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: '
|
|
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: '
|
|
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
|
}
|
|
@@ -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,73 +174,73 @@ _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: '
|
|
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: '
|
|
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: '
|
|
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
215
|
key: 'common-select',
|
|
215
216
|
visible: true,
|
|
216
217
|
name: 'barcodeColor',
|
|
217
|
-
label: '
|
|
218
|
+
label: getLocaleText('CMD.01a11777541712546'),
|
|
218
219
|
default: '#000000',
|
|
219
220
|
options: [
|
|
220
221
|
{
|
|
221
222
|
value: '#000000',
|
|
222
|
-
label: '
|
|
223
|
+
label: getLocaleText('CMD.c1fb1777541756177')
|
|
223
224
|
},
|
|
224
225
|
{
|
|
225
226
|
value: '#001F3F',
|
|
226
|
-
label: '
|
|
227
|
+
label: getLocaleText('CMD.c5de1777541714576')
|
|
227
228
|
},
|
|
228
229
|
{
|
|
229
230
|
value: '#004225',
|
|
230
|
-
label: '
|
|
231
|
+
label: getLocaleText('CMD.91211777541716842')
|
|
231
232
|
},
|
|
232
233
|
{
|
|
233
234
|
value: '#4A0404',
|
|
234
|
-
label: '
|
|
235
|
+
label: getLocaleText('CMD.49421777541738691')
|
|
235
236
|
},
|
|
236
237
|
{
|
|
237
238
|
value: '#2F2F2F',
|
|
238
|
-
label: '
|
|
239
|
+
label: getLocaleText('CMD.99701777541740192')
|
|
239
240
|
},
|
|
240
241
|
{
|
|
241
242
|
value: '#1A237E',
|
|
242
|
-
label: '
|
|
243
|
+
label: getLocaleText('CMD.5c681777541741804')
|
|
243
244
|
}
|
|
244
245
|
]
|
|
245
246
|
},
|
|
@@ -247,20 +248,20 @@ _define_property(BarcodeControl, "setting", [
|
|
|
247
248
|
key: 'common-button-radio',
|
|
248
249
|
visible: true,
|
|
249
250
|
name: 'align',
|
|
250
|
-
label: '
|
|
251
|
+
label: getLocaleText('CMD.6abe1777541757478'),
|
|
251
252
|
default: 'left',
|
|
252
253
|
options: [
|
|
253
254
|
{
|
|
254
255
|
value: 'left',
|
|
255
|
-
label: '
|
|
256
|
+
label: getLocaleText('CMD.70c61777541743098')
|
|
256
257
|
},
|
|
257
258
|
{
|
|
258
259
|
value: 'center',
|
|
259
|
-
label: '
|
|
260
|
+
label: getLocaleText('CMD.41551777541758747')
|
|
260
261
|
},
|
|
261
262
|
{
|
|
262
263
|
value: 'right',
|
|
263
|
-
label: '
|
|
264
|
+
label: getLocaleText('CMD.1fc91777541744537')
|
|
264
265
|
}
|
|
265
266
|
]
|
|
266
267
|
}
|
|
@@ -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
|
/**
|
|
74
75
|
* name: rok_barcode
|
|
75
76
|
* description: 条形码组件,用于展示或绑定一维条码内容。支持条码尺寸、边距、条码颜色与对齐方式配置,适合物料编码、单据号等场景。
|
|
@@ -113,7 +114,7 @@ var BarcodeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
113
114
|
props
|
|
114
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;
|
|
@@ -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: '
|
|
361
|
+
label: getLocaleText('CMD.3e9b1777541634899')
|
|
361
362
|
},
|
|
362
363
|
{
|
|
363
364
|
value: 'M',
|
|
364
|
-
label: '
|
|
365
|
+
label: getLocaleText('CMD.bc7a1777541617060')
|
|
365
366
|
},
|
|
366
367
|
{
|
|
367
368
|
value: 'Q',
|
|
368
|
-
label: '
|
|
369
|
+
label: getLocaleText('CMD.3ce71777541620174')
|
|
369
370
|
},
|
|
370
371
|
{
|
|
371
372
|
value: 'H',
|
|
372
|
-
label: '
|
|
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,52 +392,52 @@ _define_property(QrCodeControl, "setting", [
|
|
|
391
392
|
visible: true,
|
|
392
393
|
name: 'size',
|
|
393
394
|
layout: 'horizontal',
|
|
394
|
-
label: '
|
|
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: '
|
|
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
412
|
key: 'common-select',
|
|
412
413
|
visible: true,
|
|
413
414
|
name: 'qrColor',
|
|
414
|
-
label: '
|
|
415
|
+
label: getLocaleText('CMD.41081777541683947'),
|
|
415
416
|
default: '#000000',
|
|
416
417
|
options: [
|
|
417
418
|
{
|
|
418
419
|
value: '#000000',
|
|
419
|
-
label: '
|
|
420
|
+
label: getLocaleText('CMD.a5211777541756178')
|
|
420
421
|
},
|
|
421
422
|
{
|
|
422
423
|
value: '#001F3F',
|
|
423
|
-
label: '
|
|
424
|
+
label: getLocaleText('CMD.18241777541714577')
|
|
424
425
|
},
|
|
425
426
|
{
|
|
426
427
|
value: '#004225',
|
|
427
|
-
label: '
|
|
428
|
+
label: getLocaleText('CMD.cb4e1777541716843')
|
|
428
429
|
},
|
|
429
430
|
{
|
|
430
431
|
value: '#4A0404',
|
|
431
|
-
label: '
|
|
432
|
+
label: getLocaleText('CMD.e0d51777541738692')
|
|
432
433
|
},
|
|
433
434
|
{
|
|
434
435
|
value: '#2F2F2F',
|
|
435
|
-
label: '
|
|
436
|
+
label: getLocaleText('CMD.98df1777541740192')
|
|
436
437
|
},
|
|
437
438
|
{
|
|
438
439
|
value: '#1A237E',
|
|
439
|
-
label: '
|
|
440
|
+
label: getLocaleText('CMD.9e1f1777541741805')
|
|
440
441
|
}
|
|
441
442
|
]
|
|
442
443
|
},
|
|
@@ -444,20 +445,20 @@ _define_property(QrCodeControl, "setting", [
|
|
|
444
445
|
key: 'common-button-radio',
|
|
445
446
|
visible: true,
|
|
446
447
|
name: 'align',
|
|
447
|
-
label: '
|
|
448
|
+
label: getLocaleText('CMD.d82e1777541757479'),
|
|
448
449
|
default: 'left',
|
|
449
450
|
options: [
|
|
450
451
|
{
|
|
451
452
|
value: 'left',
|
|
452
|
-
label: '
|
|
453
|
+
label: getLocaleText('CMD.2e381777541743100')
|
|
453
454
|
},
|
|
454
455
|
{
|
|
455
456
|
value: 'center',
|
|
456
|
-
label: '
|
|
457
|
+
label: getLocaleText('CMD.262c1777541758748')
|
|
457
458
|
},
|
|
458
459
|
{
|
|
459
460
|
value: 'right',
|
|
460
|
-
label: '
|
|
461
|
+
label: getLocaleText('CMD.c4ee1777541744538')
|
|
461
462
|
}
|
|
462
463
|
]
|
|
463
464
|
}
|
|
@@ -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 SliderProperty from './property';
|
|
@@ -103,7 +104,7 @@ var SliderControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
103
104
|
{
|
|
104
105
|
key: "controlName",
|
|
105
106
|
get: function get() {
|
|
106
|
-
return '
|
|
107
|
+
return getLocaleText('CMD.7fa81777541762879');
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
{
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* name: rok_slider
|
|
3
|
-
* description: 滑块组件,用于在连续范围内快速选择数值。适合进度、权重、阈值等场景,支持默认值、最小值、最大值、步长、提示标签和控制按钮配置。
|
|
4
|
-
*/ function _assert_this_initialized(self) {
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
5
2
|
if (self === void 0) {
|
|
6
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7
4
|
}
|
|
@@ -73,6 +70,7 @@ function _is_native_reflect_construct() {
|
|
|
73
70
|
return !!result;
|
|
74
71
|
})();
|
|
75
72
|
}
|
|
73
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
74
|
import SliderControl from './designer';
|
|
77
75
|
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, initOptions } from '@byteluck-fe/model-driven-core';
|
|
78
76
|
var SliderPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
@@ -88,7 +86,7 @@ var SliderPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
|
88
86
|
type: 'number',
|
|
89
87
|
min: 0,
|
|
90
88
|
max: 100,
|
|
91
|
-
message: '
|
|
89
|
+
message: getLocaleText('CMD.5d051777541586591')
|
|
92
90
|
}
|
|
93
91
|
]), _define_property(_this, "max", {
|
|
94
92
|
type: 'any'
|
|
@@ -97,12 +95,12 @@ var SliderPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
|
97
95
|
var valueMin = props.min === '' ? undefined : props.min;
|
|
98
96
|
_this.defaultValue[0].max = valueMax;
|
|
99
97
|
_this.defaultValue[0].min = valueMin;
|
|
100
|
-
_this.defaultValue[0].message = '
|
|
98
|
+
_this.defaultValue[0].message = getLocaleText('CMD.5d051777541586591');
|
|
101
99
|
if (valueMin !== undefined && valueMax !== undefined) {
|
|
102
100
|
_this.max = {
|
|
103
101
|
type: 'number',
|
|
104
102
|
min: valueMin,
|
|
105
|
-
message: '
|
|
103
|
+
message: getLocaleText('CMD.03c61777541622820')
|
|
106
104
|
};
|
|
107
105
|
}
|
|
108
106
|
return _this;
|
|
@@ -127,7 +125,7 @@ var SliderPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
|
|
|
127
125
|
type: 'number',
|
|
128
126
|
min: valueMin,
|
|
129
127
|
max: valueMax,
|
|
130
|
-
message: valueMax === undefined ? '
|
|
128
|
+
message: valueMax === undefined ? getLocaleText('CMD.0ea31777541589957') : valueMin === undefined ? getLocaleText('CMD.61eb1777541593375') : getLocaleText('CMD.5d051777541586591')
|
|
131
129
|
});
|
|
132
130
|
return _this;
|
|
133
131
|
}
|