feat(directive): add custom directive v-resize

This commit is contained in:
xiaoxian521
2021-09-03 14:46:35 +08:00
parent 0bd4f4ff68
commit 8b8491912a
9 changed files with 330 additions and 194 deletions

View File

@@ -1,8 +1,9 @@
import { usePermissionStoreHook } from "/@/store/modules/permission";
import { Directive } from "vue";
import type { DirectiveBinding } from "vue";
export const auth: Directive = {
mounted(el, binding) {
mounted(el: HTMLElement, binding: DirectiveBinding) {
const { value } = binding;
if (value) {
const authRoles = value;