geekin-devtoys 0.3.7 → 0.3.9

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.
Files changed (63) hide show
  1. package/lib/GBubble/index.js +1 -2
  2. package/lib/GBubble/index.mjs +3 -210
  3. package/lib/GBubble-C3cM9Put.mjs +216 -0
  4. package/lib/GBubble-Dph0YDkU.js +2 -0
  5. package/lib/GButton/index.js +1 -0
  6. package/lib/GButton/index.mjs +84 -0
  7. package/lib/GButton/style.css +1 -0
  8. package/lib/GButton.d.ts +1 -0
  9. package/lib/GCard/index.js +1 -1
  10. package/lib/GCard/index.mjs +1 -1
  11. package/lib/GDialog/index.js +1 -1
  12. package/lib/GDialog/index.mjs +271 -342
  13. package/lib/GDialog/style.css +1 -1
  14. package/lib/GInput/index.js +1 -0
  15. package/lib/GInput/index.mjs +145 -0
  16. package/lib/GInput/style.css +1 -0
  17. package/lib/GInput.d.ts +1 -0
  18. package/lib/GInputTreeTag/index.js +1 -1
  19. package/lib/GInputTreeTag/index.mjs +77 -75
  20. package/lib/GInputTreeTag/style.css +1 -1
  21. package/lib/GPie3D/index.js +1 -1
  22. package/lib/GPie3D/index.mjs +1 -1
  23. package/lib/GProgress/index.js +1 -1
  24. package/lib/GProgress/index.mjs +1 -1
  25. package/lib/GRing/index.js +1 -1
  26. package/lib/GRing/index.mjs +1 -1
  27. package/lib/GScroller/index.js +1 -1
  28. package/lib/GScroller/index.mjs +135 -152
  29. package/lib/GShinyText/index.js +1 -1
  30. package/lib/GShinyText/index.mjs +45 -119
  31. package/lib/GSteps/index.js +1 -1
  32. package/lib/GSteps/index.mjs +89 -43
  33. package/lib/GSteps/style.css +1 -1
  34. package/lib/GTable/index.js +1 -1
  35. package/lib/GTable/index.mjs +1 -1
  36. package/lib/GTag/index.js +1 -0
  37. package/lib/GTag/index.mjs +73 -0
  38. package/lib/GTag.d.ts +1 -0
  39. package/lib/GVideo/index.js +2 -2
  40. package/lib/GVideo/index.mjs +159 -158
  41. package/lib/GVideo/style.css +1 -1
  42. package/lib/assets/GTag.css +1 -0
  43. package/lib/components/GButton/index.d.ts +38 -0
  44. package/lib/components/GDialog/const.d.ts +4 -4
  45. package/lib/components/GDialog/icons.d.ts +4 -4
  46. package/lib/components/GInput/index.d.ts +64 -0
  47. package/lib/components/GInputTreeTag/index.d.ts +16 -16
  48. package/lib/components/GProgress/index.d.ts +1 -1
  49. package/lib/components/GRing/index.d.ts +1 -1
  50. package/lib/components/GScreen/index.d.ts +1 -1
  51. package/lib/components/GTag/index.d.ts +38 -0
  52. package/lib/index/index.js +1 -1
  53. package/lib/index/index.mjs +42 -33
  54. package/lib/index/style.css +25 -0
  55. package/lib/index.d.ts +4 -1
  56. package/package.json +20 -20
  57. package/lib/AnimatePresence-26Wy0TGN.js +0 -9
  58. package/lib/AnimatePresence-nl0c23TZ.mjs +0 -136
  59. package/lib/_plugin-vue_export-helper-BHFhmbuH.js +0 -1
  60. package/lib/_plugin-vue_export-helper-CHgC5LLL.mjs +0 -9
  61. package/lib/components/GDialog/GButton.d.ts +0 -42
  62. package/lib/index-B8Ap0044.js +0 -1
  63. package/lib/index-Bbr5fWvI.mjs +0 -5158
