hx-editable
hx-table
Project setup
npm i hx-editable
how to use
add config in vue.config.js
runtimeCompiler: true,
example to use
<hxTable :columnOption="columnOption" :data="data" @cellChanged="cellChanged">
<el-table-column prop="date" label="日期" width="180"></el-table-column>
<el-table-column prop="name" label="姓名" width="180"></el-table-column>
<el-table-column prop="address" label="地址"></el-table-column>
</hxTable>
data() {
return {
columnOption: [
{ id: "date", type: "date", format: "yyyy-MM-dd" },
{ id: "name", type: "text" },
{
id: "address",
type: "select",
options: [
{
value: "黄金糕",
label: "黄金糕"
},
{
value: "双皮奶",
label: "双皮奶"
},
{
value: "蚵仔煎",
label: "蚵仔煎"
}
]
}
],
data: [
{
date: "2016-05-02",
name: "王小虎",
address: "上海市普陀区金沙江路 1518 弄"
},
{
date: "2016-05-04",
name: "王小虎",
address: "上海市普陀区金沙江路 1517 弄"
},
{
date: "2016-05-01",
name: "王小虎",
address: "上海市普陀区金沙江路 1519 弄"
},
{
date: "2016-05-03",
name: "王小虎",
address: "上海市普陀区金沙江路 1516 弄"
}
]
};
},
methods: {
cellChanged(row, column, cell) {
console.log("hahahha", this.data);
}
Other
suggest mail to xujf0992@163.com
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.2.79 | ^2.6.10 | ||
| 0.2.77 | ^2.6.10 | ||
| 0.2.76 | ^2.6.10 | ||
| 0.2.75 | ^2.6.10 | ||
| 0.2.73 | ^2.6.10 | ||
| 0.2.72 | ^2.6.10 | ||
| 0.2.71 | ^2.6.10 | ||
| 0.2.70 | ^2.6.10 | ||
| 0.2.68 | ^2.6.10 | ||
| 0.2.67 | ^2.6.10 | ||
| 0.2.64 | ^2.6.10 | ||
| 0.2.63 | ^2.6.10 | ||
| 0.2.62 | ^2.6.10 | ||
| 0.2.61 | ^2.6.10 | ||
| 0.2.60 | ^2.6.10 | ||
| 0.2.59 | ^2.6.10 | ||
| 0.2.58 | ^2.6.10 | ||
| 0.2.57 | ^2.6.10 | ||
| 0.2.56 | ^2.6.10 | ||
| 0.2.55 | ^2.6.10 | ||
| 0.2.54 | ^2.6.10 | ||
| 0.2.53 | ^2.6.10 | ||
| 0.2.52 | ^2.6.10 | ||
| 0.2.51 | ^2.6.10 | ||
| 0.2.50 | ^2.6.10 | ||
| 0.2.49 | ^2.6.10 | ||
| 0.2.48 | ^2.6.10 | ||
| 0.2.47 | ^2.6.10 | ||
| 0.2.46 | ^2.6.10 | ||
| 0.2.45 | ^2.6.10 |
Showing the latest 30 of 82. See every release on npm