实现Web静态文件分发

This commit is contained in:
GoEdgeLab
2020-09-26 11:21:52 +08:00
parent 86229e5a6f
commit afe4156395
14 changed files with 216 additions and 33 deletions

View File

@@ -0,0 +1,18 @@
Vue.component("more-options-tbody", {
data: function () {
return {
isVisible: false
}
},
methods: {
show: function () {
this.isVisible = !this.isVisible
this.$emit("change", this.isVisible)
}
},
template: `<tbody>
<tr>
<td colspan="2"><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></td>
</tr>
</tbody>`
})