app模板、应用模板、组件模板、widget模板
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2096 lines
58 KiB

4 years ago
  1. module.exports =
  2. /******/ (function(modules) { // webpackBootstrap
  3. /******/ // The module cache
  4. /******/ var installedModules = {};
  5. /******/
  6. /******/ // The require function
  7. /******/ function __webpack_require__(moduleId) {
  8. /******/
  9. /******/ // Check if module is in cache
  10. /******/ if(installedModules[moduleId]) {
  11. /******/ return installedModules[moduleId].exports;
  12. /******/ }
  13. /******/ // Create a new module (and put it into the cache)
  14. /******/ var module = installedModules[moduleId] = {
  15. /******/ i: moduleId,
  16. /******/ l: false,
  17. /******/ exports: {}
  18. /******/ };
  19. /******/
  20. /******/ // Execute the module function
  21. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  22. /******/
  23. /******/ // Flag the module as loaded
  24. /******/ module.l = true;
  25. /******/
  26. /******/ // Return the exports of the module
  27. /******/ return module.exports;
  28. /******/ }
  29. /******/
  30. /******/
  31. /******/ // expose the modules object (__webpack_modules__)
  32. /******/ __webpack_require__.m = modules;
  33. /******/
  34. /******/ // expose the module cache
  35. /******/ __webpack_require__.c = installedModules;
  36. /******/
  37. /******/ // define getter function for harmony exports
  38. /******/ __webpack_require__.d = function(exports, name, getter) {
  39. /******/ if(!__webpack_require__.o(exports, name)) {
  40. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  41. /******/ }
  42. /******/ };
  43. /******/
  44. /******/ // define __esModule on exports
  45. /******/ __webpack_require__.r = function(exports) {
  46. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  47. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  48. /******/ }
  49. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  50. /******/ };
  51. /******/
  52. /******/ // create a fake namespace object
  53. /******/ // mode & 1: value is a module id, require it
  54. /******/ // mode & 2: merge all properties of value into the ns
  55. /******/ // mode & 4: return value when already ns object
  56. /******/ // mode & 8|1: behave like require
  57. /******/ __webpack_require__.t = function(value, mode) {
  58. /******/ if(mode & 1) value = __webpack_require__(value);
  59. /******/ if(mode & 8) return value;
  60. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  61. /******/ var ns = Object.create(null);
  62. /******/ __webpack_require__.r(ns);
  63. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  64. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  65. /******/ return ns;
  66. /******/ };
  67. /******/
  68. /******/ // getDefaultExport function for compatibility with non-harmony modules
  69. /******/ __webpack_require__.n = function(module) {
  70. /******/ var getter = module && module.__esModule ?
  71. /******/ function getDefault() { return module['default']; } :
  72. /******/ function getModuleExports() { return module; };
  73. /******/ __webpack_require__.d(getter, 'a', getter);
  74. /******/ return getter;
  75. /******/ };
  76. /******/
  77. /******/ // Object.prototype.hasOwnProperty.call
  78. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  79. /******/
  80. /******/ // __webpack_public_path__
  81. /******/ __webpack_require__.p = "/dist/";
  82. /******/
  83. /******/
  84. /******/ // Load entry module and return exports
  85. /******/ return __webpack_require__(__webpack_require__.s = 402);
  86. /******/ })
  87. /************************************************************************/
  88. /******/ ({
  89. /***/ 0:
  90. /***/ (function(module, exports, __webpack_require__) {
  91. "use strict";
  92. var _interopRequireDefault = __webpack_require__(1);
  93. exports.__esModule = true;
  94. exports.noop = noop;
  95. exports.isDef = isDef;
  96. exports.isFunction = isFunction;
  97. exports.isObject = isObject;
  98. exports.isPromise = isPromise;
  99. exports.get = get;
  100. exports.isServer = exports.inBrowser = exports.addUnit = exports.createNamespace = void 0;
  101. var _vue = _interopRequireDefault(__webpack_require__(4));
  102. var _create = __webpack_require__(24);
  103. exports.createNamespace = _create.createNamespace;
  104. var _unit = __webpack_require__(20);
  105. exports.addUnit = _unit.addUnit;
  106. var inBrowser = typeof window !== 'undefined';
  107. exports.inBrowser = inBrowser;
  108. var isServer = _vue.default.prototype.$isServer; // eslint-disable-next-line @typescript-eslint/no-empty-function
  109. exports.isServer = isServer;
  110. function noop() {}
  111. function isDef(val) {
  112. return val !== undefined && val !== null;
  113. }
  114. function isFunction(val) {
  115. return typeof val === 'function';
  116. }
  117. function isObject(val) {
  118. return val !== null && typeof val === 'object';
  119. }
  120. function isPromise(val) {
  121. return isObject(val) && isFunction(val.then) && isFunction(val.catch);
  122. }
  123. function get(object, path) {
  124. var keys = path.split('.');
  125. var result = object;
  126. keys.forEach(function (key) {
  127. var _result$key;
  128. result = (_result$key = result[key]) != null ? _result$key : '';
  129. });
  130. return result;
  131. }
  132. /***/ }),
  133. /***/ 1:
  134. /***/ (function(module, exports) {
  135. function _interopRequireDefault(obj) {
  136. return obj && obj.__esModule ? obj : {
  137. "default": obj
  138. };
  139. }
  140. module.exports = _interopRequireDefault;
  141. /***/ }),
  142. /***/ 11:
  143. /***/ (function(module, exports, __webpack_require__) {
  144. "use strict";
  145. var _interopRequireDefault = __webpack_require__(1);
  146. exports.__esModule = true;
  147. exports.default = void 0;
  148. var _vue = _interopRequireDefault(__webpack_require__(4));
  149. var _deepAssign = __webpack_require__(21);
  150. var _zhCN = _interopRequireDefault(__webpack_require__(27));
  151. var proto = _vue.default.prototype;
  152. var defineReactive = _vue.default.util.defineReactive;
  153. defineReactive(proto, '$vantLang', 'zh-CN');
  154. defineReactive(proto, '$vantMessages', {
  155. 'zh-CN': _zhCN.default
  156. });
  157. var _default = {
  158. messages: function messages() {
  159. return proto.$vantMessages[proto.$vantLang];
  160. },
  161. use: function use(lang, messages) {
  162. var _this$add;
  163. proto.$vantLang = lang;
  164. this.add((_this$add = {}, _this$add[lang] = messages, _this$add));
  165. },
  166. add: function add(messages) {
  167. if (messages === void 0) {
  168. messages = {};
  169. }
  170. (0, _deepAssign.deepAssign)(proto.$vantMessages, messages);
  171. }
  172. };
  173. exports.default = _default;
  174. /***/ }),
  175. /***/ 12:
  176. /***/ (function(module, exports) {
  177. /**
  178. * When source maps are enabled, `style-loader` uses a link element with a data-uri to
  179. * embed the css on the page. This breaks all relative urls because now they are relative to a
  180. * bundle instead of the current page.
  181. *
  182. * One solution is to only use full urls, but that may be impossible.
  183. *
  184. * Instead, this function "fixes" the relative urls to be absolute according to the current page location.
  185. *
  186. * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
  187. *
  188. */
  189. module.exports = function (css) {
  190. // get current location
  191. var location = typeof window !== "undefined" && window.location;
  192. if (!location) {
  193. throw new Error("fixUrls requires window.location");
  194. }
  195. // blank or null?
  196. if (!css || typeof css !== "string") {
  197. return css;
  198. }
  199. var baseUrl = location.protocol + "//" + location.host;
  200. var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
  201. // convert each url(...)
  202. /*
  203. This regular expression is just a way to recursively match brackets within
  204. a string.
  205. /url\s*\( = Match on the word "url" with any whitespace after it and then a parens
  206. ( = Start a capturing group
  207. (?: = Start a non-capturing group
  208. [^)(] = Match anything that isn't a parentheses
  209. | = OR
  210. \( = Match a start parentheses
  211. (?: = Start another non-capturing groups
  212. [^)(]+ = Match anything that isn't a parentheses
  213. | = OR
  214. \( = Match a start parentheses
  215. [^)(]* = Match anything that isn't a parentheses
  216. \) = Match a end parentheses
  217. ) = End Group
  218. *\) = Match anything and then a close parens
  219. ) = Close non-capturing group
  220. * = Match anything
  221. ) = Close capturing group
  222. \) = Match a close parens
  223. /gi = Get all matches, not the first. Be case insensitive.
  224. */
  225. var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
  226. // strip quotes (if they exist)
  227. var unquotedOrigUrl = origUrl
  228. .trim()
  229. .replace(/^"(.*)"$/, function(o, $1){ return $1; })
  230. .replace(/^'(.*)'$/, function(o, $1){ return $1; });
  231. // already a full url? no change
  232. if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
  233. return fullMatch;
  234. }
  235. // convert the url to a full url
  236. var newUrl;
  237. if (unquotedOrigUrl.indexOf("//") === 0) {
  238. //TODO: should we add protocol?
  239. newUrl = unquotedOrigUrl;
  240. } else if (unquotedOrigUrl.indexOf("/") === 0) {
  241. // path should be relative to the base url
  242. newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
  243. } else {
  244. // path should be relative to current directory
  245. newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
  246. }
  247. // send back the fixed url(...)
  248. return "url(" + JSON.stringify(newUrl) + ")";
  249. });
  250. // send back the fixed css
  251. return fixedCss;
  252. };
  253. /***/ }),
  254. /***/ 127:
  255. /***/ (function(module, exports, __webpack_require__) {
  256. "use strict";
  257. exports.__esModule = true;
  258. exports.resetScroll = resetScroll;
  259. var _system = __webpack_require__(128);
  260. var _scroll = __webpack_require__(53);
  261. /**
  262. * Hack for iOS12 page scroll
  263. * https://developers.weixin.qq.com/community/develop/doc/00044ae90742f8c82fb78fcae56800
  264. */
  265. var isIOS = (0, _system.isIOS)();
  266. /* istanbul ignore next */
  267. function resetScroll() {
  268. if (isIOS) {
  269. (0, _scroll.setRootScrollTop)((0, _scroll.getRootScrollTop)());
  270. }
  271. }
  272. /***/ }),
  273. /***/ 128:
  274. /***/ (function(module, exports, __webpack_require__) {
  275. "use strict";
  276. exports.__esModule = true;
  277. exports.isAndroid = isAndroid;
  278. exports.isIOS = isIOS;
  279. var _ = __webpack_require__(0);
  280. function isAndroid() {
  281. /* istanbul ignore next */
  282. return _.isServer ? false : /android/.test(navigator.userAgent.toLowerCase());
  283. }
  284. function isIOS() {
  285. /* istanbul ignore next */
  286. return _.isServer ? false : /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());
  287. }
  288. /***/ }),
  289. /***/ 16:
  290. /***/ (function(module, exports, __webpack_require__) {
  291. "use strict";
  292. function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}var normalMerge=["attrs","props","domProps"],toArrayMerge=["class","style","directives"],functionalMerge=["on","nativeOn"],mergeJsxProps=function(a){return a.reduce(function(c,a){for(var b in a)if(!c[b])c[b]=a[b];else if(-1!==normalMerge.indexOf(b))c[b]=_extends({},c[b],a[b]);else if(-1!==toArrayMerge.indexOf(b)){var d=c[b]instanceof Array?c[b]:[c[b]],e=a[b]instanceof Array?a[b]:[a[b]];c[b]=d.concat(e)}else if(-1!==functionalMerge.indexOf(b)){for(var f in a[b])if(c[b][f]){var g=c[b][f]instanceof Array?c[b][f]:[c[b][f]],h=a[b][f]instanceof Array?a[b][f]:[a[b][f]];c[b][f]=g.concat(h)}else c[b][f]=a[b][f];}else if("hook"==b)for(var i in a[b])c[b][i]=c[b][i]?mergeFn(c[b][i],a[b][i]):a[b][i];else c[b]=a[b];return c},{})},mergeFn=function(a,b){return function(){a&&a.apply(this,arguments),b&&b.apply(this,arguments)}};module.exports=mergeJsxProps;
  293. /***/ }),
  294. /***/ 19:
  295. /***/ (function(module, exports, __webpack_require__) {
  296. "use strict";
  297. exports.__esModule = true;
  298. exports.isNumeric = isNumeric;
  299. exports.isNaN = isNaN;
  300. function isNumeric(val) {
  301. return /^\d+(\.\d+)?$/.test(val);
  302. }
  303. function isNaN(val) {
  304. if (Number.isNaN) {
  305. return Number.isNaN(val);
  306. } // eslint-disable-next-line no-self-compare
  307. return val !== val;
  308. }
  309. /***/ }),
  310. /***/ 20:
  311. /***/ (function(module, exports, __webpack_require__) {
  312. "use strict";
  313. exports.__esModule = true;
  314. exports.addUnit = addUnit;
  315. exports.unitToPx = unitToPx;
  316. var _ = __webpack_require__(0);
  317. var _number = __webpack_require__(19);
  318. function addUnit(value) {
  319. if (!(0, _.isDef)(value)) {
  320. return undefined;
  321. }
  322. value = String(value);
  323. return (0, _number.isNumeric)(value) ? value + "px" : value;
  324. } // cache
  325. var rootFontSize;
  326. function getRootFontSize() {
  327. if (!rootFontSize) {
  328. var doc = document.documentElement;
  329. var fontSize = doc.style.fontSize || window.getComputedStyle(doc).fontSize;
  330. rootFontSize = parseFloat(fontSize);
  331. }
  332. return rootFontSize;
  333. }
  334. function convertRem(value) {
  335. value = value.replace(/rem/g, '');
  336. return +value * getRootFontSize();
  337. }
  338. function convertVw(value) {
  339. value = value.replace(/vw/g, '');
  340. return +value * window.innerWidth / 100;
  341. }
  342. function convertVh(value) {
  343. value = value.replace(/vh/g, '');
  344. return +value * window.innerHeight / 100;
  345. }
  346. function unitToPx(value) {
  347. if (typeof value === 'number') {
  348. return value;
  349. }
  350. if (_.inBrowser) {
  351. if (value.indexOf('rem') !== -1) {
  352. return convertRem(value);
  353. }
  354. if (value.indexOf('vw') !== -1) {
  355. return convertVw(value);
  356. }
  357. if (value.indexOf('vh') !== -1) {
  358. return convertVh(value);
  359. }
  360. }
  361. return parseFloat(value);
  362. }
  363. /***/ }),
  364. /***/ 21:
  365. /***/ (function(module, exports, __webpack_require__) {
  366. "use strict";
  367. exports.__esModule = true;
  368. exports.deepAssign = deepAssign;
  369. var _ = __webpack_require__(0);
  370. var hasOwnProperty = Object.prototype.hasOwnProperty;
  371. function assignKey(to, from, key) {
  372. var val = from[key];
  373. if (!(0, _.isDef)(val)) {
  374. return;
  375. }
  376. if (!hasOwnProperty.call(to, key) || !(0, _.isObject)(val)) {
  377. to[key] = val;
  378. } else {
  379. // eslint-disable-next-line @typescript-eslint/no-use-before-define
  380. to[key] = deepAssign(Object(to[key]), from[key]);
  381. }
  382. }
  383. function deepAssign(to, from) {
  384. Object.keys(from).forEach(function (key) {
  385. assignKey(to, from, key);
  386. });
  387. return to;
  388. }
  389. /***/ }),
  390. /***/ 22:
  391. /***/ (function(module, exports, __webpack_require__) {
  392. var content = __webpack_require__(23);
  393. if(typeof content === 'string') content = [[module.i, content, '']];
  394. var transform;
  395. var insertInto;
  396. var options = {"hmr":true}
  397. options.transform = transform
  398. options.insertInto = undefined;
  399. var update = __webpack_require__(6)(content, options);
  400. if(content.locals) module.exports = content.locals;
  401. if(false) {}
  402. /***/ }),
  403. /***/ 220:
  404. /***/ (function(module, exports, __webpack_require__) {
  405. "use strict";
  406. var _interopRequireDefault = __webpack_require__(1);
  407. exports.__esModule = true;
  408. exports.default = void 0;
  409. var _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(16));
  410. var _utils = __webpack_require__(0);
  411. var _resetScroll = __webpack_require__(127);
  412. var _event = __webpack_require__(30);
  413. var _number = __webpack_require__(81);
  414. var _number2 = __webpack_require__(19);
  415. var _field = __webpack_require__(92);
  416. var _createNamespace = (0, _utils.createNamespace)('stepper'),
  417. createComponent = _createNamespace[0],
  418. bem = _createNamespace[1];
  419. var LONG_PRESS_START_TIME = 600;
  420. var LONG_PRESS_INTERVAL = 200;
  421. function equal(value1, value2) {
  422. return String(value1) === String(value2);
  423. } // add num and avoid float number
  424. function add(num1, num2) {
  425. var cardinal = Math.pow(10, 10);
  426. return Math.round((num1 + num2) * cardinal) / cardinal;
  427. }
  428. var _default = createComponent({
  429. mixins: [_field.FieldMixin],
  430. props: {
  431. value: null,
  432. theme: String,
  433. integer: Boolean,
  434. disabled: Boolean,
  435. allowEmpty: Boolean,
  436. inputWidth: [Number, String],
  437. buttonSize: [Number, String],
  438. asyncChange: Boolean,
  439. placeholder: String,
  440. disablePlus: Boolean,
  441. disableMinus: Boolean,
  442. disableInput: Boolean,
  443. decimalLength: [Number, String],
  444. name: {
  445. type: [Number, String],
  446. default: ''
  447. },
  448. min: {
  449. type: [Number, String],
  450. default: 1
  451. },
  452. max: {
  453. type: [Number, String],
  454. default: Infinity
  455. },
  456. step: {
  457. type: [Number, String],
  458. default: 1
  459. },
  460. defaultValue: {
  461. type: [Number, String],
  462. default: 1
  463. },
  464. showPlus: {
  465. type: Boolean,
  466. default: true
  467. },
  468. showMinus: {
  469. type: Boolean,
  470. default: true
  471. },
  472. showInput: {
  473. type: Boolean,
  474. default: true
  475. },
  476. longPress: {
  477. type: Boolean,
  478. default: true
  479. }
  480. },
  481. data: function data() {
  482. var _this$value;
  483. var defaultValue = (_this$value = this.value) != null ? _this$value : this.defaultValue;
  484. var value = this.format(defaultValue);
  485. if (!equal(value, this.value)) {
  486. this.$emit('input', value);
  487. }
  488. return {
  489. currentValue: value
  490. };
  491. },
  492. computed: {
  493. minusDisabled: function minusDisabled() {
  494. return this.disabled || this.disableMinus || this.currentValue <= +this.min;
  495. },
  496. plusDisabled: function plusDisabled() {
  497. return this.disabled || this.disablePlus || this.currentValue >= +this.max;
  498. },
  499. inputStyle: function inputStyle() {
  500. var style = {};
  501. if (this.inputWidth) {
  502. style.width = (0, _utils.addUnit)(this.inputWidth);
  503. }
  504. if (this.buttonSize) {
  505. style.height = (0, _utils.addUnit)(this.buttonSize);
  506. }
  507. return style;
  508. },
  509. buttonStyle: function buttonStyle() {
  510. if (this.buttonSize) {
  511. var size = (0, _utils.addUnit)(this.buttonSize);
  512. return {
  513. width: size,
  514. height: size
  515. };
  516. }
  517. }
  518. },
  519. watch: {
  520. max: 'check',
  521. min: 'check',
  522. integer: 'check',
  523. decimalLength: 'check',
  524. value: function value(val) {
  525. if (!equal(val, this.currentValue)) {
  526. this.currentValue = this.format(val);
  527. }
  528. },
  529. currentValue: function currentValue(val) {
  530. this.$emit('input', val);
  531. this.$emit('change', val, {
  532. name: this.name
  533. });
  534. }
  535. },
  536. methods: {
  537. check: function check() {
  538. var val = this.format(this.currentValue);
  539. if (!equal(val, this.currentValue)) {
  540. this.currentValue = val;
  541. }
  542. },
  543. // formatNumber illegal characters
  544. formatNumber: function formatNumber(value) {
  545. return (0, _number.formatNumber)(String(value), !this.integer);
  546. },
  547. format: function format(value) {
  548. if (this.allowEmpty && value === '') {
  549. return value;
  550. }
  551. value = this.formatNumber(value); // format range
  552. value = value === '' ? 0 : +value;
  553. value = (0, _number2.isNaN)(value) ? this.min : value;
  554. value = Math.max(Math.min(this.max, value), this.min); // format decimal
  555. if ((0, _utils.isDef)(this.decimalLength)) {
  556. value = value.toFixed(this.decimalLength);
  557. }
  558. return value;
  559. },
  560. onInput: function onInput(event) {
  561. var value = event.target.value;
  562. var formatted = this.formatNumber(value); // limit max decimal length
  563. if ((0, _utils.isDef)(this.decimalLength) && formatted.indexOf('.') !== -1) {
  564. var pair = formatted.split('.');
  565. formatted = pair[0] + "." + pair[1].slice(0, this.decimalLength);
  566. }
  567. if (!equal(value, formatted)) {
  568. event.target.value = formatted;
  569. } // perfer number type
  570. if (formatted === String(+formatted)) {
  571. formatted = +formatted;
  572. }
  573. this.emitChange(formatted);
  574. },
  575. emitChange: function emitChange(value) {
  576. if (this.asyncChange) {
  577. this.$emit('input', value);
  578. this.$emit('change', value, {
  579. name: this.name
  580. });
  581. } else {
  582. this.currentValue = value;
  583. }
  584. },
  585. onChange: function onChange() {
  586. var type = this.type;
  587. if (this[type + "Disabled"]) {
  588. this.$emit('overlimit', type);
  589. return;
  590. }
  591. var diff = type === 'minus' ? -this.step : +this.step;
  592. var value = this.format(add(+this.currentValue, diff));
  593. this.emitChange(value);
  594. this.$emit(type);
  595. },
  596. onFocus: function onFocus(event) {
  597. // readonly not work in lagacy mobile safari
  598. if (this.disableInput && this.$refs.input) {
  599. this.$refs.input.blur();
  600. } else {
  601. this.$emit('focus', event);
  602. }
  603. },
  604. onBlur: function onBlur(event) {
  605. var value = this.format(event.target.value);
  606. event.target.value = value;
  607. this.currentValue = value;
  608. this.$emit('blur', event);
  609. (0, _resetScroll.resetScroll)();
  610. },
  611. longPressStep: function longPressStep() {
  612. var _this = this;
  613. this.longPressTimer = setTimeout(function () {
  614. _this.onChange();
  615. _this.longPressStep(_this.type);
  616. }, LONG_PRESS_INTERVAL);
  617. },
  618. onTouchStart: function onTouchStart() {
  619. var _this2 = this;
  620. if (!this.longPress) {
  621. return;
  622. }
  623. clearTimeout(this.longPressTimer);
  624. this.isLongPress = false;
  625. this.longPressTimer = setTimeout(function () {
  626. _this2.isLongPress = true;
  627. _this2.onChange();
  628. _this2.longPressStep();
  629. }, LONG_PRESS_START_TIME);
  630. },
  631. onTouchEnd: function onTouchEnd(event) {
  632. if (!this.longPress) {
  633. return;
  634. }
  635. clearTimeout(this.longPressTimer);
  636. if (this.isLongPress) {
  637. (0, _event.preventDefault)(event);
  638. }
  639. },
  640. onMousedown: function onMousedown(event) {
  641. // fix mobile safari page scroll down issue
  642. // see: https://github.com/youzan/vant/issues/7690
  643. if (this.disableInput) {
  644. event.preventDefault();
  645. }
  646. }
  647. },
  648. render: function render() {
  649. var _this3 = this;
  650. var h = arguments[0];
  651. var createListeners = function createListeners(type) {
  652. return {
  653. on: {
  654. click: function click(e) {
  655. // disable double tap scrolling on mobile safari
  656. e.preventDefault();
  657. _this3.type = type;
  658. _this3.onChange();
  659. },
  660. touchstart: function touchstart() {
  661. _this3.type = type;
  662. _this3.onTouchStart();
  663. },
  664. touchend: _this3.onTouchEnd,
  665. touchcancel: _this3.onTouchEnd
  666. }
  667. };
  668. };
  669. return h("div", {
  670. "class": bem([this.theme])
  671. }, [h("button", (0, _babelHelperVueJsxMergeProps.default)([{
  672. "directives": [{
  673. name: "show",
  674. value: this.showMinus
  675. }],
  676. "attrs": {
  677. "type": "button"
  678. },
  679. "style": this.buttonStyle,
  680. "class": bem('minus', {
  681. disabled: this.minusDisabled
  682. })
  683. }, createListeners('minus')])), h("input", {
  684. "directives": [{
  685. name: "show",
  686. value: this.showInput
  687. }],
  688. "ref": "input",
  689. "attrs": {
  690. "type": this.integer ? 'tel' : 'text',
  691. "role": "spinbutton",
  692. "disabled": this.disabled,
  693. "readonly": this.disableInput,
  694. "inputmode": this.integer ? 'numeric' : 'decimal',
  695. "placeholder": this.placeholder,
  696. "aria-valuemax": this.max,
  697. "aria-valuemin": this.min,
  698. "aria-valuenow": this.currentValue
  699. },
  700. "class": bem('input'),
  701. "domProps": {
  702. "value": this.currentValue
  703. },
  704. "style": this.inputStyle,
  705. "on": {
  706. "input": this.onInput,
  707. "focus": this.onFocus,
  708. "blur": this.onBlur,
  709. "mousedown": this.onMousedown
  710. }
  711. }), h("button", (0, _babelHelperVueJsxMergeProps.default)([{
  712. "directives": [{
  713. name: "show",
  714. value: this.showPlus
  715. }],
  716. "attrs": {
  717. "type": "button"
  718. },
  719. "style": this.buttonStyle,
  720. "class": bem('plus', {
  721. disabled: this.plusDisabled
  722. })
  723. }, createListeners('plus')]))]);
  724. }
  725. });
  726. exports.default = _default;
  727. /***/ }),
  728. /***/ 23:
  729. /***/ (function(module, exports, __webpack_require__) {
  730. exports = module.exports = __webpack_require__(5)(false);
  731. // Module
  732. exports.push([module.i, "html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',Helvetica,Segoe UI,Arial,Roboto,'PingFang SC',miui,'Hiragino Sans GB','Microsoft Yahei',sans-serif}a{text-decoration:none}button,input,textarea{color:inherit;font:inherit}[class*=van-]:focus,a:focus,button:focus,input:focus,textarea:focus{outline:0}ol,ul{margin:0;padding:0;list-style:none}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.van-clearfix::after{display:table;clear:both;content:''}[class*=van-hairline]::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid #ebedf0;-webkit-transform:scale(.5);transform:scale(.5)}.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--top::after{border-top-width:1px}.van-hairline--left::after{border-left-width:1px}.van-hairline--right::after{border-right-width:1px}.van-hairline--bottom::after{border-bottom-width:1px}.van-hairline--top-bottom::after,.van-hairline-unset--top-bottom::after{border-width:1px 0}.van-hairline--surround::after{border-width:1px}@-webkit-keyframes van-slide-up-enter{from{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes van-slide-up-enter{from{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@-webkit-keyframes van-slide-up-leave{to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes van-slide-up-leave{to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@-webkit-keyframes van-slide-down-enter{from{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-enter{from{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@-webkit-keyframes van-slide-down-leave{to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-leave{to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@-webkit-keyframes van-slide-left-enter{from{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-enter{from{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@-webkit-keyframes van-slide-left-leave{to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-leave{to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@-webkit-keyframes van-slide-right-enter{from{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes van-slide-right-enter{from{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@-webkit-keyframes van-slide-right-leave{to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes van-slide-right-leave{to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@-webkit-keyframes van-fade-in{from{opacity:0}to{opacity:1}}@keyframes van-fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes van-fade-out{from{opacity:1}to{opacity:0}}@keyframes van-fade-out{from{opacity:1}to{opacity:0}}@-webkit-keyframes van-rotate{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes van-rotate{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.van-fade-enter-active{-webkit-animation:.3s van-fade-in both ease-out;animation:.3s van-fade-in both ease-out}.van-fade-leave-active{-webkit-animation:.3s van-fade-out both ease-in;animation:.3s van-fade-out both ease-in
  733. /***/ }),
  734. /***/ 24:
  735. /***/ (function(module, exports, __webpack_require__) {
  736. "use strict";
  737. exports.__esModule = true;
  738. exports.createNamespace = createNamespace;
  739. var _bem = __webpack_require__(25);
  740. var _component = __webpack_require__(26);
  741. var _i18n = __webpack_require__(29);
  742. function createNamespace(name) {
  743. name = 'van-' + name;
  744. return [(0, _component.createComponent)(name), (0, _bem.createBEM)(name), (0, _i18n.createI18N)(name)];
  745. }
  746. /***/ }),
  747. /***/ 25:
  748. /***/ (function(module, exports, __webpack_require__) {
  749. "use strict";
  750. exports.__esModule = true;
  751. exports.createBEM = createBEM;
  752. /**
  753. * bem helper
  754. * b() // 'button'
  755. * b('text') // 'button__text'
  756. * b({ disabled }) // 'button button--disabled'
  757. * b('text', { disabled }) // 'button__text button__text--disabled'
  758. * b(['disabled', 'primary']) // 'button button--disabled button--primary'
  759. */
  760. function gen(name, mods) {
  761. if (!mods) {
  762. return '';
  763. }
  764. if (typeof mods === 'string') {
  765. return " " + name + "--" + mods;
  766. }
  767. if (Array.isArray(mods)) {
  768. return mods.reduce(function (ret, item) {
  769. return ret + gen(name, item);
  770. }, '');
  771. }
  772. return Object.keys(mods).reduce(function (ret, key) {
  773. return ret + (mods[key] ? gen(name, key) : '');
  774. }, '');
  775. }
  776. function createBEM(name) {
  777. return function (el, mods) {
  778. if (el && typeof el !== 'string') {
  779. mods = el;
  780. el = '';
  781. }
  782. el = el ? name + "__" + el : name;
  783. return "" + el + gen(el, mods);
  784. };
  785. }
  786. /***/ }),
  787. /***/ 26:
  788. /***/ (function(module, exports, __webpack_require__) {
  789. "use strict";
  790. var _interopRequireDefault = __webpack_require__(1);
  791. exports.__esModule = true;
  792. exports.unifySlots = unifySlots;
  793. exports.createComponent = createComponent;
  794. __webpack_require__(11);
  795. var _ = __webpack_require__(0);
  796. var _string = __webpack_require__(9);
  797. var _slots = __webpack_require__(28);
  798. var _vue = _interopRequireDefault(__webpack_require__(4));
  799. /**
  800. * Create a basic component with common options
  801. */
  802. function install(Vue) {
  803. var name = this.name;
  804. Vue.component(name, this);
  805. Vue.component((0, _string.camelize)("-" + name), this);
  806. } // unify slots & scopedSlots
  807. function unifySlots(context) {
  808. // use data.scopedSlots in lower Vue version
  809. var scopedSlots = context.scopedSlots || context.data.scopedSlots || {};
  810. var slots = context.slots();
  811. Object.keys(slots).forEach(function (key) {
  812. if (!scopedSlots[key]) {
  813. scopedSlots[key] = function () {
  814. return slots[key];
  815. };
  816. }
  817. });
  818. return scopedSlots;
  819. } // should be removed after Vue 3
  820. function transformFunctionComponent(pure) {
  821. return {
  822. functional: true,
  823. props: pure.props,
  824. model: pure.model,
  825. render: function render(h, context) {
  826. return pure(h, context.props, unifySlots(context), context);
  827. }
  828. };
  829. }
  830. function createComponent(name) {
  831. return function (sfc) {
  832. if ((0, _.isFunction)(sfc)) {
  833. sfc = transformFunctionComponent(sfc);
  834. }
  835. if (!sfc.functional) {
  836. sfc.mixins = sfc.mixins || [];
  837. sfc.mixins.push(_slots.SlotsMixin);
  838. }
  839. sfc.name = name;
  840. sfc.install = install;
  841. return sfc;
  842. };
  843. }
  844. /***/ }),
  845. /***/ 27:
  846. /***/ (function(module, exports, __webpack_require__) {
  847. "use strict";
  848. exports.__esModule = true;
  849. exports.default = void 0;
  850. var _default = {
  851. name: '姓名',
  852. tel: '电话',
  853. save: '保存',
  854. confirm: '确认',
  855. cancel: '取消',
  856. delete: '删除',
  857. complete: '完成',
  858. loading: '加载中...',
  859. telEmpty: '请填写电话',
  860. nameEmpty: '请填写姓名',
  861. nameInvalid: '请输入正确的姓名',
  862. confirmDelete: '确定要删除吗',
  863. telInvalid: '请输入正确的手机号',
  864. vanCalendar: {
  865. end: '结束',
  866. start: '开始',
  867. title: '日期选择',
  868. confirm: '确定',
  869. startEnd: '开始/结束',
  870. weekdays: ['日', '一', '二', '三', '四', '五', '六'],
  871. monthTitle: function monthTitle(year, month) {
  872. return year + "\u5E74" + month + "\u6708";
  873. },
  874. rangePrompt: function rangePrompt(maxRange) {
  875. return "\u9009\u62E9\u5929\u6570\u4E0D\u80FD\u8D85\u8FC7 " + maxRange + " \u5929";
  876. }
  877. },
  878. vanCascader: {
  879. select: '请选择'
  880. },
  881. vanContactCard: {
  882. addText: '添加联系人'
  883. },
  884. vanContactList: {
  885. addText: '新建联系人'
  886. },
  887. vanPagination: {
  888. prev: '上一页',
  889. next: '下一页'
  890. },
  891. vanPullRefresh: {
  892. pulling: '下拉即可刷新...',
  893. loosing: '释放即可刷新...'
  894. },
  895. vanSubmitBar: {
  896. label: '合计:'
  897. },
  898. vanCoupon: {
  899. unlimited: '无使用门槛',
  900. discount: function discount(_discount) {
  901. return _discount + "\u6298";
  902. },
  903. condition: function condition(_condition) {
  904. return "\u6EE1" + _condition + "\u5143\u53EF\u7528";
  905. }
  906. },
  907. vanCouponCell: {
  908. title: '优惠券',
  909. tips: '暂无可用',
  910. count: function count(_count) {
  911. return _count + "\u5F20\u53EF\u7528";
  912. }
  913. },
  914. vanCouponList: {
  915. empty: '暂无优惠券',
  916. exchange: '兑换',
  917. close: '不使用优惠券',
  918. enable: '可用',
  919. disabled: '不可用',
  920. placeholder: '请输入优惠码'
  921. },
  922. vanAddressEdit: {
  923. area: '地区',
  924. postal: '邮政编码',
  925. areaEmpty: '请选择地区',
  926. addressEmpty: '请填写详细地址',
  927. postalEmpty: '邮政编码格式不正确',
  928. defaultAddress: '设为默认收货地址',
  929. telPlaceholder: '收货人手机号',
  930. namePlaceholder: '收货人姓名',
  931. areaPlaceholder: '选择省 / 市 / 区'
  932. },
  933. vanAddressEditDetail: {
  934. label: '详细地址',
  935. placeholder: '街道门牌、楼层房间号等信息'
  936. },
  937. vanAddressList: {
  938. add: '新增地址'
  939. }
  940. };
  941. exports.default = _default;
  942. /***/ }),
  943. /***/ 28:
  944. /***/ (function(module, exports, __webpack_require__) {
  945. "use strict";
  946. exports.__esModule = true;
  947. exports.SlotsMixin = void 0;
  948. /**
  949. * Use scopedSlots in Vue 2.6+
  950. * downgrade to slots in lower version
  951. */
  952. var SlotsMixin = {
  953. methods: {
  954. slots: function slots(name, props) {
  955. if (name === void 0) {
  956. name = 'default';
  957. }
  958. var $slots = this.$slots,
  959. $scopedSlots = this.$scopedSlots;
  960. var scopedSlot = $scopedSlots[name];
  961. if (scopedSlot) {
  962. return scopedSlot(props);
  963. }
  964. return $slots[name];
  965. }
  966. }
  967. };
  968. exports.SlotsMixin = SlotsMixin;
  969. /***/ }),
  970. /***/ 29:
  971. /***/ (function(module, exports, __webpack_require__) {
  972. "use strict";
  973. var _interopRequireDefault = __webpack_require__(1);
  974. exports.__esModule = true;
  975. exports.createI18N = createI18N;
  976. var _ = __webpack_require__(0);
  977. var _string = __webpack_require__(9);
  978. var _locale = _interopRequireDefault(__webpack_require__(11));
  979. function createI18N(name) {
  980. var prefix = (0, _string.camelize)(name) + '.';
  981. return function (path) {
  982. var messages = _locale.default.messages();
  983. var message = (0, _.get)(messages, prefix + path) || (0, _.get)(messages, path);
  984. for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  985. args[_key - 1] = arguments[_key];
  986. }
  987. return (0, _.isFunction)(message) ? message.apply(void 0, args) : message;
  988. };
  989. }
  990. /***/ }),
  991. /***/ 30:
  992. /***/ (function(module, exports, __webpack_require__) {
  993. "use strict";
  994. exports.__esModule = true;
  995. exports.on = on;
  996. exports.off = off;
  997. exports.stopPropagation = stopPropagation;
  998. exports.preventDefault = preventDefault;
  999. exports.supportsPassive = void 0;
  1000. var _ = __webpack_require__(0);
  1001. // eslint-disable-next-line import/no-mutable-exports
  1002. var supportsPassive = false;
  1003. exports.supportsPassive = supportsPassive;
  1004. if (!_.isServer) {
  1005. try {
  1006. var opts = {};
  1007. Object.defineProperty(opts, 'passive', {
  1008. // eslint-disable-next-line getter-return
  1009. get: function get() {
  1010. /* istanbul ignore next */
  1011. exports.supportsPassive = supportsPassive = true;
  1012. }
  1013. });
  1014. window.addEventListener('test-passive', null, opts); // eslint-disable-next-line no-empty
  1015. } catch (e) {}
  1016. }
  1017. function on(target, event, handler, passive) {
  1018. if (passive === void 0) {
  1019. passive = false;
  1020. }
  1021. if (!_.isServer) {
  1022. target.addEventListener(event, handler, supportsPassive ? {
  1023. capture: false,
  1024. passive: passive
  1025. } : false);
  1026. }
  1027. }
  1028. function off(target, event, handler) {
  1029. if (!_.isServer) {
  1030. target.removeEventListener(event, handler);
  1031. }
  1032. }
  1033. function stopPropagation(event) {
  1034. event.stopPropagation();
  1035. }
  1036. function preventDefault(event, isStopPropagation) {
  1037. /* istanbul ignore else */
  1038. if (typeof event.cancelable !== 'boolean' || event.cancelable) {
  1039. event.preventDefault();
  1040. }
  1041. if (isStopPropagation) {
  1042. stopPropagation(event);
  1043. }
  1044. }
  1045. /***/ }),
  1046. /***/ 4:
  1047. /***/ (function(module, exports) {
  1048. module.exports = require("vue");
  1049. /***/ }),
  1050. /***/ 402:
  1051. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1052. "use strict";
  1053. __webpack_require__.r(__webpack_exports__);
  1054. /* harmony import */ var _tisdesign_m_lib_stepper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(220);
  1055. /* harmony import */ var _tisdesign_m_lib_stepper__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tisdesign_m_lib_stepper__WEBPACK_IMPORTED_MODULE_0__);
  1056. /* harmony import */ var _tisdesign_m_lib_stepper_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(403);
  1057. /* harmony import */ var _tisdesign_m_lib_stepper_style__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_tisdesign_m_lib_stepper_style__WEBPACK_IMPORTED_MODULE_1__);
  1058. _tisdesign_m_lib_stepper__WEBPACK_IMPORTED_MODULE_0___default.a.name = 'm-stepper';
  1059. /* harmony default export */ __webpack_exports__["default"] = (_tisdesign_m_lib_stepper__WEBPACK_IMPORTED_MODULE_0___default.a);
  1060. /***/ }),
  1061. /***/ 403:
  1062. /***/ (function(module, exports, __webpack_require__) {
  1063. __webpack_require__(22);
  1064. __webpack_require__(404);
  1065. /***/ }),
  1066. /***/ 404:
  1067. /***/ (function(module, exports, __webpack_require__) {
  1068. var content = __webpack_require__(405);
  1069. if(typeof content === 'string') content = [[module.i, content, '']];
  1070. var transform;
  1071. var insertInto;
  1072. var options = {"hmr":true}
  1073. options.transform = transform
  1074. options.insertInto = undefined;
  1075. var update = __webpack_require__(6)(content, options);
  1076. if(content.locals) module.exports = content.locals;
  1077. if(false) {}
  1078. /***/ }),
  1079. /***/ 405:
  1080. /***/ (function(module, exports, __webpack_require__) {
  1081. exports = module.exports = __webpack_require__(5)(false);
  1082. // Module
  1083. exports.push([module.i, ".van-stepper{font-size:0;-webkit-user-select:none;user-select:none}.van-stepper__minus,.van-stepper__plus{position:relative;box-sizing:border-box;width:28px;height:28px;margin:0;padding:0;color:#323233;vertical-align:middle;background-color:#f2f3f5;border:0;cursor:pointer}.van-stepper__minus::before,.van-stepper__plus::before{width:50%;height:1px}.van-stepper__minus::after,.van-stepper__plus::after{width:1px;height:50%}.van-stepper__minus::after,.van-stepper__minus::before,.van-stepper__plus::after,.van-stepper__plus::before{position:absolute;top:50%;left:50%;background-color:currentColor;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);content:''}.van-stepper__minus:active,.van-stepper__plus:active{background-color:#e8e8e8}.van-stepper__minus--disabled,.van-stepper__plus--disabled{color:#c8c9cc;background-color:#f7f8fa;cursor:not-allowed}.van-stepper__minus--disabled:active,.van-stepper__plus--disabled:active{background-color:#f7f8fa}.van-stepper__minus{border-radius:4px 0 0 4px}.van-stepper__minus::after{display:none}.van-stepper__plus{border-radius:0 4px 4px 0}.van-stepper__input{box-sizing:border-box;width:32px;height:28px;margin:0 2px;padding:0;color:#323233;font-size:14px;line-height:normal;text-align:center;vertical-align:middle;background-color:#f2f3f5;border:0;border-width:1px 0;border-radius:0;-webkit-appearance:none}.van-stepper__input:disabled{color:#c8c9cc;background-color:#f2f3f5;-webkit-text-fill-color:currentColor;opacity:1}.van-stepper__input:read-only{cursor:default}.van-stepper--round .van-stepper__input{background-color:transparent}.van-stepper--round .van-stepper__minus,.van-stepper--round .van-stepper__plus{border-radius:100%}.van-stepper--round .van-stepper__minus:active,.van-stepper--round .van-stepper__plus:active{opacity:.7}.van-stepper--round .van-stepper__minus--disabled,.van-stepper--round .van-stepper__minus--disabled:active,.van-stepper--round .van-stepper__plus--disabled,.van-stepper--round .van-stepper__plus--disabled:active{opacity:.3}.van-stepper--round .van-stepper__plus{color:#fff;background-color:#ffce6d}.van-stepper--round .van-stepper__minus{color:#ffce6d;background-color:#fff;border:1px solid #ffce6d}", ""]);
  1084. /***/ }),
  1085. /***/ 5:
  1086. /***/ (function(module, exports, __webpack_require__) {
  1087. "use strict";
  1088. /*
  1089. MIT License http://www.opensource.org/licenses/mit-license.php
  1090. Author Tobias Koppers @sokra
  1091. */
  1092. // css base code, injected by the css-loader
  1093. module.exports = function (useSourceMap) {
  1094. var list = []; // return the list of modules as css string
  1095. list.toString = function toString() {
  1096. return this.map(function (item) {
  1097. var content = cssWithMappingToString(item, useSourceMap);
  1098. if (item[2]) {
  1099. return '@media ' + item[2] + '{' + content + '}';
  1100. } else {
  1101. return content;
  1102. }
  1103. }).join('');
  1104. }; // import a list of modules into the list
  1105. list.i = function (modules, mediaQuery) {
  1106. if (typeof modules === 'string') {
  1107. modules = [[null, modules, '']];
  1108. }
  1109. var alreadyImportedModules = {};
  1110. for (var i = 0; i < this.length; i++) {
  1111. var id = this[i][0];
  1112. if (id != null) {
  1113. alreadyImportedModules[id] = true;
  1114. }
  1115. }
  1116. for (i = 0; i < modules.length; i++) {
  1117. var item = modules[i]; // skip already imported module
  1118. // this implementation is not 100% perfect for weird media query combinations
  1119. // when a module is imported multiple times with different media queries.
  1120. // I hope this will never occur (Hey this way we have smaller bundles)
  1121. if (item[0] == null || !alreadyImportedModules[item[0]]) {
  1122. if (mediaQuery && !item[2]) {
  1123. item[2] = mediaQuery;
  1124. } else if (mediaQuery) {
  1125. item[2] = '(' + item[2] + ') and (' + mediaQuery + ')';
  1126. }
  1127. list.push(item);
  1128. }
  1129. }
  1130. };
  1131. return list;
  1132. };
  1133. function cssWithMappingToString(item, useSourceMap) {
  1134. var content = item[1] || '';
  1135. var cssMapping = item[3];
  1136. if (!cssMapping) {
  1137. return content;
  1138. }
  1139. if (useSourceMap && typeof btoa === 'function') {
  1140. var sourceMapping = toComment(cssMapping);
  1141. var sourceURLs = cssMapping.sources.map(function (source) {
  1142. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';
  1143. });
  1144. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  1145. }
  1146. return [content].join('\n');
  1147. } // Adapted from convert-source-map (MIT)
  1148. function toComment(sourceMap) {
  1149. // eslint-disable-next-line no-undef
  1150. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  1151. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  1152. return '/*# ' + data + ' */';
  1153. }
  1154. /***/ }),
  1155. /***/ 53:
  1156. /***/ (function(module, exports, __webpack_require__) {
  1157. "use strict";
  1158. exports.__esModule = true;
  1159. exports.getScroller = getScroller;
  1160. exports.getScrollTop = getScrollTop;
  1161. exports.setScrollTop = setScrollTop;
  1162. exports.getRootScrollTop = getRootScrollTop;
  1163. exports.setRootScrollTop = setRootScrollTop;
  1164. exports.getElementTop = getElementTop;
  1165. exports.getVisibleHeight = getVisibleHeight;
  1166. exports.getVisibleTop = getVisibleTop;
  1167. function isWindow(val) {
  1168. return val === window;
  1169. } // get nearest scroll element
  1170. // https://github.com/youzan/vant/issues/3823
  1171. var overflowScrollReg = /scroll|auto/i;
  1172. function getScroller(el, root) {
  1173. if (root === void 0) {
  1174. root = window;
  1175. }
  1176. var node = el;
  1177. while (node && node.tagName !== 'HTML' && node.tagName !== 'BODY' && node.nodeType === 1 && node !== root) {
  1178. var _window$getComputedSt = window.getComputedStyle(node),
  1179. overflowY = _window$getComputedSt.overflowY;
  1180. if (overflowScrollReg.test(overflowY)) {
  1181. return node;
  1182. }
  1183. node = node.parentNode;
  1184. }
  1185. return root;
  1186. }
  1187. function getScrollTop(el) {
  1188. var top = 'scrollTop' in el ? el.scrollTop : el.pageYOffset; // iOS scroll bounce cause minus scrollTop
  1189. return Math.max(top, 0);
  1190. }
  1191. function setScrollTop(el, value) {
  1192. if ('scrollTop' in el) {
  1193. el.scrollTop = value;
  1194. } else {
  1195. el.scrollTo(el.scrollX, value);
  1196. }
  1197. }
  1198. function getRootScrollTop() {
  1199. return window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
  1200. }
  1201. function setRootScrollTop(value) {
  1202. setScrollTop(window, value);
  1203. setScrollTop(document.body, value);
  1204. } // get distance from element top to page top or scroller top
  1205. function getElementTop(el, scroller) {
  1206. if (isWindow(el)) {
  1207. return 0;
  1208. }
  1209. var scrollTop = scroller ? getScrollTop(scroller) : getRootScrollTop();
  1210. return el.getBoundingClientRect().top + scrollTop;
  1211. }
  1212. function getVisibleHeight(el) {
  1213. if (isWindow(el)) {
  1214. return el.innerHeight;
  1215. }
  1216. return el.getBoundingClientRect().height;
  1217. }
  1218. function getVisibleTop(el) {
  1219. if (isWindow(el)) {
  1220. return 0;
  1221. }
  1222. return el.getBoundingClientRect().top;
  1223. }
  1224. /***/ }),
  1225. /***/ 6:
  1226. /***/ (function(module, exports, __webpack_require__) {
  1227. /*
  1228. MIT License http://www.opensource.org/licenses/mit-license.php
  1229. Author Tobias Koppers @sokra
  1230. */
  1231. var stylesInDom = {};
  1232. var memoize = function (fn) {
  1233. var memo;
  1234. return function () {
  1235. if (typeof memo === "undefined") memo = fn.apply(this, arguments);
  1236. return memo;
  1237. };
  1238. };
  1239. var isOldIE = memoize(function () {
  1240. // Test for IE <= 9 as proposed by Browserhacks
  1241. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  1242. // Tests for existence of standard globals is to allow style-loader
  1243. // to operate correctly into non-standard environments
  1244. // @see https://github.com/webpack-contrib/style-loader/issues/177
  1245. return window && document && document.all && !window.atob;
  1246. });
  1247. var getTarget = function (target, parent) {
  1248. if (parent){
  1249. return parent.querySelector(target);
  1250. }
  1251. return document.querySelector(target);
  1252. };
  1253. var getElement = (function (fn) {
  1254. var memo = {};
  1255. return function(target, parent) {
  1256. // If passing function in options, then use it for resolve "head" element.
  1257. // Useful for Shadow Root style i.e
  1258. // {
  1259. // insertInto: function () { return document.querySelector("#foo").shadowRoot }
  1260. // }
  1261. if (typeof target === 'function') {
  1262. return target();
  1263. }
  1264. if (typeof memo[target] === "undefined") {
  1265. var styleTarget = getTarget.call(this, target, parent);
  1266. // Special case to return head of iframe instead of iframe itself
  1267. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  1268. try {
  1269. // This will throw an exception if access to iframe is blocked
  1270. // due to cross-origin restrictions
  1271. styleTarget = styleTarget.contentDocument.head;
  1272. } catch(e) {
  1273. styleTarget = null;
  1274. }
  1275. }
  1276. memo[target] = styleTarget;
  1277. }
  1278. return memo[target]
  1279. };
  1280. })();
  1281. var singleton = null;
  1282. var singletonCounter = 0;
  1283. var stylesInsertedAtTop = [];
  1284. var fixUrls = __webpack_require__(12);
  1285. module.exports = function(list, options) {
  1286. if (typeof DEBUG !== "undefined" && DEBUG) {
  1287. if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
  1288. }
  1289. options = options || {};
  1290. options.attrs = typeof options.attrs === "object" ? options.attrs : {};
  1291. // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  1292. // tags it will allow on a page
  1293. if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
  1294. // By default, add <style> tags to the <head> element
  1295. if (!options.insertInto) options.insertInto = "head";
  1296. // By default, add <style> tags to the bottom of the target
  1297. if (!options.insertAt) options.insertAt = "bottom";
  1298. var styles = listToStyles(list, options);
  1299. addStylesToDom(styles, options);
  1300. return function update (newList) {
  1301. var mayRemove = [];
  1302. for (var i = 0; i < styles.length; i++) {
  1303. var item = styles[i];
  1304. var domStyle = stylesInDom[item.id];
  1305. domStyle.refs--;
  1306. mayRemove.push(domStyle);
  1307. }
  1308. if(newList) {
  1309. var newStyles = listToStyles(newList, options);
  1310. addStylesToDom(newStyles, options);
  1311. }
  1312. for (var i = 0; i < mayRemove.length; i++) {
  1313. var domStyle = mayRemove[i];
  1314. if(domStyle.refs === 0) {
  1315. for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
  1316. delete stylesInDom[domStyle.id];
  1317. }
  1318. }
  1319. };
  1320. };
  1321. function addStylesToDom (styles, options) {
  1322. for (var i = 0; i < styles.length; i++) {
  1323. var item = styles[i];
  1324. var domStyle = stylesInDom[item.id];
  1325. if(domStyle) {
  1326. domStyle.refs++;
  1327. for(var j = 0; j < domStyle.parts.length; j++) {
  1328. domStyle.parts[j](item.parts[j]);
  1329. }
  1330. for(; j < item.parts.length; j++) {
  1331. domStyle.parts.push(addStyle(item.parts[j], options));
  1332. }
  1333. } else {
  1334. var parts = [];
  1335. for(var j = 0; j < item.parts.length; j++) {
  1336. parts.push(addStyle(item.parts[j], options));
  1337. }
  1338. stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
  1339. }
  1340. }
  1341. }
  1342. function listToStyles (list, options) {
  1343. var styles = [];
  1344. var newStyles = {};
  1345. for (var i = 0; i < list.length; i++) {
  1346. var item = list[i];
  1347. var id = options.base ? item[0] + options.base : item[0];
  1348. var css = item[1];
  1349. var media = item[2];
  1350. var sourceMap = item[3];
  1351. var part = {css: css, media: media, sourceMap: sourceMap};
  1352. if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
  1353. else newStyles[id].parts.push(part);
  1354. }
  1355. return styles;
  1356. }
  1357. function insertStyleElement (options, style) {
  1358. var target = getElement(options.insertInto)
  1359. if (!target) {
  1360. throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
  1361. }
  1362. var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
  1363. if (options.insertAt === "top") {
  1364. if (!lastStyleElementInsertedAtTop) {
  1365. target.insertBefore(style, target.firstChild);
  1366. } else if (lastStyleElementInsertedAtTop.nextSibling) {
  1367. target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
  1368. } else {
  1369. target.appendChild(style);
  1370. }
  1371. stylesInsertedAtTop.push(style);
  1372. } else if (options.insertAt === "bottom") {
  1373. target.appendChild(style);
  1374. } else if (typeof options.insertAt === "object" && options.insertAt.before) {
  1375. var nextSibling = getElement(options.insertAt.before, target);
  1376. target.insertBefore(style, nextSibling);
  1377. } else {
  1378. throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
  1379. }
  1380. }
  1381. function removeStyleElement (style) {
  1382. if (style.parentNode === null) return false;
  1383. style.parentNode.removeChild(style);
  1384. var idx = stylesInsertedAtTop.indexOf(style);
  1385. if(idx >= 0) {
  1386. stylesInsertedAtTop.splice(idx, 1);
  1387. }
  1388. }
  1389. function createStyleElement (options) {
  1390. var style = document.createElement("style");
  1391. if(options.attrs.type === undefined) {
  1392. options.attrs.type = "text/css";
  1393. }
  1394. if(options.attrs.nonce === undefined) {
  1395. var nonce = getNonce();
  1396. if (nonce) {
  1397. options.attrs.nonce = nonce;
  1398. }
  1399. }
  1400. addAttrs(style, options.attrs);
  1401. insertStyleElement(options, style);
  1402. return style;
  1403. }
  1404. function createLinkElement (options) {
  1405. var link = document.createElement("link");
  1406. if(options.attrs.type === undefined) {
  1407. options.attrs.type = "text/css";
  1408. }
  1409. options.attrs.rel = "stylesheet";
  1410. addAttrs(link, options.attrs);
  1411. insertStyleElement(options, link);
  1412. return link;
  1413. }
  1414. function addAttrs (el, attrs) {
  1415. Object.keys(attrs).forEach(function (key) {
  1416. el.setAttribute(key, attrs[key]);
  1417. });
  1418. }
  1419. function getNonce() {
  1420. if (false) {}
  1421. return __webpack_require__.nc;
  1422. }
  1423. function addStyle (obj, options) {
  1424. var style, update, remove, result;
  1425. // If a transform function was defined, run it on the css
  1426. if (options.transform && obj.css) {
  1427. result = typeof options.transform === 'function'
  1428. ? options.transform(obj.css)
  1429. : options.transform.default(obj.css);
  1430. if (result) {
  1431. // If transform returns a value, use that instead of the original css.
  1432. // This allows running runtime transformations on the css.
  1433. obj.css = result;
  1434. } else {
  1435. // If the transform function returns a falsy value, don't add this css.
  1436. // This allows conditional loading of css
  1437. return function() {
  1438. // noop
  1439. };
  1440. }
  1441. }
  1442. if (options.singleton) {
  1443. var styleIndex = singletonCounter++;
  1444. style = singleton || (singleton = createStyleElement(options));
  1445. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  1446. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  1447. } else if (
  1448. obj.sourceMap &&
  1449. typeof URL === "function" &&
  1450. typeof URL.createObjectURL === "function" &&
  1451. typeof URL.revokeObjectURL === "function" &&
  1452. typeof Blob === "function" &&
  1453. typeof btoa === "function"
  1454. ) {
  1455. style = createLinkElement(options);
  1456. update = updateLink.bind(null, style, options);
  1457. remove = function () {
  1458. removeStyleElement(style);
  1459. if(style.href) URL.revokeObjectURL(style.href);
  1460. };
  1461. } else {
  1462. style = createStyleElement(options);
  1463. update = applyToTag.bind(null, style);
  1464. remove = function () {
  1465. removeStyleElement(style);
  1466. };
  1467. }
  1468. update(obj);
  1469. return function updateStyle (newObj) {
  1470. if (newObj) {
  1471. if (
  1472. newObj.css === obj.css &&
  1473. newObj.media === obj.media &&
  1474. newObj.sourceMap === obj.sourceMap
  1475. ) {
  1476. return;
  1477. }
  1478. update(obj = newObj);
  1479. } else {
  1480. remove();
  1481. }
  1482. };
  1483. }
  1484. var replaceText = (function () {
  1485. var textStore = [];
  1486. return function (index, replacement) {
  1487. textStore[index] = replacement;
  1488. return textStore.filter(Boolean).join('\n');
  1489. };
  1490. })();
  1491. function applyToSingletonTag (style, index, remove, obj) {
  1492. var css = remove ? "" : obj.css;
  1493. if (style.styleSheet) {
  1494. style.styleSheet.cssText = replaceText(index, css);
  1495. } else {
  1496. var cssNode = document.createTextNode(css);
  1497. var childNodes = style.childNodes;
  1498. if (childNodes[index]) style.removeChild(childNodes[index]);
  1499. if (childNodes.length) {
  1500. style.insertBefore(cssNode, childNodes[index]);
  1501. } else {
  1502. style.appendChild(cssNode);
  1503. }
  1504. }
  1505. }
  1506. function applyToTag (style, obj) {
  1507. var css = obj.css;
  1508. var media = obj.media;
  1509. if(media) {
  1510. style.setAttribute("media", media)
  1511. }
  1512. if(style.styleSheet) {
  1513. style.styleSheet.cssText = css;
  1514. } else {
  1515. while(style.firstChild) {
  1516. style.removeChild(style.firstChild);
  1517. }
  1518. style.appendChild(document.createTextNode(css));
  1519. }
  1520. }
  1521. function updateLink (link, options, obj) {
  1522. var css = obj.css;
  1523. var sourceMap = obj.sourceMap;
  1524. /*
  1525. If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
  1526. and there is no publicPath defined then lets turn convertToAbsoluteUrls
  1527. on by default. Otherwise default to the convertToAbsoluteUrls option
  1528. directly
  1529. */
  1530. var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
  1531. if (options.convertToAbsoluteUrls || autoFixUrls) {
  1532. css = fixUrls(css);
  1533. }
  1534. if (sourceMap) {
  1535. // http://stackoverflow.com/a/26603875
  1536. css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
  1537. }
  1538. var blob = new Blob([css], { type: "text/css" });
  1539. var oldSrc = link.href;
  1540. link.href = URL.createObjectURL(blob);
  1541. if(oldSrc) URL.revokeObjectURL(oldSrc);
  1542. }
  1543. /***/ }),
  1544. /***/ 81:
  1545. /***/ (function(module, exports, __webpack_require__) {
  1546. "use strict";
  1547. exports.__esModule = true;
  1548. exports.range = range;
  1549. exports.formatNumber = formatNumber;
  1550. function range(num, min, max) {
  1551. return Math.min(Math.max(num, min), max);
  1552. }
  1553. function trimExtraChar(value, _char, regExp) {
  1554. var index = value.indexOf(_char);
  1555. if (index === -1) {
  1556. return value;
  1557. }
  1558. if (_char === '-' && index !== 0) {
  1559. return value.slice(0, index);
  1560. }
  1561. return value.slice(0, index + 1) + value.slice(index).replace(regExp, '');
  1562. }
  1563. function formatNumber(value, allowDot, allowMinus) {
  1564. if (allowDot === void 0) {
  1565. allowDot = true;
  1566. }
  1567. if (allowMinus === void 0) {
  1568. allowMinus = true;
  1569. }
  1570. if (allowDot) {
  1571. value = trimExtraChar(value, '.', /\./g);
  1572. } else {
  1573. value = value.split('.')[0];
  1574. }
  1575. if (allowMinus) {
  1576. value = trimExtraChar(value, '-', /-/g);
  1577. } else {
  1578. value = value.replace(/-/, '');
  1579. }
  1580. var regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
  1581. return value.replace(regExp, '');
  1582. }
  1583. /***/ }),
  1584. /***/ 9:
  1585. /***/ (function(module, exports, __webpack_require__) {
  1586. "use strict";
  1587. exports.__esModule = true;
  1588. exports.camelize = camelize;
  1589. exports.padZero = padZero;
  1590. var camelizeRE = /-(\w)/g;
  1591. function camelize(str) {
  1592. return str.replace(camelizeRE, function (_, c) {
  1593. return c.toUpperCase();
  1594. });
  1595. }
  1596. function padZero(num, targetLength) {
  1597. if (targetLength === void 0) {
  1598. targetLength = 2;
  1599. }
  1600. var str = num + '';
  1601. while (str.length < targetLength) {
  1602. str = '0' + str;
  1603. }
  1604. return str;
  1605. }
  1606. /***/ }),
  1607. /***/ 92:
  1608. /***/ (function(module, exports, __webpack_require__) {
  1609. "use strict";
  1610. exports.__esModule = true;
  1611. exports.FieldMixin = void 0;
  1612. var FieldMixin = {
  1613. inject: {
  1614. vanField: {
  1615. default: null
  1616. }
  1617. },
  1618. watch: {
  1619. value: function value() {
  1620. var field = this.vanField;
  1621. if (field) {
  1622. field.resetValidation();
  1623. field.validateWithTrigger('onChange');
  1624. }
  1625. }
  1626. },
  1627. created: function created() {
  1628. var field = this.vanField;
  1629. if (field && !field.children) {
  1630. field.children = this;
  1631. }
  1632. }
  1633. };
  1634. exports.FieldMixin = FieldMixin;
  1635. /***/ })
  1636. /******/ });