mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
762 B
762 B
Pairwise Value
<n-input
pair
seperator="-"
v-model="value"
:placeholder="placeholder"
clearable
@blur="handleInputBlur"
@focus="handleInputFocus"
@change="handleInputChange"
@input="handleInputInput"
/>
export default {
data () {
return {
placeholder: ['From', 'To'],
value: ['0', '100']
}
},
methods: {
handleInputBlur () {
this.$NMessage.info('Pairwise Value:Blur')
},
handleInputFocus () {
this.$NMessage.info('Pairwise Value:Focus')
},
handleInputInput () {
this.$NMessage.info('Pairwise Value:Input')
},
handleInputChange () {
this.$NMessage.info('Pairwise Value:Change')
}
}
}
.n-input {
margin-bottom: 8px;
}