naive-ui/demo/documentation/components/datePicker/enUS/actions.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

667 B

Actions

<n-date-picker
  v-model="ts1"
  type="date"
  :actions="['confirm']"
  style="margin-bottom: 12px;"
/>
<n-date-picker
  v-model="ts2"
  type="datetime"
  style="margin-right: 12px; margin-bottom: 12px;"
  :actions="['now']"
/>
<n-date-picker
  v-model="range1"
  type="daterange"
  :actions="null"
  style="margin-bottom: 12px;"
/>
<n-date-picker
  v-model="range2"
  type="datetimerange"
  style="margin-bottom: 12px;"
  :actions="['clear']"
/>
export default {
  data() {
    return {
      ts1: null,
      ts2: 1183135260000,
      range1: null,
      range2: null
    }
  }
}
.n-date-picker {
  margin: 0 12px 8px 0;
}