Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
najiu-frontend
najiu-admin-template
Commits
f96d6b22
Commit
f96d6b22
authored
Oct 20, 2020
by
vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: code style
parent
894b63b8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
7 deletions
+8
-7
index.tsx
src/components/Icon/index.tsx
+1
-2
BasicLoading.vue
src/components/Loading/BasicLoading.vue
+0
-2
FullLoading.vue
src/components/Loading/FullLoading.vue
+1
-1
index.vue
src/components/Markdown/src/index.vue
+0
-1
BasicMenu.tsx
src/components/Menu/src/BasicMenu.tsx
+1
-1
index.less
src/layouts/default/index.less
+5
-0
No files found.
src/components/Icon/index.tsx
View file @
f96d6b22
...
...
@@ -53,8 +53,6 @@ export default defineComponent({
}
};
watch
(()
=>
props
.
icon
,
update
,
{
flush
:
'
post
'
});
const
wrapStyleRef
=
computed
(():
any
=>
{
const
{
size
,
color
}
=
props
;
let
fs
=
size
;
...
...
@@ -68,6 +66,7 @@ export default defineComponent({
};
});
watch
(()
=>
props
.
icon
,
update
,
{
flush
:
'
post
'
});
onMounted
(
update
);
return
()
=>
(
...
...
src/components/Loading/BasicLoading.vue
View file @
f96d6b22
...
...
@@ -15,8 +15,6 @@
// components
import
{
defineComponent
,
computed
}
from
'
vue
'
;
// hook
import
{
SizeEnum
,
sizeMap
}
from
'
/@/enums/sizeEnum
'
;
import
{
BasicLoadingProps
}
from
'
./type
'
;
...
...
src/components/Loading/FullLoading.vue
View file @
f96d6b22
...
...
@@ -21,7 +21,6 @@
absolute
:
Boolean
as
PropType
<
boolean
>
,
},
setup
(
props
)
{
// 样式前缀
const
getStyle
=
computed
(():
any
=>
{
return
props
.
absolute
?
{
...
...
@@ -32,6 +31,7 @@
}
:
{};
});
return
{
getStyle
,
SizeEnum
};
},
});
...
...
src/components/Markdown/src/index.vue
View file @
f96d6b22
...
...
@@ -29,7 +29,6 @@
setup
(
props
,
{
attrs
,
emit
})
{
const
wrapRef
=
ref
<
Nullable
<
HTMLDivElement
>>
(
null
);
const
vditorRef
=
ref
<
Nullable
<
Vditor
>>
(
null
);
const
initedRef
=
ref
(
false
);
function
init
()
{
...
...
src/components/Menu/src/BasicMenu.tsx
View file @
f96d6b22
...
...
@@ -66,7 +66,7 @@ export default defineComponent({
offset
+=
54
;
}
return
{
height
:
`calc(100% -
${
offset
}
px)`
,
height
:
`calc(100% -
${
offset
-
30
}
px)`
,
position
:
'
relative
'
,
overflow
:
'
auto
'
,
};
...
...
src/layouts/default/index.less
View file @
f96d6b22
...
...
@@ -417,3 +417,8 @@
padding: 0 16px;
flex-grow: 1;
}
.ant-layout-sider-trigger {
height: 30px;
line-height: 30px;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment