1.0.6 • Published 2 years ago

bo-taro-ui v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

bo-taro-ui

前端 对接 taro 的小程序UI库 基于react语法

文件结构

- config  打包配置
- dist    打包后的文件
- lib     ts转译后的js
- src/                  
  - common              公用函数
    - utils.ts
  - components          组件
  - style               样式
    - components        组件样式
    - mixins            scss混入
    - variables         scss变量
    - index.scss        入口
  - index.ts            入口
- types/                类型定义文件
  - components
  - index.d.ts          入口

开发

需要npm link 到项目中进行开发,后期尝试将demo放到库中

# 本地开发
yarn dev:watch

# 打包
yarn build

# ts 代码检测
yarn lint

yarn lint:fix

# scss 代码检测
yarn lint:style

lint:style-fix

# 清除打包文件
yarn clean

# 包分析
yarn test:analyze

# 使用igc-lib函数库时,要用require引用
require('@igc-lib/mp-wx-utils')

使用

# 引入单个组件的样式文件
@import "~bo-taro-ui/dist/style/components/${文件名称}.scss";

# 引入全部组件的样式文件
@import "~bo-taro-ui/dist/style/index.scss";

# 引入组件
import { AddApplet } from bo-taro-ui'
1.0.2

2 years ago

1.0.1

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.0

3 years ago