ant-design-vue/components/watermark/__tests__/__snapshots__/demo.test.js.snap

247 lines
16 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/watermark/demo/basic.vue correctly 1`] = `
<div class="" style="position: relative;">
<div style="height: 500px;"></div>
</div>
`;
exports[`renders ./components/watermark/demo/custom.vue correctly 1`] = `
<div style="display: flex;">
<div class="" style="position: relative;">
<article class="ant-typography">
<div class="ant-typography"> 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.
<!---->
</div>
<div class="ant-typography"> Natural user cognition: According to cognitive psychology, about 80% of external information is obtained through visual channels. The most important visual elements in the interface design, including layout, colors, illustrations, icons, etc., should fully absorb the laws of nature, thereby reducing the user's cognitive cost and bringing authentic and smooth feelings. In some scenarios, opportunely adding other sensory channels such as hearing, touch can create a richer and more natural product experience.
<!---->
</div>
<div class="ant-typography"> Natural user behavior: In the interaction with the system, the designer should fully understand the relationship between users, system roles, and task objectives, and also contextually organize system functions and services. At the same time, a series of methods such as behavior analysis, artificial intelligence and sensors could be applied to assist users to make effective decisions and reduce extra operations of users, to save users' mental and physical resources and make human-computer interaction more natural.
<!---->
</div>
</article><img style="z-index: 10; width: 100%; max-width: 800px; position: relative;" src="https://gw.alipayobjects.com/mdn/rms_08e378/afts/img/A*zx7LTI_ECSAAAAAAAAAAAABkARQnAQ" alt="示例图片">
</div>
<form style="width: 280px; flex-shrink: 0; border-left: 1px solid #eee; padding-left: 20px; margin-left: 20px;" class="ant-form ant-form-vertical">
<div class="ant-form-item">
<div class="ant-row ant-form-row">
<div class="ant-col ant-form-item-label"><label for="form_item_content" class="" title="Content">Content
<!---->
</label></div>
<div class="ant-col ant-form-item-control">
<div class="ant-form-item-control-input">
<div class="ant-form-item-control-input-content"><input id="form_item_content" type="text" class="ant-input"></div>
</div>
<!---->
<!---->
</div>
</div>
<!---->
</div>
<div class="ant-form-item">
<div class="ant-row ant-form-row">
<div class="ant-col ant-form-item-label"><label for="form_item_font.fontSize" class="" title="FontSize">FontSize
<!---->
</label></div>
<div class="ant-col ant-form-item-control">
<div class="ant-form-item-control-input">
<div class="ant-form-item-control-input-content">
<div id="form_item_font.fontSize" tabindex="-1" class="ant-slider ant-slider-horizontal">
<div class="ant-slider-rail"></div>
<div class="ant-slider-track" style="left: 0%; width: 16%;"></div>
<div class="ant-slider-step"></div>
<!---->
<div class="ant-slider-handle" style="left: 16%; transform: translateX(-50%);" role="slider" tabindex="0" aria-valuemin="0" aria-valuemax="100" aria-valuenow="16" aria-disabled="false"></div>
<div class="ant-slider-mark"></div>
</div>
</div>
</div>
<!---->
<!---->
</div>
</div>
<!---->
</div>
<div class="ant-form-item">
<div class="ant-row ant-form-row">
<div class="ant-col ant-form-item-label"><label for="form_item_zIndex" class="" title="zIndex">zIndex
<!---->
</label></div>
<div class="ant-col ant-form-item-control">
<div class="ant-form-item-control-input">
<div class="ant-form-item-control-input-content">
<div id="form_item_zIndex" tabindex="-1" class="ant-slider ant-slider-horizontal">
<div class="ant-slider-rail"></div>
<div class="ant-slider-track" style="left: 0%; width: 11%;"></div>
<div class="ant-slider-step"></div>
<!---->
<div class="ant-slider-handle" style="left: 11%; transform: translateX(-50%);" role="slider" tabindex="0" aria-valuemin="0" aria-valuemax="100" aria-valuenow="11" aria-disabled="false"></div>
<div class="ant-slider-mark"></div>
</div>
</div>
</div>
<!---->
<!---->
</div>
</div>
<!---->
</div>
<div class="ant-form-item">
<div class="ant-row ant-form-row">
<div class="ant-col ant-form-item-label"><label for="form_item_rotate" class="" title="Rotate">Rotate
<!---->
</label></div>
<div class="ant-col ant-form-item-control">
<div class="ant-form-item-control-input">
<div class="ant-form-item-control-input-content">
<div id="form_item_rotate" tabindex="-1" class="ant-slider ant-slider-horizontal">
<div class="ant-slider-rail"></div>
<div class="ant-slider-track" style="left: 0%; width: 43.888888888888886%;"></div>
<div class="ant-slider-step"></div>
<!---->
<div class="ant-slider-handle" style="left: 43.888888888888886%; transform: translateX(-50%);" role="slider" tabindex="0" aria-valuemin="-180" aria-valuemax="180" aria-valuenow="-22" aria-disabled="false"></div>
<div class="ant-slider-mark"></div>
</div>
</div>
</div>
<!---->
<!---->
</div>
</div>
<!---->
</div>
<div class="ant-form-item">
<div style="margin-bottom: 0px;" class="ant-row ant-form-row">
<div class="ant-col ant-form-item-label"><label class="" title="Gap">Gap
<!---->
</label></div>
<div class="ant-col ant-form-item-control">
<div class="ant-form-item-control-input">
<div class="ant-form-item-control-input-content">
<div style="display: flex;" class="ant-space ant-space-horizontal ant-space-align-baseline">
<div class="ant-space-item" style="margin-right: 8px;">
<div class="ant-form-item">
<div class="ant-row ant-form-row">
<!---->
<div class="ant-col ant-form-item-control">
<div class="ant-form-item-control-input">
<div class="ant-form-item-control-input-content">
<div class="ant-input-number">
<div class="ant-input-number-handler-wrap"><span unselectable="on" role="button" aria-label="Increase Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-up"><span role="img" aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner"><svg focusable="false" class="" data-icon="up" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"></path></svg></span></span><span unselectable="on" role="button" aria-label="Decrease Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-down"><span role="img" aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner"><svg focusable="false" class="" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></span></span></div>
<div class="ant-input-number-input-wrap"><input autocomplete="off" role="spinbutton" aria-valuenow="100" step="1" placeholder="gapX" class="ant-input-number-input"></div>
</div>
</div>
</div>
<!---->
<!---->
</div>
</div>
<!---->
</div>
</div>
<!---->
<div class="ant-space-item">
<div class="ant-form-item">
<div class="ant-row ant-form-row">
<!---->
<div class="ant-col ant-form-item-control">
<div class="ant-form-item-control-input">
<div class="ant-form-item-control-input-content">
<div class="ant-input-number">
<div class="ant-input-number-handler-wrap"><span unselectable="on" role="button" aria-label="Increase Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-up"><span role="img" aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner"><svg focusable="false" class="" data-icon="up" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"></path></svg></span></span><span unselectable="on" role="button" aria-label="Decrease Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-down"><span role="img" aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner"><svg focusable="false" class="" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></span></span></div>
<div class="ant-input-number-input-wrap"><input autocomplete="off" role="spinbutton" aria-valuenow="100" step="1" placeholder="gapY" class="ant-input-number-input"></div>
</div>
</div>
</div>
<!---->
<!---->
</div>
</div>
<!---->
</div>
</div>
<!---->
</div>
</div>
</div>
<!---->
<!---->
</div>
</div>
<!---->
</div>
<div class="ant-form-item">
<div style="margin-bottom: 0px;" class="ant-row ant-form-row">
<div class="ant-col ant-form-item-label"><label class="" title="Offset">Offset
<!---->
</label></div>
<div class="ant-col ant-form-item-control">
<div class="ant-form-item-control-input">
<div class="ant-form-item-control-input-content">
<div style="display: flex;" class="ant-space ant-space-horizontal ant-space-align-baseline">
<div class="ant-space-item" style="margin-right: 8px;">
<div class="ant-form-item">
<div class="ant-row ant-form-row">
<!---->
<div class="ant-col ant-form-item-control">
<div class="ant-form-item-control-input">
<div class="ant-form-item-control-input-content">
<div class="ant-input-number">
<div class="ant-input-number-handler-wrap"><span unselectable="on" role="button" aria-label="Increase Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-up"><span role="img" aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner"><svg focusable="false" class="" data-icon="up" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"></path></svg></span></span><span unselectable="on" role="button" aria-label="Decrease Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-down"><span role="img" aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner"><svg focusable="false" class="" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></span></span></div>
<div class="ant-input-number-input-wrap"><input autocomplete="off" role="spinbutton" step="1" placeholder="offsetLeft" class="ant-input-number-input"></div>
</div>
</div>
</div>
<!---->
<!---->
</div>
</div>
<!---->
</div>
</div>
<!---->
<div class="ant-space-item">
<div class="ant-form-item">
<div class="ant-row ant-form-row">
<!---->
<div class="ant-col ant-form-item-control">
<div class="ant-form-item-control-input">
<div class="ant-form-item-control-input-content">
<div class="ant-input-number">
<div class="ant-input-number-handler-wrap"><span unselectable="on" role="button" aria-label="Increase Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-up"><span role="img" aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner"><svg focusable="false" class="" data-icon="up" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"></path></svg></span></span><span unselectable="on" role="button" aria-label="Decrease Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-down"><span role="img" aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner"><svg focusable="false" class="" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></span></span></div>
<div class="ant-input-number-input-wrap"><input autocomplete="off" role="spinbutton" step="1" placeholder="offsetTop" class="ant-input-number-input"></div>
</div>
</div>
</div>
<!---->
<!---->
</div>
</div>
<!---->
</div>
</div>
<!---->
</div>
</div>
</div>
<!---->
<!---->
</div>
</div>
<!---->
</div>
</form>
</div>
`;
exports[`renders ./components/watermark/demo/image.vue correctly 1`] = `
<div class="" style="position: relative;">
<div style="height: 500px;"></div>
</div>
`;
exports[`renders ./components/watermark/demo/multi-line.vue correctly 1`] = `
<div class="" style="position: relative;">
<div style="height: 500px;"></div>
</div>
`;