lupine.web 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/core/bind-styles.ts +6 -5
package/package.json
CHANGED
package/src/core/bind-styles.ts
CHANGED
|
@@ -159,10 +159,11 @@ if (typeof document !== 'undefined') {
|
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
// 不能清空,在index.tsx中加载的只会被加载一次,清空了就没有了
|
|
163
|
+
// const clearGlobalStyles = () => {
|
|
164
|
+
// // reset unique id
|
|
165
|
+
// _globalStyle.clear();
|
|
166
|
+
// };
|
|
166
167
|
// bindPageResetEvent(clearGlobalStyles);
|
|
167
168
|
|
|
168
169
|
export const generateAllGlobalStyles = () => {
|
|
@@ -175,6 +176,6 @@ export const generateAllGlobalStyles = () => {
|
|
|
175
176
|
result.push(`<style id="sty-${uniqueStyleId}">${cssText}</style>`);
|
|
176
177
|
}
|
|
177
178
|
|
|
178
|
-
clearGlobalStyles();
|
|
179
|
+
// clearGlobalStyles();
|
|
179
180
|
return result.join('');
|
|
180
181
|
};
|