功能实现:打开弹窗,弹窗中的输入框内容自动选中,且为全选创建refconst inputRef = ref<HTMLInputElement>(null); 在弹窗打开时,调用refconst showEditModal = () => { visible.value = true; nextTick(() => { inputRef.value.focus

- 阅读全文 -