chore: rename scopedSlots to slots in legacy cases

This commit is contained in:
chenjiahan
2020-11-14 06:47:08 +08:00
parent bea039c810
commit 2550ac9111
21 changed files with 41 additions and 41 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ const defaultProps = {
leftWidth: 100,
rightWidth: 100,
},
scopedSlots: {
slots: {
left: () => 'Left',
right: () => 'Right',
},
@@ -120,7 +120,7 @@ test('auto calc width', async () => {
});
const wrapper = mount(SwipeCell, {
scopedSlots: defaultProps.scopedSlots,
slots: defaultProps.scopedSlots,
});
await later();
@@ -136,7 +136,7 @@ test('render one side', async () => {
});
const wrapper = mount(SwipeCell, {
scopedSlots: {
slots: {
left: defaultProps.scopedSlots.left,
},
});