Method, apparatus and electronic device for processing component parameters

By automatically processing component parameters of combined components, the problem of low efficiency in setting combined component parameters is solved, efficient setting of component parameters is achieved, and development efficiency is improved.

CN113900661BActive Publication Date: 2025-07-22LENOVO (BEIJING) LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111251707.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-25
Publication Date
2025-07-22
Estimated Expiration
2041-10-25

AI Technical Summary

Technical Problem

In the prior art, the component parameter setting of combined components is inefficient and manual operations are required, resulting in low development efficiency.

Method used

By obtaining the component parameters of each component that constitutes the combined component and processing it according to the parameter type, component parameters are automatically set for the combined component, including extracting target attributes and target events, and deleting attributes and events of dependencies and response relationships.

Benefits of technology

The efficiency of component parameter setting of combined components is improved, manual intervention is reduced, and development efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113900661B_ABST
    Figure CN113900661B_ABST
Patent Text Reader

Abstract

The present application discloses a method, apparatus, and electronic device for processing component parameters. The method includes: obtaining at least one component parameter of each constituent component that makes up a combined component; processing the component parameters of the constituent components according to the parameter types of the component parameters to obtain the component parameters of the combined component.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular, to a method, apparatus, and electronic device for processing component parameters. Background Art

[0002] A component is an important concept in application development. A single component can implement corresponding functions, and multiple small, independent, and reusable components can be combined again to form a larger component, that is, a composite component. Further, large-scale applications can be built.

[0003] After generating a new composite component from multiple components, it is necessary to set parameters of the composite component, such as parameters like attributes and events, for the control of the composite component. Summary of the Invention

[0004] In view of this, this application provides a method, apparatus, and electronic device for processing component parameters as follows:

[0005] A method for processing component parameters includes:

[0006] Obtaining at least one component parameter of each constituent component that makes up a composite component;

[0007] Processing the component parameters of the constituent components according to the parameter types of the component parameters to obtain the component parameters of the composite component.

[0008] In the above method, preferably, the component parameters include at least one component attribute and / or at least one component event;

[0009] Among them, processing the component parameters of the constituent components according to the parameter types of the component parameters to obtain the component parameters of the composite component includes:

[0010] For the component attributes, processing the component attributes of the constituent components in a first manner to obtain the component attributes of the composite component;

[0011] And / or,

[0012] For the component events, processing the component events of the constituent components in a second manner to obtain the component events of the composite component.

[0013] In the above method, preferably, processing the component attributes of the constituent components in a first manner to obtain the component attributes of the composite component includes:

[0014] Extracting at least one target attribute from the component attributes of the constituent components, where the target attribute exists in each of the constituent components at least; the target attribute is the component attribute of the composite component.

[0015] In the above method, preferably, the attribute value of the target attribute in each of the constituent components is the same, and the target attribute is independent of other constituent components.

[0016] In the above method, preferably, at least one target attribute is extracted from the component attributes of the constituent components, including:

[0017] Obtain all component attributes of each of the constituent components;

[0018] From all the component attributes of each of the constituent components, extract at least one target attribute, where the target attribute exists in the component attributes of each of the constituent components;

[0019] Among the target attributes, delete the component attributes with different attribute values in each of the constituent components;

[0020] Among the target attributes, delete the component attributes that have a dependency relationship with other constituent components.

[0021] In the above method, preferably, the component events of the constituent components are processed in a second manner to obtain the component events of the combined component, including:

[0022] Extract at least one target event from the component events of the constituent components, where the target event exists in at least each of the constituent components; the target event is the component event of the combined component.

[0023] In the above method, preferably, the target event is independent of other constituent components.

[0024] In the above method, preferably, at least one target event is extracted from the component events of the constituent components, including:

[0025] Obtain all component events of each of the constituent components;

[0026] From all the component events of each of the constituent components, extract at least one target event, where the target event exists in the component events of each of the constituent components;

[0027] Among the target events, delete the component events that have a response relationship with other constituent components.

[0028] A device for processing component parameters, including:

[0029] A parameter acquisition unit, configured to acquire at least one component parameter of each constituent component that makes up the combined component;

[0030] A parameter processing unit for processing the component parameters of the constituent components according to the component types of the component parameters to obtain the component parameters of the combined component.

[0031] An electronic device, comprising:

[0032] A memory for storing a computer program and data generated by running the computer program;

