Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jxf111348
vue-vben-admin
提交
e9c28319
V
vue-vben-admin
项目概览
jxf111348
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-vben-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e9c28319
编写于
12月 09, 2020
作者:
V
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: perf style
上级
a0b05e77
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
39 addition
and
19 deletion
+39
-19
src/components/Basic/src/BasicArrow.vue
src/components/Basic/src/BasicArrow.vue
+15
-9
src/components/Basic/src/BasicHelp.vue
src/components/Basic/src/BasicHelp.vue
+7
-3
src/components/Basic/src/BasicTitle.vue
src/components/Basic/src/BasicTitle.vue
+9
-3
src/components/ClickOutSide/src/index.vue
src/components/ClickOutSide/src/index.vue
+4
-4
src/layouts/default/multitabs/index.tsx
src/layouts/default/multitabs/index.tsx
+4
-0
未找到文件。
src/components/Basic/src/BasicArrow.vue
浏览文件 @
e9c28319
...
...
@@ -11,6 +11,7 @@
import
{
defineComponent
,
computed
}
from
'
vue
'
;
import
{
RightOutlined
}
from
'
@ant-design/icons-vue
'
;
import
{
propTypes
}
from
'
/@/utils/propTypes
'
;
import
{
useDesign
}
from
'
/@/hooks/web/useDesign
'
;
export
default
defineComponent
({
name
:
'
BasicArrow
'
,
...
...
@@ -23,12 +24,14 @@
inset
:
propTypes
.
bool
,
},
setup
(
props
)
{
const
{
prefixCls
}
=
useDesign
(
'
basic-arrow
'
);
const
getClass
=
computed
(()
=>
{
const
{
expand
,
top
,
bottom
,
inset
}
=
props
;
return
[
'
base-arrow
'
,
prefixCls
,
{
'
base-arrow__active
'
:
expand
,
[
`
${
prefixCls
}
--active`
]
:
expand
,
top
,
inset
,
bottom
,
...
...
@@ -43,18 +46,21 @@
});
</
script
>
<
style
lang=
"less"
scoped
>
.base-arrow {
@import (reference) '../../../design/index.less';
@prefix-cls: ~'@{namespace}-basic-arrow';
.@{prefix-cls} {
display: inline-block;
transform: rotate(0deg);
transition: all 0.3s ease 0.1s;
transform-origin: center center;
&
.inset
{
line-height: 0px
;
&
--active
{
transform: rotate(90deg)
;
}
&
__active
{
transform: rotate(90deg)
;
&
.inset
{
line-height: 0px
;
}
&.top {
...
...
@@ -65,11 +71,11 @@
transform: rotate(90deg);
}
&.top.
base-arrow__
active {
&.top.
@{prefix-cls}--
active {
transform: rotate(90deg);
}
&.bottom.
base-arrow__
active {
&.bottom.
@{prefix-cls}--
active {
transform: rotate(-90deg);
}
}
...
...
src/components/Basic/src/BasicHelp.vue
浏览文件 @
e9c28319
...
...
@@ -9,6 +9,7 @@
import
{
isString
,
isArray
}
from
'
/@/utils/is
'
;
import
{
getSlot
}
from
'
/@/utils/helper/tsxHelper
'
;
import
{
propTypes
}
from
'
/@/utils/propTypes
'
;
import
{
useDesign
}
from
'
/@/hooks/web/useDesign
'
;
export
default
defineComponent
({
name
:
'
BasicHelp
'
,
components
:
{
Tooltip
},
...
...
@@ -37,6 +38,8 @@
},
},
setup
(
props
,
{
slots
})
{
const
{
prefixCls
}
=
useDesign
(
'
basic-help
'
);
const
getOverlayStyleRef
=
computed
(
():
CSSProperties
=>
{
return
{
...
...
@@ -86,7 +89,7 @@
},
[
renderTitle
()]
),
overlayClassName
:
'
base-help__wrap
'
,
overlayClassName
:
`
${
prefixCls
}
__wrap`
,
autoAdjustOverflow
:
true
,
overlayStyle
:
unref
(
getOverlayStyleRef
),
placement
:
props
.
placement
,
...
...
@@ -97,7 +100,7 @@
h
(
'
span
'
,
{
class
:
'
base-help
'
,
class
:
prefixCls
,
style
:
unref
(
getMainStyleRef
),
},
getSlot
(
slots
)
||
h
(
InfoCircleOutlined
)
...
...
@@ -110,8 +113,9 @@
</
script
>
<
style
lang=
"less"
>
@import (reference) '../../../design/index.less';
@prefix-cls: ~'@{namespace}-basic-help';
.
base-help
{
.
@{prefix-cls}
{
display: inline-block;
margin-left: 6px;
font-size: 14px;
...
...
src/components/Basic/src/BasicTitle.vue
浏览文件 @
e9c28319
<
template
>
<span
class=
"base-title"
:class=
"
{ 'show-span': span
&&
$slots.default }
">
<span
:class=
"[prefixCls,
{ 'show-span': span
&&
$slots.default }]
">
<slot
/>
<BasicHelp
class=
"base-title__help
"
v-if=
"helpMessage"
:text=
"helpMessage"
/>
<BasicHelp
:class=
"`$
{prefixCls}__help`
" v-if="helpMessage" :text="helpMessage" />
</span>
</
template
>
<
script
lang=
"ts"
>
...
...
@@ -11,6 +11,7 @@
import
BasicHelp
from
'
./BasicHelp.vue
'
;
import
{
propTypes
}
from
'
/@/utils/propTypes
'
;
import
{
useDesign
}
from
'
/@/hooks/web/useDesign
'
;
export
default
defineComponent
({
name
:
'
BasicTitle
'
,
...
...
@@ -22,12 +23,17 @@
},
span
:
propTypes
.
bool
,
},
setup
()
{
const
{
prefixCls
}
=
useDesign
(
'
basic-title
'
);
return
{
prefixCls
};
},
});
</
script
>
<
style
lang=
"less"
scoped
>
@import (reference) '../../../design/index.less';
@prefix-cls: ~'@{namespace}-basic-title';
.
base-title
{
.
@{prefix-cls}
{
position: relative;
display: flex;
padding-left: 7px;
...
...
src/components/ClickOutSide/src/index.vue
浏览文件 @
e9c28319
<
template
>
<div
ref=
"wrap
Ref
"
><slot
/></div>
<div
ref=
"wrap"
><slot
/></div>
</
template
>
<
script
lang=
"ts"
>
import
type
{
Ref
}
from
'
vue
'
;
...
...
@@ -10,13 +10,13 @@
export
default
defineComponent
({
name
:
'
ClickOutSide
'
,
setup
(
_
,
{
emit
})
{
const
wrap
Ref
=
ref
<
ElRef
>
(
null
);
const
wrap
=
ref
<
ElRef
>
(
null
);
useClickOutside
(
wrap
Ref
as
Ref
<
HTMLDivElement
>
,
()
=>
{
useClickOutside
(
wrap
as
Ref
<
HTMLDivElement
>
,
()
=>
{
emit
(
'
clickOutside
'
);
});
return
{
wrap
Ref
};
return
{
wrap
};
},
});
</
script
>
src/layouts/default/multitabs/index.tsx
浏览文件 @
e9c28319
...
...
@@ -16,6 +16,7 @@ import { tabStore } from '/@/store/modules/tab';
import
{
userStore
}
from
'
/@/store/modules/user
'
;
import
{
initAffixTabs
,
useTabsDrag
}
from
'
./useMultipleTabs
'
;
import
{
REDIRECT_NAME
}
from
'
/@/router/constant
'
;
export
default
defineComponent
({
name
:
'
MultipleTabs
'
,
...
...
@@ -35,6 +36,9 @@ export default defineComponent({
watch
(
()
=>
tabStore
.
getLastChangeRouteState
?.
path
,
()
=>
{
if
(
tabStore
.
getLastChangeRouteState
?.
name
===
REDIRECT_NAME
)
{
return
;
}
const
lastChangeRoute
=
unref
(
tabStore
.
getLastChangeRouteState
);
if
(
!
lastChangeRoute
||
!
userStore
.
getTokenState
)
return
;
const
{
path
,
fullPath
}
=
lastChangeRoute
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录