@sl-theia/full-screen
v1.1.1
Published
full-screen
Downloads
9
Readme
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 })