mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
586 B
586 B
Custom
<n-custom-input
v-model="test1"
title="Add CheckBox"
>
<template v-slot="slotProps">
<div style="width:100%">
<n-checkbox
v-model="slotProps.item.isCheck"
style="width: 120px;"
/>
<n-input-number
v-model="slotProps.item.num"
/>
<n-input
v-model="slotProps.item.string"
type="input"
size="small"
/>
</div>
</template>
</n-custom-input>
export default {
data () {
return {
test1: [
{
isCheck: true
}
]
}
}
}