1.0.0 • Published 2 years ago

niimbot-design v1.0.0

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

精臣 antd 二次封装组件库 niimbot-design

组件应用请参照antd官方文档 https://ant.design/components/overview/

##file、image为阿里云上传时

传入uploadFn方法,伪代码如下

const uploadFn = async (file, callback) => {
    const { host, status, url, uuid } = (await uploadOSS(file, '0'))
    if (status === 'done') {
        callback([
            {
                uid: uuid,
                status: status,
                url: `${host}${url}`
            }
        ])
    }
}

运行

npm run start

打包

npm run build

发布npm包

###第一次发需登录

npm adduser --registry http://npm.jc-ai.cn/  
npm publish --registry http://npm.jc-ai.cn/