Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
剑九 六千里
vue-vben-admin
提交
8e5a6b7c
V
vue-vben-admin
项目概览
剑九 六千里
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-vben-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8e5a6b7c
编写于
4月 05, 2023
作者:
V
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
perf: 修复部分 eslint 错误
上级
279977b8
变更
42
展开全部
隐藏空白更改
内联
并排
Showing
42 changed file
with
535 addition
and
56 deletion
+535
-56
internal/eslint-config/package.json
internal/eslint-config/package.json
+1
-0
internal/eslint-config/src/index.ts
internal/eslint-config/src/index.ts
+22
-14
pnpm-lock.yaml
pnpm-lock.yaml
+471
-5
src/api/demo/select.ts
src/api/demo/select.ts
+1
-0
src/api/sys/model/menuModel.ts
src/api/sys/model/menuModel.ts
+1
-0
src/components/Drawer/src/props.ts
src/components/Drawer/src/props.ts
+1
-0
src/components/Form/src/hooks/useAdvanced.ts
src/components/Form/src/hooks/useAdvanced.ts
+1
-2
src/components/Form/src/types/form.ts
src/components/Form/src/types/form.ts
+1
-2
src/components/Loading/src/createLoading.ts
src/components/Loading/src/createLoading.ts
+1
-2
src/components/Markdown/src/typing.ts
src/components/Markdown/src/typing.ts
+1
-0
src/components/Menu/src/props.ts
src/components/Menu/src/props.ts
+1
-0
src/components/Menu/src/useOpenKeys.ts
src/components/Menu/src/useOpenKeys.ts
+1
-2
src/components/Modal/src/hooks/useModal.ts
src/components/Modal/src/hooks/useModal.ts
+1
-1
src/components/Qrcode/src/drawLogo.ts
src/components/Qrcode/src/drawLogo.ts
+1
-0
src/components/Qrcode/src/qrcodePlus.ts
src/components/Qrcode/src/qrcodePlus.ts
+1
-0
src/components/Qrcode/src/toCanvas.ts
src/components/Qrcode/src/toCanvas.ts
+1
-0
src/components/Scrollbar/src/util.ts
src/components/Scrollbar/src/util.ts
+1
-0
src/components/SimpleMenu/src/useOpenKeys.ts
src/components/SimpleMenu/src/useOpenKeys.ts
+1
-2
src/components/Table/src/hooks/useTableScroll.ts
src/components/Table/src/hooks/useTableScroll.ts
+1
-2
src/components/Table/src/types/tableAction.ts
src/components/Table/src/types/tableAction.ts
+1
-0
src/components/Upload/src/useUpload.ts
src/components/Upload/src/useUpload.ts
+1
-0
src/components/VxeTable/src/VxeBasicTable.tsx
src/components/VxeTable/src/VxeBasicTable.tsx
+1
-2
src/directives/ripple/index.ts
src/directives/ripple/index.ts
+1
-0
src/hooks/core/useAttrs.ts
src/hooks/core/useAttrs.ts
+1
-0
src/hooks/web/useContextMenu.ts
src/hooks/web/useContextMenu.ts
+1
-0
src/hooks/web/useCopyToClipboard.ts
src/hooks/web/useCopyToClipboard.ts
+1
-0
src/hooks/web/useECharts.ts
src/hooks/web/useECharts.ts
+1
-2
src/router/routes/modules/demo/iframe.ts
src/router/routes/modules/demo/iframe.ts
+2
-1
src/settings/projectSetting.ts
src/settings/projectSetting.ts
+1
-0
src/utils/auth/index.ts
src/utils/auth/index.ts
+1
-2
src/utils/cache/index.ts
src/utils/cache/index.ts
+1
-2
src/utils/cipher.ts
src/utils/cipher.ts
+1
-2
src/utils/http/axios/Axios.ts
src/utils/http/axios/Axios.ts
+1
-2
src/views/demo/page/form/basic/data.ts
src/views/demo/page/form/basic/data.ts
+1
-0
src/views/demo/system/account/account.data.ts
src/views/demo/system/account/account.data.ts
+1
-2
src/views/demo/system/dept/dept.data.ts
src/views/demo/system/dept/dept.data.ts
+1
-2
src/views/demo/system/menu/menu.data.ts
src/views/demo/system/menu/menu.data.ts
+1
-2
src/views/demo/system/role/role.data.ts
src/views/demo/system/role/role.data.ts
+1
-2
src/views/form-design/hooks/useFormInstanceMethods.ts
src/views/form-design/hooks/useFormInstanceMethods.ts
+1
-3
src/views/form-design/typings/v-form-component.ts
src/views/form-design/typings/v-form-component.ts
+1
-0
src/views/form-design/utils/message.ts
src/views/form-design/utils/message.ts
+1
-0
types/module.d.ts
types/module.d.ts
+2
-0
未找到文件。
internal/eslint-config/package.json
浏览文件 @
8e5a6b7c
...
...
@@ -35,6 +35,7 @@
"@typescript-eslint/parser"
:
"^5.57.1"
,
"eslint"
:
"^8.37.0"
,
"eslint-config-prettier"
:
"^8.8.0"
,
"eslint-plugin-import"
:
"^2.27.5"
,
"eslint-plugin-prettier"
:
"^4.2.1"
,
"eslint-plugin-vue"
:
"^9.10.0"
,
"vue-eslint-parser"
:
"^9.1.1"
...
...
internal/eslint-config/src/index.ts
浏览文件 @
8e5a6b7c
...
...
@@ -17,7 +17,7 @@ export default {
createDefaultProgram
:
false
,
extraFileExtensions
:
[
'
.vue
'
],
},
plugins
:
[
'
vue
'
,
'
@typescript-eslint
'
],
plugins
:
[
'
vue
'
,
'
@typescript-eslint
'
,
'
import
'
],
extends
:
[
'
eslint:recommended
'
,
'
plugin:vue/vue3-recommended
'
,
...
...
@@ -25,16 +25,20 @@ export default {
'
plugin:prettier/recommended
'
,
],
rules
:
{
'
no-unused-vars
'
:
'
off
'
,
'
no-case-declarations
'
:
'
off
'
,
'
vue/script-setup-uses-vars
'
:
'
error
'
,
'
vue/no-reserved-component-names
'
:
'
off
'
,
'
no-use-before-define
'
:
'
off
'
,
'
space-before-function-paren
'
:
'
off
'
,
'
import/first
'
:
'
error
'
,
'
import/newline-after-import
'
:
'
error
'
,
'
import/no-duplicates
'
:
'
error
'
,
'
@typescript-eslint/ban-ts-ignore
'
:
'
off
'
,
'
@typescript-eslint/explicit-function-return-type
'
:
'
off
'
,
'
@typescript-eslint/no-explicit-any
'
:
'
off
'
,
'
@typescript-eslint/no-var-requires
'
:
'
off
'
,
'
@typescript-eslint/no-empty-function
'
:
'
off
'
,
'
vue/custom-event-name-casing
'
:
'
off
'
,
'
no-use-before-define
'
:
'
off
'
,
'
@typescript-eslint/no-use-before-define
'
:
'
off
'
,
'
@typescript-eslint/ban-ts-comment
'
:
'
off
'
,
'
@typescript-eslint/ban-types
'
:
'
off
'
,
...
...
@@ -47,15 +51,9 @@ export default {
varsIgnorePattern
:
'
^_
'
,
},
],
'
no-unused-vars
'
:
[
'
error
'
,
{
argsIgnorePattern
:
'
^_
'
,
varsIgnorePattern
:
'
^_
'
,
},
],
'
space-before-function-paren
'
:
'
off
'
,
'
vue/script-setup-uses-vars
'
:
'
error
'
,
'
vue/no-reserved-component-names
'
:
'
off
'
,
'
vue/custom-event-name-casing
'
:
'
off
'
,
'
vue/attributes-order
'
:
'
off
'
,
'
vue/one-component-per-file
'
:
'
off
'
,
'
vue/html-closing-bracket-newline
'
:
'
off
'
,
...
...
@@ -78,5 +76,15 @@ export default {
},
],
'
vue/multi-word-component-names
'
:
'
off
'
,
// 'sort-imports': [
// 'error',
// {
// ignoreCase: true,
// ignoreDeclarationSort: false,
// ignoreMemberSort: false,
// memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
// allowSeparatedGroups: false,
// },
// ],
},
};
pnpm-lock.yaml
浏览文件 @
8e5a6b7c
此差异已折叠。
点击以展开。
src/api/demo/select.ts
浏览文件 @
8e5a6b7c
import
{
defHttp
}
from
'
/@/utils/http/axios
'
;
import
{
DemoOptionsItem
,
selectParams
}
from
'
./model/optionsModel
'
;
enum
Api
{
OPTIONS_LIST
=
'
/select/getDemoOptions
'
,
}
...
...
src/api/sys/model/menuModel.ts
浏览文件 @
8e5a6b7c
import
type
{
RouteMeta
}
from
'
vue-router
'
;
export
interface
RouteItem
{
path
:
string
;
component
:
any
;
...
...
src/components/Drawer/src/props.ts
浏览文件 @
8e5a6b7c
import
type
{
PropType
}
from
'
vue
'
;
import
{
useI18n
}
from
'
/@/hooks/web/useI18n
'
;
const
{
t
}
=
useI18n
();
export
const
footerProps
=
{
...
...
src/components/Form/src/hooks/useAdvanced.ts
浏览文件 @
8e5a6b7c
import
type
{
ColEx
}
from
'
../types
'
;
import
type
{
AdvanceState
}
from
'
../types/hooks
'
;
import
{
ComputedRef
,
getCurrentInstance
,
Ref
,
shallowReactive
}
from
'
vue
'
;
import
{
ComputedRef
,
getCurrentInstance
,
Ref
,
shallowReactive
,
computed
,
unref
,
watch
}
from
'
vue
'
;
import
type
{
FormProps
,
FormSchema
}
from
'
../types/form
'
;
import
{
computed
,
unref
,
watch
}
from
'
vue
'
;
import
{
isBoolean
,
isFunction
,
isNumber
,
isObject
}
from
'
/@/utils/is
'
;
import
{
useBreakpoint
}
from
'
/@/hooks/event/useBreakpoint
'
;
import
{
useDebounceFn
}
from
'
@vueuse/core
'
;
...
...
src/components/Form/src/types/form.ts
浏览文件 @
8e5a6b7c
import
type
{
NamePath
,
RuleObject
}
from
'
ant-design-vue/lib/form/interface
'
;
import
type
{
VNode
}
from
'
vue
'
;
import
type
{
VNode
,
CSSProperties
}
from
'
vue
'
;
import
type
{
ButtonProps
as
AntdButtonProps
}
from
'
/@/components/Button
'
;
import
type
{
FormItem
}
from
'
./formItem
'
;
import
type
{
ColEx
,
ComponentType
}
from
'
./index
'
;
import
type
{
TableActionType
}
from
'
/@/components/Table/src/types/table
'
;
import
type
{
CSSProperties
}
from
'
vue
'
;
import
type
{
RowProps
}
from
'
ant-design-vue/lib/grid/Row
'
;
export
type
FieldMapToTime
=
[
string
,
[
string
,
string
],
(
string
|
[
string
,
string
])?][];
...
...
src/components/Loading/src/createLoading.ts
浏览文件 @
8e5a6b7c
import
{
VNode
,
defineComponent
}
from
'
vue
'
;
import
{
VNode
,
defineComponent
,
createVNode
,
render
,
reactive
,
h
}
from
'
vue
'
;
import
type
{
LoadingProps
}
from
'
./typing
'
;
import
{
createVNode
,
render
,
reactive
,
h
}
from
'
vue
'
;
import
Loading
from
'
./Loading.vue
'
;
export
function
createLoading
(
props
?:
Partial
<
LoadingProps
>
,
target
?:
HTMLElement
,
wait
=
false
)
{
...
...
src/components/Markdown/src/typing.ts
浏览文件 @
8e5a6b7c
import
Vditor
from
'
vditor
'
;
export
interface
MarkDownActionType
{
getVditor
:
()
=>
Vditor
;
}
src/components/Menu/src/props.ts
浏览文件 @
8e5a6b7c
...
...
@@ -6,6 +6,7 @@ import { ThemeEnum } from '/@/enums/appEnum';
import
{
propTypes
}
from
'
/@/utils/propTypes
'
;
import
type
{
MenuTheme
}
from
'
ant-design-vue
'
;
import
type
{
MenuMode
}
from
'
ant-design-vue/lib/menu/src/interface
'
;
export
const
basicProps
=
{
items
:
{
type
:
Array
as
PropType
<
Menu
[]
>
,
...
...
src/components/Menu/src/useOpenKeys.ts
浏览文件 @
8e5a6b7c
...
...
@@ -2,9 +2,8 @@ import { MenuModeEnum } from '/@/enums/menuEnum';
import
type
{
Menu
as
MenuType
}
from
'
/@/router/types
'
;
import
type
{
MenuState
}
from
'
./types
'
;
import
{
computed
,
Ref
,
toRaw
}
from
'
vue
'
;
import
{
computed
,
Ref
,
toRaw
,
unref
}
from
'
vue
'
;
import
{
unref
}
from
'
vue
'
;
import
{
uniq
}
from
'
lodash-es
'
;
import
{
useMenuSetting
}
from
'
/@/hooks/setting/useMenuSetting
'
;
import
{
getAllParentPath
}
from
'
/@/router/helper/menuHelper
'
;
...
...
src/components/Modal/src/hooks/useModal.ts
浏览文件 @
8e5a6b7c
...
...
@@ -14,13 +14,13 @@ import {
watchEffect
,
nextTick
,
toRaw
,
computed
,
}
from
'
vue
'
;
import
{
isProdMode
}
from
'
/@/utils/env
'
;
import
{
isFunction
}
from
'
/@/utils/is
'
;
import
{
isEqual
}
from
'
lodash-es
'
;
import
{
tryOnUnmounted
}
from
'
@vueuse/core
'
;
import
{
error
}
from
'
/@/utils/log
'
;
import
{
computed
}
from
'
vue
'
;
const
dataTransfer
=
reactive
<
any
>
({});
...
...
src/components/Qrcode/src/drawLogo.ts
浏览文件 @
8e5a6b7c
import
{
isString
}
from
'
/@/utils/is
'
;
import
{
RenderQrCodeParams
,
LogoType
}
from
'
./typing
'
;
export
const
drawLogo
=
({
canvas
,
logo
}:
RenderQrCodeParams
)
=>
{
if
(
!
logo
)
{
return
new
Promise
((
resolve
)
=>
{
...
...
src/components/Qrcode/src/qrcodePlus.ts
浏览文件 @
8e5a6b7c
// 参考 qr-code-with-logo 进行ts版本修改
import
{
toCanvas
}
from
'
./toCanvas
'
;
export
*
from
'
./typing
'
;
export
{
toCanvas
};
src/components/Qrcode/src/toCanvas.ts
浏览文件 @
8e5a6b7c
import
{
renderQrCode
}
from
'
./drawCanvas
'
;
import
{
drawLogo
}
from
'
./drawLogo
'
;
import
{
RenderQrCodeParams
}
from
'
./typing
'
;
export
const
toCanvas
=
(
options
:
RenderQrCodeParams
)
=>
{
return
renderQrCode
(
options
)
.
then
(()
=>
{
...
...
src/components/Scrollbar/src/util.ts
浏览文件 @
8e5a6b7c
import
type
{
BarMap
}
from
'
./types
'
;
export
const
BAR_MAP
:
BarMap
=
{
vertical
:
{
offset
:
'
offsetHeight
'
,
...
...
src/components/SimpleMenu/src/useOpenKeys.ts
浏览文件 @
8e5a6b7c
import
type
{
Menu
as
MenuType
}
from
'
/@/router/types
'
;
import
type
{
MenuState
}
from
'
./types
'
;
import
{
computed
,
Ref
,
toRaw
}
from
'
vue
'
;
import
{
computed
,
Ref
,
toRaw
,
unref
}
from
'
vue
'
;
import
{
unref
}
from
'
vue
'
;
import
{
uniq
}
from
'
lodash-es
'
;
import
{
getAllParentPath
}
from
'
/@/router/helper/menuHelper
'
;
...
...
src/components/Table/src/hooks/useTableScroll.ts
浏览文件 @
8e5a6b7c
import
type
{
BasicTableProps
,
TableRowSelection
,
BasicColumn
}
from
'
../types/table
'
;
import
{
Ref
,
ComputedRef
,
ref
}
from
'
vue
'
;
import
{
computed
,
unref
,
nextTick
,
watch
}
from
'
vue
'
;
import
{
Ref
,
ComputedRef
,
ref
,
computed
,
unref
,
nextTick
,
watch
}
from
'
vue
'
;
import
{
getViewportOffset
}
from
'
/@/utils/domUtils
'
;
import
{
isBoolean
}
from
'
/@/utils/is
'
;
import
{
useWindowSizeFn
}
from
'
/@/hooks/event/useWindowSizeFn
'
;
...
...
src/components/Table/src/types/tableAction.ts
浏览文件 @
8e5a6b7c
import
{
ButtonProps
}
from
'
ant-design-vue/es/button/buttonTypes
'
;
import
{
TooltipProps
}
from
'
ant-design-vue/es/tooltip/Tooltip
'
;
import
{
RoleEnum
}
from
'
/@/enums/roleEnum
'
;
export
interface
ActionItem
extends
ButtonProps
{
onClick
?:
Fn
;
label
?:
string
;
...
...
src/components/Upload/src/useUpload.ts
浏览文件 @
8e5a6b7c
import
{
Ref
,
unref
,
computed
}
from
'
vue
'
;
import
{
useI18n
}
from
'
/@/hooks/web/useI18n
'
;
const
{
t
}
=
useI18n
();
export
function
useUploadType
({
acceptRef
,
...
...
src/components/VxeTable/src/VxeBasicTable.tsx
浏览文件 @
8e5a6b7c
import
{
defineComponent
}
from
'
vue
'
;
import
{
computed
,
ref
}
from
'
vue
'
;
import
{
defineComponent
,
computed
,
ref
}
from
'
vue
'
;
import
{
BasicTableProps
}
from
'
./types
'
;
import
{
basicProps
}
from
'
./props
'
;
import
{
ignorePropKeys
}
from
'
./const
'
;
...
...
src/directives/ripple/index.ts
浏览文件 @
8e5a6b7c
import
type
{
Directive
}
from
'
vue
'
;
import
'
./index.less
'
;
export
interface
RippleOptions
{
event
:
string
;
transition
:
number
;
...
...
src/hooks/core/useAttrs.ts
浏览文件 @
8e5a6b7c
import
{
getCurrentInstance
,
reactive
,
shallowRef
,
watchEffect
}
from
'
vue
'
;
import
type
{
Ref
}
from
'
vue
'
;
interface
Params
{
excludeListeners
?:
boolean
;
excludeKeys
?:
string
[];
...
...
src/hooks/web/useContextMenu.ts
浏览文件 @
8e5a6b7c
import
{
onUnmounted
,
getCurrentInstance
}
from
'
vue
'
;
import
{
createContextMenu
,
destroyContextMenu
}
from
'
/@/components/ContextMenu
'
;
import
type
{
ContextMenuItem
}
from
'
/@/components/ContextMenu
'
;
export
type
{
ContextMenuItem
};
export
function
useContextMenu
(
authRemove
=
true
)
{
if
(
getCurrentInstance
()
&&
authRemove
)
{
...
...
src/hooks/web/useCopyToClipboard.ts
浏览文件 @
8e5a6b7c
import
{
ref
,
watch
}
from
'
vue
'
;
import
{
isDef
}
from
'
/@/utils/is
'
;
interface
Options
{
target
?:
HTMLElement
;
}
...
...
src/hooks/web/useECharts.ts
浏览文件 @
8e5a6b7c
import
type
{
EChartsOption
}
from
'
echarts
'
;
import
type
{
Ref
}
from
'
vue
'
;
import
{
useTimeoutFn
}
from
'
/@/hooks/core/useTimeout
'
;
import
{
tryOnUnmounted
}
from
'
@vueuse/core
'
;
import
{
tryOnUnmounted
,
useDebounceFn
}
from
'
@vueuse/core
'
;
import
{
unref
,
nextTick
,
watch
,
computed
,
ref
}
from
'
vue
'
;
import
{
useDebounceFn
}
from
'
@vueuse/core
'
;
import
{
useEventListener
}
from
'
/@/hooks/event/useEventListener
'
;
import
{
useBreakpoint
}
from
'
/@/hooks/event/useBreakpoint
'
;
import
echarts
from
'
/@/utils/lib/echarts
'
;
...
...
src/router/routes/modules/demo/iframe.ts
浏览文件 @
8e5a6b7c
import
type
{
AppRouteModule
}
from
'
/@/router/types
'
;
import
{
LAYOUT
}
from
'
/@/router/constant
'
;
const
IFrame
=
()
=>
import
(
'
/@/views/sys/iframe/FrameBlank.vue
'
);
import
{
t
}
from
'
/@/hooks/web/useI18n
'
;
const
IFrame
=
()
=>
import
(
'
/@/views/sys/iframe/FrameBlank.vue
'
);
const
iframe
:
AppRouteModule
=
{
path
:
'
/frame
'
,
name
:
'
Frame
'
,
...
...
src/settings/projectSetting.ts
浏览文件 @
8e5a6b7c
...
...
@@ -10,6 +10,7 @@ import {
SessionTimeoutProcessingEnum
,
}
from
'
/@/enums/appEnum
'
;
import
{
SIDE_BAR_BG_COLOR_LIST
,
HEADER_PRESET_BG_COLOR_LIST
}
from
'
./designSetting
'
;
const
primaryColor
=
'
#0960bd
'
;
// ! You need to clear the browser cache after the change
...
...
src/utils/auth/index.ts
浏览文件 @
8e5a6b7c
import
{
Persistent
,
BasicKeys
}
from
'
/@/utils/cache/persistent
'
;
import
{
CacheTypeEnum
}
from
'
/@/enums/cacheEnum
'
;
import
{
CacheTypeEnum
,
TOKEN_KEY
}
from
'
/@/enums/cacheEnum
'
;
import
projectSetting
from
'
/@/settings/projectSetting
'
;
import
{
TOKEN_KEY
}
from
'
/@/enums/cacheEnum
'
;
const
{
permissionCacheType
}
=
projectSetting
;
const
isLocal
=
permissionCacheType
===
CacheTypeEnum
.
LOCAL
;
...
...
src/utils/cache/index.ts
浏览文件 @
8e5a6b7c
import
{
getStorageShortName
}
from
'
/@/utils/env
'
;
import
{
createStorage
as
create
,
CreateStorageParams
}
from
'
./storageCache
'
;
import
{
enableStorageEncryption
}
from
'
/@/settings/encryptionSetting
'
;
import
{
DEFAULT_CACHE_TIME
}
from
'
/@/settings/encryptionSetting
'
;
import
{
enableStorageEncryption
,
DEFAULT_CACHE_TIME
}
from
'
/@/settings/encryptionSetting
'
;
export
type
Options
=
Partial
<
CreateStorageParams
>
;
...
...
src/utils/cipher.ts
浏览文件 @
8e5a6b7c
import
{
encrypt
,
decrypt
}
from
'
crypto-js/aes
'
;
import
{
parse
}
from
'
crypto-js/enc-utf8
'
;
import
UTF8
,
{
parse
}
from
'
crypto-js/enc-utf8
'
;
import
pkcs7
from
'
crypto-js/pad-pkcs7
'
;
import
ECB
from
'
crypto-js/mode-ecb
'
;
import
md5
from
'
crypto-js/md5
'
;
import
UTF8
from
'
crypto-js/enc-utf8
'
;
import
Base64
from
'
crypto-js/enc-base64
'
;
export
interface
EncryptionParams
{
...
...
src/utils/http/axios/Axios.ts
浏览文件 @
8e5a6b7c
...
...
@@ -6,8 +6,7 @@ import qs from 'qs';
import
{
AxiosCanceler
}
from
'
./axiosCancel
'
;
import
{
isFunction
}
from
'
/@/utils/is
'
;
import
{
cloneDeep
}
from
'
lodash-es
'
;
import
{
ContentTypeEnum
}
from
'
/@/enums/httpEnum
'
;
import
{
RequestEnum
}
from
'
/@/enums/httpEnum
'
;
import
{
ContentTypeEnum
,
RequestEnum
}
from
'
/@/enums/httpEnum
'
;
export
*
from
'
./axiosTransform
'
;
...
...
src/views/demo/page/form/basic/data.ts
浏览文件 @
8e5a6b7c
import
{
FormSchema
}
from
'
/@/components/Form
'
;
const
colProps
=
{
span
:
8
,
};
...
...
src/views/demo/system/account/account.data.ts
浏览文件 @
8e5a6b7c
import
{
getAllRoleList
,
isAccountExist
}
from
'
/@/api/demo/system
'
;
import
{
BasicColumn
}
from
'
/@/components/Table
'
;
import
{
FormSchema
}
from
'
/@/components/Table
'
;
import
{
BasicColumn
,
FormSchema
}
from
'
/@/components/Table
'
;
export
const
columns
:
BasicColumn
[]
=
[
{
...
...
src/views/demo/system/dept/dept.data.ts
浏览文件 @
8e5a6b7c
import
{
BasicColumn
}
from
'
/@/components/Table
'
;
import
{
FormSchema
}
from
'
/@/components/Table
'
;
import
{
BasicColumn
,
FormSchema
}
from
'
/@/components/Table
'
;
import
{
h
}
from
'
vue
'
;
import
{
Tag
}
from
'
ant-design-vue
'
;
...
...
src/views/demo/system/menu/menu.data.ts
浏览文件 @
8e5a6b7c
import
{
BasicColumn
}
from
'
/@/components/Table
'
;
import
{
FormSchema
}
from
'
/@/components/Table
'
;
import
{
BasicColumn
,
FormSchema
}
from
'
/@/components/Table
'
;
import
{
h
}
from
'
vue
'
;
import
{
Tag
}
from
'
ant-design-vue
'
;
import
{
Icon
}
from
'
/@/components/Icon
'
;
...
...
src/views/demo/system/role/role.data.ts
浏览文件 @
8e5a6b7c
import
{
BasicColumn
}
from
'
/@/components/Table
'
;
import
{
FormSchema
}
from
'
/@/components/Table
'
;
import
{
BasicColumn
,
FormSchema
}
from
'
/@/components/Table
'
;
import
{
h
}
from
'
vue
'
;
import
{
Switch
}
from
'
ant-design-vue
'
;
import
{
setRoleStatus
}
from
'
/@/api/demo/system
'
;
...
...
src/views/form-design/hooks/useFormInstanceMethods.ts
浏览文件 @
8e5a6b7c
import
{
IAnyObject
}
from
'
../typings/base-type
'
;
import
{
Ref
,
SetupContext
}
from
'
vue
'
;
import
{
Ref
,
SetupContext
,
getCurrentInstance
,
toRaw
}
from
'
vue
'
;
import
{
cloneDeep
,
forOwn
,
isFunction
}
from
'
lodash-es
'
;
import
{
AForm
,
IVFormComponent
}
from
'
../typings/v-form-component
'
;
import
{
getCurrentInstance
}
from
'
vue
'
;
import
{
Form
}
from
'
ant-design-vue
'
;
import
{
toRaw
}
from
'
vue
'
;
export
function
useFormInstanceMethods
(
props
:
IAnyObject
,
...
...
src/views/form-design/typings/v-form-component.ts
浏览文件 @
8e5a6b7c
...
...
@@ -8,6 +8,7 @@ import { SelectValue } from 'ant-design-vue/lib/select';
import
{
validateOptions
}
from
'
ant-design-vue/lib/form/useForm
'
;
import
{
RuleError
}
from
'
ant-design-vue/lib/form/interface
'
;
import
{
FormItem
}
from
'
/@/components/Form
'
;
type
LayoutType
=
'
horizontal
'
|
'
vertical
'
|
'
inline
'
;
type
labelLayout
=
'
flex
'
|
'
Grid
'
;
export
type
PropsTabKey
=
1
|
2
|
3
;
...
...
src/views/form-design/utils/message.ts
浏览文件 @
8e5a6b7c
import
{
useMessage
}
from
'
/@/hooks/web/useMessage
'
;
const
{
createMessage
}
=
useMessage
();
const
message
=
Object
.
assign
({
success
:
(
msg
:
string
)
=>
{
...
...
types/module.d.ts
浏览文件 @
8e5a6b7c
declare
module
'
*.vue
'
{
import
{
DefineComponent
}
from
'
vue
'
;
const
Component
:
DefineComponent
<
{},
{},
any
>
;
export
default
Component
;
}
declare
module
'
ant-design-vue/es/locale/*
'
{
import
{
Locale
}
from
'
ant-design-vue/types/locale-provider
'
;
const
locale
:
Locale
&
ReadonlyRecordable
;
export
default
locale
as
Locale
&
ReadonlyRecordable
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录