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
|
@@ -2569,6 +2569,274 @@
|
|
|
2569
2569
|
}
|
|
2570
2570
|
}
|
|
2571
2571
|
},
|
|
2572
|
+
"src/lib/components/dataDisplay/AntdQRCode.react.js": {
|
|
2573
|
+
"description": "",
|
|
2574
|
+
"displayName": "AntdQRCode",
|
|
2575
|
+
"methods": [],
|
|
2576
|
+
"props": {
|
|
2577
|
+
"id": {
|
|
2578
|
+
"type": {
|
|
2579
|
+
"name": "string"
|
|
2580
|
+
},
|
|
2581
|
+
"required": false,
|
|
2582
|
+
"description": ""
|
|
2583
|
+
},
|
|
2584
|
+
"className": {
|
|
2585
|
+
"type": {
|
|
2586
|
+
"name": "union",
|
|
2587
|
+
"value": [
|
|
2588
|
+
{
|
|
2589
|
+
"name": "string"
|
|
2590
|
+
},
|
|
2591
|
+
{
|
|
2592
|
+
"name": "object"
|
|
2593
|
+
}
|
|
2594
|
+
]
|
|
2595
|
+
},
|
|
2596
|
+
"required": false,
|
|
2597
|
+
"description": ""
|
|
2598
|
+
},
|
|
2599
|
+
"style": {
|
|
2600
|
+
"type": {
|
|
2601
|
+
"name": "object"
|
|
2602
|
+
},
|
|
2603
|
+
"required": false,
|
|
2604
|
+
"description": ""
|
|
2605
|
+
},
|
|
2606
|
+
"key": {
|
|
2607
|
+
"type": {
|
|
2608
|
+
"name": "string"
|
|
2609
|
+
},
|
|
2610
|
+
"required": false,
|
|
2611
|
+
"description": ""
|
|
2612
|
+
},
|
|
2613
|
+
"locale": {
|
|
2614
|
+
"type": {
|
|
2615
|
+
"name": "enum",
|
|
2616
|
+
"value": [
|
|
2617
|
+
{
|
|
2618
|
+
"value": "'zh-cn'",
|
|
2619
|
+
"computed": false
|
|
2620
|
+
},
|
|
2621
|
+
{
|
|
2622
|
+
"value": "'en-us'",
|
|
2623
|
+
"computed": false
|
|
2624
|
+
}
|
|
2625
|
+
]
|
|
2626
|
+
},
|
|
2627
|
+
"required": false,
|
|
2628
|
+
"description": "",
|
|
2629
|
+
"defaultValue": {
|
|
2630
|
+
"value": "'zh-cn'",
|
|
2631
|
+
"computed": false
|
|
2632
|
+
}
|
|
2633
|
+
},
|
|
2634
|
+
"value": {
|
|
2635
|
+
"type": {
|
|
2636
|
+
"name": "string"
|
|
2637
|
+
},
|
|
2638
|
+
"required": false,
|
|
2639
|
+
"description": "\u7528\u4e8e\u8bbe\u7f6e\u626b\u63cf\u540e\u7684\u6587\u672c"
|
|
2640
|
+
},
|
|
2641
|
+
"type": {
|
|
2642
|
+
"type": {
|
|
2643
|
+
"name": "enum",
|
|
2644
|
+
"value": [
|
|
2645
|
+
{
|
|
2646
|
+
"value": "'canvas'",
|
|
2647
|
+
"computed": false
|
|
2648
|
+
},
|
|
2649
|
+
{
|
|
2650
|
+
"value": "'svg'",
|
|
2651
|
+
"computed": false
|
|
2652
|
+
}
|
|
2653
|
+
]
|
|
2654
|
+
},
|
|
2655
|
+
"required": false,
|
|
2656
|
+
"description": "\u8bbe\u7f6e\u6e32\u67d3\u7c7b\u578b\uff0c\u53ef\u9009\u7684\u6709'canvas'\u3001'primary'\r\n\u9ed8\u8ba4\uff1a'canvas'",
|
|
2657
|
+
"defaultValue": {
|
|
2658
|
+
"value": "'canvas'",
|
|
2659
|
+
"computed": false
|
|
2660
|
+
}
|
|
2661
|
+
},
|
|
2662
|
+
"icon": {
|
|
2663
|
+
"type": {
|
|
2664
|
+
"name": "string"
|
|
2665
|
+
},
|
|
2666
|
+
"required": false,
|
|
2667
|
+
"description": "\u7528\u4e8e\u8bbe\u7f6e\u4e8c\u7ef4\u7801\u4e2d\u56fe\u7247\u7684\u5730\u5740\uff08\u76ee\u524d\u53ea\u652f\u6301\u56fe\u7247\u5730\u5740\uff09"
|
|
2668
|
+
},
|
|
2669
|
+
"size": {
|
|
2670
|
+
"type": {
|
|
2671
|
+
"name": "number"
|
|
2672
|
+
},
|
|
2673
|
+
"required": false,
|
|
2674
|
+
"description": "\u8bbe\u7f6e\u4e8c\u7ef4\u7801\u50cf\u7d20\u5c3a\u5bf8\r\n\u9ed8\u8ba4\uff1a160",
|
|
2675
|
+
"defaultValue": {
|
|
2676
|
+
"value": "160",
|
|
2677
|
+
"computed": false
|
|
2678
|
+
}
|
|
2679
|
+
},
|
|
2680
|
+
"iconSize": {
|
|
2681
|
+
"type": {
|
|
2682
|
+
"name": "number"
|
|
2683
|
+
},
|
|
2684
|
+
"required": false,
|
|
2685
|
+
"description": "\u8bbe\u7f6e\u4e8c\u7ef4\u7801\u4e2d\u56fe\u7247\u7684\u5927\u5c0f\r\n\u9ed8\u8ba4\uff1a40",
|
|
2686
|
+
"defaultValue": {
|
|
2687
|
+
"value": "40",
|
|
2688
|
+
"computed": false
|
|
2689
|
+
}
|
|
2690
|
+
},
|
|
2691
|
+
"color": {
|
|
2692
|
+
"type": {
|
|
2693
|
+
"name": "string"
|
|
2694
|
+
},
|
|
2695
|
+
"required": false,
|
|
2696
|
+
"description": "\u8bbe\u7f6e\u4e8c\u7ef4\u7801\u989c\u8272\r\n\u9ed8\u8ba4\uff1a'#000'",
|
|
2697
|
+
"defaultValue": {
|
|
2698
|
+
"value": "'#000'",
|
|
2699
|
+
"computed": false
|
|
2700
|
+
}
|
|
2701
|
+
},
|
|
2702
|
+
"bgColor": {
|
|
2703
|
+
"type": {
|
|
2704
|
+
"name": "string"
|
|
2705
|
+
},
|
|
2706
|
+
"required": false,
|
|
2707
|
+
"description": "\u8bbe\u7f6e\u4e8c\u7ef4\u7801\u80cc\u666f\u989c\u8272\r\n\u9ed8\u8ba4\uff1a'transparent'",
|
|
2708
|
+
"defaultValue": {
|
|
2709
|
+
"value": "'transparent'",
|
|
2710
|
+
"computed": false
|
|
2711
|
+
}
|
|
2712
|
+
},
|
|
2713
|
+
"bordered": {
|
|
2714
|
+
"type": {
|
|
2715
|
+
"name": "bool"
|
|
2716
|
+
},
|
|
2717
|
+
"required": false,
|
|
2718
|
+
"description": "\u8bbe\u7f6e\u4e8c\u7ef4\u7801\u662f\u5426\u6709\u8fb9\u6846\r\n\u9ed8\u8ba4\uff1atrue",
|
|
2719
|
+
"defaultValue": {
|
|
2720
|
+
"value": "true",
|
|
2721
|
+
"computed": false
|
|
2722
|
+
}
|
|
2723
|
+
},
|
|
2724
|
+
"errorLevel": {
|
|
2725
|
+
"type": {
|
|
2726
|
+
"name": "enum",
|
|
2727
|
+
"value": [
|
|
2728
|
+
{
|
|
2729
|
+
"value": "'L'",
|
|
2730
|
+
"computed": false
|
|
2731
|
+
},
|
|
2732
|
+
{
|
|
2733
|
+
"value": "'M'",
|
|
2734
|
+
"computed": false
|
|
2735
|
+
},
|
|
2736
|
+
{
|
|
2737
|
+
"value": "'Q'",
|
|
2738
|
+
"computed": false
|
|
2739
|
+
},
|
|
2740
|
+
{
|
|
2741
|
+
"value": "'H'",
|
|
2742
|
+
"computed": false
|
|
2743
|
+
}
|
|
2744
|
+
]
|
|
2745
|
+
},
|
|
2746
|
+
"required": false,
|
|
2747
|
+
"description": "\u8bbe\u7f6e\u4e8c\u7ef4\u7801\u7ea0\u9519\u7b49\u7ea7\uff0c\u53ef\u9009\u7684\u6709'L'\u3001'M'\u3001'Q'\u3001'H'\r\n\u9ed8\u8ba4\uff1a'M'",
|
|
2748
|
+
"defaultValue": {
|
|
2749
|
+
"value": "'M'",
|
|
2750
|
+
"computed": false
|
|
2751
|
+
}
|
|
2752
|
+
},
|
|
2753
|
+
"status": {
|
|
2754
|
+
"type": {
|
|
2755
|
+
"name": "enum",
|
|
2756
|
+
"value": [
|
|
2757
|
+
{
|
|
2758
|
+
"value": "'active'",
|
|
2759
|
+
"computed": false
|
|
2760
|
+
},
|
|
2761
|
+
{
|
|
2762
|
+
"value": "'expired'",
|
|
2763
|
+
"computed": false
|
|
2764
|
+
},
|
|
2765
|
+
{
|
|
2766
|
+
"value": "'loading'",
|
|
2767
|
+
"computed": false
|
|
2768
|
+
}
|
|
2769
|
+
]
|
|
2770
|
+
},
|
|
2771
|
+
"required": false,
|
|
2772
|
+
"description": "\u8bbe\u7f6e\u4e8c\u7ef4\u7801\u72b6\u6001\uff0c\u53ef\u9009\u7684\u6709'active'\u3001'expired'\u3001'loading'\r\n\u9ed8\u8ba4\uff1a'active'",
|
|
2773
|
+
"defaultValue": {
|
|
2774
|
+
"value": "'active'",
|
|
2775
|
+
"computed": false
|
|
2776
|
+
}
|
|
2777
|
+
},
|
|
2778
|
+
"expires": {
|
|
2779
|
+
"type": {
|
|
2780
|
+
"name": "number"
|
|
2781
|
+
},
|
|
2782
|
+
"required": false,
|
|
2783
|
+
"description": "\u8bbe\u7f6e\u5f53\u524d\u4e8c\u7ef4\u7801\u8fc7\u671f\u65f6\u95f4\uff0c\u5355\u4f4d\uff1a\u79d2\uff0c\u5230\u671f\u540e\u4e8c\u7ef4\u7801\u72b6\u6001\u5c06\u4f1a\u88ab\u5f3a\u5236\u66f4\u65b0\u4e3a'expired'"
|
|
2784
|
+
},
|
|
2785
|
+
"autoSpin": {
|
|
2786
|
+
"type": {
|
|
2787
|
+
"name": "bool"
|
|
2788
|
+
},
|
|
2789
|
+
"required": false,
|
|
2790
|
+
"description": "\u662f\u5426\u5728value\u5904\u4e8e\u56de\u8c03\u66f4\u65b0\u4e2d\u65f6\uff0c\u81ea\u52a8\u5207\u6362\u5230loading\u72b6\u6001\r\n\u9ed8\u8ba4\uff1afalse",
|
|
2791
|
+
"defaultValue": {
|
|
2792
|
+
"value": "false",
|
|
2793
|
+
"computed": false
|
|
2794
|
+
}
|
|
2795
|
+
},
|
|
2796
|
+
"refreshClicks": {
|
|
2797
|
+
"type": {
|
|
2798
|
+
"name": "number"
|
|
2799
|
+
},
|
|
2800
|
+
"required": false,
|
|
2801
|
+
"description": "\u76d1\u542c\u5f53\u524d\"\u70b9\u51fb\u5237\u65b0\"\u6309\u94ae\u7d2f\u8ba1\u70b9\u51fb\u6b21\u6570\uff0c\u4ec5\u5728status\u4e3a'expired'\u65f6\u6709\u610f\u4e49",
|
|
2802
|
+
"defaultValue": {
|
|
2803
|
+
"value": "0",
|
|
2804
|
+
"computed": false
|
|
2805
|
+
}
|
|
2806
|
+
},
|
|
2807
|
+
"loading_state": {
|
|
2808
|
+
"type": {
|
|
2809
|
+
"name": "shape",
|
|
2810
|
+
"value": {
|
|
2811
|
+
"is_loading": {
|
|
2812
|
+
"name": "bool",
|
|
2813
|
+
"description": "Determines if the component is loading or not",
|
|
2814
|
+
"required": false
|
|
2815
|
+
},
|
|
2816
|
+
"prop_name": {
|
|
2817
|
+
"name": "string",
|
|
2818
|
+
"description": "Holds which property is loading",
|
|
2819
|
+
"required": false
|
|
2820
|
+
},
|
|
2821
|
+
"component_name": {
|
|
2822
|
+
"name": "string",
|
|
2823
|
+
"description": "Holds the name of the component that is loading",
|
|
2824
|
+
"required": false
|
|
2825
|
+
}
|
|
2826
|
+
}
|
|
2827
|
+
},
|
|
2828
|
+
"required": false,
|
|
2829
|
+
"description": ""
|
|
2830
|
+
},
|
|
2831
|
+
"setProps": {
|
|
2832
|
+
"type": {
|
|
2833
|
+
"name": "func"
|
|
2834
|
+
},
|
|
2835
|
+
"required": false,
|
|
2836
|
+
"description": "Dash-assigned callback that should be called to report property changes\r\nto Dash, to make them available for callbacks."
|
|
2837
|
+
}
|
|
2838
|
+
}
|
|
2839
|
+
},
|
|
2572
2840
|
"src/lib/components/dataDisplay/AntdRibbon.react.js": {
|
|
2573
2841
|
"description": "",
|
|
2574
2842
|
"displayName": "AntdRibbon",
|
|
@@ -26553,6 +26821,30 @@
|
|
|
26553
26821
|
"required": false,
|
|
26554
26822
|
"description": ""
|
|
26555
26823
|
},
|
|
26824
|
+
"selectable": {
|
|
26825
|
+
"type": {
|
|
26826
|
+
"name": "bool"
|
|
26827
|
+
},
|
|
26828
|
+
"required": false,
|
|
26829
|
+
"description": "\u8bbe\u7f6e\u83dc\u5355\u9879\u662f\u5426\u53ef\u9009\u4e2d\r\n\u9ed8\u8ba4\uff1afalse"
|
|
26830
|
+
},
|
|
26831
|
+
"multiple": {
|
|
26832
|
+
"type": {
|
|
26833
|
+
"name": "bool"
|
|
26834
|
+
},
|
|
26835
|
+
"required": false,
|
|
26836
|
+
"description": "\u8bbe\u7f6e\u83dc\u5355\u662f\u5426\u5141\u8bb8\u591a\u9009\r\n\u9ed8\u8ba4\uff1afalse"
|
|
26837
|
+
},
|
|
26838
|
+
"selectedKeys": {
|
|
26839
|
+
"type": {
|
|
26840
|
+
"name": "arrayOf",
|
|
26841
|
+
"value": {
|
|
26842
|
+
"name": "string"
|
|
26843
|
+
}
|
|
26844
|
+
},
|
|
26845
|
+
"required": false,
|
|
26846
|
+
"description": "\u8bbe\u7f6e\u6216\u76d1\u542c\u5f53\u524d\u5df2\u9009\u4e2d\u83dc\u5355\u9879key\u503c\u6570\u7ec4"
|
|
26847
|
+
},
|
|
26556
26848
|
"arrow": {
|
|
26557
26849
|
"type": {
|
|
26558
26850
|
"name": "bool"
|
|
@@ -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",
|