update found a simple solution in the antd TreeNode component. generates a tree directly from the data . The only thing to consider is the data structure, not the problem of recursion. you need to render a menu in the form of a tree graph based on a...
the online solution is export function getAuthority () { return localStorage.getItem ( antd-pro-authority ) | | [ admin , user ]; return localStorage.getItem ( antd-pro-authority ) | | guest ; modify here as guest. } export fu...
the folding panel of 1.antd reports an error after clicking many times, and the sample code of the official website also reports an error. 2. The screenshot below shows the error report on the official website. ...
to make an h5 page, there are several minor problems with using antd-mobile,: 1, some controls do not, such as Select components in antd; form components in antd, need to use manual introduction of rc-form;Icon types are not rich, need to be customize...
problem description some JS appears in my webpack package, although it is not big, but it adds up to become very big. I don t know where these things come from related codes this is the common component of my webpack packaged package.JSON vendor....
back-end developers, who are not very familiar with the front end, now expect to be able to extract a Modal box for reuse. because a Modal is very generic and will appear on many pages, now you want to extract it into a separate js, and introduce it w...
originally clicked to pop up this bubble box, but now I want to double-click or press the pop-up, but I have not found the corresponding API to ask the gods how to achieve this small problem ...
in the antd-pro project that I pulled down directly on git, the default is roadhog, which has already encapsulated webpack with one layer. excuse me: 1. Now I want to separate the development environment from the production environment. What can I do w...
when I want to select, change the background color of the current option, is there any way, the document can only set a uniform background color. I know I can set icons. What I want to ask is background color, background color! ...
how to change its display value dynamically? for example, there is a button for the next day, the previous day, after clicking, you can dynamically change the display date ...
excuse me, jump from page A to page B, pass the value with state, and state will be empty after page B is refreshed. How to solve it? A page pass value code render: (text, record, index) => { const path = { pathname: goods-deta...
problem description ant design ...
problem description description of action of Upload component in antd document: action required parameter, upload address string | (file) = > Promise default value: no Tencent Cloud storage is uploaded by creating a cos instance and calling the putO...
ant-design comes with a tab control, how to switch pages through button, rather than by clicking on the word tab above. ...
my project development environment is antd + dva + umi. When using antd, it is convenient to customize the style by overriding the less variable in the custom theme. But today I found that the Alert component can t easily customize the style (foregrou...
Button was originally set to disabled. What should I do if I want Button to be set to valid ...
what I got from the background is pre-sorted infinite-level classification tree data. I want to show it in the antd tree component. I can t get it out without a solid foundation, so I sincerely ask for advice. pre-sorted infinite-level classification...
how to add a select control to the cells of an editable table with ant-design, and update the state value of the table ...
for example, if the current node is selected, the edit and delete buttons are displayed: ...
for example, the following column of field names is editable. I directly copy the contents of the fields that need to be pasted in batches. Click any field and press ctrl+v to paste down from the current value....
as shown in the figure below, my menu is added with overflow-x: auto, so I can swipe left and right to view the overflow part of the screen. Now, after I use better-scroll, the menu seems to have lost the sense of sliding and cannot slide. How can I sol...
1. Using the laravel framework, and then the port is 8088, in the server test upload is normal, but upload on other computers will report an error, prompting insufficient permissions, I posted the code below, please help. 2 Code Custom in filesystem...
want to zlib compress a string of hexadecimal strings, such as "00FF00 ", and return the same hexadecimal string: test = b 00FF00 print(zlib.compress(test)) the result returns breadx x9c30ps30 x00 x00 x04 x90 x01M , which contains c...
question how are functions in: vue methods forced to bind to an vue instance? var obj = { eventHandle: function (){ thiswindow console.log(this); } }; window.addEventListener("resize", obj.eventHandle, false); <...
problem description define an attribute such as page,pageSize in store to do paging. Then in the component, click the paging callback and call acttion to modify the corresponding page and pageSzie, but undefined appears. related codes store *...