智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
LightingSystemApp-serial/.svn/pristine/1d/1d3fe9817109d4044886288e2df...

22 lines
601 B

import {
camelize
} from 'uni-shared'
export function parseExternalClasses (externalClasses, vueComponentOptions) {
if (!externalClasses) {
return
}
if (!Array.isArray(externalClasses)) {
externalClasses = [externalClasses]
}
vueComponentOptions.mpOptions.externalClasses = externalClasses
if (!vueComponentOptions.mpOptions.properties) {
vueComponentOptions.mpOptions.properties = Object.create(null)
}
externalClasses.forEach(externalClass => {
vueComponentOptions.mpOptions.properties[camelize(externalClass)] = {
type: String,
value: ''
}
})
}