mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-30 02:57:50 +08:00
test: udpate date-picker & drawer snap
This commit is contained in:
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 { 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>
|
||||
);
|
||||
};
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user