mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 16:37:18 +08:00
fix: delete trim() in utils/operate/index.ts
This commit is contained in:
parent
ba41753d77
commit
f44804538c
@ -3,7 +3,7 @@ export const hasClass = (ele: Element, cls: string): any => {
|
||||
}
|
||||
|
||||
export const addClass = (ele: Element, cls: string, extracls?: string): any => {
|
||||
if (!hasClass(ele, cls)) ele.className += (' ' + cls).trim()
|
||||
if (!hasClass(ele, cls)) ele.className += (' ' + cls)
|
||||
if (extracls) {
|
||||
if (!hasClass(ele, extracls)) ele.className += ' ' + extracls
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user