bk-magic-vue 2.4.0 → 2.4.1

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 (84) hide show
  1. package/dist/bk-magic-vue.css +113 -24
  2. package/dist/bk-magic-vue.js +1091 -839
  3. package/dist/bk-magic-vue.min.css +1 -1
  4. package/dist/bk-magic-vue.min.css.gz +0 -0
  5. package/dist/bk-magic-vue.min.css.map +1 -1
  6. package/dist/bk-magic-vue.min.js +1 -1
  7. package/dist/bk-magic-vue.min.js.gz +0 -0
  8. package/dist/bk-magic-vue.min.js.map +1 -1
  9. package/lib/alert.js +472 -472
  10. package/lib/back-top.js +1 -1
  11. package/lib/big-tree.js +3 -3
  12. package/lib/breadcrumb-item.js +426 -426
  13. package/lib/breadcrumb.js +438 -438
  14. package/lib/button.js +509 -509
  15. package/lib/cascade.js +36 -2
  16. package/lib/checkbox-group.js +16 -9
  17. package/lib/checkbox.js +9 -1
  18. package/lib/container.js +454 -454
  19. package/lib/date-picker.js +5 -8
  20. package/lib/dialog.js +8 -9
  21. package/lib/directives/clickoutside.js +61 -61
  22. package/lib/directives/copy.js +51 -51
  23. package/lib/divider.js +446 -446
  24. package/lib/dropdown-menu.js +1747 -1747
  25. package/lib/form-item.js +1 -1
  26. package/lib/image-viewer.js +67 -2
  27. package/lib/image.js +73 -3
  28. package/lib/info-box.js +8 -9
  29. package/lib/link.js +430 -430
  30. package/lib/locale/lang/en-US.js +153 -143
  31. package/lib/locale/lang/zh-CN.js +151 -143
  32. package/lib/message.js +1 -1
  33. package/lib/mixins/emitter.js +18 -18
  34. package/lib/navigation-menu-group.js +412 -412
  35. package/lib/navigation-menu-item.js +722 -722
  36. package/lib/navigation.js +668 -668
  37. package/lib/notify.js +1 -1
  38. package/lib/option-group.js +9 -1
  39. package/lib/option.js +1 -1
  40. package/lib/pagination.js +13 -13
  41. package/lib/process.js +233 -51
  42. package/lib/progress.js +499 -499
  43. package/lib/radio-button.js +541 -541
  44. package/lib/radio.js +555 -555
  45. package/lib/rate.js +607 -607
  46. package/lib/round-progress.js +502 -502
  47. package/lib/search-select.js +5 -5
  48. package/lib/select.js +6 -6
  49. package/lib/sideslider.js +1 -1
  50. package/lib/slider.js +5 -5
  51. package/lib/spin.js +500 -500
  52. package/lib/star.js +496 -496
  53. package/lib/steps.js +3 -3
  54. package/lib/switcher.js +538 -538
  55. package/lib/tab-panel.js +456 -456
  56. package/lib/table-setting-content.js +35 -20
  57. package/lib/table.js +764 -575
  58. package/lib/tag.js +459 -459
  59. package/lib/time-picker.js +2 -2
  60. package/lib/transfer.js +6 -6
  61. package/lib/ui/bk-magic-vue.css +113 -24
  62. package/lib/ui/bk-magic-vue.min.css +1 -1
  63. package/lib/ui/bk-magic-vue.min.css.gz +0 -0
  64. package/lib/ui/bk-magic-vue.min.css.map +1 -1
  65. package/lib/ui/image-viewer.css +38 -17
  66. package/lib/ui/image-viewer.min.css +1 -1
  67. package/lib/ui/image-viewer.min.css.map +1 -1
  68. package/lib/ui/process.css +76 -0
  69. package/lib/ui/process.min.css +1 -1
  70. package/lib/ui/process.min.css.map +1 -1
  71. package/lib/ui/slider.css +4 -2
  72. package/lib/ui/slider.min.css +1 -1
  73. package/lib/ui/slider.min.css.map +1 -1
  74. package/lib/ui/spin.css +5 -1
  75. package/lib/ui/spin.min.css +1 -1
  76. package/lib/ui/spin.min.css.map +1 -1
  77. package/lib/ui/table.css +16 -5
  78. package/lib/ui/table.min.css +1 -1
  79. package/lib/ui/table.min.css.map +1 -1
  80. package/lib/upload.js +2 -2
  81. package/lib/version-detail.js +9 -10
  82. package/lib/virtual-scroll.js +805 -805
  83. package/lib/zoom-image.js +502 -502
  84. package/package.json +1 -1
package/lib/notify.js CHANGED
@@ -406,7 +406,7 @@
406
406
  on: {
407
407
  "click": _vm.onClickViewMore
408
408
  }
409
- }, [_vm._v("\n " + _vm._s(_vm.t('bk.notify.showMore')) + "\n ")]) : _vm._e()], 2)])], 2), _vm.dismissable ? _c('div', {
409
+ }, [_vm._v("\n " + _vm._s(_vm.t('bk.notify.showMore')) + "\n ")]) : _vm._e()], 2)])], 2), _vm.dismissable ? _c('div', {
410
410
  staticClass: "bk-notify-close"
411
411
  }, [_c('i', {
412
412
  staticClass: "bk-icon icon-close",
@@ -574,6 +574,7 @@
574
574
  var script = {
575
575
  name: 'bk-checkbox',
576
576
  mixins: [emitter],
577
+ inject: ['handleRemoveItem', 'handleAddItem'],
577
578
  props: {
578
579
  value: {
579
580
  type: [String, Number, Boolean],
@@ -653,9 +654,16 @@
653
654
  }
654
655
  },
655
656
  created: function created() {
656
- this.dispatch('bk-checkbox-group', 'checkbox-item-add', this);
657
+ if (this.handleAddItem && typeof this.handleAddItem === 'function') {
658
+ this.handleAddItem(this);
659
+ }
657
660
  this.init();
658
661
  },
662
+ destroyed: function destroyed() {
663
+ if (this.handleRemoveItem && typeof this.handleRemoveItem === 'function') {
664
+ this.handleRemoveItem(this);
665
+ }
666
+ },
659
667
  methods: {
660
668
  getValue: function getValue() {
661
669
  if (this.selected) {
package/lib/option.js CHANGED
@@ -344,7 +344,7 @@
344
344
  }) : _vm._e(), _c('span', {
345
345
  staticClass: "bk-option-name",
346
346
  class: _vm.select.fontSizeCls
347
- }, [_vm._v("\n " + _vm._s(_vm.name) + "\n ")])])])], 2)]);
347
+ }, [_vm._v("\n " + _vm._s(_vm.name) + "\n ")])])])], 2)]);
348
348
  };
349
349
 
350
350
  var __vue_staticRenderFns__ = [];
package/lib/pagination.js CHANGED
@@ -4246,7 +4246,7 @@
4246
4246
  staticClass: "bk-option-content"
4247
4247
  }, [_c('span', {
4248
4248
  staticClass: "bk-option-name"
4249
- }, [_vm._v("\n " + _vm._s(_vm.t('bk.select.selectAll')) + "\n "), _vm.isAllSelected ? [_vm._v("\n " + _vm._s("(" + _vm.select.selectedOptions.length + ")") + "\n ")] : _vm._e()], 2)])]);
4249
+ }, [_vm._v("\n " + _vm._s(_vm.t('bk.select.selectAll')) + "\n "), _vm.isAllSelected ? [_vm._v("\n " + _vm._s("(" + _vm.select.selectedOptions.length + ")") + "\n ")] : _vm._e()], 2)])]);
4250
4250
  };
4251
4251
 
4252
4252
  var __vue_staticRenderFns__$1 = [];
@@ -5420,7 +5420,7 @@
5420
5420
  height: _vm.itemHeight + "px",
5421
5421
  top: item.top + "px"
5422
5422
  }
5423
- }, [_vm._t("index", [_vm._v("\n " + _vm._s(item.value) + "\n ")], {
5423
+ }, [_vm._t("index", [_vm._v("\n " + _vm._s(item.value) + "\n ")], {
5424
5424
  data: item.value
5425
5425
  })], 2);
5426
5426
  }), 0) : _vm._e(), _c('ul', {
@@ -5598,7 +5598,7 @@
5598
5598
  }) : _vm._e(), _c('span', {
5599
5599
  staticClass: "bk-option-name",
5600
5600
  class: _vm.select.fontSizeCls
5601
- }, [_vm._v("\n " + _vm._s(_vm.name) + "\n ")])])])], 2)]);
5601
+ }, [_vm._v("\n " + _vm._s(_vm.name) + "\n ")])])])], 2)]);
5602
5602
  };
5603
5603
 
5604
5604
  var __vue_staticRenderFns__$5 = [];
@@ -6298,7 +6298,7 @@
6298
6298
  attrs: {
6299
6299
  "title": _vm.selectedName
6300
6300
  }
6301
- }, [_vm._v("\n " + _vm._s(_vm.selectedName) + "\n ")])], null, _vm.$props), _c('div', {
6301
+ }, [_vm._v("\n " + _vm._s(_vm.selectedName) + "\n ")])], null, _vm.$props), _c('div', {
6302
6302
  staticClass: "bk-select-dropdown-content",
6303
6303
  class: [_vm.popoverCls, _vm.extPopoverCls],
6304
6304
  style: _vm.popoverStyle,
@@ -6402,10 +6402,10 @@
6402
6402
  }) : _vm._t("default")], 2)]), _vm.showEmpty ? [!_vm.options.length ? _c('div', {
6403
6403
  staticClass: "bk-select-empty",
6404
6404
  class: _vm.fontSizeCls
6405
- }, [_vm._v("\n " + _vm._s(_vm.emptyText || _vm.t('bk.select.dataEmpty')) + "\n ")]) : _vm.searchable && _vm.unmatchedCount === _vm.options.length ? _c('div', {
6405
+ }, [_vm._v("\n " + _vm._s(_vm.emptyText || _vm.t('bk.select.dataEmpty')) + "\n ")]) : _vm.searchable && _vm.unmatchedCount === _vm.options.length ? _c('div', {
6406
6406
  staticClass: "bk-select-empty",
6407
6407
  class: _vm.fontSizeCls
6408
- }, [_vm._v("\n " + _vm._s(_vm.emptyText || _vm.t('bk.select.searchEmpty')) + "\n ")]) : _vm._e()] : _vm._e(), _vm.$slots.extension ? _c('div', {
6408
+ }, [_vm._v("\n " + _vm._s(_vm.emptyText || _vm.t('bk.select.searchEmpty')) + "\n ")]) : _vm._e()] : _vm._e(), _vm.$slots.extension ? _c('div', {
6409
6409
  staticClass: "bk-select-extension",
6410
6410
  class: _vm.fontSizeCls
6411
6411
  }, [_vm._t("extension")], 2) : _vm._e()], 2)], 2)], 2);
@@ -6447,11 +6447,11 @@
6447
6447
 
6448
6448
  return _c('div', {
6449
6449
  class: ['bk-page-selection-count', "bk-page-selection-count-" + _vm.$parent.realityLocation]
6450
- }, [_vm.$parent.curLang === 'cn' ? [_vm._v("\n 已选择"), _c('span', {
6450
+ }, [_vm.$parent.curLang === 'cn' ? [_vm._v("\n 已选择"), _c('span', {
6451
6451
  staticClass: "count"
6452
- }, [_vm._v(_vm._s(_vm.$parent.selectionCount))]), _vm._v("条\n ")] : [_c('span', {
6452
+ }, [_vm._v(_vm._s(_vm.$parent.selectionCount))]), _vm._v("条\n ")] : [_c('span', {
6453
6453
  staticClass: "count"
6454
- }, [_vm._v(_vm._s(_vm.$parent.selectionCount))]), _vm._v(" item(s) selected\n ")]], 2);
6454
+ }, [_vm._v(_vm._s(_vm.$parent.selectionCount))]), _vm._v(" item(s) selected\n ")]], 2);
6455
6455
  };
6456
6456
 
6457
6457
  var __vue_staticRenderFns__$7 = [];
@@ -6492,11 +6492,11 @@
6492
6492
  class: ['bk-page-total-count', "bk-page-total-count-" + _vm.$parent.realityLocation, {
6493
6493
  'bk-page-total-small': _vm.$parent.small
6494
6494
  }]
6495
- }, [_vm.$parent.curLang === 'cn' ? [_vm._v("\n 共计"), _c('span', {
6495
+ }, [_vm.$parent.curLang === 'cn' ? [_vm._v("\n 共计"), _c('span', {
6496
6496
  staticClass: "stress"
6497
- }, [_vm._v(_vm._s(_vm.$parent.count))]), _vm._v("条\n ")] : [_vm._v("\n Total: "), _c('span', {
6497
+ }, [_vm._v(_vm._s(_vm.$parent.count))]), _vm._v("条\n ")] : [_vm._v("\n Total: "), _c('span', {
6498
6498
  staticClass: "stress"
6499
- }, [_vm._v(_vm._s(_vm.$parent.count))]), _vm._v(" items\n ")]], 2) : _vm._e();
6499
+ }, [_vm._v(_vm._s(_vm.$parent.count))]), _vm._v(" items\n ")]], 2) : _vm._e();
6500
6500
  };
6501
6501
 
6502
6502
  var __vue_staticRenderFns__$8 = [];
@@ -6701,7 +6701,7 @@
6701
6701
  _vm.handleChangePage(index);
6702
6702
  }
6703
6703
  }
6704
- }, [_vm._v("\n " + _vm._s(index) + "\n ")]);
6704
+ }, [_vm._v("\n " + _vm._s(index) + "\n ")]);
6705
6705
  }), 0)])]), _c('div', {
6706
6706
  staticClass: "btn-next",
6707
6707
  class: {
package/lib/process.js CHANGED
@@ -4,6 +4,22 @@
4
4
  (global = global || self, factory(global.library = {}));
5
5
  }(this, function (exports) { 'use strict';
6
6
 
7
+ function _typeof(obj) {
8
+ "@babel/helpers - typeof";
9
+
10
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
11
+ _typeof = function (obj) {
12
+ return typeof obj;
13
+ };
14
+ } else {
15
+ _typeof = function (obj) {
16
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
17
+ };
18
+ }
19
+
20
+ return _typeof(obj);
21
+ }
22
+
7
23
  function _toConsumableArray(arr) {
8
24
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
9
25
  }
@@ -37,8 +53,102 @@
37
53
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
38
54
  }
39
55
 
56
+ function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}var normalMerge=["attrs","props","domProps"],toArrayMerge=["class","style","directives"],functionalMerge=["on","nativeOn"],mergeJsxProps=function(a){return a.reduce(function(c,a){for(var b in a)if(!c[b])c[b]=a[b];else if(-1!==normalMerge.indexOf(b))c[b]=_extends({},c[b],a[b]);else if(-1!==toArrayMerge.indexOf(b)){var d=c[b]instanceof Array?c[b]:[c[b]],e=a[b]instanceof Array?a[b]:[a[b]];c[b]=d.concat(e);}else if(-1!==functionalMerge.indexOf(b)){for(var f in a[b])if(c[b][f]){var g=c[b][f]instanceof Array?c[b][f]:[c[b][f]],h=a[b][f]instanceof Array?a[b][f]:[a[b][f]];c[b][f]=g.concat(h);}else c[b][f]=a[b][f];}else if("hook"==b)for(var i in a[b])c[b][i]=c[b][i]?mergeFn(c[b][i],a[b][i]):a[b][i];else c[b]=a[b];return c},{})},mergeFn=function(a,b){return function(){a&&a.apply(this,arguments),b&&b.apply(this,arguments);}};var helper=mergeJsxProps;
57
+
58
+ function isVNode(node) {
59
+ return node && _typeof(node) === 'object' && node.hasOwnProperty('componentOptions');
60
+ }
61
+ var requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (callback) {
62
+ window.setTimeout(callback, 1000 / 60);
63
+ };
64
+ var cancelAnimationFrame = window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || window.oCancelAnimationFrame || window.msCancelAnimationFrame || function (id) {
65
+ window.clearTimeout(id);
66
+ };
67
+ var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
68
+ var MOZ_HACK_REGEXP = /^moz([A-Z])/;
69
+ var camelCase = function camelCase(name) {
70
+ return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
71
+ return offset ? letter.toUpperCase() : letter;
72
+ }).replace(MOZ_HACK_REGEXP, 'Moz$1');
73
+ };
74
+ var getStyle = Number(document.documentMode) < 9 ? function (element, styleName) {
75
+ if (!element || !styleName) return null;
76
+ styleName = camelCase(styleName);
77
+ if (styleName === 'float') {
78
+ styleName = 'styleFloat';
79
+ }
80
+ try {
81
+ switch (styleName) {
82
+ case 'opacity':
83
+ try {
84
+ return element.filters.item('alpha').opacity / 100;
85
+ } catch (e) {
86
+ return 1.0;
87
+ }
88
+ default:
89
+ return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
90
+ }
91
+ } catch (e) {
92
+ return element.style[styleName];
93
+ }
94
+ } : function (element, styleName) {
95
+ if (!element || !styleName) return null;
96
+ styleName = camelCase(styleName);
97
+ if (styleName === 'float') {
98
+ styleName = 'cssFloat';
99
+ }
100
+ try {
101
+ var computed = document.defaultView.getComputedStyle(element, '');
102
+ return element.style[styleName] || computed ? computed[styleName] : null;
103
+ } catch (e) {
104
+ return element.style[styleName];
105
+ }
106
+ };
107
+
40
108
  var script = {
41
109
  name: 'bk-process',
110
+ components: {
111
+ SpinLoading: {
112
+ functional: true,
113
+ render: function render(h, ctx) {
114
+ return h("div", helper([{
115
+ "class": "bk-spin-loading bk-spin-loading-mini"
116
+ }, {
117
+ class: ctx.props.themeClass
118
+ }]), [h("div", {
119
+ "class": "rotate rotate1"
120
+ }), h("div", {
121
+ "class": "rotate rotate2"
122
+ }), h("div", {
123
+ "class": "rotate rotate3"
124
+ }), h("div", {
125
+ "class": "rotate rotate4"
126
+ }), h("div", {
127
+ "class": "rotate rotate5"
128
+ }), h("div", {
129
+ "class": "rotate rotate6"
130
+ }), h("div", {
131
+ "class": "rotate rotate7"
132
+ }), h("div", {
133
+ "class": "rotate rotate8"
134
+ })]);
135
+ }
136
+ },
137
+ VNodeContent: {
138
+ functional: true,
139
+ render: function render(h, ctx) {
140
+ return h("div", {
141
+ "class": "step-item-custom"
142
+ }, [ctx.props.content, ctx.children]);
143
+ }
144
+ },
145
+ StepStatusIcon: {
146
+ functional: true,
147
+ render: function render(h, ctx) {
148
+ return ctx.props.icon;
149
+ }
150
+ }
151
+ },
42
152
  props: {
43
153
  list: {
44
154
  type: Array,
@@ -76,6 +186,11 @@
76
186
  stepsClientHeight: 32
77
187
  };
78
188
  },
189
+ computed: {
190
+ hasStepChangeEvent: function hasStepChangeEvent() {
191
+ return !!(this.$listeners || {})['step-change'];
192
+ }
193
+ },
79
194
  watch: {
80
195
  list: {
81
196
  handler: function handler(value) {
@@ -131,11 +246,9 @@
131
246
  var loadFlag = false;
132
247
  if (dataList[curProcess].steps && dataList[curProcess].steps.length) {
133
248
  var steps = dataList[curProcess].steps;
134
- for (var j = 0; j < steps.length; j++) {
135
- if (steps[j]['isLoading']) {
136
- loadFlag = true;
137
- }
138
- }
249
+ loadFlag = steps.some(function (item) {
250
+ return item.isLoading;
251
+ });
139
252
  if (loadFlag) {
140
253
  if (curProcess > 0) {
141
254
  this.$set(dataList[curProcess - 1], 'isLoading', false);
@@ -175,6 +288,54 @@
175
288
  }
176
289
  this.$emit('update:curProcess', index + 1);
177
290
  this.$emit('process-changed', index + 1, item);
291
+ },
292
+ toggleStepItem: function toggleStepItem(step, stepIndex, processIndex) {
293
+ this.$emit('step-change', step, stepIndex, processIndex);
294
+ },
295
+ isCurrent: function isCurrent(index) {
296
+ return this.curProcess === index + 1;
297
+ },
298
+ isDone: function isDone(index) {
299
+ return this.curProcess >= index + 1;
300
+ },
301
+ isBuiltinIcon: function isBuiltinIcon(icon) {
302
+ return typeof icon === 'string' && !!icon;
303
+ },
304
+ isLoadingStatus: function isLoadingStatus(item) {
305
+ return item.status === 'loading';
306
+ },
307
+ isErrorStatus: function isErrorStatus(item) {
308
+ return item.status === 'error';
309
+ },
310
+ isDoneStatus: function isDoneStatus(item) {
311
+ return item.status === 'done';
312
+ },
313
+ isDefaultStatus: function isDefaultStatus(item) {
314
+ return item.status === 'default';
315
+ },
316
+ isVNode: function isVNode$1(content) {
317
+ return isVNode(content);
318
+ },
319
+ getStepStatusIcon: function getStepStatusIcon(step) {
320
+ var h = this.$createElement;
321
+ var customIcon = h("i", {
322
+ "class": ['bk-icon', "icon-".concat(step.statusIcon)]
323
+ });
324
+ var loadingIcon = h("spin-loading", {
325
+ "attrs": {
326
+ "theme-class": "bk-spin-loading-primary steps-loading"
327
+ }
328
+ });
329
+ var errorIcon = h("i", {
330
+ "class": "bk-icon icon-close error"
331
+ });
332
+ var doneIcon = h("i", {
333
+ "class": "bk-icon icon-check-1 done"
334
+ });
335
+ if (this.isBuiltinIcon(step.statusIcon)) return customIcon;
336
+ if (this.isLoadingStatus(step)) return loadingIcon;
337
+ if (this.isErrorStatus(step)) return errorIcon;
338
+ if (this.isDoneStatus(step)) return doneIcon;
178
339
  }
179
340
  }
180
341
  };
@@ -260,8 +421,12 @@
260
421
  return _c('li', {
261
422
  key: index,
262
423
  class: {
263
- success: _vm.curProcess >= index + 1,
264
- current: item.isLoading && index === _vm.curProcess - 1
424
+ success: _vm.isDone(index),
425
+ current: item.isLoading && _vm.isCurrent(index) || item.status && _vm.isCurrent(index),
426
+ 'status-error': _vm.isErrorStatus(item),
427
+ 'status-done': _vm.isDoneStatus(item),
428
+ 'status-loading': _vm.isLoadingStatus(item),
429
+ 'status-default': _vm.isDefaultStatus(item)
265
430
  },
266
431
  style: {
267
432
  cursor: _vm.controllables ? 'pointer' : ''
@@ -271,27 +436,33 @@
271
436
  _vm.toggle(item, index);
272
437
  }
273
438
  }
274
- }, [_vm._v("\n " + _vm._s(item[_vm.displayKey]) + "\n "), item.isLoading && index === _vm.curProcess - 1 ? _c('div', {
275
- staticClass: "bk-spin-loading bk-spin-loading-mini bk-spin-loading-white"
276
439
  }, [_c('div', {
277
- staticClass: "rotate rotate1"
278
- }), _c('div', {
279
- staticClass: "rotate rotate2"
280
- }), _c('div', {
281
- staticClass: "rotate rotate3"
282
- }), _c('div', {
283
- staticClass: "rotate rotate4"
284
- }), _c('div', {
285
- staticClass: "rotate rotate5"
286
- }), _c('div', {
287
- staticClass: "rotate rotate6"
288
- }), _c('div', {
289
- staticClass: "rotate rotate7"
290
- }), _c('div', {
291
- staticClass: "rotate rotate8"
292
- })]) : _c('i', {
293
- staticClass: "bk-icon icon-check-1"
294
- }), _c('dl', {
440
+ staticClass: "bk-process-item",
441
+ style: {
442
+ cursor: _vm.hasStepChangeEvent ? 'pointer' : ''
443
+ },
444
+ on: {
445
+ "click": function click($event) {
446
+ _vm.toggleStepItem(item, null, index);
447
+ }
448
+ }
449
+ }, [_vm._v("\n " + _vm._s(item[_vm.displayKey]) + "\n "), item.status ? [_vm.isBuiltinIcon(item.statusIcon) ? _c('i', {
450
+ class: ['bk-icon', "icon-" + item.statusIcon]
451
+ }) : _vm.isLoadingStatus(item) ? _c('spin-loading', {
452
+ attrs: {
453
+ "theme-class": "bk-spin-loading-white"
454
+ }
455
+ }) : _vm.isErrorStatus(item) ? _c('i', {
456
+ staticClass: "bk-icon icon-close-circle"
457
+ }) : _vm.isDoneStatus(item) ? _c('i', {
458
+ staticClass: "bk-icon icon-check-circle"
459
+ }) : _vm._e()] : [item.isLoading && _vm.isCurrent(index) ? _c('spin-loading', {
460
+ attrs: {
461
+ "theme-class": "bk-spin-loading-white"
462
+ }
463
+ }) : item.status !== false ? _c('i', {
464
+ staticClass: "bk-icon icon-check-circle"
465
+ }) : _vm._e()]], 2), _c('dl', {
295
466
  directives: [{
296
467
  name: "show",
297
468
  rawName: "v-show",
@@ -303,28 +474,39 @@
303
474
  staticClass: "bk-process-step"
304
475
  }, _vm._l(item.steps, function (step, stepIndex) {
305
476
  return _c('dd', {
306
- key: stepIndex
307
- }, [_vm._v("\n " + _vm._s(step[_vm.displayKey]) + "\n "), step.isLoading && index === _vm.curProcess - 1 ? _c('div', {
308
- staticClass: "bk-spin-loading bk-spin-loading-mini bk-spin-loading-primary steps-loading"
309
- }, [_c('div', {
310
- staticClass: "rotate rotate1"
311
- }), _c('div', {
312
- staticClass: "rotate rotate2"
313
- }), _c('div', {
314
- staticClass: "rotate rotate3"
315
- }), _c('div', {
316
- staticClass: "rotate rotate4"
317
- }), _c('div', {
318
- staticClass: "rotate rotate5"
319
- }), _c('div', {
320
- staticClass: "rotate rotate6"
321
- }), _c('div', {
322
- staticClass: "rotate rotate7"
323
- }), _c('div', {
324
- staticClass: "rotate rotate8"
325
- })]) : _c('i', {
477
+ key: stepIndex,
478
+ class: ['step-item', {
479
+ done: _vm.isDoneStatus(step),
480
+ error: _vm.isErrorStatus(step),
481
+ loading: _vm.isLoadingStatus(item)
482
+ }],
483
+ style: {
484
+ cursor: _vm.hasStepChangeEvent ? 'pointer' : ''
485
+ },
486
+ on: {
487
+ "click": function click($event) {
488
+ _vm.toggleStepItem(step, stepIndex, index);
489
+ }
490
+ }
491
+ }, [_vm.isVNode(step[_vm.displayKey]) ? _c('v-node-content', {
492
+ attrs: {
493
+ "content": step[_vm.displayKey]
494
+ }
495
+ }, [_c('step-status-icon', {
496
+ attrs: {
497
+ "icon": _vm.getStepStatusIcon(step)
498
+ }
499
+ })], 1) : [_vm._v("\n " + _vm._s(step[_vm.displayKey]) + "\n "), step.status ? _c('step-status-icon', {
500
+ attrs: {
501
+ "icon": _vm.getStepStatusIcon(step)
502
+ }
503
+ }) : [step.isLoading && _vm.isCurrent(index) ? _c('spin-loading', {
504
+ attrs: {
505
+ "theme-class": "bk-spin-loading-primary steps-loading"
506
+ }
507
+ }) : step.status !== false ? _c('i', {
326
508
  staticClass: "bk-icon icon-check-1"
327
- })]);
509
+ }) : _vm._e()]]], 2);
328
510
  }), 0)]);
329
511
  }), 0), _vm.toggleFlag ? _c('a', {
330
512
  staticClass: "bk-process-toggle",
@@ -531,10 +713,10 @@
531
713
  return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
532
714
  });
533
715
 
534
- var document = _global.document;
535
- var is = _isObject(document) && _isObject(document.createElement);
716
+ var document$1 = _global.document;
717
+ var is = _isObject(document$1) && _isObject(document$1.createElement);
536
718
  var _domCreate = function (it) {
537
- return is ? document.createElement(it) : {};
719
+ return is ? document$1.createElement(it) : {};
538
720
  };
539
721
 
540
722
  var _ie8DomDefine = !_descriptors && !_fails(function () {