0.1.7 • Published 5 months ago

asiainfo-element-ui v0.1.7

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

快速上手

前提条件:先安装 element-ui 和 lodash

  1. 安装依赖
npm i asiainfo-element-ui
  1. 引入包
import AsiaUI from 'asiainfo-element-ui'
  1. 全局注册
Vue.use(ElementUI)
Vue.use(AsiaUI)

注意: 应在 ElementUI 之后注册,才能覆盖 ElementUI 的组件

  1. 参数配置
    支持配置 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 中的配置

0.1.7

5 months ago

0.1.6

6 months ago

0.1.5

6 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago