From ee9ba197ba7925853291d49f43f279fc17537d91 Mon Sep 17 00:00:00 2001
From: tanjinzhou <415800467@qq.com>
Date: Mon, 26 Oct 2020 18:31:50 +0800
Subject: [PATCH] test: update snap
---
components/_util/transition.tsx | 13 +-
.../__tests__/__snapshots__/demo.test.js.snap | 2 +-
.../__tests__/__snapshots__/demo.test.js.snap | 64 +-
.../__tests__/__snapshots__/demo.test.js.snap | 130 +-
.../__tests__/__snapshots__/demo.test.js.snap | 214 +-
.../__snapshots__/index.test.js.snap | 16 +-
components/select/__tests__/index.test.js | 45 +-
.../__tests__/__snapshots__/demo.test.js.snap | 6 +-
.../__snapshots__/index.test.js.snap | 4 +-
components/steps/index.tsx | 3 +-
.../Table.rowSelection.test.js.snap | 7 +
.../__snapshots__/Table.test.js.snap | 7 +
.../__tests__/__snapshots__/demo.test.js.snap | 8 +-
components/table/interface.ts | 16 +-
components/tooltip/abstractTooltipProps.ts | 1 +
.../__tests__/__snapshots__/demo.test.js.snap | 12619 ++++++++--------
.../__tests__/__snapshots__/demo.test.js.snap | 53 +-
.../__tests__/__snapshots__/demo.test.js.snap | 2 +-
.../__tests__/__snapshots__/demo.test.js.snap | 26 +-
.../vc-select/Selector/MultipleSelector.tsx | 2 +-
20 files changed, 6638 insertions(+), 6600 deletions(-)
diff --git a/components/_util/transition.tsx b/components/_util/transition.tsx
index c762203de..d3534fd0f 100644
--- a/components/_util/transition.tsx
+++ b/components/_util/transition.tsx
@@ -1,4 +1,4 @@
-import { defineComponent, Fragment, nextTick, Transition as T, TransitionGroup as TG } from 'vue';
+import { defineComponent, nextTick, Transition as T, TransitionGroup as TG } from 'vue';
import { findDOMNode } from './props-util';
export const getTransitionProps = (transitionName: string, opt: object = {}) => {
@@ -60,14 +60,21 @@ if (process.env.NODE_ENV === 'test') {
}
return slots.default?.();
};
+ Transition.displayName = 'TransitionForTest'
Transition.inheritAttrs = false;
TransitionGroup = defineComponent({
+ name: 'TransitionGroupForTest',
inheritAttrs: false,
props: ['tag', 'class'],
setup(props, { slots }) {
- const { tag: Tag = Fragment, ...rest } = props;
+ const { tag: Tag, ...rest } = props;
return () => {
- return