@byteluck-fe/model-driven-controls 7.0.0-props.31 → 7.0.0-props.33

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.
@@ -133,10 +133,6 @@ _define_property(LinkControl, "setting", [
133
133
  key: 'link-url',
134
134
  visible: true
135
135
  },
136
- {
137
- key: 'description',
138
- visible: true
139
- },
140
136
  {
141
137
  key: 'common-button-radio',
142
138
  visible: true,
@@ -170,10 +166,6 @@ _define_property(LinkControl, "setting", [
170
166
  name: 'icon',
171
167
  label: getLocaleText('CMD.1a781774579044216')
172
168
  },
173
- {
174
- key: 'script-setting',
175
- visible: true
176
- },
177
169
  {
178
170
  key: 'common-setting',
179
171
  visible: true,
@@ -81,19 +81,18 @@ var LinkProperty = /*#__PURE__*/ function(Property) {
81
81
  function LinkProperty(props) {
82
82
  _class_call_check(this, LinkProperty);
83
83
  var _this;
84
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
84
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
85
85
  _this = _call_super(this, LinkProperty, [
86
86
  props
87
- ]), _define_property(_this, "content", void 0), _define_property(_this, "url", void 0), _define_property(_this, "description", void 0), _define_property(_this, "position", void 0), _define_property(_this, "color", void 0), _define_property(_this, "scriptType", void 0), _define_property(_this, "scriptContent", void 0), _define_property(_this, "openMode", void 0), _define_property(_this, "icon", void 0);
87
+ ]), _define_property(_this, "content", void 0), _define_property(_this, "url", void 0), // public description: string
88
+ _define_property(_this, "position", void 0), _define_property(_this, "color", void 0), _define_property(_this, "openMode", void 0), _define_property(_this, "icon", void 0);
88
89
  _this.content = (_ref = props === null || props === void 0 ? void 0 : props.content) !== null && _ref !== void 0 ? _ref : getLocaleText('CMD.linkContent', null, '我是一个链接');
89
- _this.description = (_ref1 = props === null || props === void 0 ? void 0 : props.description) !== null && _ref1 !== void 0 ? _ref1 : '';
90
- _this.position = (_ref2 = props === null || props === void 0 ? void 0 : props.position) !== null && _ref2 !== void 0 ? _ref2 : 'left';
91
- _this.color = (_ref3 = props === null || props === void 0 ? void 0 : props.color) !== null && _ref3 !== void 0 ? _ref3 : 'primary';
92
- _this.scriptType = (_ref4 = props === null || props === void 0 ? void 0 : props.scriptType) !== null && _ref4 !== void 0 ? _ref4 : 'js';
93
- _this.scriptContent = (_ref5 = props === null || props === void 0 ? void 0 : props.scriptContent) !== null && _ref5 !== void 0 ? _ref5 : '';
94
- _this.url = (_ref6 = props === null || props === void 0 ? void 0 : props.url) !== null && _ref6 !== void 0 ? _ref6 : '';
95
- _this.openMode = (_ref7 = props === null || props === void 0 ? void 0 : props.openMode) !== null && _ref7 !== void 0 ? _ref7 : 'new';
96
- _this.icon = (_ref8 = props === null || props === void 0 ? void 0 : props.icon) !== null && _ref8 !== void 0 ? _ref8 : '';
90
+ // this.description = props?.description ?? ''
91
+ _this.position = (_ref1 = props === null || props === void 0 ? void 0 : props.position) !== null && _ref1 !== void 0 ? _ref1 : 'left';
92
+ _this.color = (_ref2 = props === null || props === void 0 ? void 0 : props.color) !== null && _ref2 !== void 0 ? _ref2 : 'primary';
93
+ _this.url = (_ref3 = props === null || props === void 0 ? void 0 : props.url) !== null && _ref3 !== void 0 ? _ref3 : '';
94
+ _this.openMode = (_ref4 = props === null || props === void 0 ? void 0 : props.openMode) !== null && _ref4 !== void 0 ? _ref4 : 'new';
95
+ _this.icon = (_ref5 = props === null || props === void 0 ? void 0 : props.icon) !== null && _ref5 !== void 0 ? _ref5 : '';
97
96
  return _this;
98
97
  }
99
98
  return LinkProperty;
@@ -159,7 +159,7 @@ _define_property(TextControl, "setting", [
159
159
  key: 'common-button-radio',
160
160
  visible: true,
161
161
  name: 'align',
162
- label: getLocaleText('CMD.33a81761912023674'),
162
+ label: '文本对齐方式',
163
163
  default: 'left',
164
164
  options: [
165
165
  {
@@ -228,10 +228,6 @@ _define_property(Department2Control, "setting", [
228
228
  key: 'department-defaultval',
229
229
  visible: true
230
230
  },
231
- {
232
- key: 'value-format',
233
- visible: true
234
- },
235
231
  {
236
232
  key: 'department-level',
237
233
  visible: true
@@ -127,11 +127,11 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
127
127
  function Department2Property(props) {
128
128
  _class_call_check(this, Department2Property);
129
129
  var _this;
130
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17;
130
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16;
131
131
  var _props_disabledSelectedFilters;
132
132
  _this = _call_super(this, Department2Property, [
133
133
  props
134
- ]), _define_property(_this, "showType", void 0), _define_property(_this, "range", void 0), _define_property(_this, "defaultValueType", void 0), _define_property(_this, "multiple", void 0), _define_property(_this, "rangeOptions", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "valueFormat", void 0), _define_property(_this, "displayLevel", void 0), _define_property(_this, "showSubDept", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "datasourceType", void 0), _define_property(_this, "businessType", void 0), _define_property(_this, "businessScope", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "defaultShowOptions", void 0), /**
134
+ ]), _define_property(_this, "showType", void 0), _define_property(_this, "range", void 0), _define_property(_this, "defaultValueType", void 0), _define_property(_this, "multiple", void 0), _define_property(_this, "rangeOptions", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "displayLevel", void 0), _define_property(_this, "showSubDept", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "datasourceType", void 0), _define_property(_this, "businessType", void 0), _define_property(_this, "businessScope", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "defaultShowOptions", void 0), /**
135
135
  * 不可选中部门的配置条件
136
136
  * */ _define_property(_this, "disabledSelectedFilters", void 0);
137
137
  _this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'default';
@@ -140,18 +140,17 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
140
140
  _this.defaultValueType = (_ref3 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref3 !== void 0 ? _ref3 : 'none';
141
141
  _this.rangeOptions = (_ref4 = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _ref4 !== void 0 ? _ref4 : [];
142
142
  _this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
143
- _this.valueFormat = (_ref6 = props === null || props === void 0 ? void 0 : props.valueFormat) !== null && _ref6 !== void 0 ? _ref6 : 'id';
144
- _this.displayLevel = (_ref7 = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _ref7 !== void 0 ? _ref7 : 1;
145
- _this.showSubDept = (_ref8 = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _ref8 !== void 0 ? _ref8 : true;
146
- _this.caption = (_ref9 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref9 !== void 0 ? _ref9 : Department2Control.controlName;
147
- _this.placeholder = (_ref10 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref10 !== void 0 ? _ref10 : getLocaleText('CMD.pleaseSelectDept', null, '请选择部门');
148
- _this.datasourceBind = new SuperDataSourceBind((_ref11 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref11 !== void 0 ? _ref11 : {
143
+ _this.displayLevel = (_ref6 = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _ref6 !== void 0 ? _ref6 : 1;
144
+ _this.showSubDept = (_ref7 = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _ref7 !== void 0 ? _ref7 : true;
145
+ _this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : Department2Control.controlName;
146
+ _this.placeholder = (_ref9 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref9 !== void 0 ? _ref9 : getLocaleText('CMD.pleaseSelectDept', null, '请选择部门');
147
+ _this.datasourceBind = new SuperDataSourceBind((_ref10 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref10 !== void 0 ? _ref10 : {
149
148
  attributes: Department2Control.controlCustomAttributes
150
149
  });
151
- _this.datasourceType = (_ref12 = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _ref12 !== void 0 ? _ref12 : DepartmentType.INTERNAL;
152
- _this.businessScope = (_ref13 = props === null || props === void 0 ? void 0 : props.businessScope) !== null && _ref13 !== void 0 ? _ref13 : [];
153
- _this.businessType = (_ref14 = props === null || props === void 0 ? void 0 : props.businessType) !== null && _ref14 !== void 0 ? _ref14 : AssignType.ALL;
154
- _this.openMultistageFilling = (_ref15 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref15 !== void 0 ? _ref15 : false;
150
+ _this.datasourceType = (_ref11 = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _ref11 !== void 0 ? _ref11 : DepartmentType.INTERNAL;
151
+ _this.businessScope = (_ref12 = props === null || props === void 0 ? void 0 : props.businessScope) !== null && _ref12 !== void 0 ? _ref12 : [];
152
+ _this.businessType = (_ref13 = props === null || props === void 0 ? void 0 : props.businessType) !== null && _ref13 !== void 0 ? _ref13 : AssignType.ALL;
153
+ _this.openMultistageFilling = (_ref14 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref14 !== void 0 ? _ref14 : false;
155
154
  _this.multistageFilling = [];
156
155
  if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
157
156
  props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
@@ -159,13 +158,13 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
159
158
  (_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
160
159
  });
161
160
  }
162
- _this.defaultShowOptions = (_ref16 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref16 !== void 0 ? _ref16 : false;
163
- _this.disabledSelectedFilters = (_ref17 = props === null || props === void 0 ? void 0 : (_props_disabledSelectedFilters = props.disabledSelectedFilters) === null || _props_disabledSelectedFilters === void 0 ? void 0 : _props_disabledSelectedFilters.map(function(item) {
161
+ _this.defaultShowOptions = (_ref15 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref15 !== void 0 ? _ref15 : false;
162
+ _this.disabledSelectedFilters = (_ref16 = props === null || props === void 0 ? void 0 : (_props_disabledSelectedFilters = props.disabledSelectedFilters) === null || _props_disabledSelectedFilters === void 0 ? void 0 : _props_disabledSelectedFilters.map(function(item) {
164
163
  if (item.children !== undefined) {
165
164
  return new FieldFilterConditions(item);
166
165
  }
167
166
  return new FieldFilterCondition(item);
168
- })) !== null && _ref17 !== void 0 ? _ref17 : [];
167
+ })) !== null && _ref16 !== void 0 ? _ref16 : [];
169
168
  return _this;
170
169
  }
171
170
  return Department2Property;
@@ -171,10 +171,6 @@ _define_property(Employee2Control, "setting", [
171
171
  key: 'default-state',
172
172
  visible: true
173
173
  },
174
- {
175
- key: 'value-format',
176
- visible: true
177
- },
178
174
  {
179
175
  key: 'placeholder',
180
176
  visible: true
@@ -127,28 +127,27 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
127
127
  function Employee2Property(props) {
128
128
  _class_call_check(this, Employee2Property);
129
129
  var _this;
130
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16;
130
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15;
131
131
  _this = _call_super(this, Employee2Property, [
132
132
  props
133
- ]), _define_property(_this, "showType", void 0), _define_property(_this, "range", void 0), _define_property(_this, "rangeOptions", void 0), _define_property(_this, "multiple", void 0), _define_property(_this, "defaultValueType", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "valueFormat", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "datasourceType", void 0), _define_property(_this, "insideType", void 0), _define_property(_this, "externalType", void 0), _define_property(_this, "externalScope", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "mainDeptFlag", void 0), _define_property(_this, "defaultShowOptions", void 0);
133
+ ]), _define_property(_this, "showType", void 0), _define_property(_this, "range", void 0), _define_property(_this, "rangeOptions", void 0), _define_property(_this, "multiple", void 0), _define_property(_this, "defaultValueType", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "datasourceType", void 0), _define_property(_this, "insideType", void 0), _define_property(_this, "externalType", void 0), _define_property(_this, "externalScope", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "mainDeptFlag", void 0), _define_property(_this, "defaultShowOptions", void 0);
134
134
  _this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'default';
135
135
  _this.range = (_ref1 = props === null || props === void 0 ? void 0 : props.range) !== null && _ref1 !== void 0 ? _ref1 : 'all';
136
136
  _this.rangeOptions = (_ref2 = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _ref2 !== void 0 ? _ref2 : [];
137
137
  _this.multiple = (_ref3 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref3 !== void 0 ? _ref3 : false;
138
138
  _this.defaultValueType = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref4 !== void 0 ? _ref4 : 'none';
139
139
  _this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
140
- _this.valueFormat = (_ref6 = props === null || props === void 0 ? void 0 : props.valueFormat) !== null && _ref6 !== void 0 ? _ref6 : 'id';
141
- _this.caption = (_ref7 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref7 !== void 0 ? _ref7 : Employee2Control.controlName;
142
- _this.placeholder = (_ref8 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref8 !== void 0 ? _ref8 : getLocaleText('CMD.pleaseEnterNameorEmail', null, '请输入人员姓名或邮箱');
143
- _this.datasourceBind = new SuperDataSourceBind((_ref9 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref9 !== void 0 ? _ref9 : {
140
+ _this.caption = (_ref6 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref6 !== void 0 ? _ref6 : Employee2Control.controlName;
141
+ _this.placeholder = (_ref7 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref7 !== void 0 ? _ref7 : getLocaleText('CMD.pleaseEnterNameorEmail', null, '请输入人员姓名或邮箱');
142
+ _this.datasourceBind = new SuperDataSourceBind((_ref8 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref8 !== void 0 ? _ref8 : {
144
143
  attributes: Employee2Control.controlCustomAttributes
145
144
  });
146
- _this.datasourceType = (_ref10 = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _ref10 !== void 0 ? _ref10 : OrganizeType.INTERNAL; //默认内部组织 EXTERNAL 外部组织
147
- _this.insideType = (_ref11 = props === null || props === void 0 ? void 0 : props.insideType) !== null && _ref11 !== void 0 ? _ref11 : InternalType.ADMIN;
148
- _this.externalType = (_ref12 = props === null || props === void 0 ? void 0 : props.externalType) !== null && _ref12 !== void 0 ? _ref12 : AssignType.ALL;
149
- _this.externalScope = (_ref13 = props === null || props === void 0 ? void 0 : props.externalScope) !== null && _ref13 !== void 0 ? _ref13 : [];
150
- _this.openMultistageFilling = (_ref14 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref14 !== void 0 ? _ref14 : false;
151
- _this.mainDeptFlag = (_ref15 = props === null || props === void 0 ? void 0 : props.mainDeptFlag) !== null && _ref15 !== void 0 ? _ref15 : false;
145
+ _this.datasourceType = (_ref9 = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _ref9 !== void 0 ? _ref9 : OrganizeType.INTERNAL; //默认内部组织 EXTERNAL 外部组织
146
+ _this.insideType = (_ref10 = props === null || props === void 0 ? void 0 : props.insideType) !== null && _ref10 !== void 0 ? _ref10 : InternalType.ADMIN;
147
+ _this.externalType = (_ref11 = props === null || props === void 0 ? void 0 : props.externalType) !== null && _ref11 !== void 0 ? _ref11 : AssignType.ALL;
148
+ _this.externalScope = (_ref12 = props === null || props === void 0 ? void 0 : props.externalScope) !== null && _ref12 !== void 0 ? _ref12 : [];
149
+ _this.openMultistageFilling = (_ref13 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref13 !== void 0 ? _ref13 : false;
150
+ _this.mainDeptFlag = (_ref14 = props === null || props === void 0 ? void 0 : props.mainDeptFlag) !== null && _ref14 !== void 0 ? _ref14 : false;
152
151
  _this.multistageFilling = [];
153
152
  if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
154
153
  props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
@@ -156,7 +155,7 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
156
155
  (_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
157
156
  });
158
157
  }
159
- _this.defaultShowOptions = (_ref16 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref16 !== void 0 ? _ref16 : false;
158
+ _this.defaultShowOptions = (_ref15 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref15 !== void 0 ? _ref15 : false;
160
159
  return _this;
161
160
  }
162
161
  return Employee2Property;
@@ -201,14 +201,8 @@ _define_property(RichTextControl, "setting", [
201
201
  key: 'min-length',
202
202
  visible: true
203
203
  },
204
- {
205
- key: 'height',
206
- visible: true
207
- },
208
- {
209
- key: 'toolbar-options',
210
- visible: true
211
- },
204
+ // { key: 'height', visible: true },
205
+ // { key: 'toolbar-options', visible: true },
212
206
  {
213
207
  key: 'rich-text',
214
208
  visible: true
@@ -138,57 +138,31 @@ 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, _ref10, _ref11;
141
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
142
142
  _this = _call_super(this, RichTextProperty, [
143
143
  props
144
- ]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "height", void 0), _define_property(_this, "toolbarOptions", void 0), _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);
144
+ ]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), // public height: number
145
+ // public toolbarOptions: Array<string>
146
+ _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);
145
147
  _this.maxLength = (_ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _ref !== void 0 ? _ref : 50000;
146
148
  _this.minLength = (_ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && _ref1 !== void 0 ? _ref1 : 0;
147
- _this.height = (_ref2 = props === null || props === void 0 ? void 0 : props.height) !== null && _ref2 !== void 0 ? _ref2 : 400;
148
- _this.toolbarOptions = (_ref3 = props === null || props === void 0 ? void 0 : props.toolbarOptions) !== null && _ref3 !== void 0 ? _ref3 : [
149
- 'undo',
150
- 'redo',
151
- '|',
152
- 'forecolor',
153
- 'backcolor',
154
- 'bold',
155
- 'italic',
156
- 'underline',
157
- 'strikethrough',
158
- 'link',
159
- '|',
160
- 'alignleft',
161
- 'aligncenter',
162
- 'alignright',
163
- 'alignjustify',
164
- 'outdent',
165
- 'indent',
166
- '|',
167
- 'styles',
168
- 'fontfamily',
169
- 'fontsize',
170
- '|',
171
- 'bullist',
172
- 'numlist',
173
- '|',
174
- 'blockquote',
175
- 'subscript',
176
- 'superscript',
177
- 'removeformat',
178
- '|',
179
- 'table',
180
- 'image',
181
- 'hr',
182
- 'preview',
183
- '|',
184
- 'fullscreen'
185
- ];
186
- _this.defaultValue = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref4 !== void 0 ? _ref4 : '';
187
- _this.caption = (_ref5 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref5 !== void 0 ? _ref5 : RichTextControl.controlName;
188
- _this.placeholder = (_ref6 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref6 !== void 0 ? _ref6 : getLocaleText('CMD.pleaseEnter', null, '请输入');
189
- _this.aiContentSearch = (_ref7 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref7 !== void 0 ? _ref7 : false;
190
- _this.aiGeneration = (_ref8 = props === null || props === void 0 ? void 0 : props.aiGeneration) !== null && _ref8 !== void 0 ? _ref8 : false;
191
- _this.aiOptions = initAiOptions((_ref9 = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _ref9 !== void 0 ? _ref9 : [
149
+ // this.height = props?.height ?? 400
150
+ // this.toolbarOptions = props?.toolbarOptions ?? [
151
+ // 'undo', 'redo', '|',
152
+ // 'forecolor', 'backcolor', 'bold', 'italic', 'underline', 'strikethrough', 'link', '|',
153
+ // 'alignleft', 'aligncenter', 'alignright', 'alignjustify', 'outdent', 'indent', '|',
154
+ // 'styles', 'fontfamily', 'fontsize', '|',
155
+ // 'bullist', 'numlist', '|',
156
+ // 'blockquote', 'subscript', 'superscript', 'removeformat', '|',
157
+ // 'table', 'image', 'hr', 'preview', '|',
158
+ // 'fullscreen'
159
+ // ]
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 : [
192
166
  {
193
167
  label: getLocaleText('CMD.aiOptionOneLabel', null, '总结'),
194
168
  cueWord: getLocaleText('CMD.aiOptionOneCurword', null, 'SUMM'),
@@ -205,8 +179,8 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
205
179
  checked: false
206
180
  }
207
181
  ]);
208
- _this.autoHeight = (_ref10 = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _ref10 !== void 0 ? _ref10 : false;
209
- _this.lineEllipsis = (_ref11 = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _ref11 !== void 0 ? _ref11 : 1;
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;
210
184
  return _this;
211
185
  }
212
186
  return RichTextProperty;