|
|
|
@ -758,12 +758,11 @@ const textShow = (item: any) => { |
|
|
|
const shapeText = ref('') |
|
|
|
const shapeText = ref('') |
|
|
|
const changeShapeText = (e: any) => { |
|
|
|
const changeShapeText = (e: any) => { |
|
|
|
console.log('changeShapeText', e.target.value) |
|
|
|
console.log('changeShapeText', e.target.value) |
|
|
|
if (!validateInput(e.target.value)) { |
|
|
|
// if (!validateInput(e.target.value)) { |
|
|
|
showToast('输入的文字不能包含特殊符号!') |
|
|
|
// showToast('输入的文字不能包含特殊符号!') |
|
|
|
// 移除特殊符号,仅保留字母、数字、中文和空格 |
|
|
|
// shapeText.value = e.target.value.replace(/[^a-zA-Z0-9\u4e00-\u9fa5\s]/g, ''); |
|
|
|
shapeText.value = e.target.value.replace(/[^a-zA-Z0-9\u4e00-\u9fa5\s]/g, ''); |
|
|
|
// return; |
|
|
|
return; |
|
|
|
// } |
|
|
|
} |
|
|
|
|
|
|
|
handleInput(e.target.value) |
|
|
|
handleInput(e.target.value) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|