Skip to content

Commit 2b76317

Browse files
committed
feat: Improve the prompt for screen adaptation in night mode
1 parent 758db2f commit 2b76317

File tree

1 file changed

+47
-48
lines changed

1 file changed

+47
-48
lines changed

src/components/Notice.vue

Lines changed: 47 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -3,67 +3,66 @@ const { t } = useI18n()
33
</script>
44

55
<template>
6-
<van-notice-bar
6+
<van-cell
77
class="notice"
8-
wrapable
9-
background="white"
10-
color="#323233"
118
>
12-
<i18n-t keypath="menus.adaptation-info" tag="p">
13-
<template #min>
14-
<code>min()</code>
15-
</template>
16-
<template #max>
17-
<code>max()</code>
18-
</template>
19-
<template #option>
20-
<code>maxDisplayWidth</code>
21-
</template>
22-
</i18n-t>
23-
24-
<i18n-t keypath="menus.compatibility-info" tag="p">
25-
<template #documentation>
26-
<a target="_blank" href="https://easy-temps.github.io/easy-docs/vue3-vant-mobile/browser-adaptation">{{ t("menus.doc") }}</a>
27-
</template>
28-
</i18n-t>
29-
30-
<ul>
31-
<i18n-t keypath="menus.browser-support.min-max-clamp" tag="li">
32-
<template #compat_min>
33-
<span class="yes-min">{{ t("menus.browser-support.compat") }}</span><span class="no-min">{{ t("menus.browser-support.not-compat") }}</span>
34-
</template>
9+
<template #title>
10+
<i18n-t keypath="menus.adaptation-info" tag="p">
3511
<template #min>
3612
<code>min()</code>
3713
</template>
3814
<template #max>
3915
<code>max()</code>
4016
</template>
41-
<template #clamp>
42-
<code>clamp()</code>
17+
<template #option>
18+
<code>maxDisplayWidth</code>
4319
</template>
4420
</i18n-t>
45-
<i18n-t keypath="menus.browser-support.calc" tag="li">
46-
<template #compat_calc>
47-
<span class="yes-calc">{{ t("menus.browser-support.compat") }}</span><span class="no-calc">{{ t("menus.browser-support.not-compat") }}</span>
48-
</template>
49-
<template #calc>
50-
<code>calc()</code>
51-
</template>
52-
</i18n-t>
53-
<i18n-t keypath="menus.browser-support.vw" tag="li">
54-
<template #compat_vw>
55-
<span class="yes-vw">{{ t("menus.browser-support.compat") }}</span><span class="no-vw">{{ t("menus.browser-support.not-compat") }}</span>
56-
</template>
57-
<template #vw>
58-
<code>vw</code>
21+
22+
<i18n-t keypath="menus.compatibility-info" tag="p">
23+
<template #documentation>
24+
<a target="_blank" href="https://easy-temps.github.io/easy-docs/vue3-vant-mobile/browser-adaptation">{{ t("menus.doc") }}</a>
5925
</template>
6026
</i18n-t>
61-
</ul>
6227

63-
<p class="show">
64-
{{ t('menus.consider-compatibility') }}
65-
</p>
66-
</van-notice-bar>
28+
<ul>
29+
<i18n-t keypath="menus.browser-support.min-max-clamp" tag="li">
30+
<template #compat_min>
31+
<span class="yes-min">{{ t("menus.browser-support.compat") }}</span><span class="no-min">{{ t("menus.browser-support.not-compat") }}</span>
32+
</template>
33+
<template #min>
34+
<code>min()</code>
35+
</template>
36+
<template #max>
37+
<code>max()</code>
38+
</template>
39+
<template #clamp>
40+
<code>clamp()</code>
41+
</template>
42+
</i18n-t>
43+
<i18n-t keypath="menus.browser-support.calc" tag="li">
44+
<template #compat_calc>
45+
<span class="yes-calc">{{ t("menus.browser-support.compat") }}</span><span class="no-calc">{{ t("menus.browser-support.not-compat") }}</span>
46+
</template>
47+
<template #calc>
48+
<code>calc()</code>
49+
</template>
50+
</i18n-t>
51+
<i18n-t keypath="menus.browser-support.vw" tag="li">
52+
<template #compat_vw>
53+
<span class="yes-vw">{{ t("menus.browser-support.compat") }}</span><span class="no-vw">{{ t("menus.browser-support.not-compat") }}</span>
54+
</template>
55+
<template #vw>
56+
<code>vw</code>
57+
</template>
58+
</i18n-t>
59+
</ul>
60+
61+
<p class="show">
62+
{{ t('menus.consider-compatibility') }}
63+
</p>
64+
</template>
65+
</van-cell>
6766
</template>
6867

6968
<style scoped>

0 commit comments

Comments
 (0)