feat: 一体机适配
This commit is contained in:
@@ -6,6 +6,10 @@ import {
|
||||
watch
|
||||
} from 'vue'
|
||||
|
||||
import useScreenStore from '@/stores/useScreenStore'
|
||||
const screenStore = useScreenStore()
|
||||
|
||||
|
||||
export function useColumnCount(onChange = () => {}) {
|
||||
const columnCount = ref(0)
|
||||
const columnSpace = ref(2)
|
||||
@@ -20,9 +24,12 @@ export function useColumnCount(onChange = () => {}) {
|
||||
// }
|
||||
// }
|
||||
const calcColumn = () => {
|
||||
const width = uni.getSystemInfoSync().windowWidth
|
||||
|
||||
// const width = uni.getSystemInfoSync().windowWidth
|
||||
const {foldFeature,foldCount} = screenStore
|
||||
let count = 2
|
||||
//折叠屏2*屏幕数量
|
||||
if(foldFeature) count = foldCount * 2
|
||||
else count = 2
|
||||
// if (width >= 1000) {
|
||||
// count = 5
|
||||
// } else if (width >= 750) {
|
||||
|
||||
Reference in New Issue
Block a user