From cf85449b251c0aed5d0fa050f4a91816ddff316b Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Mon, 15 Aug 2022 17:56:13 +0800 Subject: [PATCH] refactor: define props with pure types via a generic type argument Signed-off-by: Ryan Wang --- .../components/src/components/alert/Alert.vue | 30 ++++------ .../src/components/button/Button.vue | 49 ++++++--------- .../components/src/components/card/Card.vue | 14 ++--- .../src/components/checkbox/CheckBox.vue | 26 ++++---- .../src/components/checkbox/CheckBoxGroup.vue | 37 +++++------- .../src/components/codemirror/Codemirror.vue | 33 +++++------ .../src/components/dialog/Dialog.vue | 59 +++++++------------ .../src/components/header/PageHeader.vue | 8 +-- .../components/src/components/input/Input.vue | 29 ++++----- .../components/src/components/menu/Menu.vue | 10 +--- .../src/components/menu/MenuItem.vue | 26 ++++---- .../components/src/components/modal/Modal.vue | 35 +++++------ .../src/components/pagination/Pagination.vue | 28 ++++----- .../components/src/components/radio/Radio.vue | 20 ++----- .../src/components/radio/RadioGroup.vue | 33 ++++------- .../src/components/select/Option.vue | 8 +-- .../src/components/select/Select.vue | 29 ++++----- .../components/src/components/space/Space.vue | 27 ++++----- .../src/components/switch/Switch.vue | 14 +++-- .../src/components/tabs/TabItem.vue | 12 ++-- .../components/src/components/tabs/Tabbar.vue | 41 +++++-------- .../components/src/components/tabs/Tabs.vue | 38 +++++------- .../components/src/components/tag/Tag.vue | 21 ++++--- .../src/components/textarea/Textarea.vue | 28 ++++----- .../AttachmentAliOSSStrategyEditingModal.vue | 14 +++-- .../components/AttachmentDetailModal.vue | 14 +++-- .../AttachmentLocalStrategyEditingModal.vue | 14 +++-- .../components/AttachmentSelectModal.vue | 14 +++-- .../components/AttachmentStrategiesModal.vue | 15 ++--- .../components/AttachmentUploadModal.vue | 14 +++-- .../components/CategoryEditingModal.vue | 21 ++++--- .../posts/components/PostSettingModal.vue | 21 ++++--- .../posts/tags/components/TagEditingModal.vue | 22 ++++--- .../menus/components/MenuEditingModal.vue | 24 ++++---- .../menus/components/MenuItemEditingModal.vue | 24 ++++---- .../menus/components/MenuItemListItem.vue | 15 ++--- .../interface/menus/components/MenuList.vue | 15 ++--- .../themes/components/ThemeInstallModal.vue | 14 +++-- .../themes/components/ThemeListModal.vue | 27 ++++----- .../plugins/components/PluginInstallModal.vue | 14 +++-- .../plugins/components/PluginListItem.vue | 15 ++--- .../roles/components/RoleEditingModal.vue | 24 ++++---- .../users/components/UserEditingModal.vue | 21 ++++--- .../components/UserPasswordChangeModal.vue | 23 ++++---- 44 files changed, 450 insertions(+), 570 deletions(-) diff --git a/packages/components/src/components/alert/Alert.vue b/packages/components/src/components/alert/Alert.vue index 317b69d7..ee56a7f6 100644 --- a/packages/components/src/components/alert/Alert.vue +++ b/packages/components/src/components/alert/Alert.vue @@ -1,5 +1,5 @@