Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaojuan huang
Ccms
Commits
c9148eb8
Commit
c9148eb8
authored
3 years ago
by
wangailin
Browse files
Options
Download
Email Patches
Plain Diff
feat: 表格DescriptionConfig 内容优化
parent
feefd27e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/steps/table/index.tsx
+19
-7
src/steps/table/index.tsx
with
19 additions
and
7 deletions
+19
-7
src/steps/table/index.tsx
+
19
-
7
View file @
c9148eb8
...
...
@@ -71,6 +71,16 @@ export interface TableOperationDropdownConfig {
operations
:
Array
<
TableOperationConfig
>
}
/**
* 表格步骤-操作配置文件下拉菜单
*/
export
interface
TableOperationDropdownConfig
{
type
:
'
dropdown
'
label
?:
string
level
?:
'
normal
'
|
'
primary
'
|
'
danger
'
operations
:
Array
<
TableOperationConfig
>
}
/**
* 表格步骤-操作配置文件格式
*/
...
...
@@ -122,6 +132,12 @@ interface TableOperationConfirmConfig {
cancelText
:
string
}
export
interface
DescriptionConfig
{
type
:
'
text
'
|
'
tooltip
'
|
'
modal
'
label
:
string
|
undefined
content
:
React
.
ReactNode
showIcon
:
boolean
}
/**
* 表格步骤组件 - UI渲染方法 - 入参
* - data: 数据
...
...
@@ -139,14 +155,9 @@ export interface ITable {
onChange
:
(
page
:
number
,
pageSize
:
number
)
=>
void
}
tableOperations
:
React
.
ReactNode
|
null
multirowOperations
:
React
.
ReactNode
|
null
,
description
?:
{
type
:
'
text
'
|
'
tooltip
'
|
'
modal
'
label
:
string
|
undefined
content
:
React
.
ReactNode
showIcon
:
boolean
},
leftTableOperations
:
React
.
ReactNode
|
null
multirowOperations
:
React
.
ReactNode
|
null
,
description
?:
DescriptionConfig
}
/**
...
...
@@ -546,6 +557,7 @@ export default class TableStep extends Step<TableConfig, TableState> {
您当前使用的UI版本没有实现Table组件的OperationDropdownItem部分。
</
React
.
Fragment
>
}
renderOperationModal
=
(
props
:
ITableStepOperationModal
)
=>
{
const
mask
=
document
.
createElement
(
'
DIV
'
)
mask
.
style
.
position
=
'
fixed
'
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help