-
The option of select cannot be rendered by callback.
use list as the option data source for Select, but use callback, which cannot be rendered. Just call it directly, as shown in the figure below. The first method is fine, and the second is not. Because there are many Select, on a page, you need to use th...
-
Antd uses complex dynamic forms. Times error.
The structure of the data is like this, and you need to use this to generate a form like this
{
name: ,
groups: [
{
groupName: ,
state: 1, 1 0
isOpen: 1, 1 0
...
-
How does ant-design-pro get permission information asynchronously from the background?
the initial permissions in ant-design-pro are obtained from Synchronize in localstorage (. src utils authority.js). The permission information obtained is used to determine the jump of the page (whether to jump to the login page). I want to obtain perm...
-
When using antd+react, if the value of setState is a deep copy, it will render immediately, otherwise it will not.
when looking at the official instance of antd, if you see that the value of the setState method is a first-level deep copy of the original state, it will render immediately (I don t know if it means a deep copy here)
see the asynchronous loading inst...
-
About the problem of Select selector antd
thousands of pieces of data returned by the background interface are put in the Select. Users select a certain piece of data and find it very stuttered. Is there any way to solve it ?
this is the official demo of antd
const { Select } = antd;
const Op...
-
Click the button in the react parent component, and the child component passes data to it.
question: the antd, used defines a model component and a form component. The form component is a child component of the model component. In the parent component app, use the component model, to get the form data of the child component when you want t...
-
Does the official website of ant.design seem to be GG?
https: ant.design can anyone open it? Several of my colleagues said that I could not open ....
-
There are two requests for antd upload to upload a file. How should the backend write to get the file?
use multipart form-data for the first time No Content the second time
before, I also thought it was caused by the component. The back end said that Access-Control-Allow-Headers is not the default request, so the request is not a simple request, like ...
-
How does antd make the floating cells of a table highly adaptive
the column of operation on the right is floating
then there may be additions and deletions to the columns here, which will change the height of the table row, but the height of the floating column on the right is fixed, which makes it ugly .
...
-
After react+antd introduced moment, the DatePicker display appeared in English.
LocaleProviderdemomoment
:
...
-
After installing antd through cnpm install antd-- save, introduce the antd component into react to report an error?
...
-
Antd-mobile ListView is used with TabBar components and does not load
I want to use ListView with TabBar. the demo, on the official website shows that ListView cannot be loaded. after testing, it is found that it should be caused by the outermost , and the outermost is for tabbar to be placed at the front end of b...
-
How to deal with URLSearchParams compatibility?
the following code:
var params = new URLSearchParams();
params.append( kssj , kssj);
params.append( jssj ,jssj);
axios.post( api php history carList.json ,params).then((res)=>{...}
all the demo I write uses URLSearchPara...
-
Antd react router navigation changes to the appropriate page option as the page jumps to the menu bar
use antd component react frame single page router my page column jumps want to achieve the left menu bar navigation index also changes to the corresponding page options, how do you achieve this function! Just give me some ideas picture description ...
-
How to call the server interface to set the proxy by ant design pro
I disabled mock .webpackrcproxy
using the ant design pro framework. I set up a proxy but it doesn t work well, and I can t request the interface in the background all the time
...
-
Why does adding ref to the Input component of Antd design report an error?
in the modification function, get record and put it in form when you click on a record, and then click OK after modification. I want to get the value of each Input through this.refs.refName.value, but I find that as long as I add refs to the Input compo...
-
Select all is easy to use, but the separate checkbox is not easy to use, so it can't be ticked.
import React from react ; import {Link} from dva router import {Menu, Icon, Avatar, Layout, Breadcrumb, Button, notification, Select, Pagination, Checkbox, Input} from antd ; import logo from . css App.css ; import ayjs from . css a...
-
Ant design pro page componentDidMount requests data. The request is successful at the beginning, and will be automatically reported to 401 after a while.
after a successful login, dispatch sends a request in componentDidMount. At first, the request is successful, but after a while, the request automatically fails, reporting an error of 401, but it is good to log in again.
...
-
The form component of Antd cannot be reset to display the value of a record correctly
as shown in the figure: when each record is clicked to edit, the form displays the corresponding record value. My practice is to click to edit the record to obtain the record and store it in state.formData. How to pass state.formData as a props paramete...
-
Antd-mobile is directly introduced into ordinary html files.
followed by the previous question, if the introduction of React+antd, in an ordinary html page has been typed, the code below will work normally.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name=...