@opensig/opendesign
Version:
<p align="center"><img src="../docs/public/opendesign-logo-light.png"/></p> <h1 align="center">opendesign</h1> <p align="center">一个 Vue 3 组件库</p> <p align="center"><b>皮肤可定制,使用 TypeScript</b></p>
103 lines (102 loc) • 1.54 kB
JavaScript
"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const formProps = {
/**
* 表单数据对象
*/
model: {
type: Object
},
/**
* 子项是否包含必选,主要用于控制文本左对齐样式
*/
hasRequired: {
type: Boolean,
default: false
},
/**
* 布局
*/
layout: {
type: String,
default: "h"
},
/**
* 表单项文本垂直对齐方式
*/
labelAlign: {
type: String
},
/**
* 表单项文本水平对齐方式
*/
labelJustify: {
type: String
},
/**
* 表单项文本宽度,全局
*/
labelWidth: {
type: String
}
};
const formItemProps = {
/**
* 表单项在数据对象中的path
*/
field: {
type: String
},
/**
* 是否必选
*/
required: {
type: Boolean,
default: false
},
/**
* 表单项文本
*/
label: {
type: String,
default: void 0
},
/**
* 表单项文本垂直对齐方式
*/
labelAlign: {
type: String
},
/**
* 表单项文本水平对齐方式
*/
labelJustify: {
type: String
},
/**
* 表单项文本宽度
*/
labelWidth: {
type: String
},
/**
* 表单项内容类名
*/
mainClass: {
type: [String, Array]
},
/**
* 表单验证规则
*/
rules: {
type: Array
},
/**
* 表单验证的默认触发事件,在手动检验
*/
defaultTrigger: {
type: String
}
};
exports.formItemProps = formItemProps;
exports.formProps = formProps;