tiny-vue_version0/examples/sites/demos/pc/app/badge/offset.vue

22 lines
404 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div>
<p>使用字符串</p>
<br />
<tiny-badge :value="2" :offset="['0', '-50%']">我的待办</tiny-badge>
<br /><br />
<p>使用数字</p>
<br />
<tiny-badge :value="2" :offset="[0, -10]">我的待办</tiny-badge>
</div>
</template>
<script>
import { Badge } from '@opentiny/vue'
export default {
components: {
TinyBadge: Badge
}
}
</script>