Multi-terminal integrated rendering method, low-code platform, electronic equipment and storage medium

Through the multi-terminal integrated rendering method and the design of the low-code platform, the compatibility and convenience problems of the low-code platform in multi-terminal adaptation processing are solved, the component system rendering of different terminals is realized, the development efficiency and user experience are improved, and the development cost is reduced. threshold.

CN118535146AInactive Publication Date: 2024-08-23CHENGDU CHENGDIAN YIXING DIGITAL HEALTH SOFTWARE CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410973786.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-08-23
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing low-code platforms have insufficient compatibility and ease of use in multi-terminal adaptation processing, resulting in high developer thresholds, low efficiency, and lack of flexibility.

Method used

Using a multi-terminal integrated rendering method, it generates and converts page rendering data, reads and matches corresponding component resources according to the terminal identification, and realizes rendering on different terminals, including a low-code designer, a multi-terminal converter, a data module and a renderer, and built-in atomic components. Compare tables and material systems to achieve one-to-one mapping and integration of component data.

Benefits of technology

It improves the multi-terminal compatibility and ease of use of the low-code platform, lowers the development threshold, saves time and labor costs, increases flexibility and user experience, and achieves flexible matching and scalability of each terminal component system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535146A
    Figure CN118535146A
Patent Text Reader

Abstract

The invention provides a multi-terminal integrated rendering method, a low-code platform, electronic equipment and a storage medium, and relates to the technical field of code development, the method comprises the following steps: generating a visual page and publishing the visual page, generating page rendering data of a publishing terminal and storing the page rendering data; converting the page rendering data of the publishing end into page rendering data of a conversion end, and storing the page rendering data; and in response to third-party calling, reading page rendering data corresponding to the terminal from the stored page rendering data of the release end or the page rendering data of the conversion end according to the called terminal identifier, pulling the basic component resources corresponding to the terminal, and finally matching the basic component resources according to the page rendering data corresponding to the terminal, and performing rendering. According to the method, different component systems can be rendered for the same page according to different ends, and high practicability is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of code development technology, and in particular to a multi-terminal integrated rendering method and a low-code platform, an electronic device and a storage medium. Background Art

[0002] The term "low-code" can be traced back to 2014. It refers to a method that allows users to design pages by answering "multiple-choice questions" (select components, select data) and "fill in the blanks" (modify configuration) through "drag and drop" operations, and finally quickly deliver corresponding pages and applications with minimal manual programming.

[0003] After several years of development, in 2018, low-code became one of the most popular technologies in the global technology industry. When an enterprise has a large number of repetitive projects and page development, the first thing it will consider is to use a low-code platform. Currently, there are many low-code platforms. After continuous analysis and comparison, it is found that the processing of each low-code platform for specific terminals is relatively mature, but it is still in a relatively immature stage for multi-terminal adaptation. At present, each platform has two ways to handle multi-terminal adaptation: one is to package and compile through webpack, and the other is to use the same set of component libraries on each terminal to force page adaptation. These two methods are not conducive to the compatibility and ease of use of the low-code platform on each terminal, and the threshold for developers is relatively high. Summary of the invention

[0004] In order to solve the above-mentioned defects of the related prior art, the present application provides a multi-terminal integrated rendering method and a low-code platform, an electronic device and a storage medium, which can render different component systems for the same page according to different terminals and has strong practicality.

[0005] In order to achieve the above object, the present invention adopts the following technologies: A multi-terminal integrated rendering method, comprising: Generate a visualization page and publish it, generate page rendering data on the publishing end, and store it; Convert the page rendering data of the publishing end into the page rendering data of the conversion end and store it; When responding to a third-party call, based on the calling terminal identifier, the page rendering data corresponding to the terminal is read from the stored page rendering data of the publishing end or the page rendering data of the conversion end, and the basic component resources corresponding to the terminal are pulled. Finally, the basic component resources are matched according to the page rendering data corresponding to the terminal for rendering.

[0006] Furthermore, the page rendering data of the publishing end includes rendering data of multiple different components. When the page rendering data of the publishing end is converted into the page rendering data of the conversion end, the rendering data of the components of the publishing end are converted one by one into the rendering data of the components of the conversion end, and finally integrated to generate the page rendering data of the conversion end.

[0007] Furthermore, page rendering data of different terminals are stored in different business fields; The terminal identifier is a fixed parameter, and different parameters are matched to the business fields for storing the page rendering data of the terminal corresponding to the parameter; In response to the third-party call, the page rendering data stored in the business field matching the parameter is read according to the parameter value of the parameter returned by the terminal.

