基于vue3的虚拟键盘,能够中英文切换,拼音功能 实现效果 使用 主文件内容 <template> <div id="app"> <div> <div> 中文:<input style="width: 400px; height: 25px; font-size: 20px" type="text" v-model="val vue3开发 yzh 2023-11-06 472 热度 0评论
vue3中自定义一个简单键盘 自定义图片实现效果: 实现功能:输入框中获取焦点时,弹窗出自定义键盘,键盘可输入数字。在代码keyboardList中可以修改按键中的字符,具体代码如下: <template> <div class="container"> <el-input ref="inputRef" type="text" @clic vue3开发 yzh 2023-10-20 321 热度 0评论
vue3中父组件调用子组件的方法,实现方法 首先需要我们在子组件中使用defineExpose将函数方法暴露出去。 父组件中在引入子组件的地方添加ref属性 vue3开发 yzh 2023-08-03 268 热度 0评论
vue3+ts+element-plus中使用setup语法糖时实现父子组件中弹窗dialog的打开与关闭 上图为实现效果 父组件: 子组件: 具体代码 //usersManage.vue <template> <div class="container"> <el-table :data="tableData" style="width: 100%"> <el-table-column fixed p vue3开发 yzh 2023-08-03 281 热度 0评论
vue3+pinia+ts开发时,报错[🍍]: “getActivePinia()” was called but there was no active Pinia. Did you forget to install pinia? const pinia = createPinia(),解决办法 首先确保安装了pinia的基础上,创建src/store/index.ts import { createPinia } from "pinia"; // 创建 Pinia Store const pinia = createPinia(); //对外暴露出去 export default pinia; 然后在main.ts中引入并挂载pinia import { create vue3开发 yzh 2023-07-17 363 热度 0评论