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.7k 阅读
2 回答3.2k 阅读✓ 已解决
2 回答4.2k 阅读✓ 已解决
4 回答4.6k 阅读✓ 已解决
3 回答1.9k 阅读✓ 已解决
3 回答1.7k 阅读✓ 已解决
3 回答2.7k 阅读✓ 已解决
直接css table {} 覆盖就好了