feat: 更新批量编辑工具栏和模态组件的主题样式,优化颜色配置以支持主题化样式
This commit is contained in:
parent
b088f7236e
commit
d7e5477b5a
@ -26,11 +26,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { MapPen } from '@api/map';
|
|
||||||
import BatchEditModal from '@common/modal/batch-edit-modal.vue';
|
|
||||||
import { computed, inject, type InjectionKey, ref, type ShallowRef } from 'vue';
|
import { computed, inject, type InjectionKey, ref, type ShallowRef } from 'vue';
|
||||||
|
|
||||||
|
import type { MapPen } from '../apis/map';
|
||||||
import type { EditorService } from '../services/editor.service';
|
import type { EditorService } from '../services/editor.service';
|
||||||
|
import BatchEditModal from './modal/batch-edit-modal.vue';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
token: InjectionKey<ShallowRef<EditorService>>;
|
token: InjectionKey<ShallowRef<EditorService>>;
|
||||||
@ -71,16 +71,26 @@ defineOptions({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
@use '../assets/themes/theme' as theme;
|
||||||
|
|
||||||
.batch-edit-toolbar {
|
.batch-edit-toolbar {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 80px;
|
top: 80px;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
background: rgba(255, 255, 255, 0.95);
|
|
||||||
padding: 12px 16px;
|
padding: 12px 16px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
||||||
backdrop-filter: blur(8px);
|
backdrop-filter: blur(8px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 主题样式
|
||||||
|
@include theme.themed {
|
||||||
|
.batch-edit-toolbar {
|
||||||
|
background: theme.get-color(bg_modal);
|
||||||
|
border: 1px solid theme.get-color(border1);
|
||||||
|
box-shadow: 0 4px 12px theme.get-color(shadow1);
|
||||||
|
color: theme.get-color(text1);
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -299,6 +299,8 @@ defineOptions({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
@use '../../assets/themes/theme' as theme;
|
||||||
|
|
||||||
.batch-edit-content {
|
.batch-edit-content {
|
||||||
.selection-info {
|
.selection-info {
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
@ -307,12 +309,10 @@ defineOptions({
|
|||||||
.edit-section {
|
.edit-section {
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
background: #fafafa;
|
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
margin: 0 0 12px 0;
|
margin: 0 0 12px 0;
|
||||||
color: #1890ff;
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -320,7 +320,6 @@ defineOptions({
|
|||||||
.preview-section {
|
.preview-section {
|
||||||
h4 {
|
h4 {
|
||||||
margin: 0 0 12px 0;
|
margin: 0 0 12px 0;
|
||||||
color: #52c41a;
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -333,8 +332,6 @@ defineOptions({
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 6px 10px;
|
padding: 6px 10px;
|
||||||
margin-bottom: 6px;
|
margin-bottom: 6px;
|
||||||
background: #fff;
|
|
||||||
border: 1px solid #d9d9d9;
|
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
|
||||||
@ -345,7 +342,6 @@ defineOptions({
|
|||||||
}
|
}
|
||||||
|
|
||||||
.item-type {
|
.item-type {
|
||||||
color: #666;
|
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
min-width: 100px;
|
min-width: 100px;
|
||||||
}
|
}
|
||||||
@ -363,4 +359,35 @@ defineOptions({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 主题样式
|
||||||
|
@include theme.themed {
|
||||||
|
.batch-edit-content {
|
||||||
|
.edit-section {
|
||||||
|
background: theme.get-color(fill3);
|
||||||
|
border: 1px solid theme.get-color(border2);
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
color: theme.get-color(primary);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.preview-section {
|
||||||
|
h4 {
|
||||||
|
color: theme.get-color(success);
|
||||||
|
}
|
||||||
|
|
||||||
|
.preview-list {
|
||||||
|
.preview-item {
|
||||||
|
background: theme.get-color(bg_component);
|
||||||
|
border: 1px solid theme.get-color(border1);
|
||||||
|
|
||||||
|
.item-type {
|
||||||
|
color: theme.get-color(text3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user