feat: Add table node with default class attribute
This commit is contained in:
parent
d338a674e2
commit
d815c98a23
@ -51,6 +51,16 @@ const nodes = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
table: {
|
||||||
|
...defaultNodes.table,
|
||||||
|
attributes: {
|
||||||
|
...defaultNodes.table.attributes,
|
||||||
|
class: {
|
||||||
|
type: String,
|
||||||
|
default: "block max-w-full overflow-x-auto border-collapse text-sm",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
th: {
|
th: {
|
||||||
...defaultNodes.th,
|
...defaultNodes.th,
|
||||||
attributes: {
|
attributes: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user