ant-design-vue/components/watermark/demo/image.vue

28 lines
704 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<docs>
---
order: 0
title:
zh-CN: 图片水印
en-US: Image watermark
---
## zh-CN
通过 `image` 指定图片地址为保证图片高清且不被拉伸请设置 width height, 并上传至少两倍的宽高的 logo 图片地址
## en-US
Specify the image address via 'image'. To ensure that the image is high definition and not stretched, set the width and height, and upload at least twice the width and height of the logo image address.
</docs>
<template>
<a-watermark
:height="30"
:width="130"
image="https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*lkAoRbywo0oAAAAAAAAAAAAADrJ8AQ/original"
>
<div style="height: 500px" />
</a-watermark>
</template>