@cqsjjb/jjb-react-admin-component 3.1.3 → 3.1.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.
|
@@ -119,6 +119,7 @@ function ItemRender(props) {
|
|
|
119
119
|
: /*#__PURE__*/React.createElement(RenderText, {
|
|
120
120
|
name: data.name,
|
|
121
121
|
value: data.value,
|
|
122
|
+
maxTagCount: props.maxTagCount,
|
|
122
123
|
renderItemText: props.renderItemText
|
|
123
124
|
}), /*#__PURE__*/React.createElement(Modal, {
|
|
124
125
|
destroyOnClose: true,
|
|
@@ -140,7 +141,8 @@ function ItemRender(props) {
|
|
|
140
141
|
}
|
|
141
142
|
function RenderText(props) {
|
|
142
143
|
const {
|
|
143
|
-
value
|
|
144
|
+
value,
|
|
145
|
+
maxTagCount = 1
|
|
144
146
|
} = props;
|
|
145
147
|
const [text, setText] = React.useState();
|
|
146
148
|
const [options, setOptions] = React.useState([]);
|
|
@@ -181,7 +183,7 @@ function RenderText(props) {
|
|
|
181
183
|
variant: "borderless",
|
|
182
184
|
treeData: options,
|
|
183
185
|
showSearch: false,
|
|
184
|
-
maxTagCount:
|
|
186
|
+
maxTagCount: maxTagCount
|
|
185
187
|
}))) : props.renderItemText ? props.renderItemText({
|
|
186
188
|
text,
|
|
187
189
|
name: props.name
|