element-ui 全局设置table的高度,要给table一个默认的高度,或者最大高度,但是在vue.use 设置了没有效果
Vue.use(Element, {
size: 'small',
'height': 300,
'max-height': '300px'
});
Vue.use(Table, {
'height': 800,
'max-height': 800,
});
这两种方式都不行,设置了没有效果### 问题描述
element-ui 全局设置table的高度,要给table一个默认的高度,或者最大高度,但是在vue.use 设置了没有效果
Vue.use(Element, {
size: 'small',
'height': 300,
'max-height': '300px'
});
Vue.use(Table, {
'height': 800,
'max-height': 800,
});
这两种方式都不行,设置了没有效果### 问题描述
10 回答11.1k 阅读
6 回答3k 阅读
5 回答4.8k 阅读✓ 已解决
4 回答3k 阅读✓ 已解决
2 回答2.6k 阅读✓ 已解决
3 回答5.1k 阅读✓ 已解决
3 回答1.8k 阅读✓ 已解决
直接css table {} 覆盖就好了