chore: 🔨 移除无用的 ThemeColorPicker 组件

This commit is contained in:
Ray.Hao
2025-03-16 22:49:24 +08:00
parent 00e686e7a7
commit 6204deb7cb
2 changed files with 0 additions and 41 deletions

View File

@@ -1,40 +0,0 @@
<template>
<el-color-picker
v-model="currentColor"
:predefine="colorPresets"
popper-class="theme-picker-dropdown"
/>
</template>
<script lang="ts" setup>
const props = defineProps({
modelValue: String,
});
const emit = defineEmits(["update:modelValue"]);
// 主题颜色预设
const colorPresets = [
"#4080FF",
"#ff4500",
"#ff8c00",
"#90ee90",
"#00ced1",
"#1e90ff",
"#c71585",
"rgb(255, 120, 0)",
"hsva(120, 40, 94)",
];
const currentColor = ref(props.modelValue);
watch(currentColor, (newValue) => {
emit("update:modelValue", newValue);
});
</script>
<style scoped>
:deep(.theme-picker-dropdown) {
z-index: 99999 !important;
}
</style>

View File

@@ -90,7 +90,6 @@ declare module "vue" {
SizeSelect: (typeof import("./../components/SizeSelect/index.vue"))["default"];
TableSelect: (typeof import("./../components/TableSelect/index.vue"))["default"];
TagsView: (typeof import("./../layout/components/TagsView/index.vue"))["default"];
ThemeColorPicker: (typeof import("./../layout/components/Settings/components/ThemeColorPicker.vue"))["default"];
WangEditor: (typeof import("./../components/WangEditor/index.vue"))["default"];
}
export interface ComponentCustomProperties {