feat(Skeleton): add round prop (#6441)

This commit is contained in:
neverland
2020-06-02 22:14:19 +08:00
committed by GitHub
parent 9a4b09bcc1
commit 4d731a3fa8
6 changed files with 37 additions and 3 deletions
@@ -17,6 +17,15 @@ exports[`disable animate 1`] = `
exports[`render chidren 1`] = `<div>Content</div>`;
exports[`round prop 1`] = `
<div class="van-skeleton van-skeleton--animate van-skeleton--round">
<div class="van-skeleton__avatar van-skeleton__avatar--round" style="width: 32px; height: 32px;"></div>
<div class="van-skeleton__content">
<h3 class="van-skeleton__title" style="width: 40%;"></h3>
</div>
</div>
`;
exports[`row-width array 1`] = `
<div class="van-skeleton van-skeleton--animate">
<div class="van-skeleton__content">
+11
View File
@@ -34,6 +34,17 @@ test('avatar shape', () => {
expect(wrapper).toMatchSnapshot();
});
test('round prop', () => {
const wrapper = mount(Skeleton, {
propsData: {
title: true,
round: true,
avatar: true,
},
});
expect(wrapper).toMatchSnapshot();
});
test('disable animate', () => {
const wrapper = mount(Skeleton, {
propsData: {