diff --git a/src/utils/UploadAndCut.tsx b/src/utils/UploadAndCut.tsx index 205e421..9696307 100644 --- a/src/utils/UploadAndCut.tsx +++ b/src/utils/UploadAndCut.tsx @@ -4,11 +4,10 @@ import { VueCropper } from 'vue-cropper' import 'vue-cropper/dist/index.css' import upload from './upload' import { v4 as uuid } from "uuid" -import { MdCroprotateRound } from "oh-vue-icons/icons"; -import { OhVueIcon, addIcons } from 'oh-vue-icons' +import { MdCroprotateRound, BiPlusLg } from "oh-vue-icons/icons"; +import { OhVueIcon, addIcons, } from 'oh-vue-icons' import NativeColorPicker from './NativeColorPicker' - -addIcons(MdCroprotateRound) +addIcons(MdCroprotateRound, BiPlusLg) export default defineComponent({ @@ -62,15 +61,15 @@ export default defineComponent({ watch( fillColor, (e: string) => { - const elements = document.querySelectorAll('.cropper-crop-box') - elements.forEach((element: any) => { - element.style.backgroundColor = e // 修改颜色为蓝色 - }) + const elements = document.querySelectorAll('.cropper-crop-box') + elements.forEach((element: any) => { + element.style.backgroundColor = e // 修改颜色为蓝色 + }) }, { - immediate: true + immediate: true } - ) + ) return () => ( <>
@@ -138,7 +137,7 @@ export default defineComponent({
- fillColor.value = e} transparent={true}/> + fillColor.value = e} transparent={true} /> {/* {props.colorList && (
-
{ inputRef.value?.click?.() }} > +