update 迁移table和modal-form组件,迁移app管理
This commit is contained in:
@@ -16,4 +16,29 @@ export const numberToChinese = (val) => {
|
||||
|
||||
const chinanum = overWan ? getWan(overWan) + '万' + getWan(noWan) : getWan(num)
|
||||
return chinanum
|
||||
}
|
||||
|
||||
/**
|
||||
* 下划线转驼峰
|
||||
* @param {String} str
|
||||
*/
|
||||
export const toCamelCase = (str) => {
|
||||
if (typeof str === 'string') {
|
||||
return str.toLowerCase().split('_').map((p, i) => {
|
||||
if (i > 0) {
|
||||
return p[0].toUpperCase() + p.slice(1)
|
||||
} else {
|
||||
return p
|
||||
}
|
||||
}).join('')
|
||||
}
|
||||
return str
|
||||
}
|
||||
|
||||
/**
|
||||
* 驼峰转下划线
|
||||
* @param {String} str
|
||||
*/
|
||||
export const toUnderScoreCase = (str) => {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user