实现HTTP部分功能

This commit is contained in:
刘祥超
2020-09-26 08:07:18 +08:00
parent 94cdd7abb8
commit 81121bb7dc
32 changed files with 280 additions and 147 deletions

View File

@@ -0,0 +1,14 @@
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>`
})