Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(button): template missing props #3464

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(button): template missing props
betavs committed Jan 19, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 6142b8a889661fdbe9303ad0c42e5bc0ebc3131f
2 changes: 1 addition & 1 deletion src/calendar/__test__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
@@ -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}}"
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'}}"