| | |
| | | <template> |
| | | <el-dropdown |
| | | class="p-events-auto dropdown-wrap" |
| | | class="p-events-auto" |
| | | trigger="click" |
| | | size="small" |
| | | @command="handleCommand" |
| | |
| | | <el-dropdown-menu> |
| | | <el-dropdown-item |
| | | v-for="(item, index) in toolItem" |
| | | :key="index" |
| | | :key="item.label" |
| | | :command="index" |
| | | > |
| | | <el-button |
| | |
| | | this.value = !this.value; |
| | | toolbox.toggleCoorPicking(this.value); |
| | | } |
| | | }, |
| | | { |
| | | icon: 'fa fa-compass', |
| | | label: '数据标记', |
| | | value: true, |
| | | click: function () { |
| | | this.value = !this.value; |
| | | // todo 数据标记 |
| | | } |
| | | }, |
| | | { |
| | | icon: 'fa fa-compass', |
| | | label: '数据弹框', |
| | | value: true, |
| | | click: function () { |
| | | this.value = !this.value; |
| | | // todo 数据弹框 |
| | | } |
| | | } |
| | | // { |
| | | // icon: 'fa fa-compass', |
| | | // label: '数据标记', |
| | | // value: true, |
| | | // click: function () { |
| | | // this.value = !this.value; |
| | | // // todo 数据标记 |
| | | // } |
| | | // }, |
| | | // { |
| | | // icon: 'fa fa-compass', |
| | | // label: '数据弹框', |
| | | // value: true, |
| | | // click: function () { |
| | | // this.value = !this.value; |
| | | // // todo 数据弹框 |
| | | // } |
| | | // } |
| | | ] |
| | | }; |
| | | }, |
| | |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .dropdown-wrap { |
| | | position: absolute; |
| | | top: 10px; |
| | | left: 2px; |
| | | } |
| | | |
| | | .el-button { |
| | | margin: initial !important; |
| | | } |