Procházet zdrojové kódy

no message

reset-do-picking-order
kelvin.yau před 1 týdnem
rodič
revize
84baa17e9f
1 změnil soubory, kde provedl 11 přidání a 8 odebrání
  1. +11
    -8
      src/app/(main)/chart/delivery/page.tsx

+ 11
- 8
src/app/(main)/chart/delivery/page.tsx Zobrazit soubor

@@ -286,14 +286,17 @@ export default function DeliveryChartPage() {
<TextField {...params} label="員工" placeholder="不選則全部" /> <TextField {...params} label="員工" placeholder="不選則全部" />
)} )}
renderTags={(value, getTagProps) => renderTags={(value, getTagProps) =>
value.map((option, index) => (
<Chip
key={option.staffNo}
label={[option.staffNo, option.name].filter(Boolean).join(" - ")}
size="small"
{...getTagProps({ index })}
/>
))
value.map((option, index) => {
const { key: _key, ...tagProps } = getTagProps({ index });
return (
<Chip
key={option.staffNo}
label={[option.staffNo, option.name].filter(Boolean).join(" - ")}
size="small"
{...tagProps}
/>
);
})
} }
sx={{ minWidth: 260 }} sx={{ minWidth: 260 }}
/> />


Načítá se…
Zrušit
Uložit