mirror of
https://github.com/CzBiX/qb-web.git
synced 2026-04-01 10:01:27 +08:00
7 lines
149 B
TypeScript
7 lines
149 B
TypeScript
import Vue from 'vue';
|
|
|
|
Vue.directive('class', (el, binding) => {
|
|
const clsName = binding.arg!;
|
|
el.classList.toggle(clsName, binding.value);
|
|
});
|