Method and device for compiling front-end vue component into native component, equipment and medium
A component and grammar technology, applied in the computer field, can solve the problems of repeated development, low development efficiency, and the inability of Vue components to be directly reused, so as to achieve rapid iterative development of new functions, reduce loading waiting time, save development time and labor costs. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0067] see figure 1 , the first embodiment of the present invention provides a method for compiling front-end vue components into native components, which can be executed by a computer device that compiles front-end vue components into native components, and the computer that compiles front-end vue components into native components The device may be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server.
[0068] An embodiment of the present invention provides a method for compiling front-end vue components into native components, including:
[0069] S1, obtain a configuration file; wherein, the configuration content of the configuration file includes at least one vue component address;
[0070] S2. Find the corresponding vue component according to the vue component address;
[0071] S3. Based on the name of the vue component, initialize the content of the native component to obtain the initial native component;
[0072] S4. Based on the initia...
Embodiment 2
[0137] see Figure 8 , an embodiment of the present invention provides a device for compiling front-end vue components into native components, including:
[0138] Obtaining module 1, for obtaining a configuration file; wherein, the configuration content of the configuration file includes at least one vue component address;
[0139] Lookup module 2 is used to look up the corresponding vue component according to the vue component address;
[0140] The initialization module 3 is used to initialize the content of the native component based on the name of the vue component to obtain the initial native component;
[0141] The compilation module 4 is configured to compile the page display template code of the vue component and the style code of the vue component into a grammar suitable for the native component based on the initial native component and according to the native component syntax.
[0142] In one embodiment, the initialization module includes:
[0143] The first creati...
Embodiment 3
[0176] see Figure 9 , an embodiment of the present invention also provides a computer device, the computer device may be a server, and its internal structure may be as follows Figure 9shown. The computer device includes a processor, memory, a network interface, and a database connected by a system bus. Among them, the processor of the computer design is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store data such as a method for compiling front-end vue components into native components. The network interface of the computer device is used to communicate with an external terminal through a network co...
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