From 4b6cf25722f62a6e711c2da8a5f5395d10b0ddc0 Mon Sep 17 00:00:00 2001 From: Ryan2128 <33176053+Ryan2128@users.noreply.github.com> Date: Wed, 13 Jan 2021 00:07:24 -0600 Subject: [PATCH] fix(col): fix lacking props named tag (#1264) --- packages/col/src/col.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/col/src/col.ts b/packages/col/src/col.ts index 0dea778840..76fabff42e 100644 --- a/packages/col/src/col.ts +++ b/packages/col/src/col.ts @@ -8,6 +8,10 @@ type SizeObject = { const ElCol = defineComponent({ name: 'ElCol', props: { + tag: { + type: String, + default: 'div', + }, span: { type: Number, default: 24, @@ -85,7 +89,7 @@ const ElCol = defineComponent({ }) return () => h( - 'div', + props.tag, { class: ['el-col', classList.value], style: style.value,