epic-designer-gold 1.0.4 → 1.0.5
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-DEg9mFCt.cjs → attributeView-B2dWB_U2.cjs} +1 -1
- package/dist/{attributeView-CPrGnVQ8.js → attributeView-Cu_tjo9A.js} +3 -3
- package/dist/{axios-BAhOY32t.cjs → axios-B8aFvCWj.cjs} +1 -1
- package/dist/{axios-BFVeUxau.js → axios-Bb3STC1u.js} +1 -1
- package/dist/{index-C5-ZZLug.cjs → index-21c4Pe3i.cjs} +1 -1
- package/dist/{index-Sin3ac_7.js → index-B553TaXm.js} +1 -1
- package/dist/{index-Dru9G2MF.js → index-BLJT8e0Q.js} +3 -3
- package/dist/{index-CIwV58Ko.js → index-BULuVnVl.js} +9 -9
- package/dist/{index-CtkdvWFN.cjs → index-BV9SE7wG.cjs} +1 -1
- package/dist/{index-BEXliJtJ.cjs → index-BhcwWM1G.cjs} +1 -1
- package/dist/{index-ykB9CsYG.cjs → index-Bn8pwpgq.cjs} +1 -1
- package/dist/{index-C2Sx6r6b.cjs → index-Bxi3JLms.cjs} +1 -1
- package/dist/{index-BstMY1Nn.js → index-Bybwt7-u.js} +1 -1
- package/dist/{index-BPmq8lmK.js → index-CEDIwmNK.js} +2 -2
- package/dist/{index-DdsHIglg.js → index-CEvDmc0a.js} +2 -2
- package/dist/{index-dUOJH8fj.js → index-CHCOxt3B.js} +3 -3
- package/dist/{index-BN_dXDiO.cjs → index-CI3dhGXT.cjs} +1 -1
- package/dist/{index-Bsv8EECz.js → index-CMbBKMQU.js} +2 -2
- package/dist/{index-KGGnmoAO.cjs → index-CYAKMqdR.cjs} +1 -1
- package/dist/{index-D7z34DMU.js → index-CgwN4ucQ.js} +2 -2
- package/dist/{index-BoVrWUpL.js → index-CjIIhZdV.js} +3 -3
- package/dist/{index-DddOVmF6.cjs → index-Cq6eLpKZ.cjs} +1 -1
- package/dist/{index-D3Uft3bJ.cjs → index-CqeRfqUw.cjs} +1 -1
- package/dist/{index-BPRzjSrH.cjs → index-CrV5FaWU.cjs} +2 -2
- package/dist/{index-BiXYEiWV.js → index-D0kQz_zt.js} +1 -1
- package/dist/index-DR80h8IU.js +4 -0
- package/dist/{index-dcjty1Ho.cjs → index-DUMEtCCN.cjs} +1 -1
- package/dist/{index-CgisEnmm.cjs → index-DddTXMY9.cjs} +1 -1
- package/dist/{index-g1W7IHK_.cjs → index-DeFAvWuV.cjs} +1 -1
- package/dist/{index-B8V7odtp.cjs → index-DeZ09CHf.cjs} +1 -1
- package/dist/{index-DO5DuUPL.js → index-Dg7MK40D.js} +1 -1
- package/dist/{index-C6C5D9M8.js → index-DxNdcsD-.js} +2 -2
- package/dist/{index-DAhVvQNH.cjs → index-DzxQG0o7.cjs} +1 -1
- package/dist/{index-Cwgv4MbW.js → index-VblxMq6V.js} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/{outline-Coy4TGIa.cjs → outline-CK-jNomF.cjs} +1 -1
- package/dist/{outline-CG-aHThT.js → outline-DxCKINRN.js} +2 -2
- package/dist/{sign-C0z0Ygs4.js → sign-B-FCN_7O.js} +2 -2
- package/dist/{sign-BlMhTkWG.cjs → sign-Dho4kHTC.cjs} +1 -1
- package/dist/{styleView-D0W-N4vW.cjs → styleView-CRUqDcCl.cjs} +1 -1
- package/dist/{styleView-CkbdwQhA.js → styleView-ClMjCfMk.js} +3 -3
- package/dist/{tree.vue_vue_type_script_setup_true_lang-RWHCYpkY.js → tree.vue_vue_type_script_setup_true_lang-B9rWLveX.js} +1 -1
- package/dist/{tree.vue_vue_type_script_setup_true_lang-KKt_Qgqv.cjs → tree.vue_vue_type_script_setup_true_lang-DDDqMedP.cjs} +1 -1
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +4 -4
- package/dist/ui/naiveUi/index.cjs +1 -1
- package/dist/ui/naiveUi/index.js +1 -1
- package/dist/{uploadFile-Bh5GyGFd.js → uploadFile-Bc5Rxk0b.js} +1 -1
- package/dist/{uploadFile-CmKFRZMw.cjs → uploadFile-oB2-NP-v.cjs} +1 -1
- package/dist/{uploadImage-DENhzttU.cjs → uploadImage-4tgp3t7X.cjs} +1 -1
- package/dist/{uploadImage-CcMA6CyX.cjs → uploadImage-CF7fobUP.cjs} +1 -1
- package/dist/{uploadImage-CbVsUivh.js → uploadImage-CGXm3zNQ.js} +1 -1
- package/dist/{uploadImage-qHq6JX83.js → uploadImage-COCC3pxH.js} +1 -1
- package/package.json +1 -1
- package/dist/index-BY9j66Gp.js +0 -4
|
@@ -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-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;
|
|
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-CF7fobUP.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-COCC3pxH.js"),
|
|
2224
2224
|
groupName: "表单",
|
|
2225
2225
|
icon: "icon--epic--imagesmode-outline-rounded",
|
|
2226
2226
|
sort: 920,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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
2
|
import { ElUpload as V, ElButton as y, ElMessage as C } from "element-plus";
|
|
3
|
-
import { u as P } from "./index-
|
|
3
|
+
import { u as P } from "./index-Dg7MK40D.js";
|
|
4
4
|
const { t: r } = P(), j = w({
|
|
5
5
|
props: {
|
|
6
6
|
modelValue: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),a=require("element-plus"),b=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),a=require("element-plus"),b=require("./index-Cq6eLpKZ.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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),t=require("element-plus"),U=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),t=require("element-plus"),U=require("./index-Cq6eLpKZ.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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),g=require("naive-ui"),m=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),g=require("naive-ui"),m=require("./index-Cq6eLpKZ.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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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
2
|
import { ElUpload as L, ElImageViewer as P, ElMessage as g } from "element-plus";
|
|
3
|
-
import { u as k } from "./index-
|
|
3
|
+
import { u as k } from "./index-Dg7MK40D.js";
|
|
4
4
|
const { t: s } = k(), A = y({
|
|
5
5
|
props: {
|
|
6
6
|
modelValue: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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
|
-
import { u as v } from "./index-
|
|
3
|
+
import { u as v } from "./index-Dg7MK40D.js";
|
|
4
4
|
const { t: y } = v(), O = g({
|
|
5
5
|
props: {
|
|
6
6
|
modelValue: {
|
package/package.json
CHANGED
package/dist/index-BY9j66Gp.js
DELETED