wip: refactor(client): migrate paging components to composition api
This commit is contained in:
		| @@ -14,20 +14,12 @@ | ||||
| </div> | ||||
| </template> | ||||
|  | ||||
| <script lang="ts"> | ||||
| import { defineComponent } from 'vue'; | ||||
| <script lang="ts" setup> | ||||
| import { } from 'vue'; | ||||
|  | ||||
| export default defineComponent({ | ||||
| 	components: { | ||||
| 	}, | ||||
|  | ||||
| 	props: { | ||||
| 		text: { | ||||
| 			type: String, | ||||
| 			required: true | ||||
| 		} | ||||
| 	}, | ||||
| }); | ||||
| const props = defineProps<{ | ||||
| 	text: string; | ||||
| }>(); | ||||
| </script> | ||||
|  | ||||
| <style lang="scss" scoped> | ||||
|   | ||||
| @@ -16,33 +16,19 @@ | ||||
| </div> | ||||
| </template> | ||||
|  | ||||
| <script lang="ts"> | ||||
| import { defineComponent } from 'vue'; | ||||
| <script lang="ts" setup> | ||||
| import { } from 'vue'; | ||||
| import * as misskey from 'misskey-js'; | ||||
| import XNoteHeader from './note-header.vue'; | ||||
| import MkNoteSubNoteContent from './sub-note-content.vue'; | ||||
| import XCwButton from './cw-button.vue'; | ||||
| import * as os from '@/os'; | ||||
|  | ||||
| export default defineComponent({ | ||||
| 	components: { | ||||
| 		XNoteHeader, | ||||
| 		MkNoteSubNoteContent, | ||||
| 		XCwButton, | ||||
| 	}, | ||||
| const props = defineProps<{ | ||||
| 	note: misskey.entities.Note; | ||||
| 	pinned?: boolean; | ||||
| }>(); | ||||
|  | ||||
| 	props: { | ||||
| 		note: { | ||||
| 			type: Object, | ||||
| 			required: true | ||||
| 		} | ||||
| 	}, | ||||
|  | ||||
| 	data() { | ||||
| 		return { | ||||
| 			showContent: false | ||||
| 		}; | ||||
| 	} | ||||
| }); | ||||
| const showContent = $ref(false); | ||||
| </script> | ||||
|  | ||||
| <style lang="scss" scoped> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo