管灌系统农户端微信小程序(嘉峪关应用)
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
<import src="../common/template/icon.wxml" />
<wxs src="../common/utils.wxs" module="_" />
 
<navigator
  class="{{className}} class {{prefix}}-class"
  style="{{_._style([style, customStyle])}}"
  target="{{navigatorProps.target}}"
  url="{{ !disabled && navigatorProps.url}}"
  open-type="{{navigatorProps.openType || 'navigate'}}"
  delta="{{navigatorProps.delta}}"
  app-id="{{navigatorProps.appId}}"
  path="{{navigatorProps.path}}"
  extra-data="{{navigatorProps.extraData}}"
  version="{{navigatorProps.version}}"
  short-link="{{navigatorProps.shortLink}}"
  hover-class="{{ hover && !disabled && classPrefix + '--hover' }} {{prefix}}-class-hover {{navigatorProps.hoverClass}}"
  hover-stop-propagation="navigatorProps.hoverStopPropagation"
  hover-start-time="{{navigatorProps.hoverStartTime}}"
  hover-stay-time="{{navigatorProps.hoverStayTime}}"
  bindsuccess="onSuccess"
  bindfail="onFail"
  bindcomplete="onComplete"
  aria-disabled="{{status === 'disabled'}}"
>
  <view class="{{classPrefix}}__prefix-icon {{prefix}}-class-prefix-icon">
    <slot name="prefix-icon" />
    <template
      wx:if="{{_prefixIcon}}"
      is="icon"
      data="{{tClass: prefix + '-class-prefix-icon', ariaHidden: true, ..._prefixIcon }}"
    />
  </view>
  <view class="{{classPrefix}}__content {{prefix}}-class-content">
    <block wx:if="{{content}}">{{content}}</block>
    <slot name="content" />
    <slot />
  </view>
  <view class="{{classPrefix}}__suffix-icon {{prefix}}-class-suffix-icon">
    <slot name="suffix-icon" />
    <template
      wx:if="{{_suffixIcon}}"
      is="icon"
      data="{{tClass: prefix + '-class-suffix-icon', ariaHidden: true, ..._suffixIcon }}"
    />
  </view>
</navigator>