pro-design-vue 1.2.10 → 1.2.12

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.
Files changed (51) hide show
  1. package/dist/index.full.js +172 -149
  2. package/dist/index.full.min.js +6 -6
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +8 -8
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +172 -149
  7. package/es/components/table/src/components/InteralTable.vue.d.ts +1 -1
  8. package/es/components/table/src/components/PaginationConfig.d.ts +4 -0
  9. package/es/index.d.ts +4 -0
  10. package/es/packages/components/config-provider/src/config-provider-container.vue2.mjs +1 -0
  11. package/es/packages/components/config-provider/src/config-provider-container.vue2.mjs.map +1 -1
  12. package/es/packages/components/drawer/src/drawer.vue2.mjs +65 -57
  13. package/es/packages/components/drawer/src/drawer.vue2.mjs.map +1 -1
  14. package/es/packages/components/modal/src/modal.vue2.mjs +78 -74
  15. package/es/packages/components/modal/src/modal.vue2.mjs.map +1 -1
  16. package/es/packages/components/table/src/components/Body/BodyRow.vue.mjs.map +1 -1
  17. package/es/packages/components/table/src/components/Body/BodyRow.vue2.mjs +2 -2
  18. package/es/packages/components/table/src/components/Body/BodyRow.vue2.mjs.map +1 -1
  19. package/es/packages/components/table/src/components/InteralTable.vue.mjs.map +1 -1
  20. package/es/packages/components/table/src/components/InteralTable.vue2.mjs +10 -2
  21. package/es/packages/components/table/src/components/InteralTable.vue2.mjs.map +1 -1
  22. package/es/packages/components/table/src/components/Table.mjs +6 -5
  23. package/es/packages/components/table/src/components/Table.mjs.map +1 -1
  24. package/es/packages/components/table/src/hooks/useFetchData.mjs +9 -8
  25. package/es/packages/components/table/src/hooks/useFetchData.mjs.map +1 -1
  26. package/es/version.d.ts +1 -1
  27. package/es/version.mjs +1 -1
  28. package/es/version.mjs.map +1 -1
  29. package/lib/components/table/src/components/InteralTable.vue.d.ts +1 -1
  30. package/lib/components/table/src/components/PaginationConfig.d.ts +4 -0
  31. package/lib/index.d.ts +4 -0
  32. package/lib/packages/components/config-provider/src/config-provider-container.vue2.js +1 -0
  33. package/lib/packages/components/config-provider/src/config-provider-container.vue2.js.map +1 -1
  34. package/lib/packages/components/drawer/src/drawer.vue2.js +64 -56
  35. package/lib/packages/components/drawer/src/drawer.vue2.js.map +1 -1
  36. package/lib/packages/components/modal/src/modal.vue2.js +78 -74
  37. package/lib/packages/components/modal/src/modal.vue2.js.map +1 -1
  38. package/lib/packages/components/table/src/components/Body/BodyRow.vue.js.map +1 -1
  39. package/lib/packages/components/table/src/components/Body/BodyRow.vue2.js +2 -2
  40. package/lib/packages/components/table/src/components/Body/BodyRow.vue2.js.map +1 -1
  41. package/lib/packages/components/table/src/components/InteralTable.vue.js.map +1 -1
  42. package/lib/packages/components/table/src/components/InteralTable.vue2.js +10 -2
  43. package/lib/packages/components/table/src/components/InteralTable.vue2.js.map +1 -1
  44. package/lib/packages/components/table/src/components/Table.js +6 -5
  45. package/lib/packages/components/table/src/components/Table.js.map +1 -1
  46. package/lib/packages/components/table/src/hooks/useFetchData.js +9 -8
  47. package/lib/packages/components/table/src/hooks/useFetchData.js.map +1 -1
  48. package/lib/version.d.ts +1 -1
  49. package/lib/version.js +1 -1
  50. package/lib/version.js.map +1 -1
  51. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- /*! Pro Design Vue v1.2.10 */
1
+ /*! Pro Design Vue v1.2.12 */
2
2
 
3
3
  import { Modal, theme as theme$1, ConfigProvider, App, Button as Button$1, Tooltip, Popconfirm, Dropdown, Menu, Slider, Drawer, Input, InputNumber, Form as Form$1, Space, Textarea, Select, TreeSelect, Checkbox as Checkbox$1, CheckboxGroup, RadioGroup, Radio as Radio$1, Cascader, Switch, Rate, DatePicker, RangePicker, TimePicker, TimeRangePicker, Upload, FormItemRest, Spin, message, Row as Row$1, Col, FormItem as FormItem$3, Steps, Popover, MenuItem, SubMenu, Empty, Badge, Tag, Pagination, InputSearch, Tree, Card, Tabs, TabPane } from 'ant-design-vue';
4
4
  import { inject, ref, getCurrentInstance, nextTick, h, reactive, defineComponent, createVNode, isVNode, Fragment, cloneVNode, provide, watch, computed, renderSlot, createPropsRestProxy, createBlock, openBlock, unref, mergeProps, withCtx, normalizeProps, guardReactiveProps, shallowRef, shallowReadonly, toValue, getCurrentScope, onScopeDispose, onMounted, hasInjectionContext, isRef, toRefs as toRefs$1, customRef, toRef as toRef$1, readonly, watchEffect, toRaw, createElementBlock, createCommentVNode, resolveDynamicComponent, createElementVNode, normalizeStyle, toDisplayString, normalizeClass, createSlots, useAttrs, useTemplateRef, defineAsyncComponent, Teleport, onUnmounted, Comment as Comment$1, useSlots, useModel, withModifiers, mergeModels, renderList, camelize, isReactive, onActivated, onDeactivated, onBeforeUnmount, triggerRef, resolveDirective, withDirectives, vShow, render as render$1, resolveComponent, createTextVNode, vModelText } from 'vue';
