"use strict";const e=require("./main-BB7fFseo.cjs");require("./index-YwS-u3iG.cjs");const i=require("./Column.vue_vue_type_script_setup_true_lang-tJ9seOIk.cjs"),c=e.defineComponent({__name:"ColumnNumOption",setup(r){const o=e.ref([{label:"1",value:1},{label:"2",value:2},{label:"3",value:3},{label:"4",value:4}]),n=e.ref([{label:"1",value:1},{label:"2",value:2,disabled:!0},{label:"3",value:3,disabled:!0},{label:"4",value:4,disabled:!0}]),t=e.computed({get:()=>e.activeWidgetAttrs.value.colNum,set:l=>e.setWidgetAttrs({attr:"colNum",value:l})}),a=e.computed({get:()=>e.activeWidgetAttrs.value.list.some(l=>l.desc&&l.desc!="")});return(l,u)=>(e.openBlock(),e.createBlock(e.unref(e.ElTooltip),{content:"由于该字段设置了选项说明，【每行选项数量】仅可为1",placement:"top",disabled:!a.value},{default:e.withCtx(()=>[t.value!==void 0?(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:0,label:"每行选项数量",options:a.value?n.value:o.value,modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=s=>t.value=s)},null,8,["options","modelValue"])):e.createCommentVNode("",!0)]),_:1},8,["disabled"]))}});exports._sfc_main=c;
