"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./main-BB7fFseo.cjs"),s=require("./index-YwS-u3iG.cjs"),c={class:"date-setting"},d={class:"select-wrap"},i={class:"options-label-title"},u={class:"options-label-format"},p={class:"select-show-format"},_=e.defineComponent({__name:"DateSetting",setup(m){const o=[{label:"年月",value:"month",format:"2024-05"},{label:"年月日",value:"date",format:"2024-05-06"},{label:"年月日时分",value:"datetime",format:"2024-05-06 12:30"}],n=e.computed(()=>o.find(a=>a.value===e.activeWidget.value.attrs.dateType)),r=a=>{e.setDateAttrs("dateType",a)};return(a,v)=>(e.openBlock(),e.createElementBlock("div",c,[e.createVNode(e.unref(s.TitleRow),null,{default:e.withCtx(()=>[e.createTextVNode("字段设置")]),_:1}),e.createVNode(e.unref(s.Row),{wrap:"",label:"格式"},{default:e.withCtx(()=>{var l;return[e.createBaseVNode("div",d,[e.createVNode(e.unref(e.ElSelect),{"model-value":e.unref(e.activeWidget).attrs.dateType,"popper-class":"format-select",onChange:r},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(o,t=>e.createVNode(e.unref(e.ElOption),{key:t.value,label:t.label,value:t.value},{default:e.withCtx(()=>[e.createBaseVNode("span",i,e.toDisplayString(t.label),1),e.createBaseVNode("span",u,e.toDisplayString(t.format),1)]),_:2},1032,["label","value"])),64))]),_:1},8,["model-value"]),e.createBaseVNode("div",p,e.toDisplayString((l=n.value)==null?void 0:l.format),1)])]}),_:1})]))}}),f=e._export_sfc(_,[["__scopeId","data-v-91f2dc22"]]);exports.default=f;
