[improvement] make props less magic (#3775)

This commit is contained in:
neverland
2019-07-08 16:18:19 +08:00
committed by GitHub
parent 642639da6e
commit be96fa2233
55 changed files with 283 additions and 206 deletions
+1 -4
View File
@@ -54,16 +54,13 @@ function Overlay(
Overlay.props = {
show: Boolean,
duration: [Number, String],
className: null as any,
customStyle: null as any,
zIndex: {
type: [Number, String],
default: 1
},
duration: {
type: [Number, String],
default: null
}
};
export default createComponent<OverlayProps, OverlayEvents>(Overlay);