feffery_antd_components 0.3.7 → 0.3.8
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/bug_fix.py +1 -22
- package/feffery_antd_components/AntdAccordion.py +15 -15
- package/feffery_antd_components/AntdAffix.py +4 -4
- package/feffery_antd_components/AntdAlert.py +4 -4
- package/feffery_antd_components/AntdAnchor.py +4 -4
- package/feffery_antd_components/AntdAvatar.py +8 -8
- package/feffery_antd_components/AntdAvatarGroup.py +8 -8
- package/feffery_antd_components/AntdBackTop.py +4 -4
- package/feffery_antd_components/AntdBadge.py +10 -10
- package/feffery_antd_components/AntdBreadcrumb.py +26 -26
- package/feffery_antd_components/AntdButton.py +4 -4
- package/feffery_antd_components/AntdCalendar.py +14 -14
- package/feffery_antd_components/AntdCard.py +13 -13
- package/feffery_antd_components/AntdCardGrid.py +4 -4
- package/feffery_antd_components/AntdCardMeta.py +4 -4
- package/feffery_antd_components/AntdCarousel.py +4 -4
- package/feffery_antd_components/AntdCascader.py +3 -3
- package/feffery_antd_components/AntdCenter.py +4 -4
- package/feffery_antd_components/AntdCheckCard.py +3 -3
- package/feffery_antd_components/AntdCheckCardGroup.py +3 -3
- package/feffery_antd_components/AntdCheckableTag.py +4 -4
- package/feffery_antd_components/AntdCheckbox.py +3 -3
- package/feffery_antd_components/AntdCheckboxGroup.py +7 -7
- package/feffery_antd_components/AntdCol.py +22 -22
- package/feffery_antd_components/AntdCollapse.py +3 -3
- package/feffery_antd_components/AntdColorPicker.py +7 -7
- package/feffery_antd_components/AntdComment.py +7 -7
- package/feffery_antd_components/AntdCompact.py +4 -4
- package/feffery_antd_components/AntdConfigProvider.py +4 -4
- package/feffery_antd_components/AntdContent.py +4 -4
- package/feffery_antd_components/AntdCopyText.py +4 -4
- package/feffery_antd_components/AntdCountdown.py +4 -4
- package/feffery_antd_components/AntdCustomSkeleton.py +4 -4
- package/feffery_antd_components/AntdDatePicker.py +13 -13
- package/feffery_antd_components/AntdDateRangePicker.py +14 -14
- package/feffery_antd_components/AntdDescriptionItem.py +4 -4
- package/feffery_antd_components/AntdDescriptions.py +19 -19
- package/feffery_antd_components/AntdDivider.py +4 -4
- package/feffery_antd_components/AntdDraggablePanel.py +7 -7
- package/feffery_antd_components/AntdDraggerUpload.py +45 -45
- package/feffery_antd_components/AntdDrawer.py +16 -16
- package/feffery_antd_components/AntdDropdown.py +22 -22
- package/feffery_antd_components/AntdEditorLayout.py +62 -62
- package/feffery_antd_components/AntdEmpty.py +4 -4
- package/feffery_antd_components/AntdFlex.py +4 -4
- package/feffery_antd_components/AntdFloatButton.py +4 -4
- package/feffery_antd_components/AntdFloatButtonGroup.py +4 -4
- package/feffery_antd_components/AntdFooter.py +4 -4
- package/feffery_antd_components/AntdForm.py +12 -12
- package/feffery_antd_components/AntdFormItem.py +12 -12
- package/feffery_antd_components/AntdFormRender.py +242 -242
- package/feffery_antd_components/AntdHeader.py +4 -4
- package/feffery_antd_components/AntdIcon.py +4 -4
- package/feffery_antd_components/AntdImage.py +15 -15
- package/feffery_antd_components/AntdImageGroup.py +15 -15
- package/feffery_antd_components/AntdInput.py +12 -12
- package/feffery_antd_components/AntdInputNumber.py +3 -3
- package/feffery_antd_components/AntdLayout.py +4 -4
- package/feffery_antd_components/AntdMentions.py +7 -7
- package/feffery_antd_components/AntdMenu.py +6 -6
- package/feffery_antd_components/AntdMessage.py +4 -4
- package/feffery_antd_components/AntdModal.py +26 -23
- package/feffery_antd_components/AntdNotification.py +10 -10
- package/feffery_antd_components/AntdOTP.py +3 -3
- package/feffery_antd_components/AntdPageHeader.py +4 -4
- package/feffery_antd_components/AntdPagination.py +3 -3
- package/feffery_antd_components/AntdParagraph.py +4 -4
- package/feffery_antd_components/AntdPictureUpload.py +60 -60
- package/feffery_antd_components/AntdPopconfirm.py +20 -20
- package/feffery_antd_components/AntdPopover.py +4 -4
- package/feffery_antd_components/AntdPopupCard.py +13 -7
- package/feffery_antd_components/AntdProgress.py +7 -7
- package/feffery_antd_components/AntdQRCode.py +6 -6
- package/feffery_antd_components/AntdRadioGroup.py +7 -7
- package/feffery_antd_components/AntdRate.py +3 -3
- package/feffery_antd_components/AntdResult.py +4 -4
- package/feffery_antd_components/AntdRibbon.py +4 -4
- package/feffery_antd_components/AntdRow.py +11 -11
- package/feffery_antd_components/AntdSegmented.py +9 -9
- package/feffery_antd_components/AntdSegmentedColoring.py +4 -4
- package/feffery_antd_components/AntdSelect.py +18 -18
- package/feffery_antd_components/AntdSider.py +4 -4
- package/feffery_antd_components/AntdSkeleton.py +4 -4
- package/feffery_antd_components/AntdSkeletonAvatar.py +4 -4
- package/feffery_antd_components/AntdSkeletonButton.py +4 -4
- package/feffery_antd_components/AntdSkeletonImage.py +4 -4
- package/feffery_antd_components/AntdSkeletonInput.py +4 -4
- package/feffery_antd_components/AntdSlider.py +9 -9
- package/feffery_antd_components/AntdSpace.py +4 -4
- package/feffery_antd_components/AntdSpin.py +4 -4
- package/feffery_antd_components/AntdSpoiler.py +4 -4
- package/feffery_antd_components/AntdStatistic.py +4 -4
- package/feffery_antd_components/AntdSteps.py +13 -13
- package/feffery_antd_components/AntdSwitch.py +3 -3
- package/feffery_antd_components/AntdTable.py +230 -227
- package/feffery_antd_components/AntdTabs.py +30 -30
- package/feffery_antd_components/AntdTag.py +4 -4
- package/feffery_antd_components/AntdText.py +4 -4
- package/feffery_antd_components/AntdTimePicker.py +3 -3
- package/feffery_antd_components/AntdTimeRangePicker.py +3 -3
- package/feffery_antd_components/AntdTimeline.py +7 -7
- package/feffery_antd_components/AntdTitle.py +4 -4
- package/feffery_antd_components/AntdTooltip.py +4 -4
- package/feffery_antd_components/AntdTour.py +25 -25
- package/feffery_antd_components/AntdTransfer.py +6 -6
- package/feffery_antd_components/AntdTree.py +9 -9
- package/feffery_antd_components/AntdTreeSelect.py +3 -3
- package/feffery_antd_components/AntdUpload.py +54 -54
- package/feffery_antd_components/AntdWatermark.py +4 -4
- package/feffery_antd_components/Fragment.py +4 -4
- package/feffery_antd_components/async-antd_table.js +2 -2
- package/feffery_antd_components/async-data_entry.js +1 -1
- package/feffery_antd_components/feffery_antd_components.min.js +3 -3
- package/feffery_antd_components/metadata.json +50 -1
- package/feffery_antd_components/package-info.json +1 -1
- package/package.json +1 -1
- package/src/jl/'feffery'_antddaterangepicker.jl +1 -1
- package/src/jl/'feffery'_antdmodal.jl +3 -1
- package/src/jl/'feffery'_antdpopupcard.jl +5 -1
- package/src/jl/'feffery'_antdtable.jl +2 -1
- package/src/lib/components/dataDisplay/AntdTable.react.js +4 -0
- package/src/lib/components/dataEntry/AntdDateRangePicker.react.js +4 -1
- package/src/lib/components/feedback/AntdModal.react.js +9 -0
- package/src/lib/components/feedback/AntdPopupCard.react.js +19 -1
- package/src/lib/fragments/AntdTable.react.js +27 -0
- package/src/lib/fragments/dataEntry/AntdDateRangePicker.react.js +14 -3
- package/tests/dataDisplay/AntdTable/feat_mini_chart_color.py +139 -0
- package/tests/feedback/AntdModal/feat_force_render.py +57 -0
- package/tests/feedback/AntdPopupCard/feat_force_render.py +61 -0
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.7`
|
|
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.7`
|
|
19
19
|
|
|
20
20
|
## 1 最新版本安装方式
|
|
21
21
|
|
package/bug_fix.py
CHANGED
|
@@ -5,28 +5,7 @@ import feffery_antd_components as fac
|
|
|
5
5
|
app = dash.Dash(__name__)
|
|
6
6
|
|
|
7
7
|
app.layout = html.Div(
|
|
8
|
-
[
|
|
9
|
-
fac.AntdRow(
|
|
10
|
-
[
|
|
11
|
-
fac.AntdCol(
|
|
12
|
-
fac.AntdCenter(
|
|
13
|
-
f'col{i}',
|
|
14
|
-
style={
|
|
15
|
-
'backgroundColor': '#1677ff'
|
|
16
|
-
if i % 2 == 0
|
|
17
|
-
else '#1677ffbf',
|
|
18
|
-
'color': 'white',
|
|
19
|
-
'height': 100,
|
|
20
|
-
},
|
|
21
|
-
),
|
|
22
|
-
span=6,
|
|
23
|
-
)
|
|
24
|
-
for i in range(1, 5)
|
|
25
|
-
],
|
|
26
|
-
gutter=10,
|
|
27
|
-
align='center',
|
|
28
|
-
)
|
|
29
|
-
],
|
|
8
|
+
[fac.AntdDateRangePicker(disabled=[False, True])],
|
|
30
9
|
style={'padding': 50},
|
|
31
10
|
)
|
|
32
11
|
|
|
@@ -32,26 +32,26 @@ Keyword arguments:
|
|
|
32
32
|
- className (string | dict; optional):
|
|
33
33
|
当前子项css类名,支持[动态css](/advanced-classname).
|
|
34
34
|
|
|
35
|
+
- style (dict; optional):
|
|
36
|
+
当前子项css样式.
|
|
37
|
+
|
|
38
|
+
- key (string | number; required):
|
|
39
|
+
必填,当前子项唯一key值.
|
|
40
|
+
|
|
35
41
|
- collapsible (a value equal to: 'header', 'disabled', 'icon'; optional):
|
|
36
42
|
当前子项折叠触发方式,可选项有`'header'`、`'disabled'`、`'icon'`.
|
|
37
43
|
|
|
44
|
+
- title (a list of or a singular dash component, string or number; optional):
|
|
45
|
+
当前子项标题元素.
|
|
46
|
+
|
|
38
47
|
- extra (a list of or a singular dash component, string or number; optional):
|
|
39
48
|
当前子项右上角额外元素.
|
|
40
49
|
|
|
41
|
-
- forceRender (boolean; optional):
|
|
42
|
-
是否强制渲染内部元素 默认值:`False`.
|
|
43
|
-
|
|
44
|
-
- key (string | number; required):
|
|
45
|
-
必填,当前子项唯一key值.
|
|
46
|
-
|
|
47
50
|
- showArrow (boolean; optional):
|
|
48
51
|
是否展示当前手风琴项的箭头图标 默认值:`True`.
|
|
49
52
|
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
- title (a list of or a singular dash component, string or number; optional):
|
|
54
|
-
当前子项标题元素.
|
|
53
|
+
- forceRender (boolean; optional):
|
|
54
|
+
是否强制渲染内部元素 默认值:`False`.
|
|
55
55
|
|
|
56
56
|
- accordion (boolean; default True):
|
|
57
57
|
是否开启手风琴模式 默认值:`True`.
|
|
@@ -84,14 +84,14 @@ Keyword arguments:
|
|
|
84
84
|
|
|
85
85
|
`loading_state` is a dict with keys:
|
|
86
86
|
|
|
87
|
-
- component_name (string; optional):
|
|
88
|
-
Holds the name of the component that is loading.
|
|
89
|
-
|
|
90
87
|
- is_loading (boolean; optional):
|
|
91
88
|
Determines if the component is loading or not.
|
|
92
89
|
|
|
93
90
|
- prop_name (string; optional):
|
|
94
|
-
Holds which property is loading.
|
|
91
|
+
Holds which property is loading.
|
|
92
|
+
|
|
93
|
+
- component_name (string; optional):
|
|
94
|
+
Holds the name of the component that is loading."""
|
|
95
95
|
_children_props = ['items[].children', 'items[].title', 'items[].extra']
|
|
96
96
|
_base_nodes = ['children']
|
|
97
97
|
_namespace = 'feffery_antd_components'
|
|
@@ -43,14 +43,14 @@ Keyword arguments:
|
|
|
43
43
|
|
|
44
44
|
`loading_state` is a dict with keys:
|
|
45
45
|
|
|
46
|
-
- component_name (string; optional):
|
|
47
|
-
Holds the name of the component that is loading.
|
|
48
|
-
|
|
49
46
|
- is_loading (boolean; optional):
|
|
50
47
|
Determines if the component is loading or not.
|
|
51
48
|
|
|
52
49
|
- prop_name (string; optional):
|
|
53
|
-
Holds which property is loading.
|
|
50
|
+
Holds which property is loading.
|
|
51
|
+
|
|
52
|
+
- component_name (string; optional):
|
|
53
|
+
Holds the name of the component that is loading."""
|
|
54
54
|
_children_props = []
|
|
55
55
|
_base_nodes = ['children']
|
|
56
56
|
_namespace = 'feffery_antd_components'
|
|
@@ -56,14 +56,14 @@ Keyword arguments:
|
|
|
56
56
|
|
|
57
57
|
`loading_state` is a dict with keys:
|
|
58
58
|
|
|
59
|
-
- component_name (string; optional):
|
|
60
|
-
Holds the name of the component that is loading.
|
|
61
|
-
|
|
62
59
|
- is_loading (boolean; optional):
|
|
63
60
|
Determines if the component is loading or not.
|
|
64
61
|
|
|
65
62
|
- prop_name (string; optional):
|
|
66
|
-
Holds which property is loading.
|
|
63
|
+
Holds which property is loading.
|
|
64
|
+
|
|
65
|
+
- component_name (string; optional):
|
|
66
|
+
Holds the name of the component that is loading."""
|
|
67
67
|
_children_props = ['message', 'description', 'action']
|
|
68
68
|
_base_nodes = ['message', 'description', 'action', 'children']
|
|
69
69
|
_namespace = 'feffery_antd_components'
|
|
@@ -55,14 +55,14 @@ Keyword arguments:
|
|
|
55
55
|
|
|
56
56
|
`loading_state` is a dict with keys:
|
|
57
57
|
|
|
58
|
-
- component_name (string; optional):
|
|
59
|
-
Holds the name of the component that is loading.
|
|
60
|
-
|
|
61
58
|
- is_loading (boolean; optional):
|
|
62
59
|
Determines if the component is loading or not.
|
|
63
60
|
|
|
64
61
|
- prop_name (string; optional):
|
|
65
|
-
Holds which property is loading.
|
|
62
|
+
Holds which property is loading.
|
|
63
|
+
|
|
64
|
+
- component_name (string; optional):
|
|
65
|
+
Holds the name of the component that is loading."""
|
|
66
66
|
_children_props = []
|
|
67
67
|
_base_nodes = ['children']
|
|
68
68
|
_namespace = 'feffery_antd_components'
|
|
@@ -57,16 +57,16 @@ Keyword arguments:
|
|
|
57
57
|
`size` is a number | a value equal to: 'large', 'small', 'default'
|
|
58
58
|
| dict with keys:
|
|
59
59
|
|
|
60
|
-
-
|
|
60
|
+
- xs (number; optional)
|
|
61
|
+
|
|
62
|
+
- sm (number; optional)
|
|
61
63
|
|
|
62
64
|
- md (number; optional)
|
|
63
65
|
|
|
64
|
-
-
|
|
66
|
+
- lg (number; optional)
|
|
65
67
|
|
|
66
68
|
- xl (number; optional)
|
|
67
69
|
|
|
68
|
-
- xs (number; optional)
|
|
69
|
-
|
|
70
70
|
- xxl (number; optional)
|
|
71
71
|
|
|
72
72
|
- shape (a value equal to: 'circle', 'square'; default 'circle'):
|
|
@@ -82,14 +82,14 @@ Keyword arguments:
|
|
|
82
82
|
|
|
83
83
|
`loading_state` is a dict with keys:
|
|
84
84
|
|
|
85
|
-
- component_name (string; optional):
|
|
86
|
-
Holds the name of the component that is loading.
|
|
87
|
-
|
|
88
85
|
- is_loading (boolean; optional):
|
|
89
86
|
Determines if the component is loading or not.
|
|
90
87
|
|
|
91
88
|
- prop_name (string; optional):
|
|
92
|
-
Holds which property is loading.
|
|
89
|
+
Holds which property is loading.
|
|
90
|
+
|
|
91
|
+
- component_name (string; optional):
|
|
92
|
+
Holds the name of the component that is loading."""
|
|
93
93
|
_children_props = []
|
|
94
94
|
_base_nodes = ['children']
|
|
95
95
|
_namespace = 'feffery_antd_components'
|
|
@@ -44,16 +44,16 @@ Keyword arguments:
|
|
|
44
44
|
`size` is a number | a value equal to: 'large', 'small', 'default'
|
|
45
45
|
| dict with keys:
|
|
46
46
|
|
|
47
|
-
-
|
|
47
|
+
- xs (number; optional)
|
|
48
|
+
|
|
49
|
+
- sm (number; optional)
|
|
48
50
|
|
|
49
51
|
- md (number; optional)
|
|
50
52
|
|
|
51
|
-
-
|
|
53
|
+
- lg (number; optional)
|
|
52
54
|
|
|
53
55
|
- xl (number; optional)
|
|
54
56
|
|
|
55
|
-
- xs (number; optional)
|
|
56
|
-
|
|
57
57
|
- xxl (number; optional)
|
|
58
58
|
|
|
59
59
|
- data-* (string; optional):
|
|
@@ -66,14 +66,14 @@ Keyword arguments:
|
|
|
66
66
|
|
|
67
67
|
`loading_state` is a dict with keys:
|
|
68
68
|
|
|
69
|
-
- component_name (string; optional):
|
|
70
|
-
Holds the name of the component that is loading.
|
|
71
|
-
|
|
72
69
|
- is_loading (boolean; optional):
|
|
73
70
|
Determines if the component is loading or not.
|
|
74
71
|
|
|
75
72
|
- prop_name (string; optional):
|
|
76
|
-
Holds which property is loading.
|
|
73
|
+
Holds which property is loading.
|
|
74
|
+
|
|
75
|
+
- component_name (string; optional):
|
|
76
|
+
Holds the name of the component that is loading."""
|
|
77
77
|
_children_props = []
|
|
78
78
|
_base_nodes = ['children']
|
|
79
79
|
_namespace = 'feffery_antd_components'
|
|
@@ -46,14 +46,14 @@ Keyword arguments:
|
|
|
46
46
|
|
|
47
47
|
`loading_state` is a dict with keys:
|
|
48
48
|
|
|
49
|
-
- component_name (string; optional):
|
|
50
|
-
Holds the name of the component that is loading.
|
|
51
|
-
|
|
52
49
|
- is_loading (boolean; optional):
|
|
53
50
|
Determines if the component is loading or not.
|
|
54
51
|
|
|
55
52
|
- prop_name (string; optional):
|
|
56
|
-
Holds which property is loading.
|
|
53
|
+
Holds which property is loading.
|
|
54
|
+
|
|
55
|
+
- component_name (string; optional):
|
|
56
|
+
Holds the name of the component that is loading."""
|
|
57
57
|
_children_props = []
|
|
58
58
|
_base_nodes = ['children']
|
|
59
59
|
_namespace = 'feffery_antd_components'
|
|
@@ -29,23 +29,23 @@ Keyword arguments:
|
|
|
29
29
|
|
|
30
30
|
`styles` is a dict with keys:
|
|
31
31
|
|
|
32
|
-
- indicator (dict; optional):
|
|
33
|
-
控制徽标元素css样式.
|
|
34
|
-
|
|
35
32
|
- root (dict; optional):
|
|
36
33
|
控制根元素css样式.
|
|
37
34
|
|
|
35
|
+
- indicator (dict; optional):
|
|
36
|
+
控制徽标元素css样式.
|
|
37
|
+
|
|
38
38
|
- classNames (dict; optional):
|
|
39
39
|
细分控制子元素css类.
|
|
40
40
|
|
|
41
41
|
`classNames` is a dict with keys:
|
|
42
42
|
|
|
43
|
-
- indicator (string; optional):
|
|
44
|
-
控制徽标元素css类.
|
|
45
|
-
|
|
46
43
|
- root (string; optional):
|
|
47
44
|
控制根元素css类.
|
|
48
45
|
|
|
46
|
+
- indicator (string; optional):
|
|
47
|
+
控制徽标元素css类.
|
|
48
|
+
|
|
49
49
|
- color (string; optional):
|
|
50
50
|
徽标颜色.
|
|
51
51
|
|
|
@@ -89,14 +89,14 @@ Keyword arguments:
|
|
|
89
89
|
|
|
90
90
|
`loading_state` is a dict with keys:
|
|
91
91
|
|
|
92
|
-
- component_name (string; optional):
|
|
93
|
-
Holds the name of the component that is loading.
|
|
94
|
-
|
|
95
92
|
- is_loading (boolean; optional):
|
|
96
93
|
Determines if the component is loading or not.
|
|
97
94
|
|
|
98
95
|
- prop_name (string; optional):
|
|
99
|
-
Holds which property is loading.
|
|
96
|
+
Holds which property is loading.
|
|
97
|
+
|
|
98
|
+
- component_name (string; optional):
|
|
99
|
+
Holds the name of the component that is loading."""
|
|
100
100
|
_children_props = []
|
|
101
101
|
_base_nodes = ['children']
|
|
102
102
|
_namespace = 'feffery_antd_components'
|
|
@@ -26,52 +26,52 @@ Keyword arguments:
|
|
|
26
26
|
|
|
27
27
|
`items` is a list of dicts with keys:
|
|
28
28
|
|
|
29
|
+
- title (string; optional):
|
|
30
|
+
节点标题.
|
|
31
|
+
|
|
32
|
+
- key (string; optional):
|
|
33
|
+
节点唯一key值.
|
|
34
|
+
|
|
29
35
|
- href (string; optional):
|
|
30
36
|
节点链接地址.
|
|
31
37
|
|
|
38
|
+
- target (string; optional):
|
|
39
|
+
节点链接跳转行为.
|
|
40
|
+
|
|
32
41
|
- icon (string; optional):
|
|
33
42
|
节点前缀图标名称,与`iconRenderer`方式相关联,`'AntdIcon'`方式下同AntdIcon的icon参数,`'fontawesome'`方式下代表图标的css类名.
|
|
34
43
|
|
|
35
44
|
- iconRenderer (a value equal to: 'AntdIcon', 'fontawesome'; optional):
|
|
36
45
|
前缀图标渲染方式,可选项有`'AntdIcon'`、`'fontawesome'` 默认值:`'AntdIcon'`.
|
|
37
46
|
|
|
38
|
-
- key (string; optional):
|
|
39
|
-
节点唯一key值.
|
|
40
|
-
|
|
41
47
|
- menuItems (list of dicts; optional):
|
|
42
48
|
为当前节点设置下拉菜单生成所需的数据结构.
|
|
43
49
|
|
|
44
50
|
`menuItems` is a list of dicts with keys:
|
|
45
51
|
|
|
46
|
-
-
|
|
52
|
+
- title (string; optional):
|
|
47
53
|
|
|
48
|
-
|
|
54
|
+
下拉菜单节点标题.
|
|
49
55
|
|
|
50
56
|
- href (string; optional):
|
|
51
57
|
|
|
52
58
|
下拉菜单节点链接地址.
|
|
53
59
|
|
|
54
|
-
- icon (string; optional):
|
|
55
|
-
|
|
56
|
-
下拉菜单节点前缀图标名称,与`iconRenderer`方式相关联,`'AntdIcon'`方式下同AntdIcon的icon参数,`'fontawesome'`方式下代表图标的css类名.
|
|
57
|
-
|
|
58
|
-
- iconRenderer (a value equal to: 'AntdIcon', 'fontawesome'; optional):
|
|
59
|
-
|
|
60
|
-
前缀图标渲染方式,可选项有`'AntdIcon'`、`'fontawesome'` 默认值:`'AntdIcon'`.
|
|
61
|
-
|
|
62
60
|
- target (string; optional):
|
|
63
61
|
|
|
64
62
|
下拉菜单节点链接跳转方式.
|
|
65
63
|
|
|
66
|
-
-
|
|
64
|
+
- disabled (boolean; optional):
|
|
67
65
|
|
|
68
|
-
|
|
66
|
+
是否禁用当前下拉菜单节点.
|
|
69
67
|
|
|
70
|
-
|
|
71
|
-
节点链接跳转行为.
|
|
68
|
+
- icon (string; optional):
|
|
72
69
|
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
下拉菜单节点前缀图标名称,与`iconRenderer`方式相关联,`'AntdIcon'`方式下同AntdIcon的icon参数,`'fontawesome'`方式下代表图标的css类名.
|
|
71
|
+
|
|
72
|
+
- iconRenderer (a value equal to: 'AntdIcon', 'fontawesome'; optional):
|
|
73
|
+
|
|
74
|
+
前缀图标渲染方式,可选项有`'AntdIcon'`、`'fontawesome'` 默认值:`'AntdIcon'`.
|
|
75
75
|
|
|
76
76
|
- separator (a list of or a singular dash component, string or number; default '/'):
|
|
77
77
|
组件型,分隔符 默认值:`'/'`.
|
|
@@ -81,12 +81,12 @@ Keyword arguments:
|
|
|
81
81
|
|
|
82
82
|
`clickedItem` is a dict with keys:
|
|
83
83
|
|
|
84
|
-
- itemKey (string; optional):
|
|
85
|
-
被点击节点key值.
|
|
86
|
-
|
|
87
84
|
- itemTitle (string; optional):
|
|
88
85
|
被点击节点标题.
|
|
89
86
|
|
|
87
|
+
- itemKey (string; optional):
|
|
88
|
+
被点击节点key值.
|
|
89
|
+
|
|
90
90
|
- timestamp (number; optional):
|
|
91
91
|
点击事件时间戳.
|
|
92
92
|
|
|
@@ -100,14 +100,14 @@ Keyword arguments:
|
|
|
100
100
|
|
|
101
101
|
`loading_state` is a dict with keys:
|
|
102
102
|
|
|
103
|
-
- component_name (string; optional):
|
|
104
|
-
Holds the name of the component that is loading.
|
|
105
|
-
|
|
106
103
|
- is_loading (boolean; optional):
|
|
107
104
|
Determines if the component is loading or not.
|
|
108
105
|
|
|
109
106
|
- prop_name (string; optional):
|
|
110
|
-
Holds which property is loading.
|
|
107
|
+
Holds which property is loading.
|
|
108
|
+
|
|
109
|
+
- component_name (string; optional):
|
|
110
|
+
Holds the name of the component that is loading."""
|
|
111
111
|
_children_props = ['separator']
|
|
112
112
|
_base_nodes = ['separator', 'children']
|
|
113
113
|
_namespace = 'feffery_antd_components'
|
|
@@ -111,14 +111,14 @@ Keyword arguments:
|
|
|
111
111
|
|
|
112
112
|
`loading_state` is a dict with keys:
|
|
113
113
|
|
|
114
|
-
- component_name (string; optional):
|
|
115
|
-
Holds the name of the component that is loading.
|
|
116
|
-
|
|
117
114
|
- is_loading (boolean; optional):
|
|
118
115
|
Determines if the component is loading or not.
|
|
119
116
|
|
|
120
117
|
- prop_name (string; optional):
|
|
121
|
-
Holds which property is loading.
|
|
118
|
+
Holds which property is loading.
|
|
119
|
+
|
|
120
|
+
- component_name (string; optional):
|
|
121
|
+
Holds the name of the component that is loading."""
|
|
122
122
|
_children_props = ['loadingChildren', 'icon']
|
|
123
123
|
_base_nodes = ['loadingChildren', 'icon', 'children']
|
|
124
124
|
_namespace = 'feffery_antd_components'
|
|
@@ -46,32 +46,32 @@ Keyword arguments:
|
|
|
46
46
|
|
|
47
47
|
`customCells` is a list of dicts with keys:
|
|
48
48
|
|
|
49
|
-
-
|
|
50
|
-
|
|
49
|
+
- type (a value equal to: 'month', 'date'; required):
|
|
50
|
+
必填,当前项对应类型,可选项有`'month'`、`'date'`.
|
|
51
51
|
|
|
52
|
-
-
|
|
53
|
-
|
|
52
|
+
- year (number; optional):
|
|
53
|
+
当前项匹配的年份值.
|
|
54
54
|
|
|
55
55
|
- month (number; optional):
|
|
56
56
|
当前项匹配的月份值.
|
|
57
57
|
|
|
58
|
-
-
|
|
59
|
-
|
|
58
|
+
- date (number; optional):
|
|
59
|
+
当前项匹配的日期值.
|
|
60
60
|
|
|
61
|
-
-
|
|
62
|
-
|
|
61
|
+
- content (a list of or a singular dash component, string or number; optional):
|
|
62
|
+
自定义内容.
|
|
63
63
|
|
|
64
64
|
- cellClickEvent (dict; optional):
|
|
65
65
|
监听日期单元格点击事件.
|
|
66
66
|
|
|
67
67
|
`cellClickEvent` is a dict with keys:
|
|
68
68
|
|
|
69
|
-
- timestamp (number; optional):
|
|
70
|
-
事件发生时间戳.
|
|
71
|
-
|
|
72
69
|
- type (string; optional):
|
|
73
70
|
记录面板类型.
|
|
74
71
|
|
|
72
|
+
- timestamp (number; optional):
|
|
73
|
+
事件发生时间戳.
|
|
74
|
+
|
|
75
75
|
- data-* (string; optional):
|
|
76
76
|
`data-*`格式属性通配.
|
|
77
77
|
|
|
@@ -82,15 +82,15 @@ Keyword arguments:
|
|
|
82
82
|
|
|
83
83
|
`loading_state` is a dict with keys:
|
|
84
84
|
|
|
85
|
-
- component_name (string; optional):
|
|
86
|
-
Holds the name of the component that is loading.
|
|
87
|
-
|
|
88
85
|
- is_loading (boolean; optional):
|
|
89
86
|
Determines if the component is loading or not.
|
|
90
87
|
|
|
91
88
|
- prop_name (string; optional):
|
|
92
89
|
Holds which property is loading.
|
|
93
90
|
|
|
91
|
+
- component_name (string; optional):
|
|
92
|
+
Holds the name of the component that is loading.
|
|
93
|
+
|
|
94
94
|
- persistence (boolean | string | number; optional):
|
|
95
95
|
是否开启[属性持久化](/prop-persistence).
|
|
96
96
|
|
|
@@ -35,21 +35,21 @@ Keyword arguments:
|
|
|
35
35
|
|
|
36
36
|
`extraLink` is a dict with keys:
|
|
37
37
|
|
|
38
|
-
- className (string; optional):
|
|
39
|
-
链接css类名.
|
|
40
|
-
|
|
41
38
|
- content (string; optional):
|
|
42
39
|
链接文字内容.
|
|
43
40
|
|
|
44
41
|
- href (string; optional):
|
|
45
42
|
链接地址.
|
|
46
43
|
|
|
47
|
-
- style (dict; optional):
|
|
48
|
-
链接css样式.
|
|
49
|
-
|
|
50
44
|
- target (string; optional):
|
|
51
45
|
链接跳转行为.
|
|
52
46
|
|
|
47
|
+
- className (string; optional):
|
|
48
|
+
链接css类名.
|
|
49
|
+
|
|
50
|
+
- style (dict; optional):
|
|
51
|
+
链接css样式.
|
|
52
|
+
|
|
53
53
|
- extra (a list of or a singular dash component, string or number; optional):
|
|
54
54
|
组件型,卡片右上角额外元素,优先级高于`extraLink`.
|
|
55
55
|
|
|
@@ -58,15 +58,15 @@ Keyword arguments:
|
|
|
58
58
|
|
|
59
59
|
`coverImg` is a dict with keys:
|
|
60
60
|
|
|
61
|
+
- src (string; optional):
|
|
62
|
+
图片资源地址.
|
|
63
|
+
|
|
61
64
|
- alt (string; optional):
|
|
62
65
|
图片alt信息.
|
|
63
66
|
|
|
64
67
|
- className (string; optional):
|
|
65
68
|
图片css类名.
|
|
66
69
|
|
|
67
|
-
- src (string; optional):
|
|
68
|
-
图片资源地址.
|
|
69
|
-
|
|
70
70
|
- style (dict; optional):
|
|
71
71
|
图片css样式.
|
|
72
72
|
|
|
@@ -98,14 +98,14 @@ Keyword arguments:
|
|
|
98
98
|
|
|
99
99
|
`loading_state` is a dict with keys:
|
|
100
100
|
|
|
101
|
-
- component_name (string; optional):
|
|
102
|
-
Holds the name of the component that is loading.
|
|
103
|
-
|
|
104
101
|
- is_loading (boolean; optional):
|
|
105
102
|
Determines if the component is loading or not.
|
|
106
103
|
|
|
107
104
|
- prop_name (string; optional):
|
|
108
|
-
Holds which property is loading.
|
|
105
|
+
Holds which property is loading.
|
|
106
|
+
|
|
107
|
+
- component_name (string; optional):
|
|
108
|
+
Holds the name of the component that is loading."""
|
|
109
109
|
_children_props = ['actions', 'title', 'extra']
|
|
110
110
|
_base_nodes = ['actions', 'title', 'extra', 'children']
|
|
111
111
|
_namespace = 'feffery_antd_components'
|
|
@@ -40,14 +40,14 @@ Keyword arguments:
|
|
|
40
40
|
|
|
41
41
|
`loading_state` is a dict with keys:
|
|
42
42
|
|
|
43
|
-
- component_name (string; optional):
|
|
44
|
-
Holds the name of the component that is loading.
|
|
45
|
-
|
|
46
43
|
- is_loading (boolean; optional):
|
|
47
44
|
Determines if the component is loading or not.
|
|
48
45
|
|
|
49
46
|
- prop_name (string; optional):
|
|
50
|
-
Holds which property is loading.
|
|
47
|
+
Holds which property is loading.
|
|
48
|
+
|
|
49
|
+
- component_name (string; optional):
|
|
50
|
+
Holds the name of the component that is loading."""
|
|
51
51
|
_children_props = []
|
|
52
52
|
_base_nodes = ['children']
|
|
53
53
|
_namespace = 'feffery_antd_components'
|
|
@@ -40,14 +40,14 @@ Keyword arguments:
|
|
|
40
40
|
|
|
41
41
|
`loading_state` is a dict with keys:
|
|
42
42
|
|
|
43
|
-
- component_name (string; optional):
|
|
44
|
-
Holds the name of the component that is loading.
|
|
45
|
-
|
|
46
43
|
- is_loading (boolean; optional):
|
|
47
44
|
Determines if the component is loading or not.
|
|
48
45
|
|
|
49
46
|
- prop_name (string; optional):
|
|
50
|
-
Holds which property is loading.
|
|
47
|
+
Holds which property is loading.
|
|
48
|
+
|
|
49
|
+
- component_name (string; optional):
|
|
50
|
+
Holds the name of the component that is loading."""
|
|
51
51
|
_children_props = ['avatar', 'description', 'title']
|
|
52
52
|
_base_nodes = ['avatar', 'description', 'title', 'children']
|
|
53
53
|
_namespace = 'feffery_antd_components'
|
|
@@ -70,14 +70,14 @@ Keyword arguments:
|
|
|
70
70
|
|
|
71
71
|
`loading_state` is a dict with keys:
|
|
72
72
|
|
|
73
|
-
- component_name (string; optional):
|
|
74
|
-
Holds the name of the component that is loading.
|
|
75
|
-
|
|
76
73
|
- is_loading (boolean; optional):
|
|
77
74
|
Determines if the component is loading or not.
|
|
78
75
|
|
|
79
76
|
- prop_name (string; optional):
|
|
80
|
-
Holds which property is loading.
|
|
77
|
+
Holds which property is loading.
|
|
78
|
+
|
|
79
|
+
- component_name (string; optional):
|
|
80
|
+
Holds the name of the component that is loading."""
|
|
81
81
|
_children_props = []
|
|
82
82
|
_base_nodes = ['children']
|
|
83
83
|
_namespace = 'feffery_antd_components'
|
|
@@ -118,15 +118,15 @@ Keyword arguments:
|
|
|
118
118
|
|
|
119
119
|
`loading_state` is a dict with keys:
|
|
120
120
|
|
|
121
|
-
- component_name (string; optional):
|
|
122
|
-
Holds the name of the component that is loading.
|
|
123
|
-
|
|
124
121
|
- is_loading (boolean; optional):
|
|
125
122
|
Determines if the component is loading or not.
|
|
126
123
|
|
|
127
124
|
- prop_name (string; optional):
|
|
128
125
|
Holds which property is loading.
|
|
129
126
|
|
|
127
|
+
- component_name (string; optional):
|
|
128
|
+
Holds the name of the component that is loading.
|
|
129
|
+
|
|
130
130
|
- persistence (boolean | string | number; optional):
|
|
131
131
|
是否开启[属性持久化](/prop-persistence).
|
|
132
132
|
|