From 689e75e10a333411366ab1c48dbd5f70ebee8f42 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 16 Jan 2022 08:49:27 +0900 Subject: [PATCH] wip: refactor(client): migrate components to composition api --- packages/client/src/components/post-form.vue | 8 +- .../src/components/visibility-picker.vue | 81 +++++++++---------- 2 files changed, 40 insertions(+), 49 deletions(-) diff --git a/packages/client/src/components/post-form.vue b/packages/client/src/components/post-form.vue index 7b2f79e389..3fcb1d906b 100644 --- a/packages/client/src/components/post-form.vue +++ b/packages/client/src/components/post-form.vue @@ -384,14 +384,14 @@ function setVisibility() { currentLocalOnly: localOnly, src: visibilityButton, }, { - changeVisibility: visibility => { - visibility = visibility; + changeVisibility: v => { + visibility = v; if (defaultStore.state.rememberNoteVisibility) { defaultStore.set('visibility', visibility); } }, - changeLocalOnly: localOnly => { - localOnly = localOnly; + changeLocalOnly: v => { + localOnly = v; if (defaultStore.state.rememberNoteVisibility) { defaultStore.set('localOnly', localOnly); } diff --git a/packages/client/src/components/visibility-picker.vue b/packages/client/src/components/visibility-picker.vue index 4200f4354e..4b20063a51 100644 --- a/packages/client/src/components/visibility-picker.vue +++ b/packages/client/src/components/visibility-picker.vue @@ -1,28 +1,28 @@ -