Skip to content

Commit bd05e22

Browse files
author
undefined
committed
docs: add qq & form
1 parent 57cbd63 commit bd05e22

File tree

6 files changed

+98
-43
lines changed

6 files changed

+98
-43
lines changed

src/components/header.jsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,14 @@ export default {
232232
<a>{isCN ? '微信' : 'WeChat'}</a>
233233
</a-popover>
234234
</a-menu-item>
235-
<a-menu-item key="qq">
236-
<a>QQ 群1:217490093(3000人已满)</a>
237-
<a>QQ 群2:809774695</a>
235+
<a-menu-item key="qq1">
236+
<a>QQ 1群(217490093) 已满</a>
237+
</a-menu-item>
238+
<a-menu-item key="qq2">
239+
<a>QQ 2群(809774695) 已满</a>
240+
</a-menu-item>
241+
<a-menu-item key="qq3">
242+
<a>QQ 3群(927828249)</a>
238243
</a-menu-item>
239244
</a-sub-menu>
240245
</a-menu>

src/components/surelyVue.vue

Lines changed: 48 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,38 @@
11
<template>
2-
<a href="https://www.surely.cool/" target="_blank">
3-
<div :class="cls">
4-
<div class="logo">
5-
<img height="80" src="https://www.surely.cool/surely-vue-logo.png" alt="" />
6-
</div>
7-
<div class="desc">
8-
<div class="title">Surely Vue</div>
9-
<div class="sub-title">
10-
构建更快的网站
11-
<br />
12-
更快的构建网站
2+
<div class="container">
3+
<a-carousel autoplay>
4+
<a style="display: inline-block" href="https://form.antdv.com/" target="_blank">
5+
<div :class="cls">
6+
<div class="logo">
7+
<img height="80" src="https://aliyuncdn.antdv.com/form/static/logo-blue.png" alt="" />
8+
</div>
9+
<div class="desc">
10+
<!-- <div class="title">Surely Form</div> -->
11+
<div class="sub-title">
12+
<strong>雪梨表单、为您定制</strong>
13+
<br />
14+
专属的调研,投票、NPS、报名等系统
15+
</div>
16+
</div>
1317
</div>
14-
</div>
15-
</div>
16-
</a>
18+
</a>
19+
<a style="display: inline-block" href="https://www.surely.cool/" target="_blank">
20+
<div :class="cls">
21+
<div class="logo">
22+
<img height="80" src="https://www.surely.cool/surely-vue-logo.png" alt="" />
23+
</div>
24+
<div class="desc">
25+
<div class="title">Surely Table</div>
26+
<div class="sub-title">
27+
构建更快的网站
28+
<br />
29+
更快的构建网站
30+
</div>
31+
</div>
32+
</div>
33+
</a>
34+
</a-carousel>
35+
</div>
1736
<div class="placeholder"></div>
1837
</template>
1938
<script lang="ts">
@@ -34,23 +53,33 @@ export default defineComponent({
3453
});
3554
</script>
3655
<style scoped>
37-
.wrap {
38-
display: flex;
39-
background-color: #f4f8fa;
40-
padding: 10px 30px;
56+
.container {
4157
position: absolute;
4258
top: 0;
4359
left: 0;
4460
z-index: 9;
4561
width: 100%;
4662
height: 100px;
63+
}
64+
.wrap {
65+
display: flex;
66+
background-color: #f4f8fa;
67+
padding: 8px 16px;
68+
width: 100%;
69+
height: 100px;
4770
overflow: hidden;
4871
}
72+
.logo {
73+
width: 80px;
74+
display: flex;
75+
align-items: center;
76+
justify-content: center;
77+
}
4978
.placeholder {
5079
height: 100px;
5180
}
5281
.desc {
53-
margin-left: 20px;
82+
margin-left: 16px;
5483
overflow: hidden;
5584
color: rgba(0, 0, 0, 0.85);
5685
font-family: Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',

src/i18n.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import zhCN from './locale/zh-CN';
44
import { isZhCN } from './utils/util';
55

66
const i18n = createI18n({
7-
legacy: true,
7+
legacy: false,
88
locale: isZhCN(location.pathname) ? 'zh-CN' : 'en-US',
99
fallbackLocale: 'en-US',
1010
messages: {

src/layouts/header/Ecosystem.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,13 @@
3232
</a-popover>
3333
</a-menu-item>
3434
<a-menu-item key="qq1">
35-
<a>QQ 1群(217490093)</a>
35+
<a>QQ 1群(217490093) 已满</a>
3636
</a-menu-item>
3737
<a-menu-item key="qq2">
38-
<a>QQ 2群(809774695)</a>
38+
<a>QQ 2群(809774695) 已满</a>
39+
</a-menu-item>
40+
<a-menu-item key="qq3">
41+
<a>QQ 3群(927828249)</a>
3942
</a-menu-item>
4043
</a-menu-item-group>
4144
</a-menu>

src/layouts/header/Navigation.vue

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,35 @@
1010
{{ $t('app.header.menu.components') }}
1111
</router-link>
1212
</a-menu-item>
13-
<a-menu-item v-if="isZhCN" key="surely-vue">
14-
<a
15-
href="https://www.surely.cool"
16-
target="_blank"
17-
rel="noopener noreferrer"
18-
style="position: relative"
19-
>
20-
高级组件
21-
<a-badge color="red" style="position: absolute; top: -35px; right: -15px" />
22-
</a>
23-
</a-menu-item>
13+
<a-sub-menu v-if="isZhCN" key="advanced">
14+
<template #title>
15+
<span style="position: relative">
16+
高级组件
17+
<a-badge color="red" style="position: absolute; top: -35px; right: -15px" />
18+
</span>
19+
</template>
20+
<a-menu-item key="surely-table">
21+
<a
22+
href="https://www.surely.cool"
23+
target="_blank"
24+
rel="noopener noreferrer"
25+
style="position: relative"
26+
>
27+
Surely Table
28+
</a>
29+
</a-menu-item>
30+
<a-menu-item key="surely-form">
31+
<a
32+
href="https://form.antdv.com"
33+
target="_blank"
34+
rel="noopener noreferrer"
35+
style="position: relative"
36+
>
37+
Surely Form
38+
<a-badge color="red" style="position: absolute; top: -18px; right: -15px" />
39+
</a>
40+
</a-menu-item>
41+
</a-sub-menu>
2442
<a-menu-item key="store">
2543
<a
2644
href="https://store.antdv.com/pro/"

src/layouts/header/index.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@
1919

2020
<div v-if="isZhCN && showTopBanner" class="global-notification">
2121
<span>
22-
v3 版本已发布,请访问 &nbsp;&nbsp;
23-
<a href="https://next.antdv.com/" target="_blank">next.antdv.com</a>
24-
&nbsp;&nbsp;查看更多详情
22+
Surely Form 私有化部署专属的调研,投票、NPS、报名等系统,访问 &nbsp;&nbsp;
23+
<a href="https://form.antdv.com/" target="_blank">form.antdv.com</a>
24+
&nbsp;&nbsp;立即体验
2525
</span>
2626
<CloseOutlined
2727
class="close-icon"
2828
style="position: absolute; top: 13px; right: 15px"
29-
@click="handleClose('next')"
29+
@click="handleClose('surelyform')"
3030
/>
3131
</div>
32-
<div v-if="!isZhCN && showTopBanner" class="global-notification">
32+
<!-- <div v-if="!isZhCN && showTopBanner" class="global-notification">
3333
<span>
3434
v3 beta is out! Discover more about it on &nbsp;
3535
<a href="https://next.antdv.com/" target="_blank">next.antdv.com</a>
@@ -40,7 +40,7 @@
4040
style="position: absolute; top: 8px; right: 15px"
4141
@click="handleClose('next')"
4242
/>
43-
</div>
43+
</div> -->
4444
<a-popover
4545
overlayClassName="popover-menu"
4646
placement="bottomRight"
@@ -86,7 +86,7 @@ export default defineComponent({
8686
const isHome = computed(() => {
8787
return ['', 'index', 'index-cn'].includes(route.path);
8888
});
89-
const showTopBanner = ref(!localStorage.getItem('notification-key-next'));
89+
const showTopBanner = ref(!localStorage.getItem('notification-key-surelyform'));
9090
const handleClose = key => {
9191
localStorage.removeItem(`notification-key-${key}`);
9292
localStorage.setItem(`notification-key-${key}`, key);

0 commit comments

Comments
 (0)