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
d674db62
Commit
d674db62
authored
Oct 22, 2020
by
eth3lbert
Committed by
言肆
Oct 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(FooterToolbarProps): rename interface
parent
093f3382
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
footer-toolbar.tsx
examples/footer-toolbar.tsx
+2
-2
index.tsx
src/FooterToolbar/index.tsx
+3
-3
No files found.
examples/footer-toolbar.tsx
View file @
d674db62
import
{
Button
,
Card
,
Space
,
Switch
}
from
'ant-design-vue'
;
import
{
Button
,
Card
,
Space
,
Switch
}
from
'ant-design-vue'
;
import
'ant-design-vue/dist/antd.less'
;
import
'ant-design-vue/dist/antd.less'
;
import
{
createApp
,
reactive
}
from
'vue'
;
import
{
createApp
,
reactive
}
from
'vue'
;
import
FooterToolbar
,
{
I
FooterToolbarProps
}
from
'../src/FooterToolbar'
;
import
FooterToolbar
,
{
FooterToolbarProps
}
from
'../src/FooterToolbar'
;
import
{
createRouteContext
}
from
'../src/RouteContext'
;
import
{
createRouteContext
}
from
'../src/RouteContext'
;
const
DemoComponent
=
{
const
DemoComponent
=
{
...
@@ -9,7 +9,7 @@ const DemoComponent = {
...
@@ -9,7 +9,7 @@ const DemoComponent = {
const
state
=
reactive
({
const
state
=
reactive
({
name
:
'value'
,
name
:
'value'
,
hasFooterToolbar
:
'unset'
as
string
|
boolean
,
hasFooterToolbar
:
'unset'
as
string
|
boolean
,
toolbarProps
:
{}
as
I
FooterToolbarProps
,
toolbarProps
:
{}
as
FooterToolbarProps
,
});
});
const
setToolbarProps
=
tProps
=>
{
const
setToolbarProps
=
tProps
=>
{
state
.
toolbarProps
=
{
...
state
.
toolbarProps
,
...
tProps
};
state
.
toolbarProps
=
{
...
state
.
toolbarProps
,
...
tProps
};
...
...
src/FooterToolbar/index.tsx
View file @
d674db62
...
@@ -11,10 +11,10 @@ import { defaultProProviderProps, injectProConfigKey } from '../ProProvider';
...
@@ -11,10 +11,10 @@ import { defaultProProviderProps, injectProConfigKey } from '../ProProvider';
import
{
RouteContextProps
,
useRouteContext
}
from
'../RouteContext'
;
import
{
RouteContextProps
,
useRouteContext
}
from
'../RouteContext'
;
import
'./index.less'
;
import
'./index.less'
;
export
interface
I
FooterToolbarProps
{
export
interface
FooterToolbarProps
{
extra
?:
VNodeChild
|
JSX
.
Element
;
extra
?:
VNodeChild
|
JSX
.
Element
;
renderContent
?:
(
renderContent
?:
(
props
:
thi
s
&
RouteContextProps
&
{
leftWidth
?:
string
},
props
:
FooterToolbarProp
s
&
RouteContextProps
&
{
leftWidth
?:
string
},
dom
:
JSX
.
Element
,
dom
:
JSX
.
Element
,
)
=>
VNodeChild
|
JSX
.
Element
;
)
=>
VNodeChild
|
JSX
.
Element
;
prefixCls
?:
string
;
prefixCls
?:
string
;
...
@@ -23,7 +23,7 @@ export interface IFooterToolbarProps {
...
@@ -23,7 +23,7 @@ export interface IFooterToolbarProps {
const
FooterToolbarProps
=
{
const
FooterToolbarProps
=
{
extra
:
{
type
:
Object
as
PropType
<
VNodeChild
>
},
extra
:
{
type
:
Object
as
PropType
<
VNodeChild
>
},
renderContent
:
{
renderContent
:
{
type
:
Function
as
PropType
<
I
FooterToolbarProps
[
'renderContent'
]
>
,
type
:
Function
as
PropType
<
FooterToolbarProps
[
'renderContent'
]
>
,
},
},
prefixCls
:
{
type
:
String
as
PropType
<
string
>
},
prefixCls
:
{
type
:
String
as
PropType
<
string
>
},
};
};
...
...
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