[Improvement] optimize isDef (#1109)

This commit is contained in:
neverland
2018-05-19 18:43:44 +08:00
committed by GitHub
parent 249e2400a3
commit d15efd756e
9 changed files with 5 additions and 28 deletions

View File

@@ -18,7 +18,6 @@
<script>
import create from '../utils/create';
import Popup from '../mixins/popup';
import { isDef } from '../utils';
const STYLE_LIST = ['success', 'fail', 'loading'];
@@ -51,10 +50,6 @@ export default create({
displayStyle() {
return STYLE_LIST.indexOf(this.type) !== -1 ? 'default' : this.type;
}
},
methods: {
isDef
}
});
</script>