ssc-formula2
v0.2.3
Published
A formula component built with React
Downloads
5
Readme
ssc-formula2
An formula editor for the Yonyou.
Live Playground
For examples of the formula in action, go to https://yyssc.github.io/ssc-formula2.
OR
To run that demo on your own computer:
- Clone this repository
npm install
npm run storybook
- Visit http://localhost:9001/
Getting Started
Install dependencies
Ensure packages are installed with correct version numbers by running:
(
export PKG=ssc-formula2;
npm info "$PKG" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g; s/ *//g' | xargs npm install --save "$PKG"
)
Which produces and runs a command like:
npm install --save ssc-formula2 moment@>=#.## react@>=#.## react-dom@>=#.## ssc-refer@>=#.## rc-tree@>=#.##
Include component
import { Formula } from 'ssc-formula2';
Include styles
import 'rc-tree/assets/index.css';
组件结构
- Formula
- TextBox
- FormulaTabs
- 单据字段Tab
- SearchBox
- FormulaTree
- 固定值Tab
- [Refers]
- 档案转换Tab
- 单据字段Tab