@byteluck-fe/model-driven-controls 7.0.0-props.57 → 7.0.0-props.58

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.
@@ -201,8 +201,10 @@ _define_property(RichTextControl, "setting", [
201
201
  key: 'min-length',
202
202
  visible: true
203
203
  },
204
- // { key: 'height', visible: true },
205
- // { key: 'toolbar-options', visible: true },
204
+ {
205
+ key: 'height',
206
+ visible: true
207
+ },
206
208
  {
207
209
  key: 'rich-text',
208
210
  visible: true
@@ -138,15 +138,14 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
138
138
  function RichTextProperty(props) {
139
139
  _class_call_check(this, RichTextProperty);
140
140
  var _this;
141
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
141
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10;
142
142
  _this = _call_super(this, RichTextProperty, [
143
143
  props
144
- ]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), // public height: number
145
- // public toolbarOptions: Array<string>
144
+ ]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "height", void 0), // public toolbarOptions: Array<string>
146
145
  _define_property(_this, "defaultValue", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "aiGeneration", void 0), _define_property(_this, "aiOptions", void 0), _define_property(_this, "autoHeight", void 0), _define_property(_this, "lineEllipsis", void 0);
147
146
  _this.maxLength = (_ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _ref !== void 0 ? _ref : 50000;
148
147
  _this.minLength = (_ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && _ref1 !== void 0 ? _ref1 : 0;
149
- // this.height = props?.height ?? 400
148
+ _this.height = (_ref2 = props === null || props === void 0 ? void 0 : props.height) !== null && _ref2 !== void 0 ? _ref2 : 400;
150
149
  // this.toolbarOptions = props?.toolbarOptions ?? [
151
150
  // 'undo', 'redo', '|',
152
151
  // 'forecolor', 'backcolor', 'bold', 'italic', 'underline', 'strikethrough', 'link', '|',
@@ -157,12 +156,12 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
157
156
  // 'table', 'image', 'hr', 'preview', '|',
158
157
  // 'fullscreen'
159
158
  // ]
160
- _this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
161
- _this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : RichTextControl.controlName;
162
- _this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : getLocaleText('CMD.pleaseEnter', null, '请输入');
163
- _this.aiContentSearch = (_ref5 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref5 !== void 0 ? _ref5 : false;
164
- _this.aiGeneration = (_ref6 = props === null || props === void 0 ? void 0 : props.aiGeneration) !== null && _ref6 !== void 0 ? _ref6 : false;
165
- _this.aiOptions = initAiOptions((_ref7 = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _ref7 !== void 0 ? _ref7 : [
159
+ _this.defaultValue = (_ref3 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
160
+ _this.caption = (_ref4 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref4 !== void 0 ? _ref4 : RichTextControl.controlName;
161
+ _this.placeholder = (_ref5 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref5 !== void 0 ? _ref5 : getLocaleText('CMD.pleaseEnter', null, '请输入');
162
+ _this.aiContentSearch = (_ref6 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref6 !== void 0 ? _ref6 : false;
163
+ _this.aiGeneration = (_ref7 = props === null || props === void 0 ? void 0 : props.aiGeneration) !== null && _ref7 !== void 0 ? _ref7 : false;
164
+ _this.aiOptions = initAiOptions((_ref8 = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _ref8 !== void 0 ? _ref8 : [
166
165
  {
167
166
  label: getLocaleText('CMD.aiOptionOneLabel', null, '总结'),
168
167
  cueWord: getLocaleText('CMD.aiOptionOneCurword', null, 'SUMM'),
@@ -179,8 +178,8 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
179
178
  checked: false
180
179
  }
181
180
  ]);
182
- _this.autoHeight = (_ref8 = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _ref8 !== void 0 ? _ref8 : false;
183
- _this.lineEllipsis = (_ref9 = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _ref9 !== void 0 ? _ref9 : 1;
181
+ _this.autoHeight = (_ref9 = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _ref9 !== void 0 ? _ref9 : false;
182
+ _this.lineEllipsis = (_ref10 = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _ref10 !== void 0 ? _ref10 : 1;
184
183
  return _this;
185
184
  }
186
185
  return RichTextProperty;