Configuration methods, devices, and electronic devices for component elements.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-25
- Publication Date
- 2026-08-14
AI Technical Summary
但是,相关技术中,无法快速定位组件中可配置元素对应的表单字段,导致组件的配置效率较低,并且在完成复杂的页面时,运营人员的学习成本较高
[0009]本公开实施例中,响应于组件中可配置元素被执行目标事件,确定可配置元素对应的XML的路径信息,根据XML的路径信息,定位可配置元素对应的表单字段,响应于表单字段的配置操作,对表单字段进行配置,并对可配置元素和表单字段的配置信息进行绑定。由此,本公开通过对表单字段进行配置,并对可配置元素和表单字段的配置信息进行绑定,可以快速定位可配置元素对应的表单字段,提高了用户的体验感,有利于提升组件的配置效率。
Smart Images

Figure CN122569925A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and more particularly to a method, apparatus, and electronic device for configuring component elements. Background Technology
[0002] Current event building platforms allow operations staff to view the effects of their H5 pages in real time through a visual interface. After completion, a deployment request can be submitted to publish the H5 page to the internet for user access. However, these technologies lack the ability to quickly locate form fields corresponding to configurable elements within components, resulting in low component configuration efficiency and a high learning curve for operations staff when creating complex pages. Summary of the Invention
[0003] This disclosure provides a method, apparatus, electronic device, storage medium, and computer program product for configuring component elements.
[0004] The first aspect of this disclosure provides a method for configuring a component element. The method includes: in response to a target event being executed on a configurable element in a component, determining the path information of Extensible Markup Language (XML) corresponding to the configurable element; locating a form field corresponding to the configurable element based on the path information of the XML; configuring the form field in response to a configuration operation of the form field, and binding the configuration information of the configurable element and the form field.
[0005] A second aspect of this disclosure provides a configuration apparatus for a component element, comprising: a determining module, configured to determine path information of an Extensible Markup Language (XML) corresponding to the configurable element in response to a target event being executed on the configurable element in the component; a locating module, configured to locate a form field corresponding to the configurable element based on the path information of the XML; and a configuration module, configured to configure the form field in response to a configuration operation of the form field, and to bind the configuration information of the configurable element and the form field.
[0006] A third aspect of this disclosure provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform a configuration method of component elements as described in the first aspect of the present disclosure.
[0007] A fourth aspect of this disclosure provides a computer-readable storage medium storing computer instructions for causing the computer to perform a configuration method for component elements as described in the first aspect of the present invention.
[0008] A fifth aspect of this disclosure provides a computer program product including a computer program that, when executed by a processor, implements a method for configuring component elements according to a first aspect of this disclosure.
[0009] In this embodiment, in response to a target event being executed on a configurable element in a component, the path information of the XML corresponding to the configurable element is determined. Based on the XML path information, the form field corresponding to the configurable element is located. In response to a configuration operation on the form field, the form field is configured, and the configuration information of the configurable element and the form field is bound together. Therefore, by configuring the form field and binding the configuration information of the configurable element and the form field, this disclosure can quickly locate the form field corresponding to the configurable element, improving the user experience and enhancing the configuration efficiency of the component.
[0010] Additional aspects and advantages of this disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this disclosure. Attached Figure Description
[0011] The above and / or additional aspects and advantages of this disclosure will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, in which:
[0012] Figure 1 A flowchart illustrating a method for configuring component elements according to an embodiment of this disclosure; Figure 2 A flowchart illustrating a method for configuring component elements according to another embodiment of this disclosure; Figure 3 This is a schematic diagram illustrating the binding of configuration information between configurable elements and form fields according to an embodiment of this disclosure; Figure 4 A flowchart illustrating a method for configuring component elements according to an embodiment of this disclosure; Figure 5 A schematic diagram illustrating the configuration of component elements provided in another embodiment of this disclosure; Figure 6 A schematic diagram of the structure of a configuration device for component elements provided in an embodiment of this disclosure; Figure 7 A block diagram of an electronic device provided according to an embodiment of this disclosure. Detailed Implementation
[0013] Embodiments of this disclosure are described in detail below. Examples of these embodiments are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this disclosure, and should not be construed as limiting this disclosure.
[0014] The following description, with reference to the accompanying drawings, describes a method, apparatus, electronic device, and storage medium for configuring component elements according to embodiments of the present disclosure.
[0015] Figure 1 This is a flowchart illustrating a method for configuring component elements according to an embodiment of the present disclosure.
[0016] like Figure 1 As shown, the method includes the following steps: S101, in response to the target event being executed on a configurable element in the component, determines the path information of the XML corresponding to the configurable element.
[0017] In this embodiment of the disclosure, in response to the execution of a target event by a configurable element in the component, the trigger command for the annotation mode of the form field is listened for in order to enter the annotation mode of the form field.
[0018] It should be noted that the target event can only be executed on configurable elements in the component after entering the annotation mode of the form field.
[0019] The target event refers to the event triggered during the configuration of the component element, such as click event and drag event.
[0020] Optionally, listen for configurable elements in the component. When a configurable element in the component is clicked, an event is triggered to determine the Extensible Markup Language (XML) path information corresponding to the configurable element (DOM element), which is the XPath corresponding to the configurable element.
[0021] S102, based on the path information in the XML, locate the form field corresponding to the configurable element.
[0022] Form fields refer to the basic building blocks of a form, and they provide an interactive interface for users.
[0023] In this embodiment of the disclosure, after obtaining the path information of the XML, the path information of the XML can be parsed, and the form field corresponding to the configurable element can be located based on the parsing result of the path information of the XML.
[0024] S103, responding to the configuration operation of the form field, configures the form field and binds the configuration information of the configurable element and the form field.
[0025] In this embodiment of the disclosure, in response to a user binding operation, configuration information of configurable elements and form fields is bound according to the user binding operation, and the configuration information includes at least the keys of the form fields.
[0026] In this embodiment, in response to a target event being executed on a configurable element in a component, the path information of the XML corresponding to the configurable element is determined. Based on the XML path information, the form field corresponding to the configurable element is located. In response to a configuration operation on the form field, the form field is configured, and the configuration information of the configurable element and the form field is bound together. Therefore, by configuring form fields and binding the configuration information of configurable elements and form fields, this disclosure can quickly locate the form field corresponding to a configurable element, improving the user experience and enhancing the configuration efficiency of the component.
[0027] Figure 2 This is a flowchart illustrating a method for configuring component elements according to an embodiment of the present disclosure. Based on the above embodiment, it further incorporates... Figure 2 The process of configuring component elements is explained, including the following steps: S201, in response to the target event being executed on a configurable element in a component, determines the path information of the XML corresponding to the configurable element.
[0028] In this embodiment of the disclosure, in response to the execution of a target event by a configurable element in the component, the trigger command for the annotation mode of the form field is listened for in order to enter the annotation mode of the form field.
[0029] In this embodiment of the disclosure, the triggering operation of the mode is monitored in the triggering area of the annotation mode of the form field in order to enter the annotation mode of the form field.
[0030] For example, in the trigger area of the form field's labeling mode, the mode trigger operation is listened to. When the user clicks the "Enter form field labeling mode" button, the form field enters the labeling mode.
[0031] In this embodiment of the disclosure, the triggering voice of the annotation mode of the form field is monitored in order to enter the annotation mode of the form field.
[0032] For example, listen for pattern triggering operations; when a user utters the voice command "Enter the annotation mode of the form field," enter the annotation mode of the form field.
[0033] S202, based on the path information in the XML, locate the form field corresponding to the configurable element.
[0034] S203, in response to the configuration operation of the form field, configure the form field and determine the first characteristic information of the configurable element and the second characteristic information of the form field.
[0035] In this embodiment of the disclosure, in response to the configuration operation of the form field, before configuring the form field, at least one of the form field's configuration template and configuration file is obtained, and at least one of the form field's configuration template and configuration file is displayed. The configuration template and configuration file are used to guide the user to perform the configuration.
[0036] Optionally, configuration templates for form fields can be pre-set and displayed. Users can select a target configuration template from the configuration templates according to the actual situation. The target configuration template is used to guide users in the configuration process, thereby reducing the user's workload.
[0037] In this embodiment of the disclosure, in response to the configuration operation of the form field, a form configuration interface including the path information of the form field and XML is displayed before configuring the form field.
[0038] Optionally, based on the path information in the XML, the top distance between the configurable element and its nearest parent element is determined, and the display position of the form configuration interface is determined based on the top distance.
[0039] For example, the configurable element is located based on the path information in the XML, the offset top of the nearest parent element of the configurable element is obtained, and the top distance of the form configuration interface from the top is determined based on the offset top of the nearest parent element and the preset offset. The distance of the form configuration interface from the left is set to 420px to set the horizontal position of the form configuration interface. The display position of the form configuration interface is determined based on the top distance of the form configuration interface from the top and the distance of the form configuration interface from the left.
[0040] It should be noted that the first characteristic information of a configurable element includes, but is not limited to, the position information of the configurable element.
[0041] Optionally, the component's identification information and version information can be obtained, and the position information of the configurable element can be determined based on the component's identification information, version information, and the XPath corresponding to the configurable element.
[0042] It should be noted that the second characteristic information of form fields includes, but is not limited to, the field name information and field location information of the form fields.
[0043] S204, Determine the association between configurable elements and form fields based on the first feature information and the second feature information.
[0044] Optionally, artificial intelligence algorithms can be used to predict the relationship between configurable elements and form fields to determine the relationship and improve the efficiency of determining the relationship.
[0045] S205, Based on the association relationship, bind the configuration information of configurable elements and form fields.
[0046] In this embodiment of the disclosure, after obtaining the association relationship, the configuration information of the configurable elements and form fields is bound according to the association relationship.
[0047] Optionally, based on the association, configurable elements can be dragged and dropped onto the corresponding form fields to bind the configuration information of the configurable elements and form fields, making the binding process more intuitive and improving the efficiency of binding the configuration information of configurable elements and form fields.
[0048] Optionally, for scenarios requiring extensive configuration of multiple configurable elements and form fields, batch operations can be performed to bind the configuration information of configurable elements and form fields in batches according to their relationships, thereby improving efficiency.
[0049] In this embodiment of the disclosure, in response to a component upgrade instruction, the most recent historical version is determined, the same configurable elements in the historical version and the current version are determined, the configuration information of the form fields of the same configurable elements in the historical version is determined, and the information is reused on the same configurable elements in the current version.
[0050] In this embodiment of the disclosure, in response to a component upgrade failure, the most recent historical version is determined, and the configuration information of the form fields of the configurable element associated with the historical version is rolled back.
[0051] For example, such as Figure 3 As shown, enter the form field annotation mode, click the configurable element "Complete All" in the component, and a border will be added after clicking the configurable element to indicate that the configurable element has been selected. Get the XPath corresponding to the configurable element (i.e., the clickable position), locate the form field corresponding to the configurable element based on the XPath, respond to the configuration operation of the form field, configure the form field, that is, mark the clickable position, and bind the configuration information of the configurable element and the form field by clicking the save configuration button.
[0052] In this embodiment, in response to a target event being executed on a configurable element in a component, the path information of the XML corresponding to the configurable element is determined. Based on the XML path information, the form field corresponding to the configurable element is located. In response to a configuration operation on the form field, first characteristic information of the configurable element and second characteristic information of the form field are determined. Based on the first and second characteristic information, the association relationship between the configurable element and the form field is determined. Based on the association relationship, the configuration information of the configurable element and the form field is bound. Therefore, this disclosure decouples the configuration information of configurable elements and form fields in a component, determines the association relationship between configurable elements and form fields, and binds the configuration information of configurable elements and form fields based on the association relationship. This facilitates later maintenance and management, improves the flexibility and accuracy of the configuration information binding process between configurable elements and form fields, facilitates rapid location of the form field corresponding to the configurable element, and improves the configuration efficiency of the component.
[0053] Figure 4 This is a flowchart illustrating a method for configuring component elements according to an embodiment of the present disclosure. Based on the above embodiment, it further incorporates... Figure 4 The process of configuring component elements is explained, including the following steps: S401, in response to the target event being executed on a configurable element in a component, determines the path information of the XML corresponding to the configurable element.
[0054] S402, based on the path information in the XML, locate the form field corresponding to the configurable element.
[0055] S403, in response to a configuration operation of a form field, determines the first characteristic information of the configurable element and the second characteristic information of the form field.
[0056] S404, Based on the first feature information and the second feature information, determine the association between the configurable element and the form field.
[0057] S405: Bind configuration information of configurable elements and form fields according to the association relationship.
[0058] S406, in response to a click event of a configurable element in non-label mode, locates the configuration area associated with the form field of the configurable element and highlights the configuration area.
[0059] In this embodiment of the disclosure, clicking on a configurable element in non-label mode automatically locates the configuration area associated with the form field of the configurable element and highlights the configuration area.
[0060] Optionally, a border flashing effect can be added to the configuration area, and a highlighting effect can be added to the configuration area to make the configuration area stand out.
[0061] For example, such as Figure 5 As shown, a visualization platform is built for the H5 page. In non-annotation mode, the operator clicks the configurable element "Close Button" in the component. After clicking the configurable element, a border is added to indicate that the configurable element has been selected. The configuration area associated with the form field of the configurable element is located, that is, the configuration area of "Close Image" is located, and the configuration area is highlighted.
[0062] In this embodiment, in response to a target event being executed on a configurable element in a component, the path information of the XML corresponding to the configurable element is determined. Based on the XML path information, the form field corresponding to the configurable element is located. In response to a configuration operation on the form field, first feature information of the configurable element and second feature information of the form field are determined. Based on the first and second feature information, the association between the configurable element and the form field is determined. Based on the association, the configuration information of the configurable element and the form field is bound. In response to a click event on the configurable element in non-annotation mode, the configuration area associated with the form field of the configurable element is located and highlighted. Therefore, this disclosure can directly locate the configuration area associated with the form field of a configurable element and highlight the configuration area, improving the configuration efficiency of the component. Furthermore, when completing complex pages, it reduces the learning cost for operators, enhances the user interaction experience, and improves the user experience.
[0063] To implement the component element configuration method of the first aspect embodiment described above, this disclosure proposes a component element configuration apparatus. Figure 6 This is a schematic diagram of the structure of a component element configuration device according to an embodiment of the present disclosure. Figure 6 As shown, the component element configuration device 600 includes: The determination module 610 is used to determine the path information of the Extensible Markup Language (XML) corresponding to the configurable element in response to the target execution event of the configurable element in the component. The positioning module 620 is used to locate the form field corresponding to the configurable element based on the path information of the XML. The configuration module 630 is used to configure the form field in response to the configuration operation of the form field, and to bind the configuration information of the configurable element and the form field.
[0064] In one embodiment of this disclosure, the configuration module 630 is further configured to: determine first feature information of the configurable element and second feature information of the form field; determine the association relationship between the configurable element and the form field based on the first feature information and the second feature information; and bind the configuration information of the configurable element and the form field based on the association relationship.
[0065] In one embodiment of this disclosure, the configuration module 630 is further configured to: in response to a user binding operation, bind the configuration information of the configurable element and the form field according to the user binding operation, wherein the configuration information includes at least the key of the form field.
[0066] In one embodiment of this disclosure, before configuring the form field in response to the configuration operation of the form field, the device 600 is further configured to: obtain at least one of the configuration template and configuration file of the form field; and display at least one of the configuration template and configuration file of the form field, wherein the configuration template and configuration file are used to guide the user to perform configuration.
[0067] In one embodiment of this disclosure, before configuring the form field in response to the configuration operation of the form field, the device 600 is further configured to: display a form configuration interface including the form field and the path information of the XML.
[0068] In one embodiment of this disclosure, the apparatus 600 is further configured to: determine the top distance between the configurable element and its nearest parent element based on the path information of the XML; and determine the display position of the form configuration interface based on the top distance.
[0069] In one embodiment of this disclosure, before the target event is executed on a configurable element in the component, the device 600 is further configured to: listen for a trigger command for a form field's annotation mode to enter the form field's annotation mode.
[0070] In one embodiment of this disclosure, the device 600 is further configured to: listen to a mode triggering operation in the triggering area of the annotation mode of the form field to enter the annotation mode of the form field; or, listen to the triggering voice of the annotation mode of the form field to enter the annotation mode of the form field.
[0071] In one embodiment of this disclosure, after binding the configuration information of the configurable element and the form field, the device 600 is further configured to: in response to a click event of the configurable element in non-label mode, locate the configuration area associated with the form field of the configurable element, and highlight the configuration area.
[0072] In one embodiment of this disclosure, the apparatus 600 is further configured to: in response to a component upgrade instruction, determine a historical version most recent to the current version; determine identical configurable elements in the historical version and the current version; determine configuration information of form fields of the identical configurable elements from the historical version, and reuse them on the identical configurable elements in the current version.
[0073] In one embodiment of this disclosure, the apparatus 600 is further configured to: in response to a component upgrade failure, determine the most recent historical version to the current version, and roll back to the configuration information of the form fields of the configurable element associated with the historical version.
[0074] In this embodiment, in response to a target event being executed on a configurable element in a component, the path information of the XML corresponding to the configurable element is determined. Based on the XML path information, the form field corresponding to the configurable element is located. In response to a configuration operation on the form field, the form field is configured, and the configuration information of the configurable element and the form field is bound together. Therefore, by configuring the form field and binding the configuration information of the configurable element and the form field, this disclosure can quickly locate the form field corresponding to the configurable element, improving the user experience and enhancing the configuration efficiency of the component.
[0075] It should be noted that the above explanation of the configuration method embodiment for the component elements of the first aspect also applies to the configuration device for the component elements of the embodiments of this disclosure, and the specific process will not be repeated here.
[0076] like Figure 7 The diagram shown is a block diagram of an electronic device according to a method of configuring component elements according to an embodiment of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as intelligent voice interaction devices, personal digital processing devices, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0077] like Figure 7As shown, the electronic device includes one or more processors 701, a memory 702, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components are interconnected via different buses and can be mounted on a common motherboard or otherwise as required. The processor 701 can process instructions executed within the electronic device, including instructions stored in or on memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple electronic devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 7 Take the 701 processor as an example.
[0078] The memory 702 is the non-transitory computer-readable storage medium provided in this disclosure. The memory stores instructions executable by at least one processor to cause the at least one processor to perform the configuration method of the component elements provided in the first aspect embodiment of this disclosure. The non-transitory computer-readable storage medium of this disclosure stores computer instructions for causing a computer to perform the configuration method of the component elements provided in the first aspect embodiment of this disclosure.
[0079] The memory 702, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the component element configuration method provided in the first aspect embodiment of this disclosure. The processor 701 executes various functional applications and data processing of the server by running the non-transitory software programs, instructions, and modules stored in the memory 702, thereby implementing the component element configuration method in the above method embodiment.
[0080] Memory 702 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created by the use of the electronic device according to the configuration method of the component element. Furthermore, memory 702 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 702 may optionally include memory remotely located relative to processor 701, and these remote memories can be connected to the configuration method of the component element or the electronic device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0081] The electronic device using the component element configuration method may further include: an input device 703 and an output device 704. The processor 701, memory 702, input device 703, and output device 704 can be connected via a bus or other means. Figure 7 Taking the example of a connection between China and Israel via a bus.
[0082] Input device 703 can receive input digital or character information, as well as key signal inputs related to user settings and function control of electronic devices for configuring component elements, such as touchscreens, keypads, mice, trackpads, touchpads, joysticks, one or more mouse buttons, trackballs, joysticks, etc. Output device 704 may include display devices, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors). The display device may include, but is not limited to, liquid crystal displays (LCDs), light-emitting diode (LED) displays, and plasma displays. In some embodiments, the display device may be a touchscreen.
[0083] To implement the above embodiments, this disclosure also proposes a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the configuration method of component elements as proposed in the first aspect of the present disclosure.
[0084] To implement the above embodiments, this disclosure proposes a computer program product, including a computer program that, when executed by a processor, implements the configuration method of component elements provided in the first aspect of the present disclosure.
[0085] Various implementations of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, application-specific integrated circuits (ASICs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include: implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0086] These computational programs (also referred to as programs, software, software applications, or code) include machine instructions for a programmable processor and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms “machine-readable medium” and “computer-readable medium” refer to any computer program product, device, and / or apparatus (e.g., disk, optical disk, memory, programmable logic device (PLD)) used to provide machine instructions and / or data to a programmable processor, including machine-readable media that receive machine instructions as machine-readable signals. The term “machine-readable signal” refers to any signal used to provide machine instructions and / or data to a programmable processor.
[0087] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0088] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0089] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system. It addresses the shortcomings of traditional physical hosts and VPS (Virtual Private Server, or simply "VPS") services, such as high management difficulty and weak business scalability.
[0090] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0091] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means at least two, such as two, three, etc., unless otherwise expressly and specifically defined.
[0092] Although embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present disclosure.
Claims
1. A method for configuring component elements, characterized in that, The method includes: In response to a target event being executed on a configurable element in a component, determine the path information of the Extensible Markup Language (XML) corresponding to the configurable element; Based on the path information in the XML, locate the form field corresponding to the configurable element; In response to the configuration operation of the form field, the form field is configured, and the configuration information of the configurable element and the form field is bound.
2. The method according to claim 1, characterized in that, The binding of configuration information between the configurable element and the form field includes: Determine the first characteristic information of the configurable element and the second characteristic information of the form field; Based on the first feature information and the second feature information, the association between the configurable element and the form field is determined; Based on the aforementioned association, the configuration information of the configurable element and the form field is bound.
3. The method according to claim 1, characterized in that, The binding of configuration information between the configurable element and the form field includes: In response to a user binding operation, the configuration information of the configurable element and the form field is bound according to the user binding operation, wherein the configuration information includes at least the key of the form field.
4. The method according to claim 1, characterized in that, Before configuring the form field in response to the configuration operation of the form field, the method further includes: Obtain at least one of the configuration templates and configuration files for the form fields; Display at least one of the configuration templates and configuration files for the form fields, wherein the configuration templates and configuration files are used to guide the user through the configuration process.
5. The method according to any one of claims 1-4, characterized in that, Before configuring the form field in response to the configuration operation of the form field, the method further includes: The form configuration interface displays the path information of the form fields and the XML.
6. The method according to claim 5, characterized in that, The form configuration interface, which displays the form fields and the path information of the XML, includes: Based on the path information in the XML, determine the top distance between the configurable element and its nearest parent element; The display position of the form configuration interface is determined based on the top distance.
7. The method according to any one of claims 1-4, characterized in that, The response prior to the execution of a target event by a configurable element in the component also includes: Listen for commands that trigger the annotation mode of a form field to enter the annotation mode of the form field.
8. The method according to claim 7, characterized in that, Listening for the trigger command of the form field annotation mode to enter the form field annotation mode includes any of the following operations: In the trigger area of the annotation mode of the form field, the mode trigger operation is listened to in order to enter the annotation mode of the form field; or, Listen for the triggering voice of the annotation mode of the form field to enter the annotation mode of the form field.
9. The method according to any one of claims 1-4, characterized in that, After binding the configuration information of the configurable element and the form field, the method further includes: In response to a click event of the configurable element in non-label mode, the configuration area associated with the form field of the configurable element is located and the configuration area is highlighted.
10. The method according to any one of claims 1-4, characterized in that, The method further includes: In response to a component upgrade command, determine the most recent historical version relative to the current version; Identify the configurable elements that are identical in the historical and current versions; From the historical versions, determine the configuration information of the form fields of the same configurable elements and reuse it on the same configurable elements in the current version.
11. The method according to claim 10, characterized in that, The method further includes: In response to a component upgrade failure, determine the most recent historical version to the current version and roll back to the configuration information of the form fields of the configurable element associated with that historical version.
12. A configuration device for component elements, characterized in that, The device includes: The determination module is used to determine the path information of the Extensible Markup Language (XML) corresponding to the configurable element in response to the target event of the configurable element in the component. The positioning module is used to locate the form field corresponding to the configurable element based on the path information of the XML. The configuration module is used to respond to the configuration operation of the form field, configure the form field, and bind the configuration information of the configurable element and the form field.
13. An electronic device, characterized in that, Including memory and processor; The memory and the processor communicate with each other through an internal connection path. The memory is used to store instructions, and the processor is used to execute the instructions stored in the memory. When the processor executes the instructions stored in the memory, it causes the processor to perform the method of any one of claims 1-11.
14. A computer-readable storage medium storing a computer program, characterized in that, When a computer program is run on a computer, the method of any one of claims 1-11 is performed.
15. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method according to any one of claims 1-11.