mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2026-06-04 22:38:44 +08:00
2 lines
2.3 KiB
JavaScript
2 lines
2.3 KiB
JavaScript
import{ax as l,al as p,z as e,A as d,B as i,R as n,b5 as k,O as a,J as h}from"./chunks/framework.V2ssSR2R.js";const C=JSON.parse('{"title":"DatePicker 日期选择器","description":"","frontmatter":{},"headers":[],"relativePath":"form-config/fields/date-picker.md","filePath":"form-config/fields/date-picker.md"}'),r={name:"form-config/fields/date-picker.md"};function g(F,s,y,E,o,c){const t=p("demo-block");return d(),e("div",null,[s[4]||(s[4]=i("h1",{id:"datepicker-日期选择器",tabindex:"-1"},[a("DatePicker 日期选择器 "),i("a",{class:"header-anchor",href:"#datepicker-日期选择器","aria-label":"Permalink to “DatePicker 日期选择器”"},"")],-1)),s[5]||(s[5]=i("p",null,"用于选择或输入日期",-1)),s[6]||(s[6]=i("h2",{id:"基础用法",tabindex:"-1"},[a("基础用法 "),i("a",{class:"header-anchor",href:"#基础用法","aria-label":"Permalink to “基础用法”"},"")],-1)),n(t,{type:"form",config:[{type:"date",name:"date",text:"日期选择器"}]},{source:h(()=>[...s[0]||(s[0]=[i("p",null," 以日期为基本单位,基础的日期选择控件 ",-1)])]),_:1}),s[7]||(s[7]=i("h2",{id:"禁用状态",tabindex:"-1"},[a("禁用状态 "),i("a",{class:"header-anchor",href:"#禁用状态","aria-label":"Permalink to “禁用状态”"},"")],-1)),n(t,{type:"form",config:[{type:"date",name:"date",text:"日期选择器",disabled:()=>!0}]},{source:h(()=>[...s[1]||(s[1]=[i("p",null,[a(" 通过 "),i("code",null,"disabled"),a(" 属性禁用日期选择器 ")],-1)])]),_:1}),s[8]||(s[8]=i("h2",{id:"占位符",tabindex:"-1"},[a("占位符 "),i("a",{class:"header-anchor",href:"#占位符","aria-label":"Permalink to “占位符”"},"")],-1)),n(t,{type:"form",config:[{type:"date",name:"date",text:"日期选择器",placeholder:"请选择日期"}]},{source:h(()=>[...s[2]||(s[2]=[i("p",null,[a(" 通过 "),i("code",null,"placeholder"),a(" 属性设置输入框占位文本 ")],-1)])]),_:1}),s[9]||(s[9]=k("",5)),n(t,{type:"form",config:[{type:"date",name:"date",text:"日期选择器",format:"YYYY-MM-DD",valueFormat:"x"}]},{source:h(()=>[...s[3]||(s[3]=[i("p",null,[a(" 设置 "),i("code",null,"valueFormat"),a(" 为 "),i("code",null,"timestamp"),a(",绑定值将返回时间戳格式 ")],-1)])]),_:1}),s[10]||(s[10]=k("",7))])}const B=l(r,[["render",g]]);export{C as __pageData,B as default};
|