view.js 481 B

1234567891011121314151617
  1. import BasicRate from './index'
  2. import { formInputViewProps } from '../../form-input-props'
  3. import { computed } from 'vue'
  4. export default {
  5. props: formInputViewProps,
  6. inheritAttrs: false,
  7. setup (props) {
  8. const viewConfig = computed(() => {
  9. return { ...props.config, showScore: props.config.showScore ?? true }
  10. })
  11. return () => <BasicRate
  12. modelValue={props.modelValue}
  13. config={viewConfig.value}
  14. disabled={true}
  15. />
  16. }
  17. }