Skip to content

Commit

Permalink
fix(stroke): 修复描边色彩选择器位置
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceLanniste committed Jun 24, 2024
1 parent bdc8892 commit dea86c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/imgStroke.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</div>

<div>
<ColorPicker v-model="strokeColor" @on-change="onColorChange" />
<ColorPicker v-model="strokeColor" @on-change="onColorChange" placement="left" />
</div>
</div>
</template>
Expand All @@ -64,6 +64,7 @@ import useSelect from '@/hooks/select';
import { Slider } from 'view-ui-plus';
import { fabric } from 'fabric';
import { Utils } from '@kuaitu/core';
import { values } from 'lodash-es';
interface IExtendImage {
[x: string]: any;
Expand Down Expand Up @@ -118,6 +119,7 @@ const onSliderChange = (val: number) => {
};
const onColorChange = (val: string) => {
console.log('onColorChnage', val);
strokeColor.value = val;
updateStroke();
};
Expand Down

0 comments on commit dea86c9

Please sign in to comment.