diff --git a/vue/src/assets/icons/index.js b/vue/src/assets/icons/index.js index 62540ce..e89c24d 100644 --- a/vue/src/assets/icons/index.js +++ b/vue/src/assets/icons/index.js @@ -1,7 +1,6 @@ import Vue from 'vue' -import SvgIcon from '@/components/SvgIcon' // svg component +import SvgIcon from '@/components/SvgIcon' -// register globally Vue.component('svg-icon', SvgIcon) const req = require.context('./svg', false, /\.svg$/) diff --git a/vue/src/components/SvgIcon/index.vue b/vue/src/components/SvgIcon/index.vue index 9ccaa2f..b9b2e38 100644 --- a/vue/src/components/SvgIcon/index.vue +++ b/vue/src/components/SvgIcon/index.vue @@ -1,15 +1,9 @@ - - - diff --git a/vue/src/views/index/components/PanelGroup/PanelGroupItem.scss b/vue/src/views/index/components/PanelGroup/PanelGroupItem.scss deleted file mode 100644 index 9d50280..0000000 --- a/vue/src/views/index/components/PanelGroup/PanelGroupItem.scss +++ /dev/null @@ -1,63 +0,0 @@ -.card-panel { - height: 108px; - cursor: pointer; - font-size: 12px; - position: relative; - overflow: hidden; - color: #666; - background: #fff; - border-radius: 4px; - -webkit-box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1); - box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1); - border-color: rgba(0, 0, 0, .05); - - &:hover .card-panel-icon-wrapper { - color: #fff; - } - - .card-panel-icon-wrapper { - margin: 14px 0 14px 14px; - padding: 16px; - transition: all 0.38s ease-out; - border-radius: 6px; - } - - .card-panel-icon { - font-size: 48px; - } - - .card-panel-description { - font-weight: bold; - margin: 26px 20px 0 26px; - - .card-panel-text { - line-height: 18px; - color: rgba(0, 0, 0, 0.45); - font-size: 16px; - margin-bottom: 12px; - } - - .card-panel-num { - font-size: 20px; - } - } -} - -@media (max-width: 550px) { - .card-panel-description { - display: none; - } - - .card-panel-icon-wrapper { - float: none !important; - width: 100%; - height: 100%; - margin: 0 !important; - - .svg-icon { - display: block; - margin: 14px auto !important; - float: none !important; - } - } -} diff --git a/vue/src/views/index/components/PanelGroup/PanelGroupItem.vue b/vue/src/views/index/components/PanelGroup/PanelGroupItem.vue index a1aeab7..91ff399 100644 --- a/vue/src/views/index/components/PanelGroup/PanelGroupItem.vue +++ b/vue/src/views/index/components/PanelGroup/PanelGroupItem.vue @@ -44,4 +44,69 @@ } - +