perf: publish version 0.2.2

This commit is contained in:
就眠仪式
2021-11-02 21:26:41 +08:00
parent 808f86ba8e
commit 4df61682f6
4 changed files with 21 additions and 22 deletions

View File

@@ -18,14 +18,14 @@
left: left,
width: width,
height: height,
zIndex: zIndex
zIndex: zIndex,
}"
>
<div class="layui-layer-title" style="cursor: move">
{{ title }}
</div>
<div class="layui-layer-content" :style="{ height: contentHeight }">
<div v-if="type === 1" style="height:100%">
<div v-if="type === 1" style="height: 100%">
<slot v-if="slot.default"></slot>
<template v-else>
{{ content }}
@@ -37,7 +37,7 @@
allowtransparency="true"
frameborder="0"
:src="content"
style="width: 100%;height:100%;"
style="width: 100%; height: 100%"
></iframe>
</div>
<span class="layui-layer-setwin"
@@ -138,9 +138,7 @@ const contentHeight = ref(
watch(max, function () {
if (max.value) {
contentHeight.value =
props.btn.length > 0
? 'calc(100% - 100px)'
: 'calc(100% - 50px)'
props.btn.length > 0 ? 'calc(100% - 100px)' : 'calc(100% - 50px)'
} else {
contentHeight.value =
props.btn.length > 0