form-input-props.js 813 B

12345678910111213141516171819202122232425262728293031323334353637
  1. const commonAttrProps = {
  2. fieldKey: {},
  3. modelValue: {},
  4. otherValue: {},
  5. values: { type: Array, default: () => [] },
  6. dependOnValues: Object,
  7. outDependOnValues: Object,
  8. disabled: Boolean,
  9. showTemplate: {
  10. type: Boolean,
  11. default: false
  12. },
  13. // model: {},
  14. changeCount: {},
  15. onStatusChange: {},
  16. config: {
  17. type: Object,
  18. default: () => ({})
  19. },
  20. usingRules: Boolean,
  21. rules: Array,
  22. // 防止attr隐式贯穿导致的继承问题
  23. error: {},
  24. id: {},
  25. tableData: {}, // table子组件特有属性
  26. onSearch: {} // 供CipSearchForm使用
  27. }
  28. export const formInputProps = {
  29. ...commonAttrProps
  30. }
  31. // 不下发也会自动通过attrs下发...
  32. export const formInputViewProps = {
  33. ...commonAttrProps
  34. }
  35. export const fromInputEmits = ['streamUpdate:model', 'update:modelValue']