refactor: pipeline edit view

This commit is contained in:
xiaojunnuo
2022-10-26 09:02:47 +08:00
parent af919c2f6e
commit 370a28c10e
48 changed files with 1606 additions and 3 deletions
@@ -0,0 +1,3 @@
import { AbstractRegistrable } from "../registry";
export abstract class AbstractAccess extends AbstractRegistrable {}
@@ -0,0 +1,5 @@
import { AbstractAccess } from "./abstract-access";
export interface IAccessService {
getById(id: any): AbstractAccess;
}
+13
View File
@@ -0,0 +1,13 @@
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;
};
}
@@ -0,0 +1,21 @@
import { IsAccess } from "../api";
import { AbstractAccess } from "../abstract-access";
@IsAccess({
name: "aliyun",
title: "阿里云授权",
desc: "",
input: {
accessKeyId: {
component: {
placeholder: "accessKeyId",
},
//required: true,
//rules: [{ required: true, message: "必填项" }],
},
},
})
export class AliyunAccess extends AbstractAccess {
accessKeyId = "";
accessKeySecret = "";
}
@@ -0,0 +1 @@
export * from "./aliyun-access";
@@ -0,0 +1,3 @@
export * from "./api";
export * from "./impl";
export * from "./abstract-access";