Skip to content
An formula editor for the Yonyou.
JavaScript CSS Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.storybook
css
public
src
stories
test
.babelrc
.editorconfig
.eslintignore
.eslintrc
.gitignore
.lgtm
.npmignore
.npmrc
.nycrc
.travis.yml
CHANGELOG.md
INTHEWILD.md
LICENSE
MAINTAINERS
MAINTAINING.md
README.md
constants.js
index.js
install-relevant-react.sh
karma.conf.js
package.json
ssc-formula2-demo.gif
webpack.config.js

README.md

ssc-formula2 Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

An formula editor for the Yonyou.

ssc-formula2 in action

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:

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
You can’t perform that action at this time.