refactor(arco/Table): rollback table's slot name

Because this is a breaking change, the name will remain content for now until the upgrade tool is
implemented
This commit is contained in:
xzdry 2022-09-09 09:39:52 +08:00
parent 8e56d5e652
commit c0d6ce8879

View File

@ -172,7 +172,7 @@ export const Table = implementRuntimeComponent({
state: TableStateSpec,
methods: {},
slots: {
td: {
content: {
slotProps: Type.Object({
[LIST_ITEM_EXP]: Type.Any(),
[LIST_ITEM_INDEX_EXP]: Type.Number(),
@ -439,7 +439,7 @@ export const Table = implementRuntimeComponent({
/**
* FIXME: temporary hack
*/
slotsElements.td?.(
slotsElements.content?.(
{
[LIST_ITEM_EXP]: record,
[LIST_ITEM_INDEX_EXP]: index,
@ -461,7 +461,7 @@ export const Table = implementRuntimeComponent({
renderSet: new Set(),
slotKey: formatSlotKey(
component.id,
'td',
'content',
`${childSchema.id}_${index}`
),
}}