mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 11:32:52 +08:00
chore: Mv style to rc-util (#32177)
This commit is contained in:
parent
0d619be27c
commit
968590e8d0
@ -1,16 +1,9 @@
|
|||||||
import canUseDom from 'rc-util/lib/Dom/canUseDom';
|
import canUseDom from 'rc-util/lib/Dom/canUseDom';
|
||||||
|
import { isStyleSupport } from 'rc-util/lib/Dom/styleChecker';
|
||||||
|
|
||||||
export const canUseDocElement = () => canUseDom() && window.document.documentElement;
|
export const canUseDocElement = () => canUseDom() && window.document.documentElement;
|
||||||
|
|
||||||
export const isStyleSupport = (styleName: string | Array<string>): boolean => {
|
export { isStyleSupport };
|
||||||
if (canUseDocElement()) {
|
|
||||||
const styleNameList = Array.isArray(styleName) ? styleName : [styleName];
|
|
||||||
const { documentElement } = window.document;
|
|
||||||
|
|
||||||
return styleNameList.some(name => name in documentElement.style);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
};
|
|
||||||
|
|
||||||
let flexGapSupported: boolean | undefined;
|
let flexGapSupported: boolean | undefined;
|
||||||
export const detectFlexGapSupported = () => {
|
export const detectFlexGapSupported = () => {
|
||||||
|
@ -140,7 +140,7 @@
|
|||||||
"rc-slider": "~9.7.1",
|
"rc-slider": "~9.7.1",
|
||||||
"rc-steps": "~4.1.0",
|
"rc-steps": "~4.1.0",
|
||||||
"rc-switch": "~3.2.0",
|
"rc-switch": "~3.2.0",
|
||||||
"rc-table": "~7.17.0",
|
"rc-table": "~7.18.0",
|
||||||
"rc-tabs": "~11.10.0",
|
"rc-tabs": "~11.10.0",
|
||||||
"rc-textarea": "~0.3.0",
|
"rc-textarea": "~0.3.0",
|
||||||
"rc-tooltip": "~5.1.1",
|
"rc-tooltip": "~5.1.1",
|
||||||
@ -148,7 +148,7 @@
|
|||||||
"rc-tree-select": "~4.5.0-alpha.0",
|
"rc-tree-select": "~4.5.0-alpha.0",
|
||||||
"rc-trigger": "^5.2.10",
|
"rc-trigger": "^5.2.10",
|
||||||
"rc-upload": "~4.3.0",
|
"rc-upload": "~4.3.0",
|
||||||
"rc-util": "^5.13.1",
|
"rc-util": "^5.14.0",
|
||||||
"scroll-into-view-if-needed": "^2.2.25"
|
"scroll-into-view-if-needed": "^2.2.25"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
Loading…
Reference in New Issue
Block a user