Files
taimed-international-app/uni_modules/wot-design-uni/components/composables/useCell.ts
2025-11-04 12:37:04 +08:00

14 lines
346 B
TypeScript

import { computed } from 'vue'
import { useParent } from './useParent'
import { CELL_GROUP_KEY } from '../wd-cell-group/types'
export function useCell() {
const { parent: cellGroup, index } = useParent(CELL_GROUP_KEY)
const border = computed(() => {
return cellGroup && cellGroup.props.border && index.value
})
return { border }
}