diff --git a/package.json b/package.json index a891a236..b812c5c6 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,7 @@ "typescript": "^4.9.3", "vite": "^4.0.0", "vite-plugin-html": "^3.2.0", + "vite-plugin-progress": "^0.0.7", "vite-plugin-style-import": "^2.0.0", "vite-plugin-vue-setup-extend": "^0.4.0", "vue-tsc": "^1.0.11" diff --git a/public/images/device-access.png b/public/images/device-access.png index f2cd40be..195da31c 100644 Binary files a/public/images/device-access.png and b/public/images/device-access.png differ diff --git a/public/images/device-gateway.png b/public/images/device-gateway.png index 47e9e773..f349d216 100644 Binary files a/public/images/device-gateway.png and b/public/images/device-gateway.png differ diff --git a/public/images/device-media.png b/public/images/device-media.png index cbfa989a..3b9be02f 100644 Binary files a/public/images/device-media.png and b/public/images/device-media.png differ diff --git a/public/images/device-product.png b/public/images/device-product.png index 8c56da7f..edda813a 100644 Binary files a/public/images/device-product.png and b/public/images/device-product.png differ diff --git a/public/images/device-type-3-big.png b/public/images/device-type-3-big.png deleted file mode 100644 index 9a740af2..00000000 Binary files a/public/images/device-type-3-big.png and /dev/null differ diff --git a/public/images/network.png b/public/images/network.png index e8ec7206..1abedad2 100644 Binary files a/public/images/network.png and b/public/images/network.png differ diff --git a/public/images/protocol.png b/public/images/protocol.png index 04f02408..38902585 100644 Binary files a/public/images/protocol.png and b/public/images/protocol.png differ diff --git a/public/images/scene/trigger-type/device.png b/public/images/scene/trigger-type/device.png index 9a6cdd0b..32e3961f 100644 Binary files a/public/images/scene/trigger-type/device.png and b/public/images/scene/trigger-type/device.png differ diff --git a/public/images/scene/trigger-type/scene.png b/public/images/scene/trigger-type/scene.png index 1614ab41..ddb80831 100644 Binary files a/public/images/scene/trigger-type/scene.png and b/public/images/scene/trigger-type/scene.png differ diff --git a/public/images/stream.png b/public/images/stream.png index 9847637c..9d57c76a 100644 Binary files a/public/images/stream.png and b/public/images/stream.png differ diff --git a/src/components/CardBox/index.vue b/src/components/CardBox/index.vue index 5f612285..99a71da1 100644 --- a/src/components/CardBox/index.vue +++ b/src/components/CardBox/index.vue @@ -1,5 +1,5 @@ diff --git a/src/style.less b/src/style.less index 7a271178..ff79afda 100644 --- a/src/style.less +++ b/src/style.less @@ -3,6 +3,97 @@ right: -12px; } +.ant-pro-page-container { + .ant-page-header-footer { + border-top: 1px solid #e9e9e9; + padding-top: 10px; + } +} + +.ant-pro-basicLayout { + .ant-pro-top-nav-header-main { + gap: 16px; + } + + .ant-pro-top-nav-header { + + .ant-menu-item { + padding: 0 10px !important; + &:not(:first-child) { + margin-left: 8px; + } + &:hover { + background-color: transparent; + } + } + + .ant-menu-item-selected,& .ant-menu-item-active { + transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + } + + h1,& .right-content, & .anticon-bell { + color: #fff; + } + + & .ant-pro-menu-item-title,& .anticon,& .ant-menu-item-active { + color: rgba(#fff, 0.55); + } + + .ant-menu-item-selected { + & .ant-pro-menu-item-title,& .anticon { + color: #fff; + } + } + + .ant-menu-item-selected,& .ant-menu-item-active { + transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + background: linear-gradient(0deg, rgba(#fff, 0.25) 0%, rgba(#fff, 0) 82%); + &::after { + left: 0; + right: 0; + border-bottom-color: rgba(#fff, .8); + } + } + + &.light { + background: #3F4960; + box-shadow: 0 1px 0px 0px #E9E9E9; + + h1,& .right-content, & .anticon-bell { + color: #fff; + } + + .ant-menu-item-selected,& .ant-menu-item-active { + transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + background: linear-gradient(0deg, rgba(#fff, 0.15) 0%, rgba(#fff, 0) 82%); + &::after { + left: 0; + right: 0; + border-bottom-color: rgba(#fff, .7); + } + } + } + } + + .ant-layout-sider { + box-shadow: 1px 0 0 0 #E9E9E9 !important; + } + + .ant-page-header.has-breadcrumb { + background: transparent; + padding-top: 20px; + padding-bottom: 0; + } + + .ant-pro-page-container-children-content { + margin-top: 16px; + } + + .ant-pro-sider-menu { + padding-top: 6px; + } +} + // 说明文档样式 .doc { height: 750px; diff --git a/src/views/device/Instance/Detail/Info/index.vue b/src/views/device/Instance/Detail/Info/index.vue index 38616024..b62a13bc 100644 --- a/src/views/device/Instance/Detail/Info/index.vue +++ b/src/views/device/Instance/Detail/Info/index.vue @@ -17,9 +17,9 @@ {{ instanceStore.current?.productName }} - {{ - instanceStore.current?.classifiedName - }} + + + {{ instanceStore.current?.deviceType?.text }} diff --git a/src/views/device/Instance/index.vue b/src/views/device/Instance/index.vue index c8ccc016..593ea8fa 100644 --- a/src/views/device/Instance/index.vue +++ b/src/views/device/Instance/index.vue @@ -164,8 +164,8 @@ >