| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bf668ca commit 9752ca7
13 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,19 +10,11 @@ | |||
| 10 | 10 | :key="title" | |
| 11 | 11 | content-position="left" | |
| 12 | 12 | > | |
| 13 | - <el-tag | ||
| 13 | + <span | ||
| 14 | 14 | v-if="secondname" | |
| 15 | - type="info" | ||
| 16 | - effect="light" | ||
| 17 | - >{{ secondname }}</el-tag> | ||
| 18 | - <el-divider | ||
| 19 | - v-if="secondname" | ||
| 20 | - direction="vertical" | ||
| 21 | - ></el-divider> | ||
| 22 | - <el-tag | ||
| 23 | - type="info" | ||
| 24 | - effect="light" | ||
| 25 | - >{{ title }}</el-tag> | ||
| 15 | + >{{ secondname }}</span> | ||
| 16 | + <span | ||
| 17 | + >{{ title }}</span> | ||
| 26 | 18 | </el-divider> | |
| 27 | 19 | </el-col> | |
| 28 | 20 | <el-col | |
@@ -116,6 +108,14 @@ export default { | |||
| 116 | 108 | .gallery-divider { | |
| 117 | 109 | background: transparent; | |
| 118 | 110 | ||
| 111 | + .el-divider__text{ | ||
| 112 | + height: 19px; | ||
| 113 | + font-size: 18px; | ||
| 114 | + font-family: Microsoft YaHei; | ||
| 115 | + font-weight: bold; | ||
| 116 | + color: #3C4858; | ||
| 117 | + line-height: 18px; | ||
| 118 | + } | ||
| 119 | 119 | /* .el-divider--horizontal { | |
| 120 | 120 | display: block; | |
| 121 | 121 | height: 10px; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -135,15 +135,25 @@ export default { | |||
| 135 | 135 | } | |
| 136 | 136 | .el-card__header { | |
| 137 | 137 | padding: 0px 0px; | |
| 138 | - border-bottom: 1px solid #ebeef5; | ||
| 139 | - -webkit-box-sizing: border-box; | ||
| 140 | - box-sizing: border-box; | ||
| 138 | + border-bottom:none !important; | ||
| 139 | + //border-bottom: 1px solid #ebeef5; | ||
| 140 | + //-webkit-box-sizing: border-box; | ||
| 141 | + //box-sizing: border-box; | ||
| 141 | 142 | } | |
| 142 | 143 | .el-card { | |
| 143 | - background: transparent; | ||
| 144 | + background: #F5F5F5; | ||
| 145 | + &:hover{ | ||
| 146 | + transition: all 0.2s linear; | ||
| 147 | + transform: scale(1.1, 1.1); | ||
| 148 | + } | ||
| 144 | 149 | } | |
| 145 | 150 | .el-card__body { | |
| 146 | - background: transparent; | ||
| 151 | + background: #F5F5F5; | ||
| 152 | + padding: 15px; | ||
| 153 | + &:hover{ | ||
| 154 | + transition: all 0.2s linear; | ||
| 155 | + transform: scale(1.1, 1.1); | ||
| 156 | + } | ||
| 147 | 157 | } | |
| 148 | 158 | .gallery-card-wrapper { | |
| 149 | 159 | .box-card-header { | |
@@ -158,7 +168,7 @@ export default { | |||
| 158 | 168 | width: 100%; | |
| 159 | 169 | transition: all 0.2s linear; | |
| 160 | 170 | &:hover { | |
| 161 | - transform: scale(1.1, 1.1); | ||
| 171 | + //transform: scale(1.1, 1.1); | ||
| 162 | 172 | /* filter: contrast(130%); */ | |
| 163 | 173 | } | |
| 164 | 174 | } | |
@@ -180,9 +190,9 @@ export default { | |||
| 180 | 190 | } | |
| 181 | 191 | .gallery-card-wrapper:hover { | |
| 182 | 192 | border-radius: 4px; | |
| 183 | - background: linear-gradient(90deg, rgba(71, 148, 250, 1), rgba(49, 225, 230, 1)); | ||
| 193 | + //background: linear-gradient(90deg, rgba(71, 148, 250, 1), rgba(49, 225, 230, 1)); | ||
| 184 | 194 | .title { | |
| 185 | - color: #ffffff; | ||
| 195 | + color: #323333; | ||
| 186 | 196 | } | |
| 187 | 197 | .el-icon-picture-outline { | |
| 188 | 198 | height: 256px; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,6 +7,8 @@ import LayoutTwo from "@/views/layout/LayoutTwo"; | |||
| 7 | 7 | import Helper from '../views/helper/Helper'; | |
| 8 | 8 | import Gallery from "../views/gallery/Gallery"; | |
| 9 | 9 | import ShowCase from "../views/demo/ShowCase"; | |
| 10 | + import Product from "../views/component/product"; | ||
| 11 | + import Guide from "../views/guide/DevelopGuide"; | ||
| 10 | 12 | ||
| 11 | 13 | Vue.use(VueRouter); | |
| 12 | 14 | ||
@@ -151,6 +153,16 @@ export const routes = [ | |||
| 151 | 153 | component: () => import("@/views/empty/index"), | |
| 152 | 154 | name: "*", | |
| 153 | 155 | }, | |
| 156 | + { | ||
| 157 | + path:"/component/product", | ||
| 158 | + component: Product, | ||
| 159 | + name: "product" | ||
| 160 | + }, | ||
| 161 | + { | ||
| 162 | + path:"/guide/DevelopGuide", | ||
| 163 | + component: Guide, | ||
| 164 | + name: "guide" | ||
| 165 | + } | ||
| 154 | 166 | ]; | |
| 155 | 167 | ||
| 156 | 168 | const router = new VueRouter({ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,158 @@ | |||
| 1 | + <template> | ||
| 2 | + <el-container> | ||
| 3 | + <el-header | ||
| 4 | + style="padding:0px;" | ||
| 5 | + :height="mobile?'48px':'64px'" | ||
| 6 | + > | ||
| 7 | + <Header></Header> | ||
| 8 | + </el-header> | ||
| 9 | + <div class="product-header"> | ||
| 10 | + <span class="product-span">组件</span> | ||
| 11 | + </div> | ||
| 12 | + <!-- <el-header class="product-header">--> | ||
| 13 | + <!-- </el-header>--> | ||
| 14 | + <el-container class="product-container"> | ||
| 15 | + <el-aside | ||
| 16 | + class="aside-scroll-content" | ||
| 17 | + > | ||
| 18 | + <el-scrollbar | ||
| 19 | + class="element-scroll-content" | ||
| 20 | + wrapStyle="overflow-x: hidden;" | ||
| 21 | + viewStyle="overflow-y: hidden;" | ||
| 22 | + > | ||
| 23 | + <div class="header-menu-col"> | ||
| 24 | + <span class="strong">{{ asideMenu.title }}</span> | ||
| 25 | + <div class="header-menu-links" v-for="(link, i) in asideMenu.links" :key="i"> | ||
| 26 | + <div class="header-menu-link" v-for="(l, j) in link" :key="j"> | ||
| 27 | + <div class="header-menu-link-text"> | ||
| 28 | + <el-badge type="success" :value="asideMenu.hightlights[i][j] ? hint : ''" class="menu-badge"> | ||
| 29 | + <a class="header-menu-link-text" :href="asideMenu.routes[i][j]"> | ||
| 30 | + <span :class="{ 'light-subtitle': light }">{{ l }}</span> | ||
| 31 | + </a> | ||
| 32 | + </el-badge> | ||
| 33 | + </div> | ||
| 34 | + </div> | ||
| 35 | + </div> | ||
| 36 | + </div> | ||
| 37 | + </el-scrollbar> | ||
| 38 | + </el-aside> | ||
| 39 | + <el-main></el-main> | ||
| 40 | + </el-container> | ||
| 41 | + </el-container> | ||
| 42 | + </template> | ||
| 43 | + | ||
| 44 | + <script> | ||
| 45 | + import axios from "axios"; | ||
| 46 | + import {isMobile} from "@/utils/mobile"; | ||
| 47 | + import {Header} from "@/views/layout/components"; | ||
| 48 | + | ||
| 49 | + export default { | ||
| 50 | + name: "product", | ||
| 51 | + data() { | ||
| 52 | + return { | ||
| 53 | + mobile: isMobile(), | ||
| 54 | + asideContent: "", | ||
| 55 | + asideMenu: "", | ||
| 56 | + light: true, | ||
| 57 | + hint: '新' | ||
| 58 | + } | ||
| 59 | + }, | ||
| 60 | + components: { | ||
| 61 | + Header | ||
| 62 | + }, | ||
| 63 | + mounted() { | ||
| 64 | + this.initConfig(); | ||
| 65 | + }, | ||
| 66 | + methods: { | ||
| 67 | + initConfig() { | ||
| 68 | + this.getAsideList(); | ||
| 69 | + }, | ||
| 70 | + getAsideList() { | ||
| 71 | + let self = this; | ||
| 72 | + let asideUrl = "./static/demo/config/config-headers.json"; | ||
| 73 | + axios.get(asideUrl).then(response => { | ||
| 74 | + let temp = response.data; | ||
| 75 | + for (let i in temp) { | ||
| 76 | + if ("组件" === (temp[i].title).toLowerCase()) { | ||
| 77 | + self.asideContent = temp[i]; | ||
| 78 | + break; | ||
| 79 | + } | ||
| 80 | + } | ||
| 81 | + self.asideMenu = self.asideContent.menus[0]; | ||
| 82 | + }); | ||
| 83 | + } | ||
| 84 | + } | ||
| 85 | + } | ||
| 86 | + </script> | ||
| 87 | + | ||
| 88 | + <style scoped lang="scss"> | ||
| 89 | + .product-header { | ||
| 90 | + padding: 0; | ||
| 91 | + height: 240px !important; | ||
| 92 | + background-image: url("../../../public/static/assets/product/component.png"); | ||
| 93 | + | ||
| 94 | + .product-span { | ||
| 95 | + width: fit-content; | ||
| 96 | + height: 240px; | ||
| 97 | + margin-left: 132px; | ||
| 98 | + margin-top: 86px; | ||
| 99 | + color: rgba(255, 255, 255, 1); | ||
| 100 | + font-stretch: normal; | ||
| 101 | + letter-spacing: 1.5px; | ||
| 102 | + font-size: 22px; | ||
| 103 | + font-family: Microsoft YaHei; | ||
| 104 | + font-weight: bold; | ||
| 105 | + font-style: italic; | ||
| 106 | + color: #ffffff; | ||
| 107 | + line-height: 240px; | ||
| 108 | + } | ||
| 109 | + } | ||
| 110 | + | ||
| 111 | + .img-class { | ||
| 112 | + height: 100%; | ||
| 113 | + width: 100%; | ||
| 114 | + } | ||
| 115 | + | ||
| 116 | + .product-container { | ||
| 117 | + height: fit-content; | ||
| 118 | + width: 100%; | ||
| 119 | + | ||
| 120 | + .aside-scroll-content { | ||
| 121 | + height: calc(100vh - 240px); | ||
| 122 | + width: 250px; | ||
| 123 | + margin: 36px 0px 36px 79px; | ||
| 124 | + overflow-x: hidden; | ||
| 125 | + background-color: #F5F7FB; | ||
| 126 | + } | ||
| 127 | + } | ||
| 128 | + | ||
| 129 | + .strong { | ||
| 130 | + font-weight: bold !important; | ||
| 131 | + width: 37px; | ||
| 132 | + height: 18px; | ||
| 133 | + font-size: 18px; | ||
| 134 | + font-family: Microsoft YaHei; | ||
| 135 | + color: #333333; | ||
| 136 | + line-height: 48px; | ||
| 137 | + } | ||
| 138 | + | ||
| 139 | + .light-subtitle { | ||
| 140 | + color: #3C4858 !important; | ||
| 141 | + } | ||
| 142 | + .header-menu-link{ | ||
| 143 | + margin: 4px 0px; | ||
| 144 | + width: fit-content; | ||
| 145 | + height: fit-content; | ||
| 146 | + span { | ||
| 147 | + width: 60px; | ||
| 148 | + height: 14px; | ||
| 149 | + font-size: 14px; | ||
| 150 | + font-family: Microsoft YaHei; | ||
| 151 | + font-weight: 400; | ||
| 152 | + line-height: 30px; | ||
| 153 | + } | ||
| 154 | + } | ||
| 155 | + .header-menu-col{ | ||
| 156 | + padding: 5px 90px; | ||
| 157 | + } | ||
| 158 | + </style> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,10 +59,10 @@ | |||
| 59 | 59 | <IconFont type="iconcollapseright" /> | |
| 60 | 60 | </div> | |
| 61 | 61 | <transition name="bounce"> | |
| 62 | - <ShowGallery | ||
| 63 | - v-if="currentKind.length > 0 && !fullScreen" | ||
| 64 | - :list="currentKind" | ||
| 65 | - /> | ||
| 62 | + <!-- <ShowGallery--> | ||
| 63 | + <!-- v-if="currentKind.length > 0 && !fullScreen"--> | ||
| 64 | + <!-- :list="currentKind"--> | ||
| 65 | + <!-- />--> | ||
| 66 | 66 | </transition> | |
| 67 | 67 | <router-view | |
| 68 | 68 | class="main-demo-wrapper" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -159,7 +159,7 @@ import "codemirror/lib/codemirror.css"; | |||
| 159 | 159 | // language | |
| 160 | 160 | import "codemirror/mode/javascript/javascript.js"; | |
| 161 | 161 | // theme css | |
| 162 | - import "codemirror/theme/monokai.css"; | ||
| 162 | + import "codemirror/theme/moxer.css"; | ||
| 163 | 163 | // require active-line.js | |
| 164 | 164 | import "codemirror/addon/selection/active-line.js"; | |
| 165 | 165 | // styleSelectedText | |
@@ -198,8 +198,14 @@ import "codemirror/addon/fold/xml-fold.js"; | |||
| 198 | 198 | //import 'codemirror/theme/base16-dark.css' | |
| 199 | 199 | import "codemirror/theme/base16-light.css"; | |
| 200 | 200 | import "codemirror/theme/paraiso-light.css"; | |
| 201 | - import "codemirror/theme/monokai.css"; | ||
| 201 | + import "codemirror/theme/moxer.css"; | ||
| 202 | 202 | import "codemirror/theme/cobalt.css"; | |
| 203 | + import "codemirror/theme/eclipse.css"; | ||
| 204 | + import "codemirror/theme/mdn-like.css"; | ||
| 205 | + import "codemirror/theme/ssms.css"; | ||
| 206 | + import "codemirror/theme/neo.css"; | ||
| 207 | + import "codemirror/theme/solarized.css"; | ||
| 208 | + | ||
| 203 | 209 | ||
| 204 | 210 | // import "@/styles/markdown.css"; | |
| 205 | 211 | //import "@/styles/prism.css"; | |
@@ -251,7 +257,7 @@ export default { | |||
| 251 | 257 | keyMap: "sublime", | |
| 252 | 258 | matchBrackets: true, | |
| 253 | 259 | showCursorWhenSelecting: true, | |
| 254 | - theme: "base16-light", | ||
| 260 | + theme: "neo", | ||
| 255 | 261 | extraKeys: { Ctrl: "autocomplete" } | |
| 256 | 262 | } | |
| 257 | 263 | }; | |
@@ -357,9 +363,9 @@ export default { | |||
| 357 | 363 | // demoContent[0].style.height = window.innerHeight - 102 + "px"; | |
| 358 | 364 | // markdownContent[markdownContent.length - 1].style.height = window.innerHeight - 242 + "px"; | |
| 359 | 365 | } else { | |
| 360 | - codeContent[0].style.height = window.innerHeight - 295 + "px"; | ||
| 361 | - demoContent[0].style.height = window.innerHeight - 230 + "px"; | ||
| 362 | - markdownContent[markdownContent.length - 1].style.height = window.innerHeight - 295 + "px"; | ||
| 366 | + codeContent[0].style.height = window.innerHeight - 160 + "px"; | ||
| 367 | + demoContent[0].style.height = window.innerHeight - 90 + "px"; | ||
| 368 | + markdownContent[markdownContent.length - 1].style.height = window.innerHeight - 160 + "px"; | ||
| 363 | 369 | } | |
| 364 | 370 | } | |
| 365 | 371 | }, | |
@@ -495,6 +501,8 @@ export default { | |||
| 495 | 501 | } | |
| 496 | 502 | } | |
| 497 | 503 | .splitpanes__pane { | |
| 504 | + width: 40%; | ||
| 505 | + height: 90%; | ||
| 498 | 506 | background-color: #ffffff !important; | |
| 499 | 507 | } | |
| 500 | 508 | .webclient-showcase-mobile { | |
@@ -533,7 +541,7 @@ export default { | |||
| 533 | 541 | } | |
| 534 | 542 | ||
| 535 | 543 | .editor-codemirror-wraper { | |
| 536 | - height: calc(100vh - 235px); | ||
| 544 | + height: calc(100vh - 50px); | ||
| 537 | 545 | } | |
| 538 | 546 | ||
| 539 | 547 | .iframemobile { | |
@@ -593,5 +601,8 @@ export default { | |||
| 593 | 601 | position: relative; | |
| 594 | 602 | } */ | |
| 595 | 603 | } | |
| 604 | + .splitpanes__pane{ | ||
| 605 | + height: 100% !important; | ||
| 606 | + } | ||
| 596 | 607 | } | |
| 597 | 608 | </style> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -367,7 +367,7 @@ export default { | |||
| 367 | 367 | overflow-x: hidden; | |
| 368 | 368 | } | |
| 369 | 369 | .el-main { | |
| 370 | - padding: 0 6px; | ||
| 370 | + padding: 0 10px; | ||
| 371 | 371 | } | |
| 372 | 372 | .el-timeline-item { | |
| 373 | 373 | position: relative; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments