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

16 lines
362 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 setup>
import { Badge as TinyBadge } from '@opentiny/vue'
</script>