mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-05 09:27:34 +08:00
refactor: migrate placeholders to IconPark
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="base-placeholder">
|
||||
<i :class="['base-placeholder-icon', icon]" />
|
||||
<component :is="icon" class="base-placeholder-icon" theme="outline" size="48" />
|
||||
<div class="base-placeholder-text">
|
||||
<slot>{{ text }}</slot>
|
||||
</div>
|
||||
@@ -12,7 +12,7 @@ export default {
|
||||
name: 'BasePlaceholder',
|
||||
props: {
|
||||
text: { type: String, default: '' },
|
||||
icon: { type: String, default: 'fas fa-inbox' },
|
||||
icon: { type: String, default: 'Inbox' },
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="user-list">
|
||||
<BasePlaceholder v-if="users.length === 0" text="暂无用户" icon="fas fa-inbox" />
|
||||
<BasePlaceholder v-if="users.length === 0" text="暂无用户" icon="Inbox" />
|
||||
<div v-for="u in users" :key="u.id" class="user-item" @click="handleUserClick(u)">
|
||||
<BaseImage :src="u.avatar" alt="avatar" class="user-avatar" />
|
||||
<div class="user-info">
|
||||
|
||||
Reference in New Issue
Block a user