From 3282e95db0207ee133d1e98d9771dec9d83b0fc4 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 02 四月 2026 16:24:38 +0800
Subject: [PATCH] 2026.4.2 新增专题管理功能
---
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