Prototype design method, system, equipment and medium

By monitoring artboard operation events in real time and providing different container states according to the target object state, the problem that traditional prototyping tools cannot share and reuse components with web environment code, improving design efficiency and fidelity.

CN118963716APending Publication Date: 2024-11-15INSPUR GENERSOFT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Traditional prototyping tools cannot be shared with web environment code, have poor generalization, and cannot directly reuse third-party or existing components, resulting in inefficient design.

Method used

By monitoring artboard operation events in real time, judging the state of the target object, providing different container states to edit or render HTML code, realizing direct reuse of components and improving design efficiency.

Benefits of technology

No need to design from scratch, which improves the efficiency and fidelity of prototype design, and solves the problem that traditional tools cannot share code with web environment code and reuse components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118963716A_ABST
    Figure CN118963716A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of software, and discloses a prototype design method, system and device and a medium. The method comprises the steps of monitoring an operation event on a drawing board in real time, and determining a target object based on the operation event; judging whether the target object is in a first state; in response to the first state of the target object, displaying a target container corresponding to the target object in a first container state, and updating an internal text attribute of the target object based on the target container; and in response to the condition that the target object is not in the first state, displaying a target container corresponding to the target object in a second container state, obtaining a rendering result based on the internal text attribute of the target object and a preset rendering function, taking the rendering result as a target component corresponding to the target object, and updating the target container according to the target component. By means of the scheme, the defects in the traditional prototype design process are overcome, the universality of prototype design tools is improved, and then the prototype design efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of software technology, and in particular to a prototype design method, system, device and medium. Background Art

[0002] Prototyping is an important part of the web application development process. Traditional prototyping tools, such as Axure, are oriented to designers and are closer to drawing and typesetting tools in terms of functional positioning. The graphics that can be drawn rely on component libraries that are specially packaged for software, which are far from the web code of the final product when it is running. This working mode makes traditional prototyping tools have some inherent defects. For example, for existing pages or components on the product, traditional prototyping tools need to redraw the design of the entire page or component from scratch every time they need to be designed, even if they are highly similar to the previous page or component design. Secondly, many web components do not have a special packaging form, which makes it difficult to directly reuse and present them in traditional prototyping tools. They have to fall back to using wireframes or pictures to represent these components, which cannot accurately show the interactivity, dynamic effects and actual visual effects of the components, resulting in a significant reduction in fidelity. Especially when facing third-party components with complex structures and styles, traditional prototyping tools cannot fully support or render them correctly. They can only render them by redrawing the component design, which has the problem of insufficient versatility.

[0003] Therefore, the present invention provides a prototype design method, system, device and medium to solve the above-mentioned defects. Summary of the invention

[0004] In view of this, the present invention proposes a prototype design method, system, device and medium, which solve the problems of the traditional prototype design process that cannot be shared with the web environment code, poor versatility and cannot directly reuse third-party components or existing components, improve the versatility of prototype design tools, release personnel production capacity, and improve prototype design efficiency.

[0005] Based on the above purpose, an embodiment of the present invention provides a prototype design method, which specifically includes the following steps: Monitor operation events on the drawing board in real time, and determine the target object based on the operation events; Determining whether the target object is in a first state; In response to the target object being in the first state, displaying a target container corresponding to the target object in the first container state, and updating an internal text attribute of the target object based on the target container; In response to the target object not being in the first state, the target container corresponding to the target object is displayed in a second container state, a rendering result is obtained based on an internal text attribute of the target object and a preset rendering function, the rendering result is used as a target component corresponding to the target object, and the target container is updated according to the target component.

[0006] In some implementations, the step of determining whether the target object is in the first state includes: Obtaining the active state attribute and the edit state attribute of the target object; Determining whether the active state attribute is a first attribute value and whether the edit state attribute is a first attribute value; In response to the active state attribute being a first attribute value and the edit state attribute being a first attribute value, determining that the target object is in a first state; In response to the active state attribute being a first attribute value and the edit state attribute not being the first attribute value, it is determined that the target object is not in the first state.

[0007] In some implementations, the step of updating the internal text attribute of the target object based on the target container includes: Bidirectionally binding the target container in the first container state to the internal text attribute of the target object; The input event of the target container is listened to to obtain a user input code, and the user input code is synchronized to the internal text attribute.

[0008] In some implementations, the step of updating the target container according to the target component includes: Detecting whether the target component is a child component; In response to the target component being a child component, querying the target container for an atomic component and a parent component corresponding to the target component, deleting the atomic component in the parent component, and replacing the target component with a position corresponding to the atomic component in the parent component to update the target container; In response to the target component not being a child component, the target container is queried for an original component corresponding to the target component, the original component is deleted, and the target component is replaced to a position corresponding to the original component in the target container to update the target container.

[0009] In some embodiments, the prototyping method further comprises: In response to completion of updating the target container, the target component and the updated internal text attribute are stored in a preset archive list.

[0010] In some implementations, the step of obtaining a rendering result based on the internal text attributes and a preset rendering function includes: Monitoring whether the internal text attribute is updated; In response to the internal text attribute being updated, comparing the internal text attribute before being updated with the internal text attribute after being updated; Based on the comparison result and the preset rendering function, the rendering result is determined.

[0011] In some implementations, the step of monitoring operation events on the drawing board in real time includes: Capturing user input on the drawing board in real time; In response to capturing the user input, parsing and detecting whether the user input is a legal operation; In response to the user input being a legal operation, the operation event is generated according to the user input.

[0012] Another aspect of the embodiment of the present invention further provides a prototype design system, including: A monitoring module configured to monitor operation events on the drawing board in real time and determine a target object based on the operation events; A judging module, configured to judge whether the target object is in a first state; A first processing module is configured to, in response to the target object being in a first state, display a target container corresponding to the target object in a first container state, and update an internal text attribute of the target object based on the target container; The second processing module is configured to display the target container corresponding to the target object in a second container state in response to the target object not being in the first state, obtain a rendering result based on the internal text attribute of the target object and a preset rendering function, use the rendering result as the target component corresponding to the target object, and update the target container according to the target component.

[0013] According to another aspect of an embodiment of the present invention, a computer device is provided, comprising: at least one processor; and a memory, wherein the memory stores a computer program executable on the processor, and the computer program implements the steps of the above method when executed by the processor.

[0014] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, which stores a computer program that implements the above method steps when executed by a processor.

[0015] The present invention has at least the following beneficial technical effects: a prototype design method provided by the present invention captures user operation events on a front-end drawing board in real time, analyzes and obtains a target object and its state, and provides containers of different forms according to the state of the target object. When the target object is in a first state, the target container can display an editable multi-line text box for inputting codes to the user through the first container state, so that the user can directly edit the attribute values ​​of various attributes of the target object using HTML code. When the target object is in a second state, the target container instantly renders the edited HTML code to obtain a component through the second container state, and can instantly display the design effect to the user, and these rendered components can be directly used for further design work, thereby realizing additional functions or effects without changing the original design framework. Prototype design based on HTML code does not require redrawing the entire page or component design from scratch, which solves the problems of the inability to be common with web environment codes, poor versatility, and inability to directly reuse third-party components or existing components in the traditional prototype design process, thereby improving the efficiency of prototype design. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.

[0017] Figure 1 A block diagram of an embodiment of a prototype design method provided by the present invention; Figure 2 A schematic diagram of an embodiment of the front-end logic of the prototype design method provided by the present invention; Figure 3 A schematic diagram of an embodiment of updating a target container provided by the present invention; Figure 4 A schematic diagram of an embodiment of a user operation process of the prototype design method provided by the present invention; Figure 5 A schematic diagram of an embodiment of a prototyping system provided by the present invention; Figure 6 A schematic diagram of the structure of an embodiment of a computer device provided by the present invention; Figure 7 A schematic diagram of the structure of an embodiment of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION

[0018] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0019] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.

[0020] Prototyping is an important part of the web application development process. Common indicators are design speed and fidelity, and the lack of versatility of prototyping tools will lead to a serious decline in the above indicators. Faced with existing and actually running web code, when the user's demand is to make a simple change to the design corresponding to the web code, there is no engineering occasion common to the web environment code in the traditional prototyping tool, and it is impossible to render the web prototype according to the modification of the code, and it is necessary to start from scratch to draw a new prototype design. When encountering component styles or interactive logic that can be realized in the web environment but cannot be realized in the design environment or are not encapsulated, such as frosted glass effects, scrolling follow effects, etc., traditional prototyping tools often need to fall back to wireframes or use pictures to represent, and the fidelity of the prototype design cannot be guaranteed. In related designs, attempts are made to connect designers and developers in real time. After the designer designs the layout, the basic code of the components that have not yet been coded is sent to the developer. The developer encodes the actual component code based on the basic code, and then returns the actual component code to the designer, and the designer re-renders the design. However, the invention does not solve the above problems existing in the prototyping tool, and the effectiveness of this solution depends largely on the effectiveness of communication between the designer and the developer. In actual usage scenarios, especially in small and medium-sized enterprises, studios or agile development scenarios, there is a high possibility that there is actually running web code, and there is a low possibility of having a complete previous design project and component library. That is, it is necessary to use a third-party component library for prototype design, and due to investment considerations, the prototype design work is often performed by developers. The defects of the above-mentioned prototype design tools seriously affect the efficiency of web application development.

[0021] In order to solve the above defects, the first aspect of the embodiment of the present invention provides a prototype design method. Figure 1 As shown, it includes the following steps: Step S100, monitoring operation events on the drawing board in real time, and determining a target object based on the operation events; Step S200, determining whether the target object is in a first state; Step S300, in response to the target object being in the first state, displaying a target container corresponding to the target object in the first container state, and updating an internal text attribute of the target object based on the target container; Step S400, in response to the target object not being in the first state, displaying the target container corresponding to the target object in the second container state, obtaining a rendering result based on the internal text attribute of the target object and a preset rendering function, using the rendering result as the target component corresponding to the target object, and updating the target container according to the target component.

[0022] In some embodiments, the functional implementation and design of the present invention are mainly located in the front end and the basic process has the ability to run completely offline. The front end runs in a browser environment, and the back end is mainly responsible for archive management and expansion. Figure 2 As shown in the figure, the front-end content is logically divided into five units: engineering data unit, drawing board display unit, operation capture processing and context management unit, rendering and additional logic unit, and console tool unit. The operation capture processing and context management unit is used to capture user input on the drawing board in real time, parse and detect the legality of user input, and generate operation events according to legal operations. The drawing board is the drawing area in the prototype design tool. It can capture various user inputs such as mouse clicks, mouse movements, mouse drags, and keyboard keys by setting listeners on the drawing board. After capturing the user input, it is necessary to analyze the current context of the front end, such as the current interface state, selected elements or historical operations, etc., and combine the context environment with the user input according to the business logic and rules to parse the user operation intention, such as selection, deselection, multiple selections, dragging, resizing, copying, pasting, deleting, entering editing, entering code content or exiting editing. Then, it is judged whether the user operation intention obtained by the analysis is legal, such as whether the operation is performed in the valid area of ​​the drawing board, whether the operation attempted by the user is allowed in the current context, and whether the input data (color value or size) is within a reasonable range. If the user's operation intention is legal, create an operation event representing the user's operation.

[0023] In some embodiments, when the project is saved, the project data unit will be "persisted" from the memory to a storage medium (such as a file system, database or cloud storage), and when the project is loaded, it will be read from the storage medium and "converted" into a runtime object. The main body of the project data unit is a set of JavaScript (a literal scripting language) objects, where the JavaScript object stores and manages data related to the canvas (Canvas) or page elements, including but not limited to the size, position, level, internal text content (such as HTML code entered by the user), rendering results (actually rendered HTML code), etc. of the element. The runtime JavaScript object not only contains the above-mentioned data related to the canvas or page elements, but also contains methods for adjusting internal data such as resetting the position and resetting the size. The rendering method is also located on the JavaScript object, and the rendering method is responsible for converting the data related to the canvas or page elements into component elements visible on the user interface. Furthermore, due to the prototype inheritance mechanism of JavaScript, each instance can inherit from a common prototype object (__proto__), which defines class methods, which can be overwritten by methods or properties of the same name on specific instances, thereby allowing the behavior of a single instance to be customized. The target object refers to the project data corresponding to the user operation event, that is, the corresponding JavaScript object.

