Merge branch '2.x' into dev

This commit is contained in:
chenjiahan
2020-10-31 18:19:32 +08:00
29 changed files with 324 additions and 69 deletions
+12 -1
View File
@@ -52,7 +52,7 @@ test('without price', () => {
test('top slot', () => {
const wrapper = mount(SubmitBar, {
scopedSlots: {
top: () => 'top',
top: () => 'Custom Top',
},
});
@@ -119,3 +119,14 @@ test('button-color prop', () => {
});
expect(wrapper).toMatchSnapshot();
});
test('button slot', () => {
const wrapper = mount(SubmitBar, {
buttonText: 'text',
scopedSlots: {
button: () => 'Custom button',
},
});
expect(wrapper).toMatchSnapshot();
});