xl-react-web
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Wxl

Version 版本

  • 稳定版:
  • 开发版:

Install 安装

使用npm安装:

npm install wxl --save

或者通过cdn引入umd模块:

<link rel="stylesheet" href="https://test.com/wxl.css">
<script type="text/javascript" src="https://test.com/wxl.min.js"></script>

Usage 使用

全组件引入

import { Button, Cell } from 'wxl';
import 'wxl/dist/wxl.min.css';

按需加载

  • 方法一(推荐)

使用 babel-plugin-import 自动加载Sass文件

  // .babelrc or babel-loader option
  {
    "plugins": [
      ['import', {
        libraryName: 'wxl',
        style: true,
      }],
    ]
  }
import { Button, Cell } from 'wxl';
  • 方法二:
import Button from 'wxl/lib/Button';
import 'wxl/lib/Button/style';

定制主题

通过修改css变量定义达到定制主题的效果

document.documentElement.style.setProperty('--theme-primary', '#108ee9');

变量名可参考 default.scss

Changelog 更新日志

CHANGELOG.md

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i xl-react-web

Weekly Downloads

3

Version

1.0.2

License

ISC

Unpacked Size

14.8 MB

Total Files

259

Last publish

Collaborators

  • longfei_594188