@lazycatcloud/lzc-toolkit 0.0.92 → 0.0.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -680,7 +680,7 @@ const Z = (e, t) => {
|
|
|
680
680
|
for (const [o, l] of t)
|
|
681
681
|
n[o] = l;
|
|
682
682
|
return n;
|
|
683
|
-
}, Yt = /* @__PURE__ */ Z(Wt, [["__scopeId", "data-v-
|
|
683
|
+
}, Yt = /* @__PURE__ */ Z(Wt, [["__scopeId", "data-v-cef4a369"]]);
|
|
684
684
|
function Dn(e) {
|
|
685
685
|
function t(n, o) {
|
|
686
686
|
const l = document.createElement("div"), a = {
|
package/dist/index.umd.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
z-index: 99999;
|
|
4
4
|
background-color: rgb(191 219 254);
|
|
5
5
|
opacity: 0.5;
|
|
6
|
-
}`,{id:"styletag_lzc_dragselect",manual:!0}),d=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:p.value})}});function f(_){_.button===0&&s(_.x,_.y)}function c(_){a(_.x,_.y)}function h(_){_.composedPath().some(M=>M?.getAttribute?.(t.attribute))||m(),i()}function B(_){try{if(!o.init(_))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!o.containerEl?.value)return!1;e.render(e.h(d),o.containerEl.value),u(),o.containerEl.value?.addEventListener("scroll",r),o.containerEl.value?.addEventListener("mousedown",f),window.addEventListener("mousemove",c),window.addEventListener("mouseup",h)}catch(S){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",S)}}function v(){n.disconnect(),o.containerEl.value?.removeEventListener("scroll",r),o.containerEl.value?.removeEventListener("mousedown",f),window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",h)}return{init:B,unMount:v}}function Je(t,o,n=600){const l=ie({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:r}=l,{onScroll:s,dragStart:a,dragMove:i,dragEnd:m}=l;let p;function u(){clearTimeout(p)}function d(v){u(),v.composedPath().some(S=>!!S?.getAttribute?.(t.attribute))&&(p=setTimeout(()=>{const{clientX:S,clientY:M}=v.targetTouches[0];a(S,M),o?.(),i(S,M,()=>v.preventDefault()),v.preventDefault()},n))}function f(v){u();const{clientX:_,clientY:S}=v.targetTouches[0];i(_,S,()=>v.preventDefault())}function c(){u(),m()}function h(v){try{if(!l.init(v))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",s),l.containerEl.value?.addEventListener("touchstart",d),l.containerEl.value?.addEventListener("touchmove",f),window.addEventListener("touchcancel",c),window.addEventListener("touchend",c)}catch(_){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",_)}}function B(){r.disconnect(),l.containerEl.value?.removeEventListener("scroll",s),l.containerEl.value?.removeEventListener("touchstart",d),l.containerEl.value?.removeEventListener("touchmove",f),window.removeEventListener("touchcancel",c),window.removeEventListener("touchEnd",c)}return{init:h,unMount:B}}const Te=Symbol(),et={key:0,class:"lzc-modal"},tt=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(t,{emit:o}){const n=t,l=()=>{n.closeOnClickOverlay&&o("update:visiable",!1)};return e.provide(Te,()=>o("update:visiable",!1)),(r,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",et,[e.createElementVNode("div",{onMousedown:s[0]||(s[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(r.$slots,"default",{},void 0,!0)],34)])),[[e.unref(fe),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),zt="",V=(t,o)=>{const n=t.__vccOpts||t;for(const[l,r]of o)n[l]=r;return n},ot=V(tt,[["__scopeId","data-v-
|
|
6
|
+
}`,{id:"styletag_lzc_dragselect",manual:!0}),d=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:p.value})}});function f(_){_.button===0&&s(_.x,_.y)}function c(_){a(_.x,_.y)}function h(_){_.composedPath().some(M=>M?.getAttribute?.(t.attribute))||m(),i()}function B(_){try{if(!o.init(_))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!o.containerEl?.value)return!1;e.render(e.h(d),o.containerEl.value),u(),o.containerEl.value?.addEventListener("scroll",r),o.containerEl.value?.addEventListener("mousedown",f),window.addEventListener("mousemove",c),window.addEventListener("mouseup",h)}catch(S){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",S)}}function v(){n.disconnect(),o.containerEl.value?.removeEventListener("scroll",r),o.containerEl.value?.removeEventListener("mousedown",f),window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",h)}return{init:B,unMount:v}}function Je(t,o,n=600){const l=ie({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:r}=l,{onScroll:s,dragStart:a,dragMove:i,dragEnd:m}=l;let p;function u(){clearTimeout(p)}function d(v){u(),v.composedPath().some(S=>!!S?.getAttribute?.(t.attribute))&&(p=setTimeout(()=>{const{clientX:S,clientY:M}=v.targetTouches[0];a(S,M),o?.(),i(S,M,()=>v.preventDefault()),v.preventDefault()},n))}function f(v){u();const{clientX:_,clientY:S}=v.targetTouches[0];i(_,S,()=>v.preventDefault())}function c(){u(),m()}function h(v){try{if(!l.init(v))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",s),l.containerEl.value?.addEventListener("touchstart",d),l.containerEl.value?.addEventListener("touchmove",f),window.addEventListener("touchcancel",c),window.addEventListener("touchend",c)}catch(_){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",_)}}function B(){r.disconnect(),l.containerEl.value?.removeEventListener("scroll",s),l.containerEl.value?.removeEventListener("touchstart",d),l.containerEl.value?.removeEventListener("touchmove",f),window.removeEventListener("touchcancel",c),window.removeEventListener("touchEnd",c)}return{init:h,unMount:B}}const Te=Symbol(),et={key:0,class:"lzc-modal"},tt=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(t,{emit:o}){const n=t,l=()=>{n.closeOnClickOverlay&&o("update:visiable",!1)};return e.provide(Te,()=>o("update:visiable",!1)),(r,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",et,[e.createElementVNode("div",{onMousedown:s[0]||(s[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(r.$slots,"default",{},void 0,!0)],34)])),[[e.unref(fe),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),zt="",V=(t,o)=>{const n=t.__vccOpts||t;for(const[l,r]of o)n[l]=r;return n},ot=V(tt,[["__scopeId","data-v-cef4a369"]]);function nt(t){function o(n,l){const r=document.createElement("div"),s={setup(){return()=>e.h(ot,{visiable:!0,"onUpdate:visiable":()=>{r?.remove()},...t},{default:()=>e.h(n,l)})}};return document.body.appendChild(r),e.render(e.h(s),r),{close:()=>r?.remove()}}return{create:o}}function Be({component:t,componentProps:o,delay:n=300}){const r=`lzc-delay-loading-${`${new Date().getTime()}`}`,s=`${n}ms`;return G(`@keyframes lzcDelayLoad {
|
|
7
7
|
to {
|
|
8
8
|
opacity: 1;
|
|
9
9
|
}
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.lzc-modal[data-v-
|
|
1
|
+
.lzc-modal[data-v-cef4a369]{position:absolute;inset:0;display:flex;z-index:999;background-color:#000000b3}.lzc-dialog[data-v-cef4a369]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-d0ad7597]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-d0ad7597]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--d8dfa9f0);height:var(--2941c2e5);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-d0ad7597 .7s linear infinite}@keyframes ldio-mm5gwljcryb-d0ad7597{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-d0ad7597]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}@keyframes slide-533e986b{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-533e986b]{animation:slide-533e986b .3s linear}.v-leave-active[data-v-efefe52c]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-efefe52c]{opacity:0}.slider-wrapper[data-v-efefe52c]{position:absolute;right:0;touch-action:none}.default-slider[data-v-efefe52c]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-18377f18]{position:relative}.pull-refresh-box[data-v-18377f18]{position:absolute;display:flex;justify-content:center;width:100%;font-size:14px;color:#85898b99;text-align:center;z-index:500}.pull-arrow-circle[data-v-18377f18]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-18377f18]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-18377f18 3s infinite linear forwards}@keyframes boxs-18377f18{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-18377f18]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-18377f18]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-18377f18 3s infinite linear forwards}@keyframes pr1A-18377f18{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-18377f18]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-18377f18]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-18377f18 3s infinite linear forwards}@keyframes pr2A-18377f18{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-18377f18]{top:2px;left:2px;width:14px;height:14px;border-radius:50%;position:absolute;background:#fff;z-index:5;overflow:hidden}.pull-circle-line[data-v-18377f18]{position:relative;width:15px;height:15px;border-radius:50%;background-color:#fff;box-sizing:border-box;border-width:2px;border-style:solid;display:flex;align-items:center;justify-content:center}.pull-arrow[data-v-18377f18]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-18377f18]{width:0;height:0;position:absolute;right:-4px;bottom:4px;transform:rotate(-30deg);border-bottom-width:6px;border-bottom-style:solid;border-right:6px solid transparent;transition:.5s;opacity:0}.opacity[data-v-18377f18]{opacity:1}.left-item[data-v-18377f18]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-18377f18]{color:#e93b3d}.virtualList[data-v-e0fb787f]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-e0fb787f]{width:100%;height:100%;position:relative}@keyframes loading-rotate-c986249d{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-c986249d]{width:100%;height:100%;border-radius:100%;background:conic-gradient(from .25turn at 50% 50%,rgba(255,255,255,0),240deg,#2ec1cc);position:absolute;top:0;animation:loading-rotate-c986249d var(--5e400569) linear infinite}
|