[0008] A multi-terminal integrated rendering low-code platform, including: Low-code designer, used to generate a visual page and publish it, generating page rendering data on the publishing end; A multi-end converter, used to convert the page rendering data of the publishing end into the page rendering data of the conversion end; The data module is used to store the page rendering data of the publishing end and the page rendering data of the conversion end; The material system has built-in basic component resources for various terminals; The renderer is used to read the page rendering data corresponding to the terminal in the data module according to the called terminal identifier, and pull the basic component resources corresponding to the terminal in the material system, and finally match the basic component resources according to the page rendering data corresponding to the terminal for rendering.

[0009] Furthermore, the multi-terminal converter has a built-in atomic component comparison table, which is used to establish a one-to-one mapping relationship between rendering data of the same component of different terminals; The multi-end converter is used to convert the page rendering data of the publishing end into the page rendering data of the conversion end. It uses the atomic component comparison table to convert the rendering data of the components of the publishing end into the rendering data of the components of the conversion end one by one, and finally integrates them to generate the page rendering data of the conversion end.

[0010] Furthermore, the page rendering data of different terminals are respectively stored in different business fields in the data module, the terminal identifier is a fixed parameter, the parameter is stored in the data module, and different parameters are respectively matched with the business fields for storing the page rendering data of the terminal corresponding to the parameter; The renderer is used to read the page rendering data stored in the business field matching the parameter according to the parameter value returned by the terminal.

[0011] An electronic device comprises: at least one processor and a memory, wherein the memory stores computer-executable instructions; the computer-executable instructions stored in the memory are executed on the at least one processor, so that the at least one processor executes the multi-terminal integrated rendering method.

[0012] A computer-readable storage medium stores a computer program, which, when executed by a processor, controls a device where the storage medium is located to execute the multi-terminal integrated rendering method.

[0013] The beneficial effects of the present invention are: The platform can render different component systems for the same page according to different terminals, so that a page can be freely converted into a page adapted to each terminal, improving the compatibility and ease of use of the low-code platform on each terminal, lowering the threshold for developers, saving labor and time costs, and improving development efficiency; and it can match different component systems corresponding to each terminal, without being restricted to the same set of components, increasing flexibility and improving user experience; at the same time, users can arbitrarily improve the resources of the material system, and it is highly scalable. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 It is a platform framework diagram based on the multi-terminal integrated rendering method of an embodiment of the present application.

[0015] Figure 2 It is a framework diagram of the material system and data module of the embodiment of the present application.

[0016] Figure 3 is a schematic diagram of a multi-terminal converter according to an embodiment of the present application. DETAILED DESCRIPTION

[0017] To make the objectives, technical solutions and advantages of the embodiments of the present invention more clear, the implementation modes of the present invention are described in detail below with reference to the accompanying drawings. However, the embodiments described in the present invention are only part of the embodiments of the present invention, rather than all the embodiments.

[0018] One aspect of an embodiment of the present application provides a multi-terminal integrated rendering method for rendering different component systems for the same page according to different terminals.

[0019] The steps of the multi-terminal integrated rendering method of the embodiment of the present application are as follows: S1. Generate a visualization page and publish it, generate page rendering data on the publishing end, and store it.

[0020] S2. Convert the page rendering data of the publishing end into the page rendering data of the conversion end, and store the data.

[0021] S3. When a third-party terminal makes a call, the page rendering data corresponding to the terminal is read from the stored page rendering data of the publishing end or the page rendering data of the conversion end according to the calling terminal identifier, and the basic component resources corresponding to the terminal are pulled. Finally, the basic component resources are matched according to the page rendering data corresponding to the terminal for rendering.

[0022] Since the page rendering data of the publishing end has been converted into the page rendering data of the conversion end after it is generated and stored together with the page rendering data of the conversion end, when a third-party terminal calls it, it can directly read the page rendering data corresponding to the terminal and match it with the basic component resources corresponding to the terminal. There is no need to consume extra time and traffic to handle the conversion. This design can improve rendering speed and user experience.

[0023] Specifically, the page rendering data of the publishing end includes rendering data of multiple different components, so step S2 can be refined as follows: S21, converting the rendering data of the components at the publishing end into the rendering data of the components at the conversion end in a one-to-one correspondence.

[0024] S22: Integrate rendering data of different components of the conversion end to generate page rendering data of the conversion end.

[0025] Specifically, the page rendering data of different terminals are stored in different business fields respectively; the terminal identifier is a fixed parameter cpageType, and different values ​​of the parameter cpageType correspond to different terminals respectively, and are matched with the business fields used to store the page rendering data of the terminal corresponding to the parameter cpageType respectively, so step S3 can be refined as follows: S31. The third-party terminal makes a call and returns the parameter cpageType.

[0026] S32. According to the value of the parameter cpageType returned by the terminal, read the page rendering data stored in the business field matching the parameter cpageType.

[0027] S33. Pull the basic component resources corresponding to the value of the parameter cpageType.

[0028] S34. Match basic component resources according to the page rendering data corresponding to the terminal and perform rendering.

