2.0.4 • Published 4 years ago

scale-box v2.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

介绍

根据设计稿大小,在不同分辨率下等比例缩放的大屏适配方案

如何使用

安装

    npm install scale-box

    yarn add scale-box

引用

    import ScaleBox from 'scale-box'

使用及示例

    <template>
        <scale-box :width="1920" :height="1080">
        </scale-box>
    </template>

    <script setup>
        import ScaleBox from 'scale-box'
        import 'scale-box/dist/style.css'
    </script>

    <style>
        html,
        body,
        #app {
            width: 100%;
            height: 100%;
        }
    </style>

Slots / 插槽

名称说明默认值
default内容

Attributes / 属性

名称说明默认值
width大屏设计宽度1920
height大屏设计高度1080

Vue 3 + Vite

This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Recommended IDE Setup

2.0.3

4 years ago

2.0.2

4 years ago

2.0.4

4 years ago

2.0.1

4 years ago

1.0.24

4 years ago

2.0.0

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.22

4 years ago

1.0.11

4 years ago

1.0.21

4 years ago

1.0.10

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago