{
play = !play;
$emit('update:follow', play);
}
"
/>
(am![prop.attr][ndx].time = time)"
@add="
(item) => {
am![prop.attr].push({...item, id: onlyId()});
$emit('update:active', {
key: prop.attr,
ndx: am![prop.attr].length - 1,
});
}
"
@del="(ndx) => am![prop.attr].splice(ndx, 1)"
:active="prop.attr === active?.key ? am[prop.attr][active.ndx] : undefined"
@update:active="(active: any) => $emit('update:active', active && { key: prop.attr, ndx: am![prop.attr].indexOf(active) })"
/>