You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a chalk theme, a dark theme, two themes free to switch, then this way is best for you.
58
+
If you have a chalk theme, a dark theme, two themes free to switch, then the following is best for you.
58
59
59
60
```javascript
60
61
import'element-ui/lib/theme-chalk/index.css';
@@ -97,9 +98,9 @@ The progress bar component [Progress](https://github.com/ElemeFE/element/blob/ma
97
98
98
99
Although the two components can pass null values to reset properties to support dark themes, for students who are not concerned about this feature, it is unclear why properties such as `text-color=""` are passed in, which undoubtedly adds mental burden at the development level.
99
100
100
-
The style approach cannot solve the fundamental problem of `Rate` and `Progress`.
101
+
Um The style cannot solve the fundamental problem of `Rate` and `Progress`.
101
102
102
-
We have considered another approach, which is to redefine the `Rate` and `Progress` components, but without compromising the scalability and uniqueness of the original components. Therefore, we adopted the method of inheriting the original components and added an intermediate layer in `javascript` to help users initially empty the relevant color`props`.
103
+
Can you redefine the `Rate` and `Progress` components? Without breaking the extensibility and uniqueness of the original component, adopted the method of inheriting the original component and make a middle layer in `javascript` to help the user initially empty the related colors`props`.
### How to persist themes, update themes responsive to the system?
133
134
134
-
The theme `switch` in [The preview page](https://dongwei1125.github.io/theme-dark) has added common dark theme functions, such as browser caching to permanently save the user's frequently used theme status, dynamically switching theme styles according to operating system presets, and media query style transition. You can refer to the component [ThemeToggle](https://github.com/dongwei1125/theme-dark/tree/master/docs/components/ThemeToggle/dark).
135
+
The theme `switch` in [The preview page](https://dongwei1125.github.io/theme-dark) has added common dark theme functions, such as browser caching to permanently save the user's frequently used theme status, dynamically switching theme styles according to operating system presets, and media query style transition. You can refer to the component [ThemeToggle](https://github.com/dongwei1125/theme-dark/tree/master/docs/components/ThemeToggle/dark) or [Sample](https://codepen.io/dongwei1125/pen/dyExzaP).
135
136
136
137
### Persistent loading for the first time in dark mode with white screen?
0 commit comments