From d342fa3781cdd698a9ba85893db56946fb90080e Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 4 Aug 2020 16:37:00 +0800 Subject: [PATCH] style(Dialog): fix round-button theme (#6934) * style(Dialog): fix round-button theme * style(Dialog): improve round-button theme --- src/dialog/Dialog.js | 21 ++++++----- src/dialog/demo/index.vue | 4 +-- src/dialog/index.js | 2 +- src/dialog/index.less | 36 +++++++++++-------- .../test/__snapshots__/demo.spec.js.snap | 2 +- .../test/__snapshots__/index.spec.js.snap | 4 +-- 6 files changed, 37 insertions(+), 32 deletions(-) diff --git a/src/dialog/Dialog.js b/src/dialog/Dialog.js index 18058a819..19b9e694e 100644 --- a/src/dialog/Dialog.js +++ b/src/dialog/Dialog.js @@ -12,11 +12,8 @@ export default createComponent({ props: { title: String, + theme: String, width: [Number, String], - theme: { - type: String, - default: 'default', - }, message: String, className: null, callback: Function, @@ -108,14 +105,15 @@ export default createComponent({ genRoundButtons() { return ( - + {this.showCancelButton && ( { this.handleAction('cancel'); }} @@ -125,9 +123,10 @@ export default createComponent({ { this.handleAction('confirm'); }} @@ -141,7 +140,7 @@ export default createComponent({ const multiple = this.showCancelButton && this.showConfirmButton; return ( -
+
{this.showCancelButton && (