Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
啊嘞嘞EC
vue-vben-admin
提交
cb1759b2
V
vue-vben-admin
项目概览
啊嘞嘞EC
/
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,发现更多精彩内容 >>
提交
cb1759b2
编写于
12月 01, 2021
作者:
V
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
perf(table): remove ExpandIcon
上级
81560fd3
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
3 addition
and
78 deletion
+3
-78
build/vite/optimizer.ts
build/vite/optimizer.ts
+0
-21
build/vite/plugin/hmr.ts
build/vite/plugin/hmr.ts
+0
-25
src/components/Table/src/BasicTable.vue
src/components/Table/src/BasicTable.vue
+0
-3
src/components/Table/src/components/ExpandIcon.tsx
src/components/Table/src/components/ExpandIcon.tsx
+0
-23
src/components/Table/src/hooks/useRowSelection.ts
src/components/Table/src/hooks/useRowSelection.ts
+0
-3
src/components/Table/src/props.ts
src/components/Table/src/props.ts
+1
-0
src/components/Tree/src/Tree.vue
src/components/Tree/src/Tree.vue
+1
-1
src/components/Tree/src/TreeHeader.vue
src/components/Tree/src/TreeHeader.vue
+1
-2
未找到文件。
build/vite/optimizer.ts
已删除
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
已删除
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 @@
import
{
Table
}
from
'
ant-design-vue
'
;
import
{
BasicForm
,
useForm
}
from
'
/@/components/Form/index
'
;
import
{
PageWrapperFixedHeightKey
}
from
'
/@/components/Page
'
;
import
expandIcon
from
'
./components/ExpandIcon
'
;
import
HeaderCell
from
'
./components/HeaderCell.vue
'
;
import
{
InnerHandlers
}
from
'
./types/table
'
;
...
...
@@ -222,10 +221,8 @@
const
getBindValues
=
computed
(()
=>
{
const
dataSource
=
unref
(
getDataSourceRef
);
let
propsData
:
Recordable
=
{
// ...(dataSource.length === 0 ? { getPopupContainer: () => document.body } : {}),
...
attrs
,
customRow
,
expandIcon
:
slots
.
expandIcon
?
null
:
expandIcon
(),
...
unref
(
getProps
),
...
unref
(
getHeaderProps
),
scroll
:
unref
(
getScrollRef
),
...
...
src/components/Table/src/components/ExpandIcon.tsx
已删除
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(
return
{
selectedRowKeys
:
unref
(
selectedRowKeysRef
),
hideDefaultSelections
:
false
,
onChange
:
(
selectedRowKeys
:
string
[])
=>
{
setSelectedRowKeys
(
selectedRowKeys
);
// selectedRowKeysRef.value = selectedRowKeys;
// selectedRowRef.value = selectedRows;
},
...
omit
(
rowSelection
,
[
'
onChange
'
]),
};
...
...
src/components/Table/src/props.ts
浏览文件 @
cb1759b2
...
...
@@ -10,6 +10,7 @@ import type {
SizeType
,
}
from
'
./types/table
'
;
import
type
{
FormProps
}
from
'
/@/components/Form
'
;
import
{
DEFAULT_FILTER_FN
,
DEFAULT_SORT_FN
,
FETCH_SETTING
,
DEFAULT_SIZE
}
from
'
./const
'
;
import
{
propTypes
}
from
'
/@/utils/propTypes
'
;
...
...
src/components/Tree/src/Tree.vue
浏览文件 @
cb1759b2
...
...
@@ -13,6 +13,7 @@
watch
,
onMounted
,
}
from
'
vue
'
;
import
TreeHeader
from
'
./TreeHeader.vue
'
;
import
{
Tree
,
Empty
}
from
'
ant-design-vue
'
;
import
{
TreeIcon
}
from
'
./TreeIcon
'
;
import
{
ScrollContainer
}
from
'
/@/components/Container
'
;
...
...
@@ -23,7 +24,6 @@
import
{
useTree
}
from
'
./useTree
'
;
import
{
useContextMenu
}
from
'
/@/hooks/web/useContextMenu
'
;
import
{
CreateContextOptions
}
from
'
/@/components/ContextMenu
'
;
import
TreeHeader
from
'
./TreeHeader.vue
'
;
import
{
treeEmits
,
treeProps
}
from
'
./tree
'
;
import
{
createBEM
}
from
'
/@/utils/bem
'
;
...
...
src/components/Tree/src/TreeHeader.vue
浏览文件 @
cb1759b2
...
...
@@ -5,7 +5,7 @@
{{
title
}}
</BasicTitle>
<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"
>
<div
:class=
"getInputSearchCls"
v-if=
"search"
>
...
...
@@ -46,7 +46,6 @@
const
[
bem
]
=
createBEM
(
'
tree-header
'
);
// eslint-disable vue/valid-define-emits
const
props
=
defineProps
({
helpMessage
:
{
type
:
[
String
,
Array
]
as
PropType
<
string
|
string
[]
>
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录