Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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