Compare commits
2 Commits
99aea9e243
...
f5bd523985
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f5bd523985 | ||
|
|
be47e94196 |
@@ -33,9 +33,19 @@ export function useColumnCount(onChange = () => {}) {
|
||||
|
||||
let count = 2
|
||||
if (width >= 1000) {
|
||||
// #ifdef H5
|
||||
count = 3 // H5端最多显示3列
|
||||
// #endif
|
||||
// #ifndef H5
|
||||
count = 5
|
||||
// #endif
|
||||
} else if (width >= 750) {
|
||||
// #ifdef H5
|
||||
count = 3 // H5端最多显示3列
|
||||
// #endif
|
||||
// #ifndef H5
|
||||
count = 4
|
||||
// #endif
|
||||
} else if (width >= 500) {
|
||||
count = 3
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user