0.1.7 • Published 5 months ago
asiainfo-element-ui v0.1.7
快速上手
前提条件:先安装 element-ui 和 lodash
- 安装依赖
npm i asiainfo-element-ui
- 引入包
import AsiaUI from 'asiainfo-element-ui'
- 全局注册
Vue.use(ElementUI)
Vue.use(AsiaUI)
注意: 应在 ElementUI 之后注册,才能覆盖 ElementUI 的组件
- 参数配置
支持配置 input、input-number、select 的全部属性默认值
Vue.use(ElementUI)
Vue.use(AsiaUI, {
input: { placeholder: '请输入', clearable: true, maxlength: 30 },
textarea: { placeholder: '请输入', maxlength: 200, rows: 3 },
inputNumber: { placeholder: '请输入', clearable: true, min: 0, max: 99999 },
select: { placeholder: '请选择', clearable: true }
})
注意:input 组件的 type 为 textarea 时,优先应用 textarea 中的配置