|
|
|
@ -5,7 +5,7 @@
@@ -5,7 +5,7 @@
|
|
|
|
|
<span>{{ title }}</span> |
|
|
|
|
</div> |
|
|
|
|
<slot /> |
|
|
|
|
<img :src="lock_close" class="close" @click="show = false; emit('close')"></img> |
|
|
|
|
<img v-if="showHeader" :src="lock_close" class="close" @click="show = false; emit('close')"></img> |
|
|
|
|
</div> |
|
|
|
|
</teleport> |
|
|
|
|
</template> |
|
|
|
@ -54,6 +54,10 @@ const prop = defineProps({
@@ -54,6 +54,10 @@ const prop = defineProps({
|
|
|
|
|
type: String, |
|
|
|
|
default: '0' |
|
|
|
|
}, |
|
|
|
|
z: { |
|
|
|
|
type: Number, |
|
|
|
|
default: 9 |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
watch(show, (n, o) => { |
|
|
|
|
emit('update:modelValue', n); |
|
|
|
@ -78,7 +82,7 @@ onMounted(() => {
@@ -78,7 +82,7 @@ onMounted(() => {
|
|
|
|
|
bottom: v-bind('prop.bottom'); |
|
|
|
|
padding: v-bind('prop.padding'); |
|
|
|
|
position: absolute; |
|
|
|
|
z-index: 9; |
|
|
|
|
z-index: v-bind('z'); |
|
|
|
|
border: 2px solid #fff; |
|
|
|
|
border-radius: 6px; |
|
|
|
|
box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.7); |
|
|
|
|