mirror of
https://github.com/youzan/vant.git
synced 2025-12-18 02:06:02 +08:00
action sheet component
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<i class="zanui-icon" :class="'zan-icon-' + name"></i>
|
||||
<i class="zan-icon" :class="'zan-icon-' + name" @click="handleIconClick"></i>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -8,6 +8,12 @@
|
||||
|
||||
props: {
|
||||
name: String
|
||||
},
|
||||
|
||||
methods: {
|
||||
handleIconClick(event) {
|
||||
this.$emit('click', event);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user