[0029] Since what is read is the page rendering data that matches the terminal, what is pulled is also the basic component resources that match the terminal, so a lot of unnecessary resource loading and component rendering can be avoided.

[0030] Another aspect of the present application embodiment provides a multi-terminal integrated rendering low-code platform, such as Figure 1As shown, it includes low-code designer, multi-terminal converter, data module, material system and renderer.

[0031] The low-code designer is used for page design, generating a visual page and publishing it directly, while generating page rendering data for the publishing end.

[0032] The multi-end converter is used to convert the page rendering data of the publishing end into the page rendering data of the conversion end with one click after pressing the conversion button.

[0033] The data module is used to store the page rendering data of the publishing end and the page rendering data of the conversion end.

[0034] The material system has built-in basic component resources for various terminals.

[0035] The renderer is used to read the page rendering data corresponding to the terminal in the data module according to the called terminal identifier, and pull the basic component resources corresponding to the terminal in the material system, and finally match the basic component resources according to the page rendering data corresponding to the terminal for rendering.

[0036] Specifically, Figure 3 As shown, the multi-end converter has a built-in atomic component comparison table, which is used to establish a one-to-one mapping relationship between the control type, control property, control status, control parameter, control default value, control check, etc. of each end component; the multi-end converter is used to convert the rendering data of the components of the publishing end into the rendering data of the components of the conversion end one by one through the atomic component comparison table when converting the page rendering data of the publishing end into the page rendering data of the conversion end, and finally integrate and generate the page rendering data of the conversion end.

[0037] Specifically, the page rendering data of different terminals are respectively stored in different business fields in the data module. The terminal is identified by a fixed parameter cpageType. Different parameters cpageType respectively match the business fields used to store the page rendering data of the terminal corresponding to the parameter cpageType; the renderer is used to read the page rendering data stored in the business field that matches the parameter according to the value of the parameter cpageType returned by the terminal.

[0038] Specifically, in order to more clearly demonstrate the detailed method process / low-code platform execution process of the embodiment of the present application, the following examples are used to illustrate: Example: After using the low-code platform on the PC to design a page, generate a visual page, and publish it, the platform can automatically convert a mobile visual page based on the current page without the need for compilation.

[0039] Define the parameter for the PC side as 1 and the parameter for the mobile side as 2.

[0040] like Figure 1 As shown, when the low-code designer of the PC-side low-code platform is designing a page, it reads the basic component resources in the material system that match the PC-side according to the parameter value of 1. The material system returns these component resources to the low-code designer. The low-code designer generates a visual page through these component resources and publishes it, generates PC-side page rendering data, and stores it in the business field of the PC-side in the data module.

[0041] Click the Convert button, and the multi-terminal converter will convert each PC component rendering data in the PC page rendering data into mobile component rendering data one by one through the atomic comparison table, and finally integrate and generate the mobile page rendering data, and store it in the mobile matching business field in the data module.

[0042] When a third-party terminal calls the renderer, it needs to return parameters.

[0043] If the parameter value is 1, the renderer enters the data module to search and read the PC page rendering data stored in the business field of the PC. The data module returns the PC page rendering data to the renderer. At the same time, the renderer enters the material system to pull the basic component resources corresponding to the PC. The renderer matches the basic component resources corresponding to the PC according to the PC page rendering data, renders, and returns the corresponding page address called by the third party.

[0044] If the parameter value is 2, the renderer enters the data module to search and read the mobile page rendering data stored in the business field of the mobile terminal. The data module returns the mobile page rendering data to the renderer. At the same time, the renderer enters the material system to pull the basic component resources corresponding to the mobile terminal. The renderer matches the basic component resources corresponding to the mobile terminal according to the mobile page rendering data, renders, and returns the corresponding page address called by the third party.

[0045] Specifically, Figure 2 As shown, the material system and data module in the embodiment of the present application are an important functional point of the present invention, and the application effects ultimately generated by the user are all generated under a unified material system and data module standard.

[0046] The material system has built-in basic component libraries for various terminals (basic components common to the front-end field), business components (components defined based on basic components in the business field, which may contain interactions or business data in specific business fields), chart components (chart components common to the front-end field), layout components (components with various layout relationships of front-end pages), blocks (a series of business components and layout components are nested and combined, and no configurable properties are provided to the outside world), pages (composed of components + blocks), templates and other public materials, and can continuously enrich many industry-related public materials.

[0047] The data module outputs a Schema standard data structure with complete description capabilities based on the protocol specifications, material system and low-code rendering engine, and also uses it to complete the management and control of the entire data standard. This provides a practical data foundation for the unification and multi-terminal conversion of the entire data system.

