style: lint fix

This commit is contained in:
张传龙 2022-05-06 22:36:22 +08:00
parent 5b51cfb4f1
commit 598d256be4
3 changed files with 16 additions and 4 deletions

View File

@ -3,7 +3,10 @@
<div
ref="tagsContent"
class="tags-content"
:style="{ height: useTheme.tags.height + 'px', transform: `translateX(${translateX}px)` }"
:style="{
height: useTheme.tags.height + 'px',
transform: `translateX(${translateX}px)`,
}"
:wrap="false"
>
<n-tag

View File

@ -11,7 +11,10 @@
<n-layout style="background-color: #f5f6fb" :style="`height: calc(100% - ${useTheme.header.height}px)`">
<AppTags v-if="useTheme.tags.visible" />
<AppMain
:style="{ height: `calc(100% - ${useTheme.tags.visible ? useTheme.tags.height : 0}px)`, overflow: 'auto' }"
:style="{
height: `calc(100% - ${useTheme.tags.visible ? useTheme.tags.height : 0}px)`,
overflow: 'auto',
}"
/>
</n-layout>
</n-layout>

View File

@ -1,9 +1,15 @@
import { createWebStorage } from './web-storage'
export const createLocalStorage = function (option = {}) {
return createWebStorage({ prefixKey: option.prefixKey || '', storage: localStorage })
return createWebStorage({
prefixKey: option.prefixKey || '',
storage: localStorage,
})
}
export const createSessionStorage = function (option = {}) {
return createWebStorage({ prefixKey: option.prefixKey || '', storage: sessionStorage })
return createWebStorage({
prefixKey: option.prefixKey || '',
storage: sessionStorage,
})
}