Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
zuiqiangwanggong
vue-vben-admin
提交
170a4bce
V
vue-vben-admin
项目概览
zuiqiangwanggong
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
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,体验更适合开发者的 AI 搜索 >>
提交
170a4bce
编写于
12月 01, 2021
作者:
V
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(tree-select): replaceFields to fieldNames,close #1423
上级
cfda62ef
变更
11
展开全部
隐藏空白更改
内联
并排
Showing
11 changed file
with
1051 addition
and
2006 deletion
+1051
-2006
package.json
package.json
+9
-11
pnpm-lock.yaml
pnpm-lock.yaml
+1030
-1982
src/components/Tree/src/tree.ts
src/components/Tree/src/tree.ts
+1
-1
src/main.ts
src/main.ts
+1
-1
src/views/demo/system/account/DeptTree.vue
src/views/demo/system/account/DeptTree.vue
+2
-2
src/views/demo/system/account/account.data.ts
src/views/demo/system/account/account.data.ts
+2
-2
src/views/demo/system/dept/dept.data.ts
src/views/demo/system/dept/dept.data.ts
+2
-2
src/views/demo/system/menu/menu.data.ts
src/views/demo/system/menu/menu.data.ts
+2
-2
src/views/demo/system/role/RoleDrawer.vue
src/views/demo/system/role/RoleDrawer.vue
+1
-1
tests/server/package.json
tests/server/package.json
+1
-1
vite.config.ts
vite.config.ts
+0
-1
未找到文件。
package.json
浏览文件 @
170a4bce
...
...
@@ -36,10 +36,8 @@
"
@ant-design/colors
"
:
"
^6.0.0
"
,
"
@ant-design/icons-vue
"
:
"
^6.0.1
"
,
"
@iconify/iconify
"
:
"
^2.1.0
"
,
"
@logicflow/core
"
:
"
^0.7.10
"
,
"
@logicflow/extension
"
:
"
^0.7.10
"
,
"
@vue/runtime-core
"
:
"
^3.2.23
"
,
"
@vue/shared
"
:
"
^3.2.23
"
,
"
@logicflow/core
"
:
"
^0.7.11
"
,
"
@logicflow/extension
"
:
"
^0.7.11
"
,
"
@vueuse/core
"
:
"
^7.1.2
"
,
"
@vueuse/shared
"
:
"
^7.1.2
"
,
"
@zxcvbn-ts/core
"
:
"
^1.0.0
"
,
...
...
@@ -74,7 +72,7 @@
"devDependencies"
:
{
"
@commitlint/cli
"
:
"
^15.0.0
"
,
"
@commitlint/config-conventional
"
:
"
^15.0.0
"
,
"
@iconify/json
"
:
"
^2.0.
3
"
,
"
@iconify/json
"
:
"
^2.0.
4
"
,
"
@purge-icons/generated
"
:
"
^0.7.0
"
,
"
@types/codemirror
"
:
"
^5.60.5
"
,
"
@types/crypto-js
"
:
"
^4.0.2
"
,
...
...
@@ -84,14 +82,14 @@
"
@types/jest
"
:
"
^27.0.3
"
,
"
@types/lodash-es
"
:
"
^4.17.5
"
,
"
@types/mockjs
"
:
"
^1.0.4
"
,
"
@types/node
"
:
"
^16.11.1
0
"
,
"
@types/node
"
:
"
^16.11.1
1
"
,
"
@types/nprogress
"
:
"
^0.2.0
"
,
"
@types/qrcode
"
:
"
^1.4.1
"
,
"
@types/qs
"
:
"
^6.9.7
"
,
"
@types/showdown
"
:
"
^1.9.4
"
,
"
@types/sortablejs
"
:
"
^1.10.7
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^5.
4
.0
"
,
"
@typescript-eslint/parser
"
:
"
^5.
4
.0
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^5.
5
.0
"
,
"
@typescript-eslint/parser
"
:
"
^5.
5
.0
"
,
"
@vitejs/plugin-legacy
"
:
"
^1.6.3
"
,
"
@vitejs/plugin-vue
"
:
"
^1.10.1
"
,
"
@vitejs/plugin-vue-jsx
"
:
"
^1.3.0
"
,
...
...
@@ -112,7 +110,7 @@
"
fs-extra
"
:
"
^10.0.0
"
,
"
husky
"
:
"
^7.0.4
"
,
"
inquirer
"
:
"
^8.2.0
"
,
"
jest
"
:
"
^27.4.
0
"
,
"
jest
"
:
"
^27.4.
2
"
,
"
less
"
:
"
^4.1.2
"
,
"
lint-staged
"
:
"
12.1.2
"
,
"
npm-run-all
"
:
"
^4.1.5
"
,
...
...
@@ -137,14 +135,14 @@
"
vite-plugin-imagemin
"
:
"
^0.4.6
"
,
"
vite-plugin-mock
"
:
"
^2.9.6
"
,
"
vite-plugin-purge-icons
"
:
"
^0.7.0
"
,
"
vite-plugin-pwa
"
:
"
^0.11.
8
"
,
"
vite-plugin-pwa
"
:
"
^0.11.
9
"
,
"
vite-plugin-style-import
"
:
"
^1.4.0
"
,
"
vite-plugin-svg-icons
"
:
"
^1.0.5
"
,
"
vite-plugin-theme
"
:
"
^0.8.1
"
,
"
vite-plugin-vue-setup-extend
"
:
"
^0.1.0
"
,
"
vite-plugin-windicss
"
:
"
^1.5.3
"
,
"
vue-eslint-parser
"
:
"
^8.0.1
"
,
"
vue-tsc
"
:
"
^0.29.
7
"
"
vue-tsc
"
:
"
^0.29.
8
"
},
"resolutions"
:
{
"//"
:
"Used to install imagemin dependencies, because imagemin may not be installed in China. If it is abroad, you can delete it"
,
...
...
pnpm-lock.yaml
浏览文件 @
170a4bce
此差异已折叠。
点击以展开。
src/components/Tree/src/tree.ts
浏览文件 @
170a4bce
...
...
@@ -115,7 +115,7 @@ export const treeProps = buildProps({
// 自定义数据过滤判断方法(注: 不是整个过滤方法,而是内置过滤的判断方法,用于增强原本仅能通过title进行过滤的方式)
filterFn
:
{
type
:
Function
as
PropType
<
(
searchValue
:
any
,
node
:
TreeItem
,
replaceField
s
:
FieldNames
)
=>
boolean
(
searchValue
:
any
,
node
:
TreeItem
,
fieldName
s
:
FieldNames
)
=>
boolean
>
,
default
:
undefined
,
},
...
...
src/main.ts
浏览文件 @
170a4bce
import
'
/@/design/index.less
'
;
import
'
virtual:windi-base.css
'
;
import
'
virtual:windi-components.css
'
;
import
'
/@/design/index.less
'
;
import
'
virtual:windi-utilities.css
'
;
// Register icon sprite
import
'
virtual:svg-icons-register
'
;
...
...
src/views/demo/system/account/DeptTree.vue
浏览文件 @
170a4bce
<
template
>
<div
class=
"
bg-white m-4 mr-0 overflow-hidden
"
>
<div
class=
"
m-4 mr-0 overflow-hidden bg-white
"
>
<BasicTree
title=
"部门列表"
toolbar
search
:clickRowToExpand=
"false"
:treeData=
"treeData"
:
replaceFields=
"
{ key: 'id', title
: 'deptName' }"
:
fieldNames=
"
{ key: 'id', label
: 'deptName' }"
@select="handleSelect"
/>
</div>
...
...
src/views/demo/system/account/account.data.ts
浏览文件 @
170a4bce
...
...
@@ -96,8 +96,8 @@ export const accountFormSchema: FormSchema[] = [
label
:
'
所属部门
'
,
component
:
'
TreeSelect
'
,
componentProps
:
{
replaceField
s
:
{
title
:
'
deptName
'
,
fieldName
s
:
{
label
:
'
deptName
'
,
key
:
'
id
'
,
value
:
'
id
'
,
},
...
...
src/views/demo/system/dept/dept.data.ts
浏览文件 @
170a4bce
...
...
@@ -72,8 +72,8 @@ export const formSchema: FormSchema[] = [
component
:
'
TreeSelect
'
,
componentProps
:
{
replaceField
s
:
{
title
:
'
deptName
'
,
fieldName
s
:
{
label
:
'
deptName
'
,
key
:
'
id
'
,
value
:
'
id
'
,
},
...
...
src/views/demo/system/menu/menu.data.ts
浏览文件 @
170a4bce
...
...
@@ -104,8 +104,8 @@ export const formSchema: FormSchema[] = [
label
:
'
上级菜单
'
,
component
:
'
TreeSelect
'
,
componentProps
:
{
replaceField
s
:
{
title
:
'
menuName
'
,
fieldName
s
:
{
label
:
'
menuName
'
,
key
:
'
id
'
,
value
:
'
id
'
,
},
...
...
src/views/demo/system/role/RoleDrawer.vue
浏览文件 @
170a4bce
...
...
@@ -12,7 +12,7 @@
<BasicTree
v-model:value=
"model[field]"
:treeData=
"treeData"
:
replaceFields=
"
{ title
: 'menuName', key: 'id' }"
:
fieldNames=
"
{ label
: 'menuName', key: 'id' }"
checkable
toolbar
title="菜单分配"
...
...
tests/server/package.json
浏览文件 @
170a4bce
...
...
@@ -24,7 +24,7 @@
"@types/koa"
:
"^2.13.4"
,
"@types/koa-bodyparser"
:
"^5.0.2"
,
"@types/koa-router"
:
"^7.4.4"
,
"@types/node"
:
"^16.11.1
0
"
,
"@types/node"
:
"^16.11.1
1
"
,
"nodemon"
:
"^2.0.15"
,
"pm2"
:
"^5.1.2"
,
"rimraf"
:
"^3.0.2"
,
...
...
vite.config.ts
浏览文件 @
170a4bce
...
...
@@ -95,7 +95,6 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
optimizeDeps
:
{
// @iconify/iconify: The dependency is dynamically and virtually loaded by @purge-icons/generated, so it needs to be specified explicitly
include
:
[
'
@vue/shared
'
,
'
@iconify/iconify
'
,
'
ant-design-vue/es/locale/zh_CN
'
,
'
ant-design-vue/es/locale/en_US
'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录