FormItemColumnProps-ca6ce1d7.js 2.07 KB
import{d,a8 as m,_ as e,$ as n,a9 as s,aa as p,F as C,ab as _,ai as v,ad as y,ac as a}from"./vue-5a35c3f5.js";import{b as I}from"./formItemPropsConfig-bee2761c.js";import P from"./RuleProps-2441266b.js";import{a as F}from"./useFormDesignState-032955db.js";import{a4 as b,a1 as g,ay as k,bJ as h,aX as E,az as w,aI as $,aY as S,l as A}from"./antd-6b087f69.js";import{_ as B}from"./index.js";import"./formItemConfig-88eb9e72.js";import"./componentMap-4d1c941b.js";import"./useFormItem-9ea791b8.js";import"./RadioButtonGroup-72b65d2e.js";import"./index-c1c2669a.js";import"./useWindowSizeFn-cc2fb57c.js";import"./uuid-31b8b5a4.js";import"./download-3d468407.js";import"./base64Conver-39fc0d26.js";import"./index-1ca3bd8a.js";import"./IconPicker-6bbd557c.js";import"./index-9a895eb5.js";import"./index-15077a33.js";const D=d({name:"FormItemProps",components:{RuleProps:P,Empty:b,Input:g,Form:k,FormItem:h,Switch:E,Checkbox:w,Select:$,Slider:S},setup(){const{formConfig:o}=F();return{baseItemColumnProps:I,formConfig:o,showProps:t=>t&&A(t)?!t.includes(o.value.currentItem.component):!0}}}),U={class:"properties-content"},V={key:0,class:"properties-body"};function z(o,i,t,J,L,N){const c=m("Empty"),l=m("FormItem"),u=m("Form");return e(),n("div",U,[o.formConfig.currentItem?(e(),n("div",V,[o.formConfig.currentItem.key?(e(),s(u,{key:1,"label-align":"left",layout:"vertical"},{default:p(()=>[(e(!0),n(C,null,_(o.baseItemColumnProps,r=>(e(),n("div",{key:r.name},[o.showProps(r.exclude)?(e(),s(l,{key:0,label:r.label},{default:p(()=>[o.formConfig.currentItem.colProps?(e(),s(v(r.component),y({key:0,class:"component-props"},r.componentProps,{value:o.formConfig.currentItem.colProps[r.name],"onUpdate:value":f=>o.formConfig.currentItem.colProps[r.name]=f}),null,16,["value","onUpdate:value"])):a("v-if",!0)]),_:2},1032,["label"])):a("v-if",!0)]))),128))]),_:1})):(e(),s(c,{key:0,class:"hint-box",description:"未选择控件"}))])):a("v-if",!0)])}const no=B(D,[["render",z],["__file","E:/allcode/erp/test7901/order-erp-front/src/views/form-design/components/VFormDesign/components/FormItemColumnProps.vue"]]);export{no as default};