[0024] In some embodiments, the drawing board display unit is an HTML (Hyper Text Markup Language) template controlled by Vue (a progressive JavaScript framework), which is responsible for dynamically rendering and displaying the corresponding components according to the engineering data unit. The drawing board display unit not only defines how the designer displays each JavaScript object in the engineering data unit, but also defines the display of some basic styles, such as the border and drag box styles displayed when the component is in an active state or in an editing state. When a component is selected, the component is in an active state. When a component is selected for editing, the component is in an editing state, and the attribute value of the editing state attribute in its corresponding JavaScript object is a first attribute value, such as an attribute value of 1 or true. When a component is not selected for editing, the component is in a non-editing state, and the attribute value of the editing state attribute in its corresponding JavaScript object is 0 or false. The drawing board display unit renders a square container for each JavaScript object in the engineering data unit. If the attribute value of the editing state attribute in the JavaScript object is the first attribute value, the square container will be displayed as an editable multi-line text box (i.e., the first container state), and the user can enter code in the container. The content entered in the editable multi-line text box is bidirectionally bound to the "internal text content" property in the JavaScript object, which means that any content entered by the user in the editable multi-line text box will be synchronously updated to the "internal text content" of the corresponding JavaScript object. If the attribute value of the edit state attribute in the JavaScript object is not the first attribute value, the square container will be displayed in HTML form (i.e. the second container state) to show the user the "rendering result" in the corresponding JavaScript object. All square containers are displayed using an absolute layout, and the inter-layer relationship between square containers is bound and controlled by the "hierarchy" data in the corresponding JavaScript object. It is possible to determine whether the target component is a child component based on the "hierarchy" data in the JavaScript object corresponding to the target component.

[0025] In some embodiments, the rendering and additional logic unit is located in a preset rendering function on the engineering data unit. The preset rendering function is a method in a component or object, which is responsible for generating the HTML structure of the component. When the JavaScript object (target object) exits the editing state and the internal text content changes, the rendering function is called and executed, that is, the attribute value of the editing state attribute corresponding to the JavaScript object changes from the first attribute value to the non-first attribute value and the "internal text content" is updated. At this time, the square container (target container) corresponding to the JavaScript object changes from the first container state to the second container state. During the target container state change process, the rendering function generates a "rendering result" according to the "internal text content" of the target object, and updates the "rendering result" in HTML form to the target container for display. The rendering function exists on a class or instance. The instance method is a method defined on an instance of a class, which can access and modify the specific state of the instance. The class method is a method defined on the class itself, which is usually used to perform operations related to the class, rather than operations on a specific instance. The instance method allows the user to customize and override. The default rendering method directly generates the corresponding "rendering result" according to the "internal text content", but the user can rewrite the default rendering method execution process by adding logic. The additional logic executes other logic besides directly generating the "rendering result", such as deciding whether to render an element or component based on specific conditions, repeatedly rendering the same element or component according to specific array data, notifying the specified component to re-render after rendering, replacing the post-rendering code of a specific component to a specified location, adding a layer of container elements to the outermost layer of the rendered component and specifying the background color and layout of the internal elements, or adding an identifier to the DOM (Document Object Model) after the container is rendered, etc.

[0026] In some embodiments, the console tool unit includes a set of pre-packaged, reusable functions or method sets, which are provided to users for calling, such as project data export, project data import, archiving project data to a server, obtaining a server archive list, accepting and loading a specific archive from a server archive list, exporting source code, exporting rendering results, and other functions or methods.

