init
This commit is contained in:
12
uni_modules/nutui-uni/components/table/renderColumn.ts
Normal file
12
uni_modules/nutui-uni/components/table/renderColumn.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { PropType } from 'vue'
|
||||
import { defineComponent, h } from 'vue'
|
||||
|
||||
export default defineComponent({
|
||||
props: {
|
||||
slots: Array as PropType<Array<() => void | undefined>>,
|
||||
record: Object,
|
||||
},
|
||||
setup(props: any) {
|
||||
return () => h('view', {}, props.slots[0] ? props.slots[0](props.record) : props.slots[1](props.record))
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user