mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
19 lines
361 B
Vue
19 lines
361 B
Vue
<template>
|
|
<span class="van-tag van-hairline--surround" :class="{ [`van-tag--${type}`]: type, 'van-tag--plain': plain, 'van-tag--mark': mark }">
|
|
<slot></slot>
|
|
</span>
|
|
</template>
|
|
|
|
<script>
|
|
import { create } from '../utils';
|
|
|
|
export default create({
|
|
name: 'van-tag',
|
|
props: {
|
|
type: String,
|
|
mark: Boolean,
|
|
plain: Boolean
|
|
}
|
|
});
|
|
</script>
|