@alicloud/console-components-search 0.2.32 → 0.2.33
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.
- package/dist/index.js +6 -0
- package/doc-dist/deps/main.js +1 -1
- package/doc-dist/log-deps-build.log +1 -1
- package/es/searchTagList/index.js +8 -0
- package/lib/searchTagList/index.js +8 -0
- package/package.json +15 -14
- package/LICENSE +0 -21
package/dist/index.js
CHANGED
|
@@ -123759,6 +123759,12 @@ var SearchTagList = function (props) {
|
|
|
123759
123759
|
if (isTagLikeDataStructure(tagItem.value)) {
|
|
123760
123760
|
return renderTags(tagItem);
|
|
123761
123761
|
}
|
|
123762
|
+
/**
|
|
123763
|
+
* 非 tag 标签类型的 Object 数据不渲染
|
|
123764
|
+
*/
|
|
123765
|
+
if (typeof (tagItem.valueLabel || tagItem.value) !== 'string') {
|
|
123766
|
+
return null;
|
|
123767
|
+
}
|
|
123762
123768
|
return (react_1.default.createElement(ClosableTag, { className: "search-tags-tag", key: tagItem.dataIndex + tagItem.value, type: "normal", size: "medium", onClose: function () { onRemoveFilter(tagItem); return true; } },
|
|
123763
123769
|
react_1.default.createElement(react_1.default.Fragment, null,
|
|
123764
123770
|
react_1.default.createElement("label", { className: "search-tags-tag-label" }, tagItem.label),
|