|
@@ -12,7 +12,7 @@
|
|
|
import { reactive, toRefs, computed, ref, Ref, watch } from 'vue';
|
|
import { reactive, toRefs, computed, ref, Ref, watch } from 'vue';
|
|
|
import { createComponent } from '@/packages/utils/create';
|
|
import { createComponent } from '@/packages/utils/create';
|
|
|
const { componentName, create } = createComponent('list');
|
|
const { componentName, create } = createComponent('list');
|
|
|
-const clientHeight = document.documentElement.clientHeight || document.body.clientHeight;
|
|
|
|
|
|
|
+const clientHeight = document.documentElement.clientHeight || document.body.clientHeight || 667;
|
|
|
export default create({
|
|
export default create({
|
|
|
props: {
|
|
props: {
|
|
|
height: {
|
|
height: {
|
|
@@ -27,7 +27,7 @@ export default create({
|
|
|
},
|
|
},
|
|
|
containerHeight: {
|
|
containerHeight: {
|
|
|
type: [Number],
|
|
type: [Number],
|
|
|
- default: clientHeight || 667
|
|
|
|
|
|
|
+ default: clientHeight
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
emits: ['scroll', 'scroll-bottom'],
|
|
emits: ['scroll', 'scroll-bottom'],
|