Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
有来技术
vue3-element-admin
提交
fa0491c4
V
vue3-element-admin
项目概览
有来技术
/
vue3-element-admin
通知
4
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue3-element-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fa0491c4
编写于
1月 01, 2022
作者:
郝
郝先瑞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: 移除defineEmits和defineProps内置宏的引入
上级
28d1d37b
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
12 addition
and
16 deletion
+12
-16
src/components/IconSelect/index.vue
src/components/IconSelect/index.vue
+1
-1
src/components/Pagination/index.vue
src/components/Pagination/index.vue
+1
-1
src/components/TreeSelect/index.vue
src/components/TreeSelect/index.vue
+1
-1
src/layout/components/TagsView/index.vue
src/layout/components/TagsView/index.vue
+6
-10
src/views/system/menu/components/Menu.vue
src/views/system/menu/components/Menu.vue
+1
-1
src/views/system/role/components/Menu.vue
src/views/system/role/components/Menu.vue
+1
-1
src/views/system/role/components/Perm.vue
src/views/system/role/components/Perm.vue
+1
-1
未找到文件。
src/components/IconSelect/index.vue
浏览文件 @
fa0491c4
...
...
@@ -20,7 +20,7 @@
</template>
<
script
setup
>
import
{
defineEmits
,
ref
}
from
"
vue
"
;
import
{
ref
}
from
"
vue
"
;
import
SvgIcon
from
'
@/components/SvgIcon/index.vue
'
;
let
icons
=
[]
...
...
src/components/Pagination/index.vue
浏览文件 @
fa0491c4
...
...
@@ -14,7 +14,7 @@
</
template
>
<
script
setup
>
import
{
computed
,
defineProps
,
defineEmits
}
from
"
vue
"
;
import
{
computed
}
from
"
vue
"
;
import
{
scrollTo
}
from
'
@/utils/scroll-to
'
const
props
=
defineProps
({
...
...
src/components/TreeSelect/index.vue
浏览文件 @
fa0491c4
...
...
@@ -29,7 +29,7 @@
</
template
>
<
script
setup
>
import
{
defineEmits
,
ref
,
getCurrentInstance
,
nextTick
,
onMounted
,
computed
,
watch
}
from
"
vue
"
;
import
{
ref
,
getCurrentInstance
,
nextTick
,
onMounted
,
computed
,
watch
}
from
"
vue
"
;
const
{
proxy
}
=
getCurrentInstance
();
const
state
=
defineProps
({
...
...
src/layout/components/TagsView/index.vue
浏览文件 @
fa0491c4
...
...
@@ -45,19 +45,15 @@ import {tagsViewStoreHook} from '@/store/modules/tagsView'
import
{
usePermissionStoreHook
}
from
'
@/store/modules/Permission
'
import
path
from
'
path-browserify
'
import
{
defineComponent
,
computed
,
getCurrentInstance
,
nextTick
,
onBeforeMount
,
reactive
,
ref
,
toRefs
,
watch
,
onMounted
}
from
"
vue
"
;
import
{
RouteRecordRaw
,
useRoute
,
useRouter
}
from
'
vue-router
'
import
{
TagView
}
from
"
@store/interface
"
;
import
{
TagView
}
from
"
@
/
store/interface
"
;
import
ScrollPane
from
'
./ScrollPane.vue
'
import
{
Close
}
from
'
@element-plus/icons
'
...
...
@@ -114,12 +110,12 @@ function filterAffixTags(routes: RouteRecordRaw[], basePath = '/') {
}
function
initTags
()
{
const
res
=
filterAffixTags
(
routes
.
value
)
const
res
=
filterAffixTags
(
routes
.
value
)
as
[]
affixTags
.
value
=
res
for
(
const
tag
of
res
)
{
// Must have tag name
if
(
tag
.
name
)
{
tagsViewStoreHook
().
addVisitedView
(
tag
as
TagView
)
if
(
(
tag
as
TagView
)
.
name
)
{
tagsViewStoreHook
().
addVisitedView
(
tag
)
}
}
}
...
...
@@ -159,7 +155,7 @@ function isAffix(tag: TagView) {
function
isFirstView
()
{
try
{
return
selectedTag
.
value
.
fullPath
===
visitedViews
.
value
[
1
].
fullPath
||
selectedTag
.
value
.
fullPath
===
'
/index
'
return
(
selectedTag
.
value
as
TagView
).
fullPath
===
visitedViews
.
value
[
1
].
fullPath
||
(
selectedTag
.
value
as
TagView
)
.
fullPath
===
'
/index
'
}
catch
(
err
)
{
return
false
}
...
...
@@ -167,7 +163,7 @@ function isFirstView() {
function
isLastView
()
{
try
{
return
selectedTag
.
value
.
fullPath
===
visitedViews
.
value
[
visitedViews
.
value
.
length
-
1
].
fullPath
return
(
selectedTag
.
value
as
TagView
)
.
fullPath
===
visitedViews
.
value
[
visitedViews
.
value
.
length
-
1
].
fullPath
}
catch
(
err
)
{
return
false
}
...
...
src/views/system/menu/components/Menu.vue
浏览文件 @
fa0491c4
...
...
@@ -169,7 +169,7 @@
import
{
listTableMenus
,
getMenuDetail
,
listTreeSelectMenus
,
addMenu
,
deleteMenus
,
updateMenu
}
from
"
@/api/system/menu
"
;
import
{
Search
,
Plus
,
Edit
,
Refresh
,
Delete
}
from
'
@element-plus/icons
'
import
{
ElForm
,
ElMessage
,
ElMessageBox
}
from
"
element-plus
"
;
import
{
defineEmits
,
reactive
,
ref
,
unref
,
onMounted
}
from
"
vue
"
;
import
{
reactive
,
ref
,
unref
,
onMounted
}
from
"
vue
"
;
import
SvgIcon
from
'
@/components/SvgIcon/index.vue
'
;
import
TreeSelect
from
'
@/components/TreeSelect/index.vue
'
;
import
IconSelect
from
'
@/components/IconSelect/index.vue
'
;
...
...
src/views/system/role/components/Menu.vue
浏览文件 @
fa0491c4
...
...
@@ -32,7 +32,7 @@
<
script
setup
lang=
"ts"
>
import
{
listTreeSelectMenus
}
from
"
@/api/system/menu
"
;
import
{
listRoleMenuIds
,
updateRoleMenu
}
from
"
@/api/system/role
"
import
{
defineEmits
,
defineProps
,
nextTick
,
onMounted
,
reactive
,
ref
,
toRefs
,
watch
}
from
"
vue
"
import
{
nextTick
,
onMounted
,
reactive
,
ref
,
toRefs
,
watch
}
from
"
vue
"
import
{
ElTree
,
ElMessage
,
ElMessageBox
}
from
"
element-plus
"
import
{
Switch
,
Check
}
from
'
@element-plus/icons
'
...
...
src/views/system/role/components/Perm.vue
浏览文件 @
fa0491c4
...
...
@@ -43,7 +43,7 @@
<
script
setup
lang=
"ts"
>
import
{
listPerms
}
from
"
@/api/system/perm
"
;
import
{
listRolePerms
,
saveRolePerms
}
from
"
@/api/system/role
"
;
import
{
defineProps
,
onMounted
,
reactive
,
toRefs
,
watch
}
from
"
vue
"
;
import
{
onMounted
,
reactive
,
toRefs
,
watch
}
from
"
vue
"
;
import
{
ElMessage
}
from
"
element-plus
"
;
import
{
Check
}
from
'
@element-plus/icons
'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录