feffery_antd_components 0.3.3 → 0.3.4

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.
Files changed (69) hide show
  1. package/DESCRIPTION +1 -1
  2. package/Project.toml +1 -1
  3. package/README-en_US.md +1 -1
  4. package/README.md +1 -1
  5. package/feffery_antd_components/AntdCalendar.py +3 -0
  6. package/feffery_antd_components/AntdDatePicker.py +23 -3
  7. package/feffery_antd_components/AntdDateRangePicker.py +23 -3
  8. package/feffery_antd_components/AntdDescriptions.py +8 -5
  9. package/feffery_antd_components/AntdMenu.py +31 -6
  10. package/feffery_antd_components/AntdPagination.py +6 -3
  11. package/feffery_antd_components/AntdResult.py +8 -5
  12. package/feffery_antd_components/async-antd_table.js +2 -2
  13. package/feffery_antd_components/async-data_display.js +1 -1
  14. package/feffery_antd_components/async-data_entry.js +3 -3
  15. package/feffery_antd_components/async-pro_editor.js +2 -2
  16. package/feffery_antd_components/async-upload.js +2 -2
  17. package/feffery_antd_components/feffery_antd_components.min.js +5 -5
  18. package/feffery_antd_components/metadata.json +187 -0
  19. package/feffery_antd_components/package-info.json +2 -2
  20. package/package.json +2 -2
  21. package/src/jl/'feffery'_antdcalendar.jl +2 -1
  22. package/src/jl/'feffery'_antddatepicker.jl +8 -1
  23. package/src/jl/'feffery'_antddaterangepicker.jl +8 -1
  24. package/src/jl/'feffery'_antddescriptions.jl +2 -1
  25. package/src/jl/'feffery'_antdmenu.jl +10 -1
  26. package/src/jl/'feffery'_antdpagination.jl +3 -1
  27. package/src/jl/'feffery'_antdresult.jl +2 -1
  28. package/src/lib/components/dataDisplay/descriptions/AntdDescriptions.react.js +5 -0
  29. package/src/lib/components/dataEntry/AntdCalendar.react.js +4 -0
  30. package/src/lib/components/dataEntry/AntdDatePicker.react.js +28 -0
  31. package/src/lib/components/dataEntry/AntdDateRangePicker.react.js +28 -0
  32. package/src/lib/components/feedback/AntdResult.react.js +7 -0
  33. package/src/lib/components/navigation/AntdMenu.react.js +106 -1
  34. package/src/lib/components/navigation/AntdPagination.react.js +9 -0
  35. package/src/lib/fragments/dataDisplay/descriptions/AntdDescriptions.react.js +3 -0
  36. package/src/lib/fragments/dataEntry/AntdCalendar.react.js +30 -2
  37. package/src/lib/fragments/dataEntry/AntdDatePicker.react.js +43 -0
  38. package/src/lib/fragments/dataEntry/AntdDateRangePicker.react.js +43 -0
  39. package/tests/dataDisplay/descriptions/AntdDescriptions/feat_extra.py +83 -0
  40. package/tests/dataEntry/AntdCalendar/feat_custom_cells.py +52 -0
  41. package/tests/dataEntry/AntdDatePicker/feat_custom_cells.py +79 -0
  42. package/tests/dataEntry/AntdDateRangePicker/feat_custom_cells.py +79 -0
  43. package/tests/feedback/AntdResult/feat_extra.py +26 -0
  44. package/tests/navigation/AntdMenu/feat_currentItem.py +85 -0
  45. package/tests/navigation/AntdMenu/feat_currentItemPath.py +85 -0
  46. package/tests/navigation/AntdMenu/feat_currentKeyPath.py +85 -0
  47. package/tests/navigation/AntdMenu/feat_expandIcon.py +70 -0
  48. package/tests/navigation/AntdMenu/feat_triggerSubMenuAction.py +67 -0
  49. package/tests/navigation/AntdPagination/feat_align.py +31 -0
  50. package/tests/ButtonAutoSpinTest/app.py +0 -56
  51. package/tests/DebounceTest/app.py +0 -108
  52. package/tests/EmptyImageTest/app.py +0 -32
  53. package/tests/ModalConfirmAutoSpinTest/app.py +0 -56
  54. package/tests/SegmentedColoringTest/app.py +0 -106
  55. package/tests/SelectNodeLabelTest/app.py +0 -48
  56. package/tests/SelectSearchValueTest/app.py +0 -56
  57. package/tests/TableAdvancedSortFilterTest/app.py +0 -145
  58. package/tests/TableCellClickTest/app.py +0 -67
  59. package/tests/TableCellRowMergeTest/app.py +0 -88
  60. package/tests/TableCheckboxSwitchTest/app.py +0 -118
  61. package/tests/TableDropdownLinksTest/app.py +0 -61
  62. package/tests/TableEmptyContentTest/app.py +0 -37
  63. package/tests/TableImageAvatarTest/app.py +0 -52
  64. package/tests/TableMiniChartAdvanceTest/app.py +0 -85
  65. package/tests/TableRecordWithContentTest/app.py +0 -69
  66. package/tests/TimelineTest/app.py +0 -60
  67. package/tests/TreeNodeStyleTest/app.py +0 -73
  68. package/tests/TreeTest/app.py +0 -115
  69. package/tests/VirtualClassNameTest/app.py +0 -49
