feat: 分组管理

This commit is contained in:
xuziqiang
2024-05-29 16:29:22 +08:00
parent f7ebb4bd60
commit 4614c8699f
14 changed files with 584 additions and 157 deletions

View File

@@ -110,7 +110,7 @@
font-size: 16px;
font-weight: bold;
line-height: 24px;
padding: 32px 0 24px 0;
padding: 16px 0;
}
.ns-child-form-divider {
margin: 8px 0 0 0;

View File

@@ -99,7 +99,7 @@
const formItemProps = computed(() => {
const {
schema: { field, rules, label, component, autoLink, formItemProps, extra },
schema: { field, rules, label, component, autoLink, formItemProps, extra, style },
} = props;
const tableComponent = ['nsTable'];
let nsClass = '';
@@ -111,6 +111,7 @@
label: label,
autoLink: autoLink || true,
extra: extra,
style,
...formItemProps,
...validateRef.value,
};

View File

@@ -1,5 +1,3 @@
import type { RuleObject } from 'ant-design-vue/es/form/interface';
declare global {
type Rule = RuleObject & {
@@ -33,5 +31,7 @@ declare global {
class?: String; //添加额外样式
autoSubmit: Boolean; //是否操作后提交表单
format: Function;
extra: string;
style: Object;
}
}