Merge pull request #286 from 2betop/master

修复 form>service schema 更新,ui不更新的问题
This commit is contained in:
liaoxuezhi 2019-10-16 13:11:25 +08:00 committed by GitHub
commit 9577d53bfc
4 changed files with 6 additions and 2 deletions

View File

@ -53,7 +53,7 @@
"rc-input-number": "4.4.5",
"react": "^16.8.6",
"react-addons-update": "15.6.2",
"react-overlays": "^0.8.3",
"react-overlays": "0.8.3",
"react-color": "2.13.8",
"react-cropper": "1.0.0",
"react-date-range": "0.9.4",

View File

@ -37,11 +37,13 @@ import {default as ToastComponent, toast} from './Toast';
import Tooltip from './Tooltip';
import TooltipWrapper from './TooltipWrapper';
import Tree from './Tree';
import Alert2 from './Alert2';
export {
NotFound,
Alert as AlertComponent,
alert,
Alert2,
confirm,
AsideNav,
Button,

View File

@ -19,6 +19,7 @@ import {
NotFound,
AlertComponent,
alert,
Alert2,
confirm,
AsideNav,
Button,
@ -184,6 +185,7 @@ export {
NotFound,
AlertComponent,
alert,
Alert2,
confirm,
AsideNav,
Button,

View File

@ -54,7 +54,7 @@ export class ServiceRenderer extends BasicService {
renderFormItems
) {
return (
<div className={cx(`Form--${formMode || 'normal'}`)}>
<div key={store.schemaKey || 'forms'} className={cx(`Form--${formMode || 'normal'}`)}>
{renderFormItems(finnalSchema, 'controls', {
store,
data: store.data,