amis icon indicating copy to clipboard operation
amis copied to clipboard

crud批量操作时,把选中的item中指定字段展示在tpl中,渲染出问题了

Open tanmengfei opened this issue 6 years ago • 4 comments

实现场景:

crud批量操作,把选中的item中指定字段展示在tpl中,渲染出问题了

存在的问题:

image 想把每一个item的某个字段,放到一个数组里,然后循环数组,分别渲染到span标签中 渲染出来是这样子的 image

当前方案:

请粘贴你当前方案的完整 amis schema 代码...

code here...

tanmengfei avatar Sep 07 '20 02:09 tanmengfei

因为${xxx}和<% %>不能混用,再去看下模板文档

RickCole21 avatar Sep 14 '20 02:09 RickCole21

因为${xxx}和<% %>不能混用,再去看下模板文档

那我如果想实现这种功能该咋办,其实就是想把选中的item里边的一个字段,展示在dialog里边

tanmengfei avatar Sep 14 '20 02:09 tanmengfei

<%= data.items.map() %>,具体代码我不写了吧,就是js代码

RickCole21 avatar Sep 14 '20 02:09 RickCole21

<%= data.items.map() %>,具体代码我不写了吧,就是js代码

好嘞,谢啦

tanmengfei avatar Sep 14 '20 03:09 tanmengfei