/** * border-radius 规则 */ import { UNIT_STR, NONNEGATIVE_NUMBER_REGEX_STR } from '../constant'; export default { regExp: new RegExp(`^(border-radius|br)-(?${NONNEGATIVE_NUMBER_REGEX_STR})(?${UNIT_STR})?$`), render: function ({ grops }) { const { num, unit } = grops; return { name: 'borderRadius', num, css: [`border-radius: ${num}${unit}`] } } }