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,
});
这两种方式都不行,设置了没有效果### 问题描述
13 回答12.7k 阅读
2 回答4.9k 阅读✓ 已解决
7 回答1.8k 阅读
5 回答1.3k 阅读
9 回答1.6k 阅读✓ 已解决
3 回答2.1k 阅读✓ 已解决
8 回答2.2k 阅读
直接css table {} 覆盖就好了