element-less 0.0.73 → 0.0.75
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/custom/dynamic/common/aiSystemPrompt.d.ts +6 -0
- package/custom/dynamic/common/propertys/checkbox.d.ts +3 -0
- package/custom/dynamic/common/propertys/radio.d.ts +9 -0
- package/custom/dynamic/common/propertys/select.d.ts +9 -0
- package/custom/dynamic/common/propertys/table.d.ts +145 -17
- package/custom/dynamic/designerView/index.d.ts +76 -0
- package/custom/dynamic/designerView/src/designerView.d.ts +24 -0
- package/custom/dynamic/designerView/src/designerView.vue.d.ts +48 -0
- package/element-less.cjs +1 -1
- package/element-less.iife.js +1 -1
- package/element-less.js +1 -1
- package/element-less.umd.cjs +1 -1
- package/index-BXQfXTR9.cjs +1 -0
- package/{index-C0SJ8qh4.js → index-CIeuUxxh.js} +889 -182
- package/inner-DYivJRIm.cjs +1 -0
- package/{inner-BVkvNO8N.js → inner-PWU9A8AN.js} +3 -3
- package/{innerItem-DQulGWbl.cjs → innerItem-DigBLlBQ.cjs} +1 -1
- package/{innerItem-COru-kKY.js → innerItem-DxZoiM2C.js} +1 -1
- package/{mode-csharp-CFYsL6uB.cjs → mode-csharp-ChMU2For.cjs} +1 -1
- package/{mode-csharp-D6MaIFhw.js → mode-csharp-ujSwp4Ss.js} +1 -1
- package/{mode-css-Dy8BzF_i.js → mode-css-BE9lm-IQ.js} +1 -1
- package/{mode-css-BgjQCLpV.cjs → mode-css-Dk67woe6.cjs} +1 -1
- package/{mode-javascript-8sxvp2xm.js → mode-javascript-BA7c9L6f.js} +1 -1
- package/{mode-javascript-BvlHrr1N.cjs → mode-javascript-BIhFLOZe.cjs} +1 -1
- package/{mode-json-BHDlkzCk.cjs → mode-json-DpuB5uMN.cjs} +1 -1
- package/{mode-json-DoxC9nzJ.js → mode-json-DvMBn-gb.js} +1 -1
- package/{mode-mysql-B7vGuPt6.js → mode-mysql-68NS3DBE.js} +1 -1
- package/{mode-mysql-Bg657uIn.cjs → mode-mysql-DCU8AKMn.cjs} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/index-BaFF5Gyj.cjs +0 -1
- package/inner-AI6AnYRd.cjs +0 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const AI_SYSTEM_PROMPT = "\u4F60\u662F\u4E00\u4E2A\u4F4E\u4EE3\u7801\u8868\u5355\u914D\u7F6E\u751F\u6210\u5668\u3002\u6839\u636E\u7528\u6237\u63CF\u8FF0\uFF0C\u8F93\u51FA\u7B26\u5408\u4EE5\u4E0B\u683C\u5F0F\u7684 JSON \u6570\u7EC4\u3002\u53EA\u8F93\u51FA JSON\uFF0C\u4E0D\u8981\u6709\u4EFB\u4F55\u989D\u5916\u6587\u5B57\u3001\u6CE8\u91CA\u6216\u4EE3\u7801\u5757\u6807\u8BB0\u3002\n\n# \u8282\u70B9\u7ED3\u6784\n\n\u6BCF\u4E2A\u8282\u70B9\u5FC5\u987B\u5305\u542B\u4EE5\u4E0B\u5B57\u6BB5\uFF1A\n- keyID: \u552F\u4E00ID\uFF0C\u683C\u5F0F \"key_\" + 6\u4F4D\u6570\u5B57\uFF08\u5982 \"key_123456\"\uFF09\n- keyName: \u663E\u793A\u540D\u79F0\uFF08\u4E2D\u6587\uFF09\n- keyCode: \u5B57\u6BB5\u540D\uFF08\u5C0F\u9A7C\u5CF0\uFF0C\u5BB9\u5668\u7C7B\u8282\u70B9\u4E3A\u7A7A\u5B57\u7B26\u4E32\"\"\uFF09\n- componentType: \u7EC4\u4EF6\u7C7B\u578B\uFF08\u89C1\u4E0B\u65B9\u6E05\u5355\uFF1BObject/Array \u6570\u636E\u8282\u70B9\u4E0D\u586B\u6B64\u5B57\u6BB5\uFF09\n- dataType: \u6570\u636E\u7C7B\u578B\uFF08String/Number/Bool/Object/Array/None\uFF09\n- arrayDataType: \u6570\u7EC4\u5143\u7D20\u7C7B\u578B\uFF0C\u4EC5\u5F53 dataType=\"Array\" \u65F6\u586B\u5199\uFF08Object/String/Number/Bool\uFF09\n- children: \u5B50\u8282\u70B9\u6570\u7EC4\uFF08\u53F6\u5B50\u8282\u70B9\u4E3A []\uFF09\n- config: \u5305\u542B formConfig\u3001baseConfig\u3001advancedConfig\u3001arrayConfig \u56DB\u4E2A\u5BF9\u8C61\n\n\u4E0D\u8981\u8F93\u51FA componentName\u3001componentGroup\u3001dataTypeName\u3001formItem \u7B49\u5B57\u6BB5\uFF08\u7531\u7CFB\u7EDF\u81EA\u52A8\u586B\u5145\uFF09\u3002\n\n# \u7EC4\u4EF6\u6E05\u5355\n\n## \u8868\u5355\u7EC4\u4EF6\uFF08\u6709\u5B57\u6BB5\u503C\u8F93\u51FA\uFF0C\u9700\u586B keyCode\uFF09\n\n| componentType | dataType | \u8BF4\u660E | \u5E38\u7528 baseConfig |\n|---|---|---|---|\n| Input | String | \u5355\u884C\u8F93\u5165\u6846 | placeholder, clearable, maxlength, showWordLimit, isTrim, width, prefixIcon, suffixIcon |\n| Textarea | String | \u591A\u884C\u6587\u672C | placeholder, rows, maxlength, clearable, resize, width |\n| InputNumber | Number | \u6570\u5B57\u8F93\u5165\u6846 | min, max, step, precision, controls-position, width |\n| Slider | Number | \u6ED1\u5757 | min, max, step, showInput |\n| Switch | Bool/String/Number | \u5F00\u5173 | active-text, inactive-text, active-value, inactive-value |\n| Select | String/Number/Bool | \u4E0B\u62C9\u9009\u62E9 | data[{label,value}], multiple, filterable, clearable, placeholder, width, url, labelField, valueField |\n| Radio | String/Number/Bool | \u5355\u9009 | type(radio/button), data[{label,value}], width, url |\n| Checkbox | String | \u591A\u9009 | type(checkbox/button), data[{label,value}], width, url |\n| Cascader | String | \u7EA7\u8054\u9009\u62E9 | url, labelField, valueField, childrenField, clearable, multiple |\n| Datepicker | String/Number | \u65E5\u671F\u9009\u62E9 | type(date/daterange/datetime/datetimerange/year/month/monthrange), format, valueFormat, clearable, width |\n| Timepicker | String/Number | \u65F6\u95F4\u9009\u62E9 | format, valueFormat, clearable, width |\n| Switch | Bool | \u5F00\u5173 | active-text, inactive-text |\n| Tree | String/Number | \u6811\u5F62\u9009\u62E9 | url, labelField, valueField, clearable, multiple |\n| ColorPicker | String | \u53D6\u8272\u5668 | showAlpha |\n| UploadPic | String | \u4E0A\u4F20\u56FE\u7247 | width, height, limit |\n| UploadMutiPic | String | \u4E0A\u4F20\u56FE\u96C6\uFF08\u591A\u56FE\uFF09| width, height, limit |\n| UploadFile | String | \u4E0A\u4F20\u6587\u4EF6 | accept, limit |\n| WangEditor | String | \u5BCC\u6587\u672C\u7F16\u8F91\u5668 | height |\n| AceEditor | String | \u4EE3\u7801\u7F16\u8F91\u5668 | mode(javascript/json/html/css/python/sql), height |\n| JsonEditor | String/Object | JSON \u7F16\u8F91\u5668 | height |\n| DataModal | String/Object/Array | \u5F39\u7A97\u9009\u62E9 | title, width, buttonLabel |\n| Caption | None/String | \u5206\u9694\u63CF\u8FF0\uFF08formItem:true\uFF09| title, description, type(primary/success/warning/danger) |\n| Table | Array | \u6570\u636E\u8868\u683C\uFF08formItem:true\uFF09| columns[{label,prop,width,sortable}], data, hasPage, maxHeight, url |\n\n## \u5BB9\u5668\u7EC4\u4EF6\uFF08\u4E0D\u542B\u5B57\u6BB5\u503C\uFF0CkeyCode \u4E3A \"\"\uFF0CdataType \u4E3A None\uFF09\n\n| componentType | \u8BF4\u660E | \u4E3B\u8981 baseConfig |\n|---|---|---|\n| Row | \u6805\u683C\u884C\uFF0C\u5B50\u8282\u70B9\u5FC5\u987B\u662F Col | gutter(\u9ED8\u8BA410), justify(start/end/center/space-between/space-around), align(top/middle/bottom) |\n| Col | \u6805\u683C\u5217\uFF0C\u5FC5\u987B\u5728 Row \u5185 | span(1-24\uFF0C\u5408\u8BA124), offset |\n| Card | \u5361\u7247\u5BB9\u5668 | header, shadow(always/hover/never) |\n| Collapse | \u6298\u53E0\u9762\u677F\uFF0C\u5B50\u8282\u70B9\u662F CollapseItem | accordion |\n| CollapseItem | \u6298\u53E0\u8282\u70B9\uFF0C\u5FC5\u987B\u5728 Collapse \u5185 | title, name |\n| Tabs | \u6807\u7B7E\u9875\uFF0C\u5B50\u8282\u70B9\u662F TabPane | type(border-card/card), tabPosition(top/right/bottom/left) |\n| TabPane | \u6807\u7B7E\u9009\u9879\uFF0C\u5FC5\u987B\u5728 Tabs \u5185 | label, name |\n| Dialog | \u5BF9\u8BDD\u6846 | title, width, fullscreen |\n| Drawer | \u62BD\u5C49 | title, size, direction(rtl/ltr/ttb/btt) |\n| Html | \u901A\u7528 div | display(flex), flex-wrap, justify-content, align-items, width, height, padding, background |\n| FormItem | \u8868\u5355\u9879\u5BB9\u5668 | label, labelWidth |\n| FormQuery | \u67E5\u8BE2\u8868\u5355\uFF08Object\u7C7B\u578B\uFF09 | labelWidth |\n| RequestForm | \u63A5\u53E3\u8BF7\u6C42\u8868\u5355 | url, method(GET/POST), buttonLabel |\n\n## \u5C55\u793A\u7EC4\u4EF6\uFF08\u4E0D\u542B\u5B57\u6BB5\u503C\uFF0CkeyCode \u4E3A \"\"\uFF09\n\n| componentType | \u8BF4\u660E | \u4E3B\u8981 baseConfig |\n|---|---|---|\n| Button | \u666E\u901A\u6309\u94AE | innerContent, type(primary/success/warning/danger/info), plain, text, round, eventClick |\n| ButtonSearch | \u67E5\u8BE2\u6309\u94AE | innerContent |\n| ButtonExport | \u5BFC\u51FA\u6309\u94AE | innerContent |\n| Tip | \u63D0\u793A\u5757 | title, content, type(primary/warning) |\n| Alert | \u8B66\u544A\u63D0\u793A | title, type(success/warning/info/error), description, closable |\n| Tag | \u6807\u7B7E | innerContent, type(success/info/warning/danger) |\n| Link | \u94FE\u63A5 | innerContent, href, type, underline |\n| Text | \u6587\u672C | innerContent, type, size |\n| Image | \u56FE\u7247 | src, width, height, fit(fill/contain/cover/none) |\n| Tooltip | \u6587\u5B57\u63D0\u793A | content, placement(top/bottom/left/right), effect(dark/light) |\n\n## Object/Array \u6570\u636E\u8282\u70B9\uFF08\u65E0 componentType\uFF0C\u7531 dataType \u9A71\u52A8\uFF09\n\n- dataType=\"Object\"\uFF1A\u5BF9\u8C61\u8282\u70B9\uFF0Cchildren \u653E\u5B50\u5B57\u6BB5\uFF0C\u8F93\u51FA {keyCode: {\u5B50\u5B57\u6BB5...}}\n- dataType=\"Array\" + arrayDataType=\"Object\"\uFF1A\u5BF9\u8C61\u6570\u7EC4\u8282\u70B9\uFF08\u4E0D\u542B componentType\uFF09\uFF0Cchildren \u5B9A\u4E49\u6570\u7EC4\u5143\u7D20\u7684\u5B57\u6BB5\u7ED3\u6784\uFF0C\u6BCF\u4E2A\u5B50\u8282\u70B9\u5C31\u662F\u4E00\u884C\u6570\u636E\u7684\u5B57\u6BB5\n- dataType=\"Array\" + arrayDataType=\"String/Number\"\uFF1A\u7B80\u5355\u503C\u6570\u7EC4\n- \u8FD9\u7C7B\u8282\u70B9\u6CA1\u6709 componentType \u5B57\u6BB5\n\n## Table \u53EF\u7F16\u8F91\u8868\u683C\uFF08\u63A8\u8350\u7528\u4E8E\u5BF9\u8C61\u6570\u7EC4\uFF09\n\n\u5F53\u9700\u8981\u8BA9\u7528\u6237\u5728\u8868\u683C\u4E2D\u7F16\u8F91\u591A\u884C\u6570\u636E\u65F6\uFF0C\u4F7F\u7528 componentType=\"Table\"\uFF0CdataType=\"Array\"\u3002\nTable \u901A\u8FC7 baseConfig.columns \u5B9A\u4E49\u5217\uFF0C\u6BCF\u5217\u9700\u8981 id\uFF08\u968F\u673A\u5B57\u7B26\u4E32\uFF09\u3001label\uFF08\u5217\u6807\u9898\uFF09\u3001prop\uFF08\u5B57\u6BB5\u540D\uFF09\u3001editComponent\uFF08\u7F16\u8F91\u7EC4\u4EF6\uFF09\u3002\n\u8BBE\u7F6E isEdit:true \u5F00\u542F\u884C\u5185\u7F16\u8F91\uFF0CcanAddRow:true \u5141\u8BB8\u65B0\u589E\u884C\u3002\n\nTable \u8282\u70B9\u7684 slots \u6570\u7EC4\u4E2D\u6BCF\u4E2A slot \u5BF9\u5E94\u4E00\u5217\u7684\u7F16\u8F91\u63D2\u69FD\uFF08name \u683C\u5F0F\u4E3A \"edit-{\u5217id}\"\uFF09\uFF0Cslot.children \u4E3A\u7A7A\u65F6\u4F7F\u7528 editComponent \u9ED8\u8BA4\u7F16\u8F91\u5668\uFF0C\u4E5F\u53EF\u4EE5\u5728 children \u4E2D\u653E\u5165\u81EA\u5B9A\u4E49\u7EC4\u4EF6\u3002\n\nTable \u8282\u70B9\u683C\u5F0F\uFF1A\n```json\n{\n \"keyID\": \"key_xxxxxx\",\n \"keyCode\": \"\u5217\u8868\u5B57\u6BB5\u540D\",\n \"keyName\": \"\u663E\u793A\u540D\u79F0\",\n \"dataType\": \"Array\",\n \"arrayDataType\": \"\",\n \"componentType\": \"Table\",\n \"children\": [],\n \"slots\": [\n { \"name\": \"edit-{\u5217id1}\", \"label\": \"{\u52171\u6807\u9898} \u7F16\u8F91\", \"children\": [] },\n { \"name\": \"edit-{\u5217id2}\", \"label\": \"{\u52172\u6807\u9898} \u7F16\u8F91\", \"children\": [] }\n ],\n \"config\": {\n \"formConfig\": {},\n \"baseConfig\": {\n \"rowKey\": \"\",\n \"url\": \"\",\n \"data\": {},\n \"columns\": [\n { \"id\": \"{\u5217id1}\", \"label\": \"{\u52171\u6807\u9898}\", \"prop\": \"{\u5B57\u6BB5\u540D1}\", \"type\": \"default\", \"width\": \"\", \"editComponent\": { \"name\": \"els-input\", \"props\": {} } },\n { \"id\": \"{\u5217id2}\", \"label\": \"{\u52172\u6807\u9898}\", \"prop\": \"{\u5B57\u6BB5\u540D2}\", \"type\": \"default\", \"width\": \"\", \"editComponent\": { \"name\": \"els-input\", \"props\": {} } }\n ],\n \"align\": \"center\",\n \"isEdit\": true,\n \"canAddRow\": true,\n \"hasPage\": false,\n \"maxHeight\": \"\"\n },\n \"advancedConfig\": {},\n \"arrayConfig\": {}\n }\n}\n```\n\u5217 id \u4F7F\u75288\u4F4D\u968F\u673A\u5B57\u6BCD\u6570\u5B57\u4E32\uFF0Cslot name \u683C\u5F0F\u5FC5\u987B\u4E0E\u5217 id \u4FDD\u6301\u4E00\u81F4\uFF08\"edit-\" + \u5217id\uFF09\u3002\n\n# \u914D\u7F6E\u8BF4\u660E\n\n## formConfig\uFF08\u5B57\u6BB5\u7EA7\u8868\u5355\u914D\u7F6E\uFF09\n- re_required: \u5FC5\u586B\u8868\u8FBE\u5F0F\uFF08\"\" \u4E0D\u5FC5\u586B\uFF0C\"true\" \u59CB\u7EC8\u5FC5\u586B\uFF0C\"currNode['field']?.value=='A'\" \u6761\u4EF6\u5FC5\u586B\uFF09\n- requiredMessage: \u5FC5\u586B\u63D0\u793A\u6587\u5B57\n- validType: \u5185\u7F6E\u9A8C\u8BC1\uFF08email/phone/idcard/url\uFF09\n- validExpression: \u81EA\u5B9A\u4E49\u9A8C\u8BC1\u8868\u8FBE\u5F0F\n- validMessage: \u9A8C\u8BC1\u5931\u8D25\u63D0\u793A\n- tip: \u5B57\u6BB5\u63D0\u793A\u6587\u5B57\n- tipPosition: \u63D0\u793A\u4F4D\u7F6E\uFF08left/right/top\uFF09\n\n## advancedConfig\uFF08\u9AD8\u7EA7\u914D\u7F6E\uFF0C\u6240\u6709\u7EC4\u4EF6\u5747\u652F\u6301\uFF09\n- vif: \u6761\u4EF6\u663E\u793A\u8868\u8FBE\u5F0F\uFF08true\u663E\u793A\uFF0Cfalse\u9690\u85CF\uFF09\u3002\u8BBF\u95EE\u5176\u4ED6\u5B57\u6BB5\u7528 currNode['keyCode'].value\n- disabled: \u7981\u7528\u8868\u8FBE\u5F0F\uFF0C\u540C\u4E0A\n- eventChange: \u503C\u53D8\u5316\u65F6\u89E6\u53D1\u7684 JS \u4EE3\u7801\n- style: \u52A8\u6001\u6837\u5F0F\u5B57\u7B26\u4E32\n\n# \u914D\u7F6E\u6848\u4F8B\n\n## \u6848\u4F8B1 - \u57FA\u672C\u8868\u5355\n```json\n[\n {\n \"keyID\": \"key_001001\",\n \"keyCode\": \"username\",\n \"keyName\": \"\u7528\u6237\u540D\",\n \"componentType\": \"Input\",\n \"dataType\": \"String\",\n \"arrayDataType\": \"\",\n \"children\": [],\n \"config\": {\n \"formConfig\": { \"re_required\": \"true\", \"requiredMessage\": \"\u8BF7\u8F93\u5165\u7528\u6237\u540D\" },\n \"baseConfig\": { \"placeholder\": \"\u8BF7\u8F93\u5165\u7528\u6237\u540D\", \"clearable\": true, \"maxlength\": \"50\" },\n \"advancedConfig\": { \"style\": \"\", \"vif\": \"\", \"disabled\": \"\", \"eventChange\": \"\" },\n \"arrayConfig\": {}\n }\n },\n {\n \"keyID\": \"key_001002\",\n \"keyCode\": \"gender\",\n \"keyName\": \"\u6027\u522B\",\n \"componentType\": \"Radio\",\n \"dataType\": \"String\",\n \"arrayDataType\": \"\",\n \"children\": [],\n \"config\": {\n \"formConfig\": {},\n \"baseConfig\": { \"type\": \"radio\", \"data\": [{\"label\": \"\u7537\", \"value\": \"male\"}, {\"label\": \"\u5973\", \"value\": \"female\"}] },\n \"advancedConfig\": { \"style\": \"\", \"vif\": \"\", \"disabled\": \"\", \"eventChange\": \"\" },\n \"arrayConfig\": {}\n }\n },\n {\n \"keyID\": \"key_001003\",\n \"keyCode\": \"role\",\n \"keyName\": \"\u89D2\u8272\",\n \"componentType\": \"Select\",\n \"dataType\": \"String\",\n \"arrayDataType\": \"\",\n \"children\": [],\n \"config\": {\n \"formConfig\": {},\n \"baseConfig\": { \"data\": [{\"label\": \"\u7BA1\u7406\u5458\", \"value\": \"admin\"}, {\"label\": \"\u666E\u901A\u7528\u6237\", \"value\": \"user\"}], \"placeholder\": \"\u8BF7\u9009\u62E9\u89D2\u8272\", \"clearable\": true },\n \"advancedConfig\": { \"style\": \"\", \"vif\": \"\", \"disabled\": \"\", \"eventChange\": \"\" },\n \"arrayConfig\": {}\n }\n }\n]\n```\n\n## \u6848\u4F8B2 - \u6805\u683C\u5E03\u5C40\uFF08Row + Col\uFF09\n```json\n[\n {\n \"keyID\": \"row_002001\",\n \"keyCode\": \"\",\n \"keyName\": \"\u6805\u683C\u884C\",\n \"componentType\": \"Row\",\n \"dataType\": \"None\",\n \"arrayDataType\": \"\",\n \"children\": [\n {\n \"keyID\": \"col_002001\",\n \"keyCode\": \"\",\n \"keyName\": \"\u5DE6\u5217\",\n \"componentType\": \"Col\",\n \"dataType\": \"None\",\n \"arrayDataType\": \"\",\n \"children\": [\n {\n \"keyID\": \"key_002001\",\n \"keyCode\": \"startDate\",\n \"keyName\": \"\u5F00\u59CB\u65E5\u671F\",\n \"componentType\": \"Datepicker\",\n \"dataType\": \"String\",\n \"arrayDataType\": \"\",\n \"children\": [],\n \"config\": { \"formConfig\": {}, \"baseConfig\": { \"type\": \"date\", \"valueFormat\": \"YYYY-MM-DD\", \"clearable\": true }, \"advancedConfig\": { \"style\": \"\", \"vif\": \"\", \"disabled\": \"\", \"eventChange\": \"\" }, \"arrayConfig\": {} }\n }\n ],\n \"config\": { \"formConfig\": {}, \"baseConfig\": { \"span\": 12 }, \"advancedConfig\": {}, \"arrayConfig\": {} }\n },\n {\n \"keyID\": \"col_002002\",\n \"keyCode\": \"\",\n \"keyName\": \"\u53F3\u5217\",\n \"componentType\": \"Col\",\n \"dataType\": \"None\",\n \"arrayDataType\": \"\",\n \"children\": [\n {\n \"keyID\": \"key_002002\",\n \"keyCode\": \"endDate\",\n \"keyName\": \"\u7ED3\u675F\u65E5\u671F\",\n \"componentType\": \"Datepicker\",\n \"dataType\": \"String\",\n \"arrayDataType\": \"\",\n \"children\": [],\n \"config\": { \"formConfig\": {}, \"baseConfig\": { \"type\": \"date\", \"valueFormat\": \"YYYY-MM-DD\", \"clearable\": true }, \"advancedConfig\": { \"style\": \"\", \"vif\": \"\", \"disabled\": \"\", \"eventChange\": \"\" }, \"arrayConfig\": {} }\n }\n ],\n \"config\": { \"formConfig\": {}, \"baseConfig\": { \"span\": 12 }, \"advancedConfig\": {}, \"arrayConfig\": {} }\n }\n ],\n \"config\": { \"formConfig\": {}, \"baseConfig\": { \"gutter\": 10 }, \"advancedConfig\": {}, \"arrayConfig\": {} }\n }\n]\n```\n\n## \u6848\u4F8B3 - Object \u5D4C\u5957\u5BF9\u8C61\n```json\n[\n {\n \"keyID\": \"key_003001\",\n \"keyCode\": \"address\",\n \"keyName\": \"\u5730\u5740\",\n \"dataType\": \"Object\",\n \"arrayDataType\": \"\",\n \"children\": [\n {\n \"keyID\": \"key_003002\",\n \"keyCode\": \"province\",\n \"keyName\": \"\u7701\u4EFD\",\n \"componentType\": \"Input\",\n \"dataType\": \"String\",\n \"arrayDataType\": \"\",\n \"children\": [],\n \"config\": { \"formConfig\": {}, \"baseConfig\": { \"placeholder\": \"\u8BF7\u8F93\u5165\u7701\u4EFD\" }, \"advancedConfig\": { \"style\": \"\", \"vif\": \"\", \"disabled\": \"\", \"eventChange\": \"\" }, \"arrayConfig\": {} }\n },\n {\n \"keyID\": \"key_003003\",\n \"keyCode\": \"city\",\n \"keyName\": \"\u57CE\u5E02\",\n \"componentType\": \"Input\",\n \"dataType\": \"String\",\n \"arrayDataType\": \"\",\n \"children\": [],\n \"config\": { \"formConfig\": {}, \"baseConfig\": { \"placeholder\": \"\u8BF7\u8F93\u5165\u57CE\u5E02\" }, \"advancedConfig\": { \"style\": \"\", \"vif\": \"\", \"disabled\": \"\", \"eventChange\": \"\" }, \"arrayConfig\": {} }\n }\n ],\n \"config\": { \"formConfig\": {}, \"baseConfig\": {}, \"advancedConfig\": {}, \"arrayConfig\": {} }\n }\n]\n```\n\n## \u6848\u4F8B4 - \u666E\u901A\u5BF9\u8C61\u6570\u7EC4\uFF08\u65E0 componentType\uFF0CdataType=Array + arrayDataType=Object\uFF09\n\n\u8FD9\u79CD\u65B9\u5F0F\u751F\u6210\u5D4C\u5957\u8868\u5355\uFF0C\u6BCF\u884C\u6570\u636E\u662F\u4E00\u4E2A\u5BF9\u8C61\uFF0Cchildren \u5B9A\u4E49\u6BCF\u4E2A\u5BF9\u8C61\u7684\u5B57\u6BB5\uFF1A\n```json\n[\n {\n \"keyID\": \"key_arr001\",\n \"keyCode\": \"members\",\n \"keyName\": \"\u6210\u5458\u5217\u8868\",\n \"dataType\": \"Array\",\n \"arrayDataType\": \"Object\",\n \"children\": [\n {\n \"keyID\": \"key_arr002\",\n \"keyCode\": \"name\",\n \"keyName\": \"\u59D3\u540D\",\n \"componentType\": \"Input\",\n \"dataType\": \"String\",\n \"arrayDataType\": \"\",\n \"children\": [],\n \"config\": { \"formConfig\": {}, \"baseConfig\": { \"placeholder\": \"\u8BF7\u8F93\u5165\u59D3\u540D\" }, \"advancedConfig\": { \"style\": \"\", \"vif\": \"\", \"disabled\": \"\", \"eventChange\": \"\" }, \"arrayConfig\": {} }\n },\n {\n \"keyID\": \"key_arr003\",\n \"keyCode\": \"age\",\n \"keyName\": \"\u5E74\u9F84\",\n \"componentType\": \"InputNumber\",\n \"dataType\": \"Number\",\n \"arrayDataType\": \"\",\n \"children\": [],\n \"config\": { \"formConfig\": {}, \"baseConfig\": { \"min\": \"0\", \"max\": \"150\" }, \"advancedConfig\": { \"style\": \"\", \"vif\": \"\", \"disabled\": \"\", \"eventChange\": \"\" }, \"arrayConfig\": {} }\n }\n ],\n \"config\": { \"formConfig\": {}, \"baseConfig\": {}, \"advancedConfig\": {}, \"arrayConfig\": {} }\n }\n]\n```\n\n## \u6848\u4F8B5 - Table \u53EF\u7F16\u8F91\u8868\u683C\uFF08\u63A8\u8350\uFF0C\u6BD4\u5BF9\u8C61\u6570\u7EC4\u66F4\u76F4\u89C2\uFF09\n\nTable \u8868\u683C\u9002\u5408\u9700\u8981\u7528\u6237\u7F16\u8F91\u591A\u884C\u6570\u636E\u7684\u573A\u666F\uFF0CisEdit:true \u5F00\u542F\u884C\u5185\u7F16\u8F91\uFF0CcanAddRow:true \u5141\u8BB8\u65B0\u589E\u884C\uFF1A\n```json\n[\n {\n \"keyID\": \"key_tbl001\",\n \"keyCode\": \"users\",\n \"keyName\": \"\u7528\u6237\u5217\u8868\",\n \"dataType\": \"Array\",\n \"arrayDataType\": \"\",\n \"componentType\": \"Table\",\n \"children\": [],\n \"slots\": [\n { \"name\": \"edit-AbC12345\", \"label\": \"\u59D3\u540D \u7F16\u8F91\", \"children\": [] },\n { \"name\": \"edit-DeF67890\", \"label\": \"\u5E74\u9F84 \u7F16\u8F91\", \"children\": [] },\n { \"name\": \"edit-GhI11223\", \"label\": \"\u90E8\u95E8 \u7F16\u8F91\", \"children\": [] }\n ],\n \"config\": {\n \"formConfig\": {},\n \"baseConfig\": {\n \"rowKey\": \"\",\n \"url\": \"\",\n \"data\": {},\n \"columns\": [\n { \"id\": \"AbC12345\", \"label\": \"\u59D3\u540D\", \"prop\": \"name\", \"type\": \"default\", \"width\": \"\", \"editComponent\": { \"name\": \"els-input\", \"props\": {} } },\n { \"id\": \"DeF67890\", \"label\": \"\u5E74\u9F84\", \"prop\": \"age\", \"type\": \"default\", \"width\": \"100\", \"editComponent\": { \"name\": \"els-input-number\", \"props\": { \"min\": 0 } } },\n { \"id\": \"GhI11223\", \"label\": \"\u90E8\u95E8\", \"prop\": \"dept\", \"type\": \"default\", \"width\": \"\", \"editComponent\": { \"name\": \"els-input\", \"props\": {} } }\n ],\n \"align\": \"center\",\n \"isEdit\": true,\n \"canAddRow\": true,\n \"hasPage\": false,\n \"maxHeight\": \"\"\n },\n \"advancedConfig\": {},\n \"arrayConfig\": {}\n }\n }\n]\n```\n\n## \u6848\u4F8B6 - \u6761\u4EF6\u663E\u793A/\u7981\u7528\uFF08advancedConfig.vif / disabled\uFF09\n```json\n[\n {\n \"keyID\": \"key_004001\",\n \"keyCode\": \"isVip\",\n \"keyName\": \"\u662F\u5426VIP\",\n \"componentType\": \"Switch\",\n \"dataType\": \"Bool\",\n \"arrayDataType\": \"\",\n \"children\": [],\n \"config\": {\n \"formConfig\": {},\n \"baseConfig\": { \"active-text\": \"\u662F\", \"inactive-text\": \"\u5426\" },\n \"advancedConfig\": { \"style\": \"\", \"vif\": \"\", \"disabled\": \"\", \"eventChange\": \"\" },\n \"arrayConfig\": {}\n }\n },\n {\n \"keyID\": \"key_004002\",\n \"keyCode\": \"vipLevel\",\n \"keyName\": \"VIP\u7B49\u7EA7\",\n \"componentType\": \"Select\",\n \"dataType\": \"String\",\n \"arrayDataType\": \"\",\n \"children\": [],\n \"config\": {\n \"formConfig\": {},\n \"baseConfig\": { \"data\": [{\"label\": \"\u9EC4\u91D1\", \"value\": \"gold\"}, {\"label\": \"\u94C2\u91D1\", \"value\": \"platinum\"}, {\"label\": \"\u94BB\u77F3\", \"value\": \"diamond\"}], \"placeholder\": \"\u8BF7\u9009\u62E9VIP\u7B49\u7EA7\" },\n \"advancedConfig\": { \"style\": \"\", \"vif\": \"currNode['isVip']?.value == true\", \"disabled\": \"\", \"eventChange\": \"\" },\n \"arrayConfig\": {}\n }\n },\n {\n \"keyID\": \"key_004003\",\n \"keyCode\": \"country\",\n \"keyName\": \"\u56FD\u5BB6\",\n \"componentType\": \"Select\",\n \"dataType\": \"String\",\n \"arrayDataType\": \"\",\n \"children\": [],\n \"config\": {\n \"formConfig\": {},\n \"baseConfig\": { \"data\": [{\"label\": \"\u4E2D\u56FD\", \"value\": \"CN\"}, {\"label\": \"\u7F8E\u56FD\", \"value\": \"US\"}], \"clearable\": true, \"placeholder\": \"\u8BF7\u9009\u62E9\u56FD\u5BB6\" },\n \"advancedConfig\": { \"style\": \"\", \"vif\": \"\", \"disabled\": \"\", \"eventChange\": \"\" },\n \"arrayConfig\": {}\n }\n },\n {\n \"keyID\": \"key_004004\",\n \"keyCode\": \"province\",\n \"keyName\": \"\u7701\u4EFD\",\n \"componentType\": \"Input\",\n \"dataType\": \"String\",\n \"arrayDataType\": \"\",\n \"children\": [],\n \"config\": {\n \"formConfig\": { \"re_required\": \"currNode['country']?.value == 'CN'\", \"requiredMessage\": \"\u8BF7\u8F93\u5165\u7701\u4EFD\" },\n \"baseConfig\": { \"placeholder\": \"\u8BF7\u8F93\u5165\u7701\u4EFD\" },\n \"advancedConfig\": { \"style\": \"\", \"vif\": \"currNode['country']?.value == 'CN'\", \"disabled\": \"\", \"eventChange\": \"\" },\n \"arrayConfig\": {}\n }\n }\n]\n```\n\n## \u6848\u4F8B5 - \u5FC5\u586B\u9A8C\u8BC1\u4E0E\u683C\u5F0F\u6821\u9A8C\n```json\n[\n {\n \"keyID\": \"key_005001\",\n \"keyCode\": \"email\",\n \"keyName\": \"\u90AE\u7BB1\",\n \"componentType\": \"Input\",\n \"dataType\": \"String\",\n \"arrayDataType\": \"\",\n \"children\": [],\n \"config\": {\n \"formConfig\": { \"re_required\": \"true\", \"requiredMessage\": \"\u8BF7\u8F93\u5165\u90AE\u7BB1\", \"validType\": \"email\", \"validMessage\": \"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u683C\u5F0F\", \"tip\": \"\u7528\u4E8E\u63A5\u6536\u901A\u77E5\", \"tipPosition\": \"right\" },\n \"baseConfig\": { \"placeholder\": \"\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740\", \"clearable\": true },\n \"advancedConfig\": { \"style\": \"\", \"vif\": \"\", \"disabled\": \"\", \"eventChange\": \"\" },\n \"arrayConfig\": {}\n }\n },\n {\n \"keyID\": \"key_005002\",\n \"keyCode\": \"phone\",\n \"keyName\": \"\u624B\u673A\u53F7\",\n \"componentType\": \"Input\",\n \"dataType\": \"String\",\n \"arrayDataType\": \"\",\n \"children\": [],\n \"config\": {\n \"formConfig\": { \"re_required\": \"true\", \"requiredMessage\": \"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\", \"validType\": \"phone\", \"validMessage\": \"\u8BF7\u8F93\u5165\u6B63\u786E\u768411\u4F4D\u624B\u673A\u53F7\" },\n \"baseConfig\": { \"placeholder\": \"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\", \"maxlength\": \"11\" },\n \"advancedConfig\": { \"style\": \"\", \"vif\": \"\", \"disabled\": \"\", \"eventChange\": \"\" },\n \"arrayConfig\": {}\n }\n }\n]\n```";
|
|
2
|
+
export declare function callAI(url: string, userPrompt: string, options?: {
|
|
3
|
+
systemPrompt?: string;
|
|
4
|
+
buildRequest?: (systemPrompt: string, userPrompt: string) => any;
|
|
5
|
+
pickResponse?: (data: any) => string;
|
|
6
|
+
}): Promise<any[]>;
|
|
@@ -355,6 +355,7 @@ export declare const property_checkbox: {
|
|
|
355
355
|
columns: ({
|
|
356
356
|
label: string;
|
|
357
357
|
prop: string;
|
|
358
|
+
syncTo: string;
|
|
358
359
|
width: string;
|
|
359
360
|
showSummary: boolean;
|
|
360
361
|
sortable: boolean;
|
|
@@ -379,6 +380,7 @@ export declare const property_checkbox: {
|
|
|
379
380
|
};
|
|
380
381
|
edit: boolean;
|
|
381
382
|
type: string;
|
|
383
|
+
syncTo?: undefined;
|
|
382
384
|
id?: undefined;
|
|
383
385
|
} | {
|
|
384
386
|
id: string;
|
|
@@ -391,6 +393,7 @@ export declare const property_checkbox: {
|
|
|
391
393
|
name: string;
|
|
392
394
|
props: {};
|
|
393
395
|
};
|
|
396
|
+
syncTo?: undefined;
|
|
394
397
|
showSummary?: undefined;
|
|
395
398
|
sortable?: undefined;
|
|
396
399
|
edit?: undefined;
|
|
@@ -358,6 +358,7 @@ export declare const property_radio: {
|
|
|
358
358
|
id: string;
|
|
359
359
|
label: string;
|
|
360
360
|
prop: string;
|
|
361
|
+
syncTo: string;
|
|
361
362
|
width: string;
|
|
362
363
|
showSummary: boolean;
|
|
363
364
|
sortable: boolean;
|
|
@@ -384,6 +385,7 @@ export declare const property_radio: {
|
|
|
384
385
|
};
|
|
385
386
|
edit: boolean;
|
|
386
387
|
type: string;
|
|
388
|
+
syncTo?: undefined;
|
|
387
389
|
} | {
|
|
388
390
|
id: string;
|
|
389
391
|
label: string;
|
|
@@ -396,6 +398,7 @@ export declare const property_radio: {
|
|
|
396
398
|
name: string;
|
|
397
399
|
props: {};
|
|
398
400
|
};
|
|
401
|
+
syncTo?: undefined;
|
|
399
402
|
showSummary?: undefined;
|
|
400
403
|
sortable?: undefined;
|
|
401
404
|
edit?: undefined;
|
|
@@ -596,6 +599,7 @@ export declare const property_radio: {
|
|
|
596
599
|
id: string;
|
|
597
600
|
label: string;
|
|
598
601
|
prop: string;
|
|
602
|
+
syncTo: string;
|
|
599
603
|
width: string;
|
|
600
604
|
showSummary: boolean;
|
|
601
605
|
sortable: boolean;
|
|
@@ -624,6 +628,7 @@ export declare const property_radio: {
|
|
|
624
628
|
};
|
|
625
629
|
edit: boolean;
|
|
626
630
|
type: string;
|
|
631
|
+
syncTo?: undefined;
|
|
627
632
|
} | {
|
|
628
633
|
id: string;
|
|
629
634
|
label: string;
|
|
@@ -637,6 +642,7 @@ export declare const property_radio: {
|
|
|
637
642
|
width?: undefined;
|
|
638
643
|
};
|
|
639
644
|
};
|
|
645
|
+
syncTo?: undefined;
|
|
640
646
|
showSummary?: undefined;
|
|
641
647
|
sortable?: undefined;
|
|
642
648
|
edit?: undefined;
|
|
@@ -837,6 +843,7 @@ export declare const property_radio: {
|
|
|
837
843
|
id: string;
|
|
838
844
|
label: string;
|
|
839
845
|
prop: string;
|
|
846
|
+
syncTo: string;
|
|
840
847
|
width: string;
|
|
841
848
|
showSummary: boolean;
|
|
842
849
|
sortable: boolean;
|
|
@@ -868,6 +875,7 @@ export declare const property_radio: {
|
|
|
868
875
|
};
|
|
869
876
|
edit: boolean;
|
|
870
877
|
type: string;
|
|
878
|
+
syncTo?: undefined;
|
|
871
879
|
} | {
|
|
872
880
|
id: string;
|
|
873
881
|
label: string;
|
|
@@ -881,6 +889,7 @@ export declare const property_radio: {
|
|
|
881
889
|
data?: undefined;
|
|
882
890
|
};
|
|
883
891
|
};
|
|
892
|
+
syncTo?: undefined;
|
|
884
893
|
showSummary?: undefined;
|
|
885
894
|
sortable?: undefined;
|
|
886
895
|
edit?: undefined;
|
|
@@ -206,6 +206,7 @@ export declare const property_select: {
|
|
|
206
206
|
id: string;
|
|
207
207
|
label: string;
|
|
208
208
|
prop: string;
|
|
209
|
+
syncTo: string;
|
|
209
210
|
width: string;
|
|
210
211
|
showSummary: boolean;
|
|
211
212
|
sortable: boolean;
|
|
@@ -232,6 +233,7 @@ export declare const property_select: {
|
|
|
232
233
|
};
|
|
233
234
|
edit: boolean;
|
|
234
235
|
type: string;
|
|
236
|
+
syncTo?: undefined;
|
|
235
237
|
} | {
|
|
236
238
|
id: string;
|
|
237
239
|
label: string;
|
|
@@ -244,6 +246,7 @@ export declare const property_select: {
|
|
|
244
246
|
name: string;
|
|
245
247
|
props: {};
|
|
246
248
|
};
|
|
249
|
+
syncTo?: undefined;
|
|
247
250
|
showSummary?: undefined;
|
|
248
251
|
sortable?: undefined;
|
|
249
252
|
edit?: undefined;
|
|
@@ -439,6 +442,7 @@ export declare const property_select: {
|
|
|
439
442
|
id: string;
|
|
440
443
|
label: string;
|
|
441
444
|
prop: string;
|
|
445
|
+
syncTo: string;
|
|
442
446
|
width: string;
|
|
443
447
|
showSummary: boolean;
|
|
444
448
|
sortable: boolean;
|
|
@@ -467,6 +471,7 @@ export declare const property_select: {
|
|
|
467
471
|
};
|
|
468
472
|
edit: boolean;
|
|
469
473
|
type: string;
|
|
474
|
+
syncTo?: undefined;
|
|
470
475
|
} | {
|
|
471
476
|
id: string;
|
|
472
477
|
label: string;
|
|
@@ -480,6 +485,7 @@ export declare const property_select: {
|
|
|
480
485
|
width?: undefined;
|
|
481
486
|
};
|
|
482
487
|
};
|
|
488
|
+
syncTo?: undefined;
|
|
483
489
|
showSummary?: undefined;
|
|
484
490
|
sortable?: undefined;
|
|
485
491
|
edit?: undefined;
|
|
@@ -675,6 +681,7 @@ export declare const property_select: {
|
|
|
675
681
|
id: string;
|
|
676
682
|
label: string;
|
|
677
683
|
prop: string;
|
|
684
|
+
syncTo: string;
|
|
678
685
|
width: string;
|
|
679
686
|
showSummary: boolean;
|
|
680
687
|
sortable: boolean;
|
|
@@ -706,6 +713,7 @@ export declare const property_select: {
|
|
|
706
713
|
};
|
|
707
714
|
edit: boolean;
|
|
708
715
|
type: string;
|
|
716
|
+
syncTo?: undefined;
|
|
709
717
|
} | {
|
|
710
718
|
id: string;
|
|
711
719
|
label: string;
|
|
@@ -719,6 +727,7 @@ export declare const property_select: {
|
|
|
719
727
|
data?: undefined;
|
|
720
728
|
};
|
|
721
729
|
};
|
|
730
|
+
syncTo?: undefined;
|
|
722
731
|
showSummary?: undefined;
|
|
723
732
|
sortable?: undefined;
|
|
724
733
|
edit?: undefined;
|
|
@@ -62,6 +62,7 @@ export declare const property_table: {
|
|
|
62
62
|
showBadge?: undefined;
|
|
63
63
|
buttonProps?: undefined;
|
|
64
64
|
function_confirm?: undefined;
|
|
65
|
+
function_open?: undefined;
|
|
65
66
|
align?: undefined;
|
|
66
67
|
"active-text"?: undefined;
|
|
67
68
|
"inactive-text"?: undefined;
|
|
@@ -129,6 +130,7 @@ export declare const property_table: {
|
|
|
129
130
|
showBadge?: undefined;
|
|
130
131
|
buttonProps?: undefined;
|
|
131
132
|
function_confirm?: undefined;
|
|
133
|
+
function_open?: undefined;
|
|
132
134
|
align?: undefined;
|
|
133
135
|
"active-text"?: undefined;
|
|
134
136
|
"inactive-text"?: undefined;
|
|
@@ -165,7 +167,7 @@ export declare const property_table: {
|
|
|
165
167
|
operateType: string;
|
|
166
168
|
slots: {
|
|
167
169
|
name: string;
|
|
168
|
-
children: {
|
|
170
|
+
children: ({
|
|
169
171
|
keyID: string;
|
|
170
172
|
keyName: string;
|
|
171
173
|
keyCode: string;
|
|
@@ -184,23 +186,71 @@ export declare const property_table: {
|
|
|
184
186
|
icon: string;
|
|
185
187
|
slots: never[];
|
|
186
188
|
config: {
|
|
187
|
-
formConfig: {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
189
|
+
formConfig: {};
|
|
190
|
+
baseConfig: {
|
|
191
|
+
title: string;
|
|
192
|
+
content: string;
|
|
193
|
+
rowKey?: undefined;
|
|
194
|
+
columns?: undefined;
|
|
195
|
+
re_columns?: undefined;
|
|
196
|
+
height?: undefined;
|
|
197
|
+
maxHeight?: undefined;
|
|
198
|
+
align?: undefined;
|
|
199
|
+
isEdit?: undefined;
|
|
200
|
+
dragRow?: undefined;
|
|
201
|
+
hasPage?: undefined;
|
|
202
|
+
innerContent?: undefined;
|
|
203
|
+
type?: undefined;
|
|
204
|
+
text?: undefined;
|
|
205
|
+
bg?: undefined;
|
|
206
|
+
eventClick?: undefined;
|
|
198
207
|
};
|
|
208
|
+
advancedConfig: {
|
|
209
|
+
style: string;
|
|
210
|
+
vif: string;
|
|
211
|
+
disabled: string;
|
|
212
|
+
eventChange: string;
|
|
213
|
+
};
|
|
214
|
+
arrayConfig: {};
|
|
215
|
+
};
|
|
216
|
+
value?: undefined;
|
|
217
|
+
} | {
|
|
218
|
+
keyID: string;
|
|
219
|
+
keyName: string;
|
|
220
|
+
keyCode: string;
|
|
221
|
+
children: never[];
|
|
222
|
+
dataType: string;
|
|
223
|
+
dataTypeName: string;
|
|
224
|
+
arrayDataTypeName: string;
|
|
225
|
+
arrayDataType: string;
|
|
226
|
+
componentGroup: string;
|
|
227
|
+
componentTypeLabel: string;
|
|
228
|
+
componentTypeName: string;
|
|
229
|
+
componentName: string;
|
|
230
|
+
componentType: string;
|
|
231
|
+
formItem: boolean;
|
|
232
|
+
componentShow: boolean;
|
|
233
|
+
icon: string;
|
|
234
|
+
slots: never[];
|
|
235
|
+
config: {
|
|
236
|
+
formConfig: {};
|
|
199
237
|
baseConfig: {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
238
|
+
rowKey: string;
|
|
239
|
+
columns: never[];
|
|
240
|
+
re_columns: string;
|
|
241
|
+
height: string;
|
|
242
|
+
maxHeight: string;
|
|
243
|
+
align: string;
|
|
244
|
+
isEdit: boolean;
|
|
245
|
+
dragRow: boolean;
|
|
246
|
+
hasPage: boolean;
|
|
247
|
+
title?: undefined;
|
|
248
|
+
content?: undefined;
|
|
249
|
+
innerContent?: undefined;
|
|
250
|
+
type?: undefined;
|
|
251
|
+
text?: undefined;
|
|
252
|
+
bg?: undefined;
|
|
253
|
+
eventClick?: undefined;
|
|
204
254
|
};
|
|
205
255
|
advancedConfig: {
|
|
206
256
|
style: string;
|
|
@@ -210,7 +260,55 @@ export declare const property_table: {
|
|
|
210
260
|
};
|
|
211
261
|
arrayConfig: {};
|
|
212
262
|
};
|
|
213
|
-
|
|
263
|
+
value: never[];
|
|
264
|
+
} | {
|
|
265
|
+
keyID: string;
|
|
266
|
+
keyName: string;
|
|
267
|
+
keyCode: string;
|
|
268
|
+
children: never[];
|
|
269
|
+
dataType: string;
|
|
270
|
+
dataTypeName: string;
|
|
271
|
+
arrayDataTypeName: string;
|
|
272
|
+
arrayDataType: string;
|
|
273
|
+
componentGroup: string;
|
|
274
|
+
componentTypeLabel: string;
|
|
275
|
+
componentTypeName: string;
|
|
276
|
+
componentName: string;
|
|
277
|
+
componentType: string;
|
|
278
|
+
formItem: boolean;
|
|
279
|
+
componentShow: boolean;
|
|
280
|
+
icon: string;
|
|
281
|
+
slots: never[];
|
|
282
|
+
config: {
|
|
283
|
+
formConfig: {};
|
|
284
|
+
baseConfig: {
|
|
285
|
+
innerContent: string;
|
|
286
|
+
type: string;
|
|
287
|
+
text: boolean;
|
|
288
|
+
bg: boolean;
|
|
289
|
+
eventClick: string;
|
|
290
|
+
title?: undefined;
|
|
291
|
+
content?: undefined;
|
|
292
|
+
rowKey?: undefined;
|
|
293
|
+
columns?: undefined;
|
|
294
|
+
re_columns?: undefined;
|
|
295
|
+
height?: undefined;
|
|
296
|
+
maxHeight?: undefined;
|
|
297
|
+
align?: undefined;
|
|
298
|
+
isEdit?: undefined;
|
|
299
|
+
dragRow?: undefined;
|
|
300
|
+
hasPage?: undefined;
|
|
301
|
+
};
|
|
302
|
+
advancedConfig: {
|
|
303
|
+
style: string;
|
|
304
|
+
vif: string;
|
|
305
|
+
disabled: string;
|
|
306
|
+
eventChange: string;
|
|
307
|
+
};
|
|
308
|
+
arrayConfig: {};
|
|
309
|
+
};
|
|
310
|
+
value?: undefined;
|
|
311
|
+
})[];
|
|
214
312
|
}[];
|
|
215
313
|
config: {
|
|
216
314
|
formConfig: {
|
|
@@ -244,6 +342,7 @@ export declare const property_table: {
|
|
|
244
342
|
type: string;
|
|
245
343
|
};
|
|
246
344
|
function_confirm: string;
|
|
345
|
+
function_open: string;
|
|
247
346
|
gutter?: undefined;
|
|
248
347
|
justify?: undefined;
|
|
249
348
|
tag?: undefined;
|
|
@@ -307,6 +406,24 @@ export declare const property_table: {
|
|
|
307
406
|
rowKey: string;
|
|
308
407
|
isEdit: boolean;
|
|
309
408
|
columns: ({
|
|
409
|
+
id: string;
|
|
410
|
+
label: string;
|
|
411
|
+
prop: string;
|
|
412
|
+
syncTo: string;
|
|
413
|
+
width: string;
|
|
414
|
+
showSummary: boolean;
|
|
415
|
+
sortable: boolean;
|
|
416
|
+
isEdit: boolean;
|
|
417
|
+
editComponent: {
|
|
418
|
+
name: string;
|
|
419
|
+
props: {
|
|
420
|
+
data?: undefined;
|
|
421
|
+
activeValue?: undefined;
|
|
422
|
+
inactiveValue?: undefined;
|
|
423
|
+
config?: undefined;
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
} | {
|
|
310
427
|
id: string;
|
|
311
428
|
label: string;
|
|
312
429
|
prop: string;
|
|
@@ -323,6 +440,7 @@ export declare const property_table: {
|
|
|
323
440
|
config?: undefined;
|
|
324
441
|
};
|
|
325
442
|
};
|
|
443
|
+
syncTo?: undefined;
|
|
326
444
|
} | {
|
|
327
445
|
id: string;
|
|
328
446
|
label: string;
|
|
@@ -343,6 +461,7 @@ export declare const property_table: {
|
|
|
343
461
|
config?: undefined;
|
|
344
462
|
};
|
|
345
463
|
};
|
|
464
|
+
syncTo?: undefined;
|
|
346
465
|
} | {
|
|
347
466
|
id: string;
|
|
348
467
|
label: string;
|
|
@@ -360,6 +479,7 @@ export declare const property_table: {
|
|
|
360
479
|
config?: undefined;
|
|
361
480
|
};
|
|
362
481
|
};
|
|
482
|
+
syncTo?: undefined;
|
|
363
483
|
} | {
|
|
364
484
|
id: string;
|
|
365
485
|
label: string;
|
|
@@ -577,6 +697,7 @@ export declare const property_table: {
|
|
|
577
697
|
inactiveValue?: undefined;
|
|
578
698
|
};
|
|
579
699
|
};
|
|
700
|
+
syncTo?: undefined;
|
|
580
701
|
})[];
|
|
581
702
|
isClientSort: boolean;
|
|
582
703
|
isClientPage: boolean;
|
|
@@ -691,6 +812,7 @@ export declare const property_table: {
|
|
|
691
812
|
gutter?: undefined;
|
|
692
813
|
justify?: undefined;
|
|
693
814
|
tag?: undefined;
|
|
815
|
+
function_open?: undefined;
|
|
694
816
|
align?: undefined;
|
|
695
817
|
"active-text"?: undefined;
|
|
696
818
|
"inactive-text"?: undefined;
|
|
@@ -785,6 +907,7 @@ export declare const property_table: {
|
|
|
785
907
|
showBadge?: undefined;
|
|
786
908
|
buttonProps?: undefined;
|
|
787
909
|
function_confirm?: undefined;
|
|
910
|
+
function_open?: undefined;
|
|
788
911
|
"active-text"?: undefined;
|
|
789
912
|
"inactive-text"?: undefined;
|
|
790
913
|
"active-value"?: undefined;
|
|
@@ -930,6 +1053,7 @@ export declare const property_table: {
|
|
|
930
1053
|
showBadge?: undefined;
|
|
931
1054
|
buttonProps?: undefined;
|
|
932
1055
|
function_confirm?: undefined;
|
|
1056
|
+
function_open?: undefined;
|
|
933
1057
|
"active-text"?: undefined;
|
|
934
1058
|
"inactive-text"?: undefined;
|
|
935
1059
|
"active-value"?: undefined;
|
|
@@ -999,6 +1123,7 @@ export declare const property_table: {
|
|
|
999
1123
|
showBadge?: undefined;
|
|
1000
1124
|
buttonProps?: undefined;
|
|
1001
1125
|
function_confirm?: undefined;
|
|
1126
|
+
function_open?: undefined;
|
|
1002
1127
|
align?: undefined;
|
|
1003
1128
|
};
|
|
1004
1129
|
advancedConfig: {
|
|
@@ -1107,6 +1232,7 @@ export declare const property_table: {
|
|
|
1107
1232
|
showBadge?: undefined;
|
|
1108
1233
|
buttonProps?: undefined;
|
|
1109
1234
|
function_confirm?: undefined;
|
|
1235
|
+
function_open?: undefined;
|
|
1110
1236
|
align?: undefined;
|
|
1111
1237
|
"active-text"?: undefined;
|
|
1112
1238
|
"inactive-text"?: undefined;
|
|
@@ -1175,6 +1301,7 @@ export declare const property_table: {
|
|
|
1175
1301
|
showBadge?: undefined;
|
|
1176
1302
|
buttonProps?: undefined;
|
|
1177
1303
|
function_confirm?: undefined;
|
|
1304
|
+
function_open?: undefined;
|
|
1178
1305
|
align?: undefined;
|
|
1179
1306
|
"active-text"?: undefined;
|
|
1180
1307
|
"inactive-text"?: undefined;
|
|
@@ -1287,6 +1414,7 @@ export declare const property_table: {
|
|
|
1287
1414
|
gutter?: undefined;
|
|
1288
1415
|
justify?: undefined;
|
|
1289
1416
|
tag?: undefined;
|
|
1417
|
+
function_open?: undefined;
|
|
1290
1418
|
align?: undefined;
|
|
1291
1419
|
"active-text"?: undefined;
|
|
1292
1420
|
"inactive-text"?: undefined;
|
|
@@ -71,6 +71,30 @@ export declare const ElsDesignerView: {
|
|
|
71
71
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
72
72
|
__epPropKey: true;
|
|
73
73
|
};
|
|
74
|
+
aiUrl: {
|
|
75
|
+
readonly type: import('vue').PropType<string>;
|
|
76
|
+
readonly required: false;
|
|
77
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
78
|
+
__epPropKey: true;
|
|
79
|
+
};
|
|
80
|
+
aiSystemPrompt: {
|
|
81
|
+
readonly type: import('vue').PropType<string>;
|
|
82
|
+
readonly required: false;
|
|
83
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
84
|
+
__epPropKey: true;
|
|
85
|
+
};
|
|
86
|
+
aiBuildRequest: {
|
|
87
|
+
readonly type: import('vue').PropType<(sys: string, prompt: string) => any>;
|
|
88
|
+
readonly required: false;
|
|
89
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
90
|
+
__epPropKey: true;
|
|
91
|
+
};
|
|
92
|
+
aiPickResponse: {
|
|
93
|
+
readonly type: import('vue').PropType<(data: any) => string>;
|
|
94
|
+
readonly required: false;
|
|
95
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
96
|
+
__epPropKey: true;
|
|
97
|
+
};
|
|
74
98
|
leftWidth: import('element-plus/es/utils/index.mjs').EpPropFinalized<(StringConstructor | NumberConstructor)[], unknown, unknown, string, boolean>;
|
|
75
99
|
rightWidth: import('element-plus/es/utils/index.mjs').EpPropFinalized<(StringConstructor | NumberConstructor)[], unknown, unknown, string, boolean>;
|
|
76
100
|
rightToolbar: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, string[], boolean>;
|
|
@@ -355,6 +379,30 @@ export declare const ElsDesignerView: {
|
|
|
355
379
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
356
380
|
__epPropKey: true;
|
|
357
381
|
};
|
|
382
|
+
aiUrl: {
|
|
383
|
+
readonly type: import('vue').PropType<string>;
|
|
384
|
+
readonly required: false;
|
|
385
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
386
|
+
__epPropKey: true;
|
|
387
|
+
};
|
|
388
|
+
aiSystemPrompt: {
|
|
389
|
+
readonly type: import('vue').PropType<string>;
|
|
390
|
+
readonly required: false;
|
|
391
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
392
|
+
__epPropKey: true;
|
|
393
|
+
};
|
|
394
|
+
aiBuildRequest: {
|
|
395
|
+
readonly type: import('vue').PropType<(sys: string, prompt: string) => any>;
|
|
396
|
+
readonly required: false;
|
|
397
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
398
|
+
__epPropKey: true;
|
|
399
|
+
};
|
|
400
|
+
aiPickResponse: {
|
|
401
|
+
readonly type: import('vue').PropType<(data: any) => string>;
|
|
402
|
+
readonly required: false;
|
|
403
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
404
|
+
__epPropKey: true;
|
|
405
|
+
};
|
|
358
406
|
leftWidth: import('element-plus/es/utils/index.mjs').EpPropFinalized<(StringConstructor | NumberConstructor)[], unknown, unknown, string, boolean>;
|
|
359
407
|
rightWidth: import('element-plus/es/utils/index.mjs').EpPropFinalized<(StringConstructor | NumberConstructor)[], unknown, unknown, string, boolean>;
|
|
360
408
|
rightToolbar: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, string[], boolean>;
|
|
@@ -555,6 +603,30 @@ export declare const ElsDesignerView: {
|
|
|
555
603
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
556
604
|
__epPropKey: true;
|
|
557
605
|
};
|
|
606
|
+
aiUrl: {
|
|
607
|
+
readonly type: import('vue').PropType<string>;
|
|
608
|
+
readonly required: false;
|
|
609
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
610
|
+
__epPropKey: true;
|
|
611
|
+
};
|
|
612
|
+
aiSystemPrompt: {
|
|
613
|
+
readonly type: import('vue').PropType<string>;
|
|
614
|
+
readonly required: false;
|
|
615
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
616
|
+
__epPropKey: true;
|
|
617
|
+
};
|
|
618
|
+
aiBuildRequest: {
|
|
619
|
+
readonly type: import('vue').PropType<(sys: string, prompt: string) => any>;
|
|
620
|
+
readonly required: false;
|
|
621
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
622
|
+
__epPropKey: true;
|
|
623
|
+
};
|
|
624
|
+
aiPickResponse: {
|
|
625
|
+
readonly type: import('vue').PropType<(data: any) => string>;
|
|
626
|
+
readonly required: false;
|
|
627
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
628
|
+
__epPropKey: true;
|
|
629
|
+
};
|
|
558
630
|
leftWidth: import('element-plus/es/utils/index.mjs').EpPropFinalized<(StringConstructor | NumberConstructor)[], unknown, unknown, string, boolean>;
|
|
559
631
|
rightWidth: import('element-plus/es/utils/index.mjs').EpPropFinalized<(StringConstructor | NumberConstructor)[], unknown, unknown, string, boolean>;
|
|
560
632
|
rightToolbar: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, string[], boolean>;
|
|
@@ -751,8 +823,12 @@ export declare const ElsDesignerView: {
|
|
|
751
823
|
readonly componentRelateDataType?: (() => Record<string, any>) | undefined;
|
|
752
824
|
readonly importProcess?: Function | (() => Function) | undefined;
|
|
753
825
|
readonly modelProps?: (() => import('../common').DynamicConfigProps) | undefined;
|
|
826
|
+
readonly aiUrl?: string | (() => string) | undefined;
|
|
754
827
|
readonly onBack?: Function | (() => Function) | undefined;
|
|
755
828
|
readonly toolbar?: (() => string[]) | undefined;
|
|
829
|
+
readonly aiSystemPrompt?: string | (() => string) | undefined;
|
|
830
|
+
readonly aiBuildRequest?: ((sys: string, prompt: string) => any) | (() => (sys: string, prompt: string) => any) | undefined;
|
|
831
|
+
readonly aiPickResponse?: ((data: any) => string) | (() => (data: any) => string) | undefined;
|
|
756
832
|
}) => void;
|
|
757
833
|
} & Record<string, any>;
|
|
758
834
|
export default ElsDesignerView;
|
|
@@ -73,6 +73,30 @@ export declare const designerViewProps: {
|
|
|
73
73
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
74
74
|
__epPropKey: true;
|
|
75
75
|
};
|
|
76
|
+
aiUrl: {
|
|
77
|
+
readonly type: PropType<string>;
|
|
78
|
+
readonly required: false;
|
|
79
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
80
|
+
__epPropKey: true;
|
|
81
|
+
};
|
|
82
|
+
aiSystemPrompt: {
|
|
83
|
+
readonly type: PropType<string>;
|
|
84
|
+
readonly required: false;
|
|
85
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
86
|
+
__epPropKey: true;
|
|
87
|
+
};
|
|
88
|
+
aiBuildRequest: {
|
|
89
|
+
readonly type: PropType<(sys: string, prompt: string) => any>;
|
|
90
|
+
readonly required: false;
|
|
91
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
92
|
+
__epPropKey: true;
|
|
93
|
+
};
|
|
94
|
+
aiPickResponse: {
|
|
95
|
+
readonly type: PropType<(data: any) => string>;
|
|
96
|
+
readonly required: false;
|
|
97
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
98
|
+
__epPropKey: true;
|
|
99
|
+
};
|
|
76
100
|
leftWidth: import('element-plus/es/utils/index.mjs').EpPropFinalized<(StringConstructor | NumberConstructor)[], unknown, unknown, string, boolean>;
|
|
77
101
|
rightWidth: import('element-plus/es/utils/index.mjs').EpPropFinalized<(StringConstructor | NumberConstructor)[], unknown, unknown, string, boolean>;
|
|
78
102
|
rightToolbar: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, string[], boolean>;
|