|
@@ -6,7 +6,7 @@
|
|
</view>
|
|
</view>
|
|
<view v-if="showOptions" class="u-dropdown-select-mask" :style="{ 'top': offsetTop +'px' }" @click="showOptions = false"></view>
|
|
<view v-if="showOptions" class="u-dropdown-select-mask" :style="{ 'top': offsetTop +'px' }" @click="showOptions = false"></view>
|
|
<view v-if="showOptions" class="u-dropdown-panel" :style="{ 'top': offsetTop +'px' }">
|
|
<view v-if="showOptions" class="u-dropdown-panel" :style="{ 'top': offsetTop +'px' }">
|
|
- <view class="u-dropdown-tabs">
|
|
|
|
|
|
+ <view v-if="tabs.length" class="u-dropdown-tabs">
|
|
<u-tabs :active.sync="tabActive" :tabs="tabs" tab-style="tag" @change="tabChange"/>
|
|
<u-tabs :active.sync="tabActive" :tabs="tabs" tab-style="tag" @change="tabChange"/>
|
|
</view>
|
|
</view>
|
|
<view class="u-dropdown-options">
|
|
<view class="u-dropdown-options">
|
|
@@ -126,7 +126,7 @@
|
|
if (option.tab) {
|
|
if (option.tab) {
|
|
this.label = option.tab.label + ' / ' + option.item.label
|
|
this.label = option.tab.label + ' / ' + option.item.label
|
|
} else {
|
|
} else {
|
|
- this.label = option.item.label
|
|
|
|
|
|
+ this.label = option.label
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
this.label = ''
|
|
this.label = ''
|
|
@@ -183,6 +183,13 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
cleanListActive() {
|
|
cleanListActive() {
|
|
|
|
+ if (this.tabs && this.tabs.length) {
|
|
|
|
+ for (const tab of this.tabs) {
|
|
|
|
+ tab.children.forEach(item => {
|
|
|
|
+ this.$set(item, 'active', false)
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
this.list.forEach(item => {
|
|
this.list.forEach(item => {
|
|
this.$set(item, 'active', false)
|
|
this.$set(item, 'active', false)
|
|
})
|
|
})
|