|
@@ -1,8 +1,8 @@
|
|
<template>
|
|
<template>
|
|
<div v-if="!options.desc" @click="click" class="image mb-6 last:mb-0 mx-auto">
|
|
<div v-if="!options.desc" @click="click" class="image mb-6 last:mb-0 mx-auto">
|
|
<img :style="options.style" :src="options.image" />
|
|
<img :style="options.style" :src="options.image" />
|
|
- <div class="image-marks" v-if="options.marks">
|
|
|
|
- <span style="margin: 0 auto" v-html="options.marks"></span>
|
|
|
|
|
|
+ <div v-if="options.marks" class="mark flex justify-center items-center">
|
|
|
|
+ <span :style="options.marksStyle" v-html="options.marks"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div v-else class="image mb-6 last:mb-0 mx-auto">
|
|
<div v-else class="image mb-6 last:mb-0 mx-auto">
|
|
@@ -39,19 +39,19 @@ export default {
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style lang="less">
|
|
<style lang="less">
|
|
-.image-marks {
|
|
|
|
- opacity: 1;
|
|
|
|
- filter: alpha(opacity=100);
|
|
|
|
- width: 60%;
|
|
|
|
- text-align: center;
|
|
|
|
- height: 100%;
|
|
|
|
- color: #fff;
|
|
|
|
- font-family: 'Times New Roman', Times, serif;
|
|
|
|
- font-size: 20px;
|
|
|
|
- font-weight: 600;
|
|
|
|
- letter-spacing: 2px;
|
|
|
|
- position: absolute;
|
|
|
|
- top: 35px;
|
|
|
|
- left: 20%;
|
|
|
|
|
|
+.image {
|
|
|
|
+ position: relative;
|
|
|
|
+ .mark {
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 0;
|
|
|
|
+ top: 0;
|
|
|
|
+ right: 0;
|
|
|
|
+ bottom: 0;
|
|
|
|
+ color: #fff;
|
|
|
|
+ font-family: 'Times New Roman', Times, serif;
|
|
|
|
+ font-size: 20px;
|
|
|
|
+ font-weight: 600;
|
|
|
|
+ letter-spacing: 2px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|