123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <import src="../common/template/icon.wxml" />
- <wxs src="../common/utils.wxs" module="_" />
- <navigator
- class="{{className}} {{prefix}}-class"
- style="{{_._style([style, customStyle])}}"
- target="{{navigatorProps.target}}"
- url="{{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="none {{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">
- <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" />
- </view>
- <view class="{{classPrefix}}__suffix-icon">
- <slot name="suffix-icon" />
- <template
- wx:if="{{_suffixIcon}}"
- is="icon"
- data="{{tClass: prefix + '-class-suffix-icon', ariaHidden: true, ..._suffixIcon }}"
- />
- </view>
- </navigator>
|