mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-12 03:10:26 +08:00
优化界面
This commit is contained in:
@@ -6,11 +6,18 @@ Vue.component("http-charsets-box", {
|
|||||||
charsetConfig = {
|
charsetConfig = {
|
||||||
isPrior: false,
|
isPrior: false,
|
||||||
isOn: false,
|
isOn: false,
|
||||||
charset: ""
|
charset: "",
|
||||||
|
isUpper: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
charsetConfig: charsetConfig
|
charsetConfig: charsetConfig,
|
||||||
|
advancedVisible: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
changeAdvancedVisible: function (v) {
|
||||||
|
this.advancedVisible = v
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
template: `<div>
|
template: `<div>
|
||||||
@@ -41,6 +48,19 @@ Vue.component("http-charsets-box", {
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
<more-options-tbody @change="changeAdvancedVisible" v-if="(!vIsLocation || charsetConfig.isPrior) && charsetConfig.isOn"></more-options-tbody>
|
||||||
|
<tbody v-show="(!vIsLocation || charsetConfig.isPrior) && charsetConfig.isOn && advancedVisible">
|
||||||
|
<tr>
|
||||||
|
<td>字符编码是否大写</td>
|
||||||
|
<td>
|
||||||
|
<div class="ui checkbox">
|
||||||
|
<input type="checkbox" v-model="charsetConfig.isUpper"/>
|
||||||
|
<label></label>
|
||||||
|
</div>
|
||||||
|
<p class="comment">选中后将指定的字符编码转换为大写,比如默认为<span class="ui label tiny">utf-8</span>,选中后将改为<span class="ui label tiny">UTF-8</span>。</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="margin"></div>
|
<div class="margin"></div>
|
||||||
</div>`
|
</div>`
|
||||||
|
|||||||
@@ -36,6 +36,9 @@ Vue.component("http-web-root-box", {
|
|||||||
},
|
},
|
||||||
removeIndex: function (i) {
|
removeIndex: function (i) {
|
||||||
this.rootConfig.indexes.$remove(i)
|
this.rootConfig.indexes.$remove(i)
|
||||||
|
},
|
||||||
|
isOn: function () {
|
||||||
|
return (!this.vIsLocation || this.rootConfig.isPrior) && this.rootConfig.isOn
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
template: `<div>
|
template: `<div>
|
||||||
@@ -44,7 +47,7 @@ Vue.component("http-web-root-box", {
|
|||||||
<prior-checkbox :v-config="rootConfig" v-if="vIsLocation"></prior-checkbox>
|
<prior-checkbox :v-config="rootConfig" v-if="vIsLocation"></prior-checkbox>
|
||||||
<tbody v-show="!vIsLocation || rootConfig.isPrior">
|
<tbody v-show="!vIsLocation || rootConfig.isPrior">
|
||||||
<tr>
|
<tr>
|
||||||
<td>是否开启</td>
|
<td class="title">是否开启</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="ui checkbox">
|
<div class="ui checkbox">
|
||||||
<input type="checkbox" v-model="rootConfig.isOn"/>
|
<input type="checkbox" v-model="rootConfig.isOn"/>
|
||||||
@@ -52,6 +55,8 @@ Vue.component("http-web-root-box", {
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
<tbody v-show="isOn()">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="title">文档根目录</td>
|
<td class="title">文档根目录</td>
|
||||||
<td>
|
<td>
|
||||||
@@ -60,9 +65,9 @@ Vue.component("http-web-root-box", {
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
<more-options-tbody @change="changeAdvancedVisible" v-if="!vIsLocation || rootConfig.isPrior"></more-options-tbody>
|
<more-options-tbody @change="changeAdvancedVisible" v-if="isOn()"></more-options-tbody>
|
||||||
|
|
||||||
<tbody v-show="(!vIsLocation || rootConfig.isPrior) && advancedVisible">
|
<tbody v-show="isOn() && advancedVisible">
|
||||||
<tr>
|
<tr>
|
||||||
<td>首页文件</td>
|
<td>首页文件</td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
Reference in New Issue
Block a user