ElementUI 源码学习-Alert
index.js
import Alert from './src/main';
/* istanbul ignore next */
Alert.install = function(Vue) {
Vue.component(Alert.name, Alert);
};
export default Alert;
title,description
title: {
type: String,
default: ''
},
<span class="el-alert__title" :class="[ isBoldTitle ]" v-if="title || $slots.title">
<slot name="title">{
{
title }}</slot>
</span>
<p