feat(NumberKeyboard): add extra-key slot (#4644)

* feat(NumberKeyboard): add extra-key slot

* fix: snapshot
This commit is contained in:
neverland
2019-10-05 07:41:37 +08:00
committed by GitHub
parent f37044aaed
commit 5ce9c28e0c
8 changed files with 39 additions and 15 deletions
+10
View File
@@ -88,6 +88,16 @@ test('title-left slot', () => {
expect(wrapper).toMatchSnapshot();
});
test('extra-key slot', () => {
const wrapper = mount(NumberKeyboard, {
scopedSlots: {
'extra-key': () => 'Custom Extra Key'
}
});
expect(wrapper).toMatchSnapshot();
});
test('hideOnClickOutside', () => {
const wrapper = mount(NumberKeyboard, {
propsData: {