@byteluck-fe/model-driven-controls 7.0.0-props.32 → 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.
- package/dist/esm/baseControls/Link/designer.js +0 -8
- package/dist/esm/baseControls/Link/property.js +9 -10
- package/dist/esm/baseControls/Text/designer.js +1 -1
- package/dist/esm/formControls/Department2/designer.js +0 -4
- package/dist/esm/formControls/Department2/property.js +14 -15
- package/dist/esm/formControls/Employee2/designer.js +0 -4
- package/dist/esm/formControls/Employee2/property.js +12 -13
- package/dist/esm/formControls/RichText/designer.js +2 -8
- package/dist/esm/formControls/RichText/property.js +23 -49
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/Link/property.d.ts +0 -21
- package/dist/types/formControls/Department2/property.d.ts +0 -7
- package/dist/types/formControls/Employee2/property.d.ts +0 -7
- package/dist/types/formControls/RichText/property.d.ts +0 -14
- package/package.json +2 -2
|
@@ -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
|
|
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),
|
|
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
|
-
|
|
90
|
-
_this.position = (
|
|
91
|
-
_this.color = (
|
|
92
|
-
_this.
|
|
93
|
-
_this.
|
|
94
|
-
_this.
|
|
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;
|
|
@@ -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
|
|
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, "
|
|
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.
|
|
144
|
-
_this.
|
|
145
|
-
_this.
|
|
146
|
-
_this.
|
|
147
|
-
_this.
|
|
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 = (
|
|
152
|
-
_this.businessScope = (
|
|
153
|
-
_this.businessType = (
|
|
154
|
-
_this.openMultistageFilling = (
|
|
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 = (
|
|
163
|
-
_this.disabledSelectedFilters = (
|
|
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 &&
|
|
167
|
+
})) !== null && _ref16 !== void 0 ? _ref16 : [];
|
|
169
168
|
return _this;
|
|
170
169
|
}
|
|
171
170
|
return Department2Property;
|
|
@@ -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
|
|
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, "
|
|
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.
|
|
141
|
-
_this.
|
|
142
|
-
_this.
|
|
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 = (
|
|
147
|
-
_this.insideType = (
|
|
148
|
-
_this.externalType = (
|
|
149
|
-
_this.externalScope = (
|
|
150
|
-
_this.openMultistageFilling = (
|
|
151
|
-
_this.mainDeptFlag = (
|
|
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 = (
|
|
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
|
-
|
|
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
|
|
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),
|
|
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
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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 = (
|
|
209
|
-
_this.lineEllipsis = (
|
|
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;
|