User interface component automatic generation method, device and computer readable storage medium

Using machine learning to generate UI structural parameter models and parsing component style images, combined with the code base to generate UI component code, it solves the time-consuming and labor-intensive problem of UI component design and development, improves generation efficiency and reduces costs.

CN112685033BActive Publication Date: 2024-09-03BEIJING INSPUR DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011551466.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-24
Publication Date
2024-09-03
Estimated Expiration
2040-12-24

AI Technical Summary

Technical Problem

In the development of storage system software, the diversified design and development of UI components requires a lot of time and energy, resulting in a long development cycle and high costs, and the existing component library cannot meet the growing demand for storage management software.

Method used

The machine learning method is used to generate the UI structural parameter model based on the UI framework sample set training, and the component style image to be generated is parsed, and the corresponding component code is generated based on the pre-built code library to simplify the generation process of UI components.

Benefits of technology

It greatly simplifies the design and R&D process of UI components, improves generation efficiency, reduces R&D costs, and improves product R&D efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112685033B
    Figure CN112685033B
Patent Text Reader

Abstract

The present application discloses a method, device and computer-readable storage medium for automatically generating user interface components. The method includes pre-training a UI structure parameter generation model based on a UI framework sample set using a machine learning method; parsing a component style image to be generated to obtain UI image parameters of the user interface to be generated; inputting the UI image parameters into the UI structure parameter generation model to obtain UI framework structure parameters and interface style data; matching corresponding codes in a pre-built code library according to the UI framework structure parameters and interface style data to generate component codes corresponding to the user interface to be generated. The present application simplifies the generation process of UI components and effectively improves the generation efficiency of UI components.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of storage technology, and in particular to a method and device for automatically generating user interface components and a computer-readable storage medium. Background Art

[0002] In the field of storage system software, management software is an important management platform and is applied to various business scenarios of customers. As a manufacturer, R&D personnel need to develop various UI (User Interface) component codes in the actual development process. UI is also the operating interface of the user software.

[0003] It is understandable that different manufacturers have different public component libraries, and even different component libraries exist within the same company. The UI styles of different products are not the same, and the UI design and code development are relatively more diverse. The demand and functions of storage management software are constantly growing. With the iterative development of software and the increase in functional scenarios, more and more UI components are not included in or do not exist in the component library, which brings great inconvenience to daily development work. In addition, the encapsulation and use of many UI components may only be applicable to the current module and function. If they are applicable to other modules or functions, they need to be redesigned and developed. The design and development of UI components requires a lot of time and effort. If every UI component of the product needs to be redesigned or developed, then the R&D cycle of the entire product will be particularly long, and the R&D cost of the entire product will also be high. Summary of the invention

[0004] The present application provides a method, device and computer-readable storage medium for automatically generating user interface components, which simplifies the generation process of UI components and improves the generation efficiency of UI components.

[0005] To solve the above technical problems, the embodiments of the present invention provide the following technical solutions:

[0006] An embodiment of the present invention provides a method for automatically generating a user interface component, comprising:

[0007] Preliminarily use machine learning methods to train a UI structure parameter generation model based on a UI framework sample set;

[0008] Parse the component style image to be generated and obtain the UI image parameters of the user interface to be generated;

[0009] Inputting the UI image parameters into the UI structure parameter generation model to obtain UI frame structure parameters and interface style data;

[0010] According to the UI framework structure parameters and the interface style data, corresponding codes are matched in a pre-built code library to generate component codes corresponding to the user interface to be generated.

[0011] Optionally, the generating component code corresponding to the to-be-generated user interface includes:

[0012] Generate an editable code model according to the code matched from the code library;

[0013] Outputting the code model to a web page editing window;

[0014] The code model is adjusted according to the received code adjustment instruction, and a user interface generated corresponding to the adjusted code model is displayed to the user.

[0015] Optionally, presenting to the user a user interface generated corresponding to the adjusted code model includes:

[0016] When the code model adjustment end instruction is received, the component code corresponding to the to-be-generated user interface is generated according to the adjusted code model.

[0017] Optionally, before parsing the component style image to be generated to obtain UI image parameters of the user interface to be generated, the method further includes:

[0018] When it is detected that an authorized user logs into the web page, an operation interface is displayed to the authorized user; the operation interface includes a component style image import option and a component code generation option.

