实现服务的缓存策略设置

This commit is contained in:
GoEdgeLab
2020-10-04 20:38:27 +08:00
parent db21a86825
commit 0bbd178b29
25 changed files with 502 additions and 133 deletions

View File

@@ -5,14 +5,15 @@ Vue.component("more-options-indicator", {
data: function () {
return {
visible: false
};
}
},
methods: {
changeVisible: function () {
this.visible = !this.visible;
this.visible = !this.visible
if (Tea.Vue != null) {
Tea.Vue.moreOptionsVisible = this.visible;
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>'