Browse Source

refactor(product): topic 刷新按钮切换为 button

main
刘凯 1 year ago
parent
commit
cfa2446797
  1. 12
      src/views/product/components/TopicManage.vue

12
src/views/product/components/TopicManage.vue

@ -2,7 +2,7 @@
import { Alert, Segmented } from 'ant-design-vue' import { Alert, Segmented } from 'ant-design-vue'
import { computed, ref, watch } from 'vue' import { computed, ref, watch } from 'vue'
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
import { PlusOutlined } from '@ant-design/icons-vue' import { PlusOutlined, SyncOutlined } from '@ant-design/icons-vue'
import TopicFormModal from './TopicFormModal.vue' import TopicFormModal from './TopicFormModal.vue'
import type { Topic } from '@/api/product/types' import type { Topic } from '@/api/product/types'
import { TopicType } from '@/api/product/types' import { TopicType } from '@/api/product/types'
@ -97,9 +97,13 @@ async function handleDelete(id: string) {
</a-button> </a-button>
<div v-else /> <div v-else />
<div class="mr-10px flex cursor-pointer items-center" @click="() => reload()"> <div class="mr-10px flex cursor-pointer items-center">
<span class="i-ant-design:sync-outlined mr-5px text-20px" /> <a-button size="small" @click="reload">
刷新 <template #icon>
<SyncOutlined />
</template>
刷新
</a-button>
</div> </div>
</div> </div>
<BasicTable :api="async () => ([] as Topic[])" @register="register"> <BasicTable :api="async () => ([] as Topic[])" @register="register">

Loading…
Cancel
Save