mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +08:00
fix(col): fix lacking props named tag (#1264)
This commit is contained in:
parent
ae264ac4c5
commit
4b6cf25722
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user