You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/vc-table/context/StickyContext.tsx

14 lines
365 B

import isStyleSupport from '../../_util/styleChecker';
import { onMounted, shallowRef } from 'vue';
const supportSticky = shallowRef(false);
export const useProvideSticky = () => {
onMounted(() => {
supportSticky.value = supportSticky.value || isStyleSupport('position', 'sticky');
});
};
export const useInjectSticky = () => {
return supportSticky;
};