调整页面的高度,改为自适应(优化)
This commit is contained in:
@@ -16,7 +16,7 @@ export const JeecgListMixin = {
|
|||||||
//token header
|
//token header
|
||||||
tokenHeader: {'X-Access-Token': Vue.ls.get(ACCESS_TOKEN)},
|
tokenHeader: {'X-Access-Token': Vue.ls.get(ACCESS_TOKEN)},
|
||||||
/*卡片样式 */
|
/*卡片样式 */
|
||||||
cardStyle: 'height:' + (document.documentElement.clientHeight-125) + 'px',
|
cardStyle: '',
|
||||||
/* 查询条件-请不要在queryParam中声明非字符串值的属性 */
|
/* 查询条件-请不要在queryParam中声明非字符串值的属性 */
|
||||||
queryParam: {},
|
queryParam: {},
|
||||||
/* 数据源 */
|
/* 数据源 */
|
||||||
@@ -63,6 +63,9 @@ export const JeecgListMixin = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
if(this.isDesktop()) {
|
||||||
|
this.cardStyle = 'height:' + (document.documentElement.clientHeight-125) + 'px'
|
||||||
|
}
|
||||||
if(!this.disableMixinCreated){
|
if(!this.disableMixinCreated){
|
||||||
//console.log(' -- mixin created -- ')
|
//console.log(' -- mixin created -- ')
|
||||||
this.loadData();
|
this.loadData();
|
||||||
|
|||||||
Reference in New Issue
Block a user