mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-26 22:31:21 +00:00
style: 优化前端代码格式和样式顺序
refactor: 调整样式属性顺序以提高可读性 fix: 修复请求异常处理中的错误日志输出 chore: 添加stylelint相关依赖和配置 docs: 更新存储工具类的文档注释
This commit is contained in:
@@ -166,9 +166,9 @@ defineExpose({ setCron });
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.interval-tab-form {
|
||||
width: 100%;
|
||||
flex-wrap: wrap;
|
||||
gap: 16px 8px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.form-item {
|
||||
@@ -177,11 +177,11 @@ defineExpose({ setCron });
|
||||
}
|
||||
|
||||
.form-actions {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
margin-top: 16px;
|
||||
gap: 8px;
|
||||
justify-content: flex-end;
|
||||
width: 100%;
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
// 响应式调整
|
||||
|
||||
@@ -43,20 +43,20 @@ const displayText = computed(() => {
|
||||
|
||||
<style scoped>
|
||||
.json-pretty-wrapper {
|
||||
overflow: auto;
|
||||
border: 1px solid #e5e7eb;
|
||||
padding: 8px;
|
||||
border-radius: 4px;
|
||||
overflow: auto;
|
||||
background-color: var(--el-fill-color-blank);
|
||||
border: 1px solid #e5e7eb;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.json-pretty-fallback {
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
margin: 0;
|
||||
font-family:
|
||||
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
|
||||
monospace;
|
||||
font-size: 12px;
|
||||
word-break: break-all;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -313,34 +313,22 @@ const onError = (error: any) => {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
:deep(.el-upload--picture-card) {
|
||||
position: relative;
|
||||
width: v-bind("props.style.width ?? '150px'");
|
||||
height: v-bind("props.style.height ?? '150px'");
|
||||
|
||||
&:hover {
|
||||
.single-upload__delete-btn {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.single-upload {
|
||||
&__image {
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
&__delete-btn {
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
right: 1px;
|
||||
display: none;
|
||||
font-size: 16px;
|
||||
color: #ff7901;
|
||||
cursor: pointer;
|
||||
background: #fff;
|
||||
border-radius: 100%;
|
||||
display: none;
|
||||
|
||||
&:hover {
|
||||
color: #ff4500;
|
||||
@@ -353,9 +341,21 @@ const onError = (error: any) => {
|
||||
}
|
||||
}
|
||||
|
||||
:deep(.el-upload--picture-card) {
|
||||
position: relative;
|
||||
width: v-bind("props.style.width ?? '150px'");
|
||||
height: v-bind("props.style.height ?? '150px'");
|
||||
|
||||
&:hover {
|
||||
.single-upload__delete-btn {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.el-upload__tip {
|
||||
margin-top: 7px;
|
||||
font-size: 12px;
|
||||
color: #606266;
|
||||
margin-top: 7px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user