"use strict";const e=require("vue"),a=require("../Shared/base-iCmnU-fv.js"),m={key:0,class:"tip-must"},u={class:"control-label-text"},p=e.defineComponent({name:"ClFormGroup",__name:"Index",props:{colRatio:{type:String,default:"2:10"},className:{type:String,default:""},label:String,isTipMust:{type:Boolean,default:!1},isPlaintext:{type:Boolean,default:!1}},setup(n){const o=n,r=e.computed(()=>{const t={"form-group":!0,"form-group-plaintext":o.isPlaintext,row:!0};return a.CommonBase.isEmpty(o.className)||o.className.split(" ").forEach(l=>{a.CommonBase.isEmpty(l)||(t[l]=!0)}),t}),c=e.computed(()=>{let t="2";const l=o.colRatio.split(":");l.length>0&&(t=l[0]);const s={"control-label":!0};return s[`col-sm-${t}`]=!0,s[`col-${t}`]=!0,s}),i=e.computed(()=>{let t="10";const l=o.colRatio.split(":");l.length>1&&(t=l[1]);const s={};return s[`col-sm-${t}`]=!0,s[`col-${t}`]=!0,s});return(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(r.value)},[e.createElementVNode("div",{class:e.normalizeClass(c.value)},[e.createElementVNode("span",null,[n.isTipMust?(e.openBlock(),e.createElementBlock("span",m,"*")):e.createCommentVNode("",!0),e.createElementVNode("span",u,e.toDisplayString(n.label),1),e.renderSlot(t.$slots,"labelExtend")])],2),e.createElementVNode("div",{class:e.normalizeClass(i.value)},[e.renderSlot(t.$slots,"default")],2)],2))}});module.exports=p;
//# sourceMappingURL=ClFormGroup.cjs.map
