Custom component layout generation system and method based on Vue

Through the custom component layout generation system based on Vue, the custom layout module, image recognition module and component generation module are used to solve the problem of inefficient development of traditional user interfaces, and the rapid construction and adaptive layout are realized, and the development efficiency and User experience.

CN118963749APending Publication Date: 2024-11-15INSPUR QILU SOFTWARE IND
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410987935.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

Traditional user interface development relies on static layout solutions, which is difficult to meet complex needs and rapidly changing design requirements, resulting in low development efficiency and high R&D pressure.

Method used

Provide a custom component layout generation system based on Vue, including a custom layout module, an image recognition layout generation module and a component generation operation module. It can build an interface by dragging and dropping components, automatically analyze the layout of image recognition objects, generate corresponding code logic, and Supports real-time preview and debugging, and provides component library management and extension interfaces.

Benefits of technology

It greatly improves the work efficiency and benefits of users in layout, reduces the time spent by front-end personnel in UI layout, simplifies the development process, improves user experience and code quality, and realizes adaptive layout on different devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118963749A_ABST
    Figure CN118963749A_ABST
Patent Text Reader

Abstract

The invention discloses a user-defined component layout generation system and method based on Vue, and relates to the technical field of front-end component layouts, the system comprises a user-defined layout module which is responsible for providing a visual and flexible interface construction tool for a user and allowing the user to create personalized layouts by dragging different components, and the user-defined layout module is responsible for creating personalized layouts by dragging different components; data logic between the dragged components is defined; the image identification layout generation module is responsible for acquiring an input image, automatically analyzing an object in the input image and identifying an object layout to generate corresponding Vue code logic; and the component generation operation module is responsible for managing and operating the created components. According to the invention, a user does not need to spend too much time in layout, and can find the component with the corresponding function according to own requirements, so that the working efficiency and benefits of the user are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of front-end component layout, and in particular to a Vue-based custom component layout generation system and method. Background Art

[0002] Traditional user interface development often relies on static layout solutions, which are difficult to meet complex needs and rapidly changing design requirements. Summary of the invention

[0003] In view of the needs and shortcomings of current technological development, the present invention provides a Vue-based custom component layout generation system and method, so that users do not need to spend too much time on the layout, and can find components with corresponding functions according to their needs, greatly improving their work efficiency and benefits.

[0004] In the first aspect, the present invention is a Vue-based custom component layout generation system, which solves the above technical problems by adopting the following technical solutions:

[0005] A Vue-based custom component layout generation system, which is based on the Vue language and includes:

[0006] The custom layout module is responsible for providing users with an intuitive and flexible interface building tool, allowing users to create personalized layouts by dragging different components and defining the data logic between the dragged components;

[0007] The image recognition layout generation module is responsible for obtaining the input image, automatically analyzing the objects in the input image, and identifying the object layout to generate the corresponding Vue code logic;

[0008] The component generation operation module is responsible for managing and operating the created components.

[0009] Optionally, the middle position of the custom layout module involved is a user-customized layout canvas, and the user builds the interface layout by dragging components in this area;

[0010] On the left side of the canvas is the UI switch menu, which is used to display the component library for users to browse and select;

[0011] The right side of the canvas displays the specific components of the component library selected by the user. The user selects components from this area and drags them to the canvas for layout;

[0012] Below the canvas is the visual style editor, where users can modify the properties of components in the canvas through the property panel.

[0013] The right side of the display of specific components is used to display the corresponding code logic provided by the system according to user needs, and allows users to select the required front-end framework according to their needs, where the system refers to an application or development platform deployed with a custom layout module.

[0014] Preferably, the right side of the canvas displays the specific components of the component library selected by the user. The components include three types: text boxes, image boxes and buttons. Each type of component has its own properties and behaviors.

[0015] Optionally, after the image recognition layout generation module obtains the input image:

