[new feature] NumberKeyboard: add title-left slot (#3194)

This commit is contained in:
neverland
2019-04-22 19:51:42 +08:00
committed by GitHub
parent c9d6222ab1
commit 493860134a
8 changed files with 53 additions and 5 deletions

View File

@@ -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();
});