Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
Details
Activity
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
ReactWeb5
wisdom-components
Commits
d15ad32c
Commit
d15ad32c
authored
Nov 22, 2021
by
秦文海
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 获取组件dom
parent
494f51c8
Pipeline
#38454
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
index.js
packages/base-components/TipTool/src/index.js
+4
-4
No files found.
packages/base-components/TipTool/src/index.js
View file @
d15ad32c
import
React
,
{
useState
,
useContext
}
from
'react'
;
import
React
,
{
useState
,
useContext
,
forwardRef
}
from
'react'
;
import
classNames
from
'classnames'
;
import
{
ConfigProvider
}
from
'antd'
;
import
{
Header
}
from
'./header'
;
...
...
@@ -6,7 +6,7 @@ import { LeftList } from './leftList';
import
_
from
'lodash'
;
import
'./index.less'
;
const
TipTool
=
(
props
)
=>
{
const
TipTool
=
forwardRef
((
props
,
ref
)
=>
{
const
{
style
}
=
props
;
const
{
leftSetting
,
headerSetting
,
events
}
=
props
.
dataList
;
const
{
getPrefixCls
}
=
useContext
(
ConfigProvider
.
ConfigContext
);
...
...
@@ -82,7 +82,7 @@ const TipTool = (props) => {
}
};
return
(
<
div
className
=
{
classNames
(
`
${
prefixCls
}
-Tipwripconter`
)}
style
=
{
computedStyle
()}
>
<
div
className
=
{
classNames
(
`
${
prefixCls
}
-Tipwripconter`
)}
ref
=
{
ref
}
style
=
{
computedStyle
()}
>
<
Header
headerSetting
=
{
headerSetting
}
events
=
{
events
}
...
...
@@ -99,7 +99,7 @@ const TipTool = (props) => {
<
/div
>
<
/div
>
);
};
}
)
;
//分类可见与不可见属性的数组
export
const
getVisibleAttribues
=
function
(
attribuesArr
,
fields
)
{
var
attrs
=
[];
...
...
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