Skip to content

Commit

Permalink
fix(button): template missing props
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs committed Jan 19, 2025
1 parent d104db4 commit 6142b8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/calendar/__test__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ exports[`calendar :base 1`] = `
appParameter=""
ariaLabel=""
class="class t-button t-class t-button--base t-button--primary t-button--rectangle t-button--size-medium t-button--block"
data-custom="{{null}}"
data-custom=""
formType=""
hoverClass="t-button--hover"
hoverStartTime="{{20}}"
Expand Down
3 changes: 3 additions & 0 deletions src/common/template/button.wxml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
<template name="button">
<t-button
t-id="{{tId || ''}}"
style="{{style}}"
block="{{block || false}}"
class="{{rootClass || ''}}"
t-class="{{tClass}}"
disabled="{{disabled || false}}"
data-type="{{type}}"
data-extra="{{extra}}"
custom-dataset="{{customDataset}}"
content="{{content || ''}}"
icon="{{icon || ''}}"
loading="{{loading || false}}"
loading-props="{{loadingProps}}"
theme="{{theme || 'default'}}"
ghost="{{ghost || false}}"
shape="{{shape || 'rectangle'}}"
Expand Down

0 comments on commit 6142b8a

Please sign in to comment.