|
@@ -37,7 +37,7 @@
|
|
|
row-key-field-name="no"
|
|
|
:checkbox-option="checkboxOption"
|
|
|
/>
|
|
|
- <div v-show="dataSource.length==0" class="empty-data"><a-empty description="暂无产品" :image="simpleImage"/></div>
|
|
|
+ <div v-show="showEmpty" class="empty-data"><a-empty description="暂无产品" :image="simpleImage"/></div>
|
|
|
</a-spin>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -130,6 +130,8 @@ export default {
|
|
|
} else {
|
|
|
_this.dataSource = []
|
|
|
}
|
|
|
+ _this.showEmpty = _this.dataSource.length <= 0
|
|
|
+ _this.tableHeight = (_this.showEmpty ? 300 : _this.maxHeight) + 'px'
|
|
|
_this.spinning = false
|
|
|
_this.disabled = false
|
|
|
})
|