This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/vuetify-loader/lib/matcher/attr.js

10 lines
338 B
JavaScript
Raw Permalink Normal View History

2019-08-11 18:48:02 +00:00
const { directives } = require('./generator')
module.exports = function match (_, { kebabAttr, camelAttr: attr }) {
if (!kebabAttr.startsWith('v-')) return
const name = attr.slice(1)
const directory = kebabAttr.slice(2)
if (directives.includes(name)) return [name, `import ${name} from 'vuetify/lib/directives/${directory}'`]
}