[0019] Optionally, the operation interface also includes a code library update option and a UI structure parameter generation model update option.

[0020] Another aspect of the present invention provides a device for automatically generating a user interface component, including:

[0021] The AI ​​module is used to pre-use machine learning methods to train the UI structure parameter generation model based on the UI framework sample set;

[0022] An image parsing module, used to parse the component style image to be generated and obtain UI image parameters of the user interface to be generated;

[0023] An interface parameter generation module, used for inputting the UI image parameters into the UI structure parameter generation model to obtain UI framework structure parameters and interface style data;

[0024] The component code generation module is used to match the corresponding code in the pre-built code library according to the UI framework structure parameters and the interface style data, and generate the component code corresponding to the user interface to be generated.

[0025] Optionally, the component code generation module is further used to:

[0026] Generate an editable code model according to the code matched from the code library;

[0027] Outputting the code model to a web page editing window;

[0028] The code model is adjusted according to the received code adjustment instruction, and a user interface generated corresponding to the adjusted code model is displayed to the user.

[0029] Optionally, the component code generation module is further configured to generate component code corresponding to the to-be-generated user interface according to the adjusted code model upon receiving a code model adjustment completion instruction.

[0030] An embodiment of the present invention further provides an apparatus for automatically generating a user interface component, comprising a processor, wherein the processor is configured to implement the steps of the method for automatically generating a user interface component as described in any of the preceding items when executing a computer program stored in a memory.

[0031] Finally, an embodiment of the present invention further provides a computer-readable storage medium, on which a user interface component automatic generation program is stored. When the user interface component automatic generation program is executed by a processor, the steps of the user interface component automatic generation method as described in any of the preceding items are implemented.

[0032] The advantage of the technical solution provided by the present application is that a UI structure parameter generation model is obtained by learning and training the UI framework using a machine learning method, and the corresponding UI component code can be generated by intelligently reading the input UI component style prototype image and combining it with the code library through machine learning, thereby converting the ordinary UI user interface into usable code, and being able to automatically generate UI components according to the user input framework, which greatly simplifies the traditional UI code design and development process. Users can efficiently develop the UI side code and improve the generation efficiency of UI components, which is conducive to improving product development efficiency and reducing development costs.

[0033] In addition, the embodiment of the present invention also provides a corresponding implementation device and a computer-readable storage medium for the method of automatically generating a user interface component, which further makes the method more practical, and the device and the computer-readable storage medium have corresponding advantages.

[0034] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present invention or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 A schematic diagram of a flow chart of a method for automatically generating a user interface component provided by an embodiment of the present invention;

[0037] Figure 2 A structural diagram of a specific implementation of the device for automatically generating user interface components provided by an embodiment of the present invention;

[0038] Figure 3 This is a structural diagram of another specific implementation of the device for automatically generating user interface components provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0040] The terms "first", "second", "third", "fourth", etc. in the specification and claims of this application and the above drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.

[0041] After introducing the technical solutions of the embodiments of the present invention, various non-limiting implementation methods of the present application are described in detail below.

[0042] See first Figure 1 , Figure 1 A flowchart of a method for automatically generating a user interface component is provided in an embodiment of the present invention. The embodiment of the present invention may include the following contents:

[0043] S101: Preliminarily use a machine learning method to train a UI structure parameter generation model based on a UI framework sample set.

[0044] This step is based on the machine learning algorithms of artificial intelligence AI, such as convolutional neural networks, to conduct simple learning of mainstream UI frameworks, such as bootstrapUI, and continuously learn and train the color matching and code layout attributes of the UI framework, and continuously correct and improve it, and learn simple tables, model structures, CSS style attributes, etc. Based on the user input of the required framework style, the system generates UI structure parameters that can be recognized by the UI structure parameters, which can be, for example, UI framework structure parameters and interface style data. Among them, the model training process of the UI structure parameter generation model can refer to any model training method recorded in the prior art for the machine learning method adopted, and it is not convenient to repeat it here.

[0045] S102: Parse the component style image to be generated to obtain UI image parameters of the user interface to be generated.

[0046] This step may adopt any image recognition algorithm or image processing algorithm. Based on the existing image processing algorithm, UI image parameters may be parsed from the component style image to be generated. The UI image parameters may include, for example, the structure, lines, colors, texts, proportions, etc. of each coordinate of the component style image to be generated.

