naive-ui/demo/documentation/components/datePicker/enUS/format.demo.md
07akioni 487001d697 build: add changelog to site, refactor loader based on suffix
.demo.md for component demo
.demo-entry.md for demo entry
.md for common docs
2020-08-19 23:30:04 +08:00

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;
}