@@ -1 +1 @@
1
- @charset "UTF-8";.g-dialog-pro-minimized-icon[data-v-8c4e520e]{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,#409eff 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,box-shadow .18s ease,filter .18s ease}.g-dialog-pro-minimized-icon[data-v-8c4e520e]:before{content:"";position:absolute;inset:3px;border:1px solid rgba(163,232,255,.24);clip-path:inherit;pointer-events:none}.g-dialog-pro-minimized-icon[data-v-8c4e520e]: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-pro-minimized-icon[data-v-8c4e520e]:hover{filter:saturate(1.2) brightness(1.08)}.g-dialog-pro-minimized-icon[data-v-8c4e520e]:hover:after{opacity:1;animation:g-dialog-pro-minimized-shine-8c4e520e .62s ease}.g-dialog-pro-minimized-icon:hover .g-dialog-pro-minimized-icon__wave[data-v-8c4e520e]{opacity:1;animation:g-dialog-pro-minimized-wave-8c4e520e 1.45s ease-in-out infinite}.g-dialog-pro-minimized-icon:hover .g-dialog-pro-minimized-icon__icon[data-v-8c4e520e]{transform:scale(1.08)}.g-dialog-pro-minimized-icon[data-v-8c4e520e]:active{box-shadow:0 0 0 1px #ffffff14 inset,0 5px 14px #0092ff3d,0 2px 6px #0003}.g-dialog-pro-minimized-icon[data-v-8c4e520e]:focus-visible{outline:2px solid rgba(0,209,255,.72);outline-offset:3px}.g-dialog-pro-minimized-icon.is-attention[data-v-8c4e520e]{animation:g-dialog-pro-minimized-attention-8c4e520e .58s ease both;filter:saturate(1.22) brightness(1.08)}.g-dialog-pro-minimized-icon.is-attention[data-v-8c4e520e]:after{opacity:1;animation:g-dialog-pro-minimized-shine-8c4e520e .58s ease}.g-dialog-pro-minimized-icon.is-attention .g-dialog-pro-minimized-icon__wave[data-v-8c4e520e]{opacity:1;animation:g-dialog-pro-minimized-wave-8c4e520e .58s ease-in-out}.g-dialog-pro-minimized-icon.is-attention .g-dialog-pro-minimized-icon__icon[data-v-8c4e520e]{animation:g-dialog-pro-minimized-icon-pop-8c4e520e .58s ease both}.g-dialog-pro-minimized-icon__glow[data-v-8c4e520e]{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-pro-minimized-icon__wave[data-v-8c4e520e]{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-pro-minimized-icon__icon[data-v-8c4e520e]{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-pro-minimized-icon__icon svg[data-v-8c4e520e]{width:13px;height:13px}.g-dialog-pro-minimized-icon__title[data-v-8c4e520e]{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-pro-minimized-shine-8c4e520e{0%{transform:rotate(18deg) translate(-16px)}to{transform:rotate(18deg) translate(116px)}}@keyframes g-dialog-pro-minimized-wave-8c4e520e{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-pro-minimized-attention-8c4e520e{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-pro-minimized-icon-pop-8c4e520e{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-pro-minimized-icon[data-v-8c4e520e]{animation:none;transition:right .3s ease,bottom .3s ease}.g-dialog-pro-minimized-icon[data-v-8c4e520e]:after{display:none}.g-dialog-pro-minimized-icon[data-v-8c4e520e]:hover,.g-dialog-pro-minimized-icon[data-v-8c4e520e]:active,.g-dialog-pro-minimized-icon.is-attention[data-v-8c4e520e]{transform:none;filter:none}.g-dialog-pro-minimized-icon__wave[data-v-8c4e520e]{animation:none!important;opacity:0}.g-dialog-pro-minimized-icon__icon[data-v-8c4e520e]{animation:none!important;transition:none}}.g-btn[data-v-f42a3a2f]{display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1;border:1px solid var(--g-border, #dcdfe6);background-color:var(--g-bg-color, #ffffff);color:var(--g-text-regular, #606266);border-radius:6px;cursor:pointer;-webkit-user-select:none;user-select:none;outline:none;font-family:inherit;transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease}.g-btn.is-disabled[data-v-f42a3a2f],.g-btn.is-loading[data-v-f42a3a2f]{cursor:not-allowed;opacity:.5}.g-btn.g-btn--size-small[data-v-f42a3a2f]{height:24px;padding:0 11px;font-size:12px;border-radius:4px}.g-btn.g-btn--size-default[data-v-f42a3a2f]{height:32px;padding:0 15px;font-size:14px}.g-btn.g-btn--size-large[data-v-f42a3a2f]{height:40px;padding:0 19px;font-size:14px}.g-btn__icon[data-v-f42a3a2f]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .28s cubic-bezier(.34,1.56,.64,1),color .2s ease;will-change:transform}.g-btn__icon svg[data-v-f42a3a2f]{width:1em;height:1em;display:block}.g-btn__loading svg[data-v-f42a3a2f]{animation:g-btn-rotating-f42a3a2f .6s linear infinite}.g-btn:hover:not(.is-disabled):not(.is-loading) .g-btn__icon[data-v-f42a3a2f]{transform:scale(1.18) rotate(-8deg)}.g-btn:active:not(.is-disabled):not(.is-loading) .g-btn__icon[data-v-f42a3a2f]{transform:scale(1.06) rotate(-4deg);transition-duration:.12s}.g-btn[data-v-f42a3a2f]:focus-visible{box-shadow:0 0 0 2px var(--g-bg-color, #ffffff),0 0 0 4px var(--g-primary-light-5, #a0cfff)}.g-btn.g-btn--default[data-v-f42a3a2f]:hover:not(.is-disabled):not(.is-loading){color:var(--g-primary, #409eff);border-color:var(--g-primary-light-5, #a0cfff);background-color:var(--g-primary-light-9, #ecf5ff)}.g-btn.g-btn--default[data-v-f42a3a2f]:active:not(.is-disabled):not(.is-loading){color:var(--g-primary-dark-2, #337ecc);border-color:var(--g-primary, #409eff)}.g-btn.g-btn--default.is-plain[data-v-f42a3a2f]{background-color:var(--g-primary-light-9, #ecf5ff);color:var(--g-primary, #409eff);border-color:var(--g-primary-light-5, #a0cfff)}.g-btn.g-btn--default.is-plain[data-v-f42a3a2f]:hover:not(.is-disabled):not(.is-loading){background-color:var(--g-primary, #409eff);color:#fff;border-color:var(--g-primary, #409eff)}.g-btn.g-btn--primary[data-v-f42a3a2f]{background-color:var(--g-primary, #409eff);border-color:var(--g-primary, #409eff);color:#fff}.g-btn.g-btn--primary:hover:not(.is-disabled):not(.is-loading) .g-btn__icon[data-v-f42a3a2f]{transform:scale(1.18) rotate(8deg)}.g-btn.g-btn--primary:active:not(.is-disabled):not(.is-loading) .g-btn__icon[data-v-f42a3a2f]{transform:scale(1.06) rotate(4deg);transition-duration:.12s}.g-btn.g-btn--primary[data-v-f42a3a2f]:hover:not(.is-disabled):not(.is-loading){background-color:var(--g-primary-light-3, #79bbff);border-color:var(--g-primary-light-3, #79bbff)}.g-btn.g-btn--primary[data-v-f42a3a2f]:active:not(.is-disabled):not(.is-loading){background-color:var(--g-primary-dark-2, #337ecc);border-color:var(--g-primary-dark-2, #337ecc)}.g-btn.g-btn--primary.is-plain[data-v-f42a3a2f]{background-color:var(--g-primary-light-9, #ecf5ff);color:var(--g-primary, #409eff);border-color:var(--g-primary-light-5, #a0cfff)}.g-btn.g-btn--primary.is-plain[data-v-f42a3a2f]:hover:not(.is-disabled):not(.is-loading){background-color:var(--g-primary, #409eff);color:#fff;border-color:var(--g-primary, #409eff)}.g-btn.g-btn--success[data-v-f42a3a2f]{background-color:var(--g-success, #67c23a);border-color:var(--g-success, #67c23a);color:#fff}.g-btn.g-btn--success[data-v-f42a3a2f]:hover:not(.is-disabled):not(.is-loading){background-color:var(--g-success-light-3, #95d475);border-color:var(--g-success-light-3, #95d475)}.g-btn.g-btn--success.is-plain[data-v-f42a3a2f]{background-color:var(--g-success-light-9, #f0f9eb);color:var(--g-success, #67c23a);border-color:var(--g-success-light-3, #95d475)}.g-btn.g-btn--success.is-plain[data-v-f42a3a2f]:hover:not(.is-disabled):not(.is-loading){background-color:var(--g-success, #67c23a);color:#fff;border-color:var(--g-success, #67c23a)}.g-btn.g-btn--warning[data-v-f42a3a2f]{background-color:var(--g-warning, #e6a23c);border-color:var(--g-warning, #e6a23c);color:#fff}.g-btn.g-btn--warning[data-v-f42a3a2f]:hover:not(.is-disabled):not(.is-loading){background-color:var(--g-warning-light-3, #ebb563);border-color:var(--g-warning-light-3, #ebb563)}.g-btn.g-btn--warning.is-plain[data-v-f42a3a2f]{background-color:var(--g-warning-light-9, #fdf6ec);color:var(--g-warning, #e6a23c);border-color:var(--g-warning-light-3, #ebb563)}.g-btn.g-btn--warning.is-plain[data-v-f42a3a2f]:hover:not(.is-disabled):not(.is-loading){background-color:var(--g-warning, #e6a23c);color:#fff;border-color:var(--g-warning, #e6a23c)}.g-btn.g-btn--danger[data-v-f42a3a2f]{background-color:var(--g-danger, #f56c6c);border-color:var(--g-danger, #f56c6c);color:#fff}.g-btn.g-btn--danger[data-v-f42a3a2f]:hover:not(.is-disabled):not(.is-loading){background-color:var(--g-danger-light-3, #f89898);border-color:var(--g-danger-light-3, #f89898)}.g-btn.g-btn--danger.is-plain[data-v-f42a3a2f]{background-color:var(--g-danger-light-9, #fef0f0);color:var(--g-danger, #f56c6c);border-color:var(--g-danger-light-3, #f89898)}.g-btn.g-btn--danger.is-plain[data-v-f42a3a2f]:hover:not(.is-disabled):not(.is-loading){background-color:var(--g-danger, #f56c6c);color:#fff;border-color:var(--g-danger, #f56c6c)}.g-btn.g-btn--info[data-v-f42a3a2f]{background-color:var(--g-info, #909399);border-color:var(--g-info, #909399);color:#fff}.g-btn.g-btn--info[data-v-f42a3a2f]:hover:not(.is-disabled):not(.is-loading){background-color:var(--g-info-light-3, #b1b3b8);border-color:var(--g-info-light-3, #b1b3b8)}.g-btn.g-btn--info.is-plain[data-v-f42a3a2f]{background-color:var(--g-info-light-9, #f4f4f5);color:var(--g-info, #909399);border-color:var(--g-info-light-3, #b1b3b8)}.g-btn.g-btn--info.is-plain[data-v-f42a3a2f]:hover:not(.is-disabled):not(.is-loading){background-color:var(--g-info, #909399);color:#fff;border-color:var(--g-info, #909399)}.g-btn.g-btn--text[data-v-f42a3a2f]{background-color:transparent;border-color:transparent;color:var(--g-primary, #409eff);padding:0 8px}.g-btn.g-btn--text[data-v-f42a3a2f]:hover:not(.is-disabled):not(.is-loading){background-color:var(--g-primary-light-9, #ecf5ff);border-color:transparent}@keyframes g-btn-rotating-f42a3a2f{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.g-btn__icon[data-v-f42a3a2f],.g-btn__loading svg[data-v-f42a3a2f]{transition:none!important;animation:none!important}.g-btn:hover:not(.is-disabled):not(.is-loading) .g-btn__icon[data-v-f42a3a2f],.g-btn:active:not(.is-disabled):not(.is-loading) .g-btn__icon[data-v-f42a3a2f]{transform:none}}.g-dialog-pro-header[data-v-d0535e3a]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:16px;padding:14px 20px;background:linear-gradient(180deg,var(--g-dialog-header-bg, rgba(248, 250, 252, .85)),transparent);position:relative}.g-dialog-pro-header .g-dialog-pro-title[data-v-d0535e3a]{position:relative;max-width:calc(100% - 88px);margin:0;overflow:hidden;color:var(--g-text-primary, #303133);font-size:15px;font-weight:600;line-height:1.4;letter-spacing:.01em;text-overflow:ellipsis;white-space:nowrap}.g-dialog-pro-header .g-dialog-pro-operation-container[data-v-d0535e3a]{display:flex;flex-direction:row;align-items:center;gap:8px;padding:0}.g-dialog-pro-control[data-v-d0535e3a]{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-pro-control[data-v-d0535e3a]: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-pro-control[data-v-d0535e3a]: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-pro-control[data-v-d0535e3a]:active{transform:scale(.92);filter:brightness(.96)}.g-dialog-pro-control[data-v-d0535e3a]:focus-visible{outline:2px solid rgba(68,68,68,.32);outline-offset:3px}.g-dialog-pro-control--close[data-v-d0535e3a]{background:linear-gradient(180deg,#ff8077,#ff5f57)}.g-dialog-pro-control--fullscreen[data-v-d0535e3a]{background:linear-gradient(180deg,#ffd066,#ffbd2e)}.g-dialog-pro-control--minimize[data-v-d0535e3a]{background:linear-gradient(180deg,#4be068,#28c840)}.g-dialog-pro-body[data-v-d0535e3a]{padding:0 20px;color:var(--g-text-regular, #606266);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-pro-body[data-v-d0535e3a]::-webkit-scrollbar{width:6px;height:6px}.g-dialog-pro-body[data-v-d0535e3a]::-webkit-scrollbar-thumb{background-color:var(--g-dialog-scrollbar, rgba(15, 23, 42, .18));border-radius:3px}.g-dialog-pro-body[data-v-d0535e3a]::-webkit-scrollbar-thumb:hover{background-color:var(--g-dialog-scrollbar-hover, rgba(15, 23, 42, .28))}.g-dialog-pro-body[data-v-d0535e3a]::-webkit-scrollbar-track{background:transparent}.g-dialog-pro-footer[data-v-d0535e3a]{padding:12px 20px;background:linear-gradient(0deg,var(--g-dialog-footer-bg, rgba(248, 250, 252, .7)),transparent);position:relative}.g-dialog-pro-actions[data-v-d0535e3a]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:8px;padding:2px 0}@media(prefers-reduced-motion:reduce){.g-dialog-pro-control[data-v-d0535e3a]{transition:none}}.g-dialog-pro-overlay{--g-primary: #409eff;--g-primary-light-3: #79bbff;--g-primary-light-5: #a0cfff;--g-primary-light-7: #c6e2ff;--g-primary-light-8: #d9ecff;--g-primary-light-9: #ecf5ff;--g-primary-dark-2: #337ecc;--g-success: #67c23a;--g-success-light-3: #95d475;--g-success-light-9: #f0f9eb;--g-warning: #e6a23c;--g-warning-light-3: #ebb563;--g-warning-light-9: #fdf6ec;--g-danger: #f56c6c;--g-danger-light-3: #f89898;--g-danger-light-9: #fef0f0;--g-info: #909399;--g-info-light-3: #b1b3b8;--g-info-light-9: #f4f4f5;--g-text-primary: #303133;--g-text-regular: #606266;--g-text-secondary: #909399;--g-border: #dcdfe6;--g-border-light: #e4e7ed;--g-border-lighter: #ebeef5;--g-bg-color: #ffffff;position:fixed;inset:0;z-index:2000;overflow:auto;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)}.g-dialog-pro{position:relative;margin:15vh auto 50px;width:50%;border-radius:14px;overflow:hidden;background:linear-gradient(180deg,var(--g-dialog-sheen, rgba(255, 255, 255, .6)),transparent) top/100% 64px no-repeat,var(--g-bg-color);box-shadow:0 1px 0 var(--g-dialog-inner-highlight, rgba(255, 255, 255, .6)) inset,0 0 0 1px var(--g-border-lighter, #ebeef5),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-pro.is-fullscreen{margin:0;width:100%!important;height:100vh;border-radius:0;box-shadow:none;display:flex;flex-direction:column}.g-dialog-pro.is-fullscreen .g-dialog-pro-body{flex:1 1 auto;max-height:none;min-height:0;display:flex;flex-direction:column}.g-dialog-pro.is-fullscreen .g-dialog-pro-body>*{flex:1 1 auto;min-height:0}.g-dialog-pro-fade-enter-active{animation:g-dialog-pro-overlay-in .22s ease both}.g-dialog-pro-fade-leave-active{animation:g-dialog-pro-overlay-out .22s ease both}@keyframes g-dialog-pro-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)}}@keyframes g-dialog-pro-overlay-out{0%{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)}to{background:#0f172a00;backdrop-filter:blur(0) saturate(1);-webkit-backdrop-filter:blur(0) saturate(1)}}.g-dialog-pro-fade-enter-active .g-dialog-pro,.g-dialog-pro-fade-leave-active .g-dialog-pro{transition:transform .26s cubic-bezier(.34,1.2,.64,1),opacity .22s ease}.g-dialog-pro-fade-enter-from .g-dialog-pro,.g-dialog-pro-fade-leave-to .g-dialog-pro{transform:translateY(-12px) scale(.96);opacity:0}.g-dialog-pro-fade-leave-to .g-dialog-pro.is-leave-to-minimize,.g-dialog-pro-fade-enter-from .g-dialog-pro.is-enter-from-minimize{transform:translateY(40px) scale(.85);opacity:0}html.dark .g-dialog-pro-overlay{--g-primary: #409eff;--g-primary-light-3: #3375b9;--g-primary-light-5: #2a598a;--g-primary-light-7: #213d5b;--g-primary-light-8: #1d3043;--g-primary-light-9: #18222c;--g-primary-dark-2: #66b1ff;--g-success: #67c23a;--g-success-light-3: #4e8e2f;--g-success-light-9: #1a331a;--g-warning: #e6a23c;--g-warning-light-3: #b88230;--g-warning-light-9: #332e1a;--g-danger: #f56c6c;--g-danger-light-3: #b25252;--g-danger-light-9: #332020;--g-info: #909399;--g-info-light-3: #6b6d71;--g-info-light-9: #232324;--g-text-primary: #e5eaf3;--g-text-regular: #cfd3dc;--g-text-secondary: #a3a6ad;--g-border: #4c4d4f;--g-border-light: #414243;--g-border-lighter: #363637;--g-bg-color: #141414;--g-dialog-overlay-bg: rgba(0, 0, 0, .55)}html.dark .g-dialog-pro{--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-pro .g-dialog-pro-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-pro .g-dialog-pro-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-pro .g-dialog-pro-control:focus-visible{outline-color:#ffffff73}@media(prefers-reduced-motion:reduce){.g-dialog-pro-fade-enter-active,.g-dialog-pro-fade-leave-active{animation:none}.g-dialog-pro-fade-enter-active .g-dialog-pro,.g-dialog-pro-fade-leave-active .g-dialog-pro{transition:opacity .18s ease;transform:none}.g-dialog-pro-fade-leave-to .g-dialog-pro.is-leave-to-minimize,.g-dialog-pro-fade-enter-from .g-dialog-pro.is-enter-from-minimize{transform:none}}
1
+ @charset "UTF-8";.g-dialog-pro-minimized-icon[data-v-e7d8c859]{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,#409eff 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,box-shadow .18s ease,filter .18s ease}.g-dialog-pro-minimized-icon[data-v-e7d8c859]:before{content:"";position:absolute;inset:3px;border:1px solid rgba(163,232,255,.24);clip-path:inherit;pointer-events:none}.g-dialog-pro-minimized-icon[data-v-e7d8c859]: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-pro-minimized-icon[data-v-e7d8c859]:hover{filter:saturate(1.2) brightness(1.08)}.g-dialog-pro-minimized-icon[data-v-e7d8c859]:hover:after{opacity:1;animation:g-dialog-pro-minimized-shine-e7d8c859 .62s ease}.g-dialog-pro-minimized-icon:hover .g-dialog-pro-minimized-icon__wave[data-v-e7d8c859]{opacity:1;animation:g-dialog-pro-minimized-wave-e7d8c859 1.45s ease-in-out infinite}.g-dialog-pro-minimized-icon:hover .g-dialog-pro-minimized-icon__icon[data-v-e7d8c859]{transform:scale(1.08)}.g-dialog-pro-minimized-icon[data-v-e7d8c859]:active{box-shadow:0 0 0 1px #ffffff14 inset,0 5px 14px #0092ff3d,0 2px 6px #0003}.g-dialog-pro-minimized-icon[data-v-e7d8c859]:focus-visible{outline:2px solid rgba(0,209,255,.72);outline-offset:3px}.g-dialog-pro-minimized-icon.is-attention[data-v-e7d8c859]{animation:g-dialog-pro-minimized-attention-e7d8c859 .58s ease both;filter:saturate(1.22) brightness(1.08)}.g-dialog-pro-minimized-icon.is-attention[data-v-e7d8c859]:after{opacity:1;animation:g-dialog-pro-minimized-shine-e7d8c859 .58s ease}.g-dialog-pro-minimized-icon.is-attention .g-dialog-pro-minimized-icon__wave[data-v-e7d8c859]{opacity:1;animation:g-dialog-pro-minimized-wave-e7d8c859 .58s ease-in-out}.g-dialog-pro-minimized-icon.is-attention .g-dialog-pro-minimized-icon__icon[data-v-e7d8c859]{animation:g-dialog-pro-minimized-icon-pop-e7d8c859 .58s ease both}.g-dialog-pro-minimized-icon__glow[data-v-e7d8c859]{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-pro-minimized-icon__wave[data-v-e7d8c859]{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-pro-minimized-icon__icon[data-v-e7d8c859]{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-pro-minimized-icon__icon svg[data-v-e7d8c859]{width:13px;height:13px}.g-dialog-pro-minimized-icon__title[data-v-e7d8c859]{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-pro-minimized-shine-e7d8c859{0%{transform:rotate(18deg) translate(-16px)}to{transform:rotate(18deg) translate(116px)}}@keyframes g-dialog-pro-minimized-wave-e7d8c859{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-pro-minimized-attention-e7d8c859{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-pro-minimized-icon-pop-e7d8c859{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-pro-minimized-icon[data-v-e7d8c859]{animation:none;transition:right .3s ease,bottom .3s ease}.g-dialog-pro-minimized-icon[data-v-e7d8c859]:after{display:none}.g-dialog-pro-minimized-icon[data-v-e7d8c859]:hover,.g-dialog-pro-minimized-icon[data-v-e7d8c859]:active,.g-dialog-pro-minimized-icon.is-attention[data-v-e7d8c859]{transform:none;filter:none}.g-dialog-pro-minimized-icon__wave[data-v-e7d8c859]{animation:none!important;opacity:0}.g-dialog-pro-minimized-icon__icon[data-v-e7d8c859]{animation:none!important;transition:none}}.g-dialog-pro-header[data-v-5e0eed3b]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:16px;padding:14px 20px;background:linear-gradient(180deg,var(--g-dialog-header-bg, rgba(248, 250, 252, .85)),transparent);position:relative}.g-dialog-pro-header .g-dialog-pro-title[data-v-5e0eed3b]{position:relative;max-width:calc(100% - 88px);margin:0;overflow:hidden;color:var(--g-text-primary, #303133);font-size:15px;font-weight:600;line-height:1.4;letter-spacing:.01em;text-overflow:ellipsis;white-space:nowrap}.g-dialog-pro-header .g-dialog-pro-operation-container[data-v-5e0eed3b]{display:flex;flex-direction:row;align-items:center;gap:8px;padding:0}.g-dialog-pro-control[data-v-5e0eed3b]{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-pro-control[data-v-5e0eed3b]: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-pro-control[data-v-5e0eed3b]: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-pro-control[data-v-5e0eed3b]:active{transform:scale(.92);filter:brightness(.96)}.g-dialog-pro-control[data-v-5e0eed3b]:focus-visible{outline:2px solid rgba(68,68,68,.32);outline-offset:3px}.g-dialog-pro-control--close[data-v-5e0eed3b]{background:linear-gradient(180deg,#ff8077,#ff5f57)}.g-dialog-pro-control--fullscreen[data-v-5e0eed3b]{background:linear-gradient(180deg,#ffd066,#ffbd2e)}.g-dialog-pro-control--minimize[data-v-5e0eed3b]{background:linear-gradient(180deg,#4be068,#28c840)}.g-dialog-pro-body[data-v-5e0eed3b]{padding:0 20px;color:var(--g-text-regular, #606266);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-pro-body[data-v-5e0eed3b]::-webkit-scrollbar{width:6px;height:6px}.g-dialog-pro-body[data-v-5e0eed3b]::-webkit-scrollbar-thumb{background-color:var(--g-dialog-scrollbar, rgba(15, 23, 42, .18));border-radius:3px}.g-dialog-pro-body[data-v-5e0eed3b]::-webkit-scrollbar-thumb:hover{background-color:var(--g-dialog-scrollbar-hover, rgba(15, 23, 42, .28))}.g-dialog-pro-body[data-v-5e0eed3b]::-webkit-scrollbar-track{background:transparent}.g-dialog-pro-footer[data-v-5e0eed3b]{padding:12px 20px;background:linear-gradient(0deg,var(--g-dialog-footer-bg, rgba(248, 250, 252, .7)),transparent);position:relative}.g-dialog-pro-actions[data-v-5e0eed3b]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:8px;padding:2px 0}@media(prefers-reduced-motion:reduce){.g-dialog-pro-control[data-v-5e0eed3b]{transition:none}}.g-dialog-pro-overlay{--g-primary: #409eff;--g-primary-light-3: #79bbff;--g-primary-light-5: #a0cfff;--g-primary-light-7: #c6e2ff;--g-primary-light-8: #d9ecff;--g-primary-light-9: #ecf5ff;--g-primary-dark-2: #337ecc;--g-success: #67c23a;--g-success-light-3: #95d475;--g-success-light-9: #f0f9eb;--g-warning: #e6a23c;--g-warning-light-3: #ebb563;--g-warning-light-9: #fdf6ec;--g-danger: #f56c6c;--g-danger-light-3: #f89898;--g-danger-light-9: #fef0f0;--g-info: #909399;--g-info-light-3: #b1b3b8;--g-info-light-9: #f4f4f5;--g-text-primary: #303133;--g-text-regular: #606266;--g-text-secondary: #909399;--g-border: #dcdfe6;--g-border-light: #e4e7ed;--g-border-lighter: #ebeef5;--g-bg-color: #ffffff;position:fixed;inset:0;z-index:2000;overflow:auto;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)}.g-dialog-pro{position:relative;margin:15vh auto 50px;width:50%;border-radius:14px;overflow:hidden;background:linear-gradient(180deg,var(--g-dialog-sheen, rgba(255, 255, 255, .6)),transparent) top/100% 64px no-repeat,var(--g-bg-color);box-shadow:0 1px 0 var(--g-dialog-inner-highlight, rgba(255, 255, 255, .6)) inset,0 0 0 1px var(--g-border-lighter, #ebeef5),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-pro.is-fullscreen{margin:0;width:100%!important;height:100vh;border-radius:0;box-shadow:none;display:flex;flex-direction:column}.g-dialog-pro.is-fullscreen .g-dialog-pro-body{flex:1 1 auto;max-height:none;min-height:0;display:flex;flex-direction:column}.g-dialog-pro.is-fullscreen .g-dialog-pro-body>*{flex:1 1 auto;min-height:0}.g-dialog-pro-fade-enter-active{animation:g-dialog-pro-overlay-in .22s ease both}.g-dialog-pro-fade-leave-active{animation:g-dialog-pro-overlay-out .22s ease both}@keyframes g-dialog-pro-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)}}@keyframes g-dialog-pro-overlay-out{0%{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)}to{background:#0f172a00;backdrop-filter:blur(0) saturate(1);-webkit-backdrop-filter:blur(0) saturate(1)}}.g-dialog-pro-fade-enter-active .g-dialog-pro,.g-dialog-pro-fade-leave-active .g-dialog-pro{transition:transform .26s cubic-bezier(.34,1.2,.64,1),opacity .22s ease}.g-dialog-pro-fade-enter-from .g-dialog-pro,.g-dialog-pro-fade-leave-to .g-dialog-pro{transform:translateY(-12px) scale(.96);opacity:0}.g-dialog-pro-fade-leave-to .g-dialog-pro.is-leave-to-minimize,.g-dialog-pro-fade-enter-from .g-dialog-pro.is-enter-from-minimize{transform:translateY(40px) scale(.85);opacity:0}html.dark .g-dialog-pro-overlay{--g-primary: #409eff;--g-primary-light-3: #3375b9;--g-primary-light-5: #2a598a;--g-primary-light-7: #213d5b;--g-primary-light-8: #1d3043;--g-primary-light-9: #18222c;--g-primary-dark-2: #66b1ff;--g-success: #67c23a;--g-success-light-3: #4e8e2f;--g-success-light-9: #1a331a;--g-warning: #e6a23c;--g-warning-light-3: #b88230;--g-warning-light-9: #332e1a;--g-danger: #f56c6c;--g-danger-light-3: #b25252;--g-danger-light-9: #332020;--g-info: #909399;--g-info-light-3: #6b6d71;--g-info-light-9: #232324;--g-text-primary: #e5eaf3;--g-text-regular: #cfd3dc;--g-text-secondary: #a3a6ad;--g-border: #4c4d4f;--g-border-light: #414243;--g-border-lighter: #363637;--g-bg-color: #141414;--g-dialog-overlay-bg: rgba(0, 0, 0, .55)}html.dark .g-dialog-pro{--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-pro .g-dialog-pro-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-pro .g-dialog-pro-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-pro .g-dialog-pro-control:focus-visible{outline-color:#ffffff73}@media(prefers-reduced-motion:reduce){.g-dialog-pro-fade-enter-active,.g-dialog-pro-fade-leave-active{animation:none}.g-dialog-pro-fade-enter-active .g-dialog-pro,.g-dialog-pro-fade-leave-active .g-dialog-pro{transition:opacity .18s ease;transform:none}.g-dialog-pro-fade-leave-to .g-dialog-pro.is-leave-to-minimize,.g-dialog-pro-fade-enter-from .g-dialog-pro.is-enter-from-minimize{transform:none}}
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("motion-v"),M=require("../GBubble-Dph0YDkU.js"),P={class:"g-input__wrapper"},T={key:0,class:"g-input__prefix"},q=["type","value","disabled","readonly","maxlength"],O={key:1,class:"g-input__suffix"},D={key:0,class:"g-input__slot-suffix"},F={key:1,class:"g-input__count"},L={key:0,class:"g-input__count-max"},R=e.defineComponent({name:"GInput",inheritAttrs:!1,__name:"index",props:{modelValue:{},type:{},size:{},disabled:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},showCount:{type:Boolean},maxlength:{},block:{type:Boolean}},emits:["update:modelValue","input","change","focus","blur","clear"],setup(c,{expose:y,emit:v}){const o=c,n=v,i=e.useAttrs(),_=e.useSlots(),g=e.computed(()=>{const{class:t,style:l,...d}=i;return d}),k=e.computed(()=>["g-input",`g-input--${o.size??"middle"}`,{"is-block":o.block,"is-disabled":o.disabled,"is-readonly":o.readonly,"is-focused":p.value},i.class]),h=e.computed(()=>i.style),s=e.ref(),r=e.ref(!1),p=e.ref(!1),B=e.computed(()=>m.value||!!_.suffix||o.showCount),m=e.computed(()=>o.clearable&&!o.disabled&&!o.readonly&&r.value&&String(o.modelValue??"").length>0),f=e.computed(()=>String(o.modelValue??"").length),b={opacity:0,scale:.6},C={opacity:1,scale:1},V={opacity:0,scale:.6},x={duration:.15,ease:"easeOut"},S={opacity:0,y:4},N={opacity:1,y:0},E={opacity:0,y:-4},w={duration:.15,ease:"easeOut"},A=t=>{const l=t.target.value;n("update:modelValue",l),n("input",l)},I=t=>{n("change",t.target.value)},$=t=>{p.value=!0,n("focus",t)},z=t=>{p.value=!1,n("blur",t)},G=()=>{n("update:modelValue",""),n("input",""),n("change",""),n("clear"),s.value?.focus()};return y({focus:()=>s.value?.focus(),blur:()=>s.value?.blur(),select:()=>s.value?.select()}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(k.value),style:e.normalizeStyle(h.value),onMouseenter:l[0]||(l[0]=d=>r.value=!0),onMouseleave:l[1]||(l[1]=d=>r.value=!1)},[e.createElementVNode("div",P,[t.$slots.prefix?(e.openBlock(),e.createElementBlock("span",T,[e.renderSlot(t.$slots,"prefix",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps({ref_key:"inputRef",ref:s,class:"g-input__inner",type:t.type,value:t.modelValue??"",disabled:t.disabled,readonly:t.readonly,maxlength:t.maxlength},g.value,{onInput:A,onChange:I,onFocus:$,onBlur:z}),null,16,q),B.value?(e.openBlock(),e.createElementBlock("span",O,[e.createVNode(e.unref(u.AnimatePresence),null,{default:e.withCtx(()=>[m.value?(e.openBlock(),e.createBlock(e.unref(u.motion).span,{key:0,class:"g-input__clear",initial:b,animate:C,exit:V,transition:x,onClick:G})):e.createCommentVNode("",!0)]),_:1}),t.$slots.suffix?(e.openBlock(),e.createElementBlock("span",D,[e.renderSlot(t.$slots,"suffix",{},void 0,!0)])):e.createCommentVNode("",!0),t.showCount?(e.openBlock(),e.createElementBlock("span",F,[e.createVNode(e.unref(u.AnimatePresence),{mode:"popLayout"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.unref(u.motion).span,{key:f.value,class:"g-input__count-text",initial:S,animate:N,exit:E,transition:w},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.value),1)]),_:1}))]),_:1}),t.maxlength!=null?(e.openBlock(),e.createElementBlock("span",L," / "+e.toDisplayString(t.maxlength),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])],38))}}),a=M._export_sfc(R,[["__scopeId","data-v-76da4f4c"]]);a.install=c=>{c.component(a.name,a)};exports.GInput=a;exports.default=a;
@@ -0,0 +1,145 @@
1
+ import { defineComponent as K, useAttrs as Q, useSlots as U, computed as a, ref as y, createElementBlock as l, openBlock as n, normalizeStyle as W, normalizeClass as X, createElementVNode as b, createCommentVNode as u, renderSlot as x, mergeProps as Y, createVNode as k, unref as r, withCtx as _, createBlock as C, createTextVNode as Z, toDisplayString as V } from "vue";
2
+ import { AnimatePresence as B, motion as S } from "motion-v";
3
+ import { _ as ee } from "../GBubble-C3cM9Put.mjs";
4
+ const te = { class: "g-input__wrapper" }, se = {
5
+ key: 0,
6
+ class: "g-input__prefix"
7
+ }, oe = ["type", "value", "disabled", "readonly", "maxlength"], ne = {
8
+ key: 1,
9
+ class: "g-input__suffix"
10
+ }, ae = {
11
+ key: 0,
12
+ class: "g-input__slot-suffix"
13
+ }, le = {
14
+ key: 1,
15
+ class: "g-input__count"
16
+ }, ue = {
17
+ key: 0,
18
+ class: "g-input__count-max"
19
+ }, ie = /* @__PURE__ */ K({
20
+ name: "GInput",
21
+ inheritAttrs: !1,
22
+ __name: "index",
23
+ props: {
24
+ modelValue: {},
25
+ type: {},
26
+ size: {},
27
+ disabled: { type: Boolean },
28
+ readonly: { type: Boolean },
29
+ clearable: { type: Boolean },
30
+ showCount: { type: Boolean },
31
+ maxlength: {},
32
+ block: { type: Boolean }
33
+ },
34
+ emits: ["update:modelValue", "input", "change", "focus", "blur", "clear"],
35
+ setup(c, { expose: w, emit: $ }) {
36
+ const t = c, s = $, p = Q(), A = U(), I = a(() => {
37
+ const { class: e, style: o, ...f } = p;
38
+ return f;
39
+ }), z = a(() => [
40
+ "g-input",
41
+ `g-input--${t.size ?? "middle"}`,
42
+ {
43
+ "is-block": t.block,
44
+ "is-disabled": t.disabled,
45
+ "is-readonly": t.readonly,
46
+ "is-focused": m.value
47
+ },
48
+ p.class
49
+ ]), E = a(() => p.style), i = y(), d = y(!1), m = y(!1), N = a(() => g.value || !!A.suffix || t.showCount), g = a(
50
+ () => t.clearable && !t.disabled && !t.readonly && d.value && String(t.modelValue ?? "").length > 0
51
+ ), h = a(() => String(t.modelValue ?? "").length), T = { opacity: 0, scale: 0.6 }, F = { opacity: 1, scale: 1 }, G = { opacity: 0, scale: 0.6 }, L = { duration: 0.15, ease: "easeOut" }, M = { opacity: 0, y: 4 }, O = { opacity: 1, y: 0 }, P = { opacity: 0, y: -4 }, R = { duration: 0.15, ease: "easeOut" }, D = (e) => {
52
+ const o = e.target.value;
53
+ s("update:modelValue", o), s("input", o);
54
+ }, H = (e) => {
55
+ s("change", e.target.value);
56
+ }, j = (e) => {
57
+ m.value = !0, s("focus", e);
58
+ }, q = (e) => {
59
+ m.value = !1, s("blur", e);
60
+ }, J = () => {
61
+ s("update:modelValue", ""), s("input", ""), s("change", ""), s("clear"), i.value?.focus();
62
+ };
63
+ return w({
64
+ /** 手动聚焦内部 input */
65
+ focus: () => i.value?.focus(),
66
+ /** 手动失焦内部 input */
67
+ blur: () => i.value?.blur(),
68
+ /** 全选内部文本 */
69
+ select: () => i.value?.select()
70
+ }), (e, o) => (n(), l("div", {
71
+ class: X(z.value),
72
+ style: W(E.value),
73
+ onMouseenter: o[0] || (o[0] = (f) => d.value = !0),
74
+ onMouseleave: o[1] || (o[1] = (f) => d.value = !1)
75
+ }, [
76
+ b("div", te, [
77
+ e.$slots.prefix ? (n(), l("span", se, [
78
+ x(e.$slots, "prefix", {}, void 0, !0)
79
+ ])) : u("", !0),
80
+ b("input", Y({
81
+ ref_key: "inputRef",
82
+ ref: i,
83
+ class: "g-input__inner",
84
+ type: e.type,
85
+ value: e.modelValue ?? "",
86
+ disabled: e.disabled,
87
+ readonly: e.readonly,
88
+ maxlength: e.maxlength
89
+ }, I.value, {
90
+ onInput: D,
91
+ onChange: H,
92
+ onFocus: j,
93
+ onBlur: q
94
+ }), null, 16, oe),
95
+ N.value ? (n(), l("span", ne, [
96
+ k(r(B), null, {
97
+ default: _(() => [
98
+ g.value ? (n(), C(r(S).span, {
99
+ key: 0,
100
+ class: "g-input__clear",
101
+ initial: T,
102
+ animate: F,
103
+ exit: G,
104
+ transition: L,
105
+ onClick: J
106
+ })) : u("", !0)
107
+ ]),
108
+ _: 1
109
+ }),
110
+ e.$slots.suffix ? (n(), l("span", ae, [
111
+ x(e.$slots, "suffix", {}, void 0, !0)
112
+ ])) : u("", !0),
113
+ e.showCount ? (n(), l("span", le, [
114
+ k(r(B), { mode: "popLayout" }, {
115
+ default: _(() => [
116
+ (n(), C(r(S).span, {
117
+ key: h.value,
118
+ class: "g-input__count-text",
119
+ initial: M,
120
+ animate: O,
121
+ exit: P,
122
+ transition: R
123
+ }, {
124
+ default: _(() => [
125
+ Z(V(h.value), 1)
126
+ ]),
127
+ _: 1
128
+ }))
129
+ ]),
130
+ _: 1
131
+ }),
132
+ e.maxlength != null ? (n(), l("span", ue, " / " + V(e.maxlength), 1)) : u("", !0)
133
+ ])) : u("", !0)
134
+ ])) : u("", !0)
135
+ ])
136
+ ], 38));
137
+ }
138
+ }), v = /* @__PURE__ */ ee(ie, [["__scopeId", "data-v-76da4f4c"]]);
139
+ v.install = (c) => {
140
+ c.component(v.name, v);
141
+ };
142
+ export {
143
+ v as GInput,
144
+ v as default
145
+ };
@@ -0,0 +1 @@
1
+ @charset "UTF-8";.g-input[data-v-76da4f4c]{display:inline-flex;align-items:stretch;width:var(--g-input-width, 240px);font-size:var(--g-input-font-size, 14px);color:var(--g-text-color, rgba(0, 0, 0, .88))}.g-input:not(.is-disabled):hover .g-input__wrapper[data-v-76da4f4c]{border-color:var(--g-primary-color, #039be5)}.g-input.is-focused:not(.is-disabled) .g-input__wrapper[data-v-76da4f4c]{border-color:var(--g-primary-color, #039be5);box-shadow:0 0 0 2px color-mix(in srgb,var(--g-primary-color, #039be5) 15%,transparent)}.g-input.is-block[data-v-76da4f4c]{display:flex;width:100%}.g-input.is-disabled[data-v-76da4f4c]{cursor:not-allowed;color:var(--g-input-disabled-text-color, rgba(0, 0, 0, .3))}.g-input.is-disabled .g-input__wrapper[data-v-76da4f4c]{background:var(--g-input-disabled-bg-color, #f2f3f5);border-color:var(--g-border-color, #dcdfe3)}.g-input.is-disabled .g-input__inner[data-v-76da4f4c]{cursor:not-allowed;-webkit-text-fill-color:var(--g-input-disabled-text-color, rgba(0, 0, 0, .3))}.g-input.is-disabled .g-input__inner[data-v-76da4f4c]::placeholder{color:var(--g-input-disabled-text-color, rgba(0, 0, 0, .3))}.g-input--large[data-v-76da4f4c]{--g-input-height: 40px;--g-input-font-size: 16px}.g-input--small[data-v-76da4f4c]{--g-input-height: 24px;--g-input-font-size: 12px}.g-input__wrapper[data-v-76da4f4c]{position:relative;flex:1;display:inline-flex;align-items:center;gap:4px;min-width:0;height:var(--g-input-height, 32px);padding:0 8px;background:var(--g-bg-color, #ffffff);border:1px solid var(--g-border-color, #dcdfe3);border-radius:var(--g-input-radius, 6px);transition:border-color .2s cubic-bezier(.645,.045,.355,1),box-shadow .2s cubic-bezier(.645,.045,.355,1)}.g-input__inner[data-v-76da4f4c]{flex:1;min-width:0;height:100%;padding:0;font:inherit;color:inherit;background:transparent;border:none;outline:none;caret-color:var(--g-primary-color, #039be5)}.g-input__inner[data-v-76da4f4c]::placeholder{color:var(--g-text-placeholder-color, rgba(0, 0, 0, .35))}.g-input__prefix[data-v-76da4f4c],.g-input__suffix[data-v-76da4f4c]{display:inline-flex;align-items:center;gap:4px;color:var(--g-text-placeholder-color, rgba(0, 0, 0, .35))}.g-input__prefix[data-v-76da4f4c] svg,.g-input__suffix[data-v-76da4f4c] svg{width:1em;height:1em;display:block}.g-input__clear[data-v-76da4f4c]{position:relative;flex-shrink:0;width:1em;height:1em;cursor:pointer;color:var(--g-text-placeholder-color, rgba(0, 0, 0, .35));transition:color .2s}.g-input__clear[data-v-76da4f4c]:before,.g-input__clear[data-v-76da4f4c]:after{content:"";position:absolute;left:50%;top:50%;width:100%;height:1px;background:currentcolor}.g-input__clear[data-v-76da4f4c]:before{transform:translate(-50%,-50%) rotate(45deg)}.g-input__clear[data-v-76da4f4c]:after{transform:translate(-50%,-50%) rotate(-45deg)}.g-input__clear[data-v-76da4f4c]:hover{color:var(--g-text-color, rgba(0, 0, 0, .88))}.g-input__count[data-v-76da4f4c]{flex-shrink:0;font-size:12px;font-variant-numeric:tabular-nums;color:var(--g-text-placeholder-color, rgba(0, 0, 0, .35))}.g-input__count-text[data-v-76da4f4c]{display:inline-block}
@@ -0,0 +1 @@
1
+ export {}
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),h=require("element-plus"),R=require("../index-B8Ap0044.js"),H=require("../AnimatePresence-26Wy0TGN.js"),me=require("../_plugin-vue_export-helper-BHFhmbuH.js"),ge={key:0,class:"g-input-tree-tag__tags"},be=t.defineComponent({__name:"index",props:{modelValue:{default:()=>[]},data:{default:()=>[]},props:{default:()=>({})},echoProps:{},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},valueFormat:{default:"value"},selectable:{},filterMethod:{},duplicateMessage:{default:"该项已添加"},notFoundMessage:{default:"未找到匹配项"}},emits:["update:modelValue","change","add","remove","node-click","duplicate","not-found"],setup(B,{expose:$,emit:q}){const o=B,r=q,P=t.computed(()=>({label:o.props.label||"label",children:o.props.children||"children",disabled:o.props.disabled})),j=t.computed(()=>o.props.value||o.nodeKey||"id"),K=t.computed(()=>o.props.label||"label"),U=t.computed(()=>o.props.children||"children"),_=t.computed(()=>o.props.isLeaf),D=t.computed(()=>o.echoProps?.value||"value"),G=t.computed(()=>o.echoProps?.label||"label"),v=e=>e?e[j.value]:void 0,d=e=>e?e[K.value]:"",F=e=>e?e[U.value]:void 0,Z=e=>e?.[D.value]??e?.value,W=e=>e?.[G.value]??e?.label,c=e=>{if(!e)return!1;if(typeof o.selectable=="function")return o.selectable(e);if(_.value&&e[_.value]!==void 0)return!!e[_.value];const a=F(e);return!a||!a.length},S=t.computed(()=>{const e=new Map,a=(l=[])=>{l.forEach(n=>{c(n)&&e.set(v(n),n);const s=F(n);s?.length&&a(s)})};return a(o.data||[]),e}),u=t.computed(()=>(o.modelValue||[]).map(a=>{const l=o.valueFormat==="object"?Z(a):a,n=S.value.get(l),s=o.valueFormat==="object"?W(a):void 0;return{value:l,label:n?d(n):s??String(l??""),raw:n??(o.valueFormat==="object"?a:void 0)}})),w=e=>u.value.some(a=>a.value===e),k=t.ref(""),i=t.ref(!1),T=t.ref(null),I=t.ref(null),N=t.ref(null),p=t.ref(null),J=e=>{if(!e){p.value=null;return}p.value=e.$el??(e instanceof HTMLElement?e:null)},L=t.ref({}),m=t.ref("bottom"),Q=t.computed(()=>({opacity:0,scale:.95,y:m.value==="bottom"?-8:8})),X={opacity:1,scale:1,y:0},Y=t.computed(()=>({opacity:0,scale:.95,y:m.value==="bottom"?-8:8})),ee={duration:.2,ease:"easeOut"},te=t.computed(()=>({...L.value,transformOrigin:m.value==="bottom"?"top center":"bottom center"})),ae={opacity:0,scale:.8},le={opacity:1,scale:1},oe={opacity:0,scale:.8},ne={duration:.2,ease:"easeOut"},re=t.computed(()=>typeof o.width=="number"?`${o.width}px`:o.width),C=()=>{o.disabled||(i.value=!0)},E=()=>{if(!i.value)return;const e=N.value,a=p.value;if(!e||!a)return;const l=e.getBoundingClientRect(),n=a.offsetHeight||o.popperMaxHeight,x=window.innerHeight-l.bottom-o.popperOffset,fe=l.top-o.popperOffset,O=x>=n||x>=fe?"bottom":"top";m.value=O;const ve=O==="bottom"?l.bottom+o.popperOffset:l.top-n-o.popperOffset;L.value={position:"fixed",top:`${ve}px`,left:`${l.left}px`,width:`${l.width}px`,zIndex:String(o.popperZIndex)}};let f=null;const g=()=>{i.value&&(f&&cancelAnimationFrame(f),f=requestAnimationFrame(()=>{f=null,E()}))};let b=null;const ue=()=>{typeof ResizeObserver>"u"||!p.value||(b?.disconnect(),b=new ResizeObserver(()=>g()),b.observe(p.value))},A=()=>{b?.disconnect(),b=null};t.watch(i,async e=>{if(!e){A();return}await t.nextTick(),E(),requestAnimationFrame(E),ue()});const z=e=>{if(!i.value)return;const a=e.target;I.value?.contains(a)||p.value?.contains(a)||(i.value=!1)};t.onMounted(()=>{document.addEventListener("mousedown",z,!0),window.addEventListener("scroll",g,!0),window.addEventListener("resize",g)}),t.onBeforeUnmount(()=>{document.removeEventListener("mousedown",z,!0),window.removeEventListener("scroll",g,!0),window.removeEventListener("resize",g),f&&cancelAnimationFrame(f),A()});const ie=e=>{i.value=!0,T.value?.filter(e),t.nextTick(E)},se=(e,a)=>e?typeof o.filterMethod=="function"?o.filterMethod(e,a):String(d(a)??"").toLowerCase().includes(String(e).toLowerCase()):!0,de=(e,a)=>{if(r("node-click",e),!c(e)){a&&(a.expanded=!a.expanded);return}M(e),i.value=!1},ce=e=>o.valueFormat==="object"?{value:e.value,label:e.label,raw:e.raw}:e.value,M=e=>{const a=v(e);if(a==null||a==="")return;if(w(a)){const s={value:a,label:d(e),raw:e};r("duplicate",s),o.duplicateMessage&&h.ElMessage.warning(o.duplicateMessage);return}const l={value:a,label:d(e),raw:e},n=[...o.modelValue||[],ce(l)];r("update:modelValue",n),r("add",l),r("change",n,[...u.value,l]),o.clearInputAfterSelect&&(k.value="")},pe=()=>{if(!o.enterToAdd)return;const e=(k.value||"").trim();if(!e)return;let a=null;for(const l of S.value.values())if(d(l)===e){a=l;break}if(!a){r("not-found",e),o.notFoundMessage&&h.ElMessage.warning(o.notFoundMessage);return}M(a)},V=e=>{if(e<0||e>=u.value.length)return;const a=u.value[e],l=[...o.modelValue||[]];l.splice(e,1),r("update:modelValue",l),a&&r("remove",a,e);const n=u.value.filter((s,x)=>x!==e);r("change",l,n)};return $({open:C,close:()=>i.value=!1,clear:()=>{r("update:modelValue",[]),r("change",[],[])},addByValue:e=>{const a=S.value.get(e);a&&M(a)},removeByIndex:e=>{V(e)},removeByValue:e=>{const a=u.value.findIndex(l=>l.value===e);a>-1&&V(a)},getSelectedItems:()=>u.value}),(e,a)=>(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:I},[t.createElementVNode("div",{class:"g-input-tree-tag__input-box",ref_key:"inputBoxRef",ref:N,style:t.normalizeStyle({width:re.value})},[t.createVNode(t.unref(h.ElInput),{modelValue:k.value,"onUpdate:modelValue":a[0]||(a[0]=l=>k.value=l),placeholder:e.placeholder,clearable:e.clearable,disabled:e.disabled,class:"g-input-tree-tag__input",onFocus:C,onClick:C,onInput:ie,onKeyup:t.withKeys(pe,["enter"])},null,8,["modelValue","placeholder","clearable","disabled"])],4),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.unref(H.AnimatePresence_default),null,{default:t.withCtx(()=>[i.value?(t.openBlock(),t.createBlock(t.unref(R.motion).div,{key:0,ref:J,class:t.normalizeClass(["g-input-tree-tag__popover",`is-${m.value}`]),style:t.normalizeStyle(te.value),initial:Q.value,animate:X,exit:Y.value,transition:ee,onMousedown:a[1]||(a[1]=t.withModifiers(()=>{},["prevent"]))},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"g-input-tree-tag__tree-wrap",style:t.normalizeStyle({maxHeight:e.popperMaxHeight+"px"})},[t.createVNode(t.unref(h.ElTree),{ref_key:"treeRef",ref:T,data:e.data,props:P.value,"node-key":e.nodeKey,"filter-node-method":se,"expand-on-click-node":!1,"default-expand-all":e.defaultExpandAll,onNodeClick:de},{default:t.withCtx(l=>[t.renderSlot(e.$slots,"tree-node",{data:l?.data,node:l?.node,selectable:c(l?.data),selected:w(v(l?.data))},()=>[l?.data?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["g-input-tree-tag__node",{"is-selectable":c(l.data),"is-selected":c(l.data)&&w(v(l.data))}])},[t.renderSlot(e.$slots,"leaf-icon",{data:l.data,selectable:c(l.data),selected:w(v(l.data))},void 0,!0),t.createTextVNode(" "+t.toDisplayString(d(l.data)),1)],2)):t.createCommentVNode("",!0)],!0)]),_:3},8,["data","props","node-key","default-expand-all"])],4)]),_:3},8,["class","style","initial","exit"])):t.createCommentVNode("",!0)]),_:3})])),u.value.length?(t.openBlock(),t.createElementBlock("div",ge,[t.renderSlot(e.$slots,"tags",{items:u.value,remove:V},()=>[t.createVNode(t.unref(H.AnimatePresence_default),{mode:"popLayout"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.value,(l,n)=>(t.openBlock(),t.createBlock(t.unref(R.motion).div,{key:l.value,layout:!0,class:"g-input-tree-tag__tag-motion",initial:ae,animate:le,exit:oe,transition:ne},{default:t.withCtx(()=>[t.createVNode(t.unref(h.ElTag),{class:"g-input-tree-tag__tag",type:e.tagType,effect:e.tagEffect,closable:e.closable&&!e.disabled,onClose:s=>V(n)},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"tag",{item:l,index:n},()=>[t.createTextVNode(t.toDisplayString(l.label),1)],!0)]),_:2},1032,["type","effect","closable","onClose"])]),_:2},1024))),128))]),_:3})],!0)])):t.createCommentVNode("",!0)],512)],2))}}),y=me._export_sfc(be,[["__scopeId","data-v-b74dd5d2"]]);y.install=B=>{B.component(y.name,y)};exports.GInputTreeTag=y;exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),ve=require("../GInput/index.js"),me=require("../GTag/index.js"),F=require("element-plus"),x=require("motion-v"),ge=require("../GBubble-Dph0YDkU.js"),be={key:0,class:"g-input-tree-tag__tags"},he=t.defineComponent({__name:"index",props:{modelValue:{default:()=>[]},data:{default:()=>[]},props:{default:()=>({})},echoProps:{},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:"primary"},tagVariant:{default:"filled"},clearInputAfterSelect:{type:Boolean,default:!0},enterToAdd:{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(E,{expose:$,emit:H}){const o=E,r=H,q=t.computed(()=>({label:o.props.label||"label",children:o.props.children||"children",disabled:o.props.disabled})),j=t.computed(()=>o.props.value||o.nodeKey||"id"),G=t.computed(()=>o.props.label||"label"),K=t.computed(()=>o.props.children||"children"),S=t.computed(()=>o.props.isLeaf),P=t.computed(()=>o.echoProps?.value||"value"),U=t.computed(()=>o.echoProps?.label||"label"),v=e=>e?e[j.value]:void 0,d=e=>e?e[G.value]:"",T=e=>e?e[K.value]:void 0,D=e=>e?.[P.value]??e?.value,Z=e=>e?.[U.value]??e?.label,c=e=>{if(!e)return!1;if(typeof o.selectable=="function")return o.selectable(e);if(S.value&&e[S.value]!==void 0)return!!e[S.value];const a=T(e);return!a||!a.length},C=t.computed(()=>{const e=new Map,a=(l=[])=>{l.forEach(n=>{c(n)&&e.set(v(n),n);const s=T(n);s?.length&&a(s)})};return a(o.data||[]),e}),u=t.computed(()=>(o.modelValue||[]).map(a=>{const l=o.valueFormat==="object"?D(a):a,n=C.value.get(l),s=o.valueFormat==="object"?Z(a):void 0;return{value:l,label:n?d(n):s??String(l??""),raw:n??(o.valueFormat==="object"?a:void 0)}})),y=e=>u.value.some(a=>a.value===e),w=t.ref(""),i=t.ref(!1),I=t.ref(null),N=t.ref(null),L=t.ref(null),p=t.ref(null),W=e=>{if(!e){p.value=null;return}p.value=e.$el??(e instanceof HTMLElement?e:null)},A=t.ref({}),m=t.ref("bottom"),J=t.computed(()=>({opacity:0,scale:.95,y:m.value==="bottom"?-8:8})),Q={opacity:1,scale:1,y:0},X=t.computed(()=>({opacity:0,scale:.95,y:m.value==="bottom"?-8:8})),Y={duration:.2,ease:"easeOut"},ee=t.computed(()=>({...A.value,transformOrigin:m.value==="bottom"?"top center":"bottom center"})),te={opacity:0,scale:.8},ae={opacity:1,scale:1},le={opacity:0,scale:.8},oe={duration:.2,ease:"easeOut"},ne=t.computed(()=>typeof o.width=="number"?`${o.width}px`:o.width),M=()=>{o.disabled||(i.value=!0)},k=()=>{if(!i.value)return;const e=L.value,a=p.value;if(!e||!a)return;const l=e.getBoundingClientRect(),n=a.offsetHeight||o.popperMaxHeight,B=window.innerHeight-l.bottom-o.popperOffset,pe=l.top-o.popperOffset,R=B>=n||B>=pe?"bottom":"top";m.value=R;const fe=R==="bottom"?l.bottom+o.popperOffset:l.top-n-o.popperOffset;A.value={position:"fixed",top:`${fe}px`,left:`${l.left}px`,width:`${l.width}px`,zIndex:String(o.popperZIndex)}};let f=null;const g=()=>{i.value&&(f&&cancelAnimationFrame(f),f=requestAnimationFrame(()=>{f=null,k()}))};let b=null;const re=()=>{typeof ResizeObserver>"u"||!p.value||(b?.disconnect(),b=new ResizeObserver(()=>g()),b.observe(p.value))},z=()=>{b?.disconnect(),b=null};t.watch(i,async e=>{if(!e){z();return}await t.nextTick(),k(),requestAnimationFrame(k),re()});const O=e=>{if(!i.value)return;const a=e.target;N.value?.contains(a)||p.value?.contains(a)||(i.value=!1)};t.onMounted(()=>{document.addEventListener("mousedown",O,!0),window.addEventListener("scroll",g,!0),window.addEventListener("resize",g)}),t.onBeforeUnmount(()=>{document.removeEventListener("mousedown",O,!0),window.removeEventListener("scroll",g,!0),window.removeEventListener("resize",g),f&&cancelAnimationFrame(f),z()});const ue=e=>{i.value=!0,I.value?.filter(e),t.nextTick(k)},ie=(e,a)=>e?typeof o.filterMethod=="function"?o.filterMethod(e,a):String(d(a)??"").toLowerCase().includes(String(e).toLowerCase()):!0,se=(e,a)=>{if(r("node-click",e),!c(e)){a&&(a.expanded=!a.expanded);return}_(e),i.value=!1},de=e=>o.valueFormat==="object"?{value:e.value,label:e.label,raw:e.raw}:e.value,_=e=>{const a=v(e);if(a==null||a==="")return;if(y(a)){const s={value:a,label:d(e),raw:e};r("duplicate",s),o.duplicateMessage&&F.ElMessage.warning(o.duplicateMessage);return}const l={value:a,label:d(e),raw:e},n=[...o.modelValue||[],de(l)];r("update:modelValue",n),r("add",l),r("change",n,[...u.value,l]),o.clearInputAfterSelect&&(w.value="")},ce=()=>{if(!o.enterToAdd)return;const e=(w.value||"").trim();if(!e)return;let a=null;for(const l of C.value.values())if(d(l)===e){a=l;break}if(!a){r("not-found",e),o.notFoundMessage&&F.ElMessage.warning(o.notFoundMessage);return}_(a)},V=e=>{if(e<0||e>=u.value.length)return;const a=u.value[e],l=[...o.modelValue||[]];l.splice(e,1),r("update:modelValue",l),a&&r("remove",a,e);const n=u.value.filter((s,B)=>B!==e);r("change",l,n)};return $({open:M,close:()=>i.value=!1,clear:()=>{r("update:modelValue",[]),r("change",[],[])},addByValue:e=>{const a=C.value.get(e);a&&_(a)},removeByIndex:e=>{V(e)},removeByValue:e=>{const a=u.value.findIndex(l=>l.value===e);a>-1&&V(a)},getSelectedItems:()=>u.value}),(e,a)=>(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:N},[t.createElementVNode("div",{class:"g-input-tree-tag__input-box",ref_key:"inputBoxRef",ref:L,style:t.normalizeStyle({width:ne.value})},[t.createVNode(t.unref(ve.default),{modelValue:w.value,"onUpdate:modelValue":a[0]||(a[0]=l=>w.value=l),placeholder:e.placeholder,clearable:e.clearable,disabled:e.disabled,block:"",class:"g-input-tree-tag__input",onFocus:M,onClick:M,onInput:ue,onKeyup:t.withKeys(ce,["enter"])},null,8,["modelValue","placeholder","clearable","disabled"])],4),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.unref(x.AnimatePresence),null,{default:t.withCtx(()=>[i.value?(t.openBlock(),t.createBlock(t.unref(x.motion).div,{key:0,ref:W,class:t.normalizeClass(["g-input-tree-tag__popover",`is-${m.value}`]),style:t.normalizeStyle(ee.value),initial:J.value,animate:Q,exit:X.value,transition:Y,onMousedown:a[1]||(a[1]=t.withModifiers(()=>{},["prevent"]))},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"g-input-tree-tag__tree-wrap",style:t.normalizeStyle({maxHeight:e.popperMaxHeight+"px"})},[t.createVNode(t.unref(F.ElTree),{ref_key:"treeRef",ref:I,data:e.data,props:q.value,"node-key":e.nodeKey,"filter-node-method":ie,"expand-on-click-node":!1,"default-expand-all":e.defaultExpandAll,onNodeClick:se},{default:t.withCtx(l=>[t.renderSlot(e.$slots,"tree-node",{data:l?.data,node:l?.node,selectable:c(l?.data),selected:y(v(l?.data))},()=>[l?.data?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["g-input-tree-tag__node",{"is-selectable":c(l.data),"is-selected":c(l.data)&&y(v(l.data))}])},[t.renderSlot(e.$slots,"leaf-icon",{data:l.data,selectable:c(l.data),selected:y(v(l.data))},void 0,!0),t.createTextVNode(" "+t.toDisplayString(d(l.data)),1)],2)):t.createCommentVNode("",!0)],!0)]),_:3},8,["data","props","node-key","default-expand-all"])],4)]),_:3},8,["class","style","initial","exit"])):t.createCommentVNode("",!0)]),_:3})])),u.value.length?(t.openBlock(),t.createElementBlock("div",be,[t.renderSlot(e.$slots,"tags",{items:u.value,remove:V},()=>[t.createVNode(t.unref(x.AnimatePresence),{mode:"popLayout"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.value,(l,n)=>(t.openBlock(),t.createBlock(t.unref(x.motion).div,{key:l.value,layout:!0,class:"g-input-tree-tag__tag-motion",initial:te,animate:ae,exit:le,transition:oe},{default:t.withCtx(()=>[t.createVNode(t.unref(me.default),{class:"g-input-tree-tag__tag",type:e.tagType,variant:e.tagVariant,closable:e.closable&&!e.disabled,onClose:s=>V(n)},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"tag",{item:l,index:n},()=>[t.createTextVNode(t.toDisplayString(l.label),1)],!0)]),_:2},1032,["type","variant","closable","onClose"])]),_:2},1024))),128))]),_:3})],!0)])):t.createCommentVNode("",!0)],512)],2))}}),h=ge._export_sfc(he,[["__scopeId","data-v-e10d8b6e"]]);h.install=E=>{E.component(h.name,h)};exports.GInputTreeTag=h;exports.default=h;
@@ -1,12 +1,13 @@
1
- import { defineComponent as Le, computed as n, ref as d, watch as Se, nextTick as W, onMounted as Te, onBeforeUnmount as Ae, createElementBlock as M, openBlock as c, normalizeClass as O, createElementVNode as R, createBlock as $, createCommentVNode as z, normalizeStyle as H, createVNode as k, unref as p, withKeys as Ce, Teleport as Oe, withCtx as b, withModifiers as Re, renderSlot as B, createTextVNode as J, toDisplayString as Q, Fragment as $e, renderList as ze } from "vue";
2
- import { ElInput as He, ElTree as Ne, ElTag as Ke, ElMessage as X } from "element-plus";
3
- import { m as Y } from "../index-Bbr5fWvI.mjs";
4
- import { A as ee } from "../AnimatePresence-nl0c23TZ.mjs";
5
- import { _ as je } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
6
- const Ue = {
1
+ import { defineComponent as Le, computed as n, ref as d, watch as Se, nextTick as W, onMounted as Te, onBeforeUnmount as Ae, createElementBlock as M, openBlock as c, normalizeClass as O, createElementVNode as R, createBlock as $, createCommentVNode as z, normalizeStyle as H, createVNode as V, unref as p, withKeys as Ce, Teleport as Oe, withCtx as b, withModifiers as Re, renderSlot as B, createTextVNode as J, toDisplayString as Q, Fragment as $e, renderList as ze } from "vue";
2
+ import He from "../GInput/index.mjs";
3
+ import Ne from "../GTag/index.mjs";
4
+ import { ElTree as Ke, ElMessage as X } from "element-plus";
5
+ import { AnimatePresence as Y, motion as ee } from "motion-v";
6
+ import { _ as je } from "../GBubble-C3cM9Put.mjs";
7
+ const Ge = {
7
8
  key: 0,
8
9
  class: "g-input-tree-tag__tags"
9
- }, qe = /* @__PURE__ */ Le({
10
+ }, Ue = /* @__PURE__ */ Le({
10
11
  __name: "index",
11
12
  props: {
12
13
  modelValue: { default: () => [] },
@@ -23,8 +24,8 @@ const Ue = {
23
24
  disabled: { type: Boolean, default: !1 },
24
25
  clearable: { type: Boolean, default: !0 },
25
26
  closable: { type: Boolean, default: !0 },
26
- tagType: { default: "info" },
27
- tagEffect: { default: "light" },
27
+ tagType: { default: "primary" },
28
+ tagVariant: { default: "filled" },
28
29
  clearInputAfterSelect: { type: Boolean, default: !0 },
29
30
  enterToAdd: { type: Boolean, default: !0 },
30
31
  valueFormat: { default: "value" },
@@ -39,7 +40,7 @@ const Ue = {
39
40
  label: l.props.label || "label",
40
41
  children: l.props.children || "children",
41
42
  disabled: l.props.disabled
42
- })), oe = n(() => l.props.value || l.nodeKey || "id"), ne = n(() => l.props.label || "label"), re = n(() => l.props.children || "children"), S = n(() => l.props.isLeaf), se = n(() => l.echoProps?.value || "value"), ie = n(() => l.echoProps?.label || "label"), h = (e) => e ? e[oe.value] : void 0, f = (e) => e ? e[ne.value] : "", K = (e) => e ? e[re.value] : void 0, ue = (e) => e?.[se.value] ?? e?.value, de = (e) => e?.[ie.value] ?? e?.label, v = (e) => {
43
+ })), oe = n(() => l.props.value || l.nodeKey || "id"), ne = n(() => l.props.label || "label"), re = n(() => l.props.children || "children"), S = n(() => l.props.isLeaf), ie = n(() => l.echoProps?.value || "value"), se = n(() => l.echoProps?.label || "label"), h = (e) => e ? e[oe.value] : void 0, f = (e) => e ? e[ne.value] : "", K = (e) => e ? e[re.value] : void 0, ue = (e) => e?.[ie.value] ?? e?.value, de = (e) => e?.[se.value] ?? e?.label, v = (e) => {
43
44
  if (!e) return !1;
44
45
  if (typeof l.selectable == "function") return l.selectable(e);
45
46
  if (S.value && e[S.value] !== void 0) return !!e[S.value];
@@ -54,20 +55,20 @@ const Ue = {
54
55
  });
55
56
  };
56
57
  return t(l.data || []), e;
57
- }), s = n(() => (l.modelValue || []).map((t) => {
58
+ }), i = n(() => (l.modelValue || []).map((t) => {
58
59
  const a = l.valueFormat === "object" ? ue(t) : t, o = T.value.get(a), u = l.valueFormat === "object" ? de(t) : void 0;
59
60
  return {
60
61
  value: a,
61
62
  label: o ? f(o) : u ?? String(a ?? ""),
62
63
  raw: o ?? (l.valueFormat === "object" ? t : void 0)
63
64
  };
64
- })), x = (e) => s.value.some((t) => t.value === e), V = d(""), i = d(!1), j = d(null), U = d(null), q = d(null), m = d(null), ce = (e) => {
65
+ })), x = (e) => i.value.some((t) => t.value === e), E = d(""), s = d(!1), j = d(null), G = d(null), U = d(null), m = d(null), ce = (e) => {
65
66
  if (!e) {
66
67
  m.value = null;
67
68
  return;
68
69
  }
69
70
  m.value = e.$el ?? (e instanceof HTMLElement ? e : null);
70
- }, P = d({}), y = d("bottom"), pe = n(() => ({
71
+ }, q = d({}), y = d("bottom"), pe = n(() => ({
71
72
  opacity: 0,
72
73
  scale: 0.95,
73
74
  y: y.value === "bottom" ? -8 : 8
@@ -76,20 +77,20 @@ const Ue = {
76
77
  scale: 0.95,
77
78
  y: y.value === "bottom" ? -8 : 8
78
79
  })), me = { duration: 0.2, ease: "easeOut" }, ge = n(() => ({
79
- ...P.value,
80
+ ...q.value,
80
81
  transformOrigin: y.value === "bottom" ? "top center" : "bottom center"
81
- })), be = { opacity: 0, scale: 0.8 }, he = { opacity: 1, scale: 1 }, ye = { opacity: 0, scale: 0.8 }, we = { duration: 0.2, ease: "easeOut" }, Ee = n(
82
+ })), be = { opacity: 0, scale: 0.8 }, he = { opacity: 1, scale: 1 }, ye = { opacity: 0, scale: 0.8 }, we = { duration: 0.2, ease: "easeOut" }, ke = n(
82
83
  () => typeof l.width == "number" ? `${l.width}px` : l.width
83
84
  ), A = () => {
84
- l.disabled || (i.value = !0);
85
- }, _ = () => {
86
- if (!i.value) return;
87
- const e = q.value, t = m.value;
85
+ l.disabled || (s.value = !0);
86
+ }, F = () => {
87
+ if (!s.value) return;
88
+ const e = U.value, t = m.value;
88
89
  if (!e || !t) return;
89
- const a = e.getBoundingClientRect(), o = t.offsetHeight || l.popperMaxHeight, I = window.innerHeight - a.bottom - l.popperOffset, Me = a.top - l.popperOffset, G = I >= o || I >= Me ? "bottom" : "top";
90
- y.value = G;
91
- const Be = G === "bottom" ? a.bottom + l.popperOffset : a.top - o - l.popperOffset;
92
- P.value = {
90
+ const a = e.getBoundingClientRect(), o = t.offsetHeight || l.popperMaxHeight, I = window.innerHeight - a.bottom - l.popperOffset, Me = a.top - l.popperOffset, D = I >= o || I >= Me ? "bottom" : "top";
91
+ y.value = D;
92
+ const Be = D === "bottom" ? a.bottom + l.popperOffset : a.top - o - l.popperOffset;
93
+ q.value = {
93
94
  position: "fixed",
94
95
  top: `${Be}px`,
95
96
  left: `${a.left}px`,
@@ -99,42 +100,42 @@ const Ue = {
99
100
  };
100
101
  let g = null;
101
102
  const w = () => {
102
- i.value && (g && cancelAnimationFrame(g), g = requestAnimationFrame(() => {
103
- g = null, _();
103
+ s.value && (g && cancelAnimationFrame(g), g = requestAnimationFrame(() => {
104
+ g = null, F();
104
105
  }));
105
106
  };
106
- let E = null;
107
- const ke = () => {
108
- typeof ResizeObserver > "u" || !m.value || (E?.disconnect(), E = new ResizeObserver(() => w()), E.observe(m.value));
109
- }, Z = () => {
110
- E?.disconnect(), E = null;
107
+ let k = null;
108
+ const Ve = () => {
109
+ typeof ResizeObserver > "u" || !m.value || (k?.disconnect(), k = new ResizeObserver(() => w()), k.observe(m.value));
110
+ }, P = () => {
111
+ k?.disconnect(), k = null;
111
112
  };
112
- Se(i, async (e) => {
113
+ Se(s, async (e) => {
113
114
  if (!e) {
114
- Z();
115
+ P();
115
116
  return;
116
117
  }
117
- await W(), _(), requestAnimationFrame(_), ke();
118
+ await W(), F(), requestAnimationFrame(F), Ve();
118
119
  });
119
- const D = (e) => {
120
- if (!i.value) return;
120
+ const Z = (e) => {
121
+ if (!s.value) return;
121
122
  const t = e.target;
122
- U.value?.contains(t) || m.value?.contains(t) || (i.value = !1);
123
+ G.value?.contains(t) || m.value?.contains(t) || (s.value = !1);
123
124
  };
124
125
  Te(() => {
125
- document.addEventListener("mousedown", D, !0), window.addEventListener("scroll", w, !0), window.addEventListener("resize", w);
126
+ document.addEventListener("mousedown", Z, !0), window.addEventListener("scroll", w, !0), window.addEventListener("resize", w);
126
127
  }), Ae(() => {
127
- document.removeEventListener("mousedown", D, !0), window.removeEventListener("scroll", w, !0), window.removeEventListener("resize", w), g && cancelAnimationFrame(g), Z();
128
+ document.removeEventListener("mousedown", Z, !0), window.removeEventListener("scroll", w, !0), window.removeEventListener("resize", w), g && cancelAnimationFrame(g), P();
128
129
  });
129
130
  const xe = (e) => {
130
- i.value = !0, j.value?.filter(e), W(_);
131
- }, Ve = (e, t) => e ? typeof l.filterMethod == "function" ? l.filterMethod(e, t) : String(f(t) ?? "").toLowerCase().includes(String(e).toLowerCase()) : !0, _e = (e, t) => {
131
+ s.value = !0, j.value?.filter(e), W(F);
132
+ }, Ee = (e, t) => e ? typeof l.filterMethod == "function" ? l.filterMethod(e, t) : String(f(t) ?? "").toLowerCase().includes(String(e).toLowerCase()) : !0, Fe = (e, t) => {
132
133
  if (r("node-click", e), !v(e)) {
133
134
  t && (t.expanded = !t.expanded);
134
135
  return;
135
136
  }
136
- C(e), i.value = !1;
137
- }, Fe = (e) => l.valueFormat === "object" ? { value: e.value, label: e.label, raw: e.raw } : e.value, C = (e) => {
137
+ C(e), s.value = !1;
138
+ }, _e = (e) => l.valueFormat === "object" ? { value: e.value, label: e.label, raw: e.raw } : e.value, C = (e) => {
138
139
  const t = h(e);
139
140
  if (t == null || t === "") return;
140
141
  if (x(t)) {
@@ -142,11 +143,11 @@ const Ue = {
142
143
  r("duplicate", u), l.duplicateMessage && X.warning(l.duplicateMessage);
143
144
  return;
144
145
  }
145
- const a = { value: t, label: f(e), raw: e }, o = [...l.modelValue || [], Fe(a)];
146
- r("update:modelValue", o), r("add", a), r("change", o, [...s.value, a]), l.clearInputAfterSelect && (V.value = "");
146
+ const a = { value: t, label: f(e), raw: e }, o = [...l.modelValue || [], _e(a)];
147
+ r("update:modelValue", o), r("add", a), r("change", o, [...i.value, a]), l.clearInputAfterSelect && (E.value = "");
147
148
  }, Ie = () => {
148
149
  if (!l.enterToAdd) return;
149
- const e = (V.value || "").trim();
150
+ const e = (E.value || "").trim();
150
151
  if (!e) return;
151
152
  let t = null;
152
153
  for (const a of T.value.values())
@@ -159,18 +160,18 @@ const Ue = {
159
160
  return;
160
161
  }
161
162
  C(t);
162
- }, F = (e) => {
163
- if (e < 0 || e >= s.value.length) return;
164
- const t = s.value[e], a = [...l.modelValue || []];
163
+ }, _ = (e) => {
164
+ if (e < 0 || e >= i.value.length) return;
165
+ const t = i.value[e], a = [...l.modelValue || []];
165
166
  a.splice(e, 1), r("update:modelValue", a), t && r("remove", t, e);
166
- const o = s.value.filter((u, I) => I !== e);
167
+ const o = i.value.filter((u, I) => I !== e);
167
168
  r("change", a, o);
168
169
  };
169
170
  return te({
170
171
  /** 主动打开下拉面板 */
171
172
  open: A,
172
173
  /** 主动关闭下拉面板 */
173
- close: () => i.value = !1,
174
+ close: () => s.value = !1,
174
175
  /** 清空已选 */
175
176
  clear: () => {
176
177
  r("update:modelValue", []), r("change", [], []);
@@ -182,35 +183,36 @@ const Ue = {
182
183
  },
183
184
  /** 根据索引移除,触发与关闭 tag 一致的事件 */
184
185
  removeByIndex: (e) => {
185
- F(e);
186
+ _(e);
186
187
  },
187
188
  /** 根据 value 移除,触发与关闭 tag 一致的事件 */
188
189
  removeByValue: (e) => {
189
- const t = s.value.findIndex((a) => a.value === e);
190
- t > -1 && F(t);
190
+ const t = i.value.findIndex((a) => a.value === e);
191
+ t > -1 && _(t);
191
192
  },
192
193
  /** 获取当前归一化后的已选项 */
193
- getSelectedItems: () => s.value
194
+ getSelectedItems: () => i.value
194
195
  }), (e, t) => (c(), M("div", {
195
196
  class: O(["g-input-tree-tag", { "is-disabled": e.disabled }])
196
197
  }, [
197
198
  R("div", {
198
199
  class: "g-input-tree-tag__wrap",
199
200
  ref_key: "wrapRef",
200
- ref: U
201
+ ref: G
201
202
  }, [
202
203
  R("div", {
203
204
  class: "g-input-tree-tag__input-box",
204
205
  ref_key: "inputBoxRef",
205
- ref: q,
206
- style: H({ width: Ee.value })
206
+ ref: U,
207
+ style: H({ width: ke.value })
207
208
  }, [
208
- k(p(He), {
209
- modelValue: V.value,
210
- "onUpdate:modelValue": t[0] || (t[0] = (a) => V.value = a),
209
+ V(p(He), {
210
+ modelValue: E.value,
211
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => E.value = a),
211
212
  placeholder: e.placeholder,
212
213
  clearable: e.clearable,
213
214
  disabled: e.disabled,
215
+ block: "",
214
216
  class: "g-input-tree-tag__input",
215
217
  onFocus: A,
216
218
  onClick: A,
@@ -219,9 +221,9 @@ const Ue = {
219
221
  }, null, 8, ["modelValue", "placeholder", "clearable", "disabled"])
220
222
  ], 4),
221
223
  (c(), $(Oe, { to: "body" }, [
222
- k(p(ee), null, {
224
+ V(p(Y), null, {
223
225
  default: b(() => [
224
- i.value ? (c(), $(p(Y).div, {
226
+ s.value ? (c(), $(p(ee).div, {
225
227
  key: 0,
226
228
  ref: ce,
227
229
  class: O(["g-input-tree-tag__popover", `is-${y.value}`]),
@@ -238,16 +240,16 @@ const Ue = {
238
240
  class: "g-input-tree-tag__tree-wrap",
239
241
  style: H({ maxHeight: e.popperMaxHeight + "px" })
240
242
  }, [
241
- k(p(Ne), {
243
+ V(p(Ke), {
242
244
  ref_key: "treeRef",
243
245
  ref: j,
244
246
  data: e.data,
245
247
  props: le.value,
246
248
  "node-key": e.nodeKey,
247
- "filter-node-method": Ve,
249
+ "filter-node-method": Ee,
248
250
  "expand-on-click-node": !1,
249
251
  "default-expand-all": e.defaultExpandAll,
250
- onNodeClick: _e
252
+ onNodeClick: Fe
251
253
  }, {
252
254
  default: b((a) => [
253
255
  B(e.$slots, "tree-node", {
@@ -285,14 +287,14 @@ const Ue = {
285
287
  _: 3
286
288
  })
287
289
  ])),
288
- s.value.length ? (c(), M("div", Ue, [
290
+ i.value.length ? (c(), M("div", Ge, [
289
291
  B(e.$slots, "tags", {
290
- items: s.value,
291
- remove: F
292
+ items: i.value,
293
+ remove: _
292
294
  }, () => [
293
- k(p(ee), { mode: "popLayout" }, {
295
+ V(p(Y), { mode: "popLayout" }, {
294
296
  default: b(() => [
295
- (c(!0), M($e, null, ze(s.value, (a, o) => (c(), $(p(Y).div, {
297
+ (c(!0), M($e, null, ze(i.value, (a, o) => (c(), $(p(ee).div, {
296
298
  key: a.value,
297
299
  layout: !0,
298
300
  class: "g-input-tree-tag__tag-motion",
@@ -302,12 +304,12 @@ const Ue = {
302
304
  transition: we
303
305
  }, {
304
306
  default: b(() => [
305
- k(p(Ke), {
307
+ V(p(Ne), {
306
308
  class: "g-input-tree-tag__tag",
307
309
  type: e.tagType,
308
- effect: e.tagEffect,
310
+ variant: e.tagVariant,
309
311
  closable: e.closable && !e.disabled,
310
- onClose: (u) => F(o)
312
+ onClose: (u) => _(o)
311
313
  }, {
312
314
  default: b(() => [
313
315
  B(e.$slots, "tag", {
@@ -318,7 +320,7 @@ const Ue = {
318
320
  ], !0)
319
321
  ]),
320
322
  _: 2
321
- }, 1032, ["type", "effect", "closable", "onClose"])
323
+ }, 1032, ["type", "variant", "closable", "onClose"])
322
324
  ]),
323
325
  _: 2
324
326
  }, 1024))), 128))
@@ -330,7 +332,7 @@ const Ue = {
330
332
  ], 512)
331
333
  ], 2));
332
334
  }
333
- }), N = /* @__PURE__ */ je(qe, [["__scopeId", "data-v-b74dd5d2"]]);
335
+ }), N = /* @__PURE__ */ je(Ue, [["__scopeId", "data-v-e10d8b6e"]]);
334
336
  N.install = (L) => {
335
337
  L.component(N.name, N);
336
338
  };