[0047] S103: Inputting UI image parameters into a UI structure parameter generation model to obtain UI framework structure parameters and interface style data.

[0048] The UI image parameters obtained in S102 are input into the UI structure parameter generation model trained in S101. The UI structure parameter generation model learns the style and attributes to obtain the interface style data and UI framework structure parameters corresponding to the component style image to be generated, so that it can be known whether the UI component corresponding to the component style image to be generated is a table or a model.

[0049] S104: According to the UI framework structure parameters and the interface style data, the corresponding code is matched in the pre-built code library to generate component code corresponding to the user interface to be generated.

[0050] Among them, all the codes of the mainstream framework are built into the code library. In order to ensure that the parameters output by the UI structure parameter generation model can be matched in the code library to obtain the corresponding code, the UI framework in the code library is not less than the total number of types of UI frameworks in the training sample set used in the training process of the UI structure parameter generation model. In step S103, the UI framework structure parameters and interface style data of the UI component corresponding to the component style image to be generated are obtained, and the code for building the corresponding interface style or UI framework is matched in the code library, and then all the matched codes are combined to generate the component code of the component style image to be generated.

[0051] In the technical solution provided in the embodiment of the present invention, a machine learning method is used to learn and train the UI framework to obtain a UI structure parameter generation model. The corresponding UI component code can be generated by intelligently reading the input UI component style prototype image through machine learning and combining it with the code library, and the ordinary UI user interface is converted into usable code. The UI component can be automatically generated according to the user input framework, which greatly simplifies the traditional UI code design and development process. Users can efficiently develop the UI side code and improve the generation efficiency of UI components, which is conducive to improving the product development efficiency and reducing the development cost.

[0052] It should be noted that there is no strict order of execution between the steps in this application. As long as they comply with the logical order, these steps can be executed simultaneously or in a certain preset order. Figure 1 This is just a schematic and does not mean that this is the only execution order.

[0053] It is understandable that the UI component generated in step S104 may not be perfect, or the user may make other changes based on the component style image to be generated. In order to ensure that the UI component finally generated is what the user requires, based on the above embodiment, the process of generating the component code corresponding to the user interface to be generated may also include:

[0054] Generate an editable code model based on the code matched from the code library;

[0055] Output the code model to the web page editing window;

[0056] The code model execution is adjusted according to the received code adjustment instruction, and the user interface generated corresponding to the adjusted code model is displayed to the user.

[0057] When the code model adjustment end instruction is received, component code corresponding to the to-be-generated user interface is generated according to the adjusted code model.

[0058] In this embodiment, after matching the code from the code library, the corresponding code model can be generated first, and the preview effect can be displayed on the Web page. When the developer needs it, he can make adjustments in the code editing window during the preview to improve it. The code model adjustment end instruction can be an instruction issued by the user to complete the model adjustment, or it can be that no user adjustment of the code model operation is detected within a preset time period. The technicians in the relevant field can set it according to actual needs, which does not affect the implementation of this application.

[0059] This embodiment greatly improves the problems encountered by developers on some components. After automatically generating the component code corresponding to the user interface, it can be improved and used, which improves the efficiency of developers and saves time and labor costs. Compared with the previous manual development process, this solution greatly improves the development experience of storage management software developers and reduces the investment of manpower and material resources.

[0060] The present application can be applied to the automatic generation of UI components of storage management software based on the web server, using AI to convert ordinary user interfaces into usable HTML code. Considering that the entire interface contains too many components and elements, it is difficult for the system to parse it. At the same time, AI also needs to learn more UI frameworks, which can be limited to parsing and converting some local components of the interface. In the actual application process, the technical solution of the present application can be used as an automatic generation tool for UI components based on the web. The tool has an operation interface. After detecting that an authorized user logs in to the web page, that is, opening the tool, the operation interface is displayed to the authorized logged-in user. The operation interface may include a component style image import option and a component code generation option. In other words, the operation interface provides developers with an entrance for uploading pictures, code editing and adjustment windows, and other operations. The user only needs to import a clear component style design draft into the tool through the component style image import option, and the tool will generate the corresponding effect preview and visual editing code after processing. When the developer is not satisfied with the generated code, he can also make changes in the visual editing interface and immediately see the effect after the change, so as to achieve the purpose of perfecting the component and truly restore the design; then the code can be used in development, and the developer only needs to supplement some corresponding interactive layer codes according to the needs, such as JavaScript interactive logic.

