mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
fix(web): fix svg unrecognized props (#631)
This commit is contained in:
parent
fe747040bc
commit
67d326a558
|
@ -15,6 +15,7 @@ export type Attrs = {
|
|||
export function normalizeAttrs(attrs: Attrs = {}): Attrs {
|
||||
return Object.keys(attrs).reduce((acc: Attrs, key) => {
|
||||
const val = attrs[key]
|
||||
key = key.replace(/([-]\w)/g, (g: string) => g[1].toUpperCase())
|
||||
switch (key) {
|
||||
case 'class':
|
||||
acc.className = val
|
||||
|
|
Loading…
Reference in New Issue
Block a user