PageSourceSearch

https://www.szallin.com/js/index.vue-oOwiOdUW.js

js szallin.com collected 2026-10-07 17:42:45 UTC 2,802 bytes, 1 lines download raw bytes

1import{q as r,h as q}from"./bootstrap-Crdkw-JK.js";import{u as z}from"./vuedraggable.umd-82Uheino.js";import{F as w,M as D}from"./data-7sT1EHVw.js";import{m as V}from"./icon.vue-cGxyGZds.js";import{d as E,s as p,r as _,c as B,o as v,a as f,j as a,b as u,e as N,f as o,F as L,t as M,C as G,z as S,q as H,E as I}from"../jse/index-main-CmTFJvK0.js";import"./string-BfkYbTFu.js";import"./modulepreload-polyfill-B5Qt9EMX.js";const J={class:"epic-component-view flex flex-col"},K={class:"epic-search-box px-10px py-6px"},O={class:"flex flex-1 overflow-auto"},Q={class:"epic-tabs-box"},R=["title","onClick"],W={class:"h-full flex-1 overflow-auto py-2 box-border"},X=["onClick"],Y={class:"epic-componet-label flex-1 w-0 truncate"},Z={class:"text-center pt-42px text-gray-400"},ne=E({__name:"index",setup(A){const U=r.getComponent("input"),x=p("pageSchema"),g=p("designer"),F=p("revoke"),P=p("designerProps"),h=r.getComponentSchemaGroups(),i=_(""),C={title:"全部",list:[]},n=_(C),T=B(()=>[C,...h.value]),d=B(()=>{let t=n.value.list;if(n.value.title==="全部"){const l=h.value.map(e=>e.list);t=[].concat(...l)}return t.filter(l=>{var e;return((e=l.label)==null?void 0:e.includes(i.value))&&(!P.value.formMode||l.type!=="form")})});function $(t){n.value=t}function j(t){var l,e,s;const m=D(x.schemas,((l=g.state.checkedNode)==null?void 0:l.id)??"root");if(!m)return!1;let{list:y,schema:c,index:b}=m;c.children&&!((s=(e=r.getComponentConfingByType(c.type))==null?void 0:e.editConstraints)!=null&&s.childImmovable)&&(y=c.children,b=c.children.length-1);const k=w(t);y.splice(b+1,0,k),g.setCheckedNode(k),F.push(x.schemas,"插入组件")}return(t,l)=>(v(),f("div",J,[a("div",K,[u(o(U),{placeholder:"搜索组件",modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=e=>i.value=e),clearable:"",allowClear:"",value:i.value,"onUpdate:value":l[1]||(l[1]=e=>i.value=e)},{prefix:N(()=>[u(o(V),{class:"text-$epic-text-helper",name:"icon--epic--search-rounded"})]),_:1},8,["modelValue","value"])]),a("div",O,[a("div",Q,[(v(!0),f(L,null,M(T.value,(e,s)=>(v(),f("div",{class:G(["epic-tab cursor-pointer truncate",{checked:n.value.title===e.title}]),key:s,title:e.title,onClick:m=>$(e)},S(e.title),11,R))),128))]),a("div",W,[u(o(z),H({modelValue:d.value,"onUpdate:modelValue":l[2]||(l[2]=e=>d.value=e)},{group:{name:"edit-draggable",pull:"clone",put:!1},sort:!1,animation:180,ghostClass:"moving"},{clone:o(w),"item-key":"id",class:"grid grid-cols-[auto_auto] px-10px gap-2"}),{item:N(({element:e})=>[a("div",{class:"epic-componet-item flex items-center truncate",onClick:s=>j(e)},[u(o(V),{name:o(r).getComponentConfingByType(e.type).icon??""},null,8,["name"]),a("div",Y,S(e.label),1)],8,X)]),_:1},16,["modelValue","clone"]),I(a("div",Z,"没有查询到的组件",512),[[q,!d.value.length]])])])]))}});export{ne as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.