test: udpate date-picker & drawer snap

This commit is contained in:
tangjinzhou 2020-10-24 21:15:55 +08:00
parent 2070f702de
commit af46975f56
3 changed files with 20 additions and 18 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,4 @@
import { flattenChildren } from '../_util/props-util';
import { App, computed, defineComponent, inject, PropType } from 'vue';
import { defaultConfigProvider } from '../config-provider';
@ -35,9 +36,10 @@ const Divider = defineComponent({
});
return () => {
const children = flattenChildren(slots.default?.());
return (
<div class={classString.value} role="separator">
<span class={`${prefixCls.value}-inner-text`}>{slots.default?.()}</span>
{children.length ? <span class={`${prefixCls.value}-inner-text`}>{children}</span> : null}
</div>
);
};

View File

@ -64,7 +64,7 @@ exports[`renders ./antdv-demo/docs/drawer/demo/user-profile.md correctly 1`] = `
<ul class="ant-list-items">
<li class="ant-list-item">
<div class="ant-list-item-meta">
<div class="ant-list-item-meta-avatar"><span class="ant-avatar ant-avatar-circle ant-avatar-image"><img src="https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png"></span></div>
<div class="ant-list-item-meta-avatar"><span class="ant-avatar ant-avatar-image"><img src="https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png"></span></div>
<div class="ant-list-item-meta-content">
<h4 class="ant-list-item-meta-title"><a href="https://www.antdv.com/">Lily</a></h4>
<div class="ant-list-item-meta-description">Progresser XTech</div>
@ -79,7 +79,7 @@ exports[`renders ./antdv-demo/docs/drawer/demo/user-profile.md correctly 1`] = `
</li>
<li class="ant-list-item">
<div class="ant-list-item-meta">
<div class="ant-list-item-meta-avatar"><span class="ant-avatar ant-avatar-circle ant-avatar-image"><img src="https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png"></span></div>
<div class="ant-list-item-meta-avatar"><span class="ant-avatar ant-avatar-image"><img src="https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png"></span></div>
<div class="ant-list-item-meta-content">
<h4 class="ant-list-item-meta-title"><a href="https://www.antdv.com/">Lily</a></h4>
<div class="ant-list-item-meta-description">Progresser XTech</div>