mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 21:50:28 +08:00
19 lines
457 B
JavaScript
19 lines
457 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;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
template: '<a href="" style="font-weight: normal" @click.prevent="changeVisible()">更多选项 <i class="icon angle" :class="{down:!visible, up:visible}"></i> </a>'
|
||
|
|
});
|