赞
踩
- <el-button type="primary" icon="el-icon-search">带图标按钮</el-button>
- <el-button type="primary">
- 图标在右侧<i class="el-icon-arrow-right el-icon--right"></i>
- </el-button>
<el-button ref="btn" @click="handleBtn()"></el-button>
- created() {
- // 触发按钮的点击事件
- this.$nextTick(()=>{
- this.$refs.btn.$emit('click')
- })
- },
- methods: {
- handleBtn() {
- alert(1111)
- }
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。