Home > front end >  Ant Design Pro4.0 how to render to the interface data in the table - the list in the template
Ant Design Pro4.0 how to render to the interface data in the table - the list in the template

Time:09-24

Recently in learning antdesignpro this platform, oneself try to modify the page, in the model have been capturing the interface data and passed it on to the Index, but need to do to replace the data interface of the data, the current enclosing props is

CodePudding user response:

Such as your model data and obtain and maintain in the state, this list to get the corresponding condition attribute assignment, you can replace your new to get the data stored in the state of (state) of the data line

CodePudding user response:

Turn the CSDN, saw this post, you will now!

Still, step is to set a variable to receive the data, finally traversal assignment
 
This. State={
StoreList: [],
}


_me. Props. Dispatch ({
Type: 'appStore/getApp',
Content: postJson,
The callback: json=& gt; {
//json=json. Data;
If (json. ErrCode=='20000') {
_me. SetState ({
StoreList: json Data,
})
} else {
Message. The error (json. ErrMsg);
}
}
});


This. State. StoreList. The map ((item, I)=& gt; {
The items. Push (

);
});





CodePudding user response:

Are generally such

Initialize your portions of the index value from the state, and then according to your operation and background operation to get the value of the update specific value

Front end will be updated in the receiving the value of the state and some of your text/input,,,,, take the values in the state

 
The constructor (props) {
Super (props);
This. State={
Mode: 1,
SelectedRowKeys: [],
AddMaterialModelVisible: false,
The resizable: true,
FrameFilePath: "'
};
}

So, for example,
And then update the values in some of the events
 
The back=()=& gt; {
Enclosing setState ({mode: 1});
};

Specific how to use your search have
  • Related