Vue3 弹窗打开,默认输入框带焦点全选文字(以antdv为例)
功能实现:打开弹窗,弹窗中的输入框内容自动选中,且为全选创建refconst inputRef = ref<HTMLInputElement>(null); 在弹窗打开时,调用refconst showEditModal = () => { visible.value = true; nextTick(() => { inputRef.value.focus
功能实现:打开弹窗,弹窗中的输入框内容自动选中,且为全选创建refconst inputRef = ref<HTMLInputElement>(null); 在弹窗打开时,调用refconst showEditModal = () => { visible.value = true; nextTick(() => { inputRef.value.focus
全部捕获/ 404未找到路线常规参数只会匹配网址片段之间的字符,并用分隔/。如果我们想匹配任何东西,我们可以使用自定义参数正则表达式,方法是在参数后面紧随括号内添加正则表达式:const routes = [ // will match everything and put it under `$route.params.pathMatch` { path: '/:pathMatch(.*