mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-02 12:07:54 +08:00
style: format and update test
This commit is contained in:
parent
d4f23cec69
commit
ba93c49f25
@ -14,7 +14,7 @@ exports[`renders ./components/dropdown/demo/dropdown-button.md correctly 1`] = `
|
||||
<div class="ant-btn-group ant-dropdown-button"><button type="button" class="ant-btn ant-btn-default"><span>Dropdown</span></button><button type="button" class="ant-btn ant-btn-default ant-dropdown-trigger"><i class="anticon anticon-ellipsis"><svg viewBox="64 64 896 896" data-icon="ellipsis" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
|
||||
<path d="M176 511a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm280 0a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm280 0a56 56 0 1 0 112 0 56 56 0 1 0-112 0z"></path>
|
||||
</svg></i></button></div>
|
||||
<div class="ant-btn-group ant-dropdown-button" style="margin-left: 8px;"><button disabled="disabled" type="button" class="ant-btn ant-btn-default"><span>Dropdown</span></button><button type="button" class="ant-btn ant-btn-default ant-dropdown-trigger"><i class="anticon anticon-ellipsis"><svg viewBox="64 64 896 896" data-icon="ellipsis" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
|
||||
<div class="ant-btn-group ant-dropdown-button" style="margin-left: 8px;"><button disabled="disabled" type="button" class="ant-btn ant-btn-default"><span>Dropdown</span></button><button disabled="disabled" type="button" class="ant-btn ant-btn-default ant-dropdown-trigger"><i class="anticon anticon-ellipsis"><svg viewBox="64 64 896 896" data-icon="ellipsis" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
|
||||
<path d="M176 511a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm280 0a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm280 0a56 56 0 1 0 112 0 56 56 0 1 0-112 0z"></path>
|
||||
</svg></i></button></div> <button type="button" class="ant-btn ant-btn-default ant-dropdown-trigger" style="margin-left: 8px;"><span>Button</span><i class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
|
||||
<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>
|
||||
|
@ -43,7 +43,7 @@ describe('TextArea', () => {
|
||||
|
||||
await asyncExpect(() => {
|
||||
expect(mockFunc).toHaveBeenCalledTimes(2);
|
||||
}, 0);
|
||||
}, 100);
|
||||
});
|
||||
|
||||
it('should support disabled', async () => {
|
||||
|
@ -117,7 +117,7 @@ exports[`renders ./components/timeline/demo/custom.md correctly 1`] = `
|
||||
</li>
|
||||
<li class="ant-timeline-item">
|
||||
<div class="ant-timeline-item-tail"></div>
|
||||
<div class="ant-timeline-item-head ant-timeline-item-head-custom ant-timeline-item-head-red"><i class="anticon anticon-clock-circle-o" style="font-size: '16px';"><svg viewBox="64 64 896 896" data-icon="clock-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
|
||||
<div class="ant-timeline-item-head ant-timeline-item-head-custom ant-timeline-item-head-red"><i class="anticon anticon-clock-circle-o" style="font-size: 16px;"><svg viewBox="64 64 896 896" data-icon="clock-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
|
||||
<path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path>
|
||||
<path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"></path>
|
||||
</svg></i></div>
|
||||
|
@ -14,7 +14,7 @@ Set a node as an icon or other custom element.
|
||||
<a-timeline-item>Create a services site 2015-09-01</a-timeline-item>
|
||||
<a-timeline-item>Solve initial network problems 2015-09-01</a-timeline-item>
|
||||
<a-timeline-item color="red">
|
||||
<a-icon slot="dot" type="clock-circle-o" style="fontSize: '16px'" />
|
||||
<a-icon slot="dot" type="clock-circle-o" style="font-size: 16px;" />
|
||||
Technical testing 2015-09-01
|
||||
</a-timeline-item>
|
||||
<a-timeline-item>Network problems being solved 2015-09-01</a-timeline-item>
|
||||
|
@ -110,9 +110,7 @@ export default {
|
||||
if (settings.centerMode) {
|
||||
if (settings.slidesToScroll > 1 && process.env.NODE_ENV !== 'production') {
|
||||
console.warn(
|
||||
`slidesToScroll should be equal to 1 in centerMode, you are using ${
|
||||
settings.slidesToScroll
|
||||
}`,
|
||||
`slidesToScroll should be equal to 1 in centerMode, you are using ${settings.slidesToScroll}`,
|
||||
);
|
||||
}
|
||||
settings.slidesToScroll = 1;
|
||||
@ -121,16 +119,12 @@ export default {
|
||||
if (settings.fade) {
|
||||
if (settings.slidesToShow > 1 && process.env.NODE_ENV !== 'production') {
|
||||
console.warn(
|
||||
`slidesToShow should be equal to 1 when fade is true, you're using ${
|
||||
settings.slidesToShow
|
||||
}`,
|
||||
`slidesToShow should be equal to 1 when fade is true, you're using ${settings.slidesToShow}`,
|
||||
);
|
||||
}
|
||||
if (settings.slidesToScroll > 1 && process.env.NODE_ENV !== 'production') {
|
||||
console.warn(
|
||||
`slidesToScroll should be equal to 1 when fade is true, you're using ${
|
||||
settings.slidesToScroll
|
||||
}`,
|
||||
`slidesToScroll should be equal to 1 when fade is true, you're using ${settings.slidesToScroll}`,
|
||||
);
|
||||
}
|
||||
settings.slidesToShow = 1;
|
||||
|
@ -385,9 +385,7 @@ function processEntity(entity, wrapper) {
|
||||
if (currentEntity) {
|
||||
warning(
|
||||
false,
|
||||
`Conflict! value of node '${entity.key}' (${value}) has already used by node '${
|
||||
currentEntity.key
|
||||
}'.`,
|
||||
`Conflict! value of node '${entity.key}' (${value}) has already used by node '${currentEntity.key}'.`,
|
||||
);
|
||||
}
|
||||
wrapper.valueEntities[value] = entity;
|
||||
|
Loading…
Reference in New Issue
Block a user