fix: 修复暗色模式下部分显示问题
This commit is contained in:
parent
c58605de54
commit
a4531be904
@ -3,7 +3,7 @@
|
|||||||
<header v-if="showHeader" px-15 mb-15 min-h-45 flex justify-between items-center>
|
<header v-if="showHeader" px-15 mb-15 min-h-45 flex justify-between items-center>
|
||||||
<slot v-if="$slots.header" name="header" />
|
<slot v-if="$slots.header" name="header" />
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<h2 color="#333" text-22 font-normal>{{ title || route.meta?.title }}</h2>
|
<h2 text-22 font-normal text-hex-333 dark:text-hex-ccc>{{ title || route.meta?.title }}</h2>
|
||||||
<slot name="action" />
|
<slot name="action" />
|
||||||
</template>
|
</template>
|
||||||
</header>
|
</header>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div min-h-60 p-15 flex items-start justify-between b-1 bc-ccc rounded-8 bg="#fafafc">
|
<div min-h-60 p-15 flex items-start justify-between b-1 bc-ccc rounded-8 bg="#fafafc" dark:bg-black>
|
||||||
<n-space wrap :size="[35, 15]">
|
<n-space wrap :size="[35, 15]">
|
||||||
<slot />
|
<slot />
|
||||||
</n-space>
|
</n-space>
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<CommonPage>
|
<CommonPage>
|
||||||
<div h-60 pl-20 pr-20 flex items-center bg-white>
|
<div h-60 pl-20 pr-20 flex items-center bg-white dark:bg-dark>
|
||||||
<input
|
<input
|
||||||
v-model="post.title"
|
v-model="post.title"
|
||||||
class="flex-1 pt-15 pb-15 mr-20 text-20 font-bold color-primary"
|
class="flex-1 pt-15 pb-15 mr-20 text-20 font-bold color-primary"
|
||||||
|
dark:bg-dark
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="输入文章标题..."
|
placeholder="输入文章标题..."
|
||||||
/>
|
/>
|
||||||
@ -11,7 +12,7 @@
|
|||||||
<TheIcon v-if="!btnLoading" icon="line-md:confirm-circle" class="mr-5" :size="18" /> 保存
|
<TheIcon v-if="!btnLoading" icon="line-md:confirm-circle" class="mr-5" :size="18" /> 保存
|
||||||
</n-button>
|
</n-button>
|
||||||
</div>
|
</div>
|
||||||
<MdEditor v-model="post.content" style="height: calc(100vh - 305px)" />
|
<MdEditor v-model="post.content" style="height: calc(100vh - 305px)" dark:bg-dark />
|
||||||
</CommonPage>
|
</CommonPage>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<AppPage>
|
<AppPage>
|
||||||
<div h-full flex-col border-1 bc-ccc>
|
<div h-full flex-col border-1 bc-ccc dark:bg-dark>
|
||||||
<WangToolbar border-b bc-ccc :editor="editorRef" :default-config="toolbarConfig" mode="default" />
|
<WangToolbar border-b bc-ccc :editor="editorRef" :default-config="toolbarConfig" mode="default" />
|
||||||
<WangEditor
|
<WangEditor
|
||||||
v-model="valueHtml"
|
v-model="valueHtml"
|
||||||
@ -27,3 +27,15 @@ const handleCreated = (editor) => {
|
|||||||
editorRef.value = editor
|
editorRef.value = editor
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
html.dark {
|
||||||
|
--w-e-textarea-bg-color: #333;
|
||||||
|
--w-e-textarea-color: #fff;
|
||||||
|
--w-e-toolbar-bg-color: #333;
|
||||||
|
--w-e-toolbar-color: #fff;
|
||||||
|
--w-e-toolbar-active-bg-color: #666;
|
||||||
|
--w-e-toolbar-active-color: #fff;
|
||||||
|
/* ...其他... */
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
<div
|
<div
|
||||||
style="transform: translateY(25px)"
|
style="transform: translateY(25px)"
|
||||||
class="m-auto p-15 f-c-c min-w-345 max-w-700 rounded-10 card-shadow bg-white bg-opacity-60"
|
class="m-auto p-15 f-c-c min-w-345 max-w-700 rounded-10 card-shadow bg-white bg-opacity-60"
|
||||||
|
dark:bg-dark
|
||||||
>
|
>
|
||||||
<div w-380 hidden md:block px-20 py-35>
|
<div w-380 hidden md:block px-20 py-35>
|
||||||
<img src="@/assets/images/login_banner.webp" w-full alt="login_banner" />
|
<img src="@/assets/images/login_banner.webp" w-full alt="login_banner" />
|
||||||
|
Loading…
Reference in New Issue
Block a user