fix(col): fix lacking props named tag (#1264)

This commit is contained in:
Ryan2128 2021-01-13 00:07:24 -06:00 committed by GitHub
parent ae264ac4c5
commit 4b6cf25722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,10 @@ type SizeObject = {
const ElCol = defineComponent({ const ElCol = defineComponent({
name: 'ElCol', name: 'ElCol',
props: { props: {
tag: {
type: String,
default: 'div',
},
span: { span: {
type: Number, type: Number,
default: 24, default: 24,
@ -85,7 +89,7 @@ const ElCol = defineComponent({
}) })
return () => h( return () => h(
'div', props.tag,
{ {
class: ['el-col', classList.value], class: ['el-col', classList.value],
style: style.value, style: style.value,