@xfe-repo/web-components 1.2.5 → 1.2.6

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 CHANGED
@@ -472,14 +472,7 @@ var TabItem = (0, import_react2.memo)(function(props) {
472
472
  var collectionSelect = (0, import_react2.useMemo)(function() {
473
473
  var _data_searchCollection;
474
474
  if (!(data === null || data === void 0 ? void 0 : (_data_searchCollection = data.searchCollection) === null || _data_searchCollection === void 0 ? void 0 : _data_searchCollection.length)) return null;
475
- if (!isActivated) {
476
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_antd2.Badge, {
477
- className: MultiWindow_module_default.collection,
478
- count: data.searchCollection.length,
479
- color: "var(--ant-color-primary)",
480
- size: "small"
481
- }, data.key);
482
- }
475
+ if (!isActivated) return null;
483
476
  var options = data.searchCollection.map(function(item) {
484
477
  return {
485
478
  label: item,
@@ -492,6 +485,7 @@ var TabItem = (0, import_react2.memo)(function(props) {
492
485
  options: options,
493
486
  value: currentKey,
494
487
  onChange: handleCollectionChange,
488
+ popupMatchSelectWidth: false,
495
489
  size: "small",
496
490
  showSearch: true,
497
491
  placeholder: "请选择"
package/dist/index.mjs CHANGED
@@ -276,7 +276,7 @@ import { Button as Button2, ConfigProvider, Popconfirm, Tooltip as Tooltip2 } fr
276
276
  import { CloseOutlined, QuestionCircleOutlined, RedoOutlined } from "@ant-design/icons";
277
277
  // src/MultiWindow/MultiWindowTabs.tsx
278
278
  import React2, { memo, useCallback, useMemo } from "react";
279
- import { Tabs, Select, Badge } from "antd";
279
+ import { Tabs, Select } from "antd";
280
280
  import { closestCenter, DndContext, PointerSensor, useSensor } from "@dnd-kit/core";
281
281
  import { arrayMove, horizontalListSortingStrategy, SortableContext, useSortable } from "@dnd-kit/sortable";
282
282
  import { restrictToHorizontalAxis } from "@dnd-kit/modifiers";
@@ -397,14 +397,7 @@ var TabItem = memo(function(props) {
397
397
  var collectionSelect = useMemo(function() {
398
398
  var _data_searchCollection;
399
399
  if (!(data === null || data === void 0 ? void 0 : (_data_searchCollection = data.searchCollection) === null || _data_searchCollection === void 0 ? void 0 : _data_searchCollection.length)) return null;
400
- if (!isActivated) {
401
- return /* @__PURE__ */ jsx2(Badge, {
402
- className: MultiWindow_module_default.collection,
403
- count: data.searchCollection.length,
404
- color: "var(--ant-color-primary)",
405
- size: "small"
406
- }, data.key);
407
- }
400
+ if (!isActivated) return null;
408
401
  var options = data.searchCollection.map(function(item) {
409
402
  return {
410
403
  label: item,
@@ -417,6 +410,7 @@ var TabItem = memo(function(props) {
417
410
  options: options,
418
411
  value: currentKey,
419
412
  onChange: handleCollectionChange,
413
+ popupMatchSelectWidth: false,
420
414
  size: "small",
421
415
  showSearch: true,
422
416
  placeholder: "请选择"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfe-repo/web-components",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "module": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": [
@@ -43,8 +43,8 @@
43
43
  "antd": "^5.24.5",
44
44
  "react": "18.2.0",
45
45
  "react-dom": "18.2.0",
46
- "@xfe-repo/web-micro": "1.2.5",
47
- "@xfe-repo/web-utils": "1.3.7"
46
+ "@xfe-repo/web-utils": "1.3.7",
47
+ "@xfe-repo/web-micro": "1.2.5"
48
48
  },
49
49
  "publishConfig": {
50
50
  "registry": "https://registry.npmjs.org/"