feffery_antd_components 0.3.0-a0 → 0.3.0-a2
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/NAMESPACE +1 -0
- package/Project.toml +1 -1
- package/build/lib/feffery_antd_components/AntdDropdown.py +12 -3
- package/build/lib/feffery_antd_components/AntdQRCode.py +88 -0
- package/build/lib/feffery_antd_components/_imports_.py +2 -0
- package/build/lib/feffery_antd_components/async-antd_table.js +1 -1
- package/build/lib/feffery_antd_components/async-data_display.js +4 -4
- package/build/lib/feffery_antd_components/async-data_entry.js +25 -13
- package/build/lib/feffery_antd_components/async-upload.js +2 -2
- package/build/lib/feffery_antd_components/feffery_antd_components.min.js +34 -46
- package/build/lib/feffery_antd_components/metadata.json +292 -0
- package/build/lib/feffery_antd_components/package-info.json +1 -1
- package/feffery_antd_components/AntdDropdown.py +12 -3
- package/feffery_antd_components/AntdQRCode.py +88 -0
- package/feffery_antd_components/_imports_.py +2 -0
- package/feffery_antd_components/async-antd_table.js +1 -1
- package/feffery_antd_components/async-data_display.js +4 -4
- package/feffery_antd_components/async-data_entry.js +25 -13
- package/feffery_antd_components/async-upload.js +2 -2
- package/feffery_antd_components/feffery_antd_components.min.js +34 -46
- package/feffery_antd_components/metadata.json +292 -0
- package/feffery_antd_components/package-info.json +1 -1
- package/package.json +1 -1
- package/src/jl/'feffery'_antddropdown.jl +6 -1
- package/src/jl/'feffery'_antdqrcode.jl +49 -0
- package/src/lib/components/dataDisplay/AntdQRCode.react.js +148 -0
- package/src/lib/components/dataEntry/AntdColorPicker.react.js +10 -84
- package/src/lib/components/navigation/AntdDropdown.react.js +72 -55
- package/src/lib/fragments/dataDisplay/AntdQRCode.react.js +80 -0
- package/src/lib/fragments/dataEntry/AntdColorPicker.react.js +95 -0
- package/src/lib/index.js +3 -1
- package/usage.py +37 -14
package/DESCRIPTION
CHANGED
package/NAMESPACE
CHANGED
package/Project.toml
CHANGED
|
@@ -82,6 +82,9 @@ Keyword arguments:
|
|
|
82
82
|
|
|
83
83
|
- title (string; optional)
|
|
84
84
|
|
|
85
|
+
- multiple (boolean; optional):
|
|
86
|
+
设置菜单是否允许多选 默认:False.
|
|
87
|
+
|
|
85
88
|
- nClicks (number; default 0)
|
|
86
89
|
|
|
87
90
|
- overlayClassName (string | dict; optional)
|
|
@@ -92,6 +95,12 @@ Keyword arguments:
|
|
|
92
95
|
|
|
93
96
|
- popupContainer (a value equal to: 'parent', 'body'; default 'body')
|
|
94
97
|
|
|
98
|
+
- selectable (boolean; optional):
|
|
99
|
+
设置菜单项是否可选中 默认:False.
|
|
100
|
+
|
|
101
|
+
- selectedKeys (list of strings; optional):
|
|
102
|
+
设置或监听当前已选中菜单项key值数组.
|
|
103
|
+
|
|
95
104
|
- style (dict; optional)
|
|
96
105
|
|
|
97
106
|
- title (string; optional)
|
|
@@ -104,10 +113,10 @@ Keyword arguments:
|
|
|
104
113
|
_namespace = 'feffery_antd_components'
|
|
105
114
|
_type = 'AntdDropdown'
|
|
106
115
|
@_explicitize_args
|
|
107
|
-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, title=Component.UNDEFINED, buttonMode=Component.UNDEFINED, buttonProps=Component.UNDEFINED, freePosition=Component.UNDEFINED, freePositionStyle=Component.UNDEFINED, freePositionClassName=Component.UNDEFINED, clickedKey=Component.UNDEFINED, nClicks=Component.UNDEFINED, menuItems=Component.UNDEFINED, arrow=Component.UNDEFINED, disabled=Component.UNDEFINED, overlayClassName=Component.UNDEFINED, overlayStyle=Component.UNDEFINED, placement=Component.UNDEFINED, trigger=Component.UNDEFINED, autoAdjustOverflow=Component.UNDEFINED, visible=Component.UNDEFINED, popupContainer=Component.UNDEFINED, batchPropsNames=Component.UNDEFINED, batchPropsValues=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
108
|
-
self._prop_names = ['id', 'arrow', 'autoAdjustOverflow', 'batchPropsNames', 'batchPropsValues', 'buttonMode', 'buttonProps', 'className', 'clickedKey', 'disabled', 'freePosition', 'freePositionClassName', 'freePositionStyle', 'key', 'loading_state', 'menuItems', 'nClicks', 'overlayClassName', 'overlayStyle', 'placement', 'popupContainer', 'style', 'title', 'trigger', 'visible']
|
|
116
|
+
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, title=Component.UNDEFINED, buttonMode=Component.UNDEFINED, buttonProps=Component.UNDEFINED, freePosition=Component.UNDEFINED, freePositionStyle=Component.UNDEFINED, freePositionClassName=Component.UNDEFINED, clickedKey=Component.UNDEFINED, nClicks=Component.UNDEFINED, menuItems=Component.UNDEFINED, selectable=Component.UNDEFINED, multiple=Component.UNDEFINED, selectedKeys=Component.UNDEFINED, arrow=Component.UNDEFINED, disabled=Component.UNDEFINED, overlayClassName=Component.UNDEFINED, overlayStyle=Component.UNDEFINED, placement=Component.UNDEFINED, trigger=Component.UNDEFINED, autoAdjustOverflow=Component.UNDEFINED, visible=Component.UNDEFINED, popupContainer=Component.UNDEFINED, batchPropsNames=Component.UNDEFINED, batchPropsValues=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
117
|
+
self._prop_names = ['id', 'arrow', 'autoAdjustOverflow', 'batchPropsNames', 'batchPropsValues', 'buttonMode', 'buttonProps', 'className', 'clickedKey', 'disabled', 'freePosition', 'freePositionClassName', 'freePositionStyle', 'key', 'loading_state', 'menuItems', 'multiple', 'nClicks', 'overlayClassName', 'overlayStyle', 'placement', 'popupContainer', 'selectable', 'selectedKeys', 'style', 'title', 'trigger', 'visible']
|
|
109
118
|
self._valid_wildcard_attributes = []
|
|
110
|
-
self.available_properties = ['id', 'arrow', 'autoAdjustOverflow', 'batchPropsNames', 'batchPropsValues', 'buttonMode', 'buttonProps', 'className', 'clickedKey', 'disabled', 'freePosition', 'freePositionClassName', 'freePositionStyle', 'key', 'loading_state', 'menuItems', 'nClicks', 'overlayClassName', 'overlayStyle', 'placement', 'popupContainer', 'style', 'title', 'trigger', 'visible']
|
|
119
|
+
self.available_properties = ['id', 'arrow', 'autoAdjustOverflow', 'batchPropsNames', 'batchPropsValues', 'buttonMode', 'buttonProps', 'className', 'clickedKey', 'disabled', 'freePosition', 'freePositionClassName', 'freePositionStyle', 'key', 'loading_state', 'menuItems', 'multiple', 'nClicks', 'overlayClassName', 'overlayStyle', 'placement', 'popupContainer', 'selectable', 'selectedKeys', 'style', 'title', 'trigger', 'visible']
|
|
111
120
|
self.available_wildcard_properties = []
|
|
112
121
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
113
122
|
_locals = locals()
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AntdQRCode(Component):
|
|
7
|
+
"""An AntdQRCode component.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Keyword arguments:
|
|
11
|
+
|
|
12
|
+
- id (string; optional)
|
|
13
|
+
|
|
14
|
+
- autoSpin (boolean; default False):
|
|
15
|
+
是否在value处于回调更新中时,自动切换到loading状态 默认:False.
|
|
16
|
+
|
|
17
|
+
- bgColor (string; default 'transparent'):
|
|
18
|
+
设置二维码背景颜色 默认:'transparent'.
|
|
19
|
+
|
|
20
|
+
- bordered (boolean; default True):
|
|
21
|
+
设置二维码是否有边框 默认:True.
|
|
22
|
+
|
|
23
|
+
- className (string | dict; optional)
|
|
24
|
+
|
|
25
|
+
- color (string; default '#000'):
|
|
26
|
+
设置二维码颜色 默认:'#000'.
|
|
27
|
+
|
|
28
|
+
- errorLevel (a value equal to: 'L', 'M', 'Q', 'H'; default 'M'):
|
|
29
|
+
设置二维码纠错等级,可选的有'L'、'M'、'Q'、'H' 默认:'M'.
|
|
30
|
+
|
|
31
|
+
- expires (number; optional):
|
|
32
|
+
设置当前二维码过期时间,单位:秒,到期后二维码状态将会被强制更新为'expired'.
|
|
33
|
+
|
|
34
|
+
- icon (string; optional):
|
|
35
|
+
用于设置二维码中图片的地址(目前只支持图片地址).
|
|
36
|
+
|
|
37
|
+
- iconSize (number; default 40):
|
|
38
|
+
设置二维码中图片的大小 默认:40.
|
|
39
|
+
|
|
40
|
+
- key (string; optional)
|
|
41
|
+
|
|
42
|
+
- loading_state (dict; optional)
|
|
43
|
+
|
|
44
|
+
`loading_state` is a dict with keys:
|
|
45
|
+
|
|
46
|
+
- component_name (string; optional):
|
|
47
|
+
Holds the name of the component that is loading.
|
|
48
|
+
|
|
49
|
+
- is_loading (boolean; optional):
|
|
50
|
+
Determines if the component is loading or not.
|
|
51
|
+
|
|
52
|
+
- prop_name (string; optional):
|
|
53
|
+
Holds which property is loading.
|
|
54
|
+
|
|
55
|
+
- locale (a value equal to: 'zh-cn', 'en-us'; default 'zh-cn')
|
|
56
|
+
|
|
57
|
+
- refreshClicks (number; default 0):
|
|
58
|
+
监听当前\"点击刷新\"按钮累计点击次数,仅在status为'expired'时有意义.
|
|
59
|
+
|
|
60
|
+
- size (number; default 160):
|
|
61
|
+
设置二维码像素尺寸 默认:160.
|
|
62
|
+
|
|
63
|
+
- status (a value equal to: 'active', 'expired', 'loading'; default 'active'):
|
|
64
|
+
设置二维码状态,可选的有'active'、'expired'、'loading' 默认:'active'.
|
|
65
|
+
|
|
66
|
+
- style (dict; optional)
|
|
67
|
+
|
|
68
|
+
- type (a value equal to: 'canvas', 'svg'; default 'canvas'):
|
|
69
|
+
设置渲染类型,可选的有'canvas'、'primary' 默认:'canvas'.
|
|
70
|
+
|
|
71
|
+
- value (string; optional):
|
|
72
|
+
用于设置扫描后的文本."""
|
|
73
|
+
_children_props = []
|
|
74
|
+
_base_nodes = ['children']
|
|
75
|
+
_namespace = 'feffery_antd_components'
|
|
76
|
+
_type = 'AntdQRCode'
|
|
77
|
+
@_explicitize_args
|
|
78
|
+
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, locale=Component.UNDEFINED, value=Component.UNDEFINED, type=Component.UNDEFINED, icon=Component.UNDEFINED, size=Component.UNDEFINED, iconSize=Component.UNDEFINED, color=Component.UNDEFINED, bgColor=Component.UNDEFINED, bordered=Component.UNDEFINED, errorLevel=Component.UNDEFINED, status=Component.UNDEFINED, expires=Component.UNDEFINED, autoSpin=Component.UNDEFINED, refreshClicks=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
79
|
+
self._prop_names = ['id', 'autoSpin', 'bgColor', 'bordered', 'className', 'color', 'errorLevel', 'expires', 'icon', 'iconSize', 'key', 'loading_state', 'locale', 'refreshClicks', 'size', 'status', 'style', 'type', 'value']
|
|
80
|
+
self._valid_wildcard_attributes = []
|
|
81
|
+
self.available_properties = ['id', 'autoSpin', 'bgColor', 'bordered', 'className', 'color', 'errorLevel', 'expires', 'icon', 'iconSize', 'key', 'loading_state', 'locale', 'refreshClicks', 'size', 'status', 'style', 'type', 'value']
|
|
82
|
+
self.available_wildcard_properties = []
|
|
83
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
84
|
+
_locals = locals()
|
|
85
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
86
|
+
args = {k: _locals[k] for k in _explicit_args}
|
|
87
|
+
|
|
88
|
+
super(AntdQRCode, self).__init__(**args)
|
|
@@ -9,6 +9,7 @@ from .AntdCountdown import AntdCountdown
|
|
|
9
9
|
from .AntdEmpty import AntdEmpty
|
|
10
10
|
from .AntdImage import AntdImage
|
|
11
11
|
from .AntdPopover import AntdPopover
|
|
12
|
+
from .AntdQRCode import AntdQRCode
|
|
12
13
|
from .AntdRibbon import AntdRibbon
|
|
13
14
|
from .AntdSegmented import AntdSegmented
|
|
14
15
|
from .AntdSpoiler import AntdSpoiler
|
|
@@ -113,6 +114,7 @@ __all__ = [
|
|
|
113
114
|
"AntdEmpty",
|
|
114
115
|
"AntdImage",
|
|
115
116
|
"AntdPopover",
|
|
117
|
+
"AntdQRCode",
|
|
116
118
|
"AntdRibbon",
|
|
117
119
|
"AntdSegmented",
|
|
118
120
|
"AntdSpoiler",
|