uu
This commit is contained in:
parent
71f048ac5e
commit
70fd6fda1b
@ -171,7 +171,7 @@
|
|||||||
return this.$store.getters.dicData
|
return this.$store.getters.dicData
|
||||||
},
|
},
|
||||||
goodsSearchParam() {
|
goodsSearchParam() {
|
||||||
return { goodsName: this.modelInfo.goodsName }
|
return { goodsName: this.modelInfo.goodsName || '' }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<scroll-view :scroll-y="true" @scrolltolower="onScrollBottom()" style="height: 100%;">
|
<scroll-view :scroll-y="true" @scrolltolower="onScrollBottom()" :style="customStyle">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
|
|
||||||
<!-- 加载更多 -->
|
<!-- 加载更多 -->
|
||||||
@ -41,6 +41,15 @@
|
|||||||
deep: true
|
deep: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
customStyle() {
|
||||||
|
let stl = `height: 100%;`
|
||||||
|
if(this.maxHeight) {
|
||||||
|
stl += `max-height:${this.maxHeight}rpx;`
|
||||||
|
}
|
||||||
|
return stl
|
||||||
|
}
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
searchParam: {
|
searchParam: {
|
||||||
default () {
|
default () {
|
||||||
@ -73,6 +82,11 @@
|
|||||||
default () {
|
default () {
|
||||||
return 'dfl'
|
return 'dfl'
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
maxHeight: {
|
||||||
|
default () {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view v-if="mode == modeEnum.drop && show" class="md-drop-cont">
|
<view v-if="mode == modeEnum.drop && show" class="md-drop-cont">
|
||||||
<tpx-scroll-view :resObject="filResObject" :searchParam="searchParam" :getListFun="getListFun" size="sm" :showLoadedAll="false" @onListChange="onListChange">
|
<tpx-scroll-view :maxHeight="dropMaxHeight" :resObject="filResObject" :searchParam="searchParam" :getListFun="getListFun" size="sm" :showLoadedAll="false" @onListChange="onListChange">
|
||||||
<content-items :value="value" :list="filDataList" :minChecked="minChecked" :type="type"
|
<content-items :value="value" :list="filDataList" :minChecked="minChecked" :type="type"
|
||||||
@onChange="handleDataItemChange"
|
@onChange="handleDataItemChange"
|
||||||
></content-items>
|
></content-items>
|
||||||
@ -97,6 +97,11 @@
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
dropMaxHeight: {
|
||||||
|
default () {
|
||||||
|
return 600
|
||||||
|
}
|
||||||
|
},
|
||||||
list: {
|
list: {
|
||||||
default () {
|
default () {
|
||||||
return []
|
return []
|
||||||
@ -174,8 +179,6 @@
|
|||||||
top: calc(100% + 8px);
|
top: calc(100% + 8px);
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
max-height: 600rpx;
|
|
||||||
overflow: auto;
|
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user