fix: update review

This commit is contained in:
zazzaz 2020-08-12 22:51:51 +08:00 committed by jeremywu
parent d7f871ec7b
commit 6c3c6a03a8
2 changed files with 17 additions and 5 deletions

View File

@ -14,7 +14,7 @@ export default {
setup(props) {
const instance = getCurrentInstance()
const thumb = ref(null)
const wrap = inject('scroll-bar-wrap', {}) as Ref
const wrap = inject('scroll-bar-wrap', {} as Ref<Nullable<HTMLElement>>)
const bar = computed(() => {
return BAR_MAP[props.vertical ? 'vertical' : 'horizontal']
})

View File

@ -12,10 +12,22 @@ export default {
props: {
native: Boolean,
wrapStyle: {},
wrapClass: {},
viewClass: {},
viewStyle: {},
wrapStyle: {
type: [String, Array],
default: '',
},
wrapClass: {
type: [String, Array],
default: '',
},
viewClass: {
type: [String, Array],
default: '',
},
viewStyle: {
type: [String, Array],
default: '',
},
noresize: Boolean, // 如果 container 尺寸不会发生变化,最好设置它可以优化性能
tag: {
type: String,