mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 21:50:28 +08:00
支持更多的分组全局设置功能
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
Vue.component("http-webp-config-box", {
|
||||
props: ["v-webp-config", "v-is-location"],
|
||||
props: ["v-webp-config", "v-is-location", "v-is-group"],
|
||||
data: function () {
|
||||
let config = this.vWebpConfig
|
||||
if (config == null) {
|
||||
@@ -43,7 +43,7 @@ Vue.component("http-webp-config-box", {
|
||||
},
|
||||
methods: {
|
||||
isOn: function () {
|
||||
return (!this.vIsLocation || this.config.isPrior) && this.config.isOn
|
||||
return ((!this.vIsLocation && !this.vIsGroup) || this.config.isPrior) && this.config.isOn
|
||||
},
|
||||
changeExtensions: function (values) {
|
||||
values.forEach(function (v, k) {
|
||||
@@ -66,8 +66,8 @@ Vue.component("http-webp-config-box", {
|
||||
template: `<div>
|
||||
<input type="hidden" name="webpJSON" :value="JSON.stringify(config)"/>
|
||||
<table class="ui table definition selectable">
|
||||
<prior-checkbox :v-config="config" v-if="vIsLocation"></prior-checkbox>
|
||||
<tbody v-show="!vIsLocation || config.isPrior">
|
||||
<prior-checkbox :v-config="config" v-if="vIsLocation || vIsGroup"></prior-checkbox>
|
||||
<tbody v-show="(!vIsLocation && !vIsGroup) || config.isPrior">
|
||||
<tr>
|
||||
<td class="title">是否启用</td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user