tmagic-editor/docs/assets/form-config_fields_timerange-picker.md.Bjottjin.lean.js
2026-02-02 11:13:56 +00:00

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