refactor(client): use composition api
This commit is contained in:
parent
82854236f3
commit
f02ed78a20
@ -6,31 +6,23 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts" setup>
|
||||||
import { defineComponent } from 'vue';
|
|
||||||
import XNotes from '@/components/notes.vue';
|
import XNotes from '@/components/notes.vue';
|
||||||
import * as os from '@/os';
|
|
||||||
import * as symbols from '@/symbols';
|
import * as symbols from '@/symbols';
|
||||||
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
export default defineComponent({
|
const pagination = {
|
||||||
components: {
|
endpoint: 'i/favorites',
|
||||||
XNotes
|
limit: 10,
|
||||||
},
|
params: () => ({
|
||||||
|
})
|
||||||
|
};
|
||||||
|
|
||||||
data() {
|
defineExpose({
|
||||||
return {
|
[symbols.PAGE_INFO]: {
|
||||||
[symbols.PAGE_INFO]: {
|
title: i18n.locale.favorites,
|
||||||
title: this.$ts.favorites,
|
icon: 'fas fa-star',
|
||||||
icon: 'fas fa-star',
|
bg: 'var(--bg)',
|
||||||
bg: 'var(--bg)',
|
|
||||||
},
|
|
||||||
pagination: {
|
|
||||||
endpoint: 'i/favorites',
|
|
||||||
limit: 10,
|
|
||||||
params: () => ({
|
|
||||||
})
|
|
||||||
},
|
|
||||||
};
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user