[0061] Furthermore, in order to improve the accuracy of UI component generation and make it suitable for more application scenarios, the training sample set of S101 can also be expanded, that is, a new UI frame can be added to the UI frame sample set. Each time the UI frame sample set is updated, S101 can be re-executed using the UI frame sample set to improve the recognition accuracy of the UI structure parameter generation model. Accordingly, the operation interface can also include a UI structure parameter generation model update option. The UI structure parameter generation model update option includes a sample data expansion option and a model training option. The UI frame sample set is expanded through the sample data expansion option, and the UI structure parameter generation model is trained again through the model training option.

[0062] As an optional implementation, in order to further simplify the manual adjustment operation and make the UI components generated by S104 in one step, the code library can also be updated in real time. The updated content can be the code of the newly added UI framework, or the original code can be replaced by the user-adjusted code. A certain code in the code library includes multiple groups of codes for different application scenarios. A group of codes corresponds to an application scenario. As the number of application scenarios increases, the code for the new application scenario can be added under the original code. Correspondingly, the operation interface can also include a code library update option, and the code library is updated through the code library update option.

[0063] The embodiment of the present invention also provides a corresponding device for the method for automatically generating user interface components, which further makes the method more practical. The device can be described from the perspective of functional modules and hardware. The device for automatically generating user interface components provided by the embodiment of the present invention is introduced below. The device for automatically generating user interface components described below and the method for automatically generating user interface components described above can be referred to in correspondence with each other.

[0064] From the perspective of functional modules, see Figure 2 , Figure 2 A structural diagram of a device for automatically generating a user interface component provided by an embodiment of the present invention in a specific implementation manner, the device may include:

[0065] The AI ​​module 201 is used to pre-use a machine learning method to train a UI structure parameter generation model based on a UI framework sample set.

[0066] The image parsing module 202 is used to parse the component style image to be generated to obtain UI image parameters of the user interface to be generated.

[0067] The interface parameter generation module 203 is used to input the UI image parameters into the UI structure parameter generation model to obtain UI framework structure parameters and interface style data.

[0068] The component code generation module 204 is used to match the corresponding code in the pre-built code library according to the UI framework structure parameters and the interface style data, and generate the component code corresponding to the user interface to be generated.

[0069] Optionally, in some implementations of this embodiment, the component code generation module 204 may be further used to:

[0070] Generate an editable code model based on the code matched from the code library;

[0071] Output the code model to the web page editing window;

[0072] The code model execution is adjusted according to the received code adjustment instruction, and the user interface generated corresponding to the adjusted code model is displayed to the user.

[0073] As another optional implementation, the component code generation module 204 may be further configured to generate component code corresponding to the to-be-generated user interface according to the adjusted code model upon receiving a code model adjustment end instruction.

[0074] Optionally, in some other implementations of this embodiment, the above-mentioned device may also include a web interface module, which is used to display an operation interface to the authorized user when it is detected that the authorized user logs into the web page; the operation interface includes a component style image import option and a component code generation option.

[0075] As an optional implementation of this embodiment, the operation interface may also include a code library update option and a UI structure parameter generation model update option.

[0076] The functions of the functional modules of the user interface component automatic generation device in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0077] It can be seen from the above that the embodiments of the present invention simplify the generation process of UI components and improve the generation efficiency of UI components.

[0078] The user interface component automatic generation device mentioned above is described from the perspective of functional modules. Furthermore, the present application also provides a user interface component automatic generation device, which is described from the perspective of hardware. Figure 3 This is a structural diagram of another user interface component automatic generation device provided in an embodiment of the present application. Figure 3 As shown, the device includes a memory 30 for storing a computer program;

[0079] The processor 31 is used to implement the steps of the method for automatically generating a user interface component as mentioned in any of the above embodiments when executing a computer program.

[0080] Among them, the processor 31 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 31 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 31 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 31 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 31 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0081] The memory 30 may include one or more computer-readable storage media, which may be non-transitory. The memory 30 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 30 is at least used to store the following computer program 301, wherein, after the computer program is loaded and executed by the processor 31, it can implement the relevant steps of the user interface component automatic generation method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 30 may also include an operating system 302 and data 303, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 302 may include Windows, Unix, Linux, etc. Data 303 may include but is not limited to data corresponding to the automatic generation result of the user interface component, etc.

