feffery_antd_components 0.2.1 → 0.2.2
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/AntdDraggerUpload.py +5 -3
- package/build/lib/feffery_antd_components/AntdPictureUpload.py +5 -3
- package/build/lib/feffery_antd_components/AntdSlider.py +5 -3
- package/build/lib/feffery_antd_components/AntdTable.py +45 -5
- package/build/lib/feffery_antd_components/AntdUpload.py +5 -3
- package/build/lib/feffery_antd_components/feffery_antd_components.min.js +1 -1
- package/build/lib/feffery_antd_components/metadata.json +247 -0
- package/build/lib/feffery_antd_components/package-info.json +1 -1
- package/feffery_antd_components/AntdDraggerUpload.py +5 -3
- package/feffery_antd_components/AntdPictureUpload.py +5 -3
- package/feffery_antd_components/AntdSlider.py +5 -3
- package/feffery_antd_components/AntdTable.py +45 -5
- package/feffery_antd_components/AntdUpload.py +5 -3
- package/feffery_antd_components/feffery_antd_components.min.js +1 -1
- package/feffery_antd_components/metadata.json +247 -0
- package/feffery_antd_components/package-info.json +1 -1
- package/package.json +1 -1
- package/setup.py +1 -1
- package/src/jl/'feffery'_antddraggerupload.jl +2 -1
- package/src/jl/'feffery'_antdpictureupload.jl +2 -1
- package/src/jl/'feffery'_antdslider.jl +2 -1
- package/src/jl/'feffery'_antdtable.jl +24 -3
- package/src/jl/'feffery'_antdupload.jl +2 -1
- package/src/lib/components/AntdSlider.react.js +5 -0
- package/src/lib/components/AntdTable.react.js +136 -2
- package/src/lib/components/upload/AntdDraggerUpload.react.js +5 -0
- package/src/lib/components/upload/AntdPictureUpload.react.js +5 -0
- package/src/lib/components/upload/AntdUpload.react.js +5 -0
- package/usage.py +61 -18
|
@@ -12196,6 +12196,13 @@
|
|
|
12196
12196
|
"required": false,
|
|
12197
12197
|
"description": ""
|
|
12198
12198
|
},
|
|
12199
|
+
"railStyle": {
|
|
12200
|
+
"type": {
|
|
12201
|
+
"name": "object"
|
|
12202
|
+
},
|
|
12203
|
+
"required": false,
|
|
12204
|
+
"description": ""
|
|
12205
|
+
},
|
|
12199
12206
|
"key": {
|
|
12200
12207
|
"type": {
|
|
12201
12208
|
"name": "string"
|
|
@@ -13825,6 +13832,10 @@
|
|
|
13825
13832
|
{
|
|
13826
13833
|
"value": "'switch'",
|
|
13827
13834
|
"computed": false
|
|
13835
|
+
},
|
|
13836
|
+
{
|
|
13837
|
+
"value": "'select'",
|
|
13838
|
+
"computed": false
|
|
13828
13839
|
}
|
|
13829
13840
|
],
|
|
13830
13841
|
"required": false
|
|
@@ -14560,6 +14571,173 @@
|
|
|
14560
14571
|
"required": false
|
|
14561
14572
|
}
|
|
14562
14573
|
}
|
|
14574
|
+
},
|
|
14575
|
+
{
|
|
14576
|
+
"name": "exact",
|
|
14577
|
+
"value": {
|
|
14578
|
+
"className": {
|
|
14579
|
+
"name": "string",
|
|
14580
|
+
"required": false
|
|
14581
|
+
},
|
|
14582
|
+
"style": {
|
|
14583
|
+
"name": "object",
|
|
14584
|
+
"required": false
|
|
14585
|
+
},
|
|
14586
|
+
"options": {
|
|
14587
|
+
"name": "arrayOf",
|
|
14588
|
+
"value": {
|
|
14589
|
+
"name": "exact",
|
|
14590
|
+
"value": {
|
|
14591
|
+
"label": {
|
|
14592
|
+
"name": "string",
|
|
14593
|
+
"required": false
|
|
14594
|
+
},
|
|
14595
|
+
"value": {
|
|
14596
|
+
"name": "string",
|
|
14597
|
+
"required": false
|
|
14598
|
+
}
|
|
14599
|
+
}
|
|
14600
|
+
},
|
|
14601
|
+
"required": false
|
|
14602
|
+
},
|
|
14603
|
+
"listHeight": {
|
|
14604
|
+
"name": "number",
|
|
14605
|
+
"required": false
|
|
14606
|
+
},
|
|
14607
|
+
"mode": {
|
|
14608
|
+
"name": "enum",
|
|
14609
|
+
"value": [
|
|
14610
|
+
{
|
|
14611
|
+
"value": "'multiple'",
|
|
14612
|
+
"computed": false
|
|
14613
|
+
},
|
|
14614
|
+
{
|
|
14615
|
+
"value": "'tags'",
|
|
14616
|
+
"computed": false
|
|
14617
|
+
}
|
|
14618
|
+
],
|
|
14619
|
+
"required": false
|
|
14620
|
+
},
|
|
14621
|
+
"disabled": {
|
|
14622
|
+
"name": "bool",
|
|
14623
|
+
"required": false
|
|
14624
|
+
},
|
|
14625
|
+
"size": {
|
|
14626
|
+
"name": "enum",
|
|
14627
|
+
"value": [
|
|
14628
|
+
{
|
|
14629
|
+
"value": "'small'",
|
|
14630
|
+
"computed": false
|
|
14631
|
+
},
|
|
14632
|
+
{
|
|
14633
|
+
"value": "'middle'",
|
|
14634
|
+
"computed": false
|
|
14635
|
+
},
|
|
14636
|
+
{
|
|
14637
|
+
"value": "'large'",
|
|
14638
|
+
"computed": false
|
|
14639
|
+
}
|
|
14640
|
+
],
|
|
14641
|
+
"required": false
|
|
14642
|
+
},
|
|
14643
|
+
"bordered": {
|
|
14644
|
+
"name": "bool",
|
|
14645
|
+
"required": false
|
|
14646
|
+
},
|
|
14647
|
+
"placeholder": {
|
|
14648
|
+
"name": "string",
|
|
14649
|
+
"required": false
|
|
14650
|
+
},
|
|
14651
|
+
"placement": {
|
|
14652
|
+
"name": "enum",
|
|
14653
|
+
"value": [
|
|
14654
|
+
{
|
|
14655
|
+
"value": "'bottomLeft'",
|
|
14656
|
+
"computed": false
|
|
14657
|
+
},
|
|
14658
|
+
{
|
|
14659
|
+
"value": "'bottomRight'",
|
|
14660
|
+
"computed": false
|
|
14661
|
+
},
|
|
14662
|
+
{
|
|
14663
|
+
"value": "'topLeft'",
|
|
14664
|
+
"computed": false
|
|
14665
|
+
},
|
|
14666
|
+
{
|
|
14667
|
+
"value": "'topRight'",
|
|
14668
|
+
"computed": false
|
|
14669
|
+
}
|
|
14670
|
+
],
|
|
14671
|
+
"required": false
|
|
14672
|
+
},
|
|
14673
|
+
"value": {
|
|
14674
|
+
"name": "union",
|
|
14675
|
+
"value": [
|
|
14676
|
+
{
|
|
14677
|
+
"name": "union",
|
|
14678
|
+
"value": [
|
|
14679
|
+
{
|
|
14680
|
+
"name": "string"
|
|
14681
|
+
},
|
|
14682
|
+
{
|
|
14683
|
+
"name": "number"
|
|
14684
|
+
}
|
|
14685
|
+
]
|
|
14686
|
+
},
|
|
14687
|
+
{
|
|
14688
|
+
"name": "arrayOf",
|
|
14689
|
+
"value": {
|
|
14690
|
+
"name": "union",
|
|
14691
|
+
"value": [
|
|
14692
|
+
{
|
|
14693
|
+
"name": "string"
|
|
14694
|
+
},
|
|
14695
|
+
{
|
|
14696
|
+
"name": "number"
|
|
14697
|
+
}
|
|
14698
|
+
]
|
|
14699
|
+
}
|
|
14700
|
+
}
|
|
14701
|
+
],
|
|
14702
|
+
"required": false
|
|
14703
|
+
},
|
|
14704
|
+
"maxTagCount": {
|
|
14705
|
+
"name": "union",
|
|
14706
|
+
"value": [
|
|
14707
|
+
{
|
|
14708
|
+
"name": "number"
|
|
14709
|
+
},
|
|
14710
|
+
{
|
|
14711
|
+
"name": "enum",
|
|
14712
|
+
"value": [
|
|
14713
|
+
{
|
|
14714
|
+
"value": "'responsive'",
|
|
14715
|
+
"computed": false
|
|
14716
|
+
}
|
|
14717
|
+
]
|
|
14718
|
+
}
|
|
14719
|
+
],
|
|
14720
|
+
"required": false
|
|
14721
|
+
},
|
|
14722
|
+
"optionFilterProp": {
|
|
14723
|
+
"name": "enum",
|
|
14724
|
+
"value": [
|
|
14725
|
+
{
|
|
14726
|
+
"value": "'value'",
|
|
14727
|
+
"computed": false
|
|
14728
|
+
},
|
|
14729
|
+
{
|
|
14730
|
+
"value": "'label'",
|
|
14731
|
+
"computed": false
|
|
14732
|
+
}
|
|
14733
|
+
],
|
|
14734
|
+
"required": false
|
|
14735
|
+
},
|
|
14736
|
+
"allowClear": {
|
|
14737
|
+
"name": "bool",
|
|
14738
|
+
"required": false
|
|
14739
|
+
}
|
|
14740
|
+
}
|
|
14563
14741
|
}
|
|
14564
14742
|
]
|
|
14565
14743
|
}
|
|
@@ -15454,6 +15632,54 @@
|
|
|
15454
15632
|
"required": false,
|
|
15455
15633
|
"description": ""
|
|
15456
15634
|
},
|
|
15635
|
+
"recentlySelectRow": {
|
|
15636
|
+
"type": {
|
|
15637
|
+
"name": "object"
|
|
15638
|
+
},
|
|
15639
|
+
"required": false,
|
|
15640
|
+
"description": ""
|
|
15641
|
+
},
|
|
15642
|
+
"recentlySelectDataIndex": {
|
|
15643
|
+
"type": {
|
|
15644
|
+
"name": "string"
|
|
15645
|
+
},
|
|
15646
|
+
"required": false,
|
|
15647
|
+
"description": ""
|
|
15648
|
+
},
|
|
15649
|
+
"recentlySelectValue": {
|
|
15650
|
+
"type": {
|
|
15651
|
+
"name": "union",
|
|
15652
|
+
"value": [
|
|
15653
|
+
{
|
|
15654
|
+
"name": "union",
|
|
15655
|
+
"value": [
|
|
15656
|
+
{
|
|
15657
|
+
"name": "number"
|
|
15658
|
+
},
|
|
15659
|
+
{
|
|
15660
|
+
"name": "string"
|
|
15661
|
+
}
|
|
15662
|
+
]
|
|
15663
|
+
},
|
|
15664
|
+
{
|
|
15665
|
+
"name": "arrayOf",
|
|
15666
|
+
"value": {
|
|
15667
|
+
"name": "union",
|
|
15668
|
+
"value": [
|
|
15669
|
+
{
|
|
15670
|
+
"name": "number"
|
|
15671
|
+
},
|
|
15672
|
+
{
|
|
15673
|
+
"name": "string"
|
|
15674
|
+
}
|
|
15675
|
+
]
|
|
15676
|
+
}
|
|
15677
|
+
}
|
|
15678
|
+
]
|
|
15679
|
+
},
|
|
15680
|
+
"required": false,
|
|
15681
|
+
"description": ""
|
|
15682
|
+
},
|
|
15457
15683
|
"hiddenRowKeys": {
|
|
15458
15684
|
"type": {
|
|
15459
15685
|
"name": "arrayOf",
|
|
@@ -22941,6 +23167,13 @@
|
|
|
22941
23167
|
"required": false,
|
|
22942
23168
|
"description": ""
|
|
22943
23169
|
},
|
|
23170
|
+
"headers": {
|
|
23171
|
+
"type": {
|
|
23172
|
+
"name": "object"
|
|
23173
|
+
},
|
|
23174
|
+
"required": false,
|
|
23175
|
+
"description": ""
|
|
23176
|
+
},
|
|
22944
23177
|
"downloadUrl": {
|
|
22945
23178
|
"type": {
|
|
22946
23179
|
"name": "string"
|
|
@@ -23454,6 +23687,13 @@
|
|
|
23454
23687
|
"required": false,
|
|
23455
23688
|
"description": ""
|
|
23456
23689
|
},
|
|
23690
|
+
"headers": {
|
|
23691
|
+
"type": {
|
|
23692
|
+
"name": "object"
|
|
23693
|
+
},
|
|
23694
|
+
"required": false,
|
|
23695
|
+
"description": ""
|
|
23696
|
+
},
|
|
23457
23697
|
"downloadUrl": {
|
|
23458
23698
|
"type": {
|
|
23459
23699
|
"name": "string"
|
|
@@ -23993,6 +24233,13 @@
|
|
|
23993
24233
|
"required": false,
|
|
23994
24234
|
"description": ""
|
|
23995
24235
|
},
|
|
24236
|
+
"headers": {
|
|
24237
|
+
"type": {
|
|
24238
|
+
"name": "object"
|
|
24239
|
+
},
|
|
24240
|
+
"required": false,
|
|
24241
|
+
"description": ""
|
|
24242
|
+
},
|
|
23996
24243
|
"downloadUrl": {
|
|
23997
24244
|
"type": {
|
|
23998
24245
|
"name": "string"
|
package/package.json
CHANGED
package/setup.py
CHANGED
|
@@ -27,6 +27,7 @@ Those elements have the following types:
|
|
|
27
27
|
- `fileListMaxLength` (Real; optional)
|
|
28
28
|
- `fileMaxSize` (Real; optional)
|
|
29
29
|
- `fileTypes` (Array of Strings; optional)
|
|
30
|
+
- `headers` (Dict; optional)
|
|
30
31
|
- `hint` (a list of or a singular dash component, string or number; optional)
|
|
31
32
|
- `key` (String; optional)
|
|
32
33
|
- `lastUploadTaskRecord` (optional): . lastUploadTaskRecord has the following type: lists containing elements 'fileName', 'fileSize', 'completeTimestamp', 'taskStatus', 'taskId'.
|
|
@@ -87,7 +88,7 @@ Those elements have the following types:
|
|
|
87
88
|
- `uploadId` (String; optional)
|
|
88
89
|
"""
|
|
89
90
|
function 'feffery'_antddraggerupload(; kwargs...)
|
|
90
|
-
available_props = Symbol[:id, :apiUrl, :className, :confirmBeforeDelete, :defaultFileList, :directory, :disabled, :downloadUrl, :draggerClassName, :draggerStyle, :failedTooltipInfo, :fileListMaxLength, :fileMaxSize, :fileTypes, :hint, :key, :lastUploadTaskRecord, :listUploadTaskRecord, :loading_state, :locale, :multiple, :progressProps, :showErrorMessage, :showPercent, :showSuccessMessage, :showUploadList, :status, :style, :text, :uploadId]
|
|
91
|
+
available_props = Symbol[:id, :apiUrl, :className, :confirmBeforeDelete, :defaultFileList, :directory, :disabled, :downloadUrl, :draggerClassName, :draggerStyle, :failedTooltipInfo, :fileListMaxLength, :fileMaxSize, :fileTypes, :headers, :hint, :key, :lastUploadTaskRecord, :listUploadTaskRecord, :loading_state, :locale, :multiple, :progressProps, :showErrorMessage, :showPercent, :showSuccessMessage, :showUploadList, :status, :style, :text, :uploadId]
|
|
91
92
|
wild_props = Symbol[]
|
|
92
93
|
return Component("'feffery'_antddraggerupload", "AntdDraggerUpload", "feffery_antd_components", available_props, wild_props; kwargs...)
|
|
93
94
|
end
|
|
@@ -40,6 +40,7 @@ Those elements have the following types:
|
|
|
40
40
|
- `fileListMaxLength` (Real; optional)
|
|
41
41
|
- `fileMaxSize` (Real; optional)
|
|
42
42
|
- `fileTypes` (Array of Strings; optional)
|
|
43
|
+
- `headers` (Dict; optional)
|
|
43
44
|
- `key` (String; optional)
|
|
44
45
|
- `lastUploadTaskRecord` (optional): . lastUploadTaskRecord has the following type: lists containing elements 'fileName', 'fileSize', 'completeTimestamp', 'taskStatus', 'taskId'.
|
|
45
46
|
Those elements have the following types:
|
|
@@ -90,7 +91,7 @@ Those elements have the following types:
|
|
|
90
91
|
- `uploadId` (String; optional)
|
|
91
92
|
"""
|
|
92
93
|
function 'feffery'_antdpictureupload(; kwargs...)
|
|
93
|
-
available_props = Symbol[:id, :apiUrl, :buttonContent, :className, :confirmBeforeDelete, :defaultFileList, :disabled, :downloadUrl, :editConfig, :editable, :failedTooltipInfo, :fileListMaxLength, :fileMaxSize, :fileTypes, :key, :lastUploadTaskRecord, :listUploadTaskRecord, :loading_state, :locale, :progressProps, :showErrorMessage, :showPercent, :showPreviewIcon, :showRemoveIcon, :showSuccessMessage, :status, :style, :uploadId]
|
|
94
|
+
available_props = Symbol[:id, :apiUrl, :buttonContent, :className, :confirmBeforeDelete, :defaultFileList, :disabled, :downloadUrl, :editConfig, :editable, :failedTooltipInfo, :fileListMaxLength, :fileMaxSize, :fileTypes, :headers, :key, :lastUploadTaskRecord, :listUploadTaskRecord, :loading_state, :locale, :progressProps, :showErrorMessage, :showPercent, :showPreviewIcon, :showRemoveIcon, :showSuccessMessage, :status, :style, :uploadId]
|
|
94
95
|
wild_props = Symbol[]
|
|
95
96
|
return Component("'feffery'_antdpictureupload", "AntdPictureUpload", "feffery_antd_components", available_props, wild_props; kwargs...)
|
|
96
97
|
end
|
|
@@ -35,6 +35,7 @@ memory: only kept in memory, reset on page refresh.
|
|
|
35
35
|
local: window.localStorage, data is kept after the browser quit.
|
|
36
36
|
session: window.sessionStorage, data is cleared once the browser quit.
|
|
37
37
|
- `popupContainer` (a value equal to: 'parent', 'body'; optional)
|
|
38
|
+
- `railStyle` (Dict; optional)
|
|
38
39
|
- `range` (Bool; optional)
|
|
39
40
|
- `step` (Real; optional)
|
|
40
41
|
- `style` (Dict; optional)
|
|
@@ -45,7 +46,7 @@ session: window.sessionStorage, data is cleared once the browser quit.
|
|
|
45
46
|
- `vertical` (Bool; optional)
|
|
46
47
|
"""
|
|
47
48
|
function 'feffery'_antdslider(; kwargs...)
|
|
48
|
-
available_props = Symbol[:id, :className, :defaultValue, :disabled, :key, :loading_state, :marks, :max, :min, :persisted_props, :persistence, :persistence_type, :popupContainer, :range, :step, :style, :tooltipPrefix, :tooltipSuffix, :tooltipVisible, :value, :vertical]
|
|
49
|
+
available_props = Symbol[:id, :className, :defaultValue, :disabled, :key, :loading_state, :marks, :max, :min, :persisted_props, :persistence, :persistence_type, :popupContainer, :railStyle, :range, :step, :style, :tooltipPrefix, :tooltipSuffix, :tooltipVisible, :value, :vertical]
|
|
49
50
|
wild_props = Symbol[]
|
|
50
51
|
return Component("'feffery'_antdslider", "AntdSlider", "feffery_antd_components", available_props, wild_props; kwargs...)
|
|
51
52
|
end
|
|
@@ -20,7 +20,7 @@ Those elements have the following types:
|
|
|
20
20
|
- `group` (String; optional)
|
|
21
21
|
- `renderOptions` (optional): . renderOptions has the following type: lists containing elements 'renderType', 'renderLinkText', 'renderButtonPopConfirmProps', 'tooltipCustomContent', 'progressOneHundredPercentColor', 'ringProgressFontSize', 'dropdownProps'.
|
|
22
22
|
Those elements have the following types:
|
|
23
|
-
- `renderType` (a value equal to: "link", 'ellipsis', 'copyable', 'ellipsis-copyable', 'tags', 'status-badge', 'image', 'custom-format', 'corner-mark', 'row-merge', 'dropdown', 'dropdown-links', 'image-avatar', "mini-line", 'mini-bar', 'mini-progress', 'mini-ring-progress', 'mini-area', "button", 'checkbox', 'switch'; optional)
|
|
23
|
+
- `renderType` (a value equal to: "link", 'ellipsis', 'copyable', 'ellipsis-copyable', 'tags', 'status-badge', 'image', 'custom-format', 'corner-mark', 'row-merge', 'dropdown', 'dropdown-links', 'image-avatar', "mini-line", 'mini-bar', 'mini-progress', 'mini-ring-progress', 'mini-area', "button", 'checkbox', 'switch', 'select'; optional)
|
|
24
24
|
- `renderLinkText` (String; optional)
|
|
25
25
|
- `renderButtonPopConfirmProps` (optional): . renderButtonPopConfirmProps has the following type: lists containing elements 'title', 'okText', 'cancelText'.
|
|
26
26
|
Those elements have the following types:
|
|
@@ -138,7 +138,25 @@ Those elements have the following types:
|
|
|
138
138
|
- `lg` (Real; optional)
|
|
139
139
|
- `xl` (Real; optional)
|
|
140
140
|
- `xxl` (Real; optional)
|
|
141
|
-
- `shape` (a value equal to: 'circle', 'square'; optional)
|
|
141
|
+
- `shape` (a value equal to: 'circle', 'square'; optional) | lists containing elements 'className', 'style', 'options', 'listHeight', 'mode', 'disabled', 'size', 'bordered', 'placeholder', 'placement', 'value', 'maxTagCount', 'optionFilterProp', 'allowClear'.
|
|
142
|
+
Those elements have the following types:
|
|
143
|
+
- `className` (String; optional)
|
|
144
|
+
- `style` (Dict; optional)
|
|
145
|
+
- `options` (optional): . options has the following type: Array of lists containing elements 'label', 'value'.
|
|
146
|
+
Those elements have the following types:
|
|
147
|
+
- `label` (String; optional)
|
|
148
|
+
- `value` (String; optional)s
|
|
149
|
+
- `listHeight` (Real; optional)
|
|
150
|
+
- `mode` (a value equal to: 'multiple', 'tags'; optional)
|
|
151
|
+
- `disabled` (Bool; optional)
|
|
152
|
+
- `size` (a value equal to: 'small', 'middle', 'large'; optional)
|
|
153
|
+
- `bordered` (Bool; optional)
|
|
154
|
+
- `placeholder` (String; optional)
|
|
155
|
+
- `placement` (a value equal to: 'bottomLeft', 'bottomRight', 'topLeft', 'topRight'; optional)
|
|
156
|
+
- `value` (String | Real | Array of String | Reals; optional)
|
|
157
|
+
- `maxTagCount` (Real | a value equal to: 'responsive'; optional)
|
|
158
|
+
- `optionFilterProp` (a value equal to: 'value', 'label'; optional)
|
|
159
|
+
- `allowClear` (Bool; optional)s
|
|
142
160
|
- `defaultExpandedRowKeys` (Array of Strings; optional)
|
|
143
161
|
- `emptyContent` (a list of or a singular dash component, string or number; optional)
|
|
144
162
|
- `enableCellClickListenColumns` (Array of Strings; optional)
|
|
@@ -203,6 +221,9 @@ Those elements have the following types:
|
|
|
203
221
|
- `recentlyMouseEnterColumnDataIndex` (String; optional)
|
|
204
222
|
- `recentlyMouseEnterRow` (Dict; optional)
|
|
205
223
|
- `recentlyMouseEnterRowKey` (String | Real; optional)
|
|
224
|
+
- `recentlySelectDataIndex` (String; optional)
|
|
225
|
+
- `recentlySelectRow` (Dict; optional)
|
|
226
|
+
- `recentlySelectValue` (Real | String | Array of Real | Strings; optional)
|
|
206
227
|
- `recentlySwitchDataIndex` (String; optional)
|
|
207
228
|
- `recentlySwitchRow` (Dict; optional)
|
|
208
229
|
- `recentlySwitchStatus` (Bool; optional)
|
|
@@ -237,7 +258,7 @@ Those elements have the following types:
|
|
|
237
258
|
- `overlayStyle` (Dict; optional)
|
|
238
259
|
"""
|
|
239
260
|
function 'feffery'_antdtable(; kwargs...)
|
|
240
|
-
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, :recentlySwitchDataIndex, :recentlySwitchRow, :recentlySwitchStatus, :rowSelectionType, :rowSelectionWidth, :selectedRowKeys, :selectedRows, :size, :sortOptions, :sorter, :sticky, :style, :summaryRowContents, :summaryRowFixed, :titlePopoverInfo]
|
|
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]
|
|
241
262
|
wild_props = Symbol[]
|
|
242
263
|
return Component("'feffery'_antdtable", "AntdTable", "feffery_antd_components", available_props, wild_props; kwargs...)
|
|
243
264
|
end
|
|
@@ -26,6 +26,7 @@ Those elements have the following types:
|
|
|
26
26
|
- `fileListMaxLength` (Real; optional)
|
|
27
27
|
- `fileMaxSize` (Real; optional)
|
|
28
28
|
- `fileTypes` (Array of Strings; optional)
|
|
29
|
+
- `headers` (Dict; optional)
|
|
29
30
|
- `key` (String; optional)
|
|
30
31
|
- `lastUploadTaskRecord` (optional): . lastUploadTaskRecord has the following type: lists containing elements 'fileName', 'fileSize', 'completeTimestamp', 'taskStatus', 'taskId'.
|
|
31
32
|
Those elements have the following types:
|
|
@@ -76,7 +77,7 @@ Those elements have the following types:
|
|
|
76
77
|
- `uploadId` (String; optional)
|
|
77
78
|
"""
|
|
78
79
|
function 'feffery'_antdupload(; kwargs...)
|
|
79
|
-
available_props = Symbol[:id, :apiUrl, :buttonContent, :className, :confirmBeforeDelete, :defaultFileList, :directory, :disabled, :downloadUrl, :failedTooltipInfo, :fileListMaxLength, :fileMaxSize, :fileTypes, :key, :lastUploadTaskRecord, :listUploadTaskRecord, :loading_state, :locale, :multiple, :progressProps, :showErrorMessage, :showPercent, :showSuccessMessage, :showUploadList, :status, :style, :uploadId]
|
|
80
|
+
available_props = Symbol[:id, :apiUrl, :buttonContent, :className, :confirmBeforeDelete, :defaultFileList, :directory, :disabled, :downloadUrl, :failedTooltipInfo, :fileListMaxLength, :fileMaxSize, :fileTypes, :headers, :key, :lastUploadTaskRecord, :listUploadTaskRecord, :loading_state, :locale, :multiple, :progressProps, :showErrorMessage, :showPercent, :showSuccessMessage, :showUploadList, :status, :style, :uploadId]
|
|
80
81
|
wild_props = Symbol[]
|
|
81
82
|
return Component("'feffery'_antdupload", "AntdUpload", "feffery_antd_components", available_props, wild_props; kwargs...)
|
|
82
83
|
end
|
|
@@ -13,6 +13,7 @@ const AntdSlider = (props) => {
|
|
|
13
13
|
id,
|
|
14
14
|
className,
|
|
15
15
|
style,
|
|
16
|
+
railStyle,
|
|
16
17
|
key,
|
|
17
18
|
value,
|
|
18
19
|
defaultValue,
|
|
@@ -77,6 +78,7 @@ const AntdSlider = (props) => {
|
|
|
77
78
|
(className ? useCss(className) : undefined)
|
|
78
79
|
}
|
|
79
80
|
style={style}
|
|
81
|
+
railStyle={railStyle}
|
|
80
82
|
key={key}
|
|
81
83
|
value={value}
|
|
82
84
|
defaultValue={defaultValue}
|
|
@@ -123,6 +125,9 @@ AntdSlider.propTypes = {
|
|
|
123
125
|
// 自定义css字典
|
|
124
126
|
style: PropTypes.object,
|
|
125
127
|
|
|
128
|
+
// 用于设置slider滑轨的css样式
|
|
129
|
+
railStyle: PropTypes.object,
|
|
130
|
+
|
|
126
131
|
// 辅助刷新用唯一标识key值
|
|
127
132
|
key: PropTypes.string,
|
|
128
133
|
|
|
@@ -24,7 +24,8 @@ import {
|
|
|
24
24
|
Space,
|
|
25
25
|
Image,
|
|
26
26
|
Avatar,
|
|
27
|
-
message
|
|
27
|
+
message,
|
|
28
|
+
Select
|
|
28
29
|
} from 'antd';
|
|
29
30
|
import {
|
|
30
31
|
TinyLine,
|
|
@@ -1035,6 +1036,59 @@ class AntdTable extends Component {
|
|
|
1035
1036
|
);
|
|
1036
1037
|
}
|
|
1037
1038
|
}
|
|
1039
|
+
// select模式
|
|
1040
|
+
else if (columns[i]['renderOptions']['renderType'] === 'select') {
|
|
1041
|
+
columns[i]['render'] = (content, record) => {
|
|
1042
|
+
const currentDataIndex = columns[i]['dataIndex']
|
|
1043
|
+
// 防止未定义错误
|
|
1044
|
+
content = content || {}
|
|
1045
|
+
return (
|
|
1046
|
+
<Select
|
|
1047
|
+
className={content.className}
|
|
1048
|
+
style={{
|
|
1049
|
+
width: '100%',
|
|
1050
|
+
textAlign: 'left',
|
|
1051
|
+
...content.style
|
|
1052
|
+
}}
|
|
1053
|
+
options={content.options}
|
|
1054
|
+
listHeight={content.listHeight}
|
|
1055
|
+
mode={content.mode}
|
|
1056
|
+
disabled={content.disabled}
|
|
1057
|
+
size={content.size}
|
|
1058
|
+
bordered={content.bordered}
|
|
1059
|
+
placeholder={content.placeholder}
|
|
1060
|
+
placement={content.placement}
|
|
1061
|
+
value={content.value}
|
|
1062
|
+
maxTagCount={content.maxTagCount}
|
|
1063
|
+
optionFilterProp={content.optionFilterProp}
|
|
1064
|
+
allowClear={content.allowClear}
|
|
1065
|
+
onChange={(value) => {
|
|
1066
|
+
// 修改对应行对应字段item.value值
|
|
1067
|
+
try {
|
|
1068
|
+
data.forEach(function (item, i) {
|
|
1069
|
+
// 命中后,修改值并利用错误抛出来跳出循环
|
|
1070
|
+
if (item.key === record.key) {
|
|
1071
|
+
data[i][currentDataIndex] = {
|
|
1072
|
+
...record[currentDataIndex],
|
|
1073
|
+
value: value
|
|
1074
|
+
}
|
|
1075
|
+
// 提前打断循环过程
|
|
1076
|
+
throw new Error("目标已修改");
|
|
1077
|
+
}
|
|
1078
|
+
});
|
|
1079
|
+
} catch (e) {
|
|
1080
|
+
};
|
|
1081
|
+
|
|
1082
|
+
setProps({
|
|
1083
|
+
data: data,
|
|
1084
|
+
recentlySelectRow: record,
|
|
1085
|
+
recentlySelectDataIndex: columns[i]['dataIndex'],
|
|
1086
|
+
recentlySelectValue: value
|
|
1087
|
+
});
|
|
1088
|
+
}} />
|
|
1089
|
+
);
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1038
1092
|
// button模式
|
|
1039
1093
|
else if (columns[i]['renderOptions']['renderType'] === 'button') {
|
|
1040
1094
|
|
|
@@ -1577,7 +1631,7 @@ AntdTable.propTypes = {
|
|
|
1577
1631
|
// 迷你图类
|
|
1578
1632
|
'mini-line', 'mini-bar', 'mini-progress', 'mini-ring-progress', 'mini-area',
|
|
1579
1633
|
// 监听交互类
|
|
1580
|
-
'button', 'checkbox', 'switch'
|
|
1634
|
+
'button', 'checkbox', 'switch', 'select'
|
|
1581
1635
|
]),
|
|
1582
1636
|
|
|
1583
1637
|
// 当renderType='link'时,此参数会将传入的字符串作为渲染link的显示文字内容
|
|
@@ -1902,6 +1956,65 @@ AntdTable.propTypes = {
|
|
|
1902
1956
|
]),
|
|
1903
1957
|
// 设置头像的形状,可选的有'circle'、'square',默认为'circle'
|
|
1904
1958
|
shape: PropTypes.oneOf(['circle', 'square'])
|
|
1959
|
+
}),
|
|
1960
|
+
|
|
1961
|
+
// select模式
|
|
1962
|
+
PropTypes.exact({
|
|
1963
|
+
// 设置下拉选择的css类
|
|
1964
|
+
className: PropTypes.string,
|
|
1965
|
+
// 设置下拉选择的css样式,其中宽度默认为'100%'
|
|
1966
|
+
style: PropTypes.object,
|
|
1967
|
+
// 设置下拉选择选项内容
|
|
1968
|
+
options: PropTypes.arrayOf(
|
|
1969
|
+
PropTypes.exact({
|
|
1970
|
+
// 设置选项内容
|
|
1971
|
+
label: PropTypes.string,
|
|
1972
|
+
// 设置选项内容的值
|
|
1973
|
+
value: PropTypes.string
|
|
1974
|
+
})
|
|
1975
|
+
),
|
|
1976
|
+
// 设置下拉选择菜单像素高度,默认为256
|
|
1977
|
+
listHeight: PropTypes.number,
|
|
1978
|
+
// 设置选择模式(multiple:多选,tags:自由新增模式。默认为单选)
|
|
1979
|
+
mode: PropTypes.oneOf(['multiple', 'tags']),
|
|
1980
|
+
// 设置是否禁用当前下拉选择
|
|
1981
|
+
disabled: PropTypes.bool,
|
|
1982
|
+
// 设置下拉选择尺寸规格,可选的有'small'、'middle'及'large'
|
|
1983
|
+
// 默认为'middle'
|
|
1984
|
+
size: PropTypes.oneOf([
|
|
1985
|
+
'small',
|
|
1986
|
+
'middle',
|
|
1987
|
+
'large'
|
|
1988
|
+
]),
|
|
1989
|
+
// 设置当前下拉选择组件是否渲染边框,默认为true
|
|
1990
|
+
bordered: PropTypes.bool,
|
|
1991
|
+
// 选择框默认文本
|
|
1992
|
+
placeholder: PropTypes.string,
|
|
1993
|
+
// 用于设置悬浮展开层的方位,可选的有'bottomLeft'、'bottomRight'、'topLeft'、'topRight'
|
|
1994
|
+
// 默认为'bottomLeft'
|
|
1995
|
+
placement: PropTypes.oneOf(['bottomLeft', 'bottomRight', 'topLeft', 'topRight']),
|
|
1996
|
+
// 对应已被选中的选项值或选项值数组
|
|
1997
|
+
value: PropTypes.oneOfType([
|
|
1998
|
+
PropTypes.oneOfType([
|
|
1999
|
+
PropTypes.string,
|
|
2000
|
+
PropTypes.number
|
|
2001
|
+
]),
|
|
2002
|
+
PropTypes.arrayOf(
|
|
2003
|
+
PropTypes.oneOfType([
|
|
2004
|
+
PropTypes.string,
|
|
2005
|
+
PropTypes.number
|
|
2006
|
+
])
|
|
2007
|
+
),
|
|
2008
|
+
]),
|
|
2009
|
+
// 设置最大显示的已选择选项,默认为5,超出部分会自动省略
|
|
2010
|
+
maxTagCount: PropTypes.oneOfType([
|
|
2011
|
+
PropTypes.number,
|
|
2012
|
+
PropTypes.oneOf(['responsive'])
|
|
2013
|
+
]),
|
|
2014
|
+
// 设置输入框下输入内容进行搜索的字段,可选的有'value'、'label',默认为'value'
|
|
2015
|
+
optionFilterProp: PropTypes.oneOf(['value', 'label']),
|
|
2016
|
+
// 设置是否渲染内容清空按钮,默认为true
|
|
2017
|
+
allowClear: PropTypes.bool
|
|
1905
2018
|
})
|
|
1906
2019
|
])
|
|
1907
2020
|
)
|
|
@@ -2235,6 +2348,27 @@ AntdTable.propTypes = {
|
|
|
2235
2348
|
// 用于监听最近一次被点击的dropdown对应的行记录
|
|
2236
2349
|
recentlyDropdownItemClickedRow: PropTypes.object,
|
|
2237
2350
|
|
|
2351
|
+
// select再渲染模式
|
|
2352
|
+
// 用于监听最近发生select选值变更对应的记录行
|
|
2353
|
+
recentlySelectRow: PropTypes.object,
|
|
2354
|
+
|
|
2355
|
+
// 用于监听最近发生select选值变更的字段dataIndex信息
|
|
2356
|
+
recentlySelectDataIndex: PropTypes.string,
|
|
2357
|
+
|
|
2358
|
+
// 用于监听最近发生select选值变更对应的最新value状态
|
|
2359
|
+
recentlySelectValue: PropTypes.oneOfType([
|
|
2360
|
+
PropTypes.oneOfType([
|
|
2361
|
+
PropTypes.number,
|
|
2362
|
+
PropTypes.string
|
|
2363
|
+
]),
|
|
2364
|
+
PropTypes.arrayOf(
|
|
2365
|
+
PropTypes.oneOfType([
|
|
2366
|
+
PropTypes.number,
|
|
2367
|
+
PropTypes.string
|
|
2368
|
+
])
|
|
2369
|
+
)
|
|
2370
|
+
]),
|
|
2371
|
+
|
|
2238
2372
|
// 用于设置需要进行隐藏的行对应key值数组,默认为[]
|
|
2239
2373
|
hiddenRowKeys: PropTypes.arrayOf(PropTypes.string),
|
|
2240
2374
|
|