[0048] More specifically, the protocol specification is the general guide of a data standard structure for the entire platform. The core is to keep the output of the upper-level low-code rendering engine (low-code business components, blocks, and applications) consistent, that is, the protocol Schema has complete description capabilities, including configuration information, component tree, component mapping relationship, etc. The format of the top-level attribute key and value must be consistent. Therefore, the protocol specification includes: component mapping relationship, component tree, tool class extension mapping relationship, global constants within the application scope, global styles within the application scope, current application configuration information, etc.

[0049] More specifically, the low-code rendering engine generates high-quality Schema code based on its own defined rendering modules, event binding, data binding, life cycle and other data structures, and under the overall guidance of protocol specifications. Finally, the low-code rendering engine converts the Schema code that conforms to the protocol specifications into renderable code for each terminal of the Vue system.

[0050] More specifically, the page rendering data generated by the platform is high-quality Schema code. The high quality is reflected in the unified data structure, unified data standards, unified data format, etc.; the atomic component comparison table is also established under a unified data environment.

[0051] According to another aspect of the embodiments of the present application, an electronic device is provided, comprising: at least one processor and a memory, wherein the memory stores computer-executable instructions; the computer-executable instructions stored in the memory are executed by the at least one processor, so that the at least one processor executes the multi-terminal integrated rendering method described in the previous embodiments.

[0052] In another aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the device where the storage medium is located is controlled to execute the multi-terminal integrated rendering method described in the above embodiment.

[0053] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application.

Claims

1. A multi-terminal integrated rendering method, characterized in that: include: Generate a visualization page and publish it, generate page rendering data on the publishing end, and store it; Convert the page rendering data of the publishing end into the page rendering data of the conversion end and store it; When responding to a third-party call, based on the calling terminal identifier, the page rendering data corresponding to the terminal is read from the stored page rendering data of the publishing end or the page rendering data of the conversion end, and the basic component resources corresponding to the terminal are pulled. Finally, the basic component resources are matched according to the page rendering data corresponding to the terminal for rendering.

2. The multi-terminal integrated rendering method according to claim 1, characterized in that: The page rendering data of the publishing end includes rendering data of multiple different components. When the page rendering data of the publishing end is converted into the page rendering data of the conversion end, the rendering data of the components of the publishing end are converted one by one into the rendering data of the components of the conversion end, and finally integrated to generate the page rendering data of the conversion end.

3. The multi-terminal integrated rendering method according to claim 1, characterized in that: The page rendering data of different terminals is stored in different business fields; The terminal identifier is a fixed parameter, and different parameters are matched to the business fields for storing the page rendering data of the terminal corresponding to the parameter; In response to the third-party call, the page rendering data stored in the business field matching the parameter is read according to the parameter value of the parameter returned by the terminal.

4. A multi-terminal integrated rendering low-code platform, characterized in that: include: Low-code designer, used to generate a visual page and publish it, generating page rendering data on the publishing end; A multi-end converter, used to convert the page rendering data of the publishing end into the page rendering data of the conversion end; The data module is used to store the page rendering data of the publishing end and the page rendering data of the conversion end; The material system has built-in basic component resources for various terminals; The renderer is used to read the page rendering data corresponding to the terminal in the data module according to the called terminal identifier, and pull the basic component resources corresponding to the terminal in the material system, and finally match the basic component resources according to the page rendering data corresponding to the terminal for rendering.

5. The multi-terminal integrated rendering low-code platform according to claim 4 is characterized in that: The multi-terminal converter has a built-in atomic component comparison table, which is used to establish a one-to-one mapping relationship between the rendering data of the same component on different terminals; The multi-end converter is used to convert the page rendering data of the publishing end into the page rendering data of the conversion end. It uses the atomic component comparison table to convert the rendering data of the components of the publishing end into the rendering data of the components of the conversion end one by one, and finally integrates them to generate the page rendering data of the conversion end.

6. The multi-terminal integrated rendering low-code platform according to claim 4, characterized in that: The page rendering data of different terminals are respectively stored in different business fields in the data module. The terminal identifier is a fixed parameter. The parameter is stored in the data module. Different parameters are matched with the business fields for storing the page rendering data of the terminal corresponding to the parameter. The renderer is used to read the page rendering data stored in the business field matching the parameter according to the parameter value returned by the terminal.

7. An electronic device comprising: At least one processor and a memory, wherein the memory stores computer-executable instructions; characterized in that the computer-executable instructions stored in the memory are executed by the at least one processor, so that the at least one processor executes the multi-terminal integrated rendering method as described in any one of claims 1 to 3.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, the device where the storage medium is located is controlled to execute the multi-terminal integrated rendering method as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Page processing method and device and computer readable storage medium

    CN110400196A

  • Low-code form opening method, system and device based on configuration

    CN114035773A

  • Component dynamic rendering method and device, equipment and medium

    CN114547514A

  • File compiling system and method for low-code application program

    CN116126347A

  • Cross-platform page rendering system, electronic equipment and storage medium

    CN117093316A