Skip to content

Commit 48c82b9

Browse files
aQingYun7insummer
authored andcommitted
fix:修改search-bar组件缺少方法的bug (#276)
1 parent 143eb7b commit 48c82b9

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

dist/search-bar/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ Component({
8888
* 组件的方法列表
8989
*/
9090
methods: {
91+
onCancel(){
92+
this.triggerEvent('onCancel')
93+
},
9194
// input属性列表
9295
handleInputChange(event) {
9396
const {

examples/dist/search-bar/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ Component({
8888
* 组件的方法列表
8989
*/
9090
methods: {
91+
onCancel(){
92+
this.triggerEvent('onCancel')
93+
},
9194
// input属性列表
9295
handleInputChange(event) {
9396
const {

src/search-bar/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ Component({
8888
* 组件的方法列表
8989
*/
9090
methods: {
91+
onCancel(){
92+
this.triggerEvent('onCancel')
93+
},
9194
// input属性列表
9295
handleInputChange(event) {
9396
const {

0 commit comments

Comments
 (0)