import { useToken } from '../theme/internal'; import { TinyColor } from '@ctrl/tinycolor'; import type { CSSProperties } from 'vue'; import { defineComponent, computed } from 'vue'; const Empty = defineComponent({ compatConfig: { MODE: 3 }, setup() { const [, token] = useToken(); const themeStyle = computed(() => { const bgColor = new TinyColor(token.value.colorBgBase); // Dark Theme need more dark of this if (bgColor.toHsl().l < 0.5) { return { opacity: 0.65, }; } return {}; }); return () => ( ); }, }); Empty.PRESENTED_IMAGE_DEFAULT = true; export default Empty;