style: lint fix
This commit is contained in:
parent
5b51cfb4f1
commit
598d256be4
@ -3,7 +3,10 @@
|
|||||||
<div
|
<div
|
||||||
ref="tagsContent"
|
ref="tagsContent"
|
||||||
class="tags-content"
|
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"
|
:wrap="false"
|
||||||
>
|
>
|
||||||
<n-tag
|
<n-tag
|
||||||
|
@ -11,7 +11,10 @@
|
|||||||
<n-layout style="background-color: #f5f6fb" :style="`height: calc(100% - ${useTheme.header.height}px)`">
|
<n-layout style="background-color: #f5f6fb" :style="`height: calc(100% - ${useTheme.header.height}px)`">
|
||||||
<AppTags v-if="useTheme.tags.visible" />
|
<AppTags v-if="useTheme.tags.visible" />
|
||||||
<AppMain
|
<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>
|
||||||
</n-layout>
|
</n-layout>
|
||||||
|
10
src/utils/cache/index.js
vendored
10
src/utils/cache/index.js
vendored
@ -1,9 +1,15 @@
|
|||||||
import { createWebStorage } from './web-storage'
|
import { createWebStorage } from './web-storage'
|
||||||
|
|
||||||
export const createLocalStorage = function (option = {}) {
|
export const createLocalStorage = function (option = {}) {
|
||||||
return createWebStorage({ prefixKey: option.prefixKey || '', storage: localStorage })
|
return createWebStorage({
|
||||||
|
prefixKey: option.prefixKey || '',
|
||||||
|
storage: localStorage,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export const createSessionStorage = function (option = {}) {
|
export const createSessionStorage = function (option = {}) {
|
||||||
return createWebStorage({ prefixKey: option.prefixKey || '', storage: sessionStorage })
|
return createWebStorage({
|
||||||
|
prefixKey: option.prefixKey || '',
|
||||||
|
storage: sessionStorage,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user