feffery_antd_components 0.4.5 → 0.4.6

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feffery_antd_components",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "Plotly Dash components based on Ant Design",
5
5
  "repository": {
6
6
  "type": "git",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feffery_antd_components",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "Plotly Dash components based on Ant Design",
5
5
  "repository": {
6
6
  "type": "git",
package/setup.py CHANGED
@@ -23,7 +23,7 @@ setup(
23
23
  long_description=long_description,
24
24
  long_description_content_type='text/markdown',
25
25
  install_requires=[
26
- 'dash>=3.3.0',
26
+ 'dash>=3.4.0',
27
27
  ],
28
28
  classifiers=[
29
29
  'Framework :: Dash',
@@ -453,7 +453,7 @@ const AntdTable = (props) => {
453
453
  }
454
454
  },
455
455
  render: (text) =>
456
- searchedColumn === dataIndex ? (
456
+ searchedColumn === dataIndex && isString(text) ? (
457
457
  <Highlighter
458
458
  highlightStyle={{ backgroundColor: '#ffc069', padding: 0 }}
459
459
  searchWords={[searchText]}
@@ -2739,6 +2739,23 @@ const AntdTable = (props) => {
2739
2739
  }
2740
2740
  }
2741
2741
 
2742
+ // 补充单元格鼠标移入监听事件
2743
+ returnValue = {
2744
+ ...returnValue,
2745
+ onMouseEnter: (event) => {
2746
+ setProps({
2747
+ recentlyMouseEnterColumnDataIndex:
2748
+ item.dataIndex,
2749
+ recentlyMouseEnterRowKey: record.key,
2750
+ // 忽略组件型字段键值对
2751
+ recentlyMouseEnterRow: omitBy(
2752
+ record,
2753
+ (value) => value?.$$typeof
2754
+ ),
2755
+ });
2756
+ },
2757
+ };
2758
+
2742
2759
  return returnValue;
2743
2760
  },
2744
2761
  },
@@ -1,8 +0,0 @@
1
- # pytest cache directory #
2
-
3
- This directory contains data from the pytest's cache plugin,
4
- which provides the `--lf` and `--ff` options, as well as the `cache` fixture.
5
-
6
- **Do not** commit this to version control.
7
-
8
- See [the docs](https://docs.pytest.org/en/stable/how-to/cache.html) for more information.