[0033] A processor for executing the computer program to achieve: obtaining at least one component parameter of each constituent component forming a combined component; processing the component parameters of the constituent components according to the component types of the component parameters to obtain the component parameters of the combined component.

[0034] It can be seen from the above technical solutions that in a method, device, and electronic device for processing component parameters disclosed in this application, by obtaining the component parameters of each constituent component forming a combined component, and then processing the component parameters of these constituent components according to the parameter types of the component parameters to obtain the component parameters of the combined component. Obviously, compared with the solution of manually setting component parameters by the user, in this application, the component parameters of the combined component can be automatically set, thereby improving the setting efficiency of the component parameters. Description of the Drawings

[0035] In order to more clearly illustrate the technical solutions of the embodiments of this application, the drawings required for description in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of this application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0036] Figure 1 A flowchart of a method for processing component parameters provided in Embodiment 1 of this application;

[0037] Figure 2 A schematic diagram of a combined component composed of multiple constituent components;

[0038] Figures 3 - 4 Partial flowcharts of a method for processing component parameters provided in Embodiment 1 of this application, respectively;

[0039] Figure 5 A schematic structural diagram of a device for processing component parameters provided in Embodiment 2 of this application;

[0040] Figure 6 A schematic structural diagram of an electronic device provided in Embodiment 3 of this application;

[0041] Figures 7 - 8These are respectively implementation example diagrams for setting the attributes and events of combined components during the development of a chat application in this application. Detailed implementation manners

[0042] Next, the technical solutions in the embodiments of this application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.

[0043] Refer to Figure 1 As shown, it is a flowchart of the implementation of a method for processing component parameters provided in the first embodiment of this application. This method can be applicable to electronic devices capable of application development, such as computers or servers, etc. During the application development process, the development of components is involved. Multiple components can form a combined component, and the components that make up this combined component are called constituent components. For example, Figure 2 as shown in

[0044] Specifically, the method in this embodiment may include the following steps:

[0045] Step 101: Obtain at least one component parameter of each constituent component that makes up the combined component.

[0046] Among them, each constituent component has one or more component parameters. Here, the component parameters may include at least one component attribute, or the component parameters may include at least one component event, or the component parameters may include at least one component attribute and at least one component event.

[0047] Here, the component attribute can be understood as a state attribute representing the state of the component, such as the button color attribute, the input box font color, etc.; and the component event can be understood as an operation event associated with the component, such as a click event, a mouse over event, a pop-up dialog event, etc.

[0048] Specifically, in this embodiment, the component code of each constituent component can be parsed, and then at least one component attribute and / or at least one component event of each constituent component can be parsed.

[0049] Step 102: Process the component parameters of the constituent components according to the parameter type of the component parameters to obtain the component parameters of the combined component.

[0050] Among them, since the component parameters of each constituent component may only include component attributes, or may only include component events, or both, in this embodiment, the component parameters of the constituent components can be processed according to these two different parameter types of component attributes and component events, so as to obtain the component attributes and / or component events of the combined component, that is, the component parameters of the combined component.

[0051] Specifically, in this embodiment, the component parameters of the constituent components can be screened, integrated, etc. according to the parameter types of the component parameters, so as to obtain the component parameters of the combined component.

[0052] It can be seen from the above technical solutions that in a method, device, and electronic device for processing component parameters disclosed in this application, by obtaining the component parameters of each constituent component that makes up the combined component, and then processing the component parameters of these constituent components according to the parameter types of the component parameters, the component parameters of the combined component are obtained. Obviously, compared with the solution of manually setting component parameters by the user, in this embodiment, the component parameters of the combined component can be automatically set, thereby improving the setting efficiency of the component parameters.

[0053] In one implementation, the component parameters of each constituent component only include one or more component attributes. At this time, in step 102, the component attributes of the constituent components can be processed according to the first method for the component attributes, so as to obtain the component attributes of the combined component.

[0054] For example, in this embodiment, at least one target attribute can be extracted from the component attributes of the constituent components, and the target attribute exists in at least each constituent component, and then the target attribute is determined as the component attribute of the combined component.

[0055] Furthermore, in addition to existing in each constituent component, the target attribute also has the same attribute value in each constituent component, and moreover, the target attribute is independent of other constituent components in each constituent component. Here, the attribute value can be understood as the parameter value of the component attribute, such as the color attribute is red, etc. And the target attribute being independent of other constituent components in the constituent component can be understood as: the attribute value of the target attribute in the constituent component does not depend on the attribute values of other constituent components, that is to say, no matter what the attribute values of the component attributes in other constituent components are, they will not affect the attribute value of the target attribute in the constituent component where it is located.