[0016] Preprocess the images by normalizing their size, removing noise, and adjusting brightness and contrast;

[0017] Use deep learning-based object detection algorithms to identify objects and regions in images, and classify and label the identified objects according to preset categories;

[0018] Use deep learning algorithms to further refine the objects and regions in the image, understand the spatial relationship between different objects in the image, and achieve more accurate region segmentation;

[0019] Extract relevant features from each detected object and area, analyze the application of the extracted features in layout design, and provide a basis for subsequent layout generation;

[0020] According to the object information recognized from the image and the features extracted, a predefined layout generation rule is applied to automatically generate a layout that meets the user's expectations, wherein the predefined layout generation rule includes object priority, size adjustment, and position arrangement;

[0021] The user provides feedback during preview, and the application or development platform that deploys the image recognition layout generation module makes corresponding adjustments based on the feedback. At the same time, the application or development platform that deploys the image recognition layout generation module uses a machine learning algorithm to learn the user's modification habits, so as to provide more accurate layout suggestions in the future;

[0022] Convert the finalized layout into Vue or HTML / CSS / JavaScript code.

[0023] Optionally, the component generation operation module is responsible for managing and operating the created components, including:

[0024] Component library management: Provides component library management functions, allowing users to select and configure from a preset component collection, or customize and develop new components and save them;

[0025] Layout saving and exporting: supports users to save current layout settings and export them as JSON format configuration files or code snippets for easy subsequent modification and sharing;

[0026] Real-time preview and debugging: Built-in real-time preview function allows developers to instantly view the layout effect during the design stage, and supports real-time debugging and error detection;

[0027] Extensibility and customization: Provide plug-ins and extension interfaces, allowing developers to add new features or integrate third-party services and tools according to their needs.

[0028] In the second aspect, a Vue-based custom component layout generation method of the present invention solves the above technical problems by adopting the following technical solutions:

[0029] A Vue-based custom component layout generation method, which is based on the Vue language and includes the following steps:

[0030] S1. Provide users with an intuitive and flexible interface building tool that allows users to create personalized layouts by dragging different components and define the data logic between the dragged components;

[0031] S2. Obtain the input image, automatically analyze the objects in the input image, and identify the object layout to generate the corresponding Vue code logic;

[0032] S3. Manage and operate the created components.

[0033] Optionally, the middle position of the interface building tool involved is a canvas for user-defined layout, and the user builds the interface layout by dragging components in this area;

[0034] On the left side of the canvas is the UI switch menu, which is used to display the component library for users to browse and select;

[0035] The right side of the canvas displays the specific components of the component library selected by the user. The user selects components from this area and drags them to the canvas for layout;

[0036] Below the canvas is the visual style editor, where users can modify the properties of components in the canvas through the property panel.

[0037] The right side of the display of specific components is used to display the corresponding code logic provided by the system according to user needs, and allows the user to select the required front-end framework according to needs, where the system refers to an application or development platform deployed with an interface building tool.

[0038] Preferably, the right side of the canvas involved displays the specific components of the component library selected by the user, and the components include three types: text boxes, image boxes and buttons, and each type of component has its own properties and behaviors.

[0039] Optionally, after getting the input image:

[0040] Preprocess the images by normalizing their size, removing noise, and adjusting brightness and contrast;

[0041] Use deep learning-based object detection algorithms to identify objects and regions in images, and classify and label the identified objects according to preset categories;

[0042] Use deep learning algorithms to further refine the objects and regions in the image, understand the spatial relationship between different objects in the image, and achieve more accurate region segmentation;

[0043] Extract relevant features from each detected object and area, analyze the application of the extracted features in layout design, and provide a basis for subsequent layout generation;

[0044] According to the object information recognized from the image and the features extracted, a predefined layout generation rule is applied to automatically generate a layout that meets the user's expectations, wherein the predefined layout generation rule includes object priority, size adjustment, and position arrangement;

[0045] The user provides feedback during preview, and the application or development platform that deploys the image recognition layout generation module makes corresponding adjustments based on the feedback. At the same time, the application or development platform that deploys the image recognition layout generation module uses a machine learning algorithm to learn the user's modification habits, so as to provide more accurate layout suggestions in the future;

[0046] Convert the finalized layout into Vue or HTML / CSS / JavaScript code.

[0047] Optionally, manage and operate the created components, including:

[0048] Component library management: Provides component library management functions, allowing users to select and configure from a preset component collection, or customize and develop new components and save them;

[0049] Layout saving and exporting: supports users to save current layout settings and export them as JSON format configuration files or code snippets for easy subsequent modification and sharing;

[0050] Real-time preview and debugging: Built-in real-time preview function allows developers to instantly view the layout effect during the design stage, and supports real-time debugging and error detection;

[0051] Extensibility and customization: Provide plug-ins and extension interfaces, allowing developers to add new features or integrate third-party services and tools according to their needs.

[0052] Compared with the prior art, the Vue-based custom component layout generation system and method of the present invention have the following beneficial effects:

[0053] 1. The present invention allows users to avoid spending too much time on layout and can find components with corresponding functions according to their needs, greatly improving their work efficiency and benefits;

[0054] 2. The present invention can greatly reduce the time spent on UI layout during the development process of front-end personnel. At the same time, they can find the component plug-ins they need for use, focusing more on program logic, reducing the pressure of development and making it easier to achieve the required functional effects;

[0055] 3. The present invention has the advantages of flexibility and customizability, simplifies the development process, improves user experience, improves development efficiency and code quality, and easily realizes adaptive layout on different devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Attached Figure 1 is a module connection block diagram of the second embodiment of the present invention;

[0057] Attached Figure 2 It is a flow chart of the method of embodiment 1 of the present invention. DETAILED DESCRIPTION

[0058] In order to make the technical solution, the technical problem solved and the technical effect of the present invention more clearly understood, the technical solution of the present invention is clearly and completely described below in conjunction with specific embodiments.

[0059] Embodiment 1:

[0060] Combined with Figure 1 This embodiment proposes a Vue-based custom component layout generation system, which is based on the Vue language and includes:

[0061] The custom layout module is responsible for providing users with an intuitive and flexible interface building tool, allowing users to create personalized layouts by dragging different components and defining the data logic between the dragged components;

[0062] The image recognition layout generation module is responsible for obtaining the input image, automatically analyzing the objects in the input image, and identifying the object layout to generate the corresponding Vue code logic;

[0063] The component generation operation module is responsible for managing and operating the created components.

[0064] In this embodiment, the middle position of the custom layout module involved is the canvas for the user's custom layout. The user builds the interface layout by dragging components in this area;

[0065] On the left side of the canvas is the UI switch menu, which is used to display the component library for users to browse and select;

[0066] The right side of the canvas displays the specific components of the component library selected by the user. The components include three types: text box, image box and button. Each type of component has its own properties (such as size, position, content) and behavior (such as draggable and resizable). The user selects a component from this area and drags it to the canvas for layout.

[0067] Below the canvas is the visual style editor, where users can modify the properties of components in the canvas through the property panel.

[0068] The right side of the display of specific components is used to display the corresponding code logic provided by the system according to user needs, and allows users to select the required front-end framework according to their needs, where the system refers to an application or development platform deployed with a custom layout module.

[0069] In this embodiment, after the image recognition layout generation module obtains the input image:

[0070] Preprocess the images by normalizing their size, removing noise, and adjusting brightness and contrast;

[0071] Use deep learning-based object detection algorithms to identify objects and regions in images, and classify and label the identified objects according to preset categories;

[0072] Use deep learning algorithms such as DeepLab or U-Net to further refine the objects and regions in the image, understand the spatial relationship between different objects in the image, and achieve more accurate region segmentation;

[0073] Extract relevant features from each detected object and area, analyze the application of the extracted features in layout design, and provide a basis for subsequent layout generation;

[0074] According to the object information recognized from the image and the features extracted, a predefined layout generation rule is applied to automatically generate a layout that meets the user's expectations, wherein the predefined layout generation rule includes object priority, size adjustment, and position arrangement;

[0075] The user provides feedback during preview, and the application or development platform that deploys the image recognition layout generation module makes corresponding adjustments based on the feedback. At the same time, the application or development platform that deploys the image recognition layout generation module uses a machine learning algorithm to learn the user's modification habits, so as to provide more accurate layout suggestions in the future;

[0076] Convert the finalized layout into Vue or HTML / CSS / JavaScript code.

[0077] It should be added that the input image obtained by the image recognition layout generation module can be an image of a personalized layout created by the user through the custom layout module, or an image uploaded by the user, or a real-time image captured by a camera through an application or development platform that deploys the image recognition layout generation module.

[0078] In this embodiment, the component generation operation module is responsible for managing and operating the created components, specifically including:

[0079] Component library management: Provides component library management functions, allowing users to select and configure from a preset component collection, or customize and develop new components and save them;

[0080] Layout saving and exporting: supports users to save current layout settings and export them as JSON format configuration files or code snippets for easy subsequent modification and sharing;

[0081] Real-time preview and debugging: Built-in real-time preview function allows developers to instantly view the layout effect during the design stage, and supports real-time debugging and error detection;

[0082] Extensibility and customization: Provide plug-ins and extension interfaces, allowing developers to add new features or integrate third-party services and tools according to their needs.

[0083] Embodiment 2:

[0084] Combined with Figure 2 This embodiment proposes a Vue-based custom component layout generation method, which is based on the Vue language and includes the following steps:

[0085] S1. Provide users with an intuitive and flexible interface building tool. The interface building tool allows users to create personalized layouts by dragging different components and define the data logic between the dragged components.

[0086] The middle of the interface building tool is the user-defined layout canvas, where users build the interface layout by dragging components;

[0087] On the left side of the canvas is the UI switch menu, which is used to display the component library for users to browse and select;

[0088] The right side of the canvas displays the specific components of the component library selected by the user. The components include three types: text box, image box and button. Each type of component has its own properties (such as size, position, content) and behavior (such as draggable and resizable). The user selects a component from this area and drags it to the canvas for layout.

[0089] Below the canvas is the visual style editor, where users can modify the properties of components in the canvas through the property panel.

[0090] The right side of the display of specific components is used to display the corresponding code logic provided by the system according to user needs, and allows the user to select the required front-end framework according to needs, where the system refers to an application or development platform deployed with an interface building tool.

[0091] S2. Get the input image, automatically analyze the objects in the input image, and identify the object layout to generate the corresponding Vue code logic, including:

[0092] Preprocess the images by normalizing their size, removing noise, and adjusting brightness and contrast;

[0093] Use deep learning-based object detection algorithms to identify objects and regions in images, and classify and label the identified objects according to preset categories;

[0094] Use deep learning algorithms such as DeepLab or U-Net to further refine the objects and regions in the image, understand the spatial relationship between different objects in the image, and achieve more accurate region segmentation;

[0095] Extract relevant features from each detected object and area, analyze the application of the extracted features in layout design, and provide a basis for subsequent layout generation;

[0096] According to the object information recognized from the image and the features extracted, a predefined layout generation rule is applied to automatically generate a layout that meets the user's expectations, wherein the predefined layout generation rule includes object priority, size adjustment, and position arrangement;

[0097] The user provides feedback during preview, and the application or development platform that deploys the image recognition layout generation module makes corresponding adjustments based on the feedback. At the same time, the application or development platform that deploys the image recognition layout generation module uses a machine learning algorithm to learn the user's modification habits, so as to provide more accurate layout suggestions in the future;

