chore: adjust popupSharedProps

This commit is contained in:
chenjiahan
2020-08-24 10:27:55 +08:00
parent 28f2fe340c
commit 00395f0146
4 changed files with 21 additions and 34 deletions

View File

@@ -8,8 +8,6 @@ export default createComponent({
...popupSharedProps,
color: String,
message: [Number, String],
duration: [Number, String],
teleport: [String, Object],
className: null,
background: String,
type: {
@@ -28,12 +26,12 @@ export default createComponent({
return (
<Popup
show={props.show}
class={[bem([props.type]), props.className]}
style={style}
position="top"
overlay={false}
position="top"
duration={0.2}
lockScroll={false}
class={[bem([props.type]), props.className]}
>
{slots.default?.() || props.message}
</Popup>