Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
cb1759b2
提交
cb1759b2
authored
12月 01, 2021
作者:
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
perf(table): remove ExpandIcon
上级
81560fd3
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
3 行增加
和
78 行删除
+3
-78
optimizer.ts
build/vite/optimizer.ts
+0
-21
hmr.ts
build/vite/plugin/hmr.ts
+0
-25
BasicTable.vue
src/components/Table/src/BasicTable.vue
+0
-3
ExpandIcon.tsx
src/components/Table/src/components/ExpandIcon.tsx
+0
-23
useRowSelection.ts
src/components/Table/src/hooks/useRowSelection.ts
+0
-3
props.ts
src/components/Table/src/props.ts
+1
-0
Tree.vue
src/components/Tree/src/Tree.vue
+1
-1
TreeHeader.vue
src/components/Tree/src/TreeHeader.vue
+1
-2
没有找到文件。
build/vite/optimizer.ts
deleted
100644 → 0
浏览文件 @
81560fd3
// TODO
import
type
{
GetManualChunk
}
from
'rollup'
;
//
const
vendorLibs
:
{
match
:
string
[];
output
:
string
}[]
=
[
// {
// match: ['xlsx'],
// output: 'xlsx',
// },
];
// @ts-ignore
export
const
configManualChunk
:
GetManualChunk
=
(
id
:
string
)
=>
{
if
(
/
[\\/]
node_modules
[\\/]
/
.
test
(
id
))
{
const
matchItem
=
vendorLibs
.
find
((
item
)
=>
{
const
reg
=
new
RegExp
(
`[\\/]node_modules[\\/]_?(
${
item
.
match
.
join
(
'|'
)}
)(.*)`
,
'ig'
);
return
reg
.
test
(
id
);
});
return
matchItem
?
matchItem
.
output
:
null
;
}
};
build/vite/plugin/hmr.ts
deleted
100644 → 0
浏览文件 @
81560fd3
import
type
{
Plugin
}
from
'vite'
;
/**
* TODO
* Temporarily solve the Vite circular dependency problem, and wait for a better solution to fix it later. I don't know what problems this writing will bring.
* @returns
*/
export
function
configHmrPlugin
():
Plugin
{
return
{
name
:
'singleHMR'
,
// handleHotUpdate({ modules, file }) {
// if (file.match(/xml$/)) return [];
// modules.forEach((m) => {
// if (!m.url.match(/\.(css|less)/)) {
// m.importedModules = new Set();
// m.importers = new Set();
// }
// });
// return modules;
// },
};
}
src/components/Table/src/BasicTable.vue
浏览文件 @
cb1759b2
...
@@ -43,7 +43,6 @@
...
@@ -43,7 +43,6 @@
import
{
Table
}
from
'ant-design-vue'
;
import
{
Table
}
from
'ant-design-vue'
;
import
{
BasicForm
,
useForm
}
from
'/@/components/Form/index'
;
import
{
BasicForm
,
useForm
}
from
'/@/components/Form/index'
;
import
{
PageWrapperFixedHeightKey
}
from
'/@/components/Page'
;
import
{
PageWrapperFixedHeightKey
}
from
'/@/components/Page'
;
import
expandIcon
from
'./components/ExpandIcon'
;
import
HeaderCell
from
'./components/HeaderCell.vue'
;
import
HeaderCell
from
'./components/HeaderCell.vue'
;
import
{
InnerHandlers
}
from
'./types/table'
;
import
{
InnerHandlers
}
from
'./types/table'
;
...
@@ -222,10 +221,8 @@
...
@@ -222,10 +221,8 @@
const
getBindValues
=
computed
(()
=>
{
const
getBindValues
=
computed
(()
=>
{
const
dataSource
=
unref
(
getDataSourceRef
);
const
dataSource
=
unref
(
getDataSourceRef
);
let
propsData
:
Recordable
=
{
let
propsData
:
Recordable
=
{
// ...(dataSource.length === 0 ? { getPopupContainer: () => document.body } : {}),
...
attrs
,
...
attrs
,
customRow
,
customRow
,
expandIcon
:
slots
.
expandIcon
?
null
:
expandIcon
(),
...
unref
(
getProps
),
...
unref
(
getProps
),
...
unref
(
getHeaderProps
),
...
unref
(
getHeaderProps
),
scroll
:
unref
(
getScrollRef
),
scroll
:
unref
(
getScrollRef
),
...
...
src/components/Table/src/components/ExpandIcon.tsx
deleted
100644 → 0
浏览文件 @
81560fd3
import
{
BasicArrow
}
from
'/@/components/Basic'
;
export
default
()
=>
{
return
(
props
:
Recordable
)
=>
{
if
(
!
props
.
expandable
)
{
if
(
props
.
needIndentSpaced
)
{
return
<
span
class=
"ant-table-row-expand-icon ant-table-row-spaced"
/>;
}
else
{
return
<
span
/>;
}
}
return
(
<
BasicArrow
style=
"margin-right: 8px"
iconStyle=
"margin-top: -2px;"
onClick=
{
(
e
:
Event
)
=>
{
props
.
onExpand
(
props
.
record
,
e
);
}
}
expand=
{
props
.
expanded
}
/>
);
};
};
src/components/Table/src/hooks/useRowSelection.ts
浏览文件 @
cb1759b2
...
@@ -21,11 +21,8 @@ export function useRowSelection(
...
@@ -21,11 +21,8 @@ export function useRowSelection(
return
{
return
{
selectedRowKeys
:
unref
(
selectedRowKeysRef
),
selectedRowKeys
:
unref
(
selectedRowKeysRef
),
hideDefaultSelections
:
false
,
onChange
:
(
selectedRowKeys
:
string
[])
=>
{
onChange
:
(
selectedRowKeys
:
string
[])
=>
{
setSelectedRowKeys
(
selectedRowKeys
);
setSelectedRowKeys
(
selectedRowKeys
);
// selectedRowKeysRef.value = selectedRowKeys;
// selectedRowRef.value = selectedRows;
},
},
...
omit
(
rowSelection
,
[
'onChange'
]),
...
omit
(
rowSelection
,
[
'onChange'
]),
};
};
...
...
src/components/Table/src/props.ts
浏览文件 @
cb1759b2
...
@@ -10,6 +10,7 @@ import type {
...
@@ -10,6 +10,7 @@ import type {
SizeType
,
SizeType
,
}
from
'./types/table'
;
}
from
'./types/table'
;
import
type
{
FormProps
}
from
'/@/components/Form'
;
import
type
{
FormProps
}
from
'/@/components/Form'
;
import
{
DEFAULT_FILTER_FN
,
DEFAULT_SORT_FN
,
FETCH_SETTING
,
DEFAULT_SIZE
}
from
'./const'
;
import
{
DEFAULT_FILTER_FN
,
DEFAULT_SORT_FN
,
FETCH_SETTING
,
DEFAULT_SIZE
}
from
'./const'
;
import
{
propTypes
}
from
'/@/utils/propTypes'
;
import
{
propTypes
}
from
'/@/utils/propTypes'
;
...
...
src/components/Tree/src/Tree.vue
浏览文件 @
cb1759b2
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
watch
,
watch
,
onMounted
,
onMounted
,
}
from
'vue'
;
}
from
'vue'
;
import
TreeHeader
from
'./TreeHeader.vue'
;
import
{
Tree
,
Empty
}
from
'ant-design-vue'
;
import
{
Tree
,
Empty
}
from
'ant-design-vue'
;
import
{
TreeIcon
}
from
'./TreeIcon'
;
import
{
TreeIcon
}
from
'./TreeIcon'
;
import
{
ScrollContainer
}
from
'/@/components/Container'
;
import
{
ScrollContainer
}
from
'/@/components/Container'
;
...
@@ -23,7 +24,6 @@
...
@@ -23,7 +24,6 @@
import
{
useTree
}
from
'./useTree'
;
import
{
useTree
}
from
'./useTree'
;
import
{
useContextMenu
}
from
'/@/hooks/web/useContextMenu'
;
import
{
useContextMenu
}
from
'/@/hooks/web/useContextMenu'
;
import
{
CreateContextOptions
}
from
'/@/components/ContextMenu'
;
import
{
CreateContextOptions
}
from
'/@/components/ContextMenu'
;
import
TreeHeader
from
'./TreeHeader.vue'
;
import
{
treeEmits
,
treeProps
}
from
'./tree'
;
import
{
treeEmits
,
treeProps
}
from
'./tree'
;
import
{
createBEM
}
from
'/@/utils/bem'
;
import
{
createBEM
}
from
'/@/utils/bem'
;
...
...
src/components/Tree/src/TreeHeader.vue
浏览文件 @
cb1759b2
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
{{
title
}}
{{
title
}}
</BasicTitle>
</BasicTitle>
<div
<div
class=
"flex
flex-1 justify-self-stretch items-center cursor-pointer
"
class=
"flex
items-center flex-1 cursor-pointer justify-self-stretch
"
v-if=
"search || toolbar"
v-if=
"search || toolbar"
>
>
<div
:class=
"getInputSearchCls"
v-if=
"search"
>
<div
:class=
"getInputSearchCls"
v-if=
"search"
>
...
@@ -46,7 +46,6 @@
...
@@ -46,7 +46,6 @@
const
[
bem
]
=
createBEM
(
'tree-header'
);
const
[
bem
]
=
createBEM
(
'tree-header'
);
// eslint-disable vue/valid-define-emits
const
props
=
defineProps
({
const
props
=
defineProps
({
helpMessage
:
{
helpMessage
:
{
type
:
[
String
,
Array
]
as
PropType
<
string
|
string
[]
>
,
type
:
[
String
,
Array
]
as
PropType
<
string
|
string
[]
>
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论