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

211 lines
13 KiB
Plaintext
Raw Normal View History

2018-05-15 01:52:44 +00:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./antdv-demo/docs/grid/demo/basic.md correctly 1`] = `
2020-08-14 05:09:41 +00:00
<div class="ant-row">
<div class="ant-col ant-col-12"> col-12 </div>
<div class="ant-col ant-col-12"> col-12 </div>
</div>
<div class="ant-row">
<div class="ant-col ant-col-8"> col-8 </div>
<div class="ant-col ant-col-8"> col-8 </div>
<div class="ant-col ant-col-8"> col-8 </div>
</div>
<div class="ant-row">
<div class="ant-col ant-col-6"> col-6 </div>
<div class="ant-col ant-col-6"> col-6 </div>
<div class="ant-col ant-col-6"> col-6 </div>
<div class="ant-col ant-col-6"> col-6 </div>
2018-05-15 01:52:44 +00:00
</div>
`;
exports[`renders ./antdv-demo/docs/grid/demo/flex.md correctly 1`] = `
2020-08-14 05:09:41 +00:00
<p>sub-element align left</p>
2020-10-24 13:36:05 +00:00
<div class="ant-row ant-row-start">
2020-08-14 05:09:41 +00:00
<div class="ant-col ant-col-4"> col-4 </div>
<div class="ant-col ant-col-4"> col-4 </div>
<div class="ant-col ant-col-4"> col-4 </div>
<div class="ant-col ant-col-4"> col-4 </div>
</div>
<p>sub-element align center</p>
2020-10-24 13:36:05 +00:00
<div class="ant-row ant-row-center">
2020-08-14 05:09:41 +00:00
<div class="ant-col ant-col-4"> col-4 </div>
<div class="ant-col ant-col-4"> col-4 </div>
<div class="ant-col ant-col-4"> col-4 </div>
<div class="ant-col ant-col-4"> col-4 </div>
</div>
<p>sub-element align right</p>
2020-10-24 13:36:05 +00:00
<div class="ant-row ant-row-end">
2020-08-14 05:09:41 +00:00
<div class="ant-col ant-col-4"> col-4 </div>
<div class="ant-col ant-col-4"> col-4 </div>
<div class="ant-col ant-col-4"> col-4 </div>
<div class="ant-col ant-col-4"> col-4 </div>
</div>
<p>sub-element monospaced arrangement</p>
2020-10-24 13:36:05 +00:00
<div class="ant-row ant-row-space-between">
2020-08-14 05:09:41 +00:00
<div class="ant-col ant-col-4"> col-4 </div>
<div class="ant-col ant-col-4"> col-4 </div>
<div class="ant-col ant-col-4"> col-4 </div>
<div class="ant-col ant-col-4"> col-4 </div>
</div>
<p>sub-element align full</p>
2020-10-24 13:36:05 +00:00
<div class="ant-row ant-row-space-around">
2020-08-14 05:09:41 +00:00
<div class="ant-col ant-col-4"> col-4 </div>
<div class="ant-col ant-col-4"> col-4 </div>
<div class="ant-col ant-col-4"> col-4 </div>
<div class="ant-col ant-col-4"> col-4 </div>
</div>
`;
exports[`renders ./antdv-demo/docs/grid/demo/flex-align.md correctly 1`] = `
<p>Align Top</p>
2020-10-24 13:36:05 +00:00
<div class="ant-row ant-row-center ant-row-top">
2020-08-14 05:09:41 +00:00
<div class="ant-col ant-col-4">
<p class="height-100"> col-4 </p>
2018-05-15 01:52:44 +00:00
</div>
2020-08-14 05:09:41 +00:00
<div class="ant-col ant-col-4">
<p class="height-50"> col-4 </p>
2018-05-15 01:52:44 +00:00
</div>
2020-08-14 05:09:41 +00:00
<div class="ant-col ant-col-4">
<p class="height-120"> col-4 </p>
2018-05-15 01:52:44 +00:00
</div>
2020-08-14 05:09:41 +00:00
<div class="ant-col ant-col-4">
<p class="height-80"> col-4 </p>
2018-05-15 01:52:44 +00:00
</div>
2020-08-14 05:09:41 +00:00
</div>
<p>Align Center</p>
2020-10-24 13:36:05 +00:00
<div class="ant-row ant-row-space-around ant-row-middle">
2020-08-14 05:09:41 +00:00
<div class="ant-col ant-col-4">
<p class="height-100"> col-4 </p>
</div>
<div class="ant-col ant-col-4">
<p class="height-50"> col-4 </p>
</div>
<div class="ant-col ant-col-4">
<p class="height-120"> col-4 </p>
</div>
<div class="ant-col ant-col-4">
<p class="height-80"> col-4 </p>
2018-05-15 01:52:44 +00:00
</div>
</div>
2020-08-14 05:09:41 +00:00
<p>Align Bottom</p>
2020-10-24 13:36:05 +00:00
<div class="ant-row ant-row-space-between ant-row-bottom">
2020-08-14 05:09:41 +00:00
<div class="ant-col ant-col-4">
<p class="height-100"> col-4 </p>
2018-05-15 01:52:44 +00:00
</div>
2020-08-14 05:09:41 +00:00
<div class="ant-col ant-col-4">
<p class="height-50"> col-4 </p>
2018-05-15 01:52:44 +00:00
</div>
2020-08-14 05:09:41 +00:00
<div class="ant-col ant-col-4">
<p class="height-120"> col-4 </p>
</div>
<div class="ant-col ant-col-4">
<p class="height-80"> col-4 </p>
2018-05-15 01:52:44 +00:00
</div>
</div>
`;
2020-07-21 06:34:46 +00:00
exports[`renders ./antdv-demo/docs/grid/demo/flex-fill.md correctly 1`] = `
2020-08-14 05:09:41 +00:00
<div class="ant-divider ant-divider-horizontal ant-divider-with-text-left" role="separator"><span class="ant-divider-inner-text"> Percentage columns </span></div>
2020-10-24 13:36:05 +00:00
<div class="ant-row">
2020-08-14 05:09:41 +00:00
<div class="ant-col" style="flex: 2 2 auto;">2 / 5</div>
<div class="ant-col" style="flex: 3 3 auto;">3 / 5</div>
</div>
<div class="ant-divider ant-divider-horizontal ant-divider-with-text-left" role="separator"><span class="ant-divider-inner-text"> Fill rest </span></div>
2020-10-24 13:36:05 +00:00
<div class="ant-row">
2020-08-14 05:09:41 +00:00
<div class="ant-col" style="flex: 0 0 100px;">100px</div>
<div class="ant-col" style="flex-basis: auto;">auto</div>
</div>
<div class="ant-divider ant-divider-horizontal ant-divider-with-text-left" role="separator"><span class="ant-divider-inner-text"> Raw flex style </span></div>
2020-10-24 13:36:05 +00:00
<div class="ant-row">
2020-08-14 05:09:41 +00:00
<div class="ant-col" style="flex: 1 1 200px;">1 1 200px</div>
<div class="ant-col" style="flex: 0 1 300px;">0 1 300px</div>
2020-07-21 06:34:46 +00:00
</div>
`;
exports[`renders ./antdv-demo/docs/grid/demo/flex-order.md correctly 1`] = `
2020-10-24 13:36:05 +00:00
<div class="ant-row">
2020-08-14 05:09:41 +00:00
<div class="ant-col ant-col-6 ant-col-order-4"> 1 col-order-4 </div>
<div class="ant-col ant-col-6 ant-col-order-3"> 2 col-order-3 </div>
<div class="ant-col ant-col-6 ant-col-order-2"> 3 col-order-2 </div>
<div class="ant-col ant-col-6 ant-col-order-1"> 4 col-order-1 </div>
2018-05-15 01:52:44 +00:00
</div>
`;
exports[`renders ./antdv-demo/docs/grid/demo/gutter.md correctly 1`] = `
2018-05-15 01:52:44 +00:00
<div class="gutter-example">
2018-05-18 14:04:10 +00:00
<div class="ant-row" style="margin-left: -8px; margin-right: -8px;">
2020-08-14 05:09:41 +00:00
<div class="ant-col ant-col-6 gutter-row" style="padding-left: 8px; padding-right: 8px;">
<div class="gutter-box"> col-6 </div>
2018-05-15 01:52:44 +00:00
</div>
2020-08-14 05:09:41 +00:00
<div class="ant-col ant-col-6 gutter-row" style="padding-left: 8px; padding-right: 8px;">
<div class="gutter-box"> col-6 </div>
2018-05-15 01:52:44 +00:00
</div>
2020-08-14 05:09:41 +00:00
<div class="ant-col ant-col-6 gutter-row" style="padding-left: 8px; padding-right: 8px;">
<div class="gutter-box"> col-6 </div>
2018-05-15 01:52:44 +00:00
</div>
2020-08-14 05:09:41 +00:00
<div class="ant-col ant-col-6 gutter-row" style="padding-left: 8px; padding-right: 8px;">
<div class="gutter-box"> col-6 </div>
2018-05-15 01:52:44 +00:00
</div>
</div>
</div>
`;
exports[`renders ./antdv-demo/docs/grid/demo/offset.md correctly 1`] = `
2020-08-14 05:09:41 +00:00
<div class="ant-row">
<div class="ant-col ant-col-8"> col-8 </div>
<div class="ant-col ant-col-8 ant-col-offset-8"> col-8 </div>
</div>
<div class="ant-row">
<div class="ant-col ant-col-6 ant-col-offset-6"> col-6 col-offset-6 </div>
<div class="ant-col ant-col-6 ant-col-offset-6"> col-6 col-offset-6 </div>
</div>
<div class="ant-row">
<div class="ant-col ant-col-12 ant-col-offset-6"> col-12 col-offset-6 </div>
2018-05-15 01:52:44 +00:00
</div>
`;
exports[`renders ./antdv-demo/docs/grid/demo/playfround.md correctly 1`] = `
2020-08-14 05:09:41 +00:00
"
<div id=\\"components-grid-demo-playground\\">
<div style=\\"margin-bottom: 16px;\\"><span style=\\"margin-right: 6px;\\">Horizontal Gutter (px): </span><div style=\\"width: 50%;\\"><div tabindex=\\"-1\\" class=\\"ant-slider ant-slider-with-marks\\"><div class=\\"ant-slider-rail\\"></div><div class=\\"ant-slider-track\\" style=\\"left: 0%; width: 20%;\\"></div><div class=\\"ant-slider-step\\"><span class=\\"ant-slider-dot ant-slider-dot-active\\" style=\\"left: 0%;\\"></span><span class=\\"ant-slider-dot ant-slider-dot-active\\" style=\\"left: 20%;\\"></span><span class=\\"ant-slider-dot\\" style=\\"left: 40%;\\"></span><span class=\\"ant-slider-dot\\" style=\\"left: 60%;\\"></span><span class=\\"ant-slider-dot\\" style=\\"left: 80%;\\"></span><span class=\\"ant-slider-dot\\" style=\\"left: 100%;\\"></span></div><!----><div class=\\"ant-slider-handle\\" style=\\"left: 20%; transform: translateX(-50%);\\" role=\\"slider\\" tabindex=\\"0\\" aria-valuemin=\\"0\\" aria-valuemax=\\"5\\" aria-valuenow=\\"1\\" aria-disabled=\\"false\\"></div><div class=\\"ant-slider-mark\\"><span class=\\"ant-slider-mark-text ant-slider-mark-text-active\\" style=\\"transform: translateX(-50%); left: 0%;\\">8</span><span class=\\"ant-slider-mark-text ant-slider-mark-text-active\\" style=\\"transform: translateX(-50%); left: 20%;\\">16</span><span class=\\"ant-slider-mark-text\\" style=\\"transform: translateX(-50%); left: 40%;\\">24</span><span class=\\"ant-slider-mark-text\\" style=\\"transform: translateX(-50%); left: 60%;\\">32</span><span class=\\"ant-slider-mark-text\\" style=\\"transform: translateX(-50%); left: 80%;\\">40</span><span class=\\"ant-slider-mark-text\\" style=\\"transform: translateX(-50%); left: 100%;\\">48</span></div></div></div><span style=\\"margin-right: 6px;\\">Vertical Gutter (px): </span><div style=\\"width: 50%;\\"><div tabindex=\\"-1\\" class=\\"ant-slider ant-slider-with-marks\\"><div class=\\"ant-slider-rail\\"></div><div class=\\"ant-slider-track\\" style=\\"left: 0%; width: 20%;\\"></div><div class=\\"ant-slider-step\\"><span class=\\"ant-slider-dot ant-slider-dot-active\\" style=\\"left: 0%;\\"></span><span class=\\"ant-slider-dot ant-slider-dot-active\\" style=\\"left: 20%;\\"></span><span class=\\"ant-slider-dot\\" style=\\"left: 40%;\\"></span><span class=\\"ant-slider-dot\\" style=\\"left: 60%;\\"></span><span class=\\"ant-slider-dot\\" style=\\"left: 80%;\\"></span><span class=\\"ant-slider-dot\\" style=\\"left: 100%;\\"></span></div><!----><div class=\\"ant-slider-handle\\" style=\\"left: 20%; transform: translateX(-50%);\\" role=\\"slider\\" tabindex=\\"0\\" aria-valuemin=\\"0\\" aria-valuemax=\\"5\\" aria-valuenow=\\"1\\" aria-disabled=\\"false\\"></div><div class=\\"ant-slider-mark\\"><span class=\\"ant-slider-mark-text ant-slider-mark-text-active\\" style=\\"transform: translateX(-50%); left: 0%;\\">8</span><span class=\\"ant-slider-mark-text ant-slider-mark-text-active\\" style=\\"transform: translateX(-50%); left: 20%;\\">16</span><span class=\\"ant-slider-mark-text\\" style=\\"transform: translateX(-50%); left: 40%;\\">24</span><span class=\\"ant-slider-mark-text\\" style=\\"transform: translateX(-50%); left: 60%;\\">32</span><span class=\\"ant-slider-mark-text\\" style=\\"transform: translateX(-50%); left: 80%;\\">40</span><span class=\\"ant-slider-mark-text\\" style=\\"transform: translateX(-50%); left: 100%;\\">48</span></div></div></div><span style=\\"margin-right: 6px;\\">Column Count:</span><div style=\\"width: 50%;\\"><div tabindex=\\"-1\\" class=\\"ant-slider ant-slider-with-marks\\"><div class=\\"ant-slider-rail\\"></div><div class=\\"ant-slider-track\\" style=\\"left: 0%; width: 40%;\\"></div><div class=\\"ant-slider-step\\"><span class=\\"ant-slider-dot ant-slider-dot-active\\" style=\\"left: 0%;\\"></span><span class=\\"ant-slider-dot ant-slider-dot-active\\" style=\\"left: 20%;\\"></span><span class=\\"ant-slider-dot ant-slider-dot-active\\" style=\\"left: 40%;\\"></span><span class=\\"ant-slider-dot\\" style=\\"left: 60%;\\"></span><span class=\\"ant-slider-dot\\" style=\\"left: 80%;\\"></span><span class=\\"ant-slider-dot\\
<div class=\\"ant-row\\" style=\\"margin: -8px -8px -8px -8px;\\"><div class=\\"ant-col ant-col-6\\" style=\\"padding: 8px 8px 8px 8px;\\"><div>Column</div></div><div class=\\"ant-col ant-col-6\\" style=\\"padding: 8px 8px 8px 8px;\\"><div>Column</div></div><div class=\\"ant-col ant-col-6\\" style=\\"padding: 8px 8px 8px 8px;\\"><div>Column</div></div><div class=\\"ant-col ant-col-6\\" style=\\"padding: 8px 8px 8px 8px;\\"><div>Column</div></div></div>
<div class=\\"ant-row\\" style=\\"margin: -8px -8px -8px -8px;\\"><div class=\\"ant-col ant-col-6\\" style=\\"padding: 8px 8px 8px 8px;\\"><div>Column</div></div><div class=\\"ant-col ant-col-6\\" style=\\"padding: 8px 8px 8px 8px;\\"><div>Column</div></div><div class=\\"ant-col ant-col-6\\" style=\\"padding: 8px 8px 8px 8px;\\"><div>Column</div></div><div class=\\"ant-col ant-col-6\\" style=\\"padding: 8px 8px 8px 8px;\\"><div>Column</div></div></div>
<pre>&lt;a-row :gutter=\\"[16,16]\\"&gt;
&lt;a-col :span=\\"6\\"/&gt;
&lt;a-col :span=\\"6\\"/&gt;
&lt;a-col :span=\\"6\\"/&gt;
&lt;a-col :span=\\"6\\"/&gt;
Feat 1.5.0 (#1853) * feat: add Result component * fix: update md template tag html>tpl - fix `result` typo - update jest `result` snapshots * refactor: svg file to functional component icon - update jest snapshot * feat: add result * Feat descriptions (#1251) * feat: add descriptions * fix: add descriptions types and fix docs * fix: lint change code * fix: demo warning * fix: update demo, snapshot and remove classnames * test: add descriptions test * fix: descriptions demo (#1498) * feat: add page header (#1250) * feat: add page-header component * update site: page-header * ts definition update: page-header * get page-header props with getComponentFromProp func * optimize page-header * doc: add page-header actions.md responsive.md * breadcrumb itemRender add pure function support * style: format code * feat: update style to 3.23.6 from 2.13.6 * feat: update style to 3.26.8 from 3.23.6 * chore: update util * chore: update util * feat: update affix * feat: update alert * feat: update anchor * feat: update auto-complete * feat: update avatar * feat: update back-top * feat: update badge * feat: update button * feat: update breadcrumb * feat: update ts * docs: update doc * feat: update calendat * feat: update card * feat: update carousel * feat: update carousel * feat: update checkbox * feat: update comment * feat: update config-provider * docs: update doc * feat: update collapse * feat: update locale * feat: update date-picker * feat: update divider * feat: update drawer * feat: update dropdown * feat: update rc-trigger * feat: update dropdown * feat: update empty * test: add empty test * feat: update form * feat: update form * feat: update spin * feat: update grid * docs: update grid doc * feat: update icon * feat: update slider * feat: update textarea * feat: update input-number * feat: update layout * feat: update list * feat: update menu * feat: meaage add key for update content * feat: modal add closeIcon support * feat: update notification * feat: add pagination disabled support * feat: popconfirm add disabled support * test: update popover * feat: progress support custom line-gradiend * feat: update radio * test: update radio test * docs: update rate demo * feat: skeleton add avatar support number type * test: add switch test * test: update statistic test * fix: input clear icon event * feat: steps add type、 v-model、subTitle * feat: delete typography component * feat: delete Typography style * perf: update select * feat: add download transformFile previewFile actio * docs: update upload * feat: update tree-select * docs: update tree-select * feat: tree add blockNode selectable * docs: add tree demo * test: update snap * docs: updatedoc * feat: update tag * docs: update ad doc * feat: update tooltip * feat: update timeline * feat: time-picker add clearIcon * docs: update tabs * feat: transfer support custom children * test: update transfer test * feat: update table * test: update table test * test: update test * feat: calendar update locale * test: update test snap * feat: add mentions (#1790) * feat: mentions style * feat: theme default * feat: add mentions component * feat: mentions API * feat: add unit test for mentions * feat: update mentions demo * perf: model and inheritAttrs for mentions * perf: use getComponentFromProp instead of this.$props * perf: mentions rm defaultProps * feat: rm rows in mentionsProps * fix: mentions keyDown didn't work * docs: update mentions api * perf: mentions code * feat: update mentions * bump 1.5.0-alpha.1 * feat: pageheader add ghost prop * docs: update descriptions demo * chore: page-header add ghost type * fix: color error * feat: update to 3.26.12 * fix: some prop default value * fix(typo): form, carousel, upload. duplicate identifier (#1848) * Add Mentions Type (#1845) * feat: add mentions type * feat: add mentions in ant-design-vue.d.ts * docs: update doc * docs: add changelog * fix: mentions getPopupCotainer value (#1850) * docs: update doc * docs: uptate demo * docs: update demo * docs: delete demo * docs: delete doc * test: update snapshots * style: format code * chore: update travis * docs: update demo Co-authored-by: Sendya <18x@loacg.com> Co-authored-by: zkwolf <chenhao5866@gmail.com> Co-authored-by: drafish <xwlyy1991@163.com> Co-authored-by: Amour1688 <31695475+Amour1688@users.noreply.github.com>
2020-03-07 11:45:13 +00:00
&lt;/a-row&gt;</pre>
2020-08-14 05:09:41 +00:00
<pre>&lt;a-row :gutter=\\"[16,16]\\"&gt;
&lt;a-col :span=\\"6\\"/&gt;
&lt;a-col :span=\\"6\\"/&gt;
&lt;a-col :span=\\"6\\"/&gt;
&lt;a-col :span=\\"6\\"/&gt;
&lt;/a-row&gt;</pre>
</div>
"
2018-05-15 01:52:44 +00:00
`;
exports[`renders ./antdv-demo/docs/grid/demo/responsive.md correctly 1`] = `
2018-05-15 01:52:44 +00:00
<div class="ant-row">
2020-08-14 05:09:41 +00:00
<div class="ant-col ant-col-xs-2 ant-col-sm-4 ant-col-md-6 ant-col-lg-8 ant-col-xl-10"> Col </div>
<div class="ant-col ant-col-xs-20 ant-col-sm-16 ant-col-md-12 ant-col-lg-8 ant-col-xl-4"> Col </div>
<div class="ant-col ant-col-xs-2 ant-col-sm-4 ant-col-md-6 ant-col-lg-8 ant-col-xl-10"> Col </div>
2018-05-15 01:52:44 +00:00
</div>
`;
exports[`renders ./antdv-demo/docs/grid/demo/responsive-more.md correctly 1`] = `
2018-05-15 01:52:44 +00:00
<div class="ant-row">
2020-08-14 05:09:41 +00:00
<div class="ant-col ant-col-xs-5 ant-col-xs-offset-1 ant-col-lg-6 ant-col-lg-offset-2"> Col </div>
<div class="ant-col ant-col-xs-11 ant-col-xs-offset-1 ant-col-lg-6 ant-col-lg-offset-2"> Col </div>
<div class="ant-col ant-col-xs-5 ant-col-xs-offset-1 ant-col-lg-6 ant-col-lg-offset-2"> Col </div>
2018-05-15 01:52:44 +00:00
</div>
`;
exports[`renders ./antdv-demo/docs/grid/demo/sort.md correctly 1`] = `
2020-08-14 05:09:41 +00:00
<div class="ant-row">
<div class="ant-col ant-col-18 ant-col-push-6"> col-18 col-push-6 </div>
<div class="ant-col ant-col-6 ant-col-pull-18"> col-6 col-pull-18 </div>
2018-05-15 01:52:44 +00:00
</div>
`;