@@ -30,7 +30,7 @@ const SCROLL_FIXED_CLASS = `_scroll__fixed_`;
30
30
  const DEFAULT_NAMESPACE = "pro";
31
31
  const DEFAULT_LOCALE = "zh-CN";
32
32
 
33
- const version$1 = "1.2.10";
33
+ const version$1 = "1.2.12";
34
34
 
35
35
  const makeInstaller = (components = []) => {
36
36
  const install = (app) => {
@@ -8412,6 +8412,7 @@ var _sfc_main$Y = /* @__PURE__ */ defineComponent({
8412
8412
  proPrefixCls: computed(() => props.proPrefixCls),
8413
8413
  intl: computed(() => props.intl),
8414
8414
  locale: computed(() => props.locale),
8415
+ dark: computed(() => props.dark),
8415
8416
  contentOffsetTop: computed(() => props.contentOffsetTop || contentOffsetTop.value),
8416
8417
  setContentOffsetTop: (offsetTop) => {
8417
8418
  contentOffsetTop.value = offsetTop;
@@ -13440,73 +13441,81 @@ var _sfc_main$T = /* @__PURE__ */ defineComponent({
13440
13441
  height: height.value,
13441
13442
  onClose: handleClose
13442
13443
  }), createSlots({
13443
- title: withCtx(() => [
13444
- renderSlot(_ctx.$slots, "title", {}, () => [
13445
- createElementVNode(
13446
- "div",
13447
- {
13448
- class: normalizeClass(`${unref(prefixCls)}-title`)
13449
- },
13450
- toDisplayString(_ctx.title),
13451
- 3
13452
- /* TEXT, CLASS */
13453
- )
13454
- ]),
13455
- renderSlot(_ctx.$slots, "description", {}, () => [
13456
- createElementVNode(
13457
- "div",
13458
- {
13459
- class: normalizeClass(`${unref(prefixCls)}-description`)
13460
- },
13461
- toDisplayString(_ctx.description),
13462
- 3
13463
- /* TEXT, CLASS */
13464
- )
13465
- ])
13466
- ]),
13467
- extra: withCtx(() => [
13468
- renderSlot(_ctx.$slots, "extra"),
13469
- mergeShowFullscreen.value && !unref(isMobile) ? (openBlock(), createBlock(unref(ProButton), {
13470
- key: 0,
13471
- class: normalizeClass(`${unref(prefixCls)}-fullscreen`),
13472
- size: "small",
13473
- shape: "circle",
13474
- type: "text",
13475
- onClick: handleFullScreen
13476
- }, {
13477
- icon: withCtx(() => [
13478
- !fullscreen.value ? (openBlock(), createBlock(unref(FullscreenOutlined), { key: 0 })) : (openBlock(), createBlock(unref(FullscreenExitOutlined), { key: 1 }))
13479
- ]),
13480
- _: 1
13481
- /* STABLE */
13482
- }, 8, ["class"])) : createCommentVNode("v-if", true),
13483
- _ctx.closable ? (openBlock(), createBlock(unref(ProButton), {
13484
- key: 1,
13485
- class: normalizeClass(`${unref(prefixCls)}-close`),
13486
- size: "small",
13487
- shape: "circle",
13488
- type: "text",
13489
- onClick: handleBtnClose
13490
- }, {
13491
- icon: withCtx(() => [
13492
- createVNode(unref(CloseOutlined))
13493
- ]),
13494
- _: 1
13495
- /* STABLE */
13496
- }, 8, ["class"])) : createCommentVNode("v-if", true)
13497
- ]),
13498
13444
  default: withCtx(() => [
13499
13445
  renderSlot(_ctx.$slots, "default")
13500
13446
  ]),
13501
13447
  _: 2
13502
13448
  /* DYNAMIC */
13503
13449
  }, [
13450
+ _ctx.title || _ctx.$slots.title ? {
13451
+ name: "title",
13452
+ fn: withCtx(() => [
13453
+ renderSlot(_ctx.$slots, "title", {}, () => [
13454
+ createElementVNode(
13455
+ "div",
13456
+ {
13457
+ class: normalizeClass(`${unref(prefixCls)}-title`)
13458
+ },
13459
+ toDisplayString(_ctx.title),
13460
+ 3
13461
+ /* TEXT, CLASS */
13462
+ )
13463
+ ]),
13464
+ renderSlot(_ctx.$slots, "description", {}, () => [
13465
+ createElementVNode(
13466
+ "div",
13467
+ {
13468
+ class: normalizeClass(`${unref(prefixCls)}-description`)
13469
+ },
13470
+ toDisplayString(_ctx.description),
13471
+ 3
13472
+ /* TEXT, CLASS */
13473
+ )
13474
+ ])
13475
+ ]),
13476
+ key: "0"
13477
+ } : void 0,
13478
+ _ctx.title || _ctx.$slots.title ? {
13479
+ name: "extra",
13480
+ fn: withCtx(() => [
13481
+ renderSlot(_ctx.$slots, "extra"),
13482
+ mergeShowFullscreen.value && !unref(isMobile) ? (openBlock(), createBlock(unref(ProButton), {
13483
+ key: 0,
13484
+ class: normalizeClass(`${unref(prefixCls)}-fullscreen`),
13485
+ size: "small",
13486
+ shape: "circle",
13487
+ type: "text",
13488
+ onClick: handleFullScreen
13489
+ }, {
13490
+ icon: withCtx(() => [
13491
+ !fullscreen.value ? (openBlock(), createBlock(unref(FullscreenOutlined), { key: 0 })) : (openBlock(), createBlock(unref(FullscreenExitOutlined), { key: 1 }))
13492
+ ]),
13493
+ _: 1
13494
+ /* STABLE */
13495
+ }, 8, ["class"])) : createCommentVNode("v-if", true),
13496
+ _ctx.closable ? (openBlock(), createBlock(unref(ProButton), {
13497
+ key: 1,
13498
+ class: normalizeClass(`${unref(prefixCls)}-close`),
13499
+ size: "small",
13500
+ shape: "circle",
13501
+ type: "text",
13502
+ onClick: handleBtnClose
13503
+ }, {
13504
+ icon: withCtx(() => [
13505
+ createVNode(unref(CloseOutlined))
13506
+ ]),
13507
+ _: 1
13508
+ /* STABLE */
13509
+ }, 8, ["class"])) : createCommentVNode("v-if", true)
13510
+ ]),
13511
+ key: "1"
13512
+ } : void 0,
13504
13513
  _ctx.$slots.footer ? {
13505
13514
  name: "footer",
13506
13515
  fn: withCtx(() => [
13507
13516
  renderSlot(_ctx.$slots, "footer")
13508
13517
  ]),
13509
- key: "0"
13518
+ key: "2"
13510
13519
  } : void 0
13511
13520
  ]), 1040, ["root-class-name", "width", "height"]);
13512
13521
  };
@@ -16411,91 +16420,95 @@ var _sfc_main$S = /* @__PURE__ */ defineComponent({
16411
16420
  style: modalStyle.value,
16412
16421
  onCancel: handleClose
16413
16422
  }), createSlots({
16414
- title: withCtx(() => [
16415
- createElementVNode(
16416
- "div",
16417
- {
16418
- ref: "modalHeaderRef",
16419
- class: normalizeClass(`${unref(prefixCls)}-header`)
16420
- },
16421
- [
16422
- renderSlot(_ctx.$slots, "title", {}, () => [
16423
- createElementVNode(
16424
- "div",
16425
- {
16426
- class: normalizeClass(`${unref(prefixCls)}-title`)
16427
- },
16428
- toDisplayString(_ctx.title),
16429
- 3
16430
- /* TEXT, CLASS */
16431
- )
16432
- ]),
16433
- renderSlot(_ctx.$slots, "description", {}, () => [
16434
- createElementVNode(
16435
- "div",
16436
- {
16437
- class: normalizeClass(`${unref(prefixCls)}-description`)
16438
- },
16439
- toDisplayString(_ctx.description),
16440
- 3
16441
- /* TEXT, CLASS */
16442
- )
16443
- ]),
16444
- createElementVNode(
16445
- "div",
16446
- {
16447
- class: normalizeClass(`${unref(prefixCls)}-extra`)
16448
- },
16449
- [
16450
- mergeShowFullscreen.value && !unref(isMobile) ? (openBlock(), createBlock(unref(ProButton), {
16451
- key: 0,
16452
- class: normalizeClass(`${unref(prefixCls)}-fullscreen`),
16453
- size: "small",
16454
- shape: "circle",
16455
- type: "text",
16456
- onClick: handleFullScreen
16457
- }, {
16458
- icon: withCtx(() => [
16459
- !fullscreen.value ? (openBlock(), createBlock(unref(FullscreenOutlined), { key: 0 })) : (openBlock(), createBlock(unref(FullscreenExitOutlined), { key: 1 }))
16460
- ]),
16461
- _: 1
16462
- /* STABLE */
16463
- }, 8, ["class"])) : createCommentVNode("v-if", true),
16464
- _ctx.closable ? (openBlock(), createBlock(unref(ProButton), {
16465
- key: 1,
16466
- class: normalizeClass(`${unref(prefixCls)}-close`),
16467
- size: "small",
16468
- shape: "circle",
16469
- type: "text",
16470
- onClick: handleBtnClose
16471
- }, {
16472
- icon: withCtx(() => [
16473
- createVNode(unref(CloseOutlined))
16474
- ]),
16475
- _: 1
16476
- /* STABLE */
16477
- }, 8, ["class"])) : createCommentVNode("v-if", true)
16478
- ],
16479
- 2
16480
- /* CLASS */
16481
- )
16482
- ],
16483
- 2
16484
- /* CLASS */
16485
- )
16486
- ]),
16487
16423
  default: withCtx(() => [
16488
16424
  renderSlot(_ctx.$slots, "default")
16489
16425
  ]),
16490
16426
  _: 2
16491
16427
  /* DYNAMIC */
16492
16428
  }, [
16429
+ _ctx.title || _ctx.$slots.title ? {
16430
+ name: "title",
16431
+ fn: withCtx(() => [
16432
+ createElementVNode(
16433
+ "div",
16434
+ {
16435
+ ref: "modalHeaderRef",
16436
+ class: normalizeClass(`${unref(prefixCls)}-header`)
16437
+ },
16438
+ [
16439
+ renderSlot(_ctx.$slots, "title", {}, () => [
16440
+ createElementVNode(
16441
+ "div",
16442
+ {
16443
+ class: normalizeClass(`${unref(prefixCls)}-title`)
16444
+ },
16445
+ toDisplayString(_ctx.title),
16446
+ 3
16447
+ /* TEXT, CLASS */
16448
+ )
16449
+ ]),
16450
+ renderSlot(_ctx.$slots, "description", {}, () => [
16451
+ createElementVNode(
16452
+ "div",
16453
+ {
16454
+ class: normalizeClass(`${unref(prefixCls)}-description`)
16455
+ },
16456
+ toDisplayString(_ctx.description),
16457
+ 3
16458
+ /* TEXT, CLASS */
16459
+ )
16460
+ ]),
16461
+ createElementVNode(
16462
+ "div",
16463
+ {
16464
+ class: normalizeClass(`${unref(prefixCls)}-extra`)
16465
+ },
16466
+ [
16467
+ mergeShowFullscreen.value && !unref(isMobile) ? (openBlock(), createBlock(unref(ProButton), {
16468
+ key: 0,
16469
+ class: normalizeClass(`${unref(prefixCls)}-fullscreen`),
16470
+ size: "small",
16471
+ shape: "circle",
16472
+ type: "text",
16473
+ onClick: handleFullScreen
16474
+ }, {
16475
+ icon: withCtx(() => [
16476
+ !fullscreen.value ? (openBlock(), createBlock(unref(FullscreenOutlined), { key: 0 })) : (openBlock(), createBlock(unref(FullscreenExitOutlined), { key: 1 }))
16477
+ ]),
16478
+ _: 1
16479
+ /* STABLE */
16480
+ }, 8, ["class"])) : createCommentVNode("v-if", true),
16481
+ _ctx.closable ? (openBlock(), createBlock(unref(ProButton), {
16482
+ key: 1,
16483
+ class: normalizeClass(`${unref(prefixCls)}-close`),
16484
+ size: "small",
16485
+ shape: "circle",
16486
+ type: "text",
16487
+ onClick: handleBtnClose
16488
+ }, {
16489
+ icon: withCtx(() => [
16490
+ createVNode(unref(CloseOutlined))
16491
+ ]),
16492
+ _: 1
16493
+ /* STABLE */
16494
+ }, 8, ["class"])) : createCommentVNode("v-if", true)
16495
+ ],
16496
+ 2
16497
+ /* CLASS */
16498
+ )
16499
+ ],
16500
+ 2
16501
+ /* CLASS */
16502
+ )
16503
+ ]),
16504
+ key: "0"
16505
+ } : void 0,
16493
16506
  _ctx.$slots.footer ? {
16494
16507
  name: "footer",
16495
16508
  fn: withCtx(() => [
16496
16509
  renderSlot(_ctx.$slots, "footer")
16497
16510
  ]),
16498
- key: "0"
16511
+ key: "1"
16499
16512
  } : void 0
16500
16513
  ]), 1040, ["class", "width", "style"]);
16501
16514
  };
@@ -21868,7 +21881,7 @@ const useFetchData = (getData, props) => {
21868
21881
  pollingLoading.value = false;
21869
21882
  };
21870
21883
  const fetchList = async (isPolling) => {
21871
- var _a2, _b, _c, _d;
21884
+ var _a2, _b, _c, _d, _e, _f, _g;
21872
21885
  if (manualRequestRef.value) {
21873
21886
  manualRequestRef.value = false;
21874
21887
  return;
@@ -21880,12 +21893,13 @@ const useFetchData = (getData, props) => {
21880
21893
  }
21881
21894
  const { current, pageSize } = pagination.value;
21882
21895
  const params = { ...innerParams.value, ...formSearch.value };
21883
- if ((props == null ? void 0 : props.pagination) !== false) {
21884
- params.current = current;
21885
- params.pageSize = pageSize;
21896
+ if (contextTablePagination.value !== false) {
21897
+ const { fieldNames } = (_a2 = contextTablePagination.value) != null ? _a2 : {};
21898
+ params[(_b = fieldNames == null ? void 0 : fieldNames.current) != null ? _b : "current"] = current;
21899
+ params[(_c = fieldNames == null ? void 0 : fieldNames.pageSize) != null ? _c : "pageSize"] = pageSize;
21886
21900
  }
21887
21901
  if (keyword.value) {
21888
- params[(_a2 = keywordName.value) != null ? _a2 : "keyword"] = keyword.value;
21902
+ params[(_d = keywordName.value) != null ? _d : "keyword"] = keyword.value;
21889
21903
  }
21890
21904
  try {
21891
21905
  const {
@@ -21893,13 +21907,13 @@ const useFetchData = (getData, props) => {
21893
21907
  success,
21894
21908
  total = 0,
21895
21909
  ...rest
21896
- } = await ((_b = getData.value) == null ? void 0 : _b.call(getData, params, toRaw(sorters.value), toRaw(filter.value))) || {};
21910
+ } = await ((_e = getData.value) == null ? void 0 : _e.call(getData, params, toRaw(sorters.value), toRaw(filter.value))) || {};
21897
21911
  if (success === false) return [];
21898
21912
  setTableDataList(data);
21899
- if (((_c = pagination.value) == null ? void 0 : _c.total) !== total) {
21913
+ if (((_f = pagination.value) == null ? void 0 : _f.total) !== total) {
21900
21914
  pagination.value.total = total || data.length;
21901
21915
  }
21902
- (_d = props.onLoad) == null ? void 0 : _d.call(props, data, rest);
21916
+ (_g = props.onLoad) == null ? void 0 : _g.call(props, data, rest);
21903
21917
  return data;
21904
21918
  } catch (e) {
21905
21919
  if (props.onRequestError === void 0) throw new Error(e);
@@ -31379,8 +31393,8 @@ var _sfc_main$j = defineComponent({
31379
31393
  const nestExpandable = computed(() => tableContext.expandType.value === "nest");
31380
31394
  const hasNestChildren = computed(
31381
31395
  () => {
31382
- var _a;
31383
- return !!(tableContext.childrenColumnName.value && ((_a = props.record) == null ? void 0 : _a[tableContext.childrenColumnName.value]));
31396
+ var _a, _b;
31397
+ return !!(tableContext.childrenColumnName.value && ((_b = (_a = props.record) == null ? void 0 : _a[tableContext.childrenColumnName.value]) == null ? void 0 : _b.length));
31384
31398
  }
31385
31399
  );
31386
31400
  const mergedExpandable = computed(() => rowExpandable.value || nestExpandable.value);
@@ -33063,7 +33077,10 @@ var _sfc_main$g = defineComponent({
33063
33077
  );
33064
33078
  const expandedRowRender = computed(() => props.expandedRowRender);
33065
33079
  const expandType = eagerComputed(
33066
- () => rawData.value.some((column) => column == null ? void 0 : column[childrenColumnName.value]) ? "nest" : expandedRowRender.value ? "row" : null
33080
+ () => rawData.value.some((column) => {
33081
+ var _a;
33082
+ return (_a = column == null ? void 0 : column[childrenColumnName.value]) == null ? void 0 : _a.length;
33083
+ }) ? "nest" : expandedRowRender.value ? "row" : null
33067
33084
  );
33068
33085
  const expandable = eagerComputed(() => !!props.expandedRowRender);
33069
33086
  const columns = useColumns({
@@ -33316,7 +33333,12 @@ var _sfc_main$g = defineComponent({
33316
33333
  );
33317
33334
  };
33318
33335
  const paginationProps = computed(() => {
33319
- return omit(mergedPagination.value, ["position", "onChange", "onShowSizeChange"]);
33336
+ return omit(mergedPagination.value, [
33337
+ "position",
33338
+ "onChange",
33339
+ "onShowSizeChange",
33340
+ "fieldNames"
33341
+ ]);
33320
33342
  });
33321
33343
  const paginationClass = computed(() => {
33322
33344
  return {
@@ -35255,7 +35277,8 @@ var Table = /* @__PURE__ */ defineComponent({
35255
35277
  const tableRef = ref();
35256
35278
  const {
35257
35279
  table,
35258
- prefixCls: antPrefixCls
35280
+ prefixCls: antPrefixCls,
35281
+ dark
35259
35282
  } = useProConfigInject();
35260
35283
  const prefixCls = usePrefixCls("table");
35261
35284
  const {
@@ -35556,7 +35579,7 @@ var Table = /* @__PURE__ */ defineComponent({
35556
35579
  reset
35557
35580
  });
35558
35581
  return () => {
35559
- var _a2, _b, _c, _d;
35582
+ var _a2, _b, _c, _d, _e;
35560
35583
  const {
35561
35584
  expandIcon = slots.expandIcon,
35562
35585
  expandedRowRender = slots.expandedRowRender
@@ -35630,7 +35653,7 @@ var Table = /* @__PURE__ */ defineComponent({
35630
35653
  return tableDom;
35631
35654
  })();
35632
35655
  tableDom = createVNode(Card, mergeProps({
35633
- "bordered": isBordered("table", (_d = props.cardBordered) != null ? _d : (_c = table == null ? void 0 : table.value) == null ? void 0 : _c.cardBordered),
35656
+ "bordered": isBordered("table", (_e = (_d = props.cardBordered) != null ? _d : (_c = table == null ? void 0 : table.value) == null ? void 0 : _c.cardBordered) != null ? _e : dark == null ? void 0 : dark.value),
35634
35657
  "bodyStyle": cardBodyStyle.value
35635
35658
  }, props.cardProps), _isSlot$2(tableDom) ? tableDom : {
35636
35659
  default: () => [_tableDom]
@@ -35643,7 +35666,7 @@ var Table = /* @__PURE__ */ defineComponent({
35643
35666
  }
35644
35667
  }, {
35645
35668
  default: () => {
35646
- var _a3, _b2, _c2;
35669
+ var _a3, _b2, _c2, _d2;
35647
35670
  return [createVNode("div", mergeProps({
35648
35671
  "ref": counter.rootDomRef
35649
35672
  }, attrs, {
@@ -35652,7 +35675,7 @@ var Table = /* @__PURE__ */ defineComponent({
35652
35675
  }), [props.search !== false && !!((_a3 = formItems.value) == null ? void 0 : _a3.length) && createVNode(FormRender, {
35653
35676
  "prefixCls": mergedPrefixCls.value,
35654
35677
  "items": formItems.value,
35655
- "cardBordered": (_c2 = props.cardBordered) != null ? _c2 : (_b2 = table == null ? void 0 : table.value) == null ? void 0 : _b2.cardBordered,
35678
+ "cardBordered": (_d2 = (_c2 = props.cardBordered) != null ? _c2 : (_b2 = table == null ? void 0 : table.value) == null ? void 0 : _b2.cardBordered) != null ? _d2 : dark == null ? void 0 : dark.value,
35656
35679
  "search": props.search,
35657
35680
  "tableShowCard": props.cardProps !== false,
35658
35681
  "loading": formSubmitLoading.value,
@@ -482,7 +482,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
482
482
  cal: import("../hooks/useCal").CalType;
483
483
  selection: import("../hooks/useRowSelection").SelectionsRes;
484
484
  locale: import("vue").ComputedRef<TableLocale>;
485
- paginationProps: import("vue").ComputedRef<Omit<import("pro-design-vue").ProTablePaginationConfig, "onChange" | "position" | "onShowSizeChange">>;
485
+ paginationProps: import("vue").ComputedRef<Omit<import("pro-design-vue").ProTablePaginationConfig, "onChange" | "position" | "fieldNames" | "onShowSizeChange">>;
486
486
  slots: Readonly<{
487
487
  [x: string]: ((...args: any[]) => any) | undefined;
488
488
  emptyText?: (() => any) | undefined;
@@ -26,4 +26,8 @@ export interface PaginationProps {
26
26
  export declare type TablePaginationPosition = 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
27
27
  export interface TablePaginationConfig extends PaginationProps {
28
28
  position?: TablePaginationPosition[];
29
+ fieldNames?: {
30
+ current?: string;
31
+ pageSize?: string;
32
+ };
29
33
  }
package/es/index.d.ts CHANGED
@@ -6641,6 +6641,10 @@ export declare type ProTableOptionConfig = {
6641
6641
  };
6642
6642
  export declare interface ProTablePaginationConfig extends PaginationProps {
6643
6643
  position?: TablePaginationPosition[];
6644
+ fieldNames?: {
6645
+ current?: string;
6646
+ pageSize?: string;
6647
+ };
6644
6648
  }
6645
6649
  export declare type ProTableProps<T extends DefaultRecordType = DefaultRecordType> = Partial<ExtractPropTypes<Helper<T>["Return"]>>;
6646
6650
  export declare type ProTableRequest<T = DefaultRecordType, U = Record<string, any>> = (params: U & {
@@ -56,6 +56,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
56
56
  proPrefixCls: computed(() => props.proPrefixCls),
57
57
  intl: computed(() => props.intl),
58
58
  locale: computed(() => props.locale),
59
+ dark: computed(() => props.dark),
59
60
  contentOffsetTop: computed(() => props.contentOffsetTop || contentOffsetTop.value),
60
61
  setContentOffsetTop: (offsetTop) => {
61
62
  contentOffsetTop.value = offsetTop;
@@ -1 +1 @@
1
- {"version":3,"file":"config-provider-container.vue2.mjs","sources":["../../../../../../../packages/components/config-provider/src/config-provider-container.vue"],"sourcesContent":["<!--\n * @Author: shen\n * @Date: 2025-05-22 09:08:36\n * @LastEditors: shen\n * @LastEditTime: 2025-10-14 14:42:34\n * @Description:\n-->\n<script setup lang=\"ts\">\nimport type { ProConfigProviderProps } from './typing'\nimport { computed, ref } from 'vue'\nimport { useProConfigProvide } from './context'\nimport { useCssVariables } from './useCssVariables'\n\ninterface Props extends ProConfigProviderProps {}\n\ndefineOptions({\n name: 'ConfigProviderContainer',\n})\n\nconst props = defineProps<Props>()\n\nconst contentOffsetTop = ref(props.contentOffsetTop)\n\nuseCssVariables(computed(() => props.dark))\n\nuseProConfigProvide({\n table: computed(() => props.table),\n form: computed(() => props.form),\n modal: computed(() => props.modal),\n drawer: computed(() => props.drawer),\n prefixCls: computed(() => props.prefixCls),\n componentSize: computed(() => props.componentSize),\n proPrefixCls: computed(() => props.proPrefixCls),\n intl: computed(() => props.intl),\n locale: computed(() => props.locale),\n contentOffsetTop: computed(() => props.contentOffsetTop || contentOffsetTop.value),\n setContentOffsetTop: (offsetTop: number) => {\n contentOffsetTop.value = offsetTop\n },\n})\n</script>\n\n<template>\n <slot />\n</template>\n"],"names":["_renderSlot"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,IAAA,MAAM,KAAA,GAAQ,OAAA;AAEd,IAAA,MAAM,gBAAA,GAAmB,GAAA,CAAI,KAAA,CAAM,gBAAgB,CAAA;AAEnD,IAAA,eAAA,CAAgB,QAAA,CAAS,MAAM,KAAA,CAAM,IAAI,CAAC,CAAA;AAE1C,IAAA,mBAAA,CAAoB;AAAA,MAClB,KAAA,EAAO,QAAA,CAAS,MAAM,KAAA,CAAM,KAAK,CAAA;AAAA,MACjC,IAAA,EAAM,QAAA,CAAS,MAAM,KAAA,CAAM,IAAI,CAAA;AAAA,MAC/B,KAAA,EAAO,QAAA,CAAS,MAAM,KAAA,CAAM,KAAK,CAAA;AAAA,MACjC,MAAA,EAAQ,QAAA,CAAS,MAAM,KAAA,CAAM,MAAM,CAAA;AAAA,MACnC,SAAA,EAAW,QAAA,CAAS,MAAM,KAAA,CAAM,SAAS,CAAA;AAAA,MACzC,aAAA,EAAe,QAAA,CAAS,MAAM,KAAA,CAAM,aAAa,CAAA;AAAA,MACjD,YAAA,EAAc,QAAA,CAAS,MAAM,KAAA,CAAM,YAAY,CAAA;AAAA,MAC/C,IAAA,EAAM,QAAA,CAAS,MAAM,KAAA,CAAM,IAAI,CAAA;AAAA,MAC/B,MAAA,EAAQ,QAAA,CAAS,MAAM,KAAA,CAAM,MAAM,CAAA;AAAA,MACnC,kBAAkB,QAAA,CAAS,MAAM,KAAA,CAAM,gBAAA,IAAoB,iBAAiB,KAAK,CAAA;AAAA,MACjF,mBAAA,EAAqB,CAAC,SAAA,KAAsB;AAC1C,QAAA,gBAAA,CAAiB,KAAA,GAAQ,SAAA;AAAA,MAC3B;AAAA,KACD,CAAA;;aAICA,UAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA;;;;;;"}
1
+ {"version":3,"file":"config-provider-container.vue2.mjs","sources":["../../../../../../../packages/components/config-provider/src/config-provider-container.vue"],"sourcesContent":["<!--\n * @Author: shen\n * @Date: 2025-05-22 09:08:36\n * @LastEditors: shen\n * @LastEditTime: 2025-10-20 15:51:51\n * @Description:\n-->\n<script setup lang=\"ts\">\nimport type { ProConfigProviderProps } from './typing'\nimport { computed, ref } from 'vue'\nimport { useProConfigProvide } from './context'\nimport { useCssVariables } from './useCssVariables'\n\ninterface Props extends ProConfigProviderProps {}\n\ndefineOptions({\n name: 'ConfigProviderContainer',\n})\n\nconst props = defineProps<Props>()\n\nconst contentOffsetTop = ref(props.contentOffsetTop)\n\nuseCssVariables(computed(() => props.dark))\n\nuseProConfigProvide({\n table: computed(() => props.table),\n form: computed(() => props.form),\n modal: computed(() => props.modal),\n drawer: computed(() => props.drawer),\n prefixCls: computed(() => props.prefixCls),\n componentSize: computed(() => props.componentSize),\n proPrefixCls: computed(() => props.proPrefixCls),\n intl: computed(() => props.intl),\n locale: computed(() => props.locale),\n dark: computed(() => props.dark),\n contentOffsetTop: computed(() => props.contentOffsetTop || contentOffsetTop.value),\n setContentOffsetTop: (offsetTop: number) => {\n contentOffsetTop.value = offsetTop\n },\n})\n</script>\n\n<template>\n <slot />\n</template>\n"],"names":["_renderSlot"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,IAAA,MAAM,KAAA,GAAQ,OAAA;AAEd,IAAA,MAAM,gBAAA,GAAmB,GAAA,CAAI,KAAA,CAAM,gBAAgB,CAAA;AAEnD,IAAA,eAAA,CAAgB,QAAA,CAAS,MAAM,KAAA,CAAM,IAAI,CAAC,CAAA;AAE1C,IAAA,mBAAA,CAAoB;AAAA,MAClB,KAAA,EAAO,QAAA,CAAS,MAAM,KAAA,CAAM,KAAK,CAAA;AAAA,MACjC,IAAA,EAAM,QAAA,CAAS,MAAM,KAAA,CAAM,IAAI,CAAA;AAAA,MAC/B,KAAA,EAAO,QAAA,CAAS,MAAM,KAAA,CAAM,KAAK,CAAA;AAAA,MACjC,MAAA,EAAQ,QAAA,CAAS,MAAM,KAAA,CAAM,MAAM,CAAA;AAAA,MACnC,SAAA,EAAW,QAAA,CAAS,MAAM,KAAA,CAAM,SAAS,CAAA;AAAA,MACzC,aAAA,EAAe,QAAA,CAAS,MAAM,KAAA,CAAM,aAAa,CAAA;AAAA,MACjD,YAAA,EAAc,QAAA,CAAS,MAAM,KAAA,CAAM,YAAY,CAAA;AAAA,MAC/C,IAAA,EAAM,QAAA,CAAS,MAAM,KAAA,CAAM,IAAI,CAAA;AAAA,MAC/B,MAAA,EAAQ,QAAA,CAAS,MAAM,KAAA,CAAM,MAAM,CAAA;AAAA,MACnC,IAAA,EAAM,QAAA,CAAS,MAAM,KAAA,CAAM,IAAI,CAAA;AAAA,MAC/B,kBAAkB,QAAA,CAAS,MAAM,KAAA,CAAM,gBAAA,IAAoB,iBAAiB,KAAK,CAAA;AAAA,MACjF,mBAAA,EAAqB,CAAC,SAAA,KAAsB;AAC1C,QAAA,gBAAA,CAAiB,KAAA,GAAQ,SAAA;AAAA,MAC3B;AAAA,KACD,CAAA;;aAICA,UAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA;;;;;;"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, computed, createBlock, openBlock, unref, mergeProps, createSlots, withCtx, renderSlot, createCommentVNode, normalizeClass, createVNode, createElementVNode, toDisplayString } from 'vue';
1
+ import { defineComponent, ref, computed, createBlock, openBlock, unref, mergeProps, createSlots, withCtx, renderSlot, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, createVNode } from 'vue';
2
2
  import { Drawer } from 'ant-design-vue';
3
3
  import { FullscreenOutlined, FullscreenExitOutlined, CloseOutlined } from '@ant-design/icons-vue';
4
4
  import { ProButton } from '../../button/index.mjs';
@@ -104,73 +104,81 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
104
104
  height: height.value,
105
105
  onClose: handleClose
106
106
  }), createSlots({
107
- title: withCtx(() => [
108
- renderSlot(_ctx.$slots, "title", {}, () => [
109
- createElementVNode(
110
- "div",
111
- {
112
- class: normalizeClass(`${unref(prefixCls)}-title`)
113
- },
114
- toDisplayString(_ctx.title),
115
- 3
116
- /* TEXT, CLASS */
117
- )
118
- ]),
119
- renderSlot(_ctx.$slots, "description", {}, () => [
120
- createElementVNode(
121
- "div",
122
- {
123
- class: normalizeClass(`${unref(prefixCls)}-description`)
124
- },
125
- toDisplayString(_ctx.description),
126
- 3
127
- /* TEXT, CLASS */
128
- )
129
- ])
130
- ]),
131
- extra: withCtx(() => [
132
- renderSlot(_ctx.$slots, "extra"),
133
- mergeShowFullscreen.value && !unref(isMobile) ? (openBlock(), createBlock(unref(ProButton), {
134
- key: 0,
135
- class: normalizeClass(`${unref(prefixCls)}-fullscreen`),
136
- size: "small",
137
- shape: "circle",
138
- type: "text",
139
- onClick: handleFullScreen
140
- }, {
141
- icon: withCtx(() => [
142
- !fullscreen.value ? (openBlock(), createBlock(unref(FullscreenOutlined), { key: 0 })) : (openBlock(), createBlock(unref(FullscreenExitOutlined), { key: 1 }))
143
- ]),
144
- _: 1
145
- /* STABLE */
146
- }, 8, ["class"])) : createCommentVNode("v-if", true),
147
- _ctx.closable ? (openBlock(), createBlock(unref(ProButton), {
148
- key: 1,
149
- class: normalizeClass(`${unref(prefixCls)}-close`),
150
- size: "small",
151
- shape: "circle",
152
- type: "text",
153
- onClick: handleBtnClose
154
- }, {
155
- icon: withCtx(() => [
156
- createVNode(unref(CloseOutlined))
157
- ]),
158
- _: 1
159
- /* STABLE */
160
- }, 8, ["class"])) : createCommentVNode("v-if", true)
161
- ]),
162
107
  default: withCtx(() => [
163
108
  renderSlot(_ctx.$slots, "default")
164
109
  ]),
165
110
  _: 2
166
111
  /* DYNAMIC */
167
112
  }, [
113
+ _ctx.title || _ctx.$slots.title ? {
114
+ name: "title",
115
+ fn: withCtx(() => [
116
+ renderSlot(_ctx.$slots, "title", {}, () => [
117
+ createElementVNode(
118
+ "div",
119
+ {
120
+ class: normalizeClass(`${unref(prefixCls)}-title`)
121
+ },
122
+ toDisplayString(_ctx.title),
123
+ 3
124
+ /* TEXT, CLASS */
125
+ )
126
+ ]),
127
+ renderSlot(_ctx.$slots, "description", {}, () => [
128
+ createElementVNode(
129
+ "div",
130
+ {
131
+ class: normalizeClass(`${unref(prefixCls)}-description`)
132
+ },
133
+ toDisplayString(_ctx.description),
134
+ 3
135
+ /* TEXT, CLASS */
136
+ )
137
+ ])
138
+ ]),
139
+ key: "0"
140
+ } : void 0,
141
+ _ctx.title || _ctx.$slots.title ? {
142
+ name: "extra",
143
+ fn: withCtx(() => [
144
+ renderSlot(_ctx.$slots, "extra"),
145
+ mergeShowFullscreen.value && !unref(isMobile) ? (openBlock(), createBlock(unref(ProButton), {
146
+ key: 0,
147
+ class: normalizeClass(`${unref(prefixCls)}-fullscreen`),
148
+ size: "small",
149
+ shape: "circle",
150
+ type: "text",
151
+ onClick: handleFullScreen
152
+ }, {
153
+ icon: withCtx(() => [
154
+ !fullscreen.value ? (openBlock(), createBlock(unref(FullscreenOutlined), { key: 0 })) : (openBlock(), createBlock(unref(FullscreenExitOutlined), { key: 1 }))
155
+ ]),
156
+ _: 1
157
+ /* STABLE */
158
+ }, 8, ["class"])) : createCommentVNode("v-if", true),
159
+ _ctx.closable ? (openBlock(), createBlock(unref(ProButton), {
160
+ key: 1,
161
+ class: normalizeClass(`${unref(prefixCls)}-close`),
162
+ size: "small",
163
+ shape: "circle",
164
+ type: "text",
165
+ onClick: handleBtnClose
166
+ }, {
167
+ icon: withCtx(() => [
168
+ createVNode(unref(CloseOutlined))
169
+ ]),
170
+ _: 1
171
+ /* STABLE */
172
+ }, 8, ["class"])) : createCommentVNode("v-if", true)
173
+ ]),
174
+ key: "1"
175
+ } : void 0,
168
176
  _ctx.$slots.footer ? {
169
177
  name: "footer",
170
178
  fn: withCtx(() => [
171
179
  renderSlot(_ctx.$slots, "footer")
172
180
  ]),
173
- key: "0"
181
+ key: "2"
174
182
  } : void 0
175
183
  ]), 1040, ["root-class-name", "width", "height"]);
176
184
  };