🐛(component): 恢复 provider 组件
This commit is contained in:
parent
f7ebab3b9c
commit
80a793d151
@ -15,7 +15,6 @@ import {
|
|||||||
auto as followSystemColorScheme,
|
auto as followSystemColorScheme,
|
||||||
setFetchMethod,
|
setFetchMethod,
|
||||||
} from "@umijs/ssr-darkreader";
|
} from "@umijs/ssr-darkreader";
|
||||||
import { v4 as uuidv4 } from "../utils/guidUtil";
|
|
||||||
|
|
||||||
export interface LayConfigProviderProps {
|
export interface LayConfigProviderProps {
|
||||||
locale?: string;
|
locale?: string;
|
||||||
@ -30,8 +29,6 @@ const props = withDefaults(defineProps<LayConfigProviderProps>(), {
|
|||||||
theme: "light",
|
theme: "light",
|
||||||
});
|
});
|
||||||
|
|
||||||
const id = uuidv4();
|
|
||||||
|
|
||||||
const { locale, setLocaleMessage, mergeLocaleMessage } = useI18n();
|
const { locale, setLocaleMessage, mergeLocaleMessage } = useI18n();
|
||||||
|
|
||||||
const ignoreInlineStyle = [
|
const ignoreInlineStyle = [
|
||||||
@ -133,7 +130,5 @@ watch(
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div :id="id">
|
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
>{{ t("home.download") }}:<em class="site-showdowns"
|
>{{ t("home.download") }}:<em class="site-showdowns"
|
||||||
>16,297</em
|
>14,684</em
|
||||||
></span
|
></span
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
@ -43,7 +43,7 @@
|
|||||||
rel="nofollow"
|
rel="nofollow"
|
||||||
class="site-star"
|
class="site-star"
|
||||||
>
|
>
|
||||||
<i class="layui-icon"></i> Star <cite id="getStars">1326</cite>
|
<i class="layui-icon"></i> Star <cite id="getStars">1296</cite>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
href="https://gitee.com/layui-vue"
|
href="https://gitee.com/layui-vue"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user