@alicloud/console-components-search 0.2.6 → 0.2.7
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,7 +1,7 @@
|
|
|
1
1
|
开始构建微应用external依赖...
|
|
2
2
|
BreezrPluginStyledComponentsIsolation The plugin will trying to use the package's name as isolation id of styled-components. This behavior usually occurred on dev mode. And if you were received this warning on publish mode then you should to set `options.styledComponentStyleSheetId` implicitly.
|
|
3
3
|
ℹ Compiling Webpack
|
|
4
|
-
✔ Webpack: Compiled successfully in
|
|
4
|
+
✔ Webpack: Compiled successfully in 12.98s
|
|
5
5
|
WARN asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
6
6
|
This can impact web performance.
|
|
7
7
|
Assets:
|
|
@@ -105,11 +105,16 @@ var SearchTagList = function SearchTagList(props) {
|
|
|
105
105
|
});
|
|
106
106
|
};
|
|
107
107
|
|
|
108
|
+
var processDataSource = dataSource && dataSource.filter(function (t) {
|
|
109
|
+
var _t$value;
|
|
110
|
+
|
|
111
|
+
return !isArray(t === null || t === void 0 ? void 0 : t.value) || (t === null || t === void 0 ? void 0 : (_t$value = t.value) === null || _t$value === void 0 ? void 0 : _t$value.length);
|
|
112
|
+
}) || [];
|
|
108
113
|
return /*#__PURE__*/React.createElement(TagListWrap, {
|
|
109
114
|
prefix: prefix,
|
|
110
115
|
className: classNames(baseTagListClassName, className),
|
|
111
116
|
style: style
|
|
112
|
-
}, /*#__PURE__*/React.createElement(TagGroup, null,
|
|
117
|
+
}, /*#__PURE__*/React.createElement(TagGroup, null, processDataSource.map(function (tagItem) {
|
|
113
118
|
if (isTagLikeDataStructure(tagItem.value)) {
|
|
114
119
|
return renderTags(tagItem);
|
|
115
120
|
}
|
|
@@ -126,7 +131,7 @@ var SearchTagList = function SearchTagList(props) {
|
|
|
126
131
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("label", {
|
|
127
132
|
className: "console-tags-tag-label"
|
|
128
133
|
}, tagItem.label), tagItem.valueLabel || tagItem.value));
|
|
129
|
-
}),
|
|
134
|
+
}), processDataSource.length > 0 && /*#__PURE__*/React.createElement("a", {
|
|
130
135
|
className: "remove-btn",
|
|
131
136
|
onClick: onRemoveAllFilter
|
|
132
137
|
}, "\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")));
|
|
@@ -122,11 +122,16 @@ var SearchTagList = function SearchTagList(props) {
|
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
124
|
|
|
125
|
+
var processDataSource = dataSource && dataSource.filter(function (t) {
|
|
126
|
+
var _t$value;
|
|
127
|
+
|
|
128
|
+
return !(0, _isArray.default)(t === null || t === void 0 ? void 0 : t.value) || (t === null || t === void 0 ? void 0 : (_t$value = t.value) === null || _t$value === void 0 ? void 0 : _t$value.length);
|
|
129
|
+
}) || [];
|
|
125
130
|
return /*#__PURE__*/_react.default.createElement(_style.TagListWrap, {
|
|
126
131
|
prefix: prefix,
|
|
127
132
|
className: (0, _classnames.default)(_constants.baseTagListClassName, className),
|
|
128
133
|
style: style
|
|
129
|
-
}, /*#__PURE__*/_react.default.createElement(TagGroup, null,
|
|
134
|
+
}, /*#__PURE__*/_react.default.createElement(TagGroup, null, processDataSource.map(function (tagItem) {
|
|
130
135
|
if (isTagLikeDataStructure(tagItem.value)) {
|
|
131
136
|
return renderTags(tagItem);
|
|
132
137
|
}
|
|
@@ -143,7 +148,7 @@ var SearchTagList = function SearchTagList(props) {
|
|
|
143
148
|
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("label", {
|
|
144
149
|
className: "console-tags-tag-label"
|
|
145
150
|
}, tagItem.label), tagItem.valueLabel || tagItem.value));
|
|
146
|
-
}),
|
|
151
|
+
}), processDataSource.length > 0 && /*#__PURE__*/_react.default.createElement("a", {
|
|
147
152
|
className: "remove-btn",
|
|
148
153
|
onClick: onRemoveAllFilter
|
|
149
154
|
}, "\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")));
|