[0056] Based on this, when extracting the target attribute from the component attributes of the constituent components in step 102, it can be achieved through the following methods, such as Figure 3 shown in

[0057] Step 301: Obtain all component attributes of each constituent component.

[0058] Among them, in this embodiment, all component attributes of each constituent component can be extracted by parsing the component code of each constituent component.

[0059] For example, taking Figure 2 the combined component in as an example, in this embodiment, the component attributes of component 1, component 2, and component 3 are extracted respectively, and then the following are obtained: attribute 1, attribute 2, and attribute 3 of component 1, attribute 1 and attribute 2 of component 2, and attribute 1 and attribute 2 of component 3.

[0060] Step 302: Extract at least one target attribute from all component attributes of each constituent component.

[0061] Among them, the target attribute is the component attribute existing in each constituent component.

[0062] That is to say, in this embodiment, among all component attributes of each constituent component, the common attributes shared by each constituent component are extracted, that is, the target attributes.

[0063] For example, taking Figure 2 the combined component shown in as an example, in this embodiment, the common attributes of component 1, component 2, and component 3 are extracted: attribute 1 and attribute 2.

[0064] Step 303: Among the target attributes, delete the component attributes with different attribute values in each constituent component.

[0065] That is to say, in this embodiment, the attribute values of each constituent component on the target attribute are compared. If the attribute values of the target attribute are the same on each constituent component, then the target attribute is not deleted. If the attribute value of the target attribute is different on one or more constituent components from that on other constituent components, that is, the attribute values of the target attribute in the respective constituent components to which it belongs are not completely consistent, then delete the target attribute, and then retain the target attributes with exactly the same attribute values.

[0066] For example, taking Figure 2 the combined component shown in as an example, in this embodiment, the attribute values of attribute 1 in component 1, component 2, and component 3 are compared. If the attribute values of attribute 1 in component 1, component 2, and component 3 are the same, then retain attribute 1 as the target attribute; then compare the attribute values of attribute 2 in component 1, component 2, and component 3. If the attribute values of attribute 2 in component 1 and component 3 are the same but different from the attribute value of attribute 2 in component 2, then no longer retain attribute 2 and directly delete attribute 2.

[0067] Step 304: Among the target attributes, delete the component attributes that have a dependency relationship with other constituent components.

[0068] Among them, in this embodiment, the dependencies of the target attributes after attribute value screening are screened. If the attribute value of the target attribute is affected by other constituent components, that is, a change in the attribute value of a certain component attribute in other constituent components will cause a change in the attribute value of the target attribute, then it can be determined that there is a dependency between the target attribute and the other constituent components. At this time, the target attribute can be deleted. If there is no dependency between the target attribute and other constituent components, then the target attribute is retained.

[0069] For example, taking Figure 2 the combined component shown in as an example, in this embodiment, it is determined whether there is a dependency between Attribute 1, which belongs to Component 1, Component 2, and Component 3 and has the same attribute value, and other components. If the attribute value of Attribute 1 is not affected by any attribute or event in any component, then Attribute 1 is retained as the target attribute. Thus, the attribute of the combined component, that is, Attribute 1, is obtained.

[0070] In one implementation, the component parameters of each constituent component only include one or more component events. At this time, in step 102, the component events of the constituent components can be processed according to the second method for the component events, and then the component events of the combined component are obtained.

[0071] For example, in this embodiment, at least one target event can be extracted from the component events of the constituent components, and the target event exists in at least each constituent component, and then the target event is determined as the component event of the combined component.

[0072] Furthermore, in addition to existing in each constituent component, the target event is independent of other constituent components in each constituent component. The target event being independent of other constituent components in the constituent component can be understood as: the target event is a response event to the component events in other constituent components in the constituent component and will not cause a response to the component events in other constituent components. That is to say, no matter what component events occur in other constituent components, they will not affect the event state of the target event in the constituent component where it is located. No matter what event state the target event is in, such as the event not being started, the event being started, or the event ending, etc., it will not affect any component events in other constituent components.

[0073] Based on this, when extracting the target event from the component events of the constituent components in step 102, it can be achieved through the following methods, such as Figure 4 shown in

[0074] Step 401: Obtain all the component events of each constituent component.

[0075] Among them, in this embodiment, all the component events of each constituent component can be extracted by parsing the component code of each constituent component.

