Skip to content

Commit

Permalink
fix: table new element column style (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
maharshivpatel authored Apr 9, 2024
2 parents 3b60df9 + a4fe377 commit 0458486
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,20 @@ const handleDblClick = (table, column) => {
const handleMenuClick = (index, action) => {
switch (action) {
case "before":
columns.value.splice(index, 0, { id: index, label: "" });
columns.value.splice(index, 0, {
id: index,
label: "",
style: {},
applyStyleToHeader: false,
});
break;
case "after":
columns.value.splice(index + 1, 0, { id: index + 1, label: "" });
columns.value.splice(index + 1, 0, {
id: index + 1,
label: "",
style: {},
applyStyleToHeader: false,
});
break;
case "delete":
columns.value.splice(index, 1)[0].dynamicContent?.forEach((el) => {
Expand Down

0 comments on commit 0458486

Please sign in to comment.