export const commonDefaultProps = { actionType: '', url: '', height: '', width: '', paddingLeft: 0, paddingRight: 0, paddingBottom: 0, paddingTop: 0, borderStyle: 'none', borderColor: '#ddd', borderWidth: 0, borderRadius: 0, boxShadow: '0 0 0 rgba(0,0,0.8)', opacity: 1,}export const textDefaultProps = { text: '', fontSize: 14, fontFamily: '', fontWeight: 'normal', fontStyle: 'normal', textDecoration: 'none', lineHeight: 1, textAlign: 'left', color: '#ddd', backgroundColor: '#fff', ...commonDefaultProps,}
transformCommonProps
export const textStyleProps = Object.keys(textDefaultProps);export const transformToComponentProps = <T extends {[key: string]: any}> => { return mapValues(props, item => { return { type: item.constructor, default: item, } })}