| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <template>
- <div>
- <QueryUnpublishedView />
- </div>
- </template>
- <script setup>
- import { ref } from 'vue'
- import QueryUnpublishedView from './QueryUnpublishedView.vue'
- const emit = defineEmits(['selectTab'])
- const selectedTab = ref('latest')
- const selectTab = (tab) => {
- if (selectedTab.value != tab) {
- selectedTab.value = tab
- emit('selectTab', tab)
- }
- }
- </script>
- <style scoped>
- .tab-switcher {
- display: flex;
- border-radius: 20px;
- border: 1px solid #1e90ff;
- overflow: hidden;
- }
- .tab-switcher div {
- padding: 2px 20px;
- background-color: #f5f5f5;
- cursor: pointer;
- }
- .tab-switcher div.active {
- background-color: #1e90ff;
- color: white;
- }
- .tab-switcher div:not(:last-child) {
- }
- </style>
|