feat: 线条交换方向

This commit is contained in:
zxc 2024-07-29 22:14:34 +08:00
parent 331a20b9bd
commit ef78bec3d9
2 changed files with 9 additions and 0 deletions

View File

@ -122,6 +122,7 @@ import {
Info,
Comment,
User,
Switch,
} from '@icon-park/vue-next'
export interface Icons {
@ -249,6 +250,7 @@ export const icons: Icons = {
IconInfo: Info,
IconComment: Comment,
IconUser: User,
IconSwitch: Switch,
}
export default {

View File

@ -60,6 +60,12 @@
/>
</div>
<Divider />
<div class="row">
<Button style="flex: 1;" @click="updateLine({ start: handleLineElement.end, end: handleLineElement.start })"><IconSwitch /> 交换方向</Button>
</div>
<Divider />
<ElementShadow />
</div>
@ -73,6 +79,7 @@ import type { PPTLineElement } from '@/types/slides'
import useHistorySnapshot from '@/hooks/useHistorySnapshot'
import ElementShadow from '../common/ElementShadow.vue'
import Button from '@/components/Button.vue'
import ColorButton from '../common/ColorButton.vue'
import ColorPicker from '@/components/ColorPicker/index.vue'
import Divider from '@/components/Divider.vue'