Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Page theme customization method and device, electronic equipment and storage medium

A theme and page technology, applied in the field of page development, can solve the problems of increasing the size of CSS files, no longer meeting user experience requirements, and inflexible performance, reducing business code redundancy, improving customization flexibility, and improving generation. The effect of flexibility

Pending Publication Date: 2022-03-15
CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The component library is universal, but a single vision no longer satisfies user experience requirements. In order to improve user experience, provide reputation for application experience, and improve developer efficiency, developers hope that the component library can be customized to provide skin-changing functions and The style customization function in various components allows the application to switch skins with different themes according to user or business needs, and also allows style modification of specified components
[0003] There are many mature component libraries on the existing network, all of which have the function of customizing the theme, such as element-ui, antd, iview, ionic, etc., but there are problems such as performance or inflexible use, such as rewriting class name replacement, multiple sets Themes need to implement multiple sets of style variable files, which are difficult to maintain and redundant code, which leads to inflexible customization of page themes. Although the improved version of the Modify Vars theme component can support flexible use at compile or runtime, it cannot be used at compile time. Since it is necessary to import the source file first and then copy a set of style replacements, the volume of the compiled css file will be increased, and only the variables in the linked less file can be changed at runtime, and the variables of the less file are only valid in the current file. Pages cannot reuse less variables, which will also lead to inflexible customization of page themes

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Page theme customization method and device, electronic equipment and storage medium
  • Page theme customization method and device, electronic equipment and storage medium
  • Page theme customization method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0042] An embodiment of the present invention provides a method for customizing a page theme. The subject of execution of the method for customizing a page theme includes, but is not limited to, at least one of electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present invention. In other words, the method for customizing a page theme can be executed by software or hardware installed on a terminal device or a server device, and the software can be a block chain platform. The server includes, but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server can be an independent server, or it can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storag...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the field of page development, and discloses a page theme customization method, which comprises the following steps of: constructing a theme variable of a page theme according to a customization requirement of the page theme, and generating a theme variable file of the page theme according to the theme variable; configuring a basic style of a theme variable in the theme variable file by utilizing a preset pre-compiler, and generating a theme style file of the theme variable file according to the basic style; receiving a business source file, matching a business theme style of the business source file from the theme style file, and generating a running style file of the business source file according to the business theme style; and loading the running style file into a preset running browser to obtain a page theme style of the business source file. In addition, the invention also relates to a block chain technology, and the theme style file can be stored in a block chain. According to the invention, the flexibility of page theme customization can be improved.

Description

technical field [0001] The present invention relates to the field of page development, in particular to a page theme customization method, device, electronic equipment and computer-readable storage medium. Background technique [0002] The component library is universal, but a single vision no longer satisfies user experience requirements. In order to improve user experience, provide reputation for application experience, and improve developer efficiency, developers hope that the component library can be customized to provide skin-changing functions and The style customization function in various components allows the application to switch skins with different themes according to user or business needs, and also allows style modification of specified components. [0003] There are many mature component libraries on the existing network, all of which have the function of customizing the theme, such as element-ui, antd, iview, ionic, etc., but there are problems such as perfor...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/20
CPCG06F8/20
Inventor 詹泽娟
Owner CHINA PING AN PROPERTY INSURANCE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products