Skip to content

Commit

Permalink
fix(date-picker): close #419, use TButton instead of t-button
Browse files Browse the repository at this point in the history
  • Loading branch information
BuptStEve authored and PengYYYYY committed Mar 10, 2022
1 parent 92def0a commit 29a53c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/date-picker/date-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -596,14 +596,14 @@ export default defineComponent({
{enableTimePicker && (
<div class={`${this.COMPONENT_NAME}--apply`}>
{enableTimePicker && (
<t-button theme="primary" variant="text" onClick={this.toggleTime}>
<TButton theme="primary" variant="text" onClick={this.toggleTime}>
{showTime ? global.selectDate : global.selectTime}
</t-button>
</TButton>
)}
{
<t-button theme="primary" onClick={this.clickedApply}>
<TButton theme="primary" onClick={() => this.clickedApply()}>
{global.confirm}
</t-button>
</TButton>
}
</div>
)}
Expand Down

0 comments on commit 29a53c8

Please sign in to comment.