<template>
	<Col :span="span" class='ks-field-item'>
		<slot />
	</Col>
</template>
<script>
// 禁止属性透传到根组件
export default {
	inheritAttrs: false,
};
</script>
<script setup>
import { ref, inject} from 'vue';
import { Row, Col } from '@king-design/vue';
// 接收父组件传参
const gColSpan = inject('gColSpan',24);
const props = defineProps({
	iColSpan: [Number, String],
});
const span = ref(props.iColSpan || gColSpan);
</script>
<style lang="less" scoped>
.ks-field-item {
  margin-bottom: 25px;
}
</style>
