view.jsx 329 B

1234567891011
  1. import { formInputViewProps } from '../../form-input-props'
  2. import { useFormView } from '../../../hooks/form-input'
  3. export default {
  4. props: formInputViewProps,
  5. setup (props) {
  6. const { proxyOtherValue } = useFormView(props)
  7. return () => (
  8. <span>{proxyOtherValue[0]?.value || props.modelValue}</span>
  9. )
  10. }
  11. }