UNPKG

ant-design-vue

Version:

An enterprise-class UI design language and Vue-based implementation

11 lines 391 B
import isStyleSupport from '../../_util/styleChecker'; import { onMounted, ref } from 'vue'; var supportSticky = ref(false); export var useProvideSticky = function useProvideSticky() { onMounted(function () { supportSticky.value = supportSticky.value || isStyleSupport('position', 'sticky'); }); }; export var useInjectSticky = function useInjectSticky() { return supportSticky; };