ether-admin/node_modules/ant-design-vue/es/vc-table/context/StickyContext.js

11 lines
362 B
JavaScript

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;
};