diff --git a/packages/uni-nvue-styler/src/expand/borderColor.ts b/packages/uni-nvue-styler/src/expand/borderColor.ts index 4f670c75a5301ebdcdd01131fe0a08f21eeebffc..cc56816ddae041a5e1a9ac16b52618e3a3dbfeb2 100644 --- a/packages/uni-nvue-styler/src/expand/borderColor.ts +++ b/packages/uni-nvue-styler/src/expand/borderColor.ts @@ -1,4 +1,4 @@ -import { capitalize } from '@vue/shared' +import { capitalize, hyphenate } from '@vue/shared' import { createDecl, TransformDecl } from '../utils' const borderTop = __NODE_JS__ ? 'border-top-' : 'borderTop' @@ -8,7 +8,7 @@ const borderLeft = __NODE_JS__ ? 'border-left-' : 'borderLeft' export const transformBorderColor: TransformDecl = (decl) => { const { prop, value, important, raws, source } = decl - let property = prop.split('-')[1] + let property = hyphenate(prop).split('-')[1] if (!__NODE_JS__) { property = capitalize(property) }