1.3.5 • Published 2 years ago

guesswhy-reaper-table v1.3.5

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

guesswhy-reaper-table

···

⬇️ Install

npm  install  guesswhy-reaper-table

🎨 Usage

main.js
import ReaperTable from 'guesswhy-reaper-table'
Vue.use(ReaperTable)
<reaper-table :tableData="tableData" :columns="columns"></reaper-table>

tableData: [
    {id:1, a:2, b:3, c:4},
    {id:1, a:2, b:3, c:4},
    {id:1, a:2, b:3, c:4},
    {id:1, a:2, b:3, c:4},
]

columns: [
    { title: "列标题", field: "列填充字段" },
    { title: "列标题", field: "列填充字段" },
    { title: "列标题", field: "列填充字段" },
    {
        title: "列标题",
        field: "列填充字段",
        type: "switch",
        payload: {open:true,close:false,change: row=>console.log(row)}
    },
    {
        title: "列标题",
        field: "列填充字段",
        width: 300,
        fixed: 'right',
        type: "btn",
        payload: [
            {
                name: "修改用户",
                type: "primary",
            click: (row) => console.log("修改", row),
            },
                {
                name: "分配角色",
                type: "success",
                click: (row) => console.log("分配角色", row),
            },
            {
                name: "删除",
                type: "danger",
                click: (row) => console.log("删除", row),
            },
        ]
    },
]

💡 Compiles and minifies for production

 具体使用要搭配element组件全局引入element库搭配一起使用,否则不生效

Show

1666226785965

License

### 🔒 License
See [Configuration Reference](https://cli.vuejs.org/config/).
1.3.5

2 years ago

1.3.4

2 years ago

1.3.2

2 years ago

1.2.5

2 years ago

1.2.0

2 years ago

1.1.5

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago