Chain access-based styled inheritance method and system

The invention discloses a styled inheritance method and system based on chain access, and the method comprises the steps: obtaining a style object, and packaging the style object through employing styled-components to construct a corresponding style component; establishing a corresponding agent for...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: FANG YUCHI, SUN QIN, WEI MEIZHONG, WANG SENYUAN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a styled inheritance method and system based on chain access, and the method comprises the steps: obtaining a style object, and packaging the style object through employing styled-components to construct a corresponding style component; establishing a corresponding agent for each pattern component, and accessing a pattern object in the pattern component through the agent; returning a first style object agent corresponding to the style component, further accessing an object attribute in the returned first style object agent, generating a second style object agent, and constructing chain access; and replacing an object in the first style object agent or the second style object agent with a target style object for inheriting the target style object. According to the method and the system, the style attributes are packaged through the styled-components, and the different style attributes are connected through the access operators, so that inheritance of the style attributes is facilitated.