File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<!-- 工具箱面板 -->
22<template >
33 <div class =" tools-panel" >
4- <a-button icon =" undo" type =" link" size =" small" :disabled =" undoStack.size() === 0" @click =" handleUndo" >撤回</a-button >
5- <a-button icon =" redo" type =" link" size =" small" :disabled =" redoStack.size() === 0" @click =" handleRedo" >重做</a-button >
6- <a-divider type =" vertical" />
4+ <a-button
5+ v-show =" mode === 'edit'"
6+ icon =" undo"
7+ type =" link"
8+ size =" small"
9+ :disabled =" undoStack.size() === 0"
10+ @click =" handleUndo" >撤回</a-button >
11+ <a-button
12+ v-show =" mode === 'edit'"
13+ icon =" redo"
14+ type =" link"
15+ size =" small"
16+ :disabled =" redoStack.size() === 0"
17+ @click =" handleRedo" >重做</a-button >
18+ <a-divider v-show =" mode === 'edit'" type =" vertical" />
719 <a-button icon =" bulb" type =" link" size =" small" >表单提交</a-button >
820 <a-button icon =" search" type =" link" size =" small" >配置查看</a-button >
921 <a-divider type =" vertical" />
10- <a-button icon =" delete" type =" link" size =" small" @click =" handleClear" >清空</a-button >
11- <a-button icon =" check" type =" link" size =" small" >完成</a-button >
12- <a-divider type =" vertical" />
22+ <a-button
23+ v-show =" mode === 'edit'"
24+ icon =" delete"
25+ type =" link"
26+ size =" small"
27+ @click =" handleClear" >清空</a-button >
28+ <a-button
29+ v-show =" mode === 'edit'"
30+ icon =" check"
31+ type =" link"
32+ size =" small" >完成</a-button >
33+ <a-divider v-show =" mode === 'edit'" type =" vertical" />
1334 <a-button
1435 v-show =" mode === 'preview'"
1536 icon =" eye"
You can’t perform that action at this time.
0 commit comments