npm i -S idiom-verification
In main.js
of a Vue Project:
import idiomVerification from 'idiom-verification';
Vue.use(idiomVerification);
In any Vue component,
<idiom-verification @suc="() => {}" :list="['恭喜发财', '心想事成']"/>
<idiom-verification @suc="() => {}" :list="['abcd', 'qwer']"/>
function
click success and emit
array
init show words