Skip to content

proField 组件

  • 用来统一proForm,proTable的字段

引入

js

import { proField } from "profield";

使用

html

<proField type="text"></proField>

API

参数说明类型默认值
type字段类型ColumnsTypestext
title字段标题string''
ts
// ColumnsTypes 定义
type ColumnsTypes =
  | "text"
  | "number"
  | "money"
  | "dateTime"
  | "date"
  | "time"
  | "dateRange"
  | "dateTimeRange"
  | "textarea"
  | "select"
  | "upload"
  | "YUpload"
  | "switch"
  | "tree"
  | "treeSelect"
  | "password"
  | "cascader";

杨利伟的博客