mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-05 06:10:26 +08:00
14 lines
423 B
JavaScript
14 lines
423 B
JavaScript
|
|
Vue.component("more-options-angle", {
|
||
|
|
data: function () {
|
||
|
|
return {
|
||
|
|
isVisible: false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
methods: {
|
||
|
|
show: function () {
|
||
|
|
this.isVisible = !this.isVisible
|
||
|
|
this.$emit("change", this.isVisible)
|
||
|
|
}
|
||
|
|
},
|
||
|
|
template: `<a href="" @click.prevent="show()"><span v-if="!isVisible">更多选项</span><span v-if="isVisible">收起选项</span><i class="icon angle" :class="{down:!isVisible, up:isVisible}"></i></a>`
|
||
|
|
})
|