feffery_antd_components 0.4.3-rc4 → 0.4.3-rc6
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/AntdMenu.py +7 -3
- 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 +4 -4
- package/feffery_antd_components/async-upload.js +2 -2
- package/feffery_antd_components/feffery_antd_components.min.js +8 -8
- package/feffery_antd_components/metadata.json +1 -1
- package/feffery_antd_components/package-info.json +2 -2
- package/package.json +2 -2
- package/src/jl/'feffery'_antdmenu.jl +2 -1
- package/src/lib/components/navigation/AntdMenu.react.js +66 -48
- package/src/lib/fragments/AntdTable.react.js +12 -10
- package/tests/dataDisplay/AntdTable/fix_zero_value_filter.py +34 -0
- package/tests/navigation/AntdMenu/feat_custom_icon.py +57 -0
package/DESCRIPTION
CHANGED
package/Project.toml
CHANGED
package/README-en_US.md
CHANGED
|
@@ -33,7 +33,7 @@ pip install feffery-antd-components -U
|
|
|
33
33
|
## 2 Install the latest preview release version
|
|
34
34
|
|
|
35
35
|
> [!NOTE]
|
|
36
|
-
> The latest preview release version (2025-
|
|
36
|
+
> The latest preview release version (2025-12-13): `0.4.3rc6`
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
39
|
pip install feffery-antd-components --pre -U
|
package/README.md
CHANGED
|
@@ -51,6 +51,9 @@ Keyword arguments:
|
|
|
51
51
|
- menuItemKeyToTitle (dict with strings as keys and values of type a list of or a singular dash component, string or number; optional):
|
|
52
52
|
为指定节点定义组件型菜单项标题,优先级高于menuItems中对应节点的title属性.
|
|
53
53
|
|
|
54
|
+
- menuItemKeyToIcon (dict with strings as keys and values of type a list of or a singular dash component, string or number; optional):
|
|
55
|
+
为指定节点定义组件型菜单项图标元素,优先级高于menuItems中对应节点的icon属性.
|
|
56
|
+
|
|
54
57
|
- mode (a value equal to: 'vertical', 'horizontal', 'inline'; default 'vertical'):
|
|
55
58
|
显示模式,可选项有`'vertical'`、`'horizontal'`、`'inline'` 默认值:`'vertical'`.
|
|
56
59
|
|
|
@@ -111,7 +114,7 @@ Keyword arguments:
|
|
|
111
114
|
|
|
112
115
|
- persistence_type (a value equal to: 'local', 'session', 'memory'; optional):
|
|
113
116
|
当前组件的属性持久化存储类型 默认值:`'local'`."""
|
|
114
|
-
_children_props = ['expandIcon', 'expandIcon.expand', 'expandIcon.collapse', 'menuItemKeyToTitle{}']
|
|
117
|
+
_children_props = ['expandIcon', 'expandIcon.expand', 'expandIcon.collapse', 'menuItemKeyToTitle{}', 'menuItemKeyToIcon{}']
|
|
115
118
|
_base_nodes = ['expandIcon', 'children']
|
|
116
119
|
_namespace = 'feffery_antd_components'
|
|
117
120
|
_type = 'AntdMenu'
|
|
@@ -133,6 +136,7 @@ Keyword arguments:
|
|
|
133
136
|
expandIcon: typing.Optional[typing.Union[ComponentType, "ExpandIcon"]] = None,
|
|
134
137
|
menuItems: typing.Optional[typing.Sequence] = None,
|
|
135
138
|
menuItemKeyToTitle: typing.Optional[typing.Dict[typing.Union[str, float, int], ComponentType]] = None,
|
|
139
|
+
menuItemKeyToIcon: typing.Optional[typing.Dict[typing.Union[str, float, int], ComponentType]] = None,
|
|
136
140
|
mode: typing.Optional[Literal["vertical", "horizontal", "inline"]] = None,
|
|
137
141
|
theme: typing.Optional[Literal["light", "dark"]] = None,
|
|
138
142
|
currentKey: typing.Optional[str] = None,
|
|
@@ -153,9 +157,9 @@ Keyword arguments:
|
|
|
153
157
|
persistence_type: typing.Optional[Literal["local", "session", "memory"]] = None,
|
|
154
158
|
**kwargs
|
|
155
159
|
):
|
|
156
|
-
self._prop_names = ['id', 'key', 'style', 'className', 'expandIcon', 'menuItems', 'menuItemKeyToTitle', 'mode', 'theme', 'currentKey', 'currentItem', 'currentKeyPath', 'currentItemPath', 'openKeys', 'onlyExpandCurrentSubMenu', 'defaultOpenKeys', 'defaultSelectedKey', 'renderCollapsedButton', 'popupContainer', 'inlineCollapsed', 'inlineIndent', 'triggerSubMenuAction', 'data-*', 'aria-*', 'persistence', 'persisted_props', 'persistence_type']
|
|
160
|
+
self._prop_names = ['id', 'key', 'style', 'className', 'expandIcon', 'menuItems', 'menuItemKeyToTitle', 'menuItemKeyToIcon', 'mode', 'theme', 'currentKey', 'currentItem', 'currentKeyPath', 'currentItemPath', 'openKeys', 'onlyExpandCurrentSubMenu', 'defaultOpenKeys', 'defaultSelectedKey', 'renderCollapsedButton', 'popupContainer', 'inlineCollapsed', 'inlineIndent', 'triggerSubMenuAction', 'data-*', 'aria-*', 'persistence', 'persisted_props', 'persistence_type']
|
|
157
161
|
self._valid_wildcard_attributes = ['data-', 'aria-']
|
|
158
|
-
self.available_properties = ['id', 'key', 'style', 'className', 'expandIcon', 'menuItems', 'menuItemKeyToTitle', 'mode', 'theme', 'currentKey', 'currentItem', 'currentKeyPath', 'currentItemPath', 'openKeys', 'onlyExpandCurrentSubMenu', 'defaultOpenKeys', 'defaultSelectedKey', 'renderCollapsedButton', 'popupContainer', 'inlineCollapsed', 'inlineIndent', 'triggerSubMenuAction', 'data-*', 'aria-*', 'persistence', 'persisted_props', 'persistence_type']
|
|
162
|
+
self.available_properties = ['id', 'key', 'style', 'className', 'expandIcon', 'menuItems', 'menuItemKeyToTitle', 'menuItemKeyToIcon', 'mode', 'theme', 'currentKey', 'currentItem', 'currentKeyPath', 'currentItemPath', 'openKeys', 'onlyExpandCurrentSubMenu', 'defaultOpenKeys', 'defaultSelectedKey', 'renderCollapsedButton', 'popupContainer', 'inlineCollapsed', 'inlineIndent', 'triggerSubMenuAction', 'data-*', 'aria-*', 'persistence', 'persisted_props', 'persistence_type']
|
|
159
163
|
self.available_wildcard_properties = ['data-', 'aria-']
|
|
160
164
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
161
165
|
_locals = locals()
|