Generation method and device of description document, computer equipment and storage medium
By obtaining and using the description information of UI interface resources to generate description documents, the problem of low efficiency in generating UI interface description documents is solved, and the effect of rapid generation and reduction of repeated descriptions is achieved.
Patent Information
- Application Number
- CN202410788162.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-01
AI Technical Summary
In game development and APP development, the generation efficiency of UI interface description documents is low because the same UI element needs to describe the same content repeatedly on different pages.
By obtaining the description information of the target interface resources, reading and generating description documents from the resource library, it can reduce repeated descriptions and improve generation efficiency.
It improves the efficiency of generating documentation, reduces the workload and time for developers, and improves work efficiency.
Smart Images

Figure CN118733110A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, computer equipment and storage medium for generating a description document. Background Art
[0002] Game development, APP (Application) development and the development and production of physical products often follow certain specifications and standards. For example, in game development, planners and interface designers need to write corresponding documentation based on the completed UI interface to tell the program how to operate the UI interface, such as which game event in the game will be triggered after the player operates a certain UI element on the UI interface.
[0003] In the related art, the description document of the UI interface is prepared by the interface designer after the UI interface of the entire game is prepared. However, since the same UI element may appear multiple times on different pages, the same content needs to be described repeatedly when writing the description document, which affects the efficiency of preparing the description document. Summary of the invention
[0004] The embodiments of the present application provide a method, apparatus, computer device and storage medium for generating a description document, which can improve the efficiency of generating the description document.
[0005] The present application provides a method for generating a description document, the method comprising:
[0006] In response to an interface resource setting operation for a target interface to be generated, acquiring the set target interface resource from a resource library, generating and displaying the target interface based on the target interface resource, wherein the resource library includes a plurality of interface resources;
[0007] Obtaining description information corresponding to the target interface resource;
[0008] Generate a description document corresponding to the target interface according to the description information of the target interface resources.
[0009] Accordingly, the embodiment of the present application further provides a device for generating a description document, the device comprising:
[0010] A first acquisition unit, configured to, in response to an interface resource setting operation for a target interface to be generated, acquire the set target interface resource from a resource library, generate the target interface based on the target interface resource and display it, wherein the resource library includes a plurality of interface resources;
[0011] A second acquisition unit, used to acquire description information corresponding to the target interface resource;
[0012] A generating unit is used to generate a description document corresponding to the target interface according to the description information of the target interface resources.
[0013] Correspondingly, an embodiment of the present application also provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes any method for generating a description document provided in any embodiment of the present application.
[0014] Correspondingly, an embodiment of the present application further provides a storage medium, which stores a plurality of instructions, and the instructions are suitable for loading by a processor to execute the above-mentioned method for generating a description document.
[0015] In the embodiment of the present application, in response to the interface resource setting operation of the target interface to be generated, the set target interface resource can be obtained from the resource library, and the target interface can be generated and displayed based on the target interface resource, wherein the resource library includes multiple interface resources; the description information corresponding to the target interface resource can be obtained; and the description document corresponding to the target interface can be generated according to the description information of the target interface resource. In this way, by obtaining the interface resource and reading the description information corresponding to the interface resource during the process of generating the target interface, the description document of the target interface can be quickly generated according to the description information of the interface resource read after the target interface is generated, thereby improving the generation efficiency of the description document. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0017] Figure 1 A flowchart of a method for generating a description document provided in an embodiment of the present application.
[0018] Figure 2 A schematic diagram of an application scenario of a method for generating a description document provided in an embodiment of the present application.
[0019] Figure 3 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application.
[0020] Figure 4 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application.
[0021] Figure 5 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application.
[0022] Figure 6 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application.
[0023] Figure 7 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application.
[0024] Figure 8 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application.
[0025] Fig. 9 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application.
[0026] Fig.10 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application.
[0027] Fig.11 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application.
[0028] Fig.12 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application.
[0029] Fig.13 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application.
[0030] Fig.14 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application.
[0031] Fig.15 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application.
[0032] Fig.16 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application.
[0033] Fig.17 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application.
[0034] Fig.18 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application.
[0035] Fig.19 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application.
[0036] Fig. 20 A structural block diagram of a device for generating a description document provided in an embodiment of the present application.
[0037] Fig.21 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0039] The embodiments of the present application provide a method, device, storage medium and computer equipment for generating a description document. Specifically, the method for generating a description document of the embodiments of the present application can be performed by a computer device, wherein the computer device can be a terminal or a server. The terminal can be a terminal device such as a smart phone, a tablet computer, a laptop computer, a touch screen, a personal computer (PC, Personal Computer), a personal digital assistant (Personal Digital Assistant, PDA), etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network), and big data and artificial intelligence platforms.
[0040] For example, the computer device may be a terminal, which may respond to an interface resource setting operation for a target interface to be generated, obtain the set target interface resources from a resource library, generate and display a target interface based on the target interface resources, wherein the resource library includes multiple interface resources; obtain description information corresponding to the target interface resources; and generate a description document corresponding to the target interface based on the description information of the target interface resources.
[0041] Based on the above problems, the embodiments of the present application provide a first method, apparatus, computer device and storage medium for generating a description document, which can improve the efficiency of generating the description document.
[0042] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0043] An embodiment of the present application provides a method for generating a description document, which can be executed by a terminal or a server. The embodiment of the present application takes the method for generating a description document executed by a terminal as an example for description.
[0044] See also Figure 1 , Figure 1 A flowchart of a method for generating a description document provided in an embodiment of the present application. Taking the method for generating a description document applied to a terminal as an example, the specific process may be as follows:
[0045] 101. In response to an interface resource setting operation for a target interface to be generated, the set target interface resources are acquired from a resource library, and the target interface is generated and displayed based on the target interface resources.
[0046] In the embodiment of the present application, the target interface to be generated refers to an application interface that needs to be designed for the application during the application development process. The application interface is an intuitive display of the interaction between the user and the application.
[0047] For example, the application program may be a game application, and the target interface to be generated may be a game interface of the game application.
[0048] The interface resource setting operation may be used to trigger setting of interface resources on a target interface.
[0049] Among them, interface resources refer to various elements and materials used to create application interfaces. For example, interface resources can include but are not limited to: icons, images, fonts, colors, layouts, buttons, menus, dialog boxes, etc.
[0050] Among them, icons are graphic symbols that can be used in applications to represent functions or commands; images can be used to enhance the visual appeal of the interface or provide a background; fonts and colors define the style and appearance of text in the application; layouts define the arrangement and position of elements on the interface, which is essential for achieving a clear and intuitive user experience. Common layouts include lists, grids, cards, etc.; controls are elements through which users interact with applications, such as buttons, text boxes, sliders, etc., allowing users to enter information or perform operations; menus provide access to application functions; and dialog boxes are used to display information or obtain user input.
[0051] Specifically, the role of interface resources in application design is to provide a consistent, intuitive, and easy-to-use user interface, which can help users quickly understand the functions and operation methods of the application, thereby improving user satisfaction and efficiency.
[0052] In application development, interface resources are usually organized in resource files or resource libraries for easy management and access. These interface resources can be stored and edited using specific file formats (such as XML, PNG, JPG, etc.).
[0053] The resource library may include multiple interface resources.
[0054] In some embodiments, in order to facilitate the user to design the target interface, the step of "responding to the interface resource setting operation for the target interface to be generated, obtaining the set target interface resource from the resource library, generating the target interface based on the target interface resource and displaying it" may include the following operations:
[0055] Display the first page;
[0056] In response to dragging a target interface resource in the interface resource selection area to the generated interface preview area, acquiring the target interface resource from the resource library;
[0057] Add the target interface resource to the generated interface preview area to obtain the target interface.
[0058] In the embodiment of the present application, the first page refers to a page in the design application that can be used to make an interface. The design application can be used to design an interface, and the design application can be an application installed on a terminal to provide design services to users.
[0059] The first page may include an interface resource selection area and a generated interface preview area, wherein the interface resource selection area includes multiple interface resources in the resource library, and the user can select a target interface resource for setting the target interface from the multiple interface resources in the interface resource selection area. The generated interface preview area can be used to display the target interface produced in real time.
[0060] For example, see Figure 2 , Figure 2 A schematic diagram of an application scenario of a method for generating a description document provided in an embodiment of the present application. Figure 2 The first page shown includes an interface resource selection area and a generated interface preview area. The interface resource selection area may include multiple interface resources in the resource library, for example, it may include: resource A, resource B, resource C, resource D, resource E, resource F, resource G, etc.
[0061] The target interface resources refer to the interface resources constituting the target interface.
[0062] In some embodiments, the user can select the target interface resource from the interface resource selection area of the first page, and then drag the selected target interface resource to the generated interface preview area of the first page, which can trigger the acquisition of the target interface resource from the resource library and add it to the generated interface preview area to obtain the target interface.
[0063] Among them, the name of the interface resource may be displayed in the interface resource selection area. The user selects the name of an interface resource from the interface resource selection area and then drags it to the generated interface preview area, which can trigger the acquisition of the display identifier corresponding to the interface resource name from the resource library (that is, the visual representation of the interface resource).
[0064] For example, see Figure 3 , Figure 3 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application. Figure 3 In the first page shown on the upper side, multiple interface resource names are displayed, namely: resource A, resource B, resource C, resource D, resource E, resource F, resource G. When it is detected that the user selects "resource A" and drags it to the generated interface preview area, the display identifier corresponding to resource A can be obtained from the resource library, and the display identifier of resource A is added to the generated interface preview area for display.
[0065] That is to say, Figure 3 In the first page shown at the bottom, the display mark of resource A is displayed in the generated interface preview area. The display position of the display mark of resource A in the generated interface preview area can be adjusted.
[0066] Furthermore, the target interface may be constructed according to each target interface resource added to the generated interface preview area.
[0067] In some embodiments, in order to facilitate the user to quickly select a desired interface resource from the interface selection area, the method may display multiple interface resources in the interface resource selection area by category.
[0068] For example, see Figure 4 , Figure 4 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application. Figure 4 The interface resource selection area of the first page shown may include multiple resource categories, such as background, button, border, title, etc. The background category may include all interface resources belonging to the background type, the button category may include all interface resources belonging to the button type, the border category may include all interface resources belonging to the border type, and the title category may include all interface resources belonging to the title type.
[0069] In this way, by displaying multiple interface resources in the resource library in the interface resource selection area in a classified form, it is convenient for users to quickly find interface resources for making interfaces.
[0070] For example, see Figure 5 , Figure 5 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application. Figure 5 In the first page shown on the upper side, when a user's selection operation on the background is detected, it can trigger the display of multiple interface resources in the background category in the interface resource selection area, such as resource A, resource B, and resource C.
[0071] In some embodiments, in order to meet the needs of more interface resources, the method may further include:
[0072] In response to a resource addition event for a resource library, obtaining a newly added interface resource and description information corresponding to the newly added interface resource;
[0073] The newly added interface resources and the description information corresponding to the newly added interface resources are associated and stored in the resource library.
[0074] The resource addition event indicates that a new interface resource is added to the resource library, and the new interface resource is the interface resource that needs to be added to the resource library.
[0075] The description information refers to information used to describe the name, characteristics, status, operation and / or feedback after the operation of the interface resource. The name may refer to the file name of the interface resource; the category refers to the resource category to which the interface resource belongs; the characteristic may refer to the characteristic information of the interface resource; the status refers to the display status of the interface resource under different conditions; the operation refers to the operation mode of the interface resource (that is, the interaction mode between the user and the interface resource); the feedback information after the operation refers to the feedback event triggered after the user interacts with the interface resource, etc.
[0076] In an embodiment of the present application, when adding a new interface resource to the resource library, in addition to naming and classifying the interface resource, descriptive text and replaceable "attributes" can also be added to the interface resource.
[0077] For example, for an interface resource of a function button, the description text may be: "The player clicks this button to open page A on top of this page". The "click" and "page A" in the description text are replaceable attributes in the description text, that is, they can be replaced by other information with the same attributes. Alternatively, for an interface resource of a close button, the description text may be: "The player clicks this button to close this page", wherein the "click" in the description text is a replaceable attribute in the description text, for example, "click" can be replaced with "double-click", "long press", etc.
[0078] In some embodiments, different types of interface resources may have different description texts and different replaceable "attributes".
[0079] For example, the interface resource may be button A, which may have multiple sizes, such as S size, M size, L size, XL size, etc. For example, for button A of size S, the description text may be defined as:
[0080] ①Button text "Click";
[0081] ② Status: Available status——“Please enter status conditions”; Disabled status——“Please enter status conditions”;
[0082] ③ The player clicks in the available state to confirm the operation, closes this page, and enters page A.
[0083] Among them, the available state refers to the available state of the interface resource; the disabled state refers to the unavailable state of the interface resource; please enter the state condition: refers to the executable function (that is, the description text entered by the user) in the corresponding state. For example, in the available state, the description text entered can be "Click the resource to trigger XXX"; in the unavailable state: the description text entered can be "Click the resource, do not trigger XX".
[0084] In some embodiments, in order to facilitate users to add new interface resources, the step of "responding to a resource addition event for a resource library, obtaining the new interface resource and description information corresponding to the new interface resource" may include the following operations:
[0085] Display the second page;
[0086] In response to an interface resource upload operation in a resource upload area, obtaining an uploaded newly added interface resource;
[0087] In response to the information editing operation in the description editing area, description information corresponding to the newly added interface resource is determined.
[0088] In the embodiment of the present application, the second page refers to a page in the design application that can be used to add new interface resources to the resource library.
[0089] The second page may include a resource upload area and a description editing area. The resource upload area may be used to set the interface resources to be added to the resource library; the description editing area is used to configure description information for the added interface resources, that is, the user defines description information for the added interface resources.
[0090] Among them, the interface resource upload operation can be used to load the newly added interface resources into the resource upload area for display.
[0091] For example, see Figure 6 , Figure 6 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application. Figure 6 The second page shown includes a resource upload area and a description editing area. The resource upload area displays an upload control and an upload prompt message "Please upload resources". The user can click the upload control to trigger uploading of the newly added interface resources.
[0092] The description editing area may include multiple editing sub-areas, and different editing sub-areas may be used by users to edit different description information of the newly added interface resources. For example, the multiple editing sub-areas may include: an editing sub-area corresponding to the resource name, which may be used to define the name of the newly added interface resource; an editing sub-area corresponding to the classification, which may be used to define the category of the newly added interface resource; an editing sub-area corresponding to the document description, which may be used to define other description information of the newly added interface resource, such as information about the operation and / or feedback after the operation, etc.
[0093] When defining the category of the newly added interface resource through the editing sub-area corresponding to the classification, a new resource category can be input by user-defined, or a resource category can be selected from the existing resource categories as the resource category to which the newly added interface resource belongs.
[0094] Among them, in response to the interface resource upload operation in the resource upload area, obtaining the uploaded new interface resources can include: when detecting a user click operation on the upload control in the resource upload area, selecting a new interface resource from the local or network, and then obtaining the new interface resource from the local or network and displaying it in the resource upload area.
[0095] Among them, in response to the information editing operation in the description editing area, determining the description information corresponding to the newly added interface resources can include: when detecting the user's input operation in each editing sub-area in the description editing area, obtaining the input information corresponding to the input operation, which can be used as the description information of the newly added interface resources.
[0096] For example, see Figure 7 , Figure 7 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application. Figure 7 In the second page shown on the upper side, if it is detected that the user uploads a new interface resource 1 from the local through the upload control, the new interface resource 1 can be obtained from the local and displayed in the resource upload area.
[0097] That is to say, Figure 7 The second page shown at the lower side has a display mark of the newly added interface resource 1 displayed in the resource upload area.
[0098] For another example, please continue to see Figure 7 ,exist Figure 7 In the second page shown at the lower side, the user has uploaded a newly added interface resource 1, and can define description information for the newly added interface resource 1, for example, edit the resource name through the editing sub-area corresponding to the resource name.
[0099] Among them, in an embodiment of the present application, when a user uploads a new interface resource to the resource upload area for display, the file name of the new interface resource can be automatically imported and displayed in the editing sub-area of the resource name, that is, the file name of the new interface resource is used as the resource name.
[0100] That is, Figure 7 In the example, the file name of the newly added interface resource 1 can be "icon_hero_army_btn_locked", and the file name can be displayed in the editing sub-area corresponding to the resource name.
[0101] In this case, a category of newly added interface resource 1 may be created or selected in the category editing sub-area, such as the "button" category.
[0102] Among them, you can enter the operation and operation feedback information in the editing sub-area described in the document, such as "after clicking, open interface A", which means that during the operation of the target interface, when it is detected that the user clicks the newly added interface resource 1 on the target interface, it can trigger the opening of interface A.
[0103] In some embodiments, in order to facilitate adjustment of the attributes of some information in the description information of the newly added interface resource, the method may further include the following steps:
[0104] receiving a target text input for the first description editing sub-region, and obtaining editable information in the description information based on the target text;
[0105] In response to the property setting operation for the target field in the target text, the target field is set as an editable property in the target text, so as to adjust the property of the target field in the target text in the description document.
[0106] The description editing area includes a first description editing sub-area, which can be Figure 6 The description editing area shown shows the editing sub-area corresponding to the document description.
[0107] The target text refers to the text input by the user in the first description editing sub-area.
[0108] In some embodiments, the information in the description information can be divided into editable information and non-editable information. The editable information refers to the part of the description information of the interface resources stored in the resource library that can be edited by the user (for example, resource name, category, status, etc.); the non-editable information refers to the part of the description information of the interface resources stored in the resource library that cannot be edited by the user (for example, operation mode, operation trigger feedback, etc.).
[0109] For example, the description information may include: resource name, resource category, operation, and operation triggering feedback, etc. Then, the resource name and resource category in the description information may be classified as non-editable information, and the operation and operation triggering feedback, etc. in the description information may be classified as editable information.
[0110] The target field refers to a part of the target text. Specifically, the target field may be text whose attributes can be adjusted in the operation and operation trigger feedback information.
[0111] For example, the target text may be: "The player clicks this button to trigger the opening of page A on the current page." The "player clicks this button" in the target text may be operation information; and "trigger the opening of page A on the current page" may be operation trigger feedback information. Among them, the "click" field and the "page A" field in the target text may be texts that can be adjusted for attributes. For example, the "click" field may be switched to a field of the same attribute, such as "press," "slide," etc.; and the "page A" may be switched to a field of the same attribute, such as "page B," "page C," etc.
[0112] The attribute setting operation can be used to set the target field as a field in the target text whose attributes can be adjusted.
[0113] In some embodiments, a property editing control may also be provided in the description editing area, and the property editing control may be used to set property adjustments for fields in the target text.
[0114] For example, see Figure 8 , Figure 8 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application. Figure 8 In the second page shown, the user enters the target text "Player clicks this button to trigger the opening of page A on the current page" in the sub-editing area corresponding to the document description, and the target text can be used as editable information in the description information.
[0115] Among them, in response to the property setting operation for the target field in the target text, it can include: when a field selection operation on the target text is detected, the target field is determined to be "clicked", and then a trigger operation on the property editing control is detected, the target field can be set as an editable property in the target text, that is, other properties can be added to the target field, so as to adjust the properties of the target field in the target text in the description document.
[0116] For example, you can add attributes of the same type as "click" to the target field, such as "press", "swipe", etc.
[0117] The description document refers to information that describes in detail the design, layout, interaction method, and user experience of the UI interface. The description document can be used by developers to implement the interactive functions of each UI element on the interface.
[0118] In some embodiments, the same interface resource may have different display states. When a user adds a new interface resource to the resource library, different state information may be configured for the newly added interface resource.
[0119] For example, see Fig. 9 , Fig. 9 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application. Fig. 9 The second page shown on the upper side may also provide a state setting control. After the user uploads a new interface resource through the upload control, the state setting control may be used to configure the state information of the new interface resource. For example, click the state setting control to add state 1 to the new interface resource. Accordingly, an editing sub-area corresponding to the state name is added to the description editing area. The editing sub-area corresponding to the state name can be used to edit the state name of the new interface resource.
[0120] That is to say, Fig. 9 The second interface is shown on the lower side, in which the resource upload area displays a prompt icon of "status one" corresponding to the newly added interface resource 1, indicating that state one has been added to the newly added interface resource 1; wherein, the description editing area displays an editing sub-area corresponding to the state name, and the editing sub-area corresponding to the state name can be used to define the state name of state one of the newly added interface resource 1.
[0121] For example, see Fig.10 , Fig.10 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application. Fig.10In the second page shown, the user has uploaded a new interface resource 1, so the description information of the new interface resource 1 can be defined. For example, through the editing sub-area corresponding to the resource name, the file name of the new interface resource 1 can be defined as "icon_hero_army_btn_locked", and the file name can be displayed in the editing sub-area corresponding to the resource name.
[0122] In this case, a category of newly added interface resource 1 may be created or selected in the category editing sub-area, such as the "button" category.
[0123] The state name corresponding to the state of the newly added interface resource may be defined in the edit sub-area of the state name, such as “unlocked”.
[0124] In the editing sub-area of the document description, an operation and operation feedback information can be input, such as "after clicking, open interface A", which means that during the operation of the target interface, when it is detected that the user clicks the newly added interface resource 1 on the target interface, the opening of interface A can be triggered. At this time, the text information edited in the editing sub-area corresponding to the document description can be the information of the newly added interface resource 1 in "state 1".
[0125] In some embodiments, some interface resources in the resource library may have different states. The states of the interface resources may include an available state and an unavailable state. When the interface resource is in an available state, an operation feedback event in the available state may be triggered by interacting with the interface resource; when the interface resource is in an unavailable state, an operation feedback event in the unavailable state may be triggered by interacting with the interface resource, etc.
[0126] For example, the prize claim control in the game interface may include a triggerable prize claim state and a non-triggerable prize claim state; in which, when the prize claim state is triggerable, the user-defined description text may be: click the prize claim control to display the prompt information for claiming the prize (for example, directly claim the reward, or jump to the prize claim page); in the non-triggerable prize claim state, the user-defined description text may be: click the prize claim control to display the prompt information that the prize cannot be claimed.
[0127] In some embodiments, the same interface resource may have different display styles in different states, such as different colors, different transparencies, different brightness, etc.
[0128] In an embodiment of the present application, after the user uploads a new interface resource through the second page and defines description information for the new interface resource, the new interface resource can be associated with its corresponding description information and stored in the resource library to facilitate subsequent calls.
[0129] 102. Obtain description information corresponding to the target interface resource.
[0130] The obtaining of the description information corresponding to the target interface resource may be obtaining the description information associated with the target interface resource from a resource library.
[0131] Since the resource library stores various interface resources uploaded by users and description information of the interface resources, when drawing the target interface, the description information of the interface resources added to the target interface can be directly obtained from the resource library.
[0132] In some embodiments, if the target interface resource does not have associated description information stored in the resource library, obtaining the description information corresponding to the target interface resource may include: the user inputs description information for the target interface resource, and obtaining the description information input by the user as the description information corresponding to the target interface resource. At the same time, the description information may be stored in the resource library in association with the target interface resource, so as to facilitate quick acquisition of the description information when the target interface resource is used subsequently.
[0133] 103. Generate a description document corresponding to the target interface according to the description information of the target interface resources.
[0134] Among them, the description document corresponding to the target interface can be a document that includes information describing the design, layout, interaction method, etc. of the target interface, which can be used by developers to implement the interactive functions of various interface resources on the target interface.
[0135] For example, the description document of the target interface may at least include: various interface resources constituting the target interface, and description information corresponding to each interface resource.
[0136] In some embodiments, in order to facilitate the rapid generation of the description document, the first page may provide a one-click generation control, and the step of "generating the description document corresponding to the target interface according to the description information of the target interface resource" may include the following operations:
[0137] After the target interface is produced, in response to a trigger operation for the one-key generation control, a description document is generated according to each target interface resource of the target interface and description information corresponding to each target interface resource.
[0138] For example, see Fig.11 , Fig.11 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application. Fig.11 The first page shown shows a completed target interface, and the target interface resources in the target interface may include: resource A, resource B, resource E, resource F, and resource D.
[0139] The first page also provides a one-click generation control, which displays a prompt message "Generate instruction document", which can prompt the user to generate an instruction document corresponding to the target interface by triggering the one-click generation control. When a click operation on the one-click generation control is detected, the instruction document corresponding to the target interface can be generated according to each target interface resource and the description information of each target interface resource.
[0140] In some embodiments, in order to facilitate the user to adjust the description document, the method may further include the following steps:
[0141] Display the instruction document;
[0142] In response to an editing operation on the description information corresponding to the target interface resource, the description document is updated.
[0143] The description document includes each target interface resource of the target interface and description information corresponding to the target interface resource.
[0144] In some embodiments, displaying the description document may include: in the first page, when a triggering operation on the one-key generation control is detected, generating the description document, and displaying the description document on the first page.
[0145] For example, see Fig.12 , Fig.12 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application. Fig.12 In the first page shown on the upper side, when a click operation of a one-key generation control is detected, a description document is generated according to the description information corresponding to resource A, resource B, resource E, resource F, and resource D on the target interface, and the description document is displayed on the first page.
[0146] That is to say, Fig.12 The first page shown at the bottom displays the instruction document.
[0147] In some embodiments, the target interface may include multiple target interface resources, and the description information corresponding to each target interface resource may include multiple description items, and the multiple description items in each description information correspond to each other.
[0148] Among them, the description items in the description information can be divided according to the editable information and non-editable information in the description information. For example, the description information may include resource name, category, operation instructions (including operation method and operation trigger instructions), then the non-editable information includes: resource name, category; editable information may include: operation instructions.
[0149] In some embodiments, the description document may be displayed as a description document of a preset style, which may include multiple rows, each row corresponding to the description information of a target interface resource; the description document of the preset style includes multiple columns, each column corresponding to a description item in the description information. For example, the preset style may be in a table format, etc.
[0150] For example, see Fig.13 , Fig.13 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application. Fig.13 The first page shown shows an instruction document in a table format. In the table of the instruction document, the first row shows multiple description items, namely: number, preview, description, and the order can be adjusted by dragging up and down.
[0151] Among them, the numbering item can be used to display the corresponding numbers of each target interface resource of the target interface in the manual document; the preview item can be used to display the non-editable information in the description information of each target interface resource (for example, resource name and category, etc.); the description item can be used to display the editable information in the description information of each target interface resource (for example, operation method and operation trigger feedback, etc.); the order can be adjusted by dragging up and down to prompt the user that they can adjust the display order of the description information of each interface resource by dragging each line.
[0152] Each row in the table also includes a delete control, which can be used to delete the description information of the corresponding row.
[0153] The rows corresponding to numbers 1, 2, 3, 4, and 5 in the table display description information of resource A, resource B, resource E, resource F, and resource D, respectively.
[0154] In some embodiments, the preset style may be determined according to the category of the description document to be generated, and description documents of different categories may correspond to different styles.
[0155] In some embodiments, the description information includes editable information and non-editable information; the step of “updating the description document in response to an editing operation on the description information corresponding to the target interface resource” may include the following operations:
[0156] In response to a modification operation on the editable information in the description information, determining the modified editable information;
[0157] Update the description information of the target interface resource based on the modified editable information.
[0158] The editable information refers to the fields in the target text corresponding to the document description in the description information whose properties can be adjusted; the non-editable information may include: the content corresponding to the resource name, the content corresponding to the category, etc. in the description information.
[0159] The modification operation on the editable information in the description information may include: an attribute adjustment operation on a target field in a target text corresponding to the document description in the description information.
[0160] For example, the target text corresponding to the document description in the description information of the target interface resource A may be "The player clicks this button to trigger the opening of page A on the current page", wherein the target fields in the target text whose attributes can be adjusted may include "click" and "page A".
[0161] Then the target fields "click" and / or "page A" can be adjusted, for example, "click" can be changed to "press", etc. Then the modified editable information is obtained as "the player presses the button to trigger the opening of page A on the current page". Then, the modified editable information is updated to the description information of the target interface resource A of the description document to obtain the updated description document.
[0162] For example, see Fig.14 , Fig.14 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application. Fig.14 In the first page shown, number 1 in the table of the description document can correspond to the description information of resource A, and the description item number 1 displays the editable information of resource A, such as "the player clicks this button to trigger the opening of page A on the current page."
[0163] When it is detected that the user has adjusted the property of the target field "click" in the editable information of resource A, and "click" is changed to "press", the editable information of resource A can be updated to "the player presses the button, triggering the opening of page A on the current page."
[0164] That is to say, Fig.14 The first page shown on the lower side, in which the content of the instruction item corresponding to number 1 in the instruction document is modified to "the player presses this button to trigger the opening of page A on the current page", thereby completing the adjustment of the instruction document.
[0165] In some embodiments, the user may also delete the description information in the description document. Then the step of “updating the description document in response to the editing operation on the description information corresponding to the target interface resource” may include the following operations:
[0166] In response to a deletion operation on the description information corresponding to the target interface resource, the description information corresponding to the target interface resource is deleted from the description document.
[0167] The deletion operation on the description information corresponding to the target interface resource may include a triggering operation on a deletion control of the row where the description information is located.
[0168] For example, see Fig.15 , Fig.15 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application. Fig.15 In the first page shown, number 1 in the table of the description document may correspond to the description information of resource A. When it is detected that the user clicks the delete control of the row where number 1 is located, it may trigger the deletion of the description information of resource A in the description document.
[0169] That is to say, Fig.15 In the first page shown at the bottom, the description information of resource A has been deleted, and the rows corresponding to numbers 1-4 display the description information of resource B, resource E, resource F, and resource D, respectively.
[0170] In some embodiments, in order to facilitate the user to view the description information corresponding to each interface resource in sequence according to the display position of each interface resource in the target interface, the method may further include the following steps:
[0171] In response to the sequence adjustment operation for the description information of the description document of the preset style, the display sequence of the description information of each target interface resource in the description document of the preset style is updated.
[0172] Among them, making it convenient for users to view the description information corresponding to each interface resource in sequence according to the display position of each interface resource in the target interface means: according to the display position of each interface resource in the target interface, the order of each description information in the description document is adjusted in sequence. For example, when viewing the interface resources of the target interface, according to the order from left to right and from top to bottom of the target interface, the interface resources displayed in sequence from left to right and from top to bottom of the target interface can be sorted in the description document in this order.
[0173] For example, see Fig.16 , Fig.16 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application. Fig.16In the first page shown, in the target interface, the interface resources displayed in order from left to right and from top to bottom are: resource A, resource B, resource F, resource E, and resource D. In the description document, the row corresponding to number 1 displays the description information of resource A; the row corresponding to number 2 displays the description information of resource B; the row corresponding to number 3 displays the description information of resource F; the row corresponding to number 4 displays the description information of resource E; and the row corresponding to number 5 displays the description information of resource D.
[0174] In which, responding to the order adjustment operation of the description information of the instruction document of the preset style may include adjusting the display order of the description information corresponding to at least two interface resources in the instruction document.
[0175] For example, see Fig.17 , Fig.17 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application. Fig.17 In the first page shown above, when it is detected that the user drags the description information of resource A corresponding to number 1 to the description information of resource B corresponding to number 2, the display order of the description information of resource A and the description information of resource B in the description document can be swapped.
[0176] That is to say, Fig.17 The first page shown at the bottom, where number 1 corresponds to the description information of resource B, and number 2 corresponds to the description information of resource A.
[0177] In some embodiments, in order to facilitate users to view the association between the interface resources of the target interface and the description information in the description document, the description information in the description document can be displayed in association with the target interface resources in the target interface.
[0178] For example, see Fig.18 , Fig.18 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application. Fig.18 The first page shown displays the target interface and instruction document.
[0179] The target interface includes: resource A, resource B, resource F, resource E, and resource D. The description document includes: description information of resource A, description information of resource B, description information of resource F, description information of resource E, and description information of resource D.
[0180] Among them, if the description information of the line where number 1 in the description document is located is the description information of resource A, then the line where number 1 in the description document is located is connected to resource A in the target interface through an indicator line; if the description information of the line where number 2 in the description document is located is the description information of resource B, then the line where number 2 in the description document is located is connected to resource B in the target interface through an indicator line; if the description information of the line where number 3 in the description document is located is the description information of resource F, then the line where number 3 in the description document is located is connected to resource F in the target interface through an indicator line; if the description information of the line where number 4 in the description document is located is the description information of resource E, then the line where number 4 in the description document is located is connected to resource E in the target interface through an indicator line; if the description information of the line where number 5 in the description document is located is the description information of resource D, then the line where number 5 in the description document is located is connected to resource D in the target interface through an indicator line.
[0181] In this way, the user can clearly understand the association between the interface resources of the target interface and the description information in the description document.
[0182] The method may further include the following steps:
[0183] In response to a selection operation on a first target interface resource in the target interface, description information of the first target interface resource is highlighted in the description document.
[0184] There are many ways to highlight, such as highlighting, color marking, etc.
[0185] For example, see Fig.19 , Fig.19 A schematic diagram of an application scenario of another method for generating a description document provided in an embodiment of the present application. Fig.19 The first page shown shows a target interface and a description document, wherein the interface resources of the target interface are connected with the description information in the description document through an indicator line, indicating association.
[0186] When a click operation of a user on resource A is detected, the description information corresponding to resource A may be highlighted in the description document.
[0187] That is to say, Fig.19 The first page shown at the bottom has the line corresponding to number 1 in the description document highlighted, which can be used to prompt the user to select resource A and adjust or edit the description information associated with resource A in the description document.
[0188] An embodiment of the present application discloses a method for generating a description document, the method comprising: in response to an interface resource setting operation for a target interface to be generated, obtaining the set target interface resources from a resource library, generating and displaying a target interface based on the target interface resources, wherein the resource library comprises a plurality of interface resources; obtaining description information corresponding to the target interface resources; generating a description document corresponding to the target interface according to the description information of the target interface resources, by obtaining the interface resources and reading the description information corresponding to the interface resources at the same time during the process of generating the target interface, and then after the target interface is generated, the description document of the target interface can be quickly generated according to the description information of the interface resources read, thereby improving the generation efficiency of the description document.
[0189] In order to facilitate better implementation of the method for generating a description document provided in the embodiment of the present application, the embodiment of the present application also provides a device for generating a description document based on the above description document generation method. The meanings of the terms are the same as those in the above description document generation method, and the specific implementation details can refer to the description in the method embodiment.
[0190] See also Fig. 20 , Fig. 20 A structural block diagram of a device for generating a description document provided in an embodiment of the present application, the device comprising:
[0191] The first acquisition unit 301 is used for acquiring the set target interface resource from the resource library in response to the interface resource setting operation of the target interface to be generated, generating and displaying the target interface based on the target interface resource, wherein the resource library includes a plurality of interface resources;
[0192] The second acquisition unit 302 is used to acquire description information corresponding to the target interface resource;
[0193] The generating unit 303 is used to generate a description document corresponding to the target interface according to the description information of the target interface resource.
[0194] In some embodiments, the apparatus may further include:
[0195] A first display unit, configured to display the description document, wherein the description document includes description information corresponding to the target interface resource;
[0196] The first updating unit is used to update the description document in response to an editing operation on the description information corresponding to the target interface resource.
[0197] In some embodiments, the description information includes editable information and non-editable information; the updating unit may include:
[0198] A first determining subunit, configured to determine the modified editable information in response to a modification operation on the editable information in the description information;
[0199] The first updating subunit is configured to update the description information of the target interface resource based on the modified editable information.
[0200] In some embodiments, the updating unit may include:
[0201] The deleting subunit is used to delete the description information corresponding to the target interface resource from the description document in response to a deletion operation on the description information corresponding to the target interface resource.
[0202] In some embodiments, the target interface resource includes multiple, the description information includes multiple description items; the description document is displayed as a description document of a preset style, the description document of the preset style includes multiple rows, each row corresponds to the description information of a target interface resource; the description document of the preset style includes multiple columns, each column corresponds to a description item in the description information; the device may also include:
[0203] The second updating unit is used to update the display order of the description information of each target interface resource in the description document of the preset style in response to the order adjustment operation of the description information of the description document of the preset style.
[0204] In some embodiments, the description information in the description document is displayed in association with the target interface resource in the target interface; the device may also include:
[0205] The second display unit is used to highlight the description information of the first target interface resource in the description document in response to a selection operation on the first target interface resource in the target interface.
[0206] In some embodiments, the first acquisition unit 301 may include:
[0207] A third display unit, configured to display a first page, wherein the first page includes an interface resource selection area and a generated interface preview area, wherein the interface resource selection area includes a plurality of interface resources in the resource library;
[0208] A first acquisition subunit, configured to acquire the target interface resource from the resource library in response to dragging the target interface resource in the interface resource selection area to the generated interface preview area;
[0209] The adding subunit is used to add the target interface resource to the generated interface preview area to obtain the target interface.
[0210] In some embodiments, the apparatus may further include:
[0211] A third acquisition unit, configured to acquire a newly added interface resource and description information corresponding to the newly added interface resource in response to a resource addition event for the resource library;
[0212] The storage unit is used to associate and store the newly added interface resources and the description information corresponding to the newly added interface resources in the resource library.
[0213] In some embodiments, the second acquiring unit may include:
[0214] The display subunit is used to display a second page, wherein the second page includes a resource upload area and a description editing area, wherein the resource upload area is used to set the interface resources to be added to the resource library, and the description editing area is used to configure description information for the added interface resources;
[0215] A second acquisition subunit is used to acquire the uploaded newly added interface resource in response to the interface resource upload operation in the resource upload area;
[0216] The second determining subunit is configured to determine the description information corresponding to the newly added interface resource in response to the information editing operation in the description editing area.
[0217] In some embodiments, the description editing area includes a first description editing sub-area, and the apparatus may further include:
[0218] A receiving unit, configured to receive a target text input into the first description editing sub-region, and obtain the editable information in the description information based on the target text;
[0219] The setting unit is used for setting the target field in the target text as an editable attribute in the target text in response to an attribute setting operation on the target field in the target text, so as to adjust the attribute of the target field in the target text in the description document.
[0220] The embodiment of the present application discloses a device for generating a description document, wherein a first acquisition unit 301 responds to an interface resource setting operation for a target interface to be generated, acquires the set target interface resource from a resource library, generates and displays the target interface based on the target interface resource, wherein the resource library includes multiple interface resources; a second acquisition unit 302 acquires description information corresponding to the target interface resource; and a generation unit 303 generates a description document corresponding to the target interface according to the description information of the target interface resource. In this way, the generation efficiency of the description document can be improved.
[0221] Accordingly, the embodiment of the present application also provides a computer device, which may be a server. Fig.10As shown, Fig.10 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device 800 includes a processor 801 having one or more processing cores, a memory 802 having one or more computer-readable storage media, and a computer program stored in the memory 802 and executable on the processor. The processor 801 is electrically connected to the memory 802. Those skilled in the art will appreciate that Fig.10 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include Fig.10 More or fewer components, or combinations of certain components, or different arrangements of components may be shown.
[0222] The processor 801 is the control center of the computer device 800. It uses various interfaces and lines to connect various parts of the entire computer device 800, executes various functions of the computer device 800 and processes data by running or loading software programs and / or modules stored in the memory 802, and calling data stored in the memory 802, thereby monitoring the computer device 800 as a whole.
[0223] In the embodiment of the present application, the processor 801 in the computer device 800 will load instructions corresponding to the processes of one or more application programs into the memory 802 according to the following steps, and the processor 801 will run the application programs stored in the memory 802 to implement various functions:
[0224] In response to an interface resource setting operation for a target interface to be generated, acquiring the set target interface resource from a resource library, generating and displaying the target interface based on the target interface resource, wherein the resource library includes a plurality of interface resources;
[0225] Get the description information corresponding to the target interface resource;
[0226] Generate a description document corresponding to the target interface based on the description information of the target interface resources.
[0227] In some embodiments, the method further comprises:
[0228] Display the description document, which includes the description information corresponding to the target interface resource;
[0229] In response to an editing operation on the description information corresponding to the target interface resource, the description document is updated.
[0230] In some embodiments, the description information includes editable information and non-editable information;
[0231] In response to an editing operation on the description information corresponding to the target interface resource, updating the description document includes:
[0232] In response to a modification operation on the editable information in the description information, determining the modified editable information;
[0233] Update the description information of the target interface resource based on the modified editable information.
[0234] In some embodiments, in response to an editing operation on the description information corresponding to the target interface resource, updating the description document includes:
[0235] In response to a deletion operation on the description information corresponding to the target interface resource, the description information corresponding to the target interface resource is deleted from the description document.
[0236] In some embodiments, the target interface resource includes multiple resources, and the description information includes multiple description items;
[0237] The description document is displayed as a description document of a preset style. The description document of the preset style includes multiple rows, each row corresponds to the description information of a target interface resource; the description document of the preset style includes multiple columns, each column corresponds to a description item in the description information.
[0238] In some embodiments, the method further comprises:
[0239] In response to the sequence adjustment operation for the description information of the description document of the preset style, the display sequence of the description information of each target interface resource in the description document of the preset style is updated.
[0240] In some embodiments, the description information in the description document is displayed in association with the target interface resource in the target interface;
[0241] The method also includes:
[0242] In response to a selection operation on a first target interface resource in the target interface, description information of the first target interface resource is highlighted in the description document.
[0243] In some embodiments, in response to an interface resource setting operation for a target interface to be generated, obtaining the set target interface resource from a resource library, generating and displaying the target interface based on the target interface resource, includes:
[0244] Displaying a first page, the first page includes an interface resource selection area and a generated interface preview area, wherein the interface resource selection area includes multiple interface resources in a resource library;
[0245] In response to dragging a target interface resource in the interface resource selection area to the generated interface preview area, acquiring the target interface resource from the resource library;
[0246] Add the target interface resource to the generated interface preview area to obtain the target interface.
[0247] In some embodiments, the method further comprises:
[0248] In response to a resource addition event for a resource library, obtaining a newly added interface resource and description information corresponding to the newly added interface resource;
[0249] The newly added interface resources and the description information corresponding to the newly added interface resources are associated and stored in the resource library.
[0250] In some embodiments, in response to a resource addition event for a resource library, obtaining a newly added interface resource and description information corresponding to the newly added interface resource includes:
[0251] Displaying a second page, the second page includes a resource upload area and a description editing area, wherein the resource upload area is used to set the interface resources to be added to the resource library, and the description editing area is used to configure description information for the added interface resources;
[0252] In response to an interface resource upload operation in a resource upload area, obtaining an uploaded newly added interface resource;
[0253] In response to the information editing operation in the description editing area, description information corresponding to the newly added interface resource is determined.
[0254] In some embodiments, the description editing area includes a first description editing sub-area, and the method further includes:
[0255] receiving a target text input for the first description editing sub-region, and obtaining editable information in the description information based on the target text;
[0256] In response to the property setting operation for the target field in the target text, the target field is set as an editable property in the target text, so as to adjust the property of the target field in the target text in the description document.
[0257] In the embodiment of the present application, in response to the interface resource setting operation of the target interface to be generated, the set target interface resource can be obtained from the resource library, and the target interface can be generated and displayed based on the target interface resource, wherein the resource library includes multiple interface resources; the description information corresponding to the target interface resource can be obtained; and the description document corresponding to the target interface can be generated according to the description information of the target interface resource. In this way, by obtaining the interface resource and reading the description information corresponding to the interface resource during the process of generating the target interface, the description document of the target interface can be quickly generated according to the description information of the interface resource read after the target interface is generated, thereby improving the generation efficiency of the description document.
[0258] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0259] Optional, such as Fig.21 As shown, the computer device 800 further includes: a touch screen 803, a radio frequency circuit 804, an audio circuit 805, an input unit 806, and a power supply 807. The processor 801 is electrically connected to the touch screen 803, the radio frequency circuit 804, the audio circuit 805, the input unit 806, and the power supply 807, respectively. Those skilled in the art can understand that Fig.21 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0260] The touch display screen 803 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 803 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of the computer device, and these graphical user interfaces may be composed of graphics, guide information, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light emitting diode (OLED, Organic Light-EmittingDiode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 801, and can receive the command sent by the processor 801 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 801 to determine the type of touch event, and then the processor 801 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 803 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 803 can also be used as a part of the input unit 806 to realize the input function.
[0261] The radio frequency circuit 804 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other computer device through wireless communication, and to send and receive signals between the network device or other computer device.
[0262] The audio circuit 805 can be used to provide an audio interface between the user and the computer device through a speaker and a microphone. The audio circuit 805 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 805 and converted into audio data, and then the audio data is output to the processor 801 for processing, and then sent to another computer device through the radio frequency circuit 804, or the audio data is output to the memory 802 for further processing. The audio circuit 805 may also include an earphone jack to provide communication between an external headset and the computer device.
[0263] The input unit 806 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0264] The power supply 807 is used to supply power to various components of the computer device 800. Optionally, the power supply 807 can be logically connected to the processor 801 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 807 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0265] although Fig.21 Not shown, the computer device 800 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0266] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0267] From the above, it can be seen that the computer device provided in this embodiment can respond to the interface resource setting operation of the target interface to be generated, obtain the set target interface resources from the resource library, generate and display the target interface based on the target interface resources, wherein the resource library includes multiple interface resources; obtain the description information corresponding to the target interface resources; and generate the description document corresponding to the target interface according to the description information of the target interface resources.
[0268] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0269] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer program can be loaded by a processor to execute the steps in any method for generating a description document provided in the embodiment of the present application. For example, the computer program can execute the following steps:
[0270] In response to an interface resource setting operation for a target interface to be generated, acquiring the set target interface resource from a resource library, generating and displaying the target interface based on the target interface resource, wherein the resource library includes a plurality of interface resources;
[0271] Get the description information corresponding to the target interface resource;
[0272] Generate a description document corresponding to the target interface based on the description information of the target interface resources.
[0273] In some embodiments, the method further comprises:
[0274] Display the description document, which includes the description information corresponding to the target interface resource;
[0275] In response to an editing operation on the description information corresponding to the target interface resource, the description document is updated.
[0276] In some embodiments, the description information includes editable information and non-editable information;
[0277] In response to an editing operation on the description information corresponding to the target interface resource, updating the description document includes:
[0278] In response to a modification operation on the editable information in the description information, determining the modified editable information;
[0279] Update the description information of the target interface resource based on the modified editable information.
[0280] In some embodiments, in response to an editing operation on the description information corresponding to the target interface resource, updating the description document includes:
[0281] In response to a deletion operation on the description information corresponding to the target interface resource, the description information corresponding to the target interface resource is deleted from the description document.
[0282] In some embodiments, the target interface resource includes multiple resources, and the description information includes multiple description items;
[0283] The description document is displayed as a description document of a preset style. The description document of the preset style includes multiple rows, each row corresponds to the description information of a target interface resource; the description document of the preset style includes multiple columns, each column corresponds to a description item in the description information.
[0284] In some embodiments, the method further comprises:
[0285] In response to the sequence adjustment operation for the description information of the description document of the preset style, the display sequence of the description information of each target interface resource in the description document of the preset style is updated.
[0286] In some embodiments, the description information in the description document is displayed in association with the target interface resource in the target interface;
[0287] The method also includes:
[0288] In response to a selection operation on a first target interface resource in the target interface, description information of the first target interface resource is highlighted in the description document.
[0289] In some embodiments, in response to an interface resource setting operation for a target interface to be generated, obtaining the set target interface resource from a resource library, generating and displaying the target interface based on the target interface resource, includes:
[0290] Displaying a first page, the first page includes an interface resource selection area and a generated interface preview area, wherein the interface resource selection area includes multiple interface resources in a resource library;
[0291] In response to dragging a target interface resource in the interface resource selection area to the generated interface preview area, acquiring the target interface resource from the resource library;
[0292] Add the target interface resource to the generated interface preview area to obtain the target interface.
[0293] In some embodiments, the method further comprises:
[0294] In response to a resource addition event for a resource library, obtaining a newly added interface resource and description information corresponding to the newly added interface resource;
[0295] The newly added interface resources and the description information corresponding to the newly added interface resources are associated and stored in the resource library.
[0296] In some embodiments, in response to a resource addition event for a resource library, obtaining a newly added interface resource and description information corresponding to the newly added interface resource includes:
[0297] Displaying a second page, the second page includes a resource upload area and a description editing area, wherein the resource upload area is used to set the interface resources to be added to the resource library, and the description editing area is used to configure description information for the added interface resources;
[0298] In response to an interface resource upload operation in a resource upload area, obtaining an uploaded newly added interface resource;
[0299] In response to the information editing operation in the description editing area, description information corresponding to the newly added interface resource is determined.
[0300] In some embodiments, the description editing area includes a first description editing sub-area, and the method further includes:
[0301] receiving a target text input for the first description editing sub-region, and obtaining editable information in the description information based on the target text;
[0302] In response to the property setting operation for the target field in the target text, the target field is set as an editable property in the target text, so as to adjust the property of the target field in the target text in the description document.
[0303] In the embodiment of the present application, in response to the interface resource setting operation of the target interface to be generated, the set target interface resource can be obtained from the resource library, and the target interface can be generated and displayed based on the target interface resource, wherein the resource library includes multiple interface resources; the description information corresponding to the target interface resource can be obtained; and the description document corresponding to the target interface can be generated according to the description information of the target interface resource. In this way, by obtaining the interface resource and reading the description information corresponding to the interface resource during the process of generating the target interface, the description document of the target interface can be quickly generated according to the description information of the interface resource read after the target interface is generated, thereby improving the generation efficiency of the description document.
[0304] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0305] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0306] Since the computer program stored in the storage medium can execute the steps in any method for generating a description document provided in the embodiments of the present application, the beneficial effects that can be achieved by any method for generating a description document provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0307] The above is a detailed introduction to a method, device, storage medium and computer device for generating a description document provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for generating a description document, characterized in that: The method comprises: In response to an interface resource setting operation for a target interface to be generated, acquiring the set target interface resource from a resource library, generating and displaying the target interface based on the target interface resource, wherein the resource library includes a plurality of interface resources; Obtaining description information corresponding to the target interface resource; Generate a description document corresponding to the target interface according to the description information of the target interface resources.
2. The method according to claim 1, characterized in that The method further comprises: Display the description document, wherein the description document includes description information corresponding to the target interface resource; In response to an editing operation on the description information corresponding to the target interface resource, the description document is updated.
3. The method according to claim 2, characterized in that The description information includes editable information and non-editable information; The updating of the description document in response to the editing operation on the description information corresponding to the target interface resource includes: In response to a modification operation on the editable information in the description information, determining the modified editable information; The description information of the target interface resource is updated based on the modified editable information.
4. The method according to claim 2, characterized in that: The updating of the description document in response to the editing operation on the description information corresponding to the target interface resource includes: In response to a deletion operation on the description information corresponding to the target interface resource, the description information corresponding to the target interface resource is deleted from the description document.
5. The method according to claim 2, characterized in that: The target interface resources include multiple ones, and the description information includes multiple description items; The description document is displayed in a preset style, and the description document of the preset style includes multiple rows, each row corresponds to the description information of a target interface resource; the description document of the preset style includes multiple columns, each column corresponds to a description item in the description information.
6. The method according to claim 5, characterized in that The method further comprises: In response to the sequence adjustment operation for the description information of the description document of the preset style, the display sequence of the description information of each target interface resource in the description document of the preset style is updated.
7. The method according to claim 2, characterized in that The description information in the description document is displayed in association with the target interface resources in the target interface; The method further comprises: In response to a selection operation on a first target interface resource in the target interface, description information of the first target interface resource is highlighted in the description document.
8. The method according to claim 1, characterized in that The step of obtaining the set target interface resources from a resource library in response to the interface resource setting operation for the target interface to be generated, and generating and displaying the target interface based on the target interface resources includes: Displaying a first page, the first page comprising an interface resource selection area and a generated interface preview area, wherein the interface resource selection area comprises a plurality of interface resources in the resource library; In response to dragging a target interface resource in the interface resource selection area to the generated interface preview area, acquiring the target interface resource from the resource library; The target interface resource is added to the generated interface preview area to obtain the target interface.
9. The method according to claim 1, characterized in that: The method further comprises: In response to a resource addition event for a resource library, obtaining a newly added interface resource and description information corresponding to the newly added interface resource; The newly added interface resource and the description information corresponding to the newly added interface resource are associated and stored in the resource library.
10. The method according to claim 9, characterized in that The step of obtaining, in response to a resource addition event for a resource library, a newly added interface resource and description information corresponding to the newly added interface resource includes: Displaying a second page, the second page includes a resource upload area and a description editing area, wherein the resource upload area is used to set the interface resource to be added to the resource library, and the description editing area is used to configure description information for the added interface resource; In response to an interface resource upload operation in the resource upload area, acquiring the uploaded newly added interface resource; In response to the information editing operation in the description editing area, the description information corresponding to the newly added interface resource is determined.
11. The method according to claim 10, characterized in that The description editing area includes a first description editing sub-area, and the method further includes: receiving a target text input for the first description editing sub-area, and obtaining editable information in the description information based on the target text; In response to the property setting operation for the target field in the target text, the target field is set as an editable property in the target text, so as to adjust the property of the target field in the target text in the description document.
12. A device for generating a description document, characterized in that: The device comprises: A first acquisition unit, configured to, in response to an interface resource setting operation for a target interface to be generated, acquire the set target interface resource from a resource library, generate the target interface based on the target interface resource and display it, wherein the resource library includes a plurality of interface resources; A second acquisition unit, used to acquire description information corresponding to the target interface resource; A generating unit is used to generate a description document corresponding to the target interface according to the description information of the target interface resources.
13. A computer device comprising a memory, a processor and a computer program stored in the memory and running on the processor, wherein: When the processor executes the program, the method for generating a description document according to any one of claims 1 to 11 is implemented.
14. A storage medium, characterized in that: The storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the method for generating a description document according to any one of claims 1 to 11.
Citation Information
Cited By
Document generation method, electronic equipment, storage medium and program product
CN120046579A
