Skip to content

Commit 9c05343

Browse files
committed
publish build
1 parent 48b6119 commit 9c05343

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+24354
-10219
lines changed

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

Lines changed: 1 addition & 1 deletion
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: 285 additions & 260 deletions
Large diffs are not rendered by default.

lib/better-scroll/better-scroll.min.js

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

lib/better-scroll/index.js

Lines changed: 43 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,17 @@ module.exports =
6161
/******/ __webpack_require__.p = "./";
6262
/******/
6363
/******/ // Load entry module and return exports
64-
/******/ return __webpack_require__(__webpack_require__.s = 131);
64+
/******/ return __webpack_require__(__webpack_require__.s = 156);
6565
/******/ })
6666
/************************************************************************/
6767
/******/ ({
6868

69-
/***/ 131:
69+
/***/ 156:
7070
/***/ (function(module, exports, __webpack_require__) {
7171

7272
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
7373
if (true) {
74-
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(52)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
74+
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(54)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
7575
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
7676
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
7777
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
@@ -105,13 +105,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
105105

106106
/***/ }),
107107

108-
/***/ 52:
108+
/***/ 54:
109109
/***/ (function(module, __webpack_exports__, __webpack_require__) {
110110

111111
"use strict";
112112
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
113113
/*!
114-
* better-normal-scroll v1.8.0
114+
* better-normal-scroll v1.8.1
115115
* (c) 2016-2018 ustbhuangyi
116116
* Released under the MIT License.
117117
*/
@@ -236,10 +236,11 @@ function eventMixin(BScroll) {
236236
};
237237
}
238238

239-
var ua = navigator.userAgent.toLowerCase();
240-
241-
var isWeChatDevTools = /wechatdevtools/.test(ua);
242-
var isAndroid = ua.indexOf('android') > 0;
239+
// ssr support
240+
var inBrowser = typeof window !== 'undefined';
241+
var ua = inBrowser && navigator.userAgent.toLowerCase();
242+
var isWeChatDevTools = ua && /wechatdevtools/.test(ua);
243+
var isAndroid = ua && ua.indexOf('android') > 0;
243244

244245
function getNow() {
245246
return window.performance && window.performance.now ? window.performance.now() + window.performance.timing.navigationStart : +new Date();
@@ -259,9 +260,16 @@ function extend(target) {
259260
return target;
260261
}
261262

262-
var elementStyle = document.createElement('div').style;
263+
function isUndef(v) {
264+
return v === undefined || v === null;
265+
}
266+
267+
var elementStyle = inBrowser && document.createElement('div').style;
263268

264269
var vendor = function () {
270+
if (!inBrowser) {
271+
return false;
272+
}
265273
var transformNames = {
266274
webkit: 'webkitTransform',
267275
Moz: 'MozTransform',
@@ -320,11 +328,11 @@ function offset(el) {
320328

321329
var transform = prefixStyle('transform');
322330

323-
var hasPerspective = prefixStyle('perspective') in elementStyle;
331+
var hasPerspective = inBrowser && prefixStyle('perspective') in elementStyle;
324332
// fix issue #361
325-
var hasTouch = 'ontouchstart' in window || isWeChatDevTools;
333+
var hasTouch = inBrowser && ('ontouchstart' in window || isWeChatDevTools);
326334
var hasTransform = transform !== false;
327-
var hasTransition = prefixStyle('transition') in elementStyle;
335+
var hasTransition = inBrowser && prefixStyle('transition') in elementStyle;
328336

329337
var style = {
330338
transform: transform,
@@ -924,7 +932,13 @@ function momentum(current, start, time, lowerMargin, wrapperSize, options) {
924932

925933
var DEFAULT_INTERVAL = 100 / 60;
926934

935+
function noop() {}
936+
927937
var requestAnimationFrame = function () {
938+
if (!inBrowser) {
939+
/* istanbul ignore if */
940+
return noop;
941+
}
928942
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame ||
929943
// if all else fails, use setTimeout
930944
function (callback) {
@@ -933,6 +947,10 @@ var requestAnimationFrame = function () {
933947
}();
934948

935949
var cancelAnimationFrame = function () {
950+
if (!inBrowser) {
951+
/* istanbul ignore if */
952+
return noop;
953+
}
936954
return window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || window.oCancelAnimationFrame || function (id) {
937955
window.clearTimeout(id);
938956
};
@@ -943,6 +961,16 @@ var DIRECTION_DOWN = -1;
943961
var DIRECTION_LEFT = 1;
944962
var DIRECTION_RIGHT = -1;
945963

964+
function warn(msg) {
965+
console.error('[BScroll warn]: ' + msg);
966+
}
967+
968+
function assert(condition, msg) {
969+
if (!condition) {
970+
throw new Error('[BScroll] ' + msg);
971+
}
972+
}
973+
946974
function coreMixin(BScroll) {
947975
BScroll.prototype._start = function (e) {
948976
var _eventType = eventType[e.type];
@@ -1335,6 +1363,7 @@ function coreMixin(BScroll) {
13351363
};
13361364

13371365
BScroll.prototype._translate = function (x, y) {
1366+
assert(!isUndef(x) && !isUndef(y), 'Oops! translate x or y is null or undefined. please check your code.');
13381367
if (this.options.useTransform) {
13391368
this.scrollerStyle[style.transform] = 'translate(' + x + 'px,' + y + 'px)' + this.translateZ;
13401369
} else {
@@ -1884,10 +1913,6 @@ function snapMixin(BScroll) {
18841913
};
18851914
}
18861915

1887-
function warn(msg) {
1888-
console.error("[BScroll warn]: " + msg);
1889-
}
1890-
18911916
function wheelMixin(BScroll) {
18921917
BScroll.prototype.wheelTo = function () {
18931918
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
@@ -2556,7 +2581,7 @@ pullDownMixin(BScroll);
25562581
pullUpMixin(BScroll);
25572582
mouseWheelMixin(BScroll);
25582583

2559-
BScroll.Version = '1.8.0';
2584+
BScroll.Version = '1.8.1';
25602585

25612586
/* harmony default export */ __webpack_exports__["default"] = (BScroll);
25622587

lib/button/button.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/button/index.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ module.exports =
6161
/******/ __webpack_require__.p = "./";
6262
/******/
6363
/******/ // Load entry module and return exports
64-
/******/ return __webpack_require__(__webpack_require__.s = 132);
64+
/******/ return __webpack_require__(__webpack_require__.s = 157);
6565
/******/ })
6666
/************************************************************************/
6767
/******/ ({
@@ -164,12 +164,12 @@ module.exports = function normalizeComponent (
164164

165165
/***/ }),
166166

167-
/***/ 132:
167+
/***/ 157:
168168
/***/ (function(module, exports, __webpack_require__) {
169169

170170
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
171171
if (true) {
172-
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(133)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
172+
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(158)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
173173
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
174174
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
175175
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
@@ -207,17 +207,17 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
207207

208208
/***/ }),
209209

210-
/***/ 133:
210+
/***/ 158:
211211
/***/ (function(module, exports, __webpack_require__) {
212212

213213
function injectStyle (ssrContext) {
214-
__webpack_require__(134)
214+
__webpack_require__(159)
215215
}
216216
var Component = __webpack_require__(1)(
217217
/* script */
218-
__webpack_require__(135),
218+
__webpack_require__(160),
219219
/* template */
220-
__webpack_require__(136),
220+
__webpack_require__(161),
221221
/* styles */
222222
injectStyle,
223223
/* scopeId */
@@ -231,14 +231,14 @@ module.exports = Component.exports
231231

232232
/***/ }),
233233

234-
/***/ 134:
234+
/***/ 159:
235235
/***/ (function(module, exports) {
236236

237237
// removed by extract-text-webpack-plugin
238238

239239
/***/ }),
240240

241-
/***/ 135:
241+
/***/ 160:
242242
/***/ (function(module, exports, __webpack_require__) {
243243

244244
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
@@ -330,7 +330,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
330330

331331
/***/ }),
332332

333-
/***/ 136:
333+
/***/ 161:
334334
/***/ (function(module, exports) {
335335

336336
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;

0 commit comments

Comments
 (0)