【修复】数据调整,导致的部署项目遗漏问题

This commit is contained in:
chudong
2025-05-23 18:09:54 +08:00
parent febe33dfd6
commit c9872fe52d
70 changed files with 199 additions and 155 deletions

View File

@@ -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, '')