[bugfix] Dialog: cancel button display (#2685)

This commit is contained in:
neverland
2019-02-05 11:15:47 +08:00
committed by GitHub
parent 4374293c4e
commit b896113ad6
2 changed files with 27 additions and 21 deletions

View File

@@ -7,7 +7,10 @@ transitionStub();
test('Dialog function call', async () => {
Dialog.close();
Dialog.alert('1');
Dialog.alert({
message: '1',
showCancelButton: true
});
await later();
@@ -35,6 +38,7 @@ test('before close', () => {
const wrapper = mount(DialogVue, {
propsData: {
value: true,
showCancelButton: true,
beforeClose: (action, done) => done(false)
}
});