diff --git a/components/slider/index.jsx b/components/slider/index.jsx index 730ad9b32..eab933480 100644 --- a/components/slider/index.jsx +++ b/components/slider/index.jsx @@ -74,7 +74,7 @@ const Slider = { }, })) }, - handleWithTooltip (h, { value, dragging, index, ref, ...restProps }) { + handleWithTooltip ({ value, dragging, index, ref, ...restProps }) { const { tooltipPrefixCls, tipFormatter } = this.$props const { visibles } = this const visible = tipFormatter ? (visibles[index] || dragging) : false diff --git a/components/spin/__tests__/__snapshots__/demo.test.js.snap b/components/spin/__tests__/__snapshots__/demo.test.js.snap index 3a657b311..700812a30 100644 --- a/components/spin/__tests__/__snapshots__/demo.test.js.snap +++ b/components/spin/__tests__/__snapshots__/demo.test.js.snap @@ -11,7 +11,9 @@ exports[`renders ./components/spin/demo/custom-indicator.md correctly 1`] = `
-
+
`; diff --git a/components/spin/__tests__/index.test.js b/components/spin/__tests__/index.test.js index 53d780913..df23ccc4a 100644 --- a/components/spin/__tests__/index.test.js +++ b/components/spin/__tests__/index.test.js @@ -37,7 +37,7 @@ describe('Spin', () => { delay: 500, spinning: true, }, - async: false, + sync: false, } const wrapper = mount(Spin, props) await asyncExpect(() => { @@ -50,13 +50,15 @@ describe('Spin', () => { propsData: { spinning: false, }, - async: false, + sync: false, } const wrapper = mount(Spin, props) await asyncExpect(() => { - expect(wrapper.vm.stateSpinning).toBe(false) + expect(wrapper.vm.sSpinning).toBe(false) wrapper.setProps({ spinning: true }) - expect(wrapper.vm.stateSpinning).toBe(true) + }) + await asyncExpect(() => { + expect(wrapper.vm.sSpinning).toBe(true) }) }) }) diff --git a/components/transfer/__tests__/__snapshots__/demo.test.js.snap b/components/transfer/__tests__/__snapshots__/demo.test.js.snap index a3300fa40..161195a81 100644 --- a/components/transfer/__tests__/__snapshots__/demo.test.js.snap +++ b/components/transfer/__tests__/__snapshots__/demo.test.js.snap @@ -58,48 +58,50 @@ exports[`renders ./components/transfer/demo/advanced.md correctly 1`] = ` `; exports[`renders ./components/transfer/demo/basic.md correctly 1`] = ` -
-
-
2/14 itemsSource
-
-
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
-
Not Found
+
+
+
+
2/14 itemsSource
+
+
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
+
Not Found
+
-
-
-
-
6 itemsTarget
-
-
    -
    -
    -
    -
    -
    -
    -
-
Not Found
+
+
+
6 itemsTarget
+
+
    +
    +
    +
    +
    +
    +
    +
+
Not Found
+
-
+
`; diff --git a/components/transfer/__tests__/__snapshots__/search.test.js.snap b/components/transfer/__tests__/__snapshots__/search.test.js.snap index d0660c4c8..5a5692834 100644 --- a/components/transfer/__tests__/__snapshots__/search.test.js.snap +++ b/components/transfer/__tests__/__snapshots__/search.test.js.snap @@ -3,6 +3,8 @@ exports[`Search should show cross icon when input value exists 1`] = `
`; exports[`Search should show cross icon when input value exists 2`] = ` -
-
+
`; diff --git a/components/transfer/demo/basic.md b/components/transfer/demo/basic.md index 52616a100..61d371988 100644 --- a/components/transfer/demo/basic.md +++ b/components/transfer/demo/basic.md @@ -10,19 +10,20 @@ The most basic usage of `Transfer` involves providing the source data and target ```html