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
1.首先创建 custom-tab-bar 文件夹 包含 index.ts index.json index.wxml index.wxss`index.ts//index.ts Component({ data: { color: "#7A7E83", selectedColor: "#3cc51f", list: [{
最近Vant Weapp的组件库,结果构建npm的时候翻车了,回去查了官方文档,原来要修改project.config.json文件npm init npm i @vant/weapp -S --production开发者工具创建的项目,miniprogramRoot默认为 miniprogram,package.json在其外部,npm 构建无法正常工作。需要手动在 project.config