(filter: string[], className: string | undefined)
| 7 | } |
| 8 | |
| 9 | function filterCn(filter: string[], className: string | undefined) { |
| 10 | const split: string[] = className?.split(' ') || []; |
| 11 | return split |
| 12 | .filter((item) => !filter.some((filterItem) => item.startsWith(filterItem))) |
| 13 | .join(' '); |
| 14 | } |
| 15 | |
| 16 | export function Dot({ className, size = 8, animated }: DotProps) { |
| 17 | const style = { |