mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2026-09-13 23:48:43 +00:00
1 line
2.5 KiB
JavaScript
1 line
2.5 KiB
JavaScript
import{H as e,It as t,Mt as n,dt as r,ft as i,lt as a,ot as o,pt as s,qt as c}from"./chunks/framework.BTDV-FQ9.js";var l=JSON.parse(`{"title":"DateTimePicker 日期时间选择器","description":"","frontmatter":{},"headers":[],"relativePath":"form-config/fields/datetime-picker.md","filePath":"form-config/fields/datetime-picker.md"}`),u={name:`form-config/fields/datetime-picker.md`};function d(e,l,u,d,f,p){let m=t(`demo-block`);return n(),a(`div`,null,[l[4]||=o(`h1`,{id:`datetimepicker-日期时间选择器`,tabindex:`-1`},[i(`DateTimePicker 日期时间选择器 `),o(`a`,{class:`header-anchor`,href:`#datetimepicker-日期时间选择器`,"aria-label":`Permalink to “DateTimePicker 日期时间选择器”`},``)],-1),l[5]||=o(`p`,null,`在同一个选择器里选择日期和时间`,-1),l[6]||=o(`h2`,{id:`基础用法`,tabindex:`-1`},[i(`基础用法 `),o(`a`,{class:`header-anchor`,href:`#基础用法`,"aria-label":`Permalink to “基础用法”`},``)],-1),s(m,{type:`form`,config:[{type:`datetime`,name:`dateTime`,text:`日期时间选择器`}]},{source:c(()=>[...l[0]||=[o(`p`,null,[i(` 通过设置 `),o(`code`,null,`type: 'datetime'`),i(` 使用日期时间选择器,可以同时选择日期和时间。 `)],-1)]]),_:1}),l[7]||=o(`h2`,{id:`带占位符`,tabindex:`-1`},[i(`带占位符 `),o(`a`,{class:`header-anchor`,href:`#带占位符`,"aria-label":`Permalink to “带占位符”`},``)],-1),s(m,{type:`form`,config:[{type:`datetime`,name:`dateTime`,text:`日期时间选择器`,placeholder:`请选择日期时间`}]},{source:c(()=>[...l[1]||=[o(`p`,null,[i(` 通过 `),o(`code`,null,`placeholder`),i(` 属性设置输入框的占位文本。 `)],-1)]]),_:1}),l[8]||=o(`h2`,{id:`禁用状态`,tabindex:`-1`},[i(`禁用状态 `),o(`a`,{class:`header-anchor`,href:`#禁用状态`,"aria-label":`Permalink to “禁用状态”`},``)],-1),s(m,{type:`form`,config:[{type:`datetime`,name:`dateTime`,text:`日期时间选择器`,disabled:()=>!0}]},{source:c(()=>[...l[2]||=[o(`p`,null,[i(` 通过 `),o(`code`,null,`disabled`),i(` 属性禁用日期时间选择器,支持布尔值或函数。 `)],-1)]]),_:1}),l[9]||=r("",5),s(m,{type:`form`,config:[{type:`datetime`,name:`dateTime`,text:`日期时间选择器`,format:`YYYY-MM-DD HH:mm`,valueFormat:`x`}]},{source:c(()=>[...l[3]||=[o(`p`,null,[i(` 自定义格式化:显示格式为 `),o(`code`,null,`YYYY-MM-DD HH:mm`),i(`,绑定值格式为时间戳。 `)],-1)]]),_:1}),l[10]||=r("",5)])}var f=e(u,[[`render`,d]]);export{l as __pageData,f as default}; |