riku
2025-04-27 f46786f11c5c08ead7501a82e5a71430ad69b782
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"