New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

metro-comp

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metro-comp

内部组件库, 使用 styled-components

latest
npmnpm
Version
2.1.2
Version published
Maintainers
1
Created
Source

metro

内部组件库, 使用 styled-components

已拥有组件

  • ModalForm

  • SearchFrom

  • StandardTable

  • Editable

  • YearPicker

  • ImgUpload

使用

  • 方法一: 使用 yarn / npm

        yarn add metro-comp -D
    
        import { SeachFrom } from 'metro-comp'
    
  • 方法二: 复制粘贴到自己项目的 src/components 下, 此方法可以满足你对组件的定制化需求, 间接的放弃了 npm 包的版本更新功能

        ctrl + c
        ctrl + v
    
  • 方法三: 安装 metro 后通过 metro 的可执行命令将对应的组件注入到 src/components。 该方法兼容了更新与定制,目前还在开发中。。。

按需加载

  • 使用 babel-plugin-import

        // .babelrc or babel-loader option
        {
            "plugins": [
                ["import", {
                    "libraryName": "metro-comp",
                    "style": true
                }]
            ]
        }
    

关于组件文档

文档和用例是一份庞大而精细的工作,由于个人精力有限并且还面临着项目压力, 这部分暂时为null。可以先通过 typescript 提供的接口文件查询组件的 api 。另外,欢迎👏各位在空闲至于加入到该项目的开发与维护当中。

TODO

  • 文档用例

  • 完整的测试体系

LICENSE

MIT

FAQs

Package last updated on 08 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts