Skip to content

Commit 19b9f19

Browse files
author
xuqingkai
committed
fix: 🐛 修复Cell组件单独使用时设置border无效的问题
1 parent 9a68c47 commit 19b9f19

File tree

1 file changed

+2
-1
lines changed
  • src/uni_modules/wot-design-uni/components/wd-cell

1 file changed

+2
-1
lines changed

src/uni_modules/wot-design-uni/components/wd-cell/wd-cell.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,15 @@ import { useCell } from '../composables/useCell'
6363
import { useParent } from '../composables/useParent'
6464
import { FORM_KEY } from '../wd-form/types'
6565
import { cellProps } from './types'
66+
import { isDef } from '../common/util'
6667
6768
const props = defineProps(cellProps)
6869
const emit = defineEmits(['click'])
6970
7071
const cell = useCell()
7172
7273
const isBorder = computed(() => {
73-
return cell.border.value
74+
return isDef(cell.border.value) ? cell.border.value : props.border
7475
})
7576
7677
const { parent: form } = useParent(FORM_KEY)

0 commit comments

Comments
 (0)