add hover-highlight prop in Table
This commit is contained in:
parent
af43876007
commit
2474ee5929
6 changed files with 7596 additions and 9 deletions
15
examples/entry-server.js
Normal file
15
examples/entry-server.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { createApp } from './main';
|
||||
|
||||
export default context => {
|
||||
return new Promise((resolve, reject) => {
|
||||
const { app, router } = createApp();
|
||||
router.push(context.url)
|
||||
router.onReady(() => {
|
||||
const matchedComponents = router.getMatchedComponents();
|
||||
if (!matchedComponents.length) {
|
||||
reject({ code: 404 });
|
||||
}
|
||||
resolve(app);
|
||||
}, reject);
|
||||
});
|
||||
};
|
|
@ -1,5 +1,7 @@
|
|||
<template>
|
||||
<Table border :columns="columns7" :data="data6" @on-expand="expand"></Table>
|
||||
<div>
|
||||
<Table border :columns="columns7" :data="data6" :hover-highlight="false"></Table>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import etable from '../components/table.vue';
|
||||
|
@ -8,17 +10,18 @@
|
|||
data () {
|
||||
return {
|
||||
columns7: [
|
||||
{
|
||||
type: 'expand',
|
||||
width: 50,
|
||||
render: (h, params) => {
|
||||
// return h(etable);
|
||||
return h('div', params.row.name)
|
||||
}
|
||||
},
|
||||
// {
|
||||
// type: 'expand',
|
||||
// width: 50,
|
||||
// render: (h, params) => {
|
||||
// // return h(etable);
|
||||
// return h('div', params.row.name)
|
||||
// }
|
||||
// },
|
||||
{
|
||||
title: '姓名',
|
||||
key: 'name',
|
||||
fixed: 'left',
|
||||
render: (h, params) => {
|
||||
return h('div', [
|
||||
h('Icon', {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue