feat:修改表格的底层样式
This commit is contained in:
@@ -43,7 +43,7 @@ setupVbenVxeTable({
|
|||||||
vxeUI.setConfig({
|
vxeUI.setConfig({
|
||||||
grid: {
|
grid: {
|
||||||
align: 'center',
|
align: 'center',
|
||||||
border: false,
|
border: true,
|
||||||
columnConfig: {
|
columnConfig: {
|
||||||
resizable: true,
|
resizable: true,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -334,7 +334,7 @@ export function useGridColumns(): VxeTableGridOptions<WmsIostorInvApi.IostorInv>
|
|||||||
{
|
{
|
||||||
field: 'billCode',
|
field: 'billCode',
|
||||||
title: '单据编号',
|
title: '单据编号',
|
||||||
minWidth: 120,
|
minWidth: 150,
|
||||||
slots: { default: 'billCode' },
|
slots: { default: 'billCode' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Page auto-content-height class="iostorinv-page">
|
<Page auto-content-height>
|
||||||
<FormModal @success="handleRefresh" />
|
<FormModal @success="handleRefresh" />
|
||||||
<AllocationModal @success="handleRefresh" />
|
<AllocationModal @success="handleRefresh" />
|
||||||
<DetailModal />
|
<DetailModal />
|
||||||
@@ -216,23 +216,3 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
</Grid>
|
</Grid>
|
||||||
</Page>
|
</Page>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.iostorinv-page :deep(.vxe-cell--checkbox .vxe-checkbox--icon) {
|
|
||||||
color: #2563eb;
|
|
||||||
filter: drop-shadow(0 0 1px rgb(255 255 255 / 90%));
|
|
||||||
}
|
|
||||||
|
|
||||||
.iostorinv-page
|
|
||||||
:deep(.vxe-body--row.row--hover .vxe-cell--checkbox .vxe-checkbox--icon),
|
|
||||||
.iostorinv-page
|
|
||||||
:deep(.vxe-body--row.row--current .vxe-cell--checkbox .vxe-checkbox--icon) {
|
|
||||||
color: #1d4ed8;
|
|
||||||
filter: drop-shadow(0 0 2px #fff);
|
|
||||||
}
|
|
||||||
|
|
||||||
.iostorinv-page :deep(.vxe-cell--checkbox.is--checked .vxe-checkbox--icon),
|
|
||||||
.iostorinv-page :deep(.vxe-cell--checkbox.is--indeterminate .vxe-checkbox--icon) {
|
|
||||||
color: #1d4ed8;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
@@ -56,6 +56,33 @@
|
|||||||
/* --vxe-ui-table-fixed-scrolling-box-shadow-color: rgb(0 0 0 / 80%); */
|
/* --vxe-ui-table-fixed-scrolling-box-shadow-color: rgb(0 0 0 / 80%); */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 全局提高表格复选框对比度。默认边框使用主题主色,在悬浮行、当前行及
|
||||||
|
* 勾选行中增加背景色描边,避免复选框与高亮行背景混在一起。
|
||||||
|
*/
|
||||||
|
.vxe-grid .vxe-cell--checkbox:not(.is--disabled) .vxe-checkbox--icon {
|
||||||
|
color: var(--vxe-ui-font-primary-color);
|
||||||
|
filter: drop-shadow(
|
||||||
|
0 0 1px var(--vxe-ui-layout-background-color)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
.vxe-grid
|
||||||
|
.vxe-body--row:is(.row--hover, .row--current, .row--checked)
|
||||||
|
.vxe-cell--checkbox:not(.is--disabled)
|
||||||
|
.vxe-checkbox--icon {
|
||||||
|
color: var(--vxe-ui-font-primary-darken-color);
|
||||||
|
filter: drop-shadow(
|
||||||
|
0 0 2px var(--vxe-ui-layout-background-color)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
.vxe-grid
|
||||||
|
.vxe-cell--checkbox:is(.is--checked, .is--indeterminate):not(.is--disabled)
|
||||||
|
.vxe-checkbox--icon {
|
||||||
|
color: var(--vxe-ui-font-primary-darken-color);
|
||||||
|
}
|
||||||
|
|
||||||
.vxe-pager {
|
.vxe-pager {
|
||||||
.vxe-pager--prev-btn:not(.is--disabled):active,
|
.vxe-pager--prev-btn:not(.is--disabled):active,
|
||||||
.vxe-pager--next-btn:not(.is--disabled):active,
|
.vxe-pager--next-btn:not(.is--disabled):active,
|
||||||
|
|||||||
Reference in New Issue
Block a user