[0076] For example, taking the combined components in Figure 2 as an example, in this embodiment, the component events of component 1, component 2, and component 3 are extracted respectively, and then: event 1, event 2, and event 3 of component 1, event 1 and event 2 of component 2, and event 1 and event 2 of component 3 are obtained.

[0077] Step 402: Extract at least one target event from all the component events of each constituent component.

[0078] Among them, the target event is the component event existing in each constituent component.

[0079] That is to say, in this embodiment, from all the component events of each constituent component, the common events shared by each constituent component are extracted, that is, the target events.

[0080] For example, taking the combined components shown in Figure 2 as an example, in this embodiment, the common attributes of component 1, component 2, and component 3 are extracted: event 1 and event 2.

[0081] Step 403: Delete the component events that have a response relationship with other constituent components from the target events.

[0082] Among them, in this embodiment, the response relationships of the target events are screened. If the target event is a response event of any event in other constituent components, or starting this target event will cause the component events in other constituent components to be started, then it can be determined that this target event has a response relationship with this other constituent component. At this time, this target event can be deleted. And if this target event has no response relationship with other constituent components, then this target event is retained.

[0083] For example, taking the combined components shown in Figure 2 as an example, in this embodiment, it is judged whether event 1 and event 2, which belong to both component 1, component 2, and component 3, have a response relationship with other components. If event 1 is not affected by any event in any component and does not affect the component events in other components, then event 1 is retained as the target event. And event 2 and event 3 in component 1 are interaction events, that is, event 2 and event 3 are response events to each other. At this time, event 2 is deleted. Thus, the component events of the combined components are obtained: event 1.

[0084] In another implementation manner, the component parameters of each constituent component not only include one or more component attributes, but also include one or more component events. At this time, in step 102, the corresponding component parameters can be processed respectively for the component attributes and component events in the corresponding manner, as follows:

[0085] Process the component attributes of the constituent components in a first manner to obtain the component attributes of the combined component; and process the component events of the constituent components in a second manner to obtain the component events of the combined component. Thus, the component attributes and component events of the combined component are obtained.

[0086] It should be noted that the specific implementation methods for obtaining the component attributes of the combined component in the above first manner and for obtaining the component events in the second manner can refer to Figure 3 and Figure 4 the solutions shown, which will not be elaborated here.

[0087] Refer to Figure 5 , which is a schematic structural diagram of a device for processing component parameters provided in the second embodiment of the present application. This device can be configured in an electronic device capable of application development, such as a computer or a server. During the application development process, the development of components is involved. Multiple components can form a combined component, and the components that make up the combined component are called constituent components. As Figure 2 shown, the constituent components have their own component parameters, and the combined component also needs to be set with corresponding component parameters. The technical solution in this embodiment is mainly used to improve the setting efficiency of the component parameters of the combined component.

[0088] Specifically, the device in this embodiment may include the following units:

[0089] A parameter acquisition unit 501, configured to acquire at least one component parameter of each constituent component that makes up the combined component;

[0090] A parameter processing unit 502, configured to process the component parameters of the constituent components according to the component types of the component parameters to obtain the component parameters of the combined component.

[0091] From the above technical solution, it can be seen that in a device for processing component parameters provided in the second embodiment of the present application, by acquiring the component parameters of each constituent component that makes up the combined component, and then processing the component parameters of these constituent components according to the parameter types of the component parameters, the component parameters of the combined component are obtained. It can be seen that compared with the solution of manually setting component parameters by the user, in this embodiment, the component parameters of the combined component can be automatically set, thereby improving the setting efficiency of the component parameters.

[0092] In one implementation, the component parameters include at least one component attribute and / or at least one component event; wherein, the parameter processing unit 502 is specifically configured to: for the component attribute, process the component attributes of the constituent components in a first manner to obtain the component attributes of the combined component; and / or, for the component event, process the component events of the constituent components in a second manner to obtain the component events of the combined component.

[0093] Wherein, when the parameter processing unit 502 processes the component attributes of the constituent components in the first manner, it is specifically configured to: extract at least one target attribute from the component attributes of the constituent components, and the target attribute exists in at least each of the constituent components; the target attribute is the component attribute of the combined component. In addition, the attribute values of the target attribute in each of the constituent components are the same, and the target attribute is independent of other constituent components. For example, the parameter processing unit 502 first obtains all the component attributes of each of the constituent components; among all the component attributes of each of the constituent components, extracts at least one target attribute, and the target attribute is the component attribute existing in each of the constituent components; among the target attributes, deletes the component attributes with different attribute values in each of the constituent components; among the target attributes, deletes the component attributes having a dependency relationship with other constituent components.

[0094] Wherein, when the parameter processing unit 502 processes the component events of the constituent components in the second manner, it is specifically configured to: extract at least one target event from the component events of the constituent components, and the target event exists in at least each of the constituent components; the target event is the component event of the combined component. Among them, the target event is independent of other constituent components. For example, the parameter processing unit 502 first obtains all the component events of each of the constituent components; among all the component events of each of the constituent components, extracts at least one target event, and the target event is the component event existing in each of the constituent components; among the target events, deletes the component events having a response relationship with other constituent components.

[0095] It should be noted that the specific implementation of each unit in this embodiment can refer to the corresponding content in the foregoing, and will not be elaborated here.

[0096] Reference Figure 6 , is a schematic structural diagram of an electronic device provided in Embodiment 3 of the present application. The electronic device can be an electronic device capable of application development, such as a computer or a server, etc. During the application development process, the development of components is involved. Multiple components can form a combined component, and the components that make up the combined component are called constituent components, such as Figure 2As shown, the constituent components have their respective component parameters, and the combined component also needs to be set with corresponding component parameters. The technical solution in this embodiment is mainly used to improve the setting efficiency of the component parameters of the combined component.

[0097] Specifically, the electronic device in this embodiment may include the following structure:

[0098] A memory 601 for storing a computer program and data generated by the running of the computer program;

[0099] A processor 602 for executing the computer program to achieve: obtaining at least one component parameter of each constituent component that makes up the combined component; processing the component parameters of the constituent components according to the component type of the component parameters to obtain the component parameters of the combined component.

[0100] As can be seen from the above technical solution, in an electronic device provided in Embodiment 3 of the present application, by obtaining the component parameters of each constituent component that makes up the combined component, and then processing the component parameters of these constituent components according to the parameter type of the component parameters to obtain the component parameters of the combined component. It can be seen that compared with the solution of manually setting component parameters by the user, in this embodiment, the component parameters of the combined component can be automatically set, thereby improving the setting efficiency of the component parameters.

[0101] Based on the technical solution in the present application, taking the development of an application program of a chat application as an example, the setting solution for the attributes and events of the combined components therein will be described during the development process:

[0102] First, the core of setting the attributes and events of the combined component in the present application lies in:

[0103] 1. Extract the common attributes of all constituent components in the combined component and combine the unique attributes of each constituent component to generate the attributes of the combined component.

[0104] 2. Generate the events of the combined component according to the common events of all constituent components in the combined component and combine the unique events of each constituent component.

[0105] Specifically, referring to Figure 7 and Figure 8 the example shown, the setting solution for attributes and events in the present application is as follows:

[0106] As Figure 7As shown, in this embodiment, when generating the attributes of a composite component, all the attributes of the constituent components such as Component 1 and Component 2 can be extracted first, the common attributes can be extracted from all the attributes, and then the attributes that all components have but with different attribute values can be excluded from the common attributes. For example, since the attribute value of Attribute 2 of Component 1 and Attribute 2 of Component 2 are different, Attribute 2 is excluded; then the dependent attributes, that is, the attributes calculated from the attribute values of other components or controlled by events, can be excluded from the remaining attributes. Finally, the remaining attributes are used as the attributes of the composite component, that is, Attribute 1.

[0107] As Figure 8 As shown, in this embodiment, when generating the attributes of a composite component, all the events that all the constituent components have can be extracted first, and then the interaction events or response events between all components can be excluded from all the events. For example, Event 2 is excluded, and then the remaining events are used as the events of the composite component, that is, Event 1.

[0108] It can be seen that in this application, comprehensive encapsulation of the composite component can be achieved, the cohesion characteristics of the composite component can be strengthened, and the unity of the component structure can be realized. In addition, this application can avoid developers being troubled by the attributes of the composite component, improve the development efficiency of developers. After the attributes and events of the composite component are generated, developers only need to set the attributes of the composite component, and there is no need to set the components within the composite component.

[0109] The various embodiments in this specification are described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. The same or similar parts among the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method part.

[0110] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in this article can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.

[0111] The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be implemented directly in hardware, in software modules executed by a processor, or in a combination thereof. The software modules may be located in random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium well known in the art.

[0112] The foregoing description of the disclosed embodiments enables those skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for processing component parameters, comprising: Obtaining at least one component parameter of each constituent component that makes up a combined component; Processing the component parameters of the constituent components according to the parameter types of the component parameters to obtain the component parameters of the combined component; Wherein, the component parameters include at least one component attribute and / or at least one component event; Wherein, processing the component parameters of the constituent components according to the parameter types of the component parameters to obtain the component parameters of the combined component includes: For the component attributes, processing the component attributes of the constituent components in a first manner to obtain the component attributes of the combined component; And / or, For the component events, processing the component events of the constituent components in a second manner to obtain the component events of the combined component; Wherein, processing the component attributes of the constituent components in a first manner to obtain the component attributes of the combined component includes: Extracting at least one target attribute from the component attributes of the constituent components, where the target attribute exists in at least each of the constituent components; the target attribute is the component attribute of the combined component; among the target attributes, deleting the component attributes that have a dependency relationship with other constituent components; Processing the component events of the constituent components in a second manner to obtain the component events of the combined component includes: Extracting at least one target event from the component events of the constituent components, where the target event exists in at least each of the constituent components; the target event is the component event of the combined component; among the target events, deleting the component events that have a response relationship with other constituent components.

2. The method according to claim 1, wherein the attribute values of the target attribute in each of the constituent components are the same, and the target attribute is independent of other constituent components.

3. The method according to claim 2, extracting at least one target attribute from the component attributes of the constituent components includes: Obtaining all component attributes of each of the constituent components; Among all the component attributes of each of the constituent components, extracting at least one target attribute, where the target attribute is a component attribute that exists in each of the constituent components; Among the target attributes, deleting the component attributes with different attribute values in each of the constituent components.

4. The method according to claim 1, wherein the target event is independent of other constituent components.

5. The method according to claim 4, extracting at least one target event from the component events of the constituent components includes: Obtaining all component events of each of the constituent components; Among all the component events of each of the constituent components, extracting at least one target event, where the target event is a component event that exists in each of the constituent components.

6. A device for processing component parameters, comprising: A parameter obtaining unit, configured to obtain at least one component parameter of each constituent component that makes up a combined component; A parameter processing unit, configured to process the component parameters of the constituent components according to the component types of the component parameters to obtain the component parameters of the combined component; Among them, the component parameters include at least one component attribute and / or at least one component event; Among them, the parameter processing unit processes the component parameters of the constituent components according to the parameter type of the component parameters to obtain the component parameters of the combined component, including: For the component attribute, process the component attributes of the constituent components in a first manner to obtain the component attributes of the combined component; and / or, For the component event, process the component events of the constituent components in a second manner to obtain the component events of the combined component; Among them, processing the component attributes of the constituent components in a first manner to obtain the component attributes of the combined component includes: Extracting at least one target attribute from the component attributes of the constituent components, where the target attribute exists in at least each of the constituent components; the target attribute is the component attribute of the combined component; among the target attributes, deleting the component attributes that have a dependency relationship with other constituent components; Processing the component events of the constituent components in a second manner to obtain the component events of the combined component includes: Extracting at least one target event from the component events of the constituent components, where the target event exists in at least each of the constituent components; the target event is the component event of the combined component; among the target events, deleting the component events that have a response relationship with other constituent components.

7. An electronic device, including: A memory for storing a computer program and data generated by running the computer program; A processor for executing the computer program to implement: obtaining at least one component parameter of each constituent component that makes up a combined component; processing the component parameters of the constituent components according to the component type of the component parameters to obtain the component parameters of the combined component; among them, the component parameters include at least one component attribute and / or at least one component event; among them, processing the component parameters of the constituent components according to the parameter type of the component parameters to obtain the component parameters of the combined component includes: for the component attribute, processing the component attributes of the constituent components in a first manner to obtain the component attributes of the combined component; and / or, for the component event, processing the component events of the constituent components in a second manner to obtain the component events of the combined component; Among them, processing the component attributes of the constituent components in a first manner to obtain the component attributes of the combined component includes: Extracting at least one target attribute from the component attributes of the constituent components, where the target attribute exists in at least each of the constituent components; the target attribute is the component attribute of the combined component; among the target attributes, deleting the component attributes that have a dependency relationship with other constituent components; Processing the component events of the constituent components in a second manner to obtain the component events of the combined component includes: Extract at least one target event from the component events of the constituent components, where the target event exists in at least each of the constituent components; the target event is the component event of the combined component; in the target event, delete the component events that have a response relationship with other constituent components.

Citation Information

Patent Citations

  • Special effect attribute setting method and device

    CN113515329A