| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <template>
- <div>
- <h3>线程栈</h3>
- {{displayNow}}
- <div class="j-container">
- <template v-if="threadStack !== null">
- <v-btn v-for="item of threadStack" :key="item.methodName" block text :color="item.fresh ? 'red' : 'black'"
- @click="handleClickDetail(item)">
- <div class="button-text">{{item.methodName}}</div>
- <v-icon v-if="item === displayNow" color="blue" right>mdi-arrow-left</v-icon>
- </v-btn>
- </template>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: 'JThread',
- props: {
- threadStack: {
- type: Array,
- default: () => []
- },
- displayNow: {
- type: Object,
- default: () => ({})
- }
- },
- methods: {
- handleClickDetail (detail) {
- this.$emit('click-detail', detail)
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- @import "common.scss";
- </style>
|