Add missing deps, fix errors from eslint

This commit is contained in:
Viktor Denisov
2022-12-16 11:14:19 -08:00
parent 2cba776dc8
commit 6fa827823c
21 changed files with 483 additions and 229 deletions

View File

@@ -103,7 +103,19 @@ const customMethods = {
export default {
mixins: [mountableMixin],
props: mappedPropsToVueProps({...props, ...events.reduce((obj, eventName) => ({...obj, [`on${eventName.charAt(0).toUpperCase()}${eventName.slice(1)}`.replace(/[-_]+(.)?/g, (_, c) => c ? c.toUpperCase() : '')]: Function}), {}) } ),
props: mappedPropsToVueProps({
...props,
...events.reduce(
(obj, eventName) => ({
...obj,
[`on${eventName.charAt(0).toUpperCase()}${eventName.slice(1)}`.replace(
/[-_]+(.)?/g,
(_, c) => (c ? c.toUpperCase() : '')
)]: Function,
}),
{}
),
}),
inheritAttrs: false,
provide() {