release 4.0.0
parent
8b5d71663a
commit
10f990d534
1377
CHANGELOG.en-US.md
1377
CHANGELOG.en-US.md
File diff suppressed because it is too large
Load Diff
1376
CHANGELOG.zh-CN.md
1376
CHANGELOG.zh-CN.md
File diff suppressed because it is too large
Load Diff
|
@ -68,6 +68,7 @@ export default defineComponent({
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.logo {
|
.logo {
|
||||||
width: 80px;
|
width: 80px;
|
||||||
|
|
|
@ -16,11 +16,9 @@
|
||||||
|
|
||||||
<CloseOutlined class="close-icon" @click="visibleAdblockBanner = false" />
|
<CloseOutlined class="close-icon" @click="visibleAdblockBanner = false" />
|
||||||
</div> -->
|
</div> -->
|
||||||
<div v-if="visibleAlertBanner && isZhCN" class="alert-banner">
|
<div class="alert-banner">
|
||||||
Surely Form 2.0 发布,快速定制自己的问卷平台
|
Surely Form AI 助手内测开放申请
|
||||||
<a href="https://form.antdv.com">立即体验</a>
|
<a target="_blank" href="https://form.antdv.com">立即申请</a>
|
||||||
|
|
||||||
<CloseOutlined class="close-icon" @click="visibleAlertBanner = false" />
|
|
||||||
</div>
|
</div>
|
||||||
<a-popover
|
<a-popover
|
||||||
v-model:open="menuVisible"
|
v-model:open="menuVisible"
|
||||||
|
@ -48,6 +46,34 @@
|
||||||
<Menu v-if="!isMobile" />
|
<Menu v-if="!isMobile" />
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
<a-modal
|
||||||
|
title="新版发布,邀您体验"
|
||||||
|
:visible="visibleAlertBanner"
|
||||||
|
:footer="null"
|
||||||
|
@update:open="visibleAlertBanner = false"
|
||||||
|
>
|
||||||
|
<ul>
|
||||||
|
<li class="alert-list-item">
|
||||||
|
<strong>Ant Design Vue 4</strong>
|
||||||
|
:五大新组件,全新 Design Token
|
||||||
|
</li>
|
||||||
|
<li class="alert-list-item">
|
||||||
|
<strong>Surely Form</strong>
|
||||||
|
:全新主题编辑, AI 问卷开放内测申请
|
||||||
|
<a target="_blank" href="https://form.antdv.com">立即体验</a>
|
||||||
|
</li>
|
||||||
|
<li class="alert-list-item">
|
||||||
|
<strong>Surely Table</strong>
|
||||||
|
:支持高性能编辑模式了
|
||||||
|
<a target="_blank" href="https://www.surely.cool/">立即体验</a>
|
||||||
|
</li>
|
||||||
|
<li class="alert-list-item">
|
||||||
|
<strong>Admin Pro</strong>
|
||||||
|
:已同步更新 v4 版本
|
||||||
|
<a target="_blank" href="https://store.antdv.com/pro/preview/workplace">立即体验</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</a-modal>
|
||||||
</header>
|
</header>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
@ -58,7 +84,7 @@ import { computed, defineComponent, inject, onMounted, ref, watch } from 'vue';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
import Logo from './Logo.vue';
|
import Logo from './Logo.vue';
|
||||||
import Menu from './Menu.vue';
|
import Menu from './Menu.vue';
|
||||||
import { UnorderedListOutlined, CloseOutlined } from '@ant-design/icons-vue';
|
import { UnorderedListOutlined } from '@ant-design/icons-vue';
|
||||||
import SearchBox from './SearchBox.vue';
|
import SearchBox from './SearchBox.vue';
|
||||||
import { version } from 'ant-design-vue';
|
import { version } from 'ant-design-vue';
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
|
@ -67,10 +93,13 @@ export default defineComponent({
|
||||||
Menu,
|
Menu,
|
||||||
UnorderedListOutlined,
|
UnorderedListOutlined,
|
||||||
SearchBox,
|
SearchBox,
|
||||||
CloseOutlined,
|
// CloseOutlined,
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
const cancelButtonProps: any = {
|
||||||
|
style: { display: 'none' },
|
||||||
|
};
|
||||||
const globalConfig = inject<GlobalConfig>(GLOBAL_CONFIG);
|
const globalConfig = inject<GlobalConfig>(GLOBAL_CONFIG);
|
||||||
const isHome = computed(() => {
|
const isHome = computed(() => {
|
||||||
return ['', 'index', 'index-cn'].includes(route.path);
|
return ['', 'index', 'index-cn'].includes(route.path);
|
||||||
|
@ -128,10 +157,11 @@ export default defineComponent({
|
||||||
watch(globalConfig?.blocked, val => {
|
watch(globalConfig?.blocked, val => {
|
||||||
visibleAdblockBanner.value = val;
|
visibleAdblockBanner.value = val;
|
||||||
});
|
});
|
||||||
const visibleAlertBanner = ref(!localStorage.getItem('surelyform_v2'));
|
const alertKey = 'ant-design-vue-4-alert';
|
||||||
|
const visibleAlertBanner = ref(!localStorage.getItem(alertKey));
|
||||||
watch(visibleAlertBanner, () => {
|
watch(visibleAlertBanner, () => {
|
||||||
if (!visibleAlertBanner.value) {
|
if (!visibleAlertBanner.value) {
|
||||||
localStorage.setItem('surelyform_v2', version);
|
localStorage.setItem(alertKey, version);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
|
@ -148,6 +178,7 @@ export default defineComponent({
|
||||||
menuVisible,
|
menuVisible,
|
||||||
onTriggerSearching,
|
onTriggerSearching,
|
||||||
visibleAlertBanner,
|
visibleAlertBanner,
|
||||||
|
cancelButtonProps,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -180,4 +211,7 @@ export default defineComponent({
|
||||||
top: 15px;
|
top: 15px;
|
||||||
right: 15px;
|
right: 15px;
|
||||||
}
|
}
|
||||||
|
.alert-list-item {
|
||||||
|
padding: 8px 0;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue