UNPKG

wantongjizhi

Version:

Custom components for WANTONG JIZHI

1,517 lines (1,193 loc) 47.4 kB
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/dist/"; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 398); /******/ }) /************************************************************************/ /******/ ({ /***/ 0: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; }); /* globals __VUE_SSR_CONTEXT__ */ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules). // This module is a runtime utility for cleaner component module output and will // be included in the final webpack user bundle. function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports // render functions if (render) { options.render = render options.staticRenderFns = staticRenderFns options._compiled = true } // functional template if (functionalTemplate) { options.functional = true } // scopedId if (scopeId) { options._scopeId = 'data-v-' + scopeId } var hook if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__ } // inject component styles if (injectStyles) { injectStyles.call(this, context) } // register component module identifier for async chunk inferrence if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier) } } // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook } else if (injectStyles) { hook = shadowMode ? function () { injectStyles.call( this, (options.functional ? this.parent : this).$root.$options.shadowRoot ) } : injectStyles } if (hook) { if (options.functional) { // for template-only hot-reload because in that case the render fn doesn't // go through the normalizer options._injectStyles = hook // register for functional component in vue file var originalRender = options.render options.render = function renderWithStyleInjection (h, context) { hook.call(context) return originalRender(h, context) } } else { // inject component registration as beforeCreate hook var existing = options.beforeCreate options.beforeCreate = existing ? [].concat(existing, hook) : [hook] } } return { exports: scriptExports, options: options } } /***/ }), /***/ 1: /***/ (function(module, exports, __webpack_require__) { "use strict"; /* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ // css base code, injected by the css-loader module.exports = function (useSourceMap) { var list = []; // return the list of modules as css string list.toString = function toString() { return this.map(function (item) { var content = cssWithMappingToString(item, useSourceMap); if (item[2]) { return '@media ' + item[2] + '{' + content + '}'; } else { return content; } }).join(''); }; // import a list of modules into the list list.i = function (modules, mediaQuery) { if (typeof modules === 'string') { modules = [[null, modules, '']]; } var alreadyImportedModules = {}; for (var i = 0; i < this.length; i++) { var id = this[i][0]; if (id != null) { alreadyImportedModules[id] = true; } } for (i = 0; i < modules.length; i++) { var item = modules[i]; // skip already imported module // this implementation is not 100% perfect for weird media query combinations // when a module is imported multiple times with different media queries. // I hope this will never occur (Hey this way we have smaller bundles) if (item[0] == null || !alreadyImportedModules[item[0]]) { if (mediaQuery && !item[2]) { item[2] = mediaQuery; } else if (mediaQuery) { item[2] = '(' + item[2] + ') and (' + mediaQuery + ')'; } list.push(item); } } }; return list; }; function cssWithMappingToString(item, useSourceMap) { var content = item[1] || ''; var cssMapping = item[3]; if (!cssMapping) { return content; } if (useSourceMap && typeof btoa === 'function') { var sourceMapping = toComment(cssMapping); var sourceURLs = cssMapping.sources.map(function (source) { return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'; }); return [content].concat(sourceURLs).concat([sourceMapping]).join('\n'); } return [content].join('\n'); } // Adapted from convert-source-map (MIT) function toComment(sourceMap) { // eslint-disable-next-line no-undef var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))); var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64; return '/*# ' + data + ' */'; } /***/ }), /***/ 187: /***/ (function(module, exports, __webpack_require__) { var content = __webpack_require__(328); if(typeof content === 'string') content = [[module.i, content, '']]; var transform; var insertInto; var options = {"hmr":true} options.transform = transform options.insertInto = undefined; var update = __webpack_require__(2)(content, options); if(content.locals) module.exports = content.locals; if(false) {} /***/ }), /***/ 188: /***/ (function(module, exports, __webpack_require__) { var content = __webpack_require__(330); if(typeof content === 'string') content = [[module.i, content, '']]; var transform; var insertInto; var options = {"hmr":true} options.transform = transform options.insertInto = undefined; var update = __webpack_require__(2)(content, options); if(content.locals) module.exports = content.locals; if(false) {} /***/ }), /***/ 189: /***/ (function(module, exports, __webpack_require__) { var content = __webpack_require__(332); if(typeof content === 'string') content = [[module.i, content, '']]; var transform; var insertInto; var options = {"hmr":true} options.transform = transform options.insertInto = undefined; var update = __webpack_require__(2)(content, options); if(content.locals) module.exports = content.locals; if(false) {} /***/ }), /***/ 2: /***/ (function(module, exports, __webpack_require__) { /* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ var stylesInDom = {}; var memoize = function (fn) { var memo; return function () { if (typeof memo === "undefined") memo = fn.apply(this, arguments); return memo; }; }; var isOldIE = memoize(function () { // Test for IE <= 9 as proposed by Browserhacks // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 // Tests for existence of standard globals is to allow style-loader // to operate correctly into non-standard environments // @see https://github.com/webpack-contrib/style-loader/issues/177 return window && document && document.all && !window.atob; }); var getTarget = function (target, parent) { if (parent){ return parent.querySelector(target); } return document.querySelector(target); }; var getElement = (function (fn) { var memo = {}; return function(target, parent) { // If passing function in options, then use it for resolve "head" element. // Useful for Shadow Root style i.e // { // insertInto: function () { return document.querySelector("#foo").shadowRoot } // } if (typeof target === 'function') { return target(); } if (typeof memo[target] === "undefined") { var styleTarget = getTarget.call(this, target, parent); // Special case to return head of iframe instead of iframe itself if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) { try { // This will throw an exception if access to iframe is blocked // due to cross-origin restrictions styleTarget = styleTarget.contentDocument.head; } catch(e) { styleTarget = null; } } memo[target] = styleTarget; } return memo[target] }; })(); var singleton = null; var singletonCounter = 0; var stylesInsertedAtTop = []; var fixUrls = __webpack_require__(3); module.exports = function(list, options) { if (typeof DEBUG !== "undefined" && DEBUG) { if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment"); } options = options || {}; options.attrs = typeof options.attrs === "object" ? options.attrs : {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style> // tags it will allow on a page if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE(); // By default, add <style> tags to the <head> element if (!options.insertInto) options.insertInto = "head"; // By default, add <style> tags to the bottom of the target if (!options.insertAt) options.insertAt = "bottom"; var styles = listToStyles(list, options); addStylesToDom(styles, options); return function update (newList) { var mayRemove = []; for (var i = 0; i < styles.length; i++) { var item = styles[i]; var domStyle = stylesInDom[item.id]; domStyle.refs--; mayRemove.push(domStyle); } if(newList) { var newStyles = listToStyles(newList, options); addStylesToDom(newStyles, options); } for (var i = 0; i < mayRemove.length; i++) { var domStyle = mayRemove[i]; if(domStyle.refs === 0) { for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j](); delete stylesInDom[domStyle.id]; } } }; }; function addStylesToDom (styles, options) { for (var i = 0; i < styles.length; i++) { var item = styles[i]; var domStyle = stylesInDom[item.id]; if(domStyle) { domStyle.refs++; for(var j = 0; j < domStyle.parts.length; j++) { domStyle.parts[j](item.parts[j]); } for(; j < item.parts.length; j++) { domStyle.parts.push(addStyle(item.parts[j], options)); } } else { var parts = []; for(var j = 0; j < item.parts.length; j++) { parts.push(addStyle(item.parts[j], options)); } stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts}; } } } function listToStyles (list, options) { var styles = []; var newStyles = {}; for (var i = 0; i < list.length; i++) { var item = list[i]; var id = options.base ? item[0] + options.base : item[0]; var css = item[1]; var media = item[2]; var sourceMap = item[3]; var part = {css: css, media: media, sourceMap: sourceMap}; if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]}); else newStyles[id].parts.push(part); } return styles; } function insertStyleElement (options, style) { var target = getElement(options.insertInto) if (!target) { throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid."); } var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1]; if (options.insertAt === "top") { if (!lastStyleElementInsertedAtTop) { target.insertBefore(style, target.firstChild); } else if (lastStyleElementInsertedAtTop.nextSibling) { target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling); } else { target.appendChild(style); } stylesInsertedAtTop.push(style); } else if (options.insertAt === "bottom") { target.appendChild(style); } else if (typeof options.insertAt === "object" && options.insertAt.before) { var nextSibling = getElement(options.insertAt.before, target); target.insertBefore(style, nextSibling); } else { 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"); } } function removeStyleElement (style) { if (style.parentNode === null) return false; style.parentNode.removeChild(style); var idx = stylesInsertedAtTop.indexOf(style); if(idx >= 0) { stylesInsertedAtTop.splice(idx, 1); } } function createStyleElement (options) { var style = document.createElement("style"); if(options.attrs.type === undefined) { options.attrs.type = "text/css"; } if(options.attrs.nonce === undefined) { var nonce = getNonce(); if (nonce) { options.attrs.nonce = nonce; } } addAttrs(style, options.attrs); insertStyleElement(options, style); return style; } function createLinkElement (options) { var link = document.createElement("link"); if(options.attrs.type === undefined) { options.attrs.type = "text/css"; } options.attrs.rel = "stylesheet"; addAttrs(link, options.attrs); insertStyleElement(options, link); return link; } function addAttrs (el, attrs) { Object.keys(attrs).forEach(function (key) { el.setAttribute(key, attrs[key]); }); } function getNonce() { if (false) {} return __webpack_require__.nc; } function addStyle (obj, options) { var style, update, remove, result; // If a transform function was defined, run it on the css if (options.transform && obj.css) { result = typeof options.transform === 'function' ? options.transform(obj.css) : options.transform.default(obj.css); if (result) { // If transform returns a value, use that instead of the original css. // This allows running runtime transformations on the css. obj.css = result; } else { // If the transform function returns a falsy value, don't add this css. // This allows conditional loading of css return function() { // noop }; } } if (options.singleton) { var styleIndex = singletonCounter++; style = singleton || (singleton = createStyleElement(options)); update = applyToSingletonTag.bind(null, style, styleIndex, false); remove = applyToSingletonTag.bind(null, style, styleIndex, true); } else if ( obj.sourceMap && typeof URL === "function" && typeof URL.createObjectURL === "function" && typeof URL.revokeObjectURL === "function" && typeof Blob === "function" && typeof btoa === "function" ) { style = createLinkElement(options); update = updateLink.bind(null, style, options); remove = function () { removeStyleElement(style); if(style.href) URL.revokeObjectURL(style.href); }; } else { style = createStyleElement(options); update = applyToTag.bind(null, style); remove = function () { removeStyleElement(style); }; } update(obj); return function updateStyle (newObj) { if (newObj) { if ( newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap ) { return; } update(obj = newObj); } else { remove(); } }; } var replaceText = (function () { var textStore = []; return function (index, replacement) { textStore[index] = replacement; return textStore.filter(Boolean).join('\n'); }; })(); function applyToSingletonTag (style, index, remove, obj) { var css = remove ? "" : obj.css; if (style.styleSheet) { style.styleSheet.cssText = replaceText(index, css); } else { var cssNode = document.createTextNode(css); var childNodes = style.childNodes; if (childNodes[index]) style.removeChild(childNodes[index]); if (childNodes.length) { style.insertBefore(cssNode, childNodes[index]); } else { style.appendChild(cssNode); } } } function applyToTag (style, obj) { var css = obj.css; var media = obj.media; if(media) { style.setAttribute("media", media) } if(style.styleSheet) { style.styleSheet.cssText = css; } else { while(style.firstChild) { style.removeChild(style.firstChild); } style.appendChild(document.createTextNode(css)); } } function updateLink (link, options, obj) { var css = obj.css; var sourceMap = obj.sourceMap; /* If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled and there is no publicPath defined then lets turn convertToAbsoluteUrls on by default. Otherwise default to the convertToAbsoluteUrls option directly */ var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap; if (options.convertToAbsoluteUrls || autoFixUrls) { css = fixUrls(css); } if (sourceMap) { // http://stackoverflow.com/a/26603875 css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */"; } var blob = new Blob([css], { type: "text/css" }); var oldSrc = link.href; link.href = URL.createObjectURL(blob); if(oldSrc) URL.revokeObjectURL(oldSrc); } /***/ }), /***/ 3: /***/ (function(module, exports) { /** * When source maps are enabled, `style-loader` uses a link element with a data-uri to * embed the css on the page. This breaks all relative urls because now they are relative to a * bundle instead of the current page. * * One solution is to only use full urls, but that may be impossible. * * Instead, this function "fixes" the relative urls to be absolute according to the current page location. * * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command. * */ module.exports = function (css) { // get current location var location = typeof window !== "undefined" && window.location; if (!location) { throw new Error("fixUrls requires window.location"); } // blank or null? if (!css || typeof css !== "string") { return css; } var baseUrl = location.protocol + "//" + location.host; var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/"); // convert each url(...) /* This regular expression is just a way to recursively match brackets within a string. /url\s*\( = Match on the word "url" with any whitespace after it and then a parens ( = Start a capturing group (?: = Start a non-capturing group [^)(] = Match anything that isn't a parentheses | = OR \( = Match a start parentheses (?: = Start another non-capturing groups [^)(]+ = Match anything that isn't a parentheses | = OR \( = Match a start parentheses [^)(]* = Match anything that isn't a parentheses \) = Match a end parentheses ) = End Group *\) = Match anything and then a close parens ) = Close non-capturing group * = Match anything ) = Close capturing group \) = Match a close parens /gi = Get all matches, not the first. Be case insensitive. */ var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) { // strip quotes (if they exist) var unquotedOrigUrl = origUrl .trim() .replace(/^"(.*)"$/, function(o, $1){ return $1; }) .replace(/^'(.*)'$/, function(o, $1){ return $1; }); // already a full url? no change if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) { return fullMatch; } // convert the url to a full url var newUrl; if (unquotedOrigUrl.indexOf("//") === 0) { //TODO: should we add protocol? newUrl = unquotedOrigUrl; } else if (unquotedOrigUrl.indexOf("/") === 0) { // path should be relative to the base url newUrl = baseUrl + unquotedOrigUrl; // already starts with '/' } else { // path should be relative to current directory newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './' } // send back the fixed url(...) return "url(" + JSON.stringify(newUrl) + ")"; }); // send back the fixed css return fixedCss; }; /***/ }), /***/ 327: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_timeline_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(187); /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_timeline_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_timeline_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0__); /* unused harmony reexport * */ /***/ }), /***/ 328: /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(1)(false); // Module exports.push([module.i, ".wt-timeline__empty {\n padding: 60px;\n}\n", ""]); /***/ }), /***/ 329: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_timeline_item_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(188); /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_timeline_item_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_timeline_item_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0__); /* unused harmony reexport * */ /***/ }), /***/ 330: /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(1)(false); // Module exports.push([module.i, ".wt-timeline-item {\n padding: 20px 0 20px 50px;\n position: relative;\n min-height: 28px;\n display: flex;\n flex-direction: row;\n}\n.wt-timeline-item:after {\n content: '';\n position: absolute;\n left: 25px;\n top: 32px;\n bottom: -32px;\n width: 1px;\n background-color: #D5D8DC;\n}\n.wt-timeline-item:last-child:after {\n display: none;\n}\n.wt-timeline-item__point {\n position: absolute;\n left: 20px;\n top: 29px;\n width: 11px;\n height: 11px;\n border-radius: 50%;\n background-color: #D5D8DC;\n}\n.wt-timeline-item__date {\n display: inline-block;\n height: 28px;\n line-height: 28px;\n width: 48px;\n}\n.wt-timeline-item__content {\n padding-left: 12px;\n}\n", ""]); /***/ }), /***/ 331: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_timeline_group_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(189); /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_timeline_group_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_timeline_group_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0__); /* unused harmony reexport * */ /***/ }), /***/ 332: /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(1)(false); // Module exports.push([module.i, ".wt-timeline-group__label {\n height: 32px;\n line-height: 32px;\n background: #F3F4F5;\n border-radius: 4px;\n display: inline-block;\n color: #606C80;\n padding-left: 12px;\n padding-right: 12px;\n}\n", ""]); /***/ }), /***/ 398: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, "Timeline", function() { return /* reexport */ timeline; }); __webpack_require__.d(__webpack_exports__, "TimelineGroup", function() { return /* reexport */ timeline_group; }); __webpack_require__.d(__webpack_exports__, "TimelineItem", function() { return /* reexport */ timeline_item; }); // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/timeline/timeline.vue?vue&type=template&id=6ccbbf3b& var render = function () { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "wt-timeline" }, [ _vm.reloading ? _c("div", { staticClass: "wt-timeline__loading" }, [ _vm._v("\n 数据加载中\n "), ]) : !_vm.data || !_vm.data.length ? _c("div", { staticClass: "wt-timeline__empty" }, [_c("wt-empty")], 1) : [_vm._t("default", null, { data: _vm.groupListData })], ], 2 ) } var staticRenderFns = [] render._withStripped = true // CONCATENATED MODULE: ./packages/timeline/timeline.vue?vue&type=template&id=6ccbbf3b& // EXTERNAL MODULE: ./packages/empty/index.js + 5 modules var empty = __webpack_require__(53); // CONCATENATED MODULE: ./src/utils/date.js /** * 格式化日期 */ function formatDate(date, fmt = 'YYYY-mm-dd HH:MM:SS') { if (!date) { return; } if (typeof date === 'string' || typeof date === 'number') { date = new Date(date); } if (isNaN(date.getTime())) { return; } let ret; const opt = { 'Y+': date.getFullYear().toString(), 'm+': (date.getMonth() + 1).toString(), 'd+': date.getDate().toString(), 'H+': date.getHours().toString(), 'M+': date.getMinutes().toString(), 'S+': date.getSeconds().toString() }; for (const k in opt) { ret = new RegExp('(' + k + ')').exec(fmt); if (ret) { fmt = fmt.replace(ret[1], ret[1].length === 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')); } } return fmt; } /** * 将时间戳或者日期字符串转为日期对象 */ function parseDate(date) { if (!date) { return; } if (date.getTime) { return date; } if (typeof date === 'number') { return new Date(date); } if (typeof date === 'string') { const ds = date.split(/\D+/); if (ds.length > 2) { return new Date(ds[0], ds[1] && ds[1] - 1, ds[2], ds[3] || 0, ds[4] || 0, ds[5] || 0); } } } // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/timeline/timeline.vue?vue&type=script&lang=js& // // // // // // // // // // // // // // // /* harmony default export */ var timelinevue_type_script_lang_js_ = ({ name: 'WtTimeline', components: { WtEmpty: empty["default"] }, props: { queryMethod: { type: Function, default: Function }, groupField: { type: String, required: true } }, data() { return { data: [], reloading: false, loading: false, groupMapData: {} }; }, computed: { weekCnText() { return { 1: '星期一', 2: '星期二', 3: '星期三', 4: '星期四', 5: '星期五', 6: '星期六', 7: '星期天' }; }, groupListData() { return Object.keys(this.groupMapData).map(key => { const week = parseDate(key).getDay(); return { label: key, week: this.weekCnText[week], children: this.groupMapData[key] }; }); } }, created() { this.reload(); }, methods: { reload() { this.notMore = false; this.data = []; this.groupMapData = {}; this.reloading = true; return this.loadData(0).then(rs => { this.data = rs; this.appendData(rs); }).finally(() => { this.reloading = false; }); }, loadMoreData() { return this.loadData(this.pageIndex + 1).then(rs => { this.data = [].concat(this.data, rs); this.appendData(rs); }); }, loadData() { if (!this.queryMethod) { return Promise.reject(); } this.loading = true; return this.queryMethod().finally(() => { this.loading = false; }); }, appendData(data) { data = data || []; data.forEach(v => { const groupDate = parseDate(v[this.groupField]); const groupkey = formatDate(groupDate, 'YYYY-mm-dd'); if (!this.groupMapData[groupkey]) { this.$set(this.groupMapData, groupkey, []); } this.groupMapData[groupkey].push(v); }); } } }); // CONCATENATED MODULE: ./packages/timeline/timeline.vue?vue&type=script&lang=js& /* harmony default export */ var timeline_timelinevue_type_script_lang_js_ = (timelinevue_type_script_lang_js_); // EXTERNAL MODULE: ./packages/timeline/timeline.vue?vue&type=style&index=0&lang=less& var timelinevue_type_style_index_0_lang_less_ = __webpack_require__(327); // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); // CONCATENATED MODULE: ./packages/timeline/timeline.vue /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( timeline_timelinevue_type_script_lang_js_, render, staticRenderFns, false, null, null, null ) /* hot reload */ if (false) { var api; } component.options.__file = "packages/timeline/timeline.vue" /* harmony default export */ var timeline = (component.exports); // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/timeline/timeline-item.vue?vue&type=template&id=22de5095& var timeline_itemvue_type_template_id_22de5095_render = function () { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "wt-timeline-item" }, [ _c("span", { staticClass: "wt-timeline-item__point" }), _c("div", { staticClass: "wt-timeline-item__date" }, [ _vm._v(_vm._s(_vm.date)), ]), _c( "div", { staticClass: "wt-timeline-item__content" }, [_vm._t("default")], 2 ), ]) } var timeline_itemvue_type_template_id_22de5095_staticRenderFns = [] timeline_itemvue_type_template_id_22de5095_render._withStripped = true // CONCATENATED MODULE: ./packages/timeline/timeline-item.vue?vue&type=template&id=22de5095& // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/timeline/timeline-item.vue?vue&type=script&lang=js& // // // // // // // // // // // /* harmony default export */ var timeline_itemvue_type_script_lang_js_ = ({ name: 'WtTimelineItem', props: { time: { type: [String, Number, Date], default: '' } }, computed: { date() { return formatDate(this.time, 'HH:MM'); } } }); // CONCATENATED MODULE: ./packages/timeline/timeline-item.vue?vue&type=script&lang=js& /* harmony default export */ var timeline_timeline_itemvue_type_script_lang_js_ = (timeline_itemvue_type_script_lang_js_); // EXTERNAL MODULE: ./packages/timeline/timeline-item.vue?vue&type=style&index=0&lang=less& var timeline_itemvue_type_style_index_0_lang_less_ = __webpack_require__(329); // CONCATENATED MODULE: ./packages/timeline/timeline-item.vue /* normalize component */ var timeline_item_component = Object(componentNormalizer["a" /* default */])( timeline_timeline_itemvue_type_script_lang_js_, timeline_itemvue_type_template_id_22de5095_render, timeline_itemvue_type_template_id_22de5095_staticRenderFns, false, null, null, null ) /* hot reload */ if (false) { var timeline_item_api; } timeline_item_component.options.__file = "packages/timeline/timeline-item.vue" /* harmony default export */ var timeline_item = (timeline_item_component.exports); // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/timeline/timeline-group.vue?vue&type=template&id=62c6fa6d& var timeline_groupvue_type_template_id_62c6fa6d_render = function () { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "wt-timeline-group" }, [ _c("div", { staticClass: "wt-timeline-group__label" }, [ _vm._v("\n " + _vm._s(_vm.label) + "\n "), ]), _c( "div", { staticClass: "wt-timeline-group__body" }, [_vm._t("default")], 2 ), ]) } var timeline_groupvue_type_template_id_62c6fa6d_staticRenderFns = [] timeline_groupvue_type_template_id_62c6fa6d_render._withStripped = true // CONCATENATED MODULE: ./packages/timeline/timeline-group.vue?vue&type=template&id=62c6fa6d& // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/timeline/timeline-group.vue?vue&type=script&lang=js& // // // // // // // // // // // // /* harmony default export */ var timeline_groupvue_type_script_lang_js_ = ({ name: 'WtTimelineGroup', props: { label: { type: String, default: '' } } }); // CONCATENATED MODULE: ./packages/timeline/timeline-group.vue?vue&type=script&lang=js& /* harmony default export */ var timeline_timeline_groupvue_type_script_lang_js_ = (timeline_groupvue_type_script_lang_js_); // EXTERNAL MODULE: ./packages/timeline/timeline-group.vue?vue&type=style&index=0&lang=less& var timeline_groupvue_type_style_index_0_lang_less_ = __webpack_require__(331); // CONCATENATED MODULE: ./packages/timeline/timeline-group.vue /* normalize component */ var timeline_group_component = Object(componentNormalizer["a" /* default */])( timeline_timeline_groupvue_type_script_lang_js_, timeline_groupvue_type_template_id_62c6fa6d_render, timeline_groupvue_type_template_id_62c6fa6d_staticRenderFns, false, null, null, null ) /* hot reload */ if (false) { var timeline_group_api; } timeline_group_component.options.__file = "packages/timeline/timeline-group.vue" /* harmony default export */ var timeline_group = (timeline_group_component.exports); // CONCATENATED MODULE: ./packages/timeline/index.js timeline.install = Vue => { Vue.component(timeline.name, timeline); Vue.component(timeline_group.name, timeline_group); Vue.component(timeline_item.name, timeline_item); }; /* harmony default export */ var packages_timeline = __webpack_exports__["default"] = (timeline); /***/ }), /***/ 42: /***/ (function(module, exports, __webpack_require__) { var content = __webpack_require__(74); if(typeof content === 'string') content = [[module.i, content, '']]; var transform; var insertInto; var options = {"hmr":true} options.transform = transform options.insertInto = undefined; var update = __webpack_require__(2)(content, options); if(content.locals) module.exports = content.locals; if(false) {} /***/ }), /***/ 53: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/empty/empty.vue?vue&type=template&id=bb969012& var render = function () { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "wt-empty" }, [ _c("div", { staticClass: "wt-empty__icon" }), _c( "div", { staticClass: "wt-empty__text" }, [ _vm._t("default", function () { return [_vm._v("暂无数据")] }), ], 2 ), ]) } var staticRenderFns = [] render._withStripped = true // CONCATENATED MODULE: ./packages/empty/empty.vue?vue&type=template&id=bb969012& // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/empty/empty.vue?vue&type=script&lang=js& // // // // // // // // /* harmony default export */ var emptyvue_type_script_lang_js_ = ({ name: 'WtEmpty' }); // CONCATENATED MODULE: ./packages/empty/empty.vue?vue&type=script&lang=js& /* harmony default export */ var empty_emptyvue_type_script_lang_js_ = (emptyvue_type_script_lang_js_); // EXTERNAL MODULE: ./packages/empty/empty.vue?vue&type=style&index=0&lang=less& var emptyvue_type_style_index_0_lang_less_ = __webpack_require__(73); // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(0); // CONCATENATED MODULE: ./packages/empty/empty.vue /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( empty_emptyvue_type_script_lang_js_, render, staticRenderFns, false, null, null, null ) /* hot reload */ if (false) { var api; } component.options.__file = "packages/empty/empty.vue" /* harmony default export */ var empty = (component.exports); // CONCATENATED MODULE: ./packages/empty/index.js empty.install = Vue => { Vue.component(empty.name, empty); }; /* harmony default export */ var packages_empty = __webpack_exports__["default"] = (empty); /***/ }), /***/ 73: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_empty_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42); /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_empty_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_empty_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0__); /* unused harmony reexport * */ /***/ }), /***/ 74: /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(1)(false); // Imports var urlEscape = __webpack_require__(9); var ___CSS_LOADER_URL___0___ = urlEscape(__webpack_require__(75)); // Module exports.push([module.i, ".wt-empty {\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n line-height: 1.7em;\n}\n.wt-empty__icon {\n display: inline-block;\n width: 48px;\n height: 48px;\n background: url(" + ___CSS_LOADER_URL___0___ + ") no-repeat 50% 50%;\n background-size: 100%;\n margin-bottom: 6px;\n}\n.wt-empty__text {\n color: #aaa;\n}\n", ""]); /***/ }), /***/ 75: /***/ (function(module, exports) { module.exports = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcg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S42LTM0LjktMzQuOC0zNS4xaC02LjRDNDg5LjYgMzAuMyA0NzQgNDYgNDc0IDY1LjJ2MTM5YzAgMTkuNSAxNS45IDM1LjQgMzUuNSAzNS4xaDIuNXoiIHAtaWQ9IjEyNjc3Ij48L3BhdGg+DQo8L3N2Zz4NCg==" /***/ }), /***/ 9: /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function escape(url, needQuotes) { if (typeof url !== 'string') { return url; } // If url is already wrapped in quotes, remove them if (/^['"].*['"]$/.test(url)) { url = url.slice(1, -1); } // Should url be wrapped? // See https://drafts.csswg.org/css-values-3/#urls if (/["'() \t\n]/.test(url) || needQuotes) { return '"' + url.replace(/"/g, '\\"').replace(/\n/g, '\\n') + '"'; } return url; }; /***/ }) /******/ });