mirror of
https://github.com/certd/certd.git
synced 2026-05-15 12:37:30 +08:00
14 lines
312 B
TypeScript
14 lines
312 B
TypeScript
|
|
import { Registrable } from "../registry";
|
||
|
|
import { FormItemProps } from "@fast-crud/fast-crud";
|
||
|
|
|
||
|
|
export type AccessDefine = Registrable & {
|
||
|
|
input: {
|
||
|
|
[key: string]: FormItemProps;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
export function IsAccess(define: AccessDefine) {
|
||
|
|
return function (target: any) {
|
||
|
|
target.define = define;
|
||
|
|
};
|
||
|
|
}
|