44Object . defineProperty ( exports , '__esModule' , { value : true } ) ;
55
66function _typeof ( obj ) {
7+ "@babel/helpers - typeof" ;
8+
79 if ( typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ) {
810 _typeof = function ( obj ) {
911 return typeof obj ;
@@ -210,9 +212,7 @@ var getPropertyFromData = function getPropertyFromData(node, prop) {
210212
211213var nodeIdSeed = 0 ;
212214
213- var Node =
214- /*#__PURE__*/
215- function ( ) {
215+ var Node = /*#__PURE__*/ function ( ) {
216216 function Node ( options ) {
217217 _classCallCheck ( this , Node ) ;
218218
@@ -732,9 +732,7 @@ function () {
732732 return Node ;
733733} ( ) ;
734734
735- var TreeStore =
736- /*#__PURE__*/
737- function ( ) {
735+ var TreeStore = /*#__PURE__*/ function ( ) {
738736 function TreeStore ( options ) {
739737 var _this = this ;
740738
@@ -1395,91 +1393,81 @@ var script = {
13951393 }
13961394} ;
13971395
1398- function normalizeComponent ( template , style , script , scopeId , isFunctionalTemplate , moduleIdentifier
1399- /* server only */
1400- , shadowMode , createInjector , createInjectorSSR , createInjectorShadow ) {
1401- if ( typeof shadowMode !== 'boolean' ) {
1402- createInjectorSSR = createInjector ;
1403- createInjector = shadowMode ;
1404- shadowMode = false ;
1405- } // Vue.extend constructor export interop.
1406-
1407-
1408- var options = typeof script === 'function' ? script . options : script ; // render functions
1409-
1410- if ( template && template . render ) {
1411- options . render = template . render ;
1412- options . staticRenderFns = template . staticRenderFns ;
1413- options . _compiled = true ; // functional template
1414-
1415- if ( isFunctionalTemplate ) {
1416- options . functional = true ;
1417- }
1418- } // scopedId
1419-
1420-
1421- if ( scopeId ) {
1422- options . _scopeId = scopeId ;
1423- }
1424-
1425- var hook ;
1426-
1427- if ( moduleIdentifier ) {
1428- // server build
1429- hook = function hook ( context ) {
1430- // 2.3 injection
1431- context = context || // cached call
1432- this . $vnode && this . $vnode . ssrContext || // stateful
1433- this . parent && this . parent . $vnode && this . parent . $vnode . ssrContext ; // functional
1434- // 2.2 with runInNewContext: true
1435-
1436- if ( ! context && typeof __VUE_SSR_CONTEXT__ !== 'undefined' ) {
1437- context = __VUE_SSR_CONTEXT__ ;
1438- } // inject component styles
1439-
1440-
1441- if ( style ) {
1442- style . call ( this , createInjectorSSR ( context ) ) ;
1443- } // register component module identifier for async chunk inference
1444-
1445-
1446- if ( context && context . _registeredComponents ) {
1447- context . _registeredComponents . add ( moduleIdentifier ) ;
1448- }
1449- } ; // used by ssr in case component is cached and beforeCreate
1450- // never gets called
1451-
1452-
1453- options . _ssrRegister = hook ;
1454- } else if ( style ) {
1455- hook = shadowMode ? function ( ) {
1456- style . call ( this , createInjectorShadow ( this . $root . $options . shadowRoot ) ) ;
1457- } : function ( context ) {
1458- style . call ( this , createInjector ( context ) ) ;
1459- } ;
1460- }
1461-
1462- if ( hook ) {
1463- if ( options . functional ) {
1464- // register for functional component in vue file
1465- var originalRender = options . render ;
1466-
1467- options . render = function renderWithStyleInjection ( h , context ) {
1468- hook . call ( context ) ;
1469- return originalRender ( h , context ) ;
1470- } ;
1471- } else {
1472- // inject component registration as beforeCreate hook
1473- var existing = options . beforeCreate ;
1474- options . beforeCreate = existing ? [ ] . concat ( existing , hook ) : [ hook ] ;
1475- }
1476- }
1477-
1478- return script ;
1396+ function normalizeComponent ( template , style , script , scopeId , isFunctionalTemplate , moduleIdentifier /* server only */ , shadowMode , createInjector , createInjectorSSR , createInjectorShadow ) {
1397+ if ( typeof shadowMode !== 'boolean' ) {
1398+ createInjectorSSR = createInjector ;
1399+ createInjector = shadowMode ;
1400+ shadowMode = false ;
1401+ }
1402+ // Vue.extend constructor export interop.
1403+ var options = typeof script === 'function' ? script . options : script ;
1404+ // render functions
1405+ if ( template && template . render ) {
1406+ options . render = template . render ;
1407+ options . staticRenderFns = template . staticRenderFns ;
1408+ options . _compiled = true ;
1409+ // functional template
1410+ if ( isFunctionalTemplate ) {
1411+ options . functional = true ;
1412+ }
1413+ }
1414+ // scopedId
1415+ if ( scopeId ) {
1416+ options . _scopeId = scopeId ;
1417+ }
1418+ let hook ;
1419+ if ( moduleIdentifier ) {
1420+ // server build
1421+ hook = function ( context ) {
1422+ // 2.3 injection
1423+ context =
1424+ context || // cached call
1425+ ( this . $vnode && this . $vnode . ssrContext ) || // stateful
1426+ ( this . parent && this . parent . $vnode && this . parent . $vnode . ssrContext ) ; // functional
1427+ // 2.2 with runInNewContext: true
1428+ if ( ! context && typeof __VUE_SSR_CONTEXT__ !== 'undefined' ) {
1429+ context = __VUE_SSR_CONTEXT__ ;
1430+ }
1431+ // inject component styles
1432+ if ( style ) {
1433+ style . call ( this , createInjectorSSR ( context ) ) ;
1434+ }
1435+ // register component module identifier for async chunk inference
1436+ if ( context && context . _registeredComponents ) {
1437+ context . _registeredComponents . add ( moduleIdentifier ) ;
1438+ }
1439+ } ;
1440+ // used by ssr in case component is cached and beforeCreate
1441+ // never gets called
1442+ options . _ssrRegister = hook ;
1443+ }
1444+ else if ( style ) {
1445+ hook = shadowMode
1446+ ? function ( context ) {
1447+ style . call ( this , createInjectorShadow ( context , this . $root . $options . shadowRoot ) ) ;
1448+ }
1449+ : function ( context ) {
1450+ style . call ( this , createInjector ( context ) ) ;
1451+ } ;
1452+ }
1453+ if ( hook ) {
1454+ if ( options . functional ) {
1455+ // register for functional component in vue file
1456+ var originalRender = options . render ;
1457+ options . render = function renderWithStyleInjection ( h , context ) {
1458+ hook . call ( context ) ;
1459+ return originalRender ( h , context ) ;
1460+ } ;
1461+ }
1462+ else {
1463+ // inject component registration as beforeCreate hook
1464+ var existing = options . beforeCreate ;
1465+ options . beforeCreate = existing ? [ ] . concat ( existing , hook ) : [ hook ] ;
1466+ }
1467+ }
1468+ return script ;
14791469}
14801470
1481- var normalizeComponent_1 = normalizeComponent ;
1482-
14831471/* script */ var __vue_script__ = script ;
14841472/* template */
14851473var __vue_render__ = function ( ) {
@@ -1619,15 +1607,19 @@ __vue_render__._withStripped = true;
16191607
16201608 /* style inject SSR */
16211609
1610+ /* style inject shadow dom */
1611+
16221612
16231613
1624- var ElTreeNode = normalizeComponent_1 (
1614+ var __vue_component__ = /*#__PURE__*/ normalizeComponent (
16251615 { render : __vue_render__ , staticRenderFns : __vue_staticRenderFns__ } ,
16261616 __vue_inject_styles__ ,
16271617 __vue_script__ ,
16281618 __vue_scope_id__ ,
16291619 __vue_is_functional_template__ ,
16301620 __vue_module_identifier__ ,
1621+ false ,
1622+ undefined ,
16311623 undefined ,
16321624 undefined
16331625 ) ;
@@ -1637,7 +1629,7 @@ var script$1 = {
16371629 name : 'ElTree' ,
16381630 mixins : [ emitter ] ,
16391631 components : {
1640- ElTreeNode : ElTreeNode
1632+ ElTreeNode : __vue_component__
16411633 } ,
16421634 data : function data ( ) {
16431635 return {
@@ -2171,15 +2163,19 @@ __vue_render__$1._withStripped = true;
21712163
21722164 /* style inject SSR */
21732165
2166+ /* style inject shadow dom */
2167+
21742168
21752169
2176- var OrgTree = normalizeComponent_1 (
2170+ var __vue_component__$1 = /*#__PURE__*/ normalizeComponent (
21772171 { render : __vue_render__$1 , staticRenderFns : __vue_staticRenderFns__$1 } ,
21782172 __vue_inject_styles__$1 ,
21792173 __vue_script__$1 ,
21802174 __vue_scope_id__$1 ,
21812175 __vue_is_functional_template__$1 ,
21822176 __vue_module_identifier__$1 ,
2177+ false ,
2178+ undefined ,
21832179 undefined ,
21842180 undefined
21852181 ) ;
@@ -2190,13 +2186,13 @@ function install(Vue) {
21902186 }
21912187
21922188 install . installed = true ;
2193- Vue . component ( OrgTree . name , OrgTree ) ;
2189+ Vue . component ( __vue_component__$1 . name , __vue_component__$1 ) ;
21942190}
2195- OrgTree . install = install ;
2191+ __vue_component__$1 . install = install ;
21962192
21972193if ( typeof window !== 'undefined' && window . Vue ) {
2198- window . Vue . use ( OrgTree ) ;
2194+ window . Vue . use ( __vue_component__$1 ) ;
21992195}
22002196
2201- exports . default = OrgTree ;
2197+ exports . default = __vue_component__$1 ;
22022198exports . install = install ;
0 commit comments