/*
 * @Author: your name
 * @Date: 2021-03-02 15:29:31
 * @LastEditTime: 2021-03-23 17:53:43
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue3-element-admin\src\plugins\mock.js
 */
export default {
    install: (app, { router, store }) => {
        const files = require.context("@/directives/modules", false, /\.js$/);
        files.keys().forEach((key) => {
            let name = key.replace(/(\.\/|\.js)/g, "");
            let method = files(key).default;
            app.directive(name, (el, binding) =>
                method(el, binding, app, router, store)
            );
        });
    },
};
