chore: inherit click event

This commit is contained in:
chenjiahan
2020-08-26 14:14:55 +08:00
parent af94c92614
commit 48ff0f85fb
3 changed files with 2 additions and 16 deletions
+1 -6
View File
@@ -48,10 +48,6 @@ export default createComponent({
},
methods: {
onClick() {
this.$emit('click');
},
genText() {
const Text = (
<span class={bem('text', { ellipsis: !this.scrollable })}>
@@ -76,7 +72,6 @@ export default createComponent({
return (
<div
role="tab"
aria-selected={this.isActive}
class={[
bem({
active: this.isActive,
@@ -84,7 +79,7 @@ export default createComponent({
}),
]}
style={this.style}
onClick={this.onClick}
aria-selected={this.isActive}
>
{this.genText()}
</div>