样式优化等

This commit is contained in:
吕金泽
2022-01-17 00:26:59 +08:00
parent 90e2d367fd
commit 3a46a3f505
15 changed files with 41 additions and 72 deletions
@@ -27,6 +27,8 @@
</template>
</pd-table-column>
<el-empty :description="emptyText" slot="empty" />
</el-table>
<pagination v-show="total > 0 && page" :total="total || 0" :page.sync="listCurrent" :limit.sync="limit" @pagination="handlerPagination" />
</div>
@@ -88,6 +90,10 @@ export default {
default: () => {
return []
}
},
emptyText: {
type: String,
default: '暂无数据'
}
},
data() {
@@ -5,7 +5,7 @@
<el-button v-if="checked" type="primary" size="mini" icon="el-icon-check" plain @click="() => { treeAllChecked = !treeAllChecked; checkedAll(searchData, treeAllChecked) }">全选/全不选</el-button>
</div>
<div style="margin: 5px 0px;" v-if="search">
<el-input v-model="searchValue" @input="searchTree" style="width: 90%" />
<el-input v-model="searchValue" placeholder="输入关键字进行过滤" @input="searchTree" :style="{ width: searchWidth }" />
</div>
<el-tree
v-if="refreshTree"
@@ -58,6 +58,10 @@ export default {
search: {
type: Boolean,
default: false
},
searchWidth: {
type: String,
default: '230px'
}
},
watch: {