<template>
  <my-modal v-model:open="visible" title="新增用户">
    <qm-low-form :params="params" :fields="fields" :label-width="80">
    </qm-low-form>
  </my-modal>
</template>
<script name="AddUserDialog" lang="ts" setup>
import { ref } from "vue";
const visible = defineModel();

//todo 入参名
const params = ref({
  a: "1",
  b: "",
  c: "",
});
const fields = ref([
  {
    prop: "a",
    label: "角色",
    colSpan: 24,
    type: "radio",
    attrs: {
      options: [
        { label: "管理员", value: "1" },
        { label: "审核员", value: "2" },
      ],
    },
  },
  {
    prop: "b",
    label: "账号",
    colSpan: 24,
  },
  {
    prop: "c",
    label: "初始密码",
    colSpan: 24,
  },
]);
</script>
<style lang="less" scoped></style>
