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.

526 lines
14 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 = 564);
  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. /***/ 564:
  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/steps/src/step.vue?vue&type=template&id=f414a87a&
  190. var render = function() {
  191. var _vm = this
  192. var _h = _vm.$createElement
  193. var _c = _vm._self._c || _h
  194. return _c(
  195. "div",
  196. {
  197. staticClass: "el-step",
  198. class: [
  199. !_vm.isSimple && "is-" + _vm.$parent.direction,
  200. _vm.isSimple && "is-simple",
  201. _vm.isLast && !_vm.space && !_vm.isCenter && "is-flex",
  202. _vm.isCenter && !_vm.isVertical && !_vm.isSimple && "is-center"
  203. ],
  204. style: _vm.style
  205. },
  206. [
  207. _c(
  208. "div",
  209. { staticClass: "el-step__head", class: "is-" + _vm.currentStatus },
  210. [
  211. _c(
  212. "div",
  213. {
  214. staticClass: "el-step__line",
  215. style: _vm.isLast
  216. ? ""
  217. : { marginRight: _vm.$parent.stepOffset + "px" }
  218. },
  219. [
  220. _c("i", {
  221. staticClass: "el-step__line-inner",
  222. style: _vm.lineStyle
  223. })
  224. ]
  225. ),
  226. _c(
  227. "div",
  228. {
  229. staticClass: "el-step__icon",
  230. class: "is-" + (_vm.icon ? "icon" : "text")
  231. },
  232. [
  233. _vm.currentStatus !== "success" && _vm.currentStatus !== "error"
  234. ? _vm._t("icon", [
  235. _vm.icon
  236. ? _c("i", {
  237. staticClass: "el-step__icon-inner",
  238. class: [_vm.icon]
  239. })
  240. : _vm._e(),
  241. !_vm.icon && !_vm.isSimple
  242. ? _c("div", { staticClass: "el-step__icon-inner" }, [
  243. _vm._v(_vm._s(_vm.index + 1))
  244. ])
  245. : _vm._e()
  246. ])
  247. : _c("i", {
  248. staticClass: "el-step__icon-inner is-status",
  249. class: [
  250. "el-icon-" +
  251. (_vm.currentStatus === "success" ? "check" : "close")
  252. ]
  253. })
  254. ],
  255. 2
  256. )
  257. ]
  258. ),
  259. _c("div", { staticClass: "el-step__main" }, [
  260. _c(
  261. "div",
  262. {
  263. ref: "title",
  264. staticClass: "el-step__title",
  265. class: ["is-" + _vm.currentStatus]
  266. },
  267. [_vm._t("title", [_vm._v(_vm._s(_vm.title))])],
  268. 2
  269. ),
  270. _vm.isSimple
  271. ? _c("div", { staticClass: "el-step__arrow" })
  272. : _c(
  273. "div",
  274. {
  275. staticClass: "el-step__description",
  276. class: ["is-" + _vm.currentStatus]
  277. },
  278. [_vm._t("description", [_vm._v(_vm._s(_vm.description))])],
  279. 2
  280. )
  281. ])
  282. ]
  283. )
  284. }
  285. var staticRenderFns = []
  286. render._withStripped = true
  287. // CONCATENATED MODULE: ./packages/steps/src/step.vue?vue&type=template&id=f414a87a&
  288. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/steps/src/step.vue?vue&type=script&lang=js&
  289. //
  290. //
  291. //
  292. //
  293. //
  294. //
  295. //
  296. //
  297. //
  298. //
  299. //
  300. //
  301. //
  302. //
  303. //
  304. //
  305. //
  306. //
  307. //
  308. //
  309. //
  310. //
  311. //
  312. //
  313. //
  314. //
  315. //
  316. //
  317. //
  318. //
  319. //
  320. //
  321. //
  322. //
  323. //
  324. //
  325. //
  326. //
  327. //
  328. //
  329. //
  330. //
  331. //
  332. //
  333. //
  334. //
  335. //
  336. //
  337. //
  338. //
  339. //
  340. //
  341. //
  342. //
  343. //
  344. /* harmony default export */ var stepvue_type_script_lang_js_ = ({
  345. name: 'TisStep',
  346. props: {
  347. title: String,
  348. icon: String,
  349. description: String,
  350. status: String
  351. },
  352. data: function data() {
  353. return {
  354. index: -1,
  355. lineStyle: {},
  356. internalStatus: ''
  357. };
  358. },
  359. beforeCreate: function beforeCreate() {
  360. this.$parent.steps.push(this);
  361. },
  362. beforeDestroy: function beforeDestroy() {
  363. var steps = this.$parent.steps;
  364. var index = steps.indexOf(this);
  365. if (index >= 0) {
  366. steps.splice(index, 1);
  367. }
  368. },
  369. computed: {
  370. currentStatus: function currentStatus() {
  371. return this.status || this.internalStatus;
  372. },
  373. prevStatus: function prevStatus() {
  374. var prevStep = this.$parent.steps[this.index - 1];
  375. return prevStep ? prevStep.currentStatus : 'wait';
  376. },
  377. isCenter: function isCenter() {
  378. return this.$parent.alignCenter;
  379. },
  380. isVertical: function isVertical() {
  381. return this.$parent.direction === 'vertical';
  382. },
  383. isSimple: function isSimple() {
  384. return this.$parent.simple;
  385. },
  386. isLast: function isLast() {
  387. var parent = this.$parent;
  388. return parent.steps[parent.steps.length - 1] === this;
  389. },
  390. stepsCount: function stepsCount() {
  391. return this.$parent.steps.length;
  392. },
  393. space: function space() {
  394. var isSimple = this.isSimple,
  395. space = this.$parent.space;
  396. return isSimple ? '' : space;
  397. },
  398. style: function style() {
  399. var style = {};
  400. var parent = this.$parent;
  401. var len = parent.steps.length;
  402. var space = typeof this.space === 'number' ? this.space + 'px' : this.space ? this.space : 100 / (len - (this.isCenter ? 0 : 1)) + '%';
  403. style.flexBasis = space;
  404. if (this.isVertical) return style;
  405. if (this.isLast) {
  406. style.maxWidth = 100 / this.stepsCount + '%';
  407. } else {
  408. style.marginRight = -this.$parent.stepOffset + 'px';
  409. }
  410. return style;
  411. }
  412. },
  413. methods: {
  414. updateStatus: function updateStatus(val) {
  415. var prevChild = this.$parent.$children[this.index - 1];
  416. if (val > this.index) {
  417. this.internalStatus = this.$parent.finishStatus;
  418. } else if (val === this.index && this.prevStatus !== 'error') {
  419. this.internalStatus = this.$parent.processStatus;
  420. } else {
  421. this.internalStatus = 'wait';
  422. }
  423. if (prevChild) prevChild.calcProgress(this.internalStatus);
  424. },
  425. calcProgress: function calcProgress(status) {
  426. var step = 100;
  427. var style = {};
  428. style.transitionDelay = 150 * this.index + 'ms';
  429. if (status === this.$parent.processStatus) {
  430. step = this.currentStatus !== 'error' ? 0 : 0;
  431. } else if (status === 'wait') {
  432. step = 0;
  433. style.transitionDelay = -150 * this.index + 'ms';
  434. }
  435. style.borderWidth = step && !this.isSimple ? '1px' : 0;
  436. this.$parent.direction === 'vertical' ? style.height = step + '%' : style.width = step + '%';
  437. this.lineStyle = style;
  438. }
  439. },
  440. mounted: function mounted() {
  441. var _this = this;
  442. var unwatch = this.$watch('index', function (val) {
  443. _this.$watch('$parent.active', _this.updateStatus, { immediate: true });
  444. _this.$watch('$parent.processStatus', function () {
  445. var activeIndex = _this.$parent.active;
  446. _this.updateStatus(activeIndex);
  447. }, { immediate: true });
  448. unwatch();
  449. });
  450. }
  451. });
  452. // CONCATENATED MODULE: ./packages/steps/src/step.vue?vue&type=script&lang=js&
  453. /* harmony default export */ var src_stepvue_type_script_lang_js_ = (stepvue_type_script_lang_js_);
  454. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  455. var componentNormalizer = __webpack_require__(2);
  456. // CONCATENATED MODULE: ./packages/steps/src/step.vue
  457. /* normalize component */
  458. var component = Object(componentNormalizer["a" /* default */])(
  459. src_stepvue_type_script_lang_js_,
  460. render,
  461. staticRenderFns,
  462. false,
  463. null,
  464. null,
  465. null
  466. )
  467. /* hot reload */
  468. if (false) { var api; }
  469. component.options.__file = "packages/steps/src/step.vue"
  470. /* harmony default export */ var step = (component.exports);
  471. // CONCATENATED MODULE: ./packages/step/index.js
  472. /* istanbul ignore next */
  473. step.install = function (Vue) {
  474. Vue.component(step.name, step);
  475. };
  476. /* harmony default export */ var packages_step = __webpack_exports__["default"] = (step);
  477. /***/ })
  478. /******/ });