yzb-comp
v0.1.5
Published
Yonyou Cloud Components built with React
Downloads
14
Readme
yzb-comp
An npm package boilerplate.
Live Playground
For examples of the component in action, go to https://yyssc.github.io/yzb-comp.
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=yzb-comp;
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 yzb-comp react@>=#.## react-dom@>=#.## ssc-refer@>=#.##
Maintaining
First release
- put
0.0.0
inversion
section ofpackage.json
. - run
npm run version:minor
Next release
- run
npm run version:patch
for patch release.
各种参照组件
可以供使用的参照组件都在src/财务平台/components/
目录下。
- 科目表(refCode: accsubjectchart)
AccSubjectChartRefer
科目参照组件SimpleAccSubjectChartRefer
科目参照组件 - 简单
- 科目表(refCode: subjectchart)
SubjectChartRefer
科目参照组件SimpleSubjectChartRefer
科目参照组件 - 简单
- 科目(refCode: accsubject)
AccSubjectRefer
科目参照组件SimpleAccSubjectRefer
科目参照组件 - 简单FilterAccSubjectRefer
科目参照组件 - 两个参照,由科目表来过滤科目
- 科目(refCode: subject)
SimpleSubjectRefer
科目参照组件 - 简单FilterSubjectRefer
科目参照组件 - 两个参照,由科目表来过滤科目
派生关系
- Refers
- ReferList
- BaseSubjectRefer
- SimpleSubjectRefer
- SimpleAccSubjectRefer
- SimpleSubjectChartRefer
- SimpleAccSubjectChartRefer
- BaseSubjectRefer
- ReferList
请不要直接使用Base*Refer
,比如BaseSubjectRefer
,这些是基类。如果想使用默认组件,请直接使用
Simple*Refer
,比如SimpleSubjectRefer
。
组装关系
- FilterSubjectRefer
- SimpleSubjectChartRefer
- SimpleSubjectRefer
- FilterAccSubjectRefer
- SimpleAccSubjectChartRefer
- SimpleAccSubjectRefer