(el, value, modifiers)
| 24 | } |
| 25 | |
| 26 | export function getOptions (el, value, modifiers) { |
| 27 | let options |
| 28 | const type = typeof value |
| 29 | if (type === 'string') { |
| 30 | options = { content: value } |
| 31 | } else if (value && type === 'object') { |
| 32 | options = value |
| 33 | } else { |
| 34 | options = { content: false } |
| 35 | } |
| 36 | options.placement = getPlacement(options, modifiers) |
| 37 | options.targetNodes = () => [el] |
| 38 | options.referenceNode = () => el |
| 39 | return options |
| 40 | } |
| 41 | |
| 42 | interface Directive { |
| 43 | id: number |
no test coverage detected
searching dependent graphs…