Skip to content

Commit

Permalink
perf: 增加警告,修复一些样式错乱问题
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Jun 18, 2024
1 parent 7e483e6 commit fd54c2f
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 32 deletions.
22 changes: 11 additions & 11 deletions packages/ui/certd-client/src/plugin/fast-crud/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ function install(app: App, options: any = {}) {
view: { type: "link", text: null, icon: "ion:eye-outline" },
copy: { show: true, type: "link", text: null, icon: "ion:copy-outline" },
edit: { type: "link", text: null, icon: "ion:create-outline" },
copy: {show:true,type: "link", text: null, icon: "ion:copy-outline"},
remove: { type: "link", style: { color: "red" }, text: null, icon: "ion:trash-outline" }
},
dropdown: {
Expand Down Expand Up @@ -126,16 +125,17 @@ function install(app: App, options: any = {}) {
}
},
columns: {
createdAt: {
title: "创建时间",
type: "datetime",
form: {
show: false
},
column: {
order: 1000
}
}
// createdAt: {
// title: "创建时间",
// type: "datetime",
// form: {
// show: false
// },
// column: {
// show: false,
// order: 1000
// }
// }
}
};

Expand Down
4 changes: 3 additions & 1 deletion packages/ui/certd-client/src/style/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ h1, h2, h3, h4, h5, h6 {
.mt-10{
margin-top:10px;
}

.mb-10{
margin-bottom: 10px;
}
.m-10{
margin:10px;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<a-drawer v-model:open="stepDrawerVisible" placement="right" :closable="true" width="600px" @after-open-change="stepDrawerOnAfterVisibleChange">
<template #title>
编辑任务
编辑步骤
<a-button v-if="editMode" @click="stepDelete()">
<template #icon><DeleteOutlined /></template>
</a-button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ import _ from "lodash-es";
import { nanoid } from "nanoid";
import PiStepForm from "../step-form/index.vue";
import { message, Modal } from "ant-design-vue";
import {CopyOutlined} from "@ant-design/icons-vue";
import { CopyOutlined } from "@ant-design/icons-vue";
export default {
name: "PiTaskForm",
components: {CopyOutlined, PiStepForm },
components: { CopyOutlined, PiStepForm },
props: {
editMode: {
type: Boolean,
Expand All @@ -88,7 +88,7 @@ export default {
const stepFormRef: Ref<any> = ref(null);
const currentStepIndex = ref(0);
provide("currentStepIndex", currentStepIndex);
const stepAdd = (task: any,stepDef:any) => {
const stepAdd = (task: any, stepDef: any) => {
currentStepIndex.value = task.steps.length;
stepFormRef.value.stepAdd((type: any, value: any) => {
if (type === "save") {
Expand All @@ -97,14 +97,14 @@ export default {
task.title = value.title;
}
}
},stepDef);
}, stepDef);
};
const stepCopy = (task: any, step: any, stepIndex: any) => {
step = _.cloneDeep(step)
step.id = nanoid()
step.title = step.title +"_copy"
stepAdd(task,step)
step = _.cloneDeep(step);
step.id = nanoid();
step.title = step.title + "_copy";
stepAdd(task, step);
};
const stepEdit = (task: any, step: any, stepIndex: any) => {
currentStepIndex.value = stepIndex;
Expand Down Expand Up @@ -135,7 +135,7 @@ export default {
});
};
return { stepAdd, stepEdit,stepCopy, stepDelete, stepFormRef };
return { stepAdd, stepEdit, stepCopy, stepDelete, stepFormRef };
}
/**
Expand Down Expand Up @@ -177,10 +177,10 @@ export default {
taskDrawerShow();
};
const taskAdd = (emit: any,taskMerge:any) => {
const taskAdd = (emit: any, taskMerge: any) => {
mode.value = "add";
const blankTask = { id: nanoid(), title: "新任务", steps: [], status: null }
const task: any = _.merge(blankTask,taskMerge) ;
const blankTask = { id: nanoid(), title: "新任务", steps: [], status: null };
const task: any = _.merge(blankTask, taskMerge);
taskOpen(task, emit);
};
Expand Down Expand Up @@ -234,7 +234,7 @@ export default {
taskSave,
taskDelete,
rules,
blankFn,
blankFn
};
}
return {
Expand All @@ -252,5 +252,8 @@ export default {
.steps {
margin: 0 50px 0 50px;
}
.ant-list .ant-list-item .ant-list-item-meta .ant-list-item-meta-title {
margin: 0;
}
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
<div class="title-line">Certd v{{ version }}</div>
</div>
<p class="d2-page-cover__sub-title">让你的证书永不过期</p>
<div class="warnning">
<a-alert description="证书和授权信息为敏感信息,不要使用来历不明的在线CertD服务,请务必私有化部署使用,认准官方版本发布渠道【github、gitee】" type="warning" show-icon />
</div>
<div class="content">
<img src="/images/preview.png" class="preview_img" />
</div>
<div class="footer_box">
<div class="left"></div>
<div class="right">
<div>如果觉得好用,请不要吝啬你的star哟!</div>
<a href="https://gitee.com/certd/certd" target="_blank"><img src="https://gitee.com/certd/certd/badge/star.svg?theme=dark" alt="star" /></a>
<a href="https://github.com/certd/certd" target="_blank"><img alt="GitHub stars" src="https://img.shields.io/github/stars/certd/certd?logo=github" /></a>
</div>
<div>如果觉得好用,请不要吝啬你的star哟!</div>
<a href="https://gitee.com/certd/certd" target="_blank"><img src="https://gitee.com/certd/certd/badge/star.svg?theme=dark" alt="star" /></a>
<a href="https://github.com/certd/certd" target="_blank"><img alt="GitHub stars" src="https://img.shields.io/github/stars/certd/certd?logo=github" /></a>
</div>
</div>
</template>
Expand Down

0 comments on commit fd54c2f

Please sign in to comment.