custom-component-vue

3.0.4 • Public • Published

custom-component-vue

Install


Using npm to install:

// 最新版本
npm install custom-component-vue

Quick start


Vue.js

You can import in your main.js file
import customComVue from 'custom-component-vue'
import 'custom-component-vue/lib/custom-component-vue.css'

Vue.use(customComVue)

组件使用:

详情见依赖包docs文件夹

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

Install

npm i custom-component-vue

DownloadsWeekly Downloads

13

Version

3.0.4

License

ISC

Unpacked Size

1.14 MB

Total Files

9

Last publish

Collaborators

  • eternal_lee