Skip to content

Commit

Permalink
build: package
Browse files Browse the repository at this point in the history
  • Loading branch information
dolymood committed Dec 4, 2019
1 parent 603dbde commit 620b2c6
Show file tree
Hide file tree
Showing 26 changed files with 171 additions and 301 deletions.
8 changes: 4 additions & 4 deletions lib/action-sheet/action-sheet.min.js

Large diffs are not rendered by default.

28 changes: 9 additions & 19 deletions lib/action-sheet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2600,8 +2600,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/**
* vue-create-api v0.2.0
* (c) 2018 ustbhuangyi
* vue-create-api v0.2.3
* (c) 2019 ustbhuangyi
* @license MIT
*/
var _extends = Object.assign || function (target) {
Expand Down Expand Up @@ -2646,10 +2646,6 @@ function isFunction(fn) {
return typeof fn === 'function';
}

function warn(msg) {
console.error("[vue-create-api warn]: " + msg);
}

function assert(condition, msg) {
if (!condition) {
throw new Error("[vue-create-api error]: " + msg);
Expand All @@ -2676,7 +2672,9 @@ function instantiateComponent(Vue, Component, data, renderFn, options) {
},
destroy: function destroy() {
this.$destroy();
document.body.removeChild(this.$el);
if (this.$el && this.$el.parentNode === document.body) {
document.body.removeChild(this.$el);
}
}
}
}));
Expand Down Expand Up @@ -2761,19 +2759,19 @@ function apiCreator(Component) {
}
singleMap[ownerInsUid] = null;
}
originRemove && originRemove.call(this);
originRemove && originRemove.apply(this, arguments);
instance.destroy();
};

var originShow = component.show;
component.show = function () {
originShow && originShow.call(this);
originShow && originShow.apply(this, arguments);
return this;
};

var originHide = component.hide;
component.hide = function () {
originHide && originHide.call(this);
originHide && originHide.apply(this, arguments);
return this;
};

Expand Down Expand Up @@ -2906,16 +2904,8 @@ function apiCreator(Component) {
return api;
}

var installed = false;

function install(Vue) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

if (installed) {
warn('[vue-create-api] already installed. Vue.use(CreateAPI) should be called only once.');
return;
}
installed = true;
var _options$componentPre = options.componentPrefix,
componentPrefix = _options$componentPre === undefined ? '' : _options$componentPre,
_options$apiPrefix = options.apiPrefix,
Expand Down Expand Up @@ -2952,7 +2942,7 @@ function processComponentName(Component, options) {
var index = {
install: install,
instantiateComponent: instantiateComponent,
version: '0.2.0'
version: '0.2.3'
};

/* harmony default export */ __webpack_exports__["default"] = (index);
Expand Down
8 changes: 4 additions & 4 deletions lib/cascade-picker/cascade-picker.min.js

Large diffs are not rendered by default.

28 changes: 9 additions & 19 deletions lib/cascade-picker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6031,8 +6031,8 @@ module.exports = function (exec, skipClosing) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/**
* vue-create-api v0.2.0
* (c) 2018 ustbhuangyi
* vue-create-api v0.2.3
* (c) 2019 ustbhuangyi
* @license MIT
*/
var _extends = Object.assign || function (target) {
Expand Down Expand Up @@ -6077,10 +6077,6 @@ function isFunction(fn) {
return typeof fn === 'function';
}

function warn(msg) {
console.error("[vue-create-api warn]: " + msg);
}

function assert(condition, msg) {
if (!condition) {
throw new Error("[vue-create-api error]: " + msg);
Expand All @@ -6107,7 +6103,9 @@ function instantiateComponent(Vue, Component, data, renderFn, options) {
},
destroy: function destroy() {
this.$destroy();
document.body.removeChild(this.$el);
if (this.$el && this.$el.parentNode === document.body) {
document.body.removeChild(this.$el);
}
}
}
}));
Expand Down Expand Up @@ -6192,19 +6190,19 @@ function apiCreator(Component) {
}
singleMap[ownerInsUid] = null;
}
originRemove && originRemove.call(this);
originRemove && originRemove.apply(this, arguments);
instance.destroy();
};

var originShow = component.show;
component.show = function () {
originShow && originShow.call(this);
originShow && originShow.apply(this, arguments);
return this;
};

var originHide = component.hide;
component.hide = function () {
originHide && originHide.call(this);
originHide && originHide.apply(this, arguments);
return this;
};

Expand Down Expand Up @@ -6337,16 +6335,8 @@ function apiCreator(Component) {
return api;
}

var installed = false;

function install(Vue) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

if (installed) {
warn('[vue-create-api] already installed. Vue.use(CreateAPI) should be called only once.');
return;
}
installed = true;
var _options$componentPre = options.componentPrefix,
componentPrefix = _options$componentPre === undefined ? '' : _options$componentPre,
_options$apiPrefix = options.apiPrefix,
Expand Down Expand Up @@ -6383,7 +6373,7 @@ function processComponentName(Component, options) {
var index = {
install: install,
instantiateComponent: instantiateComponent,
version: '0.2.0'
version: '0.2.3'
};

/* harmony default export */ __webpack_exports__["default"] = (index);
Expand Down
8 changes: 4 additions & 4 deletions lib/create-api/create-api.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 9 additions & 19 deletions lib/create-api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/**
* vue-create-api v0.2.0
* (c) 2018 ustbhuangyi
* vue-create-api v0.2.3
* (c) 2019 ustbhuangyi
* @license MIT
*/
var _extends = Object.assign || function (target) {
Expand Down Expand Up @@ -210,10 +210,6 @@ function isFunction(fn) {
return typeof fn === 'function';
}

function warn(msg) {
console.error("[vue-create-api warn]: " + msg);
}

function assert(condition, msg) {
if (!condition) {
throw new Error("[vue-create-api error]: " + msg);
Expand All @@ -240,7 +236,9 @@ function instantiateComponent(Vue, Component, data, renderFn, options) {
},
destroy: function destroy() {
this.$destroy();
document.body.removeChild(this.$el);
if (this.$el && this.$el.parentNode === document.body) {
document.body.removeChild(this.$el);
}
}
}
}));
Expand Down Expand Up @@ -325,19 +323,19 @@ function apiCreator(Component) {
}
singleMap[ownerInsUid] = null;
}
originRemove && originRemove.call(this);
originRemove && originRemove.apply(this, arguments);
instance.destroy();
};

var originShow = component.show;
component.show = function () {
originShow && originShow.call(this);
originShow && originShow.apply(this, arguments);
return this;
};

var originHide = component.hide;
component.hide = function () {
originHide && originHide.call(this);
originHide && originHide.apply(this, arguments);
return this;
};

Expand Down Expand Up @@ -470,16 +468,8 @@ function apiCreator(Component) {
return api;
}

var installed = false;

function install(Vue) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

if (installed) {
warn('[vue-create-api] already installed. Vue.use(CreateAPI) should be called only once.');
return;
}
installed = true;
var _options$componentPre = options.componentPrefix,
componentPrefix = _options$componentPre === undefined ? '' : _options$componentPre,
_options$apiPrefix = options.apiPrefix,
Expand Down Expand Up @@ -516,7 +506,7 @@ function processComponentName(Component, options) {
var index = {
install: install,
instantiateComponent: instantiateComponent,
version: '0.2.0'
version: '0.2.3'
};

/* harmony default export */ __webpack_exports__["default"] = (index);
Expand Down
8 changes: 4 additions & 4 deletions lib/cube.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions lib/date-picker/date-picker.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 620b2c6

Please sign in to comment.