feffery_antd_components 0.3.0-rc13 → 0.3.0-rc15

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 (44) 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/bug_fix.py +16 -143
  6. package/feffery_antd_components/AntdButton.py +2 -2
  7. package/feffery_antd_components/AntdCopyText.py +18 -10
  8. package/feffery_antd_components/AntdDrawer.py +6 -3
  9. package/feffery_antd_components/AntdImageGroup.py +1 -1
  10. package/feffery_antd_components/AntdInput.py +6 -3
  11. package/feffery_antd_components/AntdTable.py +6 -3
  12. package/feffery_antd_components/AntdTour.py +40 -39
  13. package/feffery_antd_components/AntdWatermark.py +35 -20
  14. package/feffery_antd_components/async-antd_table.js +1 -1
  15. package/feffery_antd_components/async-data_display.js +13 -13
  16. package/feffery_antd_components/async-data_entry.js +13 -13
  17. package/feffery_antd_components/async-pro_editor.js +1 -1
  18. package/feffery_antd_components/async-upload.js +3 -3
  19. package/feffery_antd_components/feffery_antd_components.min.js +28 -28
  20. package/feffery_antd_components/metadata.json +119 -94
  21. package/feffery_antd_components/package-info.json +2 -2
  22. package/package.json +2 -2
  23. package/perf_test.py +3 -0
  24. package/src/jl/'feffery'_antdbutton.jl +1 -1
  25. package/src/jl/'feffery'_antdcopytext.jl +10 -9
  26. package/src/jl/'feffery'_antddrawer.jl +3 -1
  27. package/src/jl/'feffery'_antdimagegroup.jl +1 -1
  28. package/src/jl/'feffery'_antdinput.jl +2 -1
  29. package/src/jl/'feffery'_antdtable.jl +3 -1
  30. package/src/jl/'feffery'_antdtour.jl +43 -47
  31. package/src/jl/'feffery'_antdwatermark.jl +22 -18
  32. package/src/lib/components/dataDisplay/AntdImageGroup.react.js +3 -0
  33. package/src/lib/components/dataDisplay/AntdTable.react.js +7 -0
  34. package/src/lib/components/dataEntry/AntdInput.react.js +5 -0
  35. package/src/lib/components/feedback/AntdDrawer.react.js +10 -1
  36. package/src/lib/components/general/AntdButton.react.js +2 -2
  37. package/src/lib/components/other/AntdCopyText.react.js +38 -16
  38. package/src/lib/components/other/AntdTour.react.js +68 -88
  39. package/src/lib/components/other/AntdWatermark.react.js +61 -23
  40. package/src/lib/components/other/Fragment.react.js +1 -0
  41. package/src/lib/fragments/AntdTable.react.js +2 -0
  42. package/src/lib/fragments/dataEntry/AntdInput.react.js +8 -0
  43. package/src/lib/fragments/dataEntry/AntdSelect.react.js +0 -6
  44. package/usage.py +6 -51
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.0-rc13
3
+ Version: 0.3.0-rc15
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-baf51bd2b26e"
4
4
  authors = ["CNFeffery <fefferypzy@gmail.com>"]
5
- version = "0.3.0-rc13"
5
+ version = "0.3.0-rc15"
6
6
 
7
7
  [deps]
8
8
  Dash = "1b08a953-4be3-4667-9a23-3db579824955"
package/README-en_US.md CHANGED
@@ -26,7 +26,7 @@ pip install feffery-antd-components -U
26
26
  ## 2 Install the latest preview release version
27
27
 
28
28
  > [!NOTE]
29
- > The latest preview release version (2024-05-11): `0.3.0rc12`
29
+ > The latest preview release version (2024-05-22): `0.3.0rc14`
30
30
 
31
31
  ```bash
32
32
  pip install feffery-antd-components --pre -U
package/README.md CHANGED
@@ -26,7 +26,7 @@ pip install feffery-antd-components -U
26
26
  ## 2 最新预发布版本安装方式
27
27
 
28
28
  > [!NOTE]
29
- > 最新预发布版本(2024-05-11):`0.3.0rc12`
29
+ > 最新预发布版本(2024-05-22):`0.3.0rc14`
30
30
 
31
31
  ```bash
32
32
  pip install feffery-antd-components --pre -U
package/bug_fix.py CHANGED
@@ -1,159 +1,32 @@
1
- import json
2
1
  import dash
3
2
  from dash import html
4
3
  import feffery_antd_components as fac
5
- from dash.dependencies import Input, Output, MATCH
6
4
 
7
5
  app = dash.Dash(__name__)
8
6
 
