实现菜单的状态显示

This commit is contained in:
GoEdgeLab
2020-09-27 18:40:55 +08:00
parent 27e85a450a
commit 1353ad9e6d
17 changed files with 190 additions and 15 deletions

View File

@@ -15,11 +15,27 @@ Vue.component("http-gzip-box", {
gzip: gzip,
}
},
methods: {
isOn: function () {
return (!this.vIsLocation || this.vGzipRef.isPrior) && this.vGzipRef.isOn
}
},
template: `<div>
<input type="hidden" name="gzipRefJSON" :value="JSON.stringify(vGzipRef)"/>
<table class="ui table selectable definition">
<prior-checkbox :v-config="vGzipRef" v-if="vIsLocation"></prior-checkbox>
<tbody v-show="!vIsLocation || vGzipRef.isPrior">
<tr>
<td class="title">启用压缩</td>
<td>
<div class="ui checkbox">
<input type="checkbox" v-model="vGzipRef.isOn"/>
<label></label>
</div>
</td>
</tr>
</tbody>
<tbody v-show="isOn()">
<tr>
<td class="title">压缩级别</td>
<td>