@byteluck-fe/model-driven-controls 3.0.0-beta.2 → 3.0.0-beta.4

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.
@@ -1,9 +1,9 @@
1
- /*
2
- * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
- * @Date: 2023-09-14 18:31:51
4
- * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
5
- * @LastEditTime: 2023-09-19 15:49:31
6
- * @FilePath: /model-driven/packages/controls/src/formControls/Attachment/property.ts
1
+ /*
2
+ * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
+ * @Date: 2023-09-14 18:31:51
4
+ * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
5
+ * @LastEditTime: 2023-09-19 15:49:31
6
+ * @FilePath: /model-driven/packages/controls/src/formControls/Attachment/property.ts
7
7
  */ function _assert_this_initialized(self) {
8
8
  if (self === void 0) {
9
9
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
@@ -135,8 +135,8 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
135
135
  props
136
136
  ]), _define_property(_this, "defaultValue", void 0), // 默认格式和列表格式,原应用内是title和table
137
137
  _define_property(_this, "showType", void 0), _define_property(_this, "resultShowType", void 0), _define_property(_this, "attachmentAccept", void 0), _define_property(_this, "maxLimit", void 0), _define_property(_this, "minLimit", void 0), _define_property(_this, "isShowWatermark", void 0 // 是否开启水印
138
- ), _define_property(_this, "watermarkFx", void 0), /**
139
- * maxSize 存储大小,单位为Byte,默认值为100MB
138
+ ), _define_property(_this, "watermarkFx", void 0), /**
139
+ * maxSize 存储大小,单位为Byte,默认值为100MB
140
140
  * */ _define_property(_this, "maxSize", void 0), // 附件按钮操作数组
141
141
  _define_property(_this, "operation", void 0), // 附件ai解释
142
142
  _define_property(_this, "aiExplanation", void 0), // 附件ai解释长度
@@ -170,7 +170,7 @@ _define_property(RichTextControl, "setting", [
170
170
  },
171
171
  {
172
172
  key: 'ai-content-search',
173
- visible: true
173
+ visible: false
174
174
  },
175
175
  {
176
176
  key: 'ai-generation',
@@ -137,18 +137,18 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
137
137
  var _this;
138
138
  _this = _call_super(this, RichTextProperty, [
139
139
  props
140
- ]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "defaultValue", void 0), /**
141
- * ai 显示内容搜索 false | true
142
- * @defaultValue false
143
- * @public
144
- */ _define_property(_this, "aiContentSearch", void 0), /**
145
- * ai 生成 false | true
146
- * @defaultValue false
147
- * @public
148
- */ _define_property(_this, "aiGeneration", void 0), /**
149
- * ai 生成对应的总结、丰富、翻译等options
150
- * @defaultValue []
151
- * @public
140
+ ]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "defaultValue", void 0), /**
141
+ * ai 显示内容搜索 false | true
142
+ * @defaultValue false
143
+ * @public
144
+ */ _define_property(_this, "aiContentSearch", void 0), /**
145
+ * ai 生成 false | true
146
+ * @defaultValue false
147
+ * @public
148
+ */ _define_property(_this, "aiGeneration", void 0), /**
149
+ * ai 生成对应的总结、丰富、翻译等options
150
+ * @defaultValue []
151
+ * @public
152
152
  */ _define_property(_this, "aiOptions", void 0);
153
153
  var _props_maxLength;
154
154
  _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
@@ -168,17 +168,17 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
168
168
  _this.aiOptions = initAiOptions((_props_aiOptions = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _props_aiOptions !== void 0 ? _props_aiOptions : [
169
169
  {
170
170
  label: getLocaleText('CMD.aiOptionOneLabel', null, '总结'),
171
- cueWord: getLocaleText('CMD.aiOptionOneCurword', null, '帮我总结一下后面的内容,但是不要随意发挥:'),
171
+ cueWord: getLocaleText('CMD.aiOptionOneCurword', null, 'SUMM'),
172
172
  checked: true
173
173
  },
174
174
  {
175
175
  label: getLocaleText('CMD.aiOptionTwoLabel', null, '丰富'),
176
- cueWord: getLocaleText('CMD.aiOptionTwoCurword', null, '帮我丰富一下后面的内容:'),
176
+ cueWord: getLocaleText('CMD.aiOptionTwoCurword', null, 'RICH'),
177
177
  checked: false
178
178
  },
179
179
  {
180
180
  label: getLocaleText('CMD.aiOptionThreeLabel', null, '翻译'),
181
- cueWord: getLocaleText('CMD.aiOptionThreeCurword', null, '帮我翻译一下后面的内容:'),
181
+ cueWord: getLocaleText('CMD.aiOptionThreeCurword', null, 'TRANS'),
182
182
  checked: false
183
183
  }
184
184
  ]);
@@ -170,7 +170,7 @@ _define_property(TextareaControl, "setting", [
170
170
  },
171
171
  {
172
172
  key: 'ai-content-search',
173
- visible: true
173
+ visible: false
174
174
  },
175
175
  {
176
176
  key: 'ai-generation',
@@ -209,17 +209,17 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
209
209
  _this.aiOptions = initAiOptions((_props_aiOptions = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _props_aiOptions !== void 0 ? _props_aiOptions : [
210
210
  {
211
211
  label: getLocaleText('CMD.aiOptionOneLabel', null, '总结'),
212
- cueWord: getLocaleText('CMD.aiOptionOneCurword', null, '帮我总结一下后面的内容,但是不要随意发挥:'),
212
+ cueWord: getLocaleText('CMD.aiOptionOneCurword', null, 'SUMM'),
213
213
  checked: true
214
214
  },
215
215
  {
216
216
  label: getLocaleText('CMD.aiOptionTwoLabel', null, '丰富'),
217
- cueWord: getLocaleText('CMD.aiOptionTwoCurword', null, '帮我丰富一下后面的内容:'),
217
+ cueWord: getLocaleText('CMD.aiOptionTwoCurword', null, 'RICH'),
218
218
  checked: false
219
219
  },
220
220
  {
221
221
  label: getLocaleText('CMD.aiOptionThreeLabel', null, '翻译'),
222
- cueWord: getLocaleText('CMD.aiOptionThreeCurword', null, '帮我翻译一下后面的内容:'),
222
+ cueWord: getLocaleText('CMD.aiOptionThreeCurword', null, 'TRANS'),
223
223
  checked: false
224
224
  }
225
225
  ]);