@kne/table-page 0.1.34 → 0.1.36
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/README.md +24 -6
- package/dist/index.css +9 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -191,7 +191,7 @@ npm i --save @kne/table-page
|
|
|
191
191
|
#### 示例代码
|
|
192
192
|
|
|
193
193
|
- TablePage
|
|
194
|
-
- 表格页面组件,基于 @kne/react-fetch 实现数据加载与分页,支持 sticky 固定表头、useSort 服务端排序、renderMobile 移动端卡片、renderCard PC 卡片视图切换、tab 分类切换、列配置、总结栏、树形 dataType(含筛选/批量/操作列/卡片切换/懒加载);空数据(total 为 0)时不显示分页器。文末含仅 SearchInput + renderMobile 自定义卡片示例(验证工具栏与卡片间距)
|
|
194
|
+
- 表格页面组件,基于 @kne/react-fetch 实现数据加载与分页,支持 sticky 固定表头、useSort 服务端排序、renderMobile 移动端卡片、renderCard PC 卡片视图切换、pagination.forceLoadMore(PC Table 触底下拉)、tab 分类切换、列配置、总结栏、树形 dataType(含筛选/批量/操作列/卡片切换/懒加载);空数据(total 为 0)时不显示分页器。文末含仅 SearchInput + renderMobile 自定义卡片示例(验证工具栏与卡片间距)
|
|
195
195
|
- _TablePage(@kne/current-lib_table-page)[import * as _TablePage from "@kne/table-page"],(@kne/current-lib_table-page/dist/index.css),antd(antd),_ReactFilter(@kne/react-filter)[import * as _ReactFilter from "@kne/react-filter"],(@kne/react-filter/dist/index.css)
|
|
196
196
|
|
|
197
197
|
```jsx
|
|
@@ -472,6 +472,10 @@ const Tips = () => (
|
|
|
472
472
|
<Tag style={TIP_TAG_STYLE} color="red">PC 卡片</Tag>
|
|
473
473
|
传入 <code>renderCard</code>(签名同 <code>renderMobile</code>)后,工具栏 <code>buttonGroup</code> 前出现表格/卡片切换按钮,状态按 <code>name</code> 持久化到 localStorage;卡片模式下外框透明、默认触底下拉加载(<code>pagination.forcePagination</code> 可改回分页);<code>forceCard</code> 强制卡片并隐藏切换按钮;移动端忽略。
|
|
474
474
|
</div>
|
|
475
|
+
<div>
|
|
476
|
+
<Tag style={TIP_TAG_STYLE} color="lime">Table 下拉加载</Tag>
|
|
477
|
+
PC Table 默认底部分页;设置 <code>pagination.forceLoadMore</code> 可在不切换卡片的情况下触底下拉(与 <code>forcePagination</code> 同时为 true 时以后者为准)。开启后勿再设 Table <code>scroll.y</code>。
|
|
478
|
+
</div>
|
|
475
479
|
</div>
|
|
476
480
|
);
|
|
477
481
|
|
|
@@ -527,6 +531,7 @@ const BaseExample = () => {
|
|
|
527
531
|
const tableRef = React.useRef();
|
|
528
532
|
const [empty, setEmpty] = useState(false);
|
|
529
533
|
const [cardForcePagination, setCardForcePagination] = useState(false);
|
|
534
|
+
const [tableForceLoadMore, setTableForceLoadMore] = useState(false);
|
|
530
535
|
const [renderType, setRenderType] = useState('Table');
|
|
531
536
|
const emptyRef = React.useRef(false);
|
|
532
537
|
const slowReloadRef = React.useRef(false);
|
|
@@ -606,13 +611,22 @@ const BaseExample = () => {
|
|
|
606
611
|
<span>卡片模式数据加载:</span>
|
|
607
612
|
<Switch checkedChildren="分页" unCheckedChildren="下拉加载" checked={cardForcePagination} onChange={setCardForcePagination} />
|
|
608
613
|
</Flex>
|
|
614
|
+
<Flex align="center" gap={8}>
|
|
615
|
+
<span>Table 数据加载:</span>
|
|
616
|
+
<Switch
|
|
617
|
+
checkedChildren="下拉加载"
|
|
618
|
+
unCheckedChildren="分页"
|
|
619
|
+
checked={tableForceLoadMore}
|
|
620
|
+
onChange={setTableForceLoadMore}
|
|
621
|
+
/>
|
|
622
|
+
</Flex>
|
|
609
623
|
</Space>
|
|
610
624
|
<TablePage
|
|
611
625
|
ref={tableRef}
|
|
612
626
|
name="demo-employee-table"
|
|
613
627
|
renderType={renderType}
|
|
614
|
-
sticky={renderType === 'Table'}
|
|
615
|
-
scroll={renderType === 'Table' ? { x: 1600, y: 400 } : undefined}
|
|
628
|
+
sticky={renderType === 'Table' && !tableForceLoadMore}
|
|
629
|
+
scroll={renderType === 'Table' ? (tableForceLoadMore ? { x: 1600 } : { x: 1600, y: 400 }) : undefined}
|
|
616
630
|
size="large"
|
|
617
631
|
renderMobile
|
|
618
632
|
renderCard={renderEmployeeCard}
|
|
@@ -713,7 +727,8 @@ const BaseExample = () => {
|
|
|
713
727
|
showSizeChanger: true,
|
|
714
728
|
showQuickJumper: true,
|
|
715
729
|
pageSizeOptions: ['10', '20', '50', '100'],
|
|
716
|
-
forcePagination: cardForcePagination
|
|
730
|
+
forcePagination: cardForcePagination,
|
|
731
|
+
forceLoadMore: tableForceLoadMore
|
|
717
732
|
}}
|
|
718
733
|
dataFormat={data => ({
|
|
719
734
|
list: data.pageData,
|
|
@@ -4219,6 +4234,7 @@ render(<BaseExample />);
|
|
|
4219
4234
|
| onChange | function | - | 自定义翻页回调 `(page, size) => void`,传入后覆盖默认请求逻辑 |
|
|
4220
4235
|
| onShowSizeChange | function | - | 每页条数变化回调,组件内部已处理持久化 |
|
|
4221
4236
|
| forcePagination | boolean | `false` | 移动端(`renderMobile` 激活时)与 PC 卡片模式(`renderCard` 生效且切到卡片视图时)默认改为触底下拉加载;设为 `true` 时强制仍使用分页器 |
|
|
4237
|
+
| forceLoadMore | boolean | `false` | PC Table / TableView(非移动端、非卡片视图)默认使用底部分页器;设为 `true` 时改为触底下拉加载并隐藏分页器。与 `forcePagination` 同时为 `true` 时以 `forcePagination` 为准。触底由外层 `ScrollLoader` 驱动,勿再给 Table 设 `scroll.y`(表体内滚动会导致触底不触发);弹窗等场景请给外层定高 |
|
|
4222
4238
|
| mergeList | function | 合并 `pageData` | 下拉加载时合并新旧数据 `(prev, next) => data`,需与 `loader` 返回结构一致 |
|
|
4223
4239
|
| loadMore | object | - | 透传给 `@kne/scroll-loader` 的额外配置(如 `completeTips`、`maxFullCount`) |
|
|
4224
4240
|
| mobile | object | - | 强制分页时的移动端分页器微调(如 `showSizeChanger`、`showLessItems`) |
|
|
@@ -4333,6 +4349,8 @@ render(<BaseExample />);
|
|
|
4333
4349
|
|
|
4334
4350
|
移动端(`renderMobile` 激活)默认使用触底下拉加载(`@kne/scroll-loader` + `react-fetch` 的 `loadMore`),不再展示分页器。若需移动端仍使用分页,请设置 `pagination.forcePagination: true`。
|
|
4335
4351
|
|
|
4352
|
+
PC 桌面 Table 默认使用底部分页器。若需在 Table 模式下也触底下拉加载,请设置 `pagination.forceLoadMore: true`(与 `forcePagination` 同时开启时以后者为准)。
|
|
4353
|
+
|
|
4336
4354
|
#### renderType
|
|
4337
4355
|
|
|
4338
4356
|
通过 `renderType` 选择内部使用的表格组件,默认为 `Table`:
|
|
@@ -4369,7 +4387,7 @@ render(<BaseExample />);
|
|
|
4369
4387
|
|
|
4370
4388
|
### TableView
|
|
4371
4389
|
|
|
4372
|
-
表格视图组件,基于
|
|
4390
|
+
表格视图组件,基于 CSS Grid 布局实现。实现位于 `@kne/table-view`,本包为兼容继续导出。
|
|
4373
4391
|
|
|
4374
4392
|
#### 属性
|
|
4375
4393
|
|
|
@@ -4548,7 +4566,7 @@ const sortedData = useMemo(() => Table.sortDataSource(dataSource, sort, columns)
|
|
|
4548
4566
|
|
|
4549
4567
|
### Table
|
|
4550
4568
|
|
|
4551
|
-
表格组件,以 antd `Table`
|
|
4569
|
+
表格组件,以 antd `Table` 作为展示层。实现位于 `@kne/table-view`,本包为兼容继续导出。外层 API 与 `TableView` 保持一致。
|
|
4552
4570
|
|
|
4553
4571
|
#### 属性
|
|
4554
4572
|
|
package/dist/index.css
CHANGED
|
@@ -524,8 +524,17 @@
|
|
|
524
524
|
line-height: 24px;
|
|
525
525
|
}
|
|
526
526
|
|
|
527
|
+
.kne-table-page_vbwMg {
|
|
528
|
+
max-width: 100%;
|
|
529
|
+
min-width: 0;
|
|
530
|
+
}
|
|
527
531
|
.kne-table-page_vbwMg .value-display,
|
|
528
532
|
.kne-table-page_vbwMg .title {
|
|
533
|
+
box-sizing: border-box;
|
|
534
|
+
display: flex !important;
|
|
535
|
+
width: 100%;
|
|
536
|
+
max-width: 100%;
|
|
537
|
+
min-width: 0;
|
|
529
538
|
padding: 0 16px 6px !important;
|
|
530
539
|
margin-top: 0 !important;
|
|
531
540
|
line-height: 22px !important;
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["style.module.scss","tableToolbar.module.scss"],"names":[],"mappings":"AAAA;EACE,YAAY;EACZ,oBAAoB;EACpB,kBAAkB;EAClB,yBAAyB;AAC3B;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,YAAY;EACZ,eAAe;AACjB;;AAEA;EACE,aAAa;EACb,4BAA4B;EAC5B,WAAW;EACX,YAAY;EACZ,eAAe;AACjB;AACA;EACE,gBAAgB;EAChB,YAAY;EACZ,eAAe;AACjB;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,gBAAgB;EAChB,WAAW;AACb;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,YAAY;AACd;AACA;EACE,wFAAwF;AAC1F;;AAEA;EACE,yBAAyB;EACzB,yCAAyC;EACzC,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gCAAgC;AAClC;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,MAAM;EACN,YAAY;EACZ,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,qDAAqD;EACrD,mDAAmD;AACrD;AACA;EACE,wFAAwF;AAC1F;AACA;EACE,YAAY;EACZ,gBAAgB;AAClB;AACA;EACE,uCAAuC;EACvC,qCAAqC;AACvC;AACA;EACE,8DAA8D;AAChE;AACA;EACE,4DAA4D;AAC9D;AACA;EACE,8DAA8D;AAChE;AACA;EACE,4DAA4D;AAC9D;AACA;EACE,8DAA8D;EAC9D,4DAA4D;AAC9D;AACA;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8B;EAC9B,mBAAmB;AACrB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;EAChB,QAAQ;AACV;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;;;EAGE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,iBAAiB;AACnB;AACA;;EAEE,4BAA4B;AAC9B","file":"index.css","sourcesContent":[":global(.loading-container.is-loading) {\n opacity: 0.5;\n pointer-events: none;\n position: relative;\n transition: opacity 300ms;\n}\n\n.table-page {\n display: flex;\n flex-direction: column;\n min-width: 0;\n max-width: 100%;\n}\n\n.fetch-stack {\n display: grid;\n grid-template-areas: \"stack\";\n width: 100%;\n min-width: 0;\n max-width: 100%;\n}\n.fetch-stack > * {\n grid-area: stack;\n min-width: 0;\n max-width: 100%;\n}\n\n.toolbar-height-reserve {\n visibility: hidden;\n pointer-events: none;\n min-height: 41px;\n width: 100%;\n}\n\n.table-page-tabs-outer {\n margin-bottom: 8px;\n}\n\n.table-content {\n min-width: 0;\n}\n.table-content :global(.info-page-table) {\n scroll-margin-top: var(--scroll-top-inset, var(--sticky-offset, var(--nav-height, 0px)));\n}\n\n.table-with-toolbar {\n border: 1px solid #f0f0f0;\n border-radius: var(--radius-default, 2px);\n overflow: hidden;\n}\n.table-with-toolbar.is-sticky {\n overflow: visible;\n}\n.table-with-toolbar.is-loading-shell {\n border-bottom: 1px solid #f0f0f0;\n}\n.table-with-toolbar.is-mobile-render {\n display: flex;\n flex-direction: column;\n gap: 0;\n border: none;\n border-radius: 0;\n overflow: visible;\n}\n.table-with-toolbar.is-mobile-render.is-loading-shell {\n border-bottom: none;\n}\n.table-with-toolbar :global(.table-page-toolbar) {\n border-start-start-radius: var(--radius-default, 2px);\n border-start-end-radius: var(--radius-default, 2px);\n}\n.table-with-toolbar :global(.table-page-toolbar-section) {\n scroll-margin-top: var(--scroll-top-inset, var(--sticky-offset, var(--nav-height, 0px)));\n}\n.table-with-toolbar :global(.info-page-table) {\n border: none;\n border-radius: 0;\n}\n.table-with-toolbar :global(.info-page-table) :global(.ant-table-header) {\n border-start-start-radius: 0 !important;\n border-start-end-radius: 0 !important;\n}\n.table-with-toolbar :global(.info-page-table):not(.has-summary) :global(.ant-table-tbody > tr:last-child > .ant-table-cell:first-child) {\n border-end-start-radius: var(--radius-default, 2px) !important;\n}\n.table-with-toolbar :global(.info-page-table):not(.has-summary) :global(.ant-table-tbody > tr:last-child > .ant-table-cell:last-child) {\n border-end-end-radius: var(--radius-default, 2px) !important;\n}\n.table-with-toolbar :global(.info-page-table).has-summary :global(.ant-table-summary > tr > .ant-table-cell:first-child) {\n border-end-start-radius: var(--radius-default, 2px) !important;\n}\n.table-with-toolbar :global(.info-page-table).has-summary :global(.ant-table-summary > tr > .ant-table-cell:last-child) {\n border-end-end-radius: var(--radius-default, 2px) !important;\n}\n.table-with-toolbar :global(.info-page-table) :global(.ant-table-placeholder > .ant-table-cell) {\n border-end-start-radius: var(--radius-default, 2px) !important;\n border-end-end-radius: var(--radius-default, 2px) !important;\n}\n.table-with-toolbar :global(.table-page-toolbar-section--has-value) + :global(.info-page-table) :global(.ant-table-thead > tr.info-page-table-header:first-child > .ant-table-cell) {\n border-top: none !important;\n}\n.table-with-toolbar :global(.ant-table-thead > tr.info-page-table-header:first-child > .ant-table-cell:first-child) {\n border-start-start-radius: 0 !important;\n}\n.table-with-toolbar :global(.ant-table-thead > tr.info-page-table-header:first-child > .ant-table-cell:last-child) {\n border-start-end-radius: 0 !important;\n}\n\n.table-cell-skeleton {\n max-width: 120px !important;\n height: 16px !important;\n min-height: 16px !important;\n vertical-align: top;\n}\n\n.table-skeleton-spin {\n width: 100%;\n min-height: 160px;\n}\n\n.table-in-toolbar {\n border: none !important;\n border-radius: 0 !important;\n}\n\n.table-with-toolbar.is-card-mode {\n border-color: transparent;\n}\n.table-with-toolbar.is-card-mode :global(.table-page-toolbar) {\n padding-inline: 0;\n}\n\n.is-card-render {\n padding-top: 12px;\n}\n\n.card-mode-toggle {\n flex-shrink: 0;\n background: var(--bg-color-grey-1, #f5f5f5);\n}\n.card-mode-toggle :global(.ant-segmented-item:not(.ant-segmented-item-selected)) {\n color: var(--font-color-grey, #666);\n}\n.card-mode-toggle :global(.ant-segmented-item-selected) {\n color: var(--primary-color, #1677ff);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);\n}\n\n.is-mobile-render {\n border: none !important;\n border-radius: 0 !important;\n}\n\n.mobile-load-more {\n width: 100%;\n}\n\n.pagination:global(.ant-pagination) {\n margin-top: 16px;\n display: flex;\n justify-content: flex-end;\n}\n.pagination:global(.ant-pagination).is-mobile-render {\n justify-content: center;\n}\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-prev),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-item),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-jump-prev),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-jump-next),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-next) {\n margin: 0 !important;\n margin-inline: 0 !important;\n border: none !important;\n box-shadow: none !important;\n}\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-prev .ant-pagination-item-link),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-next .ant-pagination-item-link),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-jump-prev .ant-pagination-item-link),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-jump-next .ant-pagination-item-link),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-item a) {\n border: none !important;\n box-shadow: none !important;\n}\n\n.total_text {\n color: var(--primary-color, #1677ff);\n font-weight: 500;\n padding: 0 2px;\n}",".kne-responsive-boundary {\n position: relative;\n}\n\n.kne-responsive-scroll {\n overflow: auto;\n}\n\n:root {\n --kne-viewport-width: 100vw;\n --kne-viewport-height: 100dvh;\n --kne-viewport-inline-size: 100vw;\n --kne-viewport-block-size: 100dvh;\n}\n\n.kne-responsive-boundary {\n --kne-viewport-width: 100vw;\n --kne-viewport-height: 100dvh;\n --kne-viewport-inline-size: 100vw;\n --kne-viewport-block-size: 100dvh;\n}\n\n.table-toolbar-section {\n border-bottom: 1px solid #f0f0f0;\n position: relative;\n z-index: 2;\n}\n.table-toolbar-section.has-value-display .table-toolbar {\n padding-bottom: 0;\n}\n.table-toolbar-section.has-value-display .table-toolbar-value-display {\n padding-top: 8px;\n}\n.table-toolbar-section.has-value-display .table-toolbar-value-display :global(.title),\n.table-toolbar-section.has-value-display .table-toolbar-value-display :global(.value-display),\n.table-toolbar-section.has-value-display .table-toolbar-value-display > :global(.ant-space) {\n border-bottom: none !important;\n}\n.table-toolbar-section.has-value-display .table-toolbar-value-display :global(.line) {\n border-bottom: none !important;\n}\n\n.table-toolbar {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 16px;\n box-sizing: border-box;\n}\n.table-toolbar:not(.is-mobile) {\n min-height: 41px;\n}\n\n.table-toolbar-batch {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.table-toolbar-batch-btn {\n border: none !important;\n box-shadow: none !important;\n background: var(--bg-color-grey-1, #f5f5f5) !important;\n}\n.table-toolbar-batch-btn:not(:disabled):hover {\n border: none !important;\n background: var(--bg-color-grey-2, #f0f0f0) !important;\n color: var(--font-color, rgba(0, 0, 0, 0.88)) !important;\n}\n.table-toolbar-batch-btn:disabled {\n border: none !important;\n background: var(--bg-color-grey-1, #f5f5f5) !important;\n color: var(--font-color-grey-2, #cccccc) !important;\n}\n\n.table-toolbar:not(.is-mobile) .table-toolbar-batch-btn {\n min-width: 96px;\n}\n\n.table-toolbar-batch-clear-btn {\n border: none !important;\n box-shadow: none !important;\n background: var(--bg-color-grey-1, #f5f5f5) !important;\n color: var(--font-color, rgba(0, 0, 0, 0.88)) !important;\n}\n.table-toolbar-batch-clear-btn:not(:disabled):hover {\n border: none !important;\n background: var(--bg-color-grey-2, #f0f0f0) !important;\n color: var(--font-color, rgba(0, 0, 0, 0.88)) !important;\n}\n\n.table-toolbar-actions {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n margin-left: auto;\n min-width: 0;\n}\n\n.table-toolbar-button-group {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n max-width: 100%;\n min-width: 0;\n}\n\n.table-toolbar-search {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n}\n.table-toolbar-search:not(.table-toolbar-search-row) .table-toolbar-search-input,\n.table-toolbar-search:not(.table-toolbar-search-row) :global(.ant-input-search),\n.table-toolbar-search:not(.table-toolbar-search-row) :global(.ant-input-group-wrapper) {\n width: 180px !important;\n max-width: 100%;\n}\n.table-toolbar-search :global(.ant-input-search) {\n background: var(--bg-color-grey-1, #f5f5f5);\n border-radius: var(--radius-default, 2px);\n}\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-affix-wrapper),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input) {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n}\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-affix-wrapper:hover),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-affix-wrapper-focused),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-affix-wrapper-focused-within),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input:hover),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input:focus) {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n}\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-search-btn),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-search-button),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-btn) {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n color: var(--font-color-grey, #666) !important;\n}\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-search-btn):not(:disabled):hover,\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-search-button):not(:disabled):hover,\n.table-toolbar-search :global(.ant-input-search) :global(.ant-btn):not(:disabled):hover {\n border: none !important;\n box-shadow: none !important;\n background: var(--bg-color-grey-2, #f0f0f0) !important;\n color: var(--font-color, rgba(0, 0, 0, 0.88)) !important;\n}\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-group-addon) {\n border: none !important;\n background: transparent !important;\n padding: 0;\n}\n\n.table-page-tabs {\n background: transparent;\n padding: 0;\n position: relative;\n z-index: 2;\n}\n.table-page-tabs :global(.ant-tabs) {\n margin-bottom: 0;\n}\n.table-page-tabs :global(.ant-tabs-nav) {\n margin-bottom: 0 !important;\n}\n.table-page-tabs :global(.ant-tabs-nav)::before {\n border-bottom-color: #f0f0f0;\n}\n.table-page-tabs :global(.ant-tabs-tab) {\n padding: 10px 0 !important;\n}\n.table-page-tabs.is-mobile-render {\n padding-inline: 0;\n}\n\n@container kne-responsive (max-width: 768px) {\n .table-toolbar.is-mobile {\n flex-direction: column;\n align-items: stretch;\n gap: 8px;\n }\n .table-toolbar-mobile-actions {\n width: 100%;\n min-width: 0;\n display: flex;\n align-items: center;\n }\n .table-toolbar-section.has-mobile-search .table-toolbar-search-row {\n padding: 8px 16px 0;\n }\n .table-toolbar-section.has-mobile-search .table-toolbar.is-mobile {\n padding-top: 8px;\n }\n .table-toolbar-section.has-mobile-search.has-mobile-search-only .table-toolbar-search-row {\n padding-bottom: 8px;\n }\n .table-toolbar-section.has-mobile-search.is-mobile-render.has-mobile-search-only .table-toolbar-search-row {\n padding-bottom: 0;\n }\n .table-toolbar-section.has-tabs .table-page-tabs {\n padding-inline: 16px;\n }\n}\n.table-toolbar-mobile-filter-row {\n width: 100%;\n max-width: 100%;\n min-width: 0;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 8px;\n}\n.table-toolbar-mobile-filter-row .table-toolbar-filter {\n flex: 1 1 0;\n min-width: 0;\n max-width: 100%;\n}\n.table-toolbar-mobile-filter-row .table-toolbar-filter-inner {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n overflow: hidden;\n}\n.table-toolbar-mobile-filter-row .table-toolbar-filter-inner :global(.title) {\n display: flex !important;\n max-width: 100%;\n min-width: 0;\n}\n.table-toolbar-mobile-filter-row .table-toolbar-filter-inner :global(.list),\n.table-toolbar-mobile-filter-row .table-toolbar-filter-inner :global(.list-scroll-wrap),\n.table-toolbar-mobile-filter-row .table-toolbar-filter-inner :global(.list-scroll) {\n min-width: 0 !important;\n max-width: 100%;\n}\n.table-toolbar-mobile-filter-row .table-toolbar-button-group {\n flex-shrink: 0;\n margin-left: auto;\n}\n\n.table-toolbar-search-row {\n display: block;\n width: 100%;\n margin-left: 0;\n flex-shrink: 1;\n box-sizing: border-box;\n}\n.table-toolbar-search-row.table-toolbar-search {\n margin-left: 0;\n}\n.table-toolbar-search-row .table-toolbar-search-input,\n.table-toolbar-search-row :global(.ant-input-search),\n.table-toolbar-search-row :global(.ant-input-group-wrapper),\n.table-toolbar-search-row :global(.ant-input-group),\n.table-toolbar-search-row :global(.ant-input-affix-wrapper) {\n width: 100% !important;\n max-width: 100%;\n box-sizing: border-box;\n}\n\n.table-toolbar-filter {\n flex: 1;\n min-width: 0;\n max-width: 100%;\n display: flex;\n align-items: center;\n}\n\n.table-toolbar-divider {\n flex-shrink: 0;\n width: 1px;\n align-self: center;\n height: 16px;\n background: #f0f0f0;\n}\n\n.table-toolbar-filter-outer {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n}\n\n.table-toolbar-filter-inner {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n}\n\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.title),\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.more-row),\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.children) {\n width: 100%;\n padding: 0 !important;\n margin: 0 !important;\n line-height: 24px !important;\n border-bottom: none !important;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.children:not(:has(.ant-space-item))) {\n display: none !important;\n height: 0 !important;\n min-height: 0 !important;\n overflow: hidden !important;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.title > .ant-space-item:first-child) {\n display: none !important;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.label) {\n display: none !important;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.list) {\n width: 100%;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.line) {\n min-height: 24px;\n gap: 8px;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.item-wrap) {\n height: 24px;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.item) {\n height: 24px;\n padding: 0 8px;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.item) :global(.ant-space-item) {\n line-height: 24px;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.item-label) {\n line-height: 24px;\n}\n\n.table-toolbar-value-display :global(.value-display),\n.table-toolbar-value-display :global(.title) {\n padding: 0 16px 6px !important;\n margin-top: 0 !important;\n line-height: 22px !important;\n border-bottom: none !important;\n gap: 8px !important;\n}\n.table-toolbar-value-display :global(.value-display .label) {\n line-height: 22px;\n}\n.table-toolbar-value-display :global(.value-display .line) {\n min-height: 22px;\n gap: 6px;\n}\n.table-toolbar-value-display :global(.value-tag) {\n margin-inline-end: 0;\n}\n\n.table-toolbar-section.is-mobile-render {\n border-bottom: none;\n}\n.table-toolbar-section.is-mobile-render .table-toolbar,\n.table-toolbar-section.is-mobile-render .table-toolbar-search-row,\n.table-toolbar-section.is-mobile-render .table-page-tabs {\n padding-inline: 0;\n}\n.table-toolbar-section.is-mobile-render.has-mobile-search .table-toolbar-search-row {\n padding-inline: 0;\n}\n\n.table-toolbar-value-display.is-mobile-render {\n padding-inline: 0;\n}\n.table-toolbar-value-display.is-mobile-render :global(.value-display),\n.table-toolbar-value-display.is-mobile-render :global(.title) {\n padding-inline: 0 !important;\n}"]}
|
|
1
|
+
{"version":3,"sources":["style.module.scss","tableToolbar.module.scss"],"names":[],"mappings":"AAAA;EACE,YAAY;EACZ,oBAAoB;EACpB,kBAAkB;EAClB,yBAAyB;AAC3B;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,YAAY;EACZ,eAAe;AACjB;;AAEA;EACE,aAAa;EACb,4BAA4B;EAC5B,WAAW;EACX,YAAY;EACZ,eAAe;AACjB;AACA;EACE,gBAAgB;EAChB,YAAY;EACZ,eAAe;AACjB;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,gBAAgB;EAChB,WAAW;AACb;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,YAAY;AACd;AACA;EACE,wFAAwF;AAC1F;;AAEA;EACE,yBAAyB;EACzB,yCAAyC;EACzC,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gCAAgC;AAClC;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,MAAM;EACN,YAAY;EACZ,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,qDAAqD;EACrD,mDAAmD;AACrD;AACA;EACE,wFAAwF;AAC1F;AACA;EACE,YAAY;EACZ,gBAAgB;AAClB;AACA;EACE,uCAAuC;EACvC,qCAAqC;AACvC;AACA;EACE,8DAA8D;AAChE;AACA;EACE,4DAA4D;AAC9D;AACA;EACE,8DAA8D;AAChE;AACA;EACE,4DAA4D;AAC9D;AACA;EACE,8DAA8D;EAC9D,4DAA4D;AAC9D;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,uCAAuC;AACzC;AACA;EACE,qCAAqC;AACvC;;AAEA;EACE,2BAA2B;EAC3B,uBAAuB;EACvB,2BAA2B;EAC3B,mBAAmB;AACrB;;AAEA;EACE,WAAW;EACX,iBAAiB;AACnB;;AAEA;EACE,uBAAuB;EACvB,2BAA2B;AAC7B;;AAEA;EACE,yBAAyB;AAC3B;AAC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;AACnB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,iBAAiB;AACnB;AACA;;EAEE,4BAA4B;AAC9B","file":"index.css","sourcesContent":[":global(.loading-container.is-loading) {\n opacity: 0.5;\n pointer-events: none;\n position: relative;\n transition: opacity 300ms;\n}\n\n.table-page {\n display: flex;\n flex-direction: column;\n min-width: 0;\n max-width: 100%;\n}\n\n.fetch-stack {\n display: grid;\n grid-template-areas: \"stack\";\n width: 100%;\n min-width: 0;\n max-width: 100%;\n}\n.fetch-stack > * {\n grid-area: stack;\n min-width: 0;\n max-width: 100%;\n}\n\n.toolbar-height-reserve {\n visibility: hidden;\n pointer-events: none;\n min-height: 41px;\n width: 100%;\n}\n\n.table-page-tabs-outer {\n margin-bottom: 8px;\n}\n\n.table-content {\n min-width: 0;\n}\n.table-content :global(.info-page-table) {\n scroll-margin-top: var(--scroll-top-inset, var(--sticky-offset, var(--nav-height, 0px)));\n}\n\n.table-with-toolbar {\n border: 1px solid #f0f0f0;\n border-radius: var(--radius-default, 2px);\n overflow: hidden;\n}\n.table-with-toolbar.is-sticky {\n overflow: visible;\n}\n.table-with-toolbar.is-loading-shell {\n border-bottom: 1px solid #f0f0f0;\n}\n.table-with-toolbar.is-mobile-render {\n display: flex;\n flex-direction: column;\n gap: 0;\n border: none;\n border-radius: 0;\n overflow: visible;\n}\n.table-with-toolbar.is-mobile-render.is-loading-shell {\n border-bottom: none;\n}\n.table-with-toolbar :global(.table-page-toolbar) {\n border-start-start-radius: var(--radius-default, 2px);\n border-start-end-radius: var(--radius-default, 2px);\n}\n.table-with-toolbar :global(.table-page-toolbar-section) {\n scroll-margin-top: var(--scroll-top-inset, var(--sticky-offset, var(--nav-height, 0px)));\n}\n.table-with-toolbar :global(.info-page-table) {\n border: none;\n border-radius: 0;\n}\n.table-with-toolbar :global(.info-page-table) :global(.ant-table-header) {\n border-start-start-radius: 0 !important;\n border-start-end-radius: 0 !important;\n}\n.table-with-toolbar :global(.info-page-table):not(.has-summary) :global(.ant-table-tbody > tr:last-child > .ant-table-cell:first-child) {\n border-end-start-radius: var(--radius-default, 2px) !important;\n}\n.table-with-toolbar :global(.info-page-table):not(.has-summary) :global(.ant-table-tbody > tr:last-child > .ant-table-cell:last-child) {\n border-end-end-radius: var(--radius-default, 2px) !important;\n}\n.table-with-toolbar :global(.info-page-table).has-summary :global(.ant-table-summary > tr > .ant-table-cell:first-child) {\n border-end-start-radius: var(--radius-default, 2px) !important;\n}\n.table-with-toolbar :global(.info-page-table).has-summary :global(.ant-table-summary > tr > .ant-table-cell:last-child) {\n border-end-end-radius: var(--radius-default, 2px) !important;\n}\n.table-with-toolbar :global(.info-page-table) :global(.ant-table-placeholder > .ant-table-cell) {\n border-end-start-radius: var(--radius-default, 2px) !important;\n border-end-end-radius: var(--radius-default, 2px) !important;\n}\n.table-with-toolbar :global(.table-page-toolbar-section--has-value) + :global(.info-page-table) :global(.ant-table-thead > tr.info-page-table-header:first-child > .ant-table-cell) {\n border-top: none !important;\n}\n.table-with-toolbar :global(.ant-table-thead > tr.info-page-table-header:first-child > .ant-table-cell:first-child) {\n border-start-start-radius: 0 !important;\n}\n.table-with-toolbar :global(.ant-table-thead > tr.info-page-table-header:first-child > .ant-table-cell:last-child) {\n border-start-end-radius: 0 !important;\n}\n\n.table-cell-skeleton {\n max-width: 120px !important;\n height: 16px !important;\n min-height: 16px !important;\n vertical-align: top;\n}\n\n.table-skeleton-spin {\n width: 100%;\n min-height: 160px;\n}\n\n.table-in-toolbar {\n border: none !important;\n border-radius: 0 !important;\n}\n\n.table-with-toolbar.is-card-mode {\n border-color: transparent;\n}\n.table-with-toolbar.is-card-mode :global(.table-page-toolbar) {\n padding-inline: 0;\n}\n\n.is-card-render {\n padding-top: 12px;\n}\n\n.card-mode-toggle {\n flex-shrink: 0;\n background: var(--bg-color-grey-1, #f5f5f5);\n}\n.card-mode-toggle :global(.ant-segmented-item:not(.ant-segmented-item-selected)) {\n color: var(--font-color-grey, #666);\n}\n.card-mode-toggle :global(.ant-segmented-item-selected) {\n color: var(--primary-color, #1677ff);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);\n}\n\n.is-mobile-render {\n border: none !important;\n border-radius: 0 !important;\n}\n\n.mobile-load-more {\n width: 100%;\n}\n\n.pagination:global(.ant-pagination) {\n margin-top: 16px;\n display: flex;\n justify-content: flex-end;\n}\n.pagination:global(.ant-pagination).is-mobile-render {\n justify-content: center;\n}\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-prev),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-item),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-jump-prev),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-jump-next),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-next) {\n margin: 0 !important;\n margin-inline: 0 !important;\n border: none !important;\n box-shadow: none !important;\n}\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-prev .ant-pagination-item-link),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-next .ant-pagination-item-link),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-jump-prev .ant-pagination-item-link),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-jump-next .ant-pagination-item-link),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-item a) {\n border: none !important;\n box-shadow: none !important;\n}\n\n.total_text {\n color: var(--primary-color, #1677ff);\n font-weight: 500;\n padding: 0 2px;\n}",".kne-responsive-boundary {\n position: relative;\n}\n\n.kne-responsive-scroll {\n overflow: auto;\n}\n\n:root {\n --kne-viewport-width: 100vw;\n --kne-viewport-height: 100dvh;\n --kne-viewport-inline-size: 100vw;\n --kne-viewport-block-size: 100dvh;\n}\n\n.kne-responsive-boundary {\n --kne-viewport-width: 100vw;\n --kne-viewport-height: 100dvh;\n --kne-viewport-inline-size: 100vw;\n --kne-viewport-block-size: 100dvh;\n}\n\n.table-toolbar-section {\n border-bottom: 1px solid #f0f0f0;\n position: relative;\n z-index: 2;\n}\n.table-toolbar-section.has-value-display .table-toolbar {\n padding-bottom: 0;\n}\n.table-toolbar-section.has-value-display .table-toolbar-value-display {\n padding-top: 8px;\n}\n.table-toolbar-section.has-value-display .table-toolbar-value-display :global(.title),\n.table-toolbar-section.has-value-display .table-toolbar-value-display :global(.value-display),\n.table-toolbar-section.has-value-display .table-toolbar-value-display > :global(.ant-space) {\n border-bottom: none !important;\n}\n.table-toolbar-section.has-value-display .table-toolbar-value-display :global(.line) {\n border-bottom: none !important;\n}\n\n.table-toolbar {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 16px;\n box-sizing: border-box;\n}\n.table-toolbar:not(.is-mobile) {\n min-height: 41px;\n}\n\n.table-toolbar-batch {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.table-toolbar-batch-btn {\n border: none !important;\n box-shadow: none !important;\n background: var(--bg-color-grey-1, #f5f5f5) !important;\n}\n.table-toolbar-batch-btn:not(:disabled):hover {\n border: none !important;\n background: var(--bg-color-grey-2, #f0f0f0) !important;\n color: var(--font-color, rgba(0, 0, 0, 0.88)) !important;\n}\n.table-toolbar-batch-btn:disabled {\n border: none !important;\n background: var(--bg-color-grey-1, #f5f5f5) !important;\n color: var(--font-color-grey-2, #cccccc) !important;\n}\n\n.table-toolbar:not(.is-mobile) .table-toolbar-batch-btn {\n min-width: 96px;\n}\n\n.table-toolbar-batch-clear-btn {\n border: none !important;\n box-shadow: none !important;\n background: var(--bg-color-grey-1, #f5f5f5) !important;\n color: var(--font-color, rgba(0, 0, 0, 0.88)) !important;\n}\n.table-toolbar-batch-clear-btn:not(:disabled):hover {\n border: none !important;\n background: var(--bg-color-grey-2, #f0f0f0) !important;\n color: var(--font-color, rgba(0, 0, 0, 0.88)) !important;\n}\n\n.table-toolbar-actions {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n margin-left: auto;\n min-width: 0;\n}\n\n.table-toolbar-button-group {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n max-width: 100%;\n min-width: 0;\n}\n\n.table-toolbar-search {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n}\n.table-toolbar-search:not(.table-toolbar-search-row) .table-toolbar-search-input,\n.table-toolbar-search:not(.table-toolbar-search-row) :global(.ant-input-search),\n.table-toolbar-search:not(.table-toolbar-search-row) :global(.ant-input-group-wrapper) {\n width: 180px !important;\n max-width: 100%;\n}\n.table-toolbar-search :global(.ant-input-search) {\n background: var(--bg-color-grey-1, #f5f5f5);\n border-radius: var(--radius-default, 2px);\n}\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-affix-wrapper),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input) {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n}\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-affix-wrapper:hover),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-affix-wrapper-focused),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-affix-wrapper-focused-within),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input:hover),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input:focus) {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n}\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-search-btn),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-search-button),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-btn) {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n color: var(--font-color-grey, #666) !important;\n}\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-search-btn):not(:disabled):hover,\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-search-button):not(:disabled):hover,\n.table-toolbar-search :global(.ant-input-search) :global(.ant-btn):not(:disabled):hover {\n border: none !important;\n box-shadow: none !important;\n background: var(--bg-color-grey-2, #f0f0f0) !important;\n color: var(--font-color, rgba(0, 0, 0, 0.88)) !important;\n}\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-group-addon) {\n border: none !important;\n background: transparent !important;\n padding: 0;\n}\n\n.table-page-tabs {\n background: transparent;\n padding: 0;\n position: relative;\n z-index: 2;\n}\n.table-page-tabs :global(.ant-tabs) {\n margin-bottom: 0;\n}\n.table-page-tabs :global(.ant-tabs-nav) {\n margin-bottom: 0 !important;\n}\n.table-page-tabs :global(.ant-tabs-nav)::before {\n border-bottom-color: #f0f0f0;\n}\n.table-page-tabs :global(.ant-tabs-tab) {\n padding: 10px 0 !important;\n}\n.table-page-tabs.is-mobile-render {\n padding-inline: 0;\n}\n\n@container kne-responsive (max-width: 768px) {\n .table-toolbar.is-mobile {\n flex-direction: column;\n align-items: stretch;\n gap: 8px;\n }\n .table-toolbar-mobile-actions {\n width: 100%;\n min-width: 0;\n display: flex;\n align-items: center;\n }\n .table-toolbar-section.has-mobile-search .table-toolbar-search-row {\n padding: 8px 16px 0;\n }\n .table-toolbar-section.has-mobile-search .table-toolbar.is-mobile {\n padding-top: 8px;\n }\n .table-toolbar-section.has-mobile-search.has-mobile-search-only .table-toolbar-search-row {\n padding-bottom: 8px;\n }\n .table-toolbar-section.has-mobile-search.is-mobile-render.has-mobile-search-only .table-toolbar-search-row {\n padding-bottom: 0;\n }\n .table-toolbar-section.has-tabs .table-page-tabs {\n padding-inline: 16px;\n }\n}\n.table-toolbar-mobile-filter-row {\n width: 100%;\n max-width: 100%;\n min-width: 0;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 8px;\n}\n.table-toolbar-mobile-filter-row .table-toolbar-filter {\n flex: 1 1 0;\n min-width: 0;\n max-width: 100%;\n}\n.table-toolbar-mobile-filter-row .table-toolbar-filter-inner {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n overflow: hidden;\n}\n.table-toolbar-mobile-filter-row .table-toolbar-filter-inner :global(.title) {\n display: flex !important;\n max-width: 100%;\n min-width: 0;\n}\n.table-toolbar-mobile-filter-row .table-toolbar-filter-inner :global(.list),\n.table-toolbar-mobile-filter-row .table-toolbar-filter-inner :global(.list-scroll-wrap),\n.table-toolbar-mobile-filter-row .table-toolbar-filter-inner :global(.list-scroll) {\n min-width: 0 !important;\n max-width: 100%;\n}\n.table-toolbar-mobile-filter-row .table-toolbar-button-group {\n flex-shrink: 0;\n margin-left: auto;\n}\n\n.table-toolbar-search-row {\n display: block;\n width: 100%;\n margin-left: 0;\n flex-shrink: 1;\n box-sizing: border-box;\n}\n.table-toolbar-search-row.table-toolbar-search {\n margin-left: 0;\n}\n.table-toolbar-search-row .table-toolbar-search-input,\n.table-toolbar-search-row :global(.ant-input-search),\n.table-toolbar-search-row :global(.ant-input-group-wrapper),\n.table-toolbar-search-row :global(.ant-input-group),\n.table-toolbar-search-row :global(.ant-input-affix-wrapper) {\n width: 100% !important;\n max-width: 100%;\n box-sizing: border-box;\n}\n\n.table-toolbar-filter {\n flex: 1;\n min-width: 0;\n max-width: 100%;\n display: flex;\n align-items: center;\n}\n\n.table-toolbar-divider {\n flex-shrink: 0;\n width: 1px;\n align-self: center;\n height: 16px;\n background: #f0f0f0;\n}\n\n.table-toolbar-filter-outer {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n}\n\n.table-toolbar-filter-inner {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n}\n\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.title),\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.more-row),\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.children) {\n width: 100%;\n padding: 0 !important;\n margin: 0 !important;\n line-height: 24px !important;\n border-bottom: none !important;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.children:not(:has(.ant-space-item))) {\n display: none !important;\n height: 0 !important;\n min-height: 0 !important;\n overflow: hidden !important;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.title > .ant-space-item:first-child) {\n display: none !important;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.label) {\n display: none !important;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.list) {\n width: 100%;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.line) {\n min-height: 24px;\n gap: 8px;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.item-wrap) {\n height: 24px;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.item) {\n height: 24px;\n padding: 0 8px;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.item) :global(.ant-space-item) {\n line-height: 24px;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.item-label) {\n line-height: 24px;\n}\n\n.table-toolbar-value-display {\n max-width: 100%;\n min-width: 0;\n}\n.table-toolbar-value-display :global(.value-display),\n.table-toolbar-value-display :global(.title) {\n box-sizing: border-box;\n display: flex !important;\n width: 100%;\n max-width: 100%;\n min-width: 0;\n padding: 0 16px 6px !important;\n margin-top: 0 !important;\n line-height: 22px !important;\n border-bottom: none !important;\n gap: 8px !important;\n}\n.table-toolbar-value-display :global(.value-display .label) {\n line-height: 22px;\n}\n.table-toolbar-value-display :global(.value-display .line) {\n min-height: 22px;\n gap: 6px;\n}\n.table-toolbar-value-display :global(.value-tag) {\n margin-inline-end: 0;\n}\n\n.table-toolbar-section.is-mobile-render {\n border-bottom: none;\n}\n.table-toolbar-section.is-mobile-render .table-toolbar,\n.table-toolbar-section.is-mobile-render .table-toolbar-search-row,\n.table-toolbar-section.is-mobile-render .table-page-tabs {\n padding-inline: 0;\n}\n.table-toolbar-section.is-mobile-render.has-mobile-search .table-toolbar-search-row {\n padding-inline: 0;\n}\n\n.table-toolbar-value-display.is-mobile-render {\n padding-inline: 0;\n}\n.table-toolbar-value-display.is-mobile-render :global(.value-display),\n.table-toolbar-value-display.is-mobile-render :global(.title) {\n padding-inline: 0 !important;\n}"]}
|
package/dist/index.js
CHANGED
|
@@ -1383,7 +1383,9 @@ const TablePageInnerContent = withLocale(_ref3 => {
|
|
|
1383
1383
|
const useMobileLoadMore = isMobileRenderActive && pagination.open && !pagination.forcePagination;
|
|
1384
1384
|
// PC 卡片模式默认下拉加载,pagination.forcePagination 为 true 时仍用分页
|
|
1385
1385
|
const useCardLoadMore = isCardModeActive && pagination.open && !pagination.forcePagination;
|
|
1386
|
-
|
|
1386
|
+
// PC Table:默认分页;pagination.forceLoadMore 强制触底下拉(与 forcePagination 互斥时以后者为准)
|
|
1387
|
+
const useTableLoadMore = !isMobileRenderActive && !isCardModeActive && pagination.open && !!pagination.forceLoadMore && !pagination.forcePagination;
|
|
1388
|
+
const useLoadMoreMode = useMobileLoadMore || useCardLoadMore || useTableLoadMore;
|
|
1387
1389
|
const currentPage = get__default["default"](requestParams, [pagination.paramsType, pagination.currentName], 1);
|
|
1388
1390
|
const currentPageSize = Number(get__default["default"](requestParams, [pagination.paramsType, pagination.pageSizeName], pagination.pageSize)) || pagination.pageSize || 20;
|
|
1389
1391
|
const loadMoreNoMore = !formatData.total || currentPage * currentPageSize >= formatData.total;
|