@kdcloudjs/kdesign 1.8.53-stable.3 → 1.8.53-stable.4

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.
@@ -17,6 +17,7 @@ export interface ITabPaneProps {
17
17
  id?: string | number;
18
18
  activeKey?: string | number;
19
19
  children?: any;
20
+ customTitleProps?: any;
20
21
  onChange?: TabChangeEventHandler;
21
22
  }
22
23
  declare const TabPane: React.FC<ITabPaneProps>;
@@ -21,6 +21,7 @@ var TabPane = function TabPane(props) {
21
21
  className = props.className,
22
22
  disabled = props.disabled,
23
23
  operations = props.operations,
24
+ customTitleProps = props.customTitleProps,
24
25
  onChange = props.onChange;
25
26
  var tabPaneProps = _extends({}, props);
26
27
  if (context) {
@@ -66,18 +67,18 @@ var TabPane = function TabPane(props) {
66
67
  ref: tabPaneRef,
67
68
  className: tabPaneBoxClasses,
68
69
  onClick: handleClick
69
- }, React.createElement("span", {
70
+ }, React.createElement("span", _extends({
70
71
  className: tabPaneTextClasses
71
- }, tab));
72
+ }, customTitleProps), tab));
72
73
  }
73
74
  return React.createElement("span", {
74
75
  className: tabPaneBoxClasses,
75
76
  onContextMenu: handleContextMenu
76
- }, React.createElement("span", {
77
+ }, React.createElement("span", _extends({
77
78
  ref: tabPaneRef,
78
79
  className: tabPaneTextClasses,
79
80
  onClick: handleClick
80
- }, tab), React.createElement("span", {
81
+ }, customTitleProps), tab), React.createElement("span", {
81
82
  className: operationsClasses
82
83
  }, renderOperations()));
83
84
  };
@@ -17,6 +17,7 @@ export interface ITabPaneProps {
17
17
  id?: string | number;
18
18
  activeKey?: string | number;
19
19
  children?: any;
20
+ customTitleProps?: any;
20
21
  onChange?: TabChangeEventHandler;
21
22
  }
22
23
  declare const TabPane: React.FC<ITabPaneProps>;
@@ -34,6 +34,7 @@ var TabPane = function TabPane(props) {
34
34
  className = props.className,
35
35
  disabled = props.disabled,
36
36
  operations = props.operations,
37
+ customTitleProps = props.customTitleProps,
37
38
  onChange = props.onChange;
38
39
  var tabPaneProps = (0, _extends2.default)({}, props);
39
40
  if (context) {
@@ -79,18 +80,18 @@ var TabPane = function TabPane(props) {
79
80
  ref: tabPaneRef,
80
81
  className: tabPaneBoxClasses,
81
82
  onClick: handleClick
82
- }, _react.default.createElement("span", {
83
+ }, _react.default.createElement("span", (0, _extends2.default)({
83
84
  className: tabPaneTextClasses
84
- }, tab));
85
+ }, customTitleProps), tab));
85
86
  }
86
87
  return _react.default.createElement("span", {
87
88
  className: tabPaneBoxClasses,
88
89
  onContextMenu: handleContextMenu
89
- }, _react.default.createElement("span", {
90
+ }, _react.default.createElement("span", (0, _extends2.default)({
90
91
  ref: tabPaneRef,
91
92
  className: tabPaneTextClasses,
92
93
  onClick: handleClick
93
- }, tab), _react.default.createElement("span", {
94
+ }, customTitleProps), tab), _react.default.createElement("span", {
94
95
  className: operationsClasses
95
96
  }, renderOperations()));
96
97
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/kdesign",
3
- "version": "1.8.53-stable.3",
3
+ "version": "1.8.53-stable.4",
4
4
  "description": "KDesign 金蝶前端react 组件库",
5
5
  "title": "kdesign",
6
6
  "keywords": [