From 921f8a88fb0290285e570a0f3ff3b64ddcb5a00d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Fri, 3 May 2019 08:44:41 +0800 Subject: [PATCH] [improvement] Toast: optimize loading-type default value --- packages/toast/Toast.js | 5 +---- packages/toast/index.js | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/toast/Toast.js b/packages/toast/Toast.js index bc20e6f3c..ac5490b01 100644 --- a/packages/toast/Toast.js +++ b/packages/toast/Toast.js @@ -11,16 +11,13 @@ export default sfc({ props: { className: null, + loadingType: String, forbidClick: Boolean, message: [String, Number], type: { type: String, default: 'text' }, - loadingType: { - type: String, - default: 'circular' - }, position: { type: String, default: 'middle' diff --git a/packages/toast/index.js b/packages/toast/index.js index debdd299f..60098cae5 100644 --- a/packages/toast/index.js +++ b/packages/toast/index.js @@ -12,7 +12,7 @@ const defaultOptions = { duration: 3000, position: 'middle', forbidClick: false, - loadingType: 'circular', + loadingType: undefined, getContainer: 'body', overlayStyle: null };