From f46786f11c5c08ead7501a82e5a71430ad69b782 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期日, 27 四月 2025 17:39:24 +0800
Subject: [PATCH] 修复线索问题定位错误问题
---
components/form/index.wxml | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/components/form/index.wxml b/components/form/index.wxml
index cf20497..7073cb5 100644
--- a/components/form/index.wxml
+++ b/components/form/index.wxml
@@ -9,6 +9,19 @@
bind:change="onInputChange"
/>
</block>
+ <block wx:elif="{{item.inputType == 'textarea'}}">
+ <t-textarea
+ label="{{item.label}}"
+ model:value="{{item.value}}"
+ bordered
+ autofocus
+ autosize
+ confirm-type="next"
+ data-index="{{index}}"
+ placeholder="{{item.placeholder}}"
+ bind:change="onInputChange"
+ ></t-textarea>
+ </block>
<block wx:elif="{{item.inputType == 'switch'}}">
<t-cell title="{{item.label}}">
<t-switch
@@ -61,10 +74,13 @@
bind:change="onCascaderChange"
/>
</block>
+ <block wx:if="{{validated && item.required && !item.value}}">
+ <view class="tips">{{item.tips}}</view>
+ </block>
</block>
</block>
<slot></slot>
-<view class="btn-group">
+<view wx:if="editable" class="btn-group">
<t-button
block
theme="light"
--
Gitblit v1.9.3