Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gitcode_dev
开源百科
提交
0aee2245
开
开源百科
项目概览
gitcode_dev
/
开源百科
通知
253
Star
3
Fork
3
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
17
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
代码片段
项目成员
Pages
开
开源百科
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
17
Issue
17
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0aee2245
编写于
11月 20, 2020
作者:
X
xjh22222228
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
style: search input
上级
678b78be
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
24 addition
and
18 deletion
+24
-18
data/frontend/vue.ts
data/frontend/vue.ts
+1
-14
src/components/search-engine/search-engine.component.html
src/components/search-engine/search-engine.component.html
+1
-1
src/components/search-engine/search-engine.component.scss
src/components/search-engine/search-engine.component.scss
+11
-1
src/components/search-engine/search-engine.component.ts
src/components/search-engine/search-engine.component.ts
+11
-2
未找到文件。
data/frontend/vue.ts
浏览文件 @
0aee2245
export
default
{
title
:
'
vue.js
'
,
icon
:
'
https://v3.vuejs.org/images/icons/apple-icon-152x152.png
'
,
nav
:
[
{
title
:
'
生态系统
'
,
nav
:
[
{
icon
:
'
https://v3.vuejs.org/images/icons/apple-icon-152x152.png
'
,
name
:
'
Vue.js
'
,
desc
:
'
渐进式JavaScript 框架
'
,
link
:
'
https://cn.vuejs.org/
'
,
...
...
@@ -16,7 +16,6 @@ export default {
]
},
{
icon
:
'
https://v3.vuejs.org/images/icons/apple-icon-152x152.png
'
,
name
:
'
Vue Router
'
,
desc
:
'
Vue Router 是 Vue.js 官方的路由管理器
'
,
link
:
'
https://router.vuejs.org/zh/
'
,
...
...
@@ -27,7 +26,6 @@ export default {
]
},
{
icon
:
'
https://v3.vuejs.org/images/icons/apple-icon-152x152.png
'
,
name
:
'
Vuex
'
,
desc
:
'
Vuex 是一个专为 Vue.js 应用程序开发的状态管理模式。
'
,
link
:
'
https://vuex.vuejs.org/zh/
'
,
...
...
@@ -38,7 +36,6 @@ export default {
]
},
{
icon
:
'
https://v3.vuejs.org/images/icons/apple-icon-152x152.png
'
,
name
:
'
vue-devtools
'
,
desc
:
'
vue.js调试工具
'
,
link
:
'
https://chrome.google.com/webstore/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd
'
,
...
...
@@ -49,7 +46,6 @@ export default {
]
},
{
icon
:
'
assets/icon/frontend/4.png
'
,
name
:
'
vue-cli
'
,
desc
:
'
Vue.js开发的标准脚手架工具
'
,
link
:
'
https://cli.vuejs.org/zh/
'
,
...
...
@@ -60,7 +56,6 @@ export default {
]
},
{
icon
:
'
assets/icon/frontend/028.png
'
,
name
:
'
vuepress
'
,
desc
:
'
Vue 驱动的静态网站生成器
'
,
link
:
'
https://vuepress.vuejs.org/zh/
'
,
...
...
@@ -71,7 +66,6 @@ export default {
]
},
{
icon
:
'
https://v3.vuejs.org/images/icons/apple-icon-152x152.png
'
,
name
:
'
Vue SSR
'
,
desc
:
'
Vue服务端渲染、SEO解决方案
'
,
link
:
'
https://vuepress.vuejs.org/zh/
'
,
...
...
@@ -82,13 +76,11 @@ export default {
]
},
{
icon
:
'
https://v3.vuejs.org/images/icons/apple-icon-152x152.png
'
,
name
:
'
vue-class-component
'
,
desc
:
'
用于类式Vue组件的ECMAScript / TypeScript装饰器。
'
,
link
:
'
https://github.com/vuejs/vue-class-component
'
,
},
{
icon
:
'
https://v3.vuejs.org/images/icons/apple-icon-152x152.png
'
,
name
:
'
eslint-plugin-vue
'
,
desc
:
'
Vue.js的官方ESLint插件
'
,
link
:
'
https://eslint.vuejs.org/
'
,
...
...
@@ -99,13 +91,11 @@ export default {
]
},
{
icon
:
'
https://v3.vuejs.org/images/icons/apple-icon-152x152.png
'
,
name
:
'
vite
'
,
desc
:
'
Vite是一个经过验证的Web开发人员构建工具,可在开发过程中通过本机ES模块导入为您的代码提供服务,并将其与Rollup捆绑在一起进行生产
'
,
link
:
'
https://github.com/vitejs/vite
'
,
},
{
icon
:
'
https://v3.vuejs.org/images/icons/apple-icon-152x152.png
'
,
name
:
'
Vue 组合式 API
'
,
desc
:
'
Vue 组合式 API在线文档阅读
'
,
link
:
'
https://composition-api.vuejs.org/zh
'
,
...
...
@@ -291,13 +281,11 @@ export default {
]
},
{
icon
:
'
https://v3.vuejs.org/images/icons/apple-icon-152x152.png
'
,
name
:
'
vue-meta
'
,
desc
:
'
管理Vue 2.0组件中的页面元信息。支持SSR + Streaming
'
,
link
:
'
https://github.com/nuxt/vue-meta
'
,
},
{
icon
:
'
https://v3.vuejs.org/images/icons/apple-icon-152x152.png
'
,
name
:
'
vue-scroller
'
,
desc
:
'
Vue Scroller是Vonic UI 的基础组件。为了平滑滚动,拉动刷新和无限加载。
'
,
link
:
'
https://wangdahoo.github.io/vue-scroller/#/
'
,
...
...
@@ -308,7 +296,6 @@ export default {
]
},
{
icon
:
'
https://v3.vuejs.org/images/icons/apple-icon-152x152.png
'
,
name
:
'
vue-infinite-loading
'
,
desc
:
'
Vue.js的无限滚动插件(支持向上和向下)
'
,
link
:
'
https://peachscript.github.io/vue-infinite-loading/zh/
'
,
...
...
src/components/search-engine/search-engine.component.html
浏览文件 @
0aee2245
...
...
@@ -2,7 +2,7 @@
<div
class=
"input-wrapper"
>
<div
class=
"left-icon"
(click)=
"toggleEngine()"
(click)=
"toggleEngine(
$event
)"
[ngStyle]=
"{ 'background-image': 'url(' + currentEngine.icon + ')' }"
>
</div>
...
...
src/components/search-engine/search-engine.component.scss
浏览文件 @
0aee2245
...
...
@@ -11,7 +11,7 @@ $width: 500px;
width
:
$width
;
height
:
40px
;
background
:
#fff
;
border-radius
:
1
5px
;
border-radius
:
5px
;
border
:
1px
solid
#ccc
;
overflow
:
hidden
;
...
...
@@ -22,10 +22,20 @@ $width: 500px;
padding-right
:
50px
;
border-color
:
transparent
;
font-size
:
16px
;
transition
:
all
.3s
;
&
::placeholder
{
font-size
:
14px
;
}
&
:hover
{
border-color
:
#40a9ff
;
}
&
:focus
{
border-color
:
#40a9ff
;
box-shadow
:
0
0
0
2px
rgba
(
24
,
144
,
255
,
0
.2
);
}
}
.left-icon
{
...
...
src/components/search-engine/search-engine.component.ts
浏览文件 @
0aee2245
...
...
@@ -26,10 +26,19 @@ export class SearchEngineComponent implements OnInit {
if
(
inputEl
)
{
inputEl
.
focus
()
}
document
.
addEventListener
(
'
click
'
,
()
=>
{
this
.
toggleEngine
(
null
,
false
)
})
}
toggleEngine
()
{
this
.
showEngine
=
!
this
.
showEngine
toggleEngine
(
e
?:
Event
,
isShow
?:
boolean
)
{
if
(
e
)
{
e
.
stopPropagation
()
}
this
.
showEngine
=
typeof
isShow
===
'
undefined
'
?
!
this
.
showEngine
:
isShow
}
clickEngineItem
(
index
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录