9
-
10
- def test_wrapper(children, title):
11
- return [
12
- fac.AntdTitle(title, level=3),
13
- *(
14
- children
15
- if isinstance(children, list)
16
- else [children]
17
- ),
18
- ]
19
-
20
-
21
7
  app.layout = html.Div(
22
8
  [
23
- fac.AntdSpace(
24
- [
25
- *test_wrapper(
26
- [
27
- fac.AntdForm(
28
- [
29
- fac.AntdFormItem(
30
- fac.AntdInput(
31
- placeholder=f'基础使用-表单项{i}',
32
- name=f'基础使用-表单项{i}',
33
- style={
34
- 'width': 200
35
- },
36
- )
37
- )
38
- for i in range(3)
39
- ],
40
- enableBatchControl=True,
41
- id={
42
- 'type': 'form',
43
- 'index': '基础使用',
44
- },
45
- ),
46
- html.Pre(
47
- id={
48
- 'type': 'output',
49
- 'index': '基础使用',
50
- }
51
- ),
52
- ],
53
- '基础使用',
54
- ),
55
- *test_wrapper(
56
- [
57
- fac.AntdButton(
58
- '打开抽屉',
59
- id='open-drawer1',
60
- ),
61
- fac.AntdDrawer(
62
- fac.AntdForm(
63
- [
64
- fac.AntdFormItem(
65
- fac.AntdInput(
66
- placeholder=f'内容关闭销毁场景-表单项{i}',
67
- name=f'内容关闭销毁场景-表单项{i}',
68
- style={
69
- 'width': 200
70
- },
71
- )
72
- )
73
- for i in range(3)
74
- ],
75
- enableBatchControl=True,
76
- id={
77
- 'type': 'form',
78
- 'index': '内容关闭销毁场景',
79
- },
80
- ),
81
- id='drawer1',
82
- destroyOnClose=True,
83
- ),
84
- html.Pre(
85
- id={
86
- 'type': 'output',
87
- 'index': '内容关闭销毁场景',
88
- }
89
- ),
90
- ],
91
- '内容关闭销毁场景',
92
- ),
93
- *test_wrapper(
94
- [
95
- fac.AntdButton(
96
- '打开抽屉',
97
- id='open-drawer2',
98
- ),
99
- fac.AntdDrawer(
100
- fac.AntdForm(
101
- [
102
- fac.AntdFormItem(
103
- fac.AntdInput(
104
- placeholder=f'内容关闭销毁场景+额外字段-表单项{i}',
105
- name=f'内容关闭销毁场景+额外字段-表单项{i}',
106
- style={
107
- 'width': 200
108
- },
109
- )
110
- )
111
- for i in range(3)
112
- ],
113
- enableBatchControl=True,
114
- id={
115
- 'type': 'form',
116
- 'index': '内容关闭销毁场景+额外字段',
117
- },
118
- values={'额外字段': 'test'},
119
- ),
120
- id='drawer2',
121
- destroyOnClose=True,
122
- ),
123
- html.Pre(
124
- id={
125
- 'type': 'output',
126
- 'index': '内容关闭销毁场景+额外字段',
127
- }
128
- ),
129
- ],
130
- '内容关闭销毁场景+额外字段',
131
- ),
9
+ fac.AntdSelect(
10
+ options=[
11
+ {'label': f'选项{i}', 'value': f'选项{i}'}
12
+ for i in range(1, 10)
13
+ ],
14
+ defaultValue=['选项1', '选项2'],
15
+ mode='multiple',
16
+ style={'width': '100%'},
17
+ ),
18
+ fac.AntdSelect(
19
+ options=[
20
+ {'label': f'选项{i}', 'value': f'选项{i}'}
21
+ for i in range(1, 10)
132
22
  ],
133
- direction='vertical',
23
+ mode='multiple',
24
+ value=None,
134
25
  style={'width': '100%'},
135
- )
26
+ ),
136
27
  ],
137
28
  style={'padding': 50},
138
29
  )
139
30
 
140
-
141
- @app.callback(
142
- Output({'type': 'output', 'index': MATCH}, 'children'),
143
- Input({'type': 'form', 'index': MATCH}, 'values'),
144
- prevent_initial_call=True,
145
- )
146
- def show_values(values):
147
- return json.dumps(values, indent=4, ensure_ascii=False)
148
-
149
-
150
- for i in range(1, 3):
151
- app.clientside_callback(
152
- """(nClicks) => true""",
153
- Output(f'drawer{i}', 'visible'),
154
- Input(f'open-drawer{i}', 'nClicks'),
155
- prevent_initial_call=True,
156
- )
157
-
158
31
  if __name__ == '__main__':
159
32
  app.run(debug=True)
@@ -113,8 +113,8 @@ Keyword arguments:
113
113
  - target (string; default '_blank'):
114
114
  按钮点击跳转链接方式 默认值:`'_blank'`.
115
115
 
116
- - type (a value equal to: 'default', 'primary', 'ghost', 'dashed', 'link', 'text'; default 'default'):
117
- 按钮类型,可选项有`'default'`、`'primary'`、`'ghost'`、`'dashed'`、`'link'`、`'text'`
116
+ - type (a value equal to: 'default', 'primary', 'dashed', 'link', 'text'; default 'default'):
117
+ 按钮类型,可选项有`'default'`、`'primary'`、`'dashed'`、`'link'`、`'text'`
118
118
  默认值:`'default'`."""
119
119
  _children_props = ['loadingChildren', 'icon']
120
120
  _base_nodes = ['loadingChildren', 'icon', 'children']
@@ -5,25 +5,30 @@ from dash.development.base_component import Component, _explicitize_args
5
5
 
6
6
  class AntdCopyText(Component):
7
7
  """An AntdCopyText component.
8
-
8
+ 文字复制组件AntdCopyText
9
9
 
10
10
  Keyword arguments:
11
11
 
12
- - id (string; optional)
12
+ - id (string; optional):
13
+ 组件唯一id.
13
14
 
14
- - afterIcon (a list of or a singular dash component, string or number; optional)
15
+ - afterIcon (a list of or a singular dash component, string or number; optional):
16
+ 组件型,完成复制状态图标.
15
17
 
16
18
  - aria-* (string; optional):
17
19
  `aria-*`格式属性通配.
18
20
 
19
- - beforeIcon (a list of or a singular dash component, string or number; optional)
21
+ - beforeIcon (a list of or a singular dash component, string or number; optional):
22
+ 组件型,未复制状态图标.
20
23
 
21
- - className (string | dict; optional)
24
+ - className (string | dict; optional):
25
+ 当前组件css类名,支持[动态css](/advanced-classname).
22
26
 
23
27
  - data-* (string; optional):
24
28
  `data-*`格式属性通配.
25
29
 
26
- - key (string; optional)
30
+ - key (string; optional):
31
+ 对当前组件的`key`值进行更新,可实现强制重绘当前组件的效果.
27
32
 
28
33
  - loading_state (dict; optional)
29
34
 
@@ -38,17 +43,20 @@ Keyword arguments:
38
43
  - prop_name (string; optional):
39
44
  Holds which property is loading.
40
45
 
41
- - locale (a value equal to: 'zh-cn', 'en-us'; default 'zh-cn')
46
+ - locale (a value equal to: 'zh-cn', 'en-us'; default 'zh-cn'):
47
+ 组件文案语种,可选项有`'zh-cn'`、`'en-us'` 默认值:`'zh-cn'`.
42
48
 
43
- - style (dict; optional)
49
+ - style (dict; optional):
50
+ 当前组件css样式.
44
51
 
45
- - text (string; default '')"""
52
+ - text (string; default ''):
53
+ 复制目标内容."""
46
54
  _children_props = ['beforeIcon', 'afterIcon']
47
55
  _base_nodes = ['beforeIcon', 'afterIcon', 'children']
48
56
  _namespace = 'feffery_antd_components'
49
57
  _type = 'AntdCopyText'
50
58
  @_explicitize_args
51
- def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, locale=Component.UNDEFINED, text=Component.UNDEFINED, beforeIcon=Component.UNDEFINED, afterIcon=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
59
+ def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, locale=Component.UNDEFINED, text=Component.UNDEFINED, beforeIcon=Component.UNDEFINED, afterIcon=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
52
60
  self._prop_names = ['id', 'afterIcon', 'aria-*', 'beforeIcon', 'className', 'data-*', 'key', 'loading_state', 'locale', 'style', 'text']
53
61
  self._valid_wildcard_attributes = ['data-', 'aria-']
54
62
  self.available_properties = ['id', 'afterIcon', 'aria-*', 'beforeIcon', 'className', 'data-*', 'key', 'loading_state', 'locale', 'style', 'text']
@@ -71,6 +71,9 @@ Keyword arguments:
71
71
  - key (string; optional):
72
72
  对当前组件的`key`值进行更新,可实现强制重绘当前组件的效果.
73
73
 
74
+ - loading (boolean; default False):
75
+ 是否渲染为加载中状态 默认值:`False`.
76
+
74
77
  - loading_state (dict; optional)
75
78
 
76
79
  `loading_state` is a dict with keys:
@@ -135,10 +138,10 @@ Keyword arguments:
135
138
  _namespace = 'feffery_antd_components'
136
139
  _type = 'AntdDrawer'
137
140
  @_explicitize_args
138
- def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, classNames=Component.UNDEFINED, styles=Component.UNDEFINED, rootStyle=Component.UNDEFINED, visible=Component.UNDEFINED, title=Component.UNDEFINED, placement=Component.UNDEFINED, closable=Component.UNDEFINED, forceRender=Component.UNDEFINED, destroyOnClose=Component.UNDEFINED, width=Component.UNDEFINED, height=Component.UNDEFINED, mask=Component.UNDEFINED, maskClosable=Component.UNDEFINED, zIndex=Component.UNDEFINED, extra=Component.UNDEFINED, footer=Component.UNDEFINED, containerId=Component.UNDEFINED, containerSelector=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
139
- self._prop_names = ['children', 'id', 'aria-*', 'className', 'classNames', 'closable', 'containerId', 'containerSelector', 'data-*', 'destroyOnClose', 'extra', 'footer', 'forceRender', 'height', 'key', 'loading_state', 'mask', 'maskClosable', 'placement', 'rootStyle', 'style', 'styles', 'title', 'visible', 'width', 'zIndex']
141
+ def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, classNames=Component.UNDEFINED, styles=Component.UNDEFINED, rootStyle=Component.UNDEFINED, visible=Component.UNDEFINED, title=Component.UNDEFINED, placement=Component.UNDEFINED, closable=Component.UNDEFINED, forceRender=Component.UNDEFINED, destroyOnClose=Component.UNDEFINED, width=Component.UNDEFINED, height=Component.UNDEFINED, mask=Component.UNDEFINED, maskClosable=Component.UNDEFINED, zIndex=Component.UNDEFINED, loading=Component.UNDEFINED, extra=Component.UNDEFINED, footer=Component.UNDEFINED, containerId=Component.UNDEFINED, containerSelector=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
142
+ self._prop_names = ['children', 'id', 'aria-*', 'className', 'classNames', 'closable', 'containerId', 'containerSelector', 'data-*', 'destroyOnClose', 'extra', 'footer', 'forceRender', 'height', 'key', 'loading', 'loading_state', 'mask', 'maskClosable', 'placement', 'rootStyle', 'style', 'styles', 'title', 'visible', 'width', 'zIndex']
140
143
  self._valid_wildcard_attributes = ['data-', 'aria-']
141
- self.available_properties = ['children', 'id', 'aria-*', 'className', 'classNames', 'closable', 'containerId', 'containerSelector', 'data-*', 'destroyOnClose', 'extra', 'footer', 'forceRender', 'height', 'key', 'loading_state', 'mask', 'maskClosable', 'placement', 'rootStyle', 'style', 'styles', 'title', 'visible', 'width', 'zIndex']
144
+ self.available_properties = ['children', 'id', 'aria-*', 'className', 'classNames', 'closable', 'containerId', 'containerSelector', 'data-*', 'destroyOnClose', 'extra', 'footer', 'forceRender', 'height', 'key', 'loading', 'loading_state', 'mask', 'maskClosable', 'placement', 'rootStyle', 'style', 'styles', 'title', 'visible', 'width', 'zIndex']
142
145
  self.available_wildcard_properties = ['data-', 'aria-']
143
146
  _explicit_args = kwargs.pop('_explicit_args')
144
147
  _locals = locals()
@@ -5,7 +5,7 @@ from dash.development.base_component import Component, _explicitize_args
5
5
 
6
6
  class AntdImageGroup(Component):
7
7
  """An AntdImageGroup component.
8
-
8
+ 图片组合组件AntdImageGroup
9
9
 
10
10
  Keyword arguments:
11
11
 
@@ -94,6 +94,9 @@ Keyword arguments:
94
94
  - emptyAsNone (boolean; default False):
95
95
  当输入框已输入值为空时,是否强制更新`value`为空值,从而统一空字符串与空值混合的情况 默认值:`False`.
96
96
 
97
+ - focusing (boolean; optional):
98
+ 监听输入框是否聚焦.
99
+
97
100
  - key (string; optional):
98
101
  对当前组件的`key`值进行更新,可实现强制重绘当前组件的效果.
99
102
 
@@ -197,10 +200,10 @@ Keyword arguments:
197
200
  _namespace = 'feffery_antd_components'
198
201
  _type = 'AntdInput'
199
202
  @_explicitize_args
200
- def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, styles=Component.UNDEFINED, classNames=Component.UNDEFINED, name=Component.UNDEFINED, mode=Component.UNDEFINED, autoComplete=Component.UNDEFINED, disabled=Component.UNDEFINED, size=Component.UNDEFINED, bordered=Component.UNDEFINED, variant=Component.UNDEFINED, placeholder=Component.UNDEFINED, value=Component.UNDEFINED, defaultValue=Component.UNDEFINED, passwordUseMd5=Component.UNDEFINED, md5Value=Component.UNDEFINED, debounceValue=Component.UNDEFINED, debounceWait=Component.UNDEFINED, addonBefore=Component.UNDEFINED, addonAfter=Component.UNDEFINED, prefix=Component.UNDEFINED, suffix=Component.UNDEFINED, maxLength=Component.UNDEFINED, showCount=Component.UNDEFINED, countFormat=Component.UNDEFINED, autoSize=Component.UNDEFINED, nSubmit=Component.UNDEFINED, nClicksSearch=Component.UNDEFINED, status=Component.UNDEFINED, allowClear=Component.UNDEFINED, autoFocus=Component.UNDEFINED, readOnly=Component.UNDEFINED, emptyAsNone=Component.UNDEFINED, batchPropsNames=Component.UNDEFINED, batchPropsValues=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
201
- self._prop_names = ['id', 'addonAfter', 'addonBefore', 'allowClear', 'aria-*', 'autoComplete', 'autoFocus', 'autoSize', 'batchPropsNames', 'batchPropsValues', 'bordered', 'className', 'classNames', 'countFormat', 'data-*', 'debounceValue', 'debounceWait', 'defaultValue', 'disabled', 'emptyAsNone', 'key', 'loading_state', 'maxLength', 'md5Value', 'mode', 'nClicksSearch', 'nSubmit', 'name', 'passwordUseMd5', 'persisted_props', 'persistence', 'persistence_type', 'placeholder', 'prefix', 'readOnly', 'showCount', 'size', 'status', 'style', 'styles', 'suffix', 'value', 'variant']
203
+ def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, styles=Component.UNDEFINED, classNames=Component.UNDEFINED, name=Component.UNDEFINED, mode=Component.UNDEFINED, autoComplete=Component.UNDEFINED, disabled=Component.UNDEFINED, size=Component.UNDEFINED, bordered=Component.UNDEFINED, variant=Component.UNDEFINED, placeholder=Component.UNDEFINED, value=Component.UNDEFINED, defaultValue=Component.UNDEFINED, passwordUseMd5=Component.UNDEFINED, md5Value=Component.UNDEFINED, debounceValue=Component.UNDEFINED, debounceWait=Component.UNDEFINED, addonBefore=Component.UNDEFINED, addonAfter=Component.UNDEFINED, prefix=Component.UNDEFINED, suffix=Component.UNDEFINED, maxLength=Component.UNDEFINED, showCount=Component.UNDEFINED, countFormat=Component.UNDEFINED, autoSize=Component.UNDEFINED, nSubmit=Component.UNDEFINED, nClicksSearch=Component.UNDEFINED, status=Component.UNDEFINED, allowClear=Component.UNDEFINED, autoFocus=Component.UNDEFINED, focusing=Component.UNDEFINED, readOnly=Component.UNDEFINED, emptyAsNone=Component.UNDEFINED, batchPropsNames=Component.UNDEFINED, batchPropsValues=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
204
+ self._prop_names = ['id', 'addonAfter', 'addonBefore', 'allowClear', 'aria-*', 'autoComplete', 'autoFocus', 'autoSize', 'batchPropsNames', 'batchPropsValues', 'bordered', 'className', 'classNames', 'countFormat', 'data-*', 'debounceValue', 'debounceWait', 'defaultValue', 'disabled', 'emptyAsNone', 'focusing', 'key', 'loading_state', 'maxLength', 'md5Value', 'mode', 'nClicksSearch', 'nSubmit', 'name', 'passwordUseMd5', 'persisted_props', 'persistence', 'persistence_type', 'placeholder', 'prefix', 'readOnly', 'showCount', 'size', 'status', 'style', 'styles', 'suffix', 'value', 'variant']
202
205
  self._valid_wildcard_attributes = ['data-', 'aria-']
203
- self.available_properties = ['id', 'addonAfter', 'addonBefore', 'allowClear', 'aria-*', 'autoComplete', 'autoFocus', 'autoSize', 'batchPropsNames', 'batchPropsValues', 'bordered', 'className', 'classNames', 'countFormat', 'data-*', 'debounceValue', 'debounceWait', 'defaultValue', 'disabled', 'emptyAsNone', 'key', 'loading_state', 'maxLength', 'md5Value', 'mode', 'nClicksSearch', 'nSubmit', 'name', 'passwordUseMd5', 'persisted_props', 'persistence', 'persistence_type', 'placeholder', 'prefix', 'readOnly', 'showCount', 'size', 'status', 'style', 'styles', 'suffix', 'value', 'variant']
206
+ self.available_properties = ['id', 'addonAfter', 'addonBefore', 'allowClear', 'aria-*', 'autoComplete', 'autoFocus', 'autoSize', 'batchPropsNames', 'batchPropsValues', 'bordered', 'className', 'classNames', 'countFormat', 'data-*', 'debounceValue', 'debounceWait', 'defaultValue', 'disabled', 'emptyAsNone', 'focusing', 'key', 'loading_state', 'maxLength', 'md5Value', 'mode', 'nClicksSearch', 'nSubmit', 'name', 'passwordUseMd5', 'persisted_props', 'persistence', 'persistence_type', 'placeholder', 'prefix', 'readOnly', 'showCount', 'size', 'status', 'style', 'styles', 'suffix', 'value', 'variant']
204
207
  self.available_wildcard_properties = ['data-', 'aria-']
205
208
  _explicit_args = kwargs.pop('_explicit_args')
206
209
  _locals = locals()
@@ -782,6 +782,9 @@ Keyword arguments:
782
782
  - recentlySwitchStatus (boolean; optional):
783
783
  针对再渲染模式中的`'switch'`模式,监听最近发生开关切换事件对应的开关状态.
784
784
 
785
+ - rowHoverable (boolean; default True):
786
+ 表格行是否开启鼠标悬停样式效果 默认值:`True`.
787
+
785
788
  - rowSelectionCheckStrictly (boolean; optional):
786
789
  针对嵌套行,各行与其所嵌套的内部行之间的行选择行为是否互相独立 默认值:`True`.
787
790
 
@@ -902,10 +905,10 @@ Keyword arguments:
902
905
  _namespace = 'feffery_antd_components'
903
906
  _type = 'AntdTable'
904
907
  @_explicitize_args
905
- def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, locale=Component.UNDEFINED, containerId=Component.UNDEFINED, columns=Component.UNDEFINED, showHeader=Component.UNDEFINED, tableLayout=Component.UNDEFINED, data=Component.UNDEFINED, bordered=Component.UNDEFINED, maxHeight=Component.UNDEFINED, maxWidth=Component.UNDEFINED, size=Component.UNDEFINED, rowSelectionType=Component.UNDEFINED, selectedRowKeys=Component.UNDEFINED, selectedRows=Component.UNDEFINED, rowSelectionWidth=Component.UNDEFINED, rowSelectionCheckStrictly=Component.UNDEFINED, rowSelectionIgnoreRowKeys=Component.UNDEFINED, selectedRowsSyncWithData=Component.UNDEFINED, sticky=Component.UNDEFINED, enableHoverListen=Component.UNDEFINED, recentlyMouseEnterColumnDataIndex=Component.UNDEFINED, recentlyMouseEnterRowKey=Component.UNDEFINED, recentlyMouseEnterRow=Component.UNDEFINED, titlePopoverInfo=Component.UNDEFINED, columnsFormatConstraint=Component.UNDEFINED, sortOptions=Component.UNDEFINED, filterOptions=Component.UNDEFINED, defaultFilteredValues=Component.UNDEFINED, pagination=Component.UNDEFINED, currentData=Component.UNDEFINED, recentlyChangedRow=Component.UNDEFINED, recentlyChangedColumn=Component.UNDEFINED, sorter=Component.UNDEFINED, filter=Component.UNDEFINED, mode=Component.UNDEFINED, summaryRowContents=Component.UNDEFINED, summaryRowFixed=Component.UNDEFINED, conditionalStyleFuncs=Component.UNDEFINED, expandedRowKeyToContent=Component.UNDEFINED, expandedRowWidth=Component.UNDEFINED, expandRowByClick=Component.UNDEFINED, defaultExpandedRowKeys=Component.UNDEFINED, expandedRowKeys=Component.UNDEFINED, enableCellClickListenColumns=Component.UNDEFINED, recentlyCellClickColumn=Component.UNDEFINED, recentlyCellClickRecord=Component.UNDEFINED, nClicksCell=Component.UNDEFINED, cellClickEvent=Component.UNDEFINED, recentlyCellDoubleClickColumn=Component.UNDEFINED, recentlyCellDoubleClickRecord=Component.UNDEFINED, nDoubleClicksCell=Component.UNDEFINED, cellDoubleClickEvent=Component.UNDEFINED, recentlyContextMenuClickColumn=Component.UNDEFINED, recentlyContextMenuClickRecord=Component.UNDEFINED, nContextMenuClicksCell=Component.UNDEFINED, cellContextMenuClickEvent=Component.UNDEFINED, emptyContent=Component.UNDEFINED, cellUpdateOptimize=Component.UNDEFINED, miniChartHeight=Component.UNDEFINED, miniChartAnimation=Component.UNDEFINED, recentlyButtonClickedRow=Component.UNDEFINED, nClicksButton=Component.UNDEFINED, clickedContent=Component.UNDEFINED, clickedCustom=Component.UNDEFINED, recentlyButtonClickedDataIndex=Component.UNDEFINED, customFormatFuncs=Component.UNDEFINED, recentlyCheckedRow=Component.UNDEFINED, recentlyCheckedLabel=Component.UNDEFINED, recentlyCheckedDataIndex=Component.UNDEFINED, recentlyCheckedStatus=Component.UNDEFINED, recentlySwitchRow=Component.UNDEFINED, recentlySwitchDataIndex=Component.UNDEFINED, recentlySwitchStatus=Component.UNDEFINED, nClicksDropdownItem=Component.UNDEFINED, recentlyClickedDropdownItemTitle=Component.UNDEFINED, recentlyDropdownItemClickedDataIndex=Component.UNDEFINED, recentlyDropdownItemClickedRow=Component.UNDEFINED, recentlySelectRow=Component.UNDEFINED, recentlySelectDataIndex=Component.UNDEFINED, recentlySelectValue=Component.UNDEFINED, hiddenRowKeys=Component.UNDEFINED, dataDeepCompare=Component.UNDEFINED, virtual=Component.UNDEFINED, title=Component.UNDEFINED, footer=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
906
- self._prop_names = ['id', 'aria-*', 'bordered', 'cellClickEvent', 'cellContextMenuClickEvent', 'cellDoubleClickEvent', 'cellUpdateOptimize', 'className', 'clickedContent', 'clickedCustom', 'columns', 'columnsFormatConstraint', 'conditionalStyleFuncs', 'containerId', 'currentData', 'customFormatFuncs', 'data', 'data-*', 'dataDeepCompare', 'defaultExpandedRowKeys', 'defaultFilteredValues', 'emptyContent', 'enableCellClickListenColumns', 'enableHoverListen', 'expandRowByClick', 'expandedRowKeyToContent', 'expandedRowKeys', 'expandedRowWidth', 'filter', 'filterOptions', 'footer', 'hiddenRowKeys', 'key', 'loading_state', 'locale', 'maxHeight', 'maxWidth', 'miniChartAnimation', 'miniChartHeight', 'mode', 'nClicksButton', 'nClicksCell', 'nClicksDropdownItem', 'nContextMenuClicksCell', 'nDoubleClicksCell', 'pagination', 'recentlyButtonClickedDataIndex', 'recentlyButtonClickedRow', 'recentlyCellClickColumn', 'recentlyCellClickRecord', 'recentlyCellDoubleClickColumn', 'recentlyCellDoubleClickRecord', 'recentlyChangedColumn', 'recentlyChangedRow', 'recentlyCheckedDataIndex', 'recentlyCheckedLabel', 'recentlyCheckedRow', 'recentlyCheckedStatus', 'recentlyClickedDropdownItemTitle', 'recentlyContextMenuClickColumn', 'recentlyContextMenuClickRecord', 'recentlyDropdownItemClickedDataIndex', 'recentlyDropdownItemClickedRow', 'recentlyMouseEnterColumnDataIndex', 'recentlyMouseEnterRow', 'recentlyMouseEnterRowKey', 'recentlySelectDataIndex', 'recentlySelectRow', 'recentlySelectValue', 'recentlySwitchDataIndex', 'recentlySwitchRow', 'recentlySwitchStatus', 'rowSelectionCheckStrictly', 'rowSelectionIgnoreRowKeys', 'rowSelectionType', 'rowSelectionWidth', 'selectedRowKeys', 'selectedRows', 'selectedRowsSyncWithData', 'showHeader', 'size', 'sortOptions', 'sorter', 'sticky', 'style', 'summaryRowContents', 'summaryRowFixed', 'tableLayout', 'title', 'titlePopoverInfo', 'virtual']
908
+ def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, locale=Component.UNDEFINED, containerId=Component.UNDEFINED, columns=Component.UNDEFINED, showHeader=Component.UNDEFINED, rowHoverable=Component.UNDEFINED, tableLayout=Component.UNDEFINED, data=Component.UNDEFINED, bordered=Component.UNDEFINED, maxHeight=Component.UNDEFINED, maxWidth=Component.UNDEFINED, size=Component.UNDEFINED, rowSelectionType=Component.UNDEFINED, selectedRowKeys=Component.UNDEFINED, selectedRows=Component.UNDEFINED, rowSelectionWidth=Component.UNDEFINED, rowSelectionCheckStrictly=Component.UNDEFINED, rowSelectionIgnoreRowKeys=Component.UNDEFINED, selectedRowsSyncWithData=Component.UNDEFINED, sticky=Component.UNDEFINED, enableHoverListen=Component.UNDEFINED, recentlyMouseEnterColumnDataIndex=Component.UNDEFINED, recentlyMouseEnterRowKey=Component.UNDEFINED, recentlyMouseEnterRow=Component.UNDEFINED, titlePopoverInfo=Component.UNDEFINED, columnsFormatConstraint=Component.UNDEFINED, sortOptions=Component.UNDEFINED, filterOptions=Component.UNDEFINED, defaultFilteredValues=Component.UNDEFINED, pagination=Component.UNDEFINED, currentData=Component.UNDEFINED, recentlyChangedRow=Component.UNDEFINED, recentlyChangedColumn=Component.UNDEFINED, sorter=Component.UNDEFINED, filter=Component.UNDEFINED, mode=Component.UNDEFINED, summaryRowContents=Component.UNDEFINED, summaryRowFixed=Component.UNDEFINED, conditionalStyleFuncs=Component.UNDEFINED, expandedRowKeyToContent=Component.UNDEFINED, expandedRowWidth=Component.UNDEFINED, expandRowByClick=Component.UNDEFINED, defaultExpandedRowKeys=Component.UNDEFINED, expandedRowKeys=Component.UNDEFINED, enableCellClickListenColumns=Component.UNDEFINED, recentlyCellClickColumn=Component.UNDEFINED, recentlyCellClickRecord=Component.UNDEFINED, nClicksCell=Component.UNDEFINED, cellClickEvent=Component.UNDEFINED, recentlyCellDoubleClickColumn=Component.UNDEFINED, recentlyCellDoubleClickRecord=Component.UNDEFINED, nDoubleClicksCell=Component.UNDEFINED, cellDoubleClickEvent=Component.UNDEFINED, recentlyContextMenuClickColumn=Component.UNDEFINED, recentlyContextMenuClickRecord=Component.UNDEFINED, nContextMenuClicksCell=Component.UNDEFINED, cellContextMenuClickEvent=Component.UNDEFINED, emptyContent=Component.UNDEFINED, cellUpdateOptimize=Component.UNDEFINED, miniChartHeight=Component.UNDEFINED, miniChartAnimation=Component.UNDEFINED, recentlyButtonClickedRow=Component.UNDEFINED, nClicksButton=Component.UNDEFINED, clickedContent=Component.UNDEFINED, clickedCustom=Component.UNDEFINED, recentlyButtonClickedDataIndex=Component.UNDEFINED, customFormatFuncs=Component.UNDEFINED, recentlyCheckedRow=Component.UNDEFINED, recentlyCheckedLabel=Component.UNDEFINED, recentlyCheckedDataIndex=Component.UNDEFINED, recentlyCheckedStatus=Component.UNDEFINED, recentlySwitchRow=Component.UNDEFINED, recentlySwitchDataIndex=Component.UNDEFINED, recentlySwitchStatus=Component.UNDEFINED, nClicksDropdownItem=Component.UNDEFINED, recentlyClickedDropdownItemTitle=Component.UNDEFINED, recentlyDropdownItemClickedDataIndex=Component.UNDEFINED, recentlyDropdownItemClickedRow=Component.UNDEFINED, recentlySelectRow=Component.UNDEFINED, recentlySelectDataIndex=Component.UNDEFINED, recentlySelectValue=Component.UNDEFINED, hiddenRowKeys=Component.UNDEFINED, dataDeepCompare=Component.UNDEFINED, virtual=Component.UNDEFINED, title=Component.UNDEFINED, footer=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
909
+ self._prop_names = ['id', 'aria-*', 'bordered', 'cellClickEvent', 'cellContextMenuClickEvent', 'cellDoubleClickEvent', 'cellUpdateOptimize', 'className', 'clickedContent', 'clickedCustom', 'columns', 'columnsFormatConstraint', 'conditionalStyleFuncs', 'containerId', 'currentData', 'customFormatFuncs', 'data', 'data-*', 'dataDeepCompare', 'defaultExpandedRowKeys', 'defaultFilteredValues', 'emptyContent', 'enableCellClickListenColumns', 'enableHoverListen', 'expandRowByClick', 'expandedRowKeyToContent', 'expandedRowKeys', 'expandedRowWidth', 'filter', 'filterOptions', 'footer', 'hiddenRowKeys', 'key', 'loading_state', 'locale', 'maxHeight', 'maxWidth', 'miniChartAnimation', 'miniChartHeight', 'mode', 'nClicksButton', 'nClicksCell', 'nClicksDropdownItem', 'nContextMenuClicksCell', 'nDoubleClicksCell', 'pagination', 'recentlyButtonClickedDataIndex', 'recentlyButtonClickedRow', 'recentlyCellClickColumn', 'recentlyCellClickRecord', 'recentlyCellDoubleClickColumn', 'recentlyCellDoubleClickRecord', 'recentlyChangedColumn', 'recentlyChangedRow', 'recentlyCheckedDataIndex', 'recentlyCheckedLabel', 'recentlyCheckedRow', 'recentlyCheckedStatus', 'recentlyClickedDropdownItemTitle', 'recentlyContextMenuClickColumn', 'recentlyContextMenuClickRecord', 'recentlyDropdownItemClickedDataIndex', 'recentlyDropdownItemClickedRow', 'recentlyMouseEnterColumnDataIndex', 'recentlyMouseEnterRow', 'recentlyMouseEnterRowKey', 'recentlySelectDataIndex', 'recentlySelectRow', 'recentlySelectValue', 'recentlySwitchDataIndex', 'recentlySwitchRow', 'recentlySwitchStatus', 'rowHoverable', 'rowSelectionCheckStrictly', 'rowSelectionIgnoreRowKeys', 'rowSelectionType', 'rowSelectionWidth', 'selectedRowKeys', 'selectedRows', 'selectedRowsSyncWithData', 'showHeader', 'size', 'sortOptions', 'sorter', 'sticky', 'style', 'summaryRowContents', 'summaryRowFixed', 'tableLayout', 'title', 'titlePopoverInfo', 'virtual']
907
910
  self._valid_wildcard_attributes = ['data-', 'aria-']
908
- self.available_properties = ['id', 'aria-*', 'bordered', 'cellClickEvent', 'cellContextMenuClickEvent', 'cellDoubleClickEvent', 'cellUpdateOptimize', 'className', 'clickedContent', 'clickedCustom', 'columns', 'columnsFormatConstraint', 'conditionalStyleFuncs', 'containerId', 'currentData', 'customFormatFuncs', 'data', 'data-*', 'dataDeepCompare', 'defaultExpandedRowKeys', 'defaultFilteredValues', 'emptyContent', 'enableCellClickListenColumns', 'enableHoverListen', 'expandRowByClick', 'expandedRowKeyToContent', 'expandedRowKeys', 'expandedRowWidth', 'filter', 'filterOptions', 'footer', 'hiddenRowKeys', 'key', 'loading_state', 'locale', 'maxHeight', 'maxWidth', 'miniChartAnimation', 'miniChartHeight', 'mode', 'nClicksButton', 'nClicksCell', 'nClicksDropdownItem', 'nContextMenuClicksCell', 'nDoubleClicksCell', 'pagination', 'recentlyButtonClickedDataIndex', 'recentlyButtonClickedRow', 'recentlyCellClickColumn', 'recentlyCellClickRecord', 'recentlyCellDoubleClickColumn', 'recentlyCellDoubleClickRecord', 'recentlyChangedColumn', 'recentlyChangedRow', 'recentlyCheckedDataIndex', 'recentlyCheckedLabel', 'recentlyCheckedRow', 'recentlyCheckedStatus', 'recentlyClickedDropdownItemTitle', 'recentlyContextMenuClickColumn', 'recentlyContextMenuClickRecord', 'recentlyDropdownItemClickedDataIndex', 'recentlyDropdownItemClickedRow', 'recentlyMouseEnterColumnDataIndex', 'recentlyMouseEnterRow', 'recentlyMouseEnterRowKey', 'recentlySelectDataIndex', 'recentlySelectRow', 'recentlySelectValue', 'recentlySwitchDataIndex', 'recentlySwitchRow', 'recentlySwitchStatus', 'rowSelectionCheckStrictly', 'rowSelectionIgnoreRowKeys', 'rowSelectionType', 'rowSelectionWidth', 'selectedRowKeys', 'selectedRows', 'selectedRowsSyncWithData', 'showHeader', 'size', 'sortOptions', 'sorter', 'sticky', 'style', 'summaryRowContents', 'summaryRowFixed', 'tableLayout', 'title', 'titlePopoverInfo', 'virtual']
911
+ self.available_properties = ['id', 'aria-*', 'bordered', 'cellClickEvent', 'cellContextMenuClickEvent', 'cellDoubleClickEvent', 'cellUpdateOptimize', 'className', 'clickedContent', 'clickedCustom', 'columns', 'columnsFormatConstraint', 'conditionalStyleFuncs', 'containerId', 'currentData', 'customFormatFuncs', 'data', 'data-*', 'dataDeepCompare', 'defaultExpandedRowKeys', 'defaultFilteredValues', 'emptyContent', 'enableCellClickListenColumns', 'enableHoverListen', 'expandRowByClick', 'expandedRowKeyToContent', 'expandedRowKeys', 'expandedRowWidth', 'filter', 'filterOptions', 'footer', 'hiddenRowKeys', 'key', 'loading_state', 'locale', 'maxHeight', 'maxWidth', 'miniChartAnimation', 'miniChartHeight', 'mode', 'nClicksButton', 'nClicksCell', 'nClicksDropdownItem', 'nContextMenuClicksCell', 'nDoubleClicksCell', 'pagination', 'recentlyButtonClickedDataIndex', 'recentlyButtonClickedRow', 'recentlyCellClickColumn', 'recentlyCellClickRecord', 'recentlyCellDoubleClickColumn', 'recentlyCellDoubleClickRecord', 'recentlyChangedColumn', 'recentlyChangedRow', 'recentlyCheckedDataIndex', 'recentlyCheckedLabel', 'recentlyCheckedRow', 'recentlyCheckedStatus', 'recentlyClickedDropdownItemTitle', 'recentlyContextMenuClickColumn', 'recentlyContextMenuClickRecord', 'recentlyDropdownItemClickedDataIndex', 'recentlyDropdownItemClickedRow', 'recentlyMouseEnterColumnDataIndex', 'recentlyMouseEnterRow', 'recentlyMouseEnterRowKey', 'recentlySelectDataIndex', 'recentlySelectRow', 'recentlySelectValue', 'recentlySwitchDataIndex', 'recentlySwitchRow', 'recentlySwitchStatus', 'rowHoverable', 'rowSelectionCheckStrictly', 'rowSelectionIgnoreRowKeys', 'rowSelectionType', 'rowSelectionWidth', 'selectedRowKeys', 'selectedRows', 'selectedRowsSyncWithData', 'showHeader', 'size', 'sortOptions', 'sorter', 'sticky', 'style', 'summaryRowContents', 'summaryRowFixed', 'tableLayout', 'title', 'titlePopoverInfo', 'virtual']
909
912
  self.available_wildcard_properties = ['data-', 'aria-']
910
913
  _explicit_args = kwargs.pop('_explicit_args')
911
914
  _locals = locals()
@@ -5,32 +5,35 @@ from dash.development.base_component import Component, _explicitize_args
5
5
 
6
6
  class AntdTour(Component):
7
7
  """An AntdTour component.
8
-
8
+ 漫游式引导组件AntdTour
9
9
 
10
10
  Keyword arguments:
11
11
 
12
- - id (string; optional)
12
+ - id (string; optional):
13
+ 组件唯一id.
13
14
 
14
15
  - aria-* (string; optional):
15
16
  `aria-*`格式属性通配.
16
17
 
17
18
  - arrow (dict; default True):
18
- 配置各引导步骤弹框的箭头 默认:True.
19
+ 统一配置引导步骤弹框箭头 默认值:`True`.
19
20
 
20
21
  `arrow` is a boolean | dict with keys:
21
22
 
22
23
  - pointAtCenter (boolean; optional):
23
- 设置箭头是否指向元素中心.
24
+ 箭头是否指向目标中心.
24
25
 
25
- - className (string | dict; optional)
26
+ - className (string | dict; optional):
27
+ 当前组件css类名,支持[动态css](/advanced-classname).
26
28
 
27
29
  - current (number; optional):
28
- 设置或监听当前漫游式引导所处的步骤序号.
30
+ 监听或设置当前漫游式引导所在步骤序号.
29
31
 
30
32
  - data-* (string; optional):
31
33
  `data-*`格式属性通配.
32
34
 
33
- - key (string; optional)
35
+ - key (string; optional):
36
+ 对当前组件的`key`值进行更新,可实现强制重绘当前组件的效果.
34
37
 
35
38
  - loading_state (dict; optional)
36
39
 
@@ -45,35 +48,34 @@ Keyword arguments:
45
48
  - prop_name (string; optional):
46
49
  Holds which property is loading.
47
50
 
48
- - locale (a value equal to: 'zh-cn', 'en-us'; default 'zh-cn')
51
+ - locale (a value equal to: 'zh-cn', 'en-us'; default 'zh-cn'):
52
+ 组件文案语种,可选项有`'zh-cn'`、`'en-us'` 默认值:`'zh-cn'`.
49
53
 
50
54
  - mask (dict; default True):
51
- 为各引导步骤条设置蒙版层相关配置 默认:True.
55
+ 统一配置引导弹框蒙版 默认值:`True`.
52
56
 
53
57
  `mask` is a boolean | dict with keys:
54
58
 
55
59
  - color (string; optional):
56
- 设置蒙版层颜色.
60
+ 蒙版层颜色.
57
61
 
58
62
  - style (dict; optional):
59
- 设置蒙版层css样式.
63
+ 蒙版层css样式.
60
64
 
61
65
  - open (boolean; default False):
62
- 设置或监听当前漫游式引导的开关状态 默认:False.
66
+ 监听或设置当前漫游式引导的打开状态 默认值:`False`.
63
67
 
64
68
  - placement (a value equal to: 'center', 'left', 'leftTop', 'leftBottom', 'right', 'rightTop', 'rightBottom', 'top', 'topLeft', 'topRight', 'bottom', 'bottomLeft', 'bottomRight'; default 'bottom'):
65
- 设置各引导步骤弹框相对于目标元素的位置
66
- 可选的有'center'、'left'、'leftTop'、'leftBottom'、'right'、'rightTop'、'rightBottom'
67
- 、'top'、'topLeft'、'topRight'、'bottom'、'bottomLeft'、'bottomRight'
68
- 默认:'bottom'.
69
+ 统一配置引导步骤弹框相对于目标元素的展开方向,可选项有`'center'`、`'left'`、`'leftTop'`、`'leftBottom'`、`'right'`、`'rightTop'`、`'rightBottom'`、`'top'`、`'topLeft'`、`'topRight'`、`'bottom'`、`'bottomLeft'`、`'bottomRight'`
70
+ 默认值:`'bottom'`.
69
71
 
70
72
  - steps (list of dicts; optional):
71
- 用于定义各引导步骤,其中当targetId、targetSelector 默认:[].
73
+ 配置引导步骤.
72
74
 
73
75
  `steps` is a list of dicts with keys:
74
76
 
75
77
  - arrow (dict; optional):
76
- 配置当前引导步骤弹框的箭头 默认:True.
78
+ 配置当前步骤箭头 默认值:`True`.
77
79
 
78
80
  `arrow` is a boolean
79
81
 
@@ -81,73 +83,72 @@ Keyword arguments:
81
83
 
82
84
  - pointAtCenter (boolean; optional):
83
85
 
84
- 设置箭头是否指向元素中心.
86
+ 箭头是否指向目标中心.
85
87
 
86
88
  - cover (a list of or a singular dash component, string or number; optional):
87
- 设置当前引导步骤弹框的封面内容.
89
+ 组件型,当前步骤弹框的封面内容.
88
90
 
89
91
  - description (a list of or a singular dash component, string or number; optional):
90
- 设置当前引导步骤弹框的描述内容.
92
+ 组件型,当前步骤弹框的描述内容.
91
93
 
92
94
  - mask (dict; optional):
93
- 为当前引导步骤设置蒙版层相关配置 默认:True.
95
+ 配置当前步骤蒙版层 默认值:`True`.
94
96
 
95
97
  `mask` is a boolean | dict with keys:
96
98
 
97
99
  - color (string; optional):
98
100
 
99
- 设置蒙版层颜色.
101
+ 当前步骤蒙版层颜色.
100
102
 
101
103
  - style (dict; optional):
102
104
 
103
- 设置蒙版层css样式.
105
+ 当前步骤蒙版层css样式.
104
106
 
105
107
  - nextButtonProps (dict; optional):
106
- 设置当前引导步骤框下一步按钮的相关属性.
108
+ 配置当前步骤下一步按钮.
107
109
 
108
110
  `nextButtonProps` is a dict with keys:
109
111
 
110
112
  - children (a list of or a singular dash component, string or number; optional):
111
- 设置按钮子元素.
113
+ 组件型,按钮内嵌元素.
112
114
 
113
115
  - placement (a value equal to: 'center', 'left', 'leftTop', 'leftBottom', 'right', 'rightTop', 'rightBottom', 'top', 'topLeft', 'topRight', 'bottom', 'bottomLeft', 'bottomRight'; optional):
114
- 设置当前引导步骤弹框相对目标元素的位置
115
- 可选的有'center'、'left'、'leftTop'、'leftBottom'、'right'、'rightTop'、'rightBottom'
116
- 、'top'、'topLeft'、'topRight'、'bottom'、'bottomLeft'、'bottomRight'.
116
+ 当前步骤弹框展开方向,可选项有`'center'`、`'left'`、`'leftTop'`、`'leftBottom'`、`'right'`、`'rightTop'`、`'rightBottom'`、`'top'`、`'topLeft'`、`'topRight'`、`'bottom'`、`'bottomLeft'`、`'bottomRight'`.
117
117
 
118
118
  - prevButtonProps (dict; optional):
119
- 设置当前引导步骤框上一步按钮的相关属性.
119
+ 配置当前步骤下一步按钮.
120
120
 
121
121
  `prevButtonProps` is a dict with keys:
122
122
 
123
123
  - children (a list of or a singular dash component, string or number; optional):
124
- 设置按钮子元素.
124
+ 组件型,按钮内嵌元素.
125
125
 
126
126
  - targetId (string; optional):
127
- 设置当前引导步骤指向的目标元素id,优先级最高.
127
+ 当前步骤目标元素id,优先级高于`targetSelector`.
128
128
 
129
129
  - targetSelector (string; optional):
130
- 用于传入js代码字符串进行目标元素的定位,优先级低于targetId.
130
+ 定位当前步骤目标元素的javascript代码字符串.
131
131
 
132
132
  - title (a list of or a singular dash component, string or number; optional):
133
- 设置当前引导步骤弹框的标题.
133
+ 组件型,当前步骤弹框的标题内容.
134
134
 
135
135
  - type (a value equal to: 'default', 'primary'; optional):
136
- 设置当前引导步骤弹框类型,可选的有'default''primary' 默认:'default'.
136
+ 当前步骤弹框类型,可选项有`'default'`、`'primary'` 默认值:`'default'`.
137
137
 
138
- - style (dict; optional)
138
+ - style (dict; optional):
139
+ 当前组件css样式.
139
140
 
140
141
  - type (a value equal to: 'default', 'primary'; default 'default'):
141
- 为各引导步骤弹框设置类型,可选的有'default''primary' 默认:'default'.
142
+ 统一设置引导步骤弹框类型,可选项有`'default'`、`'primary'` 默认值:`'default'`.
142
143
 
143
144
  - zIndex (number; default 1001):
144
- 设置当前漫游式引导的z-index 默认:1001."""
145
+ 当前漫游式引导z-index 默认值:`1001`."""
145
146
  _children_props = ['steps[].cover', 'steps[].title', 'steps[].description', 'steps[].nextButtonProps.children', 'steps[].prevButtonProps.children']
146
147
  _base_nodes = ['children']
147
148
  _namespace = 'feffery_antd_components'
148
149
  _type = 'AntdTour'
149
150
  @_explicitize_args
150
- def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, locale=Component.UNDEFINED, steps=Component.UNDEFINED, arrow=Component.UNDEFINED, placement=Component.UNDEFINED, mask=Component.UNDEFINED, type=Component.UNDEFINED, open=Component.UNDEFINED, current=Component.UNDEFINED, zIndex=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
151
+ def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, locale=Component.UNDEFINED, steps=Component.UNDEFINED, arrow=Component.UNDEFINED, placement=Component.UNDEFINED, mask=Component.UNDEFINED, type=Component.UNDEFINED, open=Component.UNDEFINED, current=Component.UNDEFINED, zIndex=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
151
152
  self._prop_names = ['id', 'aria-*', 'arrow', 'className', 'current', 'data-*', 'key', 'loading_state', 'locale', 'mask', 'open', 'placement', 'steps', 'style', 'type', 'zIndex']
152
153
  self._valid_wildcard_attributes = ['data-', 'aria-']
153
154
  self.available_properties = ['id', 'aria-*', 'arrow', 'className', 'current', 'data-*', 'key', 'loading_state', 'locale', 'mask', 'open', 'placement', 'steps', 'style', 'type', 'zIndex']