2020-08-13 11:47:56 +08:00
|
|
|
|
<template>
|
|
|
|
|
<article>
|
|
|
|
|
<veui-badge
|
|
|
|
|
value="New"
|
|
|
|
|
type="success"
|
|
|
|
|
>
|
|
|
|
|
<veui-button>View</veui-button>
|
|
|
|
|
</veui-badge>
|
|
|
|
|
<veui-badge
|
|
|
|
|
value="New"
|
|
|
|
|
type="info"
|
|
|
|
|
>
|
|
|
|
|
<veui-button>View</veui-button>
|
|
|
|
|
</veui-badge>
|
|
|
|
|
<veui-badge value="New">
|
|
|
|
|
<veui-button>View</veui-button>
|
|
|
|
|
</veui-badge>
|
|
|
|
|
<veui-badge
|
|
|
|
|
value="New"
|
|
|
|
|
type="warning"
|
|
|
|
|
>
|
|
|
|
|
<veui-button>View</veui-button>
|
|
|
|
|
</veui-badge>
|
|
|
|
|
<veui-badge
|
|
|
|
|
value="New"
|
|
|
|
|
type="aux"
|
|
|
|
|
>
|
|
|
|
|
<veui-button>View</veui-button>
|
|
|
|
|
</veui-badge>
|
|
|
|
|
</article>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { Badge, Button } from 'veui'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
'veui-badge': Badge,
|
|
|
|
|
'veui-button': Button
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
2021-09-15 20:03:51 +08:00
|
|
|
|
<style lang="less" scoped>
|
2020-08-13 11:47:56 +08:00
|
|
|
|
.veui-badge {
|
|
|
|
|
& + & {
|
|
|
|
|
margin-left: 2em;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<docs>
|
2021-10-20 01:11:27 +08:00
|
|
|
|
可以使用 [`type`](#props-type) 属性,指定徽标在不同功能状态下的样式。
|
2020-08-13 11:47:56 +08:00
|
|
|
|
</docs>
|
|
|
|
|
|
|
|
|
|
<docs locale="en-US">
|
2021-10-20 01:11:27 +08:00
|
|
|
|
Use the [`type`](#props-type) prop to apply different contextual styles.
|
2020-08-13 11:47:56 +08:00
|
|
|
|
</docs>
|