Skip to content

Commit

Permalink
fix(col): fix lacking props named tag (element-plus#1264)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan2128 authored Jan 13, 2021
1 parent ae264ac commit 4b6cf25
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/col/src/col.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ type SizeObject = {
const ElCol = defineComponent({
name: 'ElCol',
props: {
tag: {
type: String,
default: 'div',
},
span: {
type: Number,
default: 24,
Expand Down Expand Up @@ -85,7 +89,7 @@ const ElCol = defineComponent({
})

return () => h(
'div',
props.tag,
{
class: ['el-col', classList.value],
style: style.value,
Expand Down

0 comments on commit 4b6cf25

Please sign in to comment.