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.
- package/DESCRIPTION +1 -1
- package/Project.toml +1 -1
- package/README-en_US.md +1 -1
- package/README.md +1 -1
- package/feffery_antd_components/AntdCalendar.py +3 -0
- package/feffery_antd_components/AntdDatePicker.py +23 -3
- package/feffery_antd_components/AntdDateRangePicker.py +23 -3
- package/feffery_antd_components/AntdDescriptions.py +8 -5
- package/feffery_antd_components/AntdMenu.py +31 -6
- package/feffery_antd_components/AntdPagination.py +6 -3
- package/feffery_antd_components/AntdResult.py +8 -5
- package/feffery_antd_components/async-antd_table.js +2 -2
- package/feffery_antd_components/async-data_display.js +1 -1
- package/feffery_antd_components/async-data_entry.js +3 -3
- package/feffery_antd_components/async-pro_editor.js +2 -2
- package/feffery_antd_components/async-upload.js +2 -2
- package/feffery_antd_components/feffery_antd_components.min.js +5 -5
- package/feffery_antd_components/metadata.json +187 -0
- package/feffery_antd_components/package-info.json +2 -2
- package/package.json +2 -2
- package/src/jl/'feffery'_antdcalendar.jl +2 -1
- package/src/jl/'feffery'_antddatepicker.jl +8 -1
- package/src/jl/'feffery'_antddaterangepicker.jl +8 -1
- package/src/jl/'feffery'_antddescriptions.jl +2 -1
- package/src/jl/'feffery'_antdmenu.jl +10 -1
- package/src/jl/'feffery'_antdpagination.jl +3 -1
- package/src/jl/'feffery'_antdresult.jl +2 -1
- package/src/lib/components/dataDisplay/descriptions/AntdDescriptions.react.js +5 -0
- package/src/lib/components/dataEntry/AntdCalendar.react.js +4 -0
- package/src/lib/components/dataEntry/AntdDatePicker.react.js +28 -0
- package/src/lib/components/dataEntry/AntdDateRangePicker.react.js +28 -0
- package/src/lib/components/feedback/AntdResult.react.js +7 -0
- package/src/lib/components/navigation/AntdMenu.react.js +106 -1
- package/src/lib/components/navigation/AntdPagination.react.js +9 -0
- package/src/lib/fragments/dataDisplay/descriptions/AntdDescriptions.react.js +3 -0
- package/src/lib/fragments/dataEntry/AntdCalendar.react.js +30 -2
- package/src/lib/fragments/dataEntry/AntdDatePicker.react.js +43 -0
- package/src/lib/fragments/dataEntry/AntdDateRangePicker.react.js +43 -0
- package/tests/dataDisplay/descriptions/AntdDescriptions/feat_extra.py +83 -0
- package/tests/dataEntry/AntdCalendar/feat_custom_cells.py +52 -0
- package/tests/dataEntry/AntdDatePicker/feat_custom_cells.py +79 -0
- package/tests/dataEntry/AntdDateRangePicker/feat_custom_cells.py +79 -0
- package/tests/feedback/AntdResult/feat_extra.py +26 -0
- package/tests/navigation/AntdMenu/feat_currentItem.py +85 -0
- package/tests/navigation/AntdMenu/feat_currentItemPath.py +85 -0
- package/tests/navigation/AntdMenu/feat_currentKeyPath.py +85 -0
- package/tests/navigation/AntdMenu/feat_expandIcon.py +70 -0
- package/tests/navigation/AntdMenu/feat_triggerSubMenuAction.py +67 -0
- package/tests/navigation/AntdPagination/feat_align.py +31 -0
- package/tests/ButtonAutoSpinTest/app.py +0 -56
- package/tests/DebounceTest/app.py +0 -108
- package/tests/EmptyImageTest/app.py +0 -32
- package/tests/ModalConfirmAutoSpinTest/app.py +0 -56
- package/tests/SegmentedColoringTest/app.py +0 -106
- package/tests/SelectNodeLabelTest/app.py +0 -48
- package/tests/SelectSearchValueTest/app.py +0 -56
- package/tests/TableAdvancedSortFilterTest/app.py +0 -145
- package/tests/TableCellClickTest/app.py +0 -67
- package/tests/TableCellRowMergeTest/app.py +0 -88
- package/tests/TableCheckboxSwitchTest/app.py +0 -118
- package/tests/TableDropdownLinksTest/app.py +0 -61
- package/tests/TableEmptyContentTest/app.py +0 -37
- package/tests/TableImageAvatarTest/app.py +0 -52
- package/tests/TableMiniChartAdvanceTest/app.py +0 -85
- package/tests/TableRecordWithContentTest/app.py +0 -69
- package/tests/TimelineTest/app.py +0 -60
- package/tests/TreeNodeStyleTest/app.py +0 -73
- package/tests/TreeTest/app.py +0 -115
- package/tests/VirtualClassNameTest/app.py +0 -49
package/DESCRIPTION
CHANGED
package/Project.toml
CHANGED
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.
|
|
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.
|
|
18
|
+
`feffery-components`计划子项目,`Plotly Dash`第三方组件库,基于`Antd`,将超多具有丰富功能的通用网页常用交互组件引入`Dash`的生态中 🥳,最新稳定版本:`0.3.3`
|
|
19
19
|
|
|
20
20
|
## 1 最新版本安装方式
|
|
21
21
|
|
|
@@ -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
|
-
|
|
91
|
-
|
|
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()
|