@mdsfe/mds-ui 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/CHANGELOG.md +778 -0
  2. package/LICENSE +21 -0
  3. package/README.md +106 -0
  4. package/dist/_locale/index.js +18 -0
  5. package/dist/_locale/zh-CN.js +123 -0
  6. package/dist/_mixin/emitter.js +35 -0
  7. package/dist/_mixin/focus.js +13 -0
  8. package/dist/_mixin/locale.js +17 -0
  9. package/dist/_mixin/popper.js +192 -0
  10. package/dist/_mixin/tooltip.js +218 -0
  11. package/dist/_util/__test__/switchcase.test.js +43 -0
  12. package/dist/_util/autoprefixer.js +249 -0
  13. package/dist/_util/clickoutside.js +79 -0
  14. package/dist/_util/date.js +368 -0
  15. package/dist/_util/dateUtil.js +311 -0
  16. package/dist/_util/dom.js +240 -0
  17. package/dist/_util/getRequestAnimationFrame.js +50 -0
  18. package/dist/_util/getScroll.js +21 -0
  19. package/dist/_util/loaders/loaders.css.js +52 -0
  20. package/dist/_util/loaders/loading.js +53 -0
  21. package/dist/_util/merge.js +18 -0
  22. package/dist/_util/popper.js +1261 -0
  23. package/dist/_util/popup/index.js +232 -0
  24. package/dist/_util/popup/popup-manager.js +205 -0
  25. package/dist/_util/proptype.js +12 -0
  26. package/dist/_util/repeatClick.js +30 -0
  27. package/dist/_util/resize.js +61 -0
  28. package/dist/_util/resizeEvent.js +59 -0
  29. package/dist/_util/scrollIntoView.js +38 -0
  30. package/dist/_util/scrollbar-width.js +37 -0
  31. package/dist/_util/soda.js +54 -0
  32. package/dist/_util/switchcase.js +22 -0
  33. package/dist/_util/throttleByAnimationFrame.js +70 -0
  34. package/dist/_util/tree/node.js +412 -0
  35. package/dist/_util/tree/tree.js +410 -0
  36. package/dist/_util/util.js +166 -0
  37. package/dist/_util/vue-popper.js +213 -0
  38. package/dist/affix.js +509 -0
  39. package/dist/anchor.js +522 -0
  40. package/dist/avatar.js +437 -0
  41. package/dist/backtop.js +469 -0
  42. package/dist/badge.js +439 -0
  43. package/dist/bordershadow.js +310 -0
  44. package/dist/breadcrumb.js +434 -0
  45. package/dist/button.js +579 -0
  46. package/dist/card.js +514 -0
  47. package/dist/carousel.js +1326 -0
  48. package/dist/cascaderpanel.js +2320 -0
  49. package/dist/checkbox.js +681 -0
  50. package/dist/col.js +546 -0
  51. package/dist/collapse.js +671 -0
  52. package/dist/color.js +306 -0
  53. package/dist/datepicker.js +8089 -0
  54. package/dist/divider.js +346 -0
  55. package/dist/drawer.js +652 -0
  56. package/dist/dropdown.js +687 -0
  57. package/dist/empty.js +416 -0
  58. package/dist/font.js +306 -0
  59. package/dist/form.js +878 -0
  60. package/dist/icon.js +401 -0
  61. package/dist/index.js +1 -0
  62. package/dist/input.js +1251 -0
  63. package/dist/inputnumber.js +689 -0
  64. package/dist/layout.js +786 -0
  65. package/dist/list.js +789 -0
  66. package/dist/loading.js +430 -0
  67. package/dist/mds-ui.min.css +7 -0
  68. package/dist/mds-ui.min.js +64911 -0
  69. package/dist/menu.js +1131 -0
  70. package/dist/message.js +1016 -0
  71. package/dist/modal.js +895 -0
  72. package/dist/notification.js +818 -0
  73. package/dist/pagination.js +1213 -0
  74. package/dist/popconfirm.js +336 -0
  75. package/dist/popover.js +206 -0
  76. package/dist/progress.js +1023 -0
  77. package/dist/radio.js +760 -0
  78. package/dist/rate.js +765 -0
  79. package/dist/row.js +546 -0
  80. package/dist/select.js +4950 -0
  81. package/dist/slider.js +1411 -0
  82. package/dist/slottable.js +1414 -0
  83. package/dist/steps.js +546 -0
  84. package/dist/style/affix.css +5524 -0
  85. package/dist/style/anchor.css +5572 -0
  86. package/dist/style/avatar.css +5587 -0
  87. package/dist/style/backtop.css +34 -0
  88. package/dist/style/badge.css +5655 -0
  89. package/dist/style/bordershadow.css +5601 -0
  90. package/dist/style/breadcrumb.css +5551 -0
  91. package/dist/style/button.css +7679 -0
  92. package/dist/style/card.css +5670 -0
  93. package/dist/style/carousel.css +5731 -0
  94. package/dist/style/cascaderpanel.css +125 -0
  95. package/dist/style/checkbox.css +5700 -0
  96. package/dist/style/col.css +8121 -0
  97. package/dist/style/collapse.css +5593 -0
  98. package/dist/style/color.css +6136 -0
  99. package/dist/style/datepicker.css +5977 -0
  100. package/dist/style/divider.css +5558 -0
  101. package/dist/style/drawer.css +7979 -0
  102. package/dist/style/dropdown.css +7950 -0
  103. package/dist/style/empty.css +5563 -0
  104. package/dist/style/font.css +5559 -0
  105. package/dist/style/form.css +5662 -0
  106. package/dist/style/icon.css +5538 -0
  107. package/dist/style/input.css +6256 -0
  108. package/dist/style/inputnumber.css +5828 -0
  109. package/dist/style/layout.css +5572 -0
  110. package/dist/style/list.css +5655 -0
  111. package/dist/style/loading.css +5540 -0
  112. package/dist/style/menu.css +6183 -0
  113. package/dist/style/message.css +194 -0
  114. package/dist/style/modal.css +5637 -0
  115. package/dist/style/notification.css +5706 -0
  116. package/dist/style/pagination.css +6683 -0
  117. package/dist/style/popconfirm.css +7951 -0
  118. package/dist/style/popover.css +5727 -0
  119. package/dist/style/progress.css +5714 -0
  120. package/dist/style/radio.css +5769 -0
  121. package/dist/style/rate.css +5616 -0
  122. package/dist/style/row.css +8121 -0
  123. package/dist/style/select.css +5729 -0
  124. package/dist/style/slider.css +5594 -0
  125. package/dist/style/slottable.css +5831 -0
  126. package/dist/style/steps.css +6100 -0
  127. package/dist/style/switch.css +5624 -0
  128. package/dist/style/table.css +8392 -0
  129. package/dist/style/tabs.css +6047 -0
  130. package/dist/style/tag.css +5935 -0
  131. package/dist/style/text.css +5636 -0
  132. package/dist/style/timeline.css +5602 -0
  133. package/dist/style/timepicker.css +5904 -0
  134. package/dist/style/tooltip.css +5686 -0
  135. package/dist/style/transfer.css +101 -0
  136. package/dist/style/transition.css +1417 -0
  137. package/dist/style/tree.css +5598 -0
  138. package/dist/style/typography.css +5640 -0
  139. package/dist/style/upload.css +5834 -0
  140. package/dist/switch.js +448 -0
  141. package/dist/table.js +3809 -0
  142. package/dist/tabs.js +1273 -0
  143. package/dist/tag.js +478 -0
  144. package/dist/text.js +1100 -0
  145. package/dist/timeline.js +495 -0
  146. package/dist/timepicker.js +1567 -0
  147. package/dist/tooltip.js +179 -0
  148. package/dist/transfer.js +981 -0
  149. package/dist/transition.js +246 -0
  150. package/dist/tree.js +1866 -0
  151. package/dist/typography.js +469 -0
  152. package/dist/upload.js +1990 -0
  153. package/package.json +144 -0
