项目原始demo,不改动
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
Tento repozitář je archivovaný. Můžete prohlížet soubory, klonovat, ale nemůžete nahrávat a vytvářet nové úkoly a požadavky na natažení.
 
 
 
 

1518 řádky
43 KiB

  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 = 58);
  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 () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  152. : injectStyles
  153. }
  154. if (hook) {
  155. if (options.functional) {
  156. // for template-only hot-reload because in that case the render fn doesn't
  157. // go through the normalizer
  158. options._injectStyles = hook
  159. // register for functioal component in vue file
  160. var originalRender = options.render
  161. options.render = function renderWithStyleInjection (h, context) {
  162. hook.call(context)
  163. return originalRender(h, context)
  164. }
  165. } else {
  166. // inject component registration as beforeCreate hook
  167. var existing = options.beforeCreate
  168. options.beforeCreate = existing
  169. ? [].concat(existing, hook)
  170. : [hook]
  171. }
  172. }
  173. return {
  174. exports: scriptExports,
  175. options: options
  176. }
  177. }
  178. /***/ }),
  179. /***/ 15:
  180. /***/ (function(module, exports) {
  181. module.exports = require("element-ui/lib/scrollbar");
  182. /***/ }),
  183. /***/ 17:
  184. /***/ (function(module, exports) {
  185. module.exports = require("element-ui/lib/checkbox");
  186. /***/ }),
  187. /***/ 22:
  188. /***/ (function(module, exports) {
  189. module.exports = require("element-ui/lib/utils/shared");
  190. /***/ }),
  191. /***/ 26:
  192. /***/ (function(module, exports) {
  193. module.exports = require("babel-helper-vue-jsx-merge-props");
  194. /***/ }),
  195. /***/ 3:
  196. /***/ (function(module, exports) {
  197. module.exports = require("element-ui/lib/utils/util");
  198. /***/ }),
  199. /***/ 31:
  200. /***/ (function(module, exports) {
  201. module.exports = require("element-ui/lib/utils/scroll-into-view");
  202. /***/ }),
  203. /***/ 39:
  204. /***/ (function(module, exports) {
  205. module.exports = require("element-ui/lib/utils/aria-utils");
  206. /***/ }),
  207. /***/ 51:
  208. /***/ (function(module, exports) {
  209. module.exports = require("element-ui/lib/radio");
  210. /***/ }),
  211. /***/ 58:
  212. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  213. "use strict";
  214. __webpack_require__.r(__webpack_exports__);
  215. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader-panel/src/cascader-panel.vue?vue&type=template&id=34932346&
  216. var cascader_panelvue_type_template_id_34932346_render = function() {
  217. var _vm = this
  218. var _h = _vm.$createElement
  219. var _c = _vm._self._c || _h
  220. return _c(
  221. "div",
  222. {
  223. class: ["el-cascader-panel", _vm.border && "is-bordered"],
  224. on: { keydown: _vm.handleKeyDown }
  225. },
  226. _vm._l(_vm.menus, function(menu, index) {
  227. return _c("cascader-menu", {
  228. key: index,
  229. ref: "menu",
  230. refInFor: true,
  231. attrs: { index: index, nodes: menu }
  232. })
  233. }),
  234. 1
  235. )
  236. }
  237. var staticRenderFns = []
  238. cascader_panelvue_type_template_id_34932346_render._withStripped = true
  239. // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-panel.vue?vue&type=template&id=34932346&
  240. // EXTERNAL MODULE: external "babel-helper-vue-jsx-merge-props"
  241. var external_babel_helper_vue_jsx_merge_props_ = __webpack_require__(26);
  242. var external_babel_helper_vue_jsx_merge_props_default = /*#__PURE__*/__webpack_require__.n(external_babel_helper_vue_jsx_merge_props_);
  243. // EXTERNAL MODULE: external "element-ui/lib/scrollbar"
  244. var scrollbar_ = __webpack_require__(15);
  245. var scrollbar_default = /*#__PURE__*/__webpack_require__.n(scrollbar_);
  246. // EXTERNAL MODULE: external "element-ui/lib/checkbox"
  247. var checkbox_ = __webpack_require__(17);
  248. var checkbox_default = /*#__PURE__*/__webpack_require__.n(checkbox_);
  249. // EXTERNAL MODULE: external "element-ui/lib/radio"
  250. var radio_ = __webpack_require__(51);
  251. var radio_default = /*#__PURE__*/__webpack_require__.n(radio_);
  252. // EXTERNAL MODULE: external "element-ui/lib/utils/util"
  253. var util_ = __webpack_require__(3);
  254. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader-panel/src/cascader-node.vue?vue&type=script&lang=js&
  255. var stopPropagation = function stopPropagation(e) {
  256. return e.stopPropagation();
  257. };
  258. /* harmony default export */ var cascader_nodevue_type_script_lang_js_ = ({
  259. inject: ['panel'],
  260. components: {
  261. ElCheckbox: checkbox_default.a,
  262. ElRadio: radio_default.a
  263. },
  264. props: {
  265. node: {
  266. required: true
  267. },
  268. nodeId: String
  269. },
  270. computed: {
  271. config: function config() {
  272. return this.panel.config;
  273. },
  274. isLeaf: function isLeaf() {
  275. return this.node.isLeaf;
  276. },
  277. isDisabled: function isDisabled() {
  278. return this.node.isDisabled;
  279. },
  280. checkedValue: function checkedValue() {
  281. return this.panel.checkedValue;
  282. },
  283. isChecked: function isChecked() {
  284. return this.node.isSameNode(this.checkedValue);
  285. },
  286. inActivePath: function inActivePath() {
  287. return this.isInPath(this.panel.activePath);
  288. },
  289. inCheckedPath: function inCheckedPath() {
  290. var _this = this;
  291. if (!this.config.checkStrictly) return false;
  292. return this.panel.checkedNodePaths.some(function (checkedPath) {
  293. return _this.isInPath(checkedPath);
  294. });
  295. },
  296. value: function value() {
  297. return this.node.getValueByOption();
  298. }
  299. },
  300. methods: {
  301. handleExpand: function handleExpand() {
  302. var _this2 = this;
  303. var panel = this.panel,
  304. node = this.node,
  305. isDisabled = this.isDisabled,
  306. config = this.config;
  307. var multiple = config.multiple,
  308. checkStrictly = config.checkStrictly;
  309. if (!checkStrictly && isDisabled || node.loading) return;
  310. if (config.lazy && !node.loaded) {
  311. panel.lazyLoad(node, function () {
  312. // do not use cached leaf value here, invoke this.isLeaf to get new value.
  313. var isLeaf = _this2.isLeaf;
  314. if (!isLeaf) _this2.handleExpand();
  315. if (multiple) {
  316. // if leaf sync checked state, else clear checked state
  317. var checked = isLeaf ? node.checked : false;
  318. _this2.handleMultiCheckChange(checked);
  319. }
  320. });
  321. } else {
  322. panel.handleExpand(node);
  323. }
  324. },
  325. handleCheckChange: function handleCheckChange() {
  326. var panel = this.panel,
  327. value = this.value;
  328. panel.handleCheckChange(value);
  329. },
  330. handleMultiCheckChange: function handleMultiCheckChange(checked) {
  331. this.node.doCheck(checked);
  332. this.panel.calculateMultiCheckedValue();
  333. },
  334. isInPath: function isInPath(pathNodes) {
  335. var node = this.node;
  336. var selectedPathNode = pathNodes[node.level - 1] || {};
  337. return selectedPathNode.uid === node.uid;
  338. },
  339. renderPrefix: function renderPrefix(h) {
  340. var isLeaf = this.isLeaf,
  341. isChecked = this.isChecked,
  342. config = this.config;
  343. var checkStrictly = config.checkStrictly,
  344. multiple = config.multiple;
  345. if (multiple) {
  346. return this.renderCheckbox(h);
  347. } else if (checkStrictly) {
  348. return this.renderRadio(h);
  349. } else if (isLeaf && isChecked) {
  350. return this.renderCheckIcon(h);
  351. }
  352. return null;
  353. },
  354. renderPostfix: function renderPostfix(h) {
  355. var node = this.node,
  356. isLeaf = this.isLeaf;
  357. if (node.loading) {
  358. return this.renderLoadingIcon(h);
  359. } else if (!isLeaf) {
  360. return this.renderExpandIcon(h);
  361. }
  362. return null;
  363. },
  364. renderCheckbox: function renderCheckbox(h) {
  365. var node = this.node,
  366. config = this.config,
  367. isDisabled = this.isDisabled;
  368. var events = {
  369. on: { change: this.handleMultiCheckChange },
  370. nativeOn: {}
  371. };
  372. if (config.checkStrictly) {
  373. // when every node is selectable, click event should not trigger expand event.
  374. events.nativeOn.click = stopPropagation;
  375. }
  376. return h('el-checkbox', external_babel_helper_vue_jsx_merge_props_default()([{
  377. attrs: {
  378. value: node.checked,
  379. indeterminate: node.indeterminate,
  380. disabled: isDisabled
  381. }
  382. }, events]));
  383. },
  384. renderRadio: function renderRadio(h) {
  385. var checkedValue = this.checkedValue,
  386. value = this.value,
  387. isDisabled = this.isDisabled;
  388. // to keep same reference if value cause radio's checked state is calculated by reference comparision;
  389. if (Object(util_["isEqual"])(value, checkedValue)) {
  390. value = checkedValue;
  391. }
  392. return h(
  393. 'el-radio',
  394. {
  395. attrs: {
  396. value: checkedValue,
  397. label: value,
  398. disabled: isDisabled
  399. },
  400. on: {
  401. 'change': this.handleCheckChange
  402. },
  403. nativeOn: {
  404. 'click': stopPropagation
  405. }
  406. },
  407. [h('span')]
  408. );
  409. },
  410. renderCheckIcon: function renderCheckIcon(h) {
  411. return h('i', { 'class': 'el-icon-check el-cascader-node__prefix' });
  412. },
  413. renderLoadingIcon: function renderLoadingIcon(h) {
  414. return h('i', { 'class': 'el-icon-loading el-cascader-node__postfix' });
  415. },
  416. renderExpandIcon: function renderExpandIcon(h) {
  417. return h('i', { 'class': 'el-icon-arrow-right el-cascader-node__postfix' });
  418. },
  419. renderContent: function renderContent(h) {
  420. var panel = this.panel,
  421. node = this.node;
  422. var render = panel.renderLabelFn;
  423. var vnode = render ? render({ node: node, data: node.data }) : null;
  424. return h(
  425. 'span',
  426. { 'class': 'el-cascader-node__label' },
  427. [vnode || node.label]
  428. );
  429. }
  430. },
  431. render: function render(h) {
  432. var _this3 = this;
  433. var inActivePath = this.inActivePath,
  434. inCheckedPath = this.inCheckedPath,
  435. isChecked = this.isChecked,
  436. isLeaf = this.isLeaf,
  437. isDisabled = this.isDisabled,
  438. config = this.config,
  439. nodeId = this.nodeId;
  440. var expandTrigger = config.expandTrigger,
  441. checkStrictly = config.checkStrictly,
  442. multiple = config.multiple;
  443. var disabled = !checkStrictly && isDisabled;
  444. var events = { on: {} };
  445. if (!isLeaf) {
  446. if (expandTrigger === 'click') {
  447. events.on.click = this.handleExpand;
  448. } else {
  449. events.on.mouseenter = function (e) {
  450. _this3.handleExpand();
  451. _this3.$emit('expand', e);
  452. };
  453. events.on.focus = function (e) {
  454. _this3.handleExpand();
  455. _this3.$emit('expand', e);
  456. };
  457. }
  458. } else if (!isDisabled && !checkStrictly && !multiple) {
  459. events.on.click = this.handleCheckChange;
  460. }
  461. return h(
  462. 'li',
  463. external_babel_helper_vue_jsx_merge_props_default()([{
  464. attrs: {
  465. role: 'menuitem',
  466. id: nodeId,
  467. 'aria-expanded': inActivePath,
  468. tabindex: disabled ? null : -1
  469. },
  470. 'class': {
  471. 'el-cascader-node': true,
  472. 'is-selectable': checkStrictly,
  473. 'in-active-path': inActivePath,
  474. 'in-checked-path': inCheckedPath,
  475. 'is-active': isChecked,
  476. 'is-disabled': disabled
  477. }
  478. }, events]),
  479. [this.renderPrefix(h), this.renderContent(h), this.renderPostfix(h)]
  480. );
  481. }
  482. });
  483. // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-node.vue?vue&type=script&lang=js&
  484. /* harmony default export */ var src_cascader_nodevue_type_script_lang_js_ = (cascader_nodevue_type_script_lang_js_);
  485. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  486. var componentNormalizer = __webpack_require__(0);
  487. // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-node.vue
  488. var cascader_node_render, cascader_node_staticRenderFns
  489. /* normalize component */
  490. var component = Object(componentNormalizer["a" /* default */])(
  491. src_cascader_nodevue_type_script_lang_js_,
  492. cascader_node_render,
  493. cascader_node_staticRenderFns,
  494. false,
  495. null,
  496. null,
  497. null
  498. )
  499. /* hot reload */
  500. if (false) { var api; }
  501. component.options.__file = "packages/cascader-panel/src/cascader-node.vue"
  502. /* harmony default export */ var cascader_node = (component.exports);
  503. // EXTERNAL MODULE: external "element-ui/lib/mixins/locale"
  504. var locale_ = __webpack_require__(6);
  505. var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
  506. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader-panel/src/cascader-menu.vue?vue&type=script&lang=js&
  507. /* harmony default export */ var cascader_menuvue_type_script_lang_js_ = ({
  508. name: 'ElCascaderMenu',
  509. mixins: [locale_default.a],
  510. inject: ['panel'],
  511. components: {
  512. ElScrollbar: scrollbar_default.a,
  513. CascaderNode: cascader_node
  514. },
  515. props: {
  516. nodes: {
  517. type: Array,
  518. required: true
  519. },
  520. index: Number
  521. },
  522. data: function data() {
  523. return {
  524. activeNode: null,
  525. hoverTimer: null,
  526. id: Object(util_["generateId"])()
  527. };
  528. },
  529. computed: {
  530. isEmpty: function isEmpty() {
  531. return !this.nodes.length;
  532. },
  533. menuId: function menuId() {
  534. return 'cascader-menu-' + this.id + '-' + this.index;
  535. }
  536. },
  537. methods: {
  538. handleExpand: function handleExpand(e) {
  539. this.activeNode = e.target;
  540. },
  541. handleMouseMove: function handleMouseMove(e) {
  542. var activeNode = this.activeNode,
  543. hoverTimer = this.hoverTimer;
  544. var hoverZone = this.$refs.hoverZone;
  545. if (!activeNode || !hoverZone) return;
  546. if (activeNode.contains(e.target)) {
  547. clearTimeout(hoverTimer);
  548. var _$el$getBoundingClien = this.$el.getBoundingClientRect(),
  549. left = _$el$getBoundingClien.left;
  550. var startX = e.clientX - left;
  551. var _$el = this.$el,
  552. offsetWidth = _$el.offsetWidth,
  553. offsetHeight = _$el.offsetHeight;
  554. var top = activeNode.offsetTop;
  555. var bottom = top + activeNode.offsetHeight;
  556. hoverZone.innerHTML = '\n <path style="pointer-events: auto;" fill="transparent" d="M' + startX + ' ' + top + ' L' + offsetWidth + ' 0 V' + top + ' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M' + startX + ' ' + bottom + ' L' + offsetWidth + ' ' + offsetHeight + ' V' + bottom + ' Z" />\n ';
  557. } else if (!hoverTimer) {
  558. this.hoverTimer = setTimeout(this.clearHoverZone, this.panel.config.hoverThreshold);
  559. }
  560. },
  561. clearHoverZone: function clearHoverZone() {
  562. var hoverZone = this.$refs.hoverZone;
  563. if (!hoverZone) return;
  564. hoverZone.innerHTML = '';
  565. },
  566. renderEmptyText: function renderEmptyText(h) {
  567. return h(
  568. 'div',
  569. { 'class': 'el-cascader-menu__empty-text' },
  570. [this.t('el.cascader.noData')]
  571. );
  572. },
  573. renderNodeList: function renderNodeList(h) {
  574. var menuId = this.menuId;
  575. var isHoverMenu = this.panel.isHoverMenu;
  576. var events = { on: {} };
  577. if (isHoverMenu) {
  578. events.on.expand = this.handleExpand;
  579. }
  580. var nodes = this.nodes.map(function (node, index) {
  581. var hasChildren = node.hasChildren;
  582. return h('cascader-node', external_babel_helper_vue_jsx_merge_props_default()([{
  583. key: node.uid,
  584. attrs: { node: node,
  585. 'node-id': menuId + '-' + index,
  586. 'aria-haspopup': hasChildren,
  587. 'aria-owns': hasChildren ? menuId : null
  588. }
  589. }, events]));
  590. });
  591. return [].concat(nodes, [isHoverMenu ? h('svg', { ref: 'hoverZone', 'class': 'el-cascader-menu__hover-zone' }) : null]);
  592. }
  593. },
  594. render: function render(h) {
  595. var isEmpty = this.isEmpty,
  596. menuId = this.menuId;
  597. var events = { nativeOn: {} };
  598. // optimize hover to expand experience (#8010)
  599. if (this.panel.isHoverMenu) {
  600. events.nativeOn.mousemove = this.handleMouseMove;
  601. // events.nativeOn.mouseleave = this.clearHoverZone;
  602. }
  603. return h(
  604. 'el-scrollbar',
  605. external_babel_helper_vue_jsx_merge_props_default()([{
  606. attrs: {
  607. tag: 'ul',
  608. role: 'menu',
  609. id: menuId,
  610. 'wrap-class': 'el-cascader-menu__wrap',
  611. 'view-class': {
  612. 'el-cascader-menu__list': true,
  613. 'is-empty': isEmpty
  614. }
  615. },
  616. 'class': 'el-cascader-menu' }, events]),
  617. [isEmpty ? this.renderEmptyText(h) : this.renderNodeList(h)]
  618. );
  619. }
  620. });
  621. // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-menu.vue?vue&type=script&lang=js&
  622. /* harmony default export */ var src_cascader_menuvue_type_script_lang_js_ = (cascader_menuvue_type_script_lang_js_);
  623. // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-menu.vue
  624. var cascader_menu_render, cascader_menu_staticRenderFns
  625. /* normalize component */
  626. var cascader_menu_component = Object(componentNormalizer["a" /* default */])(
  627. src_cascader_menuvue_type_script_lang_js_,
  628. cascader_menu_render,
  629. cascader_menu_staticRenderFns,
  630. false,
  631. null,
  632. null,
  633. null
  634. )
  635. /* hot reload */
  636. if (false) { var cascader_menu_api; }
  637. cascader_menu_component.options.__file = "packages/cascader-panel/src/cascader-menu.vue"
  638. /* harmony default export */ var cascader_menu = (cascader_menu_component.exports);
  639. // EXTERNAL MODULE: external "element-ui/lib/utils/shared"
  640. var shared_ = __webpack_require__(22);
  641. // CONCATENATED MODULE: ./packages/cascader-panel/src/node.js
  642. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  643. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  644. var uid = 0;
  645. var node_Node = function () {
  646. function Node(data, config, parentNode) {
  647. _classCallCheck(this, Node);
  648. this.data = data;
  649. this.config = config;
  650. this.parent = parentNode || null;
  651. this.level = !this.parent ? 1 : this.parent.level + 1;
  652. this.uid = uid++;
  653. this.initState();
  654. this.initChildren();
  655. }
  656. Node.prototype.initState = function initState() {
  657. var _config = this.config,
  658. valueKey = _config.value,
  659. labelKey = _config.label;
  660. this.value = this.data[valueKey];
  661. this.label = this.data[labelKey];
  662. this.pathNodes = this.calculatePathNodes();
  663. this.path = this.pathNodes.map(function (node) {
  664. return node.value;
  665. });
  666. this.pathLabels = this.pathNodes.map(function (node) {
  667. return node.label;
  668. });
  669. // lazy load
  670. this.loading = false;
  671. this.loaded = false;
  672. };
  673. Node.prototype.initChildren = function initChildren() {
  674. var _this = this;
  675. var config = this.config;
  676. var childrenKey = config.children;
  677. var childrenData = this.data[childrenKey];
  678. this.hasChildren = Array.isArray(childrenData);
  679. this.children = (childrenData || []).map(function (child) {
  680. return new Node(child, config, _this);
  681. });
  682. };
  683. Node.prototype.calculatePathNodes = function calculatePathNodes() {
  684. var nodes = [this];
  685. var parent = this.parent;
  686. while (parent) {
  687. nodes.unshift(parent);
  688. parent = parent.parent;
  689. }
  690. return nodes;
  691. };
  692. Node.prototype.getPath = function getPath() {
  693. return this.path;
  694. };
  695. Node.prototype.getValue = function getValue() {
  696. return this.value;
  697. };
  698. Node.prototype.getValueByOption = function getValueByOption() {
  699. return this.config.emitPath ? this.getPath() : this.getValue();
  700. };
  701. Node.prototype.getText = function getText(allLevels, separator) {
  702. return allLevels ? this.pathLabels.join(separator) : this.label;
  703. };
  704. Node.prototype.isSameNode = function isSameNode(checkedValue) {
  705. var value = this.getValueByOption();
  706. return this.config.multiple && Array.isArray(checkedValue) ? checkedValue.some(function (val) {
  707. return Object(util_["isEqual"])(val, value);
  708. }) : Object(util_["isEqual"])(checkedValue, value);
  709. };
  710. Node.prototype.broadcast = function broadcast(event) {
  711. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  712. args[_key - 1] = arguments[_key];
  713. }
  714. var handlerName = 'onParent' + Object(util_["capitalize"])(event);
  715. this.children.forEach(function (child) {
  716. if (child) {
  717. // bottom up
  718. child.broadcast.apply(child, [event].concat(args));
  719. child[handlerName] && child[handlerName].apply(child, args);
  720. }
  721. });
  722. };
  723. Node.prototype.emit = function emit(event) {
  724. var parent = this.parent;
  725. var handlerName = 'onChild' + Object(util_["capitalize"])(event);
  726. if (parent) {
  727. for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  728. args[_key2 - 1] = arguments[_key2];
  729. }
  730. parent[handlerName] && parent[handlerName].apply(parent, args);
  731. parent.emit.apply(parent, [event].concat(args));
  732. }
  733. };
  734. Node.prototype.onParentCheck = function onParentCheck(checked) {
  735. if (!this.isDisabled) {
  736. this.setCheckState(checked);
  737. }
  738. };
  739. Node.prototype.onChildCheck = function onChildCheck() {
  740. var children = this.children;
  741. var validChildren = children.filter(function (child) {
  742. return !child.isDisabled;
  743. });
  744. var checked = validChildren.length ? validChildren.every(function (child) {
  745. return child.checked;
  746. }) : false;
  747. this.setCheckState(checked);
  748. };
  749. Node.prototype.setCheckState = function setCheckState(checked) {
  750. var totalNum = this.children.length;
  751. var checkedNum = this.children.reduce(function (c, p) {
  752. var num = p.checked ? 1 : p.indeterminate ? 0.5 : 0;
  753. return c + num;
  754. }, 0);
  755. this.checked = checked;
  756. this.indeterminate = checkedNum !== totalNum && checkedNum > 0;
  757. };
  758. Node.prototype.syncCheckState = function syncCheckState(checkedValue) {
  759. var value = this.getValueByOption();
  760. var checked = this.isSameNode(checkedValue, value);
  761. this.doCheck(checked);
  762. };
  763. Node.prototype.doCheck = function doCheck(checked) {
  764. if (this.checked !== checked) {
  765. if (this.config.checkStrictly) {
  766. this.checked = checked;
  767. } else {
  768. // bottom up to unify the calculation of the indeterminate state
  769. this.broadcast('check', checked);
  770. this.setCheckState(checked);
  771. this.emit('check');
  772. }
  773. }
  774. };
  775. _createClass(Node, [{
  776. key: 'isDisabled',
  777. get: function get() {
  778. var data = this.data,
  779. parent = this.parent,
  780. config = this.config;
  781. var disabledKey = config.disabled;
  782. var checkStrictly = config.checkStrictly;
  783. return data[disabledKey] || !checkStrictly && parent && parent.isDisabled;
  784. }
  785. }, {
  786. key: 'isLeaf',
  787. get: function get() {
  788. var data = this.data,
  789. loaded = this.loaded,
  790. hasChildren = this.hasChildren,
  791. children = this.children;
  792. var _config2 = this.config,
  793. lazy = _config2.lazy,
  794. leafKey = _config2.leaf;
  795. if (lazy) {
  796. var isLeaf = Object(shared_["isDef"])(data[leafKey]) ? data[leafKey] : loaded ? !children.length : false;
  797. this.hasChildren = !isLeaf;
  798. return isLeaf;
  799. }
  800. return !hasChildren;
  801. }
  802. }]);
  803. return Node;
  804. }();
  805. /* harmony default export */ var src_node = (node_Node);
  806. // CONCATENATED MODULE: ./packages/cascader-panel/src/store.js
  807. function store_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  808. var flatNodes = function flatNodes(data, leafOnly) {
  809. return data.reduce(function (res, node) {
  810. if (node.isLeaf) {
  811. res.push(node);
  812. } else {
  813. !leafOnly && res.push(node);
  814. res = res.concat(flatNodes(node.children, leafOnly));
  815. }
  816. return res;
  817. }, []);
  818. };
  819. var store_Store = function () {
  820. function Store(data, config) {
  821. store_classCallCheck(this, Store);
  822. this.config = config;
  823. this.initNodes(data);
  824. }
  825. Store.prototype.initNodes = function initNodes(data) {
  826. var _this = this;
  827. data = Object(util_["coerceTruthyValueToArray"])(data);
  828. this.nodes = data.map(function (nodeData) {
  829. return new src_node(nodeData, _this.config);
  830. });
  831. this.flattedNodes = this.getFlattedNodes(false, false);
  832. this.leafNodes = this.getFlattedNodes(true, false);
  833. };
  834. Store.prototype.appendNode = function appendNode(nodeData, parentNode) {
  835. var node = new src_node(nodeData, this.config, parentNode);
  836. var children = parentNode ? parentNode.children : this.nodes;
  837. children.push(node);
  838. };
  839. Store.prototype.appendNodes = function appendNodes(nodeDataList, parentNode) {
  840. var _this2 = this;
  841. nodeDataList = Object(util_["coerceTruthyValueToArray"])(nodeDataList);
  842. nodeDataList.forEach(function (nodeData) {
  843. return _this2.appendNode(nodeData, parentNode);
  844. });
  845. };
  846. Store.prototype.getNodes = function getNodes() {
  847. return this.nodes;
  848. };
  849. Store.prototype.getFlattedNodes = function getFlattedNodes(leafOnly) {
  850. var cached = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  851. var cachedNodes = leafOnly ? this.leafNodes : this.flattedNodes;
  852. return cached ? cachedNodes : flatNodes(this.nodes, leafOnly);
  853. };
  854. Store.prototype.getNodeByValue = function getNodeByValue(value) {
  855. if (value) {
  856. value = Array.isArray(value) ? value[value.length - 1] : value;
  857. var nodes = this.getFlattedNodes(false, !this.config.lazy).filter(function (node) {
  858. return node.value === value;
  859. });
  860. return nodes && nodes.length ? nodes[0] : null;
  861. }
  862. return null;
  863. };
  864. return Store;
  865. }();
  866. /* harmony default export */ var src_store = (store_Store);
  867. // EXTERNAL MODULE: external "element-ui/lib/utils/merge"
  868. var merge_ = __webpack_require__(9);
  869. var merge_default = /*#__PURE__*/__webpack_require__.n(merge_);
  870. // EXTERNAL MODULE: external "element-ui/lib/utils/aria-utils"
  871. var aria_utils_ = __webpack_require__(39);
  872. var aria_utils_default = /*#__PURE__*/__webpack_require__.n(aria_utils_);
  873. // EXTERNAL MODULE: external "element-ui/lib/utils/scroll-into-view"
  874. var scroll_into_view_ = __webpack_require__(31);
  875. var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_view_);
  876. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader-panel/src/cascader-panel.vue?vue&type=script&lang=js&
  877. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  878. //
  879. //
  880. //
  881. //
  882. //
  883. //
  884. //
  885. //
  886. //
  887. //
  888. //
  889. //
  890. //
  891. //
  892. //
  893. //
  894. var KeyCode = aria_utils_default.a.keys;
  895. var DefaultProps = {
  896. expandTrigger: 'click', // or hover
  897. multiple: false,
  898. checkStrictly: false, // whether all nodes can be selected
  899. emitPath: true, // wether to emit an array of all levels value in which node is located
  900. lazy: false,
  901. lazyLoad: util_["noop"],
  902. value: 'value',
  903. label: 'label',
  904. children: 'children',
  905. leaf: 'leaf',
  906. disabled: 'disabled',
  907. hoverThreshold: 500
  908. };
  909. var cascader_panelvue_type_script_lang_js_isLeaf = function isLeaf(el) {
  910. return !el.getAttribute('aria-owns');
  911. };
  912. var getSibling = function getSibling(el, distance) {
  913. var parentNode = el.parentNode;
  914. if (parentNode) {
  915. var siblings = parentNode.querySelectorAll('.el-cascader-node[tabindex="-1"]');
  916. var index = Array.prototype.indexOf.call(siblings, el);
  917. return siblings[index + distance] || null;
  918. }
  919. return null;
  920. };
  921. var getMenuIndex = function getMenuIndex(el, distance) {
  922. if (!el) return;
  923. var pieces = el.id.split('-');
  924. return Number(pieces[pieces.length - 2]);
  925. };
  926. var focusNode = function focusNode(el) {
  927. if (!el) return;
  928. el.focus();
  929. !cascader_panelvue_type_script_lang_js_isLeaf(el) && el.click();
  930. };
  931. var checkNode = function checkNode(el) {
  932. if (!el) return;
  933. var input = el.querySelector('input');
  934. if (input) {
  935. input.click();
  936. } else if (cascader_panelvue_type_script_lang_js_isLeaf(el)) {
  937. el.click();
  938. }
  939. };
  940. /* harmony default export */ var cascader_panelvue_type_script_lang_js_ = ({
  941. name: 'ElCascaderPanel',
  942. components: {
  943. CascaderMenu: cascader_menu
  944. },
  945. props: {
  946. value: {},
  947. options: Array,
  948. props: Object,
  949. border: {
  950. type: Boolean,
  951. default: true
  952. },
  953. renderLabel: Function
  954. },
  955. provide: function provide() {
  956. return {
  957. panel: this
  958. };
  959. },
  960. data: function data() {
  961. return {
  962. checkedValue: null,
  963. checkedNodePaths: [],
  964. store: [],
  965. menus: [],
  966. activePath: []
  967. };
  968. },
  969. computed: {
  970. config: function config() {
  971. return merge_default()(_extends({}, DefaultProps), this.props || {});
  972. },
  973. multiple: function multiple() {
  974. return this.config.multiple;
  975. },
  976. checkStrictly: function checkStrictly() {
  977. return this.config.checkStrictly;
  978. },
  979. leafOnly: function leafOnly() {
  980. return !this.checkStrictly;
  981. },
  982. isHoverMenu: function isHoverMenu() {
  983. return this.config.expandTrigger === 'hover';
  984. },
  985. renderLabelFn: function renderLabelFn() {
  986. return this.renderLabel || this.$scopedSlots.default;
  987. }
  988. },
  989. watch: {
  990. options: {
  991. handler: function handler() {
  992. this.initStore();
  993. },
  994. immediate: true,
  995. deep: true
  996. },
  997. value: function value() {
  998. this.syncCheckedValue();
  999. this.checkStrictly && this.calculateCheckedNodePaths();
  1000. },
  1001. checkedValue: function checkedValue(val) {
  1002. if (!Object(util_["isEqual"])(val, this.value)) {
  1003. this.checkStrictly && this.calculateCheckedNodePaths();
  1004. this.$emit('input', val);
  1005. this.$emit('change', val);
  1006. }
  1007. }
  1008. },
  1009. mounted: function mounted() {
  1010. if (!Object(util_["isEmpty"])(this.value)) {
  1011. this.syncCheckedValue();
  1012. }
  1013. },
  1014. methods: {
  1015. initStore: function initStore() {
  1016. var config = this.config,
  1017. options = this.options;
  1018. if (config.lazy && Object(util_["isEmpty"])(options)) {
  1019. this.lazyLoad();
  1020. } else {
  1021. this.store = new src_store(options, config);
  1022. this.menus = [this.store.getNodes()];
  1023. this.syncMenuState();
  1024. }
  1025. },
  1026. syncCheckedValue: function syncCheckedValue() {
  1027. var value = this.value,
  1028. checkedValue = this.checkedValue;
  1029. if (!Object(util_["isEqual"])(value, checkedValue)) {
  1030. this.checkedValue = value;
  1031. this.syncMenuState();
  1032. }
  1033. },
  1034. syncMenuState: function syncMenuState() {
  1035. var multiple = this.multiple,
  1036. checkStrictly = this.checkStrictly;
  1037. this.syncActivePath();
  1038. multiple && this.syncMultiCheckState();
  1039. checkStrictly && this.calculateCheckedNodePaths();
  1040. this.$nextTick(this.scrollIntoView);
  1041. },
  1042. syncMultiCheckState: function syncMultiCheckState() {
  1043. var _this = this;
  1044. var nodes = this.getFlattedNodes(this.leafOnly);
  1045. nodes.forEach(function (node) {
  1046. node.syncCheckState(_this.checkedValue);
  1047. });
  1048. },
  1049. syncActivePath: function syncActivePath() {
  1050. var _this2 = this;
  1051. var checkedValue = this.checkedValue,
  1052. store = this.store,
  1053. multiple = this.multiple;
  1054. if (Object(util_["isEmpty"])(checkedValue)) {
  1055. this.activePath = [];
  1056. this.menus = [store.getNodes()];
  1057. } else {
  1058. checkedValue = multiple ? checkedValue[0] : checkedValue;
  1059. var checkedNode = this.getNodeByValue(checkedValue) || {};
  1060. var nodes = [];
  1061. var parent = checkedNode.parent;
  1062. while (parent) {
  1063. nodes.unshift(parent);
  1064. parent = parent.parent;
  1065. }
  1066. nodes.forEach(function (node) {
  1067. return _this2.handleExpand(node, true /* silent */);
  1068. });
  1069. }
  1070. },
  1071. calculateCheckedNodePaths: function calculateCheckedNodePaths() {
  1072. var _this3 = this;
  1073. var checkedValue = this.checkedValue,
  1074. multiple = this.multiple;
  1075. var checkedValues = multiple ? Object(util_["coerceTruthyValueToArray"])(checkedValue) : [checkedValue];
  1076. this.checkedNodePaths = checkedValues.map(function (v) {
  1077. var checkedNode = _this3.getNodeByValue(v);
  1078. return checkedNode ? checkedNode.pathNodes : [];
  1079. });
  1080. },
  1081. handleKeyDown: function handleKeyDown(e) {
  1082. var target = e.target,
  1083. keyCode = e.keyCode;
  1084. switch (keyCode) {
  1085. case KeyCode.up:
  1086. var prev = getSibling(target, -1);
  1087. focusNode(prev);
  1088. break;
  1089. case KeyCode.down:
  1090. var next = getSibling(target, 1);
  1091. focusNode(next);
  1092. break;
  1093. case KeyCode.left:
  1094. var preMenu = this.$refs.menu[getMenuIndex(target) - 1];
  1095. if (preMenu) {
  1096. var expandedNode = preMenu.$el.querySelector('.el-cascader-node[aria-expanded="true"]');
  1097. focusNode(expandedNode);
  1098. }
  1099. break;
  1100. case KeyCode.right:
  1101. var nextMenu = this.$refs.menu[getMenuIndex(target) + 1];
  1102. if (nextMenu) {
  1103. var firstNode = nextMenu.$el.querySelector('.el-cascader-node[tabindex="-1"]');
  1104. focusNode(firstNode);
  1105. }
  1106. break;
  1107. case KeyCode.enter:
  1108. checkNode(target);
  1109. break;
  1110. case KeyCode.esc:
  1111. case KeyCode.tab:
  1112. this.$emit('close');
  1113. break;
  1114. default:
  1115. return;
  1116. }
  1117. },
  1118. handleExpand: function handleExpand(node, silent) {
  1119. var level = node.level;
  1120. var path = this.activePath.slice(0, level - 1);
  1121. var menus = this.menus.slice(0, level);
  1122. if (!node.isLeaf) {
  1123. path.push(node);
  1124. menus.push(node.children);
  1125. }
  1126. if (Object(util_["valueEquals"])(path, this.activePath)) return;
  1127. this.activePath = path;
  1128. this.menus = menus;
  1129. if (!silent) {
  1130. var pathValues = path.map(function (node) {
  1131. return node.getValue();
  1132. });
  1133. this.$emit('active-item-change', pathValues); // Deprecated
  1134. this.$emit('expand-change', pathValues);
  1135. }
  1136. },
  1137. handleCheckChange: function handleCheckChange(value) {
  1138. this.checkedValue = value;
  1139. },
  1140. lazyLoad: function lazyLoad(node, onFullfiled) {
  1141. var _this4 = this;
  1142. var config = this.config;
  1143. if (!node) {
  1144. node = node || { root: true, level: 0 };
  1145. this.store = new src_store([], config);
  1146. this.menus = [this.store.getNodes()];
  1147. }
  1148. node.loading = true;
  1149. var resolve = function resolve(dataList) {
  1150. var parent = node.root ? null : node;
  1151. dataList && dataList.length && _this4.store.appendNodes(dataList, parent);
  1152. node.loading = false;
  1153. node.loaded = true;
  1154. onFullfiled && onFullfiled(dataList);
  1155. };
  1156. config.lazyLoad(node, resolve);
  1157. },
  1158. /**
  1159. * public methods
  1160. */
  1161. calculateMultiCheckedValue: function calculateMultiCheckedValue() {
  1162. this.checkedValue = this.getCheckedNodes(this.leafOnly).map(function (node) {
  1163. return node.getValueByOption();
  1164. });
  1165. },
  1166. scrollIntoView: function scrollIntoView() {
  1167. if (this.$isServer) return;
  1168. var menus = this.$refs.menu || [];
  1169. menus.forEach(function (menu) {
  1170. var menuElement = menu.$el;
  1171. if (menuElement) {
  1172. var container = menuElement.querySelector('.el-scrollbar__wrap');
  1173. var activeNode = menuElement.querySelector('.el-cascader-node.is-active') || menuElement.querySelector('.el-cascader-node.in-active-path');
  1174. scroll_into_view_default()(container, activeNode);
  1175. }
  1176. });
  1177. },
  1178. getNodeByValue: function getNodeByValue(val) {
  1179. return this.store.getNodeByValue(val);
  1180. },
  1181. getFlattedNodes: function getFlattedNodes(leafOnly) {
  1182. var cached = !this.config.lazy;
  1183. return this.store.getFlattedNodes(leafOnly, cached);
  1184. },
  1185. getCheckedNodes: function getCheckedNodes(leafOnly) {
  1186. var checkedValue = this.checkedValue,
  1187. multiple = this.multiple;
  1188. if (multiple) {
  1189. var nodes = this.getFlattedNodes(leafOnly);
  1190. return nodes.filter(function (node) {
  1191. return node.checked;
  1192. });
  1193. } else {
  1194. return Object(util_["isEmpty"])(checkedValue) ? [] : [this.getNodeByValue(checkedValue)];
  1195. }
  1196. },
  1197. clearCheckedNodes: function clearCheckedNodes() {
  1198. var config = this.config,
  1199. leafOnly = this.leafOnly;
  1200. var multiple = config.multiple,
  1201. emitPath = config.emitPath;
  1202. if (multiple) {
  1203. this.getCheckedNodes(leafOnly).filter(function (node) {
  1204. return !node.isDisabled;
  1205. }).forEach(function (node) {
  1206. return node.doCheck(false);
  1207. });
  1208. this.calculateMultiCheckedValue();
  1209. } else {
  1210. this.checkedValue = emitPath ? [] : null;
  1211. }
  1212. }
  1213. }
  1214. });
  1215. // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-panel.vue?vue&type=script&lang=js&
  1216. /* harmony default export */ var src_cascader_panelvue_type_script_lang_js_ = (cascader_panelvue_type_script_lang_js_);
  1217. // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-panel.vue
  1218. /* normalize component */
  1219. var cascader_panel_component = Object(componentNormalizer["a" /* default */])(
  1220. src_cascader_panelvue_type_script_lang_js_,
  1221. cascader_panelvue_type_template_id_34932346_render,
  1222. staticRenderFns,
  1223. false,
  1224. null,
  1225. null,
  1226. null
  1227. )
  1228. /* hot reload */
  1229. if (false) { var cascader_panel_api; }
  1230. cascader_panel_component.options.__file = "packages/cascader-panel/src/cascader-panel.vue"
  1231. /* harmony default export */ var cascader_panel = (cascader_panel_component.exports);
  1232. // CONCATENATED MODULE: ./packages/cascader-panel/index.js
  1233. /* istanbul ignore next */
  1234. cascader_panel.install = function (Vue) {
  1235. Vue.component(cascader_panel.name, cascader_panel);
  1236. };
  1237. /* harmony default export */ var packages_cascader_panel = __webpack_exports__["default"] = (cascader_panel);
  1238. /***/ }),
  1239. /***/ 6:
  1240. /***/ (function(module, exports) {
  1241. module.exports = require("element-ui/lib/mixins/locale");
  1242. /***/ }),
  1243. /***/ 9:
  1244. /***/ (function(module, exports) {
  1245. module.exports = require("element-ui/lib/utils/merge");
  1246. /***/ })
  1247. /******/ });