2016-09-09 14:29:19 +08:00
|
|
|
<template>
|
|
|
|
<div>
|
2016-09-12 11:59:15 +08:00
|
|
|
<Alert show-icon>
|
|
|
|
成功的提示
|
|
|
|
</Alert>
|
|
|
|
<Alert closable show-icon>
|
|
|
|
成功的提示
|
|
|
|
<span slot="desc">这里是成功的内容</span>
|
|
|
|
</Alert>
|
|
|
|
<Alert type="warning" closable show-icon>
|
|
|
|
成功的提示
|
|
|
|
<span slot="desc">这里是成功的内容</span>
|
|
|
|
</Alert>
|
|
|
|
<Alert type="success" closable show-icon>
|
|
|
|
成功的提示
|
|
|
|
<span slot="desc">这里是成功的内容</span>
|
|
|
|
</Alert>
|
|
|
|
<Alert type="error" closable show-icon @on-close="closed">
|
|
|
|
成功的提示
|
|
|
|
<span slot="desc">这里是成功的内容</span>
|
|
|
|
</Alert>
|
2016-09-09 14:29:19 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
2016-09-12 11:59:15 +08:00
|
|
|
import { Radio, Alert, Icon } from 'iview';
|
2016-09-09 14:29:19 +08:00
|
|
|
|
|
|
|
const RadioGroup = Radio.Group;
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
Radio,
|
2016-09-12 11:59:15 +08:00
|
|
|
RadioGroup,
|
|
|
|
Alert,
|
|
|
|
Icon
|
2016-09-09 14:29:19 +08:00
|
|
|
},
|
|
|
|
props: {
|
|
|
|
|
|
|
|
},
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
radio: true,
|
|
|
|
radioGroup: '段模'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
changeGroup (data) {
|
|
|
|
console.log(data);
|
2016-09-12 11:59:15 +08:00
|
|
|
},
|
|
|
|
closed (data) {
|
|
|
|
console.log(data)
|
2016-09-09 14:29:19 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|