mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
26 lines
389 B
Vue
26 lines
389 B
Vue
<template>
|
|
<span
|
|
class="van-tag van-hairline--surround"
|
|
:class="{
|
|
[`van-tag--${type}`]: type,
|
|
'van-tag--plain': plain,
|
|
'van-tag--mark': mark
|
|
}"
|
|
>
|
|
<slot />
|
|
</span>
|
|
</template>
|
|
|
|
<script>
|
|
import { create } from '../utils';
|
|
|
|
export default create({
|
|
name: 'van-tag',
|
|
props: {
|
|
type: String,
|
|
mark: Boolean,
|
|
plain: Boolean
|
|
}
|
|
});
|
|
</script>
|