diff --git a/docs/.vitepress/head.ts b/docs/.vitepress/head.ts index 57658175..5ca63fdb 100644 --- a/docs/.vitepress/head.ts +++ b/docs/.vitepress/head.ts @@ -11,7 +11,6 @@ const heads: HeadConfig[] = [ ], ['meta', { name: 'msapplication-TileColor', content: '#3eaf7c' }], ['meta', { name: 'theme-color', content: '#3eaf7c' }], - ['script', { src: '/vue3-baidu-map-gl/lib/tilt.min.js' }] ] if (process.env.NODE_ENV === 'production') { diff --git a/docs/.vitepress/styles/main.css b/docs/.vitepress/styles/main.css index cac92958..82c53e67 100644 --- a/docs/.vitepress/styles/main.css +++ b/docs/.vitepress/styles/main.css @@ -1,6 +1,23 @@ :root { --vp-layout-max-width: 1620px; -} + /* --vp-home-hero-name-color: transparent; + --vp-home-hero-name-background: -webkit-linear-gradient(120deg, ##fff 30%, #fff); + --vp-home-hero-image-background-image: linear-gradient(-45deg, #fff 50%, #fff 50%); + --vp-home-hero-image-filter: blur(40px); */ +} + +/* .image-bg { + position: absolute; + top: 50%; + left: 50%; + border-radius: 50%; + width: 192px; + height: 192px; + background-image: var(--vp-home-hero-image-background-image); + filter: var(--vp-home-hero-image-filter); + transform: translate(-50%, -50%); +} */ + .dark [img-light] { display: none; } @@ -22,7 +39,7 @@ img.resizable-img { height: unset; } -.vp-doc td{ +.vp-doc td { font-size: 14px !important; } diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index e20fa447..46adc762 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -1,6 +1,6 @@ import { watch } from 'vue' import defaultTheme from 'vitepress/theme' -import baiduMapInit from '../../../packages/index' +import baiduMapInit from 'vue3-baidu-map-gl' import '../styles/main.css' export default { diff --git a/docs/index.md b/docs/index.md index b7fa1916..e6635f9a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -11,6 +11,7 @@ hero: src: /logo.png alt: Vue3 BaiduMap GL id: J_index_logo + width: 240 actions: - theme: brand text: 开始使用 @@ -46,6 +47,7 @@ features: ---