mysoft-npmdemo
v0.2.4
Published
Lightweight Mobile UI Components built on Vue
Downloads
7
Readme
Demo 组件
使用指南
import DemoInput from 'mysoft-npmdemo';
Vue.use(Actionsheet);
export defalut {
...
components:{
DemoInput
}
...
}
代码演示
基础用法
和原生的 input 用法一致。
<demo-input v-model="val" :actions="actions" @change="onChange" />
export default {
components: {
DemoInput
},
data() {
return {
val: ""
};
},
methods: {
onChange() {}
}
};
API
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| ----------- | ----------------------- | ----------------- | ------ | ---- |
| type | input 类型 | String
| []
| - |
| placeholder | 默认显示 | String
| - | - |
| v-model | input value 值 双向绑定 | String | Number
| - | - |
Event
| 事件名 | 说明 | 参数 | | ------ | ---------------------- | ---- | | change | input value 改变时触发 | 无 |