|
| 1 | +import {Component} from "@angular/core"; |
| 2 | + |
| 3 | +@Component({ |
| 4 | + templateUrl:'./demo.component.html' |
| 5 | +}) |
| 6 | +export class StepsCustomIconsComponent { |
| 7 | + steps = [ |
| 8 | + { |
| 9 | + title: 'done', |
| 10 | + status: "done", |
| 11 | + waitingIcon: 'fa-hand-stop-o', |
| 12 | + doneIcon:'fa-hand-peace-o', |
| 13 | + processingIcon:'fa-hourglass fa-spin fa-2x fa-fw', |
| 14 | + errorIcon:'fa-window-close-o', |
| 15 | + warningIcon:'fa-exclamation-circle', |
| 16 | + skippedIcon:'fa-share-square' |
| 17 | + }, |
| 18 | + { |
| 19 | + title: 'error', |
| 20 | + status: "error", |
| 21 | + waitingIcon: 'fa-hand-stop-o', |
| 22 | + doneIcon:'fa-hand-peace-o', |
| 23 | + processingIcon:'fa-hourglass fa-spin fa-2x fa-fw', |
| 24 | + errorIcon:'fa-window-close-o', |
| 25 | + warningIcon:'fa-exclamation-circle', |
| 26 | + skippedIcon:'fa-share-square' |
| 27 | + }, |
| 28 | + { |
| 29 | + title: 'processing', |
| 30 | + status: "processing", |
| 31 | + waitingIcon: 'fa-hand-stop-o', |
| 32 | + doneIcon:'fa-hand-peace-o', |
| 33 | + processingIcon:'fa-hourglass fa-spin fa-fw', |
| 34 | + errorIcon:'fa-window-close-o', |
| 35 | + warningIcon:'fa-exclamation-circle', |
| 36 | + skippedIcon:'fa-share-square' |
| 37 | + }, |
| 38 | + { |
| 39 | + title: 'warning', |
| 40 | + status: "warning", |
| 41 | + waitingIcon: 'fa-hand-stop-o', |
| 42 | + doneIcon:'fa-hand-peace-o', |
| 43 | + processingIcon:'fa-hourglass fa-spin fa-2x fa-fw', |
| 44 | + errorIcon:'fa-window-close-o', |
| 45 | + warningIcon:'fa-exclamation-circle', |
| 46 | + skippedIcon:'fa-share-square' |
| 47 | + }, |
| 48 | + { |
| 49 | + title: 'skipped', |
| 50 | + status: "skipped", |
| 51 | + waitingIcon: 'fa-hand-stop-o', |
| 52 | + doneIcon:'fa-hand-peace-o', |
| 53 | + processingIcon:'fa-hourglass fa-spin fa-2x fa-fw', |
| 54 | + errorIcon:'fa-window-close-o', |
| 55 | + warningIcon:'fa-exclamation-circle', |
| 56 | + skippedIcon:'fa-share-square' |
| 57 | + }, |
| 58 | + { |
| 59 | + title: 'waiting', |
| 60 | + status: "waiting", |
| 61 | + waitingIcon: 'fa-hand-stop-o', |
| 62 | + doneIcon:'fa-hand-peace-o', |
| 63 | + processingIcon:'fa-hourglass fa-spin fa-fw', |
| 64 | + errorIcon:'fa-window-close-o', |
| 65 | + warningIcon:'fa-exclamation-circle', |
| 66 | + skippedIcon:'fa-share-square' |
| 67 | + }, |
| 68 | + ]; |
| 69 | + |
| 70 | + // ==================================================================== |
| 71 | + // ignore the following lines, they are not important to this demo |
| 72 | + // ==================================================================== |
| 73 | + summary: string = '本demo演示了jigsaw-steps组件自定义状态ICON图的方法,注意仅支持font-awesome和Jigsaw自研的iconfont图标'; |
| 74 | + description: string = ''; |
| 75 | +} |
0 commit comments