feffery_antd_components 0.3.0-b3 → 0.3.0-b4

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 (37) hide show
  1. package/DESCRIPTION +1 -1
  2. package/Project.toml +1 -1
  3. package/README-en_US.md +4 -1
  4. package/README.md +4 -1
  5. package/build/lib/feffery_antd_components/AntdSelect.py +6 -3
  6. package/build/lib/feffery_antd_components/AntdTree.py +1 -1
  7. package/build/lib/feffery_antd_components/__init__.py +7 -1
  8. package/build/lib/feffery_antd_components/async-antd_table.js +3 -3
  9. package/build/lib/feffery_antd_components/async-data_display.js +3 -3
  10. package/build/lib/feffery_antd_components/async-data_entry.js +14 -38
  11. package/build/lib/feffery_antd_components/async-fac-shared.js +25 -0
  12. package/build/lib/feffery_antd_components/async-upload.js +6 -6
  13. package/build/lib/feffery_antd_components/feffery_antd_components.min.js +36 -36
  14. package/build/lib/feffery_antd_components/metadata.json +23 -1
  15. package/build/lib/feffery_antd_components/package-info.json +92 -92
  16. package/feffery_antd_components/AntdSelect.py +6 -3
  17. package/feffery_antd_components/AntdTree.py +1 -1
  18. package/feffery_antd_components/__init__.py +7 -1
  19. package/feffery_antd_components/async-antd_table.js +3 -3
  20. package/feffery_antd_components/async-data_display.js +3 -3
  21. package/feffery_antd_components/async-data_entry.js +14 -38
  22. package/feffery_antd_components/async-fac-shared.js +25 -0
  23. package/feffery_antd_components/async-upload.js +6 -6
  24. package/feffery_antd_components/feffery_antd_components.min.js +36 -36
  25. package/feffery_antd_components/metadata.json +23 -1
  26. package/feffery_antd_components/package-info.json +92 -92
  27. package/package.json +92 -92
  28. package/src/jl/'feffery'_antdselect.jl +3 -1
  29. package/src/jl/'feffery'_antdtree.jl +1 -1
  30. package/src/lib/components/dataDisplay/AntdTag.react.js +9 -36
  31. package/src/lib/components/dataDisplay/AntdTree.react.js +5 -2
  32. package/src/lib/components/dataEntry/AntdSelect.react.js +7 -0
  33. package/src/lib/fragments/dataDisplay/AntdTag.react.js +46 -0
  34. package/src/lib/fragments/dataDisplay/AntdTree.react.js +8 -3
  35. package/src/lib/fragments/dataEntry/AntdSelect.react.js +2 -0
  36. package/usage.py +44 -24
  37. package/webpack.config.js +6 -0
package/usage.py CHANGED
@@ -1,35 +1,56 @@
1
1
  import dash
2
2
  from dash import html
3
3
  import feffery_antd_components as fac
4
+ from dash.dependencies import Input, Output
4
5
 
5
6
  app = dash.Dash(__name__)
6
7
 
7
8
  app.layout = html.Div(
8
9
  [
9
- fac.AntdSpace(
10
- [
11
- fac.AntdImage(
12
- src='https://c4.staticflickr.com/9/8887/28897124891_98c4fdd82b_b.jpg',
13
- preview={
14
- 'mask': '点我预览'
15
- },
16
- width=300
17
- ),
18
- fac.AntdImageGroup(
19
- fac.AntdSpace(
20
- [
21
- fac.AntdImage(
22
- src='https://c4.staticflickr.com/9/8887/28897124891_98c4fdd82b_b.jpg',
23
- preview={
24
- 'mask': '点我预览'
25
- },
26
- width=150
27
- )
28
- ] * 3
29
- )
30
- )
10
+ fac.AntdTree(
11
+ id='tree-search-demo',
12
+ treeData=[
13
+ {
14
+ 'title': '四川省',
15
+ 'key': '四川省',
16
+ 'children': [
17
+ {
18
+ 'title': '成都市',
19
+ 'key': '成都市'
20
+ },
21
+ {
22
+ 'title': '广安市',
23
+ 'key': '广安市'
24
+ }
25
+ ]
26
+ },
27
+ {
28
+ 'title': '重庆市',
29
+ 'key': '重庆市',
30
+ 'children': [
31
+ {
32
+ 'title': '渝中区',
33
+ 'key': '渝中区',
34
+ 'children': [
35
+ {
36
+ 'title': '解放碑街道',
37
+ 'key': '解放碑街道'
38
+ }
39
+ ]
40
+ },
41
+ {
42
+ 'title': '渝北区',
43
+ 'key': '渝北区'
44
+ }
45
+ ]
46
+ }
31
47
  ],
32
- direction='vertical'
48
+ defaultExpandAll=True,
49
+ highlightStyle={
50
+ 'background': '#ffffb8',
51
+ 'padding': 0
52
+ },
53
+ searchKeyword=['省', '市', '区', '街道']
33
54
  )
34
55
  ],
35
56
  style={
@@ -37,6 +58,5 @@ app.layout = html.Div(
37
58
  }
38
59
  )
39
60
 
40
-
41
61
  if __name__ == '__main__':
42
62
  app.run(debug=True)
package/webpack.config.js CHANGED
@@ -139,6 +139,12 @@ module.exports = (env, argv) => {
139
139
  name(module, chunks, cacheGroupKey) {
140
140
  return `${cacheGroupKey}-${chunks[0].name}`;
141
141
  }
142
+ },
143
+ shared: {
144
+ chunks: 'all',
145
+ minSize: 0,
146
+ minChunks: 2,
147
+ name: 'async-fac-shared'
142
148
  }
143
149
  }
144
150
  }