chore: small fixes

This commit is contained in:
07akioni 2021-04-05 18:11:19 +08:00
parent 828f46c6d4
commit 7ca91014f9
4 changed files with 29 additions and 20 deletions

View File

@ -3,6 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>Naive UI</title>
<link rel="icon" type="image/svg+xml" href="/demo/assets/images/naivelogo.svg"/>
</head>

View File

@ -7,7 +7,7 @@
>
<n-grid :cols="5">
<n-gi>
<n-statistic label="Episode" value="125" />
<n-statistic label="Episodes" value="125" />
</n-gi>
<n-gi>
<n-statistic label="Guests" value="22" />

View File

@ -55,6 +55,7 @@ const ColorWandIcon = (
export default defineComponent({
name: 'ThemeEditor',
inheritAttrs: false,
setup () {
const fileInputRef = ref<HTMLInputElement | null>(null)
const { NConfigProvider } = useConfig()
@ -214,24 +215,27 @@ export default defineComponent({
{{
trigger: () => (
<NElement
style={{
position: 'fixed',
zIndex: 10,
bottom: '40px',
right: '40px',
width: '44px',
height: '44px',
fontSize: '26px',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
borderRadius: '50%',
backgroundColor: 'var(--popover-color)',
color: 'var(--text-color-2)',
transition: 'all .3s var(--cubic-bezier-ease-in-out)',
boxShadow: '0 2px 8px 0px rgba(0, 0, 0, .12)',
cursor: 'pointer'
}}
style={[
{
position: 'fixed',
zIndex: 10,
bottom: '40px',
right: '40px',
width: '44px',
height: '44px',
fontSize: '26px',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
borderRadius: '50%',
backgroundColor: 'var(--popover-color)',
color: 'var(--text-color-2)',
transition: 'all .3s var(--cubic-bezier-ease-in-out)',
boxShadow: '0 2px 8px 0px rgba(0, 0, 0, .12)',
cursor: 'pointer'
},
this.$attrs.style
]}
// @ts-expect-error
onClick={() => {
this.showPanel = !this.showPanel

View File

@ -458,7 +458,11 @@
- [ ] mention mention pending option not correct, sometimes it is not the first option
- [x] code Deprecated as of 10.7.0. highlight(lang, code, ...args) has been deprecated.
- [x] vdirs zindexable https://github.com/vuejs/vue-next/issues/3497
- [ ] collapse-item overflow
- [x] collapse-item overflow
- [ ] anchor ignore gap 有 bug
- [ ] popover click 移动端不生效
- [ ] menu path 对应的问题
- [ ] debug anchor 删除无用 link
## Build