Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit 72c833c

Browse files
authored
feat: build the homepage (#50)
* feat: homepage for varlet-vue2 * feat: the homepage logo animation make up * feat: Throttle the animation * chore: make up the animation * feat: optimize home-page style
1 parent bda4b14 commit 72c833c

File tree

23 files changed

+1738
-544
lines changed

23 files changed

+1738
-544
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ node_modules
55
.vscode
66
*.log
77
.DS_Store
8+
.history
89
package-lock.json
910

1011
packages/varlet-vue2-cli/lib/commands

packages/varlet-vue2-cli/site/components/teleport/Teleport.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default defineComponent({
3333
},
3434

3535
transfer() {
36-
const container = this.disabled ? this.$refs.teleport : document.querySelector(this.to)
36+
const container = this.disabled ? this.$refs.teleport : (typeof this.to === 'string'? document.querySelector(this.to): this.to)
3737
const parentNode = this.el.parentNode
3838

3939
if (parentNode === container) {

packages/varlet-vue2-cli/site/components/teleport/props.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
export const props = {
22
to: {
3-
type: String,
43
required: true,
54
},
65
disabled: {

packages/varlet-vue2-cli/site/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@
2020
font-style: normal;
2121
font-display: swap;
2222
}
23+
body {
24+
box-sizing: border-box;
25+
margin: 0;
26+
padding: 0px;
27+
font-family: 'Roboto', sans-serif;
28+
background: var(--site-config-color-body);
29+
color: var(--site-config-color-text);
30+
}
2331
</style>
2432
<script>
2533
if ('<%= baidu %>') {

0 commit comments

Comments
 (0)