tmagic-editor/docs/assets/form-config_fields_timerange-picker.md.kRMAFTrr.lean.js
2026-06-02 11:11:57 +00:00

2 lines
1.8 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{ax as k,al as l,z as p,A as e,B as i,R as h,b5 as r,O as a,J as t}from"./chunks/framework.V2ssSR2R.js";const c=JSON.parse('{"title":"TimeRangePicker 时间范围选择器","description":"","frontmatter":{},"headers":[],"relativePath":"form-config/fields/timerange-picker.md","filePath":"form-config/fields/timerange-picker.md"}'),d={name:"form-config/fields/timerange-picker.md"};function g(F,s,y,E,o,A){const n=l("demo-block");return e(),p("div",null,[s[2]||(s[2]=i("h1",{id:"timerangepicker-时间范围选择器",tabindex:"-1"},[a("TimeRangePicker 时间范围选择器 "),i("a",{class:"header-anchor",href:"#timerangepicker-时间范围选择器","aria-label":"Permalink to “TimeRangePicker 时间范围选择器”"},"")],-1)),s[3]||(s[3]=i("p",null,"用于选择或输入时间范围",-1)),s[4]||(s[4]=i("h2",{id:"基础用法",tabindex:"-1"},[a("基础用法 "),i("a",{class:"header-anchor",href:"#基础用法","aria-label":"Permalink to “基础用法”"},"")],-1)),h(n,{type:"form",config:[{type:"timerange",name:"timerange",text:"时间范围"}]},{source:t(()=>[...s[0]||(s[0]=[i("p",null," type为'timerange' ",-1)])]),_:1}),s[5]||(s[5]=i("h2",{id:"绑定多个字段",tabindex:"-1"},[a("绑定多个字段 "),i("a",{class:"header-anchor",href:"#绑定多个字段","aria-label":"Permalink to “绑定多个字段”"},"")],-1)),s[6]||(s[6]=i("p",null,[a("可以通过配置 "),i("code",null,"names"),a(" 来将时间范围绑定到两个不同的字段上。")],-1)),h(n,{type:"form",config:[{type:"timerange",names:["startTime","endTime"],text:"时间范围"}]},{source:t(()=>[...s[1]||(s[1]=[i("p",null," 配置 names 属性,将开始时间和结束时间分别绑定到 startTime 和 endTime 字段。 ",-1)])]),_:1}),s[7]||(s[7]=r("",5))])}const B=k(d,[["render",g]]);export{c as __pageData,B as default};