CN117591097A - Optimization method, device, equipment and storage medium for materials in various use scenes - Google Patents

Optimization method, device, equipment and storage medium for materials in various use scenes Download PDF

Info

Publication number
CN117591097A
CN117591097A CN202311551418.7A CN202311551418A CN117591097A CN 117591097 A CN117591097 A CN 117591097A CN 202311551418 A CN202311551418 A CN 202311551418A CN 117591097 A CN117591097 A CN 117591097A
Authority
CN
China
Prior art keywords
scene
attribute
low
code
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311551418.7A
Other languages
Chinese (zh)
Inventor
张付贵
金建新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202311551418.7A priority Critical patent/CN117591097A/en
Publication of CN117591097A publication Critical patent/CN117591097A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a method, a device, equipment and a storage medium for optimizing materials in various use scenes, and relates to the technical field of low-code development. The method comprises the following steps: acquiring a low-code attribute file, wherein the low-code attribute file is obtained according to a low-code description file, the low-code attribute file comprises a plurality of scene attributes, each scene attribute corresponds to one use scene of a material, and each scene attribute is used for isolating a plurality of material attributes under the corresponding use scene; determining target scene attributes corresponding to the target use scene from a plurality of scene attributes according to a preset target use scene; and displaying a plurality of material attributes corresponding to the target scene attributes. According to the method, the problem that under some scenes, certain properties of materials can be misled to a user, so that the difficulty of using the materials by the user is increased is solved.

Description

Optimization method, device, equipment and storage medium for materials in various use scenes
Technical Field
The application relates to the technical field of low-code development, in particular to a method, a device, equipment and a storage medium for optimizing materials in various use scenes.
Background
The Low Code is a visual application development method, can complete the development of an application program with fewer codes and a higher speed, and can automate the Code which a programmer does not want to develop. At the development end of the low code development platform, a low code description file and a low code component file need to be written to generate a structured data (schema) file of the material, wherein the structured data file is a JS object profile (JavaScript Object Notation, JSON) configuration file used for describing the constitution of the page, and can reflect the modification of the page in the low code editor. At the use end of the low-code development platform, certain configuration and treatment are required for materials in the low-code editor, so that a user can use the low-code development platform. In the existing material library of the low-code development platform, a material which can be used in editing corresponds to a low-code component file and a low-code description file, wherein the description file is used for describing various properties of the material and is transmitted to the low-code component file as a property object.
A material can correspond to multiple use scenes, but the material has multiple properties, so that under some scenes, certain properties of the material can be misled to a user, and the difficulty of the user in using the material is increased.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for optimizing materials in various use scenes, which are used for solving the problem that under some scenes, certain properties of the materials can be misled to a user, so that the difficulty of the user in using the materials is increased.
In a first aspect, the present application provides a method for optimizing a material in multiple usage scenarios, the method comprising:
acquiring a low-code attribute file, wherein the low-code attribute file is obtained according to a low-code description file, the low-code attribute file comprises a plurality of scene attributes, each scene attribute corresponds to one use scene of a material, and each scene attribute is used for isolating a plurality of material attributes under the corresponding use scene;
determining target scene attributes corresponding to the target use scene from a plurality of scene attributes according to a preset target use scene;
and displaying a plurality of material attributes corresponding to the target scene attributes.
In one possible design, according to a preset target usage scenario, determining a target scenario attribute corresponding to the target usage scenario from a plurality of scenario attributes includes:
and determining the target scene attribute from the plurality of scene attributes according to the preset target usage scene and the preset attribute value of each scene attribute.
In one possible design, determining the target scene attribute from the plurality of scene attributes according to the preset target usage scene and the preset attribute value of each scene attribute includes:
according to the target use scene, the attribute value of each scene attribute and a preset scene function, respectively obtaining the result of each attribute value, wherein the result comprises a true value and a false value;
and taking the scene attribute corresponding to the attribute value with the true result as the target scene attribute.
In one possible design, the method is applied to a low code engine that includes a node model;
according to the target usage scene, the attribute value of each scene attribute and a preset scene function, respectively obtaining the result of each attribute value, wherein the result comprises a true value and a false value, and the method comprises the following steps:
according to a preset target usage scene and a preset attribute value of each scene attribute, calling a scene function through an application program interface provided by a node model;
and respectively inputting each attribute value into the scene function to obtain a result of each attribute value output by the scene function, wherein the result of the scene attribute corresponding to the target usage scene is a true value.
In one possible design, the low code engine further includes a material parsing module;
after the low code property file is obtained, the method further comprises:
and transmitting the attribute values in the low-code attribute file and the material attributes of the low-code description file to the low-code component file through the material analysis module.
In one possible design, the low code engine further includes a document model;
after displaying the plurality of material attributes corresponding to the target scene attribute, the method further comprises:
acquiring a scene attribute modification request;
according to the scene attribute modification request, modifying the attribute value of the scene attribute in the low-code attribute file through the application program interface of the document model.
In one possible design, after determining, according to a preset target usage scenario, a target scenario attribute corresponding to the target usage scenario from a plurality of scenario attributes, the method further includes:
and hiding a plurality of material attributes corresponding to each scene attribute except the target scene attribute in the plurality of scene attributes.
In a second aspect, the present application provides an apparatus for optimizing a material in a plurality of usage scenarios, comprising:
the low-code attribute file acquisition module is used for acquiring a low-code attribute file, wherein the low-code attribute file is obtained according to a low-code description file, the low-code attribute file comprises a plurality of scene attributes, each scene attribute corresponds to one use scene of a material, and each scene attribute is used for isolating a plurality of material attributes under the corresponding use scene;
the scene attribute determining module is used for determining target scene attributes corresponding to the target use scene from a plurality of scene attributes according to a preset target use scene;
and the material attribute display module is used for displaying a plurality of material attributes corresponding to the target scene attributes.
In a third aspect, the present application provides an electronic device, comprising: a processor, a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory for implementing a method for optimizing a material of the first aspect of the invention in a plurality of usage scenarios.
In a fourth aspect, the present application provides a computer-readable storage medium, where computer-executable instructions are stored, where the computer-executable instructions, when executed by a processor, are configured to implement a method for optimizing a material according to the first aspect of the present invention in a plurality of usage scenarios.
According to the optimization method, the device, the equipment and the storage medium for the materials in various use scenes, the low-code attribute file is obtained according to the low-code description file, the low-code attribute file comprises a plurality of scene attributes, each scene attribute corresponds to one use scene of the materials, and each scene attribute is used for isolating the plurality of material attributes under the corresponding use scene; according to the preset target usage scene, determining a target scene attribute corresponding to the target usage scene from a plurality of scene attributes; and further displaying a plurality of material attributes corresponding to the target scene attributes. The following technical effects are realized: the method comprises the steps of obtaining a low-code attribute file, determining corresponding target scene attributes according to a preset target use scene, and displaying a plurality of material attributes corresponding to the target scene attributes, so that the problem that in some scenes, certain attributes of materials can be misled to a user, and the difficulty of using the materials by the user is increased is solved; by adding a plurality of scene attributes into the low-code attribute file according to the low-code description file and performing assignment writing, the problem of how to add scene attributes to materials is solved; the method comprises the steps of determining the target scene attribute corresponding to the target use scene from a plurality of scene attributes according to the preset target use scene, and displaying a plurality of material attributes corresponding to the target scene attribute, so that the problem that the material attribute corresponding to the scene is displayed according to the determined target scene attribute under different scenes is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is an application scenario frame diagram of a method for optimizing a material in multiple usage scenarios according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a method for optimizing materials in various usage scenarios according to an embodiment of the present disclosure;
FIG. 3 is a second flow chart of the method for optimizing materials in various usage scenarios according to the embodiment of the present application;
FIG. 4 is a schematic structural diagram of an optimizing device for materials in various usage scenarios according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of hardware of an electronic device according to an embodiment of the present application.
Reference numerals:
110-a development platform; 120-UI library;
200-optimizing device of materials in various use scenes; 210-a low code property file acquisition module; 220-a scene attribute determination module; 230-a material attribute display module;
300-an electronic device; 310-a processor; 320-memory; 330-a communication component; 340-bus.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
It should be noted that, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion. In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more.
The term "at … …" in the embodiment of the present application may be instantaneous when a certain situation occurs, or may be a period of time after a certain situation occurs, which is not particularly limited in the embodiment of the present application. In addition, the optimization method of the material in multiple usage scenarios provided in the embodiments of the present application is only used as an example, and the optimization method of the material in multiple usage scenarios may further include more or less content.
In order to facilitate the clear description of the technical solutions of the embodiments of the present application, the following simply describes some terms and techniques related to the embodiments of the present application:
user Interface (UI) library: the UI component library is a part of a design system, is a component set which can be directly used for making interactive legends and building pages in the conventional interface design process, can exist independently as a single component, and can solve the design problem of similar scenes through a structure or mode formed by combining a plurality of components. The component library is a process of constructing a solution under constraint conditions, so that the use of components also needs to follow a certain specification and be multiplexed into a plurality of business scenes according to a standardized set of systems.
Application program interface (Application Programming Interface, API): the operating system is a call interface reserved for the application program, and the application program enables the operating system to execute the command of the application program by calling the application program interface of the operating system.
Scene function: refers to a preset condition function for controlling the display or hiding of the material property.
The conventional development of an application Program based on Program Code (Program Code) requires writing a large amount of Code, and generally has the problems of long development period and high technical threshold. The low-code development platform can quickly generate application programs without coding or through a small amount of codes, so that a user at a user end can develop the application programs by using the visualization tool in a dragging mode, and the conditions of complex and tedious development process and long development period existing in the original application program code development process are changed. In the existing material library of the low-code development platform, a material corresponds to a low-code component file and a low-code description file, wherein the description file is used for describing various properties of the material and is transmitted to the low-code component file as a property object.
However, one material may correspond to multiple usage scenarios, but the material itself has multiple properties, so that in some scenarios, some properties of the material may be misled to the user, resulting in an increase in the difficulty of using the material by the user.
Based on this, the embodiment of the application provides a method, a device, equipment and a storage medium for optimizing materials in various use scenes, which can be used in the technical field of low-code development and aims to solve the technical problems in the prior art.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is an application scenario frame diagram of a method for optimizing materials in multiple usage scenarios according to an embodiment of the present application. As shown in fig. 1, the development platform 110 performs development of low-code materials based on the UI library 120, and then encapsulates them into low-code components using low-code technology. The development platform 110 may be an existing low-code development platform including a low-code engine, and the UI library 120 may be an existing front-end UI library including, but not limited to, ant Design (Ant Design), fusion Design (Fusion Design), material UI (Materials UI), and the like.
Fig. 2 is a schematic flow chart of an optimization method of materials in various usage scenarios according to an embodiment of the present application. In the material library of the low-code development platform, various materials can be used by users, and in order to simplify the use of the materials and improve the user experience, certain configuration and treatment are required to be carried out on the materials. The method of handling each material is the same as each other, and the method of optimizing one of the materials is described in this embodiment.
As shown in fig. 2, the method includes:
s101, acquiring a low-code attribute file, wherein the low-code attribute file is obtained according to a low-code description file, the low-code attribute file comprises a plurality of scene attributes, each scene attribute corresponds to one use scene of a material, and each scene attribute is used for isolating a plurality of material attributes under the corresponding use scene;
specifically, the low code development platform needs to obtain a low code attribute file of the material to be optimized, the low code attribute file is written by assigning values according to the low code description file, and a plurality of scene attributes are added in the material attributes, so that each scene attribute corresponds to a use scene of the material, and the plurality of material attributes of the material can be separated and divided according to the scene attributes.
Obviously, before this step is performed, multiple scene attributes are added to the low-code attribute file according to the low-code description file of the material, and assignment writing is performed.
Generally, on a low-code development platform, a developer is required to divide the usage scenario of the component materials according to the components selected from the UI library or the custom components. And then a complete low-code description file is prepared according to UI library component attribute configuration items according to different use scenes, but the degree of scene change is still not high enough, and a plurality of scene attributes are added in the low-code attribute file and assigned.
S102, determining a target scene attribute corresponding to a target use scene from a plurality of scene attributes according to a preset target use scene;
specifically, since the materials have a plurality of different usage scenarios, the low-code development platform needs to determine the scenario attribute corresponding to the usage scenario according to the preset target usage scenario, so as to facilitate the subsequent isolation division of the materials corresponding to the target usage scenario.
S103, displaying a plurality of material attributes corresponding to the target scene attributes;
specifically, the low-code development platform realizes isolation division of materials under different use scenes by displaying a plurality of material attributes corresponding to the target scene attributes according to the determined target scene attributes corresponding to the target use scene.
According to the optimization method for the materials in various use scenes, the low-code attribute file is obtained according to the low-code description file, the low-code attribute file comprises a plurality of scene attributes, each scene attribute corresponds to one use scene of the materials, and each scene attribute is used for isolating the plurality of material attributes under the corresponding use scene; according to the preset target usage scene, determining a target scene attribute corresponding to the target usage scene from a plurality of scene attributes; and further displaying a plurality of material attributes corresponding to the target scene attributes. The following technical effects are realized: the method comprises the steps of obtaining a low-code attribute file, determining corresponding target scene attributes according to a preset target use scene, and displaying a plurality of material attributes corresponding to the target scene attributes, so that the problem that in some scenes, certain attributes of materials can be misled to a user, and the difficulty of using the materials by the user is increased is solved; by adding a plurality of scene attributes into the low-code attribute file according to the low-code description file and performing assignment writing, the problem of how to add scene attributes to materials is solved; the method comprises the steps of determining the target scene attribute corresponding to the target use scene from a plurality of scene attributes according to the preset target use scene, and displaying a plurality of material attributes corresponding to the target scene attribute, so that the problem that the material attribute corresponding to the scene is displayed according to the determined target scene attribute under different scenes is solved.
Fig. 3 is a second schematic flow chart of an optimization method of materials in various usage scenarios according to an embodiment of the present application. Based on the embodiment of fig. 2, the embodiment describes how to determine, from a plurality of scene attributes, a target scene attribute corresponding to the target usage scene according to a preset target usage scene, so as to display a plurality of material attributes corresponding to the target scene attribute, and the following operation behaviors. As shown in fig. 3, the method includes:
s201, acquiring a low-code attribute file, wherein the low-code attribute file is obtained according to a low-code description file, the low-code attribute file comprises a plurality of scene attributes, each scene attribute corresponds to one use scene of a material, and each scene attribute is used for isolating a plurality of material attributes under the corresponding use scene;
s201 is similar to S101, and the description of this embodiment is omitted.
S202, calling a scene function through an application program interface provided by a node model according to a preset target usage scene and a preset attribute value of each scene attribute;
specifically, the low-code development platform used in the present embodiment is a low-code engine including a Document Model (Document Model), a Node Model (Node), an attribute Model (Prop), and a Component description Model (Component Meta). According to a preset target usage scene and a preset attribute value of each scene attribute, determining a target scene attribute from a plurality of scene attributes, and calling a scene function through an application program interface provided by a node model to control the display or hiding of material attributes.
S203, inputting each attribute value into a scene function to obtain a result of each attribute value output by the scene function, wherein the result of the scene attribute corresponding to the target usage scene is a true value;
specifically, according to the target usage scene, the attribute value of each scene attribute and a preset scene function, respectively obtaining the result of each attribute value, wherein the result comprises a true value and a false value; and taking the scene attribute corresponding to the attribute value with the true result as the target scene attribute. The attribute value corresponding to each scene attribute is required to be input into the field Jing Hanshu, and then the target scene attribute corresponding to the preset target usage scene is judged according to the result output by the scene function as the true value or the false value.
S204, taking the scene attribute corresponding to the attribute value with the true result as the target scene attribute;
here, if the result output by the scene function is a true value, the scene attribute corresponding to the attribute value input correspondingly is the target scene attribute; if the output result is a false value, the corresponding scene attribute is a non-target scene attribute.
S205, displaying a plurality of material attributes corresponding to the target scene attributes;
s205 is similar to S103, and the description of this embodiment is omitted.
S206, hiding a plurality of material attributes corresponding to each scene attribute except the target scene attribute in the plurality of scene attributes;
specifically, the low-code engine realizes isolation and division of material properties by displaying a plurality of material properties corresponding to target scene properties and hiding a plurality of material properties corresponding to non-target scene properties.
S207, acquiring a scene attribute modification request;
specifically, when the materials are developed in the early stage, the material properties are isolated and divided according to different use scenes of the materials, so that the materials are possibly not applicable in the subsequent use, modification is needed, and the properties of the materials are required to be isolated and divided again according to different use scenes.
S208, modifying the attribute value of the scene attribute in the low-code attribute file through an application program interface of the document model according to the scene attribute modification request;
specifically, the subsequent maintenance of the material is realized only by modifying the attribute value of the scene attribute in the low-code attribute file through the application program interface of the document model provided by the engine according to the modification request.
Further, in the low-code engine, a material-analyzing (material-parameter) module is further included, and through the material-analyzing module, the attribute values in the low-code attribute file and the material attributes of the low-code description file are transferred to the low-code component file.
In order to more clearly show the technical scheme of the invention, taking the development of the logo low-code component selected from Ant Design as an example, the logo low-code component can be divided into three types according to different use scenes, namely a state logo, a message logo and a ribbon-type logo. The following is a material description of a part of the logo provided in this embodiment:
the low code component files corresponding to the low code component files are:
the tips of the incoming component is the property object of the low code profile configuration.
The scene function is a condition function, and according to the attribute value of each scene attribute, the corresponding material attribute is controlled to be displayed under different use scenes, and the text attribute is taken as an example, and the specific codes are as follows:
the first parameter target is a setter operation object of the document model application program interface provided by the low code engine, and the second parameter is an attribute value of the current attribute. The getProps method obtains the set attribute set, and the getPropValue obtains the attribute value. Finally, if the current scenario field value is 'status indicator', the condition returns true, and the corresponding attribute setter appears, and the 'text' is displayed in the attribute panel for user configuration.
Under different use scenes, different attribute values are set for materials, and the low-code attribute files are as follows:
finally, the logical processing portion of the low code component file may also be modified based on the most current low code property file.
According to the optimization method for the materials in various use scenes, the low-code attribute file is obtained according to the low-code description file, the low-code attribute file comprises a plurality of scene attributes, each scene attribute corresponds to one use scene of the materials, and each scene attribute is used for isolating the plurality of material attributes under the corresponding use scene; according to the preset target usage scene, determining a target scene attribute corresponding to the target usage scene from a plurality of scene attributes; and further displaying a plurality of material attributes corresponding to the target scene attributes. The following technical effects are realized: the method comprises the steps of obtaining a low-code attribute file, determining corresponding target scene attributes according to a preset target use scene, and displaying a plurality of material attributes corresponding to the target scene attributes, so that the problem that in some scenes, certain attributes of materials can be misled to a user, and the difficulty of using the materials by the user is increased is solved; by adding a plurality of scene attributes into the low-code attribute file according to the low-code description file and performing assignment writing, the problem of how to add scene attributes to materials is solved; the method comprises the steps of determining target scene attributes corresponding to a target use scene from a plurality of scene attributes according to a preset target use scene, and displaying a plurality of material attributes corresponding to the target scene attributes, so that the problem that the material attributes corresponding to the scene are displayed according to the determined target scene attributes under different scenes is solved; the method comprises the steps of calling a scene function through presetting an attribute value of each scene attribute and an application program interface provided by a node model, respectively inputting each attribute value into the scene function to obtain a result of each attribute value output by the scene function, and taking the scene attribute corresponding to the attribute value with the result being a true value as a target scene attribute, thereby solving the problem of determining the target scene attribute; the problem of subsequent maintenance of materials is solved by acquiring the scene attribute modification request and modifying the attribute value of the scene attribute in the low-code attribute file through the application program interface of the document model according to the scene attribute modification request.
The embodiment of the invention can divide the functional modules of the electronic device or the main control device according to the method example, for example, each functional module can be divided corresponding to each function, and two or more functions can be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present invention, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
Fig. 4 is a schematic structural diagram of an optimizing device for materials in various use situations according to an embodiment of the present application. As shown in fig. 4, the optimizing device 200 of the material in various usage scenarios includes:
a low code attribute file acquisition module 210, a scene attribute determination module 220, a material attribute display module 230;
a low code attribute file obtaining module 210, configured to obtain a low code attribute file, where the low code attribute file is obtained according to a low code description file, the low code attribute file includes a plurality of scene attributes, each scene attribute corresponds to a usage scene of a material, and each scene attribute is used to isolate a plurality of material attributes under the corresponding usage scene;
the scene attribute determining module 220 is configured to determine, according to a preset target usage scene, a target scene attribute corresponding to the target usage scene from a plurality of scene attributes;
the material attribute display module 230 is configured to display a plurality of material attributes corresponding to the target scene attribute.
In one possible design, the scene attribute determining module 220 is further configured to determine the target scene attribute from the plurality of scene attributes according to the preset target usage scene and the preset attribute value of each scene attribute.
In one possible design, the scene attribute determining module 220 is further configured to obtain, according to the target usage scene, an attribute value of each scene attribute, and a preset scene function, a result of each attribute value, where the result includes a true value and a false value; and taking the scene attribute corresponding to the attribute value with the true result as the target scene attribute.
In one possible design, the material is applied to a low-code engine in the optimization apparatus 200 of various usage scenarios, the low-code engine including a node model; the scene attribute determination module 220 includes: a scene function calling module and an attribute value input module;
the scene function calling module is used for calling a scene function through an application program interface provided by the node model according to a preset target usage scene and a preset attribute value of each scene attribute;
and the attribute value input module is used for respectively inputting each attribute value into the scene function to obtain a result of each attribute value output by the scene function, wherein the result of the scene attribute corresponding to the target usage scene is a true value.
In one possible design, the low code engine further includes a material parsing module; the optimizing device 200 of the material in various usage scenarios further comprises an attribute transferring module, configured to transfer, after the low-code attribute file is acquired, the attribute value in the low-code attribute file and the material attribute of the low-code description file to the low-code component file through the material parsing module of the low-code engine.
In one possible design, the low code engine further includes a document model; the optimizing device 200 of the material in various usage scenarios further comprises an attribute value modifying module, configured to obtain a scenario attribute modifying request, and modify, according to the scenario attribute modifying request, an attribute value of a scenario attribute in the low-code attribute file through an application program interface of the document model.
In one possible design, the optimizing apparatus 200 of the material in multiple usage scenarios further includes a material attribute hiding module, configured to hide multiple material attributes corresponding to each of the multiple scenario attributes except the target scenario attribute.
The optimizing device for materials in various usage scenarios provided in this embodiment may execute the optimizing method for materials in various usage scenarios in the above embodiment, and its implementation principle and technical effect are similar, and this embodiment will not be described here again.
In the foregoing specific implementation of the optimizing device for a material in multiple usage scenarios, each module may be implemented as a processor, and the processor may execute computer-executable instructions stored in the memory, so that the processor executes the optimizing method for a material in multiple usage scenarios.
Fig. 5 is a schematic structural diagram of hardware of an electronic device according to an embodiment of the present application. As shown in fig. 5, the electronic device 300 includes: at least one processor 310 and a memory 320. The electronic device 300 further comprises a communication component 330. Wherein the processor 310, the memory 320 and the communication unit 330 are connected by a bus 340.
In a specific implementation, the at least one processor 310 executes computer-executable instructions stored in the memory 320, so that the at least one processor 310 performs a method for optimizing a material in multiple usage scenarios as performed on the electronic device side.
The specific implementation process of the processor 310 may refer to the above-mentioned method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein again.
In the above embodiment, it should be understood that the processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
The memory may comprise high speed RAM memory or may further comprise non-volatile storage NVM, such as at least one disk memory.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or one type of bus.
The scheme provided by the embodiment of the invention is introduced aiming at the functions realized by the electronic equipment and the main control equipment. It will be appreciated that the electronic device or the master device, in order to implement the above-described functions, includes corresponding hardware structures and/or software modules that perform the respective functions. The present embodiments can be implemented in hardware or a combination of hardware and computer software in combination with the various exemplary elements and algorithm steps described in connection with the embodiments disclosed in the embodiments of the present invention. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application, but such implementation is not to be considered as beyond the scope of the embodiments of the present invention.
The application also provides a computer readable storage medium, wherein computer executable instructions are stored in the computer readable storage medium, and when the processor executes the computer executable instructions, the computer executable instructions are used for realizing the optimization method of the material in various use scenes.
The above-described readable storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. A readable storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. In the alternative, the readable storage medium may be integral to the processor. The processor and the readable storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). The processor and the readable storage medium may reside as discrete components in an electronic device or a master device.
While the present application has been described in connection with the preferred embodiments illustrated in the accompanying drawings, it will be readily understood by those skilled in the art that the scope of the application is not limited to such specific embodiments, and the above examples are intended to illustrate the technical aspects of the application, but not to limit it; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. The optimizing method of the material in various use scenes is characterized by comprising the following steps:
acquiring a low-code attribute file, wherein the low-code attribute file is obtained according to a low-code description file, the low-code attribute file comprises a plurality of scene attributes, each scene attribute corresponds to one use scene of a material, and each scene attribute is used for isolating a plurality of material attributes under the corresponding use scene;
determining a target scene attribute corresponding to the target use scene from the plurality of scene attributes according to a preset target use scene;
and displaying a plurality of material attributes corresponding to the target scene attributes.
2. The method of claim 1, wherein determining, from the plurality of scene attributes, a target scene attribute corresponding to the target usage scene according to a preset target usage scene, comprises:
and determining the target scene attribute from the plurality of scene attributes according to the preset target use scene and the preset attribute value of each scene attribute.
3. The method according to claim 2, wherein determining the target scene attribute from the plurality of scene attributes according to the preset target usage scene and the attribute value of each scene attribute, comprises:
according to the target usage scene, the attribute value of each scene attribute and a preset scene function, respectively obtaining a result of each attribute value, wherein the result comprises a true value and a false value;
and taking the scene attribute corresponding to the attribute value with the result being a true value as the target scene attribute.
4. A method according to claim 3, wherein the method is applied to a low code engine comprising a node model;
the method comprises the steps of respectively obtaining a result of each attribute value according to the target usage scene, the attribute value of each scene attribute and a preset scene function, wherein the result comprises a true value and a false value, and the method comprises the following steps:
according to the preset target usage scene and the preset attribute value of each scene attribute, calling the scene function through an application program interface provided by the node model;
and respectively inputting each attribute value into the scene function to obtain a result of each attribute value output by the scene function, wherein the result of the scene attribute corresponding to the target usage scene is a true value.
5. The method of claim 4, wherein the low code engine further comprises a material parsing module;
after the low code property file is obtained, the method further comprises:
and transmitting the attribute values in the low-code attribute file and the material attributes of the low-code description file to a low-code component file through the material analysis module.
6. The method of claim 4, wherein the low code engine further comprises a document model;
after the displaying the plurality of material attributes corresponding to the target scene attribute, the method further includes:
acquiring a scene attribute modification request;
and modifying the attribute value of the scene attribute in the low-code attribute file through an application program interface of the document model according to the scene attribute modification request.
7. The method according to any one of claims 1-6, wherein after determining, from the plurality of scene attributes, a target scene attribute corresponding to the target usage scene according to a preset target usage scene, the method further includes:
and hiding a plurality of material attributes corresponding to each scene attribute except the target scene attribute from the plurality of scene attributes.
8. An optimizing device for materials in various use situations, which is characterized by comprising:
the low-code attribute file acquisition module is used for acquiring a low-code attribute file, wherein the low-code attribute file is obtained according to a low-code description file, the low-code attribute file comprises a plurality of scene attributes, each scene attribute corresponds to one use scene of a material, and each scene attribute is used for isolating a plurality of material attributes under the corresponding use scene;
the scene attribute determining module is used for determining a target scene attribute corresponding to the target use scene from the plurality of scene attributes according to a preset target use scene;
and the material attribute display module is used for displaying a plurality of material attributes corresponding to the target scene attribute.
9. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored in the memory to implement the method for optimizing a material in a plurality of usage scenarios according to any one of claims 1 to 7.
10. A computer readable storage medium, wherein computer executable instructions are stored in the computer readable storage medium, the computer executable instructions when executed by a processor are configured to implement the method for optimizing a material in a plurality of usage scenarios according to any one of claims 1 to 7.
CN202311551418.7A 2023-11-20 2023-11-20 Optimization method, device, equipment and storage medium for materials in various use scenes Pending CN117591097A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311551418.7A CN117591097A (en) 2023-11-20 2023-11-20 Optimization method, device, equipment and storage medium for materials in various use scenes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311551418.7A CN117591097A (en) 2023-11-20 2023-11-20 Optimization method, device, equipment and storage medium for materials in various use scenes

Publications (1)

Publication Number Publication Date
CN117591097A true CN117591097A (en) 2024-02-23

Family

ID=89910865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311551418.7A Pending CN117591097A (en) 2023-11-20 2023-11-20 Optimization method, device, equipment and storage medium for materials in various use scenes

Country Status (1)

Country Link
CN (1) CN117591097A (en)

Similar Documents

Publication Publication Date Title
CN111639287A (en) Page processing method and device, terminal equipment and readable storage medium
CN109144615B (en) Information publishing method, device, equipment and storage medium
RU2459238C2 (en) Managed execution environment for software application interfacing
CN107045438B (en) Application top view processing method, device and component
CN112765023B (en) Test case generation method and device
CN110941779B (en) Page loading method and device, storage medium and electronic equipment
CN111736884A (en) Componentization method and system
CN111111201B (en) Skill creation method, device, server and medium based on game
CN113918195A (en) Application interface updating method and device, electronic equipment and readable storage medium
CN110727429A (en) Front-end page generation method, device and equipment
CN110362371B (en) View level control method, device and system, computer equipment and medium
CN109542404B (en) Page componentization construction method and device, storage medium and electronic equipment
CN111258434A (en) Method, device, equipment and storage medium for inserting pictures into chat interface
CN112486492A (en) Page generation method and device, storage medium and electronic equipment
CN114647548A (en) Log generation method and device
CN117591097A (en) Optimization method, device, equipment and storage medium for materials in various use scenes
CN114911541B (en) Processing method and device of configuration information, electronic equipment and storage medium
CN113590221B (en) Method and device for detecting number of shader variants, electronic equipment and storage medium
CN108268298B (en) Desktop icon generation method and device, storage medium and electronic equipment
CN108153564B (en) Interface management method, device and system and computer readable storage medium
CN116049000A (en) Environment parameter configuration method, device, equipment, storage medium and product
US20090037890A1 (en) Method and system for generating an application
CN115454403A (en) Page construction method and device and storage medium
CN111596997B (en) UI information request method, device, terminal and storage medium
CN110599112A (en) Method and device for developing and maintaining network page

Legal Events

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