提交 6e378556 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

style: 截图对比示例优化顶部占位 style

上级 9c917b5b
<template>
<view v-if="!isCustomNavigationBar" :style="placeholderStyle"></view>
<view v-if="!isCustomNavigationBar" class="top-placehoder"></view>
<web-view id="webview-screenshot-comparison" class="webview-screenshot-comparison" :webview-styles="webviewStyles"
:src="src" @loaded="loaded" @error="error">
</web-view>
......@@ -17,11 +17,6 @@
isLoaded: false,
statusBarHeight: state.statusBarHeight,
isCustomNavigationBar: false,
placeholderStyle: {
display: 'block',
height: `${state.statusBarHeight}px`,
backgroundColor: '#007aff'
},
devicePixelRatio: state.devicePixelRatio,
webviewStyles: {
progress: false
......@@ -58,7 +53,11 @@
}
}
</script>
<style>
<style>
.top-placehoder{
height: var(--status-bar-height);
background-color: #007aff;
}
.webview-screenshot-comparison {
flex: 1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册