File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
<template name="button">
2
2
<t-button
3
3
t-id="{{tId || ''}}"
4
- style="{{style}}"
4
+ style="{{style || '' }}"
5
5
block="{{block || false}}"
6
6
class="{{rootClass || ''}}"
7
7
t-class="{{tClass}}"
12
12
content="{{content || ''}}"
13
13
icon="{{icon || ''}}"
14
14
loading="{{loading || false}}"
15
- loading-props="{{loadingProps}}"
15
+ loading-props="{{loadingProps || null }}"
16
16
theme="{{theme || 'default'}}"
17
17
ghost="{{ghost || false}}"
18
18
shape="{{shape || 'rectangle'}}"
40
40
bind:agreeprivacyauthorization="onTplButtonTap"
41
41
aria-label="{{ariaLabel || ''}}"
42
42
>
43
- <slot />
43
+ <slot wx:if="{{useDefaultSlot || false}}" />
44
44
</t-button>
45
45
</template>
Original file line number Diff line number Diff line change 10
10
bind:move="onMove"
11
11
bind:end="onEnd"
12
12
>
13
- <template is="button" data="{{...buttonData}}" />
13
+ <template is="button" data="{{useDefaultSlot: true, ...buttonData}}" />
14
14
</t-draggable>
15
15
</template>
Original file line number Diff line number Diff line change 6
6
class="{{classPrefix}} class {{prefix}}-class"
7
7
style="right: 16px; bottom: 32px; {{_._style([style, customStyle])}}"
8
8
>
9
- <template is="button" data="{{...buttonData}}" />
9
+ <template is="button" data="{{useDefaultSlot: true, ...buttonData}}" />
10
10
</view>
11
11
</template>
You can’t perform that action at this time.
0 commit comments