init
This commit is contained in:
@@ -10,7 +10,11 @@ function normalize(binding: DirectiveBinding<AuthValue>): string[] {
|
||||
}
|
||||
|
||||
/** 校验不通过时直接移除 DOM 节点,而非仅禁用 */
|
||||
function check(el: HTMLElement, binding: DirectiveBinding<AuthValue>, checker: (code: string) => boolean) {
|
||||
function check(
|
||||
el: HTMLElement,
|
||||
binding: DirectiveBinding<AuthValue>,
|
||||
checker: (code: string) => boolean,
|
||||
) {
|
||||
const codes = normalize(binding)
|
||||
if (!codes.length) return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user