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

View File

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