Page configuration method and device and electronic equipment
By generating style sheet editing interface and life cycle hook function configuration, the personalized configuration of application pages in private cloud environment is simplified, the problems of high maintenance costs and complex performance in the existing technology are solved, and convenient personalized settings of page components are achieved and performance improvement.
Patent Information
- Application Number
- CN202410986479.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-12
AI Technical Summary
When personalizing application pages in a private cloud environment, the existing technology requires a lot of repetitive work and complex business logic judgments, resulting in high maintenance costs and complex performance.
By receiving activation operations of the target component of the web application page, a style sheet editing interface is generated, allowing users to edit custom styles, and configuring internal logical rules through the life cycle hook function, simplifying page personalization settings and reducing dependence on back-end services.
It realizes convenient personalized settings of page components, reduces maintenance costs, simplifies the development process, and improves page performance and user operation experience.
Smart Images

Figure CN118939899A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a page configuration method, device and electronic device. Background Art
[0002] In a private cloud scenario, the application system needs to personalize the application's appearance, text, and even operating logic for different private cloud environments.
[0003] At present, the technologies related to personalized page configuration mainly include the following three solutions: The first is a more in-depth customized solution for personalized configuration of applications, but it is necessary to write a set of schemas for different applications (Application, APP) to describe the configuration information of each component, including the component ID, style and interactive functions, and inject customized code into the specified ID of different components to achieve personalized display of the page. The second is to customize the page through the public page template and the user demand module. The third is to achieve customized rendering of the page by pre-building a functional module model, pre-configuring components and cooperating with the back-end database.
[0004] The above solutions have the following problems: The first solution requires rewriting the schema once the original system undergoes major changes, and all of these codes need to be compiled and packaged before they can be put online. Other solutions require coordinating with backend services such as database software to persist personalized configurations, which increases the complexity of the system.
[0005] From the above analysis, we can see that if the application pages need to be personalized for different private cloud environments, developers need to do a lot of repetitive work on the project and add many branch judgments to the business logic, which makes the performance and business of the entire project complicated and the maintenance work extremely heavy. Summary of the invention
[0006] The purpose of the present application is to provide a page configuration method, device and electronic device, which solves the problem of high maintenance cost of existing page personalized configuration solutions.
[0007] In a first aspect, to achieve the above-mentioned purpose, an embodiment of the present application provides a page configuration method, comprising:
[0008] Receiving a first activation operation on a target component on a Web application page, wherein the first activation operation is used to trigger style extraction and configuration of the target component;
[0009] In response to the first activation operation, a style sheet editing interface is generated according to the style sheet corresponding to the target component; wherein the style sheet editing interface displays style options corresponding to the target component, and the style options are in an editable state;
[0010] Receiving an input operation on the style sheet editing interface;
[0011] In response to the input operation, an edited custom style is generated, and the custom style is applied to the target component.
[0012] Optionally, before generating a style sheet editing interface according to the style sheet of the target component, the method includes:
[0013] In response to the first activation operation, obtaining a mapping relationship table between Cascading Style Sheets (CSS) selectors and values corresponding to the page where the target component is located;
[0014] From the mapping relationship table, obtain the style sheet corresponding to the target component.
[0015] Optionally, the page configuration method further includes:
[0016] The internal logic rules of the target component are configured through the lifecycle hook function, and the internal logic rules are used to characterize the logical relationship between the variable set, the rule effectiveness conditions and the effect definition; wherein each variable in the variable set corresponds to a responsive function, and the responsive function is used to monitor the variable status.
[0017] Optionally, the rule effectiveness conditions include:
[0018] A logical statement or function consisting of one or more variables; and / or
[0019] The trigger operation on the target component.
[0020] Optionally, the effect definition includes at least one of the following: text replacement, event interception, whether an element is visible, and a custom style set.
[0021] Optionally, the page configuration method further includes:
[0022] receiving a second activation operation on the target component;
[0023] In response to the second activation operation, the target component enters a layout editing state;
[0024] When the target component is edited from the first layout state to the second layout state, based on the native grid layout of the browser, the bounding boxes of all components on the Web application page in the second layout state are calculated to determine whether the bounding boxes overlap.
[0025] In a second aspect, in order to achieve the above-mentioned purpose, an embodiment of the present application provides a page configuration device, comprising:
[0026] A first receiving module, configured to receive a first activation operation on a target component on a Web application page, wherein the first activation operation is used to trigger style extraction and configuration of the target component;
[0027] A first response module, configured to generate a style sheet editing interface according to the style sheet of the target component in response to the first activation operation; wherein the style sheet editing interface displays style options corresponding to the target component, and the style options are in an editable state;
[0028] The second receiving module is further used to receive input operations on the style sheet editing interface;
[0029] The second response module is used to generate an edited custom style in response to the input operation, and apply the custom style to the target component.
[0030] In the third aspect, in order to achieve the above-mentioned purpose, an embodiment of the present application provides an electronic device, including a transceiver, a processor, a memory, and a program or instruction stored in the memory and executable on the processor; when the processor executes the program or instruction, the page configuration method as described above is implemented.
[0031] In a fourth aspect, in order to achieve the above-mentioned purpose, an embodiment of the present application provides a readable storage medium on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps in the page configuration method as described above are implemented.
[0032] In a fifth aspect, in order to achieve the above-mentioned purpose, an embodiment of the present application provides a computer program product, including computer instructions, which, when executed by a processor, implement the steps of the page configuration method as described above.
[0033] The beneficial effects of the above technical solution of the present application are as follows:
[0034] The method of the embodiment of the present application receives a first activation operation on a target component on a Web application page, the first activation operation is used to trigger style extraction and configuration of the target component; in response to the first activation operation, a style sheet editing interface is generated according to the style sheet corresponding to the target component; wherein the style sheet editing interface displays style options corresponding to the target component, and the style options are in an editable state; receives an input operation on the style sheet editing interface; in response to the input operation, generates an edited custom style, and applies the custom style to the target component. The solution of the present application can conveniently personalize components on a Web application page, with low maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A flowchart of a page configuration method according to an embodiment of the present application;
[0036] Figure 2 A schematic diagram of pages and components of an embodiment of the present application;
[0037] Figure 3 A schematic diagram of page layout editing in an embodiment of the present application;
[0038] Figure 4 This is a flowchart of overwriting the Web request interface of an embodiment of the present application;
[0039] Figure 5 A structural diagram of a page configuration device according to an embodiment of the present application;
[0040] Figure 6 This is a hardware structure diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0041] In order to make the technical problems, technical solutions and advantages to be solved by the present application clearer, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0042] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present application. Therefore, the references to "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0043] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the following processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0044] Additionally, the terms "system" and "network" are often used interchangeably herein.
[0045] In an exemplary application scenario, a user needs to personalize the display page of a Web application, such as changing the appearance, text, etc. The user can use the page configuration tool as a plug-in in the Web application to execute the page configuration method provided in the embodiment of the present application through the plug-in.
[0046] like Figure 1 As shown, a page configuration method according to an embodiment of the present application specifically includes the following steps:
[0047] Step 101: receiving a first activation operation on a target component on a Web application page, wherein the first activation operation is used to trigger style extraction and configuration of the target component.
[0048] Optionally, the first activation operation includes but is not limited to: at least one of click input, drag input, slide input and swipe input, that is, the first input can be one of the above inputs, or a combination of two or more of them.
[0049] Optionally, the first activation operation may be a shortcut key input operation, such as when the cursor is positioned at the target component, a shortcut key input operation is used to trigger style extraction and configuration of the target component.
[0050] Exemplarily, when a Web application page is displayed, the target component is right-clicked to trigger style extraction and configuration of the target component.
[0051] Step 102: In response to the first activation operation, a style sheet editing interface is generated according to the style sheet corresponding to the target component; wherein the style sheet editing interface displays style options corresponding to the target component, and the style options are in an editable state.
[0052] Exemplarily, the style sheet of the target component is shown in Table 1 below:
[0053] Table 1
[0054]
[0055] Exemplarily, the style sheet editing interface includes the attribute names and corresponding attribute values in Table 1 above, and displays the attribute names and attribute values in an editable state.
[0056] Step 103: receiving an input operation on the style sheet editing interface.
[0057] Optionally, the input operation includes but is not limited to: adding an attribute, adding an attribute value, deleting an attribute, deleting an attribute value, modifying an attribute, modifying an attribute value, etc.
[0058] Step 104: In response to the input operation, generate an edited custom style, and apply the custom style to the target component.
[0059] In the above embodiment, for the generated Web application page, the embodiment of the present application can be used to personalize the style of the components on the Web application page, without the need for a complex business configuration process, with low maintenance costs and easy user operation.
[0060] In some optional embodiments, before generating a style sheet editing interface according to the style sheet of the target component, the method includes:
[0061] In response to the first activation operation, obtaining a mapping relationship table between Cascading Style Sheet (CSS) selectors and values corresponding to the page where the target component is located;
[0062] From the mapping relationship table, obtain the style sheet corresponding to the target component.
[0063] In the specific implementation, multiple style sheets are obtained by traversing the common style file directory of the Web application page; the CSS selector corresponding to each style sheet is obtained by parsing the style sheet; in the process of parsing the style sheet, the browser traverses each rule in the style sheet, such as CSS selectors and declaration blocks, associates the matched elements with the corresponding style attributes, and generates a mapping relationship table between CSS selectors and values; further, based on the ID of the target component, the style sheet corresponding to the target component is obtained from the mapping relationship table. Among them, the ID of the target component is a unique ID field generated for the target component during the initialization cycle of the target component. For example, Figure 2 In the example, according to the name and index of the component in the parent node, we can get the unique ID corresponding to the component Foo: App0.Content1.Foo0. Figure 2 In the example, "Foo" and "Bar" are the variable names corresponding to the components.
[0064] It should be pointed out that during the page loading process, the browser will first download the HTML document, then parse the structure of the HTML document and build the Document Object Model (DOM). Next, the browser will download the external CSS style sheet file, parse the style sheet, and build the CSS Object Model (CSSOM); after the browser has built the DOM and CSSOM, it will combine the two to perform style calculation (Style Calculation) to determine the final style applied to each element. This process will match the corresponding CSS rules based on the element's tag name, class name, ID, attributes and other information to determine the final style. In other words, the selectors in the style sheet will be parsed and matched with the elements in the page to determine which style rules are applied to which elements, ultimately forming the final style of the page.
[0065] In the above embodiment, by traversing the style sheet of the Web application page, a mapping table of CSS selectors and values can be obtained, from which the style sheet corresponding to any component can be obtained, so that a style sheet editing interface can be generated based on the style sheet of each component, so that the user can personalize the page based on the style sheet editing interface.
[0066] In some optional embodiments, the above page configuration method further includes:
[0067] The internal logic rules of the target component are configured through the lifecycle hook function, and the internal logic rules are used to characterize the logical relationship between the variable set, the rule effectiveness conditions and the effect definition; wherein each variable in the variable set corresponds to a responsive function, and the responsive function is used to monitor the variable status.
[0068] The rule effectiveness conditions include:
[0069] A logical statement or function consisting of one or more variables; and / or
[0070] The trigger operation on the target component.
[0071] The effect definition includes at least one of the following: text replacement, event interception, whether an element is visible, and a custom style set.
[0072] Example 1: If the user's website is connected to two different backends in Beijing and Suzhou, a custom rule may include:
[0073] (1) Variable a: defined as the backend to obtain the current website connection. The code is as follows:
[0074] A=computed(function(){return router.query.poolId}.
[0075] (2) The rule takes effect when: judging whether the value of variable a is equal to "beijing". The code is as follows:
[0076] expr:'a===beijing'.
[0077] (3) Define effect 1 as follows: if the value of a is equal to 'beijing', then set the text content of the page title to 'Beijing xxx'; the code is as follows: page.title.innerText = 'Beijing xxx'.
[0078] (3) Define effect 2 as follows: Add a double-click event listener to the component (or element) named compId2. When the component is double-clicked, 'Beijing' will be output in the console. The code is as follows:
[0079] "compId2.onDblClick=function(e){
[0080] console.log('Beijing')
[0081] }”
[0082] In the above example 1, by monitoring the value of variable a, if the value of a is equal to "beijing", the page title is changed to "Beijing xxx", and a double-click event listener is added to the specific component to output "Beijing" to the console when double-clicked. In this way, the page content or interactive behavior can be dynamically updated according to the defined internal logic rules.
[0083] Example 2: If the user website is connected to two different backends in Beijing and Suzhou, a custom rule may include:
[0084] (1) Variable a: defined as the backend to obtain the current website connection. The code is as follows:
[0085] a=computed(function(){return router.query.poolId}.
[0086] (2) The rule takes effect when: judging whether the value of variable a is equal to "suzhou". The code is as follows:
[0087] expr:'a===suzhou'.
[0088] (3) The effects are defined as:
[0089] Effect 1. If the value of a is equal to 'suzhou', the text content of the page title is set to 'suzhou xxx'; the code is as follows: page.title.innerText = 'Suzhou xxx'.
[0090] Effect 2: Add a class named 'hidden' to the component (or element) named compId1 to hide the style of the component. The corresponding code is: compId1.$el.addClass('hidden').
[0091] In the above example 2, by monitoring the value of variable a, if the value of a is equal to "suzhou", the page title is changed to "Suzhou xxx" and the component named compId1 is hidden. In this way, the page content or interactive behavior can be dynamically updated according to the defined internal logic rules.
[0092] In some optional embodiments, the above page configuration method further includes:
[0093] receiving a second activation operation on the target component;
[0094] In response to the second activation operation, the target component enters a layout editing state;
[0095] When the target component is edited from the first layout state to the second layout state, based on the native grid layout of the browser, the bounding boxes of all components on the Web application page in the second layout state are calculated to determine whether the bounding boxes overlap.
[0096] It should be noted that in the layout editing state, components can be separated from the document flow layout, that is, they can be moved freely without affecting the positions of other components. After the editing is completed, the bounding boxes of all components will be recalculated to ensure that they do not overlap with each other, thus keeping the page neat and beautiful.
[0097] For example, the position of the component bar in the page is as follows Figure 3 As shown, under the native grid layout, the page can be divided into a grid of m rows and n columns through calculation. The position of the component bar can be calculated according to the grid size to obtain the position of the component in the grid. After the user drags and scales the component, the position, grid size and dimension are recalculated.
[0098] It should be pointed out that, unlike the solution based on the JavaScript framework, the embodiment of the present application adopts the browser-native grid layout, which is more efficient than the existing layout implemented using the JavaScript framework, and will bring a smoother page rendering experience, especially when dealing with a large number of components or complex layouts, it can improve the performance of the page.
[0099] In the above embodiment, the layout of the components can be controlled in a simple and intuitive way, so that the user can enter the layout editing mode by double-clicking the component, and freely adjust the size and position of the component. This free positioning method allows the user to place the component anywhere on the page without being restricted by the traditional document flow layout.
[0100] like Figure 4 As shown, in some optional embodiments, the above page configuration method also includes:
[0101] Intercept Web request headers and detect the values of specific fields in Web request headers;
[0102] If the value of a specific field is A, then add the fields required by service A to the Web request header;
[0103] If the web request header does not include the specific field, the web request is forwarded to service B.
[0104] In the above embodiment, since the private cloud environment has scenarios where specific parameters need to be added in different environments, the traditional transformation solution must transform the code, perform compatibility adaptation, and recompile and launch. The embodiment of the present application can modify the request and response by overwriting the web request interface, reducing maintenance costs.
[0105] like Figure 5 As shown, a page configuration device 500 according to an embodiment of the present application includes:
[0106] A first receiving module 501 is used to receive a first activation operation on a target component on a Web application page, where the first activation operation is used to trigger style extraction and configuration of the target component;
[0107] A first response module 502, configured to generate a style sheet editing interface according to the style sheet of the target component in response to the first activation operation; wherein the style sheet editing interface displays style options corresponding to the target component, and the style options are in an editable state;
[0108] The second receiving module 503 is further used to receive input operations on the style sheet editing interface;
[0109] The second response module 504 is used to generate an edited custom style in response to the input operation, and apply the custom style to the target component.
[0110] Optionally, the first response module 502 is specifically configured to:
[0111] In response to the first activation operation, obtaining a mapping relationship table between Cascading Style Sheet (CSS) selectors and values corresponding to the page where the target component is located;
[0112] From the mapping relationship table, obtain the style sheet corresponding to the target component.
[0113] Optionally, the page configuration device 500 further includes:
[0114] A configuration module is used to configure the internal logic rules of the target component through a lifecycle hook function, wherein the internal logic rules are used to characterize the logical relationship between the variable set, the rule effectiveness conditions and the effect definition; wherein each variable in the variable set corresponds to a responsive function, and the responsive function is used to monitor the variable status.
[0115] Optionally, the rule effectiveness conditions include:
[0116] A logical statement or function consisting of one or more variables; and / or
[0117] The trigger operation on the target component.
[0118] Optionally, the effect definition includes at least one of the following: text replacement, event interception, whether an element is visible, and a custom style set.
[0119] Optionally, the page configuration device 500 further includes:
[0120] A third receiving module, configured to receive a second activation operation on the target component;
[0121] A third response module, configured to cause the target component to enter a layout editing state in response to the second activation operation;
[0122] The processing module is used to calculate the bounding boxes of all components on the Web application page in the second layout state based on the native grid layout of the browser when the target component is edited from the first layout state to the second layout state, and determine whether the bounding boxes overlap.
[0123] The page configuration device 500 provided in the embodiment of the present application can implement each process implemented in the above-mentioned page configuration method embodiment, and will not be described again here to avoid repetition.
[0124] The present application also provides an electronic device, such as Figure 6 As shown, it includes a transceiver 610, a processor 600, a memory 620, and a program or instruction stored in the memory 620 and executable on the processor 600; when the processor 600 executes the program or instruction, the above-mentioned method for page configuration is implemented.
[0125] The transceiver 610 is used to receive and send data under the control of the processor 600 .
[0126] Among them, Figure 6 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 600 and various circuits of memory represented by memory 620 are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 610 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. For different user devices, the user interface 630 may also be an interface capable of externally and internally connecting required devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.
[0127] The processor 600 is responsible for managing the bus architecture and general processing, and the memory 620 can store data used by the processor 600 when performing operations.
[0128] A computer-readable storage medium according to an embodiment of the present application stores a program or instruction thereon, and when the program or instruction is executed by a processor, the steps in the page configuration method described above are implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0129] A computer program product according to an embodiment of the present application includes computer instructions, which, when executed by a processor, implement the steps of the page configuration method described above.
[0130] It should be further explained that the terminals described in this specification include but are not limited to smart phones, tablet computers, etc., and many of the functional components described are called modules in order to more particularly emphasize the independence of their implementation methods.
[0131] In the embodiment of the present application, module can be implemented with software so that it can be executed by various types of processors. For example, an executable code module of an identification can include one or more physical or logical blocks of computer instructions, for example, it can be constructed as an object, process or function. Nevertheless, the executable code of the identified module does not need to be physically located together, but can include different instructions stored in different positions, and when these instructions are logically combined together, it constitutes a module and realizes the specified purpose of the module.
[0132] In fact, executable code module can be a single instruction or many instructions, and can even be distributed on a plurality of different code segments, distributed among different programs, and distributed across a plurality of memory devices. Similarly, operating data can be identified in the module, and can be implemented and organized in the data structure of any appropriate type according to any appropriate form. The operating data can be collected as a single data set, or can be distributed in different locations (including on different storage devices), and can only be present on a system or network as an electronic signal at least in part.
[0133] When a module can be implemented by software, considering the level of existing hardware technology, a person skilled in the art can build a corresponding hardware circuit to implement the corresponding function of the module that can be implemented by software without considering the cost. The hardware circuit includes a conventional very large scale integration (VLSI) circuit or gate array and existing semiconductors such as logic chips, transistors, or other discrete components. The module can also be implemented by a programmable hardware device, such as a field programmable gate array, a programmable array logic, a programmable logic device, etc.
[0134] The above exemplary embodiments are described with reference to the accompanying drawings, and many different forms and embodiments are feasible without departing from the spirit and teachings of the present application. Therefore, the present application should not be constructed as a limitation of the exemplary embodiments proposed herein. More specifically, these exemplary embodiments are provided so that the present application will be perfect and complete, and the scope of the present application will be conveyed to those who are familiar with the technology. In these figures, the component sizes and relative sizes may be exaggerated for clarity. The terms used here are only based on the purpose of describing specific exemplary embodiments and are not intended to be limiting. As used herein, unless the text clearly indicates otherwise, the singular forms "one", "an" and "the" are intended to include these multiple forms. It will be further understood that the terms "comprising" and / or "including" when used in this specification indicate the presence of the features, integers, steps, operations, components and / or components, but do not exclude the presence or increase of one or more other features, integers, steps, operations, components, components and / or their groups. Unless otherwise indicated, when stated, a range of values includes the upper and lower limits of that range and any subranges therebetween.
[0135] The above is a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles described in the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A page configuration method, characterized in that: include: Receiving a first activation operation on a target component on a Web application page, wherein the first activation operation is used to trigger style extraction and configuration of the target component; In response to the first activation operation, a style sheet editing interface is generated according to the style sheet corresponding to the target component; wherein the style sheet editing interface displays style options corresponding to the target component, and the style options are in an editable state; Receiving an input operation on the style sheet editing interface; In response to the input operation, an edited custom style is generated, and the custom style is applied to the target component.
2. The page configuration method according to claim 1, characterized in that: Before generating a style sheet editing interface according to the style sheet of the target component, the method includes: In response to the first activation operation, obtaining a mapping relationship table between Cascading Style Sheet (CSS) selectors and values corresponding to the page where the target component is located; From the mapping relationship table, obtain the style sheet corresponding to the target component.
3. The page configuration method according to claim 1, characterized in that: The method further comprises: The internal logic rules of the target component are configured through the lifecycle hook function, and the internal logic rules are used to characterize the logical relationship between the variable set, the rule effectiveness conditions and the effect definition; wherein each variable in the variable set corresponds to a responsive function, and the responsive function is used to monitor the variable status.
4. The page configuration method according to claim 3, characterized in that: The conditions for the effectiveness of the rules include: A logical statement or function consisting of one or more variables; and / or The trigger operation on the target component.
5. The page configuration method according to claim 3, characterized in that: The effect definition includes at least one of the following: text replacement, event interception, whether an element is visible, and a custom style set.
6. The page configuration method according to claim 1, characterized in that: The method further comprises: receiving a second activation operation on the target component; In response to the second activation operation, the target component enters a layout editing state; When the target component is edited from the first layout state to the second layout state, based on the native grid layout of the browser, the bounding boxes of all components on the Web application page in the second layout state are calculated to determine whether the bounding boxes overlap.
7. A page configuration device, characterized in that: include: A first receiving module, configured to receive a first activation operation on a target component on a Web application page, wherein the first activation operation is used to trigger style extraction and configuration of the target component; A first response module, configured to generate a style sheet editing interface according to the style sheet of the target component in response to the first activation operation; wherein the style sheet editing interface displays style options corresponding to the target component, and the style options are in an editable state; The second receiving module is further used to receive input operations on the style sheet editing interface; The second response module is used to generate an edited custom style in response to the input operation, and apply the custom style to the target component.
8. An electronic device, comprising: A transceiver, a processor, a memory, and a program or instruction stored in the memory and executable on the processor; wherein the processor implements the page configuration method according to any one of claims 1 to 6 when executing the program or instruction.
9. A readable storage medium having a program or instruction stored thereon, characterized in that: When the program or instruction is executed by a processor, the steps in the page configuration method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of the page configuration method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Component implementation technology for automatically generating dynamic web page on line in real time
CN101526942A
Page editing method and system
CN107291736A
Page editing processing method and device
CN108495192A
Code processing method and device, electronic equipment and storage medium
CN111273899A
Page element editing method and related equipment
CN111580815A
Cited By
Sandbox isolation style debugging method and equipment based on generative AI technology
CN120493237A
A sandbox isolation style debugging method and device based on generative AI technology
CN120493237B
