view.jsx 359 B

123456789101112
  1. import { computed } from 'vue'
  2. import tableRadio from './index'
  3. import { formInputViewProps } from '../../form-input-props'
  4. export default {
  5. props: formInputViewProps,
  6. setup (props) {
  7. const viewConfig = computed(() => {
  8. return { ...props.config, disabled: true }
  9. })
  10. return () => <tableRadio {...props} config={viewConfig.value} />
  11. }
  12. }