vue中实现模态框弹出框动画(旋转弹出)

<button @click=“togglebox”>点击弹出

<vodal :show=“show” animation=“rotate” @hide=“show = false”>

A vue modal with animations.

效果

在这里插入图片描述

道具 (Props )

| Property | Type | Default | Description |

| — | — | — | — |

| width | number | 400 | width of dialog |

| height | number | 240 | height of dialog |

| measure | string | px | measure of width and height |

| show | bool | false | whether to show dialog |

| mask | bool | true | whether to show mask |

| closeButton | bool | true | whether to show close button |

| closeOnEsc | bool | false | whether close dialog when esc pressed |

| closeOnClickMask | bool | true | whether close dialog when mask clicked |

| animation | string | zoom | animation type |

| duration | number | 300 | animation duration |

| className | string | / | className for the container |

| customStyles | object | / | custom dialog styles |

| customMaskStyles | object | / | custom mask styles |

| 属性 | 类型 | 默认 | 描述 |

| — | — | — | — |

| 宽度 | 数 | 400 | 对话宽度 |

| 高度 | 数 | 240 | 对话高度 |

| 测量 | 串 | 像素 | 宽度和高度的度量 |

| 表演 | 布尔 | 假 | 是否显示对话框 |

| 面具 | 布尔 | 真正 | 是否戴面具 |

| closeButton | 布尔 | 真正 | 是否显示关闭按钮 |

| closeOnEsc | 布尔 | 假 | 按下esc时是否关闭对话框 |

| closeOnClickMask | 布尔 | 真正 | 单击蒙版时是否关闭对话框 |

| 动画 | 串 | 放大 | 动画类型 |

| 持续时间 | 数 | 300 | 动画时长 |

| 班级名称 | 串 | / | 容器的className |

| customStyles | 目的 | / | 自定义对话框样式 |

| customMaskStyles | 目的 | / | 自定义蒙版样式 |

事件 (Event)


| Name | Description |

| — | — |

| hide | triggers when dialog will hide |

| clickMask | triggers when mask clicked |

| 名称 | 描述 |

| — | — |

最后

面试题千万不要死记,一定要自己理解,用自己的方式表达出来,在这里预祝各位成功拿下自己心仪的offer。

大厂面试题

面试题目录

[外链图片转存中…(img-DXTsiFc7-1719229343049)]

[外链图片转存中…(img-mQyHy5M8-1719229343050)]

[外链图片转存中…(img-2843u1p8-1719229343051)]

[外链图片转存中…(img-MkKICqd5-1719229343051)]

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值