CN111694568B - Method and device for generating UI card document - Google Patents

Method and device for generating UI card document Download PDF

Info

Publication number
CN111694568B
CN111694568B CN201910196013.3A CN201910196013A CN111694568B CN 111694568 B CN111694568 B CN 111694568B CN 201910196013 A CN201910196013 A CN 201910196013A CN 111694568 B CN111694568 B CN 111694568B
Authority
CN
China
Prior art keywords
card
description information
description
data format
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910196013.3A
Other languages
Chinese (zh)
Other versions
CN111694568A (en
Inventor
程水强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910196013.3A priority Critical patent/CN111694568B/en
Publication of CN111694568A publication Critical patent/CN111694568A/en
Application granted granted Critical
Publication of CN111694568B publication Critical patent/CN111694568B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to a method for generating a UI card document, which comprises the following steps: acquiring description information of the UI card; storing the description information of the UI card in a description file according to a preset data format; analyzing the description file according to the preset data format to obtain the description information of the UI card; and generating a UI card document with a specified format according to the description information of the UI card. In addition, secondary development can be performed using the description file. By means of the scheme, the UI description information is analyzed more simply and accurately, and a using document or secondary development based on the analyzed description information is easier to generate.

Description

Method and device for generating UI (user interface) card document
Technical Field
The application relates to the technical field of information, in particular to a method and a device for generating a UI card document.
Background
The UI card is called as a UI component, and the page is split into a plurality of UI components, so that the multiplexing efficiency of the UI components can be improved, the code repeated utilization rate can be improved, and the development cost can be reduced; each UI component is used for displaying a small part of the page, and the specific area and the area size of the page corresponding to the UI component are designed by personnel developing the UI component, so that the design is flexible; the development pages in the modern front-end field are constructed into complete pages for users to browse and use basically by developing UI components and then combining and assembling the UI components. Each UI card needs 1 usage document to describe detailed usage information of the card, and meanwhile, a card platform is developed, wherein the card platform needs to acquire the detailed information of all the cards, so that users can drag the cards in a visual mode to directly design pages by using the card information.
The modern front-end field basically uses a scheme of assembling pages by using UI cards, on one hand, developing the UI cards requires compiling corresponding use documents for browsing and reading by using the cards; on the other hand, the languages for writing the documents used by the cards are also various, such as markdown, html and the like, and the use information of the cards can be described, so that the card users can read the use information conveniently.
The method has the disadvantages that the corresponding card use document can only be generated to be watched by people, the method is extremely unfriendly for analyzing the detailed use information of the card by other program modules, and the problems of high difficulty, high cost, low analysis accuracy and the like when the other program modules analyze the detailed use information of the card are caused.
Disclosure of Invention
The application aims to provide a UI card document generation method and device, and solve the problems that in the prior art, the difficulty in analyzing detailed information of a UI card is high, the cost is high, and the analysis accuracy rate is low.
In order to achieve the above object, the present application provides a method for generating a UI card document, the method comprising the steps of: acquiring description information of the UI card; storing the description information of the UI card in a description file according to a preset data format; analyzing the description file according to the preset data format to obtain the description information of the UI card; and generating a UI card document with a specified format according to the description information of the UI card.
Further, the method further comprises: presetting a data format of the description file, wherein the data format is matched with the description information of the UI card.
Further, the method further comprises: when a request for calling the UI card is received, analyzing the description file of the UI card according to the preset data format to obtain the description information of the UI card; and constructing the UI card display effect in a specified page according to the description information of the UI card.
Further, the method further comprises: predefining the type of description information required for constructing the UI card display effect; and presetting the data format of the description file according to the category of the description information.
Further, the method further comprises: the description information of the UI card comprises: one or more of a UI card name, a parameter type, a parameter default value, and a UI card description.
The application also provides a generating device of the UI card document, which comprises an acquisition module, a storage module, an analysis module and a generating module;
the acquisition module is used for acquiring the description information of the UI card;
the storage module is used for storing the description information of the UI card in a description file according to a preset data format;
the analysis module is used for analyzing the description file according to the preset data format to obtain the description information of the UI card;
and the generating module is used for generating the UI card document with the specified format according to the description information of the UI card.
Further, the device further comprises a first setting module for presetting the data format of the description file, wherein the data format is matched with the description information of the UI card.
Further, the apparatus further comprises a construction module;
the analysis module is further used for analyzing the description file of the UI card according to the preset data format to obtain the description information of the UI card when a request for calling the UI card is received;
the construction module is used for constructing the UI card display effect in a specified page according to the description information of the UI card.
Further, the device also comprises a definition module and a second setting module;
the definition module is used for predefining the type of the description information required for constructing the UI card display effect;
and the second setting module is used for presetting the data format of the description file according to the type of the description information.
Further, the description information of the UI card includes: one or more of a UI card name, a parameter type, a parameter default value, and a UI card description.
The present application further provides an electronic device, the device comprising: a storage device and one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize the generation method of the UI card document.
The present application also provides a computer program product comprising computer program instructions for implementing a method for generating a UI card document as described above when the instructions are executed by a processor.
The application also provides a computer readable storage medium, on which a computer program is stored, which when executed, implements a method of generating a UI card document as described above.
Compared with the mode in the prior art, the method and the device for generating the UI card document do not directly write the card using document, but record the detailed information of the card in a specific data format which is simpler and more accurate for program analysis, so that the requirements of other program modules or products which work on the detailed information of the card are met. As for the use document of the UI card, the corresponding use document of the UI card can be automatically generated in advance based on the designed specific data format development tool of the UI card, so that the use document of the UI card can be read by a card user, and the specific data format for describing the detailed information of the UI card is simple and feasible enough for other program modules depending on the detailed information of the UI card to analyze, and is accurately identified.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for generating a UI card document according to the present application.
Fig. 2 is a schematic flow chart of secondary development and utilization of description information of a UI card according to the present application.
Fig. 3 is a schematic block diagram of a UI card document generation apparatus according to the present application.
Detailed Description
To facilitate understanding and implementing of the present application by those of ordinary skill in the art, the technical solutions of the present application are clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
Referring to fig. 1, an embodiment of the present application provides a method for generating a UI card document, where the method includes the following steps:
(1) And acquiring the description information of the UI card.
The method comprises the steps of determining the development quantity of UI cards according to service conditions, developing the UI cards by using front-end related technologies, developing corresponding UI cards by front-end frameworks such as reach and the like according to service conventions, enabling 1 UI card to represent a specific part in a page, and constructing a complete page through combination and assembly of a plurality of UI cards.
When the UI card is developed, description information corresponding to the UI card is written and recorded, and in this embodiment, before the following steps are performed, the written and recorded description information corresponding to the UI card is acquired in advance.
(2) And storing the description information of the UI card in a description file according to a preset data format.
After the description information of the UI card is obtained in advance in the step (1), the obtained description information is stored in the description file according to a preset data format.
Further, the description file may be a json file in a json data format, the description information of the UI card may be recorded in the json data format, and the description information of the UI card may be stored in the json file according to the json data format. Therefore, when the UI card is developed, the description information of the UI card is acquired, the description file of the json data format is written, and the description information of the UI card is stored in the json file of the json data format.
Further, the description information of the UI card includes: one or more of a UI card name, a parameter type, a parameter default value, and a UI card description. Various description information required to be recorded by the UI card is stored in a json file through a json data format, and all the information required to be described of 1 UI card is recorded in 1 json file.
Further, the method further comprises: presetting a data format of the description file, wherein the data format is matched with the description information of the UI card.
The json data format of the json file for storing the description information of the UI card can be preset according to the service characteristics of the json file, and the set json data format is matched with the description information of the UI card to be stored or recorded, for example, the json file records the name of the card through the field name, records the parameter information of the card through the field params, records the UI effect map network address of the card through the field mailmgurl, and the like.
Further, the data format of the description file may be specified or recorded by a format description file. When the json file is used for recording the description information of the UI card, the json data format of the json file can be explained or recorded through a format explanation file, 1 js file is contained in the corresponding attachment of the UI card, and the format explanation of the description file of the UI card for reference is recorded in the attachment.
Each UI card needs at least 1 using document to help a user browse so as to quickly know the detailed using information of the UI card, and the corresponding card using document is directly written in data formats such as markdown/html in the prior art. In the step, each UI card can not directly write a use document, but directly write a json file to record the description information of the UI card, and the use documents of all the UI cards are automatically generated through a special tool, so that card developers do not need to write one by one manually.
(3) And analyzing the description file according to the preset data format to obtain the description information of the UI card.
Further, when the json file is used for storing the description information of the UI card, the json file corresponding to the UI card may be analyzed by a target application program according to the json data format, so as to obtain the description information corresponding to the UI card.
Further, the parsing of the description file may be done automatically by a target application or tool. The target application or tool used for parsing can be developed by using any language, such as nodejs, and the tool directly parses a json file of the UI card to obtain the description information of the UI card.
(4) And generating a UI card document with a specified format according to the description information of the UI card.
After the description information of the UI card is obtained through analysis, a card document in a specified format, such as a markdown card document, is automatically generated by a target application program or a tool. The specific card document is displayed for the user by adopting other data formats such as markdown, html and the like, depends on the developer, and is not fixedly limited. And (3) as long as a tool for automatically generating a corresponding card document by analyzing the card json file is developed, only the description file in the step (2) needs to be written when a new UI card is generated each time, and the card document can be automatically generated for a card user to read after the writing through the target application program or the tool described in the step.
Therefore, no matter how many new UI cards are generated, the tool does not need to be repeatedly developed and can be directly utilized, and documents of all the cards can be automatically generated through the tool.
Example two
Referring to fig. 2, the method of the second embodiment relates to secondary development and utilization of the description information of the UI card, and steps (1) - (2) in the second embodiment are completely the same as steps (1) - (2) in the method of the first embodiment.
Further, the method of embodiment two further comprises:
(3) When a request for calling the UI card by a target platform is received, analyzing the description file of the UI card to obtain the description information of the UI card;
the parsing manner in step (3) is the same as that in step (3) in the first embodiment, and the json file corresponding to the UI card may be parsed by a target application program according to the json data format, so as to obtain the description information corresponding to the UI card.
The parsing of the description file may be done automatically by the target application or tool. The target application or tool used for parsing may be developed using any language, such as nodejs, which directly parses the json file of a UI card to obtain the description information of the UI card.
(4) And constructing the UI card display effect in a specified page according to the description information of the UI card.
The developed UI card needs to generate a corresponding card document to help a user to quickly know the card, and the developed card may have other purposes, for example, a target platform for developing the card can quickly construct a required page effect by dragging the card into a page, and the key step of the product function is that detailed information of the UI card dragged to the page, such as card related information including the name, parameter name, type, default value and the like of the card, needs to be acquired in advance. When the related information of the card needs to be acquired before a new product is generated by secondary development on the basis of the existing card, the related information of the card can only be analyzed from the use document of the card, because the use document of the card is written by adopting a data format such as markdown/html and the like which is easy to display data, the use document is for people to see, and is not analyzed for a program, and the information of the card which needs to be analyzed is often incomplete once the related information of the card is needed to develop the new product in the later period, even if the card document contains the corresponding information, the analysis is difficult because the document format is not rigorous, and the analysis is easy to be wrong. Therefore, it is not friendly to program analysis, and it is very difficult to directly prepare and analyze all information of a card from a document in a format such as card mark down by a program, and the accuracy is not high. With the aid of the second embodiment, since the description information of the UI card is already stored in the description file with the fixed format, the complete description information of the specification can be acquired, so that the presentation effect of the UI card can be easily constructed.
Further, the method further comprises: predefining the type of description information required for constructing the UI card display effect; and presetting the data format of the description file according to the category of the description information. That is to say, the data format of the description file can be predefined according to the needs of the service scenario, so that the subsequent service scenario display needs can be completed quickly by directly using the defined data format.
When the json file is used for storing the description information of the UI card, the data format of the json file can be designed in advance according to the UI card information which needs to be recorded in the service scene of the json file, the json format which is designed after all data needed by card document display and card information which may be needed when other products depending on the card description information are developed in the future are fully considered, the recorded card information is complete, which field in the json format represents what information of the card is designed in advance and agreed well, the json file is very friendly to program analysis, as long as the writing of the UI card json file has no problem, the card information analyzed by other program modules is certainly accurate, and the secondary development can be conveniently carried out.
EXAMPLE III
Referring to fig. 3, a third embodiment of the present application provides a generating device for a UI card document, where the device includes an obtaining module, a storing module, an analyzing module, and a generating module.
The acquisition module is used for acquiring the description information of the UI card.
The method comprises the steps of determining the development quantity of UI cards according to service conditions, developing the UI cards by using front-end related technologies, developing corresponding UI cards by front-end frameworks such as ReaCt and the like according to service conventions, enabling 1 UI card to represent a specific part in a page, and constructing a complete page through the combined assembly of a plurality of UI cards.
When the UI card is developed, the description information corresponding to the UI card is written and recorded, and the obtaining module in this embodiment needs to obtain the written and recorded description information corresponding to the UI card in advance.
The storage module is used for storing the description information of the UI card in a description file according to a preset data format.
After the obtaining module obtains the description information of the UI card in advance, the storage module stores the obtained description information in the description file according to a preset data format.
Further, the description file may be a json file in a json data format, the description information of the UI card may be recorded in the json data format, and the description information of the UI card may be stored in the json file according to the json data format. Therefore, when the UI card is developed, the description information of the UI card is acquired, the description file of the json data format is written, and the description information of the UI card is stored in the json file of the json data format.
Further, the description information of the UI card includes: one or more of a UI card name, a parameter type, a parameter default value, and a UI card description. Various description information required to be recorded by the UI card is stored in a json file through a json data format, and all the information required to be described of 1 UI card is recorded in 1 json file.
Further, the device further comprises a first setting module, which is used for presetting the data format of the description file, wherein the data format is matched with the description information of the UI card.
The json data format of the json file storing the description information of the UI card may be preset according to the service characteristics of the json data format, and the set json data format is matched with the description information of the UI card to be stored or recorded, for example, the json file records the name of the card through the field name, records the parameter information of the card through the field params, and records the UI effect graph network address of the card through the field mailmgurl.
Further, the device also comprises a recording module which can explain or record the data format of the description file through a format description file. When the json file is used for recording the description information of the UI card, the json data format of the json file can be explained or recorded through a format explanation file, 1 js file is contained in the corresponding attachment of the UI card, and the format explanation of the description file of the UI card for reference is recorded in the attachment.
Each UI card needs at least 1 using document to help a user to browse so as to quickly know the detailed using information of the UI card, and the corresponding card using document is directly written in data formats such as markdown/html in the prior art. In the step, each UI card can not directly write a use document, but directly write a json file to record the description information of the UI card, and the use documents of all the UI cards are automatically generated through a special tool, so that card developers do not need to write one by one manually.
And the analysis module is used for analyzing the description file according to the preset data format to obtain the description information of the UI card.
Further, when the json file is used to store the description information of the UI card, the parsing module may parse the json file corresponding to the UI card according to the json data format through a target application program, so as to obtain the description information corresponding to the UI card.
Further, the parsing the description file may be done automatically by a target application or tool. The target application or tool used for parsing may be developed using any language, such as nodejs, which directly parses the json file of a UI card to obtain the description information of the UI card.
And the generating module is used for generating the UI card document in the specified format according to the description information of the UI card.
After the description information of the UI card is obtained through analysis, the generating module automatically generates a card document in a specified format, for example, a card document in a markdown format, through a target application program or a tool. The specific card document is displayed for the user by adopting other data formats such as markdown, html and the like, depends on the developer, and is not fixedly limited. And (3) as long as a tool for automatically generating the corresponding card document by analyzing the card json file is developed, only the description file in the step (2) needs to be written when a new UI card is generated each time, and the card document can be automatically generated for a card user to read by the written target application program or tool described in the step.
Therefore, no matter how many new UI cards are generated, the tool does not need to be repeatedly developed and can be directly utilized, and documents of all the cards can be automatically generated through the tool.
Further, the parsing module is further configured to parse the description file of the UI card to obtain description information of the UI card when a request for invoking the UI card by a target platform is received; and analyzing the json file corresponding to the UI card by a target application program according to the json data format to obtain the description information corresponding to the UI card.
The parsing of the description file may be done automatically by the target application or tool. The target application or tool used for parsing may be developed using any language, such as nodejs, which directly parses the json file of a UI card to obtain the description information of the UI card.
The device also comprises a construction module used for constructing the UI card display effect in a specified page according to the description information of the UI card.
The developed UI card needs to generate a corresponding card document to help a user to quickly know the card, and the developed card may have other purposes, for example, a target platform for developing the card can quickly construct a required page effect by dragging the card into a page, and the key step of the product function is that detailed information of the UI card dragged to the page, such as card related information including the name, parameter name, type, default value and the like of the card, needs to be acquired in advance. When the related information of the card needs to be acquired before a new product is generated by secondary development on the basis of the existing card, the related information of the card can only be analyzed from the use document of the card, because the use document of the card is written by adopting a data format which is easier to display data, such as markdown/html and the like, the use document is for people to see and is not for program analysis, and the information of the card which needs to be analyzed is often incomplete when the related information of the card is needed to develop the new product in the later period, even if the card document contains the corresponding information, the analysis is difficult because the document format is not rigorous, and the analysis is easy to be wrong. Therefore, it is not friendly to program analysis, and it is very difficult to directly prepare and analyze all information of a card from a document in a format such as card mark down by a program, and the accuracy is not high. With the aid of the second embodiment, since the description information of the UI card is already stored in the description file with the fixed format, the complete description information of the specification can be acquired, so that the presentation effect of the UI card can be easily constructed.
Further, the device further comprises a definition module and a second setting module. The definition module is used for predefining the category of the description information required for constructing the UI card display effect; and the second setting module is used for presetting the data format of the description file according to the type of the description information. That is, the data format of the description file can be predefined according to the needs of the service scenario, so that the subsequent service scenario display needs can be quickly completed by directly using the defined data format.
When the json file is used for storing the description information of the UI card, the data format of the json file can be designed in advance according to the UI card information which needs to be recorded in the service scene of the json file, the json format which is designed after all data needed by card document display and card information which may be needed when other products depending on the card description information are developed in the future are fully considered, the recorded card information is complete, which field in the json format represents what information of the card is designed in advance and agreed well, the json file is very friendly to program analysis, as long as the writing of the UI card json file has no problem, the card information analyzed by other program modules is certainly accurate, and the secondary development can be conveniently carried out.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, modules and units may refer to the corresponding processes of the foregoing method embodiments, and are not described herein again.
In addition, the embodiment of the application also discloses an electronic device, which comprises a storage device and one or more processors, wherein the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize the method according to the first embodiment and the second embodiment.
The embodiment of the application also discloses a computer program product which comprises computer program instructions and is used for realizing the method of the first embodiment and the second embodiment when the instructions are executed by a processor.
The embodiment of the application also discloses a computer readable storage medium, wherein a computer program is stored, and when the computer program is executed, the method of the first embodiment and the second embodiment is realized.
Compared with the prior art, the method and the device solve the problem that the key point that related information of the UI card is difficult to analyze directly from the document after the UI card is written and used by the past is that 1 set of UI card description formats meeting the service requirements of the UI card are designed on the basis of a specific data format, the formats can record all information needing to be described of the UI card, the information can be used in the card document display, and the needed related information of the UI card is also completely recorded in the specific data format of the set of UI card for new products possibly generated by secondary development based on the card. Once the information which is possibly used later by the card is recorded in the designed specific data format of the UI card, then a card platform and other products which rely on obtaining detailed information of the card can be developed in the future, all information of the card can be obtained by directly analyzing the description file of the specific data format of the card through a program, and the specific data format is supported by any programming language.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods, apparatus and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart and block diagrams may represent a unit, module, segment, or portion of code, which comprises one or more computer-executable instructions for implementing the logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. It will also be noted that each block or combination of blocks in the block diagrams and flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the use of the phrase "comprising a. -. Said" to define an element does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application, and is provided by way of illustration only and not limitation. It will be apparent to those skilled in the art from this disclosure that various other modifications and variations can be made without departing from the scope of the invention.

Claims (13)

1. A method for generating a UI card document, the method comprising the steps of:
acquiring description information of the UI card;
storing the description information of the UI card in a description file according to a preset data format;
analyzing the description file according to the preset data format to obtain the description information of the UI card;
and generating a UI card document with a specified format for a card user to read according to the description information of the UI card so that the card user can know the use information of the UI card.
2. The method of claim 1, further comprising:
presetting a data format of the description file, wherein the data format is matched with the description information of the UI card.
3. The method of claim 1, further comprising:
when a request for calling the UI card is received, analyzing the description file of the UI card according to the preset data format to obtain the description information of the UI card;
and constructing the UI card display effect in a specified page according to the description information of the UI card.
4. The method of claim 3, further comprising:
predefining the type of description information required for constructing the UI card display effect;
and presetting the data format of the description file according to the category of the description information.
5. The method according to any one of claims 1 to 4, characterized in that:
the description information of the UI card comprises: one or more of a UI card name, a parameter type, a parameter default value, and a UI card description.
6. A generation device of a UI card document is characterized by comprising an acquisition module, a storage module, an analysis module and a generation module;
the acquisition module is used for acquiring the description information of the UI card;
the storage module is used for storing the description information of the UI card in a description file according to a preset data format;
the analysis module is used for analyzing the description file according to the preset data format to obtain the description information of the UI card;
the generating module is used for generating the UI card document with the specified format for the card user to read according to the description information of the UI card, so that the card user can know the use information of the UI card.
7. The apparatus according to claim 6, further comprising a first setting module for presetting a data format of the description file, wherein the data format matches with the description information of the UI card.
8. The apparatus of claim 6, further comprising a build module;
the analysis module is further used for analyzing the description file of the UI card according to the preset data format to obtain the description information of the UI card when a request for calling the UI card is received;
the construction module is used for constructing the UI card display effect in a specified page according to the description information of the UI card.
9. The apparatus of claim 8, further comprising a definition module and a second setup module;
the definition module is used for predefining the type of the description information required for constructing the UI card display effect;
and the second setting module is used for presetting the data format of the description file according to the type of the description information.
10. The apparatus according to any one of claims 6 to 9, wherein:
the description information of the UI card comprises: one or more of a UI card name, a parameter type, a parameter default value, and a UI card description.
11. An electronic device, characterized in that the device comprises:
a storage device;
one or more processors;
wherein the storage is to store one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method of generating a UI card document as claimed in any of claims 1-5.
12. A computer program product comprising computer program instructions for implementing a method of generating a UI card document as claimed in any of claims 1-5 when said instructions are executed by a processor.
13. A computer-readable storage medium on which is stored a computer program that, when executed, implements a method of generating a UI card document according to any of claims 1-5.
CN201910196013.3A 2019-03-15 2019-03-15 Method and device for generating UI card document Active CN111694568B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910196013.3A CN111694568B (en) 2019-03-15 2019-03-15 Method and device for generating UI card document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910196013.3A CN111694568B (en) 2019-03-15 2019-03-15 Method and device for generating UI card document

Publications (2)

Publication Number Publication Date
CN111694568A CN111694568A (en) 2020-09-22
CN111694568B true CN111694568B (en) 2023-04-07

Family

ID=72475745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910196013.3A Active CN111694568B (en) 2019-03-15 2019-03-15 Method and device for generating UI card document

Country Status (1)

Country Link
CN (1) CN111694568B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1821956A (en) * 2005-02-17 2006-08-23 微软公司 Using existing content to generate active content wizard executables for execution of tasks
CN105094836A (en) * 2015-08-11 2015-11-25 北京京东尚科信息技术有限公司 Method and device for generating description document
CN105718441A (en) * 2016-01-13 2016-06-29 南京大学 Method and device for searching UI modules with similar functions between different platforms
CN107589944A (en) * 2017-08-23 2018-01-16 广州视源电子科技股份有限公司 Method for building up, device and the computer equipment of Man Machine Interface, storage medium
CN108958735A (en) * 2018-07-16 2018-12-07 山东威尔数据股份有限公司 A kind of UI reconstructing method of terminal assemblyization application
CN109032722A (en) * 2018-06-27 2018-12-18 广州视源电子科技股份有限公司 Update method, device and equipment, the medium of the display effect of UI component
CN109460276A (en) * 2018-10-25 2019-03-12 北京字节跳动网络技术有限公司 The page and page configuration document generating method, device, terminal device and medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100115394A1 (en) * 2005-06-24 2010-05-06 Justsystems Corporation Document processing device and document processing method
US20070150816A1 (en) * 2005-12-22 2007-06-28 Innopath Software, Inc. User interface authoring utility for changing user interface elements on wireless devices
US8819624B2 (en) * 2011-09-26 2014-08-26 Intel Corporation Simulation of web applications and secondary devices in a web browser, web application development tools, and methods using the same

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1821956A (en) * 2005-02-17 2006-08-23 微软公司 Using existing content to generate active content wizard executables for execution of tasks
CN105094836A (en) * 2015-08-11 2015-11-25 北京京东尚科信息技术有限公司 Method and device for generating description document
CN105718441A (en) * 2016-01-13 2016-06-29 南京大学 Method and device for searching UI modules with similar functions between different platforms
CN107589944A (en) * 2017-08-23 2018-01-16 广州视源电子科技股份有限公司 Method for building up, device and the computer equipment of Man Machine Interface, storage medium
CN109032722A (en) * 2018-06-27 2018-12-18 广州视源电子科技股份有限公司 Update method, device and equipment, the medium of the display effect of UI component
CN108958735A (en) * 2018-07-16 2018-12-07 山东威尔数据股份有限公司 A kind of UI reconstructing method of terminal assemblyization application
CN109460276A (en) * 2018-10-25 2019-03-12 北京字节跳动网络技术有限公司 The page and page configuration document generating method, device, terminal device and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
喻健 ; 朱三元 ; .基于Entity Framework和easyUI的毕业论文管理系统.软件工程.2016,(第12期),全文. *
朱永生 ; 王军 ; .基于Web内容的一种数据自动抽取方法.计算机技术与发展.2012,(第05期),全文. *

Also Published As

Publication number Publication date
CN111694568A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN106648690B (en) Automatic code generation method and device
CN107729475B (en) Webpage element acquisition method, device, terminal and computer-readable storage medium
US20210042662A1 (en) Interactive Information Capture and Retrieval with User-Defined and/or Machine Intelligence Augmented Prompts and Prompt Processing
KR101752575B1 (en) System and method for visualizing big data in learning analytics
CN111818123A (en) Network front-end remote playback method, device, equipment and storage medium
CN106933887A (en) A kind of data visualization method and device
US20140280352A1 (en) Processing semi-structured data
CN111651966A (en) Data report file generation method and device and electronic equipment
CN110806866A (en) Generation method and device of front-end management system
WO2016131360A1 (en) Widget file generation method and apparatus
CN113704344A (en) Data filing method, device, equipment and storage medium based on form template
CN111694568B (en) Method and device for generating UI card document
CN117389562A (en) Front-end code visual configuration and intelligent generation method and system based on Vue
CN112711536A (en) Automatic dial testing method and system, and computer readable storage medium
CN105450698B (en) A kind of exposure Log Collect System and method
CN105718434A (en) Natural language formula editing method and system
US20060248443A1 (en) System and method for exporting spreadsheet data
CN113220381A (en) Click data display method and device
CN111428452A (en) Comment data storage method and device
US20150142576A1 (en) Methods and mobile devices for displaying an adaptive advertisement object and systems for generating the adaptive advertisement object
CN113485963A (en) Information acquisition method and device and computer storage medium
CN110928540A (en) Page generation method and device
CN110309455B (en) Method, device and equipment for displaying OLE vector diagram
CN111694758B (en) Test code automatic generation method, device, computer equipment and storage medium
CN112835774A (en) Visualization method and device for performance of display card, equipment and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant