0.1.7 • Published 2 years ago
custom-ui library of Vue2
Dependencies
Installation
npm install -S custom-ui-lib
Usage
import CustomUi from 'custom-ui-lib'
Vue.use(CustomUi)
OR
import { CustomInput } from 'custom-ui-lib'
components
CustomInput
<CustomInput type="number" v-model="value"/>
API
Property | Type | Description |
---|
type | string: 'number' | 'integer' | 'float' | default:'number' |
digits | number | only for type:'float' |
placeholder | string | |
clearable | boolean | default: false |
maxlength | number | |
disabled | boolean | default: false |
value / v-model | string / number | |
CustomSelect
<CustomSelect options="arr" v-model="value"/>
API
Property | Type | Description |
---|
options | array: {value,label}[] | default: [] |
value / v-model | boolean / string / number | |
placeholder | string | |
clearable | boolean | default: false |
disabled | boolean | default: false |
filterable | boolean | default: true 搜索 |