mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 21:50:28 +08:00
20 lines
561 B
JavaScript
20 lines
561 B
JavaScript
/**
|
|
* 更多选项
|
|
*/
|
|
Vue.component("more-options-indicator", {
|
|
data: function () {
|
|
return {
|
|
visible: false
|
|
}
|
|
},
|
|
methods: {
|
|
changeVisible: function () {
|
|
this.visible = !this.visible
|
|
if (Tea.Vue != null) {
|
|
Tea.Vue.moreOptionsVisible = this.visible
|
|
}
|
|
this.$emit("change", this.visible)
|
|
}
|
|
},
|
|
template: '<a href="" style="font-weight: normal" @click.prevent="changeVisible()"><span v-if="!visible">更多选项</span><span v-if="visible">收起选项</span> <i class="icon angle" :class="{down:!visible, up:visible}"></i> </a>'
|
|
}); |