test-formily
v1.1.0
Published
Made with create-react-library
Downloads
1
Readme
test-formily
Made with create-react-library
Install
npm install --save test-formily
Usage
import React, { Component } from 'react'
import MyComponent from 'test-formily'
import 'test-formily/dist/index.css'
class Example extends Component {
render() {
return <MyComponent />
}
}
License
项目启动
需两个窗口分别执行以下命令 npm start # runs rollup with watch flag 进入examle文件 npm start # runs create-react-app dev server
项目发布
1.package.json递增变更版本号
2.执行npm publish
3.查看https://www.npmjs.com/package/test-formily
4.其他项目引用
yarn add test-formily
<!-- formily.jsx文件新增引入 -->
import CommDom from "@/pages/formily/pages/components/commDom"
import Nocodejs from "@/pages/formily/pages/components/nocodejs"
import Barcode from "./components/barcode"
useWindowOpen(schemaAction)
const { initialState = {}, setInitialState } = useModel("@@initialState")
uploadFile(util) hs_uploadFile
bug解决 'ColorPicker' is not exported from 'antd' (imported as 'ColorPickerV5'). "devDependencies" 新增依赖 "@ant-design/pro-cli": "^2.0.2",
jsx文件引入React import React from "react"
有使用<></>的改为
microbundle配置改变@的指向 @=%INIT_CWD%/src
package.json文件新增配置:cjs --css-modules false "build": "microbundle-crl --no-compress --format modern,cjs --alias @=%INIT_CWD%/src,cjs --css-modules false", "start": "microbundle-crl watch --no-compress --format modern,cjs --alias @=%INIT_CWD%/src,cjs --css-modules false"