Skip to content

Commit

Permalink
chore(native)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaSang committed Jun 13, 2024
1 parent d571023 commit 05e92fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions src/Button/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ Component({
native: false,
},
didMount() {
if (this.renderer === 'native') {
this.setData({
native: true,
});
}
this.setData({
native: this.renderer === 'native',
});
},
mixins: [htmlType()],
methods: {
Expand Down
8 changes: 3 additions & 5 deletions src/Tips/TipsItem/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ Component({
native: false,
},
didMount() {
if (this.renderer === 'native') {
this.setData({
native: true,
});
}
this.setData({
native: this.renderer === 'native',
});
},
methods: {
onButtonTap() {
Expand Down

0 comments on commit 05e92fd

Please sign in to comment.