关于
一个可以方便写样式的工具。
#
安装直接用
npm
或者yarn
安装。
- npm
- Yarn
npm install @jswork/styled-box
yarn add @jswork/styled-box
#
配置import View from '@jswork/styled-box';import styled from 'styled-components';
// 默认配置中添加插件Object.assign(View.defaultProps, { styled, plugins: [ require('@jswork/styled-plugin-absolute-center').default, // ... ],});