Browse Source

Merge pull request 'style: 🎨 添加地图默认样式' (#73) from dev into test

Reviewed-on: common/base_daoshi_vue_ts#73
test
姜鑫 3 years ago
parent
commit
eb6834e9c8
  1. 2
      postcss.config.js
  2. 10
      src/components/Map/Map.vue

2
postcss.config.js

@ -9,7 +9,7 @@ module.exports = {
viewportUnit: 'vw', // 指定需要转换成的视窗单位,默认vw
fontViewportUnit: 'vw', // 指定字体需要转换成的视窗单位,默认vw
selectorBlackList: ['not-vw'], // 指定不转换为视窗单位的类名,
minPixelValue: 0, // 默认值1,小于或等于1px则不进行转换
minPixelValue: 1, // 默认值1,小于或等于1px则不进行转换
mediaQuery: true, // 是否在媒体查询的css代码中也进行转换,默认false
replace: true, // 是否转换后直接更换属性值
exclude: [/node_modules/], // 设置忽略文件,用正则做目录名匹配

10
src/components/Map/Map.vue

@ -37,6 +37,16 @@ function handleDetail() {
}
</script>
<style>
.map_label {
z-index: 10;
height: 16px;
font-size: 12px;
color: #000;
text-shadow: 1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
pointer-events: none;
}
</style>
<style lang="scss" scoped>
/* stylelint-disable-next-line selector-id-pattern */
#mapContainer {

Loading…
Cancel
Save