mirror of
https://github.com/youzan/vant.git
synced 2026-05-10 01:06:44 +08:00
[improvement] add constant of border (#4078)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { createNamespace } from '../utils';
|
||||
import { inherit } from '../utils/functional';
|
||||
import { BORDER_TOP_BOTTOM } from '../utils/constant';
|
||||
|
||||
// Types
|
||||
import { CreateElement, RenderContext } from 'vue/types';
|
||||
@@ -20,7 +21,7 @@ function CellGroup(
|
||||
) {
|
||||
const Group = (
|
||||
<div
|
||||
class={[bem(), { 'van-hairline--top-bottom': props.border }]}
|
||||
class={[bem(), { [BORDER_TOP_BOTTOM]: props.border }]}
|
||||
{...inherit(ctx, true)}
|
||||
>
|
||||
{slots.default && slots.default()}
|
||||
|
||||
Reference in New Issue
Block a user