直接上代码:
import React, { Component } from 'react'
import { Watermark } from 'antd';
export default class index extends Component {
render() {
return (
<div>
<Watermark
zIndex={11}
height={30}
width={130}
content="Ant Design"
image="https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*lkAoRbywo0oAAAAAAAAAAAAADrJ8AQ/original"
>
<div style={{ height: 500 }}>
<span>
The light-speed iteration of the digital world makes products more
complex. However, human consciousness and attention resources are limited.
Facing this design contradiction, the pursuit of
natural interaction will be the consistent direction of Ant Design.
The light-speed iteration of the digital world makes products more
complex. However, human consciousness and attention resources are limited.
Facing this design contradiction, the pursuit of
natural interaction will be the consistent direction of Ant Design.
The light-speed iteration of the digital world makes products more
complex. However, human consciousness and attention resources are limited.
Facing this design contradiction, the pursuit of
natural interaction will be the consistent direction of Ant Design.
The light-speed iteration of the digital world makes products more
complex. However, human consciousness and attention resources are limited.
Facing this design contradiction, the pursuit of
natural interaction will be the consistent direction of Ant Design.
</span>
</div>
</Watermark>
</div>
)
}
}
页面展示: