
管理员
站长
- UID
- 1
- 积分
- 224400
- 余额
- 13 R
- Moe币
- 84881
- 在线时间
- 279 小时
- 注册时间
- 2025-12-28
- 最后登录
- 2026-11-9
|
|
fault:!1},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0},clickTriggerUseCapture:{type:Boolean,default:!1}},computed:{tooltipId:function(){return"kdv-popover-"+Object(c["generateId"])()},styleObj:function(){var t={width:this.width+"px"};return this.maxWidth&&(t.maxWidth=this.maxWidth+"px"),this.minWidth&&(t.minWidth=this.minWidth+"px"),t}},watch:{showPopper:function(t){this.disabled||(t?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var t=this,e=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),e&&(Object(s["addClass"])(e,"kdv-popover__reference"),e.setAttribute("aria-describedby",this.tooltipId),e.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(s["on"])(e,"focusin",(function(){t.handleFocus();var n=e.__vue__;n&&"function"===typeof n.focus&&n.focus()})),Object(s["on"])(n,"focusin",this.handleFocus),Object(s["on"])(e,"focusout",this.handleBlur),Object(s["on"])(n,"focusout",this.handleBlur)),Object(s["on"])(e,"keydown",this.handleKeydown),Object(s["on"])(e,"click",this.handleClick)),"click"===this.trigger?(Object(s["on"])(e,"click",this.doToggle),Object(s["on"])(document,"click",this.handleDocumentClick,this.clickTriggerUseCapture)):"hover"===this.trigger?(Object(s["on"])(e,"mouseenter",this.handleMouseEnter),Object(s["on"])(n,"mouseenter",this.handleMouseEnter),Object(s["on"])(e,"mouseleave",this.handleMouseLeave),Object(s["on"])(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),e.querySelector("input, textarea")?(Object(s["on"])(e,"focusin",this.doShow),Object(s["on"])(e,"focusout",this.doClose)):(Object(s["on"])(e,"mousedown",this.doShow),Object(s["on"])(e,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.disabled||(this.showPopper=!this.showPopper)},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(s["addClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(s["removeClass"])(this.referenceElm,"focusing")},handleBlur:function(){Object(s["removeClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var t=this,e=this.popper||this.$refs.popper;Object(s["on"])(e,"compositionstart",this.handleInputStart),Object(s["on"])(e,"compositionend",this.handleInputEnd),Object(s["on"])(e,"compositioncancel",this.handleInputEnd),clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){t.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(t){27===t.keyCode&&"manual"!==this.trigger&&this.doClose()},isInputActive:function(){var t=document.activeElement;if(t&&("INPUT"===t.tagName||"TEXTAREA"===t.tagName||"true"===t.getAttribute("contenteditable"))){var e=!(!InputEvent||"function"!==typeof InputEvent||!("isComposing"in InputEvent.prototype))&&new InputEvent("input",{data:"",isComposing:!0}).isComposing;return e}return!1},isInputCompleted:function(){var t=document.activeElement;if(t&&("INPUT"===t.tagName||"TEXTAREA"===t.tagName||"true"===t.getAttribute("contenteditable"))){var e=t;return e.value?!e.value.endsWith(e.getAttribute("data-composing")):!e.innerText.endsWith(e.getAttribute("data-composing"))}return!0},handleInputStart:function(t){var e=t.target;e.setAttribute("data-composing","")},handleInputEnd:function(t){var e=t.target;e.removeAttribute("data-composing")},handleMouseLeave:function(){var t=this;if(!this.isInputActive()||this.isInputCompleted()){clearTimeout(this._timer),this.closeDelay&&"hover"===this.trigger?this._timer=setTimeout((function(){t.showPopper=!1}),this.closeDelay):this.showPopper=!1;var e=this.popper||this.$refs.popper;Object(s["off"])(e,"compositionstart",this.handleInputStart),Object(s["off"])(e,"compositionend",this.handleInputEnd),Object(s["off"])(e,"compositioncancel",this.handleInputEnd)}},handleDocumentClick:function(t){var e=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&e&&!this.$el.contains(t.target)&&!e.contains(t.target)&&n&&!n.contains(t.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var t=this.reference;Object(s["off"])(t,"click",this.doToggle),Object(s["off"])(t,"mouseup",this.doClose),Object(s["off"])(t,"mousedown",this.doShow),Object(s["off"])(t,"focusin",this.doShow),Object(s["off"])(t,"focusout",this.doClose),Object(s["off"])(t,"mousedown",this.doShow),Object(s["off"])(t,"mouseup",this.doClose),Object(s["off"])(t,"mouseleave",this.handleMouseLeave),Object(s["off"])(t,"mouseenter",this.handleMouseEnter),Object(s["off"])(document,"click",this.handleDocumentClick,this.clickTriggerUseCapture)}},u=l,f=n(0),p=Object(f["a"])(u,r,o,!1,null,null,null),d=p.exports,h=n(57),v=n(7),g=n.n(v);g.a.directive("popover",h["a"]),d.install=function(t){t.directive("popover",h["a"]),t.component(d.name,d)},d.directive=h["a"];e["default"]=d},2:function(t,e){t.exports=n("3241")},57:function(t,e,n){"use strict";var r=function(t,e,n){var r=e.expression?e.value:e.arg,o=n.context.$refs[r];o&&(Array.isArray(o)?o[0].$refs.reference=t:o.$refs.reference=t)};e["a"]={bind:function(t,e,n){r(t,e,n)},inserted:function(t,e,n){r(t,e,n)}}},7:function(t,e){t.exports=n("2b0e")}})},faf3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("6c11"),o=(0,r.IconWrapper)("loading",!1,(function(t,e){return t("svg",{attrs:{width:e.size,height:e.size,viewBox:"0 0 16 16",fill:"none","stroke-width":e.strokeWidth}},[t("g",{attrs:{id:"group-0",stroke:e.colors&&"string"!==typeof e.colors&&e.colors[0]||"string"===typeof e.colors&&e.colors||"#0A6CFF",fill:e.colors&&"string"!==typeof e.colors&&e.colors[0]||"string"===typeof e.colors&&e.colors||"#0A6CFF"}},[t("path",{attrs:{d:"M8 14C9.09286 14 10.1175 13.7078 11 13.1973","stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,fill:"none","vector-effect":"non-scaling-stroke"}})]),t("g",{attrs:{id:"group-1",stroke:"url(#paint0_linear_852_247)",fill:"url(#paint0_linear_852_247)"}},[t("path",{attrs:{d:"M8 2C11.3137 2 14 4.6863 14 7.99996C14 10.2208 12.7934 12.1598 11 13.1973","stroke-linejoin":e.strokeLinejoin,fill:"none","vector-effect":"non-scaling-stroke"}}),t("defs",[t("linearGradient",{attrs:{id:"paint0_linear_852_247",x1:"8",y1:"12",x2:"8",y2:"3",gradientUnits:"userSpaceOnUse"}},[t("stop",{attrs:{"stop-color":"#0063F4"}}),t("stop",{attrs:{offset:"1","stop-color":"#0063F4","stop-opacity":"0.5"}})])])]),t("g",{attrs:{id:"group-2",stroke:"url(#paint1_linear_852_247)",fill:"url(#paint1_linear_852_247)"}},[t("path",{attrs:{d:"M8 2C4.68629 2 2 4.6863 2 8C2 11.3137 4.68629 14 8 14","stroke-linejoin":e.strokeLinejoin,fill:"none","vector-effect":"non-scaling-stroke"}}),t("defs",[t("linearGradient",{attrs:{id:"paint1_linear_852_247",x1:"7.5",y1:"14",x2:"8",y2:"3",gradientUnits:"userSpaceOnUse"}},[t("stop",{attrs:{"stop-color":"#0063F4","stop-opacity":"0"}}),t("stop",{attrs:{offset:"1","stop-color":"#0063F4","stop-opacity":"0.5"}})])])])])}));e.default=o},fb6a:function(t,e,n){"use strict";var r=n("23e7"),o=n("e8b5"),i=n("68ee"),a=n("861d"),s=n("23cb"),c=n("07fa"),l=n("fc6a"),u=n("8418"),f=n("b622"),p=n("1dde"),d=n("f36a"),h=p("slice"),v=f("species"),g=Array,m=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(t,e){var n,r,f,p=l(this),h=c(p),y=s(t,h),b=s(void 0===e?h:e,h);if(o(p)&&(n=p.constructor,i(n)&&(n===g||o(n.prototype))?n=void 0:a(n)&&(n=n[v],null===n&&(n=void 0)),n===g||void 0===n))return d(p,y,b);for(r=new(void 0===n?g:n)(m(b-y,0)),f=0;y<b;y++,f++)y in p&&u(r,f,p[y]);return r.length=f,r}})},fc6a:function(t,e,n){var r=n("44ad"),o=n("1d80");t.exports=function(t){return r(o(t))}},fce3:function(t,e,n){var r=n("d039"),o=n("da84"),i=o.RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,n){var r=n("04f8");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}}]); |
|