package/DESCRIPTION CHANGED
@@ -1,6 +1,6 @@
1
1
  Package: fefferyAntdComponents
2
2
  Title: Best implementation of Antd components in Plotly Dash.
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Description: Best implementation of Antd components in Plotly Dash.
5
5
  Depends: R (>= 3.0.2)
6
6
  Imports:
package/Project.toml CHANGED
@@ -2,7 +2,7 @@
2
2
  name = "FefferyAntdComponents"
3
3
  uuid = "1b08a953-4be3-4667-9a23-674b58f7de79"
4
4
  authors = ["CNFeffery <fefferypzy@gmail.com>"]
5
- version = "0.3.3"
5
+ version = "0.3.4"
6
6
 
7
7
  [deps]
8
8
  Dash = "1b08a953-4be3-4667-9a23-3db579824955"
package/README-en_US.md CHANGED
@@ -15,7 +15,7 @@
15
15
 
16
16
  [简体中文](./README.md) | English
17
17
 
18
- Subproject of `feffery-components` projects, third-party components library of `Plotly Dash`, based on the [Antd](https://github.com/ant-design/ant-design), brings many common and powerful components into `Dash`🥳, latest stable version: `0.3.2`
18
+ Subproject of `feffery-components` projects, third-party components library of `Plotly Dash`, based on the [Antd](https://github.com/ant-design/ant-design), brings many common and powerful components into `Dash`🥳, latest stable version: `0.3.3`
19
19
 
20
20
  ## 1 Install
21
21
 
package/README.md CHANGED
@@ -15,7 +15,7 @@
15
15
 
16
16
  简体中文 | [English](./README-en_US.md)
17
17
 
18
- `feffery-components`计划子项目,`Plotly Dash`第三方组件库,基于`Antd`,将超多具有丰富功能的通用网页常用交互组件引入`Dash`的生态中 🥳,最新稳定版本:`0.3.2`
18
+ `feffery-components`计划子项目,`Plotly Dash`第三方组件库,基于`Antd`,将超多具有丰富功能的通用网页常用交互组件引入`Dash`的生态中 🥳,最新稳定版本:`0.3.3`
19
19
 
20
20
  ## 1 最新版本安装方式
21
21
 
@@ -46,6 +46,9 @@ Keyword arguments:
46
46
  - type (a value equal to: 'month', 'date'; required):
47
47
  必填,当前项对应类型,可选项有`'month'`、`'date'`.
48
48
 
49
+ - year (number; optional):
50
+ 当前项匹配的年份值.
51
+
49
52
  - data-* (string; optional):
50
53
  `data-*`格式属性通配.
51
54
 
@@ -44,6 +44,26 @@ Keyword arguments:
44
44
  - value (string | number; optional):
45
45
  对应预设项值.
46
46
 
47
+ - customCells (list of dicts; optional):
48
+ 自定义对应日期的单元格样式.
49
+
50
+ `customCells` is a list of dicts with keys:
51
+
52
+ - className (string; optional):
53
+ 自定义css类名.
54
+
55
+ - date (number; optional):
56
+ 当前项匹配的日期值.
57
+
58
+ - month (number; optional):
59
+ 当前项匹配的月份值.
60
+
61
+ - style (dict; optional):
62
+ 自定义css样式.
63
+
64
+ - year (number; optional):
65
+ 当前项匹配的年份值.
66
+
47
67
  - data-* (string; optional):
48
68
  `data-*`格式属性通配.
49
69
 
@@ -186,10 +206,10 @@ Keyword arguments:
186
206
  _namespace = 'feffery_antd_components'
187
207
  _type = 'AntdDatePicker'
188
208
  @_explicitize_args
189
- def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, popupClassName=Component.UNDEFINED, name=Component.UNDEFINED, locale=Component.UNDEFINED, format=Component.UNDEFINED, picker=Component.UNDEFINED, firstDayOfWeek=Component.UNDEFINED, disabled=Component.UNDEFINED, showTime=Component.UNDEFINED, size=Component.UNDEFINED, bordered=Component.UNDEFINED, variant=Component.UNDEFINED, placeholder=Component.UNDEFINED, placement=Component.UNDEFINED, value=Component.UNDEFINED, defaultValue=Component.UNDEFINED, defaultPickerValue=Component.UNDEFINED, disabledDatesStrategy=Component.UNDEFINED, status=Component.UNDEFINED, allowClear=Component.UNDEFINED, autoFocus=Component.UNDEFINED, readOnly=Component.UNDEFINED, extraFooter=Component.UNDEFINED, showToday=Component.UNDEFINED, presets=Component.UNDEFINED, clickedPreset=Component.UNDEFINED, needConfirm=Component.UNDEFINED, popupContainer=Component.UNDEFINED, batchPropsNames=Component.UNDEFINED, batchPropsValues=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
190
- self._prop_names = ['id', 'allowClear', 'aria-*', 'autoFocus', 'batchPropsNames', 'batchPropsValues', 'bordered', 'className', 'clickedPreset', 'data-*', 'defaultPickerValue', 'defaultValue', 'disabled', 'disabledDatesStrategy', 'extraFooter', 'firstDayOfWeek', 'format', 'key', 'loading_state', 'locale', 'name', 'needConfirm', 'persisted_props', 'persistence', 'persistence_type', 'picker', 'placeholder', 'placement', 'popupClassName', 'popupContainer', 'presets', 'readOnly', 'showTime', 'showToday', 'size', 'status', 'style', 'value', 'variant']
209
+ def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, popupClassName=Component.UNDEFINED, name=Component.UNDEFINED, locale=Component.UNDEFINED, format=Component.UNDEFINED, picker=Component.UNDEFINED, firstDayOfWeek=Component.UNDEFINED, disabled=Component.UNDEFINED, showTime=Component.UNDEFINED, size=Component.UNDEFINED, bordered=Component.UNDEFINED, variant=Component.UNDEFINED, placeholder=Component.UNDEFINED, placement=Component.UNDEFINED, value=Component.UNDEFINED, defaultValue=Component.UNDEFINED, defaultPickerValue=Component.UNDEFINED, disabledDatesStrategy=Component.UNDEFINED, status=Component.UNDEFINED, allowClear=Component.UNDEFINED, autoFocus=Component.UNDEFINED, readOnly=Component.UNDEFINED, extraFooter=Component.UNDEFINED, showToday=Component.UNDEFINED, presets=Component.UNDEFINED, clickedPreset=Component.UNDEFINED, needConfirm=Component.UNDEFINED, customCells=Component.UNDEFINED, popupContainer=Component.UNDEFINED, batchPropsNames=Component.UNDEFINED, batchPropsValues=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
210
+ self._prop_names = ['id', 'allowClear', 'aria-*', 'autoFocus', 'batchPropsNames', 'batchPropsValues', 'bordered', 'className', 'clickedPreset', 'customCells', 'data-*', 'defaultPickerValue', 'defaultValue', 'disabled', 'disabledDatesStrategy', 'extraFooter', 'firstDayOfWeek', 'format', 'key', 'loading_state', 'locale', 'name', 'needConfirm', 'persisted_props', 'persistence', 'persistence_type', 'picker', 'placeholder', 'placement', 'popupClassName', 'popupContainer', 'presets', 'readOnly', 'showTime', 'showToday', 'size', 'status', 'style', 'value', 'variant']
191
211
  self._valid_wildcard_attributes = ['data-', 'aria-']
192
- self.available_properties = ['id', 'allowClear', 'aria-*', 'autoFocus', 'batchPropsNames', 'batchPropsValues', 'bordered', 'className', 'clickedPreset', 'data-*', 'defaultPickerValue', 'defaultValue', 'disabled', 'disabledDatesStrategy', 'extraFooter', 'firstDayOfWeek', 'format', 'key', 'loading_state', 'locale', 'name', 'needConfirm', 'persisted_props', 'persistence', 'persistence_type', 'picker', 'placeholder', 'placement', 'popupClassName', 'popupContainer', 'presets', 'readOnly', 'showTime', 'showToday', 'size', 'status', 'style', 'value', 'variant']
212
+ self.available_properties = ['id', 'allowClear', 'aria-*', 'autoFocus', 'batchPropsNames', 'batchPropsValues', 'bordered', 'className', 'clickedPreset', 'customCells', 'data-*', 'defaultPickerValue', 'defaultValue', 'disabled', 'disabledDatesStrategy', 'extraFooter', 'firstDayOfWeek', 'format', 'key', 'loading_state', 'locale', 'name', 'needConfirm', 'persisted_props', 'persistence', 'persistence_type', 'picker', 'placeholder', 'placement', 'popupClassName', 'popupContainer', 'presets', 'readOnly', 'showTime', 'showToday', 'size', 'status', 'style', 'value', 'variant']
193
213
  self.available_wildcard_properties = ['data-', 'aria-']
194
214
  _explicit_args = kwargs.pop('_explicit_args')
195
215
  _locals = locals()
@@ -44,6 +44,26 @@ Keyword arguments:
44
44
  - value (string | number; optional):
45
45
  对应预设项值.
46
46
 
47
+ - customCells (list of dicts; optional):
48
+ 自定义对应日期的单元格样式.
49
+
50
+ `customCells` is a list of dicts with keys:
51
+
52
+ - className (string; optional):
53
+ 自定义css类名.
54
+
55
+ - date (number; optional):
56
+ 当前项匹配的日期值.
57
+
58
+ - month (number; optional):
59
+ 当前项匹配的月份值.
60
+
61
+ - style (dict; optional):
62
+ 自定义css样式.
63
+
64
+ - year (number; optional):
65
+ 当前项匹配的年份值.
66
+
47
67
  - data-* (string; optional):
48
68
  `data-*`格式属性通配.
49
69
 
@@ -186,10 +206,10 @@ Keyword arguments:
186
206
  _namespace = 'feffery_antd_components'
187
207
  _type = 'AntdDateRangePicker'
188
208
  @_explicitize_args
189
- def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, popupClassName=Component.UNDEFINED, name=Component.UNDEFINED, locale=Component.UNDEFINED, format=Component.UNDEFINED, picker=Component.UNDEFINED, firstDayOfWeek=Component.UNDEFINED, disabled=Component.UNDEFINED, showTime=Component.UNDEFINED, size=Component.UNDEFINED, bordered=Component.UNDEFINED, variant=Component.UNDEFINED, placeholder=Component.UNDEFINED, placement=Component.UNDEFINED, value=Component.UNDEFINED, defaultValue=Component.UNDEFINED, defaultPickerValue=Component.UNDEFINED, disabledDatesStrategy=Component.UNDEFINED, open=Component.UNDEFINED, status=Component.UNDEFINED, allowClear=Component.UNDEFINED, autoFocus=Component.UNDEFINED, readOnly=Component.UNDEFINED, extraFooter=Component.UNDEFINED, presets=Component.UNDEFINED, clickedPreset=Component.UNDEFINED, needConfirm=Component.UNDEFINED, popupContainer=Component.UNDEFINED, batchPropsNames=Component.UNDEFINED, batchPropsValues=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
190
- self._prop_names = ['id', 'allowClear', 'aria-*', 'autoFocus', 'batchPropsNames', 'batchPropsValues', 'bordered', 'className', 'clickedPreset', 'data-*', 'defaultPickerValue', 'defaultValue', 'disabled', 'disabledDatesStrategy', 'extraFooter', 'firstDayOfWeek', 'format', 'key', 'loading_state', 'locale', 'name', 'needConfirm', 'open', 'persisted_props', 'persistence', 'persistence_type', 'picker', 'placeholder', 'placement', 'popupClassName', 'popupContainer', 'presets', 'readOnly', 'showTime', 'size', 'status', 'style', 'value', 'variant']
209
+ def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, popupClassName=Component.UNDEFINED, name=Component.UNDEFINED, locale=Component.UNDEFINED, format=Component.UNDEFINED, picker=Component.UNDEFINED, firstDayOfWeek=Component.UNDEFINED, disabled=Component.UNDEFINED, showTime=Component.UNDEFINED, size=Component.UNDEFINED, bordered=Component.UNDEFINED, variant=Component.UNDEFINED, placeholder=Component.UNDEFINED, placement=Component.UNDEFINED, value=Component.UNDEFINED, defaultValue=Component.UNDEFINED, defaultPickerValue=Component.UNDEFINED, disabledDatesStrategy=Component.UNDEFINED, open=Component.UNDEFINED, status=Component.UNDEFINED, allowClear=Component.UNDEFINED, autoFocus=Component.UNDEFINED, readOnly=Component.UNDEFINED, extraFooter=Component.UNDEFINED, presets=Component.UNDEFINED, clickedPreset=Component.UNDEFINED, needConfirm=Component.UNDEFINED, customCells=Component.UNDEFINED, popupContainer=Component.UNDEFINED, batchPropsNames=Component.UNDEFINED, batchPropsValues=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
210
+ self._prop_names = ['id', 'allowClear', 'aria-*', 'autoFocus', 'batchPropsNames', 'batchPropsValues', 'bordered', 'className', 'clickedPreset', 'customCells', 'data-*', 'defaultPickerValue', 'defaultValue', 'disabled', 'disabledDatesStrategy', 'extraFooter', 'firstDayOfWeek', 'format', 'key', 'loading_state', 'locale', 'name', 'needConfirm', 'open', 'persisted_props', 'persistence', 'persistence_type', 'picker', 'placeholder', 'placement', 'popupClassName', 'popupContainer', 'presets', 'readOnly', 'showTime', 'size', 'status', 'style', 'value', 'variant']
191
211
  self._valid_wildcard_attributes = ['data-', 'aria-']
192
- self.available_properties = ['id', 'allowClear', 'aria-*', 'autoFocus', 'batchPropsNames', 'batchPropsValues', 'bordered', 'className', 'clickedPreset', 'data-*', 'defaultPickerValue', 'defaultValue', 'disabled', 'disabledDatesStrategy', 'extraFooter', 'firstDayOfWeek', 'format', 'key', 'loading_state', 'locale', 'name', 'needConfirm', 'open', 'persisted_props', 'persistence', 'persistence_type', 'picker', 'placeholder', 'placement', 'popupClassName', 'popupContainer', 'presets', 'readOnly', 'showTime', 'size', 'status', 'style', 'value', 'variant']
212
+ self.available_properties = ['id', 'allowClear', 'aria-*', 'autoFocus', 'batchPropsNames', 'batchPropsValues', 'bordered', 'className', 'clickedPreset', 'customCells', 'data-*', 'defaultPickerValue', 'defaultValue', 'disabled', 'disabledDatesStrategy', 'extraFooter', 'firstDayOfWeek', 'format', 'key', 'loading_state', 'locale', 'name', 'needConfirm', 'open', 'persisted_props', 'persistence', 'persistence_type', 'picker', 'placeholder', 'placement', 'popupClassName', 'popupContainer', 'presets', 'readOnly', 'showTime', 'size', 'status', 'style', 'value', 'variant']
193
213
  self.available_wildcard_properties = ['data-', 'aria-']
194
214
  _explicit_args = kwargs.pop('_explicit_args')
195
215
  _locals = locals()
@@ -47,6 +47,9 @@ Keyword arguments:
47
47
  - data-* (string; optional):
48
48
  `data-*`格式属性通配.
49
49
 
50
+ - extra (a list of or a singular dash component, string or number; optional):
51
+ 组件型,设置操作区域,显示在右上方.
52
+
50
53
  - items (list of dicts; optional):
51
54
  配置描述列表子项,优先级高于`children`.
52
55
 
@@ -103,15 +106,15 @@ Keyword arguments:
103
106
 
104
107
  - title (a list of or a singular dash component, string or number; optional):
105
108
  组件型,标题内容."""
106
- _children_props = ['items[].label', 'items[].children', 'title']
107
- _base_nodes = ['title', 'children']
109
+ _children_props = ['items[].label', 'items[].children', 'title', 'extra']
110
+ _base_nodes = ['title', 'extra', 'children']
108
111
  _namespace = 'feffery_antd_components'
109
112
  _type = 'AntdDescriptions'
110
113
  @_explicitize_args
111
- def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, items=Component.UNDEFINED, title=Component.UNDEFINED, column=Component.UNDEFINED, bordered=Component.UNDEFINED, size=Component.UNDEFINED, layout=Component.UNDEFINED, labelStyle=Component.UNDEFINED, contentStyle=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
112
- self._prop_names = ['children', 'id', 'aria-*', 'bordered', 'className', 'column', 'contentStyle', 'data-*', 'items', 'key', 'labelStyle', 'layout', 'loading_state', 'size', 'style', 'title']
114
+ def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, items=Component.UNDEFINED, title=Component.UNDEFINED, column=Component.UNDEFINED, bordered=Component.UNDEFINED, size=Component.UNDEFINED, layout=Component.UNDEFINED, labelStyle=Component.UNDEFINED, contentStyle=Component.UNDEFINED, extra=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
115
+ self._prop_names = ['children', 'id', 'aria-*', 'bordered', 'className', 'column', 'contentStyle', 'data-*', 'extra', 'items', 'key', 'labelStyle', 'layout', 'loading_state', 'size', 'style', 'title']
113
116
  self._valid_wildcard_attributes = ['data-', 'aria-']
114
- self.available_properties = ['children', 'id', 'aria-*', 'bordered', 'className', 'column', 'contentStyle', 'data-*', 'items', 'key', 'labelStyle', 'layout', 'loading_state', 'size', 'style', 'title']
117
+ self.available_properties = ['children', 'id', 'aria-*', 'bordered', 'className', 'column', 'contentStyle', 'data-*', 'extra', 'items', 'key', 'labelStyle', 'layout', 'loading_state', 'size', 'style', 'title']
115
118
  self.available_wildcard_properties = ['data-', 'aria-']
116
119
  _explicit_args = kwargs.pop('_explicit_args')
117
120
  _locals = locals()
@@ -18,9 +18,18 @@ Keyword arguments:
18
18
  - className (string | dict; optional):
19
19
  当前组件css类名,支持[动态css](/advanced-classname).
20
20
 
21
+ - currentItem (dict; optional):
22
+ 监听当前已选中菜单项信息.
23
+
24
+ - currentItemPath (list; optional):
25
+ 监听当前已选中菜单项路径信息.
26
+
21
27
  - currentKey (string; optional):
22
28
  监听或设置当前已选中菜单项key值.
23
29
 
30
+ - currentKeyPath (list; optional):
31
+ 监听当前已选中菜单项key值路径信息.
32
+
24
33
  - data-* (string; optional):
25
34
  `data-*`格式属性通配.
26
35
 
@@ -29,6 +38,18 @@ Keyword arguments:
29
38
 
30
39
  - defaultSelectedKey (string; optional)
31
40
 
41
+ - expandIcon (dict; optional):
42
+ 自定义展开图标,建议仅在`mode='inline'`时使用字典类型.
43
+
44
+ `expandIcon` is a a list of or a singular dash component, string
45
+ or number | dict with keys:
46
+
47
+ - collapse (a list of or a singular dash component, string or number; optional):
48
+ 收起图标.
49
+
50
+ - expand (a list of or a singular dash component, string or number; optional):
51
+ 展开图标.
52
+
32
53
  - inlineCollapsed (boolean; default False):
33
54
  当前菜单是否折叠,仅inline模式下有效 默认值:`False`.
34
55
 
@@ -86,16 +107,20 @@ Keyword arguments:
86
107
  当前组件css样式.
87
108
 
88
109
  - theme (a value equal to: 'light', 'dark'; default 'light'):
89
- 主题,可选项有`'light'`、`'dark'` 默认值:`'light'`."""
90
- _children_props = ['menuItemKeyToTitle{}']
91
- _base_nodes = ['children']
110
+ 主题,可选项有`'light'`、`'dark'` 默认值:`'light'`.
111
+
112
+ - triggerSubMenuAction (a value equal to: 'hover', 'click'; default 'hover'):
113
+ `SubMenu`展开/关闭的触发行为,可选项有`'hover'`、`'click'`,`mode='inline'`下无效
114
+ 默认值:`'hover'`."""
115
+ _children_props = ['expandIcon', 'expandIcon.expand', 'expandIcon.collapse', 'menuItemKeyToTitle{}']
116
+ _base_nodes = ['expandIcon', 'children']
92
117
  _namespace = 'feffery_antd_components'
93
118
  _type = 'AntdMenu'
94
119
  @_explicitize_args
95
- def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, menuItems=Component.UNDEFINED, menuItemKeyToTitle=Component.UNDEFINED, mode=Component.UNDEFINED, theme=Component.UNDEFINED, currentKey=Component.UNDEFINED, openKeys=Component.UNDEFINED, onlyExpandCurrentSubMenu=Component.UNDEFINED, defaultOpenKeys=Component.UNDEFINED, defaultSelectedKey=Component.UNDEFINED, renderCollapsedButton=Component.UNDEFINED, popupContainer=Component.UNDEFINED, inlineCollapsed=Component.UNDEFINED, inlineIndent=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
96
- self._prop_names = ['id', 'aria-*', 'className', 'currentKey', 'data-*', 'defaultOpenKeys', 'defaultSelectedKey', 'inlineCollapsed', 'inlineIndent', 'key', 'loading_state', 'menuItemKeyToTitle', 'menuItems', 'mode', 'onlyExpandCurrentSubMenu', 'openKeys', 'persisted_props', 'persistence', 'persistence_type', 'popupContainer', 'renderCollapsedButton', 'style', 'theme']
120
+ def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, expandIcon=Component.UNDEFINED, menuItems=Component.UNDEFINED, menuItemKeyToTitle=Component.UNDEFINED, mode=Component.UNDEFINED, theme=Component.UNDEFINED, currentKey=Component.UNDEFINED, currentItem=Component.UNDEFINED, currentKeyPath=Component.UNDEFINED, currentItemPath=Component.UNDEFINED, openKeys=Component.UNDEFINED, onlyExpandCurrentSubMenu=Component.UNDEFINED, defaultOpenKeys=Component.UNDEFINED, defaultSelectedKey=Component.UNDEFINED, renderCollapsedButton=Component.UNDEFINED, popupContainer=Component.UNDEFINED, inlineCollapsed=Component.UNDEFINED, inlineIndent=Component.UNDEFINED, triggerSubMenuAction=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
121
+ self._prop_names = ['id', 'aria-*', 'className', 'currentItem', 'currentItemPath', 'currentKey', 'currentKeyPath', 'data-*', 'defaultOpenKeys', 'defaultSelectedKey', 'expandIcon', 'inlineCollapsed', 'inlineIndent', 'key', 'loading_state', 'menuItemKeyToTitle', 'menuItems', 'mode', 'onlyExpandCurrentSubMenu', 'openKeys', 'persisted_props', 'persistence', 'persistence_type', 'popupContainer', 'renderCollapsedButton', 'style', 'theme', 'triggerSubMenuAction']
97
122
  self._valid_wildcard_attributes = ['data-', 'aria-']
98
- self.available_properties = ['id', 'aria-*', 'className', 'currentKey', 'data-*', 'defaultOpenKeys', 'defaultSelectedKey', 'inlineCollapsed', 'inlineIndent', 'key', 'loading_state', 'menuItemKeyToTitle', 'menuItems', 'mode', 'onlyExpandCurrentSubMenu', 'openKeys', 'persisted_props', 'persistence', 'persistence_type', 'popupContainer', 'renderCollapsedButton', 'style', 'theme']
123
+ self.available_properties = ['id', 'aria-*', 'className', 'currentItem', 'currentItemPath', 'currentKey', 'currentKeyPath', 'data-*', 'defaultOpenKeys', 'defaultSelectedKey', 'expandIcon', 'inlineCollapsed', 'inlineIndent', 'key', 'loading_state', 'menuItemKeyToTitle', 'menuItems', 'mode', 'onlyExpandCurrentSubMenu', 'openKeys', 'persisted_props', 'persistence', 'persistence_type', 'popupContainer', 'renderCollapsedButton', 'style', 'theme', 'triggerSubMenuAction']
99
124
  self.available_wildcard_properties = ['data-', 'aria-']
100
125
  _explicit_args = kwargs.pop('_explicit_args')
101
126
  _locals = locals()
@@ -12,6 +12,9 @@ Keyword arguments:
12
12
  - id (string; optional):
13
13
  组件唯一id.
14
14
 
15
+ - align (a value equal to: 'start', 'center', 'end'; default 'start'):
16
+ 组件尺寸规格,可选项有`'start'`、`'center'`、`'end'` 默认值:`'start'`.
17
+
15
18
  - aria-* (string; optional):
16
19
  `aria-*`格式属性通配.
17
20
 
@@ -112,10 +115,10 @@ Keyword arguments:
112
115
  _namespace = 'feffery_antd_components'
113
116
  _type = 'AntdPagination'
114
117
  @_explicitize_args
115
- def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, locale=Component.UNDEFINED, defaultCurrent=Component.UNDEFINED, defaultPageSize=Component.UNDEFINED, current=Component.UNDEFINED, disabled=Component.UNDEFINED, hideOnSinglePage=Component.UNDEFINED, pageSize=Component.UNDEFINED, pageSizeOptions=Component.UNDEFINED, showSizeChanger=Component.UNDEFINED, showQuickJumper=Component.UNDEFINED, showTotalPrefix=Component.UNDEFINED, showTotalSuffix=Component.UNDEFINED, simple=Component.UNDEFINED, size=Component.UNDEFINED, total=Component.UNDEFINED, showTotal=Component.UNDEFINED, showLessItems=Component.UNDEFINED, batchPropsNames=Component.UNDEFINED, batchPropsValues=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
116
- self._prop_names = ['id', 'aria-*', 'batchPropsNames', 'batchPropsValues', 'className', 'current', 'data-*', 'defaultCurrent', 'defaultPageSize', 'disabled', 'hideOnSinglePage', 'key', 'loading_state', 'locale', 'pageSize', 'pageSizeOptions', 'persisted_props', 'persistence', 'persistence_type', 'showLessItems', 'showQuickJumper', 'showSizeChanger', 'showTotal', 'showTotalPrefix', 'showTotalSuffix', 'simple', 'size', 'style', 'total']
118
+ def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, locale=Component.UNDEFINED, align=Component.UNDEFINED, defaultCurrent=Component.UNDEFINED, defaultPageSize=Component.UNDEFINED, current=Component.UNDEFINED, disabled=Component.UNDEFINED, hideOnSinglePage=Component.UNDEFINED, pageSize=Component.UNDEFINED, pageSizeOptions=Component.UNDEFINED, showSizeChanger=Component.UNDEFINED, showQuickJumper=Component.UNDEFINED, showTotalPrefix=Component.UNDEFINED, showTotalSuffix=Component.UNDEFINED, simple=Component.UNDEFINED, size=Component.UNDEFINED, total=Component.UNDEFINED, showTotal=Component.UNDEFINED, showLessItems=Component.UNDEFINED, batchPropsNames=Component.UNDEFINED, batchPropsValues=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
119
+ self._prop_names = ['id', 'align', 'aria-*', 'batchPropsNames', 'batchPropsValues', 'className', 'current', 'data-*', 'defaultCurrent', 'defaultPageSize', 'disabled', 'hideOnSinglePage', 'key', 'loading_state', 'locale', 'pageSize', 'pageSizeOptions', 'persisted_props', 'persistence', 'persistence_type', 'showLessItems', 'showQuickJumper', 'showSizeChanger', 'showTotal', 'showTotalPrefix', 'showTotalSuffix', 'simple', 'size', 'style', 'total']
117
120
  self._valid_wildcard_attributes = ['data-', 'aria-']
118
- self.available_properties = ['id', 'aria-*', 'batchPropsNames', 'batchPropsValues', 'className', 'current', 'data-*', 'defaultCurrent', 'defaultPageSize', 'disabled', 'hideOnSinglePage', 'key', 'loading_state', 'locale', 'pageSize', 'pageSizeOptions', 'persisted_props', 'persistence', 'persistence_type', 'showLessItems', 'showQuickJumper', 'showSizeChanger', 'showTotal', 'showTotalPrefix', 'showTotalSuffix', 'simple', 'size', 'style', 'total']
121
+ self.available_properties = ['id', 'align', 'aria-*', 'batchPropsNames', 'batchPropsValues', 'className', 'current', 'data-*', 'defaultCurrent', 'defaultPageSize', 'disabled', 'hideOnSinglePage', 'key', 'loading_state', 'locale', 'pageSize', 'pageSizeOptions', 'persisted_props', 'persistence', 'persistence_type', 'showLessItems', 'showQuickJumper', 'showSizeChanger', 'showTotal', 'showTotalPrefix', 'showTotalSuffix', 'simple', 'size', 'style', 'total']
119
122
  self.available_wildcard_properties = ['data-', 'aria-']
120
123
  _explicit_args = kwargs.pop('_explicit_args')
121
124
  _locals = locals()
@@ -21,6 +21,9 @@ Keyword arguments:
21
21
  - data-* (string; optional):
22
22
  `data-*`格式属性通配.
23
23
 
24
+ - extra (a list of or a singular dash component, string or number; optional):
25
+ 组件型,操作区域.
26
+
24
27
  - icon (a list of or a singular dash component, string or number; optional):
25
28
  组件型,图标内容.
26
29
 
@@ -52,15 +55,15 @@ Keyword arguments:
52
55
 
53
56
  - title (a list of or a singular dash component, string or number; optional):
54
57
  组件型,标题内容."""
55
- _children_props = ['title', 'subTitle', 'icon']
56
- _base_nodes = ['title', 'subTitle', 'icon', 'children']
58
+ _children_props = ['extra', 'title', 'subTitle', 'icon']
59
+ _base_nodes = ['extra', 'title', 'subTitle', 'icon', 'children']
57
60
  _namespace = 'feffery_antd_components'
58
61
  _type = 'AntdResult'
59
62
  @_explicitize_args
60
- def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, status=Component.UNDEFINED, title=Component.UNDEFINED, subTitle=Component.UNDEFINED, icon=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
61
- self._prop_names = ['id', 'aria-*', 'className', 'data-*', 'icon', 'key', 'loading_state', 'status', 'style', 'subTitle', 'title']
63
+ def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, extra=Component.UNDEFINED, status=Component.UNDEFINED, title=Component.UNDEFINED, subTitle=Component.UNDEFINED, icon=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
64
+ self._prop_names = ['id', 'aria-*', 'className', 'data-*', 'extra', 'icon', 'key', 'loading_state', 'status', 'style', 'subTitle', 'title']
62
65
  self._valid_wildcard_attributes = ['data-', 'aria-']
63
- self.available_properties = ['id', 'aria-*', 'className', 'data-*', 'icon', 'key', 'loading_state', 'status', 'style', 'subTitle', 'title']
66
+ self.available_properties = ['id', 'aria-*', 'className', 'data-*', 'extra', 'icon', 'key', 'loading_state', 'status', 'style', 'subTitle', 'title']
64
67
  self.available_wildcard_properties = ['data-', 'aria-']
65
68
  _explicit_args = kwargs.pop('_explicit_args')
66
69
  _locals = locals()