Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
submodule
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
web_component
submodule
Commits
b515c00b
Commit
b515c00b
authored
Aug 06, 2020
by
zhangwenshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改评分样式
parent
ce24a1ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
Cell.tsx
components/apolloTable/component/Cell.tsx
+3
-0
index.tsx
components/apolloTable/component/base/detail/rate/index.tsx
+2
-2
index.tsx
components/apolloTable/component/base/edit/rate/index.tsx
+9
-2
No files found.
components/apolloTable/component/Cell.tsx
View file @
b515c00b
...
...
@@ -235,6 +235,9 @@ const Cell = (props: CellProps) => {
}
else
{
detailConfig
=
config
[
String
(
columnType
)]
||
config
[
'1'
];
}
if
(
Number
(
columnType
)
===
8
){
empty
=
false
;
}
const
DetailComp
:
any
=
detailConfig
.
detailComp
;
const
newProps
=
{
...
...
components/apolloTable/component/base/detail/rate/index.tsx
View file @
b515c00b
import
React
from
'react'
;
import
{
Rate
}
from
'antd'
;
import
{
Icon
,
Rate
}
from
'antd'
;
import
{
RateProps
}
from
'../detailInterface'
;
import
{
isNumber
}
from
'../../../../utils/utils'
;
...
...
@@ -11,5 +11,5 @@ export const ApolloRateDetail = (props: RateProps) => {
if
(
!
isNumber
(
formatValue
))
{
return
null
;
}
return
<
Rate
disabled
value=
{
formatValue
}
/>;
return
<
Rate
disabled
value=
{
formatValue
}
character=
{
<
Icon
type=
"like"
theme=
"filled"
/>
}
/>;
};
components/apolloTable/component/base/edit/rate/index.tsx
View file @
b515c00b
import
React
from
'react'
;
import
{
Rate
}
from
'antd'
;
import
{
Icon
,
Rate
}
from
'antd'
;
import
{
antiAssign
}
from
'../../../../utils/utils'
;
import
s
from
'./index.less'
;
import
{
ApolloRateProps
}
from
'../editInterface'
;
...
...
@@ -26,5 +26,12 @@ export const ApolloRate = (props: ApolloRateProps) => {
onChange
(
value
);
}
};
return
<
Rate
className=
{
s
.
rate
}
{
...
selfProps
}
onChange=
{
changeValue
}
/>;
return
(
<
Rate
className=
{
s
.
rate
}
{
...
selfProps
}
character=
{
<
Icon
type=
"like"
theme=
"filled"
/>
}
onChange=
{
changeValue
}
/>
);
};
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