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>
|
|
|
|
|
可以使用 `type` 属性,指定徽标在不同功能状态下的样式。
|
|
|
|
|
</docs>
|
|
|
|
|
|
|
|
|
|
<docs locale="en-US">
|
|
|
|
|
Use the `type` prop to apply different contextual styles.
|
|
|
|
|
</docs>
|