@@ -41,42 +41,106 @@ export class JigsawStepItem extends AbstractJigsawComponent implements OnInit {
4141 *
4242 * $demo = steps/custom-icons
4343 */
44- @Input ( ) public waitingIcon : string = 'fa-file-text-o' ;
44+ private _waitingIcon : string = 'fa-file-text-o' ;
45+ @Input ( )
46+ public get waitingIcon ( ) : string {
47+ return this . _waitingIcon ;
48+ }
49+
50+ public set waitingIcon ( value : string ) {
51+ if ( value && value != this . _waitingIcon ) {
52+ this . _waitingIcon = value ;
53+ }
54+ }
4555
4656 /**
4757 * 设置`done`状态的图标,仅支持font-awesome和Jigsaw自研的iconfont图标
4858 *
4959 * $demo = steps/custom-icons
5060 */
51- @Input ( ) public doneIcon : string = 'fa-check-square-o' ;
61+
62+ private _doneIcon : string = 'fa-check-square-o' ;
63+ @Input ( )
64+ public get doneIcon ( ) : string {
65+ return this . _doneIcon ;
66+ }
67+
68+ public set doneIcon ( value : string ) {
69+ if ( value && value != this . _doneIcon ) {
70+ this . _doneIcon = value ;
71+ }
72+ }
5273
5374 /**
5475 * 设置`processing`状态的图标,仅支持font-awesome和Jigsaw自研的iconfont图标
5576 *
5677 * $demo = steps/custom-icons
5778 */
58- @Input ( ) public processingIcon : string = 'fa-cog fa-spin fa-2x fa-fw' ;
79+
80+ private _processingIcon : string = 'fa-cog fa-spin fa-2x fa-fw' ;
81+ @Input ( )
82+ public get processingIcon ( ) : string {
83+ return this . _processingIcon ;
84+ }
85+
86+ public set processingIcon ( value : string ) {
87+ if ( value && value != this . _processingIcon ) {
88+ this . _processingIcon = value ;
89+ }
90+ }
5991
6092 /**
6193 * 设置`error`状态的图标,仅支持font-awesome和Jigsaw自研的iconfont图标
6294 *
6395 * $demo = steps/custom-icons
6496 */
65- @Input ( ) public errorIcon : string = 'fa-times' ;
97+
98+ private _errorIcon : string = 'fa-times' ;
99+ @Input ( )
100+ public get errorIcon ( ) : string {
101+ return this . _errorIcon ;
102+ }
103+
104+ public set errorIcon ( value : string ) {
105+ if ( value && value != this . _errorIcon ) {
106+ this . _errorIcon = value ;
107+ }
108+ }
66109
67110 /**
68111 * 设置`skipped`状态的图标,仅支持font-awesome和Jigsaw自研的iconfont图标
69112 *
70113 * $demo = steps/custom-icons
71114 */
72- @Input ( ) public skippedIcon : string = 'fa-ban' ;
115+
116+ private _skippedIcon : string = 'fa-ban' ;
117+ @Input ( )
118+ public get skippedIcon ( ) : string {
119+ return this . _waitingIcon ;
120+ }
121+
122+ public set skippedIcon ( value : string ) {
123+ if ( value && value != this . _skippedIcon ) {
124+ this . _skippedIcon = value ;
125+ }
126+ }
73127
74128 /**
75129 * 设置`warning`状态的图标,仅支持font-awesome和Jigsaw自研的iconfont图标
76130 *
77131 * $demo = steps/custom-icons
78132 */
79- @Input ( ) public warningIcon : string = 'fa-exclamation-triangle' ;
133+ private _warningIcon : string = 'fa-exclamation-triangle' ;
134+ @Input ( )
135+ public get warningIcon ( ) : string {
136+ return this . _warningIcon ;
137+ }
138+
139+ public set warningIcon ( value : string ) {
140+ if ( value && value != this . _warningIcon ) {
141+ this . _warningIcon = value ;
142+ }
143+ }
80144
81145 /**
82146 * @internal
0 commit comments