@dcloudio/uni-cli-shared
Advanced tools
Comparing version 0.2.957 to 0.2.958
@@ -199,2 +199,3 @@ /** | ||
module.exports = { | ||
getJsonFile, | ||
getComponentSet, | ||
@@ -201,0 +202,0 @@ getWXComponents, |
@@ -48,5 +48,6 @@ const tags = require('./tags') | ||
getPlatformCompiler, | ||
getPlatformCss, | ||
getShadowCss, | ||
getPlatformCssVars, | ||
getPlatformCssnano, | ||
getShadowTemplate, | ||
jsPreprocessOptions, | ||
@@ -88,6 +89,7 @@ cssPreprocessOptions, | ||
getPlatformGlobal, | ||
getPlatformCss, | ||
getShadowCss, | ||
getPlatformCssVars, | ||
getPlatformCssnano, | ||
getPlatformCompiler, | ||
getShadowTemplate, | ||
parsePagesJson, | ||
@@ -94,0 +96,0 @@ parseManifestJson, |
@@ -225,5 +225,12 @@ const fs = require('fs') | ||
}, | ||
getPlatformCss () { | ||
return `.border-image-1px {border-bottom: none;border-width: 0 0 1px 0;-webkit-border-image: url(https://cdn.dcloud.net.cn/img/border-image-1px.png) 0 0 2 0 stretch;border-image: url(https://cdn.dcloud.net.cn/img/border-image-1px.png) 0 0 2 0 stretch;}` | ||
getShadowCss () { | ||
let tagName = 'page' | ||
if (process.env.UNI_PLATFORM === 'h5') { | ||
tagName = 'body' | ||
} | ||
return `${tagName}::after{position: fixed;left: -1000px;top: -1000px;content: url(https://cdn.dcloud.net.cn/img/shadow-grey.png)}` | ||
}, | ||
getShadowTemplate (colorType = 'grey') { | ||
return `<cover-image src="https://cdn.dcloud.net.cn/img/shadow-${colorType}.png" style="z-index:998;position:fixed;left:0;top:0;width:100%;height:3px;"/>` | ||
}, | ||
getPlatformScss () { | ||
@@ -230,0 +237,0 @@ return ` |
{ | ||
"name": "@dcloudio/uni-cli-shared", | ||
"version": "0.2.957", | ||
"version": "0.2.958", | ||
"description": "uni-cli-shared", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
40081
977
38