框架源码
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.

375 lines
10 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 = 547);
  86. /******/ })
  87. /************************************************************************/
  88. /******/ ({
  89. /***/ 2:
  90. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  91. "use strict";
  92. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
  93. /* globals __VUE_SSR_CONTEXT__ */
  94. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  95. // This module is a runtime utility for cleaner component module output and will
  96. // be included in the final webpack user bundle.
  97. function normalizeComponent (
  98. scriptExports,
  99. render,
  100. staticRenderFns,
  101. functionalTemplate,
  102. injectStyles,
  103. scopeId,
  104. moduleIdentifier, /* server only */
  105. shadowMode /* vue-cli only */
  106. ) {
  107. // Vue.extend constructor export interop
  108. var options = typeof scriptExports === 'function'
  109. ? scriptExports.options
  110. : scriptExports
  111. // render functions
  112. if (render) {
  113. options.render = render
  114. options.staticRenderFns = staticRenderFns
  115. options._compiled = true
  116. }
  117. // functional template
  118. if (functionalTemplate) {
  119. options.functional = true
  120. }
  121. // scopedId
  122. if (scopeId) {
  123. options._scopeId = 'data-v-' + scopeId
  124. }
  125. var hook
  126. if (moduleIdentifier) { // server build
  127. hook = function (context) {
  128. // 2.3 injection
  129. context =
  130. context || // cached call
  131. (this.$vnode && this.$vnode.ssrContext) || // stateful
  132. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  133. // 2.2 with runInNewContext: true
  134. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  135. context = __VUE_SSR_CONTEXT__
  136. }
  137. // inject component styles
  138. if (injectStyles) {
  139. injectStyles.call(this, context)
  140. }
  141. // register component module identifier for async chunk inferrence
  142. if (context && context._registeredComponents) {
  143. context._registeredComponents.add(moduleIdentifier)
  144. }
  145. }
  146. // used by ssr in case component is cached and beforeCreate
  147. // never gets called
  148. options._ssrRegister = hook
  149. } else if (injectStyles) {
  150. hook = shadowMode
  151. ? function () {
  152. injectStyles.call(
  153. this,
  154. (options.functional ? this.parent : this).$root.$options.shadowRoot
  155. )
  156. }
  157. : injectStyles
  158. }
  159. if (hook) {
  160. if (options.functional) {
  161. // for template-only hot-reload because in that case the render fn doesn't
  162. // go through the normalizer
  163. options._injectStyles = hook
  164. // register for functional component in vue file
  165. var originalRender = options.render
  166. options.render = function renderWithStyleInjection (h, context) {
  167. hook.call(context)
  168. return originalRender(h, context)
  169. }
  170. } else {
  171. // inject component registration as beforeCreate hook
  172. var existing = options.beforeCreate
  173. options.beforeCreate = existing
  174. ? [].concat(existing, hook)
  175. : [hook]
  176. }
  177. }
  178. return {
  179. exports: scriptExports,
  180. options: options
  181. }
  182. }
  183. /***/ }),
  184. /***/ 547:
  185. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  186. "use strict";
  187. // ESM COMPAT FLAG
  188. __webpack_require__.r(__webpack_exports__);
  189. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/timeline/src/item.vue?vue&type=template&id=61a69e50&
  190. var render = function() {
  191. var _vm = this
  192. var _h = _vm.$createElement
  193. var _c = _vm._self._c || _h
  194. return _c("li", { staticClass: "el-timeline-item" }, [
  195. _c("div", { staticClass: "el-timeline-item__tail" }),
  196. !_vm.$slots.dot
  197. ? _c(
  198. "div",
  199. {
  200. staticClass: "el-timeline-item__node",
  201. class: [
  202. "el-timeline-item__node--" + (_vm.size || ""),
  203. "el-timeline-item__node--" + (_vm.type || "")
  204. ],
  205. style: {
  206. backgroundColor: _vm.color
  207. }
  208. },
  209. [
  210. _vm.icon
  211. ? _c("i", {
  212. staticClass: "el-timeline-item__icon",
  213. class: _vm.icon
  214. })
  215. : _vm._e()
  216. ]
  217. )
  218. : _vm._e(),
  219. _vm.$slots.dot
  220. ? _c("div", { staticClass: "el-timeline-item__dot" }, [_vm._t("dot")], 2)
  221. : _vm._e(),
  222. _c("div", { staticClass: "el-timeline-item__wrapper" }, [
  223. !_vm.hideTimestamp && _vm.placement === "top"
  224. ? _c("div", { staticClass: "el-timeline-item__timestamp is-top" }, [
  225. _vm._v("\n " + _vm._s(_vm.timestamp) + "\n ")
  226. ])
  227. : _vm._e(),
  228. _c(
  229. "div",
  230. { staticClass: "el-timeline-item__content" },
  231. [_vm._t("default")],
  232. 2
  233. ),
  234. !_vm.hideTimestamp && _vm.placement === "bottom"
  235. ? _c("div", { staticClass: "el-timeline-item__timestamp is-bottom" }, [
  236. _vm._v("\n " + _vm._s(_vm.timestamp) + "\n ")
  237. ])
  238. : _vm._e()
  239. ])
  240. ])
  241. }
  242. var staticRenderFns = []
  243. render._withStripped = true
  244. // CONCATENATED MODULE: ./packages/timeline/src/item.vue?vue&type=template&id=61a69e50&
  245. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/timeline/src/item.vue?vue&type=script&lang=js&
  246. //
  247. //
  248. //
  249. //
  250. //
  251. //
  252. //
  253. //
  254. //
  255. //
  256. //
  257. //
  258. //
  259. //
  260. //
  261. //
  262. //
  263. //
  264. //
  265. //
  266. //
  267. //
  268. //
  269. //
  270. //
  271. //
  272. //
  273. //
  274. //
  275. //
  276. //
  277. //
  278. //
  279. //
  280. //
  281. //
  282. //
  283. //
  284. //
  285. //
  286. //
  287. /* harmony default export */ var itemvue_type_script_lang_js_ = ({
  288. name: 'TisTimelineItem',
  289. inject: ['timeline'],
  290. props: {
  291. timestamp: String,
  292. hideTimestamp: {
  293. type: Boolean,
  294. default: false
  295. },
  296. placement: {
  297. type: String,
  298. default: 'bottom'
  299. },
  300. type: String,
  301. color: String,
  302. size: {
  303. type: String,
  304. default: 'normal'
  305. },
  306. icon: String
  307. }
  308. });
  309. // CONCATENATED MODULE: ./packages/timeline/src/item.vue?vue&type=script&lang=js&
  310. /* harmony default export */ var src_itemvue_type_script_lang_js_ = (itemvue_type_script_lang_js_);
  311. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  312. var componentNormalizer = __webpack_require__(2);
  313. // CONCATENATED MODULE: ./packages/timeline/src/item.vue
  314. /* normalize component */
  315. var component = Object(componentNormalizer["a" /* default */])(
  316. src_itemvue_type_script_lang_js_,
  317. render,
  318. staticRenderFns,
  319. false,
  320. null,
  321. null,
  322. null
  323. )
  324. /* hot reload */
  325. if (false) { var api; }
  326. component.options.__file = "packages/timeline/src/item.vue"
  327. /* harmony default export */ var item = (component.exports);
  328. // CONCATENATED MODULE: ./packages/timeline-item/index.js
  329. /* istanbul ignore next */
  330. item.install = function (Vue) {
  331. Vue.component(item.name, item);
  332. };
  333. /* harmony default export */ var timeline_item = __webpack_exports__["default"] = (item);
  334. /***/ })
  335. /******/ });