element-plus/assets/en-US_component_date-picker.md.10f47edf.lean.js

2 lines
201 KiB
JavaScript
Raw Normal View History

2022-03-29 22:52:56 +08:00
import{_ as C,a as c,b as l,c as u,d as D,e as k,f as F,g as i,h as r}from"./chunks/other-measurements.dc81e6d4.js";import{c as d,a as t,w as p,u as e,b as a,d as o,e as E,r as A,o as m}from"./app.e5926f2b.js";const g=a("h1",{id:"datepicker",tabindex:"-1"},[o("DatePicker "),a("a",{class:"header-anchor",href:"#datepicker","aria-hidden":"true"},"#")],-1),B=a("p",null,"Use Date Picker for date input.",-1),v=a("h2",{id:"enter-date",tabindex:"-1"},[o("Enter Date "),a("a",{class:"header-anchor",href:"#enter-date","aria-hidden":"true"},"#")],-1),h=a("p",null,"Basic date picker measured by 'day'.",-1),y=a("p",null,"date-picker/enter-date",-1),f=a("h2",{id:"other-measurements",tabindex:"-1"},[o("Other measurements "),a("a",{class:"header-anchor",href:"#other-measurements","aria-hidden":"true"},"#")],-1),b=a("p",null,"You can choose week, month, year or multiple dates by extending the standard date picker component.",-1),w=a("p",null,"date-picker/other-measurements",-1),x=a("h2",{id:"date-range",tabindex:"-1"},[o("Date Range "),a("a",{class:"header-anchor",href:"#date-range","aria-hidden":"true"},"#")],-1),q=a("p",null,"Picking a date range is supported.",-1),_=a("p",null,"date-picker/date-range",-1),T=a("h2",{id:"month-range",tabindex:"-1"},[o("Month Range "),a("a",{class:"header-anchor",href:"#month-range","aria-hidden":"true"},"#")],-1),Y=a("p",null,"Picking a month range is supported.",-1),P=a("p",null,"date-picker/month-range",-1),M=E("",3),S=a("p",null,"date-picker/default-value",-1),z=E("",5),j=a("p",null,"date-picker/date-formats",-1),I=a("h2",{id:"default-time-for-start-date-and-end-date",tabindex:"-1"},[o("Default time for start date and end date "),a("a",{class:"header-anchor",href:"#default-time-for-start-date-and-end-date","aria-hidden":"true"},"#")],-1),V=a("p",null,"When picking a date range, you can assign the time part for start date and end date.",-1),R=a("p",null,"date-picker/default-time",-1),N=a("h2",{id:"set-custom-content-of-prefix",tabindex:"-1"},[o("Set custom content of prefix "),a("a",{class:"header-anchor",href:"#set-custom-content-of-prefix","aria-hidden":"true"},"#")],-1),W=a("p",null,"The content of prefix can be customized.",-1),U=a("p",null,"date-picker/custom-prefix-icon",-1),L=a("h2",{id:"custom-content",tabindex:"-1"},[o("Custom content "),a("a",{class:"header-anchor",href:"#custom-content","aria-hidden":"true"},"#")],-1),H=a("p",null,"The content of cell can be customized, in scoped-slot you can get the cell data.",-1),O=a("p",null,"date-picker/custom-content",-1),X=E("",13),a2='{"title":"DatePicker","description":"","frontmatter":{"title":"DatePicker","lang":"en-US"},"headers":[{"level":2,"title":"Enter Date","slug":"enter-date"},{"level":2,"title":"Other measurements","slug":"other-measurements"},{"level":2,"title":"Date Range","slug":"date-range"},{"level":2,"title":"Month Range","slug":"month-range"},{"level":2,"title":"Default Value","slug":"default-value"},{"level":2,"title":"Date Formats","slug":"date-formats"},{"level":2,"title":"Default time for start date and end date","slug":"default-time-for-start-date-and-end-date"},{"level":2,"title":"Set custom content of prefix","slug":"set-custom-content-of-prefix"},{"level":2,"title":"Custom content","slug":"custom-content"},{"level":2,"title":"Localization","slug":"localization"},{"level":2,"title":"Attributes","slug":"attributes"},{"level":2,"title":"Events","slug":"events"},{"level":2,"title":"Methods","slug":"methods"},{"level":2,"title":"Slots","slug":"slots"}],"relativePath":"en-US/component/date-picker.md","lastUpdated":1648565394000}',G={},n2=Object.assign(G,{setup(J){const n={"../../examples/date-picker/custom-content.vue":C,"../../examples/date-picker/custom-prefix-icon.vue":c,"../../examples/date-picker/date-formats.vue":l,"../../examples/date-picker/date-range.vue":u,"../../examples/date-picker/default-time.vue":D,"../../examples/date-picker/default-value.vue":k,"../../examples/date-picker/enter-date.vue":F,"../../examples/date-picker/month-range.vue":i,"../../examples/date-picker/other-measurements.vue":r};return(K,Q)=>{const s=A