Skip to content

Commit 15df1d3

Browse files
authored
docs: update image demo (ant-design#53974)
1 parent bfc49e4 commit 15df1d3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

components/image/__tests__/__snapshots__/demo-extend.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ exports[`renders components/image/demo/placeholder.tsx extend context correctly
376376
>
377377
<img
378378
class="ant-image-img"
379-
src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?undefined"
379+
src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?1479772800000"
380380
width="200"
381381
/>
382382
<div

components/image/__tests__/__snapshots__/demo.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ exports[`renders components/image/demo/placeholder.tsx correctly 1`] = `
365365
>
366366
<img
367367
class="ant-image-img"
368-
src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?undefined"
368+
src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?1479772800000"
369369
width="200"
370370
/>
371371
<div

components/image/demo/placeholder.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
22
import { Button, Image, Space } from 'antd';
33

44
const App: React.FC = () => {
5-
const [random, setRandom] = useState<number>();
5+
const [random, setRandom] = useState<number>(Date.now());
66

77
return (
88
<Space size={12}>

0 commit comments

Comments
 (0)