no message

Former-commit-id: e45c769a59a33087d5ec164a03909a8118c9d2ae
Former-commit-id: b429872909e18b5cbb4f960e65154417b968fc7f
Former-commit-id: d3165644ec6164a07b69ad57aa539bcdccf7bb28
This commit is contained in:
李杨
2018-01-18 14:49:38 +08:00
parent d8af4bea4f
commit ad3ba6614e
4 changed files with 80 additions and 45 deletions

View File

@@ -2,6 +2,7 @@
<div>
<el-popover
ref="pop"
v-model="pop"
placement="bottom"
width="300"
trigger="click">
@@ -80,10 +81,17 @@ export default {
type: Boolean,
required: false,
default: false
},
autoClose: {
type: Boolean,
required: false,
default: true
}
},
data () {
return {
// 绑定弹出框
pop: false,
// 所有图标
icon,
// 组件内输入框的值
@@ -130,6 +138,9 @@ export default {
methods: {
selectIcon (iconName = '') {
this.$emit('input', iconName)
if (iconName && this.autoClose) {
this.pop = false
}
}
}
}