mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
[new feature] NumberKeyboard: add title-left slot (#3194)
This commit is contained in:
@@ -83,3 +83,19 @@ test('listen to show event when no transtion', () => {
|
||||
expect(wrapper.emitted('show')).toBeTruthy();
|
||||
expect(wrapper.emitted('hide')).toBeTruthy();
|
||||
});
|
||||
|
||||
test('title-left slot', () => {
|
||||
const wrapper = mount({
|
||||
template: `
|
||||
<number-keyboard show>
|
||||
<template v-slot:title-left>Custom Title Left</template>
|
||||
</number-keyboard>
|
||||
`
|
||||
}, {
|
||||
components: {
|
||||
NumberKeyboard
|
||||
}
|
||||
});
|
||||
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
|
Reference in New Issue
Block a user