更新:登录功能
This commit is contained in:
13
uni_modules/wot-design-uni/components/composables/useCell.ts
Normal file
13
uni_modules/wot-design-uni/components/composables/useCell.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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 }
|
||||
}
|
||||
Reference in New Issue
Block a user