[0098] Convert the finalized layout into Vue or HTML / CSS / JavaScript code.

[0099] It should be added that the input image obtained by the image recognition layout generation module can be an image of a personalized layout created by the user through the custom layout module, or an image uploaded by the user, or a real-time image captured by a camera through an application or development platform that deploys the image recognition layout generation module.

[0100] S3. Manage and operate the created components, including:

[0101] Component library management: Provides component library management functions, allowing users to select and configure from a preset component collection, or customize and develop new components and save them;

[0102] Layout saving and exporting: supports users to save current layout settings and export them as JSON format configuration files or code snippets for easy subsequent modification and sharing;

[0103] Real-time preview and debugging: Built-in real-time preview function allows developers to instantly view the layout effect during the design stage, and supports real-time debugging and error detection;

[0104] Extensibility and customization: Provide plug-ins and extension interfaces, allowing developers to add new features or integrate third-party services and tools according to their needs.

[0105] In summary, the Vue-based custom component layout generation system and method of the present invention allows users to avoid spending too much time on the layout and can find components with corresponding functions according to their needs, greatly improving their work efficiency and benefits.

[0106] The above specific examples are used to explain the principles and implementation methods of the present invention in detail. These examples are only used to help understand the core technical content of the present invention. Based on the above specific embodiments of the present invention, any improvements and modifications made by technicians in this technical field without departing from the principles of the present invention should fall within the scope of patent protection of the present invention.

Claims

1. A custom component layout generation system based on Vue, characterized in that: It is based on the Vue language and includes: The custom layout module is responsible for providing users with an intuitive and flexible interface building tool, allowing users to create personalized layouts by dragging different components and defining the data logic between the dragged components; The image recognition layout generation module is responsible for obtaining the input image, automatically analyzing the objects in the input image, and identifying the object layout to generate the corresponding Vue code logic; The component generation operation module is responsible for managing and operating the created components.

2. According to a Vue-based custom component layout generation system according to claim 1, it is characterized in that: The middle position of the custom layout module is the user-defined layout canvas, where the user builds the interface layout by dragging components; The left side of the canvas is a UI switching menu, which is used to display a component library for users to browse and select; The right side of the canvas displays specific components of the component library selected by the user. The user selects components from this area and drags them to the canvas for layout; Below the canvas is a visual style editor, and the user can modify the properties of the components in the canvas through the property panel of the visual style editor; The right side of the display of specific components is used to display the corresponding code logic provided by the system according to user needs, and allows the user to select the required front-end framework according to needs, where the system refers to an application or development platform deployed with a custom layout module.

3. According to a Vue-based custom component layout generation system according to claim 2, it is characterized in that: The right side of the canvas displays the specific components of the component library selected by the user. The components include three types: text boxes, image boxes and buttons. Each type of component has its own properties and behaviors.

4. According to a Vue-based custom component layout generation system according to claim 1, it is characterized in that: After the image recognition layout generation module obtains the input image: Preprocess the images by normalizing their size, removing noise, and adjusting brightness and contrast; Use deep learning-based object detection algorithms to identify objects and regions in images, and classify and label the identified objects according to preset categories; Use deep learning algorithms to further refine the objects and regions in the image, understand the spatial relationship between different objects in the image, and achieve more accurate region segmentation; Extract relevant features from each detected object and area, analyze the application of the extracted features in layout design, and provide a basis for subsequent layout generation; According to the object information recognized from the image and the features extracted, a predefined layout generation rule is applied to automatically generate a layout that meets the user's expectations, wherein the predefined layout generation rule includes object priority, size adjustment, and position arrangement; The user provides feedback during preview, and the application or development platform that deploys the image recognition layout generation module makes corresponding adjustments based on the feedback. At the same time, the application or development platform that deploys the image recognition layout generation module uses a machine learning algorithm to learn the user's modification habits, so as to provide more accurate layout suggestions in the future; Convert the finalized layout into Vue or HTML / CSS / JavaScript code.

