idiom-verification

0.1.3 • Public • Published

A Simple idiom-verification Component for Vue.js

成语点击,随机打乱成语,支持任意汉字,英文

文字校验

英文校验

Installation

npm i -S idiom-verification

Usage

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']"/>

Options and Defaults

suc

function
click success and emit

list

array
init show words

Package Sidebar

Install

npm i idiom-verification

Weekly Downloads

1

Version

0.1.3

License

MIT

Unpacked Size

44.6 kB

Total Files

26

Last publish

Collaborators

  • wanganjuan