<template>
  <el-form :model="model" :rules="rules" ref="formDefalut" label-position="top" :class="['ps-form', 'ps-form-col-' + col]">
    <slot></slot>
  </el-form>
</template>

<script>
export default {
  name: "PsForm",
  props: {
    col: {
      type: Number,
      default: 1
    },
    rules: {
      type: Object,
      default: () => { },
    },
    model: {
      type: Object,
      default: () => { },
    },
  },
  data() {
    return {

    };
  },
  created() {

  },
  mounted() {
  },
  methods: {
    validate(...params) {
      return this.$refs.formDefalut.validate(...params)
    },
    validateField(...params) {
      return this.$refs.formDefalut.validateField(...params)
    },
    resetFields(...params) {
      return this.$refs.formDefalut.resetFields(...params)
    },
    clearValidate(...params) {
      return this.$refs.formDefalut.clearValidate(...params)
    }
  },
};
</script>

<style></style>
