UNPKG

sohelp-ele

Version:

SohelpEle Library

98 lines (97 loc) 2.61 kB
import { Tooltip } from "element-ui"; function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) { var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports; if (render) { options.render = render; options.staticRenderFns = staticRenderFns; options._compiled = true; } if (functionalTemplate) { options.functional = true; } if (scopeId) { options._scopeId = "data-v-" + scopeId; } var hook; if (moduleIdentifier) { hook = function(context) { context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") { context = __VUE_SSR_CONTEXT__; } if (injectStyles) { injectStyles.call(this, context); } if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier); } }; options._ssrRegister = hook; } else if (injectStyles) { hook = shadowMode ? function() { injectStyles.call( this, (options.functional ? this.parent : this).$root.$options.shadowRoot ); } : injectStyles; } if (hook) { if (options.functional) { options._injectStyles = hook; var originalRender = options.render; options.render = function renderWithStyleInjection(h, context) { hook.call(context); return originalRender(h, context); }; } else { var existing = options.beforeCreate; options.beforeCreate = existing ? [].concat(existing, hook) : [hook]; } } return { exports: scriptExports, options }; } const __vue2_script = { name: "SohelpTooltip", extends: Tooltip, props: { ...Tooltip.props, overflow: { type: Boolean, default: true } }, methods: { show() { if (this.overflow) { if (this.$el.scrollWidth <= this.$el.clientWidth) { return; } } Tooltip.methods.show.call(this); } } }; let __vue2_render, __vue2_staticRenderFns; const __cssModules = {}; var __component__ = /* @__PURE__ */ normalizeComponent( __vue2_script, __vue2_render, __vue2_staticRenderFns, false, __vue2_injectStyles, null, null, null ); function __vue2_injectStyles(context) { for (let o in __cssModules) { this[o] = __cssModules[o]; } } var index = /* @__PURE__ */ function() { return __component__.exports; }(); export { index as default };