@sia.soul/sia-react-ui 0.1.55 → 0.1.56

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.cjs CHANGED
@@ -13082,7 +13082,7 @@ function createSelectionPlugin(options = {}) {
13082
13082
  ellipsis: false,
13083
13083
  meta: { plugin: "selection" },
13084
13084
  renderHeader: () => {
13085
- if (mode !== "multiple") return null;
13085
+ if (mode !== "multiple" || options.showSelectAll === false) return null;
13086
13086
  const enabledRows = context.rows.filter(
13087
13087
  (row) => !options.getCheckboxDisabled?.(row.record)
13088
13088
  );
package/dist/index.d.cts CHANGED
@@ -2402,6 +2402,8 @@ declare function createRowSpanPlugin<T extends Record<string, unknown>>(options?
2402
2402
  type TableSelectionMode = "single" | "multiple" | "row";
2403
2403
  /** TableSelection的插件配置。 */
2404
2404
  interface TableSelectionPluginOptions<T> {
2405
+ /** 是否显示多选模式的表头全选框,默认 true;false 仅隐藏全选入口,不影响行勾选、已选状态及选择 API。 */
2406
+ showSelectAll?: boolean;
2405
2407
  /** 展示或交互模式;可选值见类型定义。 */
2406
2408
  mode?: TableSelectionMode;
2407
2409
  /** 当前选中项目的标识集合;传入后由外部控制。 */
package/dist/index.d.ts CHANGED
@@ -2402,6 +2402,8 @@ declare function createRowSpanPlugin<T extends Record<string, unknown>>(options?
2402
2402
  type TableSelectionMode = "single" | "multiple" | "row";
2403
2403
  /** TableSelection的插件配置。 */
2404
2404
  interface TableSelectionPluginOptions<T> {
2405
+ /** 是否显示多选模式的表头全选框,默认 true;false 仅隐藏全选入口,不影响行勾选、已选状态及选择 API。 */
2406
+ showSelectAll?: boolean;
2405
2407
  /** 展示或交互模式;可选值见类型定义。 */
2406
2408
  mode?: TableSelectionMode;
2407
2409
  /** 当前选中项目的标识集合;传入后由外部控制。 */
package/dist/index.js CHANGED
@@ -5820,7 +5820,7 @@ function createSelectionPlugin(options = {}) {
5820
5820
  ellipsis: false,
5821
5821
  meta: { plugin: "selection" },
5822
5822
  renderHeader: () => {
5823
- if (mode !== "multiple") return null;
5823
+ if (mode !== "multiple" || options.showSelectAll === false) return null;
5824
5824
  const enabledRows = context.rows.filter(
5825
5825
  (row) => !options.getCheckboxDisabled?.(row.record)
5826
5826
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sia.soul/sia-react-ui",
3
- "version": "0.1.55",
3
+ "version": "0.1.56",
4
4
  "description": "Sia Design components and tokens for React",
5
5
  "publishConfig": {
6
6
  "access": "public",