test: update cXXX snap

This commit is contained in:
tangjinzhou 2020-10-24 21:08:21 +08:00
parent c177494c1d
commit 708edde641
7 changed files with 23 additions and 29 deletions

View File

@ -1,4 +1,4 @@
import { defineComponent, inject, PropType, VNodeTypes } from 'vue';
import { defineComponent, inject } from 'vue';
import PropTypes from '../_util/vue-types';
import { getComponent } from '../_util/props-util';
import { defaultConfigProvider } from '../config-provider';
@ -7,15 +7,9 @@ export default defineComponent({
name: 'ACardMeta',
props: {
prefixCls: PropTypes.string,
title: {
type: Object as PropType<VNodeTypes>,
},
description: {
type: Object as PropType<VNodeTypes>,
},
avatar: {
type: Object as PropType<VNodeTypes>,
},
title: PropTypes.VNodeChild,
description: PropTypes.VNodeChild,
avatar: PropTypes.VNodeChild,
},
setup() {
return {

View File

@ -259,7 +259,7 @@ exports[`renders ./antdv-demo/docs/card/demo/meta.md correctly 1`] = `
<div class="ant-card-cover"><img alt="example" src="https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png"></div>
<div class="ant-card-body">
<div class="ant-card-meta">
<div class="ant-card-meta-avatar"><span class="ant-avatar ant-avatar-circle ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"></span></div>
<div class="ant-card-meta-avatar"><span class="ant-avatar ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"></span></div>
<div class="ant-card-meta-detail">
<div class="ant-card-meta-title">Card title</div>
<div class="ant-card-meta-description">This is the description</div>

View File

@ -126,15 +126,13 @@ exports[`renders ./antdv-demo/docs/collapse/demo/extra.md correctly 1`] = `
<!---->
</div>
</div><br><span>Expand Icon Position: </span>
<!---->
<div class="ant-select ant-select-enabled" tabindex="0">
<div role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" aria-controls="test-uuid" class="ant-select-selection ant-select-selection--single">
<div class="ant-select-selection__rendered">
<!---->
<div class="ant-select-selection-selected-value" title="left" style="display: block; opacity: 1;"> left </div>
</div>
<!----><span class="ant-select-arrow" style="user-select: none;" unselectable="on"><span role="img" aria-label="down" class="anticon anticon-down ant-select-arrow-icon"><svg class="" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896" focusable="false"><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-select ant-select-single ant-select-show-arrow">
<!---->
<!---->
<div class="ant-select-selector"><span class="ant-select-selection-search"><input id="rc_select_TEST_OR_SSR" autocomplete="off" class="ant-select-selection-search-input" style="opacity: 0;" role="combobox" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-activedescendant="rc_select_TEST_OR_SSR_list_0" readonly="" unselectable="on" type="search"></span><span class="ant-select-selection-item"> left </span>
<!---->
</div><span class="ant-select-arrow" style="user-select: none;" unselectable="on" aria-hidden="true"><span role="img" aria-label="down" class="anticon anticon-down ant-select-suffix"><svg class="" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896" focusable="false"><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>
`;

View File

@ -3,7 +3,7 @@
exports[`renders ./antdv-demo/docs/comment/demo/basic.md correctly 1`] = `
<div class="ant-comment">
<div class="ant-comment-inner">
<div class="ant-comment-avatar"><span class="ant-avatar ant-avatar-circle ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" alt="Han Solo"></span></div>
<div class="ant-comment-avatar"><span class="ant-avatar ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" alt="Han Solo"></span></div>
<div class="ant-comment-content">
<div class="ant-comment-content-author"><span class="ant-comment-content-author-name"><a>Han Solo</a></span><span class="ant-comment-content-author-time"><!----><span>a few seconds ago</span></span></div>
<div class="ant-comment-content-detail">
@ -24,7 +24,7 @@ exports[`renders ./antdv-demo/docs/comment/demo/editor.md correctly 1`] = `
<!--v-if-->
<div class="ant-comment">
<div class="ant-comment-inner">
<div class="ant-comment-avatar"><span class="ant-avatar ant-avatar-circle ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" alt="Han Solo"></span></div>
<div class="ant-comment-avatar"><span class="ant-avatar ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" alt="Han Solo"></span></div>
<div class="ant-comment-content">
<div class="ant-comment-content-author">
<!---->
@ -32,6 +32,7 @@ exports[`renders ./antdv-demo/docs/comment/demo/editor.md correctly 1`] = `
</div>
<div class="ant-comment-content-detail">
<div class="ant-row ant-form-item">
<!---->
<div class="ant-col ant-form-item-control-wrapper">
<div class="ant-form-item-control"><span class="ant-form-item-children"><textarea rows="4" class="ant-input"></textarea><!----></span>
<!---->
@ -40,6 +41,7 @@ exports[`renders ./antdv-demo/docs/comment/demo/editor.md correctly 1`] = `
</div>
</div>
<div class="ant-row ant-form-item">
<!---->
<div class="ant-col ant-form-item-control-wrapper">
<div class="ant-form-item-control"><span class="ant-form-item-children"><button class="ant-btn ant-btn-primary" type="submit"><!----><span>Add Comment</span></button>
<!----></span>
@ -113,7 +115,7 @@ exports[`renders ./antdv-demo/docs/comment/demo/list.md correctly 1`] = `
exports[`renders ./antdv-demo/docs/comment/demo/nested.md correctly 1`] = `
<div class="ant-comment">
<div class="ant-comment-inner">
<div class="ant-comment-avatar"><span class="ant-avatar ant-avatar-circle ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" alt="Han Solo"></span></div>
<div class="ant-comment-avatar"><span class="ant-avatar ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" alt="Han Solo"></span></div>
<div class="ant-comment-content">
<div class="ant-comment-content-author"><span class="ant-comment-content-author-name"><a>Han Solo</a></span>
<!---->
@ -129,7 +131,7 @@ exports[`renders ./antdv-demo/docs/comment/demo/nested.md correctly 1`] = `
<div class="ant-comment-nested">
<div class="ant-comment">
<div class="ant-comment-inner">
<div class="ant-comment-avatar"><span class="ant-avatar ant-avatar-circle ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" alt="Han Solo"></span></div>
<div class="ant-comment-avatar"><span class="ant-avatar ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" alt="Han Solo"></span></div>
<div class="ant-comment-content">
<div class="ant-comment-content-author"><span class="ant-comment-content-author-name"><a>Han Solo</a></span>
<!---->
@ -145,7 +147,7 @@ exports[`renders ./antdv-demo/docs/comment/demo/nested.md correctly 1`] = `
<div class="ant-comment-nested">
<div class="ant-comment">
<div class="ant-comment-inner">
<div class="ant-comment-avatar"><span class="ant-avatar ant-avatar-circle ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" alt="Han Solo"></span></div>
<div class="ant-comment-avatar"><span class="ant-avatar ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" alt="Han Solo"></span></div>
<div class="ant-comment-content">
<div class="ant-comment-content-author"><span class="ant-comment-content-author-name"><a>Han Solo</a></span>
<!---->
@ -162,7 +164,7 @@ exports[`renders ./antdv-demo/docs/comment/demo/nested.md correctly 1`] = `
</div>
<div class="ant-comment">
<div class="ant-comment-inner">
<div class="ant-comment-avatar"><span class="ant-avatar ant-avatar-circle ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" alt="Han Solo"></span></div>
<div class="ant-comment-avatar"><span class="ant-avatar ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" alt="Han Solo"></span></div>
<div class="ant-comment-content">
<div class="ant-comment-content-author"><span class="ant-comment-content-author-name"><a>Han Solo</a></span>
<!---->

View File

@ -9,7 +9,7 @@ exports[`Comment Comment can be used as editor, user can customize the editor co
<!---->
<div class="ant-spin-container">
<ul class="ant-list-items">
<li class="ant-list-item ">
<li class="ant-list-item">
<div class="ant-comment">
<div class="ant-comment-inner">
<div class="ant-comment-avatar"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" alt="comment-avatar"></div>

View File

@ -111,7 +111,7 @@ export default {
const itemChildren = (
<Tag
{...restAttrs}
class={classNames(`${prefixCls}-item `, _className, {
class={classNames(`${prefixCls}-item`, _className, {
[`${prefixCls}-item-no-flex`]: !this.isFlexMode(),
})}
>

View File

@ -63,7 +63,7 @@ export default {
aria-disabled={disabled ? 'true' : 'false'}
aria-selected={activeKey === key ? 'true' : 'false'}
{...events}
class={cls}
class={cls.trim()}
key={key}
style={style}
ref={activeKey === key ? saveRef('activeTab') : noop}