Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
56a966cf
提交
56a966cf
authored
8月 24, 2021
作者:
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: format code
上级
2884e863
全部展开
显示空白字符变更
内嵌
并排
正在显示
148 个修改的文件
包含
188 行增加
和
184 行删除
+188
-184
launch.json
.vscode/launch.json
+1
-1
README.zh-CN.md
README.zh-CN.md
+1
-1
index.ts
build/generate/icon/index.ts
+3
-3
buildConf.ts
build/script/buildConf.ts
+1
-1
compress.ts
build/vite/plugin/compress.ts
+3
-3
index.ts
build/vite/plugin/index.ts
+1
-1
_util.ts
mock/_util.ts
+1
-1
user.ts
mock/sys/user.ts
+1
-1
prettier.config.js
prettier.config.js
+1
-2
App.vue
src/App.vue
+1
-0
upload.ts
src/api/sys/upload.ts
+2
-2
user.ts
src/api/sys/user.ts
+1
-1
AppDarkModeToggle.vue
src/components/Application/src/AppDarkModeToggle.vue
+1
-1
AppSearchModal.vue
src/components/Application/src/search/AppSearchModal.vue
+1
-1
BasicHelp.vue
src/components/Basic/src/BasicHelp.vue
+1
-1
PopConfirmButton.vue
src/components/Button/src/PopConfirmButton.vue
+1
-1
CodeMirror.vue
src/components/CodeEditor/src/codemirror/CodeMirror.vue
+4
-4
CropperAvatar.vue
src/components/Cropper/src/CropperAvatar.vue
+2
-2
typing.ts
src/components/Description/src/typing.ts
+1
-1
BasicDrawer.vue
src/components/Drawer/src/BasicDrawer.vue
+2
-2
FlowChart.vue
src/components/FlowChart/src/FlowChart.vue
+2
-2
BasicForm.vue
src/components/Form/src/BasicForm.vue
+5
-5
ApiSelect.vue
src/components/Form/src/components/ApiSelect.vue
+1
-1
ApiTreeSelect.vue
src/components/Form/src/components/ApiTreeSelect.vue
+2
-2
FormAction.vue
src/components/Form/src/components/FormAction.vue
+2
-2
FormItem.vue
src/components/Form/src/components/FormItem.vue
+1
-1
helper.ts
src/components/Form/src/helper.ts
+1
-1
useAdvanced.ts
src/components/Form/src/hooks/useAdvanced.ts
+2
-2
useForm.ts
src/components/Form/src/hooks/useForm.ts
+3
-3
useFormEvents.ts
src/components/Form/src/hooks/useFormEvents.ts
+4
-4
form.ts
src/components/Form/src/types/form.ts
+1
-1
IconPicker.vue
src/components/Icon/src/IconPicker.vue
+3
-3
useLoading.ts
src/components/Loading/src/useLoading.ts
+1
-1
Markdown.vue
src/components/Markdown/src/Markdown.vue
+2
-2
BasicMenu.vue
src/components/Menu/src/BasicMenu.vue
+2
-2
useOpenKeys.ts
src/components/Menu/src/useOpenKeys.ts
+2
-2
BasicModal.vue
src/components/Modal/src/BasicModal.vue
+1
-1
ModalWrapper.vue
src/components/Modal/src/components/ModalWrapper.vue
+2
-2
PageWrapper.vue
src/components/Page/src/PageWrapper.vue
+3
-3
Qrcode.vue
src/components/Qrcode/src/Qrcode.vue
+1
-1
drawCanvas.ts
src/components/Qrcode/src/drawCanvas.ts
+2
-2
bar.ts
src/components/Scrollbar/src/bar.ts
+2
-2
SimpleMenu.vue
src/components/SimpleMenu/src/SimpleMenu.vue
+3
-3
Menu.vue
src/components/SimpleMenu/src/components/Menu.vue
+1
-1
MenuItem.vue
src/components/SimpleMenu/src/components/MenuItem.vue
+1
-1
SubMenuItem.vue
src/components/SimpleMenu/src/components/SubMenuItem.vue
+1
-1
useOpenKeys.ts
src/components/SimpleMenu/src/useOpenKeys.ts
+2
-2
StrengthMeter.vue
src/components/StrengthMeter/src/StrengthMeter.vue
+1
-1
BasicTable.vue
src/components/Table/src/BasicTable.vue
+4
-4
CellComponent.ts
...components/Table/src/components/editable/CellComponent.ts
+2
-2
EditableCell.vue
...components/Table/src/components/editable/EditableCell.vue
+3
-3
ColumnSetting.vue
...omponents/Table/src/components/settings/ColumnSetting.vue
+1
-1
useColumns.ts
src/components/Table/src/hooks/useColumns.ts
+5
-5
useCustomRow.ts
src/components/Table/src/hooks/useCustomRow.ts
+2
-2
useDataSource.ts
src/components/Table/src/hooks/useDataSource.ts
+5
-5
useLoading.ts
src/components/Table/src/hooks/useLoading.ts
+1
-1
useRowSelection.ts
src/components/Table/src/hooks/useRowSelection.ts
+4
-4
useTable.ts
src/components/Table/src/hooks/useTable.ts
+3
-3
useTableExpand.ts
src/components/Table/src/hooks/useTableExpand.ts
+1
-1
useTableFooter.ts
src/components/Table/src/hooks/useTableFooter.ts
+2
-2
useTableForm.ts
src/components/Table/src/hooks/useTableForm.ts
+1
-1
useTableHeader.ts
src/components/Table/src/hooks/useTableHeader.ts
+2
-2
useTableScroll.ts
src/components/Table/src/hooks/useTableScroll.ts
+2
-2
Time.vue
src/components/Time/src/Time.vue
+1
-1
Editor.vue
src/components/Tinymce/src/Editor.vue
+3
-3
index.ts
src/components/Transition/index.ts
+2
-2
CreateTransition.tsx
src/components/Transition/src/CreateTransition.tsx
+1
-1
Tree.vue
src/components/Tree/src/Tree.vue
+4
-4
TreeHeader.vue
src/components/Tree/src/TreeHeader.vue
+2
-2
useTree.ts
src/components/Tree/src/useTree.ts
+1
-1
BasicUpload.vue
src/components/Upload/src/BasicUpload.vue
+1
-1
FileList.vue
src/components/Upload/src/FileList.vue
+1
-1
UploadModal.vue
src/components/Upload/src/UploadModal.vue
+4
-4
UploadPreviewModal.vue
src/components/Upload/src/UploadPreviewModal.vue
+2
-2
DragVerify.vue
src/components/Verify/src/DragVerify.vue
+1
-1
ImgRotate.vue
src/components/Verify/src/ImgRotate.vue
+2
-2
loading.ts
src/directives/loading.ts
+1
-1
useFormItem.ts
src/hooks/component/useFormItem.ts
+1
-1
useContext.ts
src/hooks/core/useContext.ts
+2
-2
useLockFn.ts
src/hooks/core/useLockFn.ts
+1
-1
useTimeout.ts
src/hooks/core/useTimeout.ts
+1
-1
useEventListener.ts
src/hooks/event/useEventListener.ts
+1
-1
useScroll.ts
src/hooks/event/useScroll.ts
+2
-2
index.ts
src/hooks/setting/index.ts
+1
-1
useMenuSetting.ts
src/hooks/setting/useMenuSetting.ts
+1
-1
useRootSetting.ts
src/hooks/setting/useRootSetting.ts
+1
-1
useContentHeight.ts
src/hooks/web/useContentHeight.ts
+3
-3
useCopyToClipboard.ts
src/hooks/web/useCopyToClipboard.ts
+1
-1
useECharts.ts
src/hooks/web/useECharts.ts
+2
-2
usePermission.ts
src/hooks/web/usePermission.ts
+1
-1
useTitle.ts
src/hooks/web/useTitle.ts
+5
-1
useWatermark.ts
src/hooks/web/useWatermark.ts
+2
-2
useContentViewHeight.ts
src/layouts/default/content/useContentViewHeight.ts
+1
-1
NoticeList.vue
src/layouts/default/header/components/notify/NoticeList.vue
+1
-1
index.vue
src/layouts/default/menu/index.vue
+1
-1
useLayoutMenu.ts
src/layouts/default/menu/useLayoutMenu.ts
+5
-5
SettingFooter.vue
src/layouts/default/setting/components/SettingFooter.vue
+1
-1
FoldButton.vue
src/layouts/default/tabs/components/FoldButton.vue
+1
-1
TabContent.vue
src/layouts/default/tabs/components/TabContent.vue
+2
-2
index.ts
src/logics/error-handle/index.ts
+3
-3
routeChange.ts
src/logics/mitt/routeChange.ts
+0
-0
main.ts
src/main.ts
+0
-0
routeHelper.ts
src/router/helper/routeHelper.ts
+0
-0
user.ts
src/store/modules/user.ts
+0
-0
memory.ts
src/utils/cache/memory.ts
+0
-0
color.ts
src/utils/color.ts
+0
-0
dateUtil.ts
src/utils/dateUtil.ts
+0
-0
domUtils.ts
src/utils/domUtils.ts
+0
-0
env.ts
src/utils/env.ts
+0
-0
treeHelper.ts
src/utils/helper/treeHelper.ts
+0
-0
axiosTransform.ts
src/utils/http/axios/axiosTransform.ts
+0
-0
checkStatus.ts
src/utils/http/axios/checkStatus.ts
+0
-0
helper.ts
src/utils/http/axios/helper.ts
+0
-0
index.ts
src/utils/http/axios/index.ts
+0
-0
index.ts
src/utils/index.ts
+0
-0
SalesProductPie.vue
src/views/dashboard/analysis/components/SalesProductPie.vue
+0
-0
VisitRadar.vue
src/views/dashboard/analysis/components/VisitRadar.vue
+0
-0
VisitSource.vue
src/views/dashboard/analysis/components/VisitSource.vue
+0
-0
ProjectCard.vue
src/views/dashboard/workbench/components/ProjectCard.vue
+0
-0
SaleRadar.vue
src/views/dashboard/workbench/components/SaleRadar.vue
+0
-0
SaleRadar.vue
src/views/demo/charts/SaleRadar.vue
+0
-0
Drawer3.vue
src/views/demo/comp/drawer/Drawer3.vue
+0
-0
Drawer5.vue
src/views/demo/comp/drawer/Drawer5.vue
+0
-0
Modal1.vue
src/views/demo/comp/modal/Modal1.vue
+0
-0
Modal3.vue
src/views/demo/comp/modal/Modal3.vue
+0
-0
index.vue
src/views/demo/comp/qrcode/index.vue
+0
-0
ChildrenListDetail.vue
src/views/demo/feat/breadcrumb/ChildrenListDetail.vue
+0
-0
FlatListDetail.vue
src/views/demo/feat/breadcrumb/FlatListDetail.vue
+0
-0
index.vue
src/views/demo/feat/download/index.vue
+0
-0
index.vue
src/views/demo/feat/ripple/index.vue
+0
-0
AppendForm.vue
src/views/demo/form/AppendForm.vue
+0
-0
DynamicForm.vue
src/views/demo/form/DynamicForm.vue
+0
-0
index.vue
src/views/demo/main-out/index.vue
+0
-0
AccountBind.vue
src/views/demo/page/account/setting/AccountBind.vue
+0
-0
BaseSetting.vue
src/views/demo/page/account/setting/BaseSetting.vue
+0
-0
MsgNotify.vue
src/views/demo/page/account/setting/MsgNotify.vue
+0
-0
SecureSetting.vue
src/views/demo/page/account/setting/SecureSetting.vue
+0
-0
index.vue
src/views/demo/page/desc/high/index.vue
+0
-0
index.vue
src/views/demo/page/result/fail/index.vue
+0
-0
index.vue
src/views/demo/page/result/success/index.vue
+0
-0
Btn.vue
src/views/demo/permission/back/Btn.vue
+0
-0
index.vue
src/views/demo/permission/back/index.vue
+0
-0
AuthPageA.vue
src/views/demo/permission/front/AuthPageA.vue
+0
-0
AuthPageB.vue
src/views/demo/permission/front/AuthPageB.vue
+0
-0
index.vue
src/views/sys/error-log/index.vue
+0
-0
LockPage.vue
src/views/sys/lock/LockPage.vue
+0
-0
LoginForm.vue
src/views/sys/login/LoginForm.vue
+0
-0
index.ts
tests/server/index.ts
+0
-0
没有找到文件。
.vscode/launch.json
浏览文件 @
56a966cf
...
@@ -8,6 +8,6 @@
...
@@ -8,6 +8,6 @@
"url"
:
"http://localhost:3100"
,
"url"
:
"http://localhost:3100"
,
"webRoot"
:
"${workspaceFolder}/src"
,
"webRoot"
:
"${workspaceFolder}/src"
,
"sourceMaps"
:
true
"sourceMaps"
:
true
}
,
}
]
]
}
}
README.zh-CN.md
浏览文件 @
56a966cf
...
@@ -150,7 +150,7 @@ yarn build
...
@@ -150,7 +150,7 @@ yarn build
## 后台整合示例
## 后台整合示例
-
[
lamp-cloud
](
https://github.com/zuihou/lamp-cloud
)
- 基于 SpringCloud Alibaba 的微服务中后台快速开发平台
-
[
lamp-cloud
](
https://github.com/zuihou/lamp-cloud
)
- 基于 SpringCloud Alibaba 的微服务中后台快速开发平台
-
[
matecloud
](
https://github.com/matevip/matecloud
)
- MateCloud
微服务脚手架,基于Spring Cloud 2020.0.3、SpringBoot 2.5.3
的全开源平台
-
[
matecloud
](
https://github.com/matevip/matecloud
)
- MateCloud
微服务脚手架,基于 Spring Cloud 2020.0.3、SpringBoot 2.5.3
的全开源平台
## 维护者
## 维护者
...
...
build/generate/icon/index.ts
浏览文件 @
56a966cf
...
@@ -52,19 +52,19 @@ async function generateIcon() {
...
@@ -52,19 +52,19 @@ async function generateIcon() {
const
{
prefix
}
=
data
;
const
{
prefix
}
=
data
;
const
isLocal
=
useType
===
'local'
;
const
isLocal
=
useType
===
'local'
;
const
icons
=
Object
.
keys
(
data
.
icons
).
map
(
const
icons
=
Object
.
keys
(
data
.
icons
).
map
(
(
item
)
=>
`
${
isLocal
?
prefix
+
':'
:
''
}${
item
}
`
(
item
)
=>
`
${
isLocal
?
prefix
+
':'
:
''
}${
item
}
`
,
);
);
await
fs
.
writeFileSync
(
await
fs
.
writeFileSync
(
path
.
join
(
output
,
`icons.data.ts`
),
path
.
join
(
output
,
`icons.data.ts`
),
`export default
${
isLocal
?
JSON
.
stringify
(
icons
)
:
JSON
.
stringify
({
prefix
,
icons
})}
`
`export default
${
isLocal
?
JSON
.
stringify
(
icons
)
:
JSON
.
stringify
({
prefix
,
icons
})}
`
,
);
);
prefixSet
.
push
(
prefix
);
prefixSet
.
push
(
prefix
);
}
}
}
}
fs
.
emptyDir
(
path
.
join
(
process
.
cwd
(),
'node_modules/.vite'
));
fs
.
emptyDir
(
path
.
join
(
process
.
cwd
(),
'node_modules/.vite'
));
console
.
log
(
console
.
log
(
`✨
${
chalk
.
cyan
(
`[
${
pkg
.
name
}
]`
)}
`
+
' - Icon generated successfully:'
+
`[
${
prefixSet
}
]`
`✨
${
chalk
.
cyan
(
`[
${
pkg
.
name
}
]`
)}
`
+
' - Icon generated successfully:'
+
`[
${
prefixSet
}
]`
,
);
);
});
});
}
}
...
...
build/script/buildConf.ts
浏览文件 @
56a966cf
...
@@ -15,7 +15,7 @@ function createConfig(
...
@@ -15,7 +15,7 @@ function createConfig(
configName
,
configName
,
config
,
config
,
configFileName
=
GLOB_CONFIG_FILE_NAME
,
configFileName
=
GLOB_CONFIG_FILE_NAME
,
}:
{
configName
:
string
;
config
:
any
;
configFileName
?:
string
}
=
{
configName
:
''
,
config
:
{}
}
}:
{
configName
:
string
;
config
:
any
;
configFileName
?:
string
}
=
{
configName
:
''
,
config
:
{}
}
,
)
{
)
{
try
{
try
{
const
windowConf
=
`window.
${
configName
}
`
;
const
windowConf
=
`window.
${
configName
}
`
;
...
...
build/vite/plugin/compress.ts
浏览文件 @
56a966cf
...
@@ -7,7 +7,7 @@ import compressPlugin from 'vite-plugin-compression';
...
@@ -7,7 +7,7 @@ import compressPlugin from 'vite-plugin-compression';
export
function
configCompressPlugin
(
export
function
configCompressPlugin
(
compress
:
'gzip'
|
'brotli'
|
'none'
,
compress
:
'gzip'
|
'brotli'
|
'none'
,
deleteOriginFile
=
false
deleteOriginFile
=
false
,
):
Plugin
|
Plugin
[]
{
):
Plugin
|
Plugin
[]
{
const
compressList
=
compress
.
split
(
','
);
const
compressList
=
compress
.
split
(
','
);
...
@@ -18,7 +18,7 @@ export function configCompressPlugin(
...
@@ -18,7 +18,7 @@ export function configCompressPlugin(
compressPlugin
({
compressPlugin
({
ext
:
'.gz'
,
ext
:
'.gz'
,
deleteOriginFile
,
deleteOriginFile
,
})
})
,
);
);
}
}
...
@@ -28,7 +28,7 @@ export function configCompressPlugin(
...
@@ -28,7 +28,7 @@ export function configCompressPlugin(
ext
:
'.br'
,
ext
:
'.br'
,
algorithm
:
'brotliCompress'
,
algorithm
:
'brotliCompress'
,
deleteOriginFile
,
deleteOriginFile
,
})
})
,
);
);
}
}
return
plugins
;
return
plugins
;
...
...
build/vite/plugin/index.ts
浏览文件 @
56a966cf
...
@@ -68,7 +68,7 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
...
@@ -68,7 +68,7 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
// rollup-plugin-gzip
// rollup-plugin-gzip
vitePlugins
.
push
(
vitePlugins
.
push
(
configCompressPlugin
(
VITE_BUILD_COMPRESS
,
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE
)
configCompressPlugin
(
VITE_BUILD_COMPRESS
,
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE
)
,
);
);
// vite-plugin-pwa
// vite-plugin-pwa
...
...
mock/_util.ts
浏览文件 @
56a966cf
...
@@ -13,7 +13,7 @@ export function resultPageSuccess<T = any>(
...
@@ -13,7 +13,7 @@ export function resultPageSuccess<T = any>(
page
:
number
,
page
:
number
,
pageSize
:
number
,
pageSize
:
number
,
list
:
T
[],
list
:
T
[],
{
message
=
'ok'
}
=
{}
{
message
=
'ok'
}
=
{}
,
)
{
)
{
const
pageData
=
pagination
(
page
,
pageSize
,
list
);
const
pageData
=
pagination
(
page
,
pageSize
,
list
);
...
...
mock/sys/user.ts
浏览文件 @
56a966cf
...
@@ -52,7 +52,7 @@ export default [
...
@@ -52,7 +52,7 @@ export default [
response
:
({
body
})
=>
{
response
:
({
body
})
=>
{
const
{
username
,
password
}
=
body
;
const
{
username
,
password
}
=
body
;
const
checkUser
=
createFakeUserList
().
find
(
const
checkUser
=
createFakeUserList
().
find
(
(
item
)
=>
item
.
username
===
username
&&
password
===
item
.
password
(
item
)
=>
item
.
username
===
username
&&
password
===
item
.
password
,
);
);
if
(
!
checkUser
)
{
if
(
!
checkUser
)
{
return
resultError
(
'Incorrect account or password!'
);
return
resultError
(
'Incorrect account or password!'
);
...
...
prettier.config.js
浏览文件 @
56a966cf
...
@@ -7,7 +7,7 @@ module.exports = {
...
@@ -7,7 +7,7 @@ module.exports = {
singleQuote
:
true
,
singleQuote
:
true
,
quoteProps
:
'as-needed'
,
quoteProps
:
'as-needed'
,
bracketSpacing
:
true
,
bracketSpacing
:
true
,
trailingComma
:
'
es5
'
,
trailingComma
:
'
all
'
,
jsxBracketSameLine
:
false
,
jsxBracketSameLine
:
false
,
jsxSingleQuote
:
false
,
jsxSingleQuote
:
false
,
arrowParens
:
'always'
,
arrowParens
:
'always'
,
...
@@ -16,5 +16,4 @@ module.exports = {
...
@@ -16,5 +16,4 @@ module.exports = {
proseWrap
:
'never'
,
proseWrap
:
'never'
,
htmlWhitespaceSensitivity
:
'strict'
,
htmlWhitespaceSensitivity
:
'strict'
,
endOfLine
:
'auto'
,
endOfLine
:
'auto'
,
rangeStart
:
0
,
};
};
src/App.vue
浏览文件 @
56a966cf
...
@@ -15,5 +15,6 @@
...
@@ -15,5 +15,6 @@
// support Multi-language
// support Multi-language
const
{
getAntdLocale
}
=
useLocale
();
const
{
getAntdLocale
}
=
useLocale
();
// Listening to page changes and dynamically changing site titles
useTitle
();
useTitle
();
</
script
>
</
script
>
src/api/sys/upload.ts
浏览文件 @
56a966cf
...
@@ -10,13 +10,13 @@ const { uploadUrl = '' } = useGlobSetting();
...
@@ -10,13 +10,13 @@ const { uploadUrl = '' } = useGlobSetting();
*/
*/
export
function
uploadApi
(
export
function
uploadApi
(
params
:
UploadFileParams
,
params
:
UploadFileParams
,
onUploadProgress
:
(
progressEvent
:
ProgressEvent
)
=>
void
onUploadProgress
:
(
progressEvent
:
ProgressEvent
)
=>
void
,
)
{
)
{
return
defHttp
.
uploadFile
<
UploadApiResult
>
(
return
defHttp
.
uploadFile
<
UploadApiResult
>
(
{
{
url
:
uploadUrl
,
url
:
uploadUrl
,
onUploadProgress
,
onUploadProgress
,
},
},
params
params
,
);
);
}
}
src/api/sys/user.ts
浏览文件 @
56a966cf
...
@@ -21,7 +21,7 @@ export function loginApi(params: LoginParams, mode: ErrorMessageMode = 'modal')
...
@@ -21,7 +21,7 @@ export function loginApi(params: LoginParams, mode: ErrorMessageMode = 'modal')
},
},
{
{
errorMessageMode
:
mode
,
errorMessageMode
:
mode
,
}
}
,
);
);
}
}
...
...
src/components/Application/src/AppDarkModeToggle.vue
浏览文件 @
56a966cf
<
template
>
<
template
>
<div
v-if=
"getShowDarkModeToggle"
:class=
"getClass"
@
click=
"toggleDarkMode"
>
<div
v-if=
"getShowDarkModeToggle"
:class=
"getClass"
@
click=
"toggleDarkMode"
>
<div
:class=
"`$
{prefixCls}-inner`">
</div>
<div
:class=
"`$
{prefixCls}-inner`">
</div>
<SvgIcon
size=
"14"
name=
"sun"
/>
<SvgIcon
size=
"14"
name=
"sun"
/>
<SvgIcon
size=
"14"
name=
"moon"
/>
<SvgIcon
size=
"14"
name=
"moon"
/>
</div>
</div>
...
...
src/components/Application/src/search/AppSearchModal.vue
浏览文件 @
56a966cf
...
@@ -105,7 +105,7 @@
...
@@ -105,7 +105,7 @@
nextTick
(()
=>
{
nextTick
(()
=>
{
unref
(
inputRef
)?.
focus
();
unref
(
inputRef
)?.
focus
();
});
});
}
}
,
);
);
function
handleClose
()
{
function
handleClose
()
{
...
...
src/components/Basic/src/BasicHelp.vue
浏览文件 @
56a966cf
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
const
{
prefixCls
}
=
useDesign
(
'basic-help'
);
const
{
prefixCls
}
=
useDesign
(
'basic-help'
);
const
getTooltipStyle
=
computed
(
const
getTooltipStyle
=
computed
(
():
CSSProperties
=>
({
color
:
props
.
color
,
fontSize
:
props
.
fontSize
})
():
CSSProperties
=>
({
color
:
props
.
color
,
fontSize
:
props
.
fontSize
})
,
);
);
const
getOverlayStyle
=
computed
(():
CSSProperties
=>
({
maxWidth
:
props
.
maxWidth
}));
const
getOverlayStyle
=
computed
(():
CSSProperties
=>
({
maxWidth
:
props
.
maxWidth
}));
...
...
src/components/Button/src/PopConfirmButton.vue
浏览文件 @
56a966cf
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
okText
:
t
(
'common.okText'
),
okText
:
t
(
'common.okText'
),
cancelText
:
t
(
'common.cancelText'
),
cancelText
:
t
(
'common.cancelText'
),
},
},
{
...
props
,
...
unref
(
attrs
)
}
{
...
props
,
...
unref
(
attrs
)
}
,
);
);
});
});
...
...
src/components/CodeEditor/src/codemirror/CodeMirror.vue
浏览文件 @
56a966cf
<
template
>
<
template
>
<div
class=
"relative !h-full w-full overflow-hidden"
ref=
"el"
>
</div>
<div
class=
"relative !h-full w-full overflow-hidden"
ref=
"el"
></div>
</
template
>
</
template
>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
editor
?.
setValue
(
value
?
value
:
''
);
editor
?.
setValue
(
value
?
value
:
''
);
}
}
},
},
{
flush
:
'post'
}
{
flush
:
'post'
}
,
);
);
watchEffect
(()
=>
{
watchEffect
(()
=>
{
...
@@ -54,13 +54,13 @@
...
@@ -54,13 +54,13 @@
},
},
{
{
immediate
:
true
,
immediate
:
true
,
}
}
,
);
);
function
setTheme
()
{
function
setTheme
()
{
unref
(
editor
)?.
setOption
(
unref
(
editor
)?.
setOption
(
'theme'
,
'theme'
,
appStore
.
getDarkMode
===
'light'
?
'idea'
:
'material-palenight'
appStore
.
getDarkMode
===
'light'
?
'idea'
:
'material-palenight'
,
);
);
}
}
...
...
src/components/Cropper/src/CropperAvatar.vue
浏览文件 @
56a966cf
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
const
getStyle
=
computed
(():
CSSProperties
=>
({
width
:
unref
(
getWidth
)
}));
const
getStyle
=
computed
(():
CSSProperties
=>
({
width
:
unref
(
getWidth
)
}));
const
getImageWrapperStyle
=
computed
(
const
getImageWrapperStyle
=
computed
(
():
CSSProperties
=>
({
width
:
unref
(
getWidth
),
height
:
unref
(
getWidth
)
})
():
CSSProperties
=>
({
width
:
unref
(
getWidth
),
height
:
unref
(
getWidth
)
})
,
);
);
watchEffect
(()
=>
{
watchEffect
(()
=>
{
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
()
=>
sourceValue
.
value
,
()
=>
sourceValue
.
value
,
(
v
:
string
)
=>
{
(
v
:
string
)
=>
{
emit
(
'update:value'
,
v
);
emit
(
'update:value'
,
v
);
}
}
,
);
);
function
handleUploadSuccess
({
source
})
{
function
handleUploadSuccess
({
source
})
{
...
...
src/components/Description/src/typing.ts
浏览文件 @
56a966cf
...
@@ -14,7 +14,7 @@ export interface DescItem {
...
@@ -14,7 +14,7 @@ export interface DescItem {
// render
// render
render
?:
(
render
?:
(
val
:
any
,
val
:
any
,
data
:
Recordable
data
:
Recordable
,
)
=>
VNode
|
undefined
|
JSX
.
Element
|
Element
|
string
|
number
;
)
=>
VNode
|
undefined
|
JSX
.
Element
|
Element
|
string
|
number
;
}
}
...
...
src/components/Drawer/src/BasicDrawer.vue
浏览文件 @
56a966cf
...
@@ -139,7 +139,7 @@
...
@@ -139,7 +139,7 @@
(
newVal
,
oldVal
)
=>
{
(
newVal
,
oldVal
)
=>
{
if
(
newVal
!==
oldVal
)
visibleRef
.
value
=
newVal
;
if
(
newVal
!==
oldVal
)
visibleRef
.
value
=
newVal
;
},
},
{
deep
:
true
}
{
deep
:
true
}
,
);
);
watch
(
watch
(
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
emit
(
'visible-change'
,
visible
);
emit
(
'visible-change'
,
visible
);
instance
&&
drawerInstance
.
emitVisible
?.(
visible
,
instance
.
uid
);
instance
&&
drawerInstance
.
emitVisible
?.(
visible
,
instance
.
uid
);
});
});
}
}
,
);
);
// Cancel event
// Cancel event
...
...
src/components/FlowChart/src/FlowChart.vue
浏览文件 @
56a966cf
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
()
=>
props
.
data
,
()
=>
props
.
data
,
()
=>
{
()
=>
{
onRender
();
onRender
();
}
}
,
);
);
// TODO
// TODO
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
()
=>
unref
(
getFlowOptions
),
()
=>
unref
(
getFlowOptions
),
(
options
)
=>
{
(
options
)
=>
{
unref
(
lfInstance
)?.
updateEditConfig
(
options
);
unref
(
lfInstance
)?.
updateEditConfig
(
options
);
}
}
,
);
);
// init logicFlow
// init logicFlow
...
...
src/components/Form/src/BasicForm.vue
浏览文件 @
56a966cf
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
});
});
const
getBindValue
=
computed
(
const
getBindValue
=
computed
(
()
=>
({
...
attrs
,
...
props
,
...
unref
(
getProps
)
}
as
Recordable
)
()
=>
({
...
attrs
,
...
props
,
...
unref
(
getProps
)
}
as
Recordable
)
,
);
);
const
getSchema
=
computed
(():
FormSchema
[]
=>
{
const
getSchema
=
computed
(():
FormSchema
[]
=>
{
...
@@ -198,14 +198,14 @@
...
@@ -198,14 +198,14 @@
},
},
{
{
immediate
:
true
,
immediate
:
true
,
}
}
,
);
);
watch
(
watch
(
()
=>
unref
(
getProps
).
schemas
,
()
=>
unref
(
getProps
).
schemas
,
(
schemas
)
=>
{
(
schemas
)
=>
{
resetSchema
(
schemas
??
[]);
resetSchema
(
schemas
??
[]);
}
}
,
);
);
watch
(
watch
(
...
@@ -222,7 +222,7 @@
...
@@ -222,7 +222,7 @@
initDefault
();
initDefault
();
isInitedDefaultRef
.
value
=
true
;
isInitedDefaultRef
.
value
=
true
;
}
}
}
}
,
);
);
async
function
setProps
(
formProps
:
Partial
<
FormProps
>
):
Promise
<
void
>
{
async
function
setProps
(
formProps
:
Partial
<
FormProps
>
):
Promise
<
void
>
{
...
@@ -284,7 +284,7 @@
...
@@ -284,7 +284,7 @@
setFormModel
,
setFormModel
,
getFormClass
,
getFormClass
,
getFormActionBindProps
:
computed
(
getFormActionBindProps
:
computed
(
():
Recordable
=>
({
...
getProps
.
value
,
...
advanceState
})
():
Recordable
=>
({
...
getProps
.
value
,
...
advanceState
})
,
),
),
...
formActionType
,
...
formActionType
,
};
};
...
...
src/components/Form/src/components/ApiSelect.vue
浏览文件 @
56a966cf
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
()
=>
{
()
=>
{
!
unref
(
isFirstLoad
)
&&
fetch
();
!
unref
(
isFirstLoad
)
&&
fetch
();
},
},
{
deep
:
true
}
{
deep
:
true
}
,
);
);
async
function
fetch
()
{
async
function
fetch
()
{
...
...
src/components/Form/src/components/ApiTreeSelect.vue
浏览文件 @
56a966cf
...
@@ -46,14 +46,14 @@
...
@@ -46,14 +46,14 @@
()
=>
{
()
=>
{
isFirstLoaded
.
value
&&
fetch
();
isFirstLoaded
.
value
&&
fetch
();
},
},
{
deep
:
true
}
{
deep
:
true
}
,
);
);
watch
(
watch
(
()
=>
props
.
immediate
,
()
=>
props
.
immediate
,
(
v
)
=>
{
(
v
)
=>
{
v
&&
!
isFirstLoaded
.
value
&&
fetch
();
v
&&
!
isFirstLoaded
.
value
&&
fetch
();
}
}
,
);
);
onMounted
(()
=>
{
onMounted
(()
=>
{
...
...
src/components/Form/src/components/FormAction.vue
浏览文件 @
56a966cf
...
@@ -105,7 +105,7 @@
...
@@ -105,7 +105,7 @@
{
{
text
:
t
(
'common.resetText'
),
text
:
t
(
'common.resetText'
),
},
},
props
.
resetButtonOptions
props
.
resetButtonOptions
,
);
);
});
});
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
{
{
text
:
t
(
'common.queryText'
),
text
:
t
(
'common.queryText'
),
},
},
props
.
submitButtonOptions
props
.
submitButtonOptions
,
);
);
});
});
...
...
src/components/Form/src/components/FormItem.vue
浏览文件 @
56a966cf
...
@@ -183,7 +183,7 @@
...
@@ -183,7 +183,7 @@
}
}
const
requiredRuleIndex
:
number
=
rules
.
findIndex
(
const
requiredRuleIndex
:
number
=
rules
.
findIndex
(
(
rule
)
=>
Reflect
.
has
(
rule
,
'required'
)
&&
!
Reflect
.
has
(
rule
,
'validator'
)
(
rule
)
=>
Reflect
.
has
(
rule
,
'required'
)
&&
!
Reflect
.
has
(
rule
,
'validator'
)
,
);
);
if
(
requiredRuleIndex
!==
-
1
)
{
if
(
requiredRuleIndex
!==
-
1
)
{
...
...
src/components/Form/src/helper.ts
浏览文件 @
56a966cf
...
@@ -38,7 +38,7 @@ function genType() {
...
@@ -38,7 +38,7 @@ function genType() {
export
function
setComponentRuleType
(
export
function
setComponentRuleType
(
rule
:
ValidationRule
,
rule
:
ValidationRule
,
component
:
ComponentType
,
component
:
ComponentType
,
valueFormat
:
string
valueFormat
:
string
,
)
{
)
{
if
([
'DatePicker'
,
'MonthPicker'
,
'WeekPicker'
,
'TimePicker'
].
includes
(
component
))
{
if
([
'DatePicker'
,
'MonthPicker'
,
'WeekPicker'
,
'TimePicker'
].
includes
(
component
))
{
rule
.
type
=
valueFormat
?
'string'
:
'object'
;
rule
.
type
=
valueFormat
?
'string'
:
'object'
;
...
...
src/components/Form/src/hooks/useAdvanced.ts
浏览文件 @
56a966cf
...
@@ -58,7 +58,7 @@ export default function ({
...
@@ -58,7 +58,7 @@ export default function ({
debounceUpdateAdvanced
();
debounceUpdateAdvanced
();
}
}
},
},
{
immediate
:
true
}
{
immediate
:
true
}
,
);
);
function
getAdvanced
(
itemCol
:
Partial
<
ColEx
>
,
itemColSum
=
0
,
isLastAction
=
false
)
{
function
getAdvanced
(
itemCol
:
Partial
<
ColEx
>
,
itemColSum
=
0
,
isLastAction
=
false
)
{
...
@@ -139,7 +139,7 @@ export default function ({
...
@@ -139,7 +139,7 @@ export default function ({
if
(
isShow
&&
(
colProps
||
baseColProps
))
{
if
(
isShow
&&
(
colProps
||
baseColProps
))
{
const
{
itemColSum
:
sum
,
isAdvanced
}
=
getAdvanced
(
const
{
itemColSum
:
sum
,
isAdvanced
}
=
getAdvanced
(
{
...
baseColProps
,
...
colProps
},
{
...
baseColProps
,
...
colProps
},
itemColSum
itemColSum
,
);
);
itemColSum
=
sum
||
0
;
itemColSum
=
sum
||
0
;
...
...
src/components/Form/src/hooks/useForm.ts
浏览文件 @
56a966cf
...
@@ -18,7 +18,7 @@ export function useForm(props?: Props): UseFormReturnType {
...
@@ -18,7 +18,7 @@ export function useForm(props?: Props): UseFormReturnType {
const
form
=
unref
(
formRef
);
const
form
=
unref
(
formRef
);
if
(
!
form
)
{
if
(
!
form
)
{
error
(
error
(
'The form instance has not been obtained, please make sure that the form has been rendered when performing the form operation!'
'The form instance has not been obtained, please make sure that the form has been rendered when performing the form operation!'
,
);
);
}
}
await
nextTick
();
await
nextTick
();
...
@@ -44,7 +44,7 @@ export function useForm(props?: Props): UseFormReturnType {
...
@@ -44,7 +44,7 @@ export function useForm(props?: Props): UseFormReturnType {
{
{
immediate
:
true
,
immediate
:
true
,
deep
:
true
,
deep
:
true
,
}
}
,
);
);
}
}
...
@@ -96,7 +96,7 @@ export function useForm(props?: Props): UseFormReturnType {
...
@@ -96,7 +96,7 @@ export function useForm(props?: Props): UseFormReturnType {
appendSchemaByField
:
async
(
appendSchemaByField
:
async
(
schema
:
FormSchema
,
schema
:
FormSchema
,
prefixField
:
string
|
undefined
,
prefixField
:
string
|
undefined
,
first
:
boolean
first
:
boolean
,
)
=>
{
)
=>
{
const
form
=
await
getForm
();
const
form
=
await
getForm
();
form
.
appendSchemaByField
(
schema
,
prefixField
,
first
);
form
.
appendSchemaByField
(
schema
,
prefixField
,
first
);
...
...
src/components/Form/src/hooks/useFormEvents.ts
浏览文件 @
56a966cf
...
@@ -150,12 +150,12 @@ export function useFormEvents({
...
@@ -150,12 +150,12 @@ export function useFormEvents({
}
}
const
hasField
=
updateData
.
every
(
const
hasField
=
updateData
.
every
(
(
item
)
=>
item
.
component
===
'Divider'
||
(
Reflect
.
has
(
item
,
'field'
)
&&
item
.
field
)
(
item
)
=>
item
.
component
===
'Divider'
||
(
Reflect
.
has
(
item
,
'field'
)
&&
item
.
field
)
,
);
);
if
(
!
hasField
)
{
if
(
!
hasField
)
{
error
(
error
(
'All children of the form Schema array that need to be updated must contain the `field` field'
'All children of the form Schema array that need to be updated must contain the `field` field'
,
);
);
return
;
return
;
}
}
...
@@ -172,12 +172,12 @@ export function useFormEvents({
...
@@ -172,12 +172,12 @@ export function useFormEvents({
}
}
const
hasField
=
updateData
.
every
(
const
hasField
=
updateData
.
every
(
(
item
)
=>
item
.
component
===
'Divider'
||
(
Reflect
.
has
(
item
,
'field'
)
&&
item
.
field
)
(
item
)
=>
item
.
component
===
'Divider'
||
(
Reflect
.
has
(
item
,
'field'
)
&&
item
.
field
)
,
);
);
if
(
!
hasField
)
{
if
(
!
hasField
)
{
error
(
error
(
'All children of the form Schema array that need to be updated must contain the `field` field'
'All children of the form Schema array that need to be updated must contain the `field` field'
,
);
);
return
;
return
;
}
}
...
...
src/components/Form/src/types/form.ts
浏览文件 @
56a966cf
...
@@ -37,7 +37,7 @@ export interface FormActionType {
...
@@ -37,7 +37,7 @@ export interface FormActionType {
appendSchemaByField
:
(
appendSchemaByField
:
(
schema
:
FormSchema
,
schema
:
FormSchema
,
prefixField
:
string
|
undefined
,
prefixField
:
string
|
undefined
,
first
?:
boolean
|
undefined
first
?:
boolean
|
undefined
,
)
=>
Promise
<
void
>
;
)
=>
Promise
<
void
>
;
validateFields
:
(
nameList
?:
NamePath
[])
=>
Promise
<
any
>
;
validateFields
:
(
nameList
?:
NamePath
[])
=>
Promise
<
any
>
;
validate
:
(
nameList
?:
NamePath
[])
=>
Promise
<
any
>
;
validate
:
(
nameList
?:
NamePath
[])
=>
Promise
<
any
>
;
...
...
src/components/Icon/src/IconPicker.vue
浏览文件 @
56a966cf
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
</div>
</div>
</div>
</div>
<template
v-else
<template
v-else
><div
class=
"p-5"
>
<Empty
/></div>
><div
class=
"p-5"
><Empty
/></div>
</
template
>
</
template
>
</template>
</template>
...
@@ -139,7 +139,7 @@
...
@@ -139,7 +139,7 @@
const
{
getPaginationList
,
getTotal
,
setCurrentPage
}
=
usePagination
(
const
{
getPaginationList
,
getTotal
,
setCurrentPage
}
=
usePagination
(
currentList
,
currentList
,
props
.
pageSize
props
.
pageSize
,
);
);
watchEffect
(()
=>
{
watchEffect
(()
=>
{
...
@@ -151,7 +151,7 @@
...
@@ -151,7 +151,7 @@
(
v
)
=>
{
(
v
)
=>
{
emit
(
'update:value'
,
v
);
emit
(
'update:value'
,
v
);
return
emit
(
'change'
,
v
);
return
emit
(
'change'
,
v
);
}
}
,
);
);
function
handlePageChange
(
page
:
number
)
{
function
handlePageChange
(
page
:
number
)
{
...
...
src/components/Loading/src/useLoading.ts
浏览文件 @
56a966cf
...
@@ -16,7 +16,7 @@ export function useLoading(props: Partial<LoadingProps>): [Fn, Fn, (string) => v
...
@@ -16,7 +16,7 @@ export function useLoading(props: Partial<LoadingProps>): [Fn, Fn, (string) => v
export
function
useLoading
(
opt
:
Partial
<
UseLoadingOptions
>
):
[
Fn
,
Fn
,
(
string
)
=>
void
];
export
function
useLoading
(
opt
:
Partial
<
UseLoadingOptions
>
):
[
Fn
,
Fn
,
(
string
)
=>
void
];
export
function
useLoading
(
export
function
useLoading
(
opt
:
Partial
<
LoadingProps
>
|
Partial
<
UseLoadingOptions
>
opt
:
Partial
<
LoadingProps
>
|
Partial
<
UseLoadingOptions
>
,
):
[
Fn
,
Fn
,
(
string
)
=>
void
]
{
):
[
Fn
,
Fn
,
(
string
)
=>
void
]
{
let
props
:
Partial
<
LoadingProps
>
;
let
props
:
Partial
<
LoadingProps
>
;
let
target
:
HTMLElement
|
Ref
<
ElRef
>
=
document
.
body
;
let
target
:
HTMLElement
|
Ref
<
ElRef
>
=
document
.
body
;
...
...
src/components/Markdown/src/Markdown.vue
浏览文件 @
56a966cf
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
{
{
immediate
:
true
,
immediate
:
true
,
flush
:
'post'
,
flush
:
'post'
,
}
}
,
);
);
watch
(
watch
(
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
instance
.
getVditor
()?.
setValue
(
v
);
instance
.
getVditor
()?.
setValue
(
v
);
}
}
valueRef
.
value
=
v
;
valueRef
.
value
=
v
;
}
}
,
);
);
const
getCurrentLang
=
computed
(():
'zh_CN'
|
'en_US'
|
'ja_JP'
|
'ko_KR'
=>
{
const
getCurrentLang
=
computed
(():
'zh_CN'
|
'en_US'
|
'ja_JP'
|
'ko_KR'
=>
{
...
...
src/components/Menu/src/BasicMenu.vue
浏览文件 @
56a966cf
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
menuState
,
menuState
,
items
,
items
,
mode
as
any
,
mode
as
any
,
accordion
accordion
,
);
);
const
getIsTopMenu
=
computed
(()
=>
{
const
getIsTopMenu
=
computed
(()
=>
{
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
()
=>
props
.
items
,
()
=>
props
.
items
,
()
=>
{
()
=>
{
handleMenuChange
();
handleMenuChange
();
}
}
,
);
);
async
function
handleMenuClick
({
key
}:
{
key
:
string
;
keyPath
:
string
[]
})
{
async
function
handleMenuClick
({
key
}:
{
key
:
string
;
keyPath
:
string
[]
})
{
...
...
src/components/Menu/src/useOpenKeys.ts
浏览文件 @
56a966cf
...
@@ -14,7 +14,7 @@ export function useOpenKeys(
...
@@ -14,7 +14,7 @@ export function useOpenKeys(
menuState
:
MenuState
,
menuState
:
MenuState
,
menus
:
Ref
<
MenuType
[]
>
,
menus
:
Ref
<
MenuType
[]
>
,
mode
:
Ref
<
MenuModeEnum
>
,
mode
:
Ref
<
MenuModeEnum
>
,
accordion
:
Ref
<
boolean
>
accordion
:
Ref
<
boolean
>
,
)
{
)
{
const
{
getCollapsed
,
getIsMixSidebar
}
=
useMenuSetting
();
const
{
getCollapsed
,
getIsMixSidebar
}
=
useMenuSetting
();
...
@@ -37,7 +37,7 @@ export function useOpenKeys(
...
@@ -37,7 +37,7 @@ export function useOpenKeys(
}
}
},
},
16
,
16
,
!
native
!
native
,
);
);
}
}
...
...
src/components/Modal/src/BasicModal.vue
浏览文件 @
56a966cf
...
@@ -169,7 +169,7 @@
...
@@ -169,7 +169,7 @@
},
},
{
{
immediate
:
false
,
immediate
:
false
,
}
}
,
);
);
// 取消事件
// 取消事件
...
...
src/components/Modal/src/components/ModalWrapper.vue
浏览文件 @
56a966cf
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
{
{
attributes
:
true
,
attributes
:
true
,
subtree
:
true
,
subtree
:
true
,
}
}
,
);
);
createModalContext
({
createModalContext
({
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
}
else
{
}
else
{
minRealHeightRef
.
value
=
realHeightRef
.
value
;
minRealHeightRef
.
value
=
realHeightRef
.
value
;
}
}
}
}
,
);
);
onMounted
(()
=>
{
onMounted
(()
=>
{
...
...
src/components/Page/src/PageWrapper.vue
浏览文件 @
56a966cf
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
provide
(
provide
(
PageWrapperFixedHeightKey
,
PageWrapperFixedHeightKey
,
computed
(()
=>
props
.
fixedHeight
)
computed
(()
=>
props
.
fixedHeight
)
,
);
);
const
getIsContentFullHeight
=
computed
(()
=>
{
const
getIsContentFullHeight
=
computed
(()
=>
{
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
getIsContentFullHeight
,
getIsContentFullHeight
,
wrapperRef
,
wrapperRef
,
[
headerRef
,
footerRef
],
[
headerRef
,
footerRef
],
[
contentRef
]
[
contentRef
]
,
);
);
setCompensation
({
useLayoutFooter
:
true
,
elements
:
[
footerRef
]
});
setCompensation
({
useLayoutFooter
:
true
,
elements
:
[
footerRef
]
});
...
@@ -135,7 +135,7 @@
...
@@ -135,7 +135,7 @@
{
{
flush
:
'post'
,
flush
:
'post'
,
immediate
:
true
,
immediate
:
true
,
}
}
,
);
);
return
{
return
{
...
...
src/components/Qrcode/src/Qrcode.vue
浏览文件 @
56a966cf
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
},
},
{
{
deep
:
true
,
deep
:
true
,
}
}
,
);
);
return
{
wrapRef
,
download
};
return
{
wrapRef
,
download
};
...
...
src/components/Qrcode/src/drawCanvas.ts
浏览文件 @
56a966cf
...
@@ -7,9 +7,9 @@ export const renderQrCode = ({
...
@@ -7,9 +7,9 @@ export const renderQrCode = ({
canvas
,
canvas
,
content
,
content
,
width
=
0
,
width
=
0
,
options
:
params
=
{}
options
:
params
=
{}
,
}:
RenderQrCodeParams
)
=>
{
}:
RenderQrCodeParams
)
=>
{
const
options
=
cloneDeep
(
params
)
const
options
=
cloneDeep
(
params
)
;
// 容错率,默认对内容少的二维码采用高容错率,内容多的二维码采用低容错率
// 容错率,默认对内容少的二维码采用高容错率,内容多的二维码采用低容错率
options
.
errorCorrectionLevel
=
options
.
errorCorrectionLevel
||
getErrorCorrectionLevel
(
content
);
options
.
errorCorrectionLevel
=
options
.
errorCorrectionLevel
||
getErrorCorrectionLevel
(
content
);
...
...
src/components/Scrollbar/src/bar.ts
浏览文件 @
56a966cf
...
@@ -44,7 +44,7 @@ export default defineComponent({
...
@@ -44,7 +44,7 @@ export default defineComponent({
const
clickTrackHandler
=
(
e
:
any
)
=>
{
const
clickTrackHandler
=
(
e
:
any
)
=>
{
const
offset
=
Math
.
abs
(
const
offset
=
Math
.
abs
(
e
.
target
.
getBoundingClientRect
()[
bar
.
value
.
direction
]
-
e
[
bar
.
value
.
client
]
e
.
target
.
getBoundingClientRect
()[
bar
.
value
.
direction
]
-
e
[
bar
.
value
.
client
]
,
);
);
const
thumbHalf
=
thumb
.
value
[
bar
.
value
.
offset
]
/
2
;
const
thumbHalf
=
thumb
.
value
[
bar
.
value
.
offset
]
/
2
;
const
thumbPositionPercentage
=
const
thumbPositionPercentage
=
...
@@ -104,7 +104,7 @@ export default defineComponent({
...
@@ -104,7 +104,7 @@ export default defineComponent({
move
:
props
.
move
,
move
:
props
.
move
,
bar
:
bar
.
value
,
bar
:
bar
.
value
,
}),
}),
})
})
,
);
);
},
},
});
});
src/components/SimpleMenu/src/SimpleMenu.vue
浏览文件 @
56a966cf
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
items
,
items
,
accordion
,
accordion
,
mixSider
,
mixSider
,
collapse
collapse
,
);
);
const
getBindValues
=
computed
(()
=>
({
...
attrs
,
...
props
}));
const
getBindValues
=
computed
(()
=>
({
...
attrs
,
...
props
}));
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
setOpenKeys
(
currentRoute
.
value
.
path
);
setOpenKeys
(
currentRoute
.
value
.
path
);
}
}
},
},
{
immediate
:
true
}
{
immediate
:
true
}
,
);
);
watch
(
watch
(
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
}
}
setOpenKeys
(
currentRoute
.
value
.
path
);
setOpenKeys
(
currentRoute
.
value
.
path
);
},
},
{
flush
:
'post'
}
{
flush
:
'post'
}
,
);
);
listenerRouteChange
((
route
)
=>
{
listenerRouteChange
((
route
)
=>
{
...
...
src/components/SimpleMenu/src/components/Menu.vue
浏览文件 @
56a966cf
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
nextTick
(()
=>
{
nextTick
(()
=>
{
updateOpened
();
updateOpened
();
});
});
}
}
,
);
);
function
updateOpened
()
{
function
updateOpened
()
{
...
...
src/components/SimpleMenu/src/components/MenuItem.vue
浏览文件 @
56a966cf
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
active
.
value
=
false
;
active
.
value
=
false
;
}
}
},
},
{
immediate
:
true
}
{
immediate
:
true
}
,
);
);
return
{
getClass
,
prefixCls
,
getItemStyle
,
getCollapse
,
handleClickItem
,
showTooptip
};
return
{
getClass
,
prefixCls
,
getItemStyle
,
getCollapse
,
handleClickItem
,
showTooptip
};
...
...
src/components/SimpleMenu/src/components/SubMenuItem.vue
浏览文件 @
56a966cf
...
@@ -286,7 +286,7 @@
...
@@ -286,7 +286,7 @@
if (props.name && Array.isArray(data)) {
if (props.name && Array.isArray(data)) {
state.opened = (data as (string | number)[]).includes(props.name);
state.opened = (data as (string | number)[]).includes(props.name);
}
}
}
}
,
);
);
rootMenuEmitter.on('on-update-active-name:submenu', (data: number[]) => {
rootMenuEmitter.on('on-update-active-name:submenu', (data: number[]) => {
...
...
src/components/SimpleMenu/src/useOpenKeys.ts
浏览文件 @
56a966cf
...
@@ -15,7 +15,7 @@ export function useOpenKeys(
...
@@ -15,7 +15,7 @@ export function useOpenKeys(
menus
:
Ref
<
MenuType
[]
>
,
menus
:
Ref
<
MenuType
[]
>
,
accordion
:
Ref
<
boolean
>
,
accordion
:
Ref
<
boolean
>
,
mixSider
:
Ref
<
boolean
>
,
mixSider
:
Ref
<
boolean
>
,
collapse
:
Ref
<
boolean
>
collapse
:
Ref
<
boolean
>
,
)
{
)
{
const
debounceSetOpenKeys
=
useDebounceFn
(
setOpenKeys
,
50
);
const
debounceSetOpenKeys
=
useDebounceFn
(
setOpenKeys
,
50
);
async
function
setOpenKeys
(
path
:
string
)
{
async
function
setOpenKeys
(
path
:
string
)
{
...
@@ -38,7 +38,7 @@ export function useOpenKeys(
...
@@ -38,7 +38,7 @@ export function useOpenKeys(
menuState
.
activeSubMenuNames
=
menuState
.
openNames
;
menuState
.
activeSubMenuNames
=
menuState
.
openNames
;
},
},
30
,
30
,
native
native
,
);
);
}
}
...
...
src/components/StrengthMeter/src/StrengthMeter.vue
浏览文件 @
56a966cf
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
()
=>
unref
(
innerValueRef
),
()
=>
unref
(
innerValueRef
),
(
val
)
=>
{
(
val
)
=>
{
emit
(
'change'
,
val
);
emit
(
'change'
,
val
);
}
}
,
);
);
return
{
return
{
...
...
src/components/Table/src/BasicTable.vue
浏览文件 @
56a966cf
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
unref
(
isFixedHeightPage
)
&&
unref
(
isFixedHeightPage
)
&&
props
.
canResize
&&
props
.
canResize
&&
warn
(
warn
(
"'canResize' of BasicTable may not work in PageWrapper with 'fixedHeight' (especially in hot updates)"
"'canResize' of BasicTable may not work in PageWrapper with 'fixedHeight' (especially in hot updates)"
,
);
);
});
});
...
@@ -157,7 +157,7 @@
...
@@ -157,7 +157,7 @@
getFieldsValue
:
formActions
.
getFieldsValue
,
getFieldsValue
:
formActions
.
getFieldsValue
,
clearSelectedRowKeys
,
clearSelectedRowKeys
,
},
},
emit
emit
,
);
);
function
handleTableChange
(...
args
)
{
function
handleTableChange
(...
args
)
{
...
@@ -182,7 +182,7 @@
...
@@ -182,7 +182,7 @@
tableElRef
,
tableElRef
,
getColumnsRef
,
getColumnsRef
,
getRowSelectionRef
,
getRowSelectionRef
,
getDataSourceRef
getDataSourceRef
,
);
);
const
{
customRow
}
=
useCustomRow
(
getProps
,
{
const
{
customRow
}
=
useCustomRow
(
getProps
,
{
...
@@ -211,7 +211,7 @@
...
@@ -211,7 +211,7 @@
getProps
,
getProps
,
getScrollRef
,
getScrollRef
,
tableElRef
,
tableElRef
,
getDataSourceRef
getDataSourceRef
,
);
);
const
{
getFormProps
,
replaceFormSlotKey
,
getFormSlotKeys
,
handleSearchInfoChange
}
=
const
{
getFormProps
,
replaceFormSlotKey
,
getFormSlotKeys
,
handleSearchInfoChange
}
=
...
...
src/components/Table/src/components/editable/CellComponent.ts
浏览文件 @
56a966cf
...
@@ -21,7 +21,7 @@ export const CellComponent: FunctionalComponent = (
...
@@ -21,7 +21,7 @@ export const CellComponent: FunctionalComponent = (
popoverVisible
,
popoverVisible
,
getPopupContainer
,
getPopupContainer
,
}:
ComponentProps
,
}:
ComponentProps
,
{
attrs
}
{
attrs
}
,
)
=>
{
)
=>
{
const
Comp
=
componentMap
.
get
(
component
)
as
typeof
defineComponent
;
const
Comp
=
componentMap
.
get
(
component
)
as
typeof
defineComponent
;
...
@@ -39,6 +39,6 @@ export const CellComponent: FunctionalComponent = (
...
@@ -39,6 +39,6 @@ export const CellComponent: FunctionalComponent = (
{
{
default
:
()
=>
DefaultComp
,
default
:
()
=>
DefaultComp
,
content
:
()
=>
ruleMessage
,
content
:
()
=>
ruleMessage
,
}
}
,
);
);
};
};
src/components/Table/src/components/editable/EditableCell.vue
浏览文件 @
56a966cf
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
:class=
"
{ [`${prefixCls}__normal`]: true, 'ellipsis-cell': column.ellipsis }"
:class=
"
{ [`${prefixCls}__normal`]: true, 'ellipsis-cell': column.ellipsis }"
@click="handleEdit"
@click="handleEdit"
>
>
<div
class=
"cell-content"
:title=
"column.ellipsis ? getValues ?? '' : ''"
>
{{
<div
class=
"cell-content"
:title=
"column.ellipsis ? getValues ?? '' : ''"
>
getValues
?
getValues
:
' '
{{
getValues
?
getValues
:
' '
}}
}}
</div>
</div>
<FormOutlined
:class=
"`$
{prefixCls}__normal-icon`" v-if="!column.editRow" />
<FormOutlined
:class=
"`$
{prefixCls}__normal-icon`" v-if="!column.editRow" />
</div>
</div>
...
...
src/components/Table/src/components/settings/ColumnSetting.vue
浏览文件 @
56a966cf
...
@@ -351,7 +351,7 @@
...
@@ -351,7 +351,7 @@
const
visible
=
const
visible
=
columns
.
findIndex
(
columns
.
findIndex
(
(
c
:
BasicColumn
|
string
)
=>
(
c
:
BasicColumn
|
string
)
=>
c
===
col
.
value
||
(
typeof
c
!==
'string'
&&
c
.
dataIndex
===
col
.
value
)
c
===
col
.
value
||
(
typeof
c
!==
'string'
&&
c
.
dataIndex
===
col
.
value
)
,
)
!==
-
1
;
)
!==
-
1
;
return
{
dataIndex
:
col
.
value
,
fixed
:
col
.
fixed
,
visible
};
return
{
dataIndex
:
col
.
value
,
fixed
:
col
.
fixed
,
visible
};
});
});
...
...
src/components/Table/src/hooks/useColumns.ts
浏览文件 @
56a966cf
...
@@ -40,7 +40,7 @@ function handleChildren(children: BasicColumn[] | undefined, ellipsis: boolean)
...
@@ -40,7 +40,7 @@ function handleChildren(children: BasicColumn[] | undefined, ellipsis: boolean)
function
handleIndexColumn
(
function
handleIndexColumn
(
propsRef
:
ComputedRef
<
BasicTableProps
>
,
propsRef
:
ComputedRef
<
BasicTableProps
>
,
getPaginationRef
:
ComputedRef
<
boolean
|
PaginationProps
>
,
getPaginationRef
:
ComputedRef
<
boolean
|
PaginationProps
>
,
columns
:
BasicColumn
[]
columns
:
BasicColumn
[]
,
)
{
)
{
const
{
t
}
=
useI18n
();
const
{
t
}
=
useI18n
();
...
@@ -102,7 +102,7 @@ function handleActionColumn(propsRef: ComputedRef<BasicTableProps>, columns: Bas
...
@@ -102,7 +102,7 @@ function handleActionColumn(propsRef: ComputedRef<BasicTableProps>, columns: Bas
export
function
useColumns
(
export
function
useColumns
(
propsRef
:
ComputedRef
<
BasicTableProps
>
,
propsRef
:
ComputedRef
<
BasicTableProps
>
,
getPaginationRef
:
ComputedRef
<
boolean
|
PaginationProps
>
getPaginationRef
:
ComputedRef
<
boolean
|
PaginationProps
>
,
)
{
)
{
const
columnsRef
=
ref
(
unref
(
propsRef
).
columns
)
as
unknown
as
Ref
<
BasicColumn
[]
>
;
const
columnsRef
=
ref
(
unref
(
propsRef
).
columns
)
as
unknown
as
Ref
<
BasicColumn
[]
>
;
let
cacheColumns
=
unref
(
propsRef
).
columns
;
let
cacheColumns
=
unref
(
propsRef
).
columns
;
...
@@ -122,7 +122,7 @@ export function useColumns(
...
@@ -122,7 +122,7 @@ export function useColumns(
handleItem
(
handleItem
(
item
,
item
,
Reflect
.
has
(
item
,
'ellipsis'
)
?
!!
item
.
ellipsis
:
!!
ellipsis
&&
!
customRender
&&
!
slots
Reflect
.
has
(
item
,
'ellipsis'
)
?
!!
item
.
ellipsis
:
!!
ellipsis
&&
!
customRender
&&
!
slots
,
);
);
});
});
return
columns
;
return
columns
;
...
@@ -179,7 +179,7 @@ export function useColumns(
...
@@ -179,7 +179,7 @@ export function useColumns(
(
columns
)
=>
{
(
columns
)
=>
{
columnsRef
.
value
=
columns
;
columnsRef
.
value
=
columns
;
cacheColumns
=
columns
?.
filter
((
item
)
=>
!
item
.
flag
)
??
[];
cacheColumns
=
columns
?.
filter
((
item
)
=>
!
item
.
flag
)
??
[];
}
}
,
);
);
function
setCacheColumnsByField
(
dataIndex
:
string
|
undefined
,
value
:
Partial
<
BasicColumn
>
)
{
function
setCacheColumnsByField
(
dataIndex
:
string
|
undefined
,
value
:
Partial
<
BasicColumn
>
)
{
...
@@ -288,7 +288,7 @@ function sortFixedColumn(columns: BasicColumn[]) {
...
@@ -288,7 +288,7 @@ function sortFixedColumn(columns: BasicColumn[]) {
defColumns
.
push
(
column
);
defColumns
.
push
(
column
);
}
}
return
[...
fixedLeftColumns
,
...
defColumns
,
...
fixedRightColumns
].
filter
(
return
[...
fixedLeftColumns
,
...
defColumns
,
...
fixedRightColumns
].
filter
(
(
item
)
=>
!
item
.
defaultHidden
(
item
)
=>
!
item
.
defaultHidden
,
);
);
}
}
...
...
src/components/Table/src/hooks/useCustomRow.ts
浏览文件 @
56a966cf
...
@@ -15,7 +15,7 @@ interface Options {
...
@@ -15,7 +15,7 @@ interface Options {
function
getKey
(
function
getKey
(
record
:
Recordable
,
record
:
Recordable
,
rowKey
:
string
|
((
record
:
Record
<
string
,
any
>
)
=>
string
)
|
undefined
,
rowKey
:
string
|
((
record
:
Record
<
string
,
any
>
)
=>
string
)
|
undefined
,
autoCreateKey
?:
boolean
autoCreateKey
?:
boolean
,
)
{
)
{
if
(
!
rowKey
||
autoCreateKey
)
{
if
(
!
rowKey
||
autoCreateKey
)
{
return
record
[
ROW_KEY
];
return
record
[
ROW_KEY
];
...
@@ -31,7 +31,7 @@ function getKey(
...
@@ -31,7 +31,7 @@ function getKey(
export
function
useCustomRow
(
export
function
useCustomRow
(
propsRef
:
ComputedRef
<
BasicTableProps
>
,
propsRef
:
ComputedRef
<
BasicTableProps
>
,
{
setSelectedRowKeys
,
getSelectRowKeys
,
getAutoCreateKey
,
clearSelectedRowKeys
,
emit
}:
Options
{
setSelectedRowKeys
,
getSelectRowKeys
,
getAutoCreateKey
,
clearSelectedRowKeys
,
emit
}:
Options
,
)
{
)
{
const
customRow
=
(
record
:
Recordable
,
index
:
number
)
=>
{
const
customRow
=
(
record
:
Recordable
,
index
:
number
)
=>
{
return
{
return
{
...
...
src/components/Table/src/hooks/useDataSource.ts
浏览文件 @
56a966cf
...
@@ -40,7 +40,7 @@ export function useDataSource(
...
@@ -40,7 +40,7 @@ export function useDataSource(
clearSelectedRowKeys
,
clearSelectedRowKeys
,
tableData
,
tableData
,
}:
ActionType
,
}:
ActionType
,
emit
:
EmitType
emit
:
EmitType
,
)
{
)
{
const
searchState
=
reactive
<
SearchState
>
({
const
searchState
=
reactive
<
SearchState
>
({
sortInfo
:
{},
sortInfo
:
{},
...
@@ -61,13 +61,13 @@ export function useDataSource(
...
@@ -61,13 +61,13 @@ export function useDataSource(
},
},
{
{
immediate
:
true
,
immediate
:
true
,
}
}
,
);
);
function
handleTableChange
(
function
handleTableChange
(
pagination
:
PaginationProps
,
pagination
:
PaginationProps
,
filters
:
Partial
<
Recordable
<
string
[]
>>
,
filters
:
Partial
<
Recordable
<
string
[]
>>
,
sorter
:
SorterResult
sorter
:
SorterResult
,
)
{
)
{
const
{
clearSelectOnPageChange
,
sortFn
,
filterFn
}
=
unref
(
propsRef
);
const
{
clearSelectOnPageChange
,
sortFn
,
filterFn
}
=
unref
(
propsRef
);
if
(
clearSelectOnPageChange
)
{
if
(
clearSelectOnPageChange
)
{
...
@@ -148,7 +148,7 @@ export function useDataSource(
...
@@ -148,7 +148,7 @@ export function useDataSource(
function
updateTableDataRecord
(
function
updateTableDataRecord
(
rowKey
:
string
|
number
,
rowKey
:
string
|
number
,
record
:
Recordable
record
:
Recordable
,
):
Recordable
|
undefined
{
):
Recordable
|
undefined
{
const
row
=
findTableDataRecord
(
rowKey
);
const
row
=
findTableDataRecord
(
rowKey
);
...
@@ -206,7 +206,7 @@ export function useDataSource(
...
@@ -206,7 +206,7 @@ export function useDataSource(
const
{
pageField
,
sizeField
,
listField
,
totalField
}
=
Object
.
assign
(
const
{
pageField
,
sizeField
,
listField
,
totalField
}
=
Object
.
assign
(
{},
{},
FETCH_SETTING
,
FETCH_SETTING
,
fetchSetting
fetchSetting
,
);
);
let
pageParams
:
Recordable
=
{};
let
pageParams
:
Recordable
=
{};
...
...
src/components/Table/src/hooks/useLoading.ts
浏览文件 @
56a966cf
...
@@ -8,7 +8,7 @@ export function useLoading(props: ComputedRef<BasicTableProps>) {
...
@@ -8,7 +8,7 @@ export function useLoading(props: ComputedRef<BasicTableProps>) {
()
=>
unref
(
props
).
loading
,
()
=>
unref
(
props
).
loading
,
(
loading
)
=>
{
(
loading
)
=>
{
loadingRef
.
value
=
loading
;
loadingRef
.
value
=
loading
;
}
}
,
);
);
const
getLoading
=
computed
(()
=>
unref
(
loadingRef
));
const
getLoading
=
computed
(()
=>
unref
(
loadingRef
));
...
...
src/components/Table/src/hooks/useRowSelection.ts
浏览文件 @
56a966cf
...
@@ -8,7 +8,7 @@ import { findNodeAll } from '/@/utils/helper/treeHelper';
...
@@ -8,7 +8,7 @@ import { findNodeAll } from '/@/utils/helper/treeHelper';
export
function
useRowSelection
(
export
function
useRowSelection
(
propsRef
:
ComputedRef
<
BasicTableProps
>
,
propsRef
:
ComputedRef
<
BasicTableProps
>
,
tableData
:
Ref
<
Recordable
[]
>
,
tableData
:
Ref
<
Recordable
[]
>
,
emit
:
EmitType
emit
:
EmitType
,
)
{
)
{
const
selectedRowKeysRef
=
ref
<
string
[]
>
([]);
const
selectedRowKeysRef
=
ref
<
string
[]
>
([]);
const
selectedRowRef
=
ref
<
Recordable
[]
>
([]);
const
selectedRowRef
=
ref
<
Recordable
[]
>
([]);
...
@@ -35,7 +35,7 @@ export function useRowSelection(
...
@@ -35,7 +35,7 @@ export function useRowSelection(
()
=>
unref
(
propsRef
).
rowSelection
?.
selectedRowKeys
,
()
=>
unref
(
propsRef
).
rowSelection
?.
selectedRowKeys
,
(
v
:
string
[])
=>
{
(
v
:
string
[])
=>
{
setSelectedRowKeys
(
v
);
setSelectedRowKeys
(
v
);
}
}
,
);
);
watch
(
watch
(
...
@@ -53,7 +53,7 @@ export function useRowSelection(
...
@@ -53,7 +53,7 @@ export function useRowSelection(
});
});
});
});
},
},
{
deep
:
true
}
{
deep
:
true
}
,
);
);
const
getAutoCreateKey
=
computed
(()
=>
{
const
getAutoCreateKey
=
computed
(()
=>
{
...
@@ -72,7 +72,7 @@ export function useRowSelection(
...
@@ -72,7 +72,7 @@ export function useRowSelection(
(
item
)
=>
rowKeys
.
includes
(
item
[
unref
(
getRowKey
)
as
string
]),
(
item
)
=>
rowKeys
.
includes
(
item
[
unref
(
getRowKey
)
as
string
]),
{
{
children
:
propsRef
.
value
.
childrenColumnName
??
'children'
,
children
:
propsRef
.
value
.
childrenColumnName
??
'children'
,
}
}
,
);
);
const
trueSelectedRows
:
any
[]
=
[];
const
trueSelectedRows
:
any
[]
=
[];
rowKeys
.
forEach
((
key
:
string
)
=>
{
rowKeys
.
forEach
((
key
:
string
)
=>
{
...
...
src/components/Table/src/hooks/useTable.ts
浏览文件 @
56a966cf
...
@@ -18,7 +18,7 @@ export function useTable(tableProps?: Props): [
...
@@ -18,7 +18,7 @@ export function useTable(tableProps?: Props): [
(
instance
:
TableActionType
,
formInstance
:
UseTableMethod
)
=>
void
,
(
instance
:
TableActionType
,
formInstance
:
UseTableMethod
)
=>
void
,
TableActionType
&
{
TableActionType
&
{
getForm
:
()
=>
FormActionType
;
getForm
:
()
=>
FormActionType
;
}
}
,
]
{
]
{
const
tableRef
=
ref
<
Nullable
<
TableActionType
>>
(
null
);
const
tableRef
=
ref
<
Nullable
<
TableActionType
>>
(
null
);
const
loadedRef
=
ref
<
Nullable
<
boolean
>>
(
false
);
const
loadedRef
=
ref
<
Nullable
<
boolean
>>
(
false
);
...
@@ -50,7 +50,7 @@ export function useTable(tableProps?: Props): [
...
@@ -50,7 +50,7 @@ export function useTable(tableProps?: Props): [
{
{
immediate
:
true
,
immediate
:
true
,
deep
:
true
,
deep
:
true
,
}
}
,
);
);
}
}
...
@@ -58,7 +58,7 @@ export function useTable(tableProps?: Props): [
...
@@ -58,7 +58,7 @@ export function useTable(tableProps?: Props): [
const
table
=
unref
(
tableRef
);
const
table
=
unref
(
tableRef
);
if
(
!
table
)
{
if
(
!
table
)
{
error
(
error
(
'The table instance has not been obtained yet, please make sure the table is presented when performing the table operation!'
'The table instance has not been obtained yet, please make sure the table is presented when performing the table operation!'
,
);
);
}
}
return
table
as
TableActionType
;
return
table
as
TableActionType
;
...
...
src/components/Table/src/hooks/useTableExpand.ts
浏览文件 @
56a966cf
...
@@ -6,7 +6,7 @@ import { ROW_KEY } from '../const';
...
@@ -6,7 +6,7 @@ import { ROW_KEY } from '../const';
export
function
useTableExpand
(
export
function
useTableExpand
(
propsRef
:
ComputedRef
<
BasicTableProps
>
,
propsRef
:
ComputedRef
<
BasicTableProps
>
,
tableData
:
Ref
<
Recordable
[]
>
,
tableData
:
Ref
<
Recordable
[]
>
,
emit
:
EmitType
emit
:
EmitType
,
)
{
)
{
const
expandedRowKeys
=
ref
<
string
[]
>
([]);
const
expandedRowKeys
=
ref
<
string
[]
>
([]);
...
...
src/components/Table/src/hooks/useTableFooter.ts
浏览文件 @
56a966cf
...
@@ -12,7 +12,7 @@ export function useTableFooter(
...
@@ -12,7 +12,7 @@ export function useTableFooter(
scrollToFirstRowOnChange
:
boolean
;
scrollToFirstRowOnChange
:
boolean
;
}
>
,
}
>
,
tableElRef
:
Ref
<
ComponentRef
>
,
tableElRef
:
Ref
<
ComponentRef
>
,
getDataSourceRef
:
ComputedRef
<
Recordable
>
getDataSourceRef
:
ComputedRef
<
Recordable
>
,
)
{
)
{
const
getIsEmptyData
=
computed
(()
=>
{
const
getIsEmptyData
=
computed
(()
=>
{
return
(
unref
(
getDataSourceRef
)
||
[]).
length
===
0
;
return
(
unref
(
getDataSourceRef
)
||
[]).
length
===
0
;
...
@@ -43,7 +43,7 @@ export function useTableFooter(
...
@@ -43,7 +43,7 @@ export function useTableFooter(
name
:
'scroll'
,
name
:
'scroll'
,
listener
:
()
=>
{
listener
:
()
=>
{
const
footerBodyDom
=
tableEl
.
$el
.
querySelector
(
const
footerBodyDom
=
tableEl
.
$el
.
querySelector
(
'.ant-table-footer .ant-table-body'
'.ant-table-footer .ant-table-body'
,
)
as
HTMLDivElement
;
)
as
HTMLDivElement
;
if
(
!
footerBodyDom
||
!
bodyDom
)
return
;
if
(
!
footerBodyDom
||
!
bodyDom
)
return
;
footerBodyDom
.
scrollLeft
=
bodyDom
.
scrollLeft
;
footerBodyDom
.
scrollLeft
=
bodyDom
.
scrollLeft
;
...
...
src/components/Table/src/hooks/useTableForm.ts
浏览文件 @
56a966cf
...
@@ -8,7 +8,7 @@ export function useTableForm(
...
@@ -8,7 +8,7 @@ export function useTableForm(
propsRef
:
ComputedRef
<
BasicTableProps
>
,
propsRef
:
ComputedRef
<
BasicTableProps
>
,
slots
:
Slots
,
slots
:
Slots
,
fetch
:
(
opt
?:
FetchParams
|
undefined
)
=>
Promise
<
void
>
,
fetch
:
(
opt
?:
FetchParams
|
undefined
)
=>
Promise
<
void
>
,
getLoading
:
ComputedRef
<
boolean
|
undefined
>
getLoading
:
ComputedRef
<
boolean
|
undefined
>
,
)
{
)
{
const
getFormProps
=
computed
(():
Partial
<
FormProps
>
=>
{
const
getFormProps
=
computed
(():
Partial
<
FormProps
>
=>
{
const
{
formConfig
}
=
unref
(
propsRef
);
const
{
formConfig
}
=
unref
(
propsRef
);
...
...
src/components/Table/src/hooks/useTableHeader.ts
浏览文件 @
56a966cf
...
@@ -8,7 +8,7 @@ import { getSlot } from '/@/utils/helper/tsxHelper';
...
@@ -8,7 +8,7 @@ import { getSlot } from '/@/utils/helper/tsxHelper';
export
function
useTableHeader
(
export
function
useTableHeader
(
propsRef
:
ComputedRef
<
BasicTableProps
>
,
propsRef
:
ComputedRef
<
BasicTableProps
>
,
slots
:
Slots
,
slots
:
Slots
,
handlers
:
InnerHandlers
handlers
:
InnerHandlers
,
)
{
)
{
const
getHeaderProps
=
computed
(():
Recordable
=>
{
const
getHeaderProps
=
computed
(():
Recordable
=>
{
const
{
title
,
showTableSetting
,
titleHelpMessage
,
tableSetting
}
=
unref
(
propsRef
);
const
{
title
,
showTableSetting
,
titleHelpMessage
,
tableSetting
}
=
unref
(
propsRef
);
...
@@ -46,7 +46,7 @@ export function useTableHeader(
...
@@ -46,7 +46,7 @@ export function useTableHeader(
headerTop
:
()
=>
getSlot
(
slots
,
'headerTop'
),
headerTop
:
()
=>
getSlot
(
slots
,
'headerTop'
),
}
}
:
{}),
:
{}),
}
}
,
),
),
};
};
});
});
...
...
src/components/Table/src/hooks/useTableScroll.ts
浏览文件 @
56a966cf
...
@@ -13,7 +13,7 @@ export function useTableScroll(
...
@@ -13,7 +13,7 @@ export function useTableScroll(
tableElRef
:
Ref
<
ComponentRef
>
,
tableElRef
:
Ref
<
ComponentRef
>
,
columnsRef
:
ComputedRef
<
BasicColumn
[]
>
,
columnsRef
:
ComputedRef
<
BasicColumn
[]
>
,
rowSelectionRef
:
ComputedRef
<
TableRowSelection
<
any
>
|
null
>
,
rowSelectionRef
:
ComputedRef
<
TableRowSelection
<
any
>
|
null
>
,
getDataSourceRef
:
ComputedRef
<
Recordable
[]
>
getDataSourceRef
:
ComputedRef
<
Recordable
[]
>
,
)
{
)
{
const
tableHeightRef
:
Ref
<
Nullable
<
number
>>
=
ref
(
null
);
const
tableHeightRef
:
Ref
<
Nullable
<
number
>>
=
ref
(
null
);
...
@@ -34,7 +34,7 @@ export function useTableScroll(
...
@@ -34,7 +34,7 @@ export function useTableScroll(
},
},
{
{
flush
:
'post'
,
flush
:
'post'
,
}
}
,
);
);
function
redoHeight
()
{
function
redoHeight
()
{
...
...
src/components/Time/src/Time.vue
浏览文件 @
56a966cf
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
()
=>
{
()
=>
{
setTime
();
setTime
();
},
},
{
immediate
:
true
}
{
immediate
:
true
}
,
);
);
function
getTime
()
{
function
getTime
()
{
...
...
src/components/Tinymce/src/Editor.vue
浏览文件 @
56a966cf
...
@@ -190,7 +190,7 @@
...
@@ -190,7 +190,7 @@
return
;
return
;
}
}
editor
.
setMode
(
attrs
.
disabled
?
'readonly'
:
'design'
);
editor
.
setMode
(
attrs
.
disabled
?
'readonly'
:
'design'
);
}
}
,
);
);
onMountedOrActivated
(()
=>
{
onMountedOrActivated
(()
=>
{
...
@@ -264,7 +264,7 @@
...
@@ -264,7 +264,7 @@
()
=>
props
.
modelValue
,
()
=>
props
.
modelValue
,
(
val
:
string
,
prevVal
:
string
)
=>
{
(
val
:
string
,
prevVal
:
string
)
=>
{
setValue
(
editor
,
val
,
prevVal
);
setValue
(
editor
,
val
,
prevVal
);
}
}
,
);
);
watch
(
watch
(
...
@@ -274,7 +274,7 @@
...
@@ -274,7 +274,7 @@
},
},
{
{
immediate
:
true
,
immediate
:
true
,
}
}
,
);
);
editor
.
on
(
normalizedEvents
?
normalizedEvents
:
'change keyup undo redo'
,
()
=>
{
editor
.
on
(
normalizedEvents
?
normalizedEvents
:
'change keyup undo redo'
,
()
=>
{
...
...
src/components/Transition/index.ts
浏览文件 @
56a966cf
...
@@ -18,10 +18,10 @@ export const ScaleRotateTransition = createSimpleTransition('scale-rotate-transi
...
@@ -18,10 +18,10 @@ export const ScaleRotateTransition = createSimpleTransition('scale-rotate-transi
export
const
ExpandXTransition
=
createJavascriptTransition
(
export
const
ExpandXTransition
=
createJavascriptTransition
(
'expand-x-transition'
,
'expand-x-transition'
,
ExpandTransitionGenerator
(
''
,
true
)
ExpandTransitionGenerator
(
''
,
true
)
,
);
);
export
const
ExpandTransition
=
createJavascriptTransition
(
export
const
ExpandTransition
=
createJavascriptTransition
(
'expand-transition'
,
'expand-transition'
,
ExpandTransitionGenerator
(
''
)
ExpandTransitionGenerator
(
''
)
,
);
);
src/components/Transition/src/CreateTransition.tsx
浏览文件 @
56a966cf
...
@@ -41,7 +41,7 @@ export function createSimpleTransition(name: string, origin = 'top center 0', mo
...
@@ -41,7 +41,7 @@ export function createSimpleTransition(name: string, origin = 'top center 0', mo
export
function
createJavascriptTransition
(
export
function
createJavascriptTransition
(
name
:
string
,
name
:
string
,
functions
:
Recordable
,
functions
:
Recordable
,
mode
:
Mode
=
'in-out'
mode
:
Mode
=
'in-out'
,
)
{
)
{
return
defineComponent
({
return
defineComponent
({
name
,
name
,
...
...
src/components/Tree/src/Tree.vue
浏览文件 @
56a966cf
...
@@ -119,7 +119,7 @@
...
@@ -119,7 +119,7 @@
});
});
const
getTreeData
=
computed
(():
TreeItem
[]
=>
const
getTreeData
=
computed
(():
TreeItem
[]
=>
searchState
.
startSearch
?
searchState
.
searchData
:
unref
(
treeDataRef
)
searchState
.
startSearch
?
searchState
.
searchData
:
unref
(
treeDataRef
)
,
);
);
const
getNotFound
=
computed
(():
boolean
=>
{
const
getNotFound
=
computed
(():
boolean
=>
{
...
@@ -219,7 +219,7 @@
...
@@ -219,7 +219,7 @@
(
node
)
=>
{
(
node
)
=>
{
return
node
[
titleField
]?.
includes
(
searchValue
)
??
false
;
return
node
[
titleField
]?.
includes
(
searchValue
)
??
false
;
},
},
unref
(
getReplaceFields
)
unref
(
getReplaceFields
)
,
);
);
}
}
...
@@ -266,7 +266,7 @@
...
@@ -266,7 +266,7 @@
()
=>
props
.
value
,
()
=>
props
.
value
,
()
=>
{
()
=>
{
state
.
checkedKeys
=
toRaw
(
props
.
value
||
[]);
state
.
checkedKeys
=
toRaw
(
props
.
value
||
[]);
}
}
,
);
);
watch
(
watch
(
...
@@ -275,7 +275,7 @@
...
@@ -275,7 +275,7 @@
const
v
=
toRaw
(
state
.
checkedKeys
);
const
v
=
toRaw
(
state
.
checkedKeys
);
emit
(
'update:value'
,
v
);
emit
(
'update:value'
,
v
);
emit
(
'change'
,
v
);
emit
(
'change'
,
v
);
}
}
,
);
);
// watchEffect(() => {
// watchEffect(() => {
...
...
src/components/Tree/src/TreeHeader.vue
浏览文件 @
56a966cf
...
@@ -143,7 +143,7 @@
...
@@ -143,7 +143,7 @@
()
=>
searchValue
.
value
,
()
=>
searchValue
.
value
,
(
v
)
=>
{
(
v
)
=>
{
debounceEmitChange
(
v
);
debounceEmitChange
(
v
);
}
}
,
);
);
watch
(
watch
(
()
=>
props
.
searchText
,
()
=>
props
.
searchText
,
...
@@ -151,7 +151,7 @@
...
@@ -151,7 +151,7 @@
if
(
v
!==
searchValue
.
value
)
{
if
(
v
!==
searchValue
.
value
)
{
searchValue
.
value
=
v
;
searchValue
.
value
=
v
;
}
}
}
}
,
);
);
// function handleSearch(e: ChangeEvent): void {
// function handleSearch(e: ChangeEvent): void {
// debounceEmitChange(e.target.value);
// debounceEmitChange(e.target.value);
...
...
src/components/Tree/src/useTree.ts
浏览文件 @
56a966cf
...
@@ -8,7 +8,7 @@ import { forEach } from '/@/utils/helper/treeHelper';
...
@@ -8,7 +8,7 @@ import { forEach } from '/@/utils/helper/treeHelper';
export
function
useTree
(
export
function
useTree
(
treeDataRef
:
Ref
<
TreeDataItem
[]
>
,
treeDataRef
:
Ref
<
TreeDataItem
[]
>
,
getReplaceFields
:
ComputedRef
<
ReplaceFields
>
getReplaceFields
:
ComputedRef
<
ReplaceFields
>
,
)
{
)
{
function
getAllKeys
(
list
?:
TreeDataItem
[])
{
function
getAllKeys
(
list
?:
TreeDataItem
[])
{
const
keys
:
string
[]
=
[];
const
keys
:
string
[]
=
[];
...
...
src/components/Upload/src/BasicUpload.vue
浏览文件 @
56a966cf
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
(
value
=
[])
=>
{
(
value
=
[])
=>
{
fileList
.
value
=
isArray
(
value
)
?
value
:
[];
fileList
.
value
=
isArray
(
value
)
?
value
:
[];
},
},
{
immediate
:
true
}
{
immediate
:
true
}
,
);
);
// 上传modal保存操作
// 上传modal保存操作
...
...
src/components/Upload/src/FileList.vue
浏览文件 @
56a966cf
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
nextTick
(()
=>
{
nextTick
(()
=>
{
modalFn
?.
redoModalHeight
?.();
modalFn
?.
redoModalHeight
?.();
});
});
}
}
,
);
);
return
()
=>
{
return
()
=>
{
const
{
columns
,
actionColumn
,
dataSource
}
=
props
;
const
{
columns
,
actionColumn
,
dataSource
}
=
props
;
...
...
src/components/Upload/src/UploadModal.vue
浏览文件 @
56a966cf
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
const
getOkButtonProps
=
computed
(()
=>
{
const
getOkButtonProps
=
computed
(()
=>
{
const
someSuccess
=
fileListRef
.
value
.
some
(
const
someSuccess
=
fileListRef
.
value
.
some
(
(
item
)
=>
item
.
status
===
UploadResultStatus
.
SUCCESS
(
item
)
=>
item
.
status
===
UploadResultStatus
.
SUCCESS
,
);
);
return
{
return
{
disabled
:
isUploadingRef
.
value
||
fileListRef
.
value
.
length
===
0
||
!
someSuccess
,
disabled
:
isUploadingRef
.
value
||
fileListRef
.
value
.
length
===
0
||
!
someSuccess
,
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
const
getUploadBtnText
=
computed
(()
=>
{
const
getUploadBtnText
=
computed
(()
=>
{
const
someError
=
fileListRef
.
value
.
some
(
const
someError
=
fileListRef
.
value
.
some
(
(
item
)
=>
item
.
status
===
UploadResultStatus
.
ERROR
(
item
)
=>
item
.
status
===
UploadResultStatus
.
ERROR
,
);
);
return
isUploadingRef
.
value
return
isUploadingRef
.
value
?
t
(
'component.upload.uploading'
)
?
t
(
'component.upload.uploading'
)
...
@@ -193,7 +193,7 @@
...
@@ -193,7 +193,7 @@
function
onUploadProgress
(
progressEvent
:
ProgressEvent
)
{
function
onUploadProgress
(
progressEvent
:
ProgressEvent
)
{
const
complete
=
((
progressEvent
.
loaded
/
progressEvent
.
total
)
*
100
)
|
0
;
const
complete
=
((
progressEvent
.
loaded
/
progressEvent
.
total
)
*
100
)
|
0
;
item
.
percent
=
complete
;
item
.
percent
=
complete
;
}
}
,
);
);
item
.
status
=
UploadResultStatus
.
SUCCESS
;
item
.
status
=
UploadResultStatus
.
SUCCESS
;
item
.
responseData
=
data
;
item
.
responseData
=
data
;
...
@@ -225,7 +225,7 @@
...
@@ -225,7 +225,7 @@
const
data
=
await
Promise
.
all
(
const
data
=
await
Promise
.
all
(
uploadFileList
.
map
((
item
)
=>
{
uploadFileList
.
map
((
item
)
=>
{
return
uploadApiByItem
(
item
);
return
uploadApiByItem
(
item
);
})
})
,
);
);
isUploadingRef
.
value
=
false
;
isUploadingRef
.
value
=
false
;
// 生产环境:抛出错误
// 生产环境:抛出错误
...
...
src/components/Upload/src/UploadPreviewModal.vue
浏览文件 @
56a966cf
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
};
};
});
});
},
},
{
immediate
:
true
}
{
immediate
:
true
}
,
);
);
// 删除
// 删除
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
emit
(
'delete'
,
removed
[
0
].
url
);
emit
(
'delete'
,
removed
[
0
].
url
);
emit
(
emit
(
'list-change'
,
'list-change'
,
fileListRef
.
value
.
map
((
item
)
=>
item
.
url
)
fileListRef
.
value
.
map
((
item
)
=>
item
.
url
)
,
);
);
}
}
}
}
...
...
src/components/Verify/src/DragVerify.vue
浏览文件 @
56a966cf
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
emit
(
'update:value'
,
isPassing
);
emit
(
'update:value'
,
isPassing
);
emit
(
'change'
,
isPassing
);
emit
(
'change'
,
isPassing
);
}
}
}
}
,
);
);
watchEffect
(()
=>
{
watchEffect
(()
=>
{
...
...
src/components/Verify/src/ImgRotate.vue
浏览文件 @
56a966cf
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
emit
(
'change'
,
isPassing
);
emit
(
'change'
,
isPassing
);
emit
(
'update:value'
,
isPassing
);
emit
(
'update:value'
,
isPassing
);
}
}
}
}
,
);
);
const
getImgWrapStyleRef
=
computed
(()
=>
{
const
getImgWrapStyleRef
=
computed
(()
=>
{
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
const
{
imgWidth
,
height
,
maxDegree
}
=
props
;
const
{
imgWidth
,
height
,
maxDegree
}
=
props
;
const
{
moveX
}
=
data
;
const
{
moveX
}
=
data
;
const
currentRotate
=
Math
.
ceil
(
const
currentRotate
=
Math
.
ceil
(
(
moveX
/
(
imgWidth
!
-
parseInt
(
height
as
string
)))
*
maxDegree
!
*
unref
(
getFactorRef
)
(
moveX
/
(
imgWidth
!
-
parseInt
(
height
as
string
)))
*
maxDegree
!
*
unref
(
getFactorRef
)
,
);
);
state
.
currentRotate
=
currentRotate
;
state
.
currentRotate
=
currentRotate
;
state
.
imgStyle
=
hackCss
(
'transform'
,
`rotateZ(
${
state
.
randomRotate
-
currentRotate
}
deg)`
);
state
.
imgStyle
=
hackCss
(
'transform'
,
`rotateZ(
${
state
.
randomRotate
-
currentRotate
}
deg)`
);
...
...
src/directives/loading.ts
浏览文件 @
56a966cf
...
@@ -15,7 +15,7 @@ const loadingDirective: Directive = {
...
@@ -15,7 +15,7 @@ const loadingDirective: Directive = {
loading
:
!!
binding
.
value
,
loading
:
!!
binding
.
value
,
absolute
:
!
fullscreen
,
absolute
:
!
fullscreen
,
},
},
fullscreen
?
document
.
body
:
el
fullscreen
?
document
.
body
:
el
,
);
);
el
.
instance
=
instance
;
el
.
instance
=
instance
;
},
},
...
...
src/hooks/component/useFormItem.ts
浏览文件 @
56a966cf
...
@@ -16,7 +16,7 @@ export function useRuleFormItem<T extends Recordable>(
...
@@ -16,7 +16,7 @@ export function useRuleFormItem<T extends Recordable>(
props
:
T
,
props
:
T
,
key
:
keyof
T
=
'value'
,
key
:
keyof
T
=
'value'
,
changeEvent
=
'change'
,
changeEvent
=
'change'
,
emitData
?:
Ref
<
any
[]
>
emitData
?:
Ref
<
any
[]
>
,
)
{
)
{
const
instance
=
getCurrentInstance
();
const
instance
=
getCurrentInstance
();
const
emit
=
instance
?.
emit
;
const
emit
=
instance
?.
emit
;
...
...
src/hooks/core/useContext.ts
浏览文件 @
56a966cf
...
@@ -21,7 +21,7 @@ type ShallowUnwrap<T> = {
...
@@ -21,7 +21,7 @@ type ShallowUnwrap<T> = {
export
function
createContext
<
T
>
(
export
function
createContext
<
T
>
(
context
:
any
,
context
:
any
,
key
:
InjectionKey
<
T
>
=
Symbol
(),
key
:
InjectionKey
<
T
>
=
Symbol
(),
options
:
CreateContextOptions
=
{}
options
:
CreateContextOptions
=
{}
,
)
{
)
{
const
{
readonly
=
true
,
createProvider
=
false
,
native
=
false
}
=
options
;
const
{
readonly
=
true
,
createProvider
=
false
,
native
=
false
}
=
options
;
...
@@ -39,7 +39,7 @@ export function useContext<T>(key: InjectionKey<T>, defaultValue?: any, native?:
...
@@ -39,7 +39,7 @@ export function useContext<T>(key: InjectionKey<T>, defaultValue?: any, native?:
export
function
useContext
<
T
>
(
export
function
useContext
<
T
>
(
key
:
InjectionKey
<
T
>
=
Symbol
(),
key
:
InjectionKey
<
T
>
=
Symbol
(),
defaultValue
?:
any
defaultValue
?:
any
,
):
ShallowUnwrap
<
T
>
{
):
ShallowUnwrap
<
T
>
{
return
inject
(
key
,
defaultValue
||
{});
return
inject
(
key
,
defaultValue
||
{});
}
}
src/hooks/core/useLockFn.ts
浏览文件 @
56a966cf
import
{
ref
,
unref
}
from
'vue'
;
import
{
ref
,
unref
}
from
'vue'
;
export
function
useLockFn
<
P
extends
any
[]
=
any
[],
V
extends
any
=
any
>
(
export
function
useLockFn
<
P
extends
any
[]
=
any
[],
V
extends
any
=
any
>
(
fn
:
(...
args
:
P
)
=>
Promise
<
V
>
fn
:
(...
args
:
P
)
=>
Promise
<
V
>
,
)
{
)
{
const
lockRef
=
ref
(
false
);
const
lockRef
=
ref
(
false
);
return
async
function
(...
args
:
P
)
{
return
async
function
(...
args
:
P
)
{
...
...
src/hooks/core/useTimeout.ts
浏览文件 @
56a966cf
...
@@ -16,7 +16,7 @@ export function useTimeoutFn(handle: Fn<any>, wait: number, native = false) {
...
@@ -16,7 +16,7 @@ export function useTimeoutFn(handle: Fn<any>, wait: number, native = false) {
(
maturity
)
=>
{
(
maturity
)
=>
{
maturity
&&
handle
();
maturity
&&
handle
();
},
},
{
immediate
:
false
}
{
immediate
:
false
}
,
);
);
}
}
return
{
readyRef
,
stop
,
start
};
return
{
readyRef
,
stop
,
start
};
...
...
src/hooks/event/useEventListener.ts
浏览文件 @
56a966cf
...
@@ -46,7 +46,7 @@ export function useEventListener({
...
@@ -46,7 +46,7 @@ export function useEventListener({
});
});
}
}
},
},
{
immediate
:
true
}
{
immediate
:
true
}
,
);
);
remove
=
()
=>
{
remove
=
()
=>
{
...
...
src/hooks/event/useScroll.ts
浏览文件 @
56a966cf
...
@@ -10,7 +10,7 @@ export function useScroll(
...
@@ -10,7 +10,7 @@ export function useScroll(
wait
?:
number
;
wait
?:
number
;
leading
?:
boolean
;
leading
?:
boolean
;
trailing
?:
boolean
;
trailing
?:
boolean
;
}
}
,
)
{
)
{
const
refX
=
ref
(
0
);
const
refX
=
ref
(
0
);
const
refY
=
ref
(
0
);
const
refY
=
ref
(
0
);
...
@@ -49,7 +49,7 @@ export function useScroll(
...
@@ -49,7 +49,7 @@ export function useScroll(
el
&&
el
.
removeEventListener
(
'scroll'
,
handler
);
el
&&
el
.
removeEventListener
(
'scroll'
,
handler
);
});
});
},
},
{
immediate
:
true
}
{
immediate
:
true
}
,
);
);
});
});
...
...
src/hooks/setting/index.ts
浏览文件 @
56a966cf
...
@@ -14,7 +14,7 @@ export const useGlobSetting = (): Readonly<GlobConfig> => {
...
@@ -14,7 +14,7 @@ export const useGlobSetting = (): Readonly<GlobConfig> => {
if
(
!
/
[
a-zA-Z
\_]
*/
.
test
(
VITE_GLOB_APP_SHORT_NAME
))
{
if
(
!
/
[
a-zA-Z
\_]
*/
.
test
(
VITE_GLOB_APP_SHORT_NAME
))
{
warn
(
warn
(
`VITE_GLOB_APP_SHORT_NAME Variables can only be characters/underscores, please modify in the environment variables and re-running.`
`VITE_GLOB_APP_SHORT_NAME Variables can only be characters/underscores, please modify in the environment variables and re-running.`
,
);
);
}
}
...
...
src/hooks/setting/useMenuSetting.ts
浏览文件 @
56a966cf
...
@@ -54,7 +54,7 @@ export function useMenuSetting() {
...
@@ -54,7 +54,7 @@ export function useMenuSetting() {
const
getTopMenuAlign
=
computed
(()
=>
appStore
.
getMenuSetting
.
topMenuAlign
);
const
getTopMenuAlign
=
computed
(()
=>
appStore
.
getMenuSetting
.
topMenuAlign
);
const
getCloseMixSidebarOnChange
=
computed
(
const
getCloseMixSidebarOnChange
=
computed
(
()
=>
appStore
.
getMenuSetting
.
closeMixSidebarOnChange
()
=>
appStore
.
getMenuSetting
.
closeMixSidebarOnChange
,
);
);
const
getIsSidebarType
=
computed
(()
=>
unref
(
getMenuType
)
===
MenuTypeEnum
.
SIDEBAR
);
const
getIsSidebarType
=
computed
(()
=>
unref
(
getMenuType
)
===
MenuTypeEnum
.
SIDEBAR
);
...
...
src/hooks/setting/useRootSetting.ts
浏览文件 @
56a966cf
...
@@ -56,7 +56,7 @@ export function useRootSetting() {
...
@@ -56,7 +56,7 @@ export function useRootSetting() {
const
getLayoutContentMode
=
computed
(()
=>
const
getLayoutContentMode
=
computed
(()
=>
appStore
.
getProjectConfig
.
contentMode
===
ContentEnum
.
FULL
appStore
.
getProjectConfig
.
contentMode
===
ContentEnum
.
FULL
?
ContentEnum
.
FULL
?
ContentEnum
.
FULL
:
ContentEnum
.
FIXED
:
ContentEnum
.
FIXED
,
);
);
function
setRootSetting
(
setting
:
Partial
<
RootSetting
>
)
{
function
setRootSetting
(
setting
:
Partial
<
RootSetting
>
)
{
...
...
src/hooks/web/useContentHeight.ts
浏览文件 @
56a966cf
...
@@ -27,7 +27,7 @@ export function useContentHeight(
...
@@ -27,7 +27,7 @@ export function useContentHeight(
anchorRef
:
Ref
,
anchorRef
:
Ref
,
subtractHeightRefs
:
Ref
[],
subtractHeightRefs
:
Ref
[],
substractSpaceRefs
:
Ref
[],
substractSpaceRefs
:
Ref
[],
offsetHeightRef
:
Ref
<
number
>
=
ref
(
0
)
offsetHeightRef
:
Ref
<
number
>
=
ref
(
0
)
,
)
{
)
{
const
contentHeight
:
Ref
<
Nullable
<
number
>>
=
ref
(
null
);
const
contentHeight
:
Ref
<
Nullable
<
number
>>
=
ref
(
null
);
const
{
footerHeightRef
:
layoutFooterHeightRef
}
=
useLayoutHeight
();
const
{
footerHeightRef
:
layoutFooterHeightRef
}
=
useLayoutHeight
();
...
@@ -130,7 +130,7 @@ export function useContentHeight(
...
@@ -130,7 +130,7 @@ export function useContentHeight(
calcContentHeight
();
calcContentHeight
();
},
},
50
,
50
,
{
immediate
:
true
}
{
immediate
:
true
}
,
);
);
watch
(
watch
(
()
=>
[
layoutFooterHeightRef
.
value
],
()
=>
[
layoutFooterHeightRef
.
value
],
...
@@ -140,7 +140,7 @@ export function useContentHeight(
...
@@ -140,7 +140,7 @@ export function useContentHeight(
{
{
flush
:
'post'
,
flush
:
'post'
,
immediate
:
true
,
immediate
:
true
,
}
}
,
);
);
return
{
redoHeight
,
setCompensation
,
contentHeight
};
return
{
redoHeight
,
setCompensation
,
contentHeight
};
...
...
src/hooks/web/useCopyToClipboard.ts
浏览文件 @
56a966cf
...
@@ -17,7 +17,7 @@ export function useCopyToClipboard(initial?: string) {
...
@@ -17,7 +17,7 @@ export function useCopyToClipboard(initial?: string) {
isSuccessRef
.
value
=
copyTextToClipboard
(
str
);
isSuccessRef
.
value
=
copyTextToClipboard
(
str
);
}
}
},
},
{
immediate
:
!!
initial
,
flush
:
'sync'
}
{
immediate
:
!!
initial
,
flush
:
'sync'
}
,
);
);
return
{
clipboardRef
,
isSuccessRef
,
copiedRef
};
return
{
clipboardRef
,
isSuccessRef
,
copiedRef
};
...
...
src/hooks/web/useECharts.ts
浏览文件 @
56a966cf
...
@@ -11,7 +11,7 @@ import { useRootSetting } from '/@/hooks/setting/useRootSetting';
...
@@ -11,7 +11,7 @@ import { useRootSetting } from '/@/hooks/setting/useRootSetting';
export
function
useECharts
(
export
function
useECharts
(
elRef
:
Ref
<
HTMLDivElement
>
,
elRef
:
Ref
<
HTMLDivElement
>
,
theme
:
'light'
|
'dark'
|
'default'
=
'default'
theme
:
'light'
|
'dark'
|
'default'
=
'default'
,
)
{
)
{
const
{
getDarkMode
:
getSysDarkMode
}
=
useRootSetting
();
const
{
getDarkMode
:
getSysDarkMode
}
=
useRootSetting
();
...
@@ -90,7 +90,7 @@ export function useECharts(
...
@@ -90,7 +90,7 @@ export function useECharts(
initCharts
(
theme
as
'default'
);
initCharts
(
theme
as
'default'
);
setOptions
(
cacheOptions
.
value
);
setOptions
(
cacheOptions
.
value
);
}
}
}
}
,
);
);
tryOnUnmounted
(()
=>
{
tryOnUnmounted
(()
=>
{
...
...
src/hooks/web/usePermission.ts
浏览文件 @
56a966cf
...
@@ -88,7 +88,7 @@ export function usePermission() {
...
@@ -88,7 +88,7 @@ export function usePermission() {
async
function
changeRole
(
roles
:
RoleEnum
|
RoleEnum
[]):
Promise
<
void
>
{
async
function
changeRole
(
roles
:
RoleEnum
|
RoleEnum
[]):
Promise
<
void
>
{
if
(
projectSetting
.
permissionMode
!==
PermissionModeEnum
.
ROUTE_MAPPING
)
{
if
(
projectSetting
.
permissionMode
!==
PermissionModeEnum
.
ROUTE_MAPPING
)
{
throw
new
Error
(
throw
new
Error
(
'Please switch PermissionModeEnum to ROUTE_MAPPING mode in the configuration to operate!'
'Please switch PermissionModeEnum to ROUTE_MAPPING mode in the configuration to operate!'
,
);
);
}
}
...
...
src/hooks/web/useTitle.ts
浏览文件 @
56a966cf
...
@@ -6,6 +6,9 @@ import { useRouter } from 'vue-router';
...
@@ -6,6 +6,9 @@ import { useRouter } from 'vue-router';
import
{
REDIRECT_NAME
}
from
'/@/router/constant'
;
import
{
REDIRECT_NAME
}
from
'/@/router/constant'
;
/**
* Listening to page changes and dynamically changing site titles
*/
export
function
useTitle
()
{
export
function
useTitle
()
{
const
{
title
}
=
useGlobSetting
();
const
{
title
}
=
useGlobSetting
();
const
{
t
}
=
useI18n
();
const
{
t
}
=
useI18n
();
...
@@ -17,6 +20,7 @@ export function useTitle() {
...
@@ -17,6 +20,7 @@ export function useTitle() {
()
=>
currentRoute
.
value
.
path
,
()
=>
currentRoute
.
value
.
path
,
()
=>
{
()
=>
{
const
route
=
unref
(
currentRoute
);
const
route
=
unref
(
currentRoute
);
if
(
route
.
name
===
REDIRECT_NAME
)
{
if
(
route
.
name
===
REDIRECT_NAME
)
{
return
;
return
;
}
}
...
@@ -24,6 +28,6 @@ export function useTitle() {
...
@@ -24,6 +28,6 @@ export function useTitle() {
const
tTitle
=
t
(
route
?.
meta
?.
title
as
string
);
const
tTitle
=
t
(
route
?.
meta
?.
title
as
string
);
pageTitle
.
value
=
tTitle
?
`
${
tTitle
}
-
${
title
}
`
:
`
${
title
}
`
;
pageTitle
.
value
=
tTitle
?
`
${
tTitle
}
-
${
title
}
`
:
`
${
title
}
`
;
},
},
{
immediate
:
true
}
{
immediate
:
true
}
,
);
);
}
}
src/hooks/web/useWatermark.ts
浏览文件 @
56a966cf
...
@@ -6,7 +6,7 @@ import { isDef } from '/@/utils/is';
...
@@ -6,7 +6,7 @@ import { isDef } from '/@/utils/is';
const
domSymbol
=
Symbol
(
'watermark-dom'
);
const
domSymbol
=
Symbol
(
'watermark-dom'
);
export
function
useWatermark
(
export
function
useWatermark
(
appendEl
:
Ref
<
HTMLElement
|
null
>
=
ref
(
document
.
body
)
as
Ref
<
HTMLElement
>
appendEl
:
Ref
<
HTMLElement
|
null
>
=
ref
(
document
.
body
)
as
Ref
<
HTMLElement
>
,
)
{
)
{
const
func
=
useRafThrottle
(
function
()
{
const
func
=
useRafThrottle
(
function
()
{
const
el
=
unref
(
appendEl
);
const
el
=
unref
(
appendEl
);
...
@@ -49,7 +49,7 @@ export function useWatermark(
...
@@ -49,7 +49,7 @@ export function useWatermark(
width
?:
number
;
width
?:
number
;
height
?:
number
;
height
?:
number
;
str
?:
string
;
str
?:
string
;
}
=
{}
}
=
{}
,
)
{
)
{
const
el
=
unref
(
watermarkEl
);
const
el
=
unref
(
watermarkEl
);
if
(
!
el
)
return
;
if
(
!
el
)
return
;
...
...
src/layouts/default/content/useContentViewHeight.ts
浏览文件 @
56a966cf
...
@@ -27,7 +27,7 @@ export function useContentViewHeight() {
...
@@ -27,7 +27,7 @@ export function useContentViewHeight() {
contentHeight
.
value
=
window
.
innerHeight
;
contentHeight
.
value
=
window
.
innerHeight
;
},
},
100
,
100
,
{
immediate
:
true
}
{
immediate
:
true
}
,
);
);
async
function
setPageHeight
(
height
:
number
)
{
async
function
setPageHeight
(
height
:
number
)
{
...
...
src/layouts/default/header/components/notify/NoticeList.vue
浏览文件 @
56a966cf
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
()
=>
props
.
currentPage
,
()
=>
props
.
currentPage
,
(
v
)
=>
{
(
v
)
=>
{
current
.
value
=
v
;
current
.
value
=
v
;
}
}
,
);
);
const
isTitleClickable
=
computed
(()
=>
!!
props
.
onTitleClick
);
const
isTitleClickable
=
computed
(()
=>
!!
props
.
onTitleClick
);
const
getPagination
=
computed
(()
=>
{
const
getPagination
=
computed
(()
=>
{
...
...
src/layouts/default/menu/index.vue
浏览文件 @
56a966cf
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
const
{
getIsMobile
}
=
useAppInject
();
const
{
getIsMobile
}
=
useAppInject
();
const
getComputedMenuMode
=
computed
(()
=>
const
getComputedMenuMode
=
computed
(()
=>
unref
(
getIsMobile
)
?
MenuModeEnum
.
INLINE
:
props
.
menuMode
||
unref
(
getMenuMode
)
unref
(
getIsMobile
)
?
MenuModeEnum
.
INLINE
:
props
.
menuMode
||
unref
(
getMenuMode
)
,
);
);
const
getComputedMenuTheme
=
computed
(()
=>
props
.
theme
||
unref
(
getMenuTheme
));
const
getComputedMenuTheme
=
computed
(()
=>
props
.
theme
||
unref
(
getMenuTheme
));
...
...
src/layouts/default/menu/useLayoutMenu.ts
浏览文件 @
56a966cf
...
@@ -20,11 +20,11 @@ export function useSplitMenu(splitType: Ref<MenuSplitTyeEnum>) {
...
@@ -20,11 +20,11 @@ export function useSplitMenu(splitType: Ref<MenuSplitTyeEnum>) {
const
throttleHandleSplitLeftMenu
=
useThrottleFn
(
handleSplitLeftMenu
,
50
);
const
throttleHandleSplitLeftMenu
=
useThrottleFn
(
handleSplitLeftMenu
,
50
);
const
splitNotLeft
=
computed
(
const
splitNotLeft
=
computed
(
()
=>
unref
(
splitType
)
!==
MenuSplitTyeEnum
.
LEFT
&&
!
unref
(
getIsHorizontal
)
()
=>
unref
(
splitType
)
!==
MenuSplitTyeEnum
.
LEFT
&&
!
unref
(
getIsHorizontal
)
,
);
);
const
getSplitLeft
=
computed
(
const
getSplitLeft
=
computed
(
()
=>
!
unref
(
getSplit
)
||
unref
(
splitType
)
!==
MenuSplitTyeEnum
.
LEFT
()
=>
!
unref
(
getSplit
)
||
unref
(
splitType
)
!==
MenuSplitTyeEnum
.
LEFT
,
);
);
const
getSpiltTop
=
computed
(()
=>
unref
(
splitType
)
===
MenuSplitTyeEnum
.
TOP
);
const
getSpiltTop
=
computed
(()
=>
unref
(
splitType
)
===
MenuSplitTyeEnum
.
TOP
);
...
@@ -48,7 +48,7 @@ export function useSplitMenu(splitType: Ref<MenuSplitTyeEnum>) {
...
@@ -48,7 +48,7 @@ export function useSplitMenu(splitType: Ref<MenuSplitTyeEnum>) {
},
},
{
{
immediate
:
true
,
immediate
:
true
,
}
}
,
);
);
// Menu changes
// Menu changes
...
@@ -59,7 +59,7 @@ export function useSplitMenu(splitType: Ref<MenuSplitTyeEnum>) {
...
@@ -59,7 +59,7 @@ export function useSplitMenu(splitType: Ref<MenuSplitTyeEnum>) {
},
},
{
{
immediate
:
true
,
immediate
:
true
,
}
}
,
);
);
// split Menu changes
// split Menu changes
...
@@ -68,7 +68,7 @@ export function useSplitMenu(splitType: Ref<MenuSplitTyeEnum>) {
...
@@ -68,7 +68,7 @@ export function useSplitMenu(splitType: Ref<MenuSplitTyeEnum>) {
()
=>
{
()
=>
{
if
(
unref
(
splitNotLeft
))
return
;
if
(
unref
(
splitNotLeft
))
return
;
genMenus
();
genMenus
();
}
}
,
);
);
// Handle left menu split
// Handle left menu split
...
...
src/layouts/default/setting/components/SettingFooter.vue
浏览文件 @
56a966cf
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
function
handleCopy
()
{
function
handleCopy
()
{
const
{
isSuccessRef
}
=
useCopyToClipboard
(
const
{
isSuccessRef
}
=
useCopyToClipboard
(
JSON
.
stringify
(
unref
(
appStore
.
getProjectConfig
),
null
,
2
)
JSON
.
stringify
(
unref
(
appStore
.
getProjectConfig
),
null
,
2
)
,
);
);
unref
(
isSuccessRef
)
&&
unref
(
isSuccessRef
)
&&
createSuccessModal
({
createSuccessModal
({
...
...
src/layouts/default/tabs/components/FoldButton.vue
浏览文件 @
56a966cf
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
const
getIsUnFold
=
computed
(()
=>
!
unref
(
getShowMenu
)
&&
!
unref
(
getShowHeader
));
const
getIsUnFold
=
computed
(()
=>
!
unref
(
getShowMenu
)
&&
!
unref
(
getShowHeader
));
const
getIcon
=
computed
(()
=>
const
getIcon
=
computed
(()
=>
unref
(
getIsUnFold
)
?
'codicon:screen-normal'
:
'codicon:screen-full'
unref
(
getIsUnFold
)
?
'codicon:screen-normal'
:
'codicon:screen-full'
,
);
);
function
handleFold
()
{
function
handleFold
()
{
...
...
src/layouts/default/tabs/components/TabContent.vue
浏览文件 @
56a966cf
...
@@ -44,12 +44,12 @@
...
@@ -44,12 +44,12 @@
const
getIsTabs
=
computed
(()
=>
!
props
.
isExtra
);
const
getIsTabs
=
computed
(()
=>
!
props
.
isExtra
);
const
getTrigger
=
computed
(():
(
'contextmenu'
|
'click'
|
'hover'
)[]
=>
const
getTrigger
=
computed
(():
(
'contextmenu'
|
'click'
|
'hover'
)[]
=>
unref
(
getIsTabs
)
?
[
'contextmenu'
]
:
[
'click'
]
unref
(
getIsTabs
)
?
[
'contextmenu'
]
:
[
'click'
]
,
);
);
const
{
getDropMenuList
,
handleMenuEvent
,
handleContextMenu
}
=
useTabDropdown
(
const
{
getDropMenuList
,
handleMenuEvent
,
handleContextMenu
}
=
useTabDropdown
(
props
as
TabContentProps
,
props
as
TabContentProps
,
getIsTabs
getIsTabs
,
);
);
function
handleContext
(
e
)
{
function
handleContext
(
e
)
{
...
...
src/logics/error-handle/index.ts
浏览文件 @
56a966cf
...
@@ -85,7 +85,7 @@ export function scriptErrorHandler(
...
@@ -85,7 +85,7 @@ export function scriptErrorHandler(
source
?:
string
,
source
?:
string
,
lineno
?:
number
,
lineno
?:
number
,
colno
?:
number
,
colno
?:
number
,
error
?:
Error
error
?:
Error
,
)
{
)
{
if
(
event
===
'Script error.'
&&
!
source
)
{
if
(
event
===
'Script error.'
&&
!
source
)
{
return
false
;
return
false
;
...
@@ -129,7 +129,7 @@ function registerPromiseErrorHandler() {
...
@@ -129,7 +129,7 @@ function registerPromiseErrorHandler() {
message
:
event
.
reason
,
message
:
event
.
reason
,
});
});
},
},
true
true
,
);
);
}
}
...
@@ -157,7 +157,7 @@ function registerResourceErrorHandler() {
...
@@ -157,7 +157,7 @@ function registerResourceErrorHandler() {
message
:
(
e
.
target
||
({}
as
any
)).
localName
+
' is load error'
,
message
:
(
e
.
target
||
({}
as
any
)).
localName
+
' is load error'
,
});
});
},
},
true
true
,
);
);
}
}
...
...
src/logics/mitt/routeChange.ts
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/main.ts
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/router/helper/routeHelper.ts
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/store/modules/user.ts
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/utils/cache/memory.ts
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/utils/color.ts
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/utils/dateUtil.ts
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/utils/domUtils.ts
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/utils/env.ts
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/utils/helper/treeHelper.ts
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/utils/http/axios/axiosTransform.ts
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/utils/http/axios/checkStatus.ts
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/utils/http/axios/helper.ts
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/utils/http/axios/index.ts
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/utils/index.ts
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/dashboard/analysis/components/SalesProductPie.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/dashboard/analysis/components/VisitRadar.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/dashboard/analysis/components/VisitSource.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/dashboard/workbench/components/ProjectCard.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/dashboard/workbench/components/SaleRadar.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/charts/SaleRadar.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/comp/drawer/Drawer3.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/comp/drawer/Drawer5.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/comp/modal/Modal1.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/comp/modal/Modal3.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/comp/qrcode/index.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/feat/breadcrumb/ChildrenListDetail.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/feat/breadcrumb/FlatListDetail.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/feat/download/index.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/feat/ripple/index.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/form/AppendForm.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/form/DynamicForm.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/main-out/index.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/page/account/setting/AccountBind.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/page/account/setting/BaseSetting.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/page/account/setting/MsgNotify.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/page/account/setting/SecureSetting.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/page/desc/high/index.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/page/result/fail/index.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/page/result/success/index.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/permission/back/Btn.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/permission/back/index.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/permission/front/AuthPageA.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/demo/permission/front/AuthPageB.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/sys/error-log/index.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/sys/lock/LockPage.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
src/views/sys/login/LoginForm.vue
浏览文件 @
56a966cf
差异被折叠。
点击展开。
tests/server/index.ts
浏览文件 @
56a966cf
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论