From 369aee6292c84bee96e02d8f79372436b94d5f55 Mon Sep 17 00:00:00 2001
From: "C.Y.Kun" <30518686+emojiiii@users.noreply.github.com>
Date: Tue, 28 Dec 2021 08:51:44 +0800
Subject: [PATCH] feat(components): [ElCheckboxGroup] add Fragment (#4743)
---
.../checkbox/__tests__/checkbox.spec.ts | 15 ++++++++++
.../checkbox/src/checkbox-group.vue | 29 +++++++++++++------
2 files changed, 35 insertions(+), 9 deletions(-)
diff --git a/packages/components/checkbox/__tests__/checkbox.spec.ts b/packages/components/checkbox/__tests__/checkbox.spec.ts
index 63281bc441..325da6c355 100644
--- a/packages/components/checkbox/__tests__/checkbox.spec.ts
+++ b/packages/components/checkbox/__tests__/checkbox.spec.ts
@@ -308,6 +308,21 @@ describe('check-button', () => {
).toEqual('#ff0000')
})
+ test('button group tag', () => {
+ const wrapper = _mount(
+ `
+
+
+
+
+
+
+ `,
+ () => ({ checkList: ['a', 'b'] })
+ )
+ expect(wrapper.find('tr').classes('el-checkbox-group')).toBeTruthy()
+ })
+
test('button group min and max', async () => {
const wrapper = _mount(
`
diff --git a/packages/components/checkbox/src/checkbox-group.vue b/packages/components/checkbox/src/checkbox-group.vue
index fe0618d6b6..031eb0c45a 100644
--- a/packages/components/checkbox/src/checkbox-group.vue
+++ b/packages/components/checkbox/src/checkbox-group.vue
@@ -1,9 +1,3 @@
-
-
-
-
-
-