代码拉取完成,页面将自动刷新
同步操作将从 Yaohaixiao/outline.js 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Toolbar=e()}(this,(function(){"use strict";const t=t=>"string"==typeof t,e=(t,e)=>{const s=Object.prototype.hasOwnProperty;return t&&s.call(t,e)},s=t=>Object.prototype.toString.apply(t),i=t=>"function"==typeof t||"[object Function]"===s(t),n=t=>("[object Object]"===s(t)||"object"==typeof t||i(t))&&null!==t,r={},l=t=>e(r,t)&&r[t].length>0,o=(t,e=!0)=>e?l(t):(t=>{let e=l(t),s=t.lastIndexOf(".");for(;!e&&-1!==s;)s=(t=t.substring(0,s)).lastIndexOf("."),e=l(t);return e})(t),a=(t,e,i=!0)=>{const n=t=>{if(!l(t))return!1;r[t].forEach((t=>{const i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object BigInt64Array]","[object BigUint64Array]"].indexOf(s(e))>-1?e.toString():e;t.callback.call(t.context||t,i)}))},a=()=>{let e=t,s=t.lastIndexOf(".");for(;-1!==s;)e=e.substring(0,s),s=e.lastIndexOf("."),n(e);n(t),n("*")};if(!o(t))return!1;i?setTimeout(a,10):a()},c=(()=>{let t=0;return e=>(t+=1,e?e+"-"+t:"guid-"+t)})(),h=t=>{if(!e(r,t))return!1;delete r[t]},d=(t,e)=>{if(!o(t))return!1;e?(t=>{const e=Object.keys(r);if(!t||e.length<1)return!1;e.forEach((e=>{const s=r[e];let i;s.forEach(((e,n)=>{e.callback!==t&&e.token!==t||(i=e.topic,s.splice(-1,n))})),s.length<1&&h(i)}))})(e):h(t)};class u{constructor(t){this.attrs={},t&&this.initialize(t)}initialize(t){return this.attr(t).render().addListeners(),this}attr(s,i){const r=this.attrs;return t(s)?i&&e(r,s)?(r[s]=i,this):r[s]:n(s)?(l=r,o=s,Object.keys(o).forEach((t=>{e(o,t)&&(l[t]=o[t])})),this):0===arguments.length?r:this;var l,o}render(){return this}destroy(){return this.removeListeners(),this}reload(t){return this.destroy().initialize(this.attr(t)),this}$emit(t,e){return a(t,e),this}$on(t,e){return((t,e,s=null)=>{const n=c();let l="symbol"==typeof t?t.toString():t;i(e)&&(r[l]||(r[l]=[]),r[l].push({topic:l,callback:e,context:s,token:n}))})(t,e,this),this}$off(t,e){return d(t,e),this}addListeners(){return this}removeListeners(){return this}}const b=t=>Array.isArray?Array.isArray(t):"[object Array]"===s(t),f=(t,e=300)=>!!i(t)&&setTimeout((()=>{t()}),e),m=t=>{let e;return null===t?null:(e=Object.assign({},t),Object.keys(e).forEach((s=>e[s]="object"==typeof t[s]?m(t[s]):t[s])),b(t)?(e.length=t.length,Array.from(e)):e)},p=t=>!!(n(t)&&t.nodeName&&t.tagName&&1===t.nodeType),y=t=>{return!(!n(t)||!(p(t)||(t=>!(!n(t)||"[object NodeList]"!==s(t)))(t)||(e=t,n(e)&&"[object DocumentFragment]"===s(e))||(t=>!(!n(t)||!("[object Text]"===s(t)||t.tagName&&3===t.nodeType)))(t)));var e},v=(s,i,r)=>{const l=document.createDocumentFragment(),o=document.createElement(s),a=e=>y(e)||t(e),c=e=>{let s;if(!a(e))return!1;y(e)?s=e:t(e)&&(s=document.createTextNode(e)),l.appendChild(s)};return n(i)?Object.keys(i).forEach((t=>{e(i,t)&&((t,e,s)=>{let i=t.tagName.toLowerCase();switch(e){case"style":t.style.cssText=s;break;case"value":"input"===i||"textarea"===i?t.value=s:t.setAttribute(e,s);break;case"className":t.className=s;break;default:t.setAttribute(e,s)}})(o,t,i[t])})):b(i)&&i.every((t=>a(t)))&&i.forEach((t=>{c(t)})),b(r)?r.forEach((t=>{c(t)})):c(r),o.appendChild(l),o},g=(t,e)=>{const s=new RegExp("(\\s|^)"+e+"(\\s|$)");let i,n;return!!p(t)&&(i=t.className,!!i&&(n=t.classList,n?.contains?t.classList.contains(e):!!s.exec(i)))},$=(t,e)=>{let s,i;if(g(t,e))return!1;s=t.classList,s?.add?s.add(e):(i=t.className,i+=i.length>0?" "+e:e,t.className=i)},x=(e,s)=>{let i,n=e.className;if(!n||!g(e,s))return!1;var r;i=e.classList,i?.remove?i.remove(s):(r=n.replace(s,""),n=!!t(r)&&r.replace(/(^\s+)|(\s+$)/g,""),e.className=n)},z=(t,e="")=>{const s=e.replace(/^>/i,"");return!!(e&&s&&t)&&(t.matches?t.matches(s):!!t.msMatchesSelector&&t.msMatchesSelector(s))},L=t=>t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode,M=["focusout","blur","focusin","focus","load","unload","mouseenter","mouseleave"],w=(t,e,s)=>{const i=M.indexOf(e)>-1;s._delegateListener&&delete(s=s._delegateListener)._delegateListener,function(t,e,s){const i=t._listeners;let n=-1;if(i.length<1)return!1;i.forEach(((t,i)=>{const r=t.fn;e===t.type&&(n=i,r===s&&(n=i))})),n>-1&&i.splice(n,1)}(t,e,s),t.removeEventListener(e,s,i)},E=function(e,s,i=!1){const n=t(e)?document.querySelector(e):e,r=n.childNodes,l=((e,s)=>{let i=e._listeners||[];return t(s)&&s&&(i=i.filter((t=>t.type===s))),i})(n,s);l.forEach((t=>{w(n,t.type,t.fn)})),(i||!0===s||1===arguments.length)&&n&&r&&r.forEach((t=>{p(t)&&E(t,s,i)}))},j=(t,e,s)=>{if(!i(s))return E(t,e);w(t,e,s)},A=(t,e,s,i,n,r,l=!1)=>{const o=M.indexOf(s)>-1,a=function(o){const c=function(t){const e=t.target;return(s=e)&&3===s.nodeType?s.parentNode:s;var s}(o),h=((t,e,s,i)=>{const n=s||document;if(!t)return null;do{if(null!=e&&(e.startsWith(">")?t.parentNode===n&&z(t,e):z(t,e))||i&&t===n)return t;if(t===n)break}while(t=L(t))})(c,e,t);let d=r||t;o.delegateTarget=h,!0===r&&(d=n),h&&(!0===l&&j(t,s,a),i.call(d,o,n))};t._listeners||(t._listeners=[]),t._listeners.push({el:t,selector:e,type:s,fn:a,data:n,context:r,capture:o}),i._delegateListener=a,t.addEventListener(s,a,o)},_=['<symbol id="outline-icon-up" viewBox="0 0 1024 1024"><path d="M494.784 261.696c0.832-0.448 1.536-1.216 2.368-1.536a38.72 38.72 0 0 1 46.08 8.256l277.824 302.272a41.92 41.92 0 0 1-1.536 58.048 39.104 39.104 0 0 1-56.448-1.6L513.728 355.904 260.736 626.048a39.104 39.104 0 0 1-56.448 1.088 41.6 41.6 0 0 1-1.088-57.984L483.84 269.696c0.512-0.512 1.344-0.768 1.92-1.408l1.088-1.344c2.368-2.496 5.312-3.648 8-5.248z"></path></symbol>','<symbol id="outline-icon-down" viewBox="0 0 1024 1024"><path d="M494.784 762.304c0.832 0.448 1.536 1.216 2.368 1.536 15.232 7.488 33.92 4.992 46.08-8.256l277.824-302.272a41.92 41.92 0 0 0-1.536-58.048 39.104 39.104 0 0 0-56.448 1.6l-249.344 271.232-252.992-270.144a39.104 39.104 0 0 0-56.448-1.088 41.6 41.6 0 0 0-1.088 57.984l280.576 299.456c0.512 0.512 1.344 0.768 1.92 1.408l1.088 1.344c2.368 2.496 5.312 3.648 8 5.248z"></path></symbol>','<symbol id="outline-icon-menu" viewBox="0 0 1024 1024"><path d="M320 256h640V128H320zM320 576h640V448H320zM320 896h640v-128H320zM64 256h128V128H64zM64 576h128V448H64zM64 896h128v-128H64z"></path></symbol>','<symbol id="outline-icon-file" viewBox="0 0 1024 1024"><path d="M320 640h256v128H320z"></path><path d="M320 448h384v128H320z"></path><path d="M640 0l320 320v557.696C960 958.528 909.824 1024 848 1024H176C114.176 1024 64 958.528 64 877.696V146.304C64 65.472 114.176 0 176 0H640z m0 128H192v768h640V320h-192V128z"></path></symbol>','<symbol id="outline-icon-hash" viewBox="0 0 24 24"><path d="M14.216 10l-0.444 4h-3.988l0.444-4zM15.006 2.89l-0.568 5.11h-3.988l0.543-4.89c0.061-0.549-0.335-1.043-0.883-1.104s-1.043 0.335-1.104 0.884l-0.568 5.11h-4.438c-0.552 0-1 0.448-1 1s0.448 1 1 1h4.216l-0.444 4h-3.772c-0.552 0-1 0.448-1 1s0.448 1 1 1h3.549l-0.543 4.89c-0.061 0.549 0.335 1.043 0.883 1.104s1.043-0.335 1.104-0.883l0.569-5.111h3.988l-0.543 4.89c-0.061 0.549 0.335 1.043 0.883 1.104s1.043-0.335 1.104-0.883l0.568-5.111h4.438c0.552 0 1-0.448 1-1s-0.448-1-1-1h-4.216l0.444-4h3.772c0.552 0 1-0.448 1-1s-0.448-1-1-1h-3.549l0.543-4.89c0.061-0.549-0.335-1.043-0.883-1.104s-1.043 0.335-1.104 0.883z"></path></symbol>','<symbol id="outline-icon-close" viewBox="0 0 1024 1024"><path d="M536.96 491.648L310.592 265.344a32 32 0 1 0-45.248 45.248L491.584 536.96l-226.304 226.304a32 32 0 0 0 45.312 45.248l226.24-226.304 226.304 226.304a32 32 0 0 0 45.248-45.248L582.144 536.896l226.304-226.24a32 32 0 0 0-45.248-45.248L536.896 491.584z"></path></symbol>','<symbol id="outline-icon-homepage" viewBox="0 0 26 28"><path d="M22 15.5v7.5c0 0.547-0.453 1-1 1h-6v-6h-4v6h-6c-0.547 0-1-0.453-1-1v-7.5c0-0.031 0.016-0.063 0.016-0.094l8.984-7.406 8.984 7.406c0.016 0.031 0.016 0.063 0.016 0.094zM25.484 14.422l-0.969 1.156c-0.078 0.094-0.203 0.156-0.328 0.172h-0.047c-0.125 0-0.234-0.031-0.328-0.109l-10.813-9.016-10.813 9.016c-0.109 0.078-0.234 0.125-0.375 0.109-0.125-0.016-0.25-0.078-0.328-0.172l-0.969-1.156c-0.172-0.203-0.141-0.531 0.063-0.703l11.234-9.359c0.656-0.547 1.719-0.547 2.375 0l3.813 3.187v-3.047c0-0.281 0.219-0.5 0.5-0.5h3c0.281 0 0.5 0.219 0.5 0.5v6.375l3.422 2.844c0.203 0.172 0.234 0.5 0.063 0.703z"></path></symbol>','<symbol id="outline-icon-github" viewBox="0 0 24 28"><path d="M12 2c6.625 0 12 5.375 12 12 0 5.297-3.437 9.797-8.203 11.391-0.609 0.109-0.828-0.266-0.828-0.578 0-0.391 0.016-1.687 0.016-3.297 0-1.125-0.375-1.844-0.812-2.219 2.672-0.297 5.484-1.313 5.484-5.922 0-1.313-0.469-2.375-1.234-3.219 0.125-0.313 0.531-1.531-0.125-3.187-1-0.313-3.297 1.234-3.297 1.234-0.953-0.266-1.984-0.406-3-0.406s-2.047 0.141-3 0.406c0 0-2.297-1.547-3.297-1.234-0.656 1.656-0.25 2.875-0.125 3.187-0.766 0.844-1.234 1.906-1.234 3.219 0 4.594 2.797 5.625 5.469 5.922-0.344 0.313-0.656 0.844-0.766 1.609-0.688 0.313-2.438 0.844-3.484-1-0.656-1.141-1.844-1.234-1.844-1.234-1.172-0.016-0.078 0.734-0.078 0.734 0.781 0.359 1.328 1.75 1.328 1.75 0.703 2.141 4.047 1.422 4.047 1.422 0 1 0.016 1.937 0.016 2.234 0 0.313-0.219 0.688-0.828 0.578-4.766-1.594-8.203-6.094-8.203-11.391 0-6.625 5.375-12 12-12zM4.547 19.234c0.031-0.063-0.016-0.141-0.109-0.187-0.094-0.031-0.172-0.016-0.203 0.031-0.031 0.063 0.016 0.141 0.109 0.187 0.078 0.047 0.172 0.031 0.203-0.031zM5.031 19.766c0.063-0.047 0.047-0.156-0.031-0.25-0.078-0.078-0.187-0.109-0.25-0.047-0.063 0.047-0.047 0.156 0.031 0.25 0.078 0.078 0.187 0.109 0.25 0.047zM5.5 20.469c0.078-0.063 0.078-0.187 0-0.297-0.063-0.109-0.187-0.156-0.266-0.094-0.078 0.047-0.078 0.172 0 0.281s0.203 0.156 0.266 0.109zM6.156 21.125c0.063-0.063 0.031-0.203-0.063-0.297-0.109-0.109-0.25-0.125-0.313-0.047-0.078 0.063-0.047 0.203 0.063 0.297 0.109 0.109 0.25 0.125 0.313 0.047zM7.047 21.516c0.031-0.094-0.063-0.203-0.203-0.25-0.125-0.031-0.266 0.016-0.297 0.109s0.063 0.203 0.203 0.234c0.125 0.047 0.266 0 0.297-0.094zM8.031 21.594c0-0.109-0.125-0.187-0.266-0.172-0.141 0-0.25 0.078-0.25 0.172 0 0.109 0.109 0.187 0.266 0.172 0.141 0 0.25-0.078 0.25-0.172zM8.937 21.438c-0.016-0.094-0.141-0.156-0.281-0.141-0.141 0.031-0.234 0.125-0.219 0.234 0.016 0.094 0.141 0.156 0.281 0.125s0.234-0.125 0.219-0.219z"></path></symbol>','<symbol id="outline-icon-issues" viewBox="0 0 24 28"><path d="M25.5 15c0 0.547-0.453 1-1 1h-3.5c0 1.953-0.422 3.422-1.047 4.531l3.25 3.266c0.391 0.391 0.391 1.016 0 1.406-0.187 0.203-0.453 0.297-0.703 0.297s-0.516-0.094-0.703-0.297l-3.094-3.078s-2.047 1.875-4.703 1.875v-14h-2v14c-2.828 0-4.891-2.063-4.891-2.063l-2.859 3.234c-0.203 0.219-0.469 0.328-0.75 0.328-0.234 0-0.469-0.078-0.672-0.25-0.406-0.375-0.438-1-0.078-1.422l3.156-3.547c-0.547-1.078-0.906-2.469-0.906-4.281h-3.5c-0.547 0-1-0.453-1-1s0.453-1 1-1h3.5v-4.594l-2.703-2.703c-0.391-0.391-0.391-1.016 0-1.406s1.016-0.391 1.406 0l2.703 2.703h13.188l2.703-2.703c0.391-0.391 1.016-0.391 1.406 0s0.391 1.016 0 1.406l-2.703 2.703v4.594h3.5c0.547 0 1 0.453 1 1zM18 6h-10c0-2.766 2.234-5 5-5s5 2.234 5 5z"></path></symbol>','<symbol id="outline-icon-tags" viewBox="0 0 26 28"><path d="M7 7c0-1.109-0.891-2-2-2s-2 0.891-2 2 0.891 2 2 2 2-0.891 2-2zM23.672 16c0 0.531-0.219 1.047-0.578 1.406l-7.672 7.688c-0.375 0.359-0.891 0.578-1.422 0.578s-1.047-0.219-1.406-0.578l-11.172-11.188c-0.797-0.781-1.422-2.297-1.422-3.406v-6.5c0-1.094 0.906-2 2-2h6.5c1.109 0 2.625 0.625 3.422 1.422l11.172 11.156c0.359 0.375 0.578 0.891 0.578 1.422zM29.672 16c0 0.531-0.219 1.047-0.578 1.406l-7.672 7.688c-0.375 0.359-0.891 0.578-1.422 0.578-0.812 0-1.219-0.375-1.75-0.922l7.344-7.344c0.359-0.359 0.578-0.875 0.578-1.406s-0.219-1.047-0.578-1.422l-11.172-11.156c-0.797-0.797-2.312-1.422-3.422-1.422h3.5c1.109 0 2.625 0.625 3.422 1.422l11.172 11.156c0.359 0.375 0.578 0.891 0.578 1.422z"></path></symbol>'],k=(e,s="icon")=>t(e)?((t,e="icon")=>{const s=/id="(.*?)"/,i=/^(\w+)-/;return _.find((n=>{const r=s.exec(n)[1];return i.exec(r)[1]===e&&r===("icon"===e?`${e}-${t}`:`${e}-icon-${t}`)}))})(e,s):[..._],N=(e="")=>{const s=document.body;let i=document.querySelector("#outline-icons"),n=[];(e=>{if(!e)return!1;b(e)&&e.length>0?e.forEach((e=>{-1===_.indexOf(e)&&t(e)&&_.push(e)})):t(e)&&_.push(e)})(e),n=k(),i?i.innerHTML=n.join(""):(i=document.createElement("div"),i.innerHTML=`<svg id="outline-icons" aria-hidden="true" style="position:absolute;display:none;width:0;height:0;overflow:hidden;">${n.join("")}</svg>`,s.insertBefore(i.firstChild,s.firstChild))},T=e=>{const s=new RegExp("^\\s*(?:<\\?xml[^>]*>\\s*)?(?:<\\!doctype svg[^>]*\\s*(?:\\[?(?:\\s*<![^>]*>\\s*)*\\]?)*[^>]*>\\s*)?<svg[^>]*>[^]*<\\/svg>\\s*$\\s*$","i");return t(e)&&s.test(e)},C=(e,s={})=>((e,s={})=>{const i=s.size||0,n=s.color||"",r=s.iconSet||"",l=b(i)?i[0]:i,o=b(i)?i[1]:i,a=i?`width:${l}px;height:${o}px;`:"",c=n?a+`color:${n}`:a,h=document.createElement("i");let d,u="",f="";return t(e)?(T(e)?f=e:(u=r&&"icon"!==r?`xlink:href="#${r}-icon-${e}"`:`xlink:href="#icon-${e}"`,f=`<svg aria-hidden="true" class="outline-icon__svg" style="${c}"><use ${u}></use></svg>`),h.className="outline-icon",h.innerHTML=f,T(e)&&(d=h.querySelector("svg"),d.setAttribute("aria-hidden","true"),d.setAttribute("xmlns","http://www.w3.org/2000/svg"),d.setAttribute("class","outline-icon__svg"),d.setAttribute("width","200"),d.setAttribute("height","200"),d.style.cssText=c),h):null})(e,s),O=(t,e=!0)=>{const s=C(t.icon,{iconSet:t.iconSet||"outline",color:t.color||"",size:t.size}),i=v("a",{className:"outline-toolbar__anchor",href:t.link},s),n=v("div",{className:`outline-toolbar__button ${t.name}`},[t.link?i:s]);return $(s,"outline-toolbar__icon"),e&&$(n,"outline-toolbar_rounded"),t.disabled&&$(n,"outline-toolbar_disabled"),n},S="outline-toolbar_disabled",H="outline-toolbar_hidden";class B extends u{constructor(t){super(),this.attrs=m(B.DEFAULTS),this.$el=null,this.disabled=!1,this.closed=!1,this.buttons=[],t&&this.initialize(t)}initialize(t){let e;return this.attr(t),e=this.attr("created"),this.disabled=this.attr("disabled"),this.closed=this.attr("closed"),i(e)&&e.call(this),this.render().addListeners(),this}isDisabled(t){const e=this.attr("buttons");let s;return t?(s=e.find((e=>e.name===t)),s?.disabled):this.disabled}isClosed(){return this.closed}highlight(t){const e=this.buttons.find((e=>e.name===t)),s="outline-toolbar_active";let i;return i||(i=e.$el,g(i,s)?x(i,s):$(i,s)),this}render(){const t=this.attr("mounted"),e=this.attr("buttons")||[],s=this.attr("rounded"),n=this.attr("placement"),r=[];return N(),e.forEach((t=>{const e=O(t,s);r.push(e),this.buttons.push({name:t.name,$el:e})})),this.$el=v("div",{id:"outline-toolbar",className:`outline-toolbar outline-toolbar_${n}`},r),document.body.appendChild(this.$el),this.closed&&this.hide(),this.disabled&&this.disable(),i(t)&&t.call(this),this}add(t){const e=this.$el,s=this.attr("buttons"),r=t.action,l=document.createDocumentFragment();let o;return n(t)?(s.push(t),l.appendChild(O(t))):b(t)&&t.forEach((t=>{l.appendChild(O(t))})),e.appendChild(l),r&&i(r.handler)&&(o=r.type||"click",A(e,`.${t.name}`,o,r.handler)),this}remove(t){const e=this.$el,s=this.attr("buttons"),i=s.find((e=>e.name===t));let n,r=-1;return i?(s.forEach(((e,s)=>{e.name===t&&(r=s)})),r>-1&&this.attr().buttons.splice(r,1),n=e.querySelector(`.${t}`),this.switch(t,!1),e.removeChild(n),this):this}switch(t,e){const s=this.$el,i=this.attr("buttons"),n=i.find((e=>e.name===t));let r,l,o,a;return n?(i.forEach((s=>{s.name===t&&(n.disabled=!e)})),r=n.action,a=s.querySelector(`.${t}`),r&&(l=r.type||"click",o=r.handler),e?(x(a,S),l&&o&&A(s,`.${t}`,l,o)):($(a,S),l&&o&&j(s,l,o)),this):this}disable(t){const e=this.attr("afterDisabled");return t?this.switch(t,!1):($(this.$el,S),this.removeListeners(),this.disabled=!0,i(e)&&e.call(this)),this}enable(t){const e=this.attr("afterEnabled");return t?this.switch(t,!0):(this.disabled=!1,x(this.$el,S),this.addListeners(),i(e)&&e.call(this)),this}show(t){const e=this.attr("afterOpened"),s=this.attr("buttons").find((e=>e.name===t)),n=this.$el;let r;if(t){if(!s)return this;r=n.querySelector(`.${t}`),x(r,H)}else x(n,H),this.closed=!1,i(e)&&f((()=>{e.call(this)}),310);return this}hide(t){const e=this.attr("afterClosed"),s=this.attr("buttons").find((e=>e.name===t)),n=this.$el;let r;if(t){if(!s)return this;r=n.querySelector(`.${t}`),$(r,H)}else $(n,H),this.closed=!0,i(e)&&f((()=>{e.call(this)}),310);return this}toggle(){return this.isClosed()?this.show():this.hide(),this}destroy(){const t=this.attr("beforeDestroy"),e=this.attr("afterDestroy");let s=this.$el;return i(t)&&t.call(this),this.removeListeners(),document.body.removeChild(s),s=null,this.attr(B.DEFAULTS),this.disabled=!1,this.closed=!1,this.buttons=[],i(e)&&e.call(this),this}refresh(){const t=this.$el,e=this.attr("buttons")||[];return this.removeListeners(),t.innerHTML="",e.forEach((t=>{this.$el.appendChild(O(t))})),this.addListeners(),this}addListeners(){const e=this.attr("buttons"),s=this.$el;return!e||e.length<1||e.forEach((e=>{const n=e.action;let r,l,o,a;if(this.disabled)return!1;n&&(l=n.handler,t(l)&&(a=l,n.handler=function(){this.$emit(a,e.name)},l=n.handler),r=n.type||"click",o=n.context),i(l)&&A(s,`.${e.name}`,r,l,o||this,!0)})),this}removeListeners(){const t=this.attr("buttons"),e=this.$el;return!t||t.length<1||t.forEach((t=>{const s=t.action;let n,r;if(this.disabled)return!1;s&&(r=s.handler,n=s.type||"click"),i(r)&&j(e,n,r)})),this}}return B.DEFAULTS={placement:"ltr",closed:!1,disabled:!1,rounded:!0,buttons:[],created:null,mounted:null,afterClosed:null,afterOpened:null,afterDisabled:null,afterEnabled:null,beforeDestroy:null,afterDestroy:null},B}));
//# sourceMappingURL=toolbar.min.js.map
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。