From 922f83d99cfe0d52f7e7433655eb695a3094da66 Mon Sep 17 00:00:00 2001 From: xingyu Date: Wed, 21 Jun 2023 19:14:34 +0800 Subject: [PATCH] refactor: vue3.3 defineOptions --- src/App.vue | 4 +- src/components/Backtop/src/Backtop.vue | 4 +- .../ConfigGlobal/src/ConfigGlobal.vue | 4 +- .../src/ContentDetailWrap.vue | 4 +- .../ContentWrap/src/ContentWrap.vue | 4 +- src/components/CountTo/src/CountTo.vue | 4 +- src/components/Crontab/src/Crontab.vue | 20 ++-- src/components/Cropper/src/CopperModal.vue | 4 +- src/components/Cropper/src/Cropper.vue | 4 +- src/components/Cropper/src/CropperAvatar.vue | 31 +++--- .../Descriptions/src/Descriptions.vue | 4 +- src/components/Dialog/src/Dialog.vue | 5 +- src/components/DocAlert/index.vue | 6 +- src/components/Echart/src/Echart.vue | 4 +- src/components/Editor/src/Editor.vue | 4 +- src/components/Error/src/Error.vue | 4 +- src/components/IFrame/src/IFrame.vue | 4 +- src/components/Icon/src/Icon.vue | 4 +- src/components/Icon/src/IconSelect.vue | 12 ++- .../ImageViewer/src/ImageViewer.vue | 4 +- src/components/Infotip/src/Infotip.vue | 4 +- .../InputPassword/src/InputPassword.vue | 6 +- src/components/Pagination/index.vue | 4 +- src/components/Qrcode/src/Qrcode.vue | 6 +- src/components/Search/src/Search.vue | 4 +- src/components/Sticky/src/Sticky.vue | 4 +- src/components/Tooltip/src/Tooltip.vue | 4 +- src/components/UploadFile/src/UploadFile.vue | 8 +- src/components/UploadFile/src/UploadImg.vue | 28 +++++- src/components/UploadFile/src/UploadImgs.vue | 12 ++- src/components/Verifition/src/Verify.vue | 94 ++++++++----------- .../Verifition/src/Verify/VerifyPoints.vue | 2 +- .../Verifition/src/Verify/VerifySlide.vue | 2 +- src/components/XButton/src/XButton.vue | 4 +- src/components/XButton/src/XTextButton.vue | 4 +- .../package/designer/ProcessDesigner.vue | 5 +- .../package/designer/ProcessViewer.vue | 6 +- .../package/palette/ProcessPalette.vue | 4 +- .../package/penal/PropertiesPanel.vue | 5 +- .../package/penal/base/ElementBaseInfo.vue | 7 +- .../penal/flow-condition/FlowCondition.vue | 4 +- .../package/penal/form/ElementForm.vue | 4 +- .../penal/listeners/ElementListeners.vue | 5 +- .../penal/listeners/UserTaskListeners.vue | 5 +- .../multi-instance/ElementMultiInstance.vue | 4 +- .../penal/other/ElementOtherConfig.vue | 3 +- .../penal/properties/ElementProperties.vue | 12 ++- .../penal/signal-message/SignalAndMessage.vue | 10 +- .../package/penal/task/ElementTask.vue | 4 +- .../task/task-components/ReceiveTask.vue | 3 +- .../penal/task/task-components/ScriptTask.vue | 3 +- .../penal/task/task-components/UserTask.vue | 3 +- src/layout/components/AppView.vue | 4 +- .../components/Collapse/src/Collapse.vue | 4 +- .../ContextMenu/src/ContextMenu.vue | 4 +- src/layout/components/Footer/src/Footer.vue | 4 +- .../LocaleDropdown/src/LocaleDropdown.vue | 4 +- src/layout/components/Logo/src/Logo.vue | 4 +- src/layout/components/Message/src/Message.vue | 4 +- .../components/Screenfull/src/Screenfull.vue | 4 +- src/layout/components/Setting/src/Setting.vue | 4 +- .../src/components/ColorRadioPicker.vue | 4 +- .../src/components/InterfaceDisplay.vue | 4 +- .../src/components/LayoutRadioPicker.vue | 20 ++-- .../SizeDropdown/src/SizeDropdown.vue | 4 +- .../components/TagsView/src/TagsView.vue | 12 ++- .../ThemeSwitch/src/ThemeSwitch.vue | 4 +- .../components/UserInfo/src/UserInfo.vue | 4 +- src/views/Error/403.vue | 4 +- src/views/Error/404.vue | 3 +- src/views/Error/500.vue | 3 +- src/views/Home/Index.vue | 4 +- src/views/Home/Index2.vue | 4 +- src/views/Login/Login.vue | 4 +- src/views/Login/components/LoginForm.vue | 4 +- src/views/Login/components/LoginFormTitle.vue | 4 +- src/views/Login/components/MobileForm.vue | 4 +- src/views/Login/components/QrCodeForm.vue | 4 +- src/views/Login/components/RegisterForm.vue | 4 +- src/views/Login/components/SSOLogin.vue | 5 +- src/views/Profile/components/BasicInfo.vue | 9 +- src/views/Profile/components/ProfileUser.vue | 8 +- src/views/Profile/components/ResetPwd.vue | 4 +- src/views/Profile/components/UserAvatar.vue | 4 +- src/views/Profile/components/UserSocial.vue | 4 +- src/views/Redirect/Redirect.vue | 4 +- src/views/bpm/definition/index.vue | 5 +- src/views/bpm/form/editor/index.vue | 4 +- src/views/bpm/form/index.vue | 4 +- src/views/bpm/group/UserGroupForm.vue | 4 +- src/views/bpm/group/index.vue | 5 +- src/views/bpm/model/ModelForm.vue | 4 +- src/views/bpm/model/ModelImportForm.vue | 4 +- src/views/bpm/model/editor/index.vue | 4 +- src/views/bpm/model/index.vue | 5 +- src/views/bpm/oa/leave/create.vue | 5 +- src/views/bpm/oa/leave/detail.vue | 4 +- src/views/bpm/oa/leave/index.vue | 5 +- .../bpm/processInstance/create/index.vue | 5 +- .../detail/ProcessInstanceBpmnViewer.vue | 4 +- .../detail/ProcessInstanceTaskList.vue | 6 +- .../detail/TaskUpdateAssigneeForm.vue | 4 +- .../bpm/processInstance/detail/index.vue | 4 +- src/views/bpm/processInstance/index.vue | 5 +- src/views/bpm/task/done/TaskDetail.vue | 4 +- src/views/bpm/task/done/index.vue | 4 +- src/views/bpm/task/todo/index.vue | 4 +- .../bpm/taskAssignRule/TaskAssignRuleForm.vue | 4 +- src/views/bpm/taskAssignRule/index.vue | 5 +- .../infra/apiAccessLog/ApiAccessLogDetail.vue | 4 +- src/views/infra/apiAccessLog/index.vue | 5 +- .../infra/apiErrorLog/ApiErrorLogDetail.vue | 4 +- src/views/infra/apiErrorLog/index.vue | 5 +- src/views/infra/build/index.vue | 4 +- src/views/infra/codegen/EditTable.vue | 4 +- src/views/infra/codegen/ImportTable.vue | 4 +- src/views/infra/codegen/PreviewCode.vue | 4 +- .../codegen/components/BasicInfoForm.vue | 4 +- .../codegen/components/ColumInfoForm.vue | 4 +- .../codegen/components/GenerateInfoForm.vue | 4 +- src/views/infra/codegen/index.vue | 4 +- src/views/infra/config/ConfigForm.vue | 4 +- src/views/infra/config/index.vue | 5 +- .../dataSourceConfig/DataSourceConfigForm.vue | 4 +- src/views/infra/dataSourceConfig/index.vue | 5 +- src/views/infra/dbDoc/index.vue | 4 +- src/views/infra/druid/index.vue | 4 +- src/views/infra/file/FileForm.vue | 4 +- src/views/infra/file/index.vue | 5 +- src/views/infra/fileConfig/FileConfigForm.vue | 8 +- src/views/infra/fileConfig/index.vue | 5 +- src/views/infra/job/JobDetail.vue | 4 +- src/views/infra/job/JobForm.vue | 5 +- src/views/infra/job/index.vue | 5 +- src/views/infra/job/logger/JobLogDetail.vue | 4 +- src/views/infra/job/logger/index.vue | 5 +- src/views/infra/server/index.vue | 4 +- src/views/infra/skywalking/index.vue | 4 +- src/views/infra/swagger/index.vue | 4 +- src/views/infra/testDemo/index.vue | 2 +- src/views/infra/webSocket/index.vue | 4 +- src/views/mall/product/brand/BrandForm.vue | 5 +- src/views/mall/product/brand/index.vue | 5 +- .../mall/product/category/CategoryForm.vue | 5 +- src/views/mall/product/category/index.vue | 5 +- .../mall/product/property/PropertyForm.vue | 4 +- src/views/mall/product/property/index.vue | 4 +- .../mall/product/property/value/ValueForm.vue | 4 +- .../mall/product/property/value/index.vue | 5 +- src/views/mall/product/spu/addForm.vue | 4 +- .../product/spu/components/BasicInfoForm.vue | 4 +- .../spu/components/DescriptionForm.vue | 4 +- .../spu/components/OtherSettingsForm.vue | 4 +- .../spu/components/ProductAttributes.vue | 4 +- .../components/ProductAttributesAddForm.vue | 4 +- .../mall/product/spu/components/SkuList.vue | 4 +- src/views/mall/product/spu/index.vue | 4 +- .../trade/delivery/express/ExpressForm.vue | 5 +- .../mall/trade/delivery/express/index.vue | 5 +- .../trade/delivery/expressTemplate/index.vue | 4 +- src/views/mp/account/AccountForm.vue | 4 +- src/views/mp/account/index.vue | 5 +- .../mp/autoReply/components/ReplyForm.vue | 4 +- src/views/mp/autoReply/index.vue | 5 +- .../mp/components/wx-account-select/main.vue | 4 +- src/views/mp/components/wx-location/main.vue | 4 +- .../mp/components/wx-material-select/main.vue | 4 +- .../mp/components/wx-msg/components/Msg.vue | 4 +- .../components/wx-msg/components/MsgList.vue | 4 +- src/views/mp/components/wx-msg/main.vue | 4 +- src/views/mp/components/wx-music/main.vue | 4 +- src/views/mp/components/wx-news/main.vue | 4 +- src/views/mp/components/wx-reply/main.vue | 4 +- .../mp/components/wx-video-play/main.vue | 4 +- .../mp/components/wx-voice-play/main.vue | 4 +- src/views/mp/draft/components/NewsForm.vue | 4 +- src/views/mp/draft/index.vue | 4 +- src/views/mp/freePublish/index.vue | 11 ++- src/views/mp/menu/index.vue | 4 +- src/views/mp/message/index.vue | 4 +- src/views/mp/statistics/index.vue | 5 +- src/views/mp/tag/TagForm.vue | 4 +- src/views/mp/tag/index.vue | 4 +- src/views/mp/user/UserForm.vue | 4 +- src/views/mp/user/index.vue | 4 +- src/views/pay/app/AppForm.vue | 4 +- src/views/pay/app/index.vue | 5 +- src/views/pay/merchant/MerchantForm.vue | 4 +- src/views/pay/merchant/index.vue | 5 +- src/views/pay/order/OrderDetail.vue | 4 +- src/views/pay/order/index.vue | 7 +- src/views/pay/refund/RefundDetail.vue | 4 +- src/views/pay/refund/index.vue | 7 +- src/views/point/config/index.vue | 5 +- src/views/point/record/index.vue | 5 +- src/views/point/signInConfig/index.vue | 5 +- src/views/point/signInRecord/index.vue | 5 +- src/views/report/goview/index.vue | 4 +- src/views/report/jmreport/index.vue | 4 +- src/views/system/area/AreaForm.vue | 4 +- src/views/system/area/index.vue | 4 +- src/views/system/dept/DeptForm.vue | 4 +- src/views/system/dept/index.vue | 5 +- src/views/system/dict/DictTypeForm.vue | 4 +- src/views/system/dict/data/DictDataForm.vue | 4 +- src/views/system/dict/data/index.vue | 5 +- src/views/system/dict/index.vue | 4 +- src/views/system/errorCode/ErrorCodeForm.vue | 4 +- src/views/system/errorCode/index.vue | 5 +- src/views/system/loginlog/LoginLogDetail.vue | 4 +- src/views/system/loginlog/index.vue | 5 +- .../system/mail/account/MailAccountDetail.vue | 4 +- .../system/mail/account/MailAccountForm.vue | 4 +- src/views/system/mail/account/index.vue | 4 +- src/views/system/mail/log/MailLogDetail.vue | 4 +- src/views/system/mail/log/index.vue | 4 +- .../system/mail/template/MailTemplateForm.vue | 4 +- .../mail/template/MailTemplateSendForm.vue | 4 +- src/views/system/mail/template/index.vue | 4 +- src/views/system/menu/MenuForm.vue | 4 +- src/views/system/menu/index.vue | 5 +- src/views/system/notice/NoticeForm.vue | 4 +- src/views/system/notice/index.vue | 5 +- .../notify/message/NotifyMessageDetail.vue | 4 +- src/views/system/notify/message/index.vue | 4 +- .../notify/my/MyNotifyMessageDetail.vue | 4 +- src/views/system/notify/my/index.vue | 5 +- .../template/NotifyTemplateSendForm.vue | 5 +- src/views/system/notify/template/index.vue | 5 +- src/views/system/oauth2/client/ClientForm.vue | 4 +- src/views/system/oauth2/client/index.vue | 5 +- src/views/system/oauth2/token/index.vue | 5 +- .../system/operatelog/OperateLogDetail.vue | 4 +- src/views/system/operatelog/index.vue | 5 +- src/views/system/post/PostForm.vue | 4 +- src/views/system/post/index.vue | 5 +- src/views/system/role/RoleAssignMenuForm.vue | 4 +- .../system/role/RoleDataPermissionForm.vue | 4 +- src/views/system/role/RoleForm.vue | 4 +- src/views/system/role/index.vue | 4 +- .../sensitiveWord/SensitiveWordForm.vue | 4 +- .../sensitiveWord/SensitiveWordTestForm.vue | 4 +- src/views/system/sensitiveWord/index.vue | 4 +- .../system/sms/channel/SmsChannelForm.vue | 4 +- src/views/system/sms/channel/index.vue | 5 +- src/views/system/sms/log/SmsLogDetail.vue | 4 +- src/views/system/sms/log/index.vue | 5 +- .../system/sms/template/SmsTemplateForm.vue | 4 +- .../sms/template/SmsTemplateSendForm.vue | 4 +- src/views/system/sms/template/index.vue | 5 +- src/views/system/tenant/TenantForm.vue | 4 +- src/views/system/tenant/index.vue | 5 +- .../tenantPackage/TenantPackageForm.vue | 4 +- src/views/system/tenantPackage/index.vue | 5 +- src/views/system/user/DeptTree.vue | 4 +- src/views/system/user/UserAssignRoleForm.vue | 4 +- src/views/system/user/UserForm.vue | 4 +- src/views/system/user/UserImportForm.vue | 4 +- src/views/system/user/index.vue | 5 +- 259 files changed, 955 insertions(+), 381 deletions(-) diff --git a/src/App.vue b/src/App.vue index f75478cd..1b8b895f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,10 +1,12 @@ - diff --git a/src/components/Echart/src/Echart.vue b/src/components/Echart/src/Echart.vue index 31f2eea0..fd3342dd 100644 --- a/src/components/Echart/src/Echart.vue +++ b/src/components/Echart/src/Echart.vue @@ -1,4 +1,4 @@ - diff --git a/src/views/Error/404.vue b/src/views/Error/404.vue index c55d3325..f6a08de2 100644 --- a/src/views/Error/404.vue +++ b/src/views/Error/404.vue @@ -1,6 +1,7 @@ - diff --git a/src/views/Error/500.vue b/src/views/Error/500.vue index 6cfe47b7..998487d2 100644 --- a/src/views/Error/500.vue +++ b/src/views/Error/500.vue @@ -1,6 +1,7 @@ - diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue index 6c586f0b..4857883c 100644 --- a/src/views/Home/Index.vue +++ b/src/views/Home/Index.vue @@ -160,7 +160,7 @@ - + diff --git a/src/views/infra/webSocket/index.vue b/src/views/infra/webSocket/index.vue index c1690db2..1c7f2f00 100644 --- a/src/views/infra/webSocket/index.vue +++ b/src/views/infra/webSocket/index.vue @@ -55,11 +55,13 @@ -