UNPKG

element-plus

Version:

A Component Library for Vue 3

45 lines (44 loc) 906 B
export const DEFAULT_FALLBACK_PLACEMENTS = []; export const defaultModifiers = [ { name: 'offset', options: { offset: [0, 12], }, }, { name: 'preventOverflow', options: { padding: { top: 2, bottom: 2, left: 5, right: 5, }, }, }, { name: 'flip', options: { padding: 5, fallbackPlacements: [], }, }, { name: 'computeStyles', options: { gpuAcceleration: true, adaptive: true, }, }, ]; export const defaultPopperOptions = { type: Object, default: () => { return { fallbackPlacements: DEFAULT_FALLBACK_PLACEMENTS, strategy: 'fixed', modifiers: defaultModifiers, }; }, };