Skip to content

Commit 039ea55

Browse files
committed
fix(Tag): 修复禁用状态下仍能触发 lintap 事件的问题 (#795)
1 parent fd0a624 commit 039ea55

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

dist/tag/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/dist/tag/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ Component({
5555
},
5656
methods: {
5757
handleTap() {
58-
if (this.properties.disabled) return false;
58+
if(this.data.disable){
59+
return
60+
}
61+
5962
let options = {
6063
name: this.properties.name,
6164
cell: this.properties.cell,

src/tag/index.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,14 @@ Component({
5555
},
5656
methods: {
5757
handleTap() {
58-
if (this.properties.disabled) return false;
58+
if(this.data.disable){
59+
return
60+
}
61+
5962
let options = {
60-
name: this.properties.name,
61-
cell: this.properties.cell,
62-
select: this.properties.select
63+
name: this.data.name,
64+
cell: this.data.cell,
65+
select: this.data.select
6366
};
6467
this.triggerEvent('lintap', options, {
6568
bubbles: true,

0 commit comments

Comments
 (0)