12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <import src="../common/template/icon.wxml" />
- <wxs src="../common/utils.wxs" module="_" />
- <button
- style="{{_._style([style, customStyle])}}"
- data-custom="{{ customDataset }}"
- class="class {{className}}"
- form-type="{{type}}"
- open-type="{{disabled ? '' : openType}}"
- hover-stop-propagation="{{hoverStopPropagation}}"
- hover-start-time="{{hoverStartTime}}"
- hover-stay-time="{{hoverStayTime}}"
- lang="{{lang}}"
- session-from="{{sessionFrom}}"
- hover-class="{{disabled ? '' : classPrefix + '--hover'}}"
- send-message-title="{{sendMessageTitle}}"
- send-message-path="{{sendMessagePath}}"
- send-message-img="{{sendMessageImg}}"
- app-parameter="{{appParameter}}"
- show-message-card="{{showMessageCard}}"
- catch:tap="handleTap"
- bind:getuserinfo="getuserinfo"
- bind:contact="contact"
- bind:getphonenumber="getphonenumber"
- bind:error="error"
- bind:opensetting="opensetting"
- bind:launchapp="launchapp"
- bind:chooseavatar="chooseavatar"
- aria-label="{{ariaLabel}}"
- >
- <template
- wx:if="{{iconName || _.isNoEmptyObj(iconData)}}"
- is="icon"
- data="{{class: classPrefix + '__icon', tClass: prefix + '-class-icon', ariaHidden: true, name: iconName, ...iconData}}"
- />
- <t-loading
- wx:if="{{loading}}"
- delay="{{loadingProps.delay || 0}}"
- duration="{{loadingProps.duration || 800}}"
- indicator="{{loadingProps.indicator || true}}"
- inheritColor="{{loadingProps.indicator || false}}"
- layout="{{loadingProps.layout || 'horizontal'}}"
- pause="{{loadingProps.pause || false}}"
- progress="{{loadingProps.progress || 0}}"
- reverse="{{loadingProps.reverse || false}}"
- size="{{loadingProps.size || '40rpx'}}"
- text="{{loadingProps.text || '' }}"
- theme="{{loadingProps.theme || 'circular'}}"
- loading
- t-class="{{classPrefix}}__loading {{classPrefix}}__loading--wrapper"
- t-class-indicator="{{classPrefix}}__loading--indicator {{prefix}}-class-loading"
- ></t-loading>
- <view class="{{classPrefix}}__content">
- <slot name="content" />
- <block>{{content}}</block>
- <slot />
- </view>
- </button>
|