mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
415 B
415 B
格式化
<n-date-picker
v-model:value="timestamp"
type="datetime"
clearable
:format="format"
/>
<n-date-picker v-model:value="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;
}