File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11<template name="button">
22 <t-button
33 t-id="{{tId || ''}}"
4- style="{{style}}"
4+ style="{{style || '' }}"
55 block="{{block || false}}"
66 class="{{rootClass || ''}}"
77 t-class="{{tClass}}"
1212 content="{{content || ''}}"
1313 icon="{{icon || ''}}"
1414 loading="{{loading || false}}"
15- loading-props="{{loadingProps}}"
15+ loading-props="{{loadingProps || null }}"
1616 theme="{{theme || 'default'}}"
1717 ghost="{{ghost || false}}"
1818 shape="{{shape || 'rectangle'}}"
4040 bind:agreeprivacyauthorization="onTplButtonTap"
4141 aria-label="{{ariaLabel || ''}}"
4242 >
43- <slot />
43+ <slot wx:if="{{useDefaultSlot || false}}" />
4444 </t-button>
4545</template>
Original file line number Diff line number Diff line change 1010 bind:move="onMove"
1111 bind:end="onEnd"
1212 >
13- <template is="button" data="{{...buttonData}}" />
13+ <template is="button" data="{{useDefaultSlot: true, ...buttonData}}" />
1414 </t-draggable>
1515</template>
Original file line number Diff line number Diff line change 66 class="{{classPrefix}} class {{prefix}}-class"
77 style="right: 16px; bottom: 32px; {{_._style([style, customStyle])}}"
88 >
9- <template is="button" data="{{...buttonData}}" />
9+ <template is="button" data="{{useDefaultSlot: true, ...buttonData}}" />
1010 </view>
1111</template>
You can’t perform that action at this time.
0 commit comments