test: udpate date-picker & drawer snap

pull/3053/head
tangjinzhou 4 years ago
parent 2070f702de
commit af46975f56

File diff suppressed because one or more lines are too long

@ -1,3 +1,4 @@
import { flattenChildren } from '../_util/props-util';
import { App, computed, defineComponent, inject, PropType } from 'vue'; import { App, computed, defineComponent, inject, PropType } from 'vue';
import { defaultConfigProvider } from '../config-provider'; import { defaultConfigProvider } from '../config-provider';
@ -35,9 +36,10 @@ const Divider = defineComponent({
}); });
return () => { return () => {
const children = flattenChildren(slots.default?.());
return ( return (
<div class={classString.value} role="separator"> <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> </div>
); );
}; };

@ -64,7 +64,7 @@ exports[`renders ./antdv-demo/docs/drawer/demo/user-profile.md correctly 1`] = `
<ul class="ant-list-items"> <ul class="ant-list-items">
<li class="ant-list-item"> <li class="ant-list-item">
<div class="ant-list-item-meta"> <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"> <div class="ant-list-item-meta-content">
<h4 class="ant-list-item-meta-title"><a href="https://www.antdv.com/">Lily</a></h4> <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> <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>
<li class="ant-list-item"> <li class="ant-list-item">
<div class="ant-list-item-meta"> <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"> <div class="ant-list-item-meta-content">
<h4 class="ant-list-item-meta-title"><a href="https://www.antdv.com/">Lily</a></h4> <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> <div class="ant-list-item-meta-description">Progresser XTech</div>

Loading…
Cancel
Save