feffery_antd_components 0.2.10 → 0.2.11-rc0
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/build/lib/feffery_antd_components/AntdAvatar.py +7 -3
- package/build/lib/feffery_antd_components/AntdCard.py +8 -5
- package/build/lib/feffery_antd_components/AntdTabs.py +6 -3
- package/build/lib/feffery_antd_components/async-data_display.js +1 -1
- package/build/lib/feffery_antd_components/feffery_antd_components.min.js +1 -1
- package/build/lib/feffery_antd_components/metadata.json +63 -0
- package/build/lib/feffery_antd_components/package-info.json +2 -2
- package/feffery_antd_components/AntdAvatar.py +7 -3
- package/feffery_antd_components/AntdCard.py +8 -5
- package/feffery_antd_components/AntdTabs.py +6 -3
- package/feffery_antd_components/async-data_display.js +1 -1
- package/feffery_antd_components/feffery_antd_components.min.js +1 -1
- package/feffery_antd_components/metadata.json +63 -0
- package/feffery_antd_components/package-info.json +2 -2
- package/package.json +2 -2
- package/src/jl/'feffery'_antdavatar.jl +3 -1
- package/src/jl/'feffery'_antdcard.jl +2 -1
- package/src/jl/'feffery'_antdtabs.jl +2 -1
- package/src/lib/components/dataDisplay/AntdAvatar.react.js +12 -0
- package/src/lib/components/dataDisplay/card/AntdCard.react.js +5 -0
- package/src/lib/components/dataDisplay/tabs/AntdTabs.react.js +5 -0
- package/src/lib/components/icons.react.js +109 -1
- package/src/lib/fragments/dataDisplay/AntdAvatar.react.js +4 -0
- package/src/lib/fragments/dataDisplay/card/AntdCard.react.js +9 -6
- package/src/lib/fragments/dataDisplay/tabs/AntdTabs.react.js +7 -0
- package/usage.py +195 -5
package/DESCRIPTION
CHANGED
package/Project.toml
CHANGED
|
@@ -15,6 +15,10 @@ Keyword arguments:
|
|
|
15
15
|
|
|
16
16
|
- className (string | dict; optional)
|
|
17
17
|
|
|
18
|
+
- crossOrigin (a value equal to: 'anonymous', 'use-credentials', ''; optional)
|
|
19
|
+
|
|
20
|
+
- draggable (boolean | a value equal to: 'true', 'false'; optional)
|
|
21
|
+
|
|
18
22
|
- gap (number; default 4)
|
|
19
23
|
|
|
20
24
|
- icon (string; optional)
|
|
@@ -69,10 +73,10 @@ Keyword arguments:
|
|
|
69
73
|
_namespace = 'feffery_antd_components'
|
|
70
74
|
_type = 'AntdAvatar'
|
|
71
75
|
@_explicitize_args
|
|
72
|
-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, mode=Component.UNDEFINED, gap=Component.UNDEFINED, text=Component.UNDEFINED, icon=Component.UNDEFINED, iconRenderer=Component.UNDEFINED, alt=Component.UNDEFINED, src=Component.UNDEFINED, srcSet=Component.UNDEFINED, size=Component.UNDEFINED, shape=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
73
|
-
self._prop_names = ['id', 'alt', 'className', 'gap', 'icon', 'iconRenderer', 'key', 'loading_state', 'mode', 'shape', 'size', 'src', 'srcSet', 'style', 'text']
|
|
76
|
+
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, mode=Component.UNDEFINED, gap=Component.UNDEFINED, text=Component.UNDEFINED, icon=Component.UNDEFINED, iconRenderer=Component.UNDEFINED, alt=Component.UNDEFINED, src=Component.UNDEFINED, srcSet=Component.UNDEFINED, draggable=Component.UNDEFINED, crossOrigin=Component.UNDEFINED, size=Component.UNDEFINED, shape=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
77
|
+
self._prop_names = ['id', 'alt', 'className', 'crossOrigin', 'draggable', 'gap', 'icon', 'iconRenderer', 'key', 'loading_state', 'mode', 'shape', 'size', 'src', 'srcSet', 'style', 'text']
|
|
74
78
|
self._valid_wildcard_attributes = []
|
|
75
|
-
self.available_properties = ['id', 'alt', 'className', 'gap', 'icon', 'iconRenderer', 'key', 'loading_state', 'mode', 'shape', 'size', 'src', 'srcSet', 'style', 'text']
|
|
79
|
+
self.available_properties = ['id', 'alt', 'className', 'crossOrigin', 'draggable', 'gap', 'icon', 'iconRenderer', 'key', 'loading_state', 'mode', 'shape', 'size', 'src', 'srcSet', 'style', 'text']
|
|
76
80
|
self.available_wildcard_properties = []
|
|
77
81
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
78
82
|
_locals = locals()
|
|
@@ -33,6 +33,9 @@ Keyword arguments:
|
|
|
33
33
|
|
|
34
34
|
- style (dict; optional)
|
|
35
35
|
|
|
36
|
+
- extra (a list of or a singular dash component, string or number; optional):
|
|
37
|
+
设置卡片右上角额外元素,优先级高于extraLink.
|
|
38
|
+
|
|
36
39
|
- extraLink (dict; optional)
|
|
37
40
|
|
|
38
41
|
`extraLink` is a dict with keys:
|
|
@@ -71,15 +74,15 @@ Keyword arguments:
|
|
|
71
74
|
- style (dict; optional)
|
|
72
75
|
|
|
73
76
|
- title (a list of or a singular dash component, string or number; optional)"""
|
|
74
|
-
_children_props = ['title']
|
|
75
|
-
_base_nodes = ['title', 'children']
|
|
77
|
+
_children_props = ['title', 'extra']
|
|
78
|
+
_base_nodes = ['title', 'extra', 'children']
|
|
76
79
|
_namespace = 'feffery_antd_components'
|
|
77
80
|
_type = 'AntdCard'
|
|
78
81
|
@_explicitize_args
|
|
79
|
-
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, title=Component.UNDEFINED, extraLink=Component.UNDEFINED, coverImg=Component.UNDEFINED, bodyStyle=Component.UNDEFINED, headStyle=Component.UNDEFINED, bordered=Component.UNDEFINED, hoverable=Component.UNDEFINED, size=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
80
|
-
self._prop_names = ['children', 'id', 'bodyStyle', 'bordered', 'className', 'coverImg', 'extraLink', 'headStyle', 'hoverable', 'key', 'loading_state', 'size', 'style', 'title']
|
|
82
|
+
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, title=Component.UNDEFINED, extraLink=Component.UNDEFINED, extra=Component.UNDEFINED, coverImg=Component.UNDEFINED, bodyStyle=Component.UNDEFINED, headStyle=Component.UNDEFINED, bordered=Component.UNDEFINED, hoverable=Component.UNDEFINED, size=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
83
|
+
self._prop_names = ['children', 'id', 'bodyStyle', 'bordered', 'className', 'coverImg', 'extra', 'extraLink', 'headStyle', 'hoverable', 'key', 'loading_state', 'size', 'style', 'title']
|
|
81
84
|
self._valid_wildcard_attributes = []
|
|
82
|
-
self.available_properties = ['children', 'id', 'bodyStyle', 'bordered', 'className', 'coverImg', 'extraLink', 'headStyle', 'hoverable', 'key', 'loading_state', 'size', 'style', 'title']
|
|
85
|
+
self.available_properties = ['children', 'id', 'bodyStyle', 'bordered', 'className', 'coverImg', 'extra', 'extraLink', 'headStyle', 'hoverable', 'key', 'loading_state', 'size', 'style', 'title']
|
|
83
86
|
self.available_wildcard_properties = []
|
|
84
87
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
85
88
|
_locals = locals()
|
|
@@ -37,6 +37,9 @@ Keyword arguments:
|
|
|
37
37
|
|
|
38
38
|
- inkBarAnimated (boolean; default True)
|
|
39
39
|
|
|
40
|
+
- itemKeys (list of strings; optional):
|
|
41
|
+
用于按顺序同步记录items中各子项key值数组.
|
|
42
|
+
|
|
40
43
|
- items (list of dicts; optional)
|
|
41
44
|
|
|
42
45
|
`items` is a list of dicts with keys:
|
|
@@ -125,10 +128,10 @@ Keyword arguments:
|
|
|
125
128
|
_namespace = 'feffery_antd_components'
|
|
126
129
|
_type = 'AntdTabs'
|
|
127
130
|
@_explicitize_args
|
|
128
|
-
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, items=Component.UNDEFINED, activeKey=Component.UNDEFINED, defaultActiveKey=Component.UNDEFINED, disabledTabKeys=Component.UNDEFINED, tabPosition=Component.UNDEFINED, size=Component.UNDEFINED, type=Component.UNDEFINED, centered=Component.UNDEFINED, tabBarGutter=Component.UNDEFINED, inkBarAnimated=Component.UNDEFINED, tabPaneAnimated=Component.UNDEFINED, latestDeletePane=Component.UNDEFINED, tabCloseCounts=Component.UNDEFINED, tabBarLeftExtraContent=Component.UNDEFINED, tabBarRightExtraContent=Component.UNDEFINED, tabCount=Component.UNDEFINED, destroyInactiveTabPane=Component.UNDEFINED, clickedContextMenu=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
|
|
129
|
-
self._prop_names = ['children', 'id', 'activeKey', 'centered', 'className', 'clickedContextMenu', 'defaultActiveKey', 'destroyInactiveTabPane', 'disabledTabKeys', 'inkBarAnimated', 'items', 'key', 'latestDeletePane', 'loading_state', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'tabBarGutter', 'tabBarLeftExtraContent', 'tabBarRightExtraContent', 'tabCloseCounts', 'tabCount', 'tabPaneAnimated', 'tabPosition', 'type']
|
|
131
|
+
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, items=Component.UNDEFINED, itemKeys=Component.UNDEFINED, activeKey=Component.UNDEFINED, defaultActiveKey=Component.UNDEFINED, disabledTabKeys=Component.UNDEFINED, tabPosition=Component.UNDEFINED, size=Component.UNDEFINED, type=Component.UNDEFINED, centered=Component.UNDEFINED, tabBarGutter=Component.UNDEFINED, inkBarAnimated=Component.UNDEFINED, tabPaneAnimated=Component.UNDEFINED, latestDeletePane=Component.UNDEFINED, tabCloseCounts=Component.UNDEFINED, tabBarLeftExtraContent=Component.UNDEFINED, tabBarRightExtraContent=Component.UNDEFINED, tabCount=Component.UNDEFINED, destroyInactiveTabPane=Component.UNDEFINED, clickedContextMenu=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
|
|
132
|
+
self._prop_names = ['children', 'id', 'activeKey', 'centered', 'className', 'clickedContextMenu', 'defaultActiveKey', 'destroyInactiveTabPane', 'disabledTabKeys', 'inkBarAnimated', 'itemKeys', 'items', 'key', 'latestDeletePane', 'loading_state', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'tabBarGutter', 'tabBarLeftExtraContent', 'tabBarRightExtraContent', 'tabCloseCounts', 'tabCount', 'tabPaneAnimated', 'tabPosition', 'type']
|
|
130
133
|
self._valid_wildcard_attributes = []
|
|
131
|
-
self.available_properties = ['children', 'id', 'activeKey', 'centered', 'className', 'clickedContextMenu', 'defaultActiveKey', 'destroyInactiveTabPane', 'disabledTabKeys', 'inkBarAnimated', 'items', 'key', 'latestDeletePane', 'loading_state', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'tabBarGutter', 'tabBarLeftExtraContent', 'tabBarRightExtraContent', 'tabCloseCounts', 'tabCount', 'tabPaneAnimated', 'tabPosition', 'type']
|
|
134
|
+
self.available_properties = ['children', 'id', 'activeKey', 'centered', 'className', 'clickedContextMenu', 'defaultActiveKey', 'destroyInactiveTabPane', 'disabledTabKeys', 'inkBarAnimated', 'itemKeys', 'items', 'key', 'latestDeletePane', 'loading_state', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'tabBarGutter', 'tabBarLeftExtraContent', 'tabBarRightExtraContent', 'tabCloseCounts', 'tabCount', 'tabPaneAnimated', 'tabPosition', 'type']
|
|
132
135
|
self.available_wildcard_properties = []
|
|
133
136
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
134
137
|
_locals = locals()
|