geekin-devtoys 0.2.18 → 0.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/GDialog/index.js +1 -1
- package/lib/GDialog/index.mjs +2 -2
- package/lib/GDialog/style.css +1 -1
- package/lib/GInputTreeTag/index.js +1 -0
- package/lib/GInputTreeTag/index.mjs +274 -0
- package/lib/GInputTreeTag/style.css +1 -0
- package/lib/GInputTreeTag.d.ts +1 -0
- package/lib/GPie3D/index.js +1 -1
- package/lib/GPie3D/index.mjs +1 -1
- package/lib/GPie3D/style.css +1 -1
- package/lib/GRing/index.js +1 -1
- package/lib/GRing/index.mjs +1 -1
- package/lib/GRing/style.css +1 -1
- package/lib/GTable/index.js +1 -1
- package/lib/GTable/index.mjs +1 -1
- package/lib/components/GInputTreeTag/index.d.ts +146 -0
- package/lib/components/GTable/index.d.ts +3 -4
- package/lib/index/index.js +1 -1
- package/lib/index/index.mjs +30 -27
- package/lib/{index-Dxw2pU4z.mjs → index-CzamRrBC.mjs} +27 -12
- package/lib/{index-B1MYKy3L.js → index-il5JtS6o.js} +1 -1
- package/lib/index.d.ts +2 -1
- package/package.json +9 -1
package/lib/GDialog/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("../index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("../index-il5JtS6o.js"),S=require("../_plugin-vue_export-helper-BHFhmbuH.js"),N=Symbol("GDialogManager"),b={small:"380px",medium:"480px",large:"580px"},T={ICON_WIDTH:92,ICON_HEIGHT:34,GAP:8,BOTTOM_OFFSET:18,RIGHT_OFFSET:18,MAX_PER_ROW:8};function q(s){const m=new Map,{ICON_WIDTH:a,ICON_HEIGHT:r,GAP:f,BOTTOM_OFFSET:g,RIGHT_OFFSET:l,MAX_PER_ROW:o}=T;return s.forEach((c,u)=>{const n=Math.floor(u/o),i=u%o;m.set(c,{right:l+i*(a+f),bottom:g+n*(r+f)})}),m}function W(){const s=e.reactive(new Map),m=e.computed(()=>{const n=[];return s.forEach(i=>{i.isMinimized&&n.push(i.id)}),n}),a=e.computed(()=>q(m.value));function r(n){s.set(n.id,{attentionTick:0,...n})}function f(n){s.delete(n)}function g(n){const i=s.get(n);if(i){if(i.isMinimized){i.attentionTick=(i.attentionTick??0)+1;return}i.isMinimized=!0}}function l(n){const i=s.get(n);i?.isMinimized&&(i.attentionTick=(i.attentionTick??0)+1)}function o(n){const i=s.get(n);i&&(i.isMinimized=!1)}function c(n){return e.computed(()=>a.value.get(n)??{right:T.RIGHT_OFFSET,bottom:T.BOTTOM_OFFSET})}const u=e.computed(()=>m.value.map(n=>s.get(n)).filter(Boolean));return{dialogs:s,register:r,unregister:f,minimize:g,remindMinimized:l,restore:o,getPosition:c,minimizedList:u}}function O(){return e.inject(N,null)}const Y=["title","aria-label"],Z={class:"g-dialog-minimized-icon__icon","aria-hidden":"true"},j={class:"g-dialog-minimized-icon__title"},K=e.defineComponent({name:"GDialogMinimizedIcon",__name:"GDialogMinimizedIcon",props:{title:{},position:{},attentionTick:{default:0}},emits:["restore"],setup(s,{emit:m}){const a=s,r=m,f=e.computed(()=>a.title||"弹窗"),g=e.computed(()=>`恢复 ${f.value}`),l=e.computed(()=>({position:"fixed",right:`${a.position.right}px`,bottom:`${a.position.bottom}px`})),o=e.ref(!1);let c;e.watch(()=>a.attentionTick,(n,i)=>{i===void 0||n===i||(o.value=!1,window.clearTimeout(c),window.requestAnimationFrame(()=>{o.value=!0,c=window.setTimeout(()=>{o.value=!1},580)}))}),e.onUnmounted(()=>{window.clearTimeout(c)});function u(){r("restore")}return(n,i)=>{const w=e.resolveComponent("el-icon");return e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createElementVNode("div",{class:e.normalizeClass(["g-dialog-minimized-icon",{"is-attention":o.value}]),type:"button",style:e.normalizeStyle(l.value),title:g.value,"aria-label":g.value,onClick:u},[i[0]||(i[0]=e.createElementVNode("span",{class:"g-dialog-minimized-icon__glow","aria-hidden":"true"},null,-1)),i[1]||(i[1]=e.createElementVNode("span",{class:"g-dialog-minimized-icon__wave","aria-hidden":"true"},null,-1)),e.createElementVNode("span",Z,[e.createVNode(w,null,{default:e.withCtx(()=>[e.createVNode(e.unref(y.chat_dot_round_default))]),_:1})]),e.createElementVNode("span",j,e.toDisplayString(f.value),1)],14,Y)])}}}),C=S._export_sfc(K,[["__scopeId","data-v-5195816e"]]),X={class:"g-dialog-header"},J={class:"g-dialog-title"},Q={class:"g-dialog-operation-container","aria-label":"弹窗操作"},ee=["aria-label","title"],te=["onClick"],oe={class:"g-dialog-footer"},B="关闭",ie=e.defineComponent({name:"GDialog",inheritAttrs:!1,__name:"index",props:{title:{default:""},size:{default:"medium"},modelValue:{type:Boolean},hideFooter:{type:Boolean,default:!1},actions:{},showCancel:{type:Boolean,default:!0},showReset:{type:Boolean,default:!0},showSave:{type:Boolean,default:!0},cancelText:{default:"取消"},resetText:{default:"重置"},saveText:{default:"保存"},saveLoading:{type:Boolean,default:!1},saveDisabled:{type:Boolean,default:!1},beforeClose:{}},emits:["cancel","reset","save","minimize","action","update:modelValue"],setup(s,{emit:m}){const a=s,r=m,f=e.computed(()=>a.modelValue);function g(t){r("update:modelValue",t)}const l=e.useId?e.useId():`g-dialog-${Date.now()}-${Math.random().toString(36).slice(2)}`,o=O(),c=e.ref(!1),u=e.ref(!0),n=e.ref(0),i=e.ref(!1),w=e.computed(()=>o?o.dialogs.get(l)?.isMinimized??!1:c.value),D=e.computed(()=>o?o.dialogs.get(l)?.attentionTick??0:n.value),G=e.computed(()=>o?!(o.dialogs.get(l)?.isMinimized??!1):u.value),A=e.computed(()=>o?o.getPosition(l).value:{right:20,bottom:20});e.onMounted(()=>{o?.register({id:l,title:a.title,isMinimized:!1})}),e.onUnmounted(()=>{o?.unregister(l)}),e.watch(()=>a.title,t=>{if(o){const p=o.dialogs.get(l);p&&(p.title=t)}}),e.watch(()=>a.modelValue,t=>{if(t===!1){if(i.value){i.value=!1;return}o?o.restore(l):(u.value=!0,c.value=!1)}t===!0&&(o?.dialogs.get(l)?.isMinimized?o.remindMinimized(l):c.value&&(n.value+=1))});const F=e.computed(()=>Object.prototype.hasOwnProperty.call(b,a.size)?b[a.size]:a.size);async function v(t){if(!a.beforeClose)return!0;try{return await a.beforeClose(t)!==!1}catch{return!1}}async function L(t){const p=await v("close");t(!p)}async function $(){await v("close")&&r("update:modelValue",!1)}async function M(){await v("cancel")&&r("cancel")}function V(){r("reset")}async function E(){await v("save")&&r("save")}const z=e.reactive({});async function R(t){if(await v("action")&&(r("action",t.key),!!t.onClick))try{const p=t.onClick();p instanceof Promise&&(z[t.key]=!0,await p)}finally{z[t.key]=!1}}const k=e.ref(!1),P=()=>{k.value=!k.value},I=e.computed(()=>k.value?"退出全屏":"全屏"),x=async()=>{if(await v("minimize")){if(i.value=!0,o)o.minimize(l);else{if(c.value){n.value+=1,r("minimize",{id:l});return}u.value=!1,c.value=!0}r("update:modelValue",!1),r("minimize",{id:l})}},H=()=>{o?o.restore(l):(u.value=!0,c.value=!1),r("update:modelValue",!0)};return(t,p)=>{const h=e.resolveComponent("el-button"),U=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[G.value?(e.openBlock(),e.createBlock(U,e.mergeProps({key:0},t.$attrs,{"model-value":f.value,width:F.value,"lock-scroll":!1,"show-close":!1,fullscreen:k.value,"before-close":L,class:"g-dialog","onUpdate:modelValue":g}),e.createSlots({header:e.withCtx(({close:d})=>[e.createElementVNode("div",X,[e.createElementVNode("p",J,e.toDisplayString(t.title),1),e.createElementVNode("div",Q,[e.createElementVNode("button",{type:"button",class:"g-dialog-control g-dialog-control--minimize","aria-label":"最小化",title:"最小化",onClick:x}),e.createElementVNode("button",{type:"button",class:"g-dialog-control g-dialog-control--fullscreen","aria-label":I.value,title:I.value,onClick:P},null,8,ee),e.createElementVNode("button",{type:"button",class:"g-dialog-control g-dialog-control--close","aria-label":B,title:B,onClick:d},null,8,te)])])]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},void 0,!0)]),_:2},[t.hideFooter?void 0:{name:"footer",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"footer",{cancel:M,reset:V,save:E,close:$,loading:t.saveLoading},()=>[e.createElementVNode("div",oe,[t.actions&&t.actions.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.actions,d=>(e.openBlock(),e.createBlock(h,{key:d.key,type:d.type,icon:d.icon,loading:d.loading||z[d.key],disabled:d.disabled,plain:d.plain,size:"small",onClick:ne=>R(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.label),1)]),_:2},1032,["type","icon","loading","disabled","plain","onClick"]))),128)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.showCancel?(e.openBlock(),e.createBlock(h,{key:0,icon:e.unref(y.remove_default),size:"small",onClick:M},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.cancelText),1)]),_:1},8,["icon"])):e.createCommentVNode("",!0),t.showReset?(e.openBlock(),e.createBlock(h,{key:1,icon:e.unref(y.refresh_default),size:"small",onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.resetText),1)]),_:1},8,["icon"])):e.createCommentVNode("",!0),t.showSave?(e.openBlock(),e.createBlock(h,{key:2,type:"primary",icon:e.unref(y.circle_check_default),loading:t.saveLoading,disabled:t.saveDisabled,size:"small",onClick:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.saveText),1)]),_:1},8,["icon","loading","disabled"])):e.createCommentVNode("",!0)],64)),e.renderSlot(t.$slots,"moreOperations",{},void 0,!0)])],!0)]),key:"0"}]),1040,["model-value","width","fullscreen"])):e.createCommentVNode("",!0),w.value?(e.openBlock(),e.createBlock(C,{key:1,title:t.title,position:A.value,"attention-tick":D.value,onRestore:H},null,8,["title","position","attention-tick"])):e.createCommentVNode("",!0)])}}}),_=S._export_sfc(ie,[["__scopeId","data-v-bd65748b"]]);_.install=s=>{s.component(_.name,_),s.component(C.name,C)};exports.DIALOG_MANAGER_KEY=N;exports.DIALOG_SIZES=b;exports.GDialog=_;exports.GDialogMinimizedIcon=C;exports.MINIMIZED_LAYOUT=T;exports.createDialogManager=W;exports.default=_;exports.useDialogManager=O;
|
package/lib/GDialog/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject as re, reactive as X, computed as c, defineComponent as Y, ref as T, watch as F, onUnmounted as Z, resolveComponent as B, createBlock as y, openBlock as m, Teleport as q, createElementVNode as u, normalizeStyle as ce, normalizeClass as ue, createVNode as P, withCtx as h, unref as I, toDisplayString as k, useId as N, onMounted as de, createCommentVNode as b, mergeProps as fe, createSlots as me, renderSlot as E, createElementBlock as H, Fragment as W, renderList as ge, createTextVNode as C } from "vue";
|
|
2
|
-
import { c as pe, r as ve, a as _e, b as ye } from "../index-
|
|
2
|
+
import { c as pe, r as ve, a as _e, b as ye } from "../index-CzamRrBC.mjs";
|
|
3
3
|
import { _ as K } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
4
|
const he = /* @__PURE__ */ Symbol("GDialogManager"), U = {
|
|
5
5
|
small: "380px",
|
|
@@ -378,7 +378,7 @@ const ke = ["title", "aria-label"], be = {
|
|
|
378
378
|
]);
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
|
-
}), D = /* @__PURE__ */ K(Fe, [["__scopeId", "data-v-
|
|
381
|
+
}), D = /* @__PURE__ */ K(Fe, [["__scopeId", "data-v-bd65748b"]]);
|
|
382
382
|
D.install = (a) => {
|
|
383
383
|
a.component(D.name, D), a.component(V.name, V);
|
|
384
384
|
};
|
package/lib/GDialog/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.g-dialog-minimized-icon[data-v-5195816e]{width:78px;height:34px;padding:0 6px;border-radius:10px 18px;background:linear-gradient(90deg,rgba(106,210,255,.18) 1px,transparent 1px) 0 0/8px 8px,linear-gradient(180deg,rgba(255,255,255,.16),transparent 42%),linear-gradient(135deg,#10294c,var(--el-color-primary) 58%,#00d1ff);color:#f4fbff;display:flex;align-items:center;justify-content:flex-start;gap:6px;cursor:pointer;z-index:999;overflow:hidden;isolation:isolate;clip-path:polygon(9px 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%,0 9px);transition:right .3s ease,bottom .3s ease,transform .18s ease,box-shadow .18s ease,filter .18s ease;animation:g-dialog-minimized-enter-5195816e .28s cubic-bezier(.2,.8,.2,1) both}.g-dialog-minimized-icon[data-v-5195816e]:before{content:"";position:absolute;inset:3px;border:1px solid rgba(163,232,255,.24);clip-path:inherit;pointer-events:none}.g-dialog-minimized-icon[data-v-5195816e]:after{content:"";position:absolute;top:-32%;left:-38%;width:32px;height:62px;background:linear-gradient(90deg,transparent,rgba(180,244,255,.64),transparent);transform:rotate(18deg) translate(-16px);opacity:0;pointer-events:none}.g-dialog-minimized-icon[data-v-5195816e]:hover{transform:translateY(-2px);filter:saturate(1.2) brightness(1.08)}.g-dialog-minimized-icon[data-v-5195816e]:hover:after{opacity:1;animation:g-dialog-minimized-shine-5195816e .62s ease}.g-dialog-minimized-icon:hover .g-dialog-minimized-icon__wave[data-v-5195816e]{opacity:1;animation:g-dialog-minimized-wave-5195816e 1.45s ease-in-out infinite}.g-dialog-minimized-icon:hover .g-dialog-minimized-icon__icon[data-v-5195816e]{transform:scale(1.08)}.g-dialog-minimized-icon[data-v-5195816e]:active{transform:translateY(0) scale(.98);box-shadow:0 0 0 1px #ffffff14 inset,0 5px 14px #0092ff3d,0 2px 6px #0003}.g-dialog-minimized-icon[data-v-5195816e]:focus-visible{outline:2px solid rgba(0,209,255,.72);outline-offset:3px}.g-dialog-minimized-icon.is-attention[data-v-5195816e]{animation:g-dialog-minimized-attention-5195816e .58s ease both;filter:saturate(1.22) brightness(1.08)}.g-dialog-minimized-icon.is-attention[data-v-5195816e]:after{opacity:1;animation:g-dialog-minimized-shine-5195816e .58s ease}.g-dialog-minimized-icon.is-attention .g-dialog-minimized-icon__wave[data-v-5195816e]{opacity:1;animation:g-dialog-minimized-wave-5195816e .58s ease-in-out}.g-dialog-minimized-icon.is-attention .g-dialog-minimized-icon__icon[data-v-5195816e]{animation:g-dialog-minimized-icon-pop-5195816e .58s ease both}.g-dialog-minimized-icon__glow[data-v-5195816e]{position:absolute;inset:auto 8px -14px auto;width:38px;height:28px;border-radius:50%;background:#00d1ff7a;filter:blur(13px);pointer-events:none;z-index:-1}.g-dialog-minimized-icon__wave[data-v-5195816e]{position:absolute;inset:-18px -24px;background:radial-gradient(ellipse at 22% 62%,rgba(173,243,255,.62) 0 9%,transparent 26%),radial-gradient(ellipse at 52% 78%,rgba(0,209,255,.58) 0 12%,transparent 30%),radial-gradient(ellipse at 82% 58%,rgba(67,170,255,.5) 0 10%,transparent 28%),linear-gradient(90deg,#147bff14,#00d1ff5c,#147bff14);background-size:72px 46px,86px 42px,70px 48px,100% 100%;background-position:-10px 16px,18px 20px,58px 14px,0 0;filter:blur(1px) saturate(1.25);opacity:0;pointer-events:none;transform:translate(-18px) translateY(6px) rotate(-2deg);transition:opacity .18s ease;z-index:-1}.g-dialog-minimized-icon__icon[data-v-5195816e]{width:20px;height:20px;border:1px solid rgba(203,246,255,.32);border-radius:7px;background:linear-gradient(135deg,rgba(255,255,255,.2),transparent),#00132b2e;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:inset 0 0 10px #00d1ff3d;transition:transform .18s ease}.g-dialog-minimized-icon__icon .el-icon[data-v-5195816e]{font-size:13px}.g-dialog-minimized-icon__title[data-v-5195816e]{min-width:0;max-width:50px;font-size:10px;font-weight:600;line-height:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes g-dialog-minimized-enter-5195816e{0%{transform:translateY(8px) scale(.92);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes g-dialog-minimized-shine-5195816e{0%{transform:rotate(18deg) translate(-16px)}to{transform:rotate(18deg) translate(116px)}}@keyframes g-dialog-minimized-wave-5195816e{0%{background-position:-18px 18px,8px 22px,54px 14px,0 0;transform:translate(-14px) translateY(7px) rotate(-3deg) scaleY(.82)}45%{background-position:18px 8px,42px 18px,88px 10px,0 0;transform:translate(0) translateY(0) rotate(1deg) scaleY(1.05)}to{background-position:58px 17px,82px 22px,126px 15px,0 0;transform:translate(14px) translateY(5px) rotate(3deg) scaleY(.9)}}@keyframes g-dialog-minimized-attention-5195816e{0%,to{transform:translateY(0) scale(1)}18%{transform:translateY(-5px) scale(1.04)}36%{transform:translateY(0) scale(.98)}54%{transform:translateY(-3px) scale(1.02)}72%{transform:translateY(0) scale(1)}}@keyframes g-dialog-minimized-icon-pop-5195816e{0%,to{transform:scale(1)}30%{transform:scale(1.18) rotate(-8deg)}60%{transform:scale(1.08) rotate(6deg)}}@media(prefers-reduced-motion:reduce){.g-dialog-minimized-icon[data-v-5195816e]{animation:none;transition:right .3s ease,bottom .3s ease}.g-dialog-minimized-icon[data-v-5195816e]:after{display:none}.g-dialog-minimized-icon[data-v-5195816e]:hover,.g-dialog-minimized-icon[data-v-5195816e]:active,.g-dialog-minimized-icon.is-attention[data-v-5195816e]{transform:none;filter:none}.g-dialog-minimized-icon__wave[data-v-5195816e]{animation:none!important;opacity:0}.g-dialog-minimized-icon__icon[data-v-5195816e]{animation:none!important;transition:none}}.g-dialog-header[data-v-4f1dc418]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:16px;padding:2px 0}.g-dialog-header .g-dialog-title[data-v-4f1dc418]{position:relative;max-width:calc(100% - 88px);margin:0;overflow:hidden;color:var(--el-text-color-primary);font-size:15px;font-weight:600;line-height:1.4;letter-spacing:.01em;text-overflow:ellipsis;white-space:nowrap}.g-dialog-header .g-dialog-title[data-v-4f1dc418]:before{content:"";position:absolute;top:50%;left:0;width:3px;height:14px;background:linear-gradient(180deg,var(--el-color-primary),var(--el-color-primary-light-3));border-radius:2px;transform:translate(-12px,-50%);opacity:0}.g-dialog-header .g-dialog-operation-container[data-v-4f1dc418]{display:flex;flex-direction:row;align-items:center;gap:8px;padding:0}.g-dialog-control[data-v-4f1dc418]{width:12px;height:12px;padding:0;border:0;border-radius:50%;cursor:pointer;flex-shrink:0;position:relative;box-shadow:inset 0 1px 1px #ffffffb3,inset 0 -1px 1px #0000001f,0 0 0 1px #00000014,0 1px 2px #0000000f;transition:transform .18s cubic-bezier(.34,1.56,.64,1),filter .18s ease,box-shadow .18s ease}.g-dialog-control[data-v-4f1dc418]:after{content:"";position:absolute;top:2px;left:2.5px;width:4px;height:4px;border-radius:50%;background:#ffffff8c;filter:blur(.5px);pointer-events:none}.g-dialog-control[data-v-4f1dc418]:hover{filter:brightness(1.06) saturate(1.1);transform:scale(1.12);box-shadow:inset 0 1px 1px #ffffffbf,inset 0 -1px 1px #0000001f,0 0 0 1px #0000001a,0 2px 4px #0000001f}.g-dialog-control[data-v-4f1dc418]:active{transform:scale(.92);filter:brightness(.96)}.g-dialog-control[data-v-4f1dc418]:focus-visible{outline:2px solid rgba(68,68,68,.32);outline-offset:3px}.g-dialog-control--close[data-v-4f1dc418]{background:linear-gradient(180deg,#ff8077,#ff5f57)}.g-dialog-control--fullscreen[data-v-4f1dc418]{background:linear-gradient(180deg,#ffd066,#ffbd2e)}.g-dialog-control--minimize[data-v-4f1dc418]{background:linear-gradient(180deg,#4be068,#28c840)}.g-dialog-footer[data-v-4f1dc418]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:8px;padding:2px 0}.g-dialog-footer[data-v-4f1dc418] .el-button .el-icon{transition:transform .28s cubic-bezier(.34,1.56,.64,1),color .2s ease;will-change:transform}.g-dialog-footer[data-v-4f1dc418] .el-button:hover:not(.is-disabled):not(.is-loading) .el-icon{transform:scale(1.18) rotate(-8deg)}.g-dialog-footer[data-v-4f1dc418] .el-button:active:not(.is-disabled):not(.is-loading) .el-icon{transform:scale(1.06) rotate(-4deg);transition-duration:.12s}.g-dialog-footer[data-v-4f1dc418] .el-button--primary:hover:not(.is-disabled):not(.is-loading) .el-icon{transform:scale(1.18) rotate(8deg)}.g-dialog-footer[data-v-4f1dc418] .el-button--primary:active:not(.is-disabled):not(.is-loading) .el-icon{transform:scale(1.06) rotate(4deg)}@media(prefers-reduced-motion:reduce){.g-dialog-control[data-v-4f1dc418],.g-dialog-footer[data-v-4f1dc418] .el-button .el-icon{transition:none}.g-dialog-footer[data-v-4f1dc418] .el-button:hover .el-icon,.g-dialog-footer[data-v-4f1dc418] .el-button:active .el-icon{transform:none}}.el-overlay:has(.g-dialog){background:var(--g-dialog-overlay-bg, rgba(15, 23, 42, .32));backdrop-filter:blur(4px) saturate(1.05);-webkit-backdrop-filter:blur(4px) saturate(1.05);animation:g-dialog-overlay-in .22s ease both}@keyframes g-dialog-overlay-in{0%{background:#0f172a00;backdrop-filter:blur(0) saturate(1);-webkit-backdrop-filter:blur(0) saturate(1)}to{background:var(--g-dialog-overlay-bg, rgba(15, 23, 42, .32));backdrop-filter:blur(4px) saturate(1.05);-webkit-backdrop-filter:blur(4px) saturate(1.05)}}@media(prefers-reduced-motion:reduce){.el-overlay:has(.g-dialog){animation:none}}.g-dialog.el-dialog{--el-dialog-padding-primary: 18px;--el-dialog-border-radius: 14px;border-radius:14px;padding:0;overflow:hidden;background:linear-gradient(180deg,var(--g-dialog-sheen, rgba(255, 255, 255, .6)),transparent) top/100% 64px no-repeat,var(--el-bg-color);box-shadow:0 1px 0 var(--g-dialog-inner-highlight, rgba(255, 255, 255, .6)) inset,0 0 0 1px var(--el-border-color-lighter),0 24px 60px -12px var(--g-dialog-shadow-strong, rgba(15, 23, 42, .22)),0 8px 20px -8px var(--g-dialog-shadow-soft, rgba(15, 23, 42, .14))}.g-dialog.el-dialog.is-fullscreen{border-radius:0;box-shadow:none}.g-dialog.el-dialog .el-dialog__header{margin:0;padding:14px 20px;background:linear-gradient(180deg,var(--g-dialog-header-bg, rgba(248, 250, 252, .85)),transparent);position:relative}.g-dialog.el-dialog .el-dialog__body{padding:0 20px;color:var(--el-text-color-regular);font-size:13px;line-height:1.6;max-height:calc(85vh - 132px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--g-dialog-scrollbar, rgba(15, 23, 42, .18)) transparent}.g-dialog.el-dialog .el-dialog__body::-webkit-scrollbar{width:6px;height:6px}.g-dialog.el-dialog .el-dialog__body::-webkit-scrollbar-thumb{background-color:var(--g-dialog-scrollbar, rgba(15, 23, 42, .18));border-radius:3px}.g-dialog.el-dialog .el-dialog__body::-webkit-scrollbar-thumb:hover{background-color:var(--g-dialog-scrollbar-hover, rgba(15, 23, 42, .28))}.g-dialog.el-dialog .el-dialog__body::-webkit-scrollbar-track{background:transparent}.g-dialog.el-dialog .el-dialog__footer{padding:12px 20px;background:linear-gradient(0deg,var(--g-dialog-footer-bg, rgba(248, 250, 252, .7)),transparent);position:relative}html.dark .el-overlay:has(.g-dialog){--g-dialog-overlay-bg: rgba(0, 0, 0, .55)}html.dark .g-dialog.el-dialog{--g-dialog-sheen: rgba(255, 255, 255, .04);--g-dialog-inner-highlight: rgba(255, 255, 255, .06);--g-dialog-shadow-strong: rgba(0, 0, 0, .55);--g-dialog-shadow-soft: rgba(0, 0, 0, .4);--g-dialog-header-bg: rgba(255, 255, 255, .04);--g-dialog-footer-bg: rgba(255, 255, 255, .04);--g-dialog-scrollbar: rgba(255, 255, 255, .18);--g-dialog-scrollbar-hover: rgba(255, 255, 255, .28)}html.dark .g-dialog.el-dialog .g-dialog-control{box-shadow:inset 0 1px 1px #ffffff59,inset 0 -1px 1px #00000047,0 0 0 1px #ffffff14,0 1px 2px #00000073}html.dark .g-dialog.el-dialog .g-dialog-control:hover{box-shadow:inset 0 1px 1px #fff6,inset 0 -1px 1px #00000047,0 0 0 1px #ffffff1f,0 2px 6px #00000080}html.dark .g-dialog.el-dialog .g-dialog-control:focus-visible{outline-color:#ffffff73}.dialog-fade-enter-active .g-dialog.el-dialog,.dialog-fade-leave-active .g-dialog.el-dialog{transition:transform .26s cubic-bezier(.34,1.2,.64,1),opacity .22s ease}.dialog-fade-enter-from .g-dialog.el-dialog,.dialog-fade-leave-to .g-dialog.el-dialog{transform:translateY(-12px) scale(.96);opacity:0}@media(prefers-reduced-motion:reduce){.dialog-fade-enter-active .g-dialog.el-dialog,.dialog-fade-leave-active .g-dialog.el-dialog{transition:opacity .18s ease;transform:none}}
|
|
1
|
+
@charset "UTF-8";.g-dialog-minimized-icon[data-v-5195816e]{width:78px;height:34px;padding:0 6px;border-radius:10px 18px;background:linear-gradient(90deg,rgba(106,210,255,.18) 1px,transparent 1px) 0 0/8px 8px,linear-gradient(180deg,rgba(255,255,255,.16),transparent 42%),linear-gradient(135deg,#10294c,var(--el-color-primary) 58%,#00d1ff);color:#f4fbff;display:flex;align-items:center;justify-content:flex-start;gap:6px;cursor:pointer;z-index:999;overflow:hidden;isolation:isolate;clip-path:polygon(9px 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%,0 9px);transition:right .3s ease,bottom .3s ease,transform .18s ease,box-shadow .18s ease,filter .18s ease;animation:g-dialog-minimized-enter-5195816e .28s cubic-bezier(.2,.8,.2,1) both}.g-dialog-minimized-icon[data-v-5195816e]:before{content:"";position:absolute;inset:3px;border:1px solid rgba(163,232,255,.24);clip-path:inherit;pointer-events:none}.g-dialog-minimized-icon[data-v-5195816e]:after{content:"";position:absolute;top:-32%;left:-38%;width:32px;height:62px;background:linear-gradient(90deg,transparent,rgba(180,244,255,.64),transparent);transform:rotate(18deg) translate(-16px);opacity:0;pointer-events:none}.g-dialog-minimized-icon[data-v-5195816e]:hover{transform:translateY(-2px);filter:saturate(1.2) brightness(1.08)}.g-dialog-minimized-icon[data-v-5195816e]:hover:after{opacity:1;animation:g-dialog-minimized-shine-5195816e .62s ease}.g-dialog-minimized-icon:hover .g-dialog-minimized-icon__wave[data-v-5195816e]{opacity:1;animation:g-dialog-minimized-wave-5195816e 1.45s ease-in-out infinite}.g-dialog-minimized-icon:hover .g-dialog-minimized-icon__icon[data-v-5195816e]{transform:scale(1.08)}.g-dialog-minimized-icon[data-v-5195816e]:active{transform:translateY(0) scale(.98);box-shadow:0 0 0 1px #ffffff14 inset,0 5px 14px #0092ff3d,0 2px 6px #0003}.g-dialog-minimized-icon[data-v-5195816e]:focus-visible{outline:2px solid rgba(0,209,255,.72);outline-offset:3px}.g-dialog-minimized-icon.is-attention[data-v-5195816e]{animation:g-dialog-minimized-attention-5195816e .58s ease both;filter:saturate(1.22) brightness(1.08)}.g-dialog-minimized-icon.is-attention[data-v-5195816e]:after{opacity:1;animation:g-dialog-minimized-shine-5195816e .58s ease}.g-dialog-minimized-icon.is-attention .g-dialog-minimized-icon__wave[data-v-5195816e]{opacity:1;animation:g-dialog-minimized-wave-5195816e .58s ease-in-out}.g-dialog-minimized-icon.is-attention .g-dialog-minimized-icon__icon[data-v-5195816e]{animation:g-dialog-minimized-icon-pop-5195816e .58s ease both}.g-dialog-minimized-icon__glow[data-v-5195816e]{position:absolute;inset:auto 8px -14px auto;width:38px;height:28px;border-radius:50%;background:#00d1ff7a;filter:blur(13px);pointer-events:none;z-index:-1}.g-dialog-minimized-icon__wave[data-v-5195816e]{position:absolute;inset:-18px -24px;background:radial-gradient(ellipse at 22% 62%,rgba(173,243,255,.62) 0 9%,transparent 26%),radial-gradient(ellipse at 52% 78%,rgba(0,209,255,.58) 0 12%,transparent 30%),radial-gradient(ellipse at 82% 58%,rgba(67,170,255,.5) 0 10%,transparent 28%),linear-gradient(90deg,#147bff14,#00d1ff5c,#147bff14);background-size:72px 46px,86px 42px,70px 48px,100% 100%;background-position:-10px 16px,18px 20px,58px 14px,0 0;filter:blur(1px) saturate(1.25);opacity:0;pointer-events:none;transform:translate(-18px) translateY(6px) rotate(-2deg);transition:opacity .18s ease;z-index:-1}.g-dialog-minimized-icon__icon[data-v-5195816e]{width:20px;height:20px;border:1px solid rgba(203,246,255,.32);border-radius:7px;background:linear-gradient(135deg,rgba(255,255,255,.2),transparent),#00132b2e;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:inset 0 0 10px #00d1ff3d;transition:transform .18s ease}.g-dialog-minimized-icon__icon .el-icon[data-v-5195816e]{font-size:13px}.g-dialog-minimized-icon__title[data-v-5195816e]{min-width:0;max-width:50px;font-size:10px;font-weight:600;line-height:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes g-dialog-minimized-enter-5195816e{0%{transform:translateY(8px) scale(.92);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes g-dialog-minimized-shine-5195816e{0%{transform:rotate(18deg) translate(-16px)}to{transform:rotate(18deg) translate(116px)}}@keyframes g-dialog-minimized-wave-5195816e{0%{background-position:-18px 18px,8px 22px,54px 14px,0 0;transform:translate(-14px) translateY(7px) rotate(-3deg) scaleY(.82)}45%{background-position:18px 8px,42px 18px,88px 10px,0 0;transform:translate(0) translateY(0) rotate(1deg) scaleY(1.05)}to{background-position:58px 17px,82px 22px,126px 15px,0 0;transform:translate(14px) translateY(5px) rotate(3deg) scaleY(.9)}}@keyframes g-dialog-minimized-attention-5195816e{0%,to{transform:translateY(0) scale(1)}18%{transform:translateY(-5px) scale(1.04)}36%{transform:translateY(0) scale(.98)}54%{transform:translateY(-3px) scale(1.02)}72%{transform:translateY(0) scale(1)}}@keyframes g-dialog-minimized-icon-pop-5195816e{0%,to{transform:scale(1)}30%{transform:scale(1.18) rotate(-8deg)}60%{transform:scale(1.08) rotate(6deg)}}@media(prefers-reduced-motion:reduce){.g-dialog-minimized-icon[data-v-5195816e]{animation:none;transition:right .3s ease,bottom .3s ease}.g-dialog-minimized-icon[data-v-5195816e]:after{display:none}.g-dialog-minimized-icon[data-v-5195816e]:hover,.g-dialog-minimized-icon[data-v-5195816e]:active,.g-dialog-minimized-icon.is-attention[data-v-5195816e]{transform:none;filter:none}.g-dialog-minimized-icon__wave[data-v-5195816e]{animation:none!important;opacity:0}.g-dialog-minimized-icon__icon[data-v-5195816e]{animation:none!important;transition:none}}.g-dialog-header[data-v-bd65748b]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:16px;padding:2px 0}.g-dialog-header .g-dialog-title[data-v-bd65748b]{position:relative;max-width:calc(100% - 88px);margin:0;overflow:hidden;color:var(--el-text-color-primary);font-size:15px;font-weight:600;line-height:1.4;letter-spacing:.01em;text-overflow:ellipsis;white-space:nowrap}.g-dialog-header .g-dialog-title[data-v-bd65748b]:before{content:"";position:absolute;top:50%;left:0;width:3px;height:14px;background:linear-gradient(180deg,var(--el-color-primary),var(--el-color-primary-light-3));border-radius:2px;transform:translate(-12px,-50%);opacity:0}.g-dialog-header .g-dialog-operation-container[data-v-bd65748b]{display:flex;flex-direction:row;align-items:center;gap:8px;padding:0}.g-dialog-control[data-v-bd65748b]{width:12px;height:12px;padding:0;border:0;border-radius:50%;cursor:pointer;flex-shrink:0;position:relative;box-shadow:inset 0 1px 1px #ffffffb3,inset 0 -1px 1px #0000001f,0 0 0 1px #00000014,0 1px 2px #0000000f;transition:transform .18s cubic-bezier(.34,1.56,.64,1),filter .18s ease,box-shadow .18s ease}.g-dialog-control[data-v-bd65748b]:after{content:"";position:absolute;top:2px;left:2.5px;width:4px;height:4px;border-radius:50%;background:#ffffff8c;filter:blur(.5px);pointer-events:none}.g-dialog-control[data-v-bd65748b]:hover{filter:brightness(1.06) saturate(1.1);transform:scale(1.12);box-shadow:inset 0 1px 1px #ffffffbf,inset 0 -1px 1px #0000001f,0 0 0 1px #0000001a,0 2px 4px #0000001f}.g-dialog-control[data-v-bd65748b]:active{transform:scale(.92);filter:brightness(.96)}.g-dialog-control[data-v-bd65748b]:focus-visible{outline:2px solid rgba(68,68,68,.32);outline-offset:3px}.g-dialog-control--close[data-v-bd65748b]{background:linear-gradient(180deg,#ff8077,#ff5f57)}.g-dialog-control--fullscreen[data-v-bd65748b]{background:linear-gradient(180deg,#ffd066,#ffbd2e)}.g-dialog-control--minimize[data-v-bd65748b]{background:linear-gradient(180deg,#4be068,#28c840)}.g-dialog-footer[data-v-bd65748b]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:8px;padding:2px 0}.g-dialog-footer[data-v-bd65748b] .el-button .el-icon{transition:transform .28s cubic-bezier(.34,1.56,.64,1),color .2s ease;will-change:transform}.g-dialog-footer[data-v-bd65748b] .el-button:hover:not(.is-disabled):not(.is-loading) .el-icon{transform:scale(1.18) rotate(-8deg)}.g-dialog-footer[data-v-bd65748b] .el-button:active:not(.is-disabled):not(.is-loading) .el-icon{transform:scale(1.06) rotate(-4deg);transition-duration:.12s}.g-dialog-footer[data-v-bd65748b] .el-button--primary:hover:not(.is-disabled):not(.is-loading) .el-icon{transform:scale(1.18) rotate(8deg)}.g-dialog-footer[data-v-bd65748b] .el-button--primary:active:not(.is-disabled):not(.is-loading) .el-icon{transform:scale(1.06) rotate(4deg)}@media(prefers-reduced-motion:reduce){.g-dialog-control[data-v-bd65748b],.g-dialog-footer[data-v-bd65748b] .el-button .el-icon{transition:none}.g-dialog-footer[data-v-bd65748b] .el-button:hover .el-icon,.g-dialog-footer[data-v-bd65748b] .el-button:active .el-icon{transform:none}}.el-overlay:has(.g-dialog){background:var(--g-dialog-overlay-bg, rgba(15, 23, 42, .32));backdrop-filter:blur(4px) saturate(1.05);-webkit-backdrop-filter:blur(4px) saturate(1.05);animation:g-dialog-overlay-in .22s ease both}@keyframes g-dialog-overlay-in{0%{background:#0f172a00;backdrop-filter:blur(0) saturate(1);-webkit-backdrop-filter:blur(0) saturate(1)}to{background:var(--g-dialog-overlay-bg, rgba(15, 23, 42, .32));backdrop-filter:blur(4px) saturate(1.05);-webkit-backdrop-filter:blur(4px) saturate(1.05)}}@media(prefers-reduced-motion:reduce){.el-overlay:has(.g-dialog){animation:none}}.g-dialog.el-dialog{--el-dialog-padding-primary: 18px;--el-dialog-border-radius: 14px;border-radius:14px;padding:0;overflow:hidden;background:linear-gradient(180deg,var(--g-dialog-sheen, rgba(255, 255, 255, .6)),transparent) top/100% 64px no-repeat,var(--el-bg-color);box-shadow:0 1px 0 var(--g-dialog-inner-highlight, rgba(255, 255, 255, .6)) inset,0 0 0 1px var(--el-border-color-lighter),0 24px 60px -12px var(--g-dialog-shadow-strong, rgba(15, 23, 42, .22)),0 8px 20px -8px var(--g-dialog-shadow-soft, rgba(15, 23, 42, .14))}.g-dialog.el-dialog.is-fullscreen{border-radius:0;box-shadow:none}.g-dialog.el-dialog .el-dialog__header{margin:0;padding:14px 20px;background:linear-gradient(180deg,var(--g-dialog-header-bg, rgba(248, 250, 252, .85)),transparent);position:relative}.g-dialog.el-dialog .el-dialog__body{padding:0 20px;color:var(--el-text-color-regular);font-size:13px;line-height:1.6;max-height:calc(85vh - 132px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--g-dialog-scrollbar, rgba(15, 23, 42, .18)) transparent}.g-dialog.el-dialog .el-dialog__body::-webkit-scrollbar{width:6px;height:6px}.g-dialog.el-dialog .el-dialog__body::-webkit-scrollbar-thumb{background-color:var(--g-dialog-scrollbar, rgba(15, 23, 42, .18));border-radius:3px}.g-dialog.el-dialog .el-dialog__body::-webkit-scrollbar-thumb:hover{background-color:var(--g-dialog-scrollbar-hover, rgba(15, 23, 42, .28))}.g-dialog.el-dialog .el-dialog__body::-webkit-scrollbar-track{background:transparent}.g-dialog.el-dialog .el-dialog__footer{padding:12px 20px;background:linear-gradient(0deg,var(--g-dialog-footer-bg, rgba(248, 250, 252, .7)),transparent);position:relative}html.dark .el-overlay:has(.g-dialog){--g-dialog-overlay-bg: rgba(0, 0, 0, .55)}html.dark .g-dialog.el-dialog{--g-dialog-sheen: rgba(255, 255, 255, .04);--g-dialog-inner-highlight: rgba(255, 255, 255, .06);--g-dialog-shadow-strong: rgba(0, 0, 0, .55);--g-dialog-shadow-soft: rgba(0, 0, 0, .4);--g-dialog-header-bg: rgba(255, 255, 255, .04);--g-dialog-footer-bg: rgba(255, 255, 255, .04);--g-dialog-scrollbar: rgba(255, 255, 255, .18);--g-dialog-scrollbar-hover: rgba(255, 255, 255, .28)}html.dark .g-dialog.el-dialog .g-dialog-control{box-shadow:inset 0 1px 1px #ffffff59,inset 0 -1px 1px #00000047,0 0 0 1px #ffffff14,0 1px 2px #00000073}html.dark .g-dialog.el-dialog .g-dialog-control:hover{box-shadow:inset 0 1px 1px #fff6,inset 0 -1px 1px #00000047,0 0 0 1px #ffffff1f,0 2px 6px #00000080}html.dark .g-dialog.el-dialog .g-dialog-control:focus-visible{outline-color:#ffffff73}.dialog-fade-enter-active .g-dialog.el-dialog,.dialog-fade-leave-active .g-dialog.el-dialog{transition:transform .26s cubic-bezier(.34,1.2,.64,1),opacity .22s ease}.dialog-fade-enter-from .g-dialog.el-dialog,.dialog-fade-leave-to .g-dialog.el-dialog{transform:translateY(-12px) scale(.96);opacity:0}@media(prefers-reduced-motion:reduce){.dialog-fade-enter-active .g-dialog.el-dialog,.dialog-fade-leave-active .g-dialog.el-dialog{transition:opacity .18s ease;transform:none}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),H=require("element-plus"),W=require("../index-il5JtS6o.js"),J=require("../_plugin-vue_export-helper-BHFhmbuH.js"),Q={key:0,class:"g-input-tree-tag__tags"},X=t.defineComponent({__name:"index",props:{modelValue:{default:()=>[]},data:{default:()=>[]},props:{default:()=>({})},nodeKey:{default:"id"},placeholder:{default:"请输入关键字搜索"},width:{default:320},popperMaxHeight:{default:320},popperZIndex:{default:2e3},popperOffset:{default:4},defaultExpandAll:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},tagType:{default:"info"},tagEffect:{default:"light"},clearInputAfterSelect:{type:Boolean,default:!0},enterToAdd:{type:Boolean,default:!0},showLeafIcon:{type:Boolean,default:!0},valueFormat:{default:"value"},selectable:{},filterMethod:{},duplicateMessage:{default:"该项已添加"},notFoundMessage:{default:"未找到匹配项"}},emits:["update:modelValue","change","add","remove","node-click","duplicate","not-found"],setup(_,{expose:R,emit:z}){const o=_,s=z,$=t.computed(()=>({label:o.props.label||"label",children:o.props.children||"children",disabled:o.props.disabled})),P=t.computed(()=>o.props.value||o.nodeKey||"id"),q=t.computed(()=>o.props.label||"label"),O=t.computed(()=>o.props.children||"children"),k=t.computed(()=>o.props.isLeaf),b=e=>e?e[P.value]:void 0,p=e=>e?e[q.value]:"",N=e=>e?e[O.value]:void 0,f=e=>{if(!e)return!1;if(typeof o.selectable=="function")return o.selectable(e);if(k.value&&e[k.value]!==void 0)return!!e[k.value];const l=N(e);return!l||!l.length},V=t.computed(()=>{const e=new Map,l=(a=[])=>{a.forEach(n=>{f(n)&&e.set(b(n),n);const d=N(n);d?.length&&l(d)})};return l(o.data||[]),e}),c=t.computed(()=>(o.modelValue||[]).map(l=>{const a=o.valueFormat==="object"?l?.value:l,n=V.value.get(a),d=o.valueFormat==="object"?l?.label:void 0;return{value:a,label:n?p(n):d??String(a??""),raw:n}})),B=e=>c.value.some(l=>l.value===e),h=t.ref(""),u=t.ref(!1),x=t.ref(null),F=t.ref(null),I=t.ref(null),E=t.ref(null),T=t.ref({}),C=t.ref("bottom"),K=t.computed(()=>typeof o.width=="number"?`${o.width}px`:o.width),M=()=>{o.disabled||(u.value=!0)},w=()=>{if(!u.value)return;const e=I.value,l=E.value;if(!e||!l)return;const a=e.getBoundingClientRect(),n=l.offsetHeight||o.popperMaxHeight,m=window.innerHeight-a.bottom,r=a.top;let i;m>=n+o.popperOffset||m>=r?(i=a.bottom+o.popperOffset,C.value="bottom"):(i=a.top-n-o.popperOffset,C.value="top"),T.value={position:"fixed",top:`${i}px`,left:`${a.left}px`,width:`${a.width}px`,zIndex:String(o.popperZIndex)}};let v=null;const y=()=>{u.value&&(v&&cancelAnimationFrame(v),v=requestAnimationFrame(()=>{v=null,w()}))};t.watch(u,async e=>{e&&(await t.nextTick(),w(),requestAnimationFrame(w))});const L=e=>{if(!u.value)return;const l=e.target;F.value?.contains(l)||E.value?.contains(l)||(u.value=!1)};t.onMounted(()=>{document.addEventListener("mousedown",L,!0),window.addEventListener("scroll",y,!0),window.addEventListener("resize",y)}),t.onBeforeUnmount(()=>{document.removeEventListener("mousedown",L,!0),window.removeEventListener("scroll",y,!0),window.removeEventListener("resize",y),v&&cancelAnimationFrame(v)});const j=e=>{u.value=!0,x.value?.filter(e),t.nextTick(w)},D=(e,l)=>e?typeof o.filterMethod=="function"?o.filterMethod(e,l):String(p(l)??"").toLowerCase().includes(String(e).toLowerCase()):!0,U=e=>{s("node-click",e),f(e)&&(S(e),u.value=!1)},G=e=>o.valueFormat==="object"?{value:e.value,label:e.label,raw:e.raw}:e.value,S=e=>{const l=b(e);if(l==null||l==="")return;if(B(l)){const d={value:l,label:p(e),raw:e};s("duplicate",d),o.duplicateMessage&&H.ElMessage.warning(o.duplicateMessage);return}const a={value:l,label:p(e),raw:e},n=[...o.modelValue||[],G(a)];s("update:modelValue",n),s("add",a),s("change",n,[...c.value,a]),o.clearInputAfterSelect&&(h.value="")},Z=()=>{if(!o.enterToAdd)return;const e=(h.value||"").trim();if(!e)return;let l=null;for(const a of V.value.values())if(p(a)===e){l=a;break}if(!l){s("not-found",e),o.notFoundMessage&&H.ElMessage.warning(o.notFoundMessage);return}S(l)},A=e=>{const l=c.value[e],a=[...o.modelValue||[]];a.splice(e,1),s("update:modelValue",a),l&&s("remove",l,e);const n=c.value.filter((d,m)=>m!==e);s("change",a,n)};return R({open:M,close:()=>u.value=!1,clear:()=>{s("update:modelValue",[]),s("change",[],[])},addByValue:e=>{const l=V.value.get(e);l&&S(l)}}),(e,l)=>{const a=t.resolveComponent("el-input"),n=t.resolveComponent("el-icon"),d=t.resolveComponent("el-tree"),m=t.resolveComponent("el-tag");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["g-input-tree-tag",{"is-disabled":e.disabled}])},[t.createElementVNode("div",{class:"g-input-tree-tag__wrap",ref_key:"wrapRef",ref:F},[t.createElementVNode("div",{class:"g-input-tree-tag__input-box",ref_key:"inputBoxRef",ref:I,style:t.normalizeStyle({width:K.value})},[t.createVNode(a,{modelValue:h.value,"onUpdate:modelValue":l[0]||(l[0]=r=>h.value=r),placeholder:e.placeholder,clearable:e.clearable,disabled:e.disabled,class:"g-input-tree-tag__input",onFocus:M,onClick:M,onInput:j,onKeyup:t.withKeys(Z,["enter"])},null,8,["modelValue","placeholder","clearable","disabled"])],4),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.withDirectives(t.createElementVNode("div",{ref_key:"popperRef",ref:E,class:t.normalizeClass(["g-input-tree-tag__popover",`is-${C.value}`]),style:t.normalizeStyle(T.value),onMousedown:l[1]||(l[1]=t.withModifiers(()=>{},["prevent"]))},[t.createElementVNode("div",{class:"g-input-tree-tag__tree-wrap",style:t.normalizeStyle({maxHeight:e.popperMaxHeight+"px"})},[t.createVNode(d,{ref_key:"treeRef",ref:x,data:e.data,props:$.value,"node-key":e.nodeKey,"filter-node-method":D,"expand-on-click-node":!1,"default-expand-all":e.defaultExpandAll,onNodeClick:U},{default:t.withCtx(({data:r,node:i})=>[t.renderSlot(e.$slots,"tree-node",{data:r,node:i,selectable:f(r),selected:B(b(r))},()=>[t.createElementVNode("span",{class:t.normalizeClass(["g-input-tree-tag__node",{"is-selectable":f(r),"is-selected":f(r)&&B(b(r))}])},[f(r)&&e.showLeafIcon?(t.openBlock(),t.createBlock(n,{key:0,class:"g-input-tree-tag__node-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(W.user_default))]),_:1})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(p(r)),1)],2)],!0)]),_:3},8,["data","props","node-key","default-expand-all"])],4)],38),[[t.vShow,u.value]])])),c.value.length?(t.openBlock(),t.createElementBlock("div",Q,[t.renderSlot(e.$slots,"tags",{items:c.value,remove:A},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,(r,i)=>(t.openBlock(),t.createBlock(m,{key:r.value,class:"g-input-tree-tag__tag",type:e.tagType,effect:e.tagEffect,closable:e.closable&&!e.disabled,onClose:Y=>A(i)},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"tag",{item:r,index:i},()=>[t.createTextVNode(t.toDisplayString(r.label),1)],!0)]),_:2},1032,["type","effect","closable","onClose"]))),128))],!0)])):t.createCommentVNode("",!0)],512)],2)}}}),g=J._export_sfc(X,[["__scopeId","data-v-f235428c"]]);g.install=_=>{_.component(g.name,g)};exports.GInputTreeTag=g;exports.default=g;
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { defineComponent as de, computed as d, ref as p, watch as pe, nextTick as Z, onMounted as ce, onBeforeUnmount as fe, resolveComponent as V, createElementBlock as S, openBlock as b, normalizeClass as A, createElementVNode as h, createBlock as N, createCommentVNode as G, normalizeStyle as T, createVNode as R, withKeys as ve, Teleport as me, withDirectives as ge, withModifiers as be, withCtx as H, renderSlot as $, createTextVNode as W, unref as he, toDisplayString as J, vShow as we, Fragment as ye, renderList as _e } from "vue";
|
|
2
|
+
import { ElMessage as Q } from "element-plus";
|
|
3
|
+
import { u as ke } from "../index-CzamRrBC.mjs";
|
|
4
|
+
import { _ as Ve } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
|
+
const Ee = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "g-input-tree-tag__tags"
|
|
8
|
+
}, Fe = /* @__PURE__ */ de({
|
|
9
|
+
__name: "index",
|
|
10
|
+
props: {
|
|
11
|
+
modelValue: { default: () => [] },
|
|
12
|
+
data: { default: () => [] },
|
|
13
|
+
props: { default: () => ({}) },
|
|
14
|
+
nodeKey: { default: "id" },
|
|
15
|
+
placeholder: { default: "请输入关键字搜索" },
|
|
16
|
+
width: { default: 320 },
|
|
17
|
+
popperMaxHeight: { default: 320 },
|
|
18
|
+
popperZIndex: { default: 2e3 },
|
|
19
|
+
popperOffset: { default: 4 },
|
|
20
|
+
defaultExpandAll: { type: Boolean, default: !0 },
|
|
21
|
+
disabled: { type: Boolean, default: !1 },
|
|
22
|
+
clearable: { type: Boolean, default: !0 },
|
|
23
|
+
closable: { type: Boolean, default: !0 },
|
|
24
|
+
tagType: { default: "info" },
|
|
25
|
+
tagEffect: { default: "light" },
|
|
26
|
+
clearInputAfterSelect: { type: Boolean, default: !0 },
|
|
27
|
+
enterToAdd: { type: Boolean, default: !0 },
|
|
28
|
+
showLeafIcon: { type: Boolean, default: !0 },
|
|
29
|
+
valueFormat: { default: "value" },
|
|
30
|
+
selectable: {},
|
|
31
|
+
filterMethod: {},
|
|
32
|
+
duplicateMessage: { default: "该项已添加" },
|
|
33
|
+
notFoundMessage: { default: "未找到匹配项" }
|
|
34
|
+
},
|
|
35
|
+
emits: ["update:modelValue", "change", "add", "remove", "node-click", "duplicate", "not-found"],
|
|
36
|
+
setup(E, { expose: X, emit: Y }) {
|
|
37
|
+
const l = E, r = Y, ee = d(() => ({
|
|
38
|
+
label: l.props.label || "label",
|
|
39
|
+
children: l.props.children || "children",
|
|
40
|
+
disabled: l.props.disabled
|
|
41
|
+
})), te = d(() => l.props.value || l.nodeKey || "id"), le = d(() => l.props.label || "label"), ae = d(() => l.props.children || "children"), F = d(() => l.props.isLeaf), w = (e) => e ? e[te.value] : void 0, f = (e) => e ? e[le.value] : "", K = (e) => e ? e[ae.value] : void 0, v = (e) => {
|
|
42
|
+
if (!e) return !1;
|
|
43
|
+
if (typeof l.selectable == "function") return l.selectable(e);
|
|
44
|
+
if (F.value && e[F.value] !== void 0) return !!e[F.value];
|
|
45
|
+
const t = K(e);
|
|
46
|
+
return !t || !t.length;
|
|
47
|
+
}, B = d(() => {
|
|
48
|
+
const e = /* @__PURE__ */ new Map(), t = (a = []) => {
|
|
49
|
+
a.forEach((o) => {
|
|
50
|
+
v(o) && e.set(w(o), o);
|
|
51
|
+
const u = K(o);
|
|
52
|
+
u?.length && t(u);
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
return t(l.data || []), e;
|
|
56
|
+
}), c = d(() => (l.modelValue || []).map((t) => {
|
|
57
|
+
const a = l.valueFormat === "object" ? t?.value : t, o = B.value.get(a), u = l.valueFormat === "object" ? t?.label : void 0;
|
|
58
|
+
return {
|
|
59
|
+
value: a,
|
|
60
|
+
label: o ? f(o) : u ?? String(a ?? ""),
|
|
61
|
+
raw: o
|
|
62
|
+
};
|
|
63
|
+
})), M = (e) => c.value.some((t) => t.value === e), y = p(""), s = p(!1), O = p(null), P = p(null), j = p(null), C = p(null), U = p({}), I = p("bottom"), oe = d(
|
|
64
|
+
() => typeof l.width == "number" ? `${l.width}px` : l.width
|
|
65
|
+
), L = () => {
|
|
66
|
+
l.disabled || (s.value = !0);
|
|
67
|
+
}, _ = () => {
|
|
68
|
+
if (!s.value) return;
|
|
69
|
+
const e = j.value, t = C.value;
|
|
70
|
+
if (!e || !t) return;
|
|
71
|
+
const a = e.getBoundingClientRect(), o = t.offsetHeight || l.popperMaxHeight, g = window.innerHeight - a.bottom, n = a.top;
|
|
72
|
+
let i;
|
|
73
|
+
g >= o + l.popperOffset || g >= n ? (i = a.bottom + l.popperOffset, I.value = "bottom") : (i = a.top - o - l.popperOffset, I.value = "top"), U.value = {
|
|
74
|
+
position: "fixed",
|
|
75
|
+
top: `${i}px`,
|
|
76
|
+
left: `${a.left}px`,
|
|
77
|
+
width: `${a.width}px`,
|
|
78
|
+
zIndex: String(l.popperZIndex)
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
let m = null;
|
|
82
|
+
const k = () => {
|
|
83
|
+
s.value && (m && cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
84
|
+
m = null, _();
|
|
85
|
+
}));
|
|
86
|
+
};
|
|
87
|
+
pe(s, async (e) => {
|
|
88
|
+
e && (await Z(), _(), requestAnimationFrame(_));
|
|
89
|
+
});
|
|
90
|
+
const q = (e) => {
|
|
91
|
+
if (!s.value) return;
|
|
92
|
+
const t = e.target;
|
|
93
|
+
P.value?.contains(t) || C.value?.contains(t) || (s.value = !1);
|
|
94
|
+
};
|
|
95
|
+
ce(() => {
|
|
96
|
+
document.addEventListener("mousedown", q, !0), window.addEventListener("scroll", k, !0), window.addEventListener("resize", k);
|
|
97
|
+
}), fe(() => {
|
|
98
|
+
document.removeEventListener("mousedown", q, !0), window.removeEventListener("scroll", k, !0), window.removeEventListener("resize", k), m && cancelAnimationFrame(m);
|
|
99
|
+
});
|
|
100
|
+
const ne = (e) => {
|
|
101
|
+
s.value = !0, O.value?.filter(e), Z(_);
|
|
102
|
+
}, re = (e, t) => e ? typeof l.filterMethod == "function" ? l.filterMethod(e, t) : String(f(t) ?? "").toLowerCase().includes(String(e).toLowerCase()) : !0, se = (e) => {
|
|
103
|
+
r("node-click", e), v(e) && (x(e), s.value = !1);
|
|
104
|
+
}, ue = (e) => l.valueFormat === "object" ? { value: e.value, label: e.label, raw: e.raw } : e.value, x = (e) => {
|
|
105
|
+
const t = w(e);
|
|
106
|
+
if (t == null || t === "") return;
|
|
107
|
+
if (M(t)) {
|
|
108
|
+
const u = { value: t, label: f(e), raw: e };
|
|
109
|
+
r("duplicate", u), l.duplicateMessage && Q.warning(l.duplicateMessage);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
const a = { value: t, label: f(e), raw: e }, o = [...l.modelValue || [], ue(a)];
|
|
113
|
+
r("update:modelValue", o), r("add", a), r("change", o, [...c.value, a]), l.clearInputAfterSelect && (y.value = "");
|
|
114
|
+
}, ie = () => {
|
|
115
|
+
if (!l.enterToAdd) return;
|
|
116
|
+
const e = (y.value || "").trim();
|
|
117
|
+
if (!e) return;
|
|
118
|
+
let t = null;
|
|
119
|
+
for (const a of B.value.values())
|
|
120
|
+
if (f(a) === e) {
|
|
121
|
+
t = a;
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
if (!t) {
|
|
125
|
+
r("not-found", e), l.notFoundMessage && Q.warning(l.notFoundMessage);
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
x(t);
|
|
129
|
+
}, D = (e) => {
|
|
130
|
+
const t = c.value[e], a = [...l.modelValue || []];
|
|
131
|
+
a.splice(e, 1), r("update:modelValue", a), t && r("remove", t, e);
|
|
132
|
+
const o = c.value.filter((u, g) => g !== e);
|
|
133
|
+
r("change", a, o);
|
|
134
|
+
};
|
|
135
|
+
return X({
|
|
136
|
+
/** 主动打开下拉面板 */
|
|
137
|
+
open: L,
|
|
138
|
+
/** 主动关闭下拉面板 */
|
|
139
|
+
close: () => s.value = !1,
|
|
140
|
+
/** 清空已选 */
|
|
141
|
+
clear: () => {
|
|
142
|
+
r("update:modelValue", []), r("change", [], []);
|
|
143
|
+
},
|
|
144
|
+
/** 根据 value 直接添加 */
|
|
145
|
+
addByValue: (e) => {
|
|
146
|
+
const t = B.value.get(e);
|
|
147
|
+
t && x(t);
|
|
148
|
+
}
|
|
149
|
+
}), (e, t) => {
|
|
150
|
+
const a = V("el-input"), o = V("el-icon"), u = V("el-tree"), g = V("el-tag");
|
|
151
|
+
return b(), S("div", {
|
|
152
|
+
class: A(["g-input-tree-tag", { "is-disabled": e.disabled }])
|
|
153
|
+
}, [
|
|
154
|
+
h("div", {
|
|
155
|
+
class: "g-input-tree-tag__wrap",
|
|
156
|
+
ref_key: "wrapRef",
|
|
157
|
+
ref: P
|
|
158
|
+
}, [
|
|
159
|
+
h("div", {
|
|
160
|
+
class: "g-input-tree-tag__input-box",
|
|
161
|
+
ref_key: "inputBoxRef",
|
|
162
|
+
ref: j,
|
|
163
|
+
style: T({ width: oe.value })
|
|
164
|
+
}, [
|
|
165
|
+
R(a, {
|
|
166
|
+
modelValue: y.value,
|
|
167
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => y.value = n),
|
|
168
|
+
placeholder: e.placeholder,
|
|
169
|
+
clearable: e.clearable,
|
|
170
|
+
disabled: e.disabled,
|
|
171
|
+
class: "g-input-tree-tag__input",
|
|
172
|
+
onFocus: L,
|
|
173
|
+
onClick: L,
|
|
174
|
+
onInput: ne,
|
|
175
|
+
onKeyup: ve(ie, ["enter"])
|
|
176
|
+
}, null, 8, ["modelValue", "placeholder", "clearable", "disabled"])
|
|
177
|
+
], 4),
|
|
178
|
+
(b(), N(me, { to: "body" }, [
|
|
179
|
+
ge(h("div", {
|
|
180
|
+
ref_key: "popperRef",
|
|
181
|
+
ref: C,
|
|
182
|
+
class: A(["g-input-tree-tag__popover", `is-${I.value}`]),
|
|
183
|
+
style: T(U.value),
|
|
184
|
+
onMousedown: t[1] || (t[1] = be(() => {
|
|
185
|
+
}, ["prevent"]))
|
|
186
|
+
}, [
|
|
187
|
+
h("div", {
|
|
188
|
+
class: "g-input-tree-tag__tree-wrap",
|
|
189
|
+
style: T({ maxHeight: e.popperMaxHeight + "px" })
|
|
190
|
+
}, [
|
|
191
|
+
R(u, {
|
|
192
|
+
ref_key: "treeRef",
|
|
193
|
+
ref: O,
|
|
194
|
+
data: e.data,
|
|
195
|
+
props: ee.value,
|
|
196
|
+
"node-key": e.nodeKey,
|
|
197
|
+
"filter-node-method": re,
|
|
198
|
+
"expand-on-click-node": !1,
|
|
199
|
+
"default-expand-all": e.defaultExpandAll,
|
|
200
|
+
onNodeClick: se
|
|
201
|
+
}, {
|
|
202
|
+
default: H(({ data: n, node: i }) => [
|
|
203
|
+
$(e.$slots, "tree-node", {
|
|
204
|
+
data: n,
|
|
205
|
+
node: i,
|
|
206
|
+
selectable: v(n),
|
|
207
|
+
selected: M(w(n))
|
|
208
|
+
}, () => [
|
|
209
|
+
h("span", {
|
|
210
|
+
class: A([
|
|
211
|
+
"g-input-tree-tag__node",
|
|
212
|
+
{
|
|
213
|
+
"is-selectable": v(n),
|
|
214
|
+
"is-selected": v(n) && M(w(n))
|
|
215
|
+
}
|
|
216
|
+
])
|
|
217
|
+
}, [
|
|
218
|
+
v(n) && e.showLeafIcon ? (b(), N(o, {
|
|
219
|
+
key: 0,
|
|
220
|
+
class: "g-input-tree-tag__node-icon"
|
|
221
|
+
}, {
|
|
222
|
+
default: H(() => [
|
|
223
|
+
R(he(ke))
|
|
224
|
+
]),
|
|
225
|
+
_: 1
|
|
226
|
+
})) : G("", !0),
|
|
227
|
+
W(" " + J(f(n)), 1)
|
|
228
|
+
], 2)
|
|
229
|
+
], !0)
|
|
230
|
+
]),
|
|
231
|
+
_: 3
|
|
232
|
+
}, 8, ["data", "props", "node-key", "default-expand-all"])
|
|
233
|
+
], 4)
|
|
234
|
+
], 38), [
|
|
235
|
+
[we, s.value]
|
|
236
|
+
])
|
|
237
|
+
])),
|
|
238
|
+
c.value.length ? (b(), S("div", Ee, [
|
|
239
|
+
$(e.$slots, "tags", {
|
|
240
|
+
items: c.value,
|
|
241
|
+
remove: D
|
|
242
|
+
}, () => [
|
|
243
|
+
(b(!0), S(ye, null, _e(c.value, (n, i) => (b(), N(g, {
|
|
244
|
+
key: n.value,
|
|
245
|
+
class: "g-input-tree-tag__tag",
|
|
246
|
+
type: e.tagType,
|
|
247
|
+
effect: e.tagEffect,
|
|
248
|
+
closable: e.closable && !e.disabled,
|
|
249
|
+
onClose: (Be) => D(i)
|
|
250
|
+
}, {
|
|
251
|
+
default: H(() => [
|
|
252
|
+
$(e.$slots, "tag", {
|
|
253
|
+
item: n,
|
|
254
|
+
index: i
|
|
255
|
+
}, () => [
|
|
256
|
+
W(J(n.label), 1)
|
|
257
|
+
], !0)
|
|
258
|
+
]),
|
|
259
|
+
_: 2
|
|
260
|
+
}, 1032, ["type", "effect", "closable", "onClose"]))), 128))
|
|
261
|
+
], !0)
|
|
262
|
+
])) : G("", !0)
|
|
263
|
+
], 512)
|
|
264
|
+
], 2);
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
}), z = /* @__PURE__ */ Ve(Fe, [["__scopeId", "data-v-f235428c"]]);
|
|
268
|
+
z.install = (E) => {
|
|
269
|
+
E.component(z.name, z);
|
|
270
|
+
};
|
|
271
|
+
export {
|
|
272
|
+
z as GInputTreeTag,
|
|
273
|
+
z as default
|
|
274
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@charset "UTF-8";.g-input-tree-tag[data-v-f235428c]{width:100%}.g-input-tree-tag__wrap[data-v-f235428c]{display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:100%}.g-input-tree-tag__tags[data-v-f235428c]{display:flex;flex-wrap:wrap;gap:8px;width:100%}.g-input-tree-tag__tag[data-v-f235428c]{margin:0}.g-input-tree-tag.is-disabled[data-v-f235428c]{cursor:not-allowed}.g-input-tree-tag__popover{box-sizing:border-box;background:var(--el-bg-color-overlay, #fff);border:1px solid var(--el-border-color-light);border-radius:4px;box-shadow:var(--el-box-shadow-light);padding:8px 0}.g-input-tree-tag__popover .g-input-tree-tag__tree-wrap{overflow:auto}.g-input-tree-tag__popover .g-input-tree-tag__node{display:inline-flex;align-items:center;gap:4px;font-size:13px}.g-input-tree-tag__popover .g-input-tree-tag__node-icon{font-size:14px;color:var(--el-text-color-secondary)}.g-input-tree-tag__popover .g-input-tree-tag__node.is-selectable{cursor:pointer;color:var(--el-text-color-primary)}.g-input-tree-tag__popover .g-input-tree-tag__node.is-selected,.g-input-tree-tag__popover .g-input-tree-tag__node.is-selected .g-input-tree-tag__node-icon{color:var(--el-color-primary)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
package/lib/GPie3D/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("vue"),pt=require("../_plugin-vue_export-helper-BHFhmbuH.js"),vt={class:"g-pie3d-tooltip__default"},gt={class:"g-pie3d-tooltip__name"},yt={class:"g-pie3d-tooltip__value"},mt=260,xt=h.defineComponent({__name:"index",props:{data:{default:()=>[]},config:{default:()=>({})},animation:{type:Boolean,default:!0}},emits:["slice-click"],setup(V,{emit:at}){const S=V,lt=at,N={alpha:55,depth:26,startAngle:0,colors:["#22d3ee","#3b82f6","#8b5cf6","#06b6d4","#0ea5e9","#a855f7","#14b8a6"],textColor:"#cbd5e1",radiusRatio:.55,hoverDistance:14,showLabel:!0,showPercent:!0,labelFontSize:12,opacity:.7,showAura:!0,glowColor:"",labelLineColor:"auto",labelLineWidth:1},a={...N,...S.config},E=h.ref(null),C=h.ref(null);let L=null,_=0,k=0,Y=1,p=0,u=0,g=0,M=0,A=[],B=S.animation?0:1,F=null,q=S.animation,I=null,X=0;const D=h.ref(-1),H=h.ref(!1),J=h.ref(0),K=h.ref(0),R=h.ref(null),O=h.ref(0),Q=t=>t*Math.PI/180,j=(t,l=0,n=0)=>({x:p+l+g*Math.cos(t),y:u+n+M*Math.sin(t)}),G=(t,l=0,n=0)=>({x:p+l+g*Math.cos(t),y:u+n+M*Math.sin(t)+a.depth}),W=()=>{if(!C.value||!E.value)return;const t=E.value,l=C.value;Y=window.devicePixelRatio||1,_=t.clientWidth,k=t.clientHeight,l.width=_*Y,l.height=k*Y,l.style.width=_+"px",l.style.height=k+"px",L=l.getContext("2d"),L&&L.setTransform(Y,0,0,Y,0,0),p=_/2,u=k/2-a.depth/2;const n=a.showLabel?60:10,s=Math.min(_,k-a.depth-n)/2*a.radiusRatio*1.6;g=Math.max(20,s),M=g*Math.cos(Q(a.alpha)),it(),q?st():U()},it=()=>{A=[];const t=S.data.reduce((n,s)=>n+(s.value||0),0);if(t<=0)return;let l=-Math.PI/2+Q(a.startAngle);S.data.forEach((n,s)=>{const i=n.value/t,d=i*Math.PI*2;A.push({data:n,index:s,color:n.color||a.colors[s%a.colors.length],startA:l,endA:l+d,midA:l+d/2,percent:i,hover:!1,hoverProgress:0}),l+=d})},st=()=>{B=0;const t=800,l=performance.now(),n=s=>{const i=Math.min(1,(s-l)/t);B=1-Math.pow(1-i,3),U(),i<1?F=requestAnimationFrame(n):(q=!1,F=null)};F=requestAnimationFrame(n)},rt=t=>1-Math.pow(1-t,3),Z=t=>{const l=X===0?16:t-X;X=t;const n=l/mt;let s=!1;for(const i of A){const d=i.hover?1:0;if(i.hoverProgress===d)continue;const v=d>i.hoverProgress?1:-1;i.hoverProgress+=v*n,(v>0&&i.hoverProgress>=d||v<0&&i.hoverProgress<=d)&&(i.hoverProgress=d),i.hoverProgress!==d&&(s=!0)}U(),s?I=requestAnimationFrame(Z):(I=null,X=0)},tt=()=>{I==null&&(X=0,I=requestAnimationFrame(Z))},T=(t,l)=>{let n=t.replace("#","");n.length===3&&(n=n.split("").map(v=>v+v).join(""));const s=parseInt(n.slice(0,2),16),i=parseInt(n.slice(2,4),16),d=parseInt(n.slice(4,6),16);return`rgba(${s},${i},${d},${l})`},U=()=>{if(!L)return;const t=L;if(t.clearRect(0,0,_,k),!A.length)return;const l=A[0]?.startA??0,n=Math.PI*2*B,s=l+n,i=A.map(e=>{const c=e.startA,f=Math.min(e.endA,s),y=f>c,x=rt(Math.max(0,Math.min(1,e.hoverProgress))),b=Math.cos(e.midA)*a.hoverDistance*x,P=Math.sin(e.midA)*a.hoverDistance*x;return{...e,startA:c,endA:f,valid:y,ox:b,oy:P,hp:x}});if(a.showAura){const e=t.createRadialGradient(p,u+a.depth,g*.1,p,u+a.depth,g*1.5);e.addColorStop(0,"rgba(6,182,212,0.15)"),e.addColorStop(.4,"rgba(59,130,246,0.08)"),e.addColorStop(.8,"rgba(139,92,246,0.03)"),e.addColorStop(1,"rgba(0,0,0,0)"),t.beginPath(),t.ellipse(p,u+a.depth,g*1.5,M*.9,0,0,Math.PI*2),t.fillStyle=e,t.fill(),t.strokeStyle="rgba(56,189,248,0.08)",t.lineWidth=1;for(let c=3;c>=1;c--){const f=g*(.3+c*.25);t.beginPath(),t.ellipse(p,u+a.depth,f,f*(M/g),0,0,Math.PI*2),t.stroke()}}const d=(e,c)=>{const f=a.glowColor||e.color,y={x:p+e.ox,y:u+e.oy},x={x:y.x,y:y.y+a.depth},b=j(c,e.ox,e.oy),P=G(c,e.ox,e.oy);t.fillStyle=T(f,a.opacity*.5),t.beginPath(),t.moveTo(y.x,y.y),t.lineTo(b.x,b.y),t.lineTo(P.x,P.y),t.lineTo(x.x,x.y),t.closePath(),t.fill(),t.strokeStyle=T(f,.8),t.lineWidth=.8,t.beginPath(),t.moveTo(b.x,b.y),t.lineTo(P.x,P.y),t.stroke()};for(const e of i)e.valid&&(Math.sin(e.startA)<=.001&&d(e,e.startA),Math.sin(e.endA)<=.001&&d(e,e.endA));const v=Math.PI/120;for(const e of i){if(!e.valid)continue;let c=e.startA;const f=a.glowColor||e.color;for(;c<e.endA;){const y=Math.min(c+v,e.endA),x=(c+y)/2;if(Math.sin(x)>0){const b=j(c,e.ox,e.oy),P=j(y,e.ox,e.oy),o=G(y,e.ox,e.oy),m=G(c,e.ox,e.oy);t.fillStyle=T(f,a.opacity*.4),t.beginPath(),t.moveTo(b.x,b.y),t.lineTo(P.x,P.y),t.lineTo(o.x,o.y),t.lineTo(m.x,m.y),t.closePath(),t.fill(),t.strokeStyle=T(f,.7),t.lineWidth=.8,t.beginPath(),t.moveTo(m.x,m.y),t.lineTo(o.x,o.y),t.stroke()}c=y}}for(const e of i)e.valid&&(Math.sin(e.startA)>.001&&d(e,e.startA),Math.sin(e.endA)>.001&&d(e,e.endA));for(const e of i){if(!e.valid)continue;const c=a.glowColor||e.color;e.hp>.01&&(t.save(),t.shadowColor=c,t.shadowBlur=12*e.hp,t.beginPath(),t.moveTo(p+e.ox,u+e.oy),t.ellipse(p+e.ox,u+e.oy,g,M,0,e.startA,e.endA),t.closePath(),t.fillStyle=T(c,.08*e.hp),t.fill(),t.restore()),t.beginPath(),t.moveTo(p+e.ox,u+e.oy),t.ellipse(p+e.ox,u+e.oy,g,M,0,e.startA,e.endA),t.closePath();const f=t.createRadialGradient(p+e.ox-g*.2,u+e.oy-M*.2,0,p+e.ox,u+e.oy,g*1.05);f.addColorStop(0,T(c,a.opacity*.95)),f.addColorStop(.6,T(c,a.opacity*.8)),f.addColorStop(1,T(c,a.opacity*.6)),t.fillStyle=f,t.fill(),t.strokeStyle=T(c,.95),t.lineWidth=.8+.6*e.hp,t.stroke()}if(a.showLabel&&B>=.999){t.font=`${a.labelFontSize}px Arial, sans-serif`,t.textBaseline="middle";const e=[],c=[],f=a.labelFontSize+6,y=14,x=4;for(const o of i){if(!o.valid)continue;const m=Math.cos(o.midA)>=0,w=p+o.ox+g*1.02*Math.cos(o.midA),r=u+o.oy+M*1.02*Math.sin(o.midA),z=u+o.oy+M*1.18*Math.sin(o.midA),dt=a.showPercent?`${o.data.name} ${(o.percent*100).toFixed(1)}%`:`${o.data.name}`,ft=!a.labelLineColor||a.labelLineColor==="auto"?a.glowColor||o.color:a.labelLineColor,ut={slice:o,text:dt,isRight:m,anchorX:w,anchorY:r,targetY:z,y:z,color:ft};(m?c:e).push(ut)}const b=o=>{if(!o.length)return;o.sort((r,z)=>r.targetY-z.targetY);const m=x+a.labelFontSize/2,w=k-x-a.labelFontSize/2;for(let r=0;r<o.length;r++)r===0?o[r].y=Math.max(m,o[r].targetY):o[r].y=Math.max(o[r].targetY,o[r-1].y+f);if(o[o.length-1].y>w){o[o.length-1].y=w;for(let r=o.length-2;r>=0;r--)o[r].y>o[r+1].y-f&&(o[r].y=o[r+1].y-f)}for(let r=0;r<o.length;r++)o[r].y<m&&(o[r].y=m)};b(e),b(c),t.lineWidth=a.labelLineWidth;const P=[...e,...c];for(const o of P){const m=t.measureText(o.text).width;let w;if(o.isRight){const r=Math.min(Math.max(o.anchorX+6,o.anchorX+Math.abs(o.targetY-o.y)*.2+6),_-x-m-y);w=r+y,t.strokeStyle=o.color,t.beginPath(),t.moveTo(o.anchorX,o.anchorY),t.lineTo(r,o.y),t.lineTo(w,o.y),t.stroke(),t.fillStyle=a.textColor,t.textAlign="left",t.fillText(o.text,w+2,o.y)}else{const r=Math.max(Math.min(o.anchorX-6,o.anchorX-Math.abs(o.targetY-o.y)*.2-6),x+m+y);w=r-y,t.strokeStyle=o.color,t.beginPath(),t.moveTo(o.anchorX,o.anchorY),t.lineTo(r,o.y),t.lineTo(w,o.y),t.stroke(),t.fillStyle=a.textColor,t.textAlign="right",t.fillText(o.text,w-2,o.y)}}}},et=(t,l)=>{for(let n=0;n<A.length;n++){const s=A[n],i=(t-p)/g,d=(l-u)/M;if(i*i+d*d>1)continue;let v=Math.atan2((l-u)/M,(t-p)/g);for(;v<s.startA;)v+=Math.PI*2;for(;v>s.startA+Math.PI*2;)v-=Math.PI*2;if(v>=s.startA&&v<=s.endA)return n}return-1},ot=t=>{const l=C.value,n=l.getBoundingClientRect(),s=n.width/(l.clientWidth||n.width)||1,i=n.height/(l.clientHeight||n.height)||1;return{mx:(t.clientX-n.left)/s,my:(t.clientY-n.top)/i}},ct=t=>{if(!C.value)return;const{mx:l,my:n}=ot(t),s=et(l,n);if(s!==D.value&&(D.value=s,A.forEach((i,d)=>i.hover=d===s),tt()),s>=0){const i=A[s];H.value=!0,R.value=i.data,O.value=i.percent;const d=E.value?.clientWidth||0,v=E.value?.clientHeight||0,e=Math.min(l+12,d-140),c=Math.min(n+12,v-60);J.value=Math.max(0,e),K.value=Math.max(0,c)}else H.value=!1,R.value=null},ht=()=>{D.value!==-1&&(D.value=-1,A.forEach(t=>t.hover=!1),tt()),H.value=!1,R.value=null},nt=t=>{if(!C.value)return;const{mx:l,my:n}=ot(t),s=et(l,n);s>=0&<("slice-click",A[s].data,s)};return h.watch(()=>S.data,()=>{Object.assign(a,N,S.config),q=S.animation,W()},{deep:!0}),h.watch(()=>S.config,()=>{Object.assign(a,N,S.config),W()},{deep:!0}),h.onMounted(()=>{W(),window.addEventListener("resize",W),C.value?.addEventListener("click",nt)}),h.onUnmounted(()=>{window.removeEventListener("resize",W),C.value?.removeEventListener("click",nt),F&&cancelAnimationFrame(F),I&&cancelAnimationFrame(I)}),(t,l)=>(h.openBlock(),h.createElementBlock("div",{class:"g-pie3d-container",ref_key:"containerRef",ref:E},[h.createElementVNode("canvas",{ref_key:"canvasRef",ref:C,onMousemove:ct,onMouseleave:ht},null,544),H.value?(h.openBlock(),h.createElementBlock("div",{key:0,class:"g-pie3d-tooltip",style:h.normalizeStyle({left:`${J.value}px`,top:`${K.value}px`})},[h.renderSlot(t.$slots,"tooltip",{data:R.value,percent:O.value},()=>[h.createElementVNode("div",vt,[h.createElementVNode("p",gt,h.toDisplayString(R.value?.name),1),h.createElementVNode("p",yt,h.toDisplayString(R.value?.value)+" ("+h.toDisplayString((O.value*100).toFixed(1))+"%) ",1)])],!0)],4)):h.createCommentVNode("",!0)],512))}}),$=pt._export_sfc(xt,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("vue"),pt=require("../_plugin-vue_export-helper-BHFhmbuH.js"),vt={class:"g-pie3d-tooltip__default"},gt={class:"g-pie3d-tooltip__name"},yt={class:"g-pie3d-tooltip__value"},mt=260,xt=h.defineComponent({__name:"index",props:{data:{default:()=>[]},config:{default:()=>({})},animation:{type:Boolean,default:!0}},emits:["slice-click"],setup(V,{emit:at}){const S=V,lt=at,N={alpha:55,depth:26,startAngle:0,colors:["#22d3ee","#3b82f6","#8b5cf6","#06b6d4","#0ea5e9","#a855f7","#14b8a6"],textColor:"#cbd5e1",radiusRatio:.55,hoverDistance:14,showLabel:!0,showPercent:!0,labelFontSize:12,opacity:.7,showAura:!0,glowColor:"",labelLineColor:"auto",labelLineWidth:1},a={...N,...S.config},E=h.ref(null),C=h.ref(null);let L=null,_=0,k=0,Y=1,p=0,u=0,g=0,M=0,A=[],B=S.animation?0:1,F=null,q=S.animation,I=null,X=0;const D=h.ref(-1),H=h.ref(!1),J=h.ref(0),K=h.ref(0),R=h.ref(null),O=h.ref(0),Q=t=>t*Math.PI/180,j=(t,l=0,n=0)=>({x:p+l+g*Math.cos(t),y:u+n+M*Math.sin(t)}),G=(t,l=0,n=0)=>({x:p+l+g*Math.cos(t),y:u+n+M*Math.sin(t)+a.depth}),W=()=>{if(!C.value||!E.value)return;const t=E.value,l=C.value;Y=window.devicePixelRatio||1,_=t.clientWidth,k=t.clientHeight,l.width=_*Y,l.height=k*Y,l.style.width=_+"px",l.style.height=k+"px",L=l.getContext("2d"),L&&L.setTransform(Y,0,0,Y,0,0),p=_/2,u=k/2-a.depth/2;const n=a.showLabel?60:10,s=Math.min(_,k-a.depth-n)/2*a.radiusRatio*1.6;g=Math.max(20,s),M=g*Math.cos(Q(a.alpha)),it(),q?st():U()},it=()=>{A=[];const t=S.data.reduce((n,s)=>n+(s.value||0),0);if(t<=0)return;let l=-Math.PI/2+Q(a.startAngle);S.data.forEach((n,s)=>{const i=n.value/t,d=i*Math.PI*2;A.push({data:n,index:s,color:n.color||a.colors[s%a.colors.length],startA:l,endA:l+d,midA:l+d/2,percent:i,hover:!1,hoverProgress:0}),l+=d})},st=()=>{B=0;const t=800,l=performance.now(),n=s=>{const i=Math.min(1,(s-l)/t);B=1-Math.pow(1-i,3),U(),i<1?F=requestAnimationFrame(n):(q=!1,F=null)};F=requestAnimationFrame(n)},rt=t=>1-Math.pow(1-t,3),Z=t=>{const l=X===0?16:t-X;X=t;const n=l/mt;let s=!1;for(const i of A){const d=i.hover?1:0;if(i.hoverProgress===d)continue;const v=d>i.hoverProgress?1:-1;i.hoverProgress+=v*n,(v>0&&i.hoverProgress>=d||v<0&&i.hoverProgress<=d)&&(i.hoverProgress=d),i.hoverProgress!==d&&(s=!0)}U(),s?I=requestAnimationFrame(Z):(I=null,X=0)},tt=()=>{I==null&&(X=0,I=requestAnimationFrame(Z))},T=(t,l)=>{let n=t.replace("#","");n.length===3&&(n=n.split("").map(v=>v+v).join(""));const s=parseInt(n.slice(0,2),16),i=parseInt(n.slice(2,4),16),d=parseInt(n.slice(4,6),16);return`rgba(${s},${i},${d},${l})`},U=()=>{if(!L)return;const t=L;if(t.clearRect(0,0,_,k),!A.length)return;const l=A[0]?.startA??0,n=Math.PI*2*B,s=l+n,i=A.map(e=>{const c=e.startA,f=Math.min(e.endA,s),y=f>c,x=rt(Math.max(0,Math.min(1,e.hoverProgress))),b=Math.cos(e.midA)*a.hoverDistance*x,P=Math.sin(e.midA)*a.hoverDistance*x;return{...e,startA:c,endA:f,valid:y,ox:b,oy:P,hp:x}});if(a.showAura){const e=t.createRadialGradient(p,u+a.depth,g*.1,p,u+a.depth,g*1.5);e.addColorStop(0,"rgba(6,182,212,0.15)"),e.addColorStop(.4,"rgba(59,130,246,0.08)"),e.addColorStop(.8,"rgba(139,92,246,0.03)"),e.addColorStop(1,"rgba(0,0,0,0)"),t.beginPath(),t.ellipse(p,u+a.depth,g*1.5,M*.9,0,0,Math.PI*2),t.fillStyle=e,t.fill(),t.strokeStyle="rgba(56,189,248,0.08)",t.lineWidth=1;for(let c=3;c>=1;c--){const f=g*(.3+c*.25);t.beginPath(),t.ellipse(p,u+a.depth,f,f*(M/g),0,0,Math.PI*2),t.stroke()}}const d=(e,c)=>{const f=a.glowColor||e.color,y={x:p+e.ox,y:u+e.oy},x={x:y.x,y:y.y+a.depth},b=j(c,e.ox,e.oy),P=G(c,e.ox,e.oy);t.fillStyle=T(f,a.opacity*.5),t.beginPath(),t.moveTo(y.x,y.y),t.lineTo(b.x,b.y),t.lineTo(P.x,P.y),t.lineTo(x.x,x.y),t.closePath(),t.fill(),t.strokeStyle=T(f,.8),t.lineWidth=.8,t.beginPath(),t.moveTo(b.x,b.y),t.lineTo(P.x,P.y),t.stroke()};for(const e of i)e.valid&&(Math.sin(e.startA)<=.001&&d(e,e.startA),Math.sin(e.endA)<=.001&&d(e,e.endA));const v=Math.PI/120;for(const e of i){if(!e.valid)continue;let c=e.startA;const f=a.glowColor||e.color;for(;c<e.endA;){const y=Math.min(c+v,e.endA),x=(c+y)/2;if(Math.sin(x)>0){const b=j(c,e.ox,e.oy),P=j(y,e.ox,e.oy),o=G(y,e.ox,e.oy),m=G(c,e.ox,e.oy);t.fillStyle=T(f,a.opacity*.4),t.beginPath(),t.moveTo(b.x,b.y),t.lineTo(P.x,P.y),t.lineTo(o.x,o.y),t.lineTo(m.x,m.y),t.closePath(),t.fill(),t.strokeStyle=T(f,.7),t.lineWidth=.8,t.beginPath(),t.moveTo(m.x,m.y),t.lineTo(o.x,o.y),t.stroke()}c=y}}for(const e of i)e.valid&&(Math.sin(e.startA)>.001&&d(e,e.startA),Math.sin(e.endA)>.001&&d(e,e.endA));for(const e of i){if(!e.valid)continue;const c=a.glowColor||e.color;e.hp>.01&&(t.save(),t.shadowColor=c,t.shadowBlur=12*e.hp,t.beginPath(),t.moveTo(p+e.ox,u+e.oy),t.ellipse(p+e.ox,u+e.oy,g,M,0,e.startA,e.endA),t.closePath(),t.fillStyle=T(c,.08*e.hp),t.fill(),t.restore()),t.beginPath(),t.moveTo(p+e.ox,u+e.oy),t.ellipse(p+e.ox,u+e.oy,g,M,0,e.startA,e.endA),t.closePath();const f=t.createRadialGradient(p+e.ox-g*.2,u+e.oy-M*.2,0,p+e.ox,u+e.oy,g*1.05);f.addColorStop(0,T(c,a.opacity*.95)),f.addColorStop(.6,T(c,a.opacity*.8)),f.addColorStop(1,T(c,a.opacity*.6)),t.fillStyle=f,t.fill(),t.strokeStyle=T(c,.95),t.lineWidth=.8+.6*e.hp,t.stroke()}if(a.showLabel&&B>=.999){t.font=`${a.labelFontSize}px Arial, sans-serif`,t.textBaseline="middle";const e=[],c=[],f=a.labelFontSize+6,y=14,x=4;for(const o of i){if(!o.valid)continue;const m=Math.cos(o.midA)>=0,w=p+o.ox+g*1.02*Math.cos(o.midA),r=u+o.oy+M*1.02*Math.sin(o.midA),z=u+o.oy+M*1.18*Math.sin(o.midA),dt=a.showPercent?`${o.data.name} ${(o.percent*100).toFixed(1)}%`:`${o.data.name}`,ft=!a.labelLineColor||a.labelLineColor==="auto"?a.glowColor||o.color:a.labelLineColor,ut={slice:o,text:dt,isRight:m,anchorX:w,anchorY:r,targetY:z,y:z,color:ft};(m?c:e).push(ut)}const b=o=>{if(!o.length)return;o.sort((r,z)=>r.targetY-z.targetY);const m=x+a.labelFontSize/2,w=k-x-a.labelFontSize/2;for(let r=0;r<o.length;r++)r===0?o[r].y=Math.max(m,o[r].targetY):o[r].y=Math.max(o[r].targetY,o[r-1].y+f);if(o[o.length-1].y>w){o[o.length-1].y=w;for(let r=o.length-2;r>=0;r--)o[r].y>o[r+1].y-f&&(o[r].y=o[r+1].y-f)}for(let r=0;r<o.length;r++)o[r].y<m&&(o[r].y=m)};b(e),b(c),t.lineWidth=a.labelLineWidth;const P=[...e,...c];for(const o of P){const m=t.measureText(o.text).width;let w;if(o.isRight){const r=Math.min(Math.max(o.anchorX+6,o.anchorX+Math.abs(o.targetY-o.y)*.2+6),_-x-m-y);w=r+y,t.strokeStyle=o.color,t.beginPath(),t.moveTo(o.anchorX,o.anchorY),t.lineTo(r,o.y),t.lineTo(w,o.y),t.stroke(),t.fillStyle=a.textColor,t.textAlign="left",t.fillText(o.text,w+2,o.y)}else{const r=Math.max(Math.min(o.anchorX-6,o.anchorX-Math.abs(o.targetY-o.y)*.2-6),x+m+y);w=r-y,t.strokeStyle=o.color,t.beginPath(),t.moveTo(o.anchorX,o.anchorY),t.lineTo(r,o.y),t.lineTo(w,o.y),t.stroke(),t.fillStyle=a.textColor,t.textAlign="right",t.fillText(o.text,w-2,o.y)}}}},et=(t,l)=>{for(let n=0;n<A.length;n++){const s=A[n],i=(t-p)/g,d=(l-u)/M;if(i*i+d*d>1)continue;let v=Math.atan2((l-u)/M,(t-p)/g);for(;v<s.startA;)v+=Math.PI*2;for(;v>s.startA+Math.PI*2;)v-=Math.PI*2;if(v>=s.startA&&v<=s.endA)return n}return-1},ot=t=>{const l=C.value,n=l.getBoundingClientRect(),s=n.width/(l.clientWidth||n.width)||1,i=n.height/(l.clientHeight||n.height)||1;return{mx:(t.clientX-n.left)/s,my:(t.clientY-n.top)/i}},ct=t=>{if(!C.value)return;const{mx:l,my:n}=ot(t),s=et(l,n);if(s!==D.value&&(D.value=s,A.forEach((i,d)=>i.hover=d===s),tt()),s>=0){const i=A[s];H.value=!0,R.value=i.data,O.value=i.percent;const d=E.value?.clientWidth||0,v=E.value?.clientHeight||0,e=Math.min(l+12,d-140),c=Math.min(n+12,v-60);J.value=Math.max(0,e),K.value=Math.max(0,c)}else H.value=!1,R.value=null},ht=()=>{D.value!==-1&&(D.value=-1,A.forEach(t=>t.hover=!1),tt()),H.value=!1,R.value=null},nt=t=>{if(!C.value)return;const{mx:l,my:n}=ot(t),s=et(l,n);s>=0&<("slice-click",A[s].data,s)};return h.watch(()=>S.data,()=>{Object.assign(a,N,S.config),q=S.animation,W()},{deep:!0}),h.watch(()=>S.config,()=>{Object.assign(a,N,S.config),W()},{deep:!0}),h.onMounted(()=>{W(),window.addEventListener("resize",W),C.value?.addEventListener("click",nt)}),h.onUnmounted(()=>{window.removeEventListener("resize",W),C.value?.removeEventListener("click",nt),F&&cancelAnimationFrame(F),I&&cancelAnimationFrame(I)}),(t,l)=>(h.openBlock(),h.createElementBlock("div",{class:"g-pie3d-container",ref_key:"containerRef",ref:E},[h.createElementVNode("canvas",{ref_key:"canvasRef",ref:C,onMousemove:ct,onMouseleave:ht},null,544),H.value?(h.openBlock(),h.createElementBlock("div",{key:0,class:"g-pie3d-tooltip",style:h.normalizeStyle({left:`${J.value}px`,top:`${K.value}px`})},[h.renderSlot(t.$slots,"tooltip",{data:R.value,percent:O.value},()=>[h.createElementVNode("div",vt,[h.createElementVNode("p",gt,h.toDisplayString(R.value?.name),1),h.createElementVNode("p",yt,h.toDisplayString(R.value?.value)+" ("+h.toDisplayString((O.value*100).toFixed(1))+"%) ",1)])],!0)],4)):h.createCommentVNode("",!0)],512))}}),$=pt._export_sfc(xt,[["__scopeId","data-v-d37c2ffe"]]);$.install=V=>{V.component($.name,$)};exports.GPie3D=$;exports.default=$;
|
package/lib/GPie3D/index.mjs
CHANGED
|
@@ -271,7 +271,7 @@ const Tt = { class: "g-pie3d-tooltip__default" }, Ct = { class: "g-pie3d-tooltip
|
|
|
271
271
|
], 4)) : bt("", !0)
|
|
272
272
|
], 512));
|
|
273
273
|
}
|
|
274
|
-
}), K = /* @__PURE__ */ St(It, [["__scopeId", "data-v-
|
|
274
|
+
}), K = /* @__PURE__ */ St(It, [["__scopeId", "data-v-d37c2ffe"]]);
|
|
275
275
|
K.install = (O) => {
|
|
276
276
|
O.component(K.name, K);
|
|
277
277
|
};
|
package/lib/GPie3D/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.g-pie3d-container[data-v-
|
|
1
|
+
.g-pie3d-container[data-v-d37c2ffe]{position:relative;width:100%;height:100%;overflow:hidden}canvas[data-v-d37c2ffe]{display:block;width:100%;height:100%}.g-pie3d-tooltip[data-v-d37c2ffe]{position:absolute;pointer-events:none;z-index:10;background:#0a121ed9;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);color:#e2e8f0;padding:8px 12px;border-radius:4px;font-size:12px;min-width:100px;box-shadow:0 4px 20px #22d3ee40;border:1px solid rgba(34,211,238,.5)}.g-pie3d-tooltip__default p[data-v-d37c2ffe]{margin:0;line-height:1.5}.g-pie3d-tooltip__name[data-v-d37c2ffe]{font-weight:600}
|
package/lib/GRing/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),$=require("../_plugin-vue_export-helper-BHFhmbuH.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),$=require("../_plugin-vue_export-helper-BHFhmbuH.js"),b=["aria-valuenow"],B=["viewBox"],z=["stop-color"],x=["stop-color"],C=["r","stroke","stroke-width"],T=["r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset","transform"],M={class:"g-ring-title"},A={class:"g-ring-count"},P={key:1,class:"g-ring-endpoint g-ring-endpoint--head",style:{"--g-ring-endpoint-angle":"0deg"},"aria-hidden":"true"},R={class:"g-ring-endpoint__inner"},G={class:"g-ring-endpoint__inner"},f=100,I=2e3,W=e.defineComponent({name:"GRing",inheritAttrs:!1,__name:"index",props:{count:{default:0},size:{default:120},strokeWidth:{default:10},gradient:{default:()=>["#3b82f6","#f97316"]},textColor:{default:"#fff"},wave:{type:Boolean,default:!1},waveSpeed:{default:3},forceAnimation:{type:Boolean,default:!1}},setup(d){const o=d,c=e.computed(()=>{const t=Number(o.count);return Number.isFinite(t)?Math.min(100,Math.max(0,t)):0}),p=e.computed(()=>typeof o.size=="number"?`${o.size}px`:o.size),n=f/2,r=e.computed(()=>o.strokeWidth),u=e.computed(()=>n-r.value/2),v=e.computed(()=>2*Math.PI*u.value),w=e.computed(()=>v.value*(1-c.value/100)),l=e.computed(()=>c.value/100*360),y=e.computed(()=>o.gradient?.[0]??"#3b82f6"),S=e.computed(()=>o.gradient?.[1]??"#f97316"),E=e.computed(()=>"rgba(255, 255, 255, 0)"),N=e.computed(()=>"rgba(255, 255, 255, 0.2)"),g=`g-ring-gradient-${e.getCurrentInstance()?.uid??0}`,h=e.useSlots(),_=e.ref(null);let a=null,s=null;const m=()=>{s&&(clearTimeout(s),s=null),a&&(a.cancel(),a=null)},k=()=>{const t=_.value;t&&(l.value<=0||(a=t.animate([{transform:"rotate(-340deg)"},{transform:`rotate(${l.value-340}deg)`}],{duration:Math.max(200,o.waveSpeed*1e3),easing:"ease",fill:"forwards"}),a.onfinish=()=>{s=setTimeout(()=>{s=null,k()},I)}))},V=()=>{m(),e.nextTick(k)};return e.watch(()=>[o.wave,l.value,o.waveSpeed],([t])=>{if(!t){m();return}V()},{immediate:!0}),e.onBeforeUnmount(m),(t,O)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["g-ring-container",{"is-force-animation":t.forceAnimation}]),style:e.normalizeStyle({width:p.value,height:p.value,"--g-ring-stroke":`${r.value}%`}),role:"progressbar","aria-valuenow":c.value,"aria-valuemin":"0","aria-valuemax":"100"},[t.wave?(e.openBlock(),e.createElementBlock("div",{key:0,class:"g-ring-sweep",style:e.normalizeStyle({"--g-ring-stroke":`${r.value}%`,"--g-ring-fill-angle":`${l.value}deg`}),"aria-hidden":"true"},[e.createElementVNode("div",{ref_key:"beamRef",ref:_,class:"g-ring-sweep__beam",style:e.normalizeStyle({"--g-ring-sweep-from":E.value,"--g-ring-sweep-to":N.value})},null,4)],4)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{class:"g-ring-svg",viewBox:`0 0 ${f} ${f}`,"aria-hidden":"true"},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:g,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":y.value},null,8,z),e.createElementVNode("stop",{offset:"100%","stop-color":S.value},null,8,x)])]),e.createElementVNode("circle",{class:"g-ring-track",cx:n,cy:n,r:u.value,fill:"none",stroke:`url(#${g})`,"stroke-width":r.value},null,8,C),e.createElementVNode("circle",{class:"g-ring-fill",cx:n,cy:n,r:u.value,fill:"none",stroke:`url(#${g})`,"stroke-width":r.value,"stroke-linecap":"butt","stroke-dasharray":v.value,"stroke-dashoffset":w.value,transform:`rotate(-90 ${n} ${n})`},null,8,T)],8,B)),e.createElementVNode("div",{class:"g-ring-content",style:e.normalizeStyle({color:t.textColor})},[e.createElementVNode("div",M,[e.renderSlot(t.$slots,"title",{},void 0,!0)]),e.createElementVNode("div",A,[e.renderSlot(t.$slots,"count",{},()=>[e.createTextVNode(e.toDisplayString(c.value)+"%",1)],!0)])],4),e.unref(h).head?(e.openBlock(),e.createElementBlock("div",P,[e.createElementVNode("div",R,[e.renderSlot(t.$slots,"head",{},void 0,!0)])])):e.createCommentVNode("",!0),e.unref(h).tail?(e.openBlock(),e.createElementBlock("div",{key:2,class:"g-ring-endpoint g-ring-endpoint--tail",style:e.normalizeStyle({"--g-ring-endpoint-angle":`${l.value}deg`}),"aria-hidden":"true"},[e.createElementVNode("div",G,[e.renderSlot(t.$slots,"tail",{},void 0,!0)])],4)):e.createCommentVNode("",!0)],14,b))}}),i=$._export_sfc(W,[["__scopeId","data-v-1505555b"]]);i.install=d=>{d.component(i.name,i)};exports.GRing=i;exports.default=i;
|
package/lib/GRing/index.mjs
CHANGED
|
@@ -164,7 +164,7 @@ const j = ["aria-valuenow"], q = ["viewBox"], H = ["stop-color"], J = ["stop-col
|
|
|
164
164
|
], 4)) : _("", !0)
|
|
165
165
|
], 14, j));
|
|
166
166
|
}
|
|
167
|
-
}), k = /* @__PURE__ */ D(ne, [["__scopeId", "data-v-
|
|
167
|
+
}), k = /* @__PURE__ */ D(ne, [["__scopeId", "data-v-1505555b"]]);
|
|
168
168
|
k.install = (v) => {
|
|
169
169
|
v.component(k.name, k);
|
|
170
170
|
};
|
package/lib/GRing/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.g-ring-container[data-v-
|
|
1
|
+
.g-ring-container[data-v-1505555b]{position:relative;display:inline-flex;align-items:center;justify-content:center;font-size:14px;line-height:1.4;isolation:isolate}.g-ring-container .g-ring-svg[data-v-1505555b]{width:100%;height:100%;display:block}.g-ring-container .g-ring-svg .g-ring-track[data-v-1505555b]{opacity:.15}.g-ring-container .g-ring-svg .g-ring-fill[data-v-1505555b]{transition:stroke-dashoffset .5s ease;filter:drop-shadow(0 0 6px rgba(59,130,246,.4))}.g-ring-container .g-ring-sweep[data-v-1505555b]{position:absolute;inset:0;border-radius:50%;pointer-events:none;overflow:hidden;mask:radial-gradient(circle closest-side,transparent calc(100% - 2 * var(--g-ring-stroke, 10%) - 1%),#000 calc(100% - 2 * var(--g-ring-stroke, 10%)),#000 100%),conic-gradient(from 0deg,#000 0deg,#000 var(--g-ring-fill-angle, 0deg),transparent var(--g-ring-fill-angle, 0deg),transparent 360deg);mask-composite:intersect;-webkit-mask:radial-gradient(circle closest-side,transparent calc(100% - 2 * var(--g-ring-stroke, 10%) - 1%),#000 calc(100% - 2 * var(--g-ring-stroke, 10%)),#000 100%),conic-gradient(from 0deg,#000 0deg,#000 var(--g-ring-fill-angle, 0deg),transparent var(--g-ring-fill-angle, 0deg),transparent 360deg);-webkit-mask-composite:source-in;mix-blend-mode:screen;transition:--g-ring-fill-angle .5s ease}.g-ring-container .g-ring-sweep .g-ring-sweep__beam[data-v-1505555b]{position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 0deg,var(--g-ring-sweep-from) 0deg,var(--g-ring-sweep-from) 200deg,var(--g-ring-sweep-to) 340deg,var(--g-ring-sweep-from) 360deg);will-change:transform;filter:blur(.5px)}.g-ring-container .g-ring-content[data-v-1505555b]{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:0 12%;pointer-events:none;font-variant-numeric:tabular-nums}.g-ring-container .g-ring-content .g-ring-title[data-v-1505555b]{font-size:inherit;line-height:1.2;opacity:.9}.g-ring-container .g-ring-content .g-ring-title[data-v-1505555b]:empty{display:none}.g-ring-container .g-ring-content .g-ring-count[data-v-1505555b]{font-size:1.4em;font-weight:600;line-height:1.2;margin-top:2px}.g-ring-container .g-ring-endpoint[data-v-1505555b]{position:absolute;inset:0;pointer-events:none;transform:rotate(var(--g-ring-endpoint-angle, 0deg));transition:transform .5s ease;z-index:1}.g-ring-container .g-ring-endpoint .g-ring-endpoint__inner[data-v-1505555b]{position:absolute;top:calc(var(--g-ring-stroke, 10%) / 2);left:50%;transform:translate(-50%,-50%) rotate(calc(-1 * var(--g-ring-endpoint-angle, 0deg)));transition:transform .5s ease;display:inline-flex;align-items:center;justify-content:center;line-height:0}.g-ring-container .g-ring-endpoint .g-ring-endpoint__inner[data-v-1505555b]>img,.g-ring-container .g-ring-endpoint .g-ring-endpoint__inner[data-v-1505555b]>svg{display:block;width:var(--g-ring-stroke, 10%);height:var(--g-ring-stroke, 10%);object-fit:contain}@media(prefers-reduced-motion:reduce){.g-ring-container:not(.is-force-animation) .g-ring-sweep__beam[data-v-1505555b]{opacity:.6}.g-ring-container:not(.is-force-animation) .g-ring-fill[data-v-1505555b]{transition:none}}
|
package/lib/GTable/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("vue"),h=require("../index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("vue"),h=require("../index-il5JtS6o.js"),y=require("sortablejs"),S=require("../_plugin-vue_export-helper-BHFhmbuH.js");var k={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const x={class:"g-table"},z={key:0,class:"g-table-action"},T={key:1},P={class:"g-dropdown-link"},N=u.defineComponent({name:"GTable",inheritAttrs:!1,__name:"index",props:{data:{default:()=>[]},pagination:{type:Boolean,default:!1},operationLabel:{default:"操作"},operaWidth:{default:160},dragSort:{type:Boolean,default:!1},dragSortProps:{default:()=>[]},currentPage:{default:1},pageSize:{default:10},total:{default:0},pageSizes:{default:()=>[10,20,50,100]},layout:{default:"total, sizes, prev, pager, next"}},emits:["update:currentPage","update:pageSize","sorted:data"],setup(g,{emit:B}){const s=g,c=B,b=e=>{c("update:pageSize",e)},w=e=>{c("update:currentPage",e)},v=u.useSlots(),f=e=>!!v[e],d=u.useAttrs(),A=e=>{const t=!!d["page-size"],n=!!d["current-page"];if(t&&n){const a=Number(d["page-size"]||10),o=Number(d["current-page"]||1);return e+1+a*(o-1)}return e},E=u.ref(null),p=u.shallowRef(null),_=(e=20)=>new Promise(t=>{let n=0;const a=()=>{if(!E.value){t(null);return}const o=E.value.$el.querySelectorAll("tbody");for(let l=0;l<o.length;l++)if(o[l].querySelectorAll("tr").length>0){t(o[l]);return}if(++n>=e){t(null);return}setTimeout(a,500)};a()}),C=async()=>{if(E.value)try{const e=await _();if(!e){console.error("未找到包含数据行的 tbody 元素");return}p.value?.destroy?.(),p.value=new y(e,{draggable:"tr",handle:".g-drag-icon",animation:200,ghostClass:"g-sortable-ghost",forceFallback:!0,onStart:function(t){t.item.classList.add("dragging")},onEnd:async function(t){t.item.classList.remove("dragging");const{oldIndex:n,newIndex:a}=t;if(n===void 0||a===void 0){console.error("无效的索引值");return}const o=[...s.data],[l]=o.splice(n,1);if(o.splice(a,0,l),s.dragSortProps.length===0){c("sorted:data",o);return}if(s.dragSortProps.length>0){const F=o.map(D=>{const m={};return s.dragSortProps.forEach(r=>{m[r]=D[r]}),m});c("sorted:data",F)}}})}catch(e){console.error("初始化拖拽排序失败:",e)}};return u.onMounted(()=>{s.dragSort&&C()}),u.watch(()=>s.data,()=>{s.dragSort&&C()}),u.onBeforeUnmount(()=>{p.value?.destroy?.(),p.value=null}),(e,t)=>{const n=u.resolveComponent("el-icon"),a=u.resolveComponent("el-table-column"),o=u.resolveComponent("el-dropdown-menu"),l=u.resolveComponent("el-dropdown"),F=u.resolveComponent("el-table"),D=u.resolveComponent("el-pagination"),m=u.resolveComponent("el-config-provider");return u.openBlock(),u.createElementBlock("div",x,[e.$slots.action?(u.openBlock(),u.createElementBlock("div",z,[u.renderSlot(e.$slots,"action",{},void 0,!0)])):u.createCommentVNode("",!0),u.createVNode(F,u.mergeProps({data:e.data||[]},e.$attrs,{stripe:"",ref_key:"tableRef",ref:E,class:"g-table-main"}),{empty:u.withCtx(()=>[e.$slots.empty?u.renderSlot(e.$slots,"empty",{key:0},void 0,!0):(u.openBlock(),u.createElementBlock("span",T,"暂无数据"))]),default:u.withCtx(()=>[e.dragSort?(u.openBlock(),u.createBlock(a,{key:0,label:"序号",width:"65"},{default:u.withCtx(r=>[u.createElementVNode("div",null,[u.createTextVNode(u.toDisplayString(A(r.$index))+" ",1),u.createVNode(n,{class:"g-drag-icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(h.operation_default))]),_:1})])]),_:1})):u.createCommentVNode("",!0),u.renderSlot(e.$slots,"default",{},void 0,!0),f("operations")?(u.openBlock(),u.createBlock(a,{key:1,fixed:"right",label:e.operationLabel||"操作",width:e.operaWidth},{default:u.withCtx(r=>[u.renderSlot(e.$slots,"operations",{row:r.row,index:r.$index},void 0,!0),f("more")?(u.openBlock(),u.createBlock(l,{key:0,size:"small",style:{"vertical-align":"baseline"}},{dropdown:u.withCtx(()=>[u.createVNode(o,null,{default:u.withCtx(()=>[u.renderSlot(e.$slots,"more",{row:r.row,index:r.$index},void 0,!0)]),_:2},1024)]),default:u.withCtx(()=>[u.createElementVNode("span",P,[t[0]||(t[0]=u.createTextVNode(" 更多 ")),u.createVNode(n,null,{default:u.withCtx(()=>[u.createVNode(u.unref(h.arrow_down_default))]),_:1})])]),_:2},1024)):u.createCommentVNode("",!0)]),_:3},8,["label","width"])):u.createCommentVNode("",!0)]),_:3},16,["data"]),e.pagination?(u.openBlock(),u.createBlock(m,{key:1,locale:u.unref(k)},{default:u.withCtx(()=>[u.createVNode(D,{class:"g-pagination-contianer",size:"small","current-page":e.currentPage,"page-size":e.pageSize,total:e.total,"page-sizes":e.pageSizes,layout:e.layout,onSizeChange:b,onCurrentChange:w},null,8,["current-page","page-size","total","page-sizes","layout"])]),_:1},8,["locale"])):u.createCommentVNode("",!0)])}}}),i=S._export_sfc(N,[["__scopeId","data-v-2f3eaf74"]]);i.install=g=>{g.component(i.name,i)};exports.GTable=i;exports.default=i;
|
package/lib/GTable/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as R, useSlots as N, useAttrs as I, ref as M, shallowRef as V, onMounted as W, watch as j, onBeforeUnmount as q, resolveComponent as i, createElementBlock as A, openBlock as E, createCommentVNode as c, createVNode as d, createBlock as h, renderSlot as p, mergeProps as G, withCtx as o, createElementVNode as S, createTextVNode as z, toDisplayString as Y, unref as w } from "vue";
|
|
2
|
-
import { o as H, d as U } from "../index-
|
|
2
|
+
import { o as H, d as U } from "../index-CzamRrBC.mjs";
|
|
3
3
|
import J from "sortablejs";
|
|
4
4
|
import { _ as K } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
5
|
var O = {
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { default as GInputTreeTag } from './index';
|
|
2
|
+
export default GInputTreeTag;
|
|
3
|
+
export { GInputTreeTag };
|
|
4
|
+
g;
|
|
5
|
+
disabled?: string;
|
|
6
|
+
}
|
|
7
|
+
interface SelectedItem {
|
|
8
|
+
value: any;
|
|
9
|
+
label: string;
|
|
10
|
+
raw?: any;
|
|
11
|
+
}
|
|
12
|
+
interface Props {
|
|
13
|
+
/** 已选值数组(v-model)。当 valueFormat='value' 时为基础类型数组;为 'object' 时为对象数组 */
|
|
14
|
+
modelValue?: any[];
|
|
15
|
+
/** 树数据 */
|
|
16
|
+
data?: any[];
|
|
17
|
+
/** 字段映射,对应 el-tree 的 props,外加 value/isLeaf 用于本组件 */
|
|
18
|
+
props?: TreeFieldProps;
|
|
19
|
+
/** el-tree 的 node-key */
|
|
20
|
+
nodeKey?: string;
|
|
21
|
+
/** 输入框占位文案 */
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
/** 输入框宽度,数字或带单位字符串 */
|
|
24
|
+
width?: number | string;
|
|
25
|
+
/** 下拉面板最大高度 */
|
|
26
|
+
popperMaxHeight?: number;
|
|
27
|
+
/** 浮层 z-index */
|
|
28
|
+
popperZIndex?: number;
|
|
29
|
+
/** 浮层与输入框的纵向间隙 */
|
|
30
|
+
popperOffset?: number;
|
|
31
|
+
/** 是否默认展开全部节点 */
|
|
32
|
+
defaultExpandAll?: boolean;
|
|
33
|
+
/** 是否禁用 */
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/** 输入框是否可清空 */
|
|
36
|
+
clearable?: boolean;
|
|
37
|
+
/** tag 是否可关闭 */
|
|
38
|
+
closable?: boolean;
|
|
39
|
+
/** tag 类型 */
|
|
40
|
+
tagType?: 'primary' | 'success' | 'info' | 'warning' | 'danger';
|
|
41
|
+
/** tag 风格 */
|
|
42
|
+
tagEffect?: 'light' | 'dark' | 'plain';
|
|
43
|
+
/** 选中后是否清空输入框 */
|
|
44
|
+
clearInputAfterSelect?: boolean;
|
|
45
|
+
/** 是否允许回车通过精确 label 匹配添加 */
|
|
46
|
+
enterToAdd?: boolean;
|
|
47
|
+
/** 是否在叶子节点前显示默认图标 */
|
|
48
|
+
showLeafIcon?: boolean;
|
|
49
|
+
/** v-model 的值格式:value=基础值数组;object={value,label,raw} 对象数组 */
|
|
50
|
+
valueFormat?: 'value' | 'object';
|
|
51
|
+
/** 自定义"可选节点"判定,未传时按"没有 children 的叶子"判定 */
|
|
52
|
+
selectable?: (node: any) => boolean;
|
|
53
|
+
/** 自定义过滤函数,未传时使用 label 包含匹配 */
|
|
54
|
+
filterMethod?: (keyword: string, node: any) => boolean;
|
|
55
|
+
/** 选中重复时的提示文案,传空串则不弹提示 */
|
|
56
|
+
duplicateMessage?: string;
|
|
57
|
+
/** 回车未匹配时的提示文案,传空串则不弹提示 */
|
|
58
|
+
notFoundMessage?: string;
|
|
59
|
+
}
|
|
60
|
+
declare function __VLS_template(): {
|
|
61
|
+
attrs: Partial<{}>;
|
|
62
|
+
slots: {
|
|
63
|
+
'tree-node'?(_: {
|
|
64
|
+
data: any;
|
|
65
|
+
node: any;
|
|
66
|
+
selectable: boolean;
|
|
67
|
+
selected: boolean;
|
|
68
|
+
}): any;
|
|
69
|
+
tags?(_: {
|
|
70
|
+
items: SelectedItem[];
|
|
71
|
+
remove: (idx: number) => void;
|
|
72
|
+
}): any;
|
|
73
|
+
tag?(_: {
|
|
74
|
+
item: SelectedItem;
|
|
75
|
+
index: number;
|
|
76
|
+
}): any;
|
|
77
|
+
};
|
|
78
|
+
refs: {
|
|
79
|
+
wrapRef: HTMLDivElement;
|
|
80
|
+
inputBoxRef: HTMLDivElement;
|
|
81
|
+
popperRef: HTMLDivElement;
|
|
82
|
+
treeRef: unknown;
|
|
83
|
+
};
|
|
84
|
+
rootEl: HTMLDivElement;
|
|
85
|
+
};
|
|
86
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
87
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
88
|
+
/** 主动打开下拉面板 */
|
|
89
|
+
open: () => void;
|
|
90
|
+
/** 主动关闭下拉面板 */
|
|
91
|
+
close: () => boolean;
|
|
92
|
+
/** 清空已选 */
|
|
93
|
+
clear: () => void;
|
|
94
|
+
/** 根据 value 直接添加 */
|
|
95
|
+
addByValue: (value: any) => void;
|
|
96
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
97
|
+
"update:modelValue": (value: any[]) => any;
|
|
98
|
+
add: (item: SelectedItem) => any;
|
|
99
|
+
change: (value: any[], items: SelectedItem[]) => any;
|
|
100
|
+
remove: (item: SelectedItem, index: number) => any;
|
|
101
|
+
"node-click": (node: any) => any;
|
|
102
|
+
duplicate: (item: SelectedItem) => any;
|
|
103
|
+
"not-found": (keyword: string) => any;
|
|
104
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
105
|
+
"onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
|
|
106
|
+
onAdd?: ((item: SelectedItem) => any) | undefined;
|
|
107
|
+
onChange?: ((value: any[], items: SelectedItem[]) => any) | undefined;
|
|
108
|
+
onRemove?: ((item: SelectedItem, index: number) => any) | undefined;
|
|
109
|
+
"onNode-click"?: ((node: any) => any) | undefined;
|
|
110
|
+
onDuplicate?: ((item: SelectedItem) => any) | undefined;
|
|
111
|
+
"onNot-found"?: ((keyword: string) => any) | undefined;
|
|
112
|
+
}>, {
|
|
113
|
+
props: TreeFieldProps;
|
|
114
|
+
data: any[];
|
|
115
|
+
disabled: boolean;
|
|
116
|
+
modelValue: any[];
|
|
117
|
+
width: number | string;
|
|
118
|
+
nodeKey: string;
|
|
119
|
+
placeholder: string;
|
|
120
|
+
popperMaxHeight: number;
|
|
121
|
+
popperZIndex: number;
|
|
122
|
+
popperOffset: number;
|
|
123
|
+
defaultExpandAll: boolean;
|
|
124
|
+
clearable: boolean;
|
|
125
|
+
closable: boolean;
|
|
126
|
+
tagType: "primary" | "success" | "info" | "warning" | "danger";
|
|
127
|
+
tagEffect: "light" | "dark" | "plain";
|
|
128
|
+
clearInputAfterSelect: boolean;
|
|
129
|
+
enterToAdd: boolean;
|
|
130
|
+
showLeafIcon: boolean;
|
|
131
|
+
valueFormat: "value" | "object";
|
|
132
|
+
duplicateMessage: string;
|
|
133
|
+
notFoundMessage: string;
|
|
134
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
135
|
+
wrapRef: HTMLDivElement;
|
|
136
|
+
inputBoxRef: HTMLDivElement;
|
|
137
|
+
popperRef: HTMLDivElement;
|
|
138
|
+
treeRef: unknown;
|
|
139
|
+
}, HTMLDivElement>;
|
|
140
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
141
|
+
export default _default;
|
|
142
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
143
|
+
new (): {
|
|
144
|
+
$slots: S;
|
|
145
|
+
};
|
|
146
|
+
};
|
package/lib/index/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("../GCount/index.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("../GCount/index.js"),l=require("../GDialog/index.js"),o=require("../GTable/index.js"),n=require("../GVideo/index.js"),r=require("../GBubble/index.js"),a=require("../GProgress/index.js"),i=require("../GScreen/index.js"),d=require("../GPluginVideo/index.js"),G=require("../GPie3D/index.js"),s=require("../GRing/index.js"),c=require("../GInputTreeTag/index.js"),t={GCount:u.default,GDialog:l.default,GTable:o.default,GVideo:n.default,GBubble:r.default,GProgress:a.default,GScreen:i.default,GPluginVideo:d.default,GPie3D:G.default,GRing:s.default,GInputTreeTag:c.default},b=f=>{Object.keys(t).forEach(g=>{const e=t[g];f.component(e.name,e)})},q={install:b};exports.GCount=u.default;exports.GDialog=l.default;exports.GTable=o.default;exports.GVideo=n.default;exports.GBubble=r.default;exports.GProgress=a.default;exports.GScreen=i.default;exports.GPluginVideo=d.default;exports.GPie3D=G.default;exports.GRing=s.default;exports.GInputTreeTag=c.default;exports.default=q;
|
package/lib/index/index.mjs
CHANGED
|
@@ -1,40 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import i from "../GCount/index.mjs";
|
|
2
|
+
import n from "../GDialog/index.mjs";
|
|
3
3
|
import e from "../GTable/index.mjs";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
4
|
+
import f from "../GVideo/index.mjs";
|
|
5
|
+
import p from "../GBubble/index.mjs";
|
|
6
|
+
import s from "../GProgress/index.mjs";
|
|
7
|
+
import a from "../GScreen/index.mjs";
|
|
8
|
+
import c from "../GPluginVideo/index.mjs";
|
|
9
9
|
import G from "../GPie3D/index.mjs";
|
|
10
10
|
import l from "../GRing/index.mjs";
|
|
11
|
+
import u from "../GInputTreeTag/index.mjs";
|
|
11
12
|
const m = {
|
|
12
|
-
GCount:
|
|
13
|
-
GDialog:
|
|
13
|
+
GCount: i,
|
|
14
|
+
GDialog: n,
|
|
14
15
|
GTable: e,
|
|
15
|
-
GVideo:
|
|
16
|
-
GBubble:
|
|
17
|
-
GProgress:
|
|
18
|
-
GScreen:
|
|
19
|
-
GPluginVideo:
|
|
16
|
+
GVideo: f,
|
|
17
|
+
GBubble: p,
|
|
18
|
+
GProgress: s,
|
|
19
|
+
GScreen: a,
|
|
20
|
+
GPluginVideo: c,
|
|
20
21
|
GPie3D: G,
|
|
21
|
-
GRing: l
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
GRing: l,
|
|
23
|
+
GInputTreeTag: u
|
|
24
|
+
}, g = (r) => {
|
|
25
|
+
Object.keys(m).forEach((t) => {
|
|
26
|
+
const o = m[t];
|
|
25
27
|
r.component(o.name, o);
|
|
26
28
|
});
|
|
27
|
-
},
|
|
29
|
+
}, h = { install: g };
|
|
28
30
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
p as GBubble,
|
|
32
|
+
i as GCount,
|
|
33
|
+
n as GDialog,
|
|
34
|
+
u as GInputTreeTag,
|
|
32
35
|
G as GPie3D,
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
c as GPluginVideo,
|
|
37
|
+
s as GProgress,
|
|
35
38
|
l as GRing,
|
|
36
|
-
|
|
39
|
+
a as GScreen,
|
|
37
40
|
e as GTable,
|
|
38
|
-
|
|
39
|
-
|
|
41
|
+
f as GVideo,
|
|
42
|
+
h as default
|
|
40
43
|
};
|
|
@@ -13,7 +13,7 @@ var c = /* @__PURE__ */ e({
|
|
|
13
13
|
})
|
|
14
14
|
]));
|
|
15
15
|
}
|
|
16
|
-
}),
|
|
16
|
+
}), u = c, l = /* @__PURE__ */ e({
|
|
17
17
|
name: "ChatDotRound",
|
|
18
18
|
__name: "chat-dot-round",
|
|
19
19
|
setup(o) {
|
|
@@ -31,7 +31,7 @@ var c = /* @__PURE__ */ e({
|
|
|
31
31
|
})
|
|
32
32
|
]));
|
|
33
33
|
}
|
|
34
|
-
}),
|
|
34
|
+
}), i = l, s = /* @__PURE__ */ e({
|
|
35
35
|
name: "CircleCheck",
|
|
36
36
|
__name: "circle-check",
|
|
37
37
|
setup(o) {
|
|
@@ -49,7 +49,7 @@ var c = /* @__PURE__ */ e({
|
|
|
49
49
|
})
|
|
50
50
|
]));
|
|
51
51
|
}
|
|
52
|
-
}),
|
|
52
|
+
}), f = s, m = /* @__PURE__ */ e({
|
|
53
53
|
name: "Operation",
|
|
54
54
|
__name: "operation",
|
|
55
55
|
setup(o) {
|
|
@@ -63,7 +63,7 @@ var c = /* @__PURE__ */ e({
|
|
|
63
63
|
})
|
|
64
64
|
]));
|
|
65
65
|
}
|
|
66
|
-
}),
|
|
66
|
+
}), d = m, p = /* @__PURE__ */ e({
|
|
67
67
|
name: "Refresh",
|
|
68
68
|
__name: "refresh",
|
|
69
69
|
setup(o) {
|
|
@@ -77,7 +77,7 @@ var c = /* @__PURE__ */ e({
|
|
|
77
77
|
})
|
|
78
78
|
]));
|
|
79
79
|
}
|
|
80
|
-
}),
|
|
80
|
+
}), x = p, v = /* @__PURE__ */ e({
|
|
81
81
|
name: "Remove",
|
|
82
82
|
__name: "remove",
|
|
83
83
|
setup(o) {
|
|
@@ -95,12 +95,27 @@ var c = /* @__PURE__ */ e({
|
|
|
95
95
|
})
|
|
96
96
|
]));
|
|
97
97
|
}
|
|
98
|
-
}),
|
|
98
|
+
}), g = v, w = /* @__PURE__ */ e({
|
|
99
|
+
name: "User",
|
|
100
|
+
__name: "user",
|
|
101
|
+
setup(o) {
|
|
102
|
+
return (_, n) => (t(), r("svg", {
|
|
103
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
104
|
+
viewBox: "0 0 1024 1024"
|
|
105
|
+
}, [
|
|
106
|
+
a("path", {
|
|
107
|
+
fill: "currentColor",
|
|
108
|
+
d: "M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"
|
|
109
|
+
})
|
|
110
|
+
]));
|
|
111
|
+
}
|
|
112
|
+
}), C = w;
|
|
99
113
|
export {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
114
|
+
x as a,
|
|
115
|
+
f as b,
|
|
116
|
+
i as c,
|
|
117
|
+
u as d,
|
|
118
|
+
d as o,
|
|
119
|
+
g as r,
|
|
120
|
+
C as u
|
|
106
121
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue");var o=e.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(
|
|
1
|
+
"use strict";const e=require("vue");var o=e.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(a){return(t,r)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),n=o,l=e.defineComponent({name:"ChatDotRound",__name:"chat-dot-round",setup(a){return(t,r)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),e.createElementVNode("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),c=l,_=e.defineComponent({name:"CircleCheck",__name:"circle-check",setup(a){return(t,r)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),e.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),m=_,p=e.defineComponent({name:"Operation",__name:"operation",setup(a){return(t,r)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),s=p,d=e.defineComponent({name:"Refresh",__name:"refresh",setup(a){return(t,r)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),u=d,v=e.defineComponent({name:"Remove",__name:"remove",setup(a){return(t,r)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),e.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),w=v,f=e.defineComponent({name:"User",__name:"user",setup(a){return(t,r)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),h=f;exports.arrow_down_default=n;exports.chat_dot_round_default=c;exports.circle_check_default=m;exports.operation_default=s;exports.refresh_default=u;exports.remove_default=w;exports.user_default=h;
|
package/lib/index.d.ts
CHANGED
|
@@ -8,8 +8,9 @@ import { GScreen } from './components/GScreen';
|
|
|
8
8
|
import { GPluginVideo } from './components/GPluginVideo';
|
|
9
9
|
import { GPie3D } from './components/GPie3D';
|
|
10
10
|
import { GRing } from './components/GRing';
|
|
11
|
+
import { GInputTreeTag } from './components/GInputTreeTag';
|
|
11
12
|
declare const _default: {
|
|
12
13
|
install: (app: any) => void;
|
|
13
14
|
};
|
|
14
15
|
export default _default;
|
|
15
|
-
export { GCount, GDialog, GTable, GVideo, GBubble, GProgress, GScreen, GPluginVideo, GPie3D, GRing };
|
|
16
|
+
export { GCount, GDialog, GTable, GVideo, GBubble, GProgress, GScreen, GPluginVideo, GPie3D, GRing, GInputTreeTag };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "geekin-devtoys",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.20",
|
|
4
4
|
"author": "leon",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "geekin-devtoys组件库",
|
|
@@ -88,6 +88,14 @@
|
|
|
88
88
|
"import": "./lib/GDialog/style.css",
|
|
89
89
|
"require": "./lib/GDialog/style.css"
|
|
90
90
|
},
|
|
91
|
+
"./GInputTreeTag": {
|
|
92
|
+
"import": "./lib/GInputTreeTag/index.mjs",
|
|
93
|
+
"require": "./lib/GInputTreeTag/index.js"
|
|
94
|
+
},
|
|
95
|
+
"./GInputTreeTag/style": {
|
|
96
|
+
"import": "./lib/GInputTreeTag/style.css",
|
|
97
|
+
"require": "./lib/GInputTreeTag/style.css"
|
|
98
|
+
},
|
|
91
99
|
"./GPie3D": {
|
|
92
100
|
"import": "./lib/GPie3D/index.mjs",
|
|
93
101
|
"require": "./lib/GPie3D/index.js"
|