mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
745 B
745 B
Pairwise Value
<n-input
pair
separator="-"
v-model:value="value"
:placeholder="placeholder"
clearable
@blur="handleInputBlur"
@focus="handleInputFocus"
@change="handleInputChange"
@update:value="handleInputInput"
/>
export default {
inject: ['message'],
data () {
return {
placeholder: ['From', 'To'],
value: ['0', '100']
}
},
methods: {
handleInputBlur () {
this.message.info('Pairwise Value:Blur')
},
handleInputFocus () {
this.message.info('Pairwise Value:Focus')
},
handleInputInput () {
this.message.info('Pairwise Value:Input')
},
handleInputChange () {
this.message.info('Pairwise Value:Change')
}
}
}