[0082] In some embodiments, the user interface component automatic generation device may further include a display screen 32 , an input and output interface 33 , a communication interface 34 , a power supply 35 , and a communication bus 36 .

[0083] Those skilled in the art will understand that Figure 3 The structure shown in does not constitute a limitation on the device for automatically generating user interface components, and may include more or fewer components than those shown in the figure, for example, it may also include a sensor 37.

[0084] The functions of the functional modules of the user interface component automatic generation device described in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0085] It can be seen from the above that the embodiments of the present invention simplify the generation process of UI components and improve the generation efficiency of UI components.

[0086] It is understandable that if the user interface component automatic generation method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk or optical disk and other media that can store program code.

[0087] Based on this, an embodiment of the present invention further provides a computer-readable storage medium storing a user interface component automatic generation program, wherein the user interface component automatic generation program, when executed by a processor, performs the steps of the user interface component automatic generation method described in any of the above embodiments.

[0088] The functions of the functional modules of the computer-readable storage medium described in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0089] It can be seen from the above that the embodiments of the present invention simplify the generation process of UI components and improve the generation efficiency of UI components.

[0090] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0091] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0092] The above is a detailed introduction to a method, device and computer-readable storage medium for automatically generating a user interface component provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A method for automatically generating a user interface component, characterized in that: include: Preliminarily use machine learning methods to train a UI structure parameter generation model based on a UI framework sample set; Parse the component style image to be generated and obtain the UI image parameters of the user interface to be generated; Inputting the UI image parameters into the UI structure parameter generation model to obtain UI frame structure parameters and interface style data; According to the UI framework structure parameters and the interface style data, corresponding codes are matched in a pre-built code library to generate component codes corresponding to the user interface to be generated.

2. The method for automatically generating user interface components according to claim 1, characterized in that: The generating of the component code corresponding to the to-be-generated user interface comprises: Generate an editable code model according to the code matched from the code library; Outputting the code model to a web page editing window; The code model is adjusted according to the received code adjustment instruction, and a user interface generated corresponding to the adjusted code model is displayed to the user.

3. The method for automatically generating user interface components according to claim 2, characterized in that: The user interface generated corresponding to the adjusted code model is displayed to the user, comprising: When the code model adjustment end instruction is received, the component code corresponding to the to-be-generated user interface is generated according to the adjusted code model.

4. The method for automatically generating user interface components according to any one of claims 1 to 3, characterized in that: Before parsing the component style image to be generated and obtaining the UI image parameters of the user interface to be generated, the method further includes: When it is detected that an authorized user logs into the web page, an operation interface is displayed to the authorized user; the operation interface includes a component style image import option and a component code generation option.

5. The method for automatically generating user interface components according to claim 4, characterized in that: The operation interface also includes a code library update option and a UI structure parameter generation model update option.

6. A user interface component automatic generation device, characterized in that: include: The AI ​​module is used to pre-use machine learning methods to train the UI structure parameter generation model based on the UI framework sample set; An image parsing module, used to parse the component style image to be generated and obtain UI image parameters of the user interface to be generated; An interface parameter generation module, used for inputting the UI image parameters into the UI structure parameter generation model to obtain UI framework structure parameters and interface style data; The component code generation module is used to match the corresponding code in the pre-built code library according to the UI framework structure parameters and the interface style data, and generate the component code corresponding to the user interface to be generated.

7. The device for automatically generating user interface components according to claim 6, characterized in that: The component code generation module is further used for: Generate an editable code model according to the code matched from the code library; Outputting the code model to a web page editing window; The code model is adjusted according to the received code adjustment instruction, and a user interface generated corresponding to the adjusted code model is displayed to the user.

8. The device for automatically generating user interface components according to claim 7, characterized in that: The component code generation module is further configured to generate component code corresponding to the to-be-generated user interface according to the adjusted code model when receiving a code model adjustment end instruction.

9. A user interface component automatic generation device, characterized in that: It comprises a processor, and the processor is used to implement the steps of the method for automatically generating user interface components as claimed in any one of claims 1 to 5 when executing a computer program stored in a memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a user interface component automatic generation program, and when the user interface component automatic generation program is executed by a processor, the steps of the user interface component automatic generation method according to any one of claims 1 to 5 are implemented.