管灌系统农户端微信小程序(嘉峪关应用)
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
<wxs src="../common/utils.wxs" module="_" />
<import src="../common/template/icon.wxml" />
 
<view
  class="{{className}} class {{prefix}}-class"
  style="{{_._style([tagStyle, style, customStyle])}}"
  bind:tap="handleClick"
>
  <view aria-hidden="{{true}}" class="{{classPrefix}}__icon">
    <template wx:if="{{_icon}}" is="icon" data="{{ tClass: prefix + '-icon', ..._icon }}" />
    <slot name="icon" />
  </view>
  <view class="{{classPrefix}}__text">
    <slot />
  </view>
  <template
    wx:if="{{_closable}}"
    is="icon"
    data="{{class: classPrefix + '__icon-close', tClass: prefix + '-icon', bindclick: 'handleClose',  ariaRole: 'button', ariaLabel: '关闭',  ..._closable }}"
    catch:tap="handleClose"
  />
  <slot wx:else name="closable" />
</view>