mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 07:13:09 +02:00
fix bug
This commit is contained in:
parent
2efae80b97
commit
67f58b5217
3 changed files with 9 additions and 4 deletions
|
@ -105,6 +105,10 @@ export default defineComponent({
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.sqadhkmv {
|
.sqadhkmv {
|
||||||
|
> *:empty {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
> *:not(:last-child) {
|
> *:not(:last-child) {
|
||||||
margin-bottom: var(--margin);
|
margin-bottom: var(--margin);
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else></div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
@ -32,7 +33,7 @@ export default defineComponent({
|
||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
ad: {
|
specify: {
|
||||||
type: Object,
|
type: Object,
|
||||||
required: false
|
required: false
|
||||||
},
|
},
|
||||||
|
@ -46,8 +47,8 @@ export default defineComponent({
|
||||||
|
|
||||||
let ad = null;
|
let ad = null;
|
||||||
|
|
||||||
if (props.ad) {
|
if (props.specify) {
|
||||||
ad = props.ad;
|
ad = props.specify;
|
||||||
} else {
|
} else {
|
||||||
let ads = instance.ads.filter(ad => ad.place === props.prefer);
|
let ads = instance.ads.filter(ad => ad.place === props.prefer);
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<MkButton @click="add()" primary style="margin: 0 auto 16px auto;"><i class="fas fa-plus"></i> {{ $ts.add }}</MkButton>
|
<MkButton @click="add()" primary style="margin: 0 auto 16px auto;"><i class="fas fa-plus"></i> {{ $ts.add }}</MkButton>
|
||||||
<section class="_card _gap ads" v-for="ad in ads">
|
<section class="_card _gap ads" v-for="ad in ads">
|
||||||
<div class="_content ad">
|
<div class="_content ad">
|
||||||
<MkAd v-if="ad.url" :ad="ad"/>
|
<MkAd v-if="ad.url" :specify="ad"/>
|
||||||
<MkInput v-model:value="ad.url" type="url">
|
<MkInput v-model:value="ad.url" type="url">
|
||||||
<span>URL</span>
|
<span>URL</span>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
|
|
Loading…
Reference in a new issue