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.

3412 lines
130 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 = 420);
  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. /***/ 106:
  143. /***/ (function(module, exports, __webpack_require__) {
  144. var content = __webpack_require__(107);
  145. if(typeof content === 'string') content = [[module.i, content, '']];
  146. var transform;
  147. var insertInto;
  148. var options = {"hmr":true}
  149. options.transform = transform
  150. options.insertInto = undefined;
  151. var update = __webpack_require__(6)(content, options);
  152. if(content.locals) module.exports = content.locals;
  153. if(false) {}
  154. /***/ }),
  155. /***/ 107:
  156. /***/ (function(module, exports, __webpack_require__) {
  157. exports = module.exports = __webpack_require__(5)(false);
  158. // Module
  159. exports.push([module.i, ".van-cell{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;box-sizing:border-box;width:100%;padding:10px 16px;overflow:hidden;color:#323233;font-size:14px;line-height:24px;background-color:#fff}.van-cell::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:16px;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-cell--borderless::after,.van-cell:last-child::after{display:none}.van-cell__label{margin-top:4px;color:#969799;font-size:12px;line-height:18px}.van-cell__title,.van-cell__value{-webkit-box-flex:1;-webkit-flex:1;flex:1}.van-cell__value{position:relative;overflow:hidden;color:#969799;text-align:right;vertical-align:middle;word-wrap:break-word}.van-cell__value--alone{color:#323233;text-align:left}.van-cell__left-icon,.van-cell__right-icon{height:24px;font-size:16px;line-height:24px}.van-cell__left-icon{margin-right:4px}.van-cell__right-icon{margin-left:4px;color:#969799}.van-cell--clickable{cursor:pointer}.van-cell--clickable:active{background-color:#f2f3f5}.van-cell--required{overflow:visible}.van-cell--required::before{position:absolute;left:8px;color:#ffce6d;font-size:14px;content:'*'}.van-cell--center{-webkit-box-align:center;-webkit-align-items:center;align-items:center}.van-cell--large{padding-top:12px;padding-bottom:12px}.van-cell--large .van-cell__title{font-size:16px}.van-cell--large .van-cell__label{font-size:14px}", ""]);
  160. /***/ }),
  161. /***/ 11:
  162. /***/ (function(module, exports, __webpack_require__) {
  163. "use strict";
  164. var _interopRequireDefault = __webpack_require__(1);
  165. exports.__esModule = true;
  166. exports.default = void 0;
  167. var _vue = _interopRequireDefault(__webpack_require__(4));
  168. var _deepAssign = __webpack_require__(21);
  169. var _zhCN = _interopRequireDefault(__webpack_require__(27));
  170. var proto = _vue.default.prototype;
  171. var defineReactive = _vue.default.util.defineReactive;
  172. defineReactive(proto, '$vantLang', 'zh-CN');
  173. defineReactive(proto, '$vantMessages', {
  174. 'zh-CN': _zhCN.default
  175. });
  176. var _default = {
  177. messages: function messages() {
  178. return proto.$vantMessages[proto.$vantLang];
  179. },
  180. use: function use(lang, messages) {
  181. var _this$add;
  182. proto.$vantLang = lang;
  183. this.add((_this$add = {}, _this$add[lang] = messages, _this$add));
  184. },
  185. add: function add(messages) {
  186. if (messages === void 0) {
  187. messages = {};
  188. }
  189. (0, _deepAssign.deepAssign)(proto.$vantMessages, messages);
  190. }
  191. };
  192. exports.default = _default;
  193. /***/ }),
  194. /***/ 12:
  195. /***/ (function(module, exports) {
  196. /**
  197. * When source maps are enabled, `style-loader` uses a link element with a data-uri to
  198. * embed the css on the page. This breaks all relative urls because now they are relative to a
  199. * bundle instead of the current page.
  200. *
  201. * One solution is to only use full urls, but that may be impossible.
  202. *
  203. * Instead, this function "fixes" the relative urls to be absolute according to the current page location.
  204. *
  205. * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
  206. *
  207. */
  208. module.exports = function (css) {
  209. // get current location
  210. var location = typeof window !== "undefined" && window.location;
  211. if (!location) {
  212. throw new Error("fixUrls requires window.location");
  213. }
  214. // blank or null?
  215. if (!css || typeof css !== "string") {
  216. return css;
  217. }
  218. var baseUrl = location.protocol + "//" + location.host;
  219. var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
  220. // convert each url(...)
  221. /*
  222. This regular expression is just a way to recursively match brackets within
  223. a string.
  224. /url\s*\( = Match on the word "url" with any whitespace after it and then a parens
  225. ( = Start a capturing group
  226. (?: = Start a non-capturing group
  227. [^)(] = Match anything that isn't a parentheses
  228. | = OR
  229. \( = Match a start parentheses
  230. (?: = Start another non-capturing groups
  231. [^)(]+ = Match anything that isn't a parentheses
  232. | = OR
  233. \( = Match a start parentheses
  234. [^)(]* = Match anything that isn't a parentheses
  235. \) = Match a end parentheses
  236. ) = End Group
  237. *\) = Match anything and then a close parens
  238. ) = Close non-capturing group
  239. * = Match anything
  240. ) = Close capturing group
  241. \) = Match a close parens
  242. /gi = Get all matches, not the first. Be case insensitive.
  243. */
  244. var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
  245. // strip quotes (if they exist)
  246. var unquotedOrigUrl = origUrl
  247. .trim()
  248. .replace(/^"(.*)"$/, function(o, $1){ return $1; })
  249. .replace(/^'(.*)'$/, function(o, $1){ return $1; });
  250. // already a full url? no change
  251. if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
  252. return fullMatch;
  253. }
  254. // convert the url to a full url
  255. var newUrl;
  256. if (unquotedOrigUrl.indexOf("//") === 0) {
  257. //TODO: should we add protocol?
  258. newUrl = unquotedOrigUrl;
  259. } else if (unquotedOrigUrl.indexOf("/") === 0) {
  260. // path should be relative to the base url
  261. newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
  262. } else {
  263. // path should be relative to current directory
  264. newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
  265. }
  266. // send back the fixed url(...)
  267. return "url(" + JSON.stringify(newUrl) + ")";
  268. });
  269. // send back the fixed css
  270. return fixedCss;
  271. };
  272. /***/ }),
  273. /***/ 14:
  274. /***/ (function(module, exports, __webpack_require__) {
  275. "use strict";
  276. var _interopRequireDefault = __webpack_require__(1);
  277. exports.__esModule = true;
  278. exports.inherit = inherit;
  279. exports.emit = emit;
  280. exports.mount = mount;
  281. var _extends2 = _interopRequireDefault(__webpack_require__(18));
  282. var _vue = _interopRequireDefault(__webpack_require__(4));
  283. var inheritKey = ['ref', 'style', 'class', 'attrs', 'refInFor', 'nativeOn', 'directives', 'staticClass', 'staticStyle'];
  284. var mapInheritKey = {
  285. nativeOn: 'on'
  286. }; // inherit partial context, map nativeOn to on
  287. function inherit(context, inheritListeners) {
  288. var result = inheritKey.reduce(function (obj, key) {
  289. if (context.data[key]) {
  290. obj[mapInheritKey[key] || key] = context.data[key];
  291. }
  292. return obj;
  293. }, {});
  294. if (inheritListeners) {
  295. result.on = result.on || {};
  296. (0, _extends2.default)(result.on, context.data.on);
  297. }
  298. return result;
  299. } // emit event
  300. function emit(context, eventName) {
  301. for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  302. args[_key - 2] = arguments[_key];
  303. }
  304. var listeners = context.listeners[eventName];
  305. if (listeners) {
  306. if (Array.isArray(listeners)) {
  307. listeners.forEach(function (listener) {
  308. listener.apply(void 0, args);
  309. });
  310. } else {
  311. listeners.apply(void 0, args);
  312. }
  313. }
  314. } // mount functional component
  315. function mount(Component, data) {
  316. var instance = new _vue.default({
  317. el: document.createElement('div'),
  318. props: Component.props,
  319. render: function render(h) {
  320. return h(Component, (0, _extends2.default)({
  321. props: this.$props
  322. }, data));
  323. }
  324. });
  325. document.body.appendChild(instance.$el);
  326. return instance;
  327. }
  328. /***/ }),
  329. /***/ 16:
  330. /***/ (function(module, exports, __webpack_require__) {
  331. "use strict";
  332. 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;
  333. /***/ }),
  334. /***/ 18:
  335. /***/ (function(module, exports) {
  336. function _extends() {
  337. module.exports = _extends = Object.assign || function (target) {
  338. for (var i = 1; i < arguments.length; i++) {
  339. var source = arguments[i];
  340. for (var key in source) {
  341. if (Object.prototype.hasOwnProperty.call(source, key)) {
  342. target[key] = source[key];
  343. }
  344. }
  345. }
  346. return target;
  347. };
  348. return _extends.apply(this, arguments);
  349. }
  350. module.exports = _extends;
  351. /***/ }),
  352. /***/ 19:
  353. /***/ (function(module, exports, __webpack_require__) {
  354. "use strict";
  355. exports.__esModule = true;
  356. exports.isNumeric = isNumeric;
  357. exports.isNaN = isNaN;
  358. function isNumeric(val) {
  359. return /^\d+(\.\d+)?$/.test(val);
  360. }
  361. function isNaN(val) {
  362. if (Number.isNaN) {
  363. return Number.isNaN(val);
  364. } // eslint-disable-next-line no-self-compare
  365. return val !== val;
  366. }
  367. /***/ }),
  368. /***/ 20:
  369. /***/ (function(module, exports, __webpack_require__) {
  370. "use strict";
  371. exports.__esModule = true;
  372. exports.addUnit = addUnit;
  373. exports.unitToPx = unitToPx;
  374. var _ = __webpack_require__(0);
  375. var _number = __webpack_require__(19);
  376. function addUnit(value) {
  377. if (!(0, _.isDef)(value)) {
  378. return undefined;
  379. }
  380. value = String(value);
  381. return (0, _number.isNumeric)(value) ? value + "px" : value;
  382. } // cache
  383. var rootFontSize;
  384. function getRootFontSize() {
  385. if (!rootFontSize) {
  386. var doc = document.documentElement;
  387. var fontSize = doc.style.fontSize || window.getComputedStyle(doc).fontSize;
  388. rootFontSize = parseFloat(fontSize);
  389. }
  390. return rootFontSize;
  391. }
  392. function convertRem(value) {
  393. value = value.replace(/rem/g, '');
  394. return +value * getRootFontSize();
  395. }
  396. function convertVw(value) {
  397. value = value.replace(/vw/g, '');
  398. return +value * window.innerWidth / 100;
  399. }
  400. function convertVh(value) {
  401. value = value.replace(/vh/g, '');
  402. return +value * window.innerHeight / 100;
  403. }
  404. function unitToPx(value) {
  405. if (typeof value === 'number') {
  406. return value;
  407. }
  408. if (_.inBrowser) {
  409. if (value.indexOf('rem') !== -1) {
  410. return convertRem(value);
  411. }
  412. if (value.indexOf('vw') !== -1) {
  413. return convertVw(value);
  414. }
  415. if (value.indexOf('vh') !== -1) {
  416. return convertVh(value);
  417. }
  418. }
  419. return parseFloat(value);
  420. }
  421. /***/ }),
  422. /***/ 21:
  423. /***/ (function(module, exports, __webpack_require__) {
  424. "use strict";
  425. exports.__esModule = true;
  426. exports.deepAssign = deepAssign;
  427. var _ = __webpack_require__(0);
  428. var hasOwnProperty = Object.prototype.hasOwnProperty;
  429. function assignKey(to, from, key) {
  430. var val = from[key];
  431. if (!(0, _.isDef)(val)) {
  432. return;
  433. }
  434. if (!hasOwnProperty.call(to, key) || !(0, _.isObject)(val)) {
  435. to[key] = val;
  436. } else {
  437. // eslint-disable-next-line @typescript-eslint/no-use-before-define
  438. to[key] = deepAssign(Object(to[key]), from[key]);
  439. }
  440. }
  441. function deepAssign(to, from) {
  442. Object.keys(from).forEach(function (key) {
  443. assignKey(to, from, key);
  444. });
  445. return to;
  446. }
  447. /***/ }),
  448. /***/ 22:
  449. /***/ (function(module, exports, __webpack_require__) {
  450. var content = __webpack_require__(23);
  451. if(typeof content === 'string') content = [[module.i, content, '']];
  452. var transform;
  453. var insertInto;
  454. var options = {"hmr":true}
  455. options.transform = transform
  456. options.insertInto = undefined;
  457. var update = __webpack_require__(6)(content, options);
  458. if(content.locals) module.exports = content.locals;
  459. if(false) {}
  460. /***/ }),
  461. /***/ 224:
  462. /***/ (function(module, exports, __webpack_require__) {
  463. "use strict";
  464. var _interopRequireDefault = __webpack_require__(1);
  465. exports.__esModule = true;
  466. exports.default = void 0;
  467. var _utils = __webpack_require__(0);
  468. var _event = __webpack_require__(30);
  469. var _portal = __webpack_require__(78);
  470. var _relation = __webpack_require__(47);
  471. var _cell = _interopRequireDefault(__webpack_require__(97));
  472. var _icon = _interopRequireDefault(__webpack_require__(35));
  473. var _popup = _interopRequireDefault(__webpack_require__(93));
  474. // Utils
  475. // Mixins
  476. // Components
  477. var _createNamespace = (0, _utils.createNamespace)('dropdown-item'),
  478. createComponent = _createNamespace[0],
  479. bem = _createNamespace[1];
  480. var _default2 = createComponent({
  481. mixins: [(0, _portal.PortalMixin)({
  482. ref: 'wrapper'
  483. }), (0, _relation.ChildrenMixin)('vanDropdownMenu')],
  484. props: {
  485. value: null,
  486. title: String,
  487. disabled: Boolean,
  488. titleClass: String,
  489. options: {
  490. type: Array,
  491. default: function _default() {
  492. return [];
  493. }
  494. },
  495. lazyRender: {
  496. type: Boolean,
  497. default: true
  498. }
  499. },
  500. data: function data() {
  501. return {
  502. transition: true,
  503. showPopup: false,
  504. showWrapper: false
  505. };
  506. },
  507. computed: {
  508. displayTitle: function displayTitle() {
  509. var _this = this;
  510. if (this.title) {
  511. return this.title;
  512. }
  513. var match = this.options.filter(function (option) {
  514. return option.value === _this.value;
  515. });
  516. return match.length ? match[0].text : '';
  517. }
  518. },
  519. watch: {
  520. showPopup: function showPopup(val) {
  521. this.bindScroll(val);
  522. }
  523. },
  524. beforeCreate: function beforeCreate() {
  525. var _this2 = this;
  526. var createEmitter = function createEmitter(eventName) {
  527. return function () {
  528. return _this2.$emit(eventName);
  529. };
  530. };
  531. this.onOpen = createEmitter('open');
  532. this.onClose = createEmitter('close');
  533. this.onOpened = createEmitter('opened');
  534. },
  535. methods: {
  536. // @exposed-api
  537. toggle: function toggle(show, options) {
  538. if (show === void 0) {
  539. show = !this.showPopup;
  540. }
  541. if (options === void 0) {
  542. options = {};
  543. }
  544. if (show === this.showPopup) {
  545. return;
  546. }
  547. this.transition = !options.immediate;
  548. this.showPopup = show;
  549. if (show) {
  550. this.parent.updateOffset();
  551. this.showWrapper = true;
  552. }
  553. },
  554. bindScroll: function bindScroll(bind) {
  555. var scroller = this.parent.scroller;
  556. var action = bind ? _event.on : _event.off;
  557. action(scroller, 'scroll', this.onScroll, true);
  558. },
  559. onScroll: function onScroll() {
  560. this.parent.updateOffset();
  561. },
  562. onClickWrapper: function onClickWrapper(event) {
  563. // prevent being identified as clicking outside and closed when use get-contaienr
  564. if (this.getContainer) {
  565. event.stopPropagation();
  566. }
  567. }
  568. },
  569. render: function render() {
  570. var _this3 = this;
  571. var h = arguments[0];
  572. var _this$parent = this.parent,
  573. zIndex = _this$parent.zIndex,
  574. offset = _this$parent.offset,
  575. overlay = _this$parent.overlay,
  576. duration = _this$parent.duration,
  577. direction = _this$parent.direction,
  578. activeColor = _this$parent.activeColor,
  579. closeOnClickOverlay = _this$parent.closeOnClickOverlay;
  580. var Options = this.options.map(function (option) {
  581. var active = option.value === _this3.value;
  582. return h(_cell.default, {
  583. "attrs": {
  584. "clickable": true,
  585. "icon": option.icon,
  586. "title": option.text
  587. },
  588. "key": option.value,
  589. "class": bem('option', {
  590. active: active
  591. }),
  592. "style": {
  593. color: active ? activeColor : ''
  594. },
  595. "on": {
  596. "click": function click() {
  597. _this3.showPopup = false;
  598. if (option.value !== _this3.value) {
  599. _this3.$emit('input', option.value);
  600. _this3.$emit('change', option.value);
  601. }
  602. }
  603. }
  604. }, [active && h(_icon.default, {
  605. "class": bem('icon'),
  606. "attrs": {
  607. "color": activeColor,
  608. "name": "success"
  609. }
  610. })]);
  611. });
  612. var style = {
  613. zIndex: zIndex
  614. };
  615. if (direction === 'down') {
  616. style.top = offset + "px";
  617. } else {
  618. style.bottom = offset + "px";
  619. }
  620. return h("div", [h("div", {
  621. "directives": [{
  622. name: "show",
  623. value: this.showWrapper
  624. }],
  625. "ref": "wrapper",
  626. "style": style,
  627. "class": bem([direction]),
  628. "on": {
  629. "click": this.onClickWrapper
  630. }
  631. }, [h(_popup.default, {
  632. "attrs": {
  633. "overlay": overlay,
  634. "position": direction === 'down' ? 'top' : 'bottom',
  635. "duration": this.transition ? duration : 0,
  636. "lazyRender": this.lazyRender,
  637. "overlayStyle": {
  638. position: 'absolute'
  639. },
  640. "closeOnClickOverlay": closeOnClickOverlay
  641. },
  642. "class": bem('content'),
  643. "on": {
  644. "open": this.onOpen,
  645. "close": this.onClose,
  646. "opened": this.onOpened,
  647. "closed": function closed() {
  648. _this3.showWrapper = false;
  649. _this3.$emit('closed');
  650. }
  651. },
  652. "model": {
  653. value: _this3.showPopup,
  654. callback: function callback($$v) {
  655. _this3.showPopup = $$v;
  656. }
  657. }
  658. }, [Options, this.slots('default')])])]);
  659. }
  660. });
  661. exports.default = _default2;
  662. /***/ }),
  663. /***/ 23:
  664. /***/ (function(module, exports, __webpack_require__) {
  665. exports = module.exports = __webpack_require__(5)(false);
  666. // Module
  667. 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
  668. /***/ }),
  669. /***/ 24:
  670. /***/ (function(module, exports, __webpack_require__) {
  671. "use strict";
  672. exports.__esModule = true;
  673. exports.createNamespace = createNamespace;
  674. var _bem = __webpack_require__(25);
  675. var _component = __webpack_require__(26);
  676. var _i18n = __webpack_require__(29);
  677. function createNamespace(name) {
  678. name = 'van-' + name;
  679. return [(0, _component.createComponent)(name), (0, _bem.createBEM)(name), (0, _i18n.createI18N)(name)];
  680. }
  681. /***/ }),
  682. /***/ 25:
  683. /***/ (function(module, exports, __webpack_require__) {
  684. "use strict";
  685. exports.__esModule = true;
  686. exports.createBEM = createBEM;
  687. /**
  688. * bem helper
  689. * b() // 'button'
  690. * b('text') // 'button__text'
  691. * b({ disabled }) // 'button button--disabled'
  692. * b('text', { disabled }) // 'button__text button__text--disabled'
  693. * b(['disabled', 'primary']) // 'button button--disabled button--primary'
  694. */
  695. function gen(name, mods) {
  696. if (!mods) {
  697. return '';
  698. }
  699. if (typeof mods === 'string') {
  700. return " " + name + "--" + mods;
  701. }
  702. if (Array.isArray(mods)) {
  703. return mods.reduce(function (ret, item) {
  704. return ret + gen(name, item);
  705. }, '');
  706. }
  707. return Object.keys(mods).reduce(function (ret, key) {
  708. return ret + (mods[key] ? gen(name, key) : '');
  709. }, '');
  710. }
  711. function createBEM(name) {
  712. return function (el, mods) {
  713. if (el && typeof el !== 'string') {
  714. mods = el;
  715. el = '';
  716. }
  717. el = el ? name + "__" + el : name;
  718. return "" + el + gen(el, mods);
  719. };
  720. }
  721. /***/ }),
  722. /***/ 26:
  723. /***/ (function(module, exports, __webpack_require__) {
  724. "use strict";
  725. var _interopRequireDefault = __webpack_require__(1);
  726. exports.__esModule = true;
  727. exports.unifySlots = unifySlots;
  728. exports.createComponent = createComponent;
  729. __webpack_require__(11);
  730. var _ = __webpack_require__(0);
  731. var _string = __webpack_require__(9);
  732. var _slots = __webpack_require__(28);
  733. var _vue = _interopRequireDefault(__webpack_require__(4));
  734. /**
  735. * Create a basic component with common options
  736. */
  737. function install(Vue) {
  738. var name = this.name;
  739. Vue.component(name, this);
  740. Vue.component((0, _string.camelize)("-" + name), this);
  741. } // unify slots & scopedSlots
  742. function unifySlots(context) {
  743. // use data.scopedSlots in lower Vue version
  744. var scopedSlots = context.scopedSlots || context.data.scopedSlots || {};
  745. var slots = context.slots();
  746. Object.keys(slots).forEach(function (key) {
  747. if (!scopedSlots[key]) {
  748. scopedSlots[key] = function () {
  749. return slots[key];
  750. };
  751. }
  752. });
  753. return scopedSlots;
  754. } // should be removed after Vue 3
  755. function transformFunctionComponent(pure) {
  756. return {
  757. functional: true,
  758. props: pure.props,
  759. model: pure.model,
  760. render: function render(h, context) {
  761. return pure(h, context.props, unifySlots(context), context);
  762. }
  763. };
  764. }
  765. function createComponent(name) {
  766. return function (sfc) {
  767. if ((0, _.isFunction)(sfc)) {
  768. sfc = transformFunctionComponent(sfc);
  769. }
  770. if (!sfc.functional) {
  771. sfc.mixins = sfc.mixins || [];
  772. sfc.mixins.push(_slots.SlotsMixin);
  773. }
  774. sfc.name = name;
  775. sfc.install = install;
  776. return sfc;
  777. };
  778. }
  779. /***/ }),
  780. /***/ 27:
  781. /***/ (function(module, exports, __webpack_require__) {
  782. "use strict";
  783. exports.__esModule = true;
  784. exports.default = void 0;
  785. var _default = {
  786. name: '姓名',
  787. tel: '电话',
  788. save: '保存',
  789. confirm: '确认',
  790. cancel: '取消',
  791. delete: '删除',
  792. complete: '完成',
  793. loading: '加载中...',
  794. telEmpty: '请填写电话',
  795. nameEmpty: '请填写姓名',
  796. nameInvalid: '请输入正确的姓名',
  797. confirmDelete: '确定要删除吗',
  798. telInvalid: '请输入正确的手机号',
  799. vanCalendar: {
  800. end: '结束',
  801. start: '开始',
  802. title: '日期选择',
  803. confirm: '确定',
  804. startEnd: '开始/结束',
  805. weekdays: ['日', '一', '二', '三', '四', '五', '六'],
  806. monthTitle: function monthTitle(year, month) {
  807. return year + "\u5E74" + month + "\u6708";
  808. },
  809. rangePrompt: function rangePrompt(maxRange) {
  810. return "\u9009\u62E9\u5929\u6570\u4E0D\u80FD\u8D85\u8FC7 " + maxRange + " \u5929";
  811. }
  812. },
  813. vanCascader: {
  814. select: '请选择'
  815. },
  816. vanContactCard: {
  817. addText: '添加联系人'
  818. },
  819. vanContactList: {
  820. addText: '新建联系人'
  821. },
  822. vanPagination: {
  823. prev: '上一页',
  824. next: '下一页'
  825. },
  826. vanPullRefresh: {
  827. pulling: '下拉即可刷新...',
  828. loosing: '释放即可刷新...'
  829. },
  830. vanSubmitBar: {
  831. label: '合计:'
  832. },
  833. vanCoupon: {
  834. unlimited: '无使用门槛',
  835. discount: function discount(_discount) {
  836. return _discount + "\u6298";
  837. },
  838. condition: function condition(_condition) {
  839. return "\u6EE1" + _condition + "\u5143\u53EF\u7528";
  840. }
  841. },
  842. vanCouponCell: {
  843. title: '优惠券',
  844. tips: '暂无可用',
  845. count: function count(_count) {
  846. return _count + "\u5F20\u53EF\u7528";
  847. }
  848. },
  849. vanCouponList: {
  850. empty: '暂无优惠券',
  851. exchange: '兑换',
  852. close: '不使用优惠券',
  853. enable: '可用',
  854. disabled: '不可用',
  855. placeholder: '请输入优惠码'
  856. },
  857. vanAddressEdit: {
  858. area: '地区',
  859. postal: '邮政编码',
  860. areaEmpty: '请选择地区',
  861. addressEmpty: '请填写详细地址',
  862. postalEmpty: '邮政编码格式不正确',
  863. defaultAddress: '设为默认收货地址',
  864. telPlaceholder: '收货人手机号',
  865. namePlaceholder: '收货人姓名',
  866. areaPlaceholder: '选择省 / 市 / 区'
  867. },
  868. vanAddressEditDetail: {
  869. label: '详细地址',
  870. placeholder: '街道门牌、楼层房间号等信息'
  871. },
  872. vanAddressList: {
  873. add: '新增地址'
  874. }
  875. };
  876. exports.default = _default;
  877. /***/ }),
  878. /***/ 28:
  879. /***/ (function(module, exports, __webpack_require__) {
  880. "use strict";
  881. exports.__esModule = true;
  882. exports.SlotsMixin = void 0;
  883. /**
  884. * Use scopedSlots in Vue 2.6+
  885. * downgrade to slots in lower version
  886. */
  887. var SlotsMixin = {
  888. methods: {
  889. slots: function slots(name, props) {
  890. if (name === void 0) {
  891. name = 'default';
  892. }
  893. var $slots = this.$slots,
  894. $scopedSlots = this.$scopedSlots;
  895. var scopedSlot = $scopedSlots[name];
  896. if (scopedSlot) {
  897. return scopedSlot(props);
  898. }
  899. return $slots[name];
  900. }
  901. }
  902. };
  903. exports.SlotsMixin = SlotsMixin;
  904. /***/ }),
  905. /***/ 29:
  906. /***/ (function(module, exports, __webpack_require__) {
  907. "use strict";
  908. var _interopRequireDefault = __webpack_require__(1);
  909. exports.__esModule = true;
  910. exports.createI18N = createI18N;
  911. var _ = __webpack_require__(0);
  912. var _string = __webpack_require__(9);
  913. var _locale = _interopRequireDefault(__webpack_require__(11));
  914. function createI18N(name) {
  915. var prefix = (0, _string.camelize)(name) + '.';
  916. return function (path) {
  917. var messages = _locale.default.messages();
  918. var message = (0, _.get)(messages, prefix + path) || (0, _.get)(messages, path);
  919. for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  920. args[_key - 1] = arguments[_key];
  921. }
  922. return (0, _.isFunction)(message) ? message.apply(void 0, args) : message;
  923. };
  924. }
  925. /***/ }),
  926. /***/ 30:
  927. /***/ (function(module, exports, __webpack_require__) {
  928. "use strict";
  929. exports.__esModule = true;
  930. exports.on = on;
  931. exports.off = off;
  932. exports.stopPropagation = stopPropagation;
  933. exports.preventDefault = preventDefault;
  934. exports.supportsPassive = void 0;
  935. var _ = __webpack_require__(0);
  936. // eslint-disable-next-line import/no-mutable-exports
  937. var supportsPassive = false;
  938. exports.supportsPassive = supportsPassive;
  939. if (!_.isServer) {
  940. try {
  941. var opts = {};
  942. Object.defineProperty(opts, 'passive', {
  943. // eslint-disable-next-line getter-return
  944. get: function get() {
  945. /* istanbul ignore next */
  946. exports.supportsPassive = supportsPassive = true;
  947. }
  948. });
  949. window.addEventListener('test-passive', null, opts); // eslint-disable-next-line no-empty
  950. } catch (e) {}
  951. }
  952. function on(target, event, handler, passive) {
  953. if (passive === void 0) {
  954. passive = false;
  955. }
  956. if (!_.isServer) {
  957. target.addEventListener(event, handler, supportsPassive ? {
  958. capture: false,
  959. passive: passive
  960. } : false);
  961. }
  962. }
  963. function off(target, event, handler) {
  964. if (!_.isServer) {
  965. target.removeEventListener(event, handler);
  966. }
  967. }
  968. function stopPropagation(event) {
  969. event.stopPropagation();
  970. }
  971. function preventDefault(event, isStopPropagation) {
  972. /* istanbul ignore else */
  973. if (typeof event.cancelable !== 'boolean' || event.cancelable) {
  974. event.preventDefault();
  975. }
  976. if (isStopPropagation) {
  977. stopPropagation(event);
  978. }
  979. }
  980. /***/ }),
  981. /***/ 35:
  982. /***/ (function(module, exports, __webpack_require__) {
  983. "use strict";
  984. var _interopRequireDefault = __webpack_require__(1);
  985. exports.__esModule = true;
  986. exports.default = void 0;
  987. var _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(16));
  988. var _utils = __webpack_require__(0);
  989. var _functional = __webpack_require__(14);
  990. var _info = _interopRequireDefault(__webpack_require__(37));
  991. // Utils
  992. // Components
  993. var _createNamespace = (0, _utils.createNamespace)('icon'),
  994. createComponent = _createNamespace[0],
  995. bem = _createNamespace[1];
  996. function isImage(name) {
  997. return name ? name.indexOf('/') !== -1 : false;
  998. } // compatible with legacy usage, should be removed in next major version
  999. var LEGACY_MAP = {
  1000. medel: 'medal',
  1001. 'medel-o': 'medal-o',
  1002. 'calender-o': 'calendar-o'
  1003. };
  1004. function correctName(name) {
  1005. return name && LEGACY_MAP[name] || name;
  1006. }
  1007. function Icon(h, props, slots, ctx) {
  1008. var _props$badge;
  1009. var name = correctName(props.name);
  1010. var imageIcon = isImage(name);
  1011. if (false) {}
  1012. return h(props.tag, (0, _babelHelperVueJsxMergeProps.default)([{
  1013. "class": [props.classPrefix, imageIcon ? '' : props.classPrefix + "-" + name],
  1014. "style": {
  1015. color: props.color,
  1016. fontSize: (0, _utils.addUnit)(props.size)
  1017. }
  1018. }, (0, _functional.inherit)(ctx, true)]), [slots.default && slots.default(), imageIcon && h("img", {
  1019. "class": bem('image'),
  1020. "attrs": {
  1021. "src": name
  1022. }
  1023. }), h(_info.default, {
  1024. "attrs": {
  1025. "dot": props.dot,
  1026. "info": (_props$badge = props.badge) != null ? _props$badge : props.info
  1027. }
  1028. })]);
  1029. }
  1030. Icon.props = {
  1031. dot: Boolean,
  1032. name: String,
  1033. size: [Number, String],
  1034. // @deprecated
  1035. // should be removed in next major version
  1036. info: [Number, String],
  1037. badge: [Number, String],
  1038. color: String,
  1039. tag: {
  1040. type: String,
  1041. default: 'i'
  1042. },
  1043. classPrefix: {
  1044. type: String,
  1045. default: bem()
  1046. }
  1047. };
  1048. var _default = createComponent(Icon);
  1049. exports.default = _default;
  1050. /***/ }),
  1051. /***/ 37:
  1052. /***/ (function(module, exports, __webpack_require__) {
  1053. "use strict";
  1054. var _interopRequireDefault = __webpack_require__(1);
  1055. exports.__esModule = true;
  1056. exports.default = void 0;
  1057. var _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(16));
  1058. var _utils = __webpack_require__(0);
  1059. var _functional = __webpack_require__(14);
  1060. // Utils
  1061. var _createNamespace = (0, _utils.createNamespace)('info'),
  1062. createComponent = _createNamespace[0],
  1063. bem = _createNamespace[1];
  1064. function Info(h, props, slots, ctx) {
  1065. var dot = props.dot,
  1066. info = props.info;
  1067. var showInfo = (0, _utils.isDef)(info) && info !== '';
  1068. if (!dot && !showInfo) {
  1069. return;
  1070. }
  1071. return h("div", (0, _babelHelperVueJsxMergeProps.default)([{
  1072. "class": bem({
  1073. dot: dot
  1074. })
  1075. }, (0, _functional.inherit)(ctx, true)]), [dot ? '' : props.info]);
  1076. }
  1077. Info.props = {
  1078. dot: Boolean,
  1079. info: [Number, String]
  1080. };
  1081. var _default = createComponent(Info);
  1082. exports.default = _default;
  1083. /***/ }),
  1084. /***/ 4:
  1085. /***/ (function(module, exports) {
  1086. module.exports = require("vue");
  1087. /***/ }),
  1088. /***/ 41:
  1089. /***/ (function(module, exports, __webpack_require__) {
  1090. var content = __webpack_require__(42);
  1091. if(typeof content === 'string') content = [[module.i, content, '']];
  1092. var transform;
  1093. var insertInto;
  1094. var options = {"hmr":true}
  1095. options.transform = transform
  1096. options.insertInto = undefined;
  1097. var update = __webpack_require__(6)(content, options);
  1098. if(content.locals) module.exports = content.locals;
  1099. if(false) {}
  1100. /***/ }),
  1101. /***/ 42:
  1102. /***/ (function(module, exports, __webpack_require__) {
  1103. exports = module.exports = __webpack_require__(5)(false);
  1104. // Module
  1105. exports.push([module.i, ".van-info{position:absolute;top:0;right:0;box-sizing:border-box;min-width:16px;padding:0 3px;color:#fff;font-weight:500;font-size:12px;font-family:-apple-system-font,Helvetica Neue,Arial,sans-serif;line-height:1.2;text-align:center;background-color:#ffce6d;border:1px solid #fff;border-radius:16px;-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%);-webkit-transform-origin:100%;transform-origin:100%}.van-info--dot{width:8px;min-width:0;height:8px;background-color:#ffce6d;border-radius:100%}", ""]);
  1106. /***/ }),
  1107. /***/ 420:
  1108. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1109. "use strict";
  1110. __webpack_require__.r(__webpack_exports__);
  1111. /* harmony import */ var _tisdesign_m_lib_dropdown_item__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(224);
  1112. /* harmony import */ var _tisdesign_m_lib_dropdown_item__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tisdesign_m_lib_dropdown_item__WEBPACK_IMPORTED_MODULE_0__);
  1113. /* harmony import */ var _tisdesign_m_lib_dropdown_item_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(421);
  1114. /* harmony import */ var _tisdesign_m_lib_dropdown_item_style__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_tisdesign_m_lib_dropdown_item_style__WEBPACK_IMPORTED_MODULE_1__);
  1115. _tisdesign_m_lib_dropdown_item__WEBPACK_IMPORTED_MODULE_0___default.a.name = 'm-dropdown-item';
  1116. /* harmony default export */ __webpack_exports__["default"] = (_tisdesign_m_lib_dropdown_item__WEBPACK_IMPORTED_MODULE_0___default.a);
  1117. /***/ }),
  1118. /***/ 421:
  1119. /***/ (function(module, exports, __webpack_require__) {
  1120. __webpack_require__(22);
  1121. __webpack_require__(79);
  1122. __webpack_require__(41);
  1123. __webpack_require__(45);
  1124. __webpack_require__(106);
  1125. __webpack_require__(82);
  1126. __webpack_require__(422);
  1127. /***/ }),
  1128. /***/ 422:
  1129. /***/ (function(module, exports, __webpack_require__) {
  1130. var content = __webpack_require__(423);
  1131. if(typeof content === 'string') content = [[module.i, content, '']];
  1132. var transform;
  1133. var insertInto;
  1134. var options = {"hmr":true}
  1135. options.transform = transform
  1136. options.insertInto = undefined;
  1137. var update = __webpack_require__(6)(content, options);
  1138. if(content.locals) module.exports = content.locals;
  1139. if(false) {}
  1140. /***/ }),
  1141. /***/ 423:
  1142. /***/ (function(module, exports, __webpack_require__) {
  1143. exports = module.exports = __webpack_require__(5)(false);
  1144. // Module
  1145. exports.push([module.i, ".van-dropdown-item{position:fixed;right:0;left:0;z-index:10;overflow:hidden}.van-dropdown-item__icon{display:block;line-height:inherit}.van-dropdown-item__option{text-align:left}.van-dropdown-item__option--active{color:#ffce6d}.van-dropdown-item__option--active .van-dropdown-item__icon{color:#ffce6d}.van-dropdown-item--up{top:0}.van-dropdown-item--down{bottom:0}.van-dropdown-item__content{position:absolute;max-height:80%}", ""]);
  1146. /***/ }),
  1147. /***/ 45:
  1148. /***/ (function(module, exports, __webpack_require__) {
  1149. var content = __webpack_require__(46);
  1150. if(typeof content === 'string') content = [[module.i, content, '']];
  1151. var transform;
  1152. var insertInto;
  1153. var options = {"hmr":true}
  1154. options.transform = transform
  1155. options.insertInto = undefined;
  1156. var update = __webpack_require__(6)(content, options);
  1157. if(content.locals) module.exports = content.locals;
  1158. if(false) {}
  1159. /***/ }),
  1160. /***/ 46:
  1161. /***/ (function(module, exports, __webpack_require__) {
  1162. exports = module.exports = __webpack_require__(5)(false);
  1163. // Module
  1164. exports.push([module.i, "@font-face{font-weight:400;font-family:vant-icon;font-style:normal;font-display:auto;src:url(data:font/ttf;base64,d09GMgABAAAAAF7YAAsAAAAA4igAAF6FAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGVgCcZgqC/nCCuSwBNgIkA4c8C4NgAAQgBYR2B5RVG7y8J2ReK87drapqKAwhI4qSQGuzAy1sHMCgrWnZ//+flHSM4QAYWFrlrf9gVtv23tF2JUvlQFfKUKAgDpGWBE95ZSjamzhpK//bfiU6h8gMMx2m+jEdKqNwiSVpeTSCpKFcn7CTL/i2VRubdqOXMtE0guHu73pP+XNbjJG+1C+njuHxj3Jq8qJR1OXh/w/1vqwtmM2x7QnHVksBKtAUqFC4pwRrWP7xDq1mS26z3z1tGYTBY3AMUW42ISSEJLBJSLIBQiAJbx7IRza8hoSEJw8IBH6F8HyagAoB34ogiP71I2p9CVZbRatYBVsFq23VVvF5oY/aaj0xivaqtu6E3YKmbm+bXkYSZDDnfQrspiWinHCYjoXasLX3oXIz19ubOTK3tvYpUI+S/ta+aJ8rAoLIUT1akSImAN4apvHTAPDN9WkmCC0g+X2HX3jSlsuybOvG9nNkea/HSREsguF54Jg9wCkNZIoTPLHrRdZVfghkbVdCezVg6hMbMR4E4LZumFe/QbolQz96VC/Z815gNXWwBua5EHnIMDFVFzSOAWSQEmRqxXMlkTv2r49ne5gzbMaKCzOynRR2C0xPJEGg3dBCkf3RfKVvHJcAjmFhvnfqfzNp39vdmaRZGGkMzUU7hpQo7QUAQaCUuLQvj/N2e97xj/Qr/Wo0tlx8tSyy45YThwqXCmxYBI3fT0+VEtuXX000QofCTSMpADCqQg7Jz9WIEagNzgt5xEFEwLaW/5usdpt3ued6SCHVjEj4Ae30z7+pli2GFO+oi9TFrPcoV7m/kCufi85N99MA+PNnBpwZANJgAC4HkLgEQEocQOQiUPuQxAUGXC1JhSeS2gsxYgBqDyQlH0BeoDaKDiFVF1LqzpX72IVYrjsXrUsX3W7nunTporyiNEbsSB70bACWRpgGRqFitklozgzKAIZ3qk3SDL7763UmuAZ/PToWxTRNU0SkY6mHU4cx99/Dxhv7CHFmphgouhFRMXv9cXf3slm/dP3Ee/TeslVEq0gSIjOTBL7eHAEqfpJ5LA6Msjge6NwtTjzZpQHD6XHQPFwcHjQK7Aklh+eC2ffYkEHm4nIEt84Sz6pD8IJ5lv0AVudosgCSv9mngHX2mQKBmXmQBf14/NmhN5ZpY/u079j0GZ7xE24uhPT7/590OFonCIMRf5jwJXmptGnZjsvthcYPHQMTjMVfgEBsQTiCheDi4QsVJlyESFEEhETEosWQkJKRU4ilhFCJEy9BoiTJZlADQWAIFI5AotAYLA5PIJIoVBqdwWSxOVweXyCWSGVyhVKl1mh1eoPRZHZ2cXVz9/D08vbx9fPvH8/X+/P9URVESVZUTTdMy3Zczw/CKE7SLC/Kqm7arh/GaV7WbT+ut7f3D06ub27v7h8r1Vq90Wy1O91efzgaT6az+WK5Wm+2u/3heDpfnp5fXt/ePz6/vn9+/0rHhYdy8dkciTbHgIK9o0HUCM7/hUATAYxARhAjmBHCCGWEMcIZEYxIRhQjmhHDiGXEERIEIVEIkoQhWQRSRCFVDKSJhXRxkCEeMiVAlkTIlgQ5kiFXCuRJhXxpUCAdCmVAkUwolgUlsqFUDpTJhXJ5UCEfKhVAlUKoVgQ1iqFWCdQphXpl0KAcGlVAk0poVgUtqqFVDbSphXZ10KEeOjVAl0bo1gQ9mqFXC/RphX7aYIB2GKQDhuiEYbpghG4YpQfG6IVx+mCCfphkAKYYhGmGYIZhmGUE5hiFecZggXFYZAKWmIRlpmCFaVhlBtaYhXXmYIN52GQBtliEbZZgh2XYZQX2WIV91uCAdThkA47YhGO24IRtOGUHztiFc/bggn245ACuOIRrjuCGY7jlBO44hXvO4IFzeOQCnriEZ67ghWt4xQ285hbecAdvuYd3PMB7HuGDJ/joGT55gc9e4Ys3+OodvvmA7z7hhy/46Rt++YE/fuGvP/jnH5ZogAKEKEKEZ4hRggRlSFGBDFXIUYMCdSjRgApNqNGCBm1o0YEOXejRgwF9GGEAYwxhghFMMYYZJjDHFBaYwRJzWGEBa7zABkvYYgU7rGGPDRywhSN2cMIezjjABUe44gQ3nOGOCzxwhSdu8MId3njAB6/wxRv88BX+vqECFWFRFQ414VEXAQ0R0RQJLZHRFgUdUdEVgJ5A9AVhKBgjIRiLhonomIqBmZiYi4WFUCzFxkocrMXFRjxsxcdOAuwlxEEiHCXGSRKcJcVFMjxJjmcp8CIlXqXCm9R4lwYf0uJTOnxJj28Z8CMjfmVav1X3DCiBLLiSFQXZ8CA7ynKgCHJiILX/xtYi/WBjkX5fHMEJEI9A9gEY37G8t1O8tBL1rFExd5FCYPr/S/wTQ4p/l0YYfZaoO7lHF2n0hsbRMGmkQoTNrNlDTRgIpGARpanbIhFHf2IaMtBQZJL1iSAjgXilipC5JjHI+FoluUz+hh7cIj4KsdYhaiQ+hMaxhyhAqgJ9n/jMfJKNRSi5xnTN02GEyMc8Isl4JH63GGmYaD4PuA26JwVwaxBBVv/4WeSFUN2pweHmXs167W2/R/LF7vjtRUgrWtp+467ezCCZL00apkXMO5Fxli71vZtpxWbs6fn5TqeYzATSBXEcn6m2/NZYwHkcYjTbTBBxwX5LXGyVtA7qi5K6RnkuzpmtCBhQwFsrXgzAENWFIRIBmo40H49A9Eqmjz3mwobakodsgDfwYG/2Zx5AtP6n4WuoW8zqB2eR2SksiJj9ROTJZn9lLoo5s86gfQupSurF9NzV68YP8S3Kg/6M0HnJx9acVEzz51rIT7uFLK/k2CV3egg+Np1jbKEQlX5c1yuRL92RIvKcUx2//W3y98cSWGBkVTo1axaZPRDKFpMhsu6qZ7gIdg4JpaTbl5etNgLhj8qydJPSaF2Nh46W7um5LN/WgJ9nV9XkmidB98wuV5pbClecOu1jr04qaCFVYlpxDsxhyNskvc64Kut6rlIJat+6yDxAqFCaAcrNenNqYcuO1DSIWeYRrGW8tCUXblXleZqSne+KIVqqoCZJRqSroPNWpGm4cJzKCvOfMCRiBjj8DPz+aBDt9svVrl/25//TBAbEKURbEaVEVfu3ZU/2XidZtm+H+bxycEhTERN0UYxQ0cnOzty5Y7bEmP23L946swxTJE7cSFSpDjTntwZ36cPpzPG2zvitDRwbc09AduH60JhSyiIrO8Cg1IVK+jA+jW614seMH/RuQQT7Sa9yPovcpJhTqONabGLerB6T+2Zs0NuE0NKKc4f+oN6codw5FE+DMr5SarOw3HQ/JWiGEApovnZvHS42z/ugcIypDIacj9IsROZRhg2RJusVPEhqjwOSdgcC3N4jSEcw/IIMFRQQBPj12EfR0hhmCMzkEDlx3UaEYhsW2FdpGaRhCZVxBeayOosgVI1aCpyTwyie6QJSn1ea+CzI1so/+azd1Ea2YIPM5YDu2yrUiLkba5O8HXbfYV3r2rfQslnhykkrj8mrijRsyqTkPUwAzJWCweKO46gmoPFpuGWFwtYVZOxbr1jwgsrIJSD4Rghx+xlSHAg0n+1wkAslMgOAY985KIZ6hHk3UTcz5rK2ZKzoq0Xz4TnQSd8oytmWyEhIkVgANK40Ll7b0sXfaW2aF3DC75MOAeHmEyrjowuYy51Xb/DnwWvyzYGfUNwbdkt5xisaD87E+bN6vZQXL77ZMULrwFrp3ApgdJwaAN6Oji2IsjoehJ+KqANu5R6LU9wCt8TNWaLjtnjMLoYpHD3eFi1OjljV41XCe+JHG803zkZOMsFRjiyKCc8d8mYtYofLXxpj5aJ0pKucVqjBYmvrTXuyqDFB185cZLdqUvBGgcJ8/udh7qZT
  1165. /***/ }),
  1166. /***/ 47:
  1167. /***/ (function(module, exports, __webpack_require__) {
  1168. "use strict";
  1169. exports.__esModule = true;
  1170. exports.ChildrenMixin = ChildrenMixin;
  1171. exports.ParentMixin = ParentMixin;
  1172. var _vnodes = __webpack_require__(48);
  1173. function ChildrenMixin(_parent, options) {
  1174. var _inject, _computed;
  1175. if (options === void 0) {
  1176. options = {};
  1177. }
  1178. var indexKey = options.indexKey || 'index';
  1179. return {
  1180. inject: (_inject = {}, _inject[_parent] = {
  1181. default: null
  1182. }, _inject),
  1183. computed: (_computed = {
  1184. parent: function parent() {
  1185. if (this.disableBindRelation) {
  1186. return null;
  1187. }
  1188. return this[_parent];
  1189. }
  1190. }, _computed[indexKey] = function () {
  1191. this.bindRelation();
  1192. if (this.parent) {
  1193. return this.parent.children.indexOf(this);
  1194. }
  1195. return null;
  1196. }, _computed),
  1197. watch: {
  1198. disableBindRelation: function disableBindRelation(val) {
  1199. if (!val) {
  1200. this.bindRelation();
  1201. }
  1202. }
  1203. },
  1204. mounted: function mounted() {
  1205. this.bindRelation();
  1206. },
  1207. beforeDestroy: function beforeDestroy() {
  1208. var _this = this;
  1209. if (this.parent) {
  1210. this.parent.children = this.parent.children.filter(function (item) {
  1211. return item !== _this;
  1212. });
  1213. }
  1214. },
  1215. methods: {
  1216. bindRelation: function bindRelation() {
  1217. if (!this.parent || this.parent.children.indexOf(this) !== -1) {
  1218. return;
  1219. }
  1220. var children = [].concat(this.parent.children, [this]);
  1221. (0, _vnodes.sortChildren)(children, this.parent);
  1222. this.parent.children = children;
  1223. }
  1224. }
  1225. };
  1226. }
  1227. function ParentMixin(parent) {
  1228. return {
  1229. provide: function provide() {
  1230. var _ref;
  1231. return _ref = {}, _ref[parent] = this, _ref;
  1232. },
  1233. data: function data() {
  1234. return {
  1235. children: []
  1236. };
  1237. }
  1238. };
  1239. }
  1240. /***/ }),
  1241. /***/ 48:
  1242. /***/ (function(module, exports, __webpack_require__) {
  1243. "use strict";
  1244. exports.__esModule = true;
  1245. exports.sortChildren = sortChildren;
  1246. function flattenVNodes(vnodes) {
  1247. var result = [];
  1248. function traverse(vnodes) {
  1249. vnodes.forEach(function (vnode) {
  1250. result.push(vnode);
  1251. if (vnode.componentInstance) {
  1252. traverse(vnode.componentInstance.$children.map(function (item) {
  1253. return item.$vnode;
  1254. }));
  1255. }
  1256. if (vnode.children) {
  1257. traverse(vnode.children);
  1258. }
  1259. });
  1260. }
  1261. traverse(vnodes);
  1262. return result;
  1263. } // sort children instances by vnodes order
  1264. function sortChildren(children, parent) {
  1265. var componentOptions = parent.$vnode.componentOptions;
  1266. if (!componentOptions || !componentOptions.children) {
  1267. return;
  1268. }
  1269. var vnodes = flattenVNodes(componentOptions.children);
  1270. children.sort(function (a, b) {
  1271. return vnodes.indexOf(a.$vnode) - vnodes.indexOf(b.$vnode);
  1272. });
  1273. }
  1274. /***/ }),
  1275. /***/ 5:
  1276. /***/ (function(module, exports, __webpack_require__) {
  1277. "use strict";
  1278. /*
  1279. MIT License http://www.opensource.org/licenses/mit-license.php
  1280. Author Tobias Koppers @sokra
  1281. */
  1282. // css base code, injected by the css-loader
  1283. module.exports = function (useSourceMap) {
  1284. var list = []; // return the list of modules as css string
  1285. list.toString = function toString() {
  1286. return this.map(function (item) {
  1287. var content = cssWithMappingToString(item, useSourceMap);
  1288. if (item[2]) {
  1289. return '@media ' + item[2] + '{' + content + '}';
  1290. } else {
  1291. return content;
  1292. }
  1293. }).join('');
  1294. }; // import a list of modules into the list
  1295. list.i = function (modules, mediaQuery) {
  1296. if (typeof modules === 'string') {
  1297. modules = [[null, modules, '']];
  1298. }
  1299. var alreadyImportedModules = {};
  1300. for (var i = 0; i < this.length; i++) {
  1301. var id = this[i][0];
  1302. if (id != null) {
  1303. alreadyImportedModules[id] = true;
  1304. }
  1305. }
  1306. for (i = 0; i < modules.length; i++) {
  1307. var item = modules[i]; // skip already imported module
  1308. // this implementation is not 100% perfect for weird media query combinations
  1309. // when a module is imported multiple times with different media queries.
  1310. // I hope this will never occur (Hey this way we have smaller bundles)
  1311. if (item[0] == null || !alreadyImportedModules[item[0]]) {
  1312. if (mediaQuery && !item[2]) {
  1313. item[2] = mediaQuery;
  1314. } else if (mediaQuery) {
  1315. item[2] = '(' + item[2] + ') and (' + mediaQuery + ')';
  1316. }
  1317. list.push(item);
  1318. }
  1319. }
  1320. };
  1321. return list;
  1322. };
  1323. function cssWithMappingToString(item, useSourceMap) {
  1324. var content = item[1] || '';
  1325. var cssMapping = item[3];
  1326. if (!cssMapping) {
  1327. return content;
  1328. }
  1329. if (useSourceMap && typeof btoa === 'function') {
  1330. var sourceMapping = toComment(cssMapping);
  1331. var sourceURLs = cssMapping.sources.map(function (source) {
  1332. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';
  1333. });
  1334. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  1335. }
  1336. return [content].join('\n');
  1337. } // Adapted from convert-source-map (MIT)
  1338. function toComment(sourceMap) {
  1339. // eslint-disable-next-line no-undef
  1340. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  1341. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  1342. return '/*# ' + data + ' */';
  1343. }
  1344. /***/ }),
  1345. /***/ 51:
  1346. /***/ (function(module, exports, __webpack_require__) {
  1347. "use strict";
  1348. exports.__esModule = true;
  1349. exports.TouchMixin = void 0;
  1350. var _event = __webpack_require__(30);
  1351. var MIN_DISTANCE = 10;
  1352. function getDirection(x, y) {
  1353. if (x > y && x > MIN_DISTANCE) {
  1354. return 'horizontal';
  1355. }
  1356. if (y > x && y > MIN_DISTANCE) {
  1357. return 'vertical';
  1358. }
  1359. return '';
  1360. }
  1361. var TouchMixin = {
  1362. data: function data() {
  1363. return {
  1364. direction: ''
  1365. };
  1366. },
  1367. methods: {
  1368. touchStart: function touchStart(event) {
  1369. this.resetTouchStatus();
  1370. this.startX = event.touches[0].clientX;
  1371. this.startY = event.touches[0].clientY;
  1372. },
  1373. touchMove: function touchMove(event) {
  1374. var touch = event.touches[0];
  1375. this.deltaX = touch.clientX - this.startX;
  1376. this.deltaY = touch.clientY - this.startY;
  1377. this.offsetX = Math.abs(this.deltaX);
  1378. this.offsetY = Math.abs(this.deltaY);
  1379. this.direction = this.direction || getDirection(this.offsetX, this.offsetY);
  1380. },
  1381. resetTouchStatus: function resetTouchStatus() {
  1382. this.direction = '';
  1383. this.deltaX = 0;
  1384. this.deltaY = 0;
  1385. this.offsetX = 0;
  1386. this.offsetY = 0;
  1387. },
  1388. // avoid Vue 2.6 event bubble issues by manually binding events
  1389. // https://github.com/youzan/vant/issues/3015
  1390. bindTouchEvent: function bindTouchEvent(el) {
  1391. var onTouchStart = this.onTouchStart,
  1392. onTouchMove = this.onTouchMove,
  1393. onTouchEnd = this.onTouchEnd;
  1394. (0, _event.on)(el, 'touchstart', onTouchStart);
  1395. (0, _event.on)(el, 'touchmove', onTouchMove);
  1396. if (onTouchEnd) {
  1397. (0, _event.on)(el, 'touchend', onTouchEnd);
  1398. (0, _event.on)(el, 'touchcancel', onTouchEnd);
  1399. }
  1400. }
  1401. }
  1402. };
  1403. exports.TouchMixin = TouchMixin;
  1404. /***/ }),
  1405. /***/ 53:
  1406. /***/ (function(module, exports, __webpack_require__) {
  1407. "use strict";
  1408. exports.__esModule = true;
  1409. exports.getScroller = getScroller;
  1410. exports.getScrollTop = getScrollTop;
  1411. exports.setScrollTop = setScrollTop;
  1412. exports.getRootScrollTop = getRootScrollTop;
  1413. exports.setRootScrollTop = setRootScrollTop;
  1414. exports.getElementTop = getElementTop;
  1415. exports.getVisibleHeight = getVisibleHeight;
  1416. exports.getVisibleTop = getVisibleTop;
  1417. function isWindow(val) {
  1418. return val === window;
  1419. } // get nearest scroll element
  1420. // https://github.com/youzan/vant/issues/3823
  1421. var overflowScrollReg = /scroll|auto/i;
  1422. function getScroller(el, root) {
  1423. if (root === void 0) {
  1424. root = window;
  1425. }
  1426. var node = el;
  1427. while (node && node.tagName !== 'HTML' && node.tagName !== 'BODY' && node.nodeType === 1 && node !== root) {
  1428. var _window$getComputedSt = window.getComputedStyle(node),
  1429. overflowY = _window$getComputedSt.overflowY;
  1430. if (overflowScrollReg.test(overflowY)) {
  1431. return node;
  1432. }
  1433. node = node.parentNode;
  1434. }
  1435. return root;
  1436. }
  1437. function getScrollTop(el) {
  1438. var top = 'scrollTop' in el ? el.scrollTop : el.pageYOffset; // iOS scroll bounce cause minus scrollTop
  1439. return Math.max(top, 0);
  1440. }
  1441. function setScrollTop(el, value) {
  1442. if ('scrollTop' in el) {
  1443. el.scrollTop = value;
  1444. } else {
  1445. el.scrollTo(el.scrollX, value);
  1446. }
  1447. }
  1448. function getRootScrollTop() {
  1449. return window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
  1450. }
  1451. function setRootScrollTop(value) {
  1452. setScrollTop(window, value);
  1453. setScrollTop(document.body, value);
  1454. } // get distance from element top to page top or scroller top
  1455. function getElementTop(el, scroller) {
  1456. if (isWindow(el)) {
  1457. return 0;
  1458. }
  1459. var scrollTop = scroller ? getScrollTop(scroller) : getRootScrollTop();
  1460. return el.getBoundingClientRect().top + scrollTop;
  1461. }
  1462. function getVisibleHeight(el) {
  1463. if (isWindow(el)) {
  1464. return el.innerHeight;
  1465. }
  1466. return el.getBoundingClientRect().height;
  1467. }
  1468. function getVisibleTop(el) {
  1469. if (isWindow(el)) {
  1470. return 0;
  1471. }
  1472. return el.getBoundingClientRect().top;
  1473. }
  1474. /***/ }),
  1475. /***/ 6:
  1476. /***/ (function(module, exports, __webpack_require__) {
  1477. /*
  1478. MIT License http://www.opensource.org/licenses/mit-license.php
  1479. Author Tobias Koppers @sokra
  1480. */
  1481. var stylesInDom = {};
  1482. var memoize = function (fn) {
  1483. var memo;
  1484. return function () {
  1485. if (typeof memo === "undefined") memo = fn.apply(this, arguments);
  1486. return memo;
  1487. };
  1488. };
  1489. var isOldIE = memoize(function () {
  1490. // Test for IE <= 9 as proposed by Browserhacks
  1491. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  1492. // Tests for existence of standard globals is to allow style-loader
  1493. // to operate correctly into non-standard environments
  1494. // @see https://github.com/webpack-contrib/style-loader/issues/177
  1495. return window && document && document.all && !window.atob;
  1496. });
  1497. var getTarget = function (target, parent) {
  1498. if (parent){
  1499. return parent.querySelector(target);
  1500. }
  1501. return document.querySelector(target);
  1502. };
  1503. var getElement = (function (fn) {
  1504. var memo = {};
  1505. return function(target, parent) {
  1506. // If passing function in options, then use it for resolve "head" element.
  1507. // Useful for Shadow Root style i.e
  1508. // {
  1509. // insertInto: function () { return document.querySelector("#foo").shadowRoot }
  1510. // }
  1511. if (typeof target === 'function') {
  1512. return target();
  1513. }
  1514. if (typeof memo[target] === "undefined") {
  1515. var styleTarget = getTarget.call(this, target, parent);
  1516. // Special case to return head of iframe instead of iframe itself
  1517. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  1518. try {
  1519. // This will throw an exception if access to iframe is blocked
  1520. // due to cross-origin restrictions
  1521. styleTarget = styleTarget.contentDocument.head;
  1522. } catch(e) {
  1523. styleTarget = null;
  1524. }
  1525. }
  1526. memo[target] = styleTarget;
  1527. }
  1528. return memo[target]
  1529. };
  1530. })();
  1531. var singleton = null;
  1532. var singletonCounter = 0;
  1533. var stylesInsertedAtTop = [];
  1534. var fixUrls = __webpack_require__(12);
  1535. module.exports = function(list, options) {
  1536. if (typeof DEBUG !== "undefined" && DEBUG) {
  1537. if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
  1538. }
  1539. options = options || {};
  1540. options.attrs = typeof options.attrs === "object" ? options.attrs : {};
  1541. // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  1542. // tags it will allow on a page
  1543. if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
  1544. // By default, add <style> tags to the <head> element
  1545. if (!options.insertInto) options.insertInto = "head";
  1546. // By default, add <style> tags to the bottom of the target
  1547. if (!options.insertAt) options.insertAt = "bottom";
  1548. var styles = listToStyles(list, options);
  1549. addStylesToDom(styles, options);
  1550. return function update (newList) {
  1551. var mayRemove = [];
  1552. for (var i = 0; i < styles.length; i++) {
  1553. var item = styles[i];
  1554. var domStyle = stylesInDom[item.id];
  1555. domStyle.refs--;
  1556. mayRemove.push(domStyle);
  1557. }
  1558. if(newList) {
  1559. var newStyles = listToStyles(newList, options);
  1560. addStylesToDom(newStyles, options);
  1561. }
  1562. for (var i = 0; i < mayRemove.length; i++) {
  1563. var domStyle = mayRemove[i];
  1564. if(domStyle.refs === 0) {
  1565. for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
  1566. delete stylesInDom[domStyle.id];
  1567. }
  1568. }
  1569. };
  1570. };
  1571. function addStylesToDom (styles, options) {
  1572. for (var i = 0; i < styles.length; i++) {
  1573. var item = styles[i];
  1574. var domStyle = stylesInDom[item.id];
  1575. if(domStyle) {
  1576. domStyle.refs++;
  1577. for(var j = 0; j < domStyle.parts.length; j++) {
  1578. domStyle.parts[j](item.parts[j]);
  1579. }
  1580. for(; j < item.parts.length; j++) {
  1581. domStyle.parts.push(addStyle(item.parts[j], options));
  1582. }
  1583. } else {
  1584. var parts = [];
  1585. for(var j = 0; j < item.parts.length; j++) {
  1586. parts.push(addStyle(item.parts[j], options));
  1587. }
  1588. stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
  1589. }
  1590. }
  1591. }
  1592. function listToStyles (list, options) {
  1593. var styles = [];
  1594. var newStyles = {};
  1595. for (var i = 0; i < list.length; i++) {
  1596. var item = list[i];
  1597. var id = options.base ? item[0] + options.base : item[0];
  1598. var css = item[1];
  1599. var media = item[2];
  1600. var sourceMap = item[3];
  1601. var part = {css: css, media: media, sourceMap: sourceMap};
  1602. if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
  1603. else newStyles[id].parts.push(part);
  1604. }
  1605. return styles;
  1606. }
  1607. function insertStyleElement (options, style) {
  1608. var target = getElement(options.insertInto)
  1609. if (!target) {
  1610. throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
  1611. }
  1612. var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
  1613. if (options.insertAt === "top") {
  1614. if (!lastStyleElementInsertedAtTop) {
  1615. target.insertBefore(style, target.firstChild);
  1616. } else if (lastStyleElementInsertedAtTop.nextSibling) {
  1617. target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
  1618. } else {
  1619. target.appendChild(style);
  1620. }
  1621. stylesInsertedAtTop.push(style);
  1622. } else if (options.insertAt === "bottom") {
  1623. target.appendChild(style);
  1624. } else if (typeof options.insertAt === "object" && options.insertAt.before) {
  1625. var nextSibling = getElement(options.insertAt.before, target);
  1626. target.insertBefore(style, nextSibling);
  1627. } else {
  1628. 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");
  1629. }
  1630. }
  1631. function removeStyleElement (style) {
  1632. if (style.parentNode === null) return false;
  1633. style.parentNode.removeChild(style);
  1634. var idx = stylesInsertedAtTop.indexOf(style);
  1635. if(idx >= 0) {
  1636. stylesInsertedAtTop.splice(idx, 1);
  1637. }
  1638. }
  1639. function createStyleElement (options) {
  1640. var style = document.createElement("style");
  1641. if(options.attrs.type === undefined) {
  1642. options.attrs.type = "text/css";
  1643. }
  1644. if(options.attrs.nonce === undefined) {
  1645. var nonce = getNonce();
  1646. if (nonce) {
  1647. options.attrs.nonce = nonce;
  1648. }
  1649. }
  1650. addAttrs(style, options.attrs);
  1651. insertStyleElement(options, style);
  1652. return style;
  1653. }
  1654. function createLinkElement (options) {
  1655. var link = document.createElement("link");
  1656. if(options.attrs.type === undefined) {
  1657. options.attrs.type = "text/css";
  1658. }
  1659. options.attrs.rel = "stylesheet";
  1660. addAttrs(link, options.attrs);
  1661. insertStyleElement(options, link);
  1662. return link;
  1663. }
  1664. function addAttrs (el, attrs) {
  1665. Object.keys(attrs).forEach(function (key) {
  1666. el.setAttribute(key, attrs[key]);
  1667. });
  1668. }
  1669. function getNonce() {
  1670. if (false) {}
  1671. return __webpack_require__.nc;
  1672. }
  1673. function addStyle (obj, options) {
  1674. var style, update, remove, result;
  1675. // If a transform function was defined, run it on the css
  1676. if (options.transform && obj.css) {
  1677. result = typeof options.transform === 'function'
  1678. ? options.transform(obj.css)
  1679. : options.transform.default(obj.css);
  1680. if (result) {
  1681. // If transform returns a value, use that instead of the original css.
  1682. // This allows running runtime transformations on the css.
  1683. obj.css = result;
  1684. } else {
  1685. // If the transform function returns a falsy value, don't add this css.
  1686. // This allows conditional loading of css
  1687. return function() {
  1688. // noop
  1689. };
  1690. }
  1691. }
  1692. if (options.singleton) {
  1693. var styleIndex = singletonCounter++;
  1694. style = singleton || (singleton = createStyleElement(options));
  1695. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  1696. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  1697. } else if (
  1698. obj.sourceMap &&
  1699. typeof URL === "function" &&
  1700. typeof URL.createObjectURL === "function" &&
  1701. typeof URL.revokeObjectURL === "function" &&
  1702. typeof Blob === "function" &&
  1703. typeof btoa === "function"
  1704. ) {
  1705. style = createLinkElement(options);
  1706. update = updateLink.bind(null, style, options);
  1707. remove = function () {
  1708. removeStyleElement(style);
  1709. if(style.href) URL.revokeObjectURL(style.href);
  1710. };
  1711. } else {
  1712. style = createStyleElement(options);
  1713. update = applyToTag.bind(null, style);
  1714. remove = function () {
  1715. removeStyleElement(style);
  1716. };
  1717. }
  1718. update(obj);
  1719. return function updateStyle (newObj) {
  1720. if (newObj) {
  1721. if (
  1722. newObj.css === obj.css &&
  1723. newObj.media === obj.media &&
  1724. newObj.sourceMap === obj.sourceMap
  1725. ) {
  1726. return;
  1727. }
  1728. update(obj = newObj);
  1729. } else {
  1730. remove();
  1731. }
  1732. };
  1733. }
  1734. var replaceText = (function () {
  1735. var textStore = [];
  1736. return function (index, replacement) {
  1737. textStore[index] = replacement;
  1738. return textStore.filter(Boolean).join('\n');
  1739. };
  1740. })();
  1741. function applyToSingletonTag (style, index, remove, obj) {
  1742. var css = remove ? "" : obj.css;
  1743. if (style.styleSheet) {
  1744. style.styleSheet.cssText = replaceText(index, css);
  1745. } else {
  1746. var cssNode = document.createTextNode(css);
  1747. var childNodes = style.childNodes;
  1748. if (childNodes[index]) style.removeChild(childNodes[index]);
  1749. if (childNodes.length) {
  1750. style.insertBefore(cssNode, childNodes[index]);
  1751. } else {
  1752. style.appendChild(cssNode);
  1753. }
  1754. }
  1755. }
  1756. function applyToTag (style, obj) {
  1757. var css = obj.css;
  1758. var media = obj.media;
  1759. if(media) {
  1760. style.setAttribute("media", media)
  1761. }
  1762. if(style.styleSheet) {
  1763. style.styleSheet.cssText = css;
  1764. } else {
  1765. while(style.firstChild) {
  1766. style.removeChild(style.firstChild);
  1767. }
  1768. style.appendChild(document.createTextNode(css));
  1769. }
  1770. }
  1771. function updateLink (link, options, obj) {
  1772. var css = obj.css;
  1773. var sourceMap = obj.sourceMap;
  1774. /*
  1775. If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
  1776. and there is no publicPath defined then lets turn convertToAbsoluteUrls
  1777. on by default. Otherwise default to the convertToAbsoluteUrls option
  1778. directly
  1779. */
  1780. var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
  1781. if (options.convertToAbsoluteUrls || autoFixUrls) {
  1782. css = fixUrls(css);
  1783. }
  1784. if (sourceMap) {
  1785. // http://stackoverflow.com/a/26603875
  1786. css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
  1787. }
  1788. var blob = new Blob([css], { type: "text/css" });
  1789. var oldSrc = link.href;
  1790. link.href = URL.createObjectURL(blob);
  1791. if(oldSrc) URL.revokeObjectURL(oldSrc);
  1792. }
  1793. /***/ }),
  1794. /***/ 60:
  1795. /***/ (function(module, exports, __webpack_require__) {
  1796. "use strict";
  1797. exports.__esModule = true;
  1798. exports.BindEventMixin = BindEventMixin;
  1799. var _event = __webpack_require__(30);
  1800. /**
  1801. * Bind event when mounted or activated
  1802. */
  1803. var uid = 0;
  1804. function BindEventMixin(handler) {
  1805. var key = "binded_" + uid++;
  1806. function bind() {
  1807. if (!this[key]) {
  1808. handler.call(this, _event.on, true);
  1809. this[key] = true;
  1810. }
  1811. }
  1812. function unbind() {
  1813. if (this[key]) {
  1814. handler.call(this, _event.off, false);
  1815. this[key] = false;
  1816. }
  1817. }
  1818. return {
  1819. mounted: bind,
  1820. activated: bind,
  1821. deactivated: unbind,
  1822. beforeDestroy: unbind
  1823. };
  1824. }
  1825. /***/ }),
  1826. /***/ 64:
  1827. /***/ (function(module, exports, __webpack_require__) {
  1828. "use strict";
  1829. exports.__esModule = true;
  1830. exports.removeNode = removeNode;
  1831. function removeNode(el) {
  1832. var parent = el.parentNode;
  1833. if (parent) {
  1834. parent.removeChild(el);
  1835. }
  1836. }
  1837. /***/ }),
  1838. /***/ 67:
  1839. /***/ (function(module, exports, __webpack_require__) {
  1840. "use strict";
  1841. exports.__esModule = true;
  1842. exports.context = void 0;
  1843. var context = {
  1844. zIndex: 2000,
  1845. lockCount: 0,
  1846. stack: [],
  1847. find: function find(vm) {
  1848. return this.stack.filter(function (item) {
  1849. return item.vm === vm;
  1850. })[0];
  1851. }
  1852. };
  1853. exports.context = context;
  1854. /***/ }),
  1855. /***/ 69:
  1856. /***/ (function(module, exports, __webpack_require__) {
  1857. "use strict";
  1858. exports.__esModule = true;
  1859. exports.route = route;
  1860. exports.functionalRoute = functionalRoute;
  1861. exports.routeProps = void 0;
  1862. /**
  1863. * Vue Router support
  1864. */
  1865. function isRedundantNavigation(err) {
  1866. return err.name === 'NavigationDuplicated' || // compatible with vue-router@3.3
  1867. err.message && err.message.indexOf('redundant navigation') !== -1;
  1868. }
  1869. function route(router, config) {
  1870. var to = config.to,
  1871. url = config.url,
  1872. replace = config.replace;
  1873. if (to && router) {
  1874. var promise = router[replace ? 'replace' : 'push'](to);
  1875. /* istanbul ignore else */
  1876. if (promise && promise.catch) {
  1877. promise.catch(function (err) {
  1878. if (err && !isRedundantNavigation(err)) {
  1879. throw err;
  1880. }
  1881. });
  1882. }
  1883. } else if (url) {
  1884. replace ? location.replace(url) : location.href = url;
  1885. }
  1886. }
  1887. function functionalRoute(context) {
  1888. route(context.parent && context.parent.$router, context.props);
  1889. }
  1890. var routeProps = {
  1891. url: String,
  1892. replace: Boolean,
  1893. to: [String, Object]
  1894. };
  1895. exports.routeProps = routeProps;
  1896. /***/ }),
  1897. /***/ 75:
  1898. /***/ (function(module, exports, __webpack_require__) {
  1899. "use strict";
  1900. exports.__esModule = true;
  1901. exports.PopupMixin = PopupMixin;
  1902. exports.popupMixinProps = void 0;
  1903. var _context = __webpack_require__(67);
  1904. var _overlay = __webpack_require__(84);
  1905. var _event = __webpack_require__(30);
  1906. var _node = __webpack_require__(64);
  1907. var _scroll = __webpack_require__(53);
  1908. var _touch = __webpack_require__(51);
  1909. var _portal = __webpack_require__(78);
  1910. var _closeOnPopstate = __webpack_require__(85);
  1911. // Context
  1912. // Utils
  1913. // Mixins
  1914. var popupMixinProps = {
  1915. // Initial rendering animation
  1916. transitionAppear: Boolean,
  1917. // whether to show popup
  1918. value: Boolean,
  1919. // whether to show overlay
  1920. overlay: Boolean,
  1921. // overlay custom style
  1922. overlayStyle: Object,
  1923. // overlay custom class name
  1924. overlayClass: String,
  1925. // whether to close popup when overlay is clicked
  1926. closeOnClickOverlay: Boolean,
  1927. // z-index
  1928. zIndex: [Number, String],
  1929. // prevent body scroll
  1930. lockScroll: {
  1931. type: Boolean,
  1932. default: true
  1933. },
  1934. // whether to lazy render
  1935. lazyRender: {
  1936. type: Boolean,
  1937. default: true
  1938. }
  1939. };
  1940. exports.popupMixinProps = popupMixinProps;
  1941. function PopupMixin(options) {
  1942. if (options === void 0) {
  1943. options = {};
  1944. }
  1945. return {
  1946. mixins: [_touch.TouchMixin, _closeOnPopstate.CloseOnPopstateMixin, (0, _portal.PortalMixin)({
  1947. afterPortal: function afterPortal() {
  1948. if (this.overlay) {
  1949. (0, _overlay.updateOverlay)();
  1950. }
  1951. }
  1952. })],
  1953. props: popupMixinProps,
  1954. data: function data() {
  1955. return {
  1956. inited: this.value
  1957. };
  1958. },
  1959. computed: {
  1960. shouldRender: function shouldRender() {
  1961. return this.inited || !this.lazyRender;
  1962. }
  1963. },
  1964. watch: {
  1965. value: function value(val) {
  1966. var type = val ? 'open' : 'close';
  1967. this.inited = this.inited || this.value;
  1968. this[type]();
  1969. if (!options.skipToggleEvent) {
  1970. this.$emit(type);
  1971. }
  1972. },
  1973. overlay: 'renderOverlay'
  1974. },
  1975. mounted: function mounted() {
  1976. if (this.value) {
  1977. this.open();
  1978. }
  1979. },
  1980. /* istanbul ignore next */
  1981. activated: function activated() {
  1982. if (this.shouldReopen) {
  1983. this.$emit('input', true);
  1984. this.shouldReopen = false;
  1985. }
  1986. },
  1987. beforeDestroy: function beforeDestroy() {
  1988. (0, _overlay.removeOverlay)(this);
  1989. if (this.opened) {
  1990. this.removeLock();
  1991. }
  1992. if (this.getContainer) {
  1993. (0, _node.removeNode)(this.$el);
  1994. }
  1995. },
  1996. /* istanbul ignore next */
  1997. deactivated: function deactivated() {
  1998. if (this.value) {
  1999. this.close();
  2000. this.shouldReopen = true;
  2001. }
  2002. },
  2003. methods: {
  2004. open: function open() {
  2005. /* istanbul ignore next */
  2006. if (this.$isServer || this.opened) {
  2007. return;
  2008. } // cover default zIndex
  2009. if (this.zIndex !== undefined) {
  2010. _context.context.zIndex = this.zIndex;
  2011. }
  2012. this.opened = true;
  2013. this.renderOverlay();
  2014. this.addLock();
  2015. },
  2016. addLock: function addLock() {
  2017. if (this.lockScroll) {
  2018. (0, _event.on)(document, 'touchstart', this.touchStart);
  2019. (0, _event.on)(document, 'touchmove', this.onTouchMove);
  2020. if (!_context.context.lockCount) {
  2021. document.body.classList.add('van-overflow-hidden');
  2022. }
  2023. _context.context.lockCount++;
  2024. }
  2025. },
  2026. removeLock: function removeLock() {
  2027. if (this.lockScroll && _context.context.lockCount) {
  2028. _context.context.lockCount--;
  2029. (0, _event.off)(document, 'touchstart', this.touchStart);
  2030. (0, _event.off)(document, 'touchmove', this.onTouchMove);
  2031. if (!_context.context.lockCount) {
  2032. document.body.classList.remove('van-overflow-hidden');
  2033. }
  2034. }
  2035. },
  2036. close: function close() {
  2037. if (!this.opened) {
  2038. return;
  2039. }
  2040. (0, _overlay.closeOverlay)(this);
  2041. this.opened = false;
  2042. this.removeLock();
  2043. this.$emit('input', false);
  2044. },
  2045. onTouchMove: function onTouchMove(event) {
  2046. this.touchMove(event);
  2047. var direction = this.deltaY > 0 ? '10' : '01';
  2048. var el = (0, _scroll.getScroller)(event.target, this.$el);
  2049. var scrollHeight = el.scrollHeight,
  2050. offsetHeight = el.offsetHeight,
  2051. scrollTop = el.scrollTop;
  2052. var status = '11';
  2053. /* istanbul ignore next */
  2054. if (scrollTop === 0) {
  2055. status = offsetHeight >= scrollHeight ? '00' : '01';
  2056. } else if (scrollTop + offsetHeight >= scrollHeight) {
  2057. status = '10';
  2058. }
  2059. /* istanbul ignore next */
  2060. if (status !== '11' && this.direction === 'vertical' && !(parseInt(status, 2) & parseInt(direction, 2))) {
  2061. (0, _event.preventDefault)(event, true);
  2062. }
  2063. },
  2064. renderOverlay: function renderOverlay() {
  2065. var _this = this;
  2066. if (this.$isServer || !this.value) {
  2067. return;
  2068. }
  2069. this.$nextTick(function () {
  2070. _this.updateZIndex(_this.overlay ? 1 : 0);
  2071. if (_this.overlay) {
  2072. (0, _overlay.openOverlay)(_this, {
  2073. zIndex: _context.context.zIndex++,
  2074. duration: _this.duration,
  2075. className: _this.overlayClass,
  2076. customStyle: _this.overlayStyle
  2077. });
  2078. } else {
  2079. (0, _overlay.closeOverlay)(_this);
  2080. }
  2081. });
  2082. },
  2083. updateZIndex: function updateZIndex(value) {
  2084. if (value === void 0) {
  2085. value = 0;
  2086. }
  2087. this.$el.style.zIndex = ++_context.context.zIndex + value;
  2088. }
  2089. }
  2090. };
  2091. }
  2092. /***/ }),
  2093. /***/ 76:
  2094. /***/ (function(module, exports, __webpack_require__) {
  2095. "use strict";
  2096. var _interopRequireDefault = __webpack_require__(1);
  2097. exports.__esModule = true;
  2098. exports.default = void 0;
  2099. var _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(16));
  2100. var _extends2 = _interopRequireDefault(__webpack_require__(18));
  2101. var _utils = __webpack_require__(0);
  2102. var _functional = __webpack_require__(14);
  2103. var _event = __webpack_require__(30);
  2104. // Utils
  2105. var _createNamespace = (0, _utils.createNamespace)('overlay'),
  2106. createComponent = _createNamespace[0],
  2107. bem = _createNamespace[1];
  2108. function preventTouchMove(event) {
  2109. (0, _event.preventDefault)(event, true);
  2110. }
  2111. function Overlay(h, props, slots, ctx) {
  2112. var style = (0, _extends2.default)({
  2113. zIndex: props.zIndex
  2114. }, props.customStyle);
  2115. if ((0, _utils.isDef)(props.duration)) {
  2116. style.animationDuration = props.duration + "s";
  2117. }
  2118. return h("transition", {
  2119. "attrs": {
  2120. "name": "van-fade"
  2121. }
  2122. }, [h("div", (0, _babelHelperVueJsxMergeProps.default)([{
  2123. "directives": [{
  2124. name: "show",
  2125. value: props.show
  2126. }],
  2127. "style": style,
  2128. "class": [bem(), props.className],
  2129. "on": {
  2130. "touchmove": props.lockScroll ? preventTouchMove : _utils.noop
  2131. }
  2132. }, (0, _functional.inherit)(ctx, true)]), [slots.default == null ? void 0 : slots.default()])]);
  2133. }
  2134. Overlay.props = {
  2135. show: Boolean,
  2136. zIndex: [Number, String],
  2137. duration: [Number, String],
  2138. className: null,
  2139. customStyle: Object,
  2140. lockScroll: {
  2141. type: Boolean,
  2142. default: true
  2143. }
  2144. };
  2145. var _default = createComponent(Overlay);
  2146. exports.default = _default;
  2147. /***/ }),
  2148. /***/ 78:
  2149. /***/ (function(module, exports, __webpack_require__) {
  2150. "use strict";
  2151. exports.__esModule = true;
  2152. exports.PortalMixin = PortalMixin;
  2153. function getElement(selector) {
  2154. if (typeof selector === 'string') {
  2155. return document.querySelector(selector);
  2156. }
  2157. return selector();
  2158. }
  2159. function PortalMixin(_temp) {
  2160. var _ref = _temp === void 0 ? {} : _temp,
  2161. ref = _ref.ref,
  2162. afterPortal = _ref.afterPortal;
  2163. return {
  2164. props: {
  2165. getContainer: [String, Function]
  2166. },
  2167. watch: {
  2168. getContainer: 'portal'
  2169. },
  2170. mounted: function mounted() {
  2171. if (this.getContainer) {
  2172. this.portal();
  2173. }
  2174. },
  2175. methods: {
  2176. portal: function portal() {
  2177. var getContainer = this.getContainer;
  2178. var el = ref ? this.$refs[ref] : this.$el;
  2179. var container;
  2180. if (getContainer) {
  2181. container = getElement(getContainer);
  2182. } else if (this.$parent) {
  2183. container = this.$parent.$el;
  2184. }
  2185. if (container && container !== el.parentNode) {
  2186. container.appendChild(el);
  2187. }
  2188. if (afterPortal) {
  2189. afterPortal.call(this);
  2190. }
  2191. }
  2192. }
  2193. };
  2194. }
  2195. /***/ }),
  2196. /***/ 79:
  2197. /***/ (function(module, exports, __webpack_require__) {
  2198. var content = __webpack_require__(80);
  2199. if(typeof content === 'string') content = [[module.i, content, '']];
  2200. var transform;
  2201. var insertInto;
  2202. var options = {"hmr":true}
  2203. options.transform = transform
  2204. options.insertInto = undefined;
  2205. var update = __webpack_require__(6)(content, options);
  2206. if(content.locals) module.exports = content.locals;
  2207. if(false) {}
  2208. /***/ }),
  2209. /***/ 80:
  2210. /***/ (function(module, exports, __webpack_require__) {
  2211. exports = module.exports = __webpack_require__(5)(false);
  2212. // Module
  2213. exports.push([module.i, ".van-overlay{position:fixed;top:0;left:0;z-index:1;width:100%;height:100%;background-color:rgba(0,0,0,.7)}", ""]);
  2214. /***/ }),
  2215. /***/ 82:
  2216. /***/ (function(module, exports, __webpack_require__) {
  2217. var content = __webpack_require__(83);
  2218. if(typeof content === 'string') content = [[module.i, content, '']];
  2219. var transform;
  2220. var insertInto;
  2221. var options = {"hmr":true}
  2222. options.transform = transform
  2223. options.insertInto = undefined;
  2224. var update = __webpack_require__(6)(content, options);
  2225. if(content.locals) module.exports = content.locals;
  2226. if(false) {}
  2227. /***/ }),
  2228. /***/ 83:
  2229. /***/ (function(module, exports, __webpack_require__) {
  2230. exports = module.exports = __webpack_require__(5)(false);
  2231. // Module
  2232. exports.push([module.i, ".van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;background-color:#fff;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.van-popup--center.van-popup--round{border-radius:16px}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 16px 16px}.van-popup--right{top:50%;right:0;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:16px 0 0 16px}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:16px 16px 0 0}.van-popup--left{top:50%;left:0;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 16px 16px 0}.van-popup--safe-area-inset-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-popup-slide-bottom-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-top-enter-active{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.van-popup-slide-bottom-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-top-leave-active{-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}.van-popup-slide-top-enter,.van-popup-slide-top-leave-active{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}.van-popup-slide-right-enter,.van-popup-slide-right-leave-active{-webkit-transform:translate3d(100%,-50%,0);transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter,.van-popup-slide-bottom-leave-active{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.van-popup-slide-left-enter,.van-popup-slide-left-leave-active{-webkit-transform:translate3d(-100%,-50%,0);transform:translate3d(-100%,-50%,0)}.van-popup__close-icon{position:absolute;z-index:1;color:#c8c9cc;font-size:22px;cursor:pointer}.van-popup__close-icon:active{color:#969799}.van-popup__close-icon--top-left{top:16px;left:16px}.van-popup__close-icon--top-right{top:16px;right:16px}.van-popup__close-icon--bottom-left{bottom:16px;left:16px}.van-popup__close-icon--bottom-right{right:16px;bottom:16px}", ""]);
  2233. /***/ }),
  2234. /***/ 84:
  2235. /***/ (function(module, exports, __webpack_require__) {
  2236. "use strict";
  2237. var _interopRequireDefault = __webpack_require__(1);
  2238. exports.__esModule = true;
  2239. exports.updateOverlay = updateOverlay;
  2240. exports.openOverlay = openOverlay;
  2241. exports.closeOverlay = closeOverlay;
  2242. exports.removeOverlay = removeOverlay;
  2243. var _extends2 = _interopRequireDefault(__webpack_require__(18));
  2244. var _overlay = _interopRequireDefault(__webpack_require__(76));
  2245. var _context = __webpack_require__(67);
  2246. var _functional = __webpack_require__(14);
  2247. var _node = __webpack_require__(64);
  2248. var defaultConfig = {
  2249. className: '',
  2250. customStyle: {}
  2251. };
  2252. function mountOverlay(vm) {
  2253. return (0, _functional.mount)(_overlay.default, {
  2254. on: {
  2255. // close popup when overlay clicked & closeOnClickOverlay is true
  2256. click: function click() {
  2257. vm.$emit('click-overlay');
  2258. if (vm.closeOnClickOverlay) {
  2259. if (vm.onClickOverlay) {
  2260. vm.onClickOverlay();
  2261. } else {
  2262. vm.close();
  2263. }
  2264. }
  2265. }
  2266. }
  2267. });
  2268. }
  2269. function updateOverlay(vm) {
  2270. var item = _context.context.find(vm);
  2271. if (item) {
  2272. var el = vm.$el;
  2273. var config = item.config,
  2274. overlay = item.overlay;
  2275. if (el && el.parentNode) {
  2276. el.parentNode.insertBefore(overlay.$el, el);
  2277. }
  2278. (0, _extends2.default)(overlay, defaultConfig, config, {
  2279. show: true
  2280. });
  2281. }
  2282. }
  2283. function openOverlay(vm, config) {
  2284. var item = _context.context.find(vm);
  2285. if (item) {
  2286. item.config = config;
  2287. } else {
  2288. var overlay = mountOverlay(vm);
  2289. _context.context.stack.push({
  2290. vm: vm,
  2291. config: config,
  2292. overlay: overlay
  2293. });
  2294. }
  2295. updateOverlay(vm);
  2296. }
  2297. function closeOverlay(vm) {
  2298. var item = _context.context.find(vm);
  2299. if (item) {
  2300. item.overlay.show = false;
  2301. }
  2302. }
  2303. function removeOverlay(vm) {
  2304. var item = _context.context.find(vm);
  2305. if (item) {
  2306. (0, _node.removeNode)(item.overlay.$el);
  2307. }
  2308. }
  2309. /***/ }),
  2310. /***/ 85:
  2311. /***/ (function(module, exports, __webpack_require__) {
  2312. "use strict";
  2313. exports.__esModule = true;
  2314. exports.CloseOnPopstateMixin = void 0;
  2315. var _event = __webpack_require__(30);
  2316. var _bindEvent = __webpack_require__(60);
  2317. var CloseOnPopstateMixin = {
  2318. mixins: [(0, _bindEvent.BindEventMixin)(function (bind, isBind) {
  2319. this.handlePopstate(isBind && this.closeOnPopstate);
  2320. })],
  2321. props: {
  2322. closeOnPopstate: Boolean
  2323. },
  2324. data: function data() {
  2325. return {
  2326. bindStatus: false
  2327. };
  2328. },
  2329. watch: {
  2330. closeOnPopstate: function closeOnPopstate(val) {
  2331. this.handlePopstate(val);
  2332. }
  2333. },
  2334. methods: {
  2335. onPopstate: function onPopstate() {
  2336. this.close();
  2337. this.shouldReopen = false;
  2338. },
  2339. handlePopstate: function handlePopstate(bind) {
  2340. /* istanbul ignore if */
  2341. if (this.$isServer) {
  2342. return;
  2343. }
  2344. if (this.bindStatus !== bind) {
  2345. this.bindStatus = bind;
  2346. var action = bind ? _event.on : _event.off;
  2347. action(window, 'popstate', this.onPopstate);
  2348. }
  2349. }
  2350. }
  2351. };
  2352. exports.CloseOnPopstateMixin = CloseOnPopstateMixin;
  2353. /***/ }),
  2354. /***/ 9:
  2355. /***/ (function(module, exports, __webpack_require__) {
  2356. "use strict";
  2357. exports.__esModule = true;
  2358. exports.camelize = camelize;
  2359. exports.padZero = padZero;
  2360. var camelizeRE = /-(\w)/g;
  2361. function camelize(str) {
  2362. return str.replace(camelizeRE, function (_, c) {
  2363. return c.toUpperCase();
  2364. });
  2365. }
  2366. function padZero(num, targetLength) {
  2367. if (targetLength === void 0) {
  2368. targetLength = 2;
  2369. }
  2370. var str = num + '';
  2371. while (str.length < targetLength) {
  2372. str = '0' + str;
  2373. }
  2374. return str;
  2375. }
  2376. /***/ }),
  2377. /***/ 93:
  2378. /***/ (function(module, exports, __webpack_require__) {
  2379. "use strict";
  2380. var _interopRequireDefault = __webpack_require__(1);
  2381. exports.__esModule = true;
  2382. exports.default = void 0;
  2383. var _utils = __webpack_require__(0);
  2384. var _popup = __webpack_require__(75);
  2385. var _icon = _interopRequireDefault(__webpack_require__(35));
  2386. var _createNamespace = (0, _utils.createNamespace)('popup'),
  2387. createComponent = _createNamespace[0],
  2388. bem = _createNamespace[1];
  2389. var _default = createComponent({
  2390. mixins: [(0, _popup.PopupMixin)()],
  2391. props: {
  2392. round: Boolean,
  2393. duration: [Number, String],
  2394. closeable: Boolean,
  2395. transition: String,
  2396. safeAreaInsetBottom: Boolean,
  2397. closeIcon: {
  2398. type: String,
  2399. default: 'cross'
  2400. },
  2401. closeIconPosition: {
  2402. type: String,
  2403. default: 'top-right'
  2404. },
  2405. position: {
  2406. type: String,
  2407. default: 'center'
  2408. },
  2409. overlay: {
  2410. type: Boolean,
  2411. default: true
  2412. },
  2413. closeOnClickOverlay: {
  2414. type: Boolean,
  2415. default: true
  2416. }
  2417. },
  2418. beforeCreate: function beforeCreate() {
  2419. var _this = this;
  2420. var createEmitter = function createEmitter(eventName) {
  2421. return function (event) {
  2422. return _this.$emit(eventName, event);
  2423. };
  2424. };
  2425. this.onClick = createEmitter('click');
  2426. this.onOpened = createEmitter('opened');
  2427. this.onClosed = createEmitter('closed');
  2428. },
  2429. methods: {
  2430. onClickCloseIcon: function onClickCloseIcon(event) {
  2431. this.$emit('click-close-icon', event);
  2432. this.close();
  2433. }
  2434. },
  2435. render: function render() {
  2436. var _bem;
  2437. var h = arguments[0];
  2438. if (!this.shouldRender) {
  2439. return;
  2440. }
  2441. var round = this.round,
  2442. position = this.position,
  2443. duration = this.duration;
  2444. var isCenter = position === 'center';
  2445. var transitionName = this.transition || (isCenter ? 'van-fade' : "van-popup-slide-" + position);
  2446. var style = {};
  2447. if ((0, _utils.isDef)(duration)) {
  2448. var key = isCenter ? 'animationDuration' : 'transitionDuration';
  2449. style[key] = duration + "s";
  2450. }
  2451. return h("transition", {
  2452. "attrs": {
  2453. "appear": this.transitionAppear,
  2454. "name": transitionName
  2455. },
  2456. "on": {
  2457. "afterEnter": this.onOpened,
  2458. "afterLeave": this.onClosed
  2459. }
  2460. }, [h("div", {
  2461. "directives": [{
  2462. name: "show",
  2463. value: this.value
  2464. }],
  2465. "style": style,
  2466. "class": bem((_bem = {
  2467. round: round
  2468. }, _bem[position] = position, _bem['safe-area-inset-bottom'] = this.safeAreaInsetBottom, _bem)),
  2469. "on": {
  2470. "click": this.onClick
  2471. }
  2472. }, [this.slots(), this.closeable && h(_icon.default, {
  2473. "attrs": {
  2474. "role": "button",
  2475. "tabindex": "0",
  2476. "name": this.closeIcon
  2477. },
  2478. "class": bem('close-icon', this.closeIconPosition),
  2479. "on": {
  2480. "click": this.onClickCloseIcon
  2481. }
  2482. })])]);
  2483. }
  2484. });
  2485. exports.default = _default;
  2486. /***/ }),
  2487. /***/ 96:
  2488. /***/ (function(module, exports, __webpack_require__) {
  2489. "use strict";
  2490. exports.__esModule = true;
  2491. exports.cellProps = void 0;
  2492. var cellProps = {
  2493. icon: String,
  2494. size: String,
  2495. center: Boolean,
  2496. isLink: Boolean,
  2497. required: Boolean,
  2498. clickable: Boolean,
  2499. iconPrefix: String,
  2500. titleStyle: null,
  2501. titleClass: null,
  2502. valueClass: null,
  2503. labelClass: null,
  2504. title: [Number, String],
  2505. value: [Number, String],
  2506. label: [Number, String],
  2507. arrowDirection: String,
  2508. border: {
  2509. type: Boolean,
  2510. default: true
  2511. }
  2512. };
  2513. exports.cellProps = cellProps;
  2514. /***/ }),
  2515. /***/ 97:
  2516. /***/ (function(module, exports, __webpack_require__) {
  2517. "use strict";
  2518. var _interopRequireDefault = __webpack_require__(1);
  2519. exports.__esModule = true;
  2520. exports.default = void 0;
  2521. var _extends2 = _interopRequireDefault(__webpack_require__(18));
  2522. var _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(16));
  2523. var _utils = __webpack_require__(0);
  2524. var _functional = __webpack_require__(14);
  2525. var _router = __webpack_require__(69);
  2526. var _shared = __webpack_require__(96);
  2527. var _icon = _interopRequireDefault(__webpack_require__(35));
  2528. // Utils
  2529. // Components
  2530. var _createNamespace = (0, _utils.createNamespace)('cell'),
  2531. createComponent = _createNamespace[0],
  2532. bem = _createNamespace[1];
  2533. function Cell(h, props, slots, ctx) {
  2534. var icon = props.icon,
  2535. size = props.size,
  2536. title = props.title,
  2537. label = props.label,
  2538. value = props.value,
  2539. isLink = props.isLink;
  2540. var showTitle = slots.title || (0, _utils.isDef)(title);
  2541. function Label() {
  2542. var showLabel = slots.label || (0, _utils.isDef)(label);
  2543. if (showLabel) {
  2544. return h("div", {
  2545. "class": [bem('label'), props.labelClass]
  2546. }, [slots.label ? slots.label() : label]);
  2547. }
  2548. }
  2549. function Title() {
  2550. if (showTitle) {
  2551. return h("div", {
  2552. "class": [bem('title'), props.titleClass],
  2553. "style": props.titleStyle
  2554. }, [slots.title ? slots.title() : h("span", [title]), Label()]);
  2555. }
  2556. }
  2557. function Value() {
  2558. var showValue = slots.default || (0, _utils.isDef)(value);
  2559. if (showValue) {
  2560. return h("div", {
  2561. "class": [bem('value', {
  2562. alone: !showTitle
  2563. }), props.valueClass]
  2564. }, [slots.default ? slots.default() : h("span", [value])]);
  2565. }
  2566. }
  2567. function LeftIcon() {
  2568. if (slots.icon) {
  2569. return slots.icon();
  2570. }
  2571. if (icon) {
  2572. return h(_icon.default, {
  2573. "class": bem('left-icon'),
  2574. "attrs": {
  2575. "name": icon,
  2576. "classPrefix": props.iconPrefix
  2577. }
  2578. });
  2579. }
  2580. }
  2581. function RightIcon() {
  2582. var rightIconSlot = slots['right-icon'];
  2583. if (rightIconSlot) {
  2584. return rightIconSlot();
  2585. }
  2586. if (isLink) {
  2587. var arrowDirection = props.arrowDirection;
  2588. return h(_icon.default, {
  2589. "class": bem('right-icon'),
  2590. "attrs": {
  2591. "name": arrowDirection ? "arrow-" + arrowDirection : 'arrow'
  2592. }
  2593. });
  2594. }
  2595. }
  2596. function onClick(event) {
  2597. (0, _functional.emit)(ctx, 'click', event);
  2598. (0, _router.functionalRoute)(ctx);
  2599. }
  2600. var clickable = isLink || props.clickable;
  2601. var classes = {
  2602. clickable: clickable,
  2603. center: props.center,
  2604. required: props.required,
  2605. borderless: !props.border
  2606. };
  2607. if (size) {
  2608. classes[size] = size;
  2609. }
  2610. return h("div", (0, _babelHelperVueJsxMergeProps.default)([{
  2611. "class": bem(classes),
  2612. "attrs": {
  2613. "role": clickable ? 'button' : null,
  2614. "tabindex": clickable ? 0 : null
  2615. },
  2616. "on": {
  2617. "click": onClick
  2618. }
  2619. }, (0, _functional.inherit)(ctx)]), [LeftIcon(), Title(), Value(), RightIcon(), slots.extra == null ? void 0 : slots.extra()]);
  2620. }
  2621. Cell.props = (0, _extends2.default)({}, _shared.cellProps, _router.routeProps);
  2622. var _default = createComponent(Cell);
  2623. exports.default = _default;
  2624. /***/ })
  2625. /******/ });