Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
b8000de2
提交
b8000de2
authored
5月 09, 2023
作者:
方治民
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
style: 代码可视化
上级
404a9f7c
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
21 行增加
和
14 行删除
+21
-14
edit.vue
src/views/demo/tools/database/edit.vue
+1
-1
index.vue
src/views/demo/tools/database/index.vue
+4
-4
DatabaseSchemaTable.vue
...demo/tools/online/form/components/DatabaseSchemaTable.vue
+2
-2
edit.vue
src/views/demo/tools/online/form/edit.vue
+2
-2
index.vue
src/views/demo/tools/online/form/index.vue
+3
-3
auto-imports.d.ts
types/auto-imports.d.ts
+9
-2
没有找到文件。
src/views/demo/tools/database/edit.vue
浏览文件 @
b8000de2
...
...
@@ -77,7 +77,7 @@
})
const
testing
=
ref
<
boolean
>
(
false
)
const
test
=
()
=>
{}
function
test
()
{}
</
script
>
<
template
>
...
...
src/views/demo/tools/database/index.vue
浏览文件 @
b8000de2
...
...
@@ -46,17 +46,17 @@
const
[
registerEditModal
,
{
openModal
,
setModalProps
}]
=
useModal
()
// 新增/编辑打开窗口
const
editHandler
=
(
data
?:
Recordable
)
=>
{
function
editHandler
(
data
?:
Recordable
)
{
setModalProps
({
title
:
`
${
data
?
'编辑'
:
'新增'
}
数据源`
})
openModal
(
true
,
data
)
}
// 导入
const
importHandler
=
()
=>
{}
function
importHandler
()
{}
// 下载导入模板
const
importTemplateHandler
=
()
=>
{}
function
importTemplateHandler
()
{}
// 导出
const
exportHandler
=
()
=>
{}
function
exportHandler
()
{}
</
script
>
<
template
>
...
...
src/views/demo/tools/online/form/components/DatabaseSchemaTable.vue
浏览文件 @
b8000de2
...
...
@@ -131,12 +131,12 @@
},
})
const
onDatabaseSchemaCheckboxChange
=
()
=>
{
function
onDatabaseSchemaCheckboxChange
()
{
const
checkedRecords
=
databaseSchemaTable
.
value
?.
getCheckboxRecords
()
databaseSchemaTableOptions
.
toolbarConfig
.
buttons
[
1
].
buttonRender
.
props
.
disabled
=
!
checkedRecords
?.
length
}
const
createDatabaseSchemaTableActions
=
(
record
:
DatabaseSchema
)
=>
{
function
createDatabaseSchemaTableActions
(
record
:
DatabaseSchema
)
{
const
actions
:
ActionItem
[]
=
[
{
icon
:
'carbon:arrow-up'
,
...
...
src/views/demo/tools/online/form/edit.vue
浏览文件 @
b8000de2
...
...
@@ -80,7 +80,7 @@
const
databaseSchemaTableData
=
computed
(()
=>
{
return
getDefaultSchemaFieldDataSourcesByType
(
tableType
.
value
)
})
const
databaseSchemaTableDataChange
=
(
data
:
DatabaseSchema
[])
=>
{
function
databaseSchemaTableDataChange
(
data
:
DatabaseSchema
[])
{
model
.
schemas
=
toRaw
(
data
)
}
...
...
@@ -89,7 +89,7 @@
return
item
.
field
&&
item
.
field
!==
'id'
&&
(
item
.
field
.
endsWith
(
'_id'
)
||
item
.
field
.
endsWith
(
'Id'
))
})
})
const
databaseForeignKeyTableDataChange
=
(
data
:
DatabaseSchema
[])
=>
{
function
databaseForeignKeyTableDataChange
(
data
:
DatabaseSchema
[])
{
model
.
foreignKeys
=
toRaw
(
data
)
}
</
script
>
...
...
src/views/demo/tools/online/form/index.vue
浏览文件 @
b8000de2
...
...
@@ -31,7 +31,7 @@
},
})
const
createActions
=
(
record
:
EditRecordRow
):
ActionItem
[]
=>
{
function
createActions
(
record
:
EditRecordRow
):
ActionItem
[]
{
return
[
{
label
:
'编辑'
,
...
...
@@ -39,7 +39,7 @@
},
]
}
const
createDropDownActions
=
(
record
:
EditRecordRow
):
ActionItem
[]
=>
{
function
createDropDownActions
(
record
:
EditRecordRow
):
ActionItem
[]
{
return
[
{
label
:
'同步数据库'
,
...
...
@@ -171,7 +171,7 @@
const [registerEditModal, { openModal, setModalProps }] = useModal()
// 新增/编辑打开窗口
const editHandler = (data?: Recordable) =>
{
function editHandler(data?: Recordable)
{
setModalProps({ title: data ? '编辑' : '新增' })
openModal(true, data || {})
}
...
...
types/auto-imports.d.ts
浏览文件 @
b8000de2
// Generated by 'unplugin-auto-import'
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// Generated by unplugin-auto-import
export
{}
declare
global
{
const
$app
:
typeof
import
(
'@/config/app'
)[
'$app'
]
...
...
@@ -42,7 +45,6 @@ declare global {
const
readonly
:
typeof
import
(
'vue'
)[
'readonly'
]
const
ref
:
typeof
import
(
'vue'
)[
'ref'
]
const
resolveComponent
:
typeof
import
(
'vue'
)[
'resolveComponent'
]
const
resolveDirective
:
typeof
import
(
'vue'
)[
'resolveDirective'
]
const
shallowReactive
:
typeof
import
(
'vue'
)[
'shallowReactive'
]
const
shallowReadonly
:
typeof
import
(
'vue'
)[
'shallowReadonly'
]
const
shallowRef
:
typeof
import
(
'vue'
)[
'shallowRef'
]
...
...
@@ -63,3 +65,8 @@ declare global {
const
watchPostEffect
:
typeof
import
(
'vue'
)[
'watchPostEffect'
]
const
watchSyncEffect
:
typeof
import
(
'vue'
)[
'watchSyncEffect'
]
}
// for type re-export
declare
global
{
// @ts-ignore
export
type
{
Component
,
ComponentPublicInstance
,
ComputedRef
,
InjectionKey
,
PropType
,
Ref
,
VNode
}
from
'vue'
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论