1.0.7 • Published 5 years ago

vue-test-pay v1.0.7

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

Installation

npm i test-pay --save

Usage

Import all components.

import Vue from 'vue';
import TestPay from 'test-pay';

Vue.use(TestPay);

Example

<test-pay :payPanelOptions="payPanelOptions" @inputOk="inputOk"></test-pay>	

<script>
export default {
  data () {
    return {
			payPanelOptions:{
				isShow:false,
				pressKeyBackgorund:"blue"
			}
		}
	},
	methods:{
		inputOk(res){
			console.log(res)
		}
	}
}
</script>

API

参数说明类型可选值默认值
isShow插件的显示和隐藏booleantrue/falsefalse
pressKeyBackgorund按键的背景颜色string任意颜色#ccc
pwdLength密码框的长度Number6

Event

名称返回值说明
inputOkString返回输入的密码
1.0.7

5 years ago

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