openxiangda 1.0.220 → 1.0.221

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.
@@ -43345,7 +43345,6 @@ var isUnauthorizedPublicSessionError = (error) => {
43345
43345
  import {
43346
43346
  Alert as Alert5,
43347
43347
  Button as Button9,
43348
- Card as Card2,
43349
43348
  Checkbox as Checkbox2,
43350
43349
  DatePicker,
43351
43350
  Drawer,
@@ -43366,6 +43365,16 @@ import {
43366
43365
  message as message3,
43367
43366
  notification
43368
43367
  } from "antd";
43368
+ import {
43369
+ DeleteOutlined,
43370
+ DownOutlined,
43371
+ DownloadOutlined as DownloadOutlined5,
43372
+ HolderOutlined,
43373
+ PlusOutlined as PlusOutlined2,
43374
+ ReloadOutlined as ReloadOutlined5,
43375
+ SettingOutlined,
43376
+ UpOutlined
43377
+ } from "@ant-design/icons";
43369
43378
  import {
43370
43379
  useCallback as useCallback12,
43371
43380
  useEffect as useEffect14,
@@ -43521,7 +43530,8 @@ function renderSearchControl(field) {
43521
43530
  disabled: field.disabled,
43522
43531
  mode: field.type === "multiSelect" ? "multiple" : void 0,
43523
43532
  options: field.options,
43524
- placeholder
43533
+ placeholder,
43534
+ showSearch: { optionFilterProp: "label" }
43525
43535
  }
43526
43536
  );
43527
43537
  }
@@ -43597,6 +43607,7 @@ function AdminList(props) {
43597
43607
  const [form] = Form3.useForm();
43598
43608
  const [messageApi, messageHolder] = message3.useMessage();
43599
43609
  const [notificationApi, notificationHolder] = notification.useNotification();
43610
+ const [modalApi, modalHolder] = Modal6.useModal();
43600
43611
  const sourceKey = dataSource.key || "anonymous";
43601
43612
  const [rawPreference, setRawPreference] = useState15(null);
43602
43613
  const [preference, setPreference] = useState15(
@@ -43640,7 +43651,11 @@ function AdminList(props) {
43640
43651
  const [draggedSearchKey, setDraggedSearchKey] = useState15("");
43641
43652
  const selectedKeysRef = useRef8([]);
43642
43653
  const dataSourceRef = useRef8(dataSource);
43654
+ const onQueryChangeRef = useRef8(onQueryChange);
43655
+ const onSelectionChangeRef = useRef8(onSelectionChange);
43643
43656
  dataSourceRef.current = dataSource;
43657
+ onQueryChangeRef.current = onQueryChange;
43658
+ onSelectionChangeRef.current = onSelectionChange;
43644
43659
  const definitionFingerprint = JSON.stringify({
43645
43660
  columns: columns.map((column) => ({
43646
43661
  key: column.key,
@@ -43669,9 +43684,9 @@ function AdminList(props) {
43669
43684
  selectedRowsRef.current.clear();
43670
43685
  selectedKeysRef.current = [];
43671
43686
  setSelectedKeys([]);
43672
- onSelectionChange?.({ rowKeys: [], rows: [] });
43687
+ onSelectionChangeRef.current?.({ rowKeys: [], rows: [] });
43673
43688
  },
43674
- [messageApi, onSelectionChange]
43689
+ [messageApi]
43675
43690
  );
43676
43691
  useEffect14(() => {
43677
43692
  if (!controlledSelectedKeys) return;
@@ -43702,11 +43717,11 @@ function AdminList(props) {
43702
43717
  for (const key of disabledKeys) selectedRowsRef.current.delete(key);
43703
43718
  selectedKeysRef.current = nextKeys;
43704
43719
  setSelectedKeys(nextKeys);
43705
- onSelectionChange?.({
43720
+ onSelectionChangeRef.current?.({
43706
43721
  rowKeys: nextKeys,
43707
43722
  rows: nextKeys.map((key) => selectedRowsRef.current.get(key)).filter(Boolean)
43708
43723
  });
43709
- }, [onSelectionChange, rowKey, rowSelectable, rows]);
43724
+ }, [rowKey, rowSelectable, rows]);
43710
43725
  useEffect14(() => {
43711
43726
  let active = true;
43712
43727
  setReady(false);
@@ -43790,7 +43805,7 @@ function AdminList(props) {
43790
43805
  if (!ready) return;
43791
43806
  setLoading(true);
43792
43807
  setError(null);
43793
- onQueryChange?.(query);
43808
+ onQueryChangeRef.current?.(query);
43794
43809
  try {
43795
43810
  const result = await dataSourceRef.current.query(query);
43796
43811
  setRows(result.rows || []);
@@ -43806,7 +43821,7 @@ function AdminList(props) {
43806
43821
  } finally {
43807
43822
  setLoading(false);
43808
43823
  }
43809
- }, [onQueryChange, query, ready]);
43824
+ }, [query, ready]);
43810
43825
  useEffect14(() => {
43811
43826
  if (!ready) return;
43812
43827
  const fingerprint = queryFingerprint(query, sourceKey);
@@ -43855,7 +43870,7 @@ function AdminList(props) {
43855
43870
  );
43856
43871
  const title = definition.sortable ? /* @__PURE__ */ jsxs13(Space4, { size: 4, children: [
43857
43872
  /* @__PURE__ */ jsx17("span", { children: definition.title }),
43858
- sortablePriority.has(sortField) ? /* @__PURE__ */ jsx17(Tag4, { bordered: false, color: "blue", children: sortablePriority.get(sortField) }) : null
43873
+ sortablePriority.has(sortField) ? /* @__PURE__ */ jsx17(Tag4, { color: "blue", variant: "filled", children: sortablePriority.get(sortField) }) : null
43859
43874
  ] }) : definition.title;
43860
43875
  return {
43861
43876
  key: definition.key,
@@ -43953,7 +43968,7 @@ function AdminList(props) {
43953
43968
  }
43954
43969
  setSelectedKeys(nextKeys);
43955
43970
  selectedKeysRef.current = nextKeys;
43956
- onSelectionChange?.({
43971
+ onSelectionChangeRef.current?.({
43957
43972
  rowKeys: nextKeys,
43958
43973
  rows: nextKeys.map((key) => selectedRowsRef.current.get(key)).filter(Boolean)
43959
43974
  });
@@ -44153,7 +44168,7 @@ function AdminList(props) {
44153
44168
  {
44154
44169
  key: "search",
44155
44170
  label: "\u641C\u7D22\u9879",
44156
- children: /* @__PURE__ */ jsxs13(Space4, { direction: "vertical", size: 12, style: { width: "100%" }, children: [
44171
+ children: /* @__PURE__ */ jsxs13(Space4, { orientation: "vertical", size: 12, style: { width: "100%" }, children: [
44157
44172
  /* @__PURE__ */ jsxs13(Space4, { children: [
44158
44173
  /* @__PURE__ */ jsx17("span", { children: "\u9ED8\u8BA4\u5C55\u793A" }),
44159
44174
  /* @__PURE__ */ jsx17(
@@ -44189,12 +44204,11 @@ function AdminList(props) {
44189
44204
  ),
44190
44205
  style: {
44191
44206
  alignItems: "center",
44192
- border: "1px solid rgba(5, 5, 5, 0.08)",
44193
- borderRadius: 8,
44207
+ borderBottom: "1px solid rgba(5, 5, 5, 0.06)",
44194
44208
  display: "grid",
44195
- gap: 8,
44196
- gridTemplateColumns: "28px 1fr auto",
44197
- padding: "10px 12px"
44209
+ gap: 12,
44210
+ gridTemplateColumns: "24px 1fr auto",
44211
+ padding: "12px 4px"
44198
44212
  },
44199
44213
  children: [
44200
44214
  /* @__PURE__ */ jsx17(
@@ -44202,7 +44216,7 @@ function AdminList(props) {
44202
44216
  {
44203
44217
  "aria-label": `\u62D6\u52A8\u7B2C ${index + 1} \u9879`,
44204
44218
  style: { color: "#8c8c8c", cursor: "grab" },
44205
- children: "\u62D6\u52A8"
44219
+ children: /* @__PURE__ */ jsx17(HolderOutlined, {})
44206
44220
  }
44207
44221
  ),
44208
44222
  /* @__PURE__ */ jsx17("span", { children: definition.label }),
@@ -44233,7 +44247,7 @@ function AdminList(props) {
44233
44247
  {
44234
44248
  key: "columns",
44235
44249
  label: "\u5217\u8BBE\u7F6E",
44236
- children: /* @__PURE__ */ jsxs13(Space4, { direction: "vertical", size: 12, style: { width: "100%" }, children: [
44250
+ children: /* @__PURE__ */ jsxs13(Space4, { orientation: "vertical", size: 12, style: { width: "100%" }, children: [
44237
44251
  /* @__PURE__ */ jsx17(
44238
44252
  Input4,
44239
44253
  {
@@ -44267,12 +44281,11 @@ function AdminList(props) {
44267
44281
  ),
44268
44282
  style: {
44269
44283
  alignItems: "center",
44270
- border: "1px solid rgba(5, 5, 5, 0.08)",
44271
- borderRadius: 8,
44284
+ borderBottom: "1px solid rgba(5, 5, 5, 0.06)",
44272
44285
  display: "grid",
44273
- gap: 8,
44274
- gridTemplateColumns: "32px 1fr 72px 116px",
44275
- padding: "8px 10px"
44286
+ gap: 12,
44287
+ gridTemplateColumns: "24px minmax(0, 1fr) 76px 116px",
44288
+ padding: "12px 4px"
44276
44289
  },
44277
44290
  children: [
44278
44291
  /* @__PURE__ */ jsx17(
@@ -44280,7 +44293,7 @@ function AdminList(props) {
44280
44293
  {
44281
44294
  "aria-label": `\u62D6\u52A8\u7B2C ${index + 1} \u5217`,
44282
44295
  style: { color: "#8c8c8c", cursor: "grab" },
44283
- children: "\u62D6\u52A8"
44296
+ children: /* @__PURE__ */ jsx17(HolderOutlined, {})
44284
44297
  }
44285
44298
  ),
44286
44299
  /* @__PURE__ */ jsxs13(
@@ -44293,7 +44306,7 @@ function AdminList(props) {
44293
44306
  }),
44294
44307
  children: [
44295
44308
  definition.title,
44296
- locked ? /* @__PURE__ */ jsx17(Tag4, { bordered: false, style: { marginInlineStart: 4 }, children: "\u9501\u5B9A" }) : null
44309
+ locked ? /* @__PURE__ */ jsx17(Tag4, { variant: "filled", style: { marginInlineStart: 4 }, children: "\u9501\u5B9A" }) : null
44297
44310
  ]
44298
44311
  }
44299
44312
  ),
@@ -44334,7 +44347,7 @@ function AdminList(props) {
44334
44347
  {
44335
44348
  key: "sort",
44336
44349
  label: "\u6392\u5E8F",
44337
- children: /* @__PURE__ */ jsxs13(Space4, { direction: "vertical", size: 12, style: { width: "100%" }, children: [
44350
+ children: /* @__PURE__ */ jsxs13(Space4, { orientation: "vertical", size: 12, style: { width: "100%" }, children: [
44338
44351
  /* @__PURE__ */ jsx17(
44339
44352
  Alert5,
44340
44353
  {
@@ -44348,15 +44361,14 @@ function AdminList(props) {
44348
44361
  {
44349
44362
  style: {
44350
44363
  alignItems: "center",
44351
- border: "1px solid rgba(5, 5, 5, 0.08)",
44352
- borderRadius: 8,
44364
+ borderBottom: "1px solid rgba(5, 5, 5, 0.06)",
44353
44365
  display: "grid",
44354
- gap: 8,
44366
+ gap: 12,
44355
44367
  gridTemplateColumns: "28px 1fr 100px auto",
44356
- padding: 10
44368
+ padding: "12px 4px"
44357
44369
  },
44358
44370
  children: [
44359
- /* @__PURE__ */ jsx17(Tag4, { bordered: false, color: "blue", children: index + 1 }),
44371
+ /* @__PURE__ */ jsx17(Tag4, { color: "blue", variant: "filled", children: index + 1 }),
44360
44372
  /* @__PURE__ */ jsx17(
44361
44373
  Select3,
44362
44374
  {
@@ -44393,8 +44405,9 @@ function AdminList(props) {
44393
44405
  Button9,
44394
44406
  {
44395
44407
  danger: true,
44408
+ icon: /* @__PURE__ */ jsx17(DeleteOutlined, {}),
44396
44409
  size: "small",
44397
- type: "link",
44410
+ type: "text",
44398
44411
  onClick: () => setSettingsDraft((current) => ({
44399
44412
  ...current,
44400
44413
  sorts: (current.sorts || []).filter(
@@ -44413,6 +44426,8 @@ function AdminList(props) {
44413
44426
  {
44414
44427
  block: true,
44415
44428
  disabled: (settingsDraft.sorts || []).length >= columns.filter((column) => column.sortable).length,
44429
+ icon: /* @__PURE__ */ jsx17(PlusOutlined2, {}),
44430
+ type: "text",
44416
44431
  onClick: () => {
44417
44432
  const used = new Set(
44418
44433
  (settingsDraft.sorts || []).map((sort) => sort.field)
@@ -44440,8 +44455,8 @@ function AdminList(props) {
44440
44455
  {
44441
44456
  key: "display",
44442
44457
  label: "\u663E\u793A",
44443
- children: /* @__PURE__ */ jsxs13(Space4, { direction: "vertical", size: 20, style: { width: "100%" }, children: [
44444
- /* @__PURE__ */ jsxs13(Space4, { direction: "vertical", children: [
44458
+ children: /* @__PURE__ */ jsxs13(Space4, { orientation: "vertical", size: 20, style: { width: "100%" }, children: [
44459
+ /* @__PURE__ */ jsxs13(Space4, { orientation: "vertical", children: [
44445
44460
  /* @__PURE__ */ jsx17("span", { children: "\u8868\u683C\u5BC6\u5EA6" }),
44446
44461
  /* @__PURE__ */ jsx17(
44447
44462
  Segmented,
@@ -44459,7 +44474,7 @@ function AdminList(props) {
44459
44474
  }
44460
44475
  )
44461
44476
  ] }),
44462
- /* @__PURE__ */ jsxs13(Space4, { direction: "vertical", children: [
44477
+ /* @__PURE__ */ jsxs13(Space4, { orientation: "vertical", children: [
44463
44478
  /* @__PURE__ */ jsx17("span", { children: "\u9ED8\u8BA4\u6BCF\u9875" }),
44464
44479
  /* @__PURE__ */ jsx17(
44465
44480
  Segmented,
@@ -44557,59 +44572,87 @@ function AdminList(props) {
44557
44572
  return /* @__PURE__ */ jsxs13("div", { className, style, children: [
44558
44573
  messageHolder,
44559
44574
  notificationHolder,
44560
- /* @__PURE__ */ jsxs13(Space4, { direction: "vertical", size: 12, style: { width: "100%" }, children: [
44561
- searchFields.length ? /* @__PURE__ */ jsx17(Card2, { size: "small", children: /* @__PURE__ */ jsx17(
44562
- Form3,
44575
+ modalHolder,
44576
+ /* @__PURE__ */ jsxs13(Space4, { orientation: "vertical", size: 16, style: { width: "100%" }, children: [
44577
+ searchFields.length ? /* @__PURE__ */ jsx17(
44578
+ "div",
44563
44579
  {
44564
- form,
44565
- layout: "vertical",
44566
- onFinish: applySearch,
44567
- children: /* @__PURE__ */ jsxs13(
44568
- "div",
44580
+ style: {
44581
+ background: "#fff",
44582
+ border: "1px solid #e8edf3",
44583
+ borderRadius: 8,
44584
+ overflowX: "auto",
44585
+ padding: "18px 20px"
44586
+ },
44587
+ children: /* @__PURE__ */ jsx17(
44588
+ Form3,
44569
44589
  {
44570
- style: {
44571
- alignItems: "end",
44572
- display: "grid",
44573
- gap: 12,
44574
- gridTemplateColumns: "repeat(auto-fit, minmax(180px, 1fr))"
44575
- },
44576
- children: [
44577
- visibleSearchFields.map((field) => /* @__PURE__ */ jsx17(
44578
- Form3.Item,
44579
- {
44580
- label: field.label,
44581
- name: field.render ? void 0 : field.key,
44582
- style: { marginBottom: 0 },
44583
- children: field.render ? /* @__PURE__ */ jsx17(Form3.Item, { noStyle: true, shouldUpdate: true, children: () => field.render?.({
44584
- disabled: field.disabled,
44585
- value: form.getFieldValue(field.key),
44586
- onChange: (value) => form.setFieldValue(field.key, value)
44587
- }) }) : renderSearchControl(field)
44590
+ form,
44591
+ layout: "vertical",
44592
+ onFinish: applySearch,
44593
+ children: /* @__PURE__ */ jsxs13(
44594
+ "div",
44595
+ {
44596
+ style: {
44597
+ alignItems: "end",
44598
+ display: "grid",
44599
+ gap: 12,
44600
+ gridTemplateColumns: "repeat(4, minmax(180px, 1fr)) minmax(256px, auto)",
44601
+ minWidth: 1040
44588
44602
  },
44589
- field.key
44590
- )),
44591
- /* @__PURE__ */ jsx17(Form3.Item, { style: { marginBottom: 0 }, children: /* @__PURE__ */ jsxs13(Space4, { wrap: true, children: [
44592
- /* @__PURE__ */ jsx17(Button9, { htmlType: "submit", type: "primary", children: "\u67E5\u8BE2" }),
44593
- /* @__PURE__ */ jsx17(Button9, { onClick: resetSearch, children: "\u91CD\u7F6E" }),
44594
- searchFields.length > (preference.defaultVisibleSearchCount || defaultVisibleSearchCount) ? /* @__PURE__ */ jsx17(
44595
- Button9,
44596
- {
44597
- type: "link",
44598
- onClick: () => setExpanded((current) => !current),
44599
- children: expanded ? "\u6536\u8D77" : "\u66F4\u591A\u7B5B\u9009"
44600
- }
44601
- ) : null
44602
- ] }) })
44603
- ]
44603
+ children: [
44604
+ visibleSearchFields.map((field) => /* @__PURE__ */ jsx17(
44605
+ Form3.Item,
44606
+ {
44607
+ label: field.label,
44608
+ name: field.render ? void 0 : field.key,
44609
+ style: { marginBottom: 0 },
44610
+ children: field.render ? /* @__PURE__ */ jsx17(Form3.Item, { noStyle: true, shouldUpdate: true, children: () => field.render?.({
44611
+ disabled: field.disabled,
44612
+ value: form.getFieldValue(field.key),
44613
+ onChange: (value) => form.setFieldValue(field.key, value)
44614
+ }) }) : renderSearchControl(field)
44615
+ },
44616
+ field.key
44617
+ )),
44618
+ /* @__PURE__ */ jsx17(
44619
+ Form3.Item,
44620
+ {
44621
+ style: {
44622
+ justifySelf: "end",
44623
+ gridColumn: 5,
44624
+ marginBottom: 0,
44625
+ minWidth: 256
44626
+ },
44627
+ children: /* @__PURE__ */ jsxs13(Space4, { size: 8, children: [
44628
+ /* @__PURE__ */ jsx17(Button9, { htmlType: "submit", type: "primary", children: "\u67E5\u8BE2" }),
44629
+ /* @__PURE__ */ jsx17(Button9, { onClick: resetSearch, children: "\u91CD\u7F6E" }),
44630
+ searchFields.length > (preference.defaultVisibleSearchCount || defaultVisibleSearchCount) ? /* @__PURE__ */ jsx17(
44631
+ Button9,
44632
+ {
44633
+ icon: expanded ? /* @__PURE__ */ jsx17(UpOutlined, {}) : /* @__PURE__ */ jsx17(DownOutlined, {}),
44634
+ iconPlacement: "end",
44635
+ type: "link",
44636
+ onClick: () => setExpanded((current) => !current),
44637
+ children: expanded ? "\u6536\u8D77" : "\u66F4\u591A\u7B5B\u9009"
44638
+ }
44639
+ ) : null
44640
+ ] })
44641
+ }
44642
+ )
44643
+ ]
44644
+ }
44645
+ )
44604
44646
  }
44605
44647
  )
44606
44648
  }
44607
- ) }) : null,
44649
+ ) : null,
44608
44650
  /* @__PURE__ */ jsx17(
44609
- Card2,
44651
+ "div",
44610
44652
  {
44611
- styles: { body: { padding: 12 } },
44612
- size: "small",
44653
+ style: {
44654
+ padding: "2px 0 0"
44655
+ },
44613
44656
  children: /* @__PURE__ */ jsxs13(
44614
44657
  Space4,
44615
44658
  {
@@ -44636,14 +44679,37 @@ function AdminList(props) {
44636
44679
  )
44637
44680
  }))
44638
44681
  },
44682
+ trigger: ["click"],
44639
44683
  children: /* @__PURE__ */ jsx17(Button9, { disabled: selectedKeys.length === 0, children: "\u6279\u91CF\u64CD\u4F5C" })
44640
44684
  }
44641
44685
  ) : null,
44642
- exportable && dataSource.createExportTask ? /* @__PURE__ */ jsx17(Dropdown2, { menu: { items: exportMenuItems }, children: /* @__PURE__ */ jsx17(Button9, { loading: exporting, children: "\u5BFC\u51FA" }) }) : null
44686
+ exportable && dataSource.createExportTask ? /* @__PURE__ */ jsx17(Dropdown2, { menu: { items: exportMenuItems }, trigger: ["click"], children: /* @__PURE__ */ jsx17(
44687
+ Button9,
44688
+ {
44689
+ icon: /* @__PURE__ */ jsx17(DownloadOutlined5, {}),
44690
+ loading: exporting,
44691
+ children: "\u5BFC\u51FA"
44692
+ }
44693
+ ) }) : null
44643
44694
  ] }),
44644
44695
  /* @__PURE__ */ jsxs13(Space4, { children: [
44645
- /* @__PURE__ */ jsx17(Button9, { onClick: () => void loadData(), children: "\u5237\u65B0" }),
44646
- /* @__PURE__ */ jsx17(Button9, { onClick: openSettings, children: "\u5217\u8868\u8BBE\u7F6E" })
44696
+ /* @__PURE__ */ jsx17(
44697
+ Button9,
44698
+ {
44699
+ "aria-label": "\u5237\u65B0\u5217\u8868",
44700
+ icon: /* @__PURE__ */ jsx17(ReloadOutlined5, {}),
44701
+ title: "\u5237\u65B0",
44702
+ onClick: () => void loadData()
44703
+ }
44704
+ ),
44705
+ /* @__PURE__ */ jsx17(
44706
+ Button9,
44707
+ {
44708
+ icon: /* @__PURE__ */ jsx17(SettingOutlined, {}),
44709
+ onClick: openSettings,
44710
+ children: "\u5217\u8868\u8BBE\u7F6E"
44711
+ }
44712
+ )
44647
44713
  ] })
44648
44714
  ]
44649
44715
  }
@@ -44677,29 +44743,40 @@ function AdminList(props) {
44677
44743
  }
44678
44744
  ) : null,
44679
44745
  /* @__PURE__ */ jsx17(
44680
- Table2,
44746
+ "div",
44681
44747
  {
44682
- bordered: preference.showBorders,
44683
- columns: resolvedColumns,
44684
- dataSource: rows,
44685
- loading,
44686
- locale: { emptyText: localeEmpty },
44687
- pagination: tablePagination,
44688
- rowClassName: (_row, index) => preference.striped && index % 2 === 1 ? "admin-list-row-striped" : "",
44689
- rowKey: (row) => getRowKey(rowKey, row),
44690
- rowSelection: selectable ? {
44691
- preserveSelectedRowKeys: preserveSelectionAcrossPages,
44692
- selectedRowKeys: selectedKeys,
44693
- getCheckboxProps: (row) => ({
44694
- disabled: rowSelectable ? !rowSelectable(row) : false,
44695
- title: rowSelectionReason?.(row)
44696
- }),
44697
- onChange: handleSelectionChange
44698
- } : void 0,
44699
- scroll: { x: "max-content" },
44700
- size: preference.density,
44701
- onChange: handleTableChange,
44702
- onRow
44748
+ style: {
44749
+ background: "#fff",
44750
+ border: "1px solid #edf0f4",
44751
+ borderRadius: 8,
44752
+ overflow: "hidden"
44753
+ },
44754
+ children: /* @__PURE__ */ jsx17(
44755
+ Table2,
44756
+ {
44757
+ bordered: preference.showBorders,
44758
+ columns: resolvedColumns,
44759
+ dataSource: rows,
44760
+ loading,
44761
+ locale: { emptyText: localeEmpty },
44762
+ pagination: tablePagination,
44763
+ rowClassName: (_row, index) => preference.striped && index % 2 === 1 ? "admin-list-row-striped" : "",
44764
+ rowKey: (row) => getRowKey(rowKey, row),
44765
+ rowSelection: selectable ? {
44766
+ preserveSelectedRowKeys: preserveSelectionAcrossPages,
44767
+ selectedRowKeys: selectedKeys,
44768
+ getCheckboxProps: (row) => ({
44769
+ disabled: rowSelectable ? !rowSelectable(row) : false,
44770
+ title: rowSelectionReason?.(row)
44771
+ }),
44772
+ onChange: handleSelectionChange
44773
+ } : void 0,
44774
+ scroll: { x: "max-content" },
44775
+ size: preference.density,
44776
+ onChange: handleTableChange,
44777
+ onRow
44778
+ }
44779
+ )
44703
44780
  }
44704
44781
  )
44705
44782
  ] }),
@@ -44715,7 +44792,7 @@ function AdminList(props) {
44715
44792
  /* @__PURE__ */ jsx17(
44716
44793
  Button9,
44717
44794
  {
44718
- onClick: () => Modal6.confirm({
44795
+ onClick: () => modalApi.confirm({
44719
44796
  title: "\u6062\u590D\u7CFB\u7EDF\u9ED8\u8BA4\u8BBE\u7F6E\uFF1F",
44720
44797
  content: "\u5F53\u524D\u8D26\u53F7\u4FDD\u5B58\u7684\u5217\u8868\u914D\u7F6E\u5C06\u88AB\u6E05\u9664\u3002",
44721
44798
  okText: "\u6062\u590D",
@@ -44748,10 +44825,10 @@ function AdminList(props) {
44748
44825
  }
44749
44826
  )
44750
44827
  ] }),
44751
- width: 420,
44828
+ size: 420,
44752
44829
  onClose: () => {
44753
44830
  if (JSON.stringify(settingsDraft) !== JSON.stringify(preference)) {
44754
- Modal6.confirm({
44831
+ modalApi.confirm({
44755
44832
  title: "\u653E\u5F03\u672A\u4FDD\u5B58\u7684\u8BBE\u7F6E\uFF1F",
44756
44833
  content: "\u5F53\u524D\u8C03\u6574\u5C1A\u672A\u5E94\u7528\uFF0C\u5173\u95ED\u540E\u5C06\u4E22\u5931\u3002",
44757
44834
  okText: "\u653E\u5F03\u4FEE\u6539",
@@ -44775,7 +44852,7 @@ function AdminList(props) {
44775
44852
  title: "\u5BFC\u51FA\u5168\u90E8\u6570\u636E",
44776
44853
  onCancel: () => setExportConfirmOpen(false),
44777
44854
  onOk: () => void executeExport("all"),
44778
- children: /* @__PURE__ */ jsxs13(Space4, { direction: "vertical", size: 12, style: { width: "100%" }, children: [
44855
+ children: /* @__PURE__ */ jsxs13(Space4, { orientation: "vertical", size: 12, style: { width: "100%" }, children: [
44779
44856
  /* @__PURE__ */ jsx17("div", { children: "\u6570\u636E\u8303\u56F4\uFF1A\u5F53\u524D\u67E5\u8BE2\u7ED3\u679C" }),
44780
44857
  /* @__PURE__ */ jsxs13("div", { children: [
44781
44858
  "\u9884\u8BA1\u6570\u91CF\uFF1A",