mirror of
https://github.com/sim1222/misskey.git
synced 2025-07-07 03:10:18 +09:00
wip: refactor(client): migrate paging components to composition api
This commit is contained in:
@ -65,26 +65,14 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
<script lang="ts" setup>
|
||||
import { computed } from 'vue';
|
||||
import MkButton from '@/components/ui/button.vue';
|
||||
import { defaultStore } from '@/store';
|
||||
|
||||
export default defineComponent({
|
||||
components: {
|
||||
MkButton,
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
tutorial: {
|
||||
get() { return this.$store.reactiveState.tutorial.value || 0; },
|
||||
set(value) { this.$store.set('tutorial', value); }
|
||||
},
|
||||
},
|
||||
const tutorial = computed({
|
||||
get() { return defaultStore.reactiveState.tutorial.value || 0; },
|
||||
set(value) { defaultStore.set('tutorial', value); }
|
||||
});
|
||||
</script>
|
||||
|
||||
|
Reference in New Issue
Block a user