chore: initialize qiming workspace repository

This commit is contained in:
Codex
2026-05-29 14:22:48 +08:00
commit bfd67a0f2c
10750 changed files with 1885711 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
export const commonProps = {
bgColor: {
type: String,
default: '#fff'
},
customStyle: {
type: Object,
default: () => ({})
}
}
export const str2px = str => {
if (!str) return 0
str = String(str)
if (str.endsWith('rpx')) return uni.upx2px(parseInt(str))
if (str.endsWith('px')) return parseInt(str)
return parseInt(str)
}