提交 c020ad60 编写于 作者: fxy060608's avatar fxy060608

feat(h5): support shadow

上级 f3effdda
......@@ -105,6 +105,9 @@ ${name}.UniServiceJSBridge = UniServiceJSBridge
function generateCssCode(config: ResolvedConfig) {
const define = config.define! as FEATURE_DEFINES
const cssFiles = [H5_FRAMEWORK_STYLE_PATH + 'base.css']
if (config.isProduction) {
cssFiles.push(H5_FRAMEWORK_STYLE_PATH + 'shadow.css')
}
// if (define.__UNI_FEATURE_PAGES__) {
cssFiles.push(H5_FRAMEWORK_STYLE_PATH + 'async.css')
// }
......
body::after {
position: fixed;
content: '';
left: -1000px;
top: -1000px;
animation: shadow-preload 0.1s;
animation-delay: 3s;
}
@keyframes shadow-preload {
0% {
background-image: url(https://cdn.dcloud.net.cn/img/shadow-grey.png);
}
100% {
background-image: url(https://cdn.dcloud.net.cn/img/shadow-grey.png);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册