@byteluck-fe/model-driven-controls 2.22.3-beta.5 → 2.22.3-beta.6

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.
@@ -103,7 +103,7 @@ var BatchSubmissionListButtonControl = /*#__PURE__*/ function(DesignerButtonCont
103
103
  {
104
104
  key: "controlName",
105
105
  get: function get() {
106
- return getLocaleText('batchSubmissionListButton', null, '批量提交');
106
+ return getLocaleText('CMD.batchSubmissionListButton', null, '批量提交');
107
107
  }
108
108
  },
109
109
  {
@@ -101,9 +101,9 @@ var ReferenceListPropertyRules = /*#__PURE__*/ function(PropertyRules) {
101
101
  }
102
102
  return ReferenceListPropertyRules;
103
103
  }(PropertyRules);
104
- /**
105
- * ReferenceList 引用列表
106
- * @public
104
+ /**
105
+ * ReferenceList 引用列表
106
+ * @public
107
107
  */ var ReferenceListProperty = /*#__PURE__*/ function(Property) {
108
108
  "use strict";
109
109
  _inherits(ReferenceListProperty, Property);
@@ -140,16 +140,16 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
140
140
  var _props_options;
141
141
  _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
142
142
  {
143
- label: '选项一',
144
- value: '选项一'
143
+ label: getLocaleText('CMD.optionOne', null, '选项一'),
144
+ value: getLocaleText('CMD.optionOne', null, '选项一')
145
145
  },
146
146
  {
147
- label: '选项二',
148
- value: '选项二'
147
+ label: getLocaleText('CMD.optionTwo', null, '选项二'),
148
+ value: getLocaleText('CMD.optionTwo', null, '选项二')
149
149
  },
150
150
  {
151
- label: '选项三',
152
- value: '选项三'
151
+ label: getLocaleText('CMD.optionThird', null, '选项三'),
152
+ value: getLocaleText('CMD.optionThird', null, '选项三')
153
153
  }
154
154
  ]);
155
155
  var _props_checkboxMode;
@@ -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
  import RadioControl from './designer';
74
75
  import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions } from '@byteluck-fe/model-driven-core';
75
76
  var RadioControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
@@ -102,16 +103,16 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
102
103
  var _props_options;
103
104
  _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
104
105
  {
105
- label: '选项一',
106
- value: '选项一'
106
+ label: getLocaleText('CMD.optionOne', null, '选项一'),
107
+ value: getLocaleText('CMD.optionOne', null, '选项一')
107
108
  },
108
109
  {
109
- label: '选项二',
110
- value: '选项二'
110
+ label: getLocaleText('CMD.optionTwo', null, '选项二'),
111
+ value: getLocaleText('CMD.optionTwo', null, '选项二')
111
112
  },
112
113
  {
113
- label: '选项三',
114
- value: '选项三'
114
+ label: getLocaleText('CMD.optionThird', null, '选项三'),
115
+ value: getLocaleText('CMD.optionThird', null, '选项三')
115
116
  }
116
117
  ]);
117
118
  var _props_radioMode;
@@ -108,33 +108,33 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
108
108
  ]), _define_property(_this, "options", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "optionConfig", void 0 // 选项配置 custom datasource
109
109
  ), _define_property(_this, "defaultValue", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "allowCopyOptions", void 0 //允许复制选项
110
110
  ), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
111
- ), /**
112
- * 表单打开方式
113
- * @defaultValue []
114
- * @public
115
- */ _define_property(_this, "viewFormModelType", void 0), /**
116
- * 查看详情
117
- * @defaultValue false
118
- * @public
111
+ ), /**
112
+ * 表单打开方式
113
+ * @defaultValue []
114
+ * @public
115
+ */ _define_property(_this, "viewFormModelType", void 0), /**
116
+ * 查看详情
117
+ * @defaultValue false
118
+ * @public
119
119
  */ _define_property(_this, "canViewForm", void 0 //https://www.tapd.cn/49877295/prong/stories/view/1149877295001003559
120
- ), /**
121
- * 选择表单
122
- * @defaultValue 空
123
- * @public
120
+ ), /**
121
+ * 选择表单
122
+ * @defaultValue 空
123
+ * @public
124
124
  */ _define_property(_this, "formBind", void 0);
125
125
  var _props_options;
126
126
  _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
127
127
  {
128
- label: '选项一',
129
- value: '选项一'
128
+ label: getLocaleText('CMD.optionOne', null, '选项一'),
129
+ value: getLocaleText('CMD.optionOne', null, '选项一')
130
130
  },
131
131
  {
132
- label: '选项二',
133
- value: '选项二'
132
+ label: getLocaleText('CMD.optionTwo', null, '选项二'),
133
+ value: getLocaleText('CMD.optionTwo', null, '选项二')
134
134
  },
135
135
  {
136
- label: '选项三',
137
- value: '选项三'
136
+ label: getLocaleText('CMD.optionThird', null, '选项三'),
137
+ value: getLocaleText('CMD.optionThird', null, '选项三')
138
138
  }
139
139
  ]);
140
140
  var _props_defaultShowOptions;
@@ -123,33 +123,33 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
123
123
  props
124
124
  ]), _define_property(_this, "options", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "optionConfig", void 0 // 选项配置 custom datasource
125
125
  ), _define_property(_this, "defaultValue", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
126
- ), /**
127
- * 表单打开方式
128
- * @defaultValue []
129
- * @public
130
- */ _define_property(_this, "viewFormModelType", void 0), /**
131
- * 查看详情
132
- * @defaultValue false
133
- * @public
126
+ ), /**
127
+ * 表单打开方式
128
+ * @defaultValue []
129
+ * @public
130
+ */ _define_property(_this, "viewFormModelType", void 0), /**
131
+ * 查看详情
132
+ * @defaultValue false
133
+ * @public
134
134
  */ _define_property(_this, "canViewForm", void 0 //https://www.tapd.cn/49877295/prong/stories/view/1149877295001003559
135
- ), /**
136
- * 选择表单
137
- * @defaultValue 空
138
- * @public
135
+ ), /**
136
+ * 选择表单
137
+ * @defaultValue 空
138
+ * @public
139
139
  */ _define_property(_this, "formBind", void 0);
140
140
  var _props_options;
141
141
  _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
142
142
  {
143
- label: '选项一',
144
- value: '选项一'
143
+ label: getLocaleText('CMD.optionOne', null, '选项一'),
144
+ value: getLocaleText('CMD.optionOne', null, '选项一')
145
145
  },
146
146
  {
147
- label: '选项二',
148
- value: '选项二'
147
+ label: getLocaleText('CMD.optionTwo', null, '选项二'),
148
+ value: getLocaleText('CMD.optionTwo', null, '选项二')
149
149
  },
150
150
  {
151
- label: '选项三',
152
- value: '选项三'
151
+ label: getLocaleText('CMD.optionThird', null, '选项三'),
152
+ value: getLocaleText('CMD.optionThird', null, '选项三')
153
153
  }
154
154
  ]);
155
155
  var _props_defaultShowOptions;