From b515fae43490ab20977d559e19d4e5f63a4fd96d Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 25 四月 2025 16:42:39 +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