feat(map): 优化地图组件并添加新功能

- 注释掉部分地图图片以简化界面
- 为每个地图光标添加 data-title 属性
- 实现地图光标点击时显示详细信息的功能
- 添加新的 CSS 样式以美化光标描述
-优化 tabs 样式,添加渐变背景和圆角
This commit is contained in:
陈昱达
2025-07-04 18:29:11 +08:00
parent c07572b96b
commit 205ecd5c93
6 changed files with 233 additions and 19 deletions

View File

@@ -1,6 +1,8 @@
const autoprefixer = require('autoprefixer')
const pxtoviewport = require('postcss-px-to-viewport')
const path = require('path')
const CompressionPlugin = require('compression-webpack-plugin')
function resolve(dir) {
return path.join(__dirname, dir)
}
@@ -65,5 +67,15 @@ module.exports = {
return assetFilename.endsWith('.js')
},
})
// config.plugins.push(
// new CompressionPlugin({
// filename: '[path][base].gz',
// algorithm: 'gzip',
// test: /\.(js|css|html|svg)$/,
// threshold: 10240,
// minRatio: 0.8,
// deleteOriginalAssets: false,
// })
// )
},
}