mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
487001d697
.demo.md for component demo .demo-entry.md for demo entry .md for common docs
400 B
400 B
Format
<n-date-picker
v-model="timestamp"
type="datetime"
clearable
:format="format"
/>
<n-date-picker v-model="timestamp2" type="datetime" :format="format" clearable />
export default {
data () {
return {
timestamp: null,
timestamp2: 1183135260000,
format: 'yyyy/MM/dd - HH:mm'
}
}
}
.n-date-picker {
margin: 0 12px 8px 0;
}