feffery_antd_components 0.2.2 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DESCRIPTION +1 -1
- package/Project.toml +1 -1
- package/README-en_US.md +1 -1
- package/README.md +1 -1
- package/build/lib/feffery_antd_components/AntdAccordion.py +2 -2
- package/build/lib/feffery_antd_components/AntdCollapse.py +1 -1
- package/build/lib/feffery_antd_components/AntdDraggerUpload.py +4 -0
- package/build/lib/feffery_antd_components/AntdDropdown.py +11 -3
- package/build/lib/feffery_antd_components/AntdPictureUpload.py +4 -0
- package/build/lib/feffery_antd_components/AntdTable.py +12 -5
- package/build/lib/feffery_antd_components/AntdTree.py +11 -3
- package/build/lib/feffery_antd_components/AntdUpload.py +4 -0
- package/build/lib/feffery_antd_components/feffery_antd_components.min.js +1 -1
- package/build/lib/feffery_antd_components/metadata.json +129 -1
- package/build/lib/feffery_antd_components/package-info.json +1 -1
- package/feffery_antd_components/AntdAccordion.py +2 -2
- package/feffery_antd_components/AntdCollapse.py +1 -1
- package/feffery_antd_components/AntdDraggerUpload.py +4 -0
- package/feffery_antd_components/AntdDropdown.py +11 -3
- package/feffery_antd_components/AntdPictureUpload.py +4 -0
- package/feffery_antd_components/AntdTable.py +12 -5
- package/feffery_antd_components/AntdTree.py +11 -3
- package/feffery_antd_components/AntdUpload.py +4 -0
- package/feffery_antd_components/feffery_antd_components.min.js +1 -1
- package/feffery_antd_components/metadata.json +129 -1
- package/feffery_antd_components/package-info.json +1 -1
- package/package.json +1 -1
- package/src/jl/'feffery'_antdaccordion.jl +2 -2
- package/src/jl/'feffery'_antdcollapse.jl +1 -1
- package/src/jl/'feffery'_antddraggerupload.jl +4 -2
- package/src/jl/'feffery'_antddropdown.jl +5 -1
- package/src/jl/'feffery'_antdpictureupload.jl +4 -2
- package/src/jl/'feffery'_antdtable.jl +6 -3
- package/src/jl/'feffery'_antdtree.jl +5 -1
- package/src/jl/'feffery'_antdupload.jl +4 -2
- package/src/lib/components/AntdAccordion.react.js +4 -4
- package/src/lib/components/AntdCollapse.react.js +2 -2
- package/src/lib/components/AntdDropdown.react.js +57 -15
- package/src/lib/components/AntdTable.react.js +126 -92
- package/src/lib/components/AntdTree.react.js +72 -11
- package/src/lib/components/upload/AntdDraggerUpload.react.js +14 -3
- package/src/lib/components/upload/AntdPictureUpload.react.js +14 -3
- package/src/lib/components/upload/AntdUpload.react.js +14 -3
- package/usage.py +131 -48
|
@@ -95,6 +95,10 @@
|
|
|
95
95
|
{
|
|
96
96
|
"value": "'disabled'",
|
|
97
97
|
"computed": false
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"value": "'icon'",
|
|
101
|
+
"computed": false
|
|
98
102
|
}
|
|
99
103
|
],
|
|
100
104
|
"required": false
|
|
@@ -208,6 +212,10 @@
|
|
|
208
212
|
{
|
|
209
213
|
"value": "'disabled'",
|
|
210
214
|
"computed": false
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"value": "'icon'",
|
|
218
|
+
"computed": false
|
|
211
219
|
}
|
|
212
220
|
]
|
|
213
221
|
},
|
|
@@ -3240,6 +3248,10 @@
|
|
|
3240
3248
|
{
|
|
3241
3249
|
"value": "'disabled'",
|
|
3242
3250
|
"computed": false
|
|
3251
|
+
},
|
|
3252
|
+
{
|
|
3253
|
+
"value": "'icon'",
|
|
3254
|
+
"computed": false
|
|
3243
3255
|
}
|
|
3244
3256
|
]
|
|
3245
3257
|
},
|
|
@@ -5571,6 +5583,31 @@
|
|
|
5571
5583
|
"required": false,
|
|
5572
5584
|
"description": ""
|
|
5573
5585
|
},
|
|
5586
|
+
"freePosition": {
|
|
5587
|
+
"type": {
|
|
5588
|
+
"name": "bool"
|
|
5589
|
+
},
|
|
5590
|
+
"required": false,
|
|
5591
|
+
"description": "",
|
|
5592
|
+
"defaultValue": {
|
|
5593
|
+
"value": "false",
|
|
5594
|
+
"computed": false
|
|
5595
|
+
}
|
|
5596
|
+
},
|
|
5597
|
+
"freePositionStyle": {
|
|
5598
|
+
"type": {
|
|
5599
|
+
"name": "object"
|
|
5600
|
+
},
|
|
5601
|
+
"required": false,
|
|
5602
|
+
"description": ""
|
|
5603
|
+
},
|
|
5604
|
+
"freePositionClassName": {
|
|
5605
|
+
"type": {
|
|
5606
|
+
"name": "string"
|
|
5607
|
+
},
|
|
5608
|
+
"required": false,
|
|
5609
|
+
"description": ""
|
|
5610
|
+
},
|
|
5574
5611
|
"clickedKey": {
|
|
5575
5612
|
"type": {
|
|
5576
5613
|
"name": "string"
|
|
@@ -5727,6 +5764,17 @@
|
|
|
5727
5764
|
"computed": false
|
|
5728
5765
|
}
|
|
5729
5766
|
},
|
|
5767
|
+
"autoAdjustOverflow": {
|
|
5768
|
+
"type": {
|
|
5769
|
+
"name": "bool"
|
|
5770
|
+
},
|
|
5771
|
+
"required": false,
|
|
5772
|
+
"description": "",
|
|
5773
|
+
"defaultValue": {
|
|
5774
|
+
"value": "true",
|
|
5775
|
+
"computed": false
|
|
5776
|
+
}
|
|
5777
|
+
},
|
|
5730
5778
|
"visible": {
|
|
5731
5779
|
"type": {
|
|
5732
5780
|
"name": "bool"
|
|
@@ -14023,6 +14071,12 @@
|
|
|
14023
14071
|
"value": {
|
|
14024
14072
|
"name": "union",
|
|
14025
14073
|
"value": [
|
|
14074
|
+
{
|
|
14075
|
+
"name": "arrayOf",
|
|
14076
|
+
"value": {
|
|
14077
|
+
"name": "any"
|
|
14078
|
+
}
|
|
14079
|
+
},
|
|
14026
14080
|
{
|
|
14027
14081
|
"name": "string"
|
|
14028
14082
|
},
|
|
@@ -14593,7 +14647,15 @@
|
|
|
14593
14647
|
"required": false
|
|
14594
14648
|
},
|
|
14595
14649
|
"value": {
|
|
14596
|
-
"name": "
|
|
14650
|
+
"name": "union",
|
|
14651
|
+
"value": [
|
|
14652
|
+
{
|
|
14653
|
+
"name": "string"
|
|
14654
|
+
},
|
|
14655
|
+
{
|
|
14656
|
+
"name": "number"
|
|
14657
|
+
}
|
|
14658
|
+
],
|
|
14597
14659
|
"required": false
|
|
14598
14660
|
}
|
|
14599
14661
|
}
|
|
@@ -15469,6 +15531,31 @@
|
|
|
15469
15531
|
"computed": false
|
|
15470
15532
|
}
|
|
15471
15533
|
},
|
|
15534
|
+
"recentlyCellDoubleClickColumn": {
|
|
15535
|
+
"type": {
|
|
15536
|
+
"name": "string"
|
|
15537
|
+
},
|
|
15538
|
+
"required": false,
|
|
15539
|
+
"description": ""
|
|
15540
|
+
},
|
|
15541
|
+
"recentlyCellDoubleClickRecord": {
|
|
15542
|
+
"type": {
|
|
15543
|
+
"name": "object"
|
|
15544
|
+
},
|
|
15545
|
+
"required": false,
|
|
15546
|
+
"description": ""
|
|
15547
|
+
},
|
|
15548
|
+
"nDoubleClicksCell": {
|
|
15549
|
+
"type": {
|
|
15550
|
+
"name": "number"
|
|
15551
|
+
},
|
|
15552
|
+
"required": false,
|
|
15553
|
+
"description": "",
|
|
15554
|
+
"defaultValue": {
|
|
15555
|
+
"value": "0",
|
|
15556
|
+
"computed": false
|
|
15557
|
+
}
|
|
15558
|
+
},
|
|
15472
15559
|
"emptyContent": {
|
|
15473
15560
|
"type": {
|
|
15474
15561
|
"name": "node"
|
|
@@ -17659,6 +17746,23 @@
|
|
|
17659
17746
|
"required": false,
|
|
17660
17747
|
"description": ""
|
|
17661
17748
|
},
|
|
17749
|
+
"clickedContextMenu": {
|
|
17750
|
+
"type": {
|
|
17751
|
+
"name": "exact",
|
|
17752
|
+
"value": {
|
|
17753
|
+
"nodeKey": {
|
|
17754
|
+
"name": "string",
|
|
17755
|
+
"required": false
|
|
17756
|
+
},
|
|
17757
|
+
"menuKey": {
|
|
17758
|
+
"name": "string",
|
|
17759
|
+
"required": false
|
|
17760
|
+
}
|
|
17761
|
+
}
|
|
17762
|
+
},
|
|
17763
|
+
"required": false,
|
|
17764
|
+
"description": ""
|
|
17765
|
+
},
|
|
17662
17766
|
"loading_state": {
|
|
17663
17767
|
"type": {
|
|
17664
17768
|
"name": "shape",
|
|
@@ -23550,6 +23654,14 @@
|
|
|
23550
23654
|
"url": {
|
|
23551
23655
|
"name": "string",
|
|
23552
23656
|
"required": false
|
|
23657
|
+
},
|
|
23658
|
+
"taskId": {
|
|
23659
|
+
"name": "string",
|
|
23660
|
+
"required": false
|
|
23661
|
+
},
|
|
23662
|
+
"fileSize": {
|
|
23663
|
+
"name": "number",
|
|
23664
|
+
"required": false
|
|
23553
23665
|
}
|
|
23554
23666
|
}
|
|
23555
23667
|
}
|
|
@@ -24096,6 +24208,14 @@
|
|
|
24096
24208
|
"url": {
|
|
24097
24209
|
"name": "string",
|
|
24098
24210
|
"required": false
|
|
24211
|
+
},
|
|
24212
|
+
"taskId": {
|
|
24213
|
+
"name": "string",
|
|
24214
|
+
"required": false
|
|
24215
|
+
},
|
|
24216
|
+
"fileSize": {
|
|
24217
|
+
"name": "number",
|
|
24218
|
+
"required": false
|
|
24099
24219
|
}
|
|
24100
24220
|
}
|
|
24101
24221
|
}
|
|
@@ -24571,6 +24691,14 @@
|
|
|
24571
24691
|
"url": {
|
|
24572
24692
|
"name": "string",
|
|
24573
24693
|
"required": false
|
|
24694
|
+
},
|
|
24695
|
+
"taskId": {
|
|
24696
|
+
"name": "string",
|
|
24697
|
+
"required": false
|
|
24698
|
+
},
|
|
24699
|
+
"fileSize": {
|
|
24700
|
+
"name": "number",
|
|
24701
|
+
"required": false
|
|
24574
24702
|
}
|
|
24575
24703
|
}
|
|
24576
24704
|
}
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ Keyword arguments:
|
|
|
17
17
|
- `activeKey` (String | Array of Strings | Real | Array of Reals; optional)
|
|
18
18
|
- `bordered` (Bool; optional)
|
|
19
19
|
- `className` (String | Dict; optional)
|
|
20
|
-
- `collapsible` (a value equal to: 'header', 'disabled'; optional)
|
|
20
|
+
- `collapsible` (a value equal to: 'header', 'disabled', 'icon'; optional)
|
|
21
21
|
- `defaultActiveKey` (String | Array of Strings | Real | Array of Reals; optional)
|
|
22
22
|
- `expandIconPosition` (a value equal to: 'left', 'right'; optional)
|
|
23
23
|
- `ghost` (Bool; optional)
|
|
@@ -27,7 +27,7 @@ Those elements have the following types:
|
|
|
27
27
|
- `className` (String | Dict; optional)
|
|
28
28
|
- `style` (Dict; optional)
|
|
29
29
|
- `key` (String | Real; required)
|
|
30
|
-
- `collapsible` (a value equal to: 'header', 'disabled'; optional)
|
|
30
|
+
- `collapsible` (a value equal to: 'header', 'disabled', 'icon'; optional)
|
|
31
31
|
- `title` (a list of or a singular dash component, string or number; optional)
|
|
32
32
|
- `extra` (a list of or a singular dash component, string or number; optional)
|
|
33
33
|
- `showArrow` (Bool; optional)
|
|
@@ -15,7 +15,7 @@ Keyword arguments:
|
|
|
15
15
|
- `id` (String; optional)
|
|
16
16
|
- `bordered` (Bool; optional)
|
|
17
17
|
- `className` (String | Dict; optional)
|
|
18
|
-
- `collapsible` (a value equal to: 'header', 'disabled'; optional)
|
|
18
|
+
- `collapsible` (a value equal to: 'header', 'disabled', 'icon'; optional)
|
|
19
19
|
- `forceRender` (Bool; optional)
|
|
20
20
|
- `ghost` (Bool; optional)
|
|
21
21
|
- `isOpen` (Bool; optional)
|
|
@@ -12,12 +12,14 @@ Keyword arguments:
|
|
|
12
12
|
- `apiUrl` (String; optional)
|
|
13
13
|
- `className` (String | Dict; optional)
|
|
14
14
|
- `confirmBeforeDelete` (Bool; optional)
|
|
15
|
-
- `defaultFileList` (optional): . defaultFileList has the following type: Array of lists containing elements 'name', 'status', 'uid', 'url'.
|
|
15
|
+
- `defaultFileList` (optional): . defaultFileList has the following type: Array of lists containing elements 'name', 'status', 'uid', 'url', 'taskId', 'fileSize'.
|
|
16
16
|
Those elements have the following types:
|
|
17
17
|
- `name` (String; optional)
|
|
18
18
|
- `status` (a value equal to: 'done', 'error', 'removed'; optional)
|
|
19
19
|
- `uid` (Bool | Real | String | Dict | Array; optional)
|
|
20
|
-
- `url` (String; optional)
|
|
20
|
+
- `url` (String; optional)
|
|
21
|
+
- `taskId` (String; optional)
|
|
22
|
+
- `fileSize` (Real; optional)s
|
|
21
23
|
- `directory` (Bool; optional)
|
|
22
24
|
- `disabled` (Bool; optional)
|
|
23
25
|
- `downloadUrl` (String; optional)
|
|
@@ -10,6 +10,7 @@ An AntdDropdown component.
|
|
|
10
10
|
Keyword arguments:
|
|
11
11
|
- `id` (String; optional)
|
|
12
12
|
- `arrow` (Bool; optional)
|
|
13
|
+
- `autoAdjustOverflow` (Bool; optional)
|
|
13
14
|
- `buttonMode` (Bool; optional)
|
|
14
15
|
- `buttonProps` (optional): . buttonProps has the following type: lists containing elements 'size', 'type', 'danger'.
|
|
15
16
|
Those elements have the following types:
|
|
@@ -19,6 +20,9 @@ Those elements have the following types:
|
|
|
19
20
|
- `className` (String | Dict; optional)
|
|
20
21
|
- `clickedKey` (String; optional)
|
|
21
22
|
- `disabled` (Bool; optional)
|
|
23
|
+
- `freePosition` (Bool; optional)
|
|
24
|
+
- `freePositionClassName` (String; optional)
|
|
25
|
+
- `freePositionStyle` (Dict; optional)
|
|
22
26
|
- `key` (String; optional)
|
|
23
27
|
- `loading_state` (optional): . loading_state has the following type: lists containing elements 'is_loading', 'prop_name', 'component_name'.
|
|
24
28
|
Those elements have the following types:
|
|
@@ -45,7 +49,7 @@ Those elements have the following types:
|
|
|
45
49
|
- `visible` (Bool; optional)
|
|
46
50
|
"""
|
|
47
51
|
function 'feffery'_antddropdown(; kwargs...)
|
|
48
|
-
available_props = Symbol[:id, :arrow, :buttonMode, :buttonProps, :className, :clickedKey, :disabled, :key, :loading_state, :menuItems, :nClicks, :overlayClassName, :overlayStyle, :placement, :popupContainer, :style, :title, :trigger, :visible]
|
|
52
|
+
available_props = Symbol[:id, :arrow, :autoAdjustOverflow, :buttonMode, :buttonProps, :className, :clickedKey, :disabled, :freePosition, :freePositionClassName, :freePositionStyle, :key, :loading_state, :menuItems, :nClicks, :overlayClassName, :overlayStyle, :placement, :popupContainer, :style, :title, :trigger, :visible]
|
|
49
53
|
wild_props = Symbol[]
|
|
50
54
|
return Component("'feffery'_antddropdown", "AntdDropdown", "feffery_antd_components", available_props, wild_props; kwargs...)
|
|
51
55
|
end
|
|
@@ -13,12 +13,14 @@ Keyword arguments:
|
|
|
13
13
|
- `buttonContent` (a list of or a singular dash component, string or number; optional)
|
|
14
14
|
- `className` (String | Dict; optional)
|
|
15
15
|
- `confirmBeforeDelete` (Bool; optional)
|
|
16
|
-
- `defaultFileList` (optional): . defaultFileList has the following type: Array of lists containing elements 'name', 'status', 'uid', 'url'.
|
|
16
|
+
- `defaultFileList` (optional): . defaultFileList has the following type: Array of lists containing elements 'name', 'status', 'uid', 'url', 'taskId', 'fileSize'.
|
|
17
17
|
Those elements have the following types:
|
|
18
18
|
- `name` (String; optional)
|
|
19
19
|
- `status` (a value equal to: 'done', 'error', 'removed'; optional)
|
|
20
20
|
- `uid` (Bool | Real | String | Dict | Array; optional)
|
|
21
|
-
- `url` (String; optional)
|
|
21
|
+
- `url` (String; optional)
|
|
22
|
+
- `taskId` (String; optional)
|
|
23
|
+
- `fileSize` (Real; optional)s
|
|
22
24
|
- `disabled` (Bool; optional)
|
|
23
25
|
- `downloadUrl` (String; optional)
|
|
24
26
|
- `editConfig` (optional): . editConfig has the following type: lists containing elements 'aspect', 'shape', 'grid', 'quality', 'zoom', 'rotate', 'minZoom', 'maxZoom', 'modalTitle', 'modalWidth', 'modalOk', 'modalCancel'.
|
|
@@ -56,7 +56,7 @@ Those elements have the following types:
|
|
|
56
56
|
- `containerId` (String; optional)
|
|
57
57
|
- `currentData` (Array; optional)
|
|
58
58
|
- `customFormatFuncs` (Dict with Strings as keys and values of type String; optional)
|
|
59
|
-
- `data` (optional): . data has the following type: Array of Dict with Strings as keys and values of type String | Real | lists containing elements 'content', 'href', 'target', 'disabled'.
|
|
59
|
+
- `data` (optional): . data has the following type: Array of Dict with Strings as keys and values of type Array of Bool | Real | String | Dict | Arrays | String | Real | lists containing elements 'content', 'href', 'target', 'disabled'.
|
|
60
60
|
Those elements have the following types:
|
|
61
61
|
- `content` (String; optional)
|
|
62
62
|
- `href` (String; optional)
|
|
@@ -145,7 +145,7 @@ Those elements have the following types:
|
|
|
145
145
|
- `options` (optional): . options has the following type: Array of lists containing elements 'label', 'value'.
|
|
146
146
|
Those elements have the following types:
|
|
147
147
|
- `label` (String; optional)
|
|
148
|
-
- `value` (String; optional)s
|
|
148
|
+
- `value` (String | Real; optional)s
|
|
149
149
|
- `listHeight` (Real; optional)
|
|
150
150
|
- `mode` (a value equal to: 'multiple', 'tags'; optional)
|
|
151
151
|
- `disabled` (Bool; optional)
|
|
@@ -190,6 +190,7 @@ Those elements have the following types:
|
|
|
190
190
|
- `nClicksButton` (Real; optional)
|
|
191
191
|
- `nClicksCell` (Real; optional)
|
|
192
192
|
- `nClicksDropdownItem` (Real; optional)
|
|
193
|
+
- `nDoubleClicksCell` (Real; optional)
|
|
193
194
|
- `pagination` (optional): . pagination has the following type: lists containing elements 'position', 'pageSize', 'current', 'showSizeChanger', 'pageSizeOptions', 'showTitle', 'showQuickJumper', 'showTotalPrefix', 'showTotalSuffix', 'hideOnSinglePage', 'simple', 'disabled', 'size', 'total'.
|
|
194
195
|
Those elements have the following types:
|
|
195
196
|
- `position` (a value equal to: 'topLeft', 'topCenter', 'topRight', 'bottomLeft', 'bottomCenter', 'bottomRight'; optional)
|
|
@@ -210,6 +211,8 @@ Those elements have the following types:
|
|
|
210
211
|
- `recentlyButtonClickedRow` (Dict; optional)
|
|
211
212
|
- `recentlyCellClickColumn` (String; optional)
|
|
212
213
|
- `recentlyCellClickRecord` (Dict; optional)
|
|
214
|
+
- `recentlyCellDoubleClickColumn` (String; optional)
|
|
215
|
+
- `recentlyCellDoubleClickRecord` (Dict; optional)
|
|
213
216
|
- `recentlyChangedRow` (Dict; optional)
|
|
214
217
|
- `recentlyCheckedDataIndex` (String; optional)
|
|
215
218
|
- `recentlyCheckedLabel` (String; optional)
|
|
@@ -258,7 +261,7 @@ Those elements have the following types:
|
|
|
258
261
|
- `overlayStyle` (Dict; optional)
|
|
259
262
|
"""
|
|
260
263
|
function 'feffery'_antdtable(; kwargs...)
|
|
261
|
-
available_props = Symbol[:id, :bordered, :cellUpdateOptimize, :className, :clickedContent, :columns, :columnsFormatConstraint, :conditionalStyleFuncs, :containerId, :currentData, :customFormatFuncs, :data, :defaultExpandedRowKeys, :emptyContent, :enableCellClickListenColumns, :enableHoverListen, :expandRowByClick, :expandedRowKeyToContent, :expandedRowWidth, :filter, :filterOptions, :hiddenRowKeys, :key, :loading_state, :locale, :maxHeight, :maxWidth, :miniChartAnimation, :miniChartHeight, :mode, :nClicksButton, :nClicksCell, :nClicksDropdownItem, :pagination, :recentlyButtonClickedDataIndex, :recentlyButtonClickedRow, :recentlyCellClickColumn, :recentlyCellClickRecord, :recentlyChangedRow, :recentlyCheckedDataIndex, :recentlyCheckedLabel, :recentlyCheckedRow, :recentlyCheckedStatus, :recentlyClickedDropdownItemTitle, :recentlyDropdownItemClickedDataIndex, :recentlyDropdownItemClickedRow, :recentlyMouseEnterColumnDataIndex, :recentlyMouseEnterRow, :recentlyMouseEnterRowKey, :recentlySelectDataIndex, :recentlySelectRow, :recentlySelectValue, :recentlySwitchDataIndex, :recentlySwitchRow, :recentlySwitchStatus, :rowSelectionType, :rowSelectionWidth, :selectedRowKeys, :selectedRows, :size, :sortOptions, :sorter, :sticky, :style, :summaryRowContents, :summaryRowFixed, :titlePopoverInfo]
|
|
264
|
+
available_props = Symbol[:id, :bordered, :cellUpdateOptimize, :className, :clickedContent, :columns, :columnsFormatConstraint, :conditionalStyleFuncs, :containerId, :currentData, :customFormatFuncs, :data, :defaultExpandedRowKeys, :emptyContent, :enableCellClickListenColumns, :enableHoverListen, :expandRowByClick, :expandedRowKeyToContent, :expandedRowWidth, :filter, :filterOptions, :hiddenRowKeys, :key, :loading_state, :locale, :maxHeight, :maxWidth, :miniChartAnimation, :miniChartHeight, :mode, :nClicksButton, :nClicksCell, :nClicksDropdownItem, :nDoubleClicksCell, :pagination, :recentlyButtonClickedDataIndex, :recentlyButtonClickedRow, :recentlyCellClickColumn, :recentlyCellClickRecord, :recentlyCellDoubleClickColumn, :recentlyCellDoubleClickRecord, :recentlyChangedRow, :recentlyCheckedDataIndex, :recentlyCheckedLabel, :recentlyCheckedRow, :recentlyCheckedStatus, :recentlyClickedDropdownItemTitle, :recentlyDropdownItemClickedDataIndex, :recentlyDropdownItemClickedRow, :recentlyMouseEnterColumnDataIndex, :recentlyMouseEnterRow, :recentlyMouseEnterRowKey, :recentlySelectDataIndex, :recentlySelectRow, :recentlySelectValue, :recentlySwitchDataIndex, :recentlySwitchRow, :recentlySwitchStatus, :rowSelectionType, :rowSelectionWidth, :selectedRowKeys, :selectedRows, :size, :sortOptions, :sorter, :sticky, :style, :summaryRowContents, :summaryRowFixed, :titlePopoverInfo]
|
|
262
265
|
wild_props = Symbol[]
|
|
263
266
|
return Component("'feffery'_antdtable", "AntdTable", "feffery_antd_components", available_props, wild_props; kwargs...)
|
|
264
267
|
end
|
|
@@ -13,6 +13,10 @@ Keyword arguments:
|
|
|
13
13
|
- `checkable` (Bool; optional)
|
|
14
14
|
- `checkedKeys` (Array of Strings; optional)
|
|
15
15
|
- `className` (String | Real; optional)
|
|
16
|
+
- `clickedContextMenu` (optional): . clickedContextMenu has the following type: lists containing elements 'nodeKey', 'menuKey'.
|
|
17
|
+
Those elements have the following types:
|
|
18
|
+
- `nodeKey` (String; optional)
|
|
19
|
+
- `menuKey` (String; optional)
|
|
16
20
|
- `defaultCheckedKeys` (Array of Strings; optional)
|
|
17
21
|
- `defaultExpandAll` (Bool; optional)
|
|
18
22
|
- `defaultExpandParent` (Bool; optional)
|
|
@@ -54,7 +58,7 @@ Those elements have the following types:
|
|
|
54
58
|
- `treeDataMode` (a value equal to: 'tree', 'flat'; optional)
|
|
55
59
|
"""
|
|
56
60
|
function 'feffery'_antdtree(; kwargs...)
|
|
57
|
-
available_props = Symbol[:id, :checkStrictly, :checkable, :checkedKeys, :className, :defaultCheckedKeys, :defaultExpandAll, :defaultExpandParent, :defaultExpandedKeys, :defaultSelectedKeys, :draggable, :draggedNodeKey, :expandedKeys, :halfCheckedKeys, :height, :key, :loading_state, :multiple, :persisted_props, :persistence, :persistence_type, :selectable, :selectedKeys, :showIcon, :showLine, :style, :treeData, :treeDataMode]
|
|
61
|
+
available_props = Symbol[:id, :checkStrictly, :checkable, :checkedKeys, :className, :clickedContextMenu, :defaultCheckedKeys, :defaultExpandAll, :defaultExpandParent, :defaultExpandedKeys, :defaultSelectedKeys, :draggable, :draggedNodeKey, :expandedKeys, :halfCheckedKeys, :height, :key, :loading_state, :multiple, :persisted_props, :persistence, :persistence_type, :selectable, :selectedKeys, :showIcon, :showLine, :style, :treeData, :treeDataMode]
|
|
58
62
|
wild_props = Symbol[]
|
|
59
63
|
return Component("'feffery'_antdtree", "AntdTree", "feffery_antd_components", available_props, wild_props; kwargs...)
|
|
60
64
|
end
|
|
@@ -13,12 +13,14 @@ Keyword arguments:
|
|
|
13
13
|
- `buttonContent` (a list of or a singular dash component, string or number; optional)
|
|
14
14
|
- `className` (String | Dict; optional)
|
|
15
15
|
- `confirmBeforeDelete` (Bool; optional)
|
|
16
|
-
- `defaultFileList` (optional): . defaultFileList has the following type: Array of lists containing elements 'name', 'status', 'uid', 'url'.
|
|
16
|
+
- `defaultFileList` (optional): . defaultFileList has the following type: Array of lists containing elements 'name', 'status', 'uid', 'url', 'taskId', 'fileSize'.
|
|
17
17
|
Those elements have the following types:
|
|
18
18
|
- `name` (String; optional)
|
|
19
19
|
- `status` (a value equal to: 'done', 'error', 'removed'; optional)
|
|
20
20
|
- `uid` (Bool | Real | String | Dict | Array; optional)
|
|
21
|
-
- `url` (String; optional)
|
|
21
|
+
- `url` (String; optional)
|
|
22
|
+
- `taskId` (String; optional)
|
|
23
|
+
- `fileSize` (Real; optional)s
|
|
22
24
|
- `directory` (Bool; optional)
|
|
23
25
|
- `disabled` (Bool; optional)
|
|
24
26
|
- `downloadUrl` (String; optional)
|
|
@@ -117,8 +117,8 @@ AntdAccordion.propTypes = {
|
|
|
117
117
|
PropTypes.string,
|
|
118
118
|
PropTypes.number
|
|
119
119
|
]).isRequired,
|
|
120
|
-
// 设置当前手风琴项的折叠触发行为,可选的有'header'、'disabled'
|
|
121
|
-
collapsible: PropTypes.oneOf(['header', 'disabled']),
|
|
120
|
+
// 设置当前手风琴项的折叠触发行为,可选的有'header'、'disabled'、'icon'
|
|
121
|
+
collapsible: PropTypes.oneOf(['header', 'disabled', 'icon']),
|
|
122
122
|
// 设置当前手风琴项的标题内容
|
|
123
123
|
title: PropTypes.node,
|
|
124
124
|
// 设置手风琴项右上角的额外区域内容
|
|
@@ -152,8 +152,8 @@ AntdAccordion.propTypes = {
|
|
|
152
152
|
// 设置是否渲染边框,默认为true
|
|
153
153
|
bordered: PropTypes.bool,
|
|
154
154
|
|
|
155
|
-
// 统一设置所有手风琴项的折叠触发行为,可选的有'header'、'disabled'
|
|
156
|
-
collapsible: PropTypes.oneOf(['header', 'disabled']),
|
|
155
|
+
// 统一设置所有手风琴项的折叠触发行为,可选的有'header'、'disabled'、'icon'
|
|
156
|
+
collapsible: PropTypes.oneOf(['header', 'disabled', 'icon']),
|
|
157
157
|
|
|
158
158
|
// 自定义折叠图标位置,可选的有'left'、'right'
|
|
159
159
|
expandIconPosition: PropTypes.oneOf(['left', 'right']),
|
|
@@ -109,8 +109,8 @@ AntdCollapse.propTypes = {
|
|
|
109
109
|
// 设置是否开启透明面板模式
|
|
110
110
|
ghost: PropTypes.bool,
|
|
111
111
|
|
|
112
|
-
// 设置可折叠点击触发区域,'header'表示仅限标题文字区域,'disabled'
|
|
113
|
-
collapsible: PropTypes.oneOf(['header', 'disabled']),
|
|
112
|
+
// 设置可折叠点击触发区域,'header'表示仅限标题文字区域,'disabled'表示禁用折叠,'icon'表示仅点击图标
|
|
113
|
+
collapsible: PropTypes.oneOf(['header', 'disabled', 'icon']),
|
|
114
114
|
|
|
115
115
|
// 设置当折叠面板默认未展开时强制渲染内部元素,默认为false
|
|
116
116
|
forceRender: PropTypes.bool,
|
|
@@ -24,11 +24,15 @@ const AntdDropdown = (props) => {
|
|
|
24
24
|
overlayStyle,
|
|
25
25
|
placement,
|
|
26
26
|
trigger,
|
|
27
|
+
autoAdjustOverflow,
|
|
27
28
|
visible,
|
|
28
29
|
menuItems,
|
|
29
30
|
nClicks,
|
|
30
31
|
popupContainer,
|
|
31
32
|
buttonProps,
|
|
33
|
+
freePosition,
|
|
34
|
+
freePositionStyle,
|
|
35
|
+
freePositionClassName,
|
|
32
36
|
setProps,
|
|
33
37
|
loading_state
|
|
34
38
|
} = props;
|
|
@@ -48,7 +52,14 @@ const AntdDropdown = (props) => {
|
|
|
48
52
|
<Menu onClick={(item, key, keyPath, domEvent) => (
|
|
49
53
|
setProps({
|
|
50
54
|
clickedKey: item.key,
|
|
51
|
-
nClicks: nClicks + 1
|
|
55
|
+
nClicks: nClicks + 1,
|
|
56
|
+
...(
|
|
57
|
+
freePosition ?
|
|
58
|
+
{
|
|
59
|
+
visible: false
|
|
60
|
+
} :
|
|
61
|
+
{}
|
|
62
|
+
)
|
|
52
63
|
})
|
|
53
64
|
)}>
|
|
54
65
|
{
|
|
@@ -84,8 +95,9 @@ const AntdDropdown = (props) => {
|
|
|
84
95
|
overlayStyle={overlayStyle}
|
|
85
96
|
placement={placement}
|
|
86
97
|
trigger={[trigger]}
|
|
87
|
-
|
|
88
|
-
|
|
98
|
+
autoAdjustOverflow={autoAdjustOverflow}
|
|
99
|
+
open={visible}
|
|
100
|
+
onOpenChange={(v) => setProps({
|
|
89
101
|
visible: v
|
|
90
102
|
})}
|
|
91
103
|
getPopupContainer={
|
|
@@ -97,17 +109,33 @@ const AntdDropdown = (props) => {
|
|
|
97
109
|
(loading_state && loading_state.is_loading) || undefined
|
|
98
110
|
}>
|
|
99
111
|
{
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
112
|
+
// 开启自由位置模式
|
|
113
|
+
freePosition ?
|
|
114
|
+
(
|
|
115
|
+
<div
|
|
116
|
+
style={{
|
|
117
|
+
width: 1,
|
|
118
|
+
height: 1,
|
|
119
|
+
position: 'fixed',
|
|
120
|
+
background: 'transparent',
|
|
121
|
+
...freePositionStyle
|
|
122
|
+
}}
|
|
123
|
+
className={freePositionClassName}
|
|
124
|
+
/>
|
|
125
|
+
) :
|
|
126
|
+
(
|
|
127
|
+
buttonMode ?
|
|
128
|
+
<Button
|
|
129
|
+
{...buttonProps}
|
|
130
|
+
>
|
|
131
|
+
{title} <DownOutlined />
|
|
132
|
+
</Button>
|
|
133
|
+
:
|
|
134
|
+
<a className="ant-dropdown-link"
|
|
135
|
+
onClick={e => e.preventDefault()}>
|
|
136
|
+
{title} <DownOutlined />
|
|
137
|
+
</a>
|
|
138
|
+
)
|
|
111
139
|
}
|
|
112
140
|
</Dropdown>
|
|
113
141
|
);
|
|
@@ -148,6 +176,15 @@ AntdDropdown.propTypes = {
|
|
|
148
176
|
danger: PropTypes.bool
|
|
149
177
|
}),
|
|
150
178
|
|
|
179
|
+
// 设置是否开启自由位置模式,默认为false,此项开启后会覆盖buttonMode参数
|
|
180
|
+
freePosition: PropTypes.bool,
|
|
181
|
+
|
|
182
|
+
// 当freePosition=true时,用于为自由位置挂载位置设置css样式
|
|
183
|
+
freePositionStyle: PropTypes.object,
|
|
184
|
+
|
|
185
|
+
// 当freePosition=true时,用于为自由位置挂载位置设置css类
|
|
186
|
+
freePositionClassName: PropTypes.string,
|
|
187
|
+
|
|
151
188
|
// 记录最近一次被点击的下拉菜单选项对应key
|
|
152
189
|
clickedKey: PropTypes.string,
|
|
153
190
|
|
|
@@ -205,6 +242,9 @@ AntdDropdown.propTypes = {
|
|
|
205
242
|
// 设置触发下拉菜单显示的行为,'click'表示点击,'hover'表示鼠标悬浮
|
|
206
243
|
trigger: PropTypes.oneOf(['click', 'hover']),
|
|
207
244
|
|
|
245
|
+
// 用于设置是否在下拉菜单被遮挡时自动调整位置,默认为true
|
|
246
|
+
autoAdjustOverflow: PropTypes.bool,
|
|
247
|
+
|
|
208
248
|
// 对应下拉菜单是否显示,默认为false
|
|
209
249
|
visible: PropTypes.bool,
|
|
210
250
|
|
|
@@ -241,7 +281,9 @@ AntdDropdown.defaultProps = {
|
|
|
241
281
|
buttonMode: false,
|
|
242
282
|
trigger: 'hover',
|
|
243
283
|
nClicks: 0,
|
|
244
|
-
popupContainer: 'body'
|
|
284
|
+
popupContainer: 'body',
|
|
285
|
+
autoAdjustOverflow: true,
|
|
286
|
+
freePosition: false
|
|
245
287
|
}
|
|
246
288
|
|
|
247
289
|
export default AntdDropdown;
|