mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 02:46:52 +08:00
fix(web): fix svg unrecognized props (#631)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user