package/dist/steps.js ADDED
@@ -0,0 +1,546 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("./icon"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define(["./icon"], factory);
6
+ else {
7
+ var a = typeof exports === 'object' ? factory(require("./icon")) : factory(root["./icon"]);
8
+ for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
+ }
10
+ })(window, function(__WEBPACK_EXTERNAL_MODULE__4__) {
11
+ return /******/ (function(modules) { // webpackBootstrap
12
+ /******/ // The module cache
13
+ /******/ var installedModules = {};
14
+ /******/
15
+ /******/ // The require function
16
+ /******/ function __webpack_require__(moduleId) {
17
+ /******/
18
+ /******/ // Check if module is in cache
19
+ /******/ if(installedModules[moduleId]) {
20
+ /******/ return installedModules[moduleId].exports;
21
+ /******/ }
22
+ /******/ // Create a new module (and put it into the cache)
23
+ /******/ var module = installedModules[moduleId] = {
24
+ /******/ i: moduleId,
25
+ /******/ l: false,
26
+ /******/ exports: {}
27
+ /******/ };
28
+ /******/
29
+ /******/ // Execute the module function
30
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31
+ /******/
32
+ /******/ // Flag the module as loaded
33
+ /******/ module.l = true;
34
+ /******/
35
+ /******/ // Return the exports of the module
36
+ /******/ return module.exports;
37
+ /******/ }
38
+ /******/
39
+ /******/
40
+ /******/ // expose the modules object (__webpack_modules__)
41
+ /******/ __webpack_require__.m = modules;
42
+ /******/
43
+ /******/ // expose the module cache
44
+ /******/ __webpack_require__.c = installedModules;
45
+ /******/
46
+ /******/ // define getter function for harmony exports
47
+ /******/ __webpack_require__.d = function(exports, name, getter) {
48
+ /******/ if(!__webpack_require__.o(exports, name)) {
49
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
50
+ /******/ }
51
+ /******/ };
52
+ /******/
53
+ /******/ // define __esModule on exports
54
+ /******/ __webpack_require__.r = function(exports) {
55
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
56
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
57
+ /******/ }
58
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
59
+ /******/ };
60
+ /******/
61
+ /******/ // create a fake namespace object
62
+ /******/ // mode & 1: value is a module id, require it
63
+ /******/ // mode & 2: merge all properties of value into the ns
64
+ /******/ // mode & 4: return value when already ns object
65
+ /******/ // mode & 8|1: behave like require
66
+ /******/ __webpack_require__.t = function(value, mode) {
67
+ /******/ if(mode & 1) value = __webpack_require__(value);
68
+ /******/ if(mode & 8) return value;
69
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
70
+ /******/ var ns = Object.create(null);
71
+ /******/ __webpack_require__.r(ns);
72
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
73
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
74
+ /******/ return ns;
75
+ /******/ };
76
+ /******/
77
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
78
+ /******/ __webpack_require__.n = function(module) {
79
+ /******/ var getter = module && module.__esModule ?
80
+ /******/ function getDefault() { return module['default']; } :
81
+ /******/ function getModuleExports() { return module; };
82
+ /******/ __webpack_require__.d(getter, 'a', getter);
83
+ /******/ return getter;
84
+ /******/ };
85
+ /******/
86
+ /******/ // Object.prototype.hasOwnProperty.call
87
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
88
+ /******/
89
+ /******/ // __webpack_public_path__
90
+ /******/ __webpack_require__.p = "/dist/";
91
+ /******/
92
+ /******/
93
+ /******/ // Load entry module and return exports
94
+ /******/ return __webpack_require__(__webpack_require__.s = 126);
95
+ /******/ })
96
+ /************************************************************************/
97
+ /******/ ({
98
+
99
+ /***/ 1:
100
+ /***/ (function(module, exports) {
101
+
102
+ module.exports = require("babel-runtime/helpers/defineProperty");
103
+
104
+ /***/ }),
105
+
106
+ /***/ 126:
107
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
108
+
109
+ "use strict";
110
+ // ESM COMPAT FLAG
111
+ __webpack_require__.r(__webpack_exports__);
112
+
113
+ // EXTERNAL MODULE: ./components/style/index.less
114
+ var style = __webpack_require__(131);
115
+
116
+ // EXTERNAL MODULE: ./components/steps/style/index.less
117
+ var steps_style = __webpack_require__(209);
118
+
119
+ // CONCATENATED MODULE: ./components/steps/style/index.js
120
+
121
+
122
+ // EXTERNAL MODULE: external "babel-runtime/helpers/defineProperty"
123
+ var defineProperty_ = __webpack_require__(1);
124
+ var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_);
125
+
126
+ // CONCATENATED MODULE: ./components/steps/steps.js
127
+
128
+ /* harmony default export */ var steps = ({
129
+ name: 'MdsSteps',
130
+ props: {
131
+ prefixCls: {
132
+ type: String,
133
+ default: 'mds-steps'
134
+ },
135
+ current: {
136
+ type: Number,
137
+ default: 0
138
+ },
139
+ direction: {
140
+ type: String,
141
+ default: 'horizontal',
142
+ validator: function validator(value) {
143
+ return ['horizontal', 'vertical'].indexOf(value) !== -1;
144
+ }
145
+ },
146
+ iconPrefix: {
147
+ type: String,
148
+ default: 'mds'
149
+ },
150
+ progressDot: {
151
+ type: Boolean,
152
+ default: false
153
+ },
154
+ space: {
155
+ type: [String, Number],
156
+ default: ''
157
+ },
158
+ spaceMargin: {
159
+ type: Number,
160
+ default: 8
161
+ },
162
+ size: {
163
+ type: String,
164
+ default: 'default'
165
+ },
166
+ status: {
167
+ type: String,
168
+ default: 'process'
169
+ },
170
+ simple: Boolean
171
+ },
172
+ data: function data() {
173
+ return {
174
+ lastStepOffsetWidth: 0
175
+ };
176
+ },
177
+
178
+ methods: {
179
+ calcStepOffsetWidth: function calcStepOffsetWidth(dom) {
180
+ var lastStepOffsetWidth = (dom.lastChild.offsetWidth || 0) + 1;
181
+ this.lastStepOffsetWidth = lastStepOffsetWidth;
182
+ },
183
+ updateChildern: function updateChildern() {
184
+ // const lastIndex = this.$children.length - 1
185
+ this.$children.forEach(function (component, index) {
186
+ // const itemWidth = (this.direction === 'vertical' || index === lastIndex) ? '' : `${100 / lastIndex}%`
187
+ // const adjustMarginRight = (this.direction === 'vertical' || index === lastIndex) ? 0 : -Math.round(this.lastStepOffsetWidth / lastIndex + 1)
188
+ // component.itemWidth = itemWidth
189
+ // component.adjustMarginRight = adjustMarginRight
190
+ // component.stepNumber = index + 1
191
+
192
+ // if (this.status === 'error' && index === this.current - 1) {
193
+ // component.isNextError = true
194
+ // } else {
195
+ // component.isNextError = false
196
+ // }
197
+
198
+ // if (index === this.current) {
199
+ // component.defaultstatus = this.status
200
+ // } else if (index < this.current) {
201
+ // component.defaultstatus = 'finish'
202
+ // } else {
203
+ // component.defaultstatus = 'wait'
204
+ // }
205
+ });
206
+ }
207
+ },
208
+ computed: {
209
+ classes: function classes() {
210
+ var prefixCls = this.prefixCls;
211
+ if (this.simple) {
212
+ return [prefixCls, prefixCls + '--simple', defineProperty_default()({}, prefixCls + '-' + this.size, !!this.size)];
213
+ } else {
214
+ var _ref2;
215
+
216
+ var adjustedlabelPlacement = this.progressDot ? 'vertical' : 'horizontal';
217
+ return [prefixCls, prefixCls + '-' + this.direction, (_ref2 = {}, defineProperty_default()(_ref2, prefixCls + '-' + this.size, !!this.size), defineProperty_default()(_ref2, prefixCls + '-dot', this.progressDot), defineProperty_default()(_ref2, prefixCls + '-label-' + adjustedlabelPlacement, this.direction === 'horizontal'), _ref2)];
218
+ }
219
+ }
220
+ },
221
+ render: function render(h) {
222
+ return h(
223
+ 'div',
224
+ { 'class': this.classes, key: this.current },
225
+ [this.$slots.default]
226
+ );
227
+ }
228
+ });
229
+
230
+ // step.map((vnode, index) => {
231
+ // const props = vnode.componentOptions.propsData
232
+ // const itemWidth = (this.direction === 'vertical' || index === lastIndex) ? '' : `${100 / lastIndex}%`
233
+ // const adjustMarginRight = (this.direction === 'vertical' || index === lastIndex) ? 0 : -Math.round(this.lastStepOffsetWidth / lastIndex + 1)
234
+ // props.stepNumber = index + 1
235
+ // props.itemWidth = itemWidth
236
+ // props.adjustMarginRight = adjustMarginRight
237
+ // if (this.status === 'error' && index === this.current - 1) {
238
+ // vnode.data.staticClass += `${this.prefixCls}-next-error`
239
+ // }
240
+
241
+ // if (!props.status) {
242
+ // if (index === this.current) {
243
+ // props.status = this.status
244
+ // } else if (index < this.current) {
245
+ // props.status = 'finish'
246
+ // } else {
247
+ // props.status = 'wait'
248
+ // }
249
+ // }
250
+
251
+ // return vnode
252
+ // })
253
+ // EXTERNAL MODULE: external "./icon"
254
+ var external_icon_ = __webpack_require__(4);
255
+ var external_icon_default = /*#__PURE__*/__webpack_require__.n(external_icon_);
256
+
257
+ // CONCATENATED MODULE: ./components/steps/step.js
258
+
259
+
260
+
261
+ /* harmony default export */ var step = ({
262
+ name: 'MdsStep',
263
+ props: {
264
+ prefixCls: {
265
+ type: String,
266
+ default: 'mds-steps'
267
+ },
268
+ description: String,
269
+ title: String,
270
+ icon: String,
271
+ status: String
272
+ },
273
+ data: function data() {
274
+ return {
275
+ defaultstatus: '',
276
+ size: 'default',
277
+ stepNumber: undefined,
278
+ isNextError: false,
279
+ maxWidth: '',
280
+ paddingLeft: 0,
281
+ paddingRight: 0,
282
+ paddingTop: 0,
283
+ paddingBottom: 0,
284
+ flexBasis: ''
285
+ };
286
+ },
287
+
288
+ computed: {
289
+ classes: function classes() {
290
+ var prefixCls = this.prefixCls;
291
+ if (this.simple) {
292
+ var _ref;
293
+
294
+ return [prefixCls + '-simple', prefixCls + '-status-' + this.currentstatus, (_ref = {}, defineProperty_default()(_ref, prefixCls + '-custom', !!this.$slots.icon), defineProperty_default()(_ref, prefixCls + '-next-error', this.isNextError), _ref)];
295
+ } else {
296
+ var _ref2;
297
+
298
+ return [prefixCls + '-item', prefixCls + '-status-' + this.currentstatus, (_ref2 = {}, defineProperty_default()(_ref2, prefixCls + '-custom', !!this.$slots.icon), defineProperty_default()(_ref2, prefixCls + '-next-error', this.isNextError), _ref2)];
299
+ }
300
+ },
301
+ style: function style() {
302
+ return {
303
+ flexBasis: this.flexBasis,
304
+ maxWidth: this.maxWidth
305
+ };
306
+ },
307
+ tailStyle: function tailStyle() {
308
+ return {
309
+ paddingLeft: this.paddingLeft,
310
+ paddingRight: this.paddingRight,
311
+ paddingTop: this.paddingTop,
312
+ paddingBottom: this.paddingBottom
313
+ };
314
+ },
315
+ iconClasses: function iconClasses() {
316
+ var _ref3;
317
+
318
+ var prefixCls = this.prefixCls;
319
+ var iconPrefix = this.iconPrefix;
320
+ return [prefixCls + '-icon', iconPrefix + 'icon', (_ref3 = {}, defineProperty_default()(_ref3, iconPrefix + 'icon-' + this.icon, this.icon), defineProperty_default()(_ref3, iconPrefix + 'icon-line-check', !this.icon && this.currentstatus === 'finish'), defineProperty_default()(_ref3, iconPrefix + 'icon-cross', !this.icon && this.currentstatus === 'error'), _ref3)];
321
+ },
322
+ progressDot: function progressDot() {
323
+ return this.$parent.progressDot;
324
+ },
325
+ iconPrefix: function iconPrefix() {
326
+ return this.$parent.iconPrefix;
327
+ },
328
+ parentstatus: function parentstatus() {
329
+ return this.$parent.status;
330
+ },
331
+ currentstatus: function currentstatus() {
332
+ return this.status || this.defaultstatus;
333
+ },
334
+ simple: function simple() {
335
+ return this.$parent.simple;
336
+ }
337
+ },
338
+ components: {
339
+ MdsIcon: external_icon_default.a
340
+ },
341
+ beforeUpdate: function beforeUpdate() {
342
+ this.calcItemWidth();
343
+ },
344
+ mounted: function mounted() {
345
+ this.calcItemWidth();
346
+ },
347
+
348
+ methods: {
349
+ calcItemWidth: function calcItemWidth() {
350
+ var parentNode = this.$el.parentNode;
351
+ var brotherChildNodes = parentNode.childNodes;
352
+ var validChildNodes = Array.prototype.slice.call(brotherChildNodes).filter(function (node) {
353
+ return node.nodeType === 1;
354
+ });
355
+ var lastIndex = validChildNodes.length - 1;
356
+ var isLastChild = validChildNodes[lastIndex] === this.$el;
357
+ var direction = this.$parent.direction;
358
+ var index = validChildNodes.indexOf(this.$el);
359
+ var space = this.$parent.space;
360
+ var size = this.$parent.size === 'default' ? 32 : 24;
361
+ var spaceMargin = this.$parent.spaceMargin;
362
+ this.size = size;
363
+ this.stepNumber = index + 1;
364
+ if (isLastChild) {
365
+ if (direction === 'horizontal') {
366
+ this.maxWidth = 100 / validChildNodes.length + '%';
367
+ }
368
+ } else {
369
+ this.flexBasis = space ? space[space.length - 1] === '%' ? space : parseFloat(space) + 'px' : 100 / lastIndex + '%';
370
+ }
371
+ if (direction === 'vertical') {
372
+ this.paddingTop = spaceMargin + size + 'px';
373
+ this.paddingBottom = spaceMargin + 'px';
374
+ } else {
375
+ this.paddingLeft = spaceMargin + size + 'px';
376
+ this.paddingRight = spaceMargin + 'px';
377
+ }
378
+ this.isNextError = this.parentstatus === 'error' && index === this.$parent.current - 1;
379
+ this.defaultstatus = index === this.$parent.current ? this.parentstatus : index < this.$parent.current ? 'finish' : 'wait';
380
+ }
381
+ },
382
+ render: function render(h) {
383
+ var _this = this;
384
+
385
+ var prefixCls = this.prefixCls;
386
+ if (this.simple) {
387
+ var renderIcon = function renderIcon() {
388
+ var iconDot = h('span', { 'class': prefixCls + '-icon-dot' });
389
+ if (_this.progressDot) {
390
+ return h(
391
+ 'span',
392
+ { 'class': prefixCls + '-icon' },
393
+ [iconDot]
394
+ );
395
+ } else if (_this.$slots.icon) {
396
+ return h(
397
+ 'span',
398
+ { 'class': prefixCls + '-icon' },
399
+ [_this.$slots.icon]
400
+ );
401
+ } else if (_this.icon || _this.currentstatus === 'finish' || _this.currentstatus === 'error') {
402
+ return h('span', { 'class': _this.iconClasses });
403
+ } else {
404
+ return h(
405
+ 'span',
406
+ { 'class': prefixCls + '-icon' },
407
+ [_this.stepNumber]
408
+ );
409
+ }
410
+ };
411
+ return h(
412
+ 'div',
413
+ { 'class': this.classes, style: this.style },
414
+ [h(
415
+ 'div',
416
+ { 'class': prefixCls + '-tail', style: this.tailStyle },
417
+ [h('mds-icon', {
418
+ attrs: { type: 'line-caret-right' }
419
+ })]
420
+ ), h(
421
+ 'div',
422
+ { 'class': prefixCls + '-step' },
423
+ [h(
424
+ 'div',
425
+ { 'class': prefixCls + '-head' },
426
+ [h(
427
+ 'div',
428
+ { 'class': prefixCls + '-head-inner' },
429
+ [renderIcon()]
430
+ )]
431
+ ), h(
432
+ 'div',
433
+ { 'class': prefixCls + '-main' },
434
+ [h(
435
+ 'div',
436
+ { 'class': prefixCls + '-title' },
437
+ [h('div', [this.$slots.title || this.title]), h(
438
+ 'div',
439
+ { 'class': prefixCls + '--simple-icon' },
440
+ [h('mds-icon', {
441
+ attrs: { type: 'line-caret-right' }
442
+ })]
443
+ )]
444
+ )]
445
+ )]
446
+ )]
447
+ );
448
+ } else {
449
+ var _renderIcon = function _renderIcon() {
450
+ var iconDot = h('span', { 'class': prefixCls + '-icon-dot' });
451
+ if (_this.progressDot) {
452
+ return h(
453
+ 'span',
454
+ { 'class': prefixCls + '-icon' },
455
+ [iconDot]
456
+ );
457
+ } else if (_this.$slots.icon) {
458
+ return h(
459
+ 'span',
460
+ { 'class': prefixCls + '-icon' },
461
+ [_this.$slots.icon]
462
+ );
463
+ } else if (_this.icon || _this.currentstatus === 'finish' || _this.currentstatus === 'error') {
464
+ return h('span', { 'class': _this.iconClasses });
465
+ } else {
466
+ return h(
467
+ 'span',
468
+ { 'class': prefixCls + '-icon' },
469
+ [_this.stepNumber]
470
+ );
471
+ }
472
+ };
473
+ return h(
474
+ 'div',
475
+ { 'class': this.classes, style: this.style },
476
+ [h(
477
+ 'div',
478
+ { 'class': prefixCls + '-tail', style: this.tailStyle },
479
+ [h('i')]
480
+ ), h(
481
+ 'div',
482
+ { 'class': prefixCls + '-step' },
483
+ [h(
484
+ 'div',
485
+ { 'class': prefixCls + '-head' },
486
+ [h(
487
+ 'div',
488
+ { 'class': prefixCls + '-head-inner' },
489
+ [_renderIcon()]
490
+ )]
491
+ ), h(
492
+ 'div',
493
+ { 'class': prefixCls + '-main' },
494
+ [h(
495
+ 'div',
496
+ { 'class': prefixCls + '-title' },
497
+ [this.$slots.title || this.title]
498
+ ), this.description ? h(
499
+ 'div',
500
+ { 'class': prefixCls + '-description' },
501
+ [this.description]
502
+ ) : '']
503
+ )]
504
+ )]
505
+ );
506
+ }
507
+ }
508
+ });
509
+ // CONCATENATED MODULE: ./components/steps/index.js
510
+
511
+
512
+
513
+
514
+ steps.Step = step;
515
+ /* istanbul ignore next */
516
+ steps.install = function (Vue) {
517
+ Vue.component(steps.name, steps);
518
+ Vue.component(step.name, step);
519
+ };
520
+ /* harmony default export */ var components_steps = __webpack_exports__["default"] = (steps);
521
+
522
+ /***/ }),
523
+
524
+ /***/ 131:
525
+ /***/ (function(module, exports) {
526
+
527
+ // removed by extract-text-webpack-plugin
528
+
529
+ /***/ }),
530
+
531
+ /***/ 209:
532
+ /***/ (function(module, exports) {
533
+
534
+ // removed by extract-text-webpack-plugin
535
+
536
+ /***/ }),
537
+
538
+ /***/ 4:
539
+ /***/ (function(module, exports) {
540
+
541
+ module.exports = __WEBPACK_EXTERNAL_MODULE__4__;
542
+
543
+ /***/ })
544
+
545
+ /******/ });
546
+ });