第二阶段代码
This commit is contained in:
@@ -44,7 +44,7 @@ async function calcContentHeight() {
|
||||
docHeight.value = docRef.value?.offsetHeight || 0;
|
||||
setTimeout(() => {
|
||||
shouldAutoHeight.value = true;
|
||||
}, 30);
|
||||
}, 50);
|
||||
}
|
||||
|
||||
function isDocAlertEnable(): boolean {
|
||||
@@ -107,7 +107,7 @@ onMounted(() => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div :class="cn('h-full p-0', contentClass)" :style="contentStyle">
|
||||
<div :class="cn('h-full p-0', contentClass)" :style="contentStyle" v-if="shouldAutoHeight || !autoContentHeight">
|
||||
<slot></slot>
|
||||
</div>
|
||||
<div
|
||||
|
||||
@@ -198,6 +198,6 @@ defineExpose({
|
||||
</slot>
|
||||
|
||||
<!-- 萌新必读 -->
|
||||
<DocLink />
|
||||
<!-- <DocLink /> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user