管灌系统农户端微信小程序(嘉峪关应用)
zuoxiao
2024-02-26 3f7ec892d68f71e996489d14d9918dc332281b1e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<wxs src="../common/utils.wxs" module="_" />
<t-picker
  style="{{_._style([style, customStyle])}}"
  class="class {{prefix}}-class {{classPrefix}}"
  visible="{{visible}}"
  value="{{columnsValue}}"
  bind:pick="onColumnChange"
  bind:change="onConfirm"
  bind:cancel="onCancel"
  bind:visible-change="onVisibleChange"
  bind:close="onClose"
  header="{{header}}"
  title="{{title}}"
  confirmBtn="{{confirmBtn || locale.confirm}}"
  cancelBtn="{{cancelBtn || locale.cancel}}"
  popupProps="{{ popupProps }}"
>
  <slot slot="header" name="header" />
  <t-picker-item
    wx:for="{{columns}}"
    wx:key="index"
    class="{{_.cls(classPrefix + '__item', [['roomly', columns.length > 5 && index == 0]])}}"
    options="{{item}}"
    index="index"
  />
</t-picker>