fix: skeleton error

This commit is contained in:
tanjinzhou 2020-08-03 17:52:03 +08:00
parent 8f19769cce
commit ed1c0147d4
5 changed files with 8 additions and 5 deletions

@ -1 +1 @@
Subproject commit bb1ff4ddc529b85b5ab492d80d391b057fdd6eaa
Subproject commit e03b6665dabc7b2d464ab9c7f44de66702ca1727

View File

@ -45,7 +45,6 @@ export default {
if (this.clickWaveTimeoutId) {
clearTimeout(this.clickWaveTimeoutId);
}
this.destroy = true;
},
methods: {
onClick(node, waveColor) {
@ -89,7 +88,7 @@ export default {
TransitionEvents.addEndEventListener(node, this.onTransitionEnd);
},
onTransitionStart(e) {
if (this.destroy) return;
if (this._.isUnmounted) return;
const node = findDOMNode(this);
if (!e || e.target !== node) {

View File

@ -80,6 +80,7 @@ exports[`Skeleton avatar size 4`] = `
exports[`Skeleton paragraph rows 1`] = `
<div class="ant-skeleton">
<!---->
<div class="ant-skeleton-content">
<h3 class="ant-skeleton-title" style="width: 38%;"></h3>
<ul class="ant-skeleton-paragraph">
@ -95,6 +96,7 @@ exports[`Skeleton paragraph rows 1`] = `
exports[`Skeleton paragraph width 1`] = `
<div class="ant-skeleton">
<!---->
<div class="ant-skeleton-content">
<h3 class="ant-skeleton-title" style="width: 38%;"></h3>
<ul class="ant-skeleton-paragraph">
@ -108,6 +110,7 @@ exports[`Skeleton paragraph width 1`] = `
exports[`Skeleton paragraph width 2`] = `
<div class="ant-skeleton">
<!---->
<div class="ant-skeleton-content">
<h3 class="ant-skeleton-title" style="width: 38%;"></h3>
<ul class="ant-skeleton-paragraph">
@ -121,6 +124,7 @@ exports[`Skeleton paragraph width 2`] = `
exports[`Skeleton title width 1`] = `
<div class="ant-skeleton">
<!---->
<div class="ant-skeleton-content">
<h3 class="ant-skeleton-title" style="width: 93%;"></h3>
<ul class="ant-skeleton-paragraph">

View File

@ -11,7 +11,7 @@ describe('Skeleton', () => {
...props,
},
slots: {
default: 'Bamboo',
default: () => 'Bamboo',
},
sync: false,
};

View File

@ -4,7 +4,7 @@
</div>
</template>
<script>
import demo from '../antdv-demo/docs/result/demo/index';
import demo from '../antdv-demo/docs/skeleton/demo/index';
export default {
components: {