view.jsx 456 B

12345678910
  1. import { h, withDirectives } from 'vue'
  2. import textareaDirectives from '@cip/components/directives/textarea'
  3. import { formInputViewProps, useFormView } from '@cip/components/helper/form-input'
  4. export default {
  5. props: formInputViewProps,
  6. setup (props) {
  7. const { width, inputStyle } = useFormView(props)
  8. return () => withDirectives(h('div', { style: { ...inputStyle.value, width: width.value } }), [[textareaDirectives, props.modelValue]])
  9. }
  10. }