plain-design 1.0.0-beta.137 → 1.0.0-beta.138

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plain-design",
3
- "version": "1.0.0-beta.137",
3
+ "version": "1.0.0-beta.138",
4
4
  "description": "",
5
5
  "main": "dist/plain-design.min.js",
6
6
  "module": "dist/plain-design.commonjs.min.js",
@@ -86,7 +86,7 @@ export const $ai = (() => {
86
86
 
87
87
  const systemContent = `
88
88
  当前时间是:${createSimpleDate()["YYYY-MM-DD HH:mm:ss"]}
89
- 你是一名专业的自然一样分析师,你需要将用户描述转化为一个json对象数据;这个json对象的属性是确定的,json对象的属性名来源于以下的字段的field,这个属性对应的值需要你从用户描述中获取,没有的话就给默认值null;
89
+ 你是一名专业的自然语言分析师,你需要将用户描述转化为一个json对象数据;这个json对象的属性是确定的,json对象的属性名来源于以下的字段的field,这个属性对应的值需要你从用户描述中获取,没有的话就给默认值null;
90
90
  目前支持的字段:
91
91
  ${JSON.stringify(fields)}
92
92
 
@@ -207,7 +207,7 @@ export const useTableOptionAi = AutoModule.createRegistration((option) => {
207
207
  /*---------------------------------------处理搜索-------------------------------------------*/
208
208
 
209
209
  let hasSearch = false;
210
- const searchData: iTableAiOperateSearch['data'] | undefined = operateItems.find(i => i.type === "search")?.data;
210
+ const searchData: iTableAiOperateSearch['data'] | undefined = (operateItems as any).find((i: iTableAiOperate) => i.type === "search")?.data;
211
211
  if (!!searchData) {
212
212
 
213
213
  hasSearch = true;
@@ -320,7 +320,7 @@ export const useTableOptionAi = AutoModule.createRegistration((option) => {
320
320
 
321
321
  /*---------------------------------------处理排序-------------------------------------------*/
322
322
  let hasSort = false;
323
- const sortData: iTableAiOperateSort['data'] | undefined = operateItems.find(i => i.type === "sort")?.data;
323
+ const sortData: iTableAiOperateSort['data'] | undefined = (operateItems as any).find((i: iTableAiOperate) => i.type === "sort")?.data;
324
324
  if (!!sortData) {
325
325
  hasSort = true;
326
326
  option.settingSeniorSort.methods.update(sortData, false);
@@ -328,7 +328,7 @@ export const useTableOptionAi = AutoModule.createRegistration((option) => {
328
328
 
329
329
  /*---------------------------------------处理配置-------------------------------------------*/
330
330
  let hasConfig = false;
331
- const configData: iTableAiOperateConfig['data'] | undefined = operateItems.find(i => i.type === "config")?.data;
331
+ const configData: iTableAiOperateConfig['data'] | undefined = (operateItems as any).find((i: iTableAiOperate) => i.type === "config")?.data;
332
332
  if (!!configData) {
333
333
  hasConfig = true;
334
334
  await option.settingConfig.methods.updateItemPlc({