Skip to content

Commit

Permalink
feat: update to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
xsf0105 committed Mar 25, 2024
1 parent ef200ba commit dc1f7a0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quark-doc-header",
"version": "0.3.30",
"version": "2.0.0",
"scripts": {
"dev": "npm run start",
"start": "vite --open",
Expand Down
10 changes: 10 additions & 0 deletions src/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -325,4 +325,14 @@ button {

.toper-message a:hover {
opacity: 1;
}

.toper-tips {
display: flex;
justify-content: center;
align-items: center;
line-height: 30px;
background: #1e1e1e;
color: #fff;
font-size: 12px;
}
6 changes: 3 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ class MyComponent extends QuarkElement {

// 主页跳转地址
this.homeUrl = this.#curHost // e.g. https://vue-quarkd.hellobike.com
this.guideUrl = `${this.#curHost}/#/${localStorage.getItem("language")}/guide/quickstart`
this.componentUrl = `${this.#curHost}/#/${localStorage.getItem("language")}/component/button`
this.guideUrl = `${this.#curHost}/quarkd-docs/${this.#techName}/#/${localStorage.getItem("language")}/guide/quickstart`
this.componentUrl = `${this.#curHost}/quarkd-docs/${this.#techName}/#/${localStorage.getItem("language")}/component/button`

const container = this.searchRef.current;
const params = {
Expand Down Expand Up @@ -312,7 +312,7 @@ class MyComponent extends QuarkElement {
<div class="nav-item menu">
<a
target="_blank"
href="https://quark-playground.hellobike.com/#/hello-world"
href="https://quark-ecosystem.github.io/quarkd-docs/playground/"
>
Playground
</a>
Expand Down

0 comments on commit dc1f7a0

Please sign in to comment.