@chaoswise/ui 3.0.16 → 3.0.17
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.
|
@@ -18,6 +18,7 @@ var genCustomRangePickerStyle = function genCustomRangePickerStyle(token) {
|
|
|
18
18
|
position: "absolute",
|
|
19
19
|
top: "0",
|
|
20
20
|
width: "100px",
|
|
21
|
+
height: "100%",
|
|
21
22
|
borderRight: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorBorderSecondary),
|
|
22
23
|
overflowY: "auto",
|
|
23
24
|
display: "flex",
|
|
@@ -169,7 +169,6 @@ export function ThemeSwitcherProvider(_ref) {
|
|
|
169
169
|
themeVars: useMultipleTheme ? themeVars[currentTheme] ? _objectSpread(_objectSpread({}, defaultThemeVars), themeVars[currentTheme]) : defaultThemeVars : _objectSpread(_objectSpread({}, defaultThemeVars), themeVars)
|
|
170
170
|
};
|
|
171
171
|
}, [switcher, status, currentTheme, themeMap, themeVars, defaultThemeVars]);
|
|
172
|
-
console.log(value, "value");
|
|
173
172
|
if (showLoading && status !== "loaded" && isFirstLoaded.current && useMultipleTheme) {
|
|
174
173
|
return loadingPage;
|
|
175
174
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
var _excluded = ["stylish", "appearance", "isDarkMode"
|
|
2
|
-
_excluded2 = ["prefixCls"];
|
|
1
|
+
var _excluded = ["stylish", "appearance", "isDarkMode"];
|
|
3
2
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
4
3
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
4
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -45,8 +44,8 @@ export var createStylesFactory = function createStylesFactory(_ref) {
|
|
|
45
44
|
var stylish = theme.stylish,
|
|
46
45
|
appearance = theme.appearance,
|
|
47
46
|
isDarkMode = theme.isDarkMode,
|
|
48
|
-
prefixCls = theme.prefixCls,
|
|
49
47
|
token = _objectWithoutProperties(theme, _excluded);
|
|
48
|
+
var prefixCls = token.prefixCls;
|
|
50
49
|
// 创建响应式断点选择器的工具函数
|
|
51
50
|
// @ts-ignore
|
|
52
51
|
var responsive = function responsive(styles) {
|
|
@@ -100,12 +99,11 @@ export var createStylesFactory = function createStylesFactory(_ref) {
|
|
|
100
99
|
return tempStyles;
|
|
101
100
|
}, [props, theme]);
|
|
102
101
|
return useMemo(function () {
|
|
103
|
-
var prefixCls = theme.prefixCls
|
|
104
|
-
res = _objectWithoutProperties(theme, _excluded2);
|
|
102
|
+
var prefixCls = theme.prefixCls;
|
|
105
103
|
return {
|
|
106
104
|
styles: styles,
|
|
107
105
|
cx: cx,
|
|
108
|
-
theme:
|
|
106
|
+
theme: theme,
|
|
109
107
|
prefixCls: prefixCls
|
|
110
108
|
};
|
|
111
109
|
}, [styles, theme]);
|