custom-ui-lib
v0.1.7
Published
custom-ui library of Vue2
Downloads
1
Maintainers
Readme
custom-ui library of Vue2
Dependencies
- element-ui
- vxe-table
Installation
npm install -S custom-ui-lib
Usage
import CustomUi from 'custom-ui-lib'
Vue.use(CustomUi)
OR
- Example
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 搜索 |