alibaba / alibaba/lowcode-engine

ArraySetter中item长度控制及renderFooter使用

Open
#1,879 1 comment 0 reactions 1 assignee Claimed by @hzd822 View on GitHub
Dominant language
TypeScript
Stars
15.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

ArraySetter中可以无限添加item,但是某些场景下,想控制下长度,如最多增加2项,添加按钮就隐藏或禁止

![02F1E07B-C9E5-49AD-9760-404E2E5B7DEA](https://user-images.githubusercontent.com/2239335/231980467-4e740825-52dd-4413-b14d-fef215a87abf.png)

另外在查看ArraySetter中的源码,发现extraProps中有一个属性 renderFooter,
![20230414160050](https://user-images.githubusercontent.com/2239335/231983112-b6042954-abb8-49a7-b079-50cd6421a26c.jpg)

尝试在lowcode meta.ts中增加,但是不知道怎么返回一个node
![20230414160651](https://user-images.githubusercontent.com/2239335/231983868-26e27bfc-1694-4666-aa5c-d5759e01e6a9.jpg)

请指教!!!

## **Environments (please complete the following information) (required):** / **请提供如下信息(必填)**
- AliLowCodeEngine version: 1.0.18
- AliLowCodeEngineExt version: 1.0.6-beta.20
- Browser [e.g. chrome, safari] / 浏览器版本
- materials / plugins / tools / 其他物料 / 插件 / 工具链版本

> (this information can be collected via [the manual plugin](https://img.alicdn.com/imgextra/i1/O1CN0115zonY1IsgbkZ2ir7_!!6000000000949-2-tps-3066-1650.png) / 版本信息可[通过低代码用户手册插件收集](https://img.alicdn.com/imgextra/i1/O1CN0115zonY1IsgbkZ2ir7_!!6000000000949-2-tps-3066-1650.png))

## **Additional context (optional)** / **更多额外信息(可选)**
Any other context of the problem here. / 可以追加更多的额外信息,帮助定位问题

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.