Skip to content

Commit 36be108

Browse files
dpp0507007insummer
authored andcommitted
fix:修复status-show组件custom的使用方式(#619) (#628)
1 parent bfdce34 commit 36be108

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

dist/status-show/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ Component({
2525
openApi: {
2626
type: Boolean,
2727
value: true
28+
},
29+
custom: {
30+
type: Boolean,
31+
value: false
2832
}
2933
},
3034

@@ -77,7 +81,7 @@ Component({
7781
});
7882
};
7983
},
80-
84+
8185
_changeStatus() {
8286
switch (this.properties.type) {
8387
case 'success':
@@ -138,4 +142,4 @@ Component({
138142
});
139143
}
140144
}
141-
});
145+
});

examples/dist/status-show/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ Component({
2525
openApi: {
2626
type: Boolean,
2727
value: true
28+
},
29+
custom: {
30+
type: Boolean,
31+
value: false
2832
}
2933
},
3034

@@ -77,7 +81,7 @@ Component({
7781
});
7882
};
7983
},
80-
84+
8185
_changeStatus() {
8286
switch (this.properties.type) {
8387
case 'success':
@@ -138,4 +142,4 @@ Component({
138142
});
139143
}
140144
}
141-
});
145+
});

src/status-show/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ Component({
2525
openApi: {
2626
type: Boolean,
2727
value: true
28+
},
29+
custom: {
30+
type: Boolean,
31+
value: false
2832
}
2933
},
3034

@@ -77,7 +81,7 @@ Component({
7781
});
7882
};
7983
},
80-
84+
8185
_changeStatus() {
8286
switch (this.properties.type) {
8387
case 'success':
@@ -138,4 +142,4 @@ Component({
138142
});
139143
}
140144
}
141-
});
145+
});

0 commit comments

Comments
 (0)