@21epub/epub-custom-label 中文文档教程
@21epub/epub-custom-label
Install
npm install --save @21epub/epub-custom-label
Usage
import React from 'react'
import {Form} from 'antd'
import Filters from '@21epub/epub-custom-label'
function App() {
const [form] = Form.useForm()
return <Filters app='material' form={form} onFinish={values => console.log(values)} />
}
Developing and running on localhost
First install dependencies and then install peerDeps for storybook dev:
npm install
npm run install-peers
To run Example in hot module reloading mode:
npm start # or npm run storybook
To create a bundle library module build:
npm run build
Testing
To run unit tests:
npm test
本地安装
npm run build
npm pack # 这一步会生成一个tarball
cd path/to/your/project
npm i <tarball的路径>