app模板、应用模板、组件模板、widget模板
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

821 lines
22 KiB

4 years ago
  1. module.exports =
  2. /******/ (function(modules) { // webpackBootstrap
  3. /******/ // The module cache
  4. /******/ var installedModules = {};
  5. /******/
  6. /******/ // The require function
  7. /******/ function __webpack_require__(moduleId) {
  8. /******/
  9. /******/ // Check if module is in cache
  10. /******/ if(installedModules[moduleId]) {
  11. /******/ return installedModules[moduleId].exports;
  12. /******/ }
  13. /******/ // Create a new module (and put it into the cache)
  14. /******/ var module = installedModules[moduleId] = {
  15. /******/ i: moduleId,
  16. /******/ l: false,
  17. /******/ exports: {}
  18. /******/ };
  19. /******/
  20. /******/ // Execute the module function
  21. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  22. /******/
  23. /******/ // Flag the module as loaded
  24. /******/ module.l = true;
  25. /******/
  26. /******/ // Return the exports of the module
  27. /******/ return module.exports;
  28. /******/ }
  29. /******/
  30. /******/
  31. /******/ // expose the modules object (__webpack_modules__)
  32. /******/ __webpack_require__.m = modules;
  33. /******/
  34. /******/ // expose the module cache
  35. /******/ __webpack_require__.c = installedModules;
  36. /******/
  37. /******/ // define getter function for harmony exports
  38. /******/ __webpack_require__.d = function(exports, name, getter) {
  39. /******/ if(!__webpack_require__.o(exports, name)) {
  40. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  41. /******/ }
  42. /******/ };
  43. /******/
  44. /******/ // define __esModule on exports
  45. /******/ __webpack_require__.r = function(exports) {
  46. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  47. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  48. /******/ }
  49. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  50. /******/ };
  51. /******/
  52. /******/ // create a fake namespace object
  53. /******/ // mode & 1: value is a module id, require it
  54. /******/ // mode & 2: merge all properties of value into the ns
  55. /******/ // mode & 4: return value when already ns object
  56. /******/ // mode & 8|1: behave like require
  57. /******/ __webpack_require__.t = function(value, mode) {
  58. /******/ if(mode & 1) value = __webpack_require__(value);
  59. /******/ if(mode & 8) return value;
  60. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  61. /******/ var ns = Object.create(null);
  62. /******/ __webpack_require__.r(ns);
  63. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  64. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  65. /******/ return ns;
  66. /******/ };
  67. /******/
  68. /******/ // getDefaultExport function for compatibility with non-harmony modules
  69. /******/ __webpack_require__.n = function(module) {
  70. /******/ var getter = module && module.__esModule ?
  71. /******/ function getDefault() { return module['default']; } :
  72. /******/ function getModuleExports() { return module; };
  73. /******/ __webpack_require__.d(getter, 'a', getter);
  74. /******/ return getter;
  75. /******/ };
  76. /******/
  77. /******/ // Object.prototype.hasOwnProperty.call
  78. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  79. /******/
  80. /******/ // __webpack_public_path__
  81. /******/ __webpack_require__.p = "/dist/";
  82. /******/
  83. /******/
  84. /******/ // Load entry module and return exports
  85. /******/ return __webpack_require__(__webpack_require__.s = 333);
  86. /******/ })
  87. /************************************************************************/
  88. /******/ ({
  89. /***/ 0:
  90. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  91. "use strict";
  92. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
  93. /* globals __VUE_SSR_CONTEXT__ */
  94. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  95. // This module is a runtime utility for cleaner component module output and will
  96. // be included in the final webpack user bundle.
  97. function normalizeComponent (
  98. scriptExports,
  99. render,
  100. staticRenderFns,
  101. functionalTemplate,
  102. injectStyles,
  103. scopeId,
  104. moduleIdentifier, /* server only */
  105. shadowMode /* vue-cli only */
  106. ) {
  107. // Vue.extend constructor export interop
  108. var options = typeof scriptExports === 'function'
  109. ? scriptExports.options
  110. : scriptExports
  111. // render functions
  112. if (render) {
  113. options.render = render
  114. options.staticRenderFns = staticRenderFns
  115. options._compiled = true
  116. }
  117. // functional template
  118. if (functionalTemplate) {
  119. options.functional = true
  120. }
  121. // scopedId
  122. if (scopeId) {
  123. options._scopeId = 'data-v-' + scopeId
  124. }
  125. var hook
  126. if (moduleIdentifier) { // server build
  127. hook = function (context) {
  128. // 2.3 injection
  129. context =
  130. context || // cached call
  131. (this.$vnode && this.$vnode.ssrContext) || // stateful
  132. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  133. // 2.2 with runInNewContext: true
  134. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  135. context = __VUE_SSR_CONTEXT__
  136. }
  137. // inject component styles
  138. if (injectStyles) {
  139. injectStyles.call(this, context)
  140. }
  141. // register component module identifier for async chunk inferrence
  142. if (context && context._registeredComponents) {
  143. context._registeredComponents.add(moduleIdentifier)
  144. }
  145. }
  146. // used by ssr in case component is cached and beforeCreate
  147. // never gets called
  148. options._ssrRegister = hook
  149. } else if (injectStyles) {
  150. hook = shadowMode
  151. ? function () {
  152. injectStyles.call(
  153. this,
  154. (options.functional ? this.parent : this).$root.$options.shadowRoot
  155. )
  156. }
  157. : injectStyles
  158. }
  159. if (hook) {
  160. if (options.functional) {
  161. // for template-only hot-reload because in that case the render fn doesn't
  162. // go through the normalizer
  163. options._injectStyles = hook
  164. // register for functional component in vue file
  165. var originalRender = options.render
  166. options.render = function renderWithStyleInjection (h, context) {
  167. hook.call(context)
  168. return originalRender(h, context)
  169. }
  170. } else {
  171. // inject component registration as beforeCreate hook
  172. var existing = options.beforeCreate
  173. options.beforeCreate = existing
  174. ? [].concat(existing, hook)
  175. : [hook]
  176. }
  177. }
  178. return {
  179. exports: scriptExports,
  180. options: options
  181. }
  182. }
  183. /***/ }),
  184. /***/ 10:
  185. /***/ (function(module, exports) {
  186. module.exports = require("tis-ui/lib/mixins/emitter");
  187. /***/ }),
  188. /***/ 115:
  189. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  190. "use strict";
  191. /* harmony default export */ __webpack_exports__["a"] = ({
  192. inject: ['rootMenu'],
  193. computed: {
  194. indexPath: function indexPath() {
  195. var path = [this.index];
  196. var parent = this.$parent;
  197. while (parent.$options.componentName !== 'TisMenu') {
  198. if (parent.index) {
  199. path.unshift(parent.index);
  200. }
  201. parent = parent.$parent;
  202. }
  203. return path;
  204. },
  205. parentMenu: function parentMenu() {
  206. var parent = this.$parent;
  207. while (parent && ['TisMenu', 'TisSubmenu'].indexOf(parent.$options.componentName) === -1) {
  208. parent = parent.$parent;
  209. }
  210. return parent;
  211. },
  212. paddingStyle: function paddingStyle() {
  213. if (this.rootMenu.mode !== 'vertical') return {};
  214. var padding = 20;
  215. var parent = this.$parent;
  216. if (this.rootMenu.collapse) {
  217. padding = 20;
  218. } else {
  219. while (parent && parent.$options.componentName !== 'TisMenu') {
  220. if (parent.$options.componentName === 'TisSubmenu') {
  221. padding += 20;
  222. }
  223. parent = parent.$parent;
  224. }
  225. }
  226. return { paddingLeft: padding + 'px' };
  227. }
  228. }
  229. });
  230. /***/ }),
  231. /***/ 17:
  232. /***/ (function(module, exports) {
  233. module.exports = require("tis-ui/lib/utils/vue-popper");
  234. /***/ }),
  235. /***/ 2:
  236. /***/ (function(module, exports) {
  237. module.exports = require("tis-ui/lib/utils/dom");
  238. /***/ }),
  239. /***/ 333:
  240. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  241. "use strict";
  242. // ESM COMPAT FLAG
  243. __webpack_require__.r(__webpack_exports__);
  244. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item.vue?vue&type=template&id=2a5dbfea&
  245. var render = function() {
  246. var _vm = this
  247. var _h = _vm.$createElement
  248. var _c = _vm._self._c || _h
  249. return _c(
  250. "li",
  251. {
  252. staticClass: "el-menu-item",
  253. class: {
  254. "is-active": _vm.active,
  255. "is-disabled": _vm.disabled
  256. },
  257. style: [
  258. _vm.paddingStyle,
  259. _vm.itemStyle,
  260. { backgroundColor: _vm.backgroundColor }
  261. ],
  262. attrs: { role: "menuitem", tabindex: "-1" },
  263. on: {
  264. click: _vm.handleClick,
  265. mouseenter: _vm.onMouseEnter,
  266. focus: _vm.onMouseEnter,
  267. blur: _vm.onMouseLeave,
  268. mouseleave: _vm.onMouseLeave
  269. }
  270. },
  271. [
  272. _vm.parentMenu.$options.componentName === "TisMenu" &&
  273. _vm.rootMenu.collapse &&
  274. _vm.$slots.title
  275. ? _c("tis-tooltip", { attrs: { effect: "dark", placement: "right" } }, [
  276. _c(
  277. "div",
  278. { attrs: { slot: "content" }, slot: "content" },
  279. [_vm._t("title")],
  280. 2
  281. ),
  282. _c(
  283. "div",
  284. {
  285. staticStyle: {
  286. position: "absolute",
  287. left: "0",
  288. top: "0",
  289. height: "100%",
  290. width: "100%",
  291. display: "inline-block",
  292. "box-sizing": "border-box",
  293. padding: "0 20px"
  294. }
  295. },
  296. [_vm._t("default")],
  297. 2
  298. )
  299. ])
  300. : [_vm._t("default"), _vm._t("title")]
  301. ],
  302. 2
  303. )
  304. }
  305. var staticRenderFns = []
  306. render._withStripped = true
  307. // CONCATENATED MODULE: ./packages/menu/src/menu-item.vue?vue&type=template&id=2a5dbfea&
  308. // EXTERNAL MODULE: ./packages/menu/src/menu-mixin.js
  309. var menu_mixin = __webpack_require__(115);
  310. // EXTERNAL MODULE: ./packages/tooltip/index.js + 1 modules
  311. var tooltip = __webpack_require__(85);
  312. // EXTERNAL MODULE: external "tis-ui/lib/mixins/emitter"
  313. var emitter_ = __webpack_require__(10);
  314. var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
  315. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item.vue?vue&type=script&lang=js&
  316. //
  317. //
  318. //
  319. //
  320. //
  321. //
  322. //
  323. //
  324. //
  325. //
  326. //
  327. //
  328. //
  329. //
  330. //
  331. //
  332. //
  333. //
  334. //
  335. //
  336. //
  337. //
  338. //
  339. //
  340. //
  341. //
  342. //
  343. //
  344. //
  345. //
  346. /* harmony default export */ var menu_itemvue_type_script_lang_js_ = ({
  347. name: 'TisMenuItem',
  348. componentName: 'TisMenuItem',
  349. mixins: [menu_mixin["a" /* default */], emitter_default.a],
  350. components: { TisTooltip: tooltip["default"] },
  351. props: {
  352. index: {
  353. default: null,
  354. validator: function validator(val) {
  355. return typeof val === 'string' || val === null;
  356. }
  357. },
  358. route: [String, Object],
  359. disabled: Boolean
  360. },
  361. computed: {
  362. active: function active() {
  363. return this.index === this.rootMenu.activeIndex;
  364. },
  365. hoverBackground: function hoverBackground() {
  366. return this.rootMenu.hoverBackground;
  367. },
  368. backgroundColor: function backgroundColor() {
  369. return this.rootMenu.backgroundColor || '';
  370. },
  371. activeTextColor: function activeTextColor() {
  372. return this.rootMenu.activeTextColor || '';
  373. },
  374. textColor: function textColor() {
  375. return this.rootMenu.textColor || '';
  376. },
  377. mode: function mode() {
  378. return this.rootMenu.mode;
  379. },
  380. itemStyle: function itemStyle() {
  381. var style = {
  382. color: this.active ? this.activeTextColor : this.textColor
  383. };
  384. if (this.mode === 'horizontal' && !this.isNested) {
  385. style.borderBottomColor = this.active ? this.rootMenu.activeTextColor ? this.activeTextColor : '' : 'transparent';
  386. }
  387. return style;
  388. },
  389. isNested: function isNested() {
  390. return this.parentMenu !== this.rootMenu;
  391. }
  392. },
  393. methods: {
  394. onMouseEnter: function onMouseEnter() {
  395. if (this.mode === 'horizontal' && !this.rootMenu.backgroundColor) return;
  396. this.$el.style.backgroundColor = this.hoverBackground;
  397. },
  398. onMouseLeave: function onMouseLeave() {
  399. if (this.mode === 'horizontal' && !this.rootMenu.backgroundColor) return;
  400. this.$el.style.backgroundColor = this.backgroundColor;
  401. },
  402. handleClick: function handleClick() {
  403. if (!this.disabled) {
  404. this.dispatch('TisMenu', 'item-click', this);
  405. this.$emit('click', this);
  406. }
  407. }
  408. },
  409. mounted: function mounted() {
  410. this.parentMenu.addItem(this);
  411. this.rootMenu.addItem(this);
  412. },
  413. beforeDestroy: function beforeDestroy() {
  414. this.parentMenu.removeItem(this);
  415. this.rootMenu.removeItem(this);
  416. }
  417. });
  418. // CONCATENATED MODULE: ./packages/menu/src/menu-item.vue?vue&type=script&lang=js&
  419. /* harmony default export */ var src_menu_itemvue_type_script_lang_js_ = (menu_itemvue_type_script_lang_js_);
  420. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  421. var componentNormalizer = __webpack_require__(0);
  422. // CONCATENATED MODULE: ./packages/menu/src/menu-item.vue
  423. /* normalize component */
  424. var component = Object(componentNormalizer["a" /* default */])(
  425. src_menu_itemvue_type_script_lang_js_,
  426. render,
  427. staticRenderFns,
  428. false,
  429. null,
  430. null,
  431. null
  432. )
  433. /* hot reload */
  434. if (false) { var api; }
  435. component.options.__file = "packages/menu/src/menu-item.vue"
  436. /* harmony default export */ var menu_item = (component.exports);
  437. // CONCATENATED MODULE: ./packages/menu-item/index.js
  438. /* istanbul ignore next */
  439. menu_item.install = function (Vue) {
  440. Vue.component(menu_item.name, menu_item);
  441. };
  442. /* harmony default export */ var packages_menu_item = __webpack_exports__["default"] = (menu_item);
  443. /***/ }),
  444. /***/ 51:
  445. /***/ (function(module, exports) {
  446. module.exports = require("throttle-debounce/debounce");
  447. /***/ }),
  448. /***/ 6:
  449. /***/ (function(module, exports) {
  450. module.exports = require("tis-ui/lib/utils/util");
  451. /***/ }),
  452. /***/ 85:
  453. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  454. "use strict";
  455. // ESM COMPAT FLAG
  456. __webpack_require__.r(__webpack_exports__);
  457. // EXTERNAL MODULE: external "tis-ui/lib/utils/vue-popper"
  458. var vue_popper_ = __webpack_require__(17);
  459. var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
  460. // EXTERNAL MODULE: external "throttle-debounce/debounce"
  461. var debounce_ = __webpack_require__(51);
  462. var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_);
  463. // EXTERNAL MODULE: external "tis-ui/lib/utils/dom"
  464. var dom_ = __webpack_require__(2);
  465. // EXTERNAL MODULE: external "tis-ui/lib/utils/util"
  466. var util_ = __webpack_require__(6);
  467. // EXTERNAL MODULE: external "vue"
  468. var external_vue_ = __webpack_require__(9);
  469. var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
  470. // CONCATENATED MODULE: ./packages/tooltip/src/main.js
  471. /* harmony default export */ var main = ({
  472. name: 'TisTooltip',
  473. mixins: [vue_popper_default.a],
  474. props: {
  475. openDelay: {
  476. type: Number,
  477. default: 0
  478. },
  479. disabled: Boolean,
  480. manual: Boolean,
  481. effect: {
  482. type: String,
  483. default: 'dark'
  484. },
  485. arrowOffset: {
  486. type: Number,
  487. default: 0
  488. },
  489. popperClass: String,
  490. content: String,
  491. visibleArrow: {
  492. default: true
  493. },
  494. transition: {
  495. type: String,
  496. default: 'el-fade-in-linear'
  497. },
  498. popperOptions: {
  499. default: function _default() {
  500. return {
  501. boundariesPadding: 10,
  502. gpuAcceleration: false
  503. };
  504. }
  505. },
  506. enterable: {
  507. type: Boolean,
  508. default: true
  509. },
  510. hideAfter: {
  511. type: Number,
  512. default: 0
  513. },
  514. tabindex: {
  515. type: Number,
  516. default: 0
  517. }
  518. },
  519. data: function data() {
  520. return {
  521. tooltipId: 'el-tooltip-' + Object(util_["generateId"])(),
  522. timeoutPending: null,
  523. focusing: false
  524. };
  525. },
  526. beforeCreate: function beforeCreate() {
  527. var _this = this;
  528. if (this.$isServer) return;
  529. this.popperVM = new external_vue_default.a({
  530. data: { node: '' },
  531. render: function render(h) {
  532. return this.node;
  533. }
  534. }).$mount();
  535. this.debounceClose = debounce_default()(200, function () {
  536. return _this.handleClosePopper();
  537. });
  538. },
  539. render: function render(h) {
  540. var _this2 = this;
  541. if (this.popperVM) {
  542. this.popperVM.node = h(
  543. 'transition',
  544. {
  545. attrs: {
  546. name: this.transition
  547. },
  548. on: {
  549. 'afterLeave': this.doDestroy
  550. }
  551. },
  552. [h(
  553. 'div',
  554. {
  555. on: {
  556. 'mouseleave': function mouseleave() {
  557. _this2.setExpectedState(false);_this2.debounceClose();
  558. },
  559. 'mouseenter': function mouseenter() {
  560. _this2.setExpectedState(true);
  561. }
  562. },
  563. ref: 'popper',
  564. attrs: { role: 'tooltip',
  565. id: this.tooltipId,
  566. 'aria-hidden': this.disabled || !this.showPopper ? 'true' : 'false'
  567. },
  568. directives: [{
  569. name: 'show',
  570. value: !this.disabled && this.showPopper
  571. }],
  572. 'class': ['el-tooltip__popper', 'is-' + this.effect, this.popperClass] },
  573. [this.$slots.content || this.content]
  574. )]
  575. );
  576. }
  577. var firstElement = this.getFirstElement();
  578. if (!firstElement) return null;
  579. var data = firstElement.data = firstElement.data || {};
  580. data.staticClass = this.addTooltipClass(data.staticClass);
  581. return firstElement;
  582. },
  583. mounted: function mounted() {
  584. var _this3 = this;
  585. this.referenceElm = this.$el;
  586. if (this.$el.nodeType === 1) {
  587. this.$el.setAttribute('aria-describedby', this.tooltipId);
  588. this.$el.setAttribute('tabindex', this.tabindex);
  589. Object(dom_["on"])(this.referenceElm, 'mouseenter', this.show);
  590. Object(dom_["on"])(this.referenceElm, 'mouseleave', this.hide);
  591. Object(dom_["on"])(this.referenceElm, 'focus', function () {
  592. if (!_this3.$slots.default || !_this3.$slots.default.length) {
  593. _this3.handleFocus();
  594. return;
  595. }
  596. var instance = _this3.$slots.default[0].componentInstance;
  597. if (instance && instance.focus) {
  598. instance.focus();
  599. } else {
  600. _this3.handleFocus();
  601. }
  602. });
  603. Object(dom_["on"])(this.referenceElm, 'blur', this.handleBlur);
  604. Object(dom_["on"])(this.referenceElm, 'click', this.removeFocusing);
  605. }
  606. // fix issue https://github.com/ElemeFE/element/issues/14424
  607. if (this.value && this.popperVM) {
  608. this.popperVM.$nextTick(function () {
  609. if (_this3.value) {
  610. _this3.updatePopper();
  611. }
  612. });
  613. }
  614. },
  615. watch: {
  616. focusing: function focusing(val) {
  617. if (val) {
  618. Object(dom_["addClass"])(this.referenceElm, 'focusing');
  619. } else {
  620. Object(dom_["removeClass"])(this.referenceElm, 'focusing');
  621. }
  622. }
  623. },
  624. methods: {
  625. show: function show() {
  626. this.setExpectedState(true);
  627. this.handleShowPopper();
  628. },
  629. hide: function hide() {
  630. this.setExpectedState(false);
  631. this.debounceClose();
  632. },
  633. handleFocus: function handleFocus() {
  634. this.focusing = true;
  635. this.show();
  636. },
  637. handleBlur: function handleBlur() {
  638. this.focusing = false;
  639. this.hide();
  640. },
  641. removeFocusing: function removeFocusing() {
  642. this.focusing = false;
  643. },
  644. addTooltipClass: function addTooltipClass(prev) {
  645. if (!prev) {
  646. return 'el-tooltip';
  647. } else {
  648. return 'el-tooltip ' + prev.replace('el-tooltip', '');
  649. }
  650. },
  651. handleShowPopper: function handleShowPopper() {
  652. var _this4 = this;
  653. if (!this.expectedState || this.manual) return;
  654. clearTimeout(this.timeout);
  655. this.timeout = setTimeout(function () {
  656. _this4.showPopper = true;
  657. }, this.openDelay);
  658. if (this.hideAfter > 0) {
  659. this.timeoutPending = setTimeout(function () {
  660. _this4.showPopper = false;
  661. }, this.hideAfter);
  662. }
  663. },
  664. handleClosePopper: function handleClosePopper() {
  665. if (this.enterable && this.expectedState || this.manual) return;
  666. clearTimeout(this.timeout);
  667. if (this.timeoutPending) {
  668. clearTimeout(this.timeoutPending);
  669. }
  670. this.showPopper = false;
  671. if (this.disabled) {
  672. this.doDestroy();
  673. }
  674. },
  675. setExpectedState: function setExpectedState(expectedState) {
  676. if (expectedState === false) {
  677. clearTimeout(this.timeoutPending);
  678. }
  679. this.expectedState = expectedState;
  680. },
  681. getFirstElement: function getFirstElement() {
  682. var slots = this.$slots.default;
  683. if (!Array.isArray(slots)) return null;
  684. var element = null;
  685. for (var index = 0; index < slots.length; index++) {
  686. if (slots[index] && slots[index].tag) {
  687. element = slots[index];
  688. };
  689. }
  690. return element;
  691. }
  692. },
  693. beforeDestroy: function beforeDestroy() {
  694. this.popperVM && this.popperVM.$destroy();
  695. },
  696. destroyed: function destroyed() {
  697. var reference = this.referenceElm;
  698. if (reference.nodeType === 1) {
  699. Object(dom_["off"])(reference, 'mouseenter', this.show);
  700. Object(dom_["off"])(reference, 'mouseleave', this.hide);
  701. Object(dom_["off"])(reference, 'focus', this.handleFocus);
  702. Object(dom_["off"])(reference, 'blur', this.handleBlur);
  703. Object(dom_["off"])(reference, 'click', this.removeFocusing);
  704. }
  705. }
  706. });
  707. // CONCATENATED MODULE: ./packages/tooltip/index.js
  708. /* istanbul ignore next */
  709. main.install = function (Vue) {
  710. Vue.component(main.name, main);
  711. };
  712. /* harmony default export */ var tooltip = __webpack_exports__["default"] = (main);
  713. /***/ }),
  714. /***/ 9:
  715. /***/ (function(module, exports) {
  716. module.exports = require("vue");
  717. /***/ })
  718. /******/ });