Skip to content

Commit 4b82b5c

Browse files
authored
Merge pull request #8 from lowcoding/v1.4.11
🐞 fix: img
2 parents 141ab10 + c681141 commit 4b82b5c

File tree

2 files changed

+4
-106
lines changed

2 files changed

+4
-106
lines changed

README.md

Lines changed: 3 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
## 支持 ChatGPT
1212

13-
![](https://i.imgur.com/ZoiNQNV.gif)
13+
![](https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/c30eede4784e4f81a61102c3e85ed06c~tplv-k3u1fbpfcp-zoom-1.image?)
1414

1515
[清晰动图点这里](https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/c30eede4784e4f81a61102c3e85ed06c~tplv-k3u1fbpfcp-zoom-1.image?)
1616

@@ -188,7 +188,7 @@ routes 目录下创建新的 mock 文件
188188

189189
### 根据 ts 类型生成 mock
190190

191-
复制 ts 类型,比如(不需要复制 `export interface IFetchOrgnizationListResult`):
191+
复制 ts 类型,比如(不需要复制类型名称):
192192

193193
```ts
194194
{
@@ -274,104 +274,6 @@ https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/5b24b7d804ac4db1a3673fd2aa4aa4
274274
![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/f2f5863ce23b485bb1144c4d56829c6b~tplv-k3u1fbpfcp-zoom-1.image)
275275
![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/853eadf031e049c0ac22d63771b4ab7f~tplv-k3u1fbpfcp-zoom-1.image)
276276

277-
根据生成的 ts 类型,可直接生成对应 mock 服务。
278-
279-
```json
280-
{
281-
"filters": [
282-
{
283-
"label": "商户",
284-
"key": "merchant",
285-
"component": "input",
286-
"placeholder": "输入查询"
287-
},
288-
{
289-
"key": "orderNo",
290-
"label": "订单号",
291-
"component": "input",
292-
"placeholder": "输入查询"
293-
},
294-
{
295-
"key": "status",
296-
"label": "订单状态",
297-
"component": "select",
298-
"placeholder": "请选择"
299-
},
300-
{
301-
"label": "收货手机号",
302-
"key": "mobile",
303-
"component": "select",
304-
"placeholder": "输入查询"
305-
},
306-
{
307-
"key": "time",
308-
"label": "时间",
309-
"component": "select"
310-
}
311-
],
312-
"columns": [
313-
{
314-
"title": "订单号",
315-
"dataIndex": "orderNo",
316-
"key": "orderNo",
317-
"slot": true
318-
},
319-
{
320-
"title": "订单付款时间",
321-
"dataIndex": "payTime",
322-
"key": "payTime"
323-
},
324-
{
325-
"title": "订单状态",
326-
"dataIndex": "orderStatus",
327-
"key": "orderStatus"
328-
},
329-
{
330-
"title": "订单金额",
331-
"dataIndex": "orderAmount",
332-
"key": "orderAmount"
333-
},
334-
{
335-
"title": "商户",
336-
"dataIndex": "merchantInfo",
337-
"key": "merchantInfo",
338-
"slot": true
339-
},
340-
{
341-
"title": "客户信息",
342-
"dataIndex": "customerInfo",
343-
"key": "customerInfo",
344-
"slot": true
345-
},
346-
{
347-
"title": "关联合同",
348-
"dataIndex": "contractInfo",
349-
"key": "contractInfo",
350-
"slot": true
351-
}
352-
],
353-
"includeModifyModal": false,
354-
"pagination": {
355-
"show": true,
356-
"page": "page",
357-
"size": "size",
358-
"total": "result.total"
359-
},
360-
"fetchName": "fetchTableList",
361-
"result": "[\"result\"][\"records\"]",
362-
"serviceName": "getTableList",
363-
"modifyModal": {
364-
"formItems": [
365-
{
366-
"showMore": true,
367-
"component": "textarea",
368-
"required": true
369-
}
370-
]
371-
}
372-
}
373-
```
374-
375277
### 表单
376278

377279
选择表单区块,配置 Schema 表单
@@ -386,8 +288,4 @@ https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/5b24b7d804ac4db1a3673fd2aa4aa4
386288

387289
![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/ca76e8e939334df48d7bd3512dadf40a~tplv-k3u1fbpfcp-zoom-1.image)
388290

389-
配置 Schema 表单:复制旧区块的 schema.json 内容覆盖到当前区块的 schema.json 文件内。将 schema 字段内容导入网页 https://xrender.fun/~demos/docs-generator-demo-0 中重新配置。
390-
391-
![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/1ff82a358f9c4934859330099386d21d~tplv-k3u1fbpfcp-zoom-1.image)
392-
393-
![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/7c7954e3951049a69eb29d938d9823ca~tplv-k3u1fbpfcp-zoom-1.image)
291+
配置 Schema 表单:支持 amis、formily、form-render,创建区块的时候根据自己需要选择相应的类型。

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "lowcode",
44
"description": "lowcode tool, support ChatGPT",
55
"author": "wjkang <[email protected]>",
6-
"version": "1.4.10",
6+
"version": "1.4.11",
77
"icon": "asset/icon.png",
88
"publisher": "wjkang",
99
"repository": "https://github.com/lowcoding/lowcode-vscode",

0 commit comments

Comments
 (0)