上一篇说的是自定义表单模板,这一篇则是针对表单模板的编辑。
在 components 文件目录下新建 formDetail 组件
formDetail.axml
<view class="bg-white padding-bottom" style="max-height:100vh;height:auto;overflow-y:auto">
<block a:for="{
{formList}}">
<view class="text-gray padding">
<text a:if="{
{item.required}}" class="text-red">*</text>
{
{ item.label }}
</view>
<view class="padding-left padding-right margin-left">
<!-- 单选 -->
<block a:if="{
{item.type=='radio'}}">
<radio-group onChange="radioChange" data-key="{
{item._vModel}}">
<label style="display: block;height:70rpx" a:for