|
@@ -420,8 +420,3 @@ export function toUnderline(str = '') {
|
|
|
export const $ = name => document.querySelector(name)
|
|
|
|
|
|
export const getContainerSize = dom => ({ width: dom.getBoundingClientRect().width, height: dom.getBoundingClientRect().height })
|
|
|
-
|
|
|
-// 驼峰转下划线
|
|
|
-export function toUnderline(str = '') {
|
|
|
- return str.replace(/([A-Z])/g, '_$1').toLowerCase()
|
|
|
-}
|