5. According to a Vue-based custom component layout generation system according to claim 1, it is characterized in that: The component generation operation module is responsible for managing and operating the created components, specifically including: Component library management: Provides component library management functions, allowing users to select and configure from a preset component collection, or customize and develop new components and save them; Layout saving and exporting: supports users to save current layout settings and export them as JSON format configuration files or code snippets for easy subsequent modification and sharing; Real-time preview and debugging: Built-in real-time preview function allows developers to instantly view the layout effect during the design stage, and supports real-time debugging and error detection; Extensibility and customization: Provide plug-ins and extension interfaces, allowing developers to add new features or integrate third-party services and tools according to their needs.

6. A method for generating a custom component layout based on Vue, characterized in that: It is based on the Vue language and includes the following steps: S1. Provide users with an intuitive and flexible interface building tool, which allows users to create personalized layouts by dragging different components and define data logic between the dragged components; S2. Obtain the input image, automatically analyze the objects in the input image, and identify the object layout to generate the corresponding Vue code logic; S3. Manage and operate the created components.

7. A Vue-based custom component layout generation method according to claim 6, characterized in that: The middle position of the interface building tool is a canvas for user-defined layout, and the user builds the interface layout by dragging components in this area; The left side of the canvas is a UI switching menu, which is used to display a component library for users to browse and select; The right side of the canvas displays specific components of the component library selected by the user. The user selects components from this area and drags them to the canvas for layout; Below the canvas is a visual style editor, and the user can modify the properties of the components in the canvas through the property panel of the visual style editor; The right side of the display of specific components is used to display the corresponding code logic provided by the system according to user needs, and allows the user to select the required front-end framework according to needs, where the system refers to an application or development platform deployed with an interface building tool.

8. A Vue-based custom component layout generation method according to claim 7, characterized in that: The right side of the canvas displays the specific components of the component library selected by the user. The components include three types: text boxes, image boxes and buttons. Each type of component has its own properties and behaviors.

9. A Vue-based custom component layout generation method according to claim 6, characterized in that: After getting the input image: Preprocess the images by normalizing their size, removing noise, and adjusting brightness and contrast; Use deep learning-based object detection algorithms to identify objects and regions in images, and classify and label the identified objects according to preset categories; Use deep learning algorithms to further refine the objects and regions in the image, understand the spatial relationship between different objects in the image, and achieve more accurate region segmentation; Extract relevant features from each detected object and area, analyze the application of the extracted features in layout design, and provide a basis for subsequent layout generation; According to the object information recognized from the image and the features extracted, a predefined layout generation rule is applied to automatically generate a layout that meets the user's expectations, wherein the predefined layout generation rule includes object priority, size adjustment, and position arrangement; The user provides feedback during preview, and the application or development platform that deploys the image recognition layout generation module makes corresponding adjustments based on the feedback. At the same time, the application or development platform that deploys the image recognition layout generation module uses a machine learning algorithm to learn the user's modification habits, so as to provide more accurate layout suggestions in the future; Convert the finalized layout into Vue or HTML / CSS / JavaScript code.

10. A Vue-based custom component layout generation method according to claim 6, characterized in that: Manage and operate the created components, including: Component library management: Provides component library management functions, allowing users to select and configure from a preset component collection, or customize and develop new components and save them; Layout saving and exporting: supports users to save current layout settings and export them as JSON format configuration files or code snippets for easy subsequent modification and sharing; Real-time preview and debugging: Built-in real-time preview function allows developers to instantly view the layout effect during the design stage, and supports real-time debugging and error detection; Extensibility and customization: Provide plug-ins and extension interfaces, allowing developers to add new features or integrate third-party services and tools according to their needs.

Citation Information

Cited By

  • Automatic construction system for financial data management

    CN119398953A

  • Method for supporting website customization modular construction

    CN121301684A