@donglegeyu/company-ui 1.2.47 → 1.2.49

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.
@@ -39,10 +39,10 @@ var CompanyFormComponent = ({
39
39
  style,
40
40
  ...restProps
41
41
  }) => {
42
- const mergedStyle = {
42
+ const mergedStyle = layout === "horizontal" ? {
43
43
  ["--company-label-max-width"]: `${labelMaxWidth}em`,
44
44
  ...style
45
- };
45
+ } : { ...style };
46
46
  const mergedRequiredMark = requiredMark !== void 0 ? requiredMark : layout === "vertical" ? requiredMarkRight : true;
47
47
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.ConfigProvider, { theme: import_theme.companyTheme, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
48
48
  import_antd.Form,
@@ -9,12 +9,13 @@
9
9
  width: 100%;
10
10
  }
11
11
 
12
- .ant-form-item-label.ant-form-item-label {
12
+ // 仅左右布局限制标签列宽度;上下布局标签独占整行,长标签不换行
13
+ .ant-form-item-horizontal .ant-form-item-label.ant-form-item-label {
13
14
  width: var(--company-label-max-width);
14
15
  flex-shrink: 0;
15
16
  }
16
17
 
17
- .ant-form-item-label > label {
18
+ .ant-form-item-horizontal .ant-form-item-label > label {
18
19
  justify-content: flex-end;
19
20
  white-space: normal;
20
21
  word-break: break-word;
@@ -0,0 +1,23 @@
1
+ import type { TableColumnsType } from "antd";
2
+ import type { ReactNode } from "react";
3
+ export type TableSize = "small" | "middle" | "large";
4
+ /** 表格密度对应的纵向单元格内边距(宽松 / 默认 / 紧凑) */
5
+ export declare const DENSITY_CELL_PADDING: Record<TableSize, number>;
6
+ /** 单元格统一横向内边距 */
7
+ export declare const TABLE_CELL_INLINE_PADDING = 16;
8
+ /** 操作列默认宽度 */
9
+ export declare const ACTION_COLUMN_WIDTH = 148;
10
+ interface ActionColumnOptions<T> {
11
+ /** 列标题,默认「操作」 */
12
+ title?: string;
13
+ /** 列宽,默认 148 */
14
+ width?: number;
15
+ /** 单元格渲染函数 */
16
+ render?: (record: T, index: number) => ReactNode;
17
+ }
18
+ /**
19
+ * 生成统一的操作列配置(固定右侧、左对齐、表头文案与按钮文字对齐)。
20
+ * SmartListTemplate 与 StatisticsListPage 共用同一份配置,避免两侧操作列漂移。
21
+ */
22
+ export declare function createActionColumn<T extends Record<string, unknown>>(options?: ActionColumnOptions<T>): TableColumnsType<T>[number];
23
+ export {};
@@ -0,0 +1,55 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/shared-components/tableActionColumn.ts
20
+ var tableActionColumn_exports = {};
21
+ __export(tableActionColumn_exports, {
22
+ ACTION_COLUMN_WIDTH: () => ACTION_COLUMN_WIDTH,
23
+ DENSITY_CELL_PADDING: () => DENSITY_CELL_PADDING,
24
+ TABLE_CELL_INLINE_PADDING: () => TABLE_CELL_INLINE_PADDING,
25
+ createActionColumn: () => createActionColumn
26
+ });
27
+ module.exports = __toCommonJS(tableActionColumn_exports);
28
+ var DENSITY_CELL_PADDING = {
29
+ large: 11,
30
+ middle: 7,
31
+ small: 3
32
+ };
33
+ var TABLE_CELL_INLINE_PADDING = 16;
34
+ var ACTION_COLUMN_WIDTH = 148;
35
+ var ACTION_COLUMN_HEADER_STYLE = { paddingLeft: 24, paddingRight: 16 };
36
+ function createActionColumn(options = {}) {
37
+ const { title = "操作", width = ACTION_COLUMN_WIDTH, render } = options;
38
+ return {
39
+ title,
40
+ dataIndex: "action",
41
+ key: "action",
42
+ width,
43
+ fixed: "right",
44
+ align: "left",
45
+ onHeaderCell: () => ({ style: { ...ACTION_COLUMN_HEADER_STYLE } }),
46
+ render: render ? (_, record, index) => render(record, index) : void 0
47
+ };
48
+ }
49
+ // Annotate the CommonJS export names for ESM import in node:
50
+ 0 && (module.exports = {
51
+ ACTION_COLUMN_WIDTH,
52
+ DENSITY_CELL_PADDING,
53
+ TABLE_CELL_INLINE_PADDING,
54
+ createActionColumn
55
+ });
@@ -38,6 +38,7 @@ var import_antd = require("antd");
38
38
  var import_zh_CN = __toESM(require("antd/locale/zh_CN"));
39
39
  var import_FilterForm = __toESM(require("../FilterForm"));
40
40
  var import_shared_components = require("../../shared-components");
41
+ var import_tableActionColumn = require("../../shared-components/tableActionColumn");
41
42
  var import_ColumnSettingsPanel = __toESM(require("../ColumnSettingsPanel"));
42
43
  var import_index = require("./index.scss");
43
44
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -120,12 +121,7 @@ function SmartListTemplate({
120
121
  middle: "默认",
121
122
  large: "宽松"
122
123
  };
123
- const densityPadding = {
124
- large: 11,
125
- middle: 7,
126
- small: 3
127
- };
128
- const currentPadding = densityPadding[effectiveTableSize];
124
+ const currentPadding = import_tableActionColumn.DENSITY_CELL_PADDING[effectiveTableSize];
129
125
  const handleSizeChange = (0, import_react.useCallback)(
130
126
  (newSize) => {
131
127
  if (onSizeChange) {
@@ -282,22 +278,18 @@ function SmartListTemplate({
282
278
  };
283
279
  });
284
280
  if (actionField) {
285
- regularColumns.push({
286
- title: "操作",
287
- dataIndex: actionField.key,
288
- key: "action",
289
- width: actionField.width || 148,
290
- fixed: "right",
291
- align: "left",
292
- onHeaderCell: () => ({ style: { paddingLeft: 24, paddingRight: 16 } }),
293
- render: bodyCell ? (_, record) => {
294
- const result = bodyCell(
295
- { ...actionField, key: actionField.key },
296
- record
297
- );
298
- return result !== null ? result : record[actionField.key];
299
- } : void 0
300
- });
281
+ regularColumns.push(
282
+ (0, import_tableActionColumn.createActionColumn)({
283
+ width: actionField.width || 148,
284
+ render: bodyCell ? (record) => {
285
+ const result = bodyCell(
286
+ { ...actionField, key: actionField.key },
287
+ record
288
+ );
289
+ return result !== null ? result : record[actionField.key];
290
+ } : void 0
291
+ })
292
+ );
301
293
  }
302
294
  return regularColumns;
303
295
  }, [fields, bodyCell, columnFields]);
@@ -821,9 +813,9 @@ function SmartListTemplate({
821
813
  size: effectiveTableSize,
822
814
  cellPaddingBlockMD: currentPadding,
823
815
  cellPaddingBlockSM: currentPadding,
824
- cellPaddingInline: 16,
825
- cellPaddingInlineMD: 16,
826
- cellPaddingInlineSM: 16,
816
+ cellPaddingInline: import_tableActionColumn.TABLE_CELL_INLINE_PADDING,
817
+ cellPaddingInlineMD: import_tableActionColumn.TABLE_CELL_INLINE_PADDING,
818
+ cellPaddingInlineSM: import_tableActionColumn.TABLE_CELL_INLINE_PADDING,
827
819
  rowSelection,
828
820
  rowKey,
829
821
  childrenColumnName: (treeConfig == null ? void 0 : treeConfig.enabled) ? treeConfig.childrenColumnName || "children" : void 0,
@@ -39,6 +39,7 @@ var import_zh_CN = __toESM(require("antd/locale/zh_CN"));
39
39
  var import_icons = require("@ant-design/icons");
40
40
  var import_basic_components = require("../../basic-components");
41
41
  var import_shared_components = require("../../shared-components");
42
+ var import_tableActionColumn = require("../../shared-components/tableActionColumn");
42
43
  var import_ColumnSettingsPanel = __toESM(require("../ColumnSettingsPanel"));
43
44
  var import_useCompanyToken = require("../../theme/useCompanyToken");
44
45
  var import_index = require("./index.scss");
@@ -105,6 +106,7 @@ var StatisticsListPage = (props) => {
105
106
  const [filterParams, setFilterParams] = (0, import_react.useState)({});
106
107
  const [internalSize, setInternalSize] = (0, import_react.useState)(size);
107
108
  const effectiveSize = onSizeChange ? size : internalSize;
109
+ const currentPadding = import_tableActionColumn.DENSITY_CELL_PADDING[effectiveSize];
108
110
  const [densityOpen, setDensityOpen] = (0, import_react.useState)(false);
109
111
  const [columnFields, setColumnFields] = (0, import_react.useState)(
110
112
  () => (columns || []).filter((col) => col.key !== "action").map((col) => ({
@@ -355,15 +357,13 @@ var StatisticsListPage = (props) => {
355
357
  return base;
356
358
  });
357
359
  if (actionColumn) {
358
- list.push({
359
- key: "action",
360
- title: actionColumn.title || "操作",
361
- width: actionColumn.width || 148,
362
- fixed: "right",
363
- align: "left",
364
- onHeaderCell: () => ({ style: { paddingLeft: 24, paddingRight: 16 } }),
365
- render: (_, record, index) => actionColumn.render(record, index)
366
- });
360
+ list.push(
361
+ (0, import_tableActionColumn.createActionColumn)({
362
+ title: actionColumn.title,
363
+ width: actionColumn.width,
364
+ render: actionColumn.render
365
+ })
366
+ );
367
367
  }
368
368
  return list;
369
369
  }, [columns, visibleColumnMap, actionColumn]);
@@ -521,6 +521,11 @@ var StatisticsListPage = (props) => {
521
521
  pagination: false,
522
522
  rowKey,
523
523
  size: effectiveSize,
524
+ cellPaddingBlockMD: currentPadding,
525
+ cellPaddingBlockSM: currentPadding,
526
+ cellPaddingInline: import_tableActionColumn.TABLE_CELL_INLINE_PADDING,
527
+ cellPaddingInlineMD: import_tableActionColumn.TABLE_CELL_INLINE_PADDING,
528
+ cellPaddingInlineSM: import_tableActionColumn.TABLE_CELL_INLINE_PADDING,
524
529
  scroll: { y: scrollY ?? tableHeight },
525
530
  locale: { emptyText }
526
531
  }
@@ -36,7 +36,8 @@ var CompanyFormComponent = function CompanyFormComponent(_ref2) {
36
36
  className = _ref2.className,
37
37
  style = _ref2.style,
38
38
  restProps = _objectWithoutProperties(_ref2, _excluded);
39
- var mergedStyle = _objectSpread(_defineProperty({}, "--company-label-max-width", "".concat(labelMaxWidth, "em")), style);
39
+ // labelMaxWidth 只约束左右布局的标签列;上下布局标签独占整行,不注入该变量
40
+ var mergedStyle = layout === "horizontal" ? _objectSpread(_defineProperty({}, "--company-label-max-width", "".concat(labelMaxWidth, "em")), style) : _objectSpread({}, style);
40
41
  var mergedRequiredMark = requiredMark !== undefined ? requiredMark : layout === "vertical" ? requiredMarkRight : true;
41
42
  return /*#__PURE__*/_jsx(ConfigProvider, {
42
43
  theme: companyTheme,
@@ -9,12 +9,13 @@
9
9
  width: 100%;
10
10
  }
11
11
 
12
- .ant-form-item-label.ant-form-item-label {
12
+ // 仅左右布局限制标签列宽度;上下布局标签独占整行,长标签不换行
13
+ .ant-form-item-horizontal .ant-form-item-label.ant-form-item-label {
13
14
  width: var(--company-label-max-width);
14
15
  flex-shrink: 0;
15
16
  }
16
17
 
17
- .ant-form-item-label > label {
18
+ .ant-form-item-horizontal .ant-form-item-label > label {
18
19
  justify-content: flex-end;
19
20
  white-space: normal;
20
21
  word-break: break-word;
@@ -0,0 +1,23 @@
1
+ import type { TableColumnsType } from "antd";
2
+ import type { ReactNode } from "react";
3
+ export type TableSize = "small" | "middle" | "large";
4
+ /** 表格密度对应的纵向单元格内边距(宽松 / 默认 / 紧凑) */
5
+ export declare const DENSITY_CELL_PADDING: Record<TableSize, number>;
6
+ /** 单元格统一横向内边距 */
7
+ export declare const TABLE_CELL_INLINE_PADDING = 16;
8
+ /** 操作列默认宽度 */
9
+ export declare const ACTION_COLUMN_WIDTH = 148;
10
+ interface ActionColumnOptions<T> {
11
+ /** 列标题,默认「操作」 */
12
+ title?: string;
13
+ /** 列宽,默认 148 */
14
+ width?: number;
15
+ /** 单元格渲染函数 */
16
+ render?: (record: T, index: number) => ReactNode;
17
+ }
18
+ /**
19
+ * 生成统一的操作列配置(固定右侧、左对齐、表头文案与按钮文字对齐)。
20
+ * SmartListTemplate 与 StatisticsListPage 共用同一份配置,避免两侧操作列漂移。
21
+ */
22
+ export declare function createActionColumn<T extends Record<string, unknown>>(options?: ActionColumnOptions<T>): TableColumnsType<T>[number];
23
+ export {};
@@ -0,0 +1,55 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ /** 表格密度对应的纵向单元格内边距(宽松 / 默认 / 紧凑) */
8
+ export var DENSITY_CELL_PADDING = {
9
+ large: 11,
10
+ middle: 7,
11
+ small: 3
12
+ };
13
+
14
+ /** 单元格统一横向内边距 */
15
+ export var TABLE_CELL_INLINE_PADDING = 16;
16
+
17
+ /** 操作列默认宽度 */
18
+ export var ACTION_COLUMN_WIDTH = 148;
19
+
20
+ /**
21
+ * 操作列表头内边距:左 24 = 单元格横向 16 + 操作按钮自身内边距 8,
22
+ * 让表头「操作」文案与操作按钮文字左边缘对齐。
23
+ */
24
+ var ACTION_COLUMN_HEADER_STYLE = {
25
+ paddingLeft: 24,
26
+ paddingRight: 16
27
+ };
28
+ /**
29
+ * 生成统一的操作列配置(固定右侧、左对齐、表头文案与按钮文字对齐)。
30
+ * SmartListTemplate 与 StatisticsListPage 共用同一份配置,避免两侧操作列漂移。
31
+ */
32
+ export function createActionColumn() {
33
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
34
+ var _options$title = options.title,
35
+ title = _options$title === void 0 ? "操作" : _options$title,
36
+ _options$width = options.width,
37
+ width = _options$width === void 0 ? ACTION_COLUMN_WIDTH : _options$width,
38
+ render = options.render;
39
+ return {
40
+ title: title,
41
+ dataIndex: "action",
42
+ key: "action",
43
+ width: width,
44
+ fixed: "right",
45
+ align: "left",
46
+ onHeaderCell: function onHeaderCell() {
47
+ return {
48
+ style: _objectSpread({}, ACTION_COLUMN_HEADER_STYLE)
49
+ };
50
+ },
51
+ render: render ? function (_, record, index) {
52
+ return render(record, index);
53
+ } : undefined
54
+ };
55
+ }
@@ -23,6 +23,7 @@ import { ConfigProvider } from "antd";
23
23
  import zhCN from "antd/locale/zh_CN";
24
24
  import FilterForm from "../FilterForm";
25
25
  import { SvgIcon, FilterOptionsDrawer, EllipsisText } from "../../shared-components";
26
+ import { createActionColumn, DENSITY_CELL_PADDING, TABLE_CELL_INLINE_PADDING } from "../../shared-components/tableActionColumn";
26
27
  import ColumnSettingsPanel from "../ColumnSettingsPanel";
27
28
  import "./index.scss";
28
29
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -178,12 +179,7 @@ export default function SmartListTemplate(_ref) {
178
179
  middle: "默认",
179
180
  large: "宽松"
180
181
  };
181
- var densityPadding = {
182
- large: 11,
183
- middle: 7,
184
- small: 3
185
- };
186
- var currentPadding = densityPadding[effectiveTableSize];
182
+ var currentPadding = DENSITY_CELL_PADDING[effectiveTableSize];
187
183
  var handleSizeChange = useCallback(function (newSize) {
188
184
  if (onSizeChange) {
189
185
  onSizeChange(newSize);
@@ -363,28 +359,15 @@ export default function SmartListTemplate(_ref) {
363
359
  };
364
360
  });
365
361
  if (actionField) {
366
- regularColumns.push({
367
- title: "操作",
368
- dataIndex: actionField.key,
369
- key: "action",
362
+ regularColumns.push(createActionColumn({
370
363
  width: actionField.width || 148,
371
- fixed: "right",
372
- align: "left",
373
- onHeaderCell: function onHeaderCell() {
374
- return {
375
- style: {
376
- paddingLeft: 24,
377
- paddingRight: 16
378
- }
379
- };
380
- },
381
- render: bodyCell ? function (_, record) {
364
+ render: bodyCell ? function (record) {
382
365
  var result = bodyCell(_objectSpread(_objectSpread({}, actionField), {}, {
383
366
  key: actionField.key
384
367
  }), record);
385
368
  return result !== null ? result : record[actionField.key];
386
369
  } : undefined
387
- });
370
+ }));
388
371
  }
389
372
  return regularColumns;
390
373
  }, [fields, bodyCell, columnFields]);
@@ -1114,9 +1097,9 @@ export default function SmartListTemplate(_ref) {
1114
1097
  size: effectiveTableSize,
1115
1098
  cellPaddingBlockMD: currentPadding,
1116
1099
  cellPaddingBlockSM: currentPadding,
1117
- cellPaddingInline: 16,
1118
- cellPaddingInlineMD: 16,
1119
- cellPaddingInlineSM: 16,
1100
+ cellPaddingInline: TABLE_CELL_INLINE_PADDING,
1101
+ cellPaddingInlineMD: TABLE_CELL_INLINE_PADDING,
1102
+ cellPaddingInlineSM: TABLE_CELL_INLINE_PADDING,
1120
1103
  rowSelection: rowSelection,
1121
1104
  rowKey: rowKey,
1122
1105
  childrenColumnName: treeConfig !== null && treeConfig !== void 0 && treeConfig.enabled ? treeConfig.childrenColumnName || "children" : undefined,
@@ -29,6 +29,7 @@ import zhCN from "antd/locale/zh_CN";
29
29
  import { FilterOutlined, CloseOutlined, DeleteOutlined } from "@ant-design/icons";
30
30
  import { CompanyButton, CompanyInput, CompanySelect, CompanyTable, CompanyPagination, CompanyDrawer, CompanyDatePicker, CompanyTooltip, CompanyMessage, CompanyForm, CompanyDropdown, CompanyMenu } from "../../basic-components";
31
31
  import { PageTitle, SvgIcon, EllipsisText } from "../../shared-components";
32
+ import { createActionColumn, DENSITY_CELL_PADDING, TABLE_CELL_INLINE_PADDING } from "../../shared-components/tableActionColumn";
32
33
  import ColumnSettingsPanel from "../ColumnSettingsPanel";
33
34
  import { useCompanyToken } from "../../theme/useCompanyToken";
34
35
  import "./index.scss";
@@ -163,6 +164,7 @@ export var StatisticsListPage = function StatisticsListPage(props) {
163
164
  internalSize = _useState12[0],
164
165
  setInternalSize = _useState12[1];
165
166
  var effectiveSize = onSizeChange ? size : internalSize;
167
+ var currentPadding = DENSITY_CELL_PADDING[effectiveSize];
166
168
  var _useState13 = useState(false),
167
169
  _useState14 = _slicedToArray(_useState13, 2),
168
170
  densityOpen = _useState14[0],
@@ -517,24 +519,11 @@ export var StatisticsListPage = function StatisticsListPage(props) {
517
519
  return base;
518
520
  });
519
521
  if (actionColumn) {
520
- list.push({
521
- key: "action",
522
- title: actionColumn.title || "操作",
523
- width: actionColumn.width || 148,
524
- fixed: "right",
525
- align: "left",
526
- onHeaderCell: function onHeaderCell() {
527
- return {
528
- style: {
529
- paddingLeft: 24,
530
- paddingRight: 16
531
- }
532
- };
533
- },
534
- render: function render(_, record, index) {
535
- return actionColumn.render(record, index);
536
- }
537
- });
522
+ list.push(createActionColumn({
523
+ title: actionColumn.title,
524
+ width: actionColumn.width,
525
+ render: actionColumn.render
526
+ }));
538
527
  }
539
528
  return list;
540
529
  }, [columns, visibleColumnMap, actionColumn]);
@@ -738,6 +727,11 @@ export var StatisticsListPage = function StatisticsListPage(props) {
738
727
  pagination: false,
739
728
  rowKey: rowKey,
740
729
  size: effectiveSize,
730
+ cellPaddingBlockMD: currentPadding,
731
+ cellPaddingBlockSM: currentPadding,
732
+ cellPaddingInline: TABLE_CELL_INLINE_PADDING,
733
+ cellPaddingInlineMD: TABLE_CELL_INLINE_PADDING,
734
+ cellPaddingInlineSM: TABLE_CELL_INLINE_PADDING,
741
735
  scroll: {
742
736
  y: scrollY !== null && scrollY !== void 0 ? scrollY : tableHeight
743
737
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donglegeyu/company-ui",
3
- "version": "1.2.47",
3
+ "version": "1.2.49",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/es/index.js",
6
6
  "types": "dist/es/index.d.ts",
@@ -36,7 +36,8 @@
36
36
  "prepublishOnly": "node scripts/prepublish-guard.mjs && npm run build && npm run verify:skill-examples",
37
37
  "postpublish": "node scripts/postpublish.mjs",
38
38
  "release:patch": "npm version patch && npm publish",
39
- "verify:skill-examples": "node scripts/verify-skill-examples.mjs"
39
+ "verify:no-danger-delete": "node scripts/verify-no-danger-delete.mjs",
40
+ "verify:skill-examples": "node scripts/verify-skill-examples.mjs && node scripts/verify-no-danger-delete.mjs"
40
41
  },
41
42
  "keywords": [
42
43
  "antd",