shadow-ui-taro
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

shadow-ui-taro

shadow-ui-taro 是基于 taro 及 react 开发的组件库。

npm npm downloads npm license npm bundle size npm type definitions

Installation / 安装

npm

npm install shadow-ui-taro --save

yarn

yarn add shadow-ui-taro

Use / 使用

import { BottomModal, Modal, isToday, isEmpty, useLoadMore, ... } from "shadow-ui-taro";
import "shadow-ui-taro/dist/esm/style.css";

Config / 配置

import { globalConfig } from "shadow-ui-taro";
// 完成配置后将冻结配置,无法修改,请在入口文件初始化一次即可
globalConfig({
    request:{
        ...
    },
    middleware:{
        ...
    }
})

globalConfig 全局配置

Property Type Default Description
log boolean false 配置日志显示
request object {} 网络请求配置
middleware object {} 中间件配置

网络请求配置

Property Type Default Description
baseUrl string '' 基础请求地址
header object {} 请求头
timeout number 300000 请求超时时间 (毫秒)
bearerToken boolean false token 是否添加 bearer 前缀

中间件配置

Property Type Default Description
userAuth object {filterKey : {phone: "mobilePhone",info: "name" }} 用户权限验证

Readme

Keywords

none

Package Sidebar

Install

npm i shadow-ui-taro

Weekly Downloads

1

Version

2.0.2

License

MIT

Unpacked Size

266 kB

Total Files

63

Last publish

Collaborators

  • damonzhang