0.0.3 • Published 5 months ago

el-buttons v0.0.3

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

el-buttons

描述

Installtion

npm i el-buttons

Usage

import ElButtons from 'el-buttons'

Vue.component('el-buttons', ElButtons)

<el-table-column>
    <template slot-scope="{row}">
        <el-buttons :data="[{ text: '更新', callback: () => {} }]" />
    </template>
</el-table-column>

Props

参数名说明类型必填默认值
data按钮数据arraytrue-
index分隔按钮位置, 按钮索引大于 index 值的会被收起numberfalse2

Data item

参数名说明类型必填默认值
text按钮文字stringtrue-
callback按钮触发回调函数functiontrue-
confirm按钮触发回调函数前弹出确认booleanfalse-

效果图

效果图

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago