mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-30 11:08:00 +08:00
fix: skeleton error
This commit is contained in:
parent
8f19769cce
commit
ed1c0147d4
@ -1 +1 @@
|
||||
Subproject commit bb1ff4ddc529b85b5ab492d80d391b057fdd6eaa
|
||||
Subproject commit e03b6665dabc7b2d464ab9c7f44de66702ca1727
|
@ -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) {
|
||||
|
@ -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">
|
||||
|
@ -11,7 +11,7 @@ describe('Skeleton', () => {
|
||||
...props,
|
||||
},
|
||||
slots: {
|
||||
default: 'Bamboo',
|
||||
default: () => 'Bamboo',
|
||||
},
|
||||
sync: false,
|
||||
};
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user