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.

1615 lines
46 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 = 496);
  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. /***/ 19:
  255. /***/ (function(module, exports, __webpack_require__) {
  256. "use strict";
  257. exports.__esModule = true;
  258. exports.isNumeric = isNumeric;
  259. exports.isNaN = isNaN;
  260. function isNumeric(val) {
  261. return /^\d+(\.\d+)?$/.test(val);
  262. }
  263. function isNaN(val) {
  264. if (Number.isNaN) {
  265. return Number.isNaN(val);
  266. } // eslint-disable-next-line no-self-compare
  267. return val !== val;
  268. }
  269. /***/ }),
  270. /***/ 20:
  271. /***/ (function(module, exports, __webpack_require__) {
  272. "use strict";
  273. exports.__esModule = true;
  274. exports.addUnit = addUnit;
  275. exports.unitToPx = unitToPx;
  276. var _ = __webpack_require__(0);
  277. var _number = __webpack_require__(19);
  278. function addUnit(value) {
  279. if (!(0, _.isDef)(value)) {
  280. return undefined;
  281. }
  282. value = String(value);
  283. return (0, _number.isNumeric)(value) ? value + "px" : value;
  284. } // cache
  285. var rootFontSize;
  286. function getRootFontSize() {
  287. if (!rootFontSize) {
  288. var doc = document.documentElement;
  289. var fontSize = doc.style.fontSize || window.getComputedStyle(doc).fontSize;
  290. rootFontSize = parseFloat(fontSize);
  291. }
  292. return rootFontSize;
  293. }
  294. function convertRem(value) {
  295. value = value.replace(/rem/g, '');
  296. return +value * getRootFontSize();
  297. }
  298. function convertVw(value) {
  299. value = value.replace(/vw/g, '');
  300. return +value * window.innerWidth / 100;
  301. }
  302. function convertVh(value) {
  303. value = value.replace(/vh/g, '');
  304. return +value * window.innerHeight / 100;
  305. }
  306. function unitToPx(value) {
  307. if (typeof value === 'number') {
  308. return value;
  309. }
  310. if (_.inBrowser) {
  311. if (value.indexOf('rem') !== -1) {
  312. return convertRem(value);
  313. }
  314. if (value.indexOf('vw') !== -1) {
  315. return convertVw(value);
  316. }
  317. if (value.indexOf('vh') !== -1) {
  318. return convertVh(value);
  319. }
  320. }
  321. return parseFloat(value);
  322. }
  323. /***/ }),
  324. /***/ 21:
  325. /***/ (function(module, exports, __webpack_require__) {
  326. "use strict";
  327. exports.__esModule = true;
  328. exports.deepAssign = deepAssign;
  329. var _ = __webpack_require__(0);
  330. var hasOwnProperty = Object.prototype.hasOwnProperty;
  331. function assignKey(to, from, key) {
  332. var val = from[key];
  333. if (!(0, _.isDef)(val)) {
  334. return;
  335. }
  336. if (!hasOwnProperty.call(to, key) || !(0, _.isObject)(val)) {
  337. to[key] = val;
  338. } else {
  339. // eslint-disable-next-line @typescript-eslint/no-use-before-define
  340. to[key] = deepAssign(Object(to[key]), from[key]);
  341. }
  342. }
  343. function deepAssign(to, from) {
  344. Object.keys(from).forEach(function (key) {
  345. assignKey(to, from, key);
  346. });
  347. return to;
  348. }
  349. /***/ }),
  350. /***/ 22:
  351. /***/ (function(module, exports, __webpack_require__) {
  352. var content = __webpack_require__(23);
  353. if(typeof content === 'string') content = [[module.i, content, '']];
  354. var transform;
  355. var insertInto;
  356. var options = {"hmr":true}
  357. options.transform = transform
  358. options.insertInto = undefined;
  359. var update = __webpack_require__(6)(content, options);
  360. if(content.locals) module.exports = content.locals;
  361. if(false) {}
  362. /***/ }),
  363. /***/ 23:
  364. /***/ (function(module, exports, __webpack_require__) {
  365. exports = module.exports = __webpack_require__(5)(false);
  366. // Module
  367. 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
  368. /***/ }),
  369. /***/ 24:
  370. /***/ (function(module, exports, __webpack_require__) {
  371. "use strict";
  372. exports.__esModule = true;
  373. exports.createNamespace = createNamespace;
  374. var _bem = __webpack_require__(25);
  375. var _component = __webpack_require__(26);
  376. var _i18n = __webpack_require__(29);
  377. function createNamespace(name) {
  378. name = 'van-' + name;
  379. return [(0, _component.createComponent)(name), (0, _bem.createBEM)(name), (0, _i18n.createI18N)(name)];
  380. }
  381. /***/ }),
  382. /***/ 241:
  383. /***/ (function(module, exports, __webpack_require__) {
  384. "use strict";
  385. exports.__esModule = true;
  386. exports.default = void 0;
  387. var _utils = __webpack_require__(0);
  388. var _constant = __webpack_require__(63);
  389. var _createNamespace = (0, _utils.createNamespace)('pagination'),
  390. createComponent = _createNamespace[0],
  391. bem = _createNamespace[1],
  392. t = _createNamespace[2];
  393. function makePage(number, text, active) {
  394. return {
  395. number: number,
  396. text: text,
  397. active: active
  398. };
  399. }
  400. var _default = createComponent({
  401. props: {
  402. prevText: String,
  403. nextText: String,
  404. forceEllipses: Boolean,
  405. mode: {
  406. type: String,
  407. default: 'multi'
  408. },
  409. value: {
  410. type: Number,
  411. default: 0
  412. },
  413. pageCount: {
  414. type: [Number, String],
  415. default: 0
  416. },
  417. totalItems: {
  418. type: [Number, String],
  419. default: 0
  420. },
  421. itemsPerPage: {
  422. type: [Number, String],
  423. default: 10
  424. },
  425. showPageSize: {
  426. type: [Number, String],
  427. default: 5
  428. }
  429. },
  430. computed: {
  431. count: function count() {
  432. var count = this.pageCount || Math.ceil(this.totalItems / this.itemsPerPage);
  433. return Math.max(1, count);
  434. },
  435. pages: function pages() {
  436. var pages = [];
  437. var pageCount = this.count;
  438. var showPageSize = +this.showPageSize;
  439. if (this.mode !== 'multi') {
  440. return pages;
  441. } // Default page limits
  442. var startPage = 1;
  443. var endPage = pageCount;
  444. var isMaxSized = showPageSize < pageCount; // recompute if showPageSize
  445. if (isMaxSized) {
  446. // Current page is displayed in the middle of the visible ones
  447. startPage = Math.max(this.value - Math.floor(showPageSize / 2), 1);
  448. endPage = startPage + showPageSize - 1; // Adjust if limit is exceeded
  449. if (endPage > pageCount) {
  450. endPage = pageCount;
  451. startPage = endPage - showPageSize + 1;
  452. }
  453. } // Add page number links
  454. for (var number = startPage; number <= endPage; number++) {
  455. var page = makePage(number, number, number === this.value);
  456. pages.push(page);
  457. } // Add links to move between page sets
  458. if (isMaxSized && showPageSize > 0 && this.forceEllipses) {
  459. if (startPage > 1) {
  460. var previousPageSet = makePage(startPage - 1, '...', false);
  461. pages.unshift(previousPageSet);
  462. }
  463. if (endPage < pageCount) {
  464. var nextPageSet = makePage(endPage + 1, '...', false);
  465. pages.push(nextPageSet);
  466. }
  467. }
  468. return pages;
  469. }
  470. },
  471. watch: {
  472. value: {
  473. handler: function handler(page) {
  474. this.select(page || this.value);
  475. },
  476. immediate: true
  477. }
  478. },
  479. methods: {
  480. select: function select(page, emitChange) {
  481. page = Math.min(this.count, Math.max(1, page));
  482. if (this.value !== page) {
  483. this.$emit('input', page);
  484. if (emitChange) {
  485. this.$emit('change', page);
  486. }
  487. }
  488. }
  489. },
  490. render: function render() {
  491. var _this = this,
  492. _this$slots,
  493. _this$slots3;
  494. var h = arguments[0];
  495. var value = this.value;
  496. var simple = this.mode !== 'multi';
  497. var onSelect = function onSelect(value) {
  498. return function () {
  499. _this.select(value, true);
  500. };
  501. };
  502. return h("ul", {
  503. "class": bem({
  504. simple: simple
  505. })
  506. }, [h("li", {
  507. "class": [bem('item', {
  508. disabled: value === 1
  509. }), bem('prev'), _constant.BORDER],
  510. "on": {
  511. "click": onSelect(value - 1)
  512. }
  513. }, [((_this$slots = this.slots('prev-text')) != null ? _this$slots : this.prevText) || t('prev')]), this.pages.map(function (page) {
  514. var _this$slots2;
  515. return h("li", {
  516. "class": [bem('item', {
  517. active: page.active
  518. }), bem('page'), _constant.BORDER],
  519. "on": {
  520. "click": onSelect(page.number)
  521. }
  522. }, [(_this$slots2 = _this.slots('page', page)) != null ? _this$slots2 : page.text]);
  523. }), simple && h("li", {
  524. "class": bem('page-desc')
  525. }, [this.slots('pageDesc') || value + "/" + this.count]), h("li", {
  526. "class": [bem('item', {
  527. disabled: value === this.count
  528. }), bem('next'), _constant.BORDER],
  529. "on": {
  530. "click": onSelect(value + 1)
  531. }
  532. }, [((_this$slots3 = this.slots('next-text')) != null ? _this$slots3 : this.nextText) || t('next')])]);
  533. }
  534. });
  535. exports.default = _default;
  536. /***/ }),
  537. /***/ 25:
  538. /***/ (function(module, exports, __webpack_require__) {
  539. "use strict";
  540. exports.__esModule = true;
  541. exports.createBEM = createBEM;
  542. /**
  543. * bem helper
  544. * b() // 'button'
  545. * b('text') // 'button__text'
  546. * b({ disabled }) // 'button button--disabled'
  547. * b('text', { disabled }) // 'button__text button__text--disabled'
  548. * b(['disabled', 'primary']) // 'button button--disabled button--primary'
  549. */
  550. function gen(name, mods) {
  551. if (!mods) {
  552. return '';
  553. }
  554. if (typeof mods === 'string') {
  555. return " " + name + "--" + mods;
  556. }
  557. if (Array.isArray(mods)) {
  558. return mods.reduce(function (ret, item) {
  559. return ret + gen(name, item);
  560. }, '');
  561. }
  562. return Object.keys(mods).reduce(function (ret, key) {
  563. return ret + (mods[key] ? gen(name, key) : '');
  564. }, '');
  565. }
  566. function createBEM(name) {
  567. return function (el, mods) {
  568. if (el && typeof el !== 'string') {
  569. mods = el;
  570. el = '';
  571. }
  572. el = el ? name + "__" + el : name;
  573. return "" + el + gen(el, mods);
  574. };
  575. }
  576. /***/ }),
  577. /***/ 26:
  578. /***/ (function(module, exports, __webpack_require__) {
  579. "use strict";
  580. var _interopRequireDefault = __webpack_require__(1);
  581. exports.__esModule = true;
  582. exports.unifySlots = unifySlots;
  583. exports.createComponent = createComponent;
  584. __webpack_require__(11);
  585. var _ = __webpack_require__(0);
  586. var _string = __webpack_require__(9);
  587. var _slots = __webpack_require__(28);
  588. var _vue = _interopRequireDefault(__webpack_require__(4));
  589. /**
  590. * Create a basic component with common options
  591. */
  592. function install(Vue) {
  593. var name = this.name;
  594. Vue.component(name, this);
  595. Vue.component((0, _string.camelize)("-" + name), this);
  596. } // unify slots & scopedSlots
  597. function unifySlots(context) {
  598. // use data.scopedSlots in lower Vue version
  599. var scopedSlots = context.scopedSlots || context.data.scopedSlots || {};
  600. var slots = context.slots();
  601. Object.keys(slots).forEach(function (key) {
  602. if (!scopedSlots[key]) {
  603. scopedSlots[key] = function () {
  604. return slots[key];
  605. };
  606. }
  607. });
  608. return scopedSlots;
  609. } // should be removed after Vue 3
  610. function transformFunctionComponent(pure) {
  611. return {
  612. functional: true,
  613. props: pure.props,
  614. model: pure.model,
  615. render: function render(h, context) {
  616. return pure(h, context.props, unifySlots(context), context);
  617. }
  618. };
  619. }
  620. function createComponent(name) {
  621. return function (sfc) {
  622. if ((0, _.isFunction)(sfc)) {
  623. sfc = transformFunctionComponent(sfc);
  624. }
  625. if (!sfc.functional) {
  626. sfc.mixins = sfc.mixins || [];
  627. sfc.mixins.push(_slots.SlotsMixin);
  628. }
  629. sfc.name = name;
  630. sfc.install = install;
  631. return sfc;
  632. };
  633. }
  634. /***/ }),
  635. /***/ 27:
  636. /***/ (function(module, exports, __webpack_require__) {
  637. "use strict";
  638. exports.__esModule = true;
  639. exports.default = void 0;
  640. var _default = {
  641. name: '姓名',
  642. tel: '电话',
  643. save: '保存',
  644. confirm: '确认',
  645. cancel: '取消',
  646. delete: '删除',
  647. complete: '完成',
  648. loading: '加载中...',
  649. telEmpty: '请填写电话',
  650. nameEmpty: '请填写姓名',
  651. nameInvalid: '请输入正确的姓名',
  652. confirmDelete: '确定要删除吗',
  653. telInvalid: '请输入正确的手机号',
  654. vanCalendar: {
  655. end: '结束',
  656. start: '开始',
  657. title: '日期选择',
  658. confirm: '确定',
  659. startEnd: '开始/结束',
  660. weekdays: ['日', '一', '二', '三', '四', '五', '六'],
  661. monthTitle: function monthTitle(year, month) {
  662. return year + "\u5E74" + month + "\u6708";
  663. },
  664. rangePrompt: function rangePrompt(maxRange) {
  665. return "\u9009\u62E9\u5929\u6570\u4E0D\u80FD\u8D85\u8FC7 " + maxRange + " \u5929";
  666. }
  667. },
  668. vanCascader: {
  669. select: '请选择'
  670. },
  671. vanContactCard: {
  672. addText: '添加联系人'
  673. },
  674. vanContactList: {
  675. addText: '新建联系人'
  676. },
  677. vanPagination: {
  678. prev: '上一页',
  679. next: '下一页'
  680. },
  681. vanPullRefresh: {
  682. pulling: '下拉即可刷新...',
  683. loosing: '释放即可刷新...'
  684. },
  685. vanSubmitBar: {
  686. label: '合计:'
  687. },
  688. vanCoupon: {
  689. unlimited: '无使用门槛',
  690. discount: function discount(_discount) {
  691. return _discount + "\u6298";
  692. },
  693. condition: function condition(_condition) {
  694. return "\u6EE1" + _condition + "\u5143\u53EF\u7528";
  695. }
  696. },
  697. vanCouponCell: {
  698. title: '优惠券',
  699. tips: '暂无可用',
  700. count: function count(_count) {
  701. return _count + "\u5F20\u53EF\u7528";
  702. }
  703. },
  704. vanCouponList: {
  705. empty: '暂无优惠券',
  706. exchange: '兑换',
  707. close: '不使用优惠券',
  708. enable: '可用',
  709. disabled: '不可用',
  710. placeholder: '请输入优惠码'
  711. },
  712. vanAddressEdit: {
  713. area: '地区',
  714. postal: '邮政编码',
  715. areaEmpty: '请选择地区',
  716. addressEmpty: '请填写详细地址',
  717. postalEmpty: '邮政编码格式不正确',
  718. defaultAddress: '设为默认收货地址',
  719. telPlaceholder: '收货人手机号',
  720. namePlaceholder: '收货人姓名',
  721. areaPlaceholder: '选择省 / 市 / 区'
  722. },
  723. vanAddressEditDetail: {
  724. label: '详细地址',
  725. placeholder: '街道门牌、楼层房间号等信息'
  726. },
  727. vanAddressList: {
  728. add: '新增地址'
  729. }
  730. };
  731. exports.default = _default;
  732. /***/ }),
  733. /***/ 28:
  734. /***/ (function(module, exports, __webpack_require__) {
  735. "use strict";
  736. exports.__esModule = true;
  737. exports.SlotsMixin = void 0;
  738. /**
  739. * Use scopedSlots in Vue 2.6+
  740. * downgrade to slots in lower version
  741. */
  742. var SlotsMixin = {
  743. methods: {
  744. slots: function slots(name, props) {
  745. if (name === void 0) {
  746. name = 'default';
  747. }
  748. var $slots = this.$slots,
  749. $scopedSlots = this.$scopedSlots;
  750. var scopedSlot = $scopedSlots[name];
  751. if (scopedSlot) {
  752. return scopedSlot(props);
  753. }
  754. return $slots[name];
  755. }
  756. }
  757. };
  758. exports.SlotsMixin = SlotsMixin;
  759. /***/ }),
  760. /***/ 29:
  761. /***/ (function(module, exports, __webpack_require__) {
  762. "use strict";
  763. var _interopRequireDefault = __webpack_require__(1);
  764. exports.__esModule = true;
  765. exports.createI18N = createI18N;
  766. var _ = __webpack_require__(0);
  767. var _string = __webpack_require__(9);
  768. var _locale = _interopRequireDefault(__webpack_require__(11));
  769. function createI18N(name) {
  770. var prefix = (0, _string.camelize)(name) + '.';
  771. return function (path) {
  772. var messages = _locale.default.messages();
  773. var message = (0, _.get)(messages, prefix + path) || (0, _.get)(messages, path);
  774. for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  775. args[_key - 1] = arguments[_key];
  776. }
  777. return (0, _.isFunction)(message) ? message.apply(void 0, args) : message;
  778. };
  779. }
  780. /***/ }),
  781. /***/ 4:
  782. /***/ (function(module, exports) {
  783. module.exports = require("vue");
  784. /***/ }),
  785. /***/ 496:
  786. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  787. "use strict";
  788. __webpack_require__.r(__webpack_exports__);
  789. /* harmony import */ var _tisdesign_m_lib_pagination__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(241);
  790. /* harmony import */ var _tisdesign_m_lib_pagination__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tisdesign_m_lib_pagination__WEBPACK_IMPORTED_MODULE_0__);
  791. /* harmony import */ var _tisdesign_m_lib_pagination_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(497);
  792. /* harmony import */ var _tisdesign_m_lib_pagination_style__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_tisdesign_m_lib_pagination_style__WEBPACK_IMPORTED_MODULE_1__);
  793. _tisdesign_m_lib_pagination__WEBPACK_IMPORTED_MODULE_0___default.a.name = 'm-pagination';
  794. /* harmony default export */ __webpack_exports__["default"] = (_tisdesign_m_lib_pagination__WEBPACK_IMPORTED_MODULE_0___default.a);
  795. /***/ }),
  796. /***/ 497:
  797. /***/ (function(module, exports, __webpack_require__) {
  798. __webpack_require__(22);
  799. __webpack_require__(498);
  800. /***/ }),
  801. /***/ 498:
  802. /***/ (function(module, exports, __webpack_require__) {
  803. var content = __webpack_require__(499);
  804. if(typeof content === 'string') content = [[module.i, content, '']];
  805. var transform;
  806. var insertInto;
  807. var options = {"hmr":true}
  808. options.transform = transform
  809. options.insertInto = undefined;
  810. var update = __webpack_require__(6)(content, options);
  811. if(content.locals) module.exports = content.locals;
  812. if(false) {}
  813. /***/ }),
  814. /***/ 499:
  815. /***/ (function(module, exports, __webpack_require__) {
  816. exports = module.exports = __webpack_require__(5)(false);
  817. // Module
  818. exports.push([module.i, ".van-pagination{display:-webkit-box;display:-webkit-flex;display:flex;font-size:14px}.van-pagination__item,.van-pagination__page-desc{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.van-pagination__item{-webkit-box-flex:1;-webkit-flex:1;flex:1;box-sizing:border-box;min-width:36px;height:40px;color:#2cb8b8;background-color:#fff;cursor:pointer;-webkit-user-select:none;user-select:none}.van-pagination__item:active{color:#fff;background-color:#2cb8b8}.van-pagination__item::after{border-width:1px 0 1px 1px}.van-pagination__item:last-child::after{border-right-width:1px}.van-pagination__item--active{color:#fff;background-color:#2cb8b8}.van-pagination__next,.van-pagination__prev{padding:0 4px;cursor:pointer}.van-pagination__item--disabled,.van-pagination__item--disabled:active{color:#646566;background-color:#f7f8fa;cursor:not-allowed;opacity:.5}.van-pagination__page{-webkit-box-flex:0;-webkit-flex-grow:0;flex-grow:0}.van-pagination__page-desc{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:40px;color:#646566}.van-pagination--simple .van-pagination__next::after,.van-pagination--simple .van-pagination__prev::after{border-width:1px}", ""]);
  819. /***/ }),
  820. /***/ 5:
  821. /***/ (function(module, exports, __webpack_require__) {
  822. "use strict";
  823. /*
  824. MIT License http://www.opensource.org/licenses/mit-license.php
  825. Author Tobias Koppers @sokra
  826. */
  827. // css base code, injected by the css-loader
  828. module.exports = function (useSourceMap) {
  829. var list = []; // return the list of modules as css string
  830. list.toString = function toString() {
  831. return this.map(function (item) {
  832. var content = cssWithMappingToString(item, useSourceMap);
  833. if (item[2]) {
  834. return '@media ' + item[2] + '{' + content + '}';
  835. } else {
  836. return content;
  837. }
  838. }).join('');
  839. }; // import a list of modules into the list
  840. list.i = function (modules, mediaQuery) {
  841. if (typeof modules === 'string') {
  842. modules = [[null, modules, '']];
  843. }
  844. var alreadyImportedModules = {};
  845. for (var i = 0; i < this.length; i++) {
  846. var id = this[i][0];
  847. if (id != null) {
  848. alreadyImportedModules[id] = true;
  849. }
  850. }
  851. for (i = 0; i < modules.length; i++) {
  852. var item = modules[i]; // skip already imported module
  853. // this implementation is not 100% perfect for weird media query combinations
  854. // when a module is imported multiple times with different media queries.
  855. // I hope this will never occur (Hey this way we have smaller bundles)
  856. if (item[0] == null || !alreadyImportedModules[item[0]]) {
  857. if (mediaQuery && !item[2]) {
  858. item[2] = mediaQuery;
  859. } else if (mediaQuery) {
  860. item[2] = '(' + item[2] + ') and (' + mediaQuery + ')';
  861. }
  862. list.push(item);
  863. }
  864. }
  865. };
  866. return list;
  867. };
  868. function cssWithMappingToString(item, useSourceMap) {
  869. var content = item[1] || '';
  870. var cssMapping = item[3];
  871. if (!cssMapping) {
  872. return content;
  873. }
  874. if (useSourceMap && typeof btoa === 'function') {
  875. var sourceMapping = toComment(cssMapping);
  876. var sourceURLs = cssMapping.sources.map(function (source) {
  877. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';
  878. });
  879. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  880. }
  881. return [content].join('\n');
  882. } // Adapted from convert-source-map (MIT)
  883. function toComment(sourceMap) {
  884. // eslint-disable-next-line no-undef
  885. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  886. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  887. return '/*# ' + data + ' */';
  888. }
  889. /***/ }),
  890. /***/ 6:
  891. /***/ (function(module, exports, __webpack_require__) {
  892. /*
  893. MIT License http://www.opensource.org/licenses/mit-license.php
  894. Author Tobias Koppers @sokra
  895. */
  896. var stylesInDom = {};
  897. var memoize = function (fn) {
  898. var memo;
  899. return function () {
  900. if (typeof memo === "undefined") memo = fn.apply(this, arguments);
  901. return memo;
  902. };
  903. };
  904. var isOldIE = memoize(function () {
  905. // Test for IE <= 9 as proposed by Browserhacks
  906. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  907. // Tests for existence of standard globals is to allow style-loader
  908. // to operate correctly into non-standard environments
  909. // @see https://github.com/webpack-contrib/style-loader/issues/177
  910. return window && document && document.all && !window.atob;
  911. });
  912. var getTarget = function (target, parent) {
  913. if (parent){
  914. return parent.querySelector(target);
  915. }
  916. return document.querySelector(target);
  917. };
  918. var getElement = (function (fn) {
  919. var memo = {};
  920. return function(target, parent) {
  921. // If passing function in options, then use it for resolve "head" element.
  922. // Useful for Shadow Root style i.e
  923. // {
  924. // insertInto: function () { return document.querySelector("#foo").shadowRoot }
  925. // }
  926. if (typeof target === 'function') {
  927. return target();
  928. }
  929. if (typeof memo[target] === "undefined") {
  930. var styleTarget = getTarget.call(this, target, parent);
  931. // Special case to return head of iframe instead of iframe itself
  932. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  933. try {
  934. // This will throw an exception if access to iframe is blocked
  935. // due to cross-origin restrictions
  936. styleTarget = styleTarget.contentDocument.head;
  937. } catch(e) {
  938. styleTarget = null;
  939. }
  940. }
  941. memo[target] = styleTarget;
  942. }
  943. return memo[target]
  944. };
  945. })();
  946. var singleton = null;
  947. var singletonCounter = 0;
  948. var stylesInsertedAtTop = [];
  949. var fixUrls = __webpack_require__(12);
  950. module.exports = function(list, options) {
  951. if (typeof DEBUG !== "undefined" && DEBUG) {
  952. if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
  953. }
  954. options = options || {};
  955. options.attrs = typeof options.attrs === "object" ? options.attrs : {};
  956. // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  957. // tags it will allow on a page
  958. if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
  959. // By default, add <style> tags to the <head> element
  960. if (!options.insertInto) options.insertInto = "head";
  961. // By default, add <style> tags to the bottom of the target
  962. if (!options.insertAt) options.insertAt = "bottom";
  963. var styles = listToStyles(list, options);
  964. addStylesToDom(styles, options);
  965. return function update (newList) {
  966. var mayRemove = [];
  967. for (var i = 0; i < styles.length; i++) {
  968. var item = styles[i];
  969. var domStyle = stylesInDom[item.id];
  970. domStyle.refs--;
  971. mayRemove.push(domStyle);
  972. }
  973. if(newList) {
  974. var newStyles = listToStyles(newList, options);
  975. addStylesToDom(newStyles, options);
  976. }
  977. for (var i = 0; i < mayRemove.length; i++) {
  978. var domStyle = mayRemove[i];
  979. if(domStyle.refs === 0) {
  980. for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
  981. delete stylesInDom[domStyle.id];
  982. }
  983. }
  984. };
  985. };
  986. function addStylesToDom (styles, options) {
  987. for (var i = 0; i < styles.length; i++) {
  988. var item = styles[i];
  989. var domStyle = stylesInDom[item.id];
  990. if(domStyle) {
  991. domStyle.refs++;
  992. for(var j = 0; j < domStyle.parts.length; j++) {
  993. domStyle.parts[j](item.parts[j]);
  994. }
  995. for(; j < item.parts.length; j++) {
  996. domStyle.parts.push(addStyle(item.parts[j], options));
  997. }
  998. } else {
  999. var parts = [];
  1000. for(var j = 0; j < item.parts.length; j++) {
  1001. parts.push(addStyle(item.parts[j], options));
  1002. }
  1003. stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
  1004. }
  1005. }
  1006. }
  1007. function listToStyles (list, options) {
  1008. var styles = [];
  1009. var newStyles = {};
  1010. for (var i = 0; i < list.length; i++) {
  1011. var item = list[i];
  1012. var id = options.base ? item[0] + options.base : item[0];
  1013. var css = item[1];
  1014. var media = item[2];
  1015. var sourceMap = item[3];
  1016. var part = {css: css, media: media, sourceMap: sourceMap};
  1017. if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
  1018. else newStyles[id].parts.push(part);
  1019. }
  1020. return styles;
  1021. }
  1022. function insertStyleElement (options, style) {
  1023. var target = getElement(options.insertInto)
  1024. if (!target) {
  1025. throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
  1026. }
  1027. var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
  1028. if (options.insertAt === "top") {
  1029. if (!lastStyleElementInsertedAtTop) {
  1030. target.insertBefore(style, target.firstChild);
  1031. } else if (lastStyleElementInsertedAtTop.nextSibling) {
  1032. target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
  1033. } else {
  1034. target.appendChild(style);
  1035. }
  1036. stylesInsertedAtTop.push(style);
  1037. } else if (options.insertAt === "bottom") {
  1038. target.appendChild(style);
  1039. } else if (typeof options.insertAt === "object" && options.insertAt.before) {
  1040. var nextSibling = getElement(options.insertAt.before, target);
  1041. target.insertBefore(style, nextSibling);
  1042. } else {
  1043. 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");
  1044. }
  1045. }
  1046. function removeStyleElement (style) {
  1047. if (style.parentNode === null) return false;
  1048. style.parentNode.removeChild(style);
  1049. var idx = stylesInsertedAtTop.indexOf(style);
  1050. if(idx >= 0) {
  1051. stylesInsertedAtTop.splice(idx, 1);
  1052. }
  1053. }
  1054. function createStyleElement (options) {
  1055. var style = document.createElement("style");
  1056. if(options.attrs.type === undefined) {
  1057. options.attrs.type = "text/css";
  1058. }
  1059. if(options.attrs.nonce === undefined) {
  1060. var nonce = getNonce();
  1061. if (nonce) {
  1062. options.attrs.nonce = nonce;
  1063. }
  1064. }
  1065. addAttrs(style, options.attrs);
  1066. insertStyleElement(options, style);
  1067. return style;
  1068. }
  1069. function createLinkElement (options) {
  1070. var link = document.createElement("link");
  1071. if(options.attrs.type === undefined) {
  1072. options.attrs.type = "text/css";
  1073. }
  1074. options.attrs.rel = "stylesheet";
  1075. addAttrs(link, options.attrs);
  1076. insertStyleElement(options, link);
  1077. return link;
  1078. }
  1079. function addAttrs (el, attrs) {
  1080. Object.keys(attrs).forEach(function (key) {
  1081. el.setAttribute(key, attrs[key]);
  1082. });
  1083. }
  1084. function getNonce() {
  1085. if (false) {}
  1086. return __webpack_require__.nc;
  1087. }
  1088. function addStyle (obj, options) {
  1089. var style, update, remove, result;
  1090. // If a transform function was defined, run it on the css
  1091. if (options.transform && obj.css) {
  1092. result = typeof options.transform === 'function'
  1093. ? options.transform(obj.css)
  1094. : options.transform.default(obj.css);
  1095. if (result) {
  1096. // If transform returns a value, use that instead of the original css.
  1097. // This allows running runtime transformations on the css.
  1098. obj.css = result;
  1099. } else {
  1100. // If the transform function returns a falsy value, don't add this css.
  1101. // This allows conditional loading of css
  1102. return function() {
  1103. // noop
  1104. };
  1105. }
  1106. }
  1107. if (options.singleton) {
  1108. var styleIndex = singletonCounter++;
  1109. style = singleton || (singleton = createStyleElement(options));
  1110. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  1111. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  1112. } else if (
  1113. obj.sourceMap &&
  1114. typeof URL === "function" &&
  1115. typeof URL.createObjectURL === "function" &&
  1116. typeof URL.revokeObjectURL === "function" &&
  1117. typeof Blob === "function" &&
  1118. typeof btoa === "function"
  1119. ) {
  1120. style = createLinkElement(options);
  1121. update = updateLink.bind(null, style, options);
  1122. remove = function () {
  1123. removeStyleElement(style);
  1124. if(style.href) URL.revokeObjectURL(style.href);
  1125. };
  1126. } else {
  1127. style = createStyleElement(options);
  1128. update = applyToTag.bind(null, style);
  1129. remove = function () {
  1130. removeStyleElement(style);
  1131. };
  1132. }
  1133. update(obj);
  1134. return function updateStyle (newObj) {
  1135. if (newObj) {
  1136. if (
  1137. newObj.css === obj.css &&
  1138. newObj.media === obj.media &&
  1139. newObj.sourceMap === obj.sourceMap
  1140. ) {
  1141. return;
  1142. }
  1143. update(obj = newObj);
  1144. } else {
  1145. remove();
  1146. }
  1147. };
  1148. }
  1149. var replaceText = (function () {
  1150. var textStore = [];
  1151. return function (index, replacement) {
  1152. textStore[index] = replacement;
  1153. return textStore.filter(Boolean).join('\n');
  1154. };
  1155. })();
  1156. function applyToSingletonTag (style, index, remove, obj) {
  1157. var css = remove ? "" : obj.css;
  1158. if (style.styleSheet) {
  1159. style.styleSheet.cssText = replaceText(index, css);
  1160. } else {
  1161. var cssNode = document.createTextNode(css);
  1162. var childNodes = style.childNodes;
  1163. if (childNodes[index]) style.removeChild(childNodes[index]);
  1164. if (childNodes.length) {
  1165. style.insertBefore(cssNode, childNodes[index]);
  1166. } else {
  1167. style.appendChild(cssNode);
  1168. }
  1169. }
  1170. }
  1171. function applyToTag (style, obj) {
  1172. var css = obj.css;
  1173. var media = obj.media;
  1174. if(media) {
  1175. style.setAttribute("media", media)
  1176. }
  1177. if(style.styleSheet) {
  1178. style.styleSheet.cssText = css;
  1179. } else {
  1180. while(style.firstChild) {
  1181. style.removeChild(style.firstChild);
  1182. }
  1183. style.appendChild(document.createTextNode(css));
  1184. }
  1185. }
  1186. function updateLink (link, options, obj) {
  1187. var css = obj.css;
  1188. var sourceMap = obj.sourceMap;
  1189. /*
  1190. If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
  1191. and there is no publicPath defined then lets turn convertToAbsoluteUrls
  1192. on by default. Otherwise default to the convertToAbsoluteUrls option
  1193. directly
  1194. */
  1195. var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
  1196. if (options.convertToAbsoluteUrls || autoFixUrls) {
  1197. css = fixUrls(css);
  1198. }
  1199. if (sourceMap) {
  1200. // http://stackoverflow.com/a/26603875
  1201. css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
  1202. }
  1203. var blob = new Blob([css], { type: "text/css" });
  1204. var oldSrc = link.href;
  1205. link.href = URL.createObjectURL(blob);
  1206. if(oldSrc) URL.revokeObjectURL(oldSrc);
  1207. }
  1208. /***/ }),
  1209. /***/ 63:
  1210. /***/ (function(module, exports, __webpack_require__) {
  1211. "use strict";
  1212. exports.__esModule = true;
  1213. exports.BORDER_UNSET_TOP_BOTTOM = exports.BORDER_TOP_BOTTOM = exports.BORDER_SURROUND = exports.BORDER_BOTTOM = exports.BORDER_LEFT = exports.BORDER_TOP = exports.BORDER = exports.RED = void 0;
  1214. // color
  1215. var RED = '#ee0a24'; // border
  1216. exports.RED = RED;
  1217. var BORDER = 'van-hairline';
  1218. exports.BORDER = BORDER;
  1219. var BORDER_TOP = BORDER + "--top";
  1220. exports.BORDER_TOP = BORDER_TOP;
  1221. var BORDER_LEFT = BORDER + "--left";
  1222. exports.BORDER_LEFT = BORDER_LEFT;
  1223. var BORDER_BOTTOM = BORDER + "--bottom";
  1224. exports.BORDER_BOTTOM = BORDER_BOTTOM;
  1225. var BORDER_SURROUND = BORDER + "--surround";
  1226. exports.BORDER_SURROUND = BORDER_SURROUND;
  1227. var BORDER_TOP_BOTTOM = BORDER + "--top-bottom";
  1228. exports.BORDER_TOP_BOTTOM = BORDER_TOP_BOTTOM;
  1229. var BORDER_UNSET_TOP_BOTTOM = BORDER + "-unset--top-bottom";
  1230. exports.BORDER_UNSET_TOP_BOTTOM = BORDER_UNSET_TOP_BOTTOM;
  1231. /***/ }),
  1232. /***/ 9:
  1233. /***/ (function(module, exports, __webpack_require__) {
  1234. "use strict";
  1235. exports.__esModule = true;
  1236. exports.camelize = camelize;
  1237. exports.padZero = padZero;
  1238. var camelizeRE = /-(\w)/g;
  1239. function camelize(str) {
  1240. return str.replace(camelizeRE, function (_, c) {
  1241. return c.toUpperCase();
  1242. });
  1243. }
  1244. function padZero(num, targetLength) {
  1245. if (targetLength === void 0) {
  1246. targetLength = 2;
  1247. }
  1248. var str = num + '';
  1249. while (str.length < targetLength) {
  1250. str = '0' + str;
  1251. }
  1252. return str;
  1253. }
  1254. /***/ })
  1255. /******/ });