diff --git a/components/wyb-drop-down/wyb-drop-down.vue b/components/wyb-drop-down/wyb-drop-down.vue index 86d8471..9ff3080 100644 --- a/components/wyb-drop-down/wyb-drop-down.vue +++ b/components/wyb-drop-down/wyb-drop-down.vue @@ -11,83 +11,84 @@ :style="{ zIndex: zIndex, backgroundColor: bgColor.header}"> - - + + {{item.header}} + + + + + + {{item.header}} - - - + zIndex: zIndex - 1, + fontSize: fontSize.content + 'rpx', + backgroundColor: bgColor.content, + borderBottomLeftRadius: radius + 'px', + borderBottomRightRadius: radius + 'px', + minHeight: minHeight + 'rpx', + height: autoHeight ? 'auto' : minHeight + 'rpx', + maxHeight: autoHeight && maxHeight ? maxHeight + 'rpx' : 'auto'}"> + + + + + + + {{content}} + + + + + + - - - - - - - - - {{content}} - - - - - - - - + {{item.name}} {{item.subName}} + + + + 暂无数据 + + @@ -94,6 +101,10 @@ export default{ this.getListData(option.id) }, methods:{ + getContent(val){ + this.catagoryName = val; + this.getListData(this.catagoryId) + }, searchHandle(){ this.getListData(this.catagoryId) }, @@ -160,7 +171,6 @@ export default{ } .searchBox{ position:relative; - border:1px solid red; } .withSearch{ position:absolute; @@ -223,4 +233,12 @@ export default{ color: #0076F6 !important; } } +.nodata{ + margin-top:200rpx; + text-align: center; + image{ + width:30%; + height:auto; + } +} \ No newline at end of file diff --git a/static/nodata.png b/static/nodata.png new file mode 100644 index 0000000..26f1624 Binary files /dev/null and b/static/nodata.png differ