epic-designer-gold 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/attributeView-CPrGnVQ8.js +106 -0
- package/dist/attributeView-DEg9mFCt.cjs +1 -0
- package/dist/axios-BAhOY32t.cjs +6 -0
- package/dist/{js.cookie-oHpRFPCO.js → axios-BFVeUxau.js} +942 -737
- package/dist/col-BNNn9Yx8.cjs +1 -0
- package/dist/{col-Dy6oYMf5.js → col-u5YiB-UK.js} +8 -8
- package/dist/index-B8V7odtp.cjs +1 -0
- package/dist/index-BEXliJtJ.cjs +1 -0
- package/dist/index-BN_dXDiO.cjs +1 -0
- package/dist/index-BPRzjSrH.cjs +10 -0
- package/dist/index-BPmq8lmK.js +72 -0
- package/dist/index-BY9j66Gp.js +4 -0
- package/dist/{index-DNeYX6HK.js → index-BiXYEiWV.js} +1 -1
- package/dist/index-BoVrWUpL.js +271 -0
- package/dist/{index-DLMH0OSJ.js → index-BstMY1Nn.js} +1 -1
- package/dist/index-Bsv8EECz.js +71 -0
- package/dist/index-C2Sx6r6b.cjs +1 -0
- package/dist/index-C5-ZZLug.cjs +1 -0
- package/dist/index-C6C5D9M8.js +602 -0
- package/dist/index-CIwV58Ko.js +1359 -0
- package/dist/index-CgisEnmm.cjs +1 -0
- package/dist/index-CtkdvWFN.cjs +1 -0
- package/dist/{index-DkyxbMHi.js → index-Cwgv4MbW.js} +24 -24
- package/dist/{index-CYDtBJTI.cjs → index-D3Uft3bJ.cjs} +1 -1
- package/dist/{index-BKDRMrcc.js → index-D7z34DMU.js} +28 -47
- package/dist/index-DAhVvQNH.cjs +1 -0
- package/dist/index-DO5DuUPL.js +581 -0
- package/dist/index-DddOVmF6.cjs +1 -0
- package/dist/index-DdsHIglg.js +104 -0
- package/dist/index-Dru9G2MF.js +195 -0
- package/dist/index-KGGnmoAO.cjs +1 -0
- package/dist/{index-XUQ1VGQg.js → index-Sin3ac_7.js} +1 -1
- package/dist/{index-DJxuHxdI.js → index-dUOJH8fj.js} +24 -24
- package/dist/index-dcjty1Ho.cjs +1 -0
- package/dist/{index-Dyo12Kua.cjs → index-g1W7IHK_.cjs} +1 -1
- package/dist/index-ykB9CsYG.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +35 -35
- package/dist/locale/index.d.ts +4 -0
- package/dist/locale/lang/en-US.d.ts +246 -0
- package/dist/locale/lang/zh-cn.d.ts +246 -0
- package/dist/modal-BLOgN3us.cjs +1 -0
- package/dist/modal-UFu4bD6x.js +57 -0
- package/dist/{outline-CNayBNNC.js → outline-CG-aHThT.js} +2 -2
- package/dist/outline-Coy4TGIa.cjs +1 -0
- package/dist/row-BWnbt6dh.cjs +1 -0
- package/dist/{row-qOviQw5w.js → row-DAy14ve9.js} +4 -4
- package/dist/sign-BlMhTkWG.cjs +1 -0
- package/dist/sign-C0z0Ygs4.js +219 -0
- package/dist/style.css +1 -1
- package/dist/{styleView-BLVqzqPV.js → styleView-CkbdwQhA.js} +34 -33
- package/dist/styleView-D0W-N4vW.cjs +1 -0
- package/dist/tree.vue_vue_type_script_setup_true_lang-KKt_Qgqv.cjs +1 -0
- package/dist/{tree.vue_vue_type_script_setup_true_lang-BntCm43E.js → tree.vue_vue_type_script_setup_true_lang-RWHCYpkY.js} +1 -1
- package/dist/ui/antd/date-picker/datePicker.d.ts +2 -2
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +553 -542
- package/dist/ui/naiveUi/index.cjs +1 -1
- package/dist/ui/naiveUi/index.js +1 -1
- package/dist/uploadFile-Bh5GyGFd.js +77 -0
- package/dist/uploadFile-CmKFRZMw.cjs +1 -0
- package/dist/{uploadImage-742IA7ei.js → uploadImage-CbVsUivh.js} +34 -33
- package/dist/uploadImage-CcMA6CyX.cjs +1 -0
- package/dist/uploadImage-DENhzttU.cjs +1 -0
- package/dist/{uploadImage-CnNnAISs.js → uploadImage-qHq6JX83.js} +17 -20
- package/package.json +1 -1
- package/dist/attributeView-B-IswSw7.js +0 -105
- package/dist/attributeView-CQBVIMGW.cjs +0 -1
- package/dist/col-RWuL5Zuz.cjs +0 -1
- package/dist/index-0GtpyUBx.js +0 -64
- package/dist/index-B4ido7VJ.cjs +0 -1
- package/dist/index-BGvqo4s7.js +0 -104
- package/dist/index-BMtRXkSh.cjs +0 -1
- package/dist/index-BSLudrcT.cjs +0 -1
- package/dist/index-BXO8Zj1H.cjs +0 -1
- package/dist/index-B_9x_cPH.js +0 -1633
- package/dist/index-B_TFfRwe.js +0 -194
- package/dist/index-C3_E7xcD.js +0 -270
- package/dist/index-C3a1hfUC.cjs +0 -10
- package/dist/index-CucdgcqX.cjs +0 -1
- package/dist/index-CvEzOhT_.cjs +0 -1
- package/dist/index-DEPx91yu.cjs +0 -1
- package/dist/index-DKVv0PbJ.js +0 -56
- package/dist/index-DSzJgAzW.cjs +0 -1
- package/dist/index-Dz1OM1dD.cjs +0 -1
- package/dist/index-HNPgHrkl.cjs +0 -1
- package/dist/index-JhxJizMR.js +0 -601
- package/dist/index-aBofZ4Mk.js +0 -4
- package/dist/index-sKJ91s0r.cjs +0 -1
- package/dist/js.cookie-BH1G_HRi.cjs +0 -6
- package/dist/modal-BPJM1Muh.js +0 -59
- package/dist/modal-_fid8E1T.cjs +0 -1
- package/dist/outline-6Qt3qlWm.cjs +0 -1
- package/dist/row-Bm8OjIsU.cjs +0 -1
- package/dist/sign--js815Se.cjs +0 -1
- package/dist/sign-CO47QOTw.js +0 -218
- package/dist/styleView-C1zTBeyd.cjs +0 -1
- package/dist/tree.vue_vue_type_script_setup_true_lang-BjjL_VlR.cjs +0 -1
- package/dist/uploadFile-CYDDVa_x.js +0 -76
- package/dist/uploadFile-eWBMdZ9d.cjs +0 -1
- package/dist/uploadImage-BQhv5ymq.cjs +0 -1
- package/dist/uploadImage-BXcN2FA_.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("epic-designer-gold"),p=require("naive-ui"),n={component:async()=>(await Promise.resolve().then(()=>require("../../index-BVUz9lFN.cjs")).then(e=>e.index)).NInput,groupName:"表单",icon:"icon--epic--border-color-outline-rounded",sort:700,defaultSchema:{label:"输入框",type:"input",field:"input",input:!0,componentProps:{defaultValue:"",placeholder:"请输入",type:"text"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"input",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"极小",value:"tiny"},{label:"小型",value:"small"},{label:"中等",value:"medium"},{label:"大号",value:"large"}]}},{label:"输入类型",type:"select",defaultValue:"text",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"text",value:"text"},{label:"textarea",value:"textarea"},{label:"password",value:"password"}]},field:"componentProps.type",onChange:({value:e,values:l})=>{e!="text"&&(l.componentProps.pair=!1)}},{label:"最大输入长度",type:"number",field:"componentProps.maxlength",componentProps:{placeholder:"请输入"}},{label:"显示密码的时机",type:"select",field:"componentProps.showPasswordOn",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"click",value:"click"},{label:"mousedown",value:"mousedown"}]},show:({values:e})=>e.componentProps.type==="password"},{label:"行数",type:"number",field:"componentProps.rows",show:({values:e})=>e.componentProps.type==="textarea"},{label:"是否输入成对值",type:"switch",field:"componentProps.pair",show:({values:e})=>e.componentProps.type==="text"},{label:"分割符",type:"input",field:"componentProps.separator",show:({values:e})=>e.componentProps.type==="text"&&e.componentProps.pair,componentProps:{placeholder:"请输入"}},{label:"是否圆角",type:"switch",field:"componentProps.round"},{label:"是否统计字数",type:"switch",field:"componentProps.showCount"},{label:"自适应内容高度",type:"switch",field:"componentProps.autosize",show:({values:e})=>e.componentProps.type==="textarea"},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"input",describe:"输入值"},{type:"change",describe:"值修改"},{type:"focus",describe:"获取焦点"},{type:"blur",describe:"失去焦点"}],action:[{type:"focus",describe:"使 input 获取焦点"},{type:"blur",describe:"使 input 失去焦点"},{type:"clear",describe:"清除 input 值"},{type:"select",describe:"选中 input 中的文字"}]},bindModel:"value"},r={component:async()=>(await Promise.resolve().then(()=>require("../../index-XU85x6vz.cjs")).then(e=>e.index)).NInputNumber,groupName:"表单",icon:"icon--epic--123-rounded",sort:710,defaultSchema:{label:"数字输入框",type:"number",field:"number",input:!0,componentProps:{placeholder:"请输入"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"number",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"极小",value:"tiny"},{label:"小型",value:"small"},{label:"中等",value:"medium"},{label:"大号",value:"large"}]}},{label:"控制按钮位置",type:"select",field:"componentProps.buttonPlacement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"both",value:"both"},{label:"right",value:"right"}]}},{label:"最大值",type:"number",field:"componentProps.max",componentProps:{placeholder:"请输入"}},{label:"最小值",type:"number",field:"componentProps.min",componentProps:{placeholder:"请输入"}},{label:"步长",type:"number",field:"componentProps.step",componentProps:{placeholder:"请输入"}},{label:"精度",type:"number",field:"componentProps.precision",componentProps:{placeholder:"请输入"}},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"number"}}]},bindModel:"value"},i={component:()=>Promise.resolve().then(()=>require("../../form-ChuxpD-f.cjs")),groupName:"表单",icon:"icon--epic--list-alt-outline-rounded",sort:600,defaultSchema:{label:"表单",type:"form",componentProps:{name:"default",labelWidth:100,labelCol:{span:5},wrapperCol:{span:19},hideRequiredMark:!1},children:[]},config:{attribute:[{label:"name",type:"input",field:"componentProps.name"},{label:"标签宽度",type:"EInputSize",field:"componentProps.labelWidth"},{label:"标签位置",type:"select",field:"componentProps.labelPlacement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"左边",value:"left"},{label:"顶部",value:"top"}]}},{label:"标签对齐方式",type:"select",field:"componentProps.labelAlign",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"左边",value:"left"},{label:"右边",value:"right"}]}},{label:"必填星号位置",type:"select",field:"componentProps.requireMarkPlacement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"左边",value:"left"},{label:"右边",value:"right"}]}},{label:"表单尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]}},{label:"行内模式",type:"switch",field:"componentProps.inline"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}],action:[{type:"getData",describe:"获取表单数据"},{type:"setData",describe:"设置表单数据"},{type:"validate",describe:"校验表单"}]}},c={component:()=>Promise.resolve().then(()=>require("../../formItem-Do31LPIz.cjs")),defaultSchema:{label:"表单项",type:"form-item"},config:{}},s={component:()=>Promise.resolve().then(()=>require("../../button-BKT6NVeB.cjs")),groupName:"表单",icon:"icon--epic--fit-screen-rounded",sort:1200,defaultSchema:{label:"按钮",type:"button",field:"input",input:!1,componentProps:{bordered:!0,type:"default",size:"medium"}},config:{attribute:[{label:"标题",type:"input",field:"label"},{label:"类型",type:"select",componentProps:{placeholder:"请选择",options:[{label:"default",value:"default"},{label:"tertiary",value:"tertiary"},{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"error",value:"error"}]},field:"componentProps.type"},{label:"尺寸",type:"select",defaultValue:"default",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"tiny",value:"tiny"},{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"是否块级",type:"switch",field:"componentProps.block"},{label:"显示边框",type:"switch",field:"componentProps.bordered"},{label:"虚线框",type:"switch",field:"componentProps.dashed"},{label:"圆角按钮",type:"switch",field:"componentProps.round"},{label:"圆形按钮",type:"switch",field:"componentProps.circle"},{label:"按钮颜色",type:"color-picker",field:"componentProps.color"},{label:"是否透明",type:"switch",field:"componentProps.ghost"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}],event:[{type:"click",describe:"点击按钮时"},{type:"dblclick",describe:"双击按钮时"}]}},d={component:()=>Promise.resolve().then(()=>require("../../card-BOMT_SwB.cjs")),groupName:"布局",icon:"icon--epic--wysiwyg-rounded",sort:900,defaultSchema:{label:"卡片布局",type:"card",children:[]},config:{attribute:[{label:"标题",type:"input",field:"label"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}]}},u={component:()=>Promise.resolve().then(()=>require("../../row-B28N4Nao.cjs")),groupName:"布局",icon:"icon--epic--width-normal-outline",sort:800,defaultSchema:{label:"栅格布局",type:"row",children:[{type:"col",children:[],componentProps:{span:12}},{type:"col",children:[],componentProps:{span:12}}]},editConstraints:{childImmovable:!0},config:{attribute:[{label:"栅格间距",type:"number",field:"componentProps.gutter",componentProps:{placeholder:"请输入"}},{label:"列编辑",type:"EColEditor",field:"children"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}]}},b={component:()=>Promise.resolve().then(()=>require("../../col-DXjfnmpf.cjs")),defaultSchema:{label:"栅格布局-列",type:"col",children:[],componentProps:{span:6}},config:{attribute:[{label:"占位格数",type:"number",field:"componentProps.span"}]}},m={component:async()=>(await Promise.resolve().then(()=>require("../../index-zYoSB4fa.cjs")).then(e=>e.index)).NSelect,groupName:"表单",icon:"icon--epic--select",sort:900,defaultSchema:{label:"选择框",type:"select",field:"select",input:!0,componentProps:{options:[{label:"选项1",value:"选项1"},{label:"选项2",value:"选项2"}],placeholder:"请选择"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"select",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"极小",value:"tiny"},{label:"小型",value:"small"},{label:"中等",value:"medium"},{label:"大号",value:"large"}]}},{label:"菜单弹出的位置",type:"select",field:"componentProps.placement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"top-start",value:"top-start"},{label:"top",value:"top"},{label:"top-end",value:"top-end"},{label:"right-start",value:"right-start"},{label:"right",value:"right"},{label:"right-end",value:"right-end"},{label:"bottom-start",value:"bottom-start"},{label:"bottom",value:"bottom"},{label:"bottom-end",value:"bottom-end"},{label:"left-start",value:"left-start"},{label:"left",value:"left"},{label:"left-end",value:"left-end"}]}},{label:"可过滤",type:"switch",field:"componentProps.filterable"},{label:"允许创建新选项",type:"switch",field:"componentProps.tag",show:({values:e})=>e.componentProps.filterable},{label:"多选",type:"switch",field:"componentProps.multiple"},{label:"最大tag数",type:"number",field:"componentProps.maxTagCount",show:({values:e})=>e.componentProps.multiple,componentProps:{placeholder:"请输入"}},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",describe:"配置选项"}],event:[{type:"change",describe:"值修改"}]},bindModel:"value"},y={component:()=>Promise.resolve().then(()=>require("../../radio-J90E17Sb.cjs")),groupName:"表单",icon:"icon--epic--radio-button-checked-outline",sort:850,defaultSchema:{label:"单选框",type:"radio",field:"radio",input:!0,componentProps:{options:[{label:"选项1",value:"选项1"},{label:"选项2",value:"选项2"}]}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"radio",field:"componentProps.defaultValue"},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]}},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",describe:"配置选项"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"change",describe:"值变化时"}]}},f={component:()=>Promise.resolve().then(()=>require("../../checkbox-D8eqzQDX.cjs")),groupName:"表单",icon:"icon--epic--dialogs-outline-rounded",sort:860,defaultSchema:{label:"复选框",type:"checkbox",field:"checkbox",input:!0,componentProps:{options:[{label:"选项1",value:"选项1"},{label:"选项2",value:"选项2"}]}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"checkbox",field:"componentProps.defaultValue"},{label:"最大勾选数",type:"number",field:"componentProps.max",componentProps:{placeholder:"请输入"}},{label:"最小勾选数",type:"number",field:"componentProps.min",componentProps:{placeholder:"请输入"}},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]}},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",describe:"配置选项"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"array"}}],event:[{type:"change",describe:"值变化时"}]}},h={component:async()=>(await Promise.resolve().then(()=>require("../../index-DTzB2pWI.cjs")).then(e=>e.index)).NSlider,groupName:"表单",icon:"icon--epic--switches",sort:930,defaultSchema:{label:"滑块",type:"slider",field:"slider",input:!0,componentProps:{placement:"top-start"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"slider",field:"componentProps.defaultValue"},{label:"键盘可控",type:"switch",field:"componentProps.keyboard"},{label:"范围选择",type:"switch",field:"componentProps.range",changeSync:!0,onChange:({value:e,values:l})=>{e?l.componentProps.defaultValue=[0,100]:l.componentProps.defaultValue=0}},{label:"倒转轨道",type:"switch",field:"componentProps.reverse"},{label:"步长",type:"number",field:"componentProps.step",componentProps:{placeholder:"请输入"}},{label:"一直显示提示",type:"switch",field:"componentProps.showTooltip"},{label:"垂直模式",type:"switch",field:"componentProps.vertical"},{label:"最大值",type:"number",field:"componentProps.max",componentProps:{placeholder:"请输入"}},{label:"最小值",type:"number",field:"componentProps.min",componentProps:{placeholder:"请输入"}},{label:"弹出位置",type:"select",field:"componentProps.placement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"top-start",value:"top-start"},{label:"top",value:"top"},{label:"top-end",value:"top-end"},{label:"right-start",value:"right-start"},{label:"right",value:"right"},{label:"right-end",value:"right-end"},{label:"bottom-start",value:"bottom-start"},{label:"bottom",value:"bottom"},{label:"bottom-end",value:"bottom-end"},{label:"left-start",value:"left-start"},{label:"left",value:"left"},{label:"left-end",value:"left-end"}]}},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"number"}}],event:[{type:"input",describe:"拖拽实时触发"},{type:"change",describe:"拖拽结束改变值时"}]},bindModel:"value"},P={component:async()=>(await Promise.resolve().then(()=>require("../../index-BB9rZNCd.cjs")).then(e=>e.index)).NColorPicker,groupName:"表单",icon:"icon--epic--palette-outline",sort:950,defaultSchema:{label:"颜色选择器",type:"color-picker",field:"color-picker",input:!0,componentProps:{type:"color",modes:["hex"],showAlpha:!0}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"color-picker",field:"componentProps.defaultValue"},{label:"尺寸",type:"select",defaultValue:"default",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"菜单弹出的位置",type:"select",field:"componentProps.placement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"top-start",value:"top-start"},{label:"top",value:"top"},{label:"top-end",value:"top-end"},{label:"right-start",value:"right-start"},{label:"right",value:"right"},{label:"right-end",value:"right-end"},{label:"bottom-start",value:"bottom-start"},{label:"bottom",value:"bottom"},{label:"bottom-end",value:"bottom-end"},{label:"left-start",value:"left-start"},{label:"left",value:"left"},{label:"left-end",value:"left-end"}]}},{label:"格式",type:"checkbox",field:"componentProps.modes",componentProps:{options:[{label:"rgb",value:"rgb"},{label:"hex",value:"hex"},{label:"hsl",value:"hsl"},{label:"hsv",value:"hsv"}],max:1}},{label:"展示预览块",type:"switch",field:"componentProps.showPreview"},{label:"可调节透明度",type:"switch",field:"componentProps.showAlpha"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"change",describe:"值变化时"}],action:[]},bindModel:"value"},v={component:async()=>(await Promise.resolve().then(()=>require("../../index-g5ZjtbqH.cjs")).then(e=>e.index)).NSwitch,groupName:"表单",icon:"icon--epic--toggle-off-outline",sort:930,defaultSchema:{label:"开关",type:"switch",field:"switch",input:!0,componentProps:{defaultValue:!1,round:!0}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"switch",field:"componentProps.defaultValue"},{label:"ON状态值",type:"input",field:"componentProps.checkedValue",componentProps:{placeholder:"请输入"},onChange(e){setTimeout(()=>o(e))}},{label:"OFF状态值",type:"input",field:"componentProps.uncheckedValue",componentProps:{placeholder:"请输入"},onChange(e){setTimeout(()=>o(e))}},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]}},{label:"圆型按钮",type:"switch",field:"componentProps.round"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"boolean"}}],event:[{type:"change",describe:"状态发生变化时"}]},bindModel:"value"};function o(e){var t;let l=((t=e.values.componentProps)==null?void 0:t.uncheckedValue)||!1;e.values.componentProps.uncheckedValue===""&&delete e.values.componentProps.uncheckedValue,e.values.componentProps.checkedValue===""&&delete e.values.componentProps.checkedValue,e.values.componentProps?e.values.componentProps.defaultValue=l:e.values.componentProps={defaultValue:l}}const g={component:async()=>(await Promise.resolve().then(()=>require("../../index-Cphndmia.cjs")).then(e=>e.index)).NCascader,groupName:"表单",icon:"icon--epic--full-coverage-outline",sort:880,defaultSchema:{label:"级联选择器",type:"cascader",field:"cascader",input:!0,componentProps:{options:[{label:"选项1",value:"选项1"},{label:"选项2",value:"选项2"}],placeholder:"请选择",cascade:!1,showPath:!0}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"cascader",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"极小",value:"tiny"},{label:"小型",value:"small"},{label:"中等",value:"medium"},{label:"大号",value:"large"}]}},{label:"多选",type:"switch",field:"componentProps.multiple"},{label:"多选时关联选项",type:"switch",field:"componentProps.cascade",show:({values:e})=>e.componentProps.multiple},{label:"分割符",type:"switch",field:"componentProps.separator"},{label:"显示选项路径",type:"switch",field:"componentProps.showPath"},{label:"可搜索",type:"switch",field:"componentProps.filterable"},{label:"菜单弹出的位置",type:"select",field:"componentProps.placement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"top-start",value:"top-start"},{label:"top",value:"top"},{label:"top-end",value:"top-end"},{label:"right-start",value:"right-start"},{label:"right",value:"right"},{label:"right-end",value:"right-end"},{label:"bottom-start",value:"bottom-start"},{label:"bottom",value:"bottom"},{label:"bottom-end",value:"bottom-end"},{label:"left-start",value:"left-start"},{label:"left",value:"left"},{label:"left-end",value:"left-end"}]}},{label:"最大tag显示数",type:"number",field:"componentProps.maxTagCount",show:({values:e})=>e.componentProps.multiple},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",componentProps:{tree:!0},describe:"配置选项"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"array"}}],event:[{type:"change",describe:"选中节点变化时"},{type:"close",describe:"面板的关闭事件"}],action:[{type:"getCheckedNodes",describe:"获取当前选中节点"}]},bindModel:"value"},w={component:()=>Promise.resolve().then(()=>require("../../collapse-BSFa_xwh.cjs")),defaultSchema:{label:"折叠面板",type:"collapse",children:[{type:"collapse-item",children:[],componentProps:{span:12},id:"g062zikd2jk001"},{type:"collapse-item",children:[],componentProps:{span:12},id:"gy5z9jtfb3s001"}]},config:{attribute:[{label:"折叠项管理",type:"EColEditor",field:"children"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}]}},x={component:()=>Promise.resolve().then(()=>require("../../collapseItem-FF5A59WT.cjs")),defaultSchema:{label:"折叠项",type:"collapse-item",children:[]},config:{attribute:[]}},E={component:async()=>(await Promise.resolve().then(()=>require("../../index-BCk0LJsg.cjs")).then(e=>e.index)).NDatePicker,groupName:"表单",icon:"icon--epic--calendar-month-outline-rounded",sort:910,defaultSchema:{label:"日期选择器",type:"date",field:"date",input:!0,componentProps:{type:"date",placeholder:"请选择",format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"date",field:"componentProps.defaultValue"},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]}},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"日期类型",type:"select",field:"componentProps.type",componentProps:{options:[{label:"日期",value:"date"},{label:"日期时间",value:"datetime"},{label:"日期范围",value:"daterange"},{label:"时间范围",value:"datetimerange"},{label:"月份",value:"month"},{label:"月份范围",value:"monthrange"},{label:"年份",value:"year"},{label:"季度",value:"quarter"},{label:"周",value:"week"}]},onChange({values:e,value:l}){e.componentProps.defaultValue=null,console.log(l),["date","daterange","dates"].includes(l)?(e.componentProps.format="yyyy-MM-dd",e.componentProps.valueFormat="yyyy-MM-dd"):["week"].includes(l)||["quarter"].includes(l)?(e.componentProps.format=null,e.componentProps.valueFormat="yyyy-MM-dd"):["month","monthrange"].includes(l)?(e.componentProps.format="yyyy-MM",e.componentProps.valueFormat="yyyy-MM"):["datetime","datetimerange"].includes(l)?(e.componentProps.format="yyyy-MM-dd HH:mm:ss",e.componentProps.valueFormat="yyyy-MM-dd HH:mm:ss"):["year"].includes(l)&&(e.componentProps.format="yyyy",e.componentProps.valueFormat="yyyy")}},{label:"显示格式",type:"input",field:"componentProps.format"},{label:"数据格式",type:"input",field:"componentProps.valueFormat"},{label:"分割符",type:"input",field:"componentProps.separator",componentProps:{placeholder:"请输入",clearable:!0},show:({values:e})=>["daterange","datetimerange","monthrange"].includes(e.componentProps.type)},{label:"start框占位符",type:"input",field:"componentProps.startPlaceholder",componentProps:{placeholder:"请输入",clearable:!0},show:({values:e})=>["daterange","datetimerange","monthrange"].includes(e.componentProps.type)},{label:"end框占位符",type:"input",field:"componentProps.endPlaceholder",componentProps:{placeholder:"请输入",clearable:!0},show:({values:e})=>["daterange","datetimerange","monthrange"].includes(e.componentProps.type)},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"change",describe:"值变化时"}]},bindModel:"formatted-value"},N={component:()=>Promise.resolve().then(()=>require("../../uploadFile-Dv3Rsw56.cjs")),groupName:"表单",icon:"icon--epic--upload-rounded",sort:920,defaultSchema:{label:"上传文件",type:"upload-file",field:"uploadFile",input:!0,componentProps:{action:"https://ess-ds.com/prod-api/center-file/file/upload"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"请求地址",type:"input",field:"componentProps.action"},{label:"上传文件字段",type:"input",field:"componentProps.name",componentProps:{placeholder:"请输入"}},{label:"允许上传最大数量",type:"number",field:"componentProps.max",componentProps:{min:0,placeholder:"请输入"}},{label:"展示文件列表",type:"switch",field:"componentProps.showFileList"},{label:"多选",type:"switch",field:"componentProps.multiple"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"array"}}]},bindModel:"modelValue"},k={component:()=>Promise.resolve().then(()=>require("../../uploadImage-BQhv5ymq.cjs")),groupName:"表单",icon:"icon--epic--imagesmode-outline-rounded",sort:920,defaultSchema:{label:"上传图片",type:"upload-image",field:"uploadImage",input:!0,componentProps:{action:"https://ess-ds.com/prod-api/center-file/file/upload"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"请求地址",type:"input",field:"componentProps.action"},{label:"上传文件字段",type:"input",field:"componentProps.name",componentProps:{placeholder:"请输入"}},{label:"允许上传最大数量",type:"number",field:"componentProps.max",componentProps:{min:0,placeholder:"请输入"}},{label:"展示文件列表",type:"switch",field:"componentProps.showFileList"},{label:"多选",type:"switch",field:"componentProps.multiple"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"array"}}]},bindModel:"modelValue"},S={component:()=>Promise.resolve().then(()=>require("../../modal-BYw2WLwG.cjs")),defaultSchema:{label:"模态框",type:"modal",children:[]},config:{attribute:[{label:"标题",type:"input",field:"title"}]}};function q(e=a.pluginManager){e.component("FormItem",async()=>(await Promise.resolve().then(()=>require("../../index-DMszow96.cjs")).then(t=>t.index)).NFormItem),e.component("Tabs",async()=>(await Promise.resolve().then(()=>require("../../index-D5WpEOUO.cjs")).then(t=>t.index)).NTabs),e.component("TabPane",p.NTabPane),e.component("Collapse",async()=>(await Promise.resolve().then(()=>require("../../index-RdEhd65J.cjs")).then(t=>t.index)).NCollapse),e.component("CollapseItem",async()=>(await Promise.resolve().then(()=>require("../../index-RdEhd65J.cjs")).then(t=>t.index)).NCollapseItem),[i,c,n,r,y,f,E,m,v,P,g,h,N,k,s,d,u,b,w,x,S].forEach(t=>{e.registerComponent(t),e.addBaseComponentTypes(t.defaultSchema.type)}),e.setInitialized(!0)}exports.setupNaiveUi=q;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("epic-designer-gold"),p=require("naive-ui"),n={component:async()=>(await Promise.resolve().then(()=>require("../../index-BVUz9lFN.cjs")).then(e=>e.index)).NInput,groupName:"表单",icon:"icon--epic--border-color-outline-rounded",sort:700,defaultSchema:{label:"输入框",type:"input",field:"input",input:!0,componentProps:{defaultValue:"",placeholder:"请输入",type:"text"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"input",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"极小",value:"tiny"},{label:"小型",value:"small"},{label:"中等",value:"medium"},{label:"大号",value:"large"}]}},{label:"输入类型",type:"select",defaultValue:"text",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"text",value:"text"},{label:"textarea",value:"textarea"},{label:"password",value:"password"}]},field:"componentProps.type",onChange:({value:e,values:l})=>{e!="text"&&(l.componentProps.pair=!1)}},{label:"最大输入长度",type:"number",field:"componentProps.maxlength",componentProps:{placeholder:"请输入"}},{label:"显示密码的时机",type:"select",field:"componentProps.showPasswordOn",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"click",value:"click"},{label:"mousedown",value:"mousedown"}]},show:({values:e})=>e.componentProps.type==="password"},{label:"行数",type:"number",field:"componentProps.rows",show:({values:e})=>e.componentProps.type==="textarea"},{label:"是否输入成对值",type:"switch",field:"componentProps.pair",show:({values:e})=>e.componentProps.type==="text"},{label:"分割符",type:"input",field:"componentProps.separator",show:({values:e})=>e.componentProps.type==="text"&&e.componentProps.pair,componentProps:{placeholder:"请输入"}},{label:"是否圆角",type:"switch",field:"componentProps.round"},{label:"是否统计字数",type:"switch",field:"componentProps.showCount"},{label:"自适应内容高度",type:"switch",field:"componentProps.autosize",show:({values:e})=>e.componentProps.type==="textarea"},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"input",describe:"输入值"},{type:"change",describe:"值修改"},{type:"focus",describe:"获取焦点"},{type:"blur",describe:"失去焦点"}],action:[{type:"focus",describe:"使 input 获取焦点"},{type:"blur",describe:"使 input 失去焦点"},{type:"clear",describe:"清除 input 值"},{type:"select",describe:"选中 input 中的文字"}]},bindModel:"value"},r={component:async()=>(await Promise.resolve().then(()=>require("../../index-XU85x6vz.cjs")).then(e=>e.index)).NInputNumber,groupName:"表单",icon:"icon--epic--123-rounded",sort:710,defaultSchema:{label:"数字输入框",type:"number",field:"number",input:!0,componentProps:{placeholder:"请输入"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"number",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"极小",value:"tiny"},{label:"小型",value:"small"},{label:"中等",value:"medium"},{label:"大号",value:"large"}]}},{label:"控制按钮位置",type:"select",field:"componentProps.buttonPlacement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"both",value:"both"},{label:"right",value:"right"}]}},{label:"最大值",type:"number",field:"componentProps.max",componentProps:{placeholder:"请输入"}},{label:"最小值",type:"number",field:"componentProps.min",componentProps:{placeholder:"请输入"}},{label:"步长",type:"number",field:"componentProps.step",componentProps:{placeholder:"请输入"}},{label:"精度",type:"number",field:"componentProps.precision",componentProps:{placeholder:"请输入"}},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"number"}}]},bindModel:"value"},i={component:()=>Promise.resolve().then(()=>require("../../form-ChuxpD-f.cjs")),groupName:"表单",icon:"icon--epic--list-alt-outline-rounded",sort:600,defaultSchema:{label:"表单",type:"form",componentProps:{name:"default",labelWidth:100,labelCol:{span:5},wrapperCol:{span:19},hideRequiredMark:!1},children:[]},config:{attribute:[{label:"name",type:"input",field:"componentProps.name"},{label:"标签宽度",type:"EInputSize",field:"componentProps.labelWidth"},{label:"标签位置",type:"select",field:"componentProps.labelPlacement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"左边",value:"left"},{label:"顶部",value:"top"}]}},{label:"标签对齐方式",type:"select",field:"componentProps.labelAlign",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"左边",value:"left"},{label:"右边",value:"right"}]}},{label:"必填星号位置",type:"select",field:"componentProps.requireMarkPlacement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"左边",value:"left"},{label:"右边",value:"right"}]}},{label:"表单尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]}},{label:"行内模式",type:"switch",field:"componentProps.inline"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}],action:[{type:"getData",describe:"获取表单数据"},{type:"setData",describe:"设置表单数据"},{type:"validate",describe:"校验表单"}]}},c={component:()=>Promise.resolve().then(()=>require("../../formItem-Do31LPIz.cjs")),defaultSchema:{label:"表单项",type:"form-item"},config:{}},s={component:()=>Promise.resolve().then(()=>require("../../button-BKT6NVeB.cjs")),groupName:"表单",icon:"icon--epic--fit-screen-rounded",sort:1200,defaultSchema:{label:"按钮",type:"button",field:"input",input:!1,componentProps:{bordered:!0,type:"default",size:"medium"}},config:{attribute:[{label:"标题",type:"input",field:"label"},{label:"类型",type:"select",componentProps:{placeholder:"请选择",options:[{label:"default",value:"default"},{label:"tertiary",value:"tertiary"},{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"error",value:"error"}]},field:"componentProps.type"},{label:"尺寸",type:"select",defaultValue:"default",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"tiny",value:"tiny"},{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"是否块级",type:"switch",field:"componentProps.block"},{label:"显示边框",type:"switch",field:"componentProps.bordered"},{label:"虚线框",type:"switch",field:"componentProps.dashed"},{label:"圆角按钮",type:"switch",field:"componentProps.round"},{label:"圆形按钮",type:"switch",field:"componentProps.circle"},{label:"按钮颜色",type:"color-picker",field:"componentProps.color"},{label:"是否透明",type:"switch",field:"componentProps.ghost"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}],event:[{type:"click",describe:"点击按钮时"},{type:"dblclick",describe:"双击按钮时"}]}},d={component:()=>Promise.resolve().then(()=>require("../../card-BOMT_SwB.cjs")),groupName:"布局",icon:"icon--epic--wysiwyg-rounded",sort:900,defaultSchema:{label:"卡片布局",type:"card",children:[]},config:{attribute:[{label:"标题",type:"input",field:"label"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}]}},u={component:()=>Promise.resolve().then(()=>require("../../row-B28N4Nao.cjs")),groupName:"布局",icon:"icon--epic--width-normal-outline",sort:800,defaultSchema:{label:"栅格布局",type:"row",children:[{type:"col",children:[],componentProps:{span:12}},{type:"col",children:[],componentProps:{span:12}}]},editConstraints:{childImmovable:!0},config:{attribute:[{label:"栅格间距",type:"number",field:"componentProps.gutter",componentProps:{placeholder:"请输入"}},{label:"列编辑",type:"EColEditor",field:"children"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}]}},b={component:()=>Promise.resolve().then(()=>require("../../col-DXjfnmpf.cjs")),defaultSchema:{label:"栅格布局-列",type:"col",children:[],componentProps:{span:6}},config:{attribute:[{label:"占位格数",type:"number",field:"componentProps.span"}]}},m={component:async()=>(await Promise.resolve().then(()=>require("../../index-zYoSB4fa.cjs")).then(e=>e.index)).NSelect,groupName:"表单",icon:"icon--epic--select",sort:900,defaultSchema:{label:"选择框",type:"select",field:"select",input:!0,componentProps:{options:[{label:"选项1",value:"选项1"},{label:"选项2",value:"选项2"}],placeholder:"请选择"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"select",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"极小",value:"tiny"},{label:"小型",value:"small"},{label:"中等",value:"medium"},{label:"大号",value:"large"}]}},{label:"菜单弹出的位置",type:"select",field:"componentProps.placement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"top-start",value:"top-start"},{label:"top",value:"top"},{label:"top-end",value:"top-end"},{label:"right-start",value:"right-start"},{label:"right",value:"right"},{label:"right-end",value:"right-end"},{label:"bottom-start",value:"bottom-start"},{label:"bottom",value:"bottom"},{label:"bottom-end",value:"bottom-end"},{label:"left-start",value:"left-start"},{label:"left",value:"left"},{label:"left-end",value:"left-end"}]}},{label:"可过滤",type:"switch",field:"componentProps.filterable"},{label:"允许创建新选项",type:"switch",field:"componentProps.tag",show:({values:e})=>e.componentProps.filterable},{label:"多选",type:"switch",field:"componentProps.multiple"},{label:"最大tag数",type:"number",field:"componentProps.maxTagCount",show:({values:e})=>e.componentProps.multiple,componentProps:{placeholder:"请输入"}},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",describe:"配置选项"}],event:[{type:"change",describe:"值修改"}]},bindModel:"value"},y={component:()=>Promise.resolve().then(()=>require("../../radio-J90E17Sb.cjs")),groupName:"表单",icon:"icon--epic--radio-button-checked-outline",sort:850,defaultSchema:{label:"单选框",type:"radio",field:"radio",input:!0,componentProps:{options:[{label:"选项1",value:"选项1"},{label:"选项2",value:"选项2"}]}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"radio",field:"componentProps.defaultValue"},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]}},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",describe:"配置选项"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"change",describe:"值变化时"}]}},f={component:()=>Promise.resolve().then(()=>require("../../checkbox-D8eqzQDX.cjs")),groupName:"表单",icon:"icon--epic--dialogs-outline-rounded",sort:860,defaultSchema:{label:"复选框",type:"checkbox",field:"checkbox",input:!0,componentProps:{options:[{label:"选项1",value:"选项1"},{label:"选项2",value:"选项2"}]}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"checkbox",field:"componentProps.defaultValue"},{label:"最大勾选数",type:"number",field:"componentProps.max",componentProps:{placeholder:"请输入"}},{label:"最小勾选数",type:"number",field:"componentProps.min",componentProps:{placeholder:"请输入"}},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]}},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",describe:"配置选项"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"array"}}],event:[{type:"change",describe:"值变化时"}]}},h={component:async()=>(await Promise.resolve().then(()=>require("../../index-DTzB2pWI.cjs")).then(e=>e.index)).NSlider,groupName:"表单",icon:"icon--epic--switches",sort:930,defaultSchema:{label:"滑块",type:"slider",field:"slider",input:!0,componentProps:{placement:"top-start"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"slider",field:"componentProps.defaultValue"},{label:"键盘可控",type:"switch",field:"componentProps.keyboard"},{label:"范围选择",type:"switch",field:"componentProps.range",changeSync:!0,onChange:({value:e,values:l})=>{e?l.componentProps.defaultValue=[0,100]:l.componentProps.defaultValue=0}},{label:"倒转轨道",type:"switch",field:"componentProps.reverse"},{label:"步长",type:"number",field:"componentProps.step",componentProps:{placeholder:"请输入"}},{label:"一直显示提示",type:"switch",field:"componentProps.showTooltip"},{label:"垂直模式",type:"switch",field:"componentProps.vertical"},{label:"最大值",type:"number",field:"componentProps.max",componentProps:{placeholder:"请输入"}},{label:"最小值",type:"number",field:"componentProps.min",componentProps:{placeholder:"请输入"}},{label:"弹出位置",type:"select",field:"componentProps.placement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"top-start",value:"top-start"},{label:"top",value:"top"},{label:"top-end",value:"top-end"},{label:"right-start",value:"right-start"},{label:"right",value:"right"},{label:"right-end",value:"right-end"},{label:"bottom-start",value:"bottom-start"},{label:"bottom",value:"bottom"},{label:"bottom-end",value:"bottom-end"},{label:"left-start",value:"left-start"},{label:"left",value:"left"},{label:"left-end",value:"left-end"}]}},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"number"}}],event:[{type:"input",describe:"拖拽实时触发"},{type:"change",describe:"拖拽结束改变值时"}]},bindModel:"value"},P={component:async()=>(await Promise.resolve().then(()=>require("../../index-BB9rZNCd.cjs")).then(e=>e.index)).NColorPicker,groupName:"表单",icon:"icon--epic--palette-outline",sort:950,defaultSchema:{label:"颜色选择器",type:"color-picker",field:"color-picker",input:!0,componentProps:{type:"color",modes:["hex"],showAlpha:!0}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"color-picker",field:"componentProps.defaultValue"},{label:"尺寸",type:"select",defaultValue:"default",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]},field:"componentProps.size"},{label:"菜单弹出的位置",type:"select",field:"componentProps.placement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"top-start",value:"top-start"},{label:"top",value:"top"},{label:"top-end",value:"top-end"},{label:"right-start",value:"right-start"},{label:"right",value:"right"},{label:"right-end",value:"right-end"},{label:"bottom-start",value:"bottom-start"},{label:"bottom",value:"bottom"},{label:"bottom-end",value:"bottom-end"},{label:"left-start",value:"left-start"},{label:"left",value:"left"},{label:"left-end",value:"left-end"}]}},{label:"格式",type:"checkbox",field:"componentProps.modes",componentProps:{options:[{label:"rgb",value:"rgb"},{label:"hex",value:"hex"},{label:"hsl",value:"hsl"},{label:"hsv",value:"hsv"}],max:1}},{label:"展示预览块",type:"switch",field:"componentProps.showPreview"},{label:"可调节透明度",type:"switch",field:"componentProps.showAlpha"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"change",describe:"值变化时"}],action:[]},bindModel:"value"},v={component:async()=>(await Promise.resolve().then(()=>require("../../index-g5ZjtbqH.cjs")).then(e=>e.index)).NSwitch,groupName:"表单",icon:"icon--epic--toggle-off-outline",sort:930,defaultSchema:{label:"开关",type:"switch",field:"switch",input:!0,componentProps:{defaultValue:!1,round:!0}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"switch",field:"componentProps.defaultValue"},{label:"ON状态值",type:"input",field:"componentProps.checkedValue",componentProps:{placeholder:"请输入"},onChange(e){setTimeout(()=>o(e))}},{label:"OFF状态值",type:"input",field:"componentProps.uncheckedValue",componentProps:{placeholder:"请输入"},onChange(e){setTimeout(()=>o(e))}},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]}},{label:"圆型按钮",type:"switch",field:"componentProps.round"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"boolean"}}],event:[{type:"change",describe:"状态发生变化时"}]},bindModel:"value"};function o(e){var t;let l=((t=e.values.componentProps)==null?void 0:t.uncheckedValue)||!1;e.values.componentProps.uncheckedValue===""&&delete e.values.componentProps.uncheckedValue,e.values.componentProps.checkedValue===""&&delete e.values.componentProps.checkedValue,e.values.componentProps?e.values.componentProps.defaultValue=l:e.values.componentProps={defaultValue:l}}const g={component:async()=>(await Promise.resolve().then(()=>require("../../index-Cphndmia.cjs")).then(e=>e.index)).NCascader,groupName:"表单",icon:"icon--epic--full-coverage-outline",sort:880,defaultSchema:{label:"级联选择器",type:"cascader",field:"cascader",input:!0,componentProps:{options:[{label:"选项1",value:"选项1"},{label:"选项2",value:"选项2"}],placeholder:"请选择",cascade:!1,showPath:!0}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"cascader",field:"componentProps.defaultValue"},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"极小",value:"tiny"},{label:"小型",value:"small"},{label:"中等",value:"medium"},{label:"大号",value:"large"}]}},{label:"多选",type:"switch",field:"componentProps.multiple"},{label:"多选时关联选项",type:"switch",field:"componentProps.cascade",show:({values:e})=>e.componentProps.multiple},{label:"分割符",type:"switch",field:"componentProps.separator"},{label:"显示选项路径",type:"switch",field:"componentProps.showPath"},{label:"可搜索",type:"switch",field:"componentProps.filterable"},{label:"菜单弹出的位置",type:"select",field:"componentProps.placement",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"top-start",value:"top-start"},{label:"top",value:"top"},{label:"top-end",value:"top-end"},{label:"right-start",value:"right-start"},{label:"right",value:"right"},{label:"right-end",value:"right-end"},{label:"bottom-start",value:"bottom-start"},{label:"bottom",value:"bottom"},{label:"bottom-end",value:"bottom-end"},{label:"left-start",value:"left-start"},{label:"left",value:"left"},{label:"left-end",value:"left-end"}]}},{label:"最大tag显示数",type:"number",field:"componentProps.maxTagCount",show:({values:e})=>e.componentProps.multiple},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"选项管理",type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",componentProps:{tree:!0},describe:"配置选项"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"array"}}],event:[{type:"change",describe:"选中节点变化时"},{type:"close",describe:"面板的关闭事件"}],action:[{type:"getCheckedNodes",describe:"获取当前选中节点"}]},bindModel:"value"},w={component:()=>Promise.resolve().then(()=>require("../../collapse-BSFa_xwh.cjs")),defaultSchema:{label:"折叠面板",type:"collapse",children:[{type:"collapse-item",children:[],componentProps:{span:12},id:"g062zikd2jk001"},{type:"collapse-item",children:[],componentProps:{span:12},id:"gy5z9jtfb3s001"}]},config:{attribute:[{label:"折叠项管理",type:"EColEditor",field:"children"},{label:"隐藏",type:"switch",field:"componentProps.hidden"}]}},x={component:()=>Promise.resolve().then(()=>require("../../collapseItem-FF5A59WT.cjs")),defaultSchema:{label:"折叠项",type:"collapse-item",children:[]},config:{attribute:[]}},E={component:async()=>(await Promise.resolve().then(()=>require("../../index-BCk0LJsg.cjs")).then(e=>e.index)).NDatePicker,groupName:"表单",icon:"icon--epic--calendar-month-outline-rounded",sort:910,defaultSchema:{label:"日期选择器",type:"date",field:"date",input:!0,componentProps:{type:"date",placeholder:"请选择",format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"默认值",type:"date",field:"componentProps.defaultValue"},{label:"尺寸",type:"select",field:"componentProps.size",componentProps:{placeholder:"请选择",clearable:!0,options:[{label:"大号",value:"large"},{label:"中等",value:"medium"},{label:"小型",value:"small"}]}},{label:"占位内容",type:"input",field:"componentProps.placeholder"},{label:"日期类型",type:"select",field:"componentProps.type",componentProps:{options:[{label:"日期",value:"date"},{label:"日期时间",value:"datetime"},{label:"日期范围",value:"daterange"},{label:"时间范围",value:"datetimerange"},{label:"月份",value:"month"},{label:"月份范围",value:"monthrange"},{label:"年份",value:"year"},{label:"季度",value:"quarter"},{label:"周",value:"week"}]},onChange({values:e,value:l}){e.componentProps.defaultValue=null,console.log(l),["date","daterange","dates"].includes(l)?(e.componentProps.format="yyyy-MM-dd",e.componentProps.valueFormat="yyyy-MM-dd"):["week"].includes(l)||["quarter"].includes(l)?(e.componentProps.format=null,e.componentProps.valueFormat="yyyy-MM-dd"):["month","monthrange"].includes(l)?(e.componentProps.format="yyyy-MM",e.componentProps.valueFormat="yyyy-MM"):["datetime","datetimerange"].includes(l)?(e.componentProps.format="yyyy-MM-dd HH:mm:ss",e.componentProps.valueFormat="yyyy-MM-dd HH:mm:ss"):["year"].includes(l)&&(e.componentProps.format="yyyy",e.componentProps.valueFormat="yyyy")}},{label:"显示格式",type:"input",field:"componentProps.format"},{label:"数据格式",type:"input",field:"componentProps.valueFormat"},{label:"分割符",type:"input",field:"componentProps.separator",componentProps:{placeholder:"请输入",clearable:!0},show:({values:e})=>["daterange","datetimerange","monthrange"].includes(e.componentProps.type)},{label:"start框占位符",type:"input",field:"componentProps.startPlaceholder",componentProps:{placeholder:"请输入",clearable:!0},show:({values:e})=>["daterange","datetimerange","monthrange"].includes(e.componentProps.type)},{label:"end框占位符",type:"input",field:"componentProps.endPlaceholder",componentProps:{placeholder:"请输入",clearable:!0},show:({values:e})=>["daterange","datetimerange","monthrange"].includes(e.componentProps.type)},{label:"可清空",type:"switch",field:"componentProps.clearable"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用"}],event:[{type:"change",describe:"值变化时"}]},bindModel:"formatted-value"},N={component:()=>Promise.resolve().then(()=>require("../../uploadFile-Dv3Rsw56.cjs")),groupName:"表单",icon:"icon--epic--upload-rounded",sort:920,defaultSchema:{label:"上传文件",type:"upload-file",field:"uploadFile",input:!0,componentProps:{action:"https://ess-ds.com/prod-api/center-file/file/upload"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"请求地址",type:"input",field:"componentProps.action"},{label:"上传文件字段",type:"input",field:"componentProps.name",componentProps:{placeholder:"请输入"}},{label:"允许上传最大数量",type:"number",field:"componentProps.max",componentProps:{min:0,placeholder:"请输入"}},{label:"展示文件列表",type:"switch",field:"componentProps.showFileList"},{label:"多选",type:"switch",field:"componentProps.multiple"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"array"}}]},bindModel:"modelValue"},k={component:()=>Promise.resolve().then(()=>require("../../uploadImage-CcMA6CyX.cjs")),groupName:"表单",icon:"icon--epic--imagesmode-outline-rounded",sort:920,defaultSchema:{label:"上传图片",type:"upload-image",field:"uploadImage",input:!0,componentProps:{action:"https://ess-ds.com/prod-api/center-file/file/upload"}},config:{attribute:[{label:"字段名",type:"input",field:"field"},{label:"标题",type:"input",field:"label"},{label:"请求地址",type:"input",field:"componentProps.action"},{label:"上传文件字段",type:"input",field:"componentProps.name",componentProps:{placeholder:"请输入"}},{label:"允许上传最大数量",type:"number",field:"componentProps.max",componentProps:{min:0,placeholder:"请输入"}},{label:"展示文件列表",type:"switch",field:"componentProps.showFileList"},{label:"多选",type:"switch",field:"componentProps.multiple"},{label:"禁用",type:"switch",field:"componentProps.disabled"},{label:"隐藏",type:"switch",field:"componentProps.hidden"},{label:"表单校验",type:"ERuleEditor",layout:"vertical",field:"rules",describe:"校验规则需要配合表单使用",componentProps:{ruleType:"array"}}]},bindModel:"modelValue"},S={component:()=>Promise.resolve().then(()=>require("../../modal-BYw2WLwG.cjs")),defaultSchema:{label:"模态框",type:"modal",children:[]},config:{attribute:[{label:"标题",type:"input",field:"title"}]}};function q(e=a.pluginManager){e.component("FormItem",async()=>(await Promise.resolve().then(()=>require("../../index-DMszow96.cjs")).then(t=>t.index)).NFormItem),e.component("Tabs",async()=>(await Promise.resolve().then(()=>require("../../index-D5WpEOUO.cjs")).then(t=>t.index)).NTabs),e.component("TabPane",p.NTabPane),e.component("Collapse",async()=>(await Promise.resolve().then(()=>require("../../index-RdEhd65J.cjs")).then(t=>t.index)).NCollapse),e.component("CollapseItem",async()=>(await Promise.resolve().then(()=>require("../../index-RdEhd65J.cjs")).then(t=>t.index)).NCollapseItem),[i,c,n,r,y,f,E,m,v,P,g,h,N,k,s,d,u,b,w,x,S].forEach(t=>{e.registerComponent(t),e.addBaseComponentTypes(t.defaultSchema.type)}),e.setInitialized(!0)}exports.setupNaiveUi=q;
|
package/dist/ui/naiveUi/index.js
CHANGED
|
@@ -2220,7 +2220,7 @@ const w = {
|
|
|
2220
2220
|
},
|
|
2221
2221
|
bindModel: "modelValue"
|
|
2222
2222
|
}, S = {
|
|
2223
|
-
component: () => import("../../uploadImage-
|
|
2223
|
+
component: () => import("../../uploadImage-qHq6JX83.js"),
|
|
2224
2224
|
groupName: "表单",
|
|
2225
2225
|
icon: "icon--epic--imagesmode-outline-rounded",
|
|
2226
2226
|
sort: 920,
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { defineComponent as w, ref as E, watch as u, inject as U, computed as b, h as t, nextTick as x } from "vue";
|
|
2
|
+
import { ElUpload as V, ElButton as y, ElMessage as C } from "element-plus";
|
|
3
|
+
import { u as P } from "./index-DO5DuUPL.js";
|
|
4
|
+
const { t: r } = P(), j = w({
|
|
5
|
+
props: {
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: Array,
|
|
8
|
+
default: () => []
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:modelValue"],
|
|
12
|
+
setup(s, { emit: d, attrs: i }) {
|
|
13
|
+
const l = E([]);
|
|
14
|
+
u(l, (e) => {
|
|
15
|
+
d("update:modelValue", e);
|
|
16
|
+
});
|
|
17
|
+
const p = U("disabled", { value: !1 });
|
|
18
|
+
u(
|
|
19
|
+
() => s.modelValue,
|
|
20
|
+
(e) => {
|
|
21
|
+
if (e != null && e.length > 0 && l.value != null) {
|
|
22
|
+
if (l.value === e) return;
|
|
23
|
+
l.value.length = 0, l.value.push(...e);
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{ deep: !0, immediate: !0 }
|
|
27
|
+
);
|
|
28
|
+
const c = (e, o) => {
|
|
29
|
+
x(() => {
|
|
30
|
+
l.value = o;
|
|
31
|
+
});
|
|
32
|
+
}, f = (e) => {
|
|
33
|
+
var a, n;
|
|
34
|
+
let o = e.url || ((n = (a = e == null ? void 0 : e.response) == null ? void 0 : a.data) == null ? void 0 : n.url);
|
|
35
|
+
window.open(o);
|
|
36
|
+
}, m = (e) => {
|
|
37
|
+
}, h = (e, o, a) => {
|
|
38
|
+
console.log(a);
|
|
39
|
+
}, v = (e, o, a) => {
|
|
40
|
+
C.error(r("uploadFailed")), console.error(e);
|
|
41
|
+
}, g = b(() => ({
|
|
42
|
+
...i,
|
|
43
|
+
"file-list": l.value,
|
|
44
|
+
onBeforeUpload: m,
|
|
45
|
+
onChange: c,
|
|
46
|
+
onSuccess: h,
|
|
47
|
+
onError: v,
|
|
48
|
+
onPreview: f
|
|
49
|
+
}));
|
|
50
|
+
return () => t("div", null, {
|
|
51
|
+
default: () => [
|
|
52
|
+
t(V, g.value, {
|
|
53
|
+
default: () => [
|
|
54
|
+
t(
|
|
55
|
+
y,
|
|
56
|
+
{
|
|
57
|
+
disabled: p.value
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
default: () => [
|
|
61
|
+
t("span", {
|
|
62
|
+
class: "icon--epic icon--epic--cloud-upload-outlined text-lg",
|
|
63
|
+
style: { "margin-right": "2px" }
|
|
64
|
+
}),
|
|
65
|
+
t("span", null, { default: () => r("fileUpload") })
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
]
|
|
70
|
+
})
|
|
71
|
+
]
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
export {
|
|
76
|
+
j as default
|
|
77
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),a=require("element-plus"),b=require("./index-DddOVmF6.cjs"),{t:r}=b.useLocale(),w=l.defineComponent({props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(s,{emit:d,attrs:i}){const o=l.ref([]);l.watch(o,e=>{d("update:modelValue",e)});const c=l.inject("disabled",{value:!1});l.watch(()=>s.modelValue,e=>{if(e!=null&&e.length>0&&o.value!=null){if(o.value===e)return;o.value.length=0,o.value.push(...e)}},{deep:!0,immediate:!0});const p=(e,t)=>{l.nextTick(()=>{o.value=t})},f=e=>{var n,u;let t=e.url||((u=(n=e==null?void 0:e.response)==null?void 0:n.data)==null?void 0:u.url);window.open(t)},h=e=>{},v=(e,t,n)=>{console.log(n)},g=(e,t,n)=>{a.ElMessage.error(r("uploadFailed")),console.error(e)},m=l.computed(()=>({...i,"file-list":o.value,onBeforeUpload:h,onChange:p,onSuccess:v,onError:g,onPreview:f}));return()=>l.h("div",null,{default:()=>[l.h(a.ElUpload,m.value,{default:()=>[l.h(a.ElButton,{disabled:c.value},{default:()=>[l.h("span",{class:"icon--epic icon--epic--cloud-upload-outlined text-lg",style:{"margin-right":"2px"}}),l.h("span",null,{default:()=>r("fileUpload")})]})]})]})}});exports.default=w;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElUpload as
|
|
3
|
-
|
|
1
|
+
import { defineComponent as y, ref as u, inject as C, watch as f, computed as F, h as o, nextTick as j } from "vue";
|
|
2
|
+
import { ElUpload as L, ElImageViewer as P, ElMessage as g } from "element-plus";
|
|
3
|
+
import { u as k } from "./index-DO5DuUPL.js";
|
|
4
|
+
const { t: s } = k(), A = y({
|
|
4
5
|
props: {
|
|
5
6
|
modelValue: {
|
|
6
7
|
type: Array,
|
|
@@ -8,16 +9,16 @@ const S = w({
|
|
|
8
9
|
}
|
|
9
10
|
},
|
|
10
11
|
emits: ["update:modelValue"],
|
|
11
|
-
setup(
|
|
12
|
-
const a =
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
12
|
+
setup(v, { emit: m, attrs: h }) {
|
|
13
|
+
const a = u([]);
|
|
14
|
+
C("disabled", { value: !1 });
|
|
15
|
+
const n = u(""), d = u(!1), i = (e) => {
|
|
16
|
+
d.value = e;
|
|
16
17
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}),
|
|
20
|
-
() =>
|
|
18
|
+
f(a, (e) => {
|
|
19
|
+
m("update:modelValue", e);
|
|
20
|
+
}), f(
|
|
21
|
+
() => v.modelValue,
|
|
21
22
|
(e) => {
|
|
22
23
|
if (e != null && e.length > 0 && a.value != null) {
|
|
23
24
|
if (a.value === e) return;
|
|
@@ -26,32 +27,32 @@ const S = w({
|
|
|
26
27
|
},
|
|
27
28
|
{ deep: !0, immediate: !0 }
|
|
28
29
|
);
|
|
29
|
-
const
|
|
30
|
+
const x = (e, r) => {
|
|
30
31
|
j(() => {
|
|
31
32
|
t ? (a.value = r.filter((l) => {
|
|
32
|
-
var
|
|
33
|
-
return ((
|
|
33
|
+
var c, p;
|
|
34
|
+
return ((c = l == null ? void 0 : l.response) == null ? void 0 : c.code) === 200 || ((p = l == null ? void 0 : l.response) == null ? void 0 : p.code) === 201;
|
|
34
35
|
}), t = !1) : a.value = r;
|
|
35
36
|
});
|
|
36
37
|
};
|
|
37
38
|
let t = !1;
|
|
38
|
-
const
|
|
39
|
-
e.code !== 200 && (
|
|
40
|
-
},
|
|
41
|
-
|
|
39
|
+
const E = (e, r, l) => {
|
|
40
|
+
e.code !== 200 && (g.error(s("uploadFailed")), t = !0), console.log(l);
|
|
41
|
+
}, U = (e, r, l) => {
|
|
42
|
+
g.error(s("uploadFailed")), console.error(e);
|
|
42
43
|
}, V = (e) => {
|
|
43
|
-
},
|
|
44
|
-
...
|
|
44
|
+
}, b = F(() => ({
|
|
45
|
+
...h,
|
|
45
46
|
"file-list": a.value,
|
|
46
47
|
"list-type": "picture-card",
|
|
47
48
|
accept: "image/gif,image/jpeg,image/jpg,image/png,image/svg",
|
|
48
49
|
onBeforeUpload: V,
|
|
49
|
-
onChange:
|
|
50
|
-
onSuccess:
|
|
51
|
-
onError:
|
|
52
|
-
onPreview:
|
|
53
|
-
})),
|
|
54
|
-
e.url && (
|
|
50
|
+
onChange: x,
|
|
51
|
+
onSuccess: E,
|
|
52
|
+
onError: U,
|
|
53
|
+
onPreview: w
|
|
54
|
+
})), w = (e) => {
|
|
55
|
+
e.url && (n.value = e.url, i(!0));
|
|
55
56
|
};
|
|
56
57
|
return () => o(
|
|
57
58
|
"div",
|
|
@@ -60,7 +61,7 @@ const S = w({
|
|
|
60
61
|
},
|
|
61
62
|
{
|
|
62
63
|
default: () => [
|
|
63
|
-
o(
|
|
64
|
+
o(L, b.value, {
|
|
64
65
|
default: () => [
|
|
65
66
|
o(
|
|
66
67
|
"div",
|
|
@@ -70,16 +71,16 @@ const S = w({
|
|
|
70
71
|
o("span", {
|
|
71
72
|
class: "icon--epic icon--epic--cloud-upload-outlined mr-2px text-lg"
|
|
72
73
|
}),
|
|
73
|
-
o("div", { class: "ant-upload-text" }, { default: () => "
|
|
74
|
+
o("div", { class: "ant-upload-text" }, { default: () => s("clickToUpload") })
|
|
74
75
|
]
|
|
75
76
|
}
|
|
76
77
|
)
|
|
77
78
|
]
|
|
78
79
|
}),
|
|
79
80
|
(() => {
|
|
80
|
-
if (
|
|
81
|
-
return o(
|
|
82
|
-
urlList: [
|
|
81
|
+
if (d.value)
|
|
82
|
+
return o(P, {
|
|
83
|
+
urlList: [n.value],
|
|
83
84
|
onClose: () => {
|
|
84
85
|
i(!1);
|
|
85
86
|
}
|
|
@@ -91,5 +92,5 @@ const S = w({
|
|
|
91
92
|
}
|
|
92
93
|
});
|
|
93
94
|
export {
|
|
94
|
-
|
|
95
|
+
A as default
|
|
95
96
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),g=require("naive-ui"),m=require("./index-DddOVmF6.cjs"),{t:f}=m.useLocale(),h=l.defineComponent({props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(n,{emit:i,attrs:u}){const a=l.ref([]);l.watch(a,e=>{i("update:modelValue",e)}),l.watch(()=>n.modelValue,e=>{if(e!=null&&e.length>0&&a.value!=null){if(a.value===e)return;a.value.length=0,a.value.push(...e)}},{deep:!0,immediate:!0});function s(e){console.log("onChange called->",e),l.nextTick(()=>{a.value=e})}const r=({file:e,event:t})=>{var o;console.log("OnFinish called->",e,t);const d=t==null?void 0:t.target,p=JSON.parse(d.response??"{}");e.url=(o=p.data)==null?void 0:o.url},c=({file:e,event:t})=>{console.log("OnError called->",e,t)};return()=>l.h("div",{class:"epic-upload-image"},{default:()=>[l.h(g.NUpload,{...u,"list-type":"image-card",accept:"image/gif,image/jpeg,image/jpg,image/png,image/svg","onUpdate:file-list":s,"file-list":a.value,onFinish:r,onError:c},{default:()=>[l.h("div",{style:{"text-align":"center"}},{default:()=>[l.h("span",{class:"icon--epic icon--epic--cloud-upload-outlined text-md mr-2px text-lg"}),l.h("div",{class:"ant-upload-text"},{default:()=>f("clickToUpload")})]})]})]})}});exports.default=h;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),t=require("element-plus"),U=require("./index-DddOVmF6.cjs"),{t:s}=U.useLocale(),V=l.defineComponent({props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(f,{emit:g,attrs:v}){const o=l.ref([]);l.inject("disabled",{value:!1});const n=l.ref(""),i=l.ref(!1),d=e=>{i.value=e};l.watch(o,e=>{g("update:modelValue",e)}),l.watch(()=>f.modelValue,e=>{if(e!=null&&e.length>0&&o.value!=null){if(o.value===e)return;o.value.length=0,o.value.push(...e)}},{deep:!0,immediate:!0});const h=(e,r)=>{l.nextTick(()=>{u?(o.value=r.filter(a=>{var c,p;return((c=a==null?void 0:a.response)==null?void 0:c.code)===200||((p=a==null?void 0:a.response)==null?void 0:p.code)===201}),u=!1):o.value=r})};let u=!1;const m=(e,r,a)=>{e.code!==200&&(t.ElMessage.error(s("uploadFailed")),u=!0),console.log(a)},E=(e,r,a)=>{t.ElMessage.error(s("uploadFailed")),console.error(e)},b=e=>{},x=l.computed(()=>({...v,"file-list":o.value,"list-type":"picture-card",accept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",onBeforeUpload:b,onChange:h,onSuccess:m,onError:E,onPreview:y})),y=e=>{e.url&&(n.value=e.url,d(!0))};return()=>l.h("div",{class:"epic-upload-image"},{default:()=>[l.h(t.ElUpload,x.value,{default:()=>[l.h("div",{style:{"text-align":"center"}},{default:()=>[l.h("span",{class:"icon--epic icon--epic--cloud-upload-outlined mr-2px text-lg"}),l.h("div",{class:"ant-upload-text"},{default:()=>s("clickToUpload")})]})]}),(()=>{if(i.value)return l.h(t.ElImageViewer,{urlList:[n.value],onClose:()=>{d(!1)}})})()]})}});exports.default=V;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as g, ref as f, watch as i, h as t, nextTick as h } from "vue";
|
|
2
2
|
import { NUpload as x } from "naive-ui";
|
|
3
|
-
|
|
3
|
+
import { u as v } from "./index-DO5DuUPL.js";
|
|
4
|
+
const { t: y } = v(), O = g({
|
|
4
5
|
props: {
|
|
5
6
|
modelValue: {
|
|
6
7
|
type: Array,
|
|
@@ -8,12 +9,12 @@ const V = m({
|
|
|
8
9
|
}
|
|
9
10
|
},
|
|
10
11
|
emits: ["update:modelValue"],
|
|
11
|
-
setup(
|
|
12
|
+
setup(n, { emit: s, attrs: u }) {
|
|
12
13
|
const l = f([]);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}),
|
|
16
|
-
() =>
|
|
14
|
+
i(l, (e) => {
|
|
15
|
+
s("update:modelValue", e);
|
|
16
|
+
}), i(
|
|
17
|
+
() => n.modelValue,
|
|
17
18
|
(e) => {
|
|
18
19
|
if (e != null && e.length > 0 && l.value != null) {
|
|
19
20
|
if (l.value === e) return;
|
|
@@ -27,12 +28,12 @@ const V = m({
|
|
|
27
28
|
l.value = e;
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
|
-
const
|
|
31
|
+
const d = ({ file: e, event: a }) => {
|
|
31
32
|
var o;
|
|
32
33
|
console.log("OnFinish called->", e, a);
|
|
33
|
-
const
|
|
34
|
-
e.url = (o =
|
|
35
|
-
},
|
|
34
|
+
const p = a == null ? void 0 : a.target, m = JSON.parse(p.response ?? "{}");
|
|
35
|
+
e.url = (o = m.data) == null ? void 0 : o.url;
|
|
36
|
+
}, c = ({ file: e, event: a }) => {
|
|
36
37
|
console.log("OnError called->", e, a);
|
|
37
38
|
};
|
|
38
39
|
return () => t(
|
|
@@ -45,13 +46,13 @@ const V = m({
|
|
|
45
46
|
t(
|
|
46
47
|
x,
|
|
47
48
|
{
|
|
48
|
-
...
|
|
49
|
+
...u,
|
|
49
50
|
"list-type": "image-card",
|
|
50
51
|
accept: "image/gif,image/jpeg,image/jpg,image/png,image/svg",
|
|
51
52
|
"onUpdate:file-list": r,
|
|
52
53
|
"file-list": l.value,
|
|
53
|
-
onFinish:
|
|
54
|
-
onError:
|
|
54
|
+
onFinish: d,
|
|
55
|
+
onError: c
|
|
55
56
|
},
|
|
56
57
|
{
|
|
57
58
|
default: () => [
|
|
@@ -63,11 +64,7 @@ const V = m({
|
|
|
63
64
|
t("span", {
|
|
64
65
|
class: "icon--epic icon--epic--cloud-upload-outlined text-md mr-2px text-lg"
|
|
65
66
|
}),
|
|
66
|
-
t(
|
|
67
|
-
"div",
|
|
68
|
-
{ class: "ant-upload-text" },
|
|
69
|
-
{ default: () => "点击上传" }
|
|
70
|
-
)
|
|
67
|
+
t("div", { class: "ant-upload-text" }, { default: () => y("clickToUpload") })
|
|
71
68
|
]
|
|
72
69
|
}
|
|
73
70
|
)
|
|
@@ -80,5 +77,5 @@ const V = m({
|
|
|
80
77
|
}
|
|
81
78
|
});
|
|
82
79
|
export {
|
|
83
|
-
|
|
80
|
+
O as default
|
|
84
81
|
};
|
package/package.json
CHANGED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { defineComponent as S, inject as i, computed as V, ref as P, watchEffect as C, openBlock as l, createElementBlock as s, Fragment as N, renderList as D, normalizeClass as m, toDisplayString as E, createCommentVNode as y, createElementVNode as U, createVNode as B, unref as f, nextTick as v } from "vue";
|
|
2
|
-
import { _ as x, o as g, s as h } from "./index-B_9x_cPH.js";
|
|
3
|
-
import { p as z } from "./js.cookie-oHpRFPCO.js";
|
|
4
|
-
const F = ["title"], M = /* @__PURE__ */ S({
|
|
5
|
-
__name: "attributeView",
|
|
6
|
-
setup(T) {
|
|
7
|
-
const d = i("designer"), r = i("pageSchema"), b = i("revoke"), k = z.getComponentConfings(), o = V(() => d.state.checkedNode);
|
|
8
|
-
function _(t) {
|
|
9
|
-
var a;
|
|
10
|
-
return typeof t.show == "boolean" ? t.show : typeof t.show == "function" ? (a = t.show) == null ? void 0 : a.call(t, { values: o.value }) : !0;
|
|
11
|
-
}
|
|
12
|
-
const u = P([]);
|
|
13
|
-
C(() => {
|
|
14
|
-
var n, e, c;
|
|
15
|
-
const t = (n = d.state.checkedNode) == null ? void 0 : n.type;
|
|
16
|
-
if (!d.state.checkedNode || !t)
|
|
17
|
-
return [];
|
|
18
|
-
const a = ((e = k[t]) == null ? void 0 : e.config.attribute) ?? [];
|
|
19
|
-
u.value = [
|
|
20
|
-
{
|
|
21
|
-
label: "组件ID",
|
|
22
|
-
type: "input",
|
|
23
|
-
field: "id",
|
|
24
|
-
componentProps: {
|
|
25
|
-
disabled: !0
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
...a
|
|
29
|
-
], d.state.checkedNode.id === ((c = r.schemas[0]) == null ? void 0 : c.id) && u.value.push(
|
|
30
|
-
{
|
|
31
|
-
label: "画布宽度",
|
|
32
|
-
type: "EInputSize",
|
|
33
|
-
field: "canvas.width",
|
|
34
|
-
editData: r
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
label: "画布高度",
|
|
38
|
-
type: "EInputSize",
|
|
39
|
-
field: "canvas.height",
|
|
40
|
-
editData: r
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
});
|
|
44
|
-
function w(t, a, n, e = o.value) {
|
|
45
|
-
typeof n.onChange == "function" && n.onChange({ value: t, values: e, componentAttributes: u }), n.changeSync ? h(e, a, t) : v(() => {
|
|
46
|
-
h(e, a, t);
|
|
47
|
-
}), b.push(r.schemas, "编辑组件属性");
|
|
48
|
-
}
|
|
49
|
-
function I(t, a, n = o.value) {
|
|
50
|
-
v(() => {
|
|
51
|
-
h(n, "componentProps.dynamicId", t);
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
return (t, a) => {
|
|
55
|
-
var n;
|
|
56
|
-
return l(), s("div", {
|
|
57
|
-
class: "epic-attribute-view",
|
|
58
|
-
key: (n = o.value) == null ? void 0 : n.id
|
|
59
|
-
}, [
|
|
60
|
-
(l(!0), s(N, null, D(u.value, (e) => {
|
|
61
|
-
var c;
|
|
62
|
-
return l(), s("div", {
|
|
63
|
-
key: e.field
|
|
64
|
-
}, [
|
|
65
|
-
_(e) ? (l(), s("div", {
|
|
66
|
-
key: 0,
|
|
67
|
-
class: m(["epic-attr-item", e.layout])
|
|
68
|
-
}, [
|
|
69
|
-
e.label ? (l(), s("div", {
|
|
70
|
-
key: 0,
|
|
71
|
-
class: "epic-attr-label",
|
|
72
|
-
title: e.label
|
|
73
|
-
}, E(e.label), 9, F)) : y("", !0),
|
|
74
|
-
U("div", {
|
|
75
|
-
class: m(["epic-attr-input", { "block!": e.layout === "vertical" }])
|
|
76
|
-
}, [
|
|
77
|
-
B(f(x), {
|
|
78
|
-
componentSchema: {
|
|
79
|
-
...e,
|
|
80
|
-
componentProps: {
|
|
81
|
-
...e.componentProps,
|
|
82
|
-
...e.field === "componentProps.defaultValue" ? (c = o.value) == null ? void 0 : c.componentProps : {},
|
|
83
|
-
input: !1,
|
|
84
|
-
field: void 0,
|
|
85
|
-
hidden: !1
|
|
86
|
-
},
|
|
87
|
-
show: !0,
|
|
88
|
-
noFormItem: !0
|
|
89
|
-
},
|
|
90
|
-
dynamicId: f(g)(e.editData ?? o.value, "componentProps.dynamicId"),
|
|
91
|
-
"model-value": f(g)(e.editData ?? o.value, e.field),
|
|
92
|
-
"onUpdate:modelValue": (p) => w(p, e.field, e, e.editData),
|
|
93
|
-
"onUpdate:dynamicId": (p) => I(p)
|
|
94
|
-
}, null, 8, ["componentSchema", "dynamicId", "model-value", "onUpdate:modelValue", "onUpdate:dynamicId"])
|
|
95
|
-
], 2)
|
|
96
|
-
], 2)) : y("", !0)
|
|
97
|
-
]);
|
|
98
|
-
}), 128))
|
|
99
|
-
]);
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
export {
|
|
104
|
-
M as default
|
|
105
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-C3a1hfUC.cjs"),v=require("./js.cookie-BH1G_HRi.cjs"),k=["title"],g=e.defineComponent({__name:"attributeView",setup(b){const s=e.inject("designer"),d=e.inject("pageSchema"),p=e.inject("revoke"),f=v.pluginManager.getComponentConfings(),c=e.computed(()=>s.state.checkedNode);function h(n){var a;return typeof n.show=="boolean"?n.show:typeof n.show=="function"?(a=n.show)==null?void 0:a.call(n,{values:c.value}):!0}const u=e.ref([]);e.watchEffect(()=>{var o,t,r;const n=(o=s.state.checkedNode)==null?void 0:o.type;if(!s.state.checkedNode||!n)return[];const a=((t=f[n])==null?void 0:t.config.attribute)??[];u.value=[{label:"组件ID",type:"input",field:"id",componentProps:{disabled:!0}},...a],s.state.checkedNode.id===((r=d.schemas[0])==null?void 0:r.id)&&u.value.push({label:"画布宽度",type:"EInputSize",field:"canvas.width",editData:d},{label:"画布高度",type:"EInputSize",field:"canvas.height",editData:d})});function y(n,a,o,t=c.value){typeof o.onChange=="function"&&o.onChange({value:n,values:t,componentAttributes:u}),o.changeSync?l.setValueByPath(t,a,n):e.nextTick(()=>{l.setValueByPath(t,a,n)}),p.push(d.schemas,"编辑组件属性")}function m(n,a,o=c.value){e.nextTick(()=>{l.setValueByPath(o,"componentProps.dynamicId",n)})}return(n,a)=>{var o;return e.openBlock(),e.createElementBlock("div",{class:"epic-attribute-view",key:(o=c.value)==null?void 0:o.id},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,t=>{var r;return e.openBlock(),e.createElementBlock("div",{key:t.field},[h(t)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["epic-attr-item",t.layout])},[t.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:"epic-attr-label",title:t.label},e.toDisplayString(t.label),9,k)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["epic-attr-input",{"block!":t.layout==="vertical"}])},[e.createVNode(e.unref(l._sfc_main),{componentSchema:{...t,componentProps:{...t.componentProps,...t.field==="componentProps.defaultValue"?(r=c.value)==null?void 0:r.componentProps:{},input:!1,field:void 0,hidden:!1},show:!0,noFormItem:!0},dynamicId:e.unref(l.getValueByPath)(t.editData??c.value,"componentProps.dynamicId"),"model-value":e.unref(l.getValueByPath)(t.editData??c.value,t.field),"onUpdate:modelValue":i=>y(i,t.field,t,t.editData),"onUpdate:dynamicId":i=>m(i)},null,8,["componentSchema","dynamicId","model-value","onUpdate:modelValue","onUpdate:dynamicId"])],2)],2)):e.createCommentVNode("",!0)])}),128))])}}});exports.default=g;
|
package/dist/col-RWuL5Zuz.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("element-plus"),u=e.defineComponent({props:{componentSchema:{type:Object,required:!0,default:()=>({})}},setup(n,{attrs:a,slots:o}){return()=>{var r;const t={...n.componentSchema,title:(r=n.componentSchema)==null?void 0:r.label},c=t.children??[];return delete t.children,e.h(d.ElCol,{...t,style:{padding:"8px"}},{default:()=>e.renderSlot(o,"edit-node",{},()=>c.map(l=>e.renderSlot(o,"node",{componentSchema:l})))})}}});exports.default=u;
|