diff --git a/.umirc.ts b/.umirc.ts index b74dcc3..eef81b8 100644 --- a/.umirc.ts +++ b/.umirc.ts @@ -1,20 +1,18 @@ import { defineConfig } from 'dumi'; const name = 'react-image-shadow'; +const shortName = 'ImageShadow'; + +const url = 'https://avatars1.githubusercontent.com/u/75532006?s=200&v=4'; export default defineConfig({ - title: 'Image Shadow', - favicon: - 'https://github.com/image-component/react-image-shadow/blob/main/logo.png?raw=true', - logo: - 'https://github.com/image-component/react-image-shadow/blob/main/logo.png?raw=true', + title: shortName, + favicon: url, + logo: url, outputPath: 'docs-dist', exportStatic: {}, base: `/${name}/`, publicPath: `/${name}/`, - theme: { - '@c-primary': '#3bacea', - }, hash: true, scripts: [ { @@ -23,7 +21,7 @@ export default defineConfig({ var timer = setInterval(function() { try { var menuList = document.getElementsByClassName('__dumi-default-menu-list'); - menuList[0].childNodes[0].childNodes[0].innerText = '🌈 ${name}'; + menuList[0].childNodes[0].childNodes[0].innerText = '🌈 ${shortName}'; clearInterval(timer); } catch (e) {} }, 200) diff --git a/docs/example/base.tsx b/docs/example/base.tsx index adcd331..b04ef3b 100644 --- a/docs/example/base.tsx +++ b/docs/example/base.tsx @@ -7,15 +7,19 @@ import ImageShadow from 'react-image-shadow'; import './demo.less'; import '../../assets/index.less'; +const url1 = + 'https://github.com/image-component/gallery/blob/main/girl/5.jpg?raw=true'; +const url2 = + 'https://github.com/image-component/gallery/blob/main/girl/1.jpg?raw=true'; +const url3 = + 'https://github.com/image-component/gallery/blob/main/girl/2.jpg?raw=true'; + const App = () => { return (