[0027] The present invention provides a prototype design method, which performs prototype design based on HTML code without redrawing the entire page or component design from scratch, thereby solving the problems of the traditional prototype design process such as the inability to be common with the web environment code, poor versatility, and the inability to directly reuse third-party components or existing components, thereby improving the prototype design efficiency.

[0028] In some embodiments, the step of determining whether the target object is in the first state includes: obtaining an editing state attribute of the target object; determining whether an attribute value of the editing state attribute is a first attribute value; in response to the attribute value of the editing state attribute being the first attribute value, determining that the target object is in the first state; in response to the attribute value of the editing state attribute not being the first attribute value, determining that the target object is not in the first state.

[0029] A prototype design method provided by the present invention provides containers of different forms according to the state of a target object. When the target object is in a first state, the target container can display an editable multi-line text box for inputting codes to a user through the first container state, so that the user can directly edit the attribute values ​​of various attributes of the target object using HTML codes. When the target object is not in the first state (i.e., in a second state), the target container can instantly render the edited HTML code to obtain a component through the second container state, so that the design effect can be instantly displayed to the user.

[0030] In some implementations, the step of updating the internal text attribute of the target object based on the target container includes: bidirectionally binding the target container in the first container state to the internal text attribute of the target object; monitoring the input event of the target container to obtain a user input code, and synchronizing the user input code to the internal text attribute.

[0031] The present invention provides a prototype design method, which makes component expansion easier by setting internal text properties that are bidirectionally bound to a container, and solves the problem that the traditional prototype design process cannot be shared with the web environment code.

[0032] In some embodiments, the step of updating the target container according to the target component includes: the step of updating the target container according to the target component includes: detecting whether the target component is a child component; in response to the target component being a child component, querying the atomic component and parent component corresponding to the target component in the target container, deleting the atomic component in the parent component, and replacing the target component to the corresponding position of the atomic component in the parent component to update the target container; in response to the target component not being a child component, querying the original component corresponding to the target component in the target container, deleting the original component, and replacing the target component to the corresponding position of the original component in the target container to update the target container.

[0033] In some implementations, when the content of a target component changes, if there are other components that depend on the target component, the update of other components that depend on the target component can be automatically triggered, thereby completing the update of the target container. In one example, the two additional logics of "notifying the specified component to re-render after rendering" and "replacing the post-rendering code of a specific component to the specified position of this component" can be combined to realize the dynamic dependency relationship between the parent component and the child component, such as Figure 3 As shown. After the child component is rendered, it uses the "notify the specified component to re-render after rendering" additional logic to notify the parent component to re-render. In the rendering method of the parent component, the "replace the post-rendering code of the specific component to the specified position of this component" additional logic is used to insert the rendering result of the child component into a certain position of the parent component. In this way, the rendering result of the parent component includes the content of the child component. Since the rendering result of the parent component includes the content of the child component, when the content of the child component changes, the parent component needs to be re-rendered to reflect these changes. That is, when the internal text attribute of the child component changes, the child component will re-render itself and notify the parent component. After the parent component receives the notification, it will replace the re-rendered child component to the corresponding label position when triggering rendering, thereby updating the child component content contained in it.

[0034] The prototype design method provided by the present invention can easily support more complex component interactions and dependencies by rewriting additional logic, making the interactions between components clearer and more flexible, solving the problems of poor versatility and inability to directly reuse third-party components or existing components in the traditional prototype design process, thereby improving the efficiency of prototype design.

[0035] In some embodiments, the prototyping method of the present invention further includes: in response to completion of updating the target container, storing the target component and the updated internal text attributes into a preset archive list.

[0036] The present invention provides a prototype design method that stores internal text attributes in a preset archive list, which can track the historical versions of each component and its changes. This is crucial for subsequent troubleshooting, function iteration, or demand change backtracking. When a problem occurs on a page, users can quickly locate the context of the problem and possible change points by viewing the archive list.

