mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 01:41:20 +08:00
30 lines
490 B
Vue
30 lines
490 B
Vue
<template>
|
|
<div :class="classes">
|
|
<slot />
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent, computed } from 'vue'
|
|
import { buildProps } from '@element-plus/utils/props'
|
|
|
|
const spaceItem = buildProps({
|
|
prefixCls: {
|
|
type: String,
|
|
default: 'el-space',
|
|
},
|
|
} as const)
|
|
|
|
export default defineComponent({
|
|
props: spaceItem,
|
|
|
|
setup(props) {
|
|
const classes = computed(() => [`${props.prefixCls}__item`])
|
|
|
|
return {
|
|
classes,
|
|
}
|
|
},
|
|
})
|
|
</script>
|