diff --git a/packages/ui/certd-client/src/style/certd.less b/packages/ui/certd-client/src/style/certd.less index eeb601bce..05393d6c5 100644 --- a/packages/ui/certd-client/src/style/certd.less +++ b/packages/ui/certd-client/src/style/certd.less @@ -118,3 +118,16 @@ span.fs-icon-svg { } } + +button.ant-btn.ant-btn-default.isPlus{ + color: #c5913f; + border: 1px solid #c5913f; + + &:disabled { + cursor: not-allowed; + border-color: hsl(240 5.9% 90%); + color: rgba(50, 54, 57, 0.25); + background-color: rgba(50, 54, 57, 0.04); + box-shadow: none; + } +} \ No newline at end of file diff --git a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-form/copy.ts b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-form/copy.ts new file mode 100644 index 000000000..e3eab5346 --- /dev/null +++ b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-form/copy.ts @@ -0,0 +1,39 @@ +import { reactive, ref } from "vue"; + +export class CopyeStore { + type: "step" | "steps" | "task" | "tasks"; + target: any; + + getCopyedCount() { + if (this.type === "step") { + return 1; + } else if (this.type === "steps") { + return this.target.length; + } else if (this.type === "task") { + return 1; + } else if (this.type === "tasks") { + return this.target.length; + } else { + return 0; + } + } + + setStep(target: any) { + this.target = target; + this.type = "step"; + } + setSteps(target: any) { + this.target = target; + this.type = "steps"; + } + setTask(target: any) { + this.target = target; + this.type = "task"; + } + setTasks(target: any) { + this.target = target; + this.type = "tasks"; + } +} + +export const Copyed: any = reactive(new CopyeStore()); diff --git a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-form/index.vue b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-form/index.vue index e144c0097..e73268161 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-form/index.vue +++ b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-form/index.vue @@ -29,7 +29,17 @@ @@ -68,14 +78,15 @@