mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-02-23 17:49:49 +08:00
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:
parent
8e56d5e652
commit
c0d6ce8879
@ -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}`
|
||||
),
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user