mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-11 01:01:09 +08:00
【修复】数据调整,导致的部署项目遗漏问题
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { App, Directive, DirectiveBinding } from 'vue'
|
||||
import { App, Directive } from 'vue'
|
||||
|
||||
/**
|
||||
* 移除输入框中的空格
|
||||
* 用法:v-nospace
|
||||
*/
|
||||
export const vNospace: Directive = {
|
||||
mounted(el: HTMLElement, binding: DirectiveBinding) {
|
||||
mounted(el: HTMLElement) {
|
||||
el.addEventListener('input', (event: Event) => {
|
||||
const inputElement = event.target as HTMLInputElement
|
||||
const newValue = inputElement.value.replace(/\s+/g, '')
|
||||
|
||||
Reference in New Issue
Block a user