1.0.11 • Published 1 year ago

sacle-box v1.0.11

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

sacle-box

属性注释默认属性类型
height高度1080number
width宽度1920number

默认适配比例

1920:1080

使用方式

有问题提 issues

vue3

    // 局部引入
    import { SacleBox } from 'sacle-box'
    import 'sacle-box/style.css'
    // 全局引入
    import SacleBox from 'sacle-box'
    import 'sacle-box/style.css';
    app.use(SacleBox);


    <div>
        <SacleBox>
            <div class='container'></div>
         </SacleBox>
    </div>
    

    // 注:由于没有单独开发typeScript类型,全局注册组件后组件类型提示为any
    // 解决办法:在vue-shim.d.ts中添加
    declare module '@vue/runtime-core' {
        export interface GlobalComponents {
            SacleBox: typeof import('sacle-box')['SacleBox'],
        }
    }
1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago