@leokun/viewport-core
v0.0.7
Published
pnpm install @leokun/viewport-core
Downloads
19
Readme
安装
pnpm install @leokun/viewport-core
import Viewport { type Detail } from '@leokun/viewport-core';
import "@leokun/viewport-core/dist/style.css"
<Viewport v-model:value="datail" image-host="http://47.98.60.51:8999" width="700px" height="400px" :dpi="2140" >
</Viewport>
props
- is-big-screen {boolean} 是否是大屏,设置为fasle可以接受一个插槽
- datail {Detail} 详情数据,支持双向绑定
- image-host 图片baseurl
- width 宽度 支持vw vh px 等
- height 高度 支持vw vh px 等
- dpi 展示比例,设为2140即可