H5端显示三列岗位列表
This commit is contained in:
@@ -33,9 +33,19 @@ export function useColumnCount(onChange = () => {}) {
|
|||||||
|
|
||||||
let count = 2
|
let count = 2
|
||||||
if (width >= 1000) {
|
if (width >= 1000) {
|
||||||
|
// #ifdef H5
|
||||||
|
count = 3 // H5端最多显示3列
|
||||||
|
// #endif
|
||||||
|
// #ifndef H5
|
||||||
count = 5
|
count = 5
|
||||||
|
// #endif
|
||||||
} else if (width >= 750) {
|
} else if (width >= 750) {
|
||||||
|
// #ifdef H5
|
||||||
|
count = 3 // H5端最多显示3列
|
||||||
|
// #endif
|
||||||
|
// #ifndef H5
|
||||||
count = 4
|
count = 4
|
||||||
|
// #endif
|
||||||
} else if (width >= 500) {
|
} else if (width >= 500) {
|
||||||
count = 3
|
count = 3
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user