tmagic-editor/docs/assets/form-config_fields_datetime-picker.md.DfoD17gt.lean.js
2026-11-13 04:26:01 +00:00

1 line
2.5 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{Pt as e,Rt as t,Xt as n,ct as r,dt as i,ht as a,mt as o,n as s,pt as c}from"./chunks/framework.xVFRZL1t.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(s,l,u,d,f,p){let m=t(`demo-block`);return e(),i(`div`,null,[l[4]||=r(`h1`,{id:`datetimepicker-日期时间选择器`,tabindex:`-1`},[o(`DateTimePicker 日期时间选择器 `),r(`a`,{class:`header-anchor`,href:`#datetimepicker-日期时间选择器`,"aria-label":`Permalink to “DateTimePicker 日期时间选择器”`},`​`)],-1),l[5]||=r(`p`,null,`在同一个选择器里选择日期和时间`,-1),l[6]||=r(`h2`,{id:`基础用法`,tabindex:`-1`},[o(`基础用法 `),r(`a`,{class:`header-anchor`,href:`#基础用法`,"aria-label":`Permalink to “基础用法”`},`​`)],-1),a(m,{type:`form`,config:[{type:`datetime`,name:`dateTime`,text:`日期时间选择器`}]},{source:n(()=>[...l[0]||=[r(`p`,null,[o(` 通过设置 `),r(`code`,null,`type: 'datetime'`),o(` 使用日期时间选择器,可以同时选择日期和时间。 `)],-1)]]),_:1}),l[7]||=r(`h2`,{id:`带占位符`,tabindex:`-1`},[o(`带占位符 `),r(`a`,{class:`header-anchor`,href:`#带占位符`,"aria-label":`Permalink to “带占位符”`},`​`)],-1),a(m,{type:`form`,config:[{type:`datetime`,name:`dateTime`,text:`日期时间选择器`,placeholder:`请选择日期时间`}]},{source:n(()=>[...l[1]||=[r(`p`,null,[o(` 通过 `),r(`code`,null,`placeholder`),o(` 属性设置输入框的占位文本。 `)],-1)]]),_:1}),l[8]||=r(`h2`,{id:`禁用状态`,tabindex:`-1`},[o(`禁用状态 `),r(`a`,{class:`header-anchor`,href:`#禁用状态`,"aria-label":`Permalink to “禁用状态”`},`​`)],-1),a(m,{type:`form`,config:[{type:`datetime`,name:`dateTime`,text:`日期时间选择器`,disabled:()=>!0}]},{source:n(()=>[...l[2]||=[r(`p`,null,[o(` 通过 `),r(`code`,null,`disabled`),o(` 属性禁用日期时间选择器,支持布尔值或函数。 `)],-1)]]),_:1}),l[9]||=c("",5),a(m,{type:`form`,config:[{type:`datetime`,name:`dateTime`,text:`日期时间选择器`,format:`YYYY-MM-DD HH:mm`,valueFormat:`x`}]},{source:n(()=>[...l[3]||=[r(`p`,null,[o(` 自定义格式化:显示格式为 `),r(`code`,null,`YYYY-MM-DD HH:mm`),o(`,绑定值格式为时间戳。 `)],-1)]]),_:1}),l[10]||=c("",5)])}var f=s(u,[[`render`,d]]);export{l as __pageData,f as default};