给商品选择框下面增加20条的提示

This commit is contained in:
季圣华
2023-05-03 23:07:37 +08:00
parent 8c3a10b392
commit 747d743838

View File

@@ -4,6 +4,12 @@
<a-select placeholder="输入条码或名称" :dropdownMatchSelectWidth="false" showSearch :showArrow="false" <a-select placeholder="输入条码或名称" :dropdownMatchSelectWidth="false" showSearch :showArrow="false"
v-model="names" optionFilterProp="children" :style="searchWidth" v-model="names" optionFilterProp="children" :style="searchWidth"
@search="handleSearch" @change="handleChange"> @search="handleSearch" @change="handleChange">
<div slot="dropdownRender" slot-scope="menu">
<v-nodes :vnodes="menu" />
<a-divider v-if="materialData.length===20" style="margin: 4px 0;" />
<div v-if="materialData.length===20" style="padding: 4px 8px; cursor: pointer;"
@mousedown="e => e.preventDefault()">此处最多显示20条如需更多请点击放大镜查询</div>
</div>
<a-select-option v-for="item in materialData" :key="item.barCode"> <a-select-option v-for="item in materialData" :key="item.barCode">
{{ item.materialStr }} {{ item.materialStr }}
</a-select-option> </a-select-option>
@@ -27,7 +33,13 @@
export default { export default {
name: 'JSelectList', name: 'JSelectList',
components: {JSelectMaterialModal, JSelectBatchModal, JSelectSnModal, JSelectSnAddModal}, components: {
JSelectMaterialModal, JSelectBatchModal, JSelectSnModal, JSelectSnAddModal,
VNodes: {
functional: true,
render: (h, ctx) => ctx.props.vnodes,
}
},
props: { props: {
value: { value: {
type: String, type: String,