Skip to content

Commit

Permalink
feat(): 更新yarn包
Browse files Browse the repository at this point in the history
  • Loading branch information
wangdabaoqq committed Dec 17, 2020
1 parent 89bb227 commit 620dd09
Show file tree
Hide file tree
Showing 8 changed files with 4,916 additions and 6,171 deletions.
188 changes: 92 additions & 96 deletions lib/drag-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
Object.defineProperty(exports, '__esModule', { value: true });

function _typeof(obj) {
"@babel/helpers - typeof";

if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
_typeof = function (obj) {
return typeof obj;
Expand Down Expand Up @@ -210,9 +212,7 @@ var getPropertyFromData = function getPropertyFromData(node, prop) {

var nodeIdSeed = 0;

var Node =
/*#__PURE__*/
function () {
var Node = /*#__PURE__*/function () {
function Node(options) {
_classCallCheck(this, Node);

Expand Down Expand Up @@ -732,9 +732,7 @@ function () {
return Node;
}();

var TreeStore =
/*#__PURE__*/
function () {
var TreeStore = /*#__PURE__*/function () {
function TreeStore(options) {
var _this = this;

Expand Down Expand Up @@ -1395,91 +1393,81 @@ var script = {
}
};

function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
/* server only */
, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
if (typeof shadowMode !== 'boolean') {
createInjectorSSR = createInjector;
createInjector = shadowMode;
shadowMode = false;
} // Vue.extend constructor export interop.


var options = typeof script === 'function' ? script.options : script; // render functions

if (template && template.render) {
options.render = template.render;
options.staticRenderFns = template.staticRenderFns;
options._compiled = true; // functional template

if (isFunctionalTemplate) {
options.functional = true;
}
} // scopedId


if (scopeId) {
options._scopeId = scopeId;
}

var hook;

if (moduleIdentifier) {
// server build
hook = function hook(context) {
// 2.3 injection
context = context || // cached call
this.$vnode && this.$vnode.ssrContext || // stateful
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
// 2.2 with runInNewContext: true

if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
context = __VUE_SSR_CONTEXT__;
} // inject component styles


if (style) {
style.call(this, createInjectorSSR(context));
} // register component module identifier for async chunk inference


if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier);
}
}; // used by ssr in case component is cached and beforeCreate
// never gets called


options._ssrRegister = hook;
} else if (style) {
hook = shadowMode ? function () {
style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
} : function (context) {
style.call(this, createInjector(context));
};
}

if (hook) {
if (options.functional) {
// register for functional component in vue file
var originalRender = options.render;

options.render = function renderWithStyleInjection(h, context) {
hook.call(context);
return originalRender(h, context);
};
} else {
// inject component registration as beforeCreate hook
var existing = options.beforeCreate;
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
}
}

return script;
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
if (typeof shadowMode !== 'boolean') {
createInjectorSSR = createInjector;
createInjector = shadowMode;
shadowMode = false;
}
// Vue.extend constructor export interop.
var options = typeof script === 'function' ? script.options : script;
// render functions
if (template && template.render) {
options.render = template.render;
options.staticRenderFns = template.staticRenderFns;
options._compiled = true;
// functional template
if (isFunctionalTemplate) {
options.functional = true;
}
}
// scopedId
if (scopeId) {
options._scopeId = scopeId;
}
let hook;
if (moduleIdentifier) {
// server build
hook = function (context) {
// 2.3 injection
context =
context || // cached call
(this.$vnode && this.$vnode.ssrContext) || // stateful
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
// 2.2 with runInNewContext: true
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
context = __VUE_SSR_CONTEXT__;
}
// inject component styles
if (style) {
style.call(this, createInjectorSSR(context));
}
// register component module identifier for async chunk inference
if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier);
}
};
// used by ssr in case component is cached and beforeCreate
// never gets called
options._ssrRegister = hook;
}
else if (style) {
hook = shadowMode
? function (context) {
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
}
: function (context) {
style.call(this, createInjector(context));
};
}
if (hook) {
if (options.functional) {
// register for functional component in vue file
var originalRender = options.render;
options.render = function renderWithStyleInjection(h, context) {
hook.call(context);
return originalRender(h, context);
};
}
else {
// inject component registration as beforeCreate hook
var existing = options.beforeCreate;
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
}
}
return script;
}

var normalizeComponent_1 = normalizeComponent;

/* script */ var __vue_script__ = script;
/* template */
var __vue_render__ = function() {
Expand Down Expand Up @@ -1619,15 +1607,19 @@ __vue_render__._withStripped = true;

/* style inject SSR */

/* style inject shadow dom */



var ElTreeNode = normalizeComponent_1(
var __vue_component__ = /*#__PURE__*/normalizeComponent(
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
__vue_inject_styles__,
__vue_script__,
__vue_scope_id__,
__vue_is_functional_template__,
__vue_module_identifier__,
false,
undefined,
undefined,
undefined
);
Expand All @@ -1637,7 +1629,7 @@ var script$1 = {
name: 'ElTree',
mixins: [emitter],
components: {
ElTreeNode: ElTreeNode
ElTreeNode: __vue_component__
},
data: function data() {
return {
Expand Down Expand Up @@ -2171,15 +2163,19 @@ __vue_render__$1._withStripped = true;

/* style inject SSR */

/* style inject shadow dom */



var OrgTree = normalizeComponent_1(
var __vue_component__$1 = /*#__PURE__*/normalizeComponent(
{ render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
__vue_inject_styles__$1,
__vue_script__$1,
__vue_scope_id__$1,
__vue_is_functional_template__$1,
__vue_module_identifier__$1,
false,
undefined,
undefined,
undefined
);
Expand All @@ -2190,13 +2186,13 @@ function install(Vue) {
}

install.installed = true;
Vue.component(OrgTree.name, OrgTree);
Vue.component(__vue_component__$1.name, __vue_component__$1);
}
OrgTree.install = install;
__vue_component__$1.install = install;

if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(OrgTree);
window.Vue.use(__vue_component__$1);
}

exports.default = OrgTree;
exports.default = __vue_component__$1;
exports.install = install;
Loading

0 comments on commit 620dd09

Please sign in to comment.