mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
[new feature] Toast: support multiple instance (#586)
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
<script>
|
||||
import { create } from '../utils';
|
||||
|
||||
const DEFAULT_STYLE_LIST = ['success', 'fail', 'loading'];
|
||||
const STYLE_LIST = ['success', 'fail', 'loading'];
|
||||
|
||||
export default create({
|
||||
name: 'van-toast',
|
||||
@@ -48,7 +48,7 @@ export default create({
|
||||
|
||||
computed: {
|
||||
displayStyle() {
|
||||
return DEFAULT_STYLE_LIST.indexOf(this.type) !== -1 ? 'default' : this.type;
|
||||
return STYLE_LIST.indexOf(this.type) !== -1 ? 'default' : this.type;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user