eterl-ui

3.0.2 • Public • Published

eterl-ui

Install


Using npm to install:

// 最新版本
npm install eterl-ui

Quick start


Vue.js

You can import in your main.js file
import customComVue from 'eterl-ui'
import 'eterl-ui/lib/eterl-ui.css'

Vue.use(customComVue)

组件使用:

eterBuoy:

<eter-buoy></eter-buoy>

eterDialog:

<eterDialog />

eterRate:

<eterRate v-model="" />

插件的使用

$eterDialog API 附件

Methods 方法
// 显示
_self.$eterDialog()
// 隐藏弹窗
_self.$eterDialog.hide()

// OR
let _dialog = _self.$eterDialog()

_dialog.close()

$eterLoad()   API

Methods 方法
方法名 说明 参数 返回值
show 显示 loading options
close 隐藏 loading
$eterLoad() // $eterLoad.show()
// 隐藏
_self.$eterLoad.close()

// OR
let loading = _self.$eterLoad()

loading.close()
Options 选项
属性 说明 类型 默认值
zIndex 指定 loading 组件 dom 元素层级 number ()=>zIndexPlus()
text 显示在加载图标下方的加载文案 string
getContainer 挂载到指定容器 默认 body 上 string body

Package Sidebar

Install

npm i eterl-ui

Weekly Downloads

2

Version

3.0.2

License

ISC

Unpacked Size

1.13 MB

Total Files

9

Last publish

Collaborators

  • eternal_lee