Skip to content

Commit 620b2c6

Browse files
committed
build: package
1 parent 603dbde commit 620b2c6

File tree

26 files changed

+171
-301
lines changed

26 files changed

+171
-301
lines changed

lib/action-sheet/action-sheet.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/action-sheet/index.js

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2600,8 +2600,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
26002600
"use strict";
26012601
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
26022602
/**
2603-
* vue-create-api v0.2.0
2604-
* (c) 2018 ustbhuangyi
2603+
* vue-create-api v0.2.3
2604+
* (c) 2019 ustbhuangyi
26052605
* @license MIT
26062606
*/
26072607
var _extends = Object.assign || function (target) {
@@ -2646,10 +2646,6 @@ function isFunction(fn) {
26462646
return typeof fn === 'function';
26472647
}
26482648

2649-
function warn(msg) {
2650-
console.error("[vue-create-api warn]: " + msg);
2651-
}
2652-
26532649
function assert(condition, msg) {
26542650
if (!condition) {
26552651
throw new Error("[vue-create-api error]: " + msg);
@@ -2676,7 +2672,9 @@ function instantiateComponent(Vue, Component, data, renderFn, options) {
26762672
},
26772673
destroy: function destroy() {
26782674
this.$destroy();
2679-
document.body.removeChild(this.$el);
2675+
if (this.$el && this.$el.parentNode === document.body) {
2676+
document.body.removeChild(this.$el);
2677+
}
26802678
}
26812679
}
26822680
}));
@@ -2761,19 +2759,19 @@ function apiCreator(Component) {
27612759
}
27622760
singleMap[ownerInsUid] = null;
27632761
}
2764-
originRemove && originRemove.call(this);
2762+
originRemove && originRemove.apply(this, arguments);
27652763
instance.destroy();
27662764
};
27672765

27682766
var originShow = component.show;
27692767
component.show = function () {
2770-
originShow && originShow.call(this);
2768+
originShow && originShow.apply(this, arguments);
27712769
return this;
27722770
};
27732771

27742772
var originHide = component.hide;
27752773
component.hide = function () {
2776-
originHide && originHide.call(this);
2774+
originHide && originHide.apply(this, arguments);
27772775
return this;
27782776
};
27792777

@@ -2906,16 +2904,8 @@ function apiCreator(Component) {
29062904
return api;
29072905
}
29082906

2909-
var installed = false;
2910-
29112907
function install(Vue) {
29122908
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2913-
2914-
if (installed) {
2915-
warn('[vue-create-api] already installed. Vue.use(CreateAPI) should be called only once.');
2916-
return;
2917-
}
2918-
installed = true;
29192909
var _options$componentPre = options.componentPrefix,
29202910
componentPrefix = _options$componentPre === undefined ? '' : _options$componentPre,
29212911
_options$apiPrefix = options.apiPrefix,
@@ -2952,7 +2942,7 @@ function processComponentName(Component, options) {
29522942
var index = {
29532943
install: install,
29542944
instantiateComponent: instantiateComponent,
2955-
version: '0.2.0'
2945+
version: '0.2.3'
29562946
};
29572947

29582948
/* harmony default export */ __webpack_exports__["default"] = (index);

lib/cascade-picker/cascade-picker.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/cascade-picker/index.js

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6031,8 +6031,8 @@ module.exports = function (exec, skipClosing) {
60316031
"use strict";
60326032
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
60336033
/**
6034-
* vue-create-api v0.2.0
6035-
* (c) 2018 ustbhuangyi
6034+
* vue-create-api v0.2.3
6035+
* (c) 2019 ustbhuangyi
60366036
* @license MIT
60376037
*/
60386038
var _extends = Object.assign || function (target) {
@@ -6077,10 +6077,6 @@ function isFunction(fn) {
60776077
return typeof fn === 'function';
60786078
}
60796079

6080-
function warn(msg) {
6081-
console.error("[vue-create-api warn]: " + msg);
6082-
}
6083-
60846080
function assert(condition, msg) {
60856081
if (!condition) {
60866082
throw new Error("[vue-create-api error]: " + msg);
@@ -6107,7 +6103,9 @@ function instantiateComponent(Vue, Component, data, renderFn, options) {
61076103
},
61086104
destroy: function destroy() {
61096105
this.$destroy();
6110-
document.body.removeChild(this.$el);
6106+
if (this.$el && this.$el.parentNode === document.body) {
6107+
document.body.removeChild(this.$el);
6108+
}
61116109
}
61126110
}
61136111
}));
@@ -6192,19 +6190,19 @@ function apiCreator(Component) {
61926190
}
61936191
singleMap[ownerInsUid] = null;
61946192
}
6195-
originRemove && originRemove.call(this);
6193+
originRemove && originRemove.apply(this, arguments);
61966194
instance.destroy();
61976195
};
61986196

