mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2026-07-31 18:35:47 +00:00
1 line
2.2 KiB
JavaScript
1 line
2.2 KiB
JavaScript
import{At as e,E as t,Mt as n,Ot as r,Tt as i,Xt as a,dn as o,en as s,jt as c}from"./chunks/framework.ECw2lWOt.js";var l=JSON.parse(`{"title":"DatePicker 日期选择器","description":"","frontmatter":{},"headers":[],"relativePath":"form-config/fields/date-picker.md","filePath":"form-config/fields/date-picker.md"}`),u={name:`form-config/fields/date-picker.md`};function d(t,l,u,d,f,p){let m=s(`demo-block`);return a(),r(`div`,null,[l[4]||=i(`h1`,{id:`datepicker-日期选择器`,tabindex:`-1`},[c(`DatePicker 日期选择器 `),i(`a`,{class:`header-anchor`,href:`#datepicker-日期选择器`,"aria-label":`Permalink to “DatePicker 日期选择器”`},``)],-1),l[5]||=i(`p`,null,`用于选择或输入日期`,-1),l[6]||=i(`h2`,{id:`基础用法`,tabindex:`-1`},[c(`基础用法 `),i(`a`,{class:`header-anchor`,href:`#基础用法`,"aria-label":`Permalink to “基础用法”`},``)],-1),n(m,{type:`form`,config:[{type:`date`,name:`date`,text:`日期选择器`}]},{source:o(()=>[...l[0]||=[i(`p`,null,` 以日期为基本单位,基础的日期选择控件 `,-1)]]),_:1}),l[7]||=i(`h2`,{id:`禁用状态`,tabindex:`-1`},[c(`禁用状态 `),i(`a`,{class:`header-anchor`,href:`#禁用状态`,"aria-label":`Permalink to “禁用状态”`},``)],-1),n(m,{type:`form`,config:[{type:`date`,name:`date`,text:`日期选择器`,disabled:()=>!0}]},{source:o(()=>[...l[1]||=[i(`p`,null,[c(` 通过 `),i(`code`,null,`disabled`),c(` 属性禁用日期选择器 `)],-1)]]),_:1}),l[8]||=i(`h2`,{id:`占位符`,tabindex:`-1`},[c(`占位符 `),i(`a`,{class:`header-anchor`,href:`#占位符`,"aria-label":`Permalink to “占位符”`},``)],-1),n(m,{type:`form`,config:[{type:`date`,name:`date`,text:`日期选择器`,placeholder:`请选择日期`}]},{source:o(()=>[...l[2]||=[i(`p`,null,[c(` 通过 `),i(`code`,null,`placeholder`),c(` 属性设置输入框占位文本 `)],-1)]]),_:1}),l[9]||=e("",5),n(m,{type:`form`,config:[{type:`date`,name:`date`,text:`日期选择器`,format:`YYYY-MM-DD`,valueFormat:`x`}]},{source:o(()=>[...l[3]||=[i(`p`,null,[c(` 设置 `),i(`code`,null,`valueFormat`),c(` 为 `),i(`code`,null,`timestamp`),c(`,绑定值将返回时间戳格式 `)],-1)]]),_:1}),l[10]||=e("",7)])}var f=t(u,[[`render`,d]]);export{l as __pageData,f as default}; |