1.1.1 • Published 3 years ago

@sl-theia/full-screen v1.1.1

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

fullScreen

根据 style mode 用于缩放屏幕比例

安装

npm install @sl-theia/full-screen

或者使用 yarn

yarn install @sl-theia/full-screen

基本用法

import React from "react";
import fullScreen from "@sl-theia/full-screen";
const style = {
  width: 1960,
  height: 1080,
};
export default fullScreen({ style })(() => <div>testPage</div>);

Props

setStyle

重新设置style, 会进行重新计算缩放比例

setSyle({ width: 800, height: 600 })
1.1.1

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago