Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pro-layout
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
packages
pro-layout
Commits
74da9e46
Commit
74da9e46
authored
Nov 19, 2020
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add props def
parent
062f5647
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
3 deletions
+36
-3
BasicLayout.tsx
src/BasicLayout.tsx
+36
-3
No files found.
src/BasicLayout.tsx
View file @
74da9e46
import
'./BasicLayoutTest.less'
;
import
'./BasicLayoutTest.less'
;
import
'./BasicLayout.less'
;
import
'./BasicLayout.less'
;
import
{
App
,
FunctionalComponent
}
from
'vue'
;
import
{
App
,
FunctionalComponent
,
CSSProperties
}
from
'vue'
;
import
{
Layout
}
from
'ant-design-vue'
;
import
{
Layout
}
from
'ant-design-vue'
;
import
{
MenuUnfoldOutlined
,
MenuFoldOutlined
}
from
'@ant-design/icons-vue'
;
import
{
MenuUnfoldOutlined
,
MenuFoldOutlined
}
from
'@ant-design/icons-vue'
;
import
{
default
as
ProProvider
}
from
'./ProProvider'
;
import
{
default
as
ProProvider
,
ProProviderData
}
from
'./ProProvider'
;
import
{
default
as
GlobalFooter
}
from
'./GlobalFooter'
;
import
{
default
as
GlobalFooter
}
from
'./GlobalFooter'
;
import
{
default
as
SiderMenuWrapper
,
SiderMenuWrapperProps
}
from
'./SiderMenu'
;
import
{
default
as
SiderMenuWrapper
,
SiderMenuWrapperProps
}
from
'./SiderMenu'
;
import
{
WrapContent
}
from
'./WrapContent'
;
import
{
WrapContent
}
from
'./WrapContent'
;
import
{
RenderVNodeType
,
WithFalse
}
from
'./typings'
;
const
defaultI18nRender
=
(
key
:
string
)
=>
key
;
const
defaultI18nRender
=
(
key
:
string
)
=>
key
;
export
type
ProLayoutProps
=
SiderMenuWrapperProps
;
export
interface
BasicLayoutProps
{
pure
?:
boolean
;
/**
*@name logo url
*/
logo
?:
string
|
RenderVNodeType
|
WithFalse
<
string
|
RenderVNodeType
>
;
loading
?:
boolean
;
i18n
:
ProProviderData
[
'i18n'
];
onCollapse
?:
(
collapsed
:
boolean
)
=>
void
;
footerRender
?:
WithFalse
<
(
props
:
any
/* FooterProps */
,
defaultDom
:
RenderVNodeType
)
=>
RenderVNodeType
>
;
headerRender
?:
WithFalse
<
(
props
:
any
/* HeaderProps */
)
=>
RenderVNodeType
>
;
/**
* 是否禁用移动端模式,有的管理系统不需要移动端模式,此属性设置为true即可
*/
disableMobile
?:
boolean
;
contentStyle
?:
CSSProperties
;
/**
* 兼用 content的 margin
*/
disableContentMargin
?:
boolean
;
}
export
type
ProLayoutProps
=
BasicLayoutProps
&
SiderMenuWrapperProps
/* & HeaderProps & FooterProps */
;
const
ProLayout
:
FunctionalComponent
<
ProLayoutProps
>
=
(
props
,
{
emit
,
slots
})
=>
{
const
ProLayout
:
FunctionalComponent
<
ProLayoutProps
>
=
(
props
,
{
emit
,
slots
})
=>
{
const
handleClick
=
()
=>
{
const
handleClick
=
()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment