一.Alert 警告
前言
Input 为受控组件,它 总会显示 Vue 绑定值。
在正常情况下,input 的输入事件应该被正常响应。 它的处理程序应该更新组件的绑定值 (或使用 v-model)。 否则,输入框的值将不会改变。
不支持 v-model 修饰符。
基础用法
Success alert
Info alert
Warning alert
Error alert
<template>
<div style="max-width: 600px">
<web-alert title="Success alert" type="success" />
<web-alert title="Info alert" type="info" />
<web-alert title="Warning alert" type="warning" />
<web-alert title="Error alert" type="error" />
</div>
</template>
<style scoped>
.web-alert {
margin: 20px 0 0;
}
.web-alert:first-child {
margin: 0;
}
</style>