From 016bdb2795c5d6f9b51e02b0479717c9f465f1e7 Mon Sep 17 00:00:00 2001 From: Kagol Date: Tue, 2 Apr 2024 16:16:14 +0800 Subject: [PATCH] docs(date-picker): [date-picker] fix format docs (#1522) --- .../sites/src/views/components/components.vue | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/examples/sites/src/views/components/components.vue b/examples/sites/src/views/components/components.vue index 44b16af65..ad5ffb8e5 100644 --- a/examples/sites/src/views/components/components.vue +++ b/examples/sites/src/views/components/components.vue @@ -62,8 +62,8 @@ {{ i18nByKey('name') }} - {{ i18nByKey('propType') }} - {{ i18nByKey('defValue') }} + {{ i18nByKey('propType') }} + {{ i18nByKey('defValue') }} {{ i18nByKey('desc') }} @@ -81,7 +81,7 @@ > - + - + @@ -412,6 +419,8 @@ export default defineComponent({ common.renderFooter() }) + const hasKey = (apiArr, key) => !apiArr.every((item) => item[key] === undefined) + return { ...toRefs(state), ...fn, @@ -419,7 +428,8 @@ export default defineComponent({ anchorRefreshKey, apiModeState, templateModeState, - optionsList + optionsList, + hasKey } } })