mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-30 12:52:43 +08:00
755 B
755 B
前缀 & 后缀
在前缀后缀添加内容。
<n-space vertical>
<n-input v-model:value="value" placeholder="搜索">
<template v-slot:prefix>
<n-icon>
<search-outline/>
</n-icon>
</template>
</n-input>
<n-input v-model:value="value" round placeholder="100,000,000">
<template v-slot:suffix>
元
</template>
</n-input>
<n-input v-model:value="value" round placeholder="搜索">
<template v-slot:suffix>
<n-icon>
<search-outline/>
</n-icon>
</template>
</n-input>
</n-space>
import searchOutline from 'naive-ui/lib/icons/search-outline'
export default {
components: {
searchOutline
},
data () {
return {
value: null
}
}
}