61996197
var originShow = component.show;
62006198
component.show = function () {
6201-
originShow && originShow.call(this);
6199+
originShow && originShow.apply(this, arguments);
62026200
return this;
62036201
};
62046202

62056203
var originHide = component.hide;
62066204
component.hide = function () {
6207-
originHide && originHide.call(this);
6205+
originHide && originHide.apply(this, arguments);
62086206
return this;
62096207
};
62106208

@@ -6337,16 +6335,8 @@ function apiCreator(Component) {
63376335
return api;
63386336
}
63396337

6340-
var installed = false;
6341-
63426338
function install(Vue) {
63436339
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
6344-
6345-
if (installed) {
6346-
warn('[vue-create-api] already installed. Vue.use(CreateAPI) should be called only once.');
6347-
return;
6348-
}
6349-
installed = true;
63506340
var _options$componentPre = options.componentPrefix,
63516341
componentPrefix = _options$componentPre === undefined ? '' : _options$componentPre,
63526342
_options$apiPrefix = options.apiPrefix,
@@ -6383,7 +6373,7 @@ function processComponentName(Component, options) {
63836373
var index = {
63846374
install: install,
63856375
instantiateComponent: instantiateComponent,
6386-
version: '0.2.0'
6376+
version: '0.2.3'
63876377
};
63886378

63896379
/* harmony default export */ __webpack_exports__["default"] = (index);

lib/create-api/create-api.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/create-api/index.js

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
164164
"use strict";
165165
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
166166
/**
167-
* vue-create-api v0.2.0
168-
* (c) 2018 ustbhuangyi
167+
* vue-create-api v0.2.3
168+
* (c) 2019 ustbhuangyi
169169
* @license MIT
170170
*/
171171
var _extends = Object.assign || function (target) {
@@ -210,10 +210,6 @@ function isFunction(fn) {
210210
return typeof fn === 'function';
211211
}
212212

213-
function warn(msg) {
214-
console.error("[vue-create-api warn]: " + msg);
215-
}
216-
217213
function assert(condition, msg) {
218214
if (!condition) {
219215
throw new Error("[vue-create-api error]: " + msg);
@@ -240,7 +236,9 @@ function instantiateComponent(Vue, Component, data, renderFn, options) {
240236
},
241237
destroy: function destroy() {
242238
this.$destroy();
243-
document.body.removeChild(this.$el);
239+
if (this.$el && this.$el.parentNode === document.body) {
240+
document.body.removeChild(this.$el);
241+
}
244242
}
245243
}
246244
}));
@@ -325,19 +323,19 @@ function apiCreator(Component) {
325323
}
326324
singleMap[ownerInsUid] = null;
327325
}
328-
originRemove && originRemove.call(this);
326+
originRemove && originRemove.apply(this, arguments);
329327
instance.destroy();
330328
};
331329

332330
var originShow = component.show;
333331
component.show = function () {
334-
originShow && originShow.call(this);
332+
originShow && originShow.apply(this, arguments);
335333
return this;
336334
};
337335

338336
var originHide = component.hide;
339337
component.hide = function () {
340-
originHide && originHide.call(this);
338+
originHide && originHide.apply(this, arguments);
341339
return this;
342340
};
343341

@@ -470,16 +468,8 @@ function apiCreator(Component) {
470468
return api;
471469
}
472470

473-
var installed = false;
474-
475471
function install(Vue) {
476472
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
477-
478-
if (installed) {
479-
warn('[vue-create-api] already installed. Vue.use(CreateAPI) should be called only once.');
480-
return;
481-
}
482-
installed = true;
483473
var _options$componentPre = options.componentPrefix,
484474
componentPrefix = _options$componentPre === undefined ? '' : _options$componentPre,
485475
_options$apiPrefix = options.apiPrefix,
@@ -516,7 +506,7 @@ function processComponentName(Component, options) {
516506
var index = {
517507
install: install,
518508
instantiateComponent: instantiateComponent,
519-
version: '0.2.0'
509+
version: '0.2.3'
520510
};
521511

522512
/* harmony default export */ __webpack_exports__["default"] = (index);

lib/cube.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/date-picker/date-picker.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)