Merge pull request #10260 from dataease/pr@dev-v2_st

fix(仪表板): 明细表的分页,可以自定义输入跳转到多少页 #9672
This commit is contained in:
dataeaseShu 2024-06-13 17:26:37 +08:00 committed by GitHub
commit 4bfcbf79fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 28 additions and 5 deletions

View File

@ -464,8 +464,16 @@ const autoHeightStyle = computed(() => {
})
const tabStyle = computed(() => [
{ '--de-pager-color': canvasStyleData.value.component.seniorStyleSetting.pagerColor }
{ '--de-pager-color': canvasStyleData.value.component.seniorStyleSetting?.pagerColor }
])
const tablePageClass = computed(() => {
return (
['#ffffff', '#A6A6A6FF'].includes(
canvasStyleData.value.component.seniorStyleSetting?.pagerColor
) && 'table-page-info_dark'
)
})
</script>
<template>
@ -481,7 +489,7 @@ const tabStyle = computed(() => [
<div style="position: relative; height: 100%" :id="containerId"></div>
</div>
<el-row :style="autoStyle" v-if="showPage && !isError">
<div class="table-page-info" :style="tabStyle">
<div class="table-page-info" :class="tablePageClass" :style="tabStyle">
<div>{{ state.pageInfo.total }}</div>
<el-pagination
v-if="state.pageStyle !== 'general'"
@ -525,7 +533,13 @@ const tabStyle = computed(() => [
overflow: hidden;
}
}
.table-page-info_dark {
--ed-fill-color-blank: #00000000;
}
.table-page-info {
--ed-text-color-regular: var(--de-pager-color);
position: relative;
padding-left: 4px;
margin: 4px;

View File

@ -1462,7 +1462,7 @@ const getDsIconName = data => {
</div>
<div class="preview-data">
<el-table
v-loading="dataPreviewLoading"
v-loading="datasetPreviewLoading"
header-class="header-cell"
:data="tableData"
border
@ -1473,7 +1473,7 @@ const getDsIconName = data => {
v-for="(column, index) in columns"
:prop="column.dataKey"
:label="column.title"
:width="columns.length - 1 === index ? 150 : auto"
:width="columns.length - 1 === index ? 150 : 'auto'"
:fixed="columns.length - 1 === index ? 'right' : false"
>
<template #header>
@ -1955,6 +1955,11 @@ const getDsIconName = data => {
<style lang="less" scoped>
@import '@/style/mixin.less';
.ed-table {
--ed-table-header-bg-color: #f5f6f7;
}
.de-dataset-form {
color: #1f2329;
.top {

View File

@ -790,7 +790,7 @@ const getMenuList = (val: boolean) => {
v-for="(column, index) in columns"
:prop="column.dataKey"
:label="column.title"
:width="columns.length - 1 === index ? 150 : auto"
:width="columns.length - 1 === index ? 150 : 'auto'"
:fixed="columns.length - 1 === index ? 'right' : false"
>
<template #header>
@ -846,6 +846,10 @@ const getMenuList = (val: boolean) => {
<style lang="less" scoped>
@import '@/style/mixin.less';
.ed-table {
--ed-table-header-bg-color: #f5f6f7;
}
.filter-icon-span {
border: 1px solid #bbbfc4;
width: 32px;