mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
15 lines
320 B
JavaScript
15 lines
320 B
JavaScript
/*
|
|
* @Author: Volankey@gmail.com
|
|
* @Company: Tusimple
|
|
* @Date: 2019-10-24 18:07:27
|
|
* @LastEditors: Jiwen.bai
|
|
* @LastEditTime: 2019-10-24 18:07:27
|
|
*/
|
|
export const removeClass = (dom, className) => {
|
|
dom.classList.remove(className)
|
|
}
|
|
|
|
export const addClass = (dom, className) => {
|
|
dom.classList.add(className)
|
|
}
|