From f5d577c4f8344159edc15084578c87f8a4d35824 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Tue, 23 Jul 2024 16:26:34 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/directive/v-bind/Foo-composition.uvue | 46 +++++++++---------- pages/directive/v-bind/Foo-options.uvue | 13 +++--- .../directive/v-bind/v-bind-composition.uvue | 6 +-- pages/directive/v-bind/v-bind-options.uvue | 6 +-- .../throw-error/throw-error-composition.uvue | 4 +- .../throw-error/throw-error-options.uvue | 4 +- 6 files changed, 36 insertions(+), 43 deletions(-) diff --git a/pages/directive/v-bind/Foo-composition.uvue b/pages/directive/v-bind/Foo-composition.uvue index 02aca22..f7f006f 100644 --- a/pages/directive/v-bind/Foo-composition.uvue +++ b/pages/directive/v-bind/Foo-composition.uvue @@ -16,28 +16,26 @@ + + defineProps({ + title: { + type: String, + default: '' + }, + num: { + type: Number, + default: 0 + }, + checked: { + type: Boolean, + default: false + }, + obj: { + type: FooPropsObj, + required: true + } + }) + \ No newline at end of file diff --git a/pages/directive/v-bind/Foo-options.uvue b/pages/directive/v-bind/Foo-options.uvue index 3fadbf8..ab4304a 100644 --- a/pages/directive/v-bind/Foo-options.uvue +++ b/pages/directive/v-bind/Foo-options.uvue @@ -15,7 +15,11 @@ -