管灌系统农户端微信小程序(嘉峪关应用)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<import src="../common/template/icon.wxml" />
<wxs src="../common/utils.wxs" module="_" />
 
<view
  style="{{_._style([style, customStyle])}}"
  class="class {{prefix}}-class {{classPrefix}} {{ !bordered || isLastChild ? classPrefix + '--borderless' : ''}} {{classPrefix}}--{{align}}"
  hover-class="{{ hover ? classPrefix + '--hover' : ''}}"
  hover-stay-time="70"
  bind:tap="onClick"
  aria-role="{{ariaRole || (arrow ? 'button' : '')}}"
  aria-label="{{ariaLabel}}"
>
  <view class="{{classPrefix}}__left {{prefix}}-class-left">
    <template
      wx:if="{{_leftIcon}}"
      is="icon"
      data="{{tClass: classPrefix + '__left-icon ' + prefix + '-class-left-icon', ..._leftIcon }}"
    />
    <slot name="left-icon" />
    <t-image
      wx:if="{{ image }}"
      shape="round"
      t-class="{{classPrefix}}__left-image {{prefix}}-class-image"
      src="{{ image }}"
    />
    <slot name="image" />
  </view>
  <view class="{{classPrefix}}__title {{prefix}}-class-center">
    <view class="{{classPrefix}}__title-text {{prefix}}-class-title">
      <block wx:if="{{ title }}"> {{ title}} </block>
      <slot name="title" />
      <block wx:if="{{required}}">
        <text decode class="{{classPrefix}}--required">&nbsp;*</text>
      </block>
    </view>
 
    <view class="{{classPrefix}}__description {{prefix}}-class-description">
      <view wx:if="{{ description }}" class="{{classPrefix}}__description-text">{{description}}</view>
      <slot name="description" />
    </view>
  </view>
 
  <view class="{{classPrefix}}__note {{prefix}}-class-note">
    <text wx:if="{{ note }}">{{note}}</text>
    <slot name="note" />
  </view>
 
  <view class="{{classPrefix}}__right {{prefix}}-class-right">
    <template
      wx:if="{{_arrow}}"
      is="icon"
      data="{{tClass: classPrefix + '__right-icon ' + prefix + '-class-right-icon', ..._arrow }}"
    />
    <block wx:else>
      <template
        wx:if="{{_rightIcon}}"
        is="icon"
        data="{{tClass: classPrefix + '__right-icon ' + prefix + '-class-right-icon', ..._rightIcon }}"
      />
      <slot name="right-icon" />
    </block>
  </view>
</view>