mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 12:39:49 +08:00
1 line
5.7 KiB
JavaScript
1 line
5.7 KiB
JavaScript
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["2d263a77"],{"2d263a77":function(a,e,t){"use strict";t.d(e,"__esModule",{value:!0}),t.d(e,"texts",{enumerable:!0,get:function(){return d;}}),t("d5797026");let d=[{value:"Use when the page needs to be watermarked to identify the copyright.",paraId:0,tocIndex:0},{value:"Suitable for preventing information theft.",paraId:0,tocIndex:0},{value:"Common props ref\uFF1A",paraId:1,tocIndex:7},{value:"Common props",paraId:2,tocIndex:7},{value:"This component is available since ",paraId:3,tocIndex:7},{value:"antd@5.1.0",paraId:3,tocIndex:7},{value:".",paraId:3,tocIndex:7},{value:"Property",paraId:4,tocIndex:8},{value:"Description",paraId:4,tocIndex:8},{value:"Type",paraId:4,tocIndex:8},{value:"Default",paraId:4,tocIndex:8},{value:"Version",paraId:4,tocIndex:8},{value:"width",paraId:4,tocIndex:8},{value:"The width of the watermark, the default value of ",paraId:4,tocIndex:8},{value:"content",paraId:4,tocIndex:8},{value:" is its own width",paraId:4,tocIndex:8},{value:"number",paraId:4,tocIndex:8},{value:"120",paraId:4,tocIndex:8},{value:"height",paraId:4,tocIndex:8},{value:"The height of the watermark, the default value of ",paraId:4,tocIndex:8},{value:"content",paraId:4,tocIndex:8},{value:" is its own height",paraId:4,tocIndex:8},{value:"number",paraId:4,tocIndex:8},{value:"64",paraId:4,tocIndex:8},{value:"inherit",paraId:4,tocIndex:8},{value:"Pass the watermark to the pop-up component such as Modal, Drawer",paraId:4,tocIndex:8},{value:"boolean",paraId:4,tocIndex:8},{value:"true",paraId:4,tocIndex:8},{value:"5.11.0",paraId:4,tocIndex:8},{value:"rotate",paraId:4,tocIndex:8},{value:"When the watermark is drawn, the rotation Angle, unit ",paraId:4,tocIndex:8},{value:"\xb0",paraId:4,tocIndex:8},{value:"number",paraId:4,tocIndex:8},{value:"-22",paraId:4,tocIndex:8},{value:"zIndex",paraId:4,tocIndex:8},{value:"The z-index of the appended watermark element",paraId:4,tocIndex:8},{value:"number",paraId:4,tocIndex:8},{value:"9",paraId:4,tocIndex:8},{value:"image",paraId:4,tocIndex:8},{value:"Image source, it is recommended to export 2x or 3x image, high priority (support base64 format)",paraId:4,tocIndex:8},{value:"string",paraId:4,tocIndex:8},{value:"-",paraId:4,tocIndex:8},{value:"content",paraId:4,tocIndex:8},{value:"Watermark text content",paraId:4,tocIndex:8},{value:"string | string[]",paraId:4,tocIndex:8},{value:"-",paraId:4,tocIndex:8},{value:"font",paraId:4,tocIndex:8},{value:"Text style",paraId:4,tocIndex:8},{value:"Font",paraId:5,tocIndex:8},{value:"Font",paraId:6,tocIndex:8},{value:"gap",paraId:4,tocIndex:8},{value:"The spacing between watermarks",paraId:4,tocIndex:8},{value:"[number, number]",paraId:4,tocIndex:8},{value:"[100, 100]",paraId:4,tocIndex:8},{value:"offset",paraId:4,tocIndex:8},{value:"The offset of the watermark from the upper left corner of the container. The default is ",paraId:4,tocIndex:8},{value:"gap/2",paraId:4,tocIndex:8},{value:"[number, number]",paraId:4,tocIndex:8},{value:"[gap[0]/2, gap[1]/2]",paraId:4,tocIndex:8},{value:"Property",paraId:7,tocIndex:9},{value:"Description",paraId:7,tocIndex:9},{value:"Type",paraId:7,tocIndex:9},{value:"Default",paraId:7,tocIndex:9},{value:"Version",paraId:7,tocIndex:9},{value:"color",paraId:7,tocIndex:9},{value:"font color",paraId:7,tocIndex:9},{value:"CanvasFillStrokeStyles.fillStyle",paraId:7,tocIndex:9},{value:"rgba(0,0,0,.15)",paraId:7,tocIndex:9},{value:"fontSize",paraId:7,tocIndex:9},{value:"font size",paraId:7,tocIndex:9},{value:"number",paraId:7,tocIndex:9},{value:"16",paraId:7,tocIndex:9},{value:"fontWeight",paraId:7,tocIndex:9},{value:"font weight",paraId:7,tocIndex:9},{value:"normal",paraId:7,tocIndex:9},{value:" | ",paraId:7,tocIndex:9},{value:"light",paraId:7,tocIndex:9},{value:" | ",paraId:7,tocIndex:9},{value:"weight",paraId:7,tocIndex:9},{value:" | number",paraId:7,tocIndex:9},{value:"normal",paraId:7,tocIndex:9},{value:"fontFamily",paraId:7,tocIndex:9},{value:"font family",paraId:7,tocIndex:9},{value:"string",paraId:7,tocIndex:9},{value:"sans-serif",paraId:7,tocIndex:9},{value:"fontStyle",paraId:7,tocIndex:9},{value:"font style",paraId:7,tocIndex:9},{value:"none",paraId:7,tocIndex:9},{value:" | ",paraId:7,tocIndex:9},{value:"normal",paraId:7,tocIndex:9},{value:" | ",paraId:7,tocIndex:9},{value:"italic",paraId:7,tocIndex:9},{value:" | ",paraId:7,tocIndex:9},{value:"oblique",paraId:7,tocIndex:9},{value:"normal",paraId:7,tocIndex:9},{value:"textAlign",paraId:7,tocIndex:9},{value:"specify the text alignment direction",paraId:7,tocIndex:9},{value:"CanvasTextAlign",paraId:7,tocIndex:9},{value:"center",paraId:7,tocIndex:9},{value:"5.10.0",paraId:7,tocIndex:9},{value:"When using an image watermark and the image loads abnormally, you can add ",paraId:8,tocIndex:12},{value:"content",paraId:8,tocIndex:12},{value:" at the same time to prevent the watermark from becoming invalid (since 5.2.3).",paraId:8,tocIndex:12},{value:'<Watermark\n height={30}\n width={130}\n content="Ant Design"\n image="https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*lkAoRbywo0oAAAAAAAAAAAAADrJ8AQ/original"\n>\n <div style={{ height: 500 }} />\n</Watermark>\n',paraId:9,tocIndex:12},{value:"overflow: hidden",paraId:10},{value:"User can hide the watermark by setting the container height to 0 through the developer tool in the previous version. To avoid this situation, we added the ",paraId:11,tocIndex:13},{value:"overflow: hidden",paraId:11,tocIndex:13},{value:" style to the container. When the container height changes, the content is also hidden. You can override the style to modify this behavior:",paraId:11,tocIndex:13},{value:"<Watermark style={{ overflow: 'visible' }} />\n",paraId:12,tocIndex:13}];}}]); |