diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2025-10-05 15:48:11 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-05 15:48:11 +0900 |
| commit | 720c6519cdca2b2c969cb5d8ce2de0145005b432 (patch) | |
| tree | 6a72acfb95453c5bc1e038aaac7da3ca53ce6878 /packages/frontend/src/pages/explore.users.vue | |
| parent | Update CHANGELOG with new features and enhancements (diff) | |
| download | misskey-720c6519cdca2b2c969cb5d8ce2de0145005b432.tar.gz misskey-720c6519cdca2b2c969cb5d8ce2de0145005b432.tar.bz2 misskey-720c6519cdca2b2c969cb5d8ce2de0145005b432.zip | |
refactor(frontend): MkTabの指定をpropsから行うように (#16596)
* refactor(frontend): MkTabの指定をpropsから行うように
* Update explore.featured.vue
Diffstat (limited to 'packages/frontend/src/pages/explore.users.vue')
| -rw-r--r-- | packages/frontend/src/pages/explore.users.vue | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/packages/frontend/src/pages/explore.users.vue b/packages/frontend/src/pages/explore.users.vue index 08f9f5e582..4e3fb16b5a 100644 --- a/packages/frontend/src/pages/explore.users.vue +++ b/packages/frontend/src/pages/explore.users.vue @@ -5,9 +5,15 @@ SPDX-License-Identifier: AGPL-3.0-only <template> <div class="_spacer" style="--MI_SPACER-w: 1200px;"> - <MkTab v-if="instance.federation !== 'none'" v-model="origin" style="margin-bottom: var(--MI-margin);"> - <option value="local">{{ i18n.ts.local }}</option> - <option value="remote">{{ i18n.ts.remote }}</option> + <MkTab + v-if="instance.federation !== 'none'" + v-model="origin" + :tabs="[ + { key: 'local', label: i18n.ts.local }, + { key: 'remote', label: i18n.ts.remote }, + ]" + style="margin-bottom: var(--MI-margin);" + > </MkTab> <div v-if="origin === 'local'"> <template v-if="tag == null"> @@ -77,7 +83,7 @@ const props = defineProps<{ tag?: string; }>(); -const origin = ref('local'); +const origin = ref<'local' | 'remote'>('local'); const tagsLocal = ref<Misskey.entities.Hashtag[]>([]); const tagsRemote = ref<Misskey.entities.Hashtag[]>([]); |