Front end interface code generation method and device, electronic equipment and storage medium
A technology of interface code and interface design, which is applied in the computer field, can solve the problems of low accuracy and achieve the effect of improving accuracy and generating efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] A front-end interface code generation method disclosed in this application, such as figure 1 As shown, the method includes: step 100 to step 120.
[0026] Step 100, exporting front-end interface design data from the front-end interface design draft.
[0027] In the prior art, when developing the front-end interface, usually the designer first designs the front-end interface through design software, and then exports the pictures or controls or cutouts in the front-end interface designed by the designer into a file in image format, HTML format data file or JSON format data file. After that, the software engineer writes the interface display code so that the front-end interface is displayed when the program is running. Design software commonly used by designers such as: Sketch, Photoshop, Illustrator and Fireworks, etc. Usually, the design software supports the export of source data, and also supports the export of some layers or interface elements. Taking Sketch as an...
Embodiment 2
[0036] A front-end interface code generation method disclosed in this application, such as figure 2 As shown, the method includes: Step 200 to Step 250.
[0037] Step 200, exporting front-end interface design data from the design draft of the front-end interface.
[0038] For the specific technical solution of deriving the design data of the front-end interface from the design draft of the front-end interface, refer to Embodiment 1, which will not be repeated here.
[0039] After obtaining the front-end interface design data, since the front-end interface design data is the data exported from the design draft through the open interface of the design software, the exported front-end interface design data contains the fields defined by the open interface of the design software. Data processing is performed on the front-end interface design data, and the information required for designing the front-end interface display program is obtained therefrom. During specific implementa...
Embodiment 3
[0091] A front-end interface code generation device disclosed in this application, such as Figure 5 As shown, the device includes:
[0092] A data export module 510, configured to derive front-end interface design data from the design draft of the front-end interface;
[0093] A control information acquisition module 520, configured to collect and transform information on the front-end interface design data exported by the data export module 510, and determine the control information included in the front-end interface;
[0094] The code generating module 530 is configured to combine the input configuration information and the control information to generate the front-end interface code.
[0095] optional, such as Figure 6 As shown, the control information acquisition module 520 further includes:
[0096] The control information conversion unit 5201 is configured to map each layer in the front-end interface design data with a preset control type, so as to preliminarily de...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com