-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
020aa87
commit c4e92d4
Showing
107 changed files
with
3,315 additions
and
2,851 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import simon from '@antfu/eslint-config' | ||
|
||
export default simon({ | ||
rules: { | ||
'no-console': 'off', | ||
'ts/ban-types': 'off', | ||
'jsdoc/require-returns-description': 'off', | ||
'no-new-func': 'off', | ||
'unicorn/no-new-array': 'off', | ||
'jsdoc/require-returns-check': 'off', | ||
'jsdoc/check-param-names': 'off', | ||
'no-cond-assign': 'off', | ||
'no-eval': 'off', | ||
}, | ||
ignores: ['**/fixtures', 'test'], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[build.environment] | ||
NODE_VERSION = "16" | ||
[build] | ||
publish = "playground/dist" | ||
command = "pnpm run play:build" | ||
publish = "playground/dist" | ||
command = "pnpm run play:build" | ||
|
||
[build.environment] | ||
NODE_VERSION = "16" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[build.environment] | ||
NPM_FLAGS = "--version" | ||
NODE_VERSION = "16" | ||
|
||
[build] | ||
publish = "dist" | ||
command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run build" | ||
publish = "dist" | ||
command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run build" | ||
|
||
[build.environment] | ||
NPM_FLAGS = "--version" | ||
NODE_VERSION = "16" | ||
|
||
[[redirects]] | ||
from = "/*" | ||
to = "/index.html" | ||
status = 200 | ||
from = "/*" | ||
to = "/index.html" | ||
status = 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,58 @@ | ||
<script setup lang="ts"> | ||
import {} from './utils' | ||
</script> | ||
<script setup lang="ts"></script> | ||
|
||
<template> | ||
<div class="w-full h-full" /> | ||
<div class="swiper-container" ma style="width: 100%"> | ||
<div class="swiper-wrapper"> | ||
<div class="swiper-slide w-2"> | ||
Slide 1 | ||
</div> | ||
<div class="swiper-slide w-20"> | ||
Slide 2 | ||
</div> | ||
|
||
<div class="swiper-slide"> | ||
Slide 3 | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.swiper-container { | ||
width: 300px; | ||
height: 200px; | ||
overflow: hidden; | ||
} | ||
.swiper-wrapper { | ||
display: flex; | ||
width: 300%; | ||
animation: slide 10s infinite; | ||
animation-play-state: running; | ||
} | ||
.swiper-slide { | ||
flex: 1; | ||
width: 100%; | ||
} | ||
/* 鼠标移入时暂停动画 */ | ||
.swiper-container:hover .swiper-wrapper { | ||
animation-play-state: paused; | ||
} | ||
@keyframes slide { | ||
0% { | ||
transform: translateX(0); | ||
} | ||
33.33% { | ||
transform: translateX(-100%); | ||
} | ||
66.66% { | ||
transform: translateX(-200%); | ||
} | ||
100% { | ||
transform: translateX(0); | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,3 +79,5 @@ app.mount('#app') | |
// }).then((res: any) => { | ||
// console.log(res) | ||
// }) | ||
|
||
// test |
Oops, something went wrong.