Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dayouan
VueJS
提交
ec50cbed
V
VueJS
项目概览
dayouan
/
VueJS
与 Fork 源项目一致
Fork自
inscode / VueJS
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
VueJS
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
ec50cbed
编写于
7月 19, 2023
作者:
6
64b7a1fae9a89817f5c15c6c
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Auto Commit
上级
7a093d7e
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
191 addition
and
118 deletion
+191
-118
src/App.vue
src/App.vue
+63
-11
src/assets/20160317110541_35459.jpg
src/assets/20160317110541_35459.jpg
+0
-0
src/components/HelloWorld.vue
src/components/HelloWorld.vue
+63
-32
src/components/TheWelcome.vue
src/components/TheWelcome.vue
+65
-75
未找到文件。
src/App.vue
浏览文件 @
ec50cbed
<
script
setup
>
import
HelloWorld
from
'
./components/HelloWorld.vue
'
import
TheWelcome
from
'
./components/TheWelcome.vue
'
</
script
>
<
template
>
<header>
<img
alt=
"Vue logo"
class=
"logo"
src=
"./assets/logo.svg"
width=
"125"
height=
"125"
/>
<div
class=
"wrapper"
>
<HelloWorld
msg=
"You did it!"
/>
</div>
</header>
<main>
<TheWelcome
/>
</main>
<div
class=
"body"
>
<div
class=
"gallery"
>
<span
style=
"--i:1"
>
<img
src=
"../src/assets/20160317110541_35459.jpg"
mode=
""
>
</span>
<span
style=
"--i:2"
>
<img
src=
"../src/assets/20160317110541_35459.jpg"
mode=
""
>
</span>
<span
style=
"--i:3"
>
<img
src=
"../src/assets/20160317110541_35459.jpg"
mode=
""
>
</span>
<span
style=
"--i:4"
>
<img
src=
"../src/assets/20160317110541_35459.jpg"
mode=
""
>
</span>
</div>
</div>
</
template
>
<
style
scoped
>
.body
{
margin
:
0
;
height
:
100vh
;
display
:
grid
;
place-items
:
center
;
background-color
:
#010101
;
}
.gallery
{
position
:
relative
;
width
:
300px
;
height
:
200px
;
transform-style
:
preserve-3d
;
animation
:
rotate
15s
linear
infinite
;
}
@keyframes
rotate
{
from
{
transform
:
perspective
(
1200px
)
rotateY
(
0deg
);
}
to
{
transform
:
perspective
(
1200px
)
rotateY
(
360deg
);
}
}
.gallery
span
{
position
:
absolute
;
width
:
100%
;
height
:
100%
;
transform-origin
:
center
;
transform-style
:
preserve-3d
;
transform
:
rotateY
(
calc
(
var
(
--i
)
*
90deg
))
translateZ
(
180px
);
}
.gallery
span
img
{
position
:
absolute
;
width
:
100%
;
height
:
100%
;
object-fit
:
cover
;
}
header
{
line-height
:
1.5
;
}
...
...
src/assets/20160317110541_35459.jpg
0 → 100644
浏览文件 @
ec50cbed
30.6 KB
src/components/HelloWorld.vue
浏览文件 @
ec50cbed
<
script
setup
>
defineProps
({
msg
:
{
type
:
String
,
required
:
true
}
})
</
script
>
<
template
>
<div
class=
"greetings"
>
<h1
class=
"green"
>
{{
msg
}}
</h1>
<h3>
You’ve successfully created a project with
<a
target=
"_blank"
href=
"https://vitejs.dev/"
>
Vite
</a>
+
<a
target=
"_blank"
href=
"https://vuejs.org/"
>
Vue 3
</a>
.
</h3>
</div>
<view
class=
"body"
>
<view
class=
"gallery"
>
<span
style=
"--i:1"
>
<image
src=
"../src/assets/20160317110541_35459.jpg"
mode=
""
></image>
</span>
<span
style=
"--i:2"
>
<image
src=
"../src/assets/20160317110541_35459.jpg"
mode=
""
></image>
</span>
<span
style=
"--i:3"
>
<image
src=
"../src/assets/20160317110541_35459.jpg"
mode=
""
></image>
</span>
<span
style=
"--i:4"
>
<image
src=
"../src/assets/20160317110541_35459.jpg"
mode=
""
></image>
</span>
</view>
</view>
</
template
>
<
style
scoped
>
h1
{
font-weight
:
500
;
font-size
:
2.6rem
;
top
:
-10px
;
<
script
>
export
default
{
data
()
{
return
{
};
}
}
</
script
>
<
style
>
.body
{
margin
:
0
;
height
:
100vh
;
display
:
grid
;
place-items
:
center
;
background-color
:
#010101
;
}
.gallery
{
position
:
relative
;
width
:
300px
;
height
:
200px
;
transform-style
:
preserve-3d
;
animation
:
rotate
15s
linear
infinite
;
}
h3
{
font-size
:
1.2rem
;
@keyframes
rotate
{
from
{
transform
:
perspective
(
1200px
)
rotateY
(
0deg
);
}
to
{
transform
:
perspective
(
1200px
)
rotateY
(
360deg
);
}
}
.greetings
h1
,
.greetings
h3
{
text-align
:
center
;
.gallery
span
{
position
:
absolute
;
width
:
100%
;
height
:
100%
;
transform-origin
:
center
;
transform-style
:
preserve-3d
;
transform
:
rotateY
(
calc
(
var
(
--i
)
*
90deg
))
translateZ
(
180px
);
}
@media
(
min-width
:
1024px
)
{
.greetings
h1
,
.greetings
h3
{
text-align
:
left
;
}
.gallery
span
image
{
position
:
absolute
;
width
:
100%
;
height
:
100%
;
object-fit
:
cover
;
}
</
style
>
src/components/TheWelcome.vue
浏览文件 @
ec50cbed
<
script
setup
>
import
WelcomeItem
from
'
./WelcomeItem.vue
'
import
DocumentationIcon
from
'
./icons/IconDocumentation.vue
'
import
ToolingIcon
from
'
./icons/IconTooling.vue
'
import
EcosystemIcon
from
'
./icons/IconEcosystem.vue
'
import
CommunityIcon
from
'
./icons/IconCommunity.vue
'
import
SupportIcon
from
'
./icons/IconSupport.vue
'
</
script
>
<
template
>
<WelcomeItem>
<template
#icon
>
<DocumentationIcon
/>
</
template
>
<
template
#heading
>
Documentation
</
template
>
Vue’s
<a
target=
"_blank"
href=
"https://vuejs.org/"
>
official documentation
</a>
provides you with all information you need to get started.
</WelcomeItem>
<view
class=
"body"
>
<view
class=
"gallery"
>
<span
style=
"--i:1"
>
<image
src=
"../src/assets/20160317110541_35459.jpg"
mode=
""
></image>
</span>
<span
style=
"--i:2"
>
<image
src=
"../src/assets/20160317110541_35459.jpg"
mode=
""
></image>
<WelcomeItem>
<
template
#icon
>
<ToolingIcon
/>
</
template
>
<
template
#heading
>
Tooling
</
template
>
</span>
<span
style=
"--i:3"
>
<image
src=
"../src/assets/20160317110541_35459.jpg"
mode=
""
></image>
This project is served and bundled with
<a
href=
"https://vitejs.dev/guide/features.html"
target=
"_blank"
>
Vite
</a>
. The recommended IDE
setup is
<a
href=
"https://code.visualstudio.com/"
target=
"_blank"
>
VSCode
</a>
+
<a
href=
"https://github.com/johnsoncodehk/volar"
target=
"_blank"
>
Volar
</a>
. If you need to test
your components and web pages, check out
<a
href=
"https://www.cypress.io/"
target=
"_blank"
>
Cypress
</a>
and
<a
href=
"https://on.cypress.io/component"
target=
"_blank"
>
Cypress Component Testing
</a
>
.
</span>
<span
style=
"--i:4"
>
<image
src=
"../src/assets/20160317110541_35459.jpg"
mode=
""
></image>
<br
/>
</span>
</view>
</view>
</
template
>
More instructions are available in
<code>
README.md
</code>
.
</WelcomeItem>
<
script
>
export
default
{
data
()
{
return
{
<WelcomeItem>
<
template
#icon
>
<EcosystemIcon
/>
</
template
>
<
template
#heading
>
Ecosystem
</
template
>
};
}
}
</
script
>
Get official tools and libraries for your project:
<a
target=
"_blank"
href=
"https://pinia.vuejs.org/"
>
Pinia
</a>
,
<a
target=
"_blank"
href=
"https://router.vuejs.org/"
>
Vue Router
</a>
,
<a
target=
"_blank"
href=
"https://test-utils.vuejs.org/"
>
Vue Test Utils
</a>
, and
<a
target=
"_blank"
href=
"https://github.com/vuejs/devtools"
>
Vue Dev Tools
</a>
. If you need more
resources, we suggest paying
<a
target=
"_blank"
href=
"https://github.com/vuejs/awesome-vue"
>
Awesome Vue
</a>
a visit.
</WelcomeItem>
<
style
>
.body
{
margin
:
0
;
height
:
100vh
;
display
:
grid
;
place-items
:
center
;
background-color
:
#010101
;
}
.gallery
{
position
:
relative
;
width
:
300px
;
height
:
200px
;
transform-style
:
preserve-3d
;
animation
:
rotate
15s
linear
infinite
;
}
<WelcomeItem>
<
template
#icon
>
<CommunityIcon
/>
</
template
>
<
template
#heading
>
Community
</
template
>
@keyframes
rotate
{
from
{
transform
:
perspective
(
1200px
)
rotateY
(
0deg
);
}
Got stuck? Ask your question on
<a
target=
"_blank"
href=
"https://chat.vuejs.org"
>
Vue Land
</a>
, our official Discord server, or
<a
target=
"_blank"
href=
"https://stackoverflow.com/questions/tagged/vue.js"
>
StackOverflow
</a>
.
You should also subscribe to
<a
target=
"_blank"
href=
"https://news.vuejs.org"
>
our mailing list
</a>
and follow the official
<a
target=
"_blank"
href=
"https://twitter.com/vuejs"
>
@vuejs
</a>
twitter account for latest news in the Vue world.
</WelcomeItem>
to
{
transform
:
perspective
(
1200px
)
rotateY
(
360deg
);
}
}
<WelcomeItem>
<
template
#icon
>
<SupportIcon
/>
</
template
>
<
template
#heading
>
Support Vue
</
template
>
.gallery
span
{
position
:
absolute
;
width
:
100%
;
height
:
100%
;
transform-origin
:
center
;
transform-style
:
preserve-3d
;
transform
:
rotateY
(
calc
(
var
(
--i
)
*
90deg
))
translateZ
(
180px
);
}
As an independent project, Vue relies on community backing for its sustainability. You can help
us by
<a
target=
"_blank"
href=
"https://vuejs.org/sponsor/"
>
becoming a sponsor
</a>
.
</WelcomeItem>
</template>
.gallery
span
image
{
position
:
absolute
;
width
:
100%
;
height
:
100%
;
object-fit
:
cover
;
}
</
style
>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录