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

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',
@@ -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',
@@ -129,9 +129,9 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
129
129
  }
130
130
  return TextareaControlPropertyRuntimeRules;
131
131
  }(BaseControlPropertyRuntimeRules);
132
- /**
133
- * Textarea 多行文本
134
- * @public
132
+ /**
133
+ * Textarea 多行文本
134
+ * @public
135
135
  */ var TextareaProperty = /*#__PURE__*/ function(BaseControlProperty) {
136
136
  "use strict";
137
137
  _inherits(TextareaProperty, BaseControlProperty);
@@ -140,28 +140,28 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
140
140
  var _this;
141
141
  _this = _call_super(this, TextareaProperty, [
142
142
  props
143
- ]), /**
144
- * 最大长度
145
- * @defaultValue 50000
146
- * @public
147
- */ _define_property(_this, "maxLength", void 0), /**
148
- * 最小长度
149
- * @defaultValue 0
150
- * @public
151
- */ _define_property(_this, "minLength", void 0), /**
152
- * 默认值
153
- * @defaultValue ''
154
- * @public
143
+ ]), /**
144
+ * 最大长度
145
+ * @defaultValue 50000
146
+ * @public
147
+ */ _define_property(_this, "maxLength", void 0), /**
148
+ * 最小长度
149
+ * @defaultValue 0
150
+ * @public
151
+ */ _define_property(_this, "minLength", void 0), /**
152
+ * 默认值
153
+ * @defaultValue ''
154
+ * @public
155
155
  */ _define_property(_this, "defaultValue", void 0), // /**
156
156
  // * 行数设置,开启自适应高度开启时,为最小行数
157
157
  // * @defaultValue 4
158
158
  // * @public
159
159
  // */
160
160
  // public lineEllipsis: number
161
- /**
162
- * 行高设置 分为pc 和 移动 默认值为 RowHeight
163
- * @defaultValue MetaRowHeight
164
- * @public
161
+ /**
162
+ * 行高设置 分为pc 和 移动 默认值为 RowHeight
163
+ * @defaultValue MetaRowHeight
164
+ * @public
165
165
  */ _define_property(_this, "rowHeightSetting", void 0), // /**
166
166
  // * 自适应内容高度
167
167
  // * @defaultValue false
@@ -174,18 +174,18 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
174
174
  // * @public
175
175
  // */
176
176
  // public maxRows?: Number
177
- /**
178
- * ai 显示内容搜索 false | true
179
- * @defaultValue false
180
- * @public
181
- */ _define_property(_this, "aiContentSearch", void 0), /**
182
- * ai 生成 false | true
183
- * @defaultValue false
184
- * @public
185
- */ _define_property(_this, "aiGeneration", void 0), /**
186
- * ai 生成options
187
- * @defaultValue []
188
- * @public
177
+ /**
178
+ * ai 显示内容搜索 false | true
179
+ * @defaultValue false
180
+ * @public
181
+ */ _define_property(_this, "aiContentSearch", void 0), /**
182
+ * ai 生成 false | true
183
+ * @defaultValue false
184
+ * @public
185
+ */ _define_property(_this, "aiGeneration", void 0), /**
186
+ * ai 生成options
187
+ * @defaultValue []
188
+ * @public
189
189
  */ _define_property(_this, "aiOptions", void 0);
190
190
  var _props_maxLength;
191
191
  _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
@@ -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
  ]);