[0037] In some embodiments, the step of obtaining a rendering result based on internal text attributes and a preset rendering function includes: monitoring whether the internal text attributes are updated; in response to the internal text attribute being updated, comparing the internal text attributes before the update and the internal text attributes after the update; and determining the rendering result based on the comparison result and the preset rendering function.

[0038] The present invention provides a prototype design method, which monitors the changes of internal text attributes and performs rendering operations according to comparison results when updates are detected, thereby avoiding unnecessary repeated rendering and improving the efficiency of prototype design.

[0039] In some embodiments, the step of monitoring operation events on the drawing board in real time includes: the step of monitoring operation events on the drawing board in real time includes: capturing user input on the drawing board in real time; in response to capturing the user input, parsing and detecting whether the user input is a legal operation; in response to the user input being a legal operation, generating an operation event based on the user input.

[0040] In some embodiments, Figure 4 As shown in the figure, taking the prototype design on a blank canvas as an example, the user operation process is explained: Step 1: Before starting the prototyping tool, users can define the static resources (such as CSS style sheets, JavaScript scripts, etc.) used in the extension script, and modify the default rendering method; Step 2: The user launches the prototyping tool and enters a blank canvas interface where the user can add, edit, and delete various components or elements; Step 3: The user can create a new component on a blank canvas, write or modify the internal HTML code of the newly created component, and after the user exits editing, the component will be rendered in the specified mode according to its internal HTML code and rendering function, and may trigger additional logic; Step 4: During this period, users can dynamically introduce or delete style sheets, scripts and other resources as needed to adjust the appearance or function of the design. At the same time, users can also modify the rendering function of the component to change the rendering method of the component or add new functions and adjust the layout; Step 5: When the design is complete, the user can choose to export the source code of the above design for use in other environments or further development. The user can also export the rendering results or archive the design to the server. After completing the above operations, the prototype design is completed.

[0041] A prototype design method provided by the present invention allows users to use HTML code in the design stage, such as HTML code containing link, script and style tags that can be used to change the appearance or behavior of components, and use the components rendered according to the HTML code for prototype design. At the same time, a custom rendering method and additional logic for extension after rendering are introduced to achieve quick setting of alignment, border or background color with little work.

[0042] Based on the same inventive concept, according to another aspect of the present invention, Figure 5 As shown, an embodiment of the present invention further provides a prototype design system, the prototype design system comprising: A monitoring module 110 is configured to monitor operation events on the drawing board in real time and determine a target object based on the operation events; A determination module 120, configured to determine whether the target object is in a first state; A first processing module 130 is configured to, in response to the target object being in a first state, display a target container corresponding to the target object in a first container state, and update an internal text attribute of the target object based on the target container; The second processing module 140 is configured to display a target container corresponding to the target object in a second container state in response to the target object not being in the first state, obtain a rendering result based on the internal text attribute of the target object and a preset rendering function, use the rendering result as a target component corresponding to the target object, and update the target container according to the target component.

[0043] The present invention provides a prototype design system, which captures user operation events on a front-end drawing board in real time, analyzes and obtains a target object and its state, and provides containers of different forms according to the state of the target object. When the target object is in a first state, the target container can display an editable multi-line text box for inputting codes to the user through the first container state, so that the user can directly edit the attribute values ​​of various attributes of the target object using HTML code. When the target object is in a second state, the target container can instantly render the edited HTML code to obtain a component through the second container state, so that the design effect can be instantly displayed to the user, and these rendered components can be directly used for further design work, thereby realizing additional functions or effects without changing the original design framework. Prototype design based on HTML code does not require redrawing the entire page or component design from scratch, which solves the problems of the inability to be common with web environment codes, poor versatility, and inability to directly reuse third-party components or existing components in the traditional prototype design process, thereby improving the efficiency of prototype design.

[0044] Based on the same inventive concept, according to another aspect of the present invention, Figure 6 As shown, an embodiment of the present invention further provides a computer device 30, which includes a processor 310 and a memory 320. The memory 320 stores a computer program 321 that can be run on the processor. When the processor 310 executes the program, the steps of the above method are performed.

