[new feature] Toast: add get-container prop (#2724)

This commit is contained in:
neverland
2019-02-12 19:39:45 +08:00
committed by GitHub
parent c778a50cd4
commit ba811b50b0
4 changed files with 18 additions and 11 deletions

View File

@@ -5,14 +5,15 @@ import { isObj, isServer } from '../utils';
const defaultOptions = {
type: 'text',
mask: false,
message: '',
value: true,
duration: 3000,
message: '',
className: '',
duration: 3000,
position: 'middle',
loadingType: 'circular',
forbidClick: false,
overlayStyle: {}
loadingType: 'circular',
getContainer: 'body',
overlayStyle: null
};
const parseOptions = message => (isObj(message) ? message : { message });