monaizi / vue-virtual-keyboard Goto Github PK
View Code? Open in Web Editor NEWvue2虚拟键盘,pc,移动端都可用的虚拟输入法,可自定义加载词库多拼,大小写字母,数字,字符,密码键盘
Home Page: https://monaizi.github.io/vue-virtual-keyboard/
vue2虚拟键盘,pc,移动端都可用的虚拟输入法,可自定义加载词库多拼,大小写字母,数字,字符,密码键盘
Home Page: https://monaizi.github.io/vue-virtual-keyboard/
使用 vite 时,import() 不能使用绝对路径拼接,只能使用相对路径或者绝对路径字符串,希望修改导入相关代码,移除 '@/'+,并提示用户应该使用 '../'。该功能在 webpack 中可以正常使用。下面是例子:
import('@/dict.json') // 正常
import('../../dict.json') // 正常
var url = '../dict.json'
import(url) // 正常
var url = '@/dict.json'
import(url) // 报错
var url = 'dict.json'
import(`@/${url}`) // 报错
import('@/' + url) // 报错
var url = 'dict.json'
import('../../' + url) // 报错,但不是无法引用,而是 MIME 不正确
// 该案例使用了 js 而不是 json
var url = 'dict.js'
import('../../' + url) // 正常
// dict.js
import baseDict from "./baseDict.json";
export default baseDict
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.