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

feat: build the homepage #50

Merged
merged 5 commits into from
May 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ node_modules
.vscode
*.log
.DS_Store
.history
package-lock.json

packages/varlet-vue2-cli/lib/commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default defineComponent({
},

transfer() {
const container = this.disabled ? this.$refs.teleport : document.querySelector(this.to)
const container = this.disabled ? this.$refs.teleport : (typeof this.to === 'string'? document.querySelector(this.to): this.to)
const parentNode = this.el.parentNode

if (parentNode === container) {
Expand Down
1 change: 0 additions & 1 deletion packages/varlet-vue2-cli/site/components/teleport/props.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export const props = {
to: {
type: String,
required: true,
},
disabled: {
Expand Down
8 changes: 8 additions & 0 deletions packages/varlet-vue2-cli/site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
font-style: normal;
font-display: swap;
}
body {
box-sizing: border-box;
margin: 0;
padding: 0px;
font-family: 'Roboto', sans-serif;
background: var(--site-config-color-body);
color: var(--site-config-color-text);
}
</style>
<script>
if ('<%= baidu %>') {
Expand Down
Loading