...
- Table: setDataSource,OC.updateDataSource
- Form: setFieldsValue,OC.updateDataSource
- FormItem 组件(表单组件),大部分组件有 setValue 方法,有些没有此方法,但是肯定有对应的能赋值的方法,具体可查看文档。
- MListView: setDataSource,OC.updateDataSource
从组件取值
- Table: getDataSource,OC.getDataSource
- Form: getFieldsValue,OC.getDataSource
- FormItem 组件(表单组件),大部分组件都有 getValue 方法,有些没有此方法,但是肯定有对应的能取值的方法,具体可查看文档。
- MListView: getFieldsValue,OC.getDataSource
获取上下文
- ocWindow.getContexts 弹框或者被引用的窗口,获取上下文,请使用此方法。
- OC.getWindowContexts
...
- ocWindow.modalRef.closeModal()
返回上一页
- OC.goBackgoBack()
设置组件是否可见
- setVisible
工具方法
- OC.getMoment 获取一个时间值的 moment 对象
- OC.getUUID 获取一个 uuid 字符串
- OC.showGlobalLoading/OC.hideGlobalLoading 打开/关闭全局的 request loading 效果。
- OC.closeGlobalRequestMsg/OC.openGlobalRequestMsg 关闭/打开全局的 request msg 效果。
- OC.closeGlobalRequestLoading/OC.openGlobalRequestLoading 关闭/打开全局的 request loading 效果。
常用事件(events)
常用 Actions
- jsAction ---- jsAction 执行 OC.save 时,请不要忘记,如果有必填项,请先校验 ,使用 formInstance.triggerValidationWhenSubmit();
- query
- getOne
- save
- delete
- back
- reset
...