npm.io
0.1.7 • Published 4 years ago

custom-ui-lib

Licence
—
Version
0.1.7
Deps
6
Size
152 kB
Vulns
3
Weekly
0

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 搜索

Keywords