Skip to content

Commit

Permalink
perf(ui/row): add class (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahqrt authored Apr 4, 2022
1 parent 2d57c82 commit a76fdb0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/varlet-ui/src/row/Row.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div
class="var-row var--box"
:class="classes(n(), 'var--box')"
:style="{
justifyContent: justify,
alignItems: align,
Expand All @@ -19,6 +19,9 @@ import { useCols } from './provide'
import { toPxNum } from '../utils/elements'
import type { ComputedRef } from 'vue'
import type { RowProvider } from './provide'
import { createNamespace } from '../utils/components'
const { n, classes } = createNamespace('row')
export default defineComponent({
name: 'VarRow',
Expand All @@ -44,7 +47,7 @@ export default defineComponent({
bindCols(rowProvider)
return { average }
return { n, classes, average }
},
})
</script>
Expand Down

0 comments on commit a76fdb0

Please sign in to comment.