@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.
@@ -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 SwitchProperty from './property';
@@ -103,7 +104,7 @@ var SwitchControl = /*#__PURE__*/ function(DesignerFormControl) {
103
104
  {
104
105
  key: "controlName",
105
106
  get: function get() {
106
- return '开关';
107
+ return getLocaleText('CMD.e11c1777541764390');
107
108
  }
108
109
  },
109
110
  {
@@ -170,16 +171,16 @@ _define_property(SwitchControl, "setting", [
170
171
  key: 'common-button-radio',
171
172
  visible: true,
172
173
  name: 'defaultValue',
173
- label: '开关状态',
174
+ label: getLocaleText('CMD.760c1777541720778'),
174
175
  default: 0,
175
176
  options: [
176
177
  {
177
178
  value: 1,
178
- label: '开启'
179
+ label: getLocaleText('CMD.f48b1777541765472')
179
180
  },
180
181
  {
181
182
  value: 0,
182
- label: '关闭'
183
+ label: getLocaleText('CMD.4a541777541766791')
183
184
  }
184
185
  ]
185
186
  },
@@ -187,65 +188,65 @@ _define_property(SwitchControl, "setting", [
187
188
  key: 'common-button-radio',
188
189
  visible: true,
189
190
  name: 'textDisplayStyle',
190
- label: '文字展示样式',
191
+ label: getLocaleText('CMD.478a1777541651375'),
191
192
  default: 'inside',
192
193
  options: [
193
194
  {
194
195
  value: 'inside',
195
- label: '开关内'
196
+ label: getLocaleText('CMD.e7ef1777541748888')
196
197
  },
197
198
  {
198
199
  value: 'outside',
199
- label: '开关外'
200
+ label: getLocaleText('CMD.38711777541750404')
200
201
  }
201
202
  ]
202
203
  },
203
204
  {
204
205
  key: 'common-group',
205
206
  visible: true,
206
- label: '属性设置',
207
+ label: getLocaleText('CMD.35f21777541706717'),
207
208
  children: [
208
209
  {
209
210
  key: 'common-input',
210
211
  visible: true,
211
212
  name: 'checkedText',
212
213
  layout: 'horizontal',
213
- label: '开启文字'
214
+ label: getLocaleText('CMD.9a801777541722584')
214
215
  },
215
216
  {
216
217
  key: 'color',
217
218
  visible: true,
218
219
  name: 'checkedTextColor',
219
220
  layout: 'horizontal',
220
- label: '开启文字颜色'
221
+ label: getLocaleText('CMD.d1da1777541653501')
221
222
  },
222
223
  {
223
224
  key: 'color',
224
225
  visible: true,
225
226
  name: 'checkedBackgroundColor',
226
227
  layout: 'horizontal',
227
- label: '开启背景颜色'
228
+ label: getLocaleText('CMD.4e821777541655793')
228
229
  },
229
230
  {
230
231
  key: 'common-input',
231
232
  visible: true,
232
233
  name: 'uncheckedText',
233
234
  layout: 'horizontal',
234
- label: '关闭文字'
235
+ label: getLocaleText('CMD.886f1777541724447')
235
236
  },
236
237
  {
237
238
  key: 'color',
238
239
  visible: true,
239
240
  name: 'uncheckedTextColor',
240
241
  layout: 'horizontal',
241
- label: '关闭文字颜色'
242
+ label: getLocaleText('CMD.93231777541658161')
242
243
  },
243
244
  {
244
245
  key: 'color',
245
246
  visible: true,
246
247
  name: 'uncheckedBackgroundColor',
247
248
  layout: 'horizontal',
248
- label: '关闭背景颜色'
249
+ label: getLocaleText('CMD.04e91777541660486')
249
250
  }
250
251
  ]
251
252
  },
@@ -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_switch
75
76
  * description: 开关组件,用于快速切换数值状态(0/1)。支持开关内外文字展示、默认状态、开启/关闭文案与颜色配置,适合状态控制与流程开关场景。
@@ -117,10 +118,10 @@ var SwitchProperty = /*#__PURE__*/ function(BaseControlProperty) {
117
118
  _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : SwitchControl.controlName;
118
119
  _this.defaultValue = (_ref1 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref1 !== void 0 ? _ref1 : 1;
119
120
  _this.textDisplayStyle = (_ref2 = props === null || props === void 0 ? void 0 : props.textDisplayStyle) !== null && _ref2 !== void 0 ? _ref2 : 'inside';
120
- _this.checkedText = (_ref3 = props === null || props === void 0 ? void 0 : props.checkedText) !== null && _ref3 !== void 0 ? _ref3 : '开启';
121
+ _this.checkedText = (_ref3 = props === null || props === void 0 ? void 0 : props.checkedText) !== null && _ref3 !== void 0 ? _ref3 : getLocaleText('CMD.f0301777541765473');
121
122
  _this.checkedTextColor = (_ref4 = props === null || props === void 0 ? void 0 : props.checkedTextColor) !== null && _ref4 !== void 0 ? _ref4 : '#ffffff';
122
123
  _this.checkedBackgroundColor = (_ref5 = props === null || props === void 0 ? void 0 : props.checkedBackgroundColor) !== null && _ref5 !== void 0 ? _ref5 : '#4C78FC';
123
- _this.uncheckedText = (_ref6 = props === null || props === void 0 ? void 0 : props.uncheckedText) !== null && _ref6 !== void 0 ? _ref6 : '关闭';
124
+ _this.uncheckedText = (_ref6 = props === null || props === void 0 ? void 0 : props.uncheckedText) !== null && _ref6 !== void 0 ? _ref6 : getLocaleText('CMD.106d1777541766792');
124
125
  _this.uncheckedTextColor = (_ref7 = props === null || props === void 0 ? void 0 : props.uncheckedTextColor) !== null && _ref7 !== void 0 ? _ref7 : '#ffffff';
125
126
  _this.uncheckedBackgroundColor = (_ref8 = props === null || props === void 0 ? void 0 : props.uncheckedBackgroundColor) !== null && _ref8 !== void 0 ? _ref8 : '#BFBFBF';
126
127
  return _this;
@@ -177,15 +177,15 @@ _define_property(TagControl, "setting", [
177
177
  options: [
178
178
  {
179
179
  value: 'large',
180
- label: ''
180
+ label: getLocaleText('CMD.88fc1777541775429')
181
181
  },
182
182
  {
183
183
  value: 'medium',
184
- label: ''
184
+ label: getLocaleText('CMD.f7b51777541776645')
185
185
  },
186
186
  {
187
187
  value: 'small',
188
- label: ''
188
+ label: getLocaleText('CMD.6b7d1777541777847')
189
189
  }
190
190
  ]
191
191
  },
@@ -193,21 +193,21 @@ _define_property(TagControl, "setting", [
193
193
  key: 'common-button-radio',
194
194
  visible: true,
195
195
  name: 'align',
196
- label: '标签位置',
196
+ label: getLocaleText('CMD.dc011777541726235'),
197
197
  default: 'left',
198
- tip: '标签位置仅在只读状态下生效',
198
+ tip: getLocaleText('CMD.1e6c1777541596761'),
199
199
  options: [
200
200
  {
201
201
  value: 'left',
202
- label: '左对齐'
202
+ label: getLocaleText('CMD.e29a1777541743101')
203
203
  },
204
204
  {
205
205
  value: 'center',
206
- label: '居中'
206
+ label: getLocaleText('CMD.f0c51777541758749')
207
207
  },
208
208
  {
209
209
  value: 'right',
210
- label: '右对齐'
210
+ label: getLocaleText('CMD.b69e1777541744540')
211
211
  }
212
212
  ]
213
213
  },
@@ -215,28 +215,28 @@ _define_property(TagControl, "setting", [
215
215
  key: 'common-select',
216
216
  visible: true,
217
217
  name: 'color',
218
- label: '默认',
218
+ label: getLocaleText('CMD.8fc41777541768092'),
219
219
  default: 'default',
220
220
  options: [
221
221
  {
222
222
  value: 'default',
223
- label: '默认'
223
+ label: getLocaleText('CMD.8fc41777541768092')
224
224
  },
225
225
  {
226
226
  value: 'success',
227
- label: '成功'
227
+ label: getLocaleText('CMD.4ad61777541769394')
228
228
  },
229
229
  {
230
230
  value: 'processing',
231
- label: '进行中'
231
+ label: getLocaleText('CMD.d74b1777541751881')
232
232
  },
233
233
  {
234
234
  value: 'error',
235
- label: '错误'
235
+ label: getLocaleText('CMD.64911777541770890')
236
236
  },
237
237
  {
238
238
  value: 'warning',
239
- label: '警告'
239
+ label: getLocaleText('CMD.b6eb1777541772158')
240
240
  }
241
241
  ]
242
242
  },
@@ -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 { DesignerLayoutControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
88
89
  import BlankContainerProperty from './property';
89
90
  var BlankContainerControl = /*#__PURE__*/ function(DesignerLayoutControl) {
@@ -102,7 +103,7 @@ var BlankContainerControl = /*#__PURE__*/ function(DesignerLayoutControl) {
102
103
  {
103
104
  key: "controlName",
104
105
  get: function get() {
105
- return '空白容器';
106
+ return getLocaleText('CMD.48611777541728194');
106
107
  }
107
108
  },
108
109
  {
@@ -144,20 +145,20 @@ _define_property(BlankContainerControl, "setting", [
144
145
  key: 'common-button-radio',
145
146
  visible: true,
146
147
  name: 'position',
147
- label: '居中方式',
148
+ label: getLocaleText('CMD.4b761777541729796'),
148
149
  default: 'left',
149
150
  options: [
150
151
  {
151
152
  value: 'left',
152
- label: '左对齐'
153
+ label: getLocaleText('CMD.321d1777541743102')
153
154
  },
154
155
  {
155
156
  value: 'center',
156
- label: '居中'
157
+ label: getLocaleText('CMD.00281777541758750')
157
158
  },
158
159
  {
159
160
  value: 'right',
160
- label: '右对齐'
161
+ label: getLocaleText('CMD.534c1777541744540')
161
162
  }
162
163
  ]
163
164
  },
@@ -166,13 +167,13 @@ _define_property(BlankContainerControl, "setting", [
166
167
  visible: true,
167
168
  name: 'backgroundColor',
168
169
  layout: 'horizontal',
169
- label: '背景色'
170
+ label: getLocaleText('CMD.22b11777541753145')
170
171
  },
171
172
  {
172
173
  key: 'common-switch',
173
174
  visible: true,
174
175
  name: 'showShadow',
175
- label: '开启阴影',
176
+ label: getLocaleText('CMD.238b1777541731433'),
176
177
  default: false
177
178
  },
178
179
  {
@@ -1,7 +1,4 @@
1
- /**
2
- * name: rok_blank_container
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 { LayoutControlProperty } from '@byteluck-fe/model-driven-core';
77
75
  import { FONT_WEIGHT } from '../../framework';
78
76
  var BlankContainerPropertyRules = /*#__PURE__*/ function(_LayoutControlProperty_Rules) {
@@ -84,7 +82,7 @@ var BlankContainerPropertyRules = /*#__PURE__*/ function(_LayoutControlProperty_
84
82
  _this = _call_super(this, BlankContainerPropertyRules, arguments), _define_property(_this, "caption", {
85
83
  type: 'string',
86
84
  required: true,
87
- message: '请输入标题'
85
+ message: getLocaleText('CMD.c7ee1777541686092')
88
86
  });
89
87
  return _this;
90
88
  }
@@ -100,7 +98,7 @@ var BlankContainerProperty = /*#__PURE__*/ function(LayoutControlProperty) {
100
98
  _this = _call_super(this, BlankContainerProperty, [
101
99
  props
102
100
  ]), _define_property(_this, "caption", void 0), _define_property(_this, "isHideCaption", void 0), _define_property(_this, "captionSize", void 0), _define_property(_this, "captionColor", void 0), _define_property(_this, "isCaptionItalic", void 0), _define_property(_this, "captionFontWeight", void 0), _define_property(_this, "position", void 0), _define_property(_this, "backgroundColor", void 0), _define_property(_this, "showShadow", void 0);
103
- _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : '空白容器';
101
+ _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : getLocaleText('CMD.fbd81777541728197');
104
102
  _this.isHideCaption = (_ref1 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _ref1 !== void 0 ? _ref1 : false;
105
103
  _this.captionColor = (props === null || props === void 0 ? void 0 : props.captionColor) || '';
106
104
  _this.captionSize = (props === null || props === void 0 ? void 0 : props.captionSize) || '';