@rft-rc/recycle-ui 0.0.2-rc.2 → 0.0.2-rc.3

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.
@@ -34,6 +34,8 @@ type __VLS_Props = {
34
34
  modelValue?: Record<string, any>;
35
35
  /** 是否显示蒙层 */
36
36
  showMask?: boolean;
37
+ /** 是否自动确认:为 true 时,每次修改立即触发 change 事件并关闭弹窗,不显示确定和重置按钮 */
38
+ autoConfirm?: boolean;
37
39
  };
38
40
  declare var __VLS_14: string, __VLS_15: {
39
41
  value: any;
@@ -59,6 +61,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
59
61
  items: FilterItem[];
60
62
  modelValue: Record<string, any>;
61
63
  showMask: boolean;
64
+ autoConfirm: boolean;
62
65
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
63
66
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
64
67
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/search-area/index.vue"],"names":[],"mappings":"AAwmCA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,YAAY;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,cAAc;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW;IACX,OAAO,EAAE,YAAY,EAAE,GAAG,MAAM,EAAE,CAAC;IACnC,4FAA4F;IAC5F,IAAI,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,aAAa,GAAG,eAAe,GAAG,OAAO,CAAC;IACzE,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gGAAgG;IAChG,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,YAAY,KAAK,GAAG,CAAC,GAAG,MAAM,CAAC;IAChD,yDAAyD;IACzD,UAAU,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,YAAY,KAAK,GAAG,CAAC,GAAG,MAAM,CAAC;IACpD,qCAAqC;IACrC,YAAY,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,YAAY,KAAK,GAAG,CAAC,GAAG,MAAM,CAAC;IACtD,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,KAAK,WAAW,GAAG;IACjB,YAAY;IACZ,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,wBAAwB;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,aAAa;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAs/BF,QAAA,IAAI,QAAQ,QAAW,EAAE,QAAQ;;0BAvRV,GAAG;CAuRmB,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;KAAG,CAAC,IAAI,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG;CAAE,CAAC;AAgD5E,QAAA,MAAM,eAAe;IAtcnB,cAAc;;;;IAEd,aAAa;;;;;;;;;WAzmBN,UAAU,EAAE;gBAEN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;cAErB,OAAO;6EAkjClB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/search-area/index.vue"],"names":[],"mappings":"AAqoCA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,YAAY;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,cAAc;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW;IACX,OAAO,EAAE,YAAY,EAAE,GAAG,MAAM,EAAE,CAAC;IACnC,4FAA4F;IAC5F,IAAI,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,aAAa,GAAG,eAAe,GAAG,OAAO,CAAC;IACzE,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gGAAgG;IAChG,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,YAAY,KAAK,GAAG,CAAC,GAAG,MAAM,CAAC;IAChD,yDAAyD;IACzD,UAAU,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,YAAY,KAAK,GAAG,CAAC,GAAG,MAAM,CAAC;IACpD,qCAAqC;IACrC,YAAY,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,YAAY,KAAK,GAAG,CAAC,GAAG,MAAM,CAAC;IACtD,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,KAAK,WAAW,GAAG;IACjB,YAAY;IACZ,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,wBAAwB;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,aAAa;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yDAAyD;IACzD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAkhCF,QAAA,IAAI,QAAQ,QAAW,EAAE,QAAQ;;0BAvRV,GAAG;CAuRmB,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;KAAG,CAAC,IAAI,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG;CAAE,CAAC;AAgD5E,QAAA,MAAM,eAAe;IAvcnB,cAAc;;;;IAEd,aAAa;;;;;;;;;WAtoBN,UAAU,EAAE;gBAEN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;cAErB,OAAO;iBAEJ,OAAO;6EA8kCrB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),Ie={key:0,class:"rc-icon__unicode"},De=e.defineComponent({name:"rc-icon",__name:"index",props:{name:{},size:{default:16},color:{default:""},spin:{type:Boolean,default:!1},code:{default:""}},setup(n){const r=n,c=e.inject(O,{}),f=e.computed(()=>(c==null?void 0:c.iconClass)||"iconfont"),v=e.computed(()=>r.name||""),p=e.computed(()=>typeof r.size=="number"?`${r.size}px`:r.size||"16px"),m=e.computed(()=>({fontSize:p.value,color:r.color||void 0,lineHeight:1,fontFamily:(c==null?void 0:c.iconClass)||"iconfont"})),u=e.computed(()=>{const s=r.code;if(s==null||s===""||s===0)return"";if(typeof s=="number")return String.fromCharCode(s);const d=String(s).replace(/^0x/i,""),B=parseInt(d,16);return Number.isNaN(B)?"":String.fromCharCode(B)});return e.onMounted(()=>{if(typeof window>"u")return;const s=c&&c.iconCssUrl||te.iconCssUrl;if(!s)return;const d=`link[rel="stylesheet"][data-rcui-icon="true"][href="${s}"]`;if(!document.head.querySelector(d)){const y=document.createElement("link");y.rel="stylesheet",y.href=s,y.setAttribute("data-rcui-icon","true"),document.head.appendChild(y)}}),(s,d)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(["rc-icon",[f.value,v.value,{"rc-icon--spin":n.spin}]]),style:e.normalizeStyle(m.value),"aria-hidden":"true"},[u.value?(e.openBlock(),e.createElementBlock("span",Ie,e.toDisplayString(u.value),1)):e.createCommentVNode("",!0)],6))}}),w=(n,r)=>{const c=n.__vccOpts||n;for(const[f,v]of r)c[f]=v;return c},C=w(De,[["__scopeId","data-v-3857a892"]]),Ae=["disabled"],Re={key:0,class:"rc-button__spinner"},ze={key:0,class:"rc-button__icon rc-button__icon--prefix"},Le={key:2,class:"rc-button__icon rc-button__icon--suffix"},Te=e.defineComponent({__name:"index",props:{type:{default:"default"},size:{default:"medium"},mode:{default:void 0},block:{type:Boolean,default:!1},label:{default:""},round:{type:[Number,String,Boolean],default:6},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},preIcon:{default:""},suffixIcon:{default:""}},emits:["click"],setup(n,{emit:r}){const c=n,f=r,v=m=>{!c.disabled&&!c.loading&&f("click",m)},p=e.computed(()=>{const m=c.round;return typeof m=="boolean"?m?"999px":"6px":typeof m=="number"?`${m}px`:String(m)});return(m,u)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["rc-button",[`rc-button--${n.type}`,`rc-button--${n.size}`,n.mode?`rc-button--${n.mode}`:"",{"is-block":n.block,"is-disabled":n.disabled,"is-loading":n.loading}]]),style:e.normalizeStyle({borderRadius:p.value}),disabled:n.disabled||n.loading,onClick:v},[n.loading?(e.openBlock(),e.createElementBlock("span",Re)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.preIcon||m.$slots.preIcon?(e.openBlock(),e.createElementBlock("span",ze,[e.renderSlot(m.$slots,"preIcon",{},()=>[n.preIcon?(e.openBlock(),e.createBlock(C,{key:0,name:n.preIcon},null,8,["name"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],64)),e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.label),1)],!0),!n.loading&&(n.suffixIcon||m.$slots.suffixIcon)?(e.openBlock(),e.createElementBlock("span",Le,[e.renderSlot(m.$slots,"suffixIcon",{},()=>[n.suffixIcon?(e.openBlock(),e.createBlock(C,{key:0,name:n.suffixIcon},null,8,["name"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],14,Ae))}}),F=w(Te,[["__scopeId","data-v-3ed3109f"]]);F.name="rc-button";function q(n){return n.component(F.name,F),n}const Fe={class:"rc-desc-item__value"},Me=e.defineComponent({name:"rc-descriptions-item",__name:"item",props:{label:{default:""},value:{default:""},labelWidth:{default:""},span:{default:1}},setup(n){const r=n;e.inject("rcDescItemWidth",void 0),e.inject("rcDescSingleWidth",""),e.inject("rcDescGap","0px");const c=e.inject("rcDescGapPx",0),f=e.inject("rcDescColCount",1),v=e.inject("rcDescLabelWidth",""),p=e.computed(()=>{const s=typeof r.span=="string"?parseInt(r.span,10):r.span,d=typeof(f==null?void 0:f.value)=="number"?f.value:f,B=!Number.isNaN(s)&&s>0?s:1;return Math.min(B,d||1)}),m=e.computed(()=>{const s=typeof(f==null?void 0:f.value)=="number"?f.value:f,d=typeof(c==null?void 0:c.value)=="number"?c.value:c,B=p.value;if(!s||s<=1||B>=s)return"100%";const y=(s-1)*d,b=(B-1)*d;return`calc((100% - ${y}px) * ${B} / ${s} + ${b}px)`}),u=e.computed(()=>{const s=typeof(v==null?void 0:v.value)=="string"?v.value:v,d=r.labelWidth!==""?r.labelWidth:s||"";return d?{width:typeof d=="number"?`${d}px`:String(d),flex:"0 0 auto"}:{}});return(s,d)=>(e.openBlock(),e.createElementBlock("div",{class:"rc-desc-item",style:e.normalizeStyle({width:m.value,flex:`0 0 ${m.value}`})},[e.createElementVNode("div",{class:"rc-desc-item__label",style:e.normalizeStyle(u.value)},[e.renderSlot(s.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(n.label),1)],!0)],4),e.createElementVNode("div",Fe,[e.renderSlot(s.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.value),1)],!0)])],4))}}),L=w(Me,[["__scopeId","data-v-970d0b99"]]),We={class:"rc-descriptions"},Ue={key:0,class:"rc-descriptions__title"},je=e.defineComponent({name:"rc-descriptions",__name:"index",props:{title:{},column:{default:2},gap:{default:4},labelWidth:{default:""},data:{default:()=>[]},keyMap:{}},setup(n){const r=n,c=e.ref(null),f=e.computed(()=>typeof r.gap=="number"?`${r.gap}px`:String(r.gap)),v=e.computed(()=>{const d=typeof r.column=="string"?Number.parseInt(r.column,10):r.column??1;return!Number.isNaN(d)&&d>0?d:1}),p=e.ref("100%"),m=e.ref("100%");e.watchEffect(()=>{const d=v.value;if(d<=1)p.value="100%",m.value="100%";else{const B=typeof r.gap=="number"?r.gap:parseFloat(String(r.gap))||0,b=`calc((100% - ${(d-1)*B}px) / ${d})`;m.value=b,p.value=b}}),e.provide("rcDescItemWidth",p),e.provide("rcDescSingleWidth",m),e.provide("rcDescColCount",v),e.provide("rcDescGapPx",e.computed(()=>typeof r.gap=="number"?r.gap:parseFloat(String(r.gap))||0));const u=e.computed(()=>r.labelWidth===""||r.labelWidth===void 0?"":typeof r.labelWidth=="number"?`${r.labelWidth}px`:String(r.labelWidth));e.provide("rcDescLabelWidth",u),e.provide("rcDescGap",e.computed(()=>typeof r.gap=="number"?`${r.gap}px`:String(r.gap)));const s=e.computed(()=>{var y,b,S;const d=((y=r.keyMap)==null?void 0:y.key)??"label",B=((b=r.keyMap)==null?void 0:b.value)??"value";return(S=r.data)!=null&&S.length?r.data.map(k=>({label:k==null?void 0:k[d],value:k==null?void 0:k[B]})):[]});return(d,B)=>(e.openBlock(),e.createElementBlock("div",We,[d.$slots.title||n.title?(e.openBlock(),e.createElementBlock("div",Ue,[e.renderSlot(d.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(n.title),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"rc-descriptions__body",style:e.normalizeStyle({gap:f.value}),ref_key:"wrapEl",ref:c},[s.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.value,(y,b)=>(e.openBlock(),e.createBlock(L,{key:b,label:y.label,value:y.value,"label-width":n.labelWidth},null,8,["label","value","label-width"]))),128)):e.renderSlot(d.$slots,"default",{key:1},void 0,!0)],4)]))}}),W=w(je,[["__scopeId","data-v-5fcaa235"]]);W.name="rc-descriptions";L.name="rc-descriptions-item";function H(n){return n.component(W.name,W),n.component("RcDescriptions",W),n.component(L.name,L),n.component("RcDescriptionsItem",L),n}const ke=W,he=L,Ke={class:"rc-card__title"},Ge={class:"rc-card__title-text"},Oe={key:0,class:"rc-card__status"},Pe={key:1,class:"rc-card__divider"},Ye={key:2,class:"rc-card__action"},qe=e.defineComponent({name:"rc-card",__name:"index",props:{color:{default:"var(--rc-white)"},topBgColor:{default:"rgba(29, 133, 252, 0.05)"},title:{default:""},status:{default:""},statusColor:{default:"var(--rc-primary)"},round:{default:8},bordered:{type:Boolean,default:!1},elevation:{default:2},padding:{default:"16px"},gap:{default:12},width:{default:"100%"},height:{default:""}},setup(n){const r=n,c=e.computed(()=>{const u=typeof r.round=="boolean"?r.round?"12px":"0":typeof r.round=="number"?`${r.round}px`:String(r.round);return{backgroundColor:r.color||"var(--rc-white)",borderRadius:u,boxShadow:m(r.elevation),width:p(r.width),height:p(r.height)}}),f=e.computed(()=>r.padding||"16px"),v=e.computed(()=>typeof r.gap=="number"?`${r.gap}px`:String(r.gap));function p(u){return u==null||u===""?"":typeof u=="number"?`${u}px`:String(u)}function m(u){if(!u||u<=0)return"none";const s=4*u;return`0 ${Math.round(s/2)}px ${s}px rgba(0,0,0,0.06), 0 ${Math.round(s/4)}px ${Math.round(s/2)}px rgba(0,0,0,0.04)`}return(u,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rc-card",[{"rc-card--bordered":n.bordered}]]),style:e.normalizeStyle(c.value)},[u.$slots.title||n.title||u.$slots.status||n.status?(e.openBlock(),e.createElementBlock("div",{key:0,class:"rc-card__top",style:e.normalizeStyle({backgroundColor:n.topBgColor||"rgba(29, 133, 252, 0.05)"})},[e.createElementVNode("div",Ke,[e.renderSlot(u.$slots,"title",{},()=>[e.createElementVNode("span",Ge,e.toDisplayString(n.title),1)],!0)]),u.$slots.status||n.status?(e.openBlock(),e.createElementBlock("div",Oe,[e.renderSlot(u.$slots,"status",{},()=>[e.createElementVNode("span",{class:"rc-card__status-text",style:e.normalizeStyle({color:n.statusColor||"var(--rc-primary)"})},e.toDisplayString(n.status),5)],!0)])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"rc-card__body",style:e.normalizeStyle({padding:f.value,gap:v.value})},[e.renderSlot(u.$slots,"content",{},()=>[e.renderSlot(u.$slots,"default",{},void 0,!0)],!0)],4),u.$slots.action?(e.openBlock(),e.createElementBlock("div",Pe)):e.createCommentVNode("",!0),u.$slots.action?(e.openBlock(),e.createElementBlock("div",Ye,[e.renderSlot(u.$slots,"action",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}}),U=w(qe,[["__scopeId","data-v-a7b95214"]]);U.name="rc-card";const He="RcCard";function J(n){return n.component(U.name,U),n.component(He,U),n}const Je={key:0,class:"rc-toast__mask"},Qe={class:"rc-toast__content"},Xe={key:0,class:"rc-toast__spinner"},Ze={key:1,class:"rc-toast__icon rc-toast__icon--success"},et={key:2,class:"rc-toast__icon rc-toast__icon--fail"},tt={class:"rc-toast__text"},nt=e.defineComponent({__name:"index",props:{message:{default:""},type:{default:"text"},duration:{default:2e3},mask:{type:Boolean,default:!1},onAfterLeave:{}},setup(n,{expose:r}){const c=n,f=e.ref(!0);let v;function p(){v&&(clearTimeout(v),v=null)}function m(){p(),f.value=!1}return r({close:m}),e.onMounted(()=>{c.duration&&c.duration>0&&(v=setTimeout(()=>{m()},c.duration))}),e.onUnmounted(()=>{p()}),(u,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"rc-toast-fade",onAfterLeave:n.onAfterLeave},{default:e.withCtx(()=>[f.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rc-toast",[`rc-toast--${n.type}`]])},[n.mask?(e.openBlock(),e.createElementBlock("div",Je)):e.createCommentVNode("",!0),e.createElementVNode("div",Qe,[n.type==="loading"?(e.openBlock(),e.createElementBlock("div",Xe)):n.type==="success"?(e.openBlock(),e.createElementBlock("div",Ze)):n.type==="fail"?(e.openBlock(),e.createElementBlock("div",et)):e.createCommentVNode("",!0),e.createElementVNode("div",tt,e.toDisplayString(n.message),1)])],2)):e.createCommentVNode("",!0)]),_:1},8,["onAfterLeave"])])),e.renderSlot(u.$slots,"default",{},void 0,!0)],64))}}),j=w(nt,[["__scopeId","data-v-d234c9c5"]]);let A=null,T=null;function ve(){A&&(A.unmount(),A=null),T&&(document.body.removeChild(T),T=null)}function rt(n){const r=typeof n=="string"?{message:n}:n||{};ve(),T=document.createElement("div"),document.body.appendChild(T);const c={message:r.message,type:r.type??"text",duration:r.duration??2e3,mask:r.mask??!1,onAfterLeave:()=>{var f;ve(),(f=r.onClose)==null||f.call(r)}};return A=e.createApp(j,c),A.mount(T),{close:ge}}function ge(){var n,r,c;A&&((c=(r=(n=A._instance)==null?void 0:n.exposed)==null?void 0:r.close)==null||c.call(r))}j.name="rc-toast";function ye(n){return n.component(j.name,j),n}const lt={class:"rc-message",role:"alert","aria-live":"polite"},ot={class:"rc-message__content"},at=e.defineComponent({__name:"index",setup(n,{expose:r}){const c=e.reactive([]);let f=1;function v(m){const u=c.findIndex(s=>s.id===m);u>=0&&c.splice(u,1)}function p(m,u,s){const d=f++;return c.push({id:d,type:m,content:u,duration:s}),s>0&&window.setTimeout(()=>v(d),s),d}return r({add:p,remove:v}),(m,u)=>(e.openBlock(),e.createElementBlock("div",lt,[e.createVNode(e.TransitionGroup,{name:"rc-message-fade",tag:"div"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,class:e.normalizeClass(["rc-message__item",`rc-message--${s.type}`])},[e.createElementVNode("span",ot,e.toDisplayString(s.content),1)],2))),128))]),_:1})]))}}),ct=w(at,[["__scopeId","data-v-87811df0"]]);let x=null,N=null;function st(){var r;if(x&&N)return;x=document.createElement("div"),document.body.appendChild(x);const n=e.createVNode(ct,{});e.render(n,x),N=(r=n.component)==null?void 0:r.exposed}function z(n,r,c){var v;st();const f=typeof c=="number"?c:n==="loading"?0:2e3;return(v=N==null?void 0:N.add)==null?void 0:v.call(N,n,r,f)}const _e={open(n){return z(n.type||"info",n.content,n.duration)},info(n,r){return z("info",n,r)},success(n,r){return z("success",n,r)},warning(n,r){return z("warning",n,r)},error(n,r){return z("error",n,r)},loading(n,r){return z("loading",n,r)},destroy(){x&&(e.render(null,x),x.remove(),x=null,N=null)}};function Q(n){return n.config.globalProperties.$message=_e,n}C.name="rc-icon";function X(n){return n.component(C.name,C),n.component("RcIcon",C),n}const it={class:"rc-search-area"},ut={class:"rc-search-area__bar"},dt=["onClick"],ft={class:"rc-search-area__item-label"},mt={class:"rc-search-area__panel-content"},pt={key:1,class:"rc-search-area__input-wrapper"},vt=["placeholder"],yt={key:2,class:"rc-search-area__tree-container"},kt={class:"rc-search-area__tree-group-title"},ht={class:"rc-search-area__tree-group-options"},gt=["onClick"],_t={class:"rc-search-area__option-label"},Bt={key:3,class:"rc-search-area__tree-container"},bt={class:"rc-search-area__tree-group-title"},Ct={class:"rc-search-area__tree-group-options"},St=["onClick"],$t={class:"rc-search-area__option-label"},Et={key:4,class:"rc-search-area__options-grid"},Vt=["onClick"],Nt={class:"rc-search-area__option-label"},xt={key:5,class:"rc-search-area__options-grid"},wt=["onClick"],It={class:"rc-search-area__option-label"},Dt={key:6,class:"rc-search-area__empty"},At={key:0,class:"rc-search-area__panel-footer"},Rt=e.defineComponent({name:"rc-search-area",__name:"index",props:{items:{default:()=>[]},modelValue:{default:()=>({})},showMask:{type:Boolean,default:!0}},emits:["update:modelValue","change"],setup(n,{expose:r,emit:c}){const f=n,v=c,p=e.ref(null),m=e.ref(null),u=e.ref(null),s=e.ref({top:"0px"}),d=async()=>{if(p.value===null||!m.value)return;await e.nextTick();const l=m.value.getBoundingClientRect().top;s.value={top:`${l}px`}},B=t=>{if(p.value===null||!m.value)return;const l=t.target;if(m.value.contains(l))return;const o=m.value.closest(".rc-search-area");if(o){const i=o.querySelector(".rc-search-area__bar");if(i&&i.contains(l))return}K()};e.watch(p,async t=>{t!==null?(await e.nextTick(),d(),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0),document.addEventListener("click",B,!0)):(window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0),document.removeEventListener("click",B,!0))}),e.onUnmounted(()=>{window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0),document.removeEventListener("click",B,!0)});const y=e.ref({}),b=e.ref(""),S=e.ref({}),k=e.ref({...f.modelValue});e.watch(()=>f.modelValue,t=>{k.value={...t||{}}},{deep:!0,immediate:!0});const a=e.computed(()=>p.value===null?null:f.items[p.value]),Be=e.computed(()=>{if(!a.value)return"";const t=xe(a.value);return t>0?`(${t}项)`:""}),be=t=>{const l=k.value[t.key];if(l==null||l===""||t.slot)return t.label;if(t.type==="input"){if(l&&String(l).trim())return`${t.label}: ${l}`}else if(t.type==="single"||t.type==="tree-single"){const o=P(t,l);if(o)return`${t.label}: ${re(o,t)}`}else{const o=Array.isArray(l)?l:[l];if(o.length>0){const i=o.map(g=>{const h=P(t,g);return h?re(h,t):null}).filter(g=>g!==null);if(i.length>0)return`${t.label}: ${i.join("、")}`}}return t.label},Ce=t=>{const l=f.items[t];if(!l)return;if(p.value===t){p.value=null;return}const o=k.value[l.key];l.slot?S.value[l.key]=o!==void 0?typeof o=="object"&&o!==null?{...o}:o:void 0:l.type==="input"?b.value=o!=null?String(o):"":l.type==="single"||l.type==="tree-single"?y.value[l.key]=o!==void 0?o:null:y.value[l.key]=o!==void 0?Array.isArray(o)?[...o]:[o]:[],p.value=t},K=()=>{p.value=null},I=(t,l)=>{if(!l)return typeof t=="string"?t:t.label||String(t.value);const o=t;if(l.renderItem){if(typeof l.renderItem=="string")return String(typeof o=="object"&&o!==null?o[l.renderItem]??"":o);{const i=l.renderItem(o);return i!=null?String(i):""}}return typeof t=="string"?t:t.label||String(t.value)},G=(t,l)=>{if(!l)return typeof t=="string"?t:t.value!==void 0?t.value:t;const o=t;return l.format?typeof l.format=="string"?typeof o=="object"&&o!==null?o[l.format]:o:l.format(o):typeof t=="string"?t:t.value!==void 0?t.value:t},re=(t,l)=>{const o=t,i=l.renderResult||l.renderItem;if(i){if(typeof i=="string")return String(typeof o=="object"&&o!==null?o[i]??"":o);{const g=i(o);return g!=null?String(g):""}}return I(t,l)},P=(t,l,o)=>{const i=o||t.options,g=t.childrenKey||"children";for(const h of i){const E=G(h,t);if(E===l||String(E)===String(l))return h;if(t.childrenKey&&typeof h=="object"&&h!==null){const R=h[g];if(Array.isArray(R)&&R.length>0){const M=P(t,l,R);if(M)return M}}}return null},le=(t,l)=>{const o=l||t.options,i=t.childrenKey||"children",g=[];for(const h of o)if(g.push(h),t.childrenKey&&typeof h=="object"&&h!==null){const E=h[i];Array.isArray(E)&&E.length>0&&g.push(...le(t,E))}return g},V=t=>{if(!a.value)return!1;const l=a.value.key,o=y.value[l],i=G(t,a.value);return a.value.type==="single"||a.value.type==="tree-single"?o!=null&&o===i:(Array.isArray(o)?o:[]).some(h=>h===i||String(h)===String(i))},oe=t=>t?t.childrenKey?le(t):t.options:[],ae=t=>{if(!t)return[];const l=t.childrenKey||"children";return(t.options||[]).filter(o=>{if(typeof o=="string")return!1;const i=o[l];return Array.isArray(i)&&i.length>0})},ce=(t,l)=>{if(!l||typeof t=="string")return[];const o=l.childrenKey||"children",i=t[o];return Array.isArray(i)?i:[]},Se=t=>{if(t)return S.value[t.key]!==void 0?S.value[t.key]:k.value[t.key]},$e=(t,l)=>{t&&(S.value[t.key]=l)},se=t=>{if(!a.value)return;const l=a.value.key,o=G(t,a.value);k.value[l];let i;y.value[l]===o?i=void 0:i=o,k.value[l]=i,v("update:modelValue",{...k.value}),v("change",{...k.value},a.value),K()},ie=t=>{if(!a.value)return;const l=a.value.key,o=G(t,a.value),i=Array.isArray(y.value[l])?[...y.value[l]]:[],g=i.findIndex(h=>h===o||String(h)===String(o));g>=0?i.splice(g,1):i.push(o),y.value[l]=i},Ee=()=>{if(!a.value)return;const t=a.value.key;a.value.slot?S.value[t]=void 0:a.value.type==="input"?b.value="":a.value.type==="single"||a.value.type==="tree-single"?y.value[t]=null:y.value[t]=[]},Ve=()=>{},Ne=()=>{if(!a.value)return;const t=a.value.key;k.value[t];let l;if(a.value.slot)l=S.value[t],k.value[t]=l;else if(a.value.type==="input")l=b.value.trim()||void 0,k.value[t]=l;else if(a.value.type==="single"||a.value.type==="tree-single"){const o=y.value[t];l=o??void 0,k.value[t]=l}else{const o=y.value[t];l=Array.isArray(o)&&o.length>0?o:void 0,k.value[t]=l}v("update:modelValue",{...k.value}),v("change",{...k.value},a.value),K()},ue=t=>{const l=k.value[t.key];return l==null||l===""?0:t.slot?1:t.type==="input"?String(l).trim()?1:0:t.type==="single"||t.type==="tree-single"?1:Array.isArray(l)?l.length:l?1:0},xe=t=>{if(t.slot){const o=S.value[t.key];return o!=null&&o!==""?1:0}else if(t.type==="input")return b.value.trim()?1:0;const l=y.value[t.key];return l==null||l===""?0:t.type==="single"||t.type==="tree-single"?1:Array.isArray(l)?l.length:0};return r({getValues:()=>({...k.value}),reset:()=>{k.value={},y.value={},S.value={},v("update:modelValue",{})}}),(t,l)=>(e.openBlock(),e.createElementBlock("div",it,[e.createElementVNode("div",ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.items,(o,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:e.normalizeClass(["rc-search-area__item",{"is-active":p.value===i,"has-value":ue(o)>0}]),onClick:g=>Ce(i)},[e.createElementVNode("span",ft,e.toDisplayString(be(o)),1),e.createVNode(e.unref(C),{name:"icon_a-xiala2",color:p.value!==i&&ue(o)>0?"#1677ff":"#969799",class:e.normalizeClass(["rc-search-area__item-arrow",{"is-up":p.value===i}])},null,8,["color","class"])],10,dt))),128))]),e.createVNode(e.Transition,{name:"rc-search-area-fade"},{default:e.withCtx(()=>[p.value!==null&&f.showMask?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"maskRef",ref:u,class:"rc-search-area__mask",style:e.normalizeStyle(s.value),onClick:K},null,4)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"rc-search-area-slide"},{default:e.withCtx(()=>{var o,i,g,h,E,R,M,de,fe,me,pe;return[p.value!==null?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"panelRef",ref:m,class:"rc-search-area__panel"},[e.createElementVNode("div",mt,[(o=a.value)!=null&&o.slot&&t.$slots[a.value.key]?e.renderSlot(t.$slots,a.value.key,{key:0,value:Se(a.value),"update:value":_=>$e(a.value,_)},void 0,!0):((i=a.value)==null?void 0:i.type)==="input"?(e.openBlock(),e.createElementBlock("div",pt,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=_=>b.value=_),type:"text",class:"rc-search-area__input",placeholder:a.value.placeholder||"请输入",onInput:Ve},null,40,vt),[[e.vModelText,b.value]])])):((g=a.value)==null?void 0:g.type)==="tree-single"?(e.openBlock(),e.createElementBlock("div",yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ae(a.value),(_,D)=>(e.openBlock(),e.createElementBlock("div",{key:D,class:"rc-search-area__tree-group"},[e.createElementVNode("div",kt,e.toDisplayString(I(_,a.value||void 0)),1),e.createElementVNode("div",ht,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ce(_,a.value),($,Y)=>(e.openBlock(),e.createElementBlock("div",{key:Y,class:e.normalizeClass(["rc-search-area__option",{"is-selected":V($)}]),onClick:we=>se($)},[e.createElementVNode("span",_t,e.toDisplayString(I($,a.value||void 0)),1),V($)?(e.openBlock(),e.createBlock(e.unref(C),{key:0,name:"icon_select",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,gt))),128))])]))),128))])):((h=a.value)==null?void 0:h.type)==="tree-multiple"?(e.openBlock(),e.createElementBlock("div",Bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ae(a.value),(_,D)=>(e.openBlock(),e.createElementBlock("div",{key:D,class:"rc-search-area__tree-group"},[e.createElementVNode("div",bt,e.toDisplayString(I(_,a.value||void 0)),1),e.createElementVNode("div",Ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ce(_,a.value),($,Y)=>(e.openBlock(),e.createElementBlock("div",{key:Y,class:e.normalizeClass(["rc-search-area__option",{"is-selected":V($)}]),onClick:we=>ie($)},[e.createElementVNode("span",$t,e.toDisplayString(I($,a.value||void 0)),1),V($)?(e.openBlock(),e.createBlock(e.unref(C),{key:0,name:"icon_select",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,St))),128))])]))),128))])):((E=a.value)==null?void 0:E.type)==="single"?(e.openBlock(),e.createElementBlock("div",Et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe(a.value),(_,D)=>(e.openBlock(),e.createElementBlock("div",{key:D,class:e.normalizeClass(["rc-search-area__option",{"is-selected":V(_)}]),onClick:$=>se(_)},[e.createElementVNode("span",Nt,e.toDisplayString(I(_,a.value||void 0)),1),V(_)?(e.openBlock(),e.createBlock(e.unref(C),{key:0,name:"icon_select",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,Vt))),128))])):(e.openBlock(),e.createElementBlock("div",xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe(a.value),(_,D)=>(e.openBlock(),e.createElementBlock("div",{key:D,class:e.normalizeClass(["rc-search-area__option",{"is-selected":V(_)}]),onClick:$=>ie(_)},[e.createElementVNode("span",It,e.toDisplayString(I(_,a.value||void 0)),1),V(_)?(e.openBlock(),e.createBlock(e.unref(C),{key:0,name:"icon_select",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,wt))),128))])),((R=a.value)==null?void 0:R.type)!=="input"&&!((M=a.value)!=null&&M.slot)&&((fe=(de=a.value)==null?void 0:de.options)==null?void 0:fe.length)===0?(e.openBlock(),e.createElementBlock("div",Dt,[...l[1]||(l[1]=[e.createElementVNode("p",null,"暂无选项",-1)])])):e.createCommentVNode("",!0)]),((me=a.value)==null?void 0:me.type)!=="single"&&((pe=a.value)==null?void 0:pe.type)!=="tree-single"?(e.openBlock(),e.createElementBlock("div",At,[e.createVNode(e.unref(F),{block:"",onClick:Ee},{default:e.withCtx(()=>[...l[2]||(l[2]=[e.createTextVNode(" 重置 ",-1)])]),_:1}),e.createVNode(e.unref(F),{type:"primary",block:"",onClick:Ne},{default:e.withCtx(()=>[e.createTextVNode(" 确定"+e.toDisplayString(Be.value),1)]),_:1})])):e.createCommentVNode("",!0)],512)):e.createCommentVNode("",!0)]}),_:3})]))}}),Z=w(Rt,[["__scopeId","data-v-26a764e2"]]),ee=n=>{n.component("RcSearchArea",Z),n.component("rc-search-area",Z)},O=Symbol("RECYCLE_UI_CONFIG"),te={prefix:"rc",autoRegister:!0,provideKey:O,theme:{},iconCssUrl:"//at.alicdn.com/t/c/font_4252799_9vcnw0pnmkh.css",iconClass:"iconfont"};function zt(n,r){r.autoRegister!==!1&&(typeof q=="function"&&q(n),typeof H=="function"&&H(n),typeof J=="function"&&J(n),typeof ye=="function"&&ye(n),typeof X=="function"&&X(n),typeof Q=="function"&&Q(n),typeof ee=="function"&&ee(n))}const ne=(n,r)=>{const c={...te,...r||{}};if(n.provide(c.provideKey??O,c),n.config.globalProperties.$recycleUI=c,typeof window<"u"&&c.iconCssUrl){const f=`link[rel="stylesheet"][data-rcui-icon="true"][href="${c.iconCssUrl}"]`;if(!document.head.querySelector(f)){const p=document.createElement("link");p.rel="stylesheet",p.href=c.iconCssUrl,p.setAttribute("data-rcui-icon","true"),document.head.appendChild(p)}}return zt(n,c),n},Lt={install:ne};function Tt(n){return{install(r){ne(r,n)}}}exports.RECYCLE_UI_SYMBOL=O;exports.RcButton=F;exports.RcCard=U;exports.RcDescriptions=ke;exports.RcDescriptionsItem=he;exports.RcIcon=C;exports.RcSearchArea=Z;exports.RcToast=j;exports.createRecycleUI=Tt;exports.default=Lt;exports.defaultRecycleUIConfig=te;exports.hideToast=ge;exports.install=ne;exports.installButton=q;exports.installCard=J;exports.installDescriptions=H;exports.installIcon=X;exports.installMessage=Q;exports.installSearchArea=ee;exports.message=_e;exports.rcDescriptions=ke;exports.rcDescriptionsItem=he;exports.showToast=rt;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),Ie={key:0,class:"rc-icon__unicode"},De=e.defineComponent({name:"rc-icon",__name:"index",props:{name:{},size:{default:16},color:{default:""},spin:{type:Boolean,default:!1},code:{default:""}},setup(n){const r=n,c=e.inject(O,{}),u=e.computed(()=>(c==null?void 0:c.iconClass)||"iconfont"),m=e.computed(()=>r.name||""),v=e.computed(()=>typeof r.size=="number"?`${r.size}px`:r.size||"16px"),p=e.computed(()=>({fontSize:v.value,color:r.color||void 0,lineHeight:1,fontFamily:(c==null?void 0:c.iconClass)||"iconfont"})),d=e.computed(()=>{const s=r.code;if(s==null||s===""||s===0)return"";if(typeof s=="number")return String.fromCharCode(s);const f=String(s).replace(/^0x/i,""),B=parseInt(f,16);return Number.isNaN(B)?"":String.fromCharCode(B)});return e.onMounted(()=>{if(typeof window>"u")return;const s=c&&c.iconCssUrl||te.iconCssUrl;if(!s)return;const f=`link[rel="stylesheet"][data-rcui-icon="true"][href="${s}"]`;if(!document.head.querySelector(f)){const k=document.createElement("link");k.rel="stylesheet",k.href=s,k.setAttribute("data-rcui-icon","true"),document.head.appendChild(k)}}),(s,f)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(["rc-icon",[u.value,m.value,{"rc-icon--spin":n.spin}]]),style:e.normalizeStyle(p.value),"aria-hidden":"true"},[d.value?(e.openBlock(),e.createElementBlock("span",Ie,e.toDisplayString(d.value),1)):e.createCommentVNode("",!0)],6))}}),w=(n,r)=>{const c=n.__vccOpts||n;for(const[u,m]of r)c[u]=m;return c},C=w(De,[["__scopeId","data-v-3857a892"]]),Ae=["disabled"],Re={key:0,class:"rc-button__spinner"},ze={key:0,class:"rc-button__icon rc-button__icon--prefix"},Le={key:2,class:"rc-button__icon rc-button__icon--suffix"},Te=e.defineComponent({__name:"index",props:{type:{default:"default"},size:{default:"medium"},mode:{default:void 0},block:{type:Boolean,default:!1},label:{default:""},round:{type:[Number,String,Boolean],default:6},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},preIcon:{default:""},suffixIcon:{default:""}},emits:["click"],setup(n,{emit:r}){const c=n,u=r,m=p=>{!c.disabled&&!c.loading&&u("click",p)},v=e.computed(()=>{const p=c.round;return typeof p=="boolean"?p?"999px":"6px":typeof p=="number"?`${p}px`:String(p)});return(p,d)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["rc-button",[`rc-button--${n.type}`,`rc-button--${n.size}`,n.mode?`rc-button--${n.mode}`:"",{"is-block":n.block,"is-disabled":n.disabled,"is-loading":n.loading}]]),style:e.normalizeStyle({borderRadius:v.value}),disabled:n.disabled||n.loading,onClick:m},[n.loading?(e.openBlock(),e.createElementBlock("span",Re)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.preIcon||p.$slots.preIcon?(e.openBlock(),e.createElementBlock("span",ze,[e.renderSlot(p.$slots,"preIcon",{},()=>[n.preIcon?(e.openBlock(),e.createBlock(C,{key:0,name:n.preIcon},null,8,["name"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],64)),e.renderSlot(p.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.label),1)],!0),!n.loading&&(n.suffixIcon||p.$slots.suffixIcon)?(e.openBlock(),e.createElementBlock("span",Le,[e.renderSlot(p.$slots,"suffixIcon",{},()=>[n.suffixIcon?(e.openBlock(),e.createBlock(C,{key:0,name:n.suffixIcon},null,8,["name"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],14,Ae))}}),M=w(Te,[["__scopeId","data-v-3ed3109f"]]);M.name="rc-button";function q(n){return n.component(M.name,M),n}const Fe={class:"rc-desc-item__value"},Me=e.defineComponent({name:"rc-descriptions-item",__name:"item",props:{label:{default:""},value:{default:""},labelWidth:{default:""},span:{default:1}},setup(n){const r=n;e.inject("rcDescItemWidth",void 0),e.inject("rcDescSingleWidth",""),e.inject("rcDescGap","0px");const c=e.inject("rcDescGapPx",0),u=e.inject("rcDescColCount",1),m=e.inject("rcDescLabelWidth",""),v=e.computed(()=>{const s=typeof r.span=="string"?parseInt(r.span,10):r.span,f=typeof(u==null?void 0:u.value)=="number"?u.value:u,B=!Number.isNaN(s)&&s>0?s:1;return Math.min(B,f||1)}),p=e.computed(()=>{const s=typeof(u==null?void 0:u.value)=="number"?u.value:u,f=typeof(c==null?void 0:c.value)=="number"?c.value:c,B=v.value;if(!s||s<=1||B>=s)return"100%";const k=(s-1)*f,b=(B-1)*f;return`calc((100% - ${k}px) * ${B} / ${s} + ${b}px)`}),d=e.computed(()=>{const s=typeof(m==null?void 0:m.value)=="string"?m.value:m,f=r.labelWidth!==""?r.labelWidth:s||"";return f?{width:typeof f=="number"?`${f}px`:String(f),flex:"0 0 auto"}:{}});return(s,f)=>(e.openBlock(),e.createElementBlock("div",{class:"rc-desc-item",style:e.normalizeStyle({width:p.value,flex:`0 0 ${p.value}`})},[e.createElementVNode("div",{class:"rc-desc-item__label",style:e.normalizeStyle(d.value)},[e.renderSlot(s.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(n.label),1)],!0)],4),e.createElementVNode("div",Fe,[e.renderSlot(s.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.value),1)],!0)])],4))}}),T=w(Me,[["__scopeId","data-v-970d0b99"]]),We={class:"rc-descriptions"},Ue={key:0,class:"rc-descriptions__title"},je=e.defineComponent({name:"rc-descriptions",__name:"index",props:{title:{},column:{default:2},gap:{default:4},labelWidth:{default:""},data:{default:()=>[]},keyMap:{}},setup(n){const r=n,c=e.ref(null),u=e.computed(()=>typeof r.gap=="number"?`${r.gap}px`:String(r.gap)),m=e.computed(()=>{const f=typeof r.column=="string"?Number.parseInt(r.column,10):r.column??1;return!Number.isNaN(f)&&f>0?f:1}),v=e.ref("100%"),p=e.ref("100%");e.watchEffect(()=>{const f=m.value;if(f<=1)v.value="100%",p.value="100%";else{const B=typeof r.gap=="number"?r.gap:parseFloat(String(r.gap))||0,b=`calc((100% - ${(f-1)*B}px) / ${f})`;p.value=b,v.value=b}}),e.provide("rcDescItemWidth",v),e.provide("rcDescSingleWidth",p),e.provide("rcDescColCount",m),e.provide("rcDescGapPx",e.computed(()=>typeof r.gap=="number"?r.gap:parseFloat(String(r.gap))||0));const d=e.computed(()=>r.labelWidth===""||r.labelWidth===void 0?"":typeof r.labelWidth=="number"?`${r.labelWidth}px`:String(r.labelWidth));e.provide("rcDescLabelWidth",d),e.provide("rcDescGap",e.computed(()=>typeof r.gap=="number"?`${r.gap}px`:String(r.gap)));const s=e.computed(()=>{var k,b,S;const f=((k=r.keyMap)==null?void 0:k.key)??"label",B=((b=r.keyMap)==null?void 0:b.value)??"value";return(S=r.data)!=null&&S.length?r.data.map(y=>({label:y==null?void 0:y[f],value:y==null?void 0:y[B]})):[]});return(f,B)=>(e.openBlock(),e.createElementBlock("div",We,[f.$slots.title||n.title?(e.openBlock(),e.createElementBlock("div",Ue,[e.renderSlot(f.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(n.title),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"rc-descriptions__body",style:e.normalizeStyle({gap:u.value}),ref_key:"wrapEl",ref:c},[s.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.value,(k,b)=>(e.openBlock(),e.createBlock(T,{key:b,label:k.label,value:k.value,"label-width":n.labelWidth},null,8,["label","value","label-width"]))),128)):e.renderSlot(f.$slots,"default",{key:1},void 0,!0)],4)]))}}),U=w(je,[["__scopeId","data-v-5fcaa235"]]);U.name="rc-descriptions";T.name="rc-descriptions-item";function H(n){return n.component(U.name,U),n.component("RcDescriptions",U),n.component(T.name,T),n.component("RcDescriptionsItem",T),n}const ke=U,he=T,Ke={class:"rc-card__title"},Ge={class:"rc-card__title-text"},Oe={key:0,class:"rc-card__status"},Pe={key:1,class:"rc-card__divider"},Ye={key:2,class:"rc-card__action"},qe=e.defineComponent({name:"rc-card",__name:"index",props:{color:{default:"var(--rc-white)"},topBgColor:{default:"rgba(29, 133, 252, 0.05)"},title:{default:""},status:{default:""},statusColor:{default:"var(--rc-primary)"},round:{default:8},bordered:{type:Boolean,default:!1},elevation:{default:2},padding:{default:"16px"},gap:{default:12},width:{default:"100%"},height:{default:""}},setup(n){const r=n,c=e.computed(()=>{const d=typeof r.round=="boolean"?r.round?"12px":"0":typeof r.round=="number"?`${r.round}px`:String(r.round);return{backgroundColor:r.color||"var(--rc-white)",borderRadius:d,boxShadow:p(r.elevation),width:v(r.width),height:v(r.height)}}),u=e.computed(()=>r.padding||"16px"),m=e.computed(()=>typeof r.gap=="number"?`${r.gap}px`:String(r.gap));function v(d){return d==null||d===""?"":typeof d=="number"?`${d}px`:String(d)}function p(d){if(!d||d<=0)return"none";const s=4*d;return`0 ${Math.round(s/2)}px ${s}px rgba(0,0,0,0.06), 0 ${Math.round(s/4)}px ${Math.round(s/2)}px rgba(0,0,0,0.04)`}return(d,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rc-card",[{"rc-card--bordered":n.bordered}]]),style:e.normalizeStyle(c.value)},[d.$slots.title||n.title||d.$slots.status||n.status?(e.openBlock(),e.createElementBlock("div",{key:0,class:"rc-card__top",style:e.normalizeStyle({backgroundColor:n.topBgColor||"rgba(29, 133, 252, 0.05)"})},[e.createElementVNode("div",Ke,[e.renderSlot(d.$slots,"title",{},()=>[e.createElementVNode("span",Ge,e.toDisplayString(n.title),1)],!0)]),d.$slots.status||n.status?(e.openBlock(),e.createElementBlock("div",Oe,[e.renderSlot(d.$slots,"status",{},()=>[e.createElementVNode("span",{class:"rc-card__status-text",style:e.normalizeStyle({color:n.statusColor||"var(--rc-primary)"})},e.toDisplayString(n.status),5)],!0)])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"rc-card__body",style:e.normalizeStyle({padding:u.value,gap:m.value})},[e.renderSlot(d.$slots,"content",{},()=>[e.renderSlot(d.$slots,"default",{},void 0,!0)],!0)],4),d.$slots.action?(e.openBlock(),e.createElementBlock("div",Pe)):e.createCommentVNode("",!0),d.$slots.action?(e.openBlock(),e.createElementBlock("div",Ye,[e.renderSlot(d.$slots,"action",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}}),j=w(qe,[["__scopeId","data-v-a7b95214"]]);j.name="rc-card";const He="RcCard";function J(n){return n.component(j.name,j),n.component(He,j),n}const Je={key:0,class:"rc-toast__mask"},Qe={class:"rc-toast__content"},Xe={key:0,class:"rc-toast__spinner"},Ze={key:1,class:"rc-toast__icon rc-toast__icon--success"},et={key:2,class:"rc-toast__icon rc-toast__icon--fail"},tt={class:"rc-toast__text"},nt=e.defineComponent({__name:"index",props:{message:{default:""},type:{default:"text"},duration:{default:2e3},mask:{type:Boolean,default:!1},onAfterLeave:{}},setup(n,{expose:r}){const c=n,u=e.ref(!0);let m;function v(){m&&(clearTimeout(m),m=null)}function p(){v(),u.value=!1}return r({close:p}),e.onMounted(()=>{c.duration&&c.duration>0&&(m=setTimeout(()=>{p()},c.duration))}),e.onUnmounted(()=>{v()}),(d,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"rc-toast-fade",onAfterLeave:n.onAfterLeave},{default:e.withCtx(()=>[u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rc-toast",[`rc-toast--${n.type}`]])},[n.mask?(e.openBlock(),e.createElementBlock("div",Je)):e.createCommentVNode("",!0),e.createElementVNode("div",Qe,[n.type==="loading"?(e.openBlock(),e.createElementBlock("div",Xe)):n.type==="success"?(e.openBlock(),e.createElementBlock("div",Ze)):n.type==="fail"?(e.openBlock(),e.createElementBlock("div",et)):e.createCommentVNode("",!0),e.createElementVNode("div",tt,e.toDisplayString(n.message),1)])],2)):e.createCommentVNode("",!0)]),_:1},8,["onAfterLeave"])])),e.renderSlot(d.$slots,"default",{},void 0,!0)],64))}}),K=w(nt,[["__scopeId","data-v-d234c9c5"]]);let R=null,F=null;function ve(){R&&(R.unmount(),R=null),F&&(document.body.removeChild(F),F=null)}function lt(n){const r=typeof n=="string"?{message:n}:n||{};ve(),F=document.createElement("div"),document.body.appendChild(F);const c={message:r.message,type:r.type??"text",duration:r.duration??2e3,mask:r.mask??!1,onAfterLeave:()=>{var u;ve(),(u=r.onClose)==null||u.call(r)}};return R=e.createApp(K,c),R.mount(F),{close:ge}}function ge(){var n,r,c;R&&((c=(r=(n=R._instance)==null?void 0:n.exposed)==null?void 0:r.close)==null||c.call(r))}K.name="rc-toast";function ye(n){return n.component(K.name,K),n}const rt={class:"rc-message",role:"alert","aria-live":"polite"},ot={class:"rc-message__content"},at=e.defineComponent({__name:"index",setup(n,{expose:r}){const c=e.reactive([]);let u=1;function m(p){const d=c.findIndex(s=>s.id===p);d>=0&&c.splice(d,1)}function v(p,d,s){const f=u++;return c.push({id:f,type:p,content:d,duration:s}),s>0&&window.setTimeout(()=>m(f),s),f}return r({add:v,remove:m}),(p,d)=>(e.openBlock(),e.createElementBlock("div",rt,[e.createVNode(e.TransitionGroup,{name:"rc-message-fade",tag:"div"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,class:e.normalizeClass(["rc-message__item",`rc-message--${s.type}`])},[e.createElementVNode("span",ot,e.toDisplayString(s.content),1)],2))),128))]),_:1})]))}}),ct=w(at,[["__scopeId","data-v-87811df0"]]);let x=null,N=null;function st(){var r;if(x&&N)return;x=document.createElement("div"),document.body.appendChild(x);const n=e.createVNode(ct,{});e.render(n,x),N=(r=n.component)==null?void 0:r.exposed}function L(n,r,c){var m;st();const u=typeof c=="number"?c:n==="loading"?0:2e3;return(m=N==null?void 0:N.add)==null?void 0:m.call(N,n,r,u)}const _e={open(n){return L(n.type||"info",n.content,n.duration)},info(n,r){return L("info",n,r)},success(n,r){return L("success",n,r)},warning(n,r){return L("warning",n,r)},error(n,r){return L("error",n,r)},loading(n,r){return L("loading",n,r)},destroy(){x&&(e.render(null,x),x.remove(),x=null,N=null)}};function Q(n){return n.config.globalProperties.$message=_e,n}C.name="rc-icon";function X(n){return n.component(C.name,C),n.component("RcIcon",C),n}const it={class:"rc-search-area"},ut={class:"rc-search-area__bar"},dt=["onClick"],ft={class:"rc-search-area__item-label"},mt={class:"rc-search-area__panel-content"},pt={key:1,class:"rc-search-area__input-wrapper"},vt=["placeholder"],yt={key:2,class:"rc-search-area__tree-container"},kt={class:"rc-search-area__tree-group-title"},ht={class:"rc-search-area__tree-group-options"},gt=["onClick"],_t={class:"rc-search-area__option-label"},Bt={key:3,class:"rc-search-area__tree-container"},bt={class:"rc-search-area__tree-group-title"},Ct={class:"rc-search-area__tree-group-options"},St=["onClick"],$t={class:"rc-search-area__option-label"},Et={key:4,class:"rc-search-area__options-grid"},Vt=["onClick"],Nt={class:"rc-search-area__option-label"},xt={key:5,class:"rc-search-area__options-grid"},wt=["onClick"],It={class:"rc-search-area__option-label"},Dt={key:6,class:"rc-search-area__empty"},At={key:0,class:"rc-search-area__panel-footer"},Rt=e.defineComponent({name:"rc-search-area",__name:"index",props:{items:{default:()=>[]},modelValue:{default:()=>({})},showMask:{type:Boolean,default:!0},autoConfirm:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(n,{expose:r,emit:c}){const u=n,m=c,v=e.ref(null),p=e.ref(null),d=e.ref(null),s=e.ref({top:"0px"}),f=async()=>{if(v.value===null||!p.value)return;await e.nextTick();const l=p.value.getBoundingClientRect().top;s.value={top:`${l}px`}},B=t=>{if(v.value===null||!p.value)return;const l=t.target;if(p.value.contains(l))return;const o=p.value.closest(".rc-search-area");if(o){const i=o.querySelector(".rc-search-area__bar");if(i&&i.contains(l))return}I()};e.watch(v,async t=>{t!==null?(await e.nextTick(),f(),window.addEventListener("resize",f),window.addEventListener("scroll",f,!0),document.addEventListener("click",B,!0)):(window.removeEventListener("resize",f),window.removeEventListener("scroll",f,!0),document.removeEventListener("click",B,!0))}),e.onUnmounted(()=>{window.removeEventListener("resize",f),window.removeEventListener("scroll",f,!0),document.removeEventListener("click",B,!0)});const k=e.ref({}),b=e.ref(""),S=e.ref({}),y=e.ref({...u.modelValue});e.watch(()=>u.modelValue,t=>{y.value={...t||{}}},{deep:!0,immediate:!0});const a=e.computed(()=>v.value===null?null:u.items[v.value]),Be=e.computed(()=>{if(!a.value)return"";const t=xe(a.value);return t>0?`(${t}项)`:""}),be=t=>{const l=y.value[t.key];if(l==null||l===""||t.slot)return t.label;if(t.type==="input"){if(l&&String(l).trim())return`${t.label}: ${l}`}else if(t.type==="single"||t.type==="tree-single"){const o=P(t,l);if(o)return`${t.label}: ${le(o,t)}`}else{const o=Array.isArray(l)?l:[l];if(o.length>0){const i=o.map(g=>{const h=P(t,g);return h?le(h,t):null}).filter(g=>g!==null);if(i.length>0)return`${t.label}: ${i.join("、")}`}}return t.label},Ce=t=>{const l=u.items[t];if(!l)return;if(v.value===t){v.value=null;return}const o=y.value[l.key];l.slot?S.value[l.key]=o!==void 0?typeof o=="object"&&o!==null?{...o}:o:void 0:l.type==="input"?b.value=o!=null?String(o):"":l.type==="single"||l.type==="tree-single"?k.value[l.key]=o!==void 0?o:null:k.value[l.key]=o!==void 0?Array.isArray(o)?[...o]:[o]:[],v.value=t},I=()=>{v.value=null},D=(t,l)=>{if(!l)return typeof t=="string"?t:t.label||String(t.value);const o=t;if(l.renderItem){if(typeof l.renderItem=="string")return String(typeof o=="object"&&o!==null?o[l.renderItem]??"":o);{const i=l.renderItem(o);return i!=null?String(i):""}}return typeof t=="string"?t:t.label||String(t.value)},G=(t,l)=>{if(!l)return typeof t=="string"?t:t.value!==void 0?t.value:t;const o=t;return l.format?typeof l.format=="string"?typeof o=="object"&&o!==null?o[l.format]:o:l.format(o):typeof t=="string"?t:t.value!==void 0?t.value:t},le=(t,l)=>{const o=t,i=l.renderResult||l.renderItem;if(i){if(typeof i=="string")return String(typeof o=="object"&&o!==null?o[i]??"":o);{const g=i(o);return g!=null?String(g):""}}return D(t,l)},P=(t,l,o)=>{const i=o||t.options,g=t.childrenKey||"children";for(const h of i){const E=G(h,t);if(E===l||String(E)===String(l))return h;if(t.childrenKey&&typeof h=="object"&&h!==null){const z=h[g];if(Array.isArray(z)&&z.length>0){const W=P(t,l,z);if(W)return W}}}return null},re=(t,l)=>{const o=l||t.options,i=t.childrenKey||"children",g=[];for(const h of o)if(g.push(h),t.childrenKey&&typeof h=="object"&&h!==null){const E=h[i];Array.isArray(E)&&E.length>0&&g.push(...re(t,E))}return g},V=t=>{if(!a.value)return!1;const l=a.value.key,o=k.value[l],i=G(t,a.value);return a.value.type==="single"||a.value.type==="tree-single"?o!=null&&o===i:(Array.isArray(o)?o:[]).some(h=>h===i||String(h)===String(i))},oe=t=>t?t.childrenKey?re(t):t.options:[],ae=t=>{if(!t)return[];const l=t.childrenKey||"children";return(t.options||[]).filter(o=>{if(typeof o=="string")return!1;const i=o[l];return Array.isArray(i)&&i.length>0})},ce=(t,l)=>{if(!l||typeof t=="string")return[];const o=l.childrenKey||"children",i=t[o];return Array.isArray(i)?i:[]},Se=t=>{if(t)return S.value[t.key]!==void 0?S.value[t.key]:y.value[t.key]},$e=(t,l)=>{if(t&&(S.value[t.key]=l,u.autoConfirm)){const o=t.key;y.value[o]=l,m("update:modelValue",{...y.value}),m("change",{...y.value},t),I()}},se=t=>{if(!a.value)return;const l=a.value.key,o=G(t,a.value);y.value[l];let i;k.value[l]===o?i=void 0:i=o,y.value[l]=i,m("update:modelValue",{...y.value}),m("change",{...y.value},a.value),I()},ie=t=>{if(!a.value)return;const l=a.value.key,o=G(t,a.value),i=Array.isArray(k.value[l])?[...k.value[l]]:[],g=i.findIndex(h=>h===o||String(h)===String(o));if(g>=0?i.splice(g,1):i.push(o),k.value[l]=i,u.autoConfirm){const h=i.length>0?i:void 0;y.value[l]=h,m("update:modelValue",{...y.value}),m("change",{...y.value},a.value),I()}},Ee=()=>{if(!a.value)return;const t=a.value.key;a.value.slot?S.value[t]=void 0:a.value.type==="input"?b.value="":a.value.type==="single"||a.value.type==="tree-single"?k.value[t]=null:k.value[t]=[]},Ve=()=>{if(u.autoConfirm&&a.value){const t=a.value.key,l=b.value.trim()||void 0;y.value[t]=l,m("update:modelValue",{...y.value}),m("change",{...y.value},a.value),I()}},Ne=()=>{if(!a.value)return;const t=a.value.key;y.value[t];let l;if(a.value.slot)l=S.value[t],y.value[t]=l;else if(a.value.type==="input")l=b.value.trim()||void 0,y.value[t]=l;else if(a.value.type==="single"||a.value.type==="tree-single"){const o=k.value[t];l=o??void 0,y.value[t]=l}else{const o=k.value[t];l=Array.isArray(o)&&o.length>0?o:void 0,y.value[t]=l}m("update:modelValue",{...y.value}),m("change",{...y.value},a.value),I()},ue=t=>{const l=y.value[t.key];return l==null||l===""?0:t.slot?1:t.type==="input"?String(l).trim()?1:0:t.type==="single"||t.type==="tree-single"?1:Array.isArray(l)?l.length:l?1:0},xe=t=>{if(t.slot){const o=S.value[t.key];return o!=null&&o!==""?1:0}else if(t.type==="input")return b.value.trim()?1:0;const l=k.value[t.key];return l==null||l===""?0:t.type==="single"||t.type==="tree-single"?1:Array.isArray(l)?l.length:0};return r({getValues:()=>({...y.value}),reset:()=>{y.value={},k.value={},S.value={},m("update:modelValue",{})}}),(t,l)=>(e.openBlock(),e.createElementBlock("div",it,[e.createElementVNode("div",ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.items,(o,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:e.normalizeClass(["rc-search-area__item",{"is-active":v.value===i,"has-value":ue(o)>0}]),onClick:g=>Ce(i)},[e.createElementVNode("span",ft,e.toDisplayString(be(o)),1),e.createVNode(e.unref(C),{name:"icon_a-xiala2",color:v.value!==i&&ue(o)>0?"#1677ff":"#969799",class:e.normalizeClass(["rc-search-area__item-arrow",{"is-up":v.value===i}])},null,8,["color","class"])],10,dt))),128))]),e.createVNode(e.Transition,{name:"rc-search-area-fade"},{default:e.withCtx(()=>[v.value!==null&&u.showMask?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"maskRef",ref:d,class:"rc-search-area__mask",style:e.normalizeStyle(s.value),onClick:I},null,4)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"rc-search-area-slide"},{default:e.withCtx(()=>{var o,i,g,h,E,z,W,de,fe,me,pe;return[v.value!==null?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"panelRef",ref:p,class:"rc-search-area__panel"},[e.createElementVNode("div",mt,[(o=a.value)!=null&&o.slot&&t.$slots[a.value.key]?e.renderSlot(t.$slots,a.value.key,{key:0,value:Se(a.value),"update:value":_=>$e(a.value,_)},void 0,!0):((i=a.value)==null?void 0:i.type)==="input"?(e.openBlock(),e.createElementBlock("div",pt,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=_=>b.value=_),type:"text",class:"rc-search-area__input",placeholder:a.value.placeholder||"请输入",onInput:Ve},null,40,vt),[[e.vModelText,b.value]])])):((g=a.value)==null?void 0:g.type)==="tree-single"?(e.openBlock(),e.createElementBlock("div",yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ae(a.value),(_,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,class:"rc-search-area__tree-group"},[e.createElementVNode("div",kt,e.toDisplayString(D(_,a.value||void 0)),1),e.createElementVNode("div",ht,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ce(_,a.value),($,Y)=>(e.openBlock(),e.createElementBlock("div",{key:Y,class:e.normalizeClass(["rc-search-area__option",{"is-selected":V($)}]),onClick:we=>se($)},[e.createElementVNode("span",_t,e.toDisplayString(D($,a.value||void 0)),1),V($)?(e.openBlock(),e.createBlock(e.unref(C),{key:0,name:"icon_select",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,gt))),128))])]))),128))])):((h=a.value)==null?void 0:h.type)==="tree-multiple"?(e.openBlock(),e.createElementBlock("div",Bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ae(a.value),(_,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,class:"rc-search-area__tree-group"},[e.createElementVNode("div",bt,e.toDisplayString(D(_,a.value||void 0)),1),e.createElementVNode("div",Ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ce(_,a.value),($,Y)=>(e.openBlock(),e.createElementBlock("div",{key:Y,class:e.normalizeClass(["rc-search-area__option",{"is-selected":V($)}]),onClick:we=>ie($)},[e.createElementVNode("span",$t,e.toDisplayString(D($,a.value||void 0)),1),V($)?(e.openBlock(),e.createBlock(e.unref(C),{key:0,name:"icon_select",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,St))),128))])]))),128))])):((E=a.value)==null?void 0:E.type)==="single"?(e.openBlock(),e.createElementBlock("div",Et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe(a.value),(_,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,class:e.normalizeClass(["rc-search-area__option",{"is-selected":V(_)}]),onClick:$=>se(_)},[e.createElementVNode("span",Nt,e.toDisplayString(D(_,a.value||void 0)),1),V(_)?(e.openBlock(),e.createBlock(e.unref(C),{key:0,name:"icon_select",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,Vt))),128))])):(e.openBlock(),e.createElementBlock("div",xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe(a.value),(_,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,class:e.normalizeClass(["rc-search-area__option",{"is-selected":V(_)}]),onClick:$=>ie(_)},[e.createElementVNode("span",It,e.toDisplayString(D(_,a.value||void 0)),1),V(_)?(e.openBlock(),e.createBlock(e.unref(C),{key:0,name:"icon_select",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,wt))),128))])),((z=a.value)==null?void 0:z.type)!=="input"&&!((W=a.value)!=null&&W.slot)&&((fe=(de=a.value)==null?void 0:de.options)==null?void 0:fe.length)===0?(e.openBlock(),e.createElementBlock("div",Dt,[...l[1]||(l[1]=[e.createElementVNode("p",null,"暂无选项",-1)])])):e.createCommentVNode("",!0)]),!u.autoConfirm&&((me=a.value)==null?void 0:me.type)!=="single"&&((pe=a.value)==null?void 0:pe.type)!=="tree-single"?(e.openBlock(),e.createElementBlock("div",At,[e.createVNode(e.unref(M),{block:"",onClick:Ee},{default:e.withCtx(()=>[...l[2]||(l[2]=[e.createTextVNode(" 重置 ",-1)])]),_:1}),e.createVNode(e.unref(M),{type:"primary",block:"",onClick:Ne},{default:e.withCtx(()=>[e.createTextVNode(" 确定"+e.toDisplayString(Be.value),1)]),_:1})])):e.createCommentVNode("",!0)],512)):e.createCommentVNode("",!0)]}),_:3})]))}}),Z=w(Rt,[["__scopeId","data-v-2252d02c"]]),ee=n=>{n.component("RcSearchArea",Z),n.component("rc-search-area",Z)},O=Symbol("RECYCLE_UI_CONFIG"),te={prefix:"rc",autoRegister:!0,provideKey:O,theme:{},iconCssUrl:"//at.alicdn.com/t/c/font_4252799_9vcnw0pnmkh.css",iconClass:"iconfont"};function zt(n,r){r.autoRegister!==!1&&(typeof q=="function"&&q(n),typeof H=="function"&&H(n),typeof J=="function"&&J(n),typeof ye=="function"&&ye(n),typeof X=="function"&&X(n),typeof Q=="function"&&Q(n),typeof ee=="function"&&ee(n))}const ne=(n,r)=>{const c={...te,...r||{}};if(n.provide(c.provideKey??O,c),n.config.globalProperties.$recycleUI=c,typeof window<"u"&&c.iconCssUrl){const u=`link[rel="stylesheet"][data-rcui-icon="true"][href="${c.iconCssUrl}"]`;if(!document.head.querySelector(u)){const v=document.createElement("link");v.rel="stylesheet",v.href=c.iconCssUrl,v.setAttribute("data-rcui-icon","true"),document.head.appendChild(v)}}return zt(n,c),n},Lt={install:ne};function Tt(n){return{install(r){ne(r,n)}}}exports.RECYCLE_UI_SYMBOL=O;exports.RcButton=M;exports.RcCard=j;exports.RcDescriptions=ke;exports.RcDescriptionsItem=he;exports.RcIcon=C;exports.RcSearchArea=Z;exports.RcToast=K;exports.createRecycleUI=Tt;exports.default=Lt;exports.defaultRecycleUIConfig=te;exports.hideToast=ge;exports.install=ne;exports.installButton=q;exports.installCard=J;exports.installDescriptions=H;exports.installIcon=X;exports.installMessage=Q;exports.installSearchArea=ee;exports.message=_e;exports.rcDescriptions=ke;exports.rcDescriptionsItem=he;exports.showToast=lt;
2
2
  //# sourceMappingURL=index.cjs.map