Skip to content

Commit

Permalink
style: 更新图片cdn链接
Browse files Browse the repository at this point in the history
  • Loading branch information
79E committed Jan 11, 2023
1 parent 16a8950 commit a03ff7d
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 33 deletions.
6 changes: 2 additions & 4 deletions .umirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ import { defineConfig } from 'dumi';

export default defineConfig({
title: 'Aunt Design',
favicon:
'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-ad8d1200-2a6b-490b-8915-4f015cc6cc87/3c637506-9024-4153-baa7-fa7b66c87f67.svg',
logo:
'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-ad8d1200-2a6b-490b-8915-4f015cc6cc87/3c637506-9024-4153-baa7-fa7b66c87f67.svg',
favicon: 'https://p0.meituan.net/travelcube/808204ae1b37659839c254d9682937ff17783.png',
logo: 'https://p0.meituan.net/travelcube/808204ae1b37659839c254d9682937ff17783.png',
outputPath: 'docs-dist',
mode: 'site',
locales: [
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img alt="logo" width="120px" height="120px" src="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-ad8d1200-2a6b-490b-8915-4f015cc6cc87/3c637506-9024-4153-baa7-fa7b66c87f67.svg" width="200" style="margin-bottom: 10px;">
<img alt="logo" width="120px" height="120px" src="https://p0.meituan.net/travelcube/808204ae1b37659839c254d9682937ff17783.png" width="200" style="margin-bottom: 10px;">
</p>
<h3 align="center"> Aunt</h3>

Expand Down
16 changes: 4 additions & 12 deletions src/components/empty/demos/demo-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,8 @@ import React from 'react';
import { Empty } from 'aunt';

export default () => (
<>
<Empty
image='https://vkceyugu.cdn.bspapp.com/VKCEYUGU-ad8d1200-2a6b-490b-8915-4f015cc6cc87/fcfa6d32-e40b-480e-92a9-e2d2b4c34b15.png'
description='自定义图片'
/>
<Empty
image={
<img src='https://vkceyugu.cdn.bspapp.com/VKCEYUGU-ad8d1200-2a6b-490b-8915-4f015cc6cc87/61075960-54e6-4e36-bf37-54087449d748.png' />
}
description='自定组件图'
/>
</>
<Empty
image='https://gw.alipayobjects.com/zos/antfincdn/ZHrcdLPrvN/empty.svg'
description='自定义图片'
/>
);
12 changes: 4 additions & 8 deletions src/components/empty/empty.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ import { useNamespace } from '../../hooks';
import { EmptyProps, StatusOptions } from './types';

const defaultStatus: StatusOptions = {
default:
'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-ad8d1200-2a6b-490b-8915-4f015cc6cc87/9cb89e7f-1d20-4337-9688-a94441d51730.png',
search:
'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-ad8d1200-2a6b-490b-8915-4f015cc6cc87/9cf3b34d-dfb1-474c-9800-85057ed00e14.png',
error:
'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-ad8d1200-2a6b-490b-8915-4f015cc6cc87/fda25f87-9406-44e9-8cd2-21596fad56df.png',
network:
'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-ad8d1200-2a6b-490b-8915-4f015cc6cc87/50a3f24b-4821-426c-ae91-7d9a96b57b16.png',
default: 'https://p0.meituan.net/travelcube/0bc9958ed5c89df9e4e55f8518f46ab88661.png',
search: 'https://p1.meituan.net/travelcube/75774dd6a2f0c76fd1b8ca8ba028f6e010943.png',
error: 'https://p0.meituan.net/travelcube/7c88c8a27ccf44777865cd3baaadb0568931.png',
network: 'https://p0.meituan.net/travelcube/696efbd749dbef2f525179de25f861918429.png',
};

export const Empty: FunctionComponent<Partial<EmptyProps>> = (props: EmptyProps) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/nav-bar/demos/demo-status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default () => (
width: '100%',
height: 'auto',
}}
src='https://vkceyugu.cdn.bspapp.com/VKCEYUGU-ad8d1200-2a6b-490b-8915-4f015cc6cc87/6298fa8f-d1c8-4ccd-a144-61e63b07cb5d.png'
src='https://p1.xywm.ltd/2023/01/11/63be1fc150f8c.jpg'
alt=''
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/skeleton/demos/demo-children.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default () => {
>
<Flex>
<img
src='https://vkceyugu.cdn.bspapp.com/VKCEYUGU-ad8d1200-2a6b-490b-8915-4f015cc6cc87/3c637506-9024-4153-baa7-fa7b66c87f67.svg'
src='https://p0.meituan.net/travelcube/808204ae1b37659839c254d9682937ff17783.png'
style={{
width: 32,
height: 32,
Expand Down
11 changes: 5 additions & 6 deletions src/components/water-mark/demos/demo-base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ const textProps = {

const imageProps = {
image: {
src:
'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-ad8d1200-2a6b-490b-8915-4f015cc6cc87/5910a23e-415a-4dec-bac3-b45e07478a57.png',
width: 130,
height: 36,
src: 'https://p1.xywm.ltd/2023/01/11/63be1d55a4c31.png',
width: 100,
height: 20,
},
};

export default () => {
const [props, setProps] = useState<{ [key: string]: any }>(textProps);
const [props, setProps] = useState<{ [key: string]: any }>(imageProps);
const [fullPage, setFullPage] = useState(true);

return (
Expand All @@ -29,7 +28,7 @@ export default () => {
<Button onClick={() => setProps(imageProps)}>图片水印</Button>
<Button onClick={() => setFullPage(v => !v)}>{fullPage ? '局部区域' : '整个页面'}</Button>
</Space>
<WaterMark {...props} fullPage={fullPage} gapY={10} />
<WaterMark {...props} fullPage={fullPage} gapX={0} gapY={0} />
</div>
);
};

0 comments on commit a03ff7d

Please sign in to comment.