Skip to content

Commit 6142b8a

Browse files
committed
fix(button): template missing props
1 parent d104db4 commit 6142b8a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/calendar/__test__/__snapshots__/index.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ exports[`calendar :base 1`] = `
757757
appParameter=""
758758
ariaLabel=""
759759
class="class t-button t-class t-button--base t-button--primary t-button--rectangle t-button--size-medium t-button--block"
760-
data-custom="{{null}}"
760+
data-custom=""
761761
formType=""
762762
hoverClass="t-button--hover"
763763
hoverStartTime="{{20}}"

src/common/template/button.wxml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
<template name="button">
22
<t-button
33
t-id="{{tId || ''}}"
4+
style="{{style}}"
45
block="{{block || false}}"
56
class="{{rootClass || ''}}"
67
t-class="{{tClass}}"
78
disabled="{{disabled || false}}"
89
data-type="{{type}}"
910
data-extra="{{extra}}"
11+
custom-dataset="{{customDataset}}"
1012
content="{{content || ''}}"
1113
icon="{{icon || ''}}"
1214
loading="{{loading || false}}"
15+
loading-props="{{loadingProps}}"
1316
theme="{{theme || 'default'}}"
1417
ghost="{{ghost || false}}"
1518
shape="{{shape || 'rectangle'}}"

0 commit comments

Comments
 (0)