After Width: | Height: | Size: 458 KiB |
Before Width: | Height: | Size: 577 B |
Before Width: | Height: | Size: 596 B |
Before Width: | Height: | Size: 583 B |
Before Width: | Height: | Size: 562 B |
Before Width: | Height: | Size: 543 B |
Before Width: | Height: | Size: 595 B |
Before Width: | Height: | Size: 560 B |
Before Width: | Height: | Size: 547 B |
Before Width: | Height: | Size: 557 B |
Before Width: | Height: | Size: 580 B |
Before Width: | Height: | Size: 613 B |
Before Width: | Height: | Size: 486 B |
Before Width: | Height: | Size: 611 B |
Before Width: | Height: | Size: 532 B |
After Width: | Height: | Size: 430 B |
After Width: | Height: | Size: 506 B |
After Width: | Height: | Size: 510 B |
After Width: | Height: | Size: 458 B |
After Width: | Height: | Size: 468 B |
After Width: | Height: | Size: 452 B |
After Width: | Height: | Size: 444 B |
After Width: | Height: | Size: 418 B |
After Width: | Height: | Size: 468 B |
After Width: | Height: | Size: 438 B |
After Width: | Height: | Size: 426 B |
After Width: | Height: | Size: 434 B |
After Width: | Height: | Size: 476 B |
After Width: | Height: | Size: 486 B |
After Width: | Height: | Size: 396 B |
After Width: | Height: | Size: 480 B |
After Width: | Height: | Size: 410 B |
After Width: | Height: | Size: 496 B |
After Width: | Height: | Size: 444 B |
After Width: | Height: | Size: 408 B |
After Width: | Height: | Size: 434 B |
After Width: | Height: | Size: 450 B |
After Width: | Height: | Size: 496 B |
After Width: | Height: | Size: 496 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 808 B |
After Width: | Height: | Size: 49 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 4.5 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 6.9 KiB |
After Width: | Height: | Size: 7.2 KiB |
@ -0,0 +1,43 @@ |
|||||||
|
<template> |
||||||
|
<div class="scroll-wrapper" ref="wrapper" @scroll="scroll"> |
||||||
|
<div class="scroll-content"> |
||||||
|
<slot></slot> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</template> |
||||||
|
<script> |
||||||
|
export default { |
||||||
|
name: "Scroll", |
||||||
|
props: { |
||||||
|
fixedHeight: { |
||||||
|
type: Number, |
||||||
|
default: -1 |
||||||
|
} |
||||||
|
}, |
||||||
|
data() { |
||||||
|
return {} |
||||||
|
}, |
||||||
|
computed: {}, |
||||||
|
created() { |
||||||
|
}, |
||||||
|
methods: { |
||||||
|
async scroll() { |
||||||
|
let wrapper = this.$refs.wrapper |
||||||
|
if (this.fixedHeight !== -1) { |
||||||
|
this.$emit('fixed', this.fixedHeight < wrapper.scrollTop) |
||||||
|
} |
||||||
|
if (wrapper.scrollHeight - wrapper.clientHeight < wrapper.scrollTop + 60) { |
||||||
|
this.$emit('pulldown') |
||||||
|
} |
||||||
|
}, |
||||||
|
} |
||||||
|
} |
||||||
|
</script> |
||||||
|
|
||||||
|
<style scoped lang="less"> |
||||||
|
@import "../assets/scss/index"; |
||||||
|
|
||||||
|
.scroll-wrapper { |
||||||
|
overflow: auto; |
||||||
|
} |
||||||
|
</style> |
@ -1,8 +1,8 @@ |
|||||||
export default { |
export default { |
||||||
// baseUrl: 'http://192.168.0.103/index.php/v1',
|
baseUrl: 'http://192.168.0.105/index.php/v1', |
||||||
// filePreview:'http://192.168.0.103/static/uploads/',
|
filePreview:'http://192.168.0.105/static/uploads/', |
||||||
baseUrl: 'http://192.168.10.164/index.php/v1', |
// baseUrl: 'http://192.168.10.164/index.php/v1',
|
||||||
filePreview:'http://192.168.10.164/static/uploads/' |
// filePreview:'http://192.168.10.164/static/uploads/'
|
||||||
// baseUrl: 'http://localhost/index.php/v1',
|
// baseUrl: 'http://localhost/index.php/v1',
|
||||||
// filePreview:'http://localhost/static/uploads/'
|
// filePreview:'http://localhost/static/uploads/'
|
||||||
} |
} |