ling-yun-custom-components 0.0.42 → 0.0.44

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/lib/IconSelect.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/IconSelect.css');const y=require("./chunks/index.CkihWzK6.js"),e=require("vue"),c=require("element-plus"),f=require("color-message-lingyun-vue"),p=require("./chunks/global.BNCddmRI.js"),g=require("./chunks/layout.B8d4J538.js"),w=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),b={class:"icon-select-content flex flex-col overflow-hidden"},h={class:"icon-select-grid overflow-y-auto display-grid"},_=["title","onClick"],B={key:0,class:"no-data"},I=Object.assign({name:"IconSelect"},{__name:"layout",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:"请选择图标"},width:{type:Number,default:520},iconSize:{type:Number,default:62}},emits:["update:modelValue"],setup(r,{emit:k}){const s=r,x=k,i=e.ref(!1),a=e.ref(""),n=e.ref(s.modelValue),d=e.computed(()=>Object.entries(p.icons).filter(([t])=>t.toLowerCase().includes("menu")).map(([t,o])=>({name:t,component:o}))),m=e.computed(()=>a.value?d.value.filter(t=>t.name.toLowerCase().includes(a.value.toLowerCase())):d.value),u=e.computed(()=>n.value&&p.icons[n.value]||null),V=t=>{n.value=t.name,x("update:modelValue",t.name),i.value=!1};return e.watch(()=>s.modelValue,t=>{n.value=t}),(t,o)=>(e.openBlock(),e.createBlock(e.unref(c.ElPopover),{visible:i.value,"onUpdate:visible":o[1]||(o[1]=l=>i.value=l),placement:"bottom-start",width:r.width,trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["flex items-center pointer radius-16 justify-center w-icon-item",{"select-icon-box bg-fcfdff text-202434 fz-14 flex-col":!u.value,"icon-item":n.value}])},[u.value?(e.openBlock(),e.createBlock(e.unref(c.ElIcon),{key:0,size:r.iconSize},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value)))]),_:1},8,["size"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(c.ElIcon),{size:16},{default:e.withCtx(()=>[e.createVNode(e.unref(f.IconAdd))]),_:1}),o[2]||(o[2]=e.createTextVNode(" 上传 ",-1))],64))],2)]),default:e.withCtx(()=>[e.createElementVNode("div",b,[e.createVNode(e.unref(c.ElInput),{class:"mg-b-12",modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=l=>a.value=l),placeholder:"搜索图标","prefix-icon":e.unref(f.IconSearch),clearable:""},null,8,["modelValue","prefix-icon"]),e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,l=>(e.openBlock(),e.createElementBlock("div",{key:l.name,class:e.normalizeClass(["icon-item radius-8 justify-center items-center pointer flex w-icon-item",{active:n.value===l.name}]),title:l.name,onClick:E=>V(l)},[e.createVNode(e.unref(c.ElIcon),{size:50},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.component)))]),_:2},1024)],10,_))),128))]),m.value.length===0?(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(g.IconEmpty,{text:"未找到相关图标"})])):e.createCommentVNode("",!0)])]),_:1},8,["visible","width"]))}}),C=w._export_sfc(I,[["__scopeId","data-v-b6a428ec"]]),v=y.withInstall(C);exports.IconSelect=v;exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/IconSelect.css');const y=require("./chunks/index.CkihWzK6.js"),e=require("vue"),c=require("element-plus"),f=require("color-message-lingyun-vue"),p=require("./chunks/global.CX5655fW.js"),g=require("./chunks/layout.B8d4J538.js"),w=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),b={class:"icon-select-content flex flex-col overflow-hidden"},h={class:"icon-select-grid overflow-y-auto display-grid"},_=["title","onClick"],B={key:0,class:"no-data"},I=Object.assign({name:"IconSelect"},{__name:"layout",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:"请选择图标"},width:{type:Number,default:520},iconSize:{type:Number,default:62}},emits:["update:modelValue"],setup(r,{emit:k}){const s=r,x=k,i=e.ref(!1),a=e.ref(""),n=e.ref(s.modelValue),d=e.computed(()=>Object.entries(p.icons).filter(([t])=>t.toLowerCase().includes("menu")).map(([t,o])=>({name:t,component:o}))),m=e.computed(()=>a.value?d.value.filter(t=>t.name.toLowerCase().includes(a.value.toLowerCase())):d.value),u=e.computed(()=>n.value&&p.icons[n.value]||null),V=t=>{n.value=t.name,x("update:modelValue",t.name),i.value=!1};return e.watch(()=>s.modelValue,t=>{n.value=t}),(t,o)=>(e.openBlock(),e.createBlock(e.unref(c.ElPopover),{visible:i.value,"onUpdate:visible":o[1]||(o[1]=l=>i.value=l),placement:"bottom-start",width:r.width,trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["flex items-center pointer radius-16 justify-center w-icon-item",{"select-icon-box bg-fcfdff text-202434 fz-14 flex-col":!u.value,"icon-item":n.value}])},[u.value?(e.openBlock(),e.createBlock(e.unref(c.ElIcon),{key:0,size:r.iconSize},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value)))]),_:1},8,["size"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(c.ElIcon),{size:16},{default:e.withCtx(()=>[e.createVNode(e.unref(f.IconAdd))]),_:1}),o[2]||(o[2]=e.createTextVNode(" 上传 ",-1))],64))],2)]),default:e.withCtx(()=>[e.createElementVNode("div",b,[e.createVNode(e.unref(c.ElInput),{class:"mg-b-12",modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=l=>a.value=l),placeholder:"搜索图标","prefix-icon":e.unref(f.IconSearch),clearable:""},null,8,["modelValue","prefix-icon"]),e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,l=>(e.openBlock(),e.createElementBlock("div",{key:l.name,class:e.normalizeClass(["icon-item radius-8 justify-center items-center pointer flex w-icon-item",{active:n.value===l.name}]),title:l.name,onClick:E=>V(l)},[e.createVNode(e.unref(c.ElIcon),{size:50},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.component)))]),_:2},1024)],10,_))),128))]),m.value.length===0?(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(g.IconEmpty,{text:"未找到相关图标"})])):e.createCommentVNode("",!0)])]),_:1},8,["visible","width"]))}}),C=w._export_sfc(I,[["__scopeId","data-v-b6a428ec"]]),v=y.withInstall(C);exports.IconSelect=v;exports.default=v;
@@ -1 +1 @@
1
- .config-item__label[data-v-9093c13d]{width:80px;height:auto}.config-item__label span[data-v-9093c13d]{line-height:20px;color:#5d6c89}.hover-overlay[data-v-ffbf63d2]{background-color:#00000080}[data-v-83b41e95] .el-timeline-item__timestamp{color:#86909c}[data-v-83b41e95] .el-card{background:#f7f8fa}.el-tab-pane[data-v-0ffdf013]{height:100%;overflow:hidden}
1
+ .config-item__label[data-v-0188f394]{width:80px;height:auto}.config-item__label span[data-v-0188f394]{line-height:20px;color:#5d6c89}.hover-overlay[data-v-ba3ada8e]{background-color:#00000080}[data-v-3a2170d7] .el-timeline-item__timestamp{color:#86909c}[data-v-3a2170d7] .el-card{background:var(--neutral-color-18)}.el-tab-pane[data-v-e0a3d317]{height:100%;overflow:hidden}
File without changes