[0045] Based on the same inventive concept, according to another aspect of the present invention, Figure 7 As shown, an embodiment of the present invention further provides a computer-readable storage medium 40, which stores a computer program 410 for executing the above method when executed by a processor.

[0046] Finally, it should be noted that a person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium of the program can be a disk, an optical disk, a read-only storage memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiments can achieve the same or similar effects as the corresponding above-mentioned any method embodiments.

[0047] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.

[0048] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope of the embodiments disclosed in the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. The serial numbers of the embodiments disclosed in the above embodiments of the present invention are for description only and do not represent the advantages and disadvantages of the embodiments. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.

[0049] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.

[0050] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the above embodiments of the present invention, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.

Claims

1. A prototyping method, It is characterized in that include: Monitor operation events on the drawing board in real time, and determine the target object based on the operation events; Determining whether the target object is in a first state; In response to the target object being in the first state, displaying a target container corresponding to the target object in the first container state, and updating an internal text attribute of the target object based on the target container; In response to the target object not being in the first state, the target container corresponding to the target object is displayed in a second container state, a rendering result is obtained based on an internal text attribute of the target object and a preset rendering function, the rendering result is used as a target component corresponding to the target object, and the target container is updated according to the target component.

2. The prototype design method according to claim 1, It is characterized in that The step of determining whether the target object is in the first state comprises: Obtaining the edit status attribute of the target object; Determining whether the attribute value of the editing state attribute is the first attribute value; In response to the attribute value of the editing state attribute being a first attribute value, determining that the target object is in a first state; In response to the attribute value of the editing state attribute not being the first attribute value, it is determined that the target object is not in the first state.

3. The prototype design method according to claim 1, It is characterized in that The step of updating the internal text attribute of the target object based on the target container comprises: Bidirectionally binding the target container in the first container state to the internal text attribute of the target object; The input event of the target container is listened to to obtain a user input code, and the user input code is synchronized to the internal text attribute.

4. The prototype design method according to claim 1, It is characterized in that The step of updating the target container according to the target component comprises: Detecting whether the target component is a child component; In response to the target component being a child component, querying the target container for an atomic component and a parent component corresponding to the target component, deleting the atomic component in the parent component, and replacing the target component with a position corresponding to the atomic component in the parent component to update the target container; In response to the target component not being a child component, the target container is queried for an original component corresponding to the target component, the original component is deleted, and the target component is replaced to a position corresponding to the original component in the target container to update the target container.

5. The prototype design method according to claim 1, It is characterized in that Also includes: In response to completion of updating the target container, the target component and the updated internal text attribute are stored in a preset archive list.

6. The prototype design method according to claim 1, It is characterized in that The step of obtaining a rendering result based on the internal text attributes and a preset rendering function comprises: Monitoring whether the internal text attribute is updated; In response to the internal text attribute being updated, comparing the internal text attribute before being updated with the internal text attribute after being updated; Based on the comparison result and the preset rendering function, the rendering result is determined.

7. The prototype design method according to claim 1, It is characterized in that The step of monitoring the operation events on the drawing board in real time includes: Capturing user input on the drawing board in real time; In response to capturing the user input, parsing and detecting whether the user input is a legal operation; In response to the user input being a legal operation, the operation event is generated according to the user input.

8. A prototyping system, It is characterized in that include: A monitoring module configured to monitor operation events on the drawing board in real time and determine a target object based on the operation events; A judging module, configured to judge whether the target object is in a first state; A first processing unit is configured to, in response to the target object being in a first state, display a target container corresponding to the target object in a first container state, and update an internal text attribute of the target object based on the target container; The second processing unit is configured to display the target container corresponding to the target object in a second container state in response to the target object not being in the first state, obtain a rendering result based on the internal text attribute of the target object and a preset rendering function, use the rendering result as the target component corresponding to the target object, and update the target container according to the target component.

9. A computer device, include: at least one processor; as well as A memory storing a computer program executable on the processor, wherein the processor executes the steps of the method according to any one of claims 1 to 7 when executing the program.

10. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are performed.