form.js 483 B

1234567891011121314151617181920
  1. import { getParent } from '../utils'
  2. export default {
  3. computed: {
  4. $form() {
  5. return getParent.call(this, "ClForm", [
  6. "labelWidth",
  7. "labelPosition",
  8. "showMessage",
  9. "model",
  10. "validateOnValueChange",
  11. "disabled"
  12. ]);
  13. },
  14. isDisabled() {
  15. return this.$form ? (this.$form.disabled || this.disabled) : this.disabled
  16. }
  17. }
  18. }