1.0.6 • Published 5 years ago

jarvis_keyboard v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

##命令行运行如下命令,安装 keyboard:

npm i jarvis_keyboard

##注册方式

###1、使用部分组件

    import { keyboard } from 'jarvis_keyboard'
    局部注册:components: { keyboard: keyboard }
    全局注册:Vue.use(keyboard); //这种写法需要对应的组件暴露install方法
    import JarvisComponents from 'jarvis_keyboard'; // 这里的书写方式应该和导出的写法有关系
    局部注册:components: { keyboard: JarvisComponents.keyboard },
    全局注册:Vue.use(JarvisComponents.keyboard); //这种写法需要对应的组件暴露install方法
    全局注册:Vue.use(JarvisComponents); //包含toast、keyboard组件

###2、cdn方式使用

<script src="./main.js"></script> //如果window.Vue存在,则自动注册全部组件

##使用方式

<keyboard @pay='pay' @keyvalue='keyvalue' ref='keyboard' />  //pay支付按钮返回分,keyvalue实时返回当前值
this.$refs.keyboard.show()  //调用显示键盘
this.$refs.keyboard.hide()  //调用隐藏键盘

<toast ref='toast' />
this.$refs.toast.show()  //调用显示提示窗
this.$refs.toast.hide()  //调用隐藏提示窗
this.$refs.toast.setContent(content, flag) //content定制显示内容,flag (true不消失)
1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago