sherlock-mind

1.6.75 • Public • Published

rnsherlock

一、简介

链尚网React-Native 三端组件库

二、安装

npm install sherlock-mind --save

三、用例

import {Modal} from 'sherlock-mind';

四、使用配置:

.babelrc:

安装: npm install babel-plugin-import --save-dev
    //修改.babelrc
    {
        "presets": ["react-native"],
        "plugins": [
            ["import", [{ "libraryName": "sherlock-mind" }]]
        ]
    }

Web端Webpack打包配置:

    const postcssOpts = {
        ident: 'postcss',
        plugins: () => [
            autoprefixer({
            browsers: ['last 2 versions', 'Firefox ESR', '> 1%', 'ie >= 8', 'iOS >= 8', 'Android >= 4'],
            }),
            pxtorem({ rootValue: 100, propWhiteList: [] })
        ]
    };
 
    {
        module: {
        loaders: [
            {
                test: /\.(svg)$/i,
                loader: 'web-svg-sprite-loader',
                include: [
                    require.resolve('antd-mobile').replace(/warn\.js$/, ''),
                    //其他目录 
                ]
            },
            {
                test: /\.css$/i,
                use: ExtractTextPlugin.extract({
                    fallback: 'style-loader',
                    use: [
                    'css-loader', { loader: 'postcss-loader', options: postcssOpts }
                    ]
                })
            }
        ]
        },
        plugins: [
        new ExtractTextPlugin({ filename: '[name].css', allChunks: true }),
        ]
    }
 

五、组件

Base (sherlock)

FyIcon (sherlock)

Dynamic (sherlock)

TextInput (sherlock)

Form (sherlock)

Accordion (antd-mobile)

ActionSheet (antd-mobile)

ActivityIndicator (antd-mobile)

Badge (antd-mobile)

Button (antd-mobile)

Card (antd-mobile)

Carousel (antd-mobile)

Checkbox (antd-mobile)

CreateTooltip (antd-mobile)

DatePicker (antd-mobile)

Drawer (antd-mobile)

Flex (antd-mobile)

Grid (antd-mobile)

Icon (antd-mobile)

ImagePicker (antd-mobile)

InputItem (antd-mobile)

List (antd-mobile)

ListView (antd-mobile)

LocaleProvider (antd-mobile)

Menu (antd-mobile)

Modal (antd-mobile)

NavBar (antd-mobile)

NoticeBar (antd-mobile)

Pagination (antd-mobile)

Picker (antd-mobile)

PickerView (antd-mobile)

Popover (antd-mobile)

Popup (antd-mobile)

Progress (antd-mobile)

Radio (antd-mobile)

Range (antd-mobile)

RefreshControl (antd-mobile)

Result (antd-mobile)

SearchBar (antd-mobile)

SegmentedControl (antd-mobile)

Slider (antd-mobile)

Stepper (antd-mobile)

Steps (antd-mobile)

SwipeAction (antd-mobile)

Switch (antd-mobile)

TabBar (antd-mobile)

Table (antd-mobile)

Tabs (antd-mobile)

Tag (antd-mobile)

Text (antd-mobile)

TextareaItem (antd-mobile)

Toast (antd-mobile)

View (antd-mobile)

WhiteSpace (antd-mobile)

WingBlank (antd-mobile)

六、开源许可

基于 MIT License 开源,使用代码只需说明来源,或者引用 license.txt 即可。

Package Sidebar

Install

npm i sherlock-mind

Weekly Downloads

2

Version

1.6.75

License

MIT

Last publish

Collaborators

  • beven