|
2 년 전 | |
---|---|---|
.. | ||
basicsetting | 2 년 전 | |
demo | 2 년 전 | |
paysetting | 2 년 전 | |
public | 2 년 전 | |
refer | 2 년 전 | |
reportquery | 2 년 전 | |
wapayment | 2 년 전 | |
.gitignore | 2 년 전 | |
README.md | 2 년 전 | |
push.sh | 2 년 전 |
wapayment
refer
public
###开发注意点: 1、由于列表和卡片同时加载,卡片状态如果是display:none的时候不会加载样式渲染。所以初始写createForm的时候,给外层加上
<div style={{height: this.state.showMode == 'card' ? 'auto' : '0', overflow: this.state.showMode == 'card' ? '': 'hidden'}}
2、空图片的加载 尽可能的给最外层定义高度; 当前页面的高度需要通过计算实现,否则数据很少时,下方会有留白。并且加上nc公共类(白色背景)具体实现:
1、定义state: pageHeight
2、在componentDidMount中:
let height = document.documentElement.clientHeight;
this.setState({pageHeight: height - 18});
3、在render中,绑定style={{height: this.state.pageHeight}}
例如:<div className="period-list nc-single-table" style={{height: this.state.pageHeight}}>
3 列表页面的分页在有数据的时候,都是显示的,并不是>10显示 所有的模态框不允许点击背景关闭,所以设置modalDropup: true,backdrop: 'static'//是否弹出遮罩层/点击遮罩层是否触发关闭事件 ``` 4:公共参照的使用: ·注意事项1之前传参没放在param里面的,需要放到param。比如下面这样;其他的没什么影响。 ·注意事项2:页面中用到组织的地方。要用公共组件,因为这本来就是一个公共的东西,以后需要改什么都好改一些。使用方式:import OrgRefer from '../../../../hrpub/common/components/referSearch/org'; 5:获取groupId
1:import { getBusinessInfo } from 'nc-lightapp-front'
2:在componentDidMountd中: this.businessInfo = getBusinessInfo() || {groupId: '0001HR100000000005M3'}
3:在使用的地方:this.businessInfo.groupId;(注意this指向)