@hw-component/table 1.10.29 → 1.10.30
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.
|
@@ -19,6 +19,7 @@ interface IProps {
|
|
|
19
19
|
popoverContentRender?: (node: React.ReactNode) => React.ReactNode;
|
|
20
20
|
contentItemRender?: (item: any) => React.ReactNode;
|
|
21
21
|
extra?: React.ReactNode;
|
|
22
|
+
tagStyle?: React.CSSProperties;
|
|
22
23
|
}
|
|
23
24
|
export declare const Text: React.FC;
|
|
24
25
|
declare const TagsComponent: (props: IProps) => JSX.Element;
|
|
@@ -62,7 +62,8 @@ var TagsComponent = function TagsComponent(props) {
|
|
|
62
62
|
tableInstance = props.tableInstance,
|
|
63
63
|
maxLen = props.maxLen,
|
|
64
64
|
popoverContentRender = props.popoverContentRender,
|
|
65
|
-
extra = props.extra
|
|
65
|
+
extra = props.extra,
|
|
66
|
+
tagStyle = props.tagStyle;
|
|
66
67
|
var _fieldNames$label = fieldNames.label,
|
|
67
68
|
label = _fieldNames$label === void 0 ? "label" : _fieldNames$label,
|
|
68
69
|
_fieldNames$value = fieldNames.value,
|
|
@@ -105,9 +106,9 @@ var TagsComponent = function TagsComponent(props) {
|
|
|
105
106
|
});
|
|
106
107
|
return jsx(Tooltip, _objectSpread(_objectSpread({}, _tooltipProps), {}, {
|
|
107
108
|
children: jsx(Tag, _objectSpread(_objectSpread({
|
|
108
|
-
style: {
|
|
109
|
+
style: _objectSpread({
|
|
109
110
|
maxWidth: "100%"
|
|
110
|
-
}
|
|
111
|
+
}, tagStyle)
|
|
111
112
|
}, tagProps), {}, {
|
|
112
113
|
onClose: function onClose(e) {
|
|
113
114
|
e.preventDefault();
|
|
@@ -131,9 +132,9 @@ var TagsComponent = function TagsComponent(props) {
|
|
|
131
132
|
});
|
|
132
133
|
return jsx(Tooltip, _objectSpread(_objectSpread({}, tooltipProps), {}, {
|
|
133
134
|
children: jsx(Tag, _objectSpread(_objectSpread({
|
|
134
|
-
style: {
|
|
135
|
+
style: _objectSpread({
|
|
135
136
|
maxWidth: "100%"
|
|
136
|
-
}
|
|
137
|
+
}, tagStyle)
|
|
137
138
|
}, cuTagProps), {}, {
|
|
138
139
|
onClose: function onClose(e) {
|
|
139
140
|
e.preventDefault();
|
|
@@ -19,6 +19,7 @@ interface IProps {
|
|
|
19
19
|
popoverContentRender?: (node: React.ReactNode) => React.ReactNode;
|
|
20
20
|
contentItemRender?: (item: any) => React.ReactNode;
|
|
21
21
|
extra?: React.ReactNode;
|
|
22
|
+
tagStyle?: React.CSSProperties;
|
|
22
23
|
}
|
|
23
24
|
export declare const Text: React.FC;
|
|
24
25
|
declare const TagsComponent: (props: IProps) => JSX.Element;
|
|
@@ -65,7 +65,8 @@ var TagsComponent = function TagsComponent(props) {
|
|
|
65
65
|
tableInstance = props.tableInstance,
|
|
66
66
|
maxLen = props.maxLen,
|
|
67
67
|
popoverContentRender = props.popoverContentRender,
|
|
68
|
-
extra = props.extra
|
|
68
|
+
extra = props.extra,
|
|
69
|
+
tagStyle = props.tagStyle;
|
|
69
70
|
var _fieldNames$label = fieldNames.label,
|
|
70
71
|
label = _fieldNames$label === void 0 ? "label" : _fieldNames$label,
|
|
71
72
|
_fieldNames$value = fieldNames.value,
|
|
@@ -108,9 +109,9 @@ var TagsComponent = function TagsComponent(props) {
|
|
|
108
109
|
});
|
|
109
110
|
return jsxRuntime.jsx(antd.Tooltip, _objectSpread(_objectSpread({}, _tooltipProps), {}, {
|
|
110
111
|
children: jsxRuntime.jsx(antd.Tag, _objectSpread(_objectSpread({
|
|
111
|
-
style: {
|
|
112
|
+
style: _objectSpread({
|
|
112
113
|
maxWidth: "100%"
|
|
113
|
-
}
|
|
114
|
+
}, tagStyle)
|
|
114
115
|
}, tagProps), {}, {
|
|
115
116
|
onClose: function onClose(e) {
|
|
116
117
|
e.preventDefault();
|
|
@@ -134,9 +135,9 @@ var TagsComponent = function TagsComponent(props) {
|
|
|
134
135
|
});
|
|
135
136
|
return jsxRuntime.jsx(antd.Tooltip, _objectSpread(_objectSpread({}, tooltipProps), {}, {
|
|
136
137
|
children: jsxRuntime.jsx(antd.Tag, _objectSpread(_objectSpread({
|
|
137
|
-
style: {
|
|
138
|
+
style: _objectSpread({
|
|
138
139
|
maxWidth: "100%"
|
|
139
|
-
}
|
|
140
|
+
}, tagStyle)
|
|
140
141
|
}, cuTagProps), {}, {
|
|
141
142
|
onClose: function onClose(e) {
|
|
142
143
|
e.preventDefault();
|
package/package.json
CHANGED
|
@@ -19,6 +19,7 @@ interface IProps {
|
|
|
19
19
|
popoverContentRender?: (node: React.ReactNode) => React.ReactNode;
|
|
20
20
|
contentItemRender?: (item: any) => React.ReactNode;
|
|
21
21
|
extra?: React.ReactNode;
|
|
22
|
+
tagStyle?: React.CSSProperties;
|
|
22
23
|
}
|
|
23
24
|
const getTooltipProps = (
|
|
24
25
|
item: any,
|
|
@@ -59,6 +60,7 @@ const TagsComponent = (props: IProps) => {
|
|
|
59
60
|
maxLen,
|
|
60
61
|
popoverContentRender,
|
|
61
62
|
extra,
|
|
63
|
+
tagStyle
|
|
62
64
|
} = props;
|
|
63
65
|
const { label = "label", value = "value" } = fieldNames;
|
|
64
66
|
const { tagData, moreTag } = useMemo(() => {
|
|
@@ -95,6 +97,7 @@ const TagsComponent = (props: IProps) => {
|
|
|
95
97
|
key={indexKey}
|
|
96
98
|
style={{
|
|
97
99
|
maxWidth: "100%",
|
|
100
|
+
...tagStyle
|
|
98
101
|
}}
|
|
99
102
|
{...tagProps}
|
|
100
103
|
onClose={(e) => {
|
|
@@ -124,6 +127,7 @@ const TagsComponent = (props: IProps) => {
|
|
|
124
127
|
key={cuKey}
|
|
125
128
|
style={{
|
|
126
129
|
maxWidth: "100%",
|
|
130
|
+
...tagStyle
|
|
127
131
|
}}
|
|
128
132
|
{...cuTagProps}
|
|
129
133
|
onClose={(e) => {
|