Browse Source

feat: table cancel sticky

main
xuziqiang 3 months ago
parent
commit
e16ad610e7
  1. 5
      lib/saas/view/service/list-table.vue

5
lib/saas/view/service/list-table.vue

@ -70,6 +70,7 @@
// } // }
return formConfig; return formConfig;
}); });
const getBindValue = computed(() => ({ const getBindValue = computed(() => ({
...attrs, ...attrs,
...props, ...props,
@ -80,7 +81,7 @@
sticky: sticky:
props.sticky === false props.sticky === false
? false ? false
: { offsetHeader: props.headerActions.length === 0 && !props.title ? 0 : 89 }, : { offsetHeader: props.headerActions.length === 0 && !props.title ? 0 : 0 },
})); }));
if (formConfig) { if (formConfig) {
@ -129,7 +130,7 @@
// border-top: 16px solid #e5ebf0; // border-top: 16px solid #e5ebf0;
} }
.ns-table-header { .ns-table-header {
position: sticky; // position: sticky;
z-index: 3; z-index: 3;
top: 0; top: 0;
left: 0; left: 0;

Loading…
Cancel
Save