znyg-frontend-common 1.0.4 → 1.0.6
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/cdn/index.cdn.js +1 -1
- package/cdn/index.cdn.js.map +1 -1
- package/cdn/index.cdn.mjs +1 -1
- package/cdn/index.cdn.mjs.map +1 -1
- package/es/components/button/index.d.ts +4 -4
- package/es/components/button/src/button.vue.d.ts +4 -4
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +1 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/znChart/index.d.ts +100 -0
- package/es/components/znChart/index.mjs +7 -0
- package/es/components/znChart/index.mjs.map +1 -0
- package/es/components/znChart/src/znChart.d.ts +5 -0
- package/es/components/znChart/src/znChart.mjs +4 -0
- package/es/components/znChart/src/znChart.mjs.map +1 -0
- package/es/components/znChart/src/znChart.vue.d.ts +100 -0
- package/es/components/znChart/src/znChart.vue.mjs +24 -0
- package/es/components/znChart/src/znChart.vue.mjs.map +1 -0
- package/es/components/znChart/src/znChart.vue2.mjs +97 -0
- package/es/components/znChart/src/znChart.vue2.mjs.map +1 -0
- package/es/directives/index.d.ts +5 -1
- package/es/directives/index.mjs +4 -0
- package/es/directives/index.mjs.map +1 -1
- package/es/directives/modules/autoScroll.d.ts +3 -0
- package/es/directives/modules/autoScroll.mjs +108 -0
- package/es/directives/modules/autoScroll.mjs.map +1 -0
- package/es/directives/modules/confirm.d.ts +3 -0
- package/es/directives/modules/confirm.mjs +36 -0
- package/es/directives/modules/confirm.mjs.map +1 -0
- package/es/directives/modules/copy.mjs.map +1 -1
- package/es/directives/modules/drag.d.ts +3 -0
- package/es/directives/modules/drag.mjs +45 -0
- package/es/directives/modules/drag.mjs.map +1 -0
- package/es/directives/modules/tooltip.d.ts +3 -0
- package/es/directives/modules/tooltip.mjs +48 -0
- package/es/directives/modules/tooltip.mjs.map +1 -0
- package/es/index.mjs +5 -0
- package/es/index.mjs.map +1 -1
- package/es/utils/index.mjs.map +1 -1
- package/global.d.ts +1 -0
- package/lib/components/button/index.d.ts +4 -4
- package/lib/components/button/src/button.vue.d.ts +4 -4
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +2 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/znChart/index.d.ts +100 -0
- package/lib/components/znChart/index.js +12 -0
- package/lib/components/znChart/index.js.map +1 -0
- package/lib/components/znChart/src/znChart.d.ts +5 -0
- package/lib/components/znChart/src/znChart.js +6 -0
- package/lib/components/znChart/src/znChart.js.map +1 -0
- package/lib/components/znChart/src/znChart.vue.d.ts +100 -0
- package/lib/components/znChart/src/znChart.vue.js +28 -0
- package/lib/components/znChart/src/znChart.vue.js.map +1 -0
- package/lib/components/znChart/src/znChart.vue2.js +120 -0
- package/lib/components/znChart/src/znChart.vue2.js.map +1 -0
- package/lib/directives/index.d.ts +5 -1
- package/lib/directives/index.js +8 -0
- package/lib/directives/index.js.map +1 -1
- package/lib/directives/modules/autoScroll.d.ts +3 -0
- package/lib/directives/modules/autoScroll.js +112 -0
- package/lib/directives/modules/autoScroll.js.map +1 -0
- package/lib/directives/modules/confirm.d.ts +3 -0
- package/lib/directives/modules/confirm.js +40 -0
- package/lib/directives/modules/confirm.js.map +1 -0
- package/lib/directives/modules/copy.js.map +1 -1
- package/lib/directives/modules/drag.d.ts +3 -0
- package/lib/directives/modules/drag.js +49 -0
- package/lib/directives/modules/drag.js.map +1 -0
- package/lib/directives/modules/tooltip.d.ts +3 -0
- package/lib/directives/modules/tooltip.js +52 -0
- package/lib/directives/modules/tooltip.js.map +1 -0
- package/lib/index.js +21 -11
- package/lib/index.js.map +1 -1
- package/lib/utils/index.js.map +1 -1
- package/package.json +3 -2
package/cdn/index.cdn.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var Ce=Object.defineProperty;var r=(a,o)=>Ce(a,"name",{value:o,configurable:!0});(function(a,o){typeof exports=="object"&&typeof module!="undefined"?o(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],o):(a=typeof globalThis!="undefined"?globalThis:a||self,o(a.ZnygFrontendCommon={},a.Vue,a.elementPlus))})(this,function(a,o,p){"use strict";var q=Object.defineProperty,C=r((e,t)=>q(e,"name",{value:t,configurable:!0}),"r$4");const E=C(e=>(e.install=t=>{const n=e;t.component(n.name,n)},e),"withInstall"),M=C((e,t)=>({install:C(n=>{n.directive(t,e)},"install"),directive:e}),"withInstallDirectives"),R={type:{type:String,default:"default"}};var A=o.defineComponent({name:"IButton",__name:"button",props:R,setup(e,{expose:t}){t();const n={};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}}),L=r((e,t)=>{const n=e.__vccOpts||e;for(const[d,u]of t)n[d]=u;return n},"c$1"),z=Object.defineProperty,U=r((e,t)=>z(e,"name",{value:t,configurable:!0}),"t$3");function O(e,t,n,d,u,c){return o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass(["mu-button",e.type])},[o.renderSlot(e.$slots,"default")],2)}r(O,"p$3"),U(O,"_sfc_render");var Z=L(A,[["render",O],["__file","button.vue"]]);const V=E(Z);var G=Object.defineProperty,H=r((e,t)=>G(e,"name",{value:t,configurable:!0}),"n$1");const J=[V],I=H(function(e){J.forEach(t=>e.use(t))},"install");var K={install:I},Q=Object.defineProperty,X=r((e,t)=>Q(e,"name",{value:t,configurable:!0}),"o");function j(){console.log("developFn")}r(j,"developFn"),X(j,"developFn");var Y=Object.defineProperty,ee=r((e,t)=>Y(e,"name",{value:t,configurable:!0}),"t$2");function g(e){return typeof e=="number"?`${e}px`:typeof e=="string"?e.endsWith("px")||e.endsWith("%")?e:`${e}px`:""}r(g,"formatValue"),ee(g,"formatValue");var te=Object.defineProperty,s=r((e,t)=>te(e,"name",{value:t,configurable:!0}),"a$1");let v,f=[];const oe=s(()=>document.querySelector("body"),"getBody"),B=s((e,t,n)=>{var d;const u={left:"auto",top:"auto",right:"auto",bottom:"auto",position:"absolute",id:"popwindow_"+Math.ceil(Math.random()*1e6),animate:!1,animateInClass:"animate__animated animate__faster animate__fadeIn",animateOutClass:"animate__animated animate__faster animate__fadeOut"};let c={...e};e.left!==void 0&&(c.left=g(c.left)),e.top!==void 0&&(c.top=g(c.top)),e.width!==void 0&&(c.width=g(c.width)),e.height!==void 0&&(c.height=g(c.height));const l=Object.assign(u,c),m=s(()=>{P(l.id)},"close");P(l.id);let h=l.animate?l.animateInClass:"";const b=o.createVNode("div",{class:"popWindow "+h,style:{width:l.width,height:l.height,left:l.left,right:l.right,top:l.top,bottom:l.bottom,position:l.position}},[o.createVNode(p.ElScrollbar,null,{default:s(()=>[e.render?e.render({close:m,option:l}):o.createVNode(t,o.mergeProps({is:t},n,{onClose:s(()=>m(),"onClose")}),null)],"default")})]);b.appContext=v,(d=b.children)!=null&&d.length&&(b.children[0].appContext=v);const w=document.createElement("div");w.id="popwindow_"+Math.ceil(Math.random()*1e6),w.style.pointerEvents="auto";let x=oe();return e.appendParent&&(x=document.getElementById(e.appendParent)),x.appendChild(w),o.render(b,w),o.nextTick(()=>{const be={id:l.id,tag:l.tag,node:w,option:l};f.push(be)}),{id:l.id,close:m}},"showPopWindow"),N=s(e=>{var t;if(!e)return;const{option:n,node:d}=e;if((t=n.onClose)==null||t.call(n),n.animate){const u=d.querySelector(".popWindow");u.className="popWindow "+n.animateOutClass,u.addEventListener("animationend",()=>{o.render(null,d),d.remove(),f.splice(f.indexOf(e),1)})}else o.render(null,d),d.remove(),f.splice(f.indexOf(e),1)},"removePopWindow"),P=s(e=>{const t=f.find(n=>n.id===e);t&&N(t)},"closePopWindowById"),ne=s(e=>{f.filter(t=>t.tag===e).forEach(t=>N(t))},"closePopWindowByTag"),ae=s(()=>f,"getAllPopWindows"),le=s(e=>{const{appContext:t}=e||o.getCurrentInstance()||{};return v=t,{showPopWindow:B}},"initPopWindow");var ie=Object.defineProperty,re=r((e,t)=>ie(e,"name",{value:t,configurable:!0}),"p$1");const de=re(e=>{const t=e||o.getCurrentInstance(),{showPopWindow:n}=le(t);return{showPopWindow:n}},"usePopWindow");var ce=Object.defineProperty,i=r((e,t)=>ce(e,"name",{value:t,configurable:!0}),"t$1");function S(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!o.isVNode(e)}r(S,"$"),i(S,"_isSlot");const _="work-dialog";let k=0,D;const F=i(()=>document.querySelector("body"),"getFather"),W=o.ref(!0),y=i(()=>{W.value=!1,setTimeout(()=>{const e=document.querySelector(`#${_}-${k--}`);e&&(o.render(null,e),F().removeChild(e)),W.value=!0},500)},"closeDialog"),T=i(e=>(e!=null&&e.onClose&&(e==null||e.onClose(y)),y()),"handleClose"),se=i(e=>(e!=null&&e.onConfirm&&(e==null||e.onConfirm(y)),y()),"handleConfirm"),ue=i((e,t,n)=>{var d;const u=o.ref("default"),c=o.ref(e.height),l=o.createVNode(p.ElConfigProvider,{namespace:"el",size:o.unref(u)},{default:i(()=>[o.createVNode(p.ElDialog,o.mergeProps({modelValue:W.value,title:"\u5F39\u6846",width:"50%","before-close":i(()=>T(e),"before-close"),"close-on-click-modal":!0},e,{render:!0,headerRender:!0,footerRender:!0,class:_}),{default:i(()=>{if(e.render){let h;return o.createVNode(p.ElScrollbar,{style:{height:o.unref(c)}},S(h=e.render())?h:{default:i(()=>[h],"default")})}return o.createVNode(p.ElScrollbar,{style:{height:o.unref(c)}},{default:i(()=>[o.createVNode(t,o.mergeProps({is:t},n,{onCloseDialog:i(()=>y(),"onCloseDialog")}),null)],"default")})},"default"),header:i(h=>e!=null&&e.headerRender?e.headerRender(h):o.createVNode("div",{style:"display: flex"},[o.createVNode("span",{class:"el-dialog__title",style:"flex: 1"},[e.title])]),"header"),footer:i(()=>{if(e.footerRender)return e.footerRender();if(e.showFooter!==!1)return o.createVNode(o.Fragment,null,[o.createVNode(p.ElButton,{onClick:i(()=>T(e),"onClick")},{default:i(()=>[o.createTextVNode("\u53D6 \u6D88")],"default")}),o.createVNode(p.ElButton,{type:"primary",onClick:i(()=>se(e),"onClick")},{default:i(()=>[o.createTextVNode("\u786E \u5B9A")],"default")})])},"footer")})],"default")});l.appContext=D,(d=l.children)!=null&&d.length&&(l.children[0].appContext=D);const m=document.createElement("div");m.id=`${_}-${++k}`,F().appendChild(m),o.render(l,m)},"showDialog"),pe=i(e=>{const{appContext:t}=e||o.getCurrentInstance()||{};return D=t,{showDialog:ue}},"initDialog");var fe=Object.defineProperty,me=r((e,t)=>fe(e,"name",{value:t,configurable:!0}),"t");const he=me(e=>{const t=e||o.getCurrentInstance(),{showDialog:n}=pe(t);return{open:n,close:y}},"useDialog");var ge=Object.defineProperty,ye=r((e,t)=>ge(e,"name",{value:t,configurable:!0}),"i");const we={mounted(e,t){e.copyData=t.value,e.addEventListener("click",$)},updated(e,t){e.copyData=t.value},beforeUnmount(e){e.removeEventListener("click",$)}};async function $(){try{await navigator.clipboard.writeText(this.copyData),p.ElMessage({type:"success",message:"\u590D\u5236\u6210\u529F"})}catch(e){console.error("\u590D\u5236\u64CD\u4F5C\u4E0D\u88AB\u652F\u6301\u6216\u5931\u8D25: ",e)}}r($,"n"),ye($,"handleClick"),a.IButton=V,a.closePopWindowById=P,a.closePopWindowByTag=ne,a.default=K,a.developFn=j,a.formatValue=g,a.getAllPopWindows=ae,a.install=I,a.showPopWindow=B,a.useDialog=he,a.usePopWindow=de,a.vCopy=we,a.withInstall=E,a.withInstallDirectives=M,Object.defineProperty(a,"__esModule",{value:!0})});
|
|
1
|
+
var rt=Object.defineProperty;var c=(l,o)=>rt(l,"name",{value:o,configurable:!0});(function(l,o){typeof exports=="object"&&typeof module!="undefined"?o(exports,require("vue"),require("echarts"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","echarts","element-plus"],o):(l=typeof globalThis!="undefined"?globalThis:l||self,o(l.ZnygFrontendCommon={},l.Vue,l.f$2,l.elementPlus))})(this,function(l,o,de,f){"use strict";function ce(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:c(function(){return e[n]},"get")})}}),t.default=e,Object.freeze(t)}c(ce,"_interopNamespaceDefault");var H=ce(de),se=Object.defineProperty,T=c((e,t)=>se(e,"name",{value:t,configurable:!0}),"r$5");const O=T(e=>(e.install=t=>{const n=e;t.component(n.name,n)},e),"withInstall"),ue=T((e,t)=>({install:T(n=>{n.directive(t,e)},"install"),directive:e}),"withInstallDirectives"),pe={type:{type:String,default:"default"}};var fe=o.defineComponent({name:"IButton",__name:"button",props:pe,setup(e,{expose:t}){t();const n={};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}}),F=c((e,t)=>{const n=e.__vccOpts||e;for(const[a,r]of t)n[a]=r;return n},"_$1"),me=Object.defineProperty,he=c((e,t)=>me(e,"name",{value:t,configurable:!0}),"t$5");function k(e,t,n,a,r,d){return o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass(["mu-button",e.type])},[o.renderSlot(e.$slots,"default")],2)}c(k,"p$6"),he(k,"_sfc_render");var ve=F(fe,[["render",k],["__file","button.vue"]]);const M=O(ve);var ge=Object.defineProperty,ye=c((e,t)=>ge(e,"name",{value:t,configurable:!0}),"n$2");const be=[M],x=ye(function(e){be.forEach(t=>e.use(t))},"install");var we={install:x},Ce=Object.defineProperty,E=c((e,t)=>Ce(e,"name",{value:t,configurable:!0}),"n$1"),$e=o.defineComponent({__name:"znChart",props:{option:{type:Object,default:E(()=>({xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{data:[150,230,224,218,135,147,260],type:"line"}]}),"default")},width:{type:String,default:"500px"},height:{type:String,default:"400px"},loading:{type:Boolean,default:!1}},setup(e,{expose:t}){const n=e,a=o.ref(null),r=o.ref(),d=E(()=>{r.value&&n.option&&r.value.setOption(n.option,!0)},"draw"),i=E(()=>{a.value&&(r.value=H.getInstanceByDom(a.value),r.value||(r.value=o.markRaw(H.init(a.value)),d()))},"init");t({getInstance:E(()=>r.value,"getInstance"),draw:d}),o.watch(()=>n.option,()=>{d()},{deep:!0,immediate:!0}),o.watch(()=>n.loading,s=>{s?r.value.showLoading():r.value.hideLoading()}),o.onMounted(()=>{i()}),o.onBeforeUnmount(()=>{var s;(s=r.value)==null||s.dispose()});const p={props:n,chartRef:a,chartInstance:r,draw:d,init:i};return Object.defineProperty(p,"__isScriptSetup",{enumerable:!1,value:!0}),p}}),Ee=Object.defineProperty,Ie=c((e,t)=>Ee(e,"name",{value:t,configurable:!0}),"o$1");function A(e,t,n,a,r,d){return o.openBlock(),o.createElementBlock("div",{ref:"chartRef",class:"chart-div",style:o.normalizeStyle({width:a.props.width,height:a.props.height})},null,4)}c(A,"p$4"),Ie(A,"_sfc_render");var _e=F($e,[["render",A],["__file","znChart.vue"]]);const Pe=O(_e);var Te=Object.defineProperty,Oe=c((e,t)=>Te(e,"name",{value:t,configurable:!0}),"o");function q(){console.log("developFn")}c(q,"developFn"),Oe(q,"developFn");var De=Object.defineProperty,Se=c((e,t)=>De(e,"name",{value:t,configurable:!0}),"t$4");function C(e){return typeof e=="number"?`${e}px`:typeof e=="string"?e.endsWith("px")||e.endsWith("%")?e:`${e}px`:""}c(C,"formatValue"),Se(C,"formatValue");var Le=Object.defineProperty,m=c((e,t)=>Le(e,"name",{value:t,configurable:!0}),"a$2");let D,g=[];const We=m(()=>document.querySelector("body"),"getBody"),R=m((e,t,n)=>{var a;const r={left:"auto",top:"auto",right:"auto",bottom:"auto",position:"absolute",id:"popwindow_"+Math.ceil(Math.random()*1e6),animate:!1,animateInClass:"animate__animated animate__faster animate__fadeIn",animateOutClass:"animate__animated animate__faster animate__fadeOut"};let d={...e};e.left!==void 0&&(d.left=C(d.left)),e.top!==void 0&&(d.top=C(d.top)),e.width!==void 0&&(d.width=C(d.width)),e.height!==void 0&&(d.height=C(d.height));const i=Object.assign(r,d),p=m(()=>{S(i.id)},"close");S(i.id);let s=i.animate?i.animateInClass:"";const y=o.createVNode("div",{class:"popWindow "+s,style:{width:i.width,height:i.height,left:i.left,right:i.right,top:i.top,bottom:i.bottom,position:i.position}},[o.createVNode(f.ElScrollbar,null,{default:m(()=>[e.render?e.render({close:p,option:i}):o.createVNode(t,o.mergeProps({is:t},n,{onClose:m(()=>p(),"onClose")}),null)],"default")})]);y.appContext=D,(a=y.children)!=null&&a.length&&(y.children[0].appContext=D);const v=document.createElement("div");v.id="popwindow_"+Math.ceil(Math.random()*1e6),v.style.pointerEvents="auto";let b=We();return e.appendParent&&(b=document.getElementById(e.appendParent)),b.appendChild(v),o.render(y,v),o.nextTick(()=>{const w={id:i.id,tag:i.tag,node:v,option:i};g.push(w)}),{id:i.id,close:p}},"showPopWindow"),z=m(e=>{var t;if(!e)return;const{option:n,node:a}=e;if((t=n.onClose)==null||t.call(n),n.animate){const r=a.querySelector(".popWindow");r.className="popWindow "+n.animateOutClass,r.addEventListener("animationend",()=>{o.render(null,a),a.remove(),g.splice(g.indexOf(e),1)})}else o.render(null,a),a.remove(),g.splice(g.indexOf(e),1)},"removePopWindow"),S=m(e=>{const t=g.find(n=>n.id===e);t&&z(t)},"closePopWindowById"),je=m(e=>{g.filter(t=>t.tag===e).forEach(t=>z(t))},"closePopWindowByTag"),Be=m(()=>g,"getAllPopWindows"),Ve=m(e=>{const{appContext:t}=e||o.getCurrentInstance()||{};return D=t,{showPopWindow:R}},"initPopWindow");var Ne=Object.defineProperty,He=c((e,t)=>Ne(e,"name",{value:t,configurable:!0}),"p$3");const Fe=He(e=>{const t=e||o.getCurrentInstance(),{showPopWindow:n}=Ve(t);return{showPopWindow:n}},"usePopWindow");var ke=Object.defineProperty,u=c((e,t)=>ke(e,"name",{value:t,configurable:!0}),"t$3");function Y(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!o.isVNode(e)}c(Y,"$"),u(Y,"_isSlot");const L="work-dialog";let U=0,W;const Z=u(()=>document.querySelector("body"),"getFather"),j=o.ref(!0),$=u(()=>{j.value=!1,setTimeout(()=>{const e=document.querySelector(`#${L}-${U--}`);e&&(o.render(null,e),Z().removeChild(e)),j.value=!0},500)},"closeDialog"),X=u(e=>(e!=null&&e.onClose&&(e==null||e.onClose($)),$()),"handleClose"),Me=u(e=>(e!=null&&e.onConfirm&&(e==null||e.onConfirm($)),$()),"handleConfirm"),xe=u((e,t,n)=>{var a;const r=o.ref("default"),d=o.ref(e.height),i=o.createVNode(f.ElConfigProvider,{namespace:"el",size:o.unref(r)},{default:u(()=>[o.createVNode(f.ElDialog,o.mergeProps({modelValue:j.value,title:"\u5F39\u6846",width:"50%","before-close":u(()=>X(e),"before-close"),"close-on-click-modal":!0},e,{render:!0,headerRender:!0,footerRender:!0,class:L}),{default:u(()=>{if(e.render){let s;return o.createVNode(f.ElScrollbar,{style:{height:o.unref(d)}},Y(s=e.render())?s:{default:u(()=>[s],"default")})}return o.createVNode(f.ElScrollbar,{style:{height:o.unref(d)}},{default:u(()=>[o.createVNode(t,o.mergeProps({is:t},n,{onCloseDialog:u(()=>$(),"onCloseDialog")}),null)],"default")})},"default"),header:u(s=>e!=null&&e.headerRender?e.headerRender(s):o.createVNode("div",{style:"display: flex"},[o.createVNode("span",{class:"el-dialog__title",style:"flex: 1"},[e.title])]),"header"),footer:u(()=>{if(e.footerRender)return e.footerRender();if(e.showFooter!==!1)return o.createVNode(o.Fragment,null,[o.createVNode(f.ElButton,{onClick:u(()=>X(e),"onClick")},{default:u(()=>[o.createTextVNode("\u53D6 \u6D88")],"default")}),o.createVNode(f.ElButton,{type:"primary",onClick:u(()=>Me(e),"onClick")},{default:u(()=>[o.createTextVNode("\u786E \u5B9A")],"default")})])},"footer")})],"default")});i.appContext=W,(a=i.children)!=null&&a.length&&(i.children[0].appContext=W);const p=document.createElement("div");p.id=`${L}-${++U}`,Z().appendChild(p),o.render(i,p)},"showDialog"),Ae=u(e=>{const{appContext:t}=e||o.getCurrentInstance()||{};return W=t,{showDialog:xe}},"initDialog");var qe=Object.defineProperty,Re=c((e,t)=>qe(e,"name",{value:t,configurable:!0}),"t$2");const ze=Re(e=>{const t=e||o.getCurrentInstance(),{showDialog:n}=Ae(t);return{open:n,close:$}},"useDialog");var Ye=Object.defineProperty,Ue=c((e,t)=>Ye(e,"name",{value:t,configurable:!0}),"i$1");const Ze={mounted(e,t){e.copyData=t.value,e.addEventListener("click",B)},updated(e,t){e.copyData=t.value},beforeUnmount(e){e.removeEventListener("click",B)}};async function B(){try{await navigator.clipboard.writeText(this.copyData),f.ElMessage({type:"success",message:"\u590D\u5236\u6210\u529F"})}catch(e){console.error("\u590D\u5236\u64CD\u4F5C\u4E0D\u88AB\u652F\u6301\u6216\u5931\u8D25: ",e)}}c(B,"n"),Ue(B,"handleClick");var Xe=Object.defineProperty,Ge=c((e,t)=>Xe(e,"name",{value:t,configurable:!0}),"m$1");const Je={mounted:Ge((e,t)=>{const{draggableClass:n}=t.value||{};let a=e;n&&(a=e.querySelector("."+n));let r=e.parentElement;t.modifiers.parent?r||(r=document.body):r=null;const d=r?r.clientWidth-e.clientWidth:1/0,i=r?r.clientHeight-e.clientHeight:1/0;a&&(a.onmousedown=p=>{const s=p.pageX-e.offsetLeft,y=p.pageY-e.offsetTop;document.onmousemove=v=>{let b=v.pageX-s,w=v.pageY-y;r&&(b=b<0?0:b>d?d:b,w=w<0?0:w>i?i:w),e.style.left=b+"px",e.style.top=w+"px"},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}})},"mounted")};var Ke=Object.defineProperty,h=c((e,t)=>Ke(e,"name",{value:t,configurable:!0}),"e");const I=window.requestAnimationFrame,_=window.cancelAnimationFrame,P=h(e=>{const t=e.scrollHeight-e.clientHeight;e.cacheScrollTop=e.cacheScrollTop+e.speed>=t?0:e.cacheScrollTop+e.speed,e.scrollTo({top:e.cacheScrollTop}),e.animationId=I(P.bind(null,e))},"scrollElement"),G=h(e=>{e.animationId&&(_(e.animationId),e.animationId=void 0,e.mouseInside=!0)},"mouseEnterHandler"),J=h(e=>{e.animationId&&(_(e.animationId),e.animationId=void 0),e.mouseInside=!1,e.animationId=I(P.bind(null,e))},"mouseLeaveHandler"),K=h(e=>e.cacheScrollTop=e.scrollTop,"elementScrollHandler"),Q=h(e=>t=>{e.scrollTop-=t.deltaY},"wheelHandler");let V=!1,ee=0,te=0;const oe=h(e=>t=>{V=!0,ee=t.pageY-e.offsetTop,te=e.scrollTop,e.style.cursor="grabbing"},"mouseDownHandler"),ne=h(e=>t=>{if(!V)return;t.preventDefault();const n=(t.pageY-e.offsetTop-ee)*2;e.scrollTop=te-n},"mouseMoveHandler"),N=h(e=>()=>{V=!1,e.style.cursor="grab"},"mouseUpHandler"),ae=h((e,t)=>{e.animationId&&(_(e.animationId),e.animationId=void 0),t.modifiers.mouse&&(e.removeEventListener("mouseenter",G.bind(null,e)),e.removeEventListener("mouseleave",J.bind(null,e)),e.removeEventListener("scroll",K.bind(null,e)),e.removeEventListener("wheel",Q(e)),e.removeEventListener("mousedown",oe(e)),e.removeEventListener("mousemove",ne(e)),e.removeEventListener("mouseup",N(e)))},"removeEventListeners"),re=h((e,t)=>{e.scrollHeight-e.clientHeight-1<=0||(ae(e,t),e.speed=t.value||1,e.cacheScrollTop=e.cacheScrollTop||0,t.modifiers.mouse?(e.mouseInside||(e.animationId=I(P.bind(null,e))),e.addEventListener("mouseenter",G.bind(null,e)),e.addEventListener("mouseleave",J.bind(null,e)),e.addEventListener("scroll",K.bind(null,e)),e.addEventListener("wheel",Q(e)),e.addEventListener("mousedown",oe(e)),e.addEventListener("mousemove",ne(e)),e.addEventListener("mouseup",N(e)),e.addEventListener("mouseleave",N(e))):(e.animationId&&(_(e.animationId),e.animationId=void 0),e.animationId=I(P.bind(null,e))))},"initAutoScroll"),Qe={mounted(e,t){re(e,t)},updated(e,t){re(e,t)},unmounted(e,t){ae(e,t)}};var et=Object.defineProperty,tt=c((e,t)=>et(e,"name",{value:t,configurable:!0}),"s");const ot={mounted(e,t){var n,a;const r=((n=t.value)==null?void 0:n.content)||e.innerHTML,d=t.value||{},i=((a=t.value)==null?void 0:a.row)||1,p=e.innerHTML;e.innerHTML="";const s=document.createElement("span");s.style.visibility="hidden",s.style.whiteSpace="nowrap",s.innerHTML=p,document.body.appendChild(s);const y=s.offsetWidth>e.clientWidth;if(document.body.removeChild(s),y){e.style.overflow="hidden",e.style.cursor="pointer";const v=o.createVNode(f.ElTooltip,o.mergeProps({content:r,effect:"dark"},d),{default:tt(()=>[o.createVNode("span",{style:{display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",WebkitLineClamp:i,width:"100%"},innerHTML:p},null)],"default")});o.render(v,e)}else e.innerHTML=p}};var nt=Object.defineProperty,le=c((e,t)=>nt(e,"name",{value:t,configurable:!0}),"t");const ie=le((e,t)=>{var n;const a={title:"\u786E\u5B9A\u8981\u6267\u884C\u6B64\u64CD\u4F5C\u5417\uFF1F",confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",...t.value},r=o.createVNode(f.ElPopconfirm,a,{reference:le(()=>o.createVNode("span",{innerHTML:e.outerHTML},null),"reference")}),d=document.createElement("span");o.render(r,d),(n=e.parentNode)==null||n.replaceChild(d,e)},"addPopConfirm"),at={mounted(e,t){ie(e,t)},updated(e,t){ie(e,t)}};l.IButton=M,l.ZnChart=Pe,l.closePopWindowById=S,l.closePopWindowByTag=je,l.default=we,l.developFn=q,l.formatValue=C,l.getAllPopWindows=Be,l.install=x,l.showPopWindow=R,l.useDialog=ze,l.usePopWindow=Fe,l.vAutoScroll=Qe,l.vConfirm=at,l.vCopy=Ze,l.vDrag=Je,l.vTooltip=ot,l.withInstall=O,l.withInstallDirectives=ue,Object.defineProperty(l,"__esModule",{value:!0})});
|
|
2
2
|
//# sourceMappingURL=index.cdn.js.map
|
package/cdn/index.cdn.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cdn.js","sources":["../../../packages/utils/install.ts","../../../packages/components/button/src/button.ts","../../../packages/components/button/src/button.vue","../../../packages/components/button/index.ts","../../../packages/installer.ts","../../../packages/utils/myDevelop.ts","../../../packages/utils/index.ts","../../../packages/hooks/usePopWindow/src/index.tsx","../../../packages/hooks/usePopWindow/index.ts","../../../packages/hooks/useDialog/src/index.tsx","../../../packages/hooks/useDialog/index.ts","../../../packages/directives/modules/copy.ts"],"sourcesContent":["import type { App, Directive } from 'vue';\nimport type { SFCWithInstall } from '../types';\n\n// 注册组件\nexport const withInstall = <T>(main: T) => {\n (main as SFCWithInstall<T>).install = (app): void => {\n const comp: Record<string, any> = main as Record<string, any>;\n app.component(comp.name, comp);\n };\n return main as SFCWithInstall<T>;\n};\n\n// 注册指令\nexport const withInstallDirectives = <T extends Directive>(main: T, name: string) => {\n return {\n install: (app: App): void => {\n app.directive(name, main);\n },\n directive: main,\n };\n};\n","import type { ExtractPropTypes, PropType } from 'vue';\nimport type button from './button.vue';\n\nexport type Type = 'primary' | 'success' | 'error';\n\nexport const ButtonProps = {\n type: {\n type: String as PropType<Type>,\n default: 'default',\n },\n};\n\nexport type ButtonPropsType = ExtractPropTypes<typeof ButtonProps>;\nexport type ButtonInstanceType = InstanceType<typeof button>;\n","<script lang=\"ts\" setup>\n import { ButtonProps } from './button';\n\n defineProps(ButtonProps);\n\n defineOptions({\n name: 'IButton',\n });\n</script>\n\n<template>\n <button class=\"mu-button\" :class=\"type\">\n <slot></slot>\n </button>\n</template>\n","import { withInstall } from '../../utils/install';\nimport Button from './src/button.vue';\n\nexport const IButton = withInstall(Button); // 增加类型\n\nexport default IButton;\n","import type { App, Plugin } from 'vue';\n\nimport { IButton } from './components/button';\n\nconst component = [IButton] as Plugin[];\n\nexport const install = function (app: App) {\n component.forEach((i) => app.use(i));\n};\n\nexport default {\n install,\n};\n","// utils 用例\nexport function developFn() {\n console.log('developFn');\n}\n","export * from './install';\nexport * from './myDevelop';\n\n\nexport function formatValue(value: number | string): string {\n if (typeof value === 'number') {\n return `${value}px`;\n } else if (typeof value === 'string') {\n // 检查是否已经带有 px 单位或其他单位\n if (value.endsWith('px') || value.endsWith('%')) {\n return value; // 直接返回已有单位的字符串\n }\n return `${value}px`; // 其他字符串类型的值加上 px\n }\n return '';\n}","import { type AppContext, type Component, type ComponentInternalInstance, getCurrentInstance, nextTick, render } from 'vue'\n\nimport { type PopWindowInfoProps, type PopWindowProps } from './interface'\nimport { ElScrollbar } from 'element-plus'\nimport { formatValue } from '../../../utils'\n\nlet appContextConst: AppContext | undefined\nlet popWindowList: Array<any> = []\nconst getBody = (): Element => {\n return document.querySelector('body') as HTMLBodyElement\n}\n/**\n * 显示弹出窗口\n *\n * 此函数用于创建并显示一个弹出窗口,支持自定义样式和内容通过参数传递\n * 可以选择附加到特定的父元素,并且在渲染后会将自身添加到弹出窗口列表中\n *\n * @param props 弹出窗口的属性,包括位置、尺寸等样式属性以及附加属性\n * @param component 可选参数,用于指定弹出窗口内渲染的自定义组件类型,如果props中传了render函数,则无效\n * @param componentProps 可选参数,传递给自定义组件的属性\n */\nexport const showPopWindow = (props: PopWindowProps, component?: Component, componentProps?: any) => {\n const op = {\n left: 'auto',\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n // width: 'auto',\n // height: 'auto',\n position: 'absolute',\n id: 'popwindow_' + Math.ceil(Math.random() * 1000000),\n animate: false,\n animateInClass: 'animate__animated animate__faster animate__fadeIn',\n animateOutClass: 'animate__animated animate__faster animate__fadeOut'\n }\n let propsFormat = { ...props }\n if (props.left !== undefined) propsFormat.left = formatValue(propsFormat.left)\n if (props.top !== undefined) propsFormat.top = formatValue(propsFormat.top)\n if (props.width !== undefined) propsFormat.width = formatValue(propsFormat.width)\n if (props.height !== undefined) propsFormat.height = formatValue(propsFormat.height)\n\n const option: PopWindowProps = Object.assign(op, propsFormat)\n const close = () => {\n closePopWindowById(option.id)\n }\n\n // 相同的id只会存在一个\n closePopWindowById(option.id)\n let animateClass = option.animate ? option.animateInClass : ''\n\n const vm = (\n <div\n class={'popWindow ' + animateClass}\n style={{\n width: option.width,\n height: option.height,\n left: option.left,\n right: option.right,\n top: option.top,\n bottom: option.bottom,\n position: option.position\n }}>\n <ElScrollbar>\n {props.render ? props.render({ close, option }) : <component is={component} {...componentProps} onClose={() => close()}></component>}\n </ElScrollbar>\n </div>\n )\n vm.appContext = appContextConst\n // 这里是为了让插槽的子组件能获取到appContext\n if (vm.children?.length) {\n vm.children[0].appContext = appContextConst\n }\n const container = document.createElement('div')\n container.id = 'popwindow_' + Math.ceil(Math.random() * 1000000)\n container.style.pointerEvents = 'auto'\n\n let parentEl = getBody()\n if (props.appendParent) {\n parentEl = document.getElementById(props.appendParent)\n }\n parentEl.appendChild(container)\n render(vm, container)\n\n nextTick(() => {\n const popWindowInfo = { id: option.id, tag: option.tag, node: container, option }\n popWindowList.push(popWindowInfo)\n })\n return { id: option.id, close }\n}\nconst removePopWindow = (popWindowInfo: PopWindowInfoProps) => {\n if (!popWindowInfo) return\n const { option, node } = popWindowInfo\n option.onClose?.()\n if (option.animate) {\n const popWindowNode = node.querySelector('.popWindow')\n popWindowNode.className = 'popWindow ' + option.animateOutClass\n popWindowNode.addEventListener('animationend', () => {\n render(null, node)\n node.remove()\n popWindowList.splice(popWindowList.indexOf(popWindowInfo), 1)\n })\n } else {\n render(null, node)\n node.remove()\n popWindowList.splice(popWindowList.indexOf(popWindowInfo), 1)\n }\n}\n\n/**\n * 根据ID关闭弹出窗口\n *\n * @param id 弹出窗口的唯一标识符\n */\nexport const closePopWindowById = (id: string) => {\n const popWindowItem = popWindowList.find((item) => item.id === id)\n if (popWindowItem) {\n removePopWindow(popWindowItem)\n }\n}\n\n/**\n * 根据tag关闭弹出窗口\n *\n * @param tag 弹出窗口的tag\n */\nexport const closePopWindowByTag = (tag: string) => {\n const popWindows = popWindowList.filter((item) => item.tag === tag)\n popWindows.forEach((item) => removePopWindow(item))\n}\n\n/**\n * 获取所有弹窗信息\n *\n * @returns {PopWindowInfoProps[]} 所有弹窗的列表\n */\nexport const getAllPopWindows = (): PopWindowInfoProps[] => {\n return popWindowList\n}\n\nexport const initPopWindow = (ctx?: ComponentInternalInstance) => {\n const { appContext } = ctx || getCurrentInstance() || {}\n appContextConst = appContext\n\n return { showPopWindow }\n}\n","import { type ComponentInternalInstance, getCurrentInstance } from 'vue'\n\nimport { closePopWindowById, closePopWindowByTag, initPopWindow, showPopWindow, getAllPopWindows } from './src/index'\nimport { type PopWindowInfoProps, type PopWindowProps } from './src/interface'\n\nexport { showPopWindow, closePopWindowById, closePopWindowByTag, getAllPopWindows }\nexport type { PopWindowInfoProps, PopWindowProps }\nexport const usePopWindow = (ctx?: any) => {\n const thisAppContext = ctx || (getCurrentInstance() as ComponentInternalInstance)\n const { showPopWindow } = initPopWindow(thisAppContext)\n return { showPopWindow }\n}\n","import { type AppContext, type Component, type ComponentInternalInstance, getCurrentInstance, ref, render, unref, type VNode } from 'vue'\n\nimport { type DialogProps, ElButton, ElConfigProvider, ElDialog, ElScrollbar } from 'element-plus'\n\nconst prefixClass = 'work-dialog'\n\nlet id = 0\n\nlet appContextConst: AppContext | undefined\n\nconst getFather = (): Element => {\n return document.querySelector('body') as HTMLBodyElement\n}\n\nexport interface ZnDialogProps extends Partial<DialogProps> {\n render?: () => VNode // 内容渲染 TSX\n headerRender?: (scope: any) => VNode // 头部渲染 TSX\n footerRender?: () => VNode // 底部渲染 TSX\n showFooter?: boolean // 是否渲染底部,默认 true\n onConfirm?: (closeDialog: () => void) => void // 确认按钮点击事件\n onClose?: (closeDialog: () => void) => void // 关闭按钮点击事件\n height?: string // 内容高度,默认 400px\n}\n\nconst isShow = ref(true)\n\n/**\n * @description 关闭弹框\n */\nexport const closeDialog = () => {\n isShow.value = false\n setTimeout(() => {\n const vm = document.querySelector(`#${prefixClass}-${id--}`) as HTMLElement\n if (vm) {\n render(null, vm)\n getFather().removeChild(vm)\n }\n isShow.value = true\n }, 500)\n}\n\nconst handleClose = (dialogProps?: ZnDialogProps) => {\n if (dialogProps?.onClose) dialogProps?.onClose(closeDialog)\n return closeDialog()\n}\n\nconst handleConfirm = (dialogProps?: ZnDialogProps) => {\n if (dialogProps?.onConfirm) dialogProps?.onConfirm(closeDialog)\n return closeDialog()\n}\n/**\n * 内容渲染方式有两种\n * 方式 1:在第一个参数里写 render,即可实现 el-dialog 的内容渲染\n * 方式 2:第二个参数为组件,第三个参数为组件的 props\n *\n * 在第一个参数里写 headerRender 和 footerRender,可以自定义 el-dialog 的 header 和 footer\n */\nexport const showDialog = (dialogProps: ZnDialogProps, component?: Component, componentsProps?: any) => {\n const layoutSize = ref('default')\n\n const contentHeight = ref(dialogProps.height)\n\n const vm = (\n <ElConfigProvider namespace=\"el\" size={unref(layoutSize)}>\n <ElDialog\n modelValue={isShow.value}\n title=\"弹框\"\n width=\"50%\"\n before-close={() => handleClose(dialogProps)}\n close-on-click-modal={true}\n {...dialogProps}\n render\n headerRender\n footerRender\n class={prefixClass}>\n {{\n default: () => {\n if (dialogProps.render) {\n return (\n <ElScrollbar\n style={{\n height: unref(contentHeight)\n }}>\n {dialogProps.render()}\n </ElScrollbar>\n )\n }\n return (\n <ElScrollbar style={{ height: unref(contentHeight) }}>\n <component is={component} {...componentsProps} onCloseDialog={() => closeDialog()}></component>\n </ElScrollbar>\n )\n },\n header: (scope: any) => {\n if (dialogProps?.headerRender) return dialogProps.headerRender(scope)\n return (\n <div style=\"display: flex\">\n <span class={`el-dialog__title`} style=\"flex: 1\">\n {dialogProps.title}\n </span>\n </div>\n )\n },\n footer: () => {\n if (dialogProps.footerRender) return dialogProps.footerRender()\n if (dialogProps.showFooter === false) return\n return (\n <>\n <ElButton onClick={() => handleClose(dialogProps)}>取 消</ElButton>\n <ElButton type=\"primary\" onClick={() => handleConfirm(dialogProps)}>\n 确 定\n </ElButton>\n </>\n )\n }\n }}\n </ElDialog>\n </ElConfigProvider>\n )\n\n vm.appContext = appContextConst\n vm.children?.length && (vm.children[0].appContext = appContextConst)\n\n const container = document.createElement('div')\n container.id = `${prefixClass}-${++id}`\n getFather().appendChild(container)\n render(vm, container)\n}\n\nexport const initDialog = (ctx?: ComponentInternalInstance) => {\n const { appContext } = ctx || getCurrentInstance() || {}\n appContextConst = appContext\n\n return { showDialog }\n}\n","import { type ComponentInternalInstance, getCurrentInstance } from 'vue'\n\nimport { closeDialog, initDialog, type ZnDialogProps } from './src/index'\n\nexport { type ZnDialogProps }\n\nexport const useDialog = (ctx?: any) => {\n const thisAppContext = ctx || (getCurrentInstance() as ComponentInternalInstance)\n const { showDialog } = initDialog(thisAppContext)\n\n return { open: showDialog, close: closeDialog }\n}\n","/**\r\n * v-copy\r\n * 复制某个值至剪贴板\r\n * 接收参数:string类型/Ref<string>类型/Reactive<string>类型\r\n */\r\n\r\nimport { ElMessage } from 'element-plus'\r\nimport type { Directive, DirectiveBinding } from 'vue'\r\ninterface ElType extends HTMLElement {\r\n copyData: string | number;\r\n}\r\nconst copy: Directive = {\r\n mounted(el: ElType, binding: DirectiveBinding) {\r\n el.copyData = binding.value\r\n el.addEventListener('click', handleClick)\r\n },\r\n updated(el: ElType, binding: DirectiveBinding) {\r\n el.copyData = binding.value\r\n },\r\n beforeUnmount(el: ElType) {\r\n el.removeEventListener('click', handleClick)\r\n }\r\n}\r\n\r\nasync function handleClick(this: any) {\r\n try {\r\n await navigator.clipboard.writeText(this.copyData)\r\n ElMessage({\r\n type: 'success',\r\n message: '复制成功'\r\n })\r\n } catch (err) {\r\n console.error('复制操作不被支持或失败: ', err)\r\n }\r\n}\r\n\r\nexport default copy\r\n"],"names":["s","r","__name","t","e","withInstall","main","app","comp","withInstallDirectives","name","ButtonProps","_sfc_render","_ctx","_cache","$props","type","$data","$options","_normalizeClass","IButton","Button","component","install","i","r$2","l","o","n","developFn","formatValue","value","appContextConst","popWindowList","getBody","document","querySelector","showPopWindow","props","componentProps","op","left","top","right","bottom","position","id","Math","ceil","random","animate","animateInClass","animateOutClass","propsFormat","undefined","width","height","option","Object","assign","close","closePopWindowById","animateClass","vm","_createVNode","ElScrollbar","default","render","_mergeProps","onClose","appContext","children","length","container","createElement","style","pointerEvents","parentEl","appendParent","getElementById","appendChild","nextTick","popWindowInfo","tag","node","push","removePopWindow","popWindowNode","className","addEventListener","remove","splice","indexOf","popWindowItem","find","item","closePopWindowByTag","filter","forEach","getAllPopWindows","initPopWindow","ctx","getCurrentInstance","usePopWindow","thisAppContext","_isSlot","prototype","toString","call","_isVNode","prefixClass","getFather","isShow","ref","closeDialog","setTimeout","removeChild","handleClose","dialogProps","handleConfirm","onConfirm","showDialog","componentsProps","layoutSize","contentHeight","ElConfigProvider","unref","ElDialog","before-close","_slot","onCloseDialog","header","scope","headerRender","title","footer","footerRender","showFooter","_Fragment","ElButton","onClick","_createTextVNode","initDialog","p","useDialog","copy","el","binding","handleClick","ElMessage","err"],"mappings":"iaAIO,IAAAA,EAAA,OAAA,eAAAC,EAAAC,EAAA,CAAAC,EAAAC,IAAAJ,EAAAG,EAAA,OAAA,CAAA,MAAAC,EAAA,aAAA,EAAA,CAAA,EAAA,OAAA,MAAMC,EAAcH,EAAII,IAC5BA,EAA2B,QAAWC,GAAc,CACnD,MAAMC,EAA4BF,EAClCC,EAAI,UAAUC,EAAK,KAAMA,CAAI,CAC/B,EACOF,GALkB,aAAA,EASdG,EAAwBP,EAAA,CAAsBI,EAASI,KAC3D,CACL,QAASR,EAACK,GAAmB,CAC3BA,EAAI,UAAUG,EAAMJ,CAAI,CAC1B,EAFS,SAGT,EAAA,UAAWA,CACb,GANmC,uBAAA,ECRxBK,EAAc,CACzB,KAAM,CACJ,KAAM,OACN,QAAS,SACX,CACF,4VCCeC,EAXfC,EAAAC,EAWgBC,EAAoBC,EAAIC,EAAAC,EAAA,qDACpC,MAAaC,EAAAA,eAAA,CAAA,YAAAN,EAAA,IAAA,CAAA,CAAA,wCADFD,EAAAA,EAAAA,OAAAV,EAAAU,EAAA,iECRR,MAAMQ,EAAUf,EAAYgB,CAAM,sFCCzC,MAAMC,EAAY,CAACF,CAAO,EAEbG,EAAUrB,EAAA,SAAUK,EAAU,CACzCe,EAAU,QAASE,GAAMjB,EAAI,IAAIiB,CAAC,CAAC,CAC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AAW,CACtB,EAL2BpB,YAAAA,ECjI3B,IAAA0C,GAAA,OAAA,eAAA5I,GAAAD,EAAA,CAAAyB,EAAAC,IAAAmH,GAAApH,EAAA,OAAA,CAAA,MAAAC,EAAA,aAAA,EAAA,CAAA,EAAA,KAMa,MAAAoH,GAAY9I,GAACmG,GAAc,CACtC,MAAMG,EAAiBH,GAAQC,EAAAA,qBACzB,CAAE,WAAAmB,CAAW,EAAIqB,GAAWtC,CAAc,EAEhD,MAAO,CAAE,KAAMiB,EAAY,MAAOP,CAAY,CAChD,EALyB,WAAA,ECAzB,IAAAjH,GAAA,OAAA,eAAAuB,GAAAtB,EAAA,CAAA,EAAA,IAAAD,GAAA,EAAA,OAAA,CAAA,MAAA,EAAA,aAAA,EAAA,CAAA,EAAA,KAKA,MAAMgJ,GAAkB,CACtB,QAAQC,EAAYC,EAA2B,CAC7CD,EAAG,SAAWC,EAAQ,MACtBD,EAAG,iBAAiB,QAASE,CAAW,CAC1C,EACA,QAAQF,EAAYC,EAA2B,CAC7CD,EAAG,SAAWC,EAAQ,KACxB,EACA,cAAcD,EAAY,CACxBA,EAAG,oBAAoB,QAASE,CAAW,CAC7C,CACF,EAEA,eAAeA,GAAuB,CACpC,GAAI,CACF,MAAM,UAAU,UAAU,UAAU,KAAK,QAAQ,EACjDC,EAAAA,UAAU,CACR,KAAM,UACN,QAAS,0BACX,CAAC,CACH,OAASC,EAAK,CACZ,QAAQ,MAAM,uEAAiBA,CAAG,CACpC,CACF,CAVeF,EAAAA,EAAAA,KAAAlJ,GAAAkJ,EAAA"}
|
|
1
|
+
{"version":3,"file":"index.cdn.js","sources":["../../../packages/utils/install.ts","../../../packages/components/button/src/button.ts","../../../packages/components/button/src/button.vue","../../../packages/components/button/index.ts","../../../packages/installer.ts","../../../packages/components/znChart/src/znChart.vue","../../../packages/components/znChart/index.ts","../../../packages/utils/myDevelop.ts","../../../packages/utils/index.ts","../../../packages/hooks/usePopWindow/src/index.tsx","../../../packages/hooks/usePopWindow/index.ts","../../../packages/hooks/useDialog/src/index.tsx","../../../packages/hooks/useDialog/index.ts","../../../packages/directives/modules/copy.ts","../../../packages/directives/modules/drag.ts","../../../packages/directives/modules/autoScroll.ts","../../../packages/directives/modules/tooltip.tsx","../../../packages/directives/modules/confirm.tsx"],"sourcesContent":["import type { App, Directive } from 'vue';\nimport type { SFCWithInstall } from '../types';\n\n// 注册组件\nexport const withInstall = <T>(main: T) => {\n (main as SFCWithInstall<T>).install = (app): void => {\n const comp: Record<string, any> = main as Record<string, any>;\n app.component(comp.name, comp);\n };\n return main as SFCWithInstall<T>;\n};\n\n// 注册指令\nexport const withInstallDirectives = <T extends Directive>(main: T, name: string) => {\n return {\n install: (app: App): void => {\n app.directive(name, main);\n },\n directive: main,\n };\n};\n","import type { ExtractPropTypes, PropType } from 'vue';\nimport type button from './button.vue';\n\nexport type Type = 'primary' | 'success' | 'error';\n\nexport const ButtonProps = {\n type: {\n type: String as PropType<Type>,\n default: 'default',\n },\n};\n\nexport type ButtonPropsType = ExtractPropTypes<typeof ButtonProps>;\nexport type ButtonInstanceType = InstanceType<typeof button>;\n","<script lang=\"ts\" setup>\n import { ButtonProps } from './button';\n\n defineProps(ButtonProps);\n\n defineOptions({\n name: 'IButton',\n });\n</script>\n\n<template>\n <button class=\"mu-button\" :class=\"type\">\n <slot></slot>\n </button>\n</template>\n","import { withInstall } from '../../utils/install';\nimport Button from './src/button.vue';\n\nexport const IButton = withInstall(Button); // 增加类型\n\nexport default IButton;\n","import type { App, Plugin } from 'vue';\n\nimport { IButton } from './components/button';\n\nconst component = [IButton] as Plugin[];\n\nexport const install = function (app: App) {\n component.forEach((i) => app.use(i));\n};\n\nexport default {\n install,\n};\n","<template>\n <div ref=\"chartRef\" class=\"chart-div\" :style=\"{ width: props.width, height: props.height }\"></div>\n</template>\n\n<script setup lang=\"ts\">\n import { markRaw, onBeforeUnmount, onMounted, ref, watch } from 'vue'\n import * as echarts from 'echarts'\n\n const props = defineProps({\n option: {\n type: Object,\n default: () => {\n return {\n xAxis: {\n type: 'category',\n data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']\n },\n yAxis: {\n type: 'value'\n },\n series: [\n {\n data: [150, 230, 224, 218, 135, 147, 260],\n type: 'line'\n }\n ]\n }\n }\n },\n width: {\n type: String,\n default: '500px'\n },\n height: {\n type: String,\n default: '400px'\n },\n loading: {\n type: Boolean,\n default: false\n }\n })\n\n const chartRef = ref(null)\n const chartInstance = ref()\n\n // 绘制\n const draw = () => {\n if (chartInstance.value && props.option) {\n chartInstance.value.setOption(props.option, true)\n }\n }\n\n const init = () => {\n if (!chartRef.value) return\n\n // 校验 Dom 节点上是否已经挂载了 ECharts 实例,只有未挂载时才初始化\n chartInstance.value = echarts.getInstanceByDom(chartRef.value)\n if (!chartInstance.value) {\n chartInstance.value = markRaw(echarts.init(chartRef.value))\n draw()\n }\n }\n\n // 对父组件暴露获取Echarts的实例\n defineExpose({\n getInstance: () => chartInstance.value,\n draw\n })\n\n watch(\n () => props.option,\n () => {\n draw()\n },\n {\n deep: true,\n immediate: true\n }\n )\n watch(\n () => props.loading,\n (loading) => {\n if (loading) {\n chartInstance.value.showLoading()\n } else {\n chartInstance.value.hideLoading()\n }\n }\n )\n\n onMounted(() => {\n init()\n })\n\n onBeforeUnmount(() => {\n // 容器被销毁之后,销毁实例,避免内存泄漏\n chartInstance.value?.dispose()\n })\n</script>\n","import { withInstall } from '../../utils/install';\nimport ZnChartCom from './src/znChart.vue';\n\nexport const ZnChart = withInstall(ZnChartCom); // 增加类型\n\nexport default ZnChart;\n","// utils 用例\nexport function developFn() {\n console.log('developFn');\n}\n","export * from './install'\nexport * from './myDevelop'\n\nexport function formatValue(value: number | string): string {\n if (typeof value === 'number') {\n return `${value}px`\n } else if (typeof value === 'string') {\n // 检查是否已经带有 px 单位或其他单位\n if (value.endsWith('px') || value.endsWith('%')) {\n return value // 直接返回已有单位的字符串\n }\n return `${value}px` // 其他字符串类型的值加上 px\n }\n return ''\n}\n","import { type AppContext, type Component, type ComponentInternalInstance, getCurrentInstance, nextTick, render } from 'vue'\n\nimport { type PopWindowInfoProps, type PopWindowProps } from './interface'\nimport { ElScrollbar } from 'element-plus'\nimport { formatValue } from '../../../utils'\n\nlet appContextConst: AppContext | undefined\nlet popWindowList: Array<any> = []\nconst getBody = (): Element => {\n return document.querySelector('body') as HTMLBodyElement\n}\n/**\n * 显示弹出窗口\n *\n * 此函数用于创建并显示一个弹出窗口,支持自定义样式和内容通过参数传递\n * 可以选择附加到特定的父元素,并且在渲染后会将自身添加到弹出窗口列表中\n *\n * @param props 弹出窗口的属性,包括位置、尺寸等样式属性以及附加属性\n * @param component 可选参数,用于指定弹出窗口内渲染的自定义组件类型,如果props中传了render函数,则无效\n * @param componentProps 可选参数,传递给自定义组件的属性\n */\nexport const showPopWindow = (props: PopWindowProps, component?: Component, componentProps?: any) => {\n const op = {\n left: 'auto',\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n // width: 'auto',\n // height: 'auto',\n position: 'absolute',\n id: 'popwindow_' + Math.ceil(Math.random() * 1000000),\n animate: false,\n animateInClass: 'animate__animated animate__faster animate__fadeIn',\n animateOutClass: 'animate__animated animate__faster animate__fadeOut'\n }\n let propsFormat = { ...props }\n if (props.left !== undefined) propsFormat.left = formatValue(propsFormat.left)\n if (props.top !== undefined) propsFormat.top = formatValue(propsFormat.top)\n if (props.width !== undefined) propsFormat.width = formatValue(propsFormat.width)\n if (props.height !== undefined) propsFormat.height = formatValue(propsFormat.height)\n\n const option: PopWindowProps = Object.assign(op, propsFormat)\n const close = () => {\n closePopWindowById(option.id)\n }\n\n // 相同的id只会存在一个\n closePopWindowById(option.id)\n let animateClass = option.animate ? option.animateInClass : ''\n\n const vm = (\n <div\n class={'popWindow ' + animateClass}\n style={{\n width: option.width,\n height: option.height,\n left: option.left,\n right: option.right,\n top: option.top,\n bottom: option.bottom,\n position: option.position\n }}>\n <ElScrollbar>\n {props.render ? props.render({ close, option }) : <component is={component} {...componentProps} onClose={() => close()}></component>}\n </ElScrollbar>\n </div>\n )\n vm.appContext = appContextConst\n // 这里是为了让插槽的子组件能获取到appContext\n if (vm.children?.length) {\n vm.children[0].appContext = appContextConst\n }\n const container = document.createElement('div')\n container.id = 'popwindow_' + Math.ceil(Math.random() * 1000000)\n container.style.pointerEvents = 'auto'\n\n let parentEl = getBody()\n if (props.appendParent) {\n parentEl = document.getElementById(props.appendParent)\n }\n parentEl.appendChild(container)\n render(vm, container)\n\n nextTick(() => {\n const popWindowInfo = { id: option.id, tag: option.tag, node: container, option }\n popWindowList.push(popWindowInfo)\n })\n return { id: option.id, close }\n}\nconst removePopWindow = (popWindowInfo: PopWindowInfoProps) => {\n if (!popWindowInfo) return\n const { option, node } = popWindowInfo\n option.onClose?.()\n if (option.animate) {\n const popWindowNode = node.querySelector('.popWindow')\n popWindowNode.className = 'popWindow ' + option.animateOutClass\n popWindowNode.addEventListener('animationend', () => {\n render(null, node)\n node.remove()\n popWindowList.splice(popWindowList.indexOf(popWindowInfo), 1)\n })\n } else {\n render(null, node)\n node.remove()\n popWindowList.splice(popWindowList.indexOf(popWindowInfo), 1)\n }\n}\n\n/**\n * 根据ID关闭弹出窗口\n *\n * @param id 弹出窗口的唯一标识符\n */\nexport const closePopWindowById = (id: string) => {\n const popWindowItem = popWindowList.find((item) => item.id === id)\n if (popWindowItem) {\n removePopWindow(popWindowItem)\n }\n}\n\n/**\n * 根据tag关闭弹出窗口\n *\n * @param tag 弹出窗口的tag\n */\nexport const closePopWindowByTag = (tag: string) => {\n const popWindows = popWindowList.filter((item) => item.tag === tag)\n popWindows.forEach((item) => removePopWindow(item))\n}\n\n/**\n * 获取所有弹窗信息\n *\n * @returns {PopWindowInfoProps[]} 所有弹窗的列表\n */\nexport const getAllPopWindows = (): PopWindowInfoProps[] => {\n return popWindowList\n}\n\nexport const initPopWindow = (ctx?: ComponentInternalInstance) => {\n const { appContext } = ctx || getCurrentInstance() || {}\n appContextConst = appContext\n\n return { showPopWindow }\n}\n","import { type ComponentInternalInstance, getCurrentInstance } from 'vue'\n\nimport { closePopWindowById, closePopWindowByTag, initPopWindow, showPopWindow, getAllPopWindows } from './src/index'\nimport { type PopWindowInfoProps, type PopWindowProps } from './src/interface'\n\nexport { showPopWindow, closePopWindowById, closePopWindowByTag, getAllPopWindows }\nexport type { PopWindowInfoProps, PopWindowProps }\nexport const usePopWindow = (ctx?: any) => {\n const thisAppContext = ctx || (getCurrentInstance() as ComponentInternalInstance)\n const { showPopWindow } = initPopWindow(thisAppContext)\n return { showPopWindow }\n}\n","import { type AppContext, type Component, type ComponentInternalInstance, getCurrentInstance, ref, render, unref, type VNode } from 'vue'\n\nimport { type DialogProps, ElButton, ElConfigProvider, ElDialog, ElScrollbar } from 'element-plus'\n\nconst prefixClass = 'work-dialog'\n\nlet id = 0\n\nlet appContextConst: AppContext | undefined\n\nconst getFather = (): Element => {\n return document.querySelector('body') as HTMLBodyElement\n}\n\nexport interface ZnDialogProps extends Partial<DialogProps> {\n render?: () => VNode // 内容渲染 TSX\n headerRender?: (scope: any) => VNode // 头部渲染 TSX\n footerRender?: () => VNode // 底部渲染 TSX\n showFooter?: boolean // 是否渲染底部,默认 true\n onConfirm?: (closeDialog: () => void) => void // 确认按钮点击事件\n onClose?: (closeDialog: () => void) => void // 关闭按钮点击事件\n height?: string // 内容高度,默认 400px\n}\n\nconst isShow = ref(true)\n\n/**\n * @description 关闭弹框\n */\nexport const closeDialog = () => {\n isShow.value = false\n setTimeout(() => {\n const vm = document.querySelector(`#${prefixClass}-${id--}`) as HTMLElement\n if (vm) {\n render(null, vm)\n getFather().removeChild(vm)\n }\n isShow.value = true\n }, 500)\n}\n\nconst handleClose = (dialogProps?: ZnDialogProps) => {\n if (dialogProps?.onClose) dialogProps?.onClose(closeDialog)\n return closeDialog()\n}\n\nconst handleConfirm = (dialogProps?: ZnDialogProps) => {\n if (dialogProps?.onConfirm) dialogProps?.onConfirm(closeDialog)\n return closeDialog()\n}\n/**\n * 内容渲染方式有两种\n * 方式 1:在第一个参数里写 render,即可实现 el-dialog 的内容渲染\n * 方式 2:第二个参数为组件,第三个参数为组件的 props\n *\n * 在第一个参数里写 headerRender 和 footerRender,可以自定义 el-dialog 的 header 和 footer\n */\nexport const showDialog = (dialogProps: ZnDialogProps, component?: Component, componentsProps?: any) => {\n const layoutSize = ref('default')\n\n const contentHeight = ref(dialogProps.height)\n\n const vm = (\n <ElConfigProvider namespace=\"el\" size={unref(layoutSize)}>\n <ElDialog\n modelValue={isShow.value}\n title=\"弹框\"\n width=\"50%\"\n before-close={() => handleClose(dialogProps)}\n close-on-click-modal={true}\n {...dialogProps}\n render\n headerRender\n footerRender\n class={prefixClass}>\n {{\n default: () => {\n if (dialogProps.render) {\n return (\n <ElScrollbar\n style={{\n height: unref(contentHeight)\n }}>\n {dialogProps.render()}\n </ElScrollbar>\n )\n }\n return (\n <ElScrollbar style={{ height: unref(contentHeight) }}>\n <component is={component} {...componentsProps} onCloseDialog={() => closeDialog()}></component>\n </ElScrollbar>\n )\n },\n header: (scope: any) => {\n if (dialogProps?.headerRender) return dialogProps.headerRender(scope)\n return (\n <div style=\"display: flex\">\n <span class={`el-dialog__title`} style=\"flex: 1\">\n {dialogProps.title}\n </span>\n </div>\n )\n },\n footer: () => {\n if (dialogProps.footerRender) return dialogProps.footerRender()\n if (dialogProps.showFooter === false) return\n return (\n <>\n <ElButton onClick={() => handleClose(dialogProps)}>取 消</ElButton>\n <ElButton type=\"primary\" onClick={() => handleConfirm(dialogProps)}>\n 确 定\n </ElButton>\n </>\n )\n }\n }}\n </ElDialog>\n </ElConfigProvider>\n )\n\n vm.appContext = appContextConst\n vm.children?.length && (vm.children[0].appContext = appContextConst)\n\n const container = document.createElement('div')\n container.id = `${prefixClass}-${++id}`\n getFather().appendChild(container)\n render(vm, container)\n}\n\nexport const initDialog = (ctx?: ComponentInternalInstance) => {\n const { appContext } = ctx || getCurrentInstance() || {}\n appContextConst = appContext\n\n return { showDialog }\n}\n","import { type ComponentInternalInstance, getCurrentInstance } from 'vue'\n\nimport { closeDialog, initDialog, type ZnDialogProps } from './src/index'\n\nexport { type ZnDialogProps }\n\nexport const useDialog = (ctx?: any) => {\n const thisAppContext = ctx || (getCurrentInstance() as ComponentInternalInstance)\n const { showDialog } = initDialog(thisAppContext)\n\n return { open: showDialog, close: closeDialog }\n}\n","/**\n * v-copy\n * 复制某个值至剪贴板\n * 接收参数:string类型/Ref<string>类型/Reactive<string>类型\n */\n\nimport { ElMessage } from 'element-plus'\nimport type { Directive, DirectiveBinding } from 'vue'\ninterface ElType extends HTMLElement {\n copyData: string | number\n}\nconst copy: Directive = {\n mounted(el: ElType, binding: DirectiveBinding) {\n el.copyData = binding.value\n el.addEventListener('click', handleClick)\n },\n updated(el: ElType, binding: DirectiveBinding) {\n el.copyData = binding.value\n },\n beforeUnmount(el: ElType) {\n el.removeEventListener('click', handleClick)\n }\n}\n\nasync function handleClick(this: any) {\n try {\n await navigator.clipboard.writeText(this.copyData)\n ElMessage({\n type: 'success',\n message: '复制成功'\n })\n } catch (err) {\n console.error('复制操作不被支持或失败: ', err)\n }\n}\n\nexport default copy\n","import type { Directive, DirectiveBinding } from 'vue'\n\n/**\n * @description: 拖动指令\n * @param {String} draggableClass 能拖动的子class,如果不传,则默认为整个父级都可以拖动, 'none' 没有拖动\n */\nconst vDrag: Directive = {\n mounted: (el: HTMLElement, binding: DirectiveBinding) => {\n const { draggableClass } = binding.value || {}\n let draggableEl = el\n\n if (draggableClass) {\n draggableEl = el.querySelector('.' + draggableClass)\n }\n\n // 默认父元素为当前元素的父元素\n let parentEl = el.parentElement\n\n // 检查是否传入了 .parent 修饰符\n const hasParentModifier = binding.modifiers.parent\n\n if (hasParentModifier) {\n // 如果有 .parent 修饰符,则限制在父元素内\n if (!parentEl) {\n parentEl = document.body // 如果没有找到父元素,则使用 body\n }\n } else {\n // 如果没有 .parent 修饰符,则不限制拖动范围\n parentEl = null // 表示没有限制\n }\n\n // 计算拖动范围\n const maxLeft = parentEl ? parentEl.clientWidth - el.clientWidth : Infinity\n const maxTop = parentEl ? parentEl.clientHeight - el.clientHeight : Infinity\n\n if (draggableEl) {\n draggableEl.onmousedown = (eDown) => {\n const divx = eDown.pageX - el.offsetLeft\n const divy = eDown.pageY - el.offsetTop\n\n document.onmousemove = (e) => {\n let left = e.pageX - divx\n let top = e.pageY - divy\n\n // 确保不超出父元素的右侧和底部,或允许无限制拖动\n if (parentEl) {\n left = left < 0 ? 0 : left > maxLeft ? maxLeft : left\n top = top < 0 ? 0 : top > maxTop ? maxTop : top\n }\n\n el.style.left = left + 'px'\n el.style.top = top + 'px'\n }\n\n document.onmouseup = function () {\n document.onmousemove = null\n document.onmouseup = null\n }\n }\n }\n }\n}\nexport default vDrag\n","import type { Directive } from 'vue'\n\n/**\n * @description: 列表自动滚动指令\n * @param {Boolean} mouse 指令后面直接.mouse就可以加入鼠标移入暂停移出继续运动\n * @param {Boolean} speed 滚动速度\n */\n\nconst RAF = window.requestAnimationFrame\nconst CancelRAF = window.cancelAnimationFrame\n\n// 滚动元素\nconst scrollElement = (el) => {\n const maxScrollTop = el.scrollHeight - el.clientHeight\n el.cacheScrollTop = el.cacheScrollTop + el.speed >= maxScrollTop ? 0 : el.cacheScrollTop + el.speed\n el.scrollTo({\n top: el.cacheScrollTop\n })\n el.animationId = RAF(scrollElement.bind(null, el))\n}\n\n// 鼠标移入暂停并允许滚动\nconst mouseEnterHandler = (el) => {\n if (el.animationId) {\n CancelRAF(el.animationId)\n el.animationId = undefined\n el.mouseInside = true\n }\n}\n\n// 鼠标移出继续运行\nconst mouseLeaveHandler = (el) => {\n if (el.animationId) {\n CancelRAF(el.animationId)\n el.animationId = undefined\n }\n el.mouseInside = false\n el.animationId = RAF(scrollElement.bind(null, el))\n}\n\n// 处理用户的滚动事件\nconst elementScrollHandler = (el) => (el.cacheScrollTop = el.scrollTop)\n\n// 鼠标滚轮事件处理\nconst wheelHandler = (el) => (event) => {\n el.scrollTop -= event.deltaY // 使用滚轮滚动\n}\n\n// 鼠标拖动事件处理\nlet isDragging = false\nlet startY = 0\nlet scrollTop = 0\n\nconst mouseDownHandler = (el) => (event) => {\n isDragging = true\n startY = event.pageY - el.offsetTop // 获取鼠标相对于元素的Y坐标\n scrollTop = el.scrollTop // 获取当前滚动位置\n el.style.cursor = 'grabbing' // 更改光标样式\n}\n\nconst mouseMoveHandler = (el) => (event) => {\n if (!isDragging) return\n event.preventDefault() // 防止选择文本\n const y = event.pageY - el.offsetTop // 获取当前鼠标Y坐标\n const walk = (y - startY) * 2 // 计算拖动的距离\n el.scrollTop = scrollTop - walk // 更新滚动位置\n}\n\nconst mouseUpHandler = (el) => () => {\n isDragging = false\n el.style.cursor = 'grab' // 恢复光标样式\n}\n\n// 移除事件监听\nconst removeEventListeners = (el, binding) => {\n if (el.animationId) {\n CancelRAF(el.animationId)\n el.animationId = undefined\n }\n\n if (binding.modifiers.mouse) {\n el.removeEventListener('mouseenter', mouseEnterHandler.bind(null, el))\n el.removeEventListener('mouseleave', mouseLeaveHandler.bind(null, el))\n\n el.removeEventListener('scroll', elementScrollHandler.bind(null, el))\n el.removeEventListener('wheel', wheelHandler(el))\n el.removeEventListener('mousedown', mouseDownHandler(el))\n el.removeEventListener('mousemove', mouseMoveHandler(el))\n el.removeEventListener('mouseup', mouseUpHandler(el))\n }\n}\n\n// 初始化自动滚动\nconst initAutoScroll = (el, binding) => {\n const maxScrollTop = el.scrollHeight - el.clientHeight\n if (maxScrollTop - 1 <= 0) {\n return\n }\n removeEventListeners(el, binding)\n el.speed = binding.value || 1\n el.cacheScrollTop = el.cacheScrollTop || 0\n\n if (binding.modifiers.mouse) {\n if (!el.mouseInside) {\n el.animationId = RAF(scrollElement.bind(null, el))\n }\n el.addEventListener('mouseenter', mouseEnterHandler.bind(null, el))\n el.addEventListener('mouseleave', mouseLeaveHandler.bind(null, el))\n\n el.addEventListener('scroll', elementScrollHandler.bind(null, el))\n el.addEventListener('wheel', wheelHandler(el))\n\n // 添加拖动事件\n el.addEventListener('mousedown', mouseDownHandler(el))\n el.addEventListener('mousemove', mouseMoveHandler(el))\n el.addEventListener('mouseup', mouseUpHandler(el))\n el.addEventListener('mouseleave', mouseUpHandler(el)) // 鼠标离开时也停止拖动\n } else {\n if (el.animationId) {\n CancelRAF(el.animationId)\n el.animationId = undefined\n }\n el.animationId = RAF(scrollElement.bind(null, el))\n }\n}\n\nconst vAutoScroll: Directive = {\n mounted(el, binding) {\n initAutoScroll(el, binding)\n },\n updated(el, binding) {\n initAutoScroll(el, binding)\n },\n unmounted(el, binding) {\n removeEventListeners(el, binding)\n }\n}\n\nexport default vAutoScroll\n","import type { Directive } from 'vue'\nimport { render } from 'vue'\nimport { ElTooltip } from 'element-plus'\n\nconst vTooltip: Directive = {\n mounted(el: HTMLElement, binding) {\n // 获取要显示的完整文本\n const tooltipContent = binding.value?.content || el.innerHTML // 从指令值中获取内容,或使用元素的内容\n const tooltipProps = binding.value || {} // 获取额外的属性\n\n // 获取最大行数,默认为 1\n const maxRows = binding.value?.row || 1\n\n // 清空原先元素的内容\n const originalHTML = el.innerHTML // 保存原始 HTML\n el.innerHTML = ''\n\n // 创建一个临时元素以测量文本宽度\n const tempSpan = document.createElement('span')\n tempSpan.style.visibility = 'hidden'\n tempSpan.style.whiteSpace = 'nowrap'\n tempSpan.innerHTML = originalHTML\n document.body.appendChild(tempSpan)\n\n // 判断文本是否超过最大宽度\n const exceedsMaxWidth = tempSpan.offsetWidth > el.clientWidth\n\n // 移除临时元素\n document.body.removeChild(tempSpan)\n\n if (exceedsMaxWidth) {\n // 只有当文本超过最大宽度时才创建 Tooltip\n // 设置元素的 CSS 样式\n el.style.overflow = 'hidden'\n el.style.cursor = 'pointer'\n const tooltip = (\n <ElTooltip content={tooltipContent} effect=\"dark\" {...tooltipProps}>\n <span\n style={{\n display: '-webkit-box',\n WebkitBoxOrient: 'vertical',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n WebkitLineClamp: maxRows,\n width: '100%'\n }}\n v-html={originalHTML}></span>\n </ElTooltip>\n )\n\n // 使用 render 函数将 Tooltip 挂载到元素上\n render(tooltip, el)\n } else {\n // 如果不超过宽度,直接显示原始内容\n el.innerHTML = originalHTML\n }\n }\n}\n\nexport default vTooltip\n","import type { Directive, DirectiveBinding } from 'vue'\nimport { render } from 'vue'\nimport { ElPopconfirm } from 'element-plus'\n\nconst addPopConfirm = (el: HTMLElement, binding: DirectiveBinding) => {\n const propsDefault = {\n title: '确定要执行此操作吗?',\n confirmButtonText: '确定',\n cancelButtonText: '取消'\n }\n const props = {\n ...propsDefault,\n ...binding.value\n }\n\n const vm = (\n <ElPopconfirm {...props}>\n {{\n reference: () => <span v-html={el.outerHTML}></span>\n }}\n </ElPopconfirm>\n )\n\n // debugger\n const newEl = document.createElement('span')\n render(vm, newEl)\n el.parentNode?.replaceChild(newEl, el)\n}\nconst vConfirm: Directive = {\n mounted(el: HTMLElement, binding: DirectiveBinding) {\n addPopConfirm(el, binding)\n },\n updated(el: HTMLElement, binding: DirectiveBinding) {\n addPopConfirm(el, binding)\n }\n}\n\nexport default vConfirm\n"],"names":["s","r","__name","t","e","withInstall","main","app","comp","withInstallDirectives","name","ButtonProps","_sfc_render","_ctx","_cache","$props","type","$data","$options","_normalizeClass","IButton","Button","component","install","i","r$3","props","__props","chartRef","ref","chartInstance","draw","init","echarts","markRaw","__expose","watch","loading","onMounted","onBeforeUnmount","_a","$setup","_openBlock","_createElementBlock","ZnChart","ZnChartCom","l","o","n","developFn","formatValue","value","appContextConst","popWindowList","getBody","document","querySelector","showPopWindow","componentProps","op","left","top","right","bottom","position","id","Math","ceil","random","animate","animateInClass","animateOutClass","propsFormat","undefined","width","height","option","Object","assign","close","closePopWindowById","animateClass","vm","_createVNode","ElScrollbar","default","render","_mergeProps","onClose","appContext","children","length","container","createElement","style","pointerEvents","parentEl","appendParent","getElementById","appendChild","nextTick","popWindowInfo","tag","node","push","removePopWindow","popWindowNode","className","addEventListener","remove","splice","indexOf","popWindowItem","find","item","closePopWindowByTag","filter","forEach","getAllPopWindows","initPopWindow","ctx","getCurrentInstance","usePopWindow","thisAppContext","_isSlot","prototype","toString","call","_isVNode","prefixClass","getFather","isShow","closeDialog","setTimeout","removeChild","handleClose","dialogProps","handleConfirm","onConfirm","showDialog","componentsProps","layoutSize","contentHeight","ElConfigProvider","unref","ElDialog","before-close","_slot","onCloseDialog","header","scope","headerRender","title","footer","footerRender","showFooter","_Fragment","ElButton","onClick","_createTextVNode","initDialog","p","useDialog","copy","el","binding","handleClick","ElMessage","err","m","vDrag","draggableClass","draggableEl","maxLeft","maxTop","eDown","divx","divy","RAF","CancelRAF","scrollElement","maxScrollTop","mouseEnterHandler","mouseLeaveHandler","elementScrollHandler","wheelHandler","event","isDragging","startY","scrollTop","mouseDownHandler","mouseMoveHandler","walk","mouseUpHandler","removeEventListeners","initAutoScroll","vAutoScroll","vTooltip","mounted","tooltipContent","content","innerHTML","tooltipProps","maxRows","row","originalHTML","tempSpan","visibility","whiteSpace","body","exceedsMaxWidth","offsetWidth","clientWidth","overflow","cursor","tooltip","ElTooltip","display","WebkitBoxOrient","textOverflow","WebkitLineClamp","addPopConfirm","confirmButtonText","cancelButtonText","ElPopconfirm","reference","outerHTML","newEl","parentNode","replaceChild","vConfirm","updated"],"mappings":"gwBAIOA,GAAA,OAAA,eAAAC,EAAAC,EAAA,CAAAC,EAAAC,IAAAJ,GAAAG,EAAA,OAAA,CAAA,MAAAC,EAAA,aAAA,EAAA,CAAA,EAAA,OAAA,MAAMC,EAAcH,EAAII,IAC5BA,EAA2B,QAAWC,GAAc,CACnD,MAAMC,EAA4BF,EAClCC,EAAI,UAAUC,EAAK,KAAMA,CAAI,CAC/B,EACOF,GALkB,aAAA,EASdG,GAAwBP,EAAA,CAAsBI,EAASI,KAC3D,CACL,QAASR,EAACK,GAAmB,CAC3BA,EAAI,UAAUG,EAAMJ,CAAI,CAC1B,EAFS,SAGT,EAAA,UAAWA,CACb,GANmC,uBAAA,ECRxBK,GAAc,CACzB,KAAM,CACJ,K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,EAAiBC,IAA8B,OAMpE,MAAM3I,EAAQ,CAJZ8H,MAAO,+DACPsE,kBAAmB,eACnBC,iBAAkB,eAIlB,GAAG1D,EAAQlH,KACb,EAEM+B,EAAEC,EAAAA,YAAA6I,eACYtM,EAAK,CAEnBuM,UAAWA,GAAAA,IAAA9I,EAAA,YAAA,OAAA,CAAA,UAAoBiF,EAAG8D,SAAS,EAAA,IAAA,EAAhCD,WAAAA,CAAyC,CAGzD,EAGKE,EAAQ5K,SAASsC,cAAc,MAAM,EAC3CP,SAAOJ,EAAIiJ,CAAK,GAChB/D,EAAAA,EAAGgE,aAAHhE,MAAAA,EAAeiE,aAAaF,EAAO/D,CAAAA,CACrC,EAvBsByD,eAwBhBS,EAAAA,GAAsB,CAC1BhC,QAAQlC,EAAiBC,EAA2B,CAClDwD,GAAczD,EAAIC,CAAO,CAC3B,EACAkE,QAAQnE,EAAiBC,EAA2B,CAClDwD,GAAczD,EAAIC,CAAO,CAC3B,CACF"}
|
package/cdn/index.cdn.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var G=Object.defineProperty;var l=(e,t)=>G(e,"name",{value:t,configurable:!0});import{defineComponent as H,openBlock as J,createElementBlock as K,normalizeClass as Q,renderSlot as X,createVNode as s,mergeProps as w,render as g,nextTick as Y,getCurrentInstance as b,isVNode as Z,ref as C,unref as P,Fragment as ee,createTextVNode as k}from"vue";import{ElScrollbar as _,ElConfigProvider as te,ElDialog as oe,ElButton as I,ElMessage as ne}from"element-plus";var ae=Object.defineProperty,D=l((e,t)=>ae(e,"name",{value:t,configurable:!0}),"r$4");const S=D(e=>(e.install=t=>{const o=e;t.component(o.name,o)},e),"withInstall"),le=D((e,t)=>({install:D(o=>{o.directive(t,e)},"install"),directive:e}),"withInstallDirectives"),ie={type:{type:String,default:"default"}};var re=H({name:"IButton",__name:"button",props:ie,setup(e,{expose:t}){t();const o={};return Object.defineProperty(o,"__isScriptSetup",{enumerable:!1,value:!0}),o}}),se=l((e,t)=>{const o=e.__vccOpts||e;for(const[i,u]of t)o[i]=u;return o},"c$1"),de=Object.defineProperty,ue=l((e,t)=>de(e,"name",{value:t,configurable:!0}),"t$3");function F(e,t,o,i,u,r){return J(),K("button",{class:Q(["mu-button",e.type])},[X(e.$slots,"default")],2)}l(F,"p$3"),ue(F,"_sfc_render");var ce=se(re,[["render",F],["__file","button.vue"]]);const R=S(ce);var pe=Object.defineProperty,fe=l((e,t)=>pe(e,"name",{value:t,configurable:!0}),"n$1");const me=[R],T=fe(function(e){me.forEach(t=>e.use(t))},"install");var ve={install:T},he=Object.defineProperty,ge=l((e,t)=>he(e,"name",{value:t,configurable:!0}),"o");function V(){console.log("developFn")}l(V,"developFn"),ge(V,"developFn");var ye=Object.defineProperty,be=l((e,t)=>ye(e,"name",{value:t,configurable:!0}),"t$2");function m(e){return typeof e=="number"?`${e}px`:typeof e=="string"?e.endsWith("px")||e.endsWith("%")?e:`${e}px`:""}l(m,"formatValue"),be(m,"formatValue");var we=Object.defineProperty,d=l((e,t)=>we(e,"name",{value:t,configurable:!0}),"a$1");let $,c=[];const Ce=d(()=>document.querySelector("body"),"getBody"),M=d((e,t,o)=>{var i;const u={left:"auto",top:"auto",right:"auto",bottom:"auto",position:"absolute",id:"popwindow_"+Math.ceil(Math.random()*1e6),animate:!1,animateInClass:"animate__animated animate__faster animate__fadeIn",animateOutClass:"animate__animated animate__faster animate__fadeOut"};let r={...e};e.left!==void 0&&(r.left=m(r.left)),e.top!==void 0&&(r.top=m(r.top)),e.width!==void 0&&(r.width=m(r.width)),e.height!==void 0&&(r.height=m(r.height));const n=Object.assign(u,r),p=d(()=>{O(n.id)},"close");O(n.id);let f=n.animate?n.animateInClass:"";const y=s("div",{class:"popWindow "+f,style:{width:n.width,height:n.height,left:n.left,right:n.right,top:n.top,bottom:n.bottom,position:n.position}},[s(_,null,{default:d(()=>[e.render?e.render({close:p,option:n}):s(t,w({is:t},o,{onClose:d(()=>p(),"onClose")}),null)],"default")})]);y.appContext=$,(i=y.children)!=null&&i.length&&(y.children[0].appContext=$);const h=document.createElement("div");h.id="popwindow_"+Math.ceil(Math.random()*1e6),h.style.pointerEvents="auto";let B=Ce();return e.appendParent&&(B=document.getElementById(e.appendParent)),B.appendChild(h),g(y,h),Y(()=>{const U={id:n.id,tag:n.tag,node:h,option:n};c.push(U)}),{id:n.id,close:p}},"showPopWindow"),q=d(e=>{var t;if(!e)return;const{option:o,node:i}=e;if((t=o.onClose)==null||t.call(o),o.animate){const u=i.querySelector(".popWindow");u.className="popWindow "+o.animateOutClass,u.addEventListener("animationend",()=>{g(null,i),i.remove(),c.splice(c.indexOf(e),1)})}else g(null,i),i.remove(),c.splice(c.indexOf(e),1)},"removePopWindow"),O=d(e=>{const t=c.find(o=>o.id===e);t&&q(t)},"closePopWindowById"),Pe=d(e=>{c.filter(t=>t.tag===e).forEach(t=>q(t))},"closePopWindowByTag"),_e=d(()=>c,"getAllPopWindows"),De=d(e=>{const{appContext:t}=e||b()||{};return $=t,{showPopWindow:M}},"initPopWindow");var $e=Object.defineProperty,Oe=l((e,t)=>$e(e,"name",{value:t,configurable:!0}),"p$1");const We=Oe(e=>{const t=e||b(),{showPopWindow:o}=De(t);return{showPopWindow:o}},"usePopWindow");var xe=Object.defineProperty,a=l((e,t)=>xe(e,"name",{value:t,configurable:!0}),"t$1");function A(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Z(e)}l(A,"$"),a(A,"_isSlot");const W="work-dialog";let N=0,x;const L=a(()=>document.querySelector("body"),"getFather"),E=C(!0),v=a(()=>{E.value=!1,setTimeout(()=>{const e=document.querySelector(`#${W}-${N--}`);e&&(g(null,e),L().removeChild(e)),E.value=!0},500)},"closeDialog"),z=a(e=>(e!=null&&e.onClose&&(e==null||e.onClose(v)),v()),"handleClose"),Ee=a(e=>(e!=null&&e.onConfirm&&(e==null||e.onConfirm(v)),v()),"handleConfirm"),je=a((e,t,o)=>{var i;const u=C("default"),r=C(e.height),n=s(te,{namespace:"el",size:P(u)},{default:a(()=>[s(oe,w({modelValue:E.value,title:"\u5F39\u6846",width:"50%","before-close":a(()=>z(e),"before-close"),"close-on-click-modal":!0},e,{render:!0,headerRender:!0,footerRender:!0,class:W}),{default:a(()=>{if(e.render){let f;return s(_,{style:{height:P(r)}},A(f=e.render())?f:{default:a(()=>[f],"default")})}return s(_,{style:{height:P(r)}},{default:a(()=>[s(t,w({is:t},o,{onCloseDialog:a(()=>v(),"onCloseDialog")}),null)],"default")})},"default"),header:a(f=>e!=null&&e.headerRender?e.headerRender(f):s("div",{style:"display: flex"},[s("span",{class:"el-dialog__title",style:"flex: 1"},[e.title])]),"header"),footer:a(()=>{if(e.footerRender)return e.footerRender();if(e.showFooter!==!1)return s(ee,null,[s(I,{onClick:a(()=>z(e),"onClick")},{default:a(()=>[k("\u53D6 \u6D88")],"default")}),s(I,{type:"primary",onClick:a(()=>Ee(e),"onClick")},{default:a(()=>[k("\u786E \u5B9A")],"default")})])},"footer")})],"default")});n.appContext=x,(i=n.children)!=null&&i.length&&(n.children[0].appContext=x);const p=document.createElement("div");p.id=`${W}-${++N}`,L().appendChild(p),g(n,p)},"showDialog"),Be=a(e=>{const{appContext:t}=e||b()||{};return x=t,{showDialog:je}},"initDialog");var ke=Object.defineProperty,Ie=l((e,t)=>ke(e,"name",{value:t,configurable:!0}),"t");const Se=Ie(e=>{const t=e||b(),{showDialog:o}=Be(t);return{open:o,close:v}},"useDialog");var Fe=Object.defineProperty,Re=l((e,t)=>Fe(e,"name",{value:t,configurable:!0}),"i");const Te={mounted(e,t){e.copyData=t.value,e.addEventListener("click",j)},updated(e,t){e.copyData=t.value},beforeUnmount(e){e.removeEventListener("click",j)}};async function j(){try{await navigator.clipboard.writeText(this.copyData),ne({type:"success",message:"\u590D\u5236\u6210\u529F"})}catch(e){console.error("\u590D\u5236\u64CD\u4F5C\u4E0D\u88AB\u652F\u6301\u6216\u5931\u8D25: ",e)}}l(j,"n"),Re(j,"handleClick");export{R as IButton,O as closePopWindowById,Pe as closePopWindowByTag,ve as default,V as developFn,m as formatValue,_e as getAllPopWindows,T as install,M as showPopWindow,Se as useDialog,We as usePopWindow,Te as vCopy,S as withInstall,le as withInstallDirectives};
|
|
1
|
+
var be=Object.defineProperty;var r=(e,t)=>be(e,"name",{value:t,configurable:!0});import{defineComponent as R,openBlock as q,createElementBlock as V,normalizeClass as ye,renderSlot as we,ref as C,markRaw as $e,watch as z,onMounted as Ce,onBeforeUnmount as Ee,normalizeStyle as Pe,createVNode as c,mergeProps as E,render as y,nextTick as _e,getCurrentInstance as P,isVNode as Ie,unref as x,Fragment as Te,createTextVNode as N}from"vue";import*as Y from"echarts";import{ElScrollbar as D,ElConfigProvider as Le,ElDialog as xe,ElButton as U,ElMessage as De,ElTooltip as Se,ElPopconfirm as Oe}from"element-plus";var We=Object.defineProperty,S=r((e,t)=>We(e,"name",{value:t,configurable:!0}),"r$5");const O=S(e=>(e.install=t=>{const o=e;t.component(o.name,o)},e),"withInstall"),je=S((e,t)=>({install:S(o=>{o.directive(t,e)},"install"),directive:e}),"withInstallDirectives"),Be={type:{type:String,default:"default"}};var He=R({name:"IButton",__name:"button",props:Be,setup(e,{expose:t}){t();const o={};return Object.defineProperty(o,"__isScriptSetup",{enumerable:!1,value:!0}),o}}),X=r((e,t)=>{const o=e.__vccOpts||e;for(const[a,n]of t)o[a]=n;return o},"_$1"),ke=Object.defineProperty,Fe=r((e,t)=>ke(e,"name",{value:t,configurable:!0}),"t$5");function Z(e,t,o,a,n,i){return q(),V("button",{class:ye(["mu-button",e.type])},[we(e.$slots,"default")],2)}r(Z,"p$6"),Fe(Z,"_sfc_render");var Me=X(He,[["render",Z],["__file","button.vue"]]);const G=O(Me);var Ae=Object.defineProperty,Re=r((e,t)=>Ae(e,"name",{value:t,configurable:!0}),"n$2");const qe=[G],J=Re(function(e){qe.forEach(t=>e.use(t))},"install");var Ve={install:J},ze=Object.defineProperty,_=r((e,t)=>ze(e,"name",{value:t,configurable:!0}),"n$1"),Ne=R({__name:"znChart",props:{option:{type:Object,default:_(()=>({xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{data:[150,230,224,218,135,147,260],type:"line"}]}),"default")},width:{type:String,default:"500px"},height:{type:String,default:"400px"},loading:{type:Boolean,default:!1}},setup(e,{expose:t}){const o=e,a=C(null),n=C(),i=_(()=>{n.value&&o.option&&n.value.setOption(o.option,!0)},"draw"),l=_(()=>{a.value&&(n.value=Y.getInstanceByDom(a.value),n.value||(n.value=$e(Y.init(a.value)),i()))},"init");t({getInstance:_(()=>n.value,"getInstance"),draw:i}),z(()=>o.option,()=>{i()},{deep:!0,immediate:!0}),z(()=>o.loading,d=>{d?n.value.showLoading():n.value.hideLoading()}),Ce(()=>{l()}),Ee(()=>{var d;(d=n.value)==null||d.dispose()});const u={props:o,chartRef:a,chartInstance:n,draw:i,init:l};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}}),Ye=Object.defineProperty,Ue=r((e,t)=>Ye(e,"name",{value:t,configurable:!0}),"o$1");function K(e,t,o,a,n,i){return q(),V("div",{ref:"chartRef",class:"chart-div",style:Pe({width:a.props.width,height:a.props.height})},null,4)}r(K,"p$4"),Ue(K,"_sfc_render");var Xe=X(Ne,[["render",K],["__file","znChart.vue"]]);const Ze=O(Xe);var Ge=Object.defineProperty,Je=r((e,t)=>Ge(e,"name",{value:t,configurable:!0}),"o");function Q(){console.log("developFn")}r(Q,"developFn"),Je(Q,"developFn");var Ke=Object.defineProperty,Qe=r((e,t)=>Ke(e,"name",{value:t,configurable:!0}),"t$4");function w(e){return typeof e=="number"?`${e}px`:typeof e=="string"?e.endsWith("px")||e.endsWith("%")?e:`${e}px`:""}r(w,"formatValue"),Qe(w,"formatValue");var et=Object.defineProperty,m=r((e,t)=>et(e,"name",{value:t,configurable:!0}),"a$2");let W,g=[];const tt=m(()=>document.querySelector("body"),"getBody"),ee=m((e,t,o)=>{var a;const n={left:"auto",top:"auto",right:"auto",bottom:"auto",position:"absolute",id:"popwindow_"+Math.ceil(Math.random()*1e6),animate:!1,animateInClass:"animate__animated animate__faster animate__fadeIn",animateOutClass:"animate__animated animate__faster animate__fadeOut"};let i={...e};e.left!==void 0&&(i.left=w(i.left)),e.top!==void 0&&(i.top=w(i.top)),e.width!==void 0&&(i.width=w(i.width)),e.height!==void 0&&(i.height=w(i.height));const l=Object.assign(n,i),u=m(()=>{j(l.id)},"close");j(l.id);let d=l.animate?l.animateInClass:"";const f=c("div",{class:"popWindow "+d,style:{width:l.width,height:l.height,left:l.left,right:l.right,top:l.top,bottom:l.bottom,position:l.position}},[c(D,null,{default:m(()=>[e.render?e.render({close:u,option:l}):c(t,E({is:t},o,{onClose:m(()=>u(),"onClose")}),null)],"default")})]);f.appContext=W,(a=f.children)!=null&&a.length&&(f.children[0].appContext=W);const p=document.createElement("div");p.id="popwindow_"+Math.ceil(Math.random()*1e6),p.style.pointerEvents="auto";let h=tt();return e.appendParent&&(h=document.getElementById(e.appendParent)),h.appendChild(p),y(f,p),_e(()=>{const b={id:l.id,tag:l.tag,node:p,option:l};g.push(b)}),{id:l.id,close:u}},"showPopWindow"),te=m(e=>{var t;if(!e)return;const{option:o,node:a}=e;if((t=o.onClose)==null||t.call(o),o.animate){const n=a.querySelector(".popWindow");n.className="popWindow "+o.animateOutClass,n.addEventListener("animationend",()=>{y(null,a),a.remove(),g.splice(g.indexOf(e),1)})}else y(null,a),a.remove(),g.splice(g.indexOf(e),1)},"removePopWindow"),j=m(e=>{const t=g.find(o=>o.id===e);t&&te(t)},"closePopWindowById"),ot=m(e=>{g.filter(t=>t.tag===e).forEach(t=>te(t))},"closePopWindowByTag"),nt=m(()=>g,"getAllPopWindows"),at=m(e=>{const{appContext:t}=e||P()||{};return W=t,{showPopWindow:ee}},"initPopWindow");var lt=Object.defineProperty,it=r((e,t)=>lt(e,"name",{value:t,configurable:!0}),"p$3");const rt=it(e=>{const t=e||P(),{showPopWindow:o}=at(t);return{showPopWindow:o}},"usePopWindow");var dt=Object.defineProperty,s=r((e,t)=>dt(e,"name",{value:t,configurable:!0}),"t$3");function oe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ie(e)}r(oe,"$"),s(oe,"_isSlot");const B="work-dialog";let ne=0,H;const ae=s(()=>document.querySelector("body"),"getFather"),k=C(!0),$=s(()=>{k.value=!1,setTimeout(()=>{const e=document.querySelector(`#${B}-${ne--}`);e&&(y(null,e),ae().removeChild(e)),k.value=!0},500)},"closeDialog"),le=s(e=>(e!=null&&e.onClose&&(e==null||e.onClose($)),$()),"handleClose"),st=s(e=>(e!=null&&e.onConfirm&&(e==null||e.onConfirm($)),$()),"handleConfirm"),ut=s((e,t,o)=>{var a;const n=C("default"),i=C(e.height),l=c(Le,{namespace:"el",size:x(n)},{default:s(()=>[c(xe,E({modelValue:k.value,title:"\u5F39\u6846",width:"50%","before-close":s(()=>le(e),"before-close"),"close-on-click-modal":!0},e,{render:!0,headerRender:!0,footerRender:!0,class:B}),{default:s(()=>{if(e.render){let d;return c(D,{style:{height:x(i)}},oe(d=e.render())?d:{default:s(()=>[d],"default")})}return c(D,{style:{height:x(i)}},{default:s(()=>[c(t,E({is:t},o,{onCloseDialog:s(()=>$(),"onCloseDialog")}),null)],"default")})},"default"),header:s(d=>e!=null&&e.headerRender?e.headerRender(d):c("div",{style:"display: flex"},[c("span",{class:"el-dialog__title",style:"flex: 1"},[e.title])]),"header"),footer:s(()=>{if(e.footerRender)return e.footerRender();if(e.showFooter!==!1)return c(Te,null,[c(U,{onClick:s(()=>le(e),"onClick")},{default:s(()=>[N("\u53D6 \u6D88")],"default")}),c(U,{type:"primary",onClick:s(()=>st(e),"onClick")},{default:s(()=>[N("\u786E \u5B9A")],"default")})])},"footer")})],"default")});l.appContext=H,(a=l.children)!=null&&a.length&&(l.children[0].appContext=H);const u=document.createElement("div");u.id=`${B}-${++ne}`,ae().appendChild(u),y(l,u)},"showDialog"),ct=s(e=>{const{appContext:t}=e||P()||{};return H=t,{showDialog:ut}},"initDialog");var pt=Object.defineProperty,mt=r((e,t)=>pt(e,"name",{value:t,configurable:!0}),"t$2");const vt=mt(e=>{const t=e||P(),{showDialog:o}=ct(t);return{open:o,close:$}},"useDialog");var ft=Object.defineProperty,ht=r((e,t)=>ft(e,"name",{value:t,configurable:!0}),"i$1");const gt={mounted(e,t){e.copyData=t.value,e.addEventListener("click",F)},updated(e,t){e.copyData=t.value},beforeUnmount(e){e.removeEventListener("click",F)}};async function F(){try{await navigator.clipboard.writeText(this.copyData),De({type:"success",message:"\u590D\u5236\u6210\u529F"})}catch(e){console.error("\u590D\u5236\u64CD\u4F5C\u4E0D\u88AB\u652F\u6301\u6216\u5931\u8D25: ",e)}}r(F,"n"),ht(F,"handleClick");var bt=Object.defineProperty,yt=r((e,t)=>bt(e,"name",{value:t,configurable:!0}),"m$1");const wt={mounted:yt((e,t)=>{const{draggableClass:o}=t.value||{};let a=e;o&&(a=e.querySelector("."+o));let n=e.parentElement;t.modifiers.parent?n||(n=document.body):n=null;const i=n?n.clientWidth-e.clientWidth:1/0,l=n?n.clientHeight-e.clientHeight:1/0;a&&(a.onmousedown=u=>{const d=u.pageX-e.offsetLeft,f=u.pageY-e.offsetTop;document.onmousemove=p=>{let h=p.pageX-d,b=p.pageY-f;n&&(h=h<0?0:h>i?i:h,b=b<0?0:b>l?l:b),e.style.left=h+"px",e.style.top=b+"px"},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}})},"mounted")};var $t=Object.defineProperty,v=r((e,t)=>$t(e,"name",{value:t,configurable:!0}),"e");const I=window.requestAnimationFrame,T=window.cancelAnimationFrame,L=v(e=>{const t=e.scrollHeight-e.clientHeight;e.cacheScrollTop=e.cacheScrollTop+e.speed>=t?0:e.cacheScrollTop+e.speed,e.scrollTo({top:e.cacheScrollTop}),e.animationId=I(L.bind(null,e))},"scrollElement"),ie=v(e=>{e.animationId&&(T(e.animationId),e.animationId=void 0,e.mouseInside=!0)},"mouseEnterHandler"),re=v(e=>{e.animationId&&(T(e.animationId),e.animationId=void 0),e.mouseInside=!1,e.animationId=I(L.bind(null,e))},"mouseLeaveHandler"),de=v(e=>e.cacheScrollTop=e.scrollTop,"elementScrollHandler"),se=v(e=>t=>{e.scrollTop-=t.deltaY},"wheelHandler");let M=!1,ue=0,ce=0;const pe=v(e=>t=>{M=!0,ue=t.pageY-e.offsetTop,ce=e.scrollTop,e.style.cursor="grabbing"},"mouseDownHandler"),me=v(e=>t=>{if(!M)return;t.preventDefault();const o=(t.pageY-e.offsetTop-ue)*2;e.scrollTop=ce-o},"mouseMoveHandler"),A=v(e=>()=>{M=!1,e.style.cursor="grab"},"mouseUpHandler"),ve=v((e,t)=>{e.animationId&&(T(e.animationId),e.animationId=void 0),t.modifiers.mouse&&(e.removeEventListener("mouseenter",ie.bind(null,e)),e.removeEventListener("mouseleave",re.bind(null,e)),e.removeEventListener("scroll",de.bind(null,e)),e.removeEventListener("wheel",se(e)),e.removeEventListener("mousedown",pe(e)),e.removeEventListener("mousemove",me(e)),e.removeEventListener("mouseup",A(e)))},"removeEventListeners"),fe=v((e,t)=>{e.scrollHeight-e.clientHeight-1<=0||(ve(e,t),e.speed=t.value||1,e.cacheScrollTop=e.cacheScrollTop||0,t.modifiers.mouse?(e.mouseInside||(e.animationId=I(L.bind(null,e))),e.addEventListener("mouseenter",ie.bind(null,e)),e.addEventListener("mouseleave",re.bind(null,e)),e.addEventListener("scroll",de.bind(null,e)),e.addEventListener("wheel",se(e)),e.addEventListener("mousedown",pe(e)),e.addEventListener("mousemove",me(e)),e.addEventListener("mouseup",A(e)),e.addEventListener("mouseleave",A(e))):(e.animationId&&(T(e.animationId),e.animationId=void 0),e.animationId=I(L.bind(null,e))))},"initAutoScroll"),Ct={mounted(e,t){fe(e,t)},updated(e,t){fe(e,t)},unmounted(e,t){ve(e,t)}};var Et=Object.defineProperty,Pt=r((e,t)=>Et(e,"name",{value:t,configurable:!0}),"s");const _t={mounted(e,t){var o,a;const n=((o=t.value)==null?void 0:o.content)||e.innerHTML,i=t.value||{},l=((a=t.value)==null?void 0:a.row)||1,u=e.innerHTML;e.innerHTML="";const d=document.createElement("span");d.style.visibility="hidden",d.style.whiteSpace="nowrap",d.innerHTML=u,document.body.appendChild(d);const f=d.offsetWidth>e.clientWidth;if(document.body.removeChild(d),f){e.style.overflow="hidden",e.style.cursor="pointer";const p=c(Se,E({content:n,effect:"dark"},i),{default:Pt(()=>[c("span",{style:{display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",WebkitLineClamp:l,width:"100%"},innerHTML:u},null)],"default")});y(p,e)}else e.innerHTML=u}};var It=Object.defineProperty,he=r((e,t)=>It(e,"name",{value:t,configurable:!0}),"t");const ge=he((e,t)=>{var o;const a={title:"\u786E\u5B9A\u8981\u6267\u884C\u6B64\u64CD\u4F5C\u5417\uFF1F",confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",...t.value},n=c(Oe,a,{reference:he(()=>c("span",{innerHTML:e.outerHTML},null),"reference")}),i=document.createElement("span");y(n,i),(o=e.parentNode)==null||o.replaceChild(i,e)},"addPopConfirm"),Tt={mounted(e,t){ge(e,t)},updated(e,t){ge(e,t)}};export{G as IButton,Ze as ZnChart,j as closePopWindowById,ot as closePopWindowByTag,Ve as default,Q as developFn,w as formatValue,nt as getAllPopWindows,J as install,ee as showPopWindow,vt as useDialog,rt as usePopWindow,Ct as vAutoScroll,Tt as vConfirm,gt as vCopy,wt as vDrag,_t as vTooltip,O as withInstall,je as withInstallDirectives};
|
|
2
2
|
//# sourceMappingURL=index.cdn.mjs.map
|
package/cdn/index.cdn.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cdn.mjs","sources":["../../../packages/utils/install.ts","../../../packages/components/button/src/button.ts","../../../packages/components/button/src/button.vue","../../../packages/components/button/index.ts","../../../packages/installer.ts","../../../packages/utils/myDevelop.ts","../../../packages/utils/index.ts","../../../packages/hooks/usePopWindow/src/index.tsx","../../../packages/hooks/usePopWindow/index.ts","../../../packages/hooks/useDialog/src/index.tsx","../../../packages/hooks/useDialog/index.ts","../../../packages/directives/modules/copy.ts"],"sourcesContent":["import type { App, Directive } from 'vue';\nimport type { SFCWithInstall } from '../types';\n\n// 注册组件\nexport const withInstall = <T>(main: T) => {\n (main as SFCWithInstall<T>).install = (app): void => {\n const comp: Record<string, any> = main as Record<string, any>;\n app.component(comp.name, comp);\n };\n return main as SFCWithInstall<T>;\n};\n\n// 注册指令\nexport const withInstallDirectives = <T extends Directive>(main: T, name: string) => {\n return {\n install: (app: App): void => {\n app.directive(name, main);\n },\n directive: main,\n };\n};\n","import type { ExtractPropTypes, PropType } from 'vue';\nimport type button from './button.vue';\n\nexport type Type = 'primary' | 'success' | 'error';\n\nexport const ButtonProps = {\n type: {\n type: String as PropType<Type>,\n default: 'default',\n },\n};\n\nexport type ButtonPropsType = ExtractPropTypes<typeof ButtonProps>;\nexport type ButtonInstanceType = InstanceType<typeof button>;\n","<script lang=\"ts\" setup>\n import { ButtonProps } from './button';\n\n defineProps(ButtonProps);\n\n defineOptions({\n name: 'IButton',\n });\n</script>\n\n<template>\n <button class=\"mu-button\" :class=\"type\">\n <slot></slot>\n </button>\n</template>\n","import { withInstall } from '../../utils/install';\nimport Button from './src/button.vue';\n\nexport const IButton = withInstall(Button); // 增加类型\n\nexport default IButton;\n","import type { App, Plugin } from 'vue';\n\nimport { IButton } from './components/button';\n\nconst component = [IButton] as Plugin[];\n\nexport const install = function (app: App) {\n component.forEach((i) => app.use(i));\n};\n\nexport default {\n install,\n};\n","// utils 用例\nexport function developFn() {\n console.log('developFn');\n}\n","export * from './install';\nexport * from './myDevelop';\n\n\nexport function formatValue(value: number | string): string {\n if (typeof value === 'number') {\n return `${value}px`;\n } else if (typeof value === 'string') {\n // 检查是否已经带有 px 单位或其他单位\n if (value.endsWith('px') || value.endsWith('%')) {\n return value; // 直接返回已有单位的字符串\n }\n return `${value}px`; // 其他字符串类型的值加上 px\n }\n return '';\n}","import { type AppContext, type Component, type ComponentInternalInstance, getCurrentInstance, nextTick, render } from 'vue'\n\nimport { type PopWindowInfoProps, type PopWindowProps } from './interface'\nimport { ElScrollbar } from 'element-plus'\nimport { formatValue } from '../../../utils'\n\nlet appContextConst: AppContext | undefined\nlet popWindowList: Array<any> = []\nconst getBody = (): Element => {\n return document.querySelector('body') as HTMLBodyElement\n}\n/**\n * 显示弹出窗口\n *\n * 此函数用于创建并显示一个弹出窗口,支持自定义样式和内容通过参数传递\n * 可以选择附加到特定的父元素,并且在渲染后会将自身添加到弹出窗口列表中\n *\n * @param props 弹出窗口的属性,包括位置、尺寸等样式属性以及附加属性\n * @param component 可选参数,用于指定弹出窗口内渲染的自定义组件类型,如果props中传了render函数,则无效\n * @param componentProps 可选参数,传递给自定义组件的属性\n */\nexport const showPopWindow = (props: PopWindowProps, component?: Component, componentProps?: any) => {\n const op = {\n left: 'auto',\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n // width: 'auto',\n // height: 'auto',\n position: 'absolute',\n id: 'popwindow_' + Math.ceil(Math.random() * 1000000),\n animate: false,\n animateInClass: 'animate__animated animate__faster animate__fadeIn',\n animateOutClass: 'animate__animated animate__faster animate__fadeOut'\n }\n let propsFormat = { ...props }\n if (props.left !== undefined) propsFormat.left = formatValue(propsFormat.left)\n if (props.top !== undefined) propsFormat.top = formatValue(propsFormat.top)\n if (props.width !== undefined) propsFormat.width = formatValue(propsFormat.width)\n if (props.height !== undefined) propsFormat.height = formatValue(propsFormat.height)\n\n const option: PopWindowProps = Object.assign(op, propsFormat)\n const close = () => {\n closePopWindowById(option.id)\n }\n\n // 相同的id只会存在一个\n closePopWindowById(option.id)\n let animateClass = option.animate ? option.animateInClass : ''\n\n const vm = (\n <div\n class={'popWindow ' + animateClass}\n style={{\n width: option.width,\n height: option.height,\n left: option.left,\n right: option.right,\n top: option.top,\n bottom: option.bottom,\n position: option.position\n }}>\n <ElScrollbar>\n {props.render ? props.render({ close, option }) : <component is={component} {...componentProps} onClose={() => close()}></component>}\n </ElScrollbar>\n </div>\n )\n vm.appContext = appContextConst\n // 这里是为了让插槽的子组件能获取到appContext\n if (vm.children?.length) {\n vm.children[0].appContext = appContextConst\n }\n const container = document.createElement('div')\n container.id = 'popwindow_' + Math.ceil(Math.random() * 1000000)\n container.style.pointerEvents = 'auto'\n\n let parentEl = getBody()\n if (props.appendParent) {\n parentEl = document.getElementById(props.appendParent)\n }\n parentEl.appendChild(container)\n render(vm, container)\n\n nextTick(() => {\n const popWindowInfo = { id: option.id, tag: option.tag, node: container, option }\n popWindowList.push(popWindowInfo)\n })\n return { id: option.id, close }\n}\nconst removePopWindow = (popWindowInfo: PopWindowInfoProps) => {\n if (!popWindowInfo) return\n const { option, node } = popWindowInfo\n option.onClose?.()\n if (option.animate) {\n const popWindowNode = node.querySelector('.popWindow')\n popWindowNode.className = 'popWindow ' + option.animateOutClass\n popWindowNode.addEventListener('animationend', () => {\n render(null, node)\n node.remove()\n popWindowList.splice(popWindowList.indexOf(popWindowInfo), 1)\n })\n } else {\n render(null, node)\n node.remove()\n popWindowList.splice(popWindowList.indexOf(popWindowInfo), 1)\n }\n}\n\n/**\n * 根据ID关闭弹出窗口\n *\n * @param id 弹出窗口的唯一标识符\n */\nexport const closePopWindowById = (id: string) => {\n const popWindowItem = popWindowList.find((item) => item.id === id)\n if (popWindowItem) {\n removePopWindow(popWindowItem)\n }\n}\n\n/**\n * 根据tag关闭弹出窗口\n *\n * @param tag 弹出窗口的tag\n */\nexport const closePopWindowByTag = (tag: string) => {\n const popWindows = popWindowList.filter((item) => item.tag === tag)\n popWindows.forEach((item) => removePopWindow(item))\n}\n\n/**\n * 获取所有弹窗信息\n *\n * @returns {PopWindowInfoProps[]} 所有弹窗的列表\n */\nexport const getAllPopWindows = (): PopWindowInfoProps[] => {\n return popWindowList\n}\n\nexport const initPopWindow = (ctx?: ComponentInternalInstance) => {\n const { appContext } = ctx || getCurrentInstance() || {}\n appContextConst = appContext\n\n return { showPopWindow }\n}\n","import { type ComponentInternalInstance, getCurrentInstance } from 'vue'\n\nimport { closePopWindowById, closePopWindowByTag, initPopWindow, showPopWindow, getAllPopWindows } from './src/index'\nimport { type PopWindowInfoProps, type PopWindowProps } from './src/interface'\n\nexport { showPopWindow, closePopWindowById, closePopWindowByTag, getAllPopWindows }\nexport type { PopWindowInfoProps, PopWindowProps }\nexport const usePopWindow = (ctx?: any) => {\n const thisAppContext = ctx || (getCurrentInstance() as ComponentInternalInstance)\n const { showPopWindow } = initPopWindow(thisAppContext)\n return { showPopWindow }\n}\n","import { type AppContext, type Component, type ComponentInternalInstance, getCurrentInstance, ref, render, unref, type VNode } from 'vue'\n\nimport { type DialogProps, ElButton, ElConfigProvider, ElDialog, ElScrollbar } from 'element-plus'\n\nconst prefixClass = 'work-dialog'\n\nlet id = 0\n\nlet appContextConst: AppContext | undefined\n\nconst getFather = (): Element => {\n return document.querySelector('body') as HTMLBodyElement\n}\n\nexport interface ZnDialogProps extends Partial<DialogProps> {\n render?: () => VNode // 内容渲染 TSX\n headerRender?: (scope: any) => VNode // 头部渲染 TSX\n footerRender?: () => VNode // 底部渲染 TSX\n showFooter?: boolean // 是否渲染底部,默认 true\n onConfirm?: (closeDialog: () => void) => void // 确认按钮点击事件\n onClose?: (closeDialog: () => void) => void // 关闭按钮点击事件\n height?: string // 内容高度,默认 400px\n}\n\nconst isShow = ref(true)\n\n/**\n * @description 关闭弹框\n */\nexport const closeDialog = () => {\n isShow.value = false\n setTimeout(() => {\n const vm = document.querySelector(`#${prefixClass}-${id--}`) as HTMLElement\n if (vm) {\n render(null, vm)\n getFather().removeChild(vm)\n }\n isShow.value = true\n }, 500)\n}\n\nconst handleClose = (dialogProps?: ZnDialogProps) => {\n if (dialogProps?.onClose) dialogProps?.onClose(closeDialog)\n return closeDialog()\n}\n\nconst handleConfirm = (dialogProps?: ZnDialogProps) => {\n if (dialogProps?.onConfirm) dialogProps?.onConfirm(closeDialog)\n return closeDialog()\n}\n/**\n * 内容渲染方式有两种\n * 方式 1:在第一个参数里写 render,即可实现 el-dialog 的内容渲染\n * 方式 2:第二个参数为组件,第三个参数为组件的 props\n *\n * 在第一个参数里写 headerRender 和 footerRender,可以自定义 el-dialog 的 header 和 footer\n */\nexport const showDialog = (dialogProps: ZnDialogProps, component?: Component, componentsProps?: any) => {\n const layoutSize = ref('default')\n\n const contentHeight = ref(dialogProps.height)\n\n const vm = (\n <ElConfigProvider namespace=\"el\" size={unref(layoutSize)}>\n <ElDialog\n modelValue={isShow.value}\n title=\"弹框\"\n width=\"50%\"\n before-close={() => handleClose(dialogProps)}\n close-on-click-modal={true}\n {...dialogProps}\n render\n headerRender\n footerRender\n class={prefixClass}>\n {{\n default: () => {\n if (dialogProps.render) {\n return (\n <ElScrollbar\n style={{\n height: unref(contentHeight)\n }}>\n {dialogProps.render()}\n </ElScrollbar>\n )\n }\n return (\n <ElScrollbar style={{ height: unref(contentHeight) }}>\n <component is={component} {...componentsProps} onCloseDialog={() => closeDialog()}></component>\n </ElScrollbar>\n )\n },\n header: (scope: any) => {\n if (dialogProps?.headerRender) return dialogProps.headerRender(scope)\n return (\n <div style=\"display: flex\">\n <span class={`el-dialog__title`} style=\"flex: 1\">\n {dialogProps.title}\n </span>\n </div>\n )\n },\n footer: () => {\n if (dialogProps.footerRender) return dialogProps.footerRender()\n if (dialogProps.showFooter === false) return\n return (\n <>\n <ElButton onClick={() => handleClose(dialogProps)}>取 消</ElButton>\n <ElButton type=\"primary\" onClick={() => handleConfirm(dialogProps)}>\n 确 定\n </ElButton>\n </>\n )\n }\n }}\n </ElDialog>\n </ElConfigProvider>\n )\n\n vm.appContext = appContextConst\n vm.children?.length && (vm.children[0].appContext = appContextConst)\n\n const container = document.createElement('div')\n container.id = `${prefixClass}-${++id}`\n getFather().appendChild(container)\n render(vm, container)\n}\n\nexport const initDialog = (ctx?: ComponentInternalInstance) => {\n const { appContext } = ctx || getCurrentInstance() || {}\n appContextConst = appContext\n\n return { showDialog }\n}\n","import { type ComponentInternalInstance, getCurrentInstance } from 'vue'\n\nimport { closeDialog, initDialog, type ZnDialogProps } from './src/index'\n\nexport { type ZnDialogProps }\n\nexport const useDialog = (ctx?: any) => {\n const thisAppContext = ctx || (getCurrentInstance() as ComponentInternalInstance)\n const { showDialog } = initDialog(thisAppContext)\n\n return { open: showDialog, close: closeDialog }\n}\n","/**\r\n * v-copy\r\n * 复制某个值至剪贴板\r\n * 接收参数:string类型/Ref<string>类型/Reactive<string>类型\r\n */\r\n\r\nimport { ElMessage } from 'element-plus'\r\nimport type { Directive, DirectiveBinding } from 'vue'\r\ninterface ElType extends HTMLElement {\r\n copyData: string | number;\r\n}\r\nconst copy: Directive = {\r\n mounted(el: ElType, binding: DirectiveBinding) {\r\n el.copyData = binding.value\r\n el.addEventListener('click', handleClick)\r\n },\r\n updated(el: ElType, binding: DirectiveBinding) {\r\n el.copyData = binding.value\r\n },\r\n beforeUnmount(el: ElType) {\r\n el.removeEventListener('click', handleClick)\r\n }\r\n}\r\n\r\nasync function handleClick(this: any) {\r\n try {\r\n await navigator.clipboard.writeText(this.copyData)\r\n ElMessage({\r\n type: 'success',\r\n message: '复制成功'\r\n })\r\n } catch (err) {\r\n console.error('复制操作不被支持或失败: ', err)\r\n }\r\n}\r\n\r\nexport default copy\r\n"],"names":["s","r","__name","t","e","withInstall","main","app","comp","withInstallDirectives","name","ButtonProps","_sfc_render","_ctx","_cache","$props","type","$data","$options","_normalizeClass","IButton","Button","component","install","i","r$2","l","o","n","developFn","formatValue","value","appContextConst","popWindowList","getBody","document","querySelector","showPopWindow","props","componentProps","op","left","top","right","bottom","position","id","Math","ceil","random","animate","animateInClass","animateOutClass","propsFormat","undefined","width","height","option","Object","assign","close","closePopWindowById","animateClass","vm","_createVNode","ElScrollbar","default","render","_mergeProps","onClose","appContext","children","length","container","createElement","style","pointerEvents","parentEl","appendParent","getElementById","appendChild","nextTick","popWindowInfo","tag","node","push","removePopWindow","popWindowNode","className","addEventListener","remove","splice","indexOf","popWindowItem","find","item","closePopWindowByTag","filter","forEach","getAllPopWindows","initPopWindow","ctx","getCurrentInstance","usePopWindow","thisAppContext","_isSlot","prototype","toString","call","_isVNode","prefixClass","getFather","isShow","ref","closeDialog","setTimeout","removeChild","handleClose","dialogProps","handleConfirm","onConfirm","showDialog","componentsProps","layoutSize","contentHeight","ElConfigProvider","unref","ElDialog","before-close","_slot","onCloseDialog","header","scope","headerRender","title","footer","footerRender","showFooter","_Fragment","ElButton","onClick","_createTextVNode","initDialog","p","useDialog","copy","el","binding","handleClick","ElMessage","err"],"mappings":"ucAIO,IAAAA,GAAA,OAAA,eAAAC,EAAAC,EAAA,CAAAC,EAAAC,IAAAJ,GAAAG,EAAA,OAAA,CAAA,MAAAC,EAAA,aAAA,EAAA,CAAA,EAAA,OAAA,MAAMC,EAAcH,EAAII,IAC5BA,EAA2B,QAAWC,GAAc,CACnD,MAAMC,EAA4BF,EAClCC,EAAI,UAAUC,EAAK,KAAMA,CAAI,CAC/B,EACOF,GALkB,aAAA,EASdG,GAAwBP,EAAA,CAAsBI,EAASI,KAC3D,CACL,QAASR,EAACK,GAAmB,CAC3BA,EAAI,UAAUG,EAAMJ,CAAI,CAC1B,EAFS,SAGT,EAAA,UAAWA,CACb,GANmC,uBAAA,ECRxBK,GAAc,CACzB,KAAM,CACJ,KAAM,OACN,QAAS,SACX,CACF,kVCCeC,EAXfC,EAAAC,EAWgBC,EAAoBC,EAAIC,EAAAC,EAAA,wBACpC,MAAaC,EAAA,CAAA,YAAAN,EAAA,IAAA,CAAA,CAAA,6BADFD,EAAAA,EAAAA,OAAAV,GAAAU,EAAA,oECRR,MAAMQ,EAAUf,EAAYgB,EAAM,yFCCzC,MAAMC,GAAY,CAACF,CAAO,EAEbG,EAAUrB,GAAA,SAAUK,EAAU,CACzCe,GAAU,QAASE,GAAMjB,EAAI,IAAIiB,CAAC,CAAC,CACrC,EAFuB,SAAA,EAIvB,IAAeC,GAAA,CACb,QAAAF,CACF,ECXOG,GAAA,OA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B,EAAY,MAAOP,CAAY,CAChD,EALyB,WAAA,ECAzB,IAAAjH,GAAA,OAAA,eAAAuB,GAAAtB,EAAA,CAAA,EAAA,IAAAD,GAAA,EAAA,OAAA,CAAA,MAAA,EAAA,aAAA,EAAA,CAAA,EAAA,KAKA,MAAMgJ,GAAkB,CACtB,QAAQC,EAAYC,EAA2B,CAC7CD,EAAG,SAAWC,EAAQ,MACtBD,EAAG,iBAAiB,QAASE,CAAW,CAC1C,EACA,QAAQF,EAAYC,EAA2B,CAC7CD,EAAG,SAAWC,EAAQ,KACxB,EACA,cAAcD,EAAY,CACxBA,EAAG,oBAAoB,QAASE,CAAW,CAC7C,CACF,EAEA,eAAeA,GAAuB,CACpC,GAAI,CACF,MAAM,UAAU,UAAU,UAAU,KAAK,QAAQ,EACjDC,GAAU,CACR,KAAM,UACN,QAAS,0BACX,CAAC,CACH,OAASC,EAAK,CACZ,QAAQ,MAAM,uEAAiBA,CAAG,CACpC,CACF,CAVeF,EAAAA,EAAAA,KAAAlJ,GAAAkJ,EAAA"}
|
|
1
|
+
{"version":3,"file":"index.cdn.mjs","sources":["../../../packages/utils/install.ts","../../../packages/components/button/src/button.ts","../../../packages/components/button/src/button.vue","../../../packages/components/button/index.ts","../../../packages/installer.ts","../../../packages/components/znChart/src/znChart.vue","../../../packages/components/znChart/index.ts","../../../packages/utils/myDevelop.ts","../../../packages/utils/index.ts","../../../packages/hooks/usePopWindow/src/index.tsx","../../../packages/hooks/usePopWindow/index.ts","../../../packages/hooks/useDialog/src/index.tsx","../../../packages/hooks/useDialog/index.ts","../../../packages/directives/modules/copy.ts","../../../packages/directives/modules/drag.ts","../../../packages/directives/modules/autoScroll.ts","../../../packages/directives/modules/tooltip.tsx","../../../packages/directives/modules/confirm.tsx"],"sourcesContent":["import type { App, Directive } from 'vue';\nimport type { SFCWithInstall } from '../types';\n\n// 注册组件\nexport const withInstall = <T>(main: T) => {\n (main as SFCWithInstall<T>).install = (app): void => {\n const comp: Record<string, any> = main as Record<string, any>;\n app.component(comp.name, comp);\n };\n return main as SFCWithInstall<T>;\n};\n\n// 注册指令\nexport const withInstallDirectives = <T extends Directive>(main: T, name: string) => {\n return {\n install: (app: App): void => {\n app.directive(name, main);\n },\n directive: main,\n };\n};\n","import type { ExtractPropTypes, PropType } from 'vue';\nimport type button from './button.vue';\n\nexport type Type = 'primary' | 'success' | 'error';\n\nexport const ButtonProps = {\n type: {\n type: String as PropType<Type>,\n default: 'default',\n },\n};\n\nexport type ButtonPropsType = ExtractPropTypes<typeof ButtonProps>;\nexport type ButtonInstanceType = InstanceType<typeof button>;\n","<script lang=\"ts\" setup>\n import { ButtonProps } from './button';\n\n defineProps(ButtonProps);\n\n defineOptions({\n name: 'IButton',\n });\n</script>\n\n<template>\n <button class=\"mu-button\" :class=\"type\">\n <slot></slot>\n </button>\n</template>\n","import { withInstall } from '../../utils/install';\nimport Button from './src/button.vue';\n\nexport const IButton = withInstall(Button); // 增加类型\n\nexport default IButton;\n","import type { App, Plugin } from 'vue';\n\nimport { IButton } from './components/button';\n\nconst component = [IButton] as Plugin[];\n\nexport const install = function (app: App) {\n component.forEach((i) => app.use(i));\n};\n\nexport default {\n install,\n};\n","<template>\n <div ref=\"chartRef\" class=\"chart-div\" :style=\"{ width: props.width, height: props.height }\"></div>\n</template>\n\n<script setup lang=\"ts\">\n import { markRaw, onBeforeUnmount, onMounted, ref, watch } from 'vue'\n import * as echarts from 'echarts'\n\n const props = defineProps({\n option: {\n type: Object,\n default: () => {\n return {\n xAxis: {\n type: 'category',\n data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']\n },\n yAxis: {\n type: 'value'\n },\n series: [\n {\n data: [150, 230, 224, 218, 135, 147, 260],\n type: 'line'\n }\n ]\n }\n }\n },\n width: {\n type: String,\n default: '500px'\n },\n height: {\n type: String,\n default: '400px'\n },\n loading: {\n type: Boolean,\n default: false\n }\n })\n\n const chartRef = ref(null)\n const chartInstance = ref()\n\n // 绘制\n const draw = () => {\n if (chartInstance.value && props.option) {\n chartInstance.value.setOption(props.option, true)\n }\n }\n\n const init = () => {\n if (!chartRef.value) return\n\n // 校验 Dom 节点上是否已经挂载了 ECharts 实例,只有未挂载时才初始化\n chartInstance.value = echarts.getInstanceByDom(chartRef.value)\n if (!chartInstance.value) {\n chartInstance.value = markRaw(echarts.init(chartRef.value))\n draw()\n }\n }\n\n // 对父组件暴露获取Echarts的实例\n defineExpose({\n getInstance: () => chartInstance.value,\n draw\n })\n\n watch(\n () => props.option,\n () => {\n draw()\n },\n {\n deep: true,\n immediate: true\n }\n )\n watch(\n () => props.loading,\n (loading) => {\n if (loading) {\n chartInstance.value.showLoading()\n } else {\n chartInstance.value.hideLoading()\n }\n }\n )\n\n onMounted(() => {\n init()\n })\n\n onBeforeUnmount(() => {\n // 容器被销毁之后,销毁实例,避免内存泄漏\n chartInstance.value?.dispose()\n })\n</script>\n","import { withInstall } from '../../utils/install';\nimport ZnChartCom from './src/znChart.vue';\n\nexport const ZnChart = withInstall(ZnChartCom); // 增加类型\n\nexport default ZnChart;\n","// utils 用例\nexport function developFn() {\n console.log('developFn');\n}\n","export * from './install'\nexport * from './myDevelop'\n\nexport function formatValue(value: number | string): string {\n if (typeof value === 'number') {\n return `${value}px`\n } else if (typeof value === 'string') {\n // 检查是否已经带有 px 单位或其他单位\n if (value.endsWith('px') || value.endsWith('%')) {\n return value // 直接返回已有单位的字符串\n }\n return `${value}px` // 其他字符串类型的值加上 px\n }\n return ''\n}\n","import { type AppContext, type Component, type ComponentInternalInstance, getCurrentInstance, nextTick, render } from 'vue'\n\nimport { type PopWindowInfoProps, type PopWindowProps } from './interface'\nimport { ElScrollbar } from 'element-plus'\nimport { formatValue } from '../../../utils'\n\nlet appContextConst: AppContext | undefined\nlet popWindowList: Array<any> = []\nconst getBody = (): Element => {\n return document.querySelector('body') as HTMLBodyElement\n}\n/**\n * 显示弹出窗口\n *\n * 此函数用于创建并显示一个弹出窗口,支持自定义样式和内容通过参数传递\n * 可以选择附加到特定的父元素,并且在渲染后会将自身添加到弹出窗口列表中\n *\n * @param props 弹出窗口的属性,包括位置、尺寸等样式属性以及附加属性\n * @param component 可选参数,用于指定弹出窗口内渲染的自定义组件类型,如果props中传了render函数,则无效\n * @param componentProps 可选参数,传递给自定义组件的属性\n */\nexport const showPopWindow = (props: PopWindowProps, component?: Component, componentProps?: any) => {\n const op = {\n left: 'auto',\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n // width: 'auto',\n // height: 'auto',\n position: 'absolute',\n id: 'popwindow_' + Math.ceil(Math.random() * 1000000),\n animate: false,\n animateInClass: 'animate__animated animate__faster animate__fadeIn',\n animateOutClass: 'animate__animated animate__faster animate__fadeOut'\n }\n let propsFormat = { ...props }\n if (props.left !== undefined) propsFormat.left = formatValue(propsFormat.left)\n if (props.top !== undefined) propsFormat.top = formatValue(propsFormat.top)\n if (props.width !== undefined) propsFormat.width = formatValue(propsFormat.width)\n if (props.height !== undefined) propsFormat.height = formatValue(propsFormat.height)\n\n const option: PopWindowProps = Object.assign(op, propsFormat)\n const close = () => {\n closePopWindowById(option.id)\n }\n\n // 相同的id只会存在一个\n closePopWindowById(option.id)\n let animateClass = option.animate ? option.animateInClass : ''\n\n const vm = (\n <div\n class={'popWindow ' + animateClass}\n style={{\n width: option.width,\n height: option.height,\n left: option.left,\n right: option.right,\n top: option.top,\n bottom: option.bottom,\n position: option.position\n }}>\n <ElScrollbar>\n {props.render ? props.render({ close, option }) : <component is={component} {...componentProps} onClose={() => close()}></component>}\n </ElScrollbar>\n </div>\n )\n vm.appContext = appContextConst\n // 这里是为了让插槽的子组件能获取到appContext\n if (vm.children?.length) {\n vm.children[0].appContext = appContextConst\n }\n const container = document.createElement('div')\n container.id = 'popwindow_' + Math.ceil(Math.random() * 1000000)\n container.style.pointerEvents = 'auto'\n\n let parentEl = getBody()\n if (props.appendParent) {\n parentEl = document.getElementById(props.appendParent)\n }\n parentEl.appendChild(container)\n render(vm, container)\n\n nextTick(() => {\n const popWindowInfo = { id: option.id, tag: option.tag, node: container, option }\n popWindowList.push(popWindowInfo)\n })\n return { id: option.id, close }\n}\nconst removePopWindow = (popWindowInfo: PopWindowInfoProps) => {\n if (!popWindowInfo) return\n const { option, node } = popWindowInfo\n option.onClose?.()\n if (option.animate) {\n const popWindowNode = node.querySelector('.popWindow')\n popWindowNode.className = 'popWindow ' + option.animateOutClass\n popWindowNode.addEventListener('animationend', () => {\n render(null, node)\n node.remove()\n popWindowList.splice(popWindowList.indexOf(popWindowInfo), 1)\n })\n } else {\n render(null, node)\n node.remove()\n popWindowList.splice(popWindowList.indexOf(popWindowInfo), 1)\n }\n}\n\n/**\n * 根据ID关闭弹出窗口\n *\n * @param id 弹出窗口的唯一标识符\n */\nexport const closePopWindowById = (id: string) => {\n const popWindowItem = popWindowList.find((item) => item.id === id)\n if (popWindowItem) {\n removePopWindow(popWindowItem)\n }\n}\n\n/**\n * 根据tag关闭弹出窗口\n *\n * @param tag 弹出窗口的tag\n */\nexport const closePopWindowByTag = (tag: string) => {\n const popWindows = popWindowList.filter((item) => item.tag === tag)\n popWindows.forEach((item) => removePopWindow(item))\n}\n\n/**\n * 获取所有弹窗信息\n *\n * @returns {PopWindowInfoProps[]} 所有弹窗的列表\n */\nexport const getAllPopWindows = (): PopWindowInfoProps[] => {\n return popWindowList\n}\n\nexport const initPopWindow = (ctx?: ComponentInternalInstance) => {\n const { appContext } = ctx || getCurrentInstance() || {}\n appContextConst = appContext\n\n return { showPopWindow }\n}\n","import { type ComponentInternalInstance, getCurrentInstance } from 'vue'\n\nimport { closePopWindowById, closePopWindowByTag, initPopWindow, showPopWindow, getAllPopWindows } from './src/index'\nimport { type PopWindowInfoProps, type PopWindowProps } from './src/interface'\n\nexport { showPopWindow, closePopWindowById, closePopWindowByTag, getAllPopWindows }\nexport type { PopWindowInfoProps, PopWindowProps }\nexport const usePopWindow = (ctx?: any) => {\n const thisAppContext = ctx || (getCurrentInstance() as ComponentInternalInstance)\n const { showPopWindow } = initPopWindow(thisAppContext)\n return { showPopWindow }\n}\n","import { type AppContext, type Component, type ComponentInternalInstance, getCurrentInstance, ref, render, unref, type VNode } from 'vue'\n\nimport { type DialogProps, ElButton, ElConfigProvider, ElDialog, ElScrollbar } from 'element-plus'\n\nconst prefixClass = 'work-dialog'\n\nlet id = 0\n\nlet appContextConst: AppContext | undefined\n\nconst getFather = (): Element => {\n return document.querySelector('body') as HTMLBodyElement\n}\n\nexport interface ZnDialogProps extends Partial<DialogProps> {\n render?: () => VNode // 内容渲染 TSX\n headerRender?: (scope: any) => VNode // 头部渲染 TSX\n footerRender?: () => VNode // 底部渲染 TSX\n showFooter?: boolean // 是否渲染底部,默认 true\n onConfirm?: (closeDialog: () => void) => void // 确认按钮点击事件\n onClose?: (closeDialog: () => void) => void // 关闭按钮点击事件\n height?: string // 内容高度,默认 400px\n}\n\nconst isShow = ref(true)\n\n/**\n * @description 关闭弹框\n */\nexport const closeDialog = () => {\n isShow.value = false\n setTimeout(() => {\n const vm = document.querySelector(`#${prefixClass}-${id--}`) as HTMLElement\n if (vm) {\n render(null, vm)\n getFather().removeChild(vm)\n }\n isShow.value = true\n }, 500)\n}\n\nconst handleClose = (dialogProps?: ZnDialogProps) => {\n if (dialogProps?.onClose) dialogProps?.onClose(closeDialog)\n return closeDialog()\n}\n\nconst handleConfirm = (dialogProps?: ZnDialogProps) => {\n if (dialogProps?.onConfirm) dialogProps?.onConfirm(closeDialog)\n return closeDialog()\n}\n/**\n * 内容渲染方式有两种\n * 方式 1:在第一个参数里写 render,即可实现 el-dialog 的内容渲染\n * 方式 2:第二个参数为组件,第三个参数为组件的 props\n *\n * 在第一个参数里写 headerRender 和 footerRender,可以自定义 el-dialog 的 header 和 footer\n */\nexport const showDialog = (dialogProps: ZnDialogProps, component?: Component, componentsProps?: any) => {\n const layoutSize = ref('default')\n\n const contentHeight = ref(dialogProps.height)\n\n const vm = (\n <ElConfigProvider namespace=\"el\" size={unref(layoutSize)}>\n <ElDialog\n modelValue={isShow.value}\n title=\"弹框\"\n width=\"50%\"\n before-close={() => handleClose(dialogProps)}\n close-on-click-modal={true}\n {...dialogProps}\n render\n headerRender\n footerRender\n class={prefixClass}>\n {{\n default: () => {\n if (dialogProps.render) {\n return (\n <ElScrollbar\n style={{\n height: unref(contentHeight)\n }}>\n {dialogProps.render()}\n </ElScrollbar>\n )\n }\n return (\n <ElScrollbar style={{ height: unref(contentHeight) }}>\n <component is={component} {...componentsProps} onCloseDialog={() => closeDialog()}></component>\n </ElScrollbar>\n )\n },\n header: (scope: any) => {\n if (dialogProps?.headerRender) return dialogProps.headerRender(scope)\n return (\n <div style=\"display: flex\">\n <span class={`el-dialog__title`} style=\"flex: 1\">\n {dialogProps.title}\n </span>\n </div>\n )\n },\n footer: () => {\n if (dialogProps.footerRender) return dialogProps.footerRender()\n if (dialogProps.showFooter === false) return\n return (\n <>\n <ElButton onClick={() => handleClose(dialogProps)}>取 消</ElButton>\n <ElButton type=\"primary\" onClick={() => handleConfirm(dialogProps)}>\n 确 定\n </ElButton>\n </>\n )\n }\n }}\n </ElDialog>\n </ElConfigProvider>\n )\n\n vm.appContext = appContextConst\n vm.children?.length && (vm.children[0].appContext = appContextConst)\n\n const container = document.createElement('div')\n container.id = `${prefixClass}-${++id}`\n getFather().appendChild(container)\n render(vm, container)\n}\n\nexport const initDialog = (ctx?: ComponentInternalInstance) => {\n const { appContext } = ctx || getCurrentInstance() || {}\n appContextConst = appContext\n\n return { showDialog }\n}\n","import { type ComponentInternalInstance, getCurrentInstance } from 'vue'\n\nimport { closeDialog, initDialog, type ZnDialogProps } from './src/index'\n\nexport { type ZnDialogProps }\n\nexport const useDialog = (ctx?: any) => {\n const thisAppContext = ctx || (getCurrentInstance() as ComponentInternalInstance)\n const { showDialog } = initDialog(thisAppContext)\n\n return { open: showDialog, close: closeDialog }\n}\n","/**\n * v-copy\n * 复制某个值至剪贴板\n * 接收参数:string类型/Ref<string>类型/Reactive<string>类型\n */\n\nimport { ElMessage } from 'element-plus'\nimport type { Directive, DirectiveBinding } from 'vue'\ninterface ElType extends HTMLElement {\n copyData: string | number\n}\nconst copy: Directive = {\n mounted(el: ElType, binding: DirectiveBinding) {\n el.copyData = binding.value\n el.addEventListener('click', handleClick)\n },\n updated(el: ElType, binding: DirectiveBinding) {\n el.copyData = binding.value\n },\n beforeUnmount(el: ElType) {\n el.removeEventListener('click', handleClick)\n }\n}\n\nasync function handleClick(this: any) {\n try {\n await navigator.clipboard.writeText(this.copyData)\n ElMessage({\n type: 'success',\n message: '复制成功'\n })\n } catch (err) {\n console.error('复制操作不被支持或失败: ', err)\n }\n}\n\nexport default copy\n","import type { Directive, DirectiveBinding } from 'vue'\n\n/**\n * @description: 拖动指令\n * @param {String} draggableClass 能拖动的子class,如果不传,则默认为整个父级都可以拖动, 'none' 没有拖动\n */\nconst vDrag: Directive = {\n mounted: (el: HTMLElement, binding: DirectiveBinding) => {\n const { draggableClass } = binding.value || {}\n let draggableEl = el\n\n if (draggableClass) {\n draggableEl = el.querySelector('.' + draggableClass)\n }\n\n // 默认父元素为当前元素的父元素\n let parentEl = el.parentElement\n\n // 检查是否传入了 .parent 修饰符\n const hasParentModifier = binding.modifiers.parent\n\n if (hasParentModifier) {\n // 如果有 .parent 修饰符,则限制在父元素内\n if (!parentEl) {\n parentEl = document.body // 如果没有找到父元素,则使用 body\n }\n } else {\n // 如果没有 .parent 修饰符,则不限制拖动范围\n parentEl = null // 表示没有限制\n }\n\n // 计算拖动范围\n const maxLeft = parentEl ? parentEl.clientWidth - el.clientWidth : Infinity\n const maxTop = parentEl ? parentEl.clientHeight - el.clientHeight : Infinity\n\n if (draggableEl) {\n draggableEl.onmousedown = (eDown) => {\n const divx = eDown.pageX - el.offsetLeft\n const divy = eDown.pageY - el.offsetTop\n\n document.onmousemove = (e) => {\n let left = e.pageX - divx\n let top = e.pageY - divy\n\n // 确保不超出父元素的右侧和底部,或允许无限制拖动\n if (parentEl) {\n left = left < 0 ? 0 : left > maxLeft ? maxLeft : left\n top = top < 0 ? 0 : top > maxTop ? maxTop : top\n }\n\n el.style.left = left + 'px'\n el.style.top = top + 'px'\n }\n\n document.onmouseup = function () {\n document.onmousemove = null\n document.onmouseup = null\n }\n }\n }\n }\n}\nexport default vDrag\n","import type { Directive } from 'vue'\n\n/**\n * @description: 列表自动滚动指令\n * @param {Boolean} mouse 指令后面直接.mouse就可以加入鼠标移入暂停移出继续运动\n * @param {Boolean} speed 滚动速度\n */\n\nconst RAF = window.requestAnimationFrame\nconst CancelRAF = window.cancelAnimationFrame\n\n// 滚动元素\nconst scrollElement = (el) => {\n const maxScrollTop = el.scrollHeight - el.clientHeight\n el.cacheScrollTop = el.cacheScrollTop + el.speed >= maxScrollTop ? 0 : el.cacheScrollTop + el.speed\n el.scrollTo({\n top: el.cacheScrollTop\n })\n el.animationId = RAF(scrollElement.bind(null, el))\n}\n\n// 鼠标移入暂停并允许滚动\nconst mouseEnterHandler = (el) => {\n if (el.animationId) {\n CancelRAF(el.animationId)\n el.animationId = undefined\n el.mouseInside = true\n }\n}\n\n// 鼠标移出继续运行\nconst mouseLeaveHandler = (el) => {\n if (el.animationId) {\n CancelRAF(el.animationId)\n el.animationId = undefined\n }\n el.mouseInside = false\n el.animationId = RAF(scrollElement.bind(null, el))\n}\n\n// 处理用户的滚动事件\nconst elementScrollHandler = (el) => (el.cacheScrollTop = el.scrollTop)\n\n// 鼠标滚轮事件处理\nconst wheelHandler = (el) => (event) => {\n el.scrollTop -= event.deltaY // 使用滚轮滚动\n}\n\n// 鼠标拖动事件处理\nlet isDragging = false\nlet startY = 0\nlet scrollTop = 0\n\nconst mouseDownHandler = (el) => (event) => {\n isDragging = true\n startY = event.pageY - el.offsetTop // 获取鼠标相对于元素的Y坐标\n scrollTop = el.scrollTop // 获取当前滚动位置\n el.style.cursor = 'grabbing' // 更改光标样式\n}\n\nconst mouseMoveHandler = (el) => (event) => {\n if (!isDragging) return\n event.preventDefault() // 防止选择文本\n const y = event.pageY - el.offsetTop // 获取当前鼠标Y坐标\n const walk = (y - startY) * 2 // 计算拖动的距离\n el.scrollTop = scrollTop - walk // 更新滚动位置\n}\n\nconst mouseUpHandler = (el) => () => {\n isDragging = false\n el.style.cursor = 'grab' // 恢复光标样式\n}\n\n// 移除事件监听\nconst removeEventListeners = (el, binding) => {\n if (el.animationId) {\n CancelRAF(el.animationId)\n el.animationId = undefined\n }\n\n if (binding.modifiers.mouse) {\n el.removeEventListener('mouseenter', mouseEnterHandler.bind(null, el))\n el.removeEventListener('mouseleave', mouseLeaveHandler.bind(null, el))\n\n el.removeEventListener('scroll', elementScrollHandler.bind(null, el))\n el.removeEventListener('wheel', wheelHandler(el))\n el.removeEventListener('mousedown', mouseDownHandler(el))\n el.removeEventListener('mousemove', mouseMoveHandler(el))\n el.removeEventListener('mouseup', mouseUpHandler(el))\n }\n}\n\n// 初始化自动滚动\nconst initAutoScroll = (el, binding) => {\n const maxScrollTop = el.scrollHeight - el.clientHeight\n if (maxScrollTop - 1 <= 0) {\n return\n }\n removeEventListeners(el, binding)\n el.speed = binding.value || 1\n el.cacheScrollTop = el.cacheScrollTop || 0\n\n if (binding.modifiers.mouse) {\n if (!el.mouseInside) {\n el.animationId = RAF(scrollElement.bind(null, el))\n }\n el.addEventListener('mouseenter', mouseEnterHandler.bind(null, el))\n el.addEventListener('mouseleave', mouseLeaveHandler.bind(null, el))\n\n el.addEventListener('scroll', elementScrollHandler.bind(null, el))\n el.addEventListener('wheel', wheelHandler(el))\n\n // 添加拖动事件\n el.addEventListener('mousedown', mouseDownHandler(el))\n el.addEventListener('mousemove', mouseMoveHandler(el))\n el.addEventListener('mouseup', mouseUpHandler(el))\n el.addEventListener('mouseleave', mouseUpHandler(el)) // 鼠标离开时也停止拖动\n } else {\n if (el.animationId) {\n CancelRAF(el.animationId)\n el.animationId = undefined\n }\n el.animationId = RAF(scrollElement.bind(null, el))\n }\n}\n\nconst vAutoScroll: Directive = {\n mounted(el, binding) {\n initAutoScroll(el, binding)\n },\n updated(el, binding) {\n initAutoScroll(el, binding)\n },\n unmounted(el, binding) {\n removeEventListeners(el, binding)\n }\n}\n\nexport default vAutoScroll\n","import type { Directive } from 'vue'\nimport { render } from 'vue'\nimport { ElTooltip } from 'element-plus'\n\nconst vTooltip: Directive = {\n mounted(el: HTMLElement, binding) {\n // 获取要显示的完整文本\n const tooltipContent = binding.value?.content || el.innerHTML // 从指令值中获取内容,或使用元素的内容\n const tooltipProps = binding.value || {} // 获取额外的属性\n\n // 获取最大行数,默认为 1\n const maxRows = binding.value?.row || 1\n\n // 清空原先元素的内容\n const originalHTML = el.innerHTML // 保存原始 HTML\n el.innerHTML = ''\n\n // 创建一个临时元素以测量文本宽度\n const tempSpan = document.createElement('span')\n tempSpan.style.visibility = 'hidden'\n tempSpan.style.whiteSpace = 'nowrap'\n tempSpan.innerHTML = originalHTML\n document.body.appendChild(tempSpan)\n\n // 判断文本是否超过最大宽度\n const exceedsMaxWidth = tempSpan.offsetWidth > el.clientWidth\n\n // 移除临时元素\n document.body.removeChild(tempSpan)\n\n if (exceedsMaxWidth) {\n // 只有当文本超过最大宽度时才创建 Tooltip\n // 设置元素的 CSS 样式\n el.style.overflow = 'hidden'\n el.style.cursor = 'pointer'\n const tooltip = (\n <ElTooltip content={tooltipContent} effect=\"dark\" {...tooltipProps}>\n <span\n style={{\n display: '-webkit-box',\n WebkitBoxOrient: 'vertical',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n WebkitLineClamp: maxRows,\n width: '100%'\n }}\n v-html={originalHTML}></span>\n </ElTooltip>\n )\n\n // 使用 render 函数将 Tooltip 挂载到元素上\n render(tooltip, el)\n } else {\n // 如果不超过宽度,直接显示原始内容\n el.innerHTML = originalHTML\n }\n }\n}\n\nexport default vTooltip\n","import type { Directive, DirectiveBinding } from 'vue'\nimport { render } from 'vue'\nimport { ElPopconfirm } from 'element-plus'\n\nconst addPopConfirm = (el: HTMLElement, binding: DirectiveBinding) => {\n const propsDefault = {\n title: '确定要执行此操作吗?',\n confirmButtonText: '确定',\n cancelButtonText: '取消'\n }\n const props = {\n ...propsDefault,\n ...binding.value\n }\n\n const vm = (\n <ElPopconfirm {...props}>\n {{\n reference: () => <span v-html={el.outerHTML}></span>\n }}\n </ElPopconfirm>\n )\n\n // debugger\n const newEl = document.createElement('span')\n render(vm, newEl)\n el.parentNode?.replaceChild(newEl, el)\n}\nconst vConfirm: Directive = {\n mounted(el: HTMLElement, binding: DirectiveBinding) {\n addPopConfirm(el, binding)\n },\n updated(el: HTMLElement, binding: DirectiveBinding) {\n addPopConfirm(el, binding)\n }\n}\n\nexport default vConfirm\n"],"names":["s","r","__name","t","e","withInstall","main","app","comp","withInstallDirectives","name","ButtonProps","_sfc_render","_ctx","_cache","$props","type","$data","$options","_normalizeClass","IButton","Button","component","install","i","r$3","props","__props","chartRef","ref","chartInstance","draw","init","echarts","markRaw","__expose","watch","loading","onMounted","onBeforeUnmount","_a","$setup","_openBlock","_createElementBlock","ZnChart","ZnChartCom","l","o","n","developFn","formatValue","value","appContextConst","popWindowList","getBody","document","querySelector","showPopWindow","componentProps","op","left","top","right","bottom","position","id","Math","ceil","random","animate","animateInClass","animateOutClass","propsFormat","undefined","width","height","option","Object","assign","close","closePopWindowById","animateClass","vm","_createVNode","ElScrollbar","default","render","_mergeProps","onClose","appContext","children","length","container","createElement","style","pointerEvents","parentEl","appendParent","getElementById","appendChild","nextTick","popWindowInfo","tag","node","push","removePopWindow","popWindowNode","className","addEventListener","remove","splice","indexOf","popWindowItem","find","item","closePopWindowByTag","filter","forEach","getAllPopWindows","initPopWindow","ctx","getCurrentInstance","usePopWindow","thisAppContext","_isSlot","prototype","toString","call","_isVNode","prefixClass","getFather","isShow","closeDialog","setTimeout","removeChild","handleClose","dialogProps","handleConfirm","onConfirm","showDialog","componentsProps","layoutSize","contentHeight","ElConfigProvider","unref","ElDialog","before-close","_slot","onCloseDialog","header","scope","headerRender","title","footer","footerRender","showFooter","_Fragment","ElButton","onClick","_createTextVNode","initDialog","p","useDialog","copy","el","binding","handleClick","ElMessage","err","m","vDrag","draggableClass","draggableEl","maxLeft","maxTop","eDown","divx","divy","RAF","CancelRAF","scrollElement","maxScrollTop","mouseEnterHandler","mouseLeaveHandler","elementScrollHandler","wheelHandler","event","isDragging","startY","scrollTop","mouseDownHandler","mouseMoveHandler","walk","mouseUpHandler","removeEventListeners","initAutoScroll","vAutoScroll","vTooltip","mounted","tooltipContent","content","innerHTML","tooltipProps","maxRows","row","originalHTML","tempSpan","visibility","whiteSpace","body","exceedsMaxWidth","offsetWidth","clientWidth","overflow","cursor","tooltip","ElTooltip","display","WebkitBoxOrient","textOverflow","WebkitLineClamp","addPopConfirm","confirmButtonText","cancelButtonText","ElPopconfirm","reference","outerHTML","newEl","parentNode","replaceChild","vConfirm","updated"],"mappings":"8lBAIO,IAAAA,GAAA,OAAA,eAAAC,EAAAC,EAAA,CAAAC,EAAAC,IAAAJ,GAAAG,EAAA,OAAA,CAAA,MAAAC,EAAA,aAAA,EAAA,CAAA,EAAA,OAAA,MAAMC,EAAcH,EAAII,IAC5BA,EAA2B,QAAWC,GAAc,CACnD,MAAMC,EAA4BF,EAClCC,EAAI,UAAUC,EAAK,KAAMA,CAAI,CAC/B,EACOF,GALkB,aAAA,EASdG,GAAwBP,EAAA,CAAsBI,EAASI,KAC3D,CACL,QAASR,EAACK,GAAmB,CAC3BA,EAAI,UAAUG,EAAMJ,CAAI,CAC1B,EAFS,SAGT,EAAA,UAAWA,CACb,GANmC,uBAAA,ECRxBK,GAAc,CACzB,KAAM,CACJ,KAAM,OACN,QAAS,SACX,CACF,iVCCeC,EAXfC,EAAAC,EAWgBC,EAAoBC,EAAIC,EAAAC,EAAA,wBACpC,MAAaC,GAAA,CAAA,YAAAN,EAAA,IAAA,CAAA,CAAA,8BADFD,EAAAA,EAAAA,OAAAV,GAAAU,EAAA,mECRR,MAAMQ,EAAUf,EAAYgB,EAAM,yFCCzC,MAAMC,GAAY,CAACF,CAAO,EAEbG,EAAUrB,GAAA,SAAUK,EAAU,CACzCe,GAAU,QAASE,GA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").SFCWithInstall<import("vue").DefineComponent<{
|
|
1
|
+
export declare const IButton: import("../../types").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
type: {
|
|
3
3
|
type: import("vue").PropType<import("./src/button").Type>;
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
|
-
}
|
|
6
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
7
|
type: {
|
|
8
8
|
type: import("vue").PropType<import("./src/button").Type>;
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
|
-
}
|
|
11
|
+
}>> & Readonly<{}>, {
|
|
12
12
|
type: import("./src/button").Type;
|
|
13
|
-
}, {}>>;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
14
14
|
export default IButton;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
type: {
|
|
3
3
|
type: import("vue").PropType<import("./button").Type>;
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
|
-
}
|
|
6
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
7
|
type: {
|
|
8
8
|
type: import("vue").PropType<import("./button").Type>;
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
|
-
}
|
|
11
|
+
}>> & Readonly<{}>, {
|
|
12
12
|
type: import("./button").Type;
|
|
13
|
-
}, {}>;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
14
|
export default _default;
|
package/es/components/index.d.ts
CHANGED
package/es/components/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|