mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
perf: 上传到主机插件支持复制到本机路径
This commit is contained in:
@@ -10,3 +10,23 @@
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.cd-icon-button{
|
||||
display: inline-flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.cd-flex{
|
||||
display: flex;
|
||||
justify-content: left;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.cd-flex-inline{
|
||||
display: inline-flex;
|
||||
justify-content: left;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
|
||||
@@ -55,6 +55,10 @@ h1, h2, h3, h4, h5, h6 {
|
||||
margin-left:5px;
|
||||
}
|
||||
|
||||
.mr-5{
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.mt-10{
|
||||
margin-top:10px;
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
||||
}
|
||||
},
|
||||
rowHandle: {
|
||||
width: "150px"
|
||||
width: "180px"
|
||||
},
|
||||
table: {
|
||||
rowSelection: {
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<template>
|
||||
<div class="pi-access-selector">
|
||||
<span v-if="target.name" class="mlr-5">{{ target.name }}</span>
|
||||
<span v-if="target.name" class="mr-5 cd-flex-inline">
|
||||
<span class="mr-5">{{ target.name }}</span>
|
||||
<fs-icon class="cd-icon-button" icon="ion:close-circle-outline" @click="clear"></fs-icon>
|
||||
</span>
|
||||
<span v-else class="mlr-5 gray">请选择</span>
|
||||
<a-button @click="chooseForm.open">选择</a-button>
|
||||
<a-form-item-rest v-if="chooseForm.show">
|
||||
@@ -42,6 +45,13 @@ export default defineComponent({
|
||||
target.value = await api.GetObj(value);
|
||||
}
|
||||
}
|
||||
|
||||
function clear(){
|
||||
selectedId.value = "";
|
||||
target.value = null
|
||||
ctx.emit("update:modelValue", selectedId.value);
|
||||
}
|
||||
|
||||
watch(
|
||||
() => {
|
||||
return props.modelValue;
|
||||
@@ -89,7 +99,9 @@ export default defineComponent({
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
return {
|
||||
clear,
|
||||
target,
|
||||
selectedId,
|
||||
providerDefine,
|
||||
|
||||
Reference in New Issue
Block a user