Appearance
PictureInPicture 画中画
主画面上叠一块小窗。小窗可以关掉。
主画面
辅画面
vue
<CkPictureInPicture>
<template #main>主画面</template>
<template #pip>辅画面</template>
</CkPictureInPicture>API
| 属性 | 说明 | 类型 | 默认 |
|---|---|---|---|
| open | 小窗是否显示 | boolean | true |
| position | 小窗位置 | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'bottom-right' |
| width | 小窗宽度 | number | 200 |
| closable | 显示关闭按钮 | boolean | true |
| 插槽 | 说明 |
|---|---|
| main | 主画面 |
| pip | 小窗 |