Skip to content

Commit

Permalink
publish build
Browse files Browse the repository at this point in the history
  • Loading branch information
AmyFoxFN committed Feb 22, 2018
1 parent 48b6119 commit 9c05343
Show file tree
Hide file tree
Showing 72 changed files with 24,354 additions and 10,219 deletions.
2 changes: 1 addition & 1 deletion lib/action-sheet/action-sheet.min.js

Large diffs are not rendered by default.

545 changes: 285 additions & 260 deletions lib/action-sheet/index.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions lib/better-scroll/better-scroll.min.js

Large diffs are not rendered by default.

61 changes: 43 additions & 18 deletions lib/better-scroll/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ module.exports =
/******/ __webpack_require__.p = "./";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 131);
/******/ return __webpack_require__(__webpack_require__.s = 156);
/******/ })
/************************************************************************/
/******/ ({

/***/ 131:
/***/ 156:
/***/ (function(module, exports, __webpack_require__) {

var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
if (true) {
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(52)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(54)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
Expand Down Expand Up @@ -105,13 +105,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_

/***/ }),

/***/ 52:
/***/ 54:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/*!
* better-normal-scroll v1.8.0
* better-normal-scroll v1.8.1
* (c) 2016-2018 ustbhuangyi
* Released under the MIT License.
*/
Expand Down Expand Up @@ -236,10 +236,11 @@ function eventMixin(BScroll) {
};
}

var ua = navigator.userAgent.toLowerCase();

var isWeChatDevTools = /wechatdevtools/.test(ua);
var isAndroid = ua.indexOf('android') > 0;
// ssr support
var inBrowser = typeof window !== 'undefined';
var ua = inBrowser && navigator.userAgent.toLowerCase();
var isWeChatDevTools = ua && /wechatdevtools/.test(ua);
var isAndroid = ua && ua.indexOf('android') > 0;

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

var elementStyle = document.createElement('div').style;
function isUndef(v) {
return v === undefined || v === null;
}

var elementStyle = inBrowser && document.createElement('div').style;

var vendor = function () {
if (!inBrowser) {
return false;
}
var transformNames = {
webkit: 'webkitTransform',
Moz: 'MozTransform',
Expand Down Expand Up @@ -320,11 +328,11 @@ function offset(el) {

var transform = prefixStyle('transform');

var hasPerspective = prefixStyle('perspective') in elementStyle;
var hasPerspective = inBrowser && prefixStyle('perspective') in elementStyle;
// fix issue #361
var hasTouch = 'ontouchstart' in window || isWeChatDevTools;
var hasTouch = inBrowser && ('ontouchstart' in window || isWeChatDevTools);
var hasTransform = transform !== false;
var hasTransition = prefixStyle('transition') in elementStyle;
var hasTransition = inBrowser && prefixStyle('transition') in elementStyle;

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

var DEFAULT_INTERVAL = 100 / 60;

function noop() {}

var requestAnimationFrame = function () {
if (!inBrowser) {
/* istanbul ignore if */
return noop;
}
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame ||
// if all else fails, use setTimeout
function (callback) {
Expand All @@ -933,6 +947,10 @@ var requestAnimationFrame = function () {
}();

var cancelAnimationFrame = function () {
if (!inBrowser) {
/* istanbul ignore if */
return noop;
}
return window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || window.oCancelAnimationFrame || function (id) {
window.clearTimeout(id);
};
Expand All @@ -943,6 +961,16 @@ var DIRECTION_DOWN = -1;
var DIRECTION_LEFT = 1;
var DIRECTION_RIGHT = -1;

function warn(msg) {
console.error('[BScroll warn]: ' + msg);
}

function assert(condition, msg) {
if (!condition) {
throw new Error('[BScroll] ' + msg);
}
}

function coreMixin(BScroll) {
BScroll.prototype._start = function (e) {
var _eventType = eventType[e.type];
Expand Down Expand Up @@ -1335,6 +1363,7 @@ function coreMixin(BScroll) {
};

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

function warn(msg) {
console.error("[BScroll warn]: " + msg);
}

function wheelMixin(BScroll) {
BScroll.prototype.wheelTo = function () {
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
Expand Down Expand Up @@ -2556,7 +2581,7 @@ pullDownMixin(BScroll);
pullUpMixin(BScroll);
mouseWheelMixin(BScroll);

BScroll.Version = '1.8.0';
BScroll.Version = '1.8.1';

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

Expand Down
2 changes: 1 addition & 1 deletion lib/button/button.min.js

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

20 changes: 10 additions & 10 deletions lib/button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module.exports =
/******/ __webpack_require__.p = "./";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 132);
/******/ return __webpack_require__(__webpack_require__.s = 157);
/******/ })
/************************************************************************/
/******/ ({
Expand Down Expand Up @@ -164,12 +164,12 @@ module.exports = function normalizeComponent (

/***/ }),

/***/ 132:
/***/ 157:
/***/ (function(module, exports, __webpack_require__) {

var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
if (true) {
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(133)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(158)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
Expand Down Expand Up @@ -207,17 +207,17 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_

/***/ }),

/***/ 133:
/***/ 158:
/***/ (function(module, exports, __webpack_require__) {

function injectStyle (ssrContext) {
__webpack_require__(134)
__webpack_require__(159)
}
var Component = __webpack_require__(1)(
/* script */
__webpack_require__(135),
__webpack_require__(160),
/* template */
__webpack_require__(136),
__webpack_require__(161),
/* styles */
injectStyle,
/* scopeId */
Expand All @@ -231,14 +231,14 @@ module.exports = Component.exports

/***/ }),

/***/ 134:
/***/ 159:
/***/ (function(module, exports) {

// removed by extract-text-webpack-plugin

/***/ }),

/***/ 135:
/***/ 160:
/***/ (function(module, exports, __webpack_require__) {

var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
Expand Down Expand Up @@ -330,7 +330,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_

/***/ }),

/***/ 136:
/***/ 161:
/***/ (function(module, exports) {

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

0 comments on commit 9c05343

Please sign in to comment.