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.
- package/dist/index.full.js +172 -149
- package/dist/index.full.min.js +6 -6
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +8 -8
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +172 -149
- package/es/components/table/src/components/InteralTable.vue.d.ts +1 -1
- package/es/components/table/src/components/PaginationConfig.d.ts +4 -0
- package/es/index.d.ts +4 -0
- package/es/packages/components/config-provider/src/config-provider-container.vue2.mjs +1 -0
- package/es/packages/components/config-provider/src/config-provider-container.vue2.mjs.map +1 -1
- package/es/packages/components/drawer/src/drawer.vue2.mjs +65 -57
- package/es/packages/components/drawer/src/drawer.vue2.mjs.map +1 -1
- package/es/packages/components/modal/src/modal.vue2.mjs +78 -74
- package/es/packages/components/modal/src/modal.vue2.mjs.map +1 -1
- package/es/packages/components/table/src/components/Body/BodyRow.vue.mjs.map +1 -1
- package/es/packages/components/table/src/components/Body/BodyRow.vue2.mjs +2 -2
- package/es/packages/components/table/src/components/Body/BodyRow.vue2.mjs.map +1 -1
- package/es/packages/components/table/src/components/InteralTable.vue.mjs.map +1 -1
- package/es/packages/components/table/src/components/InteralTable.vue2.mjs +10 -2
- package/es/packages/components/table/src/components/InteralTable.vue2.mjs.map +1 -1
- package/es/packages/components/table/src/components/Table.mjs +6 -5
- package/es/packages/components/table/src/components/Table.mjs.map +1 -1
- package/es/packages/components/table/src/hooks/useFetchData.mjs +9 -8
- package/es/packages/components/table/src/hooks/useFetchData.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/table/src/components/InteralTable.vue.d.ts +1 -1
- package/lib/components/table/src/components/PaginationConfig.d.ts +4 -0
- package/lib/index.d.ts +4 -0
- package/lib/packages/components/config-provider/src/config-provider-container.vue2.js +1 -0
- package/lib/packages/components/config-provider/src/config-provider-container.vue2.js.map +1 -1
- package/lib/packages/components/drawer/src/drawer.vue2.js +64 -56
- package/lib/packages/components/drawer/src/drawer.vue2.js.map +1 -1
- package/lib/packages/components/modal/src/modal.vue2.js +78 -74
- package/lib/packages/components/modal/src/modal.vue2.js.map +1 -1
- package/lib/packages/components/table/src/components/Body/BodyRow.vue.js.map +1 -1
- package/lib/packages/components/table/src/components/Body/BodyRow.vue2.js +2 -2
- package/lib/packages/components/table/src/components/Body/BodyRow.vue2.js.map +1 -1
- package/lib/packages/components/table/src/components/InteralTable.vue.js.map +1 -1
- package/lib/packages/components/table/src/components/InteralTable.vue2.js +10 -2
- package/lib/packages/components/table/src/components/InteralTable.vue2.js.map +1 -1
- package/lib/packages/components/table/src/components/Table.js +6 -5
- package/lib/packages/components/table/src/components/Table.js.map +1 -1
- package/lib/packages/components/table/src/hooks/useFetchData.js +9 -8
- package/lib/packages/components/table/src/hooks/useFetchData.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +1 -1
package/dist/index.full.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Pro Design Vue v1.2.
|
|
1
|
+
/*! Pro Design Vue v1.2.12 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ant-design-vue'), require('vue'), require('ant-design-vue/es/locale/zh_CN.js')) :
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
const DEFAULT_NAMESPACE = "pro";
|
|
33
33
|
const DEFAULT_LOCALE = "zh-CN";
|
|
34
34
|
|
|
35
|
-
const version$1 = "1.2.
|
|
35
|
+
const version$1 = "1.2.12";
|
|
36
36
|
|
|
37
37
|
const makeInstaller = (components = []) => {
|
|
38
38
|
const install = (app) => {
|
|
@@ -8414,6 +8414,7 @@
|
|
|
8414
8414
|
proPrefixCls: vue.computed(() => props.proPrefixCls),
|
|
8415
8415
|
intl: vue.computed(() => props.intl),
|
|
8416
8416
|
locale: vue.computed(() => props.locale),
|
|
8417
|
+
dark: vue.computed(() => props.dark),
|
|
8417
8418
|
contentOffsetTop: vue.computed(() => props.contentOffsetTop || contentOffsetTop.value),
|
|
8418
8419
|
setContentOffsetTop: (offsetTop) => {
|
|
8419
8420
|
contentOffsetTop.value = offsetTop;
|
|
@@ -13442,73 +13443,81 @@
|
|
|
13442
13443
|
height: height.value,
|
|
13443
13444
|
onClose: handleClose
|
|
13444
13445
|
}), vue.createSlots({
|
|
13445
|
-
title: vue.withCtx(() => [
|
|
13446
|
-
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
13447
|
-
vue.createElementVNode(
|
|
13448
|
-
"div",
|
|
13449
|
-
{
|
|
13450
|
-
class: vue.normalizeClass(`${vue.unref(prefixCls)}-title`)
|
|
13451
|
-
},
|
|
13452
|
-
vue.toDisplayString(_ctx.title),
|
|
13453
|
-
3
|
|
13454
|
-
/* TEXT, CLASS */
|
|
13455
|
-
)
|
|
13456
|
-
]),
|
|
13457
|
-
vue.renderSlot(_ctx.$slots, "description", {}, () => [
|
|
13458
|
-
vue.createElementVNode(
|
|
13459
|
-
"div",
|
|
13460
|
-
{
|
|
13461
|
-
class: vue.normalizeClass(`${vue.unref(prefixCls)}-description`)
|
|
13462
|
-
},
|
|
13463
|
-
vue.toDisplayString(_ctx.description),
|
|
13464
|
-
3
|
|
13465
|
-
/* TEXT, CLASS */
|
|
13466
|
-
)
|
|
13467
|
-
])
|
|
13468
|
-
]),
|
|
13469
|
-
extra: vue.withCtx(() => [
|
|
13470
|
-
vue.renderSlot(_ctx.$slots, "extra"),
|
|
13471
|
-
mergeShowFullscreen.value && !vue.unref(isMobile) ? (vue.openBlock(), vue.createBlock(vue.unref(ProButton), {
|
|
13472
|
-
key: 0,
|
|
13473
|
-
class: vue.normalizeClass(`${vue.unref(prefixCls)}-fullscreen`),
|
|
13474
|
-
size: "small",
|
|
13475
|
-
shape: "circle",
|
|
13476
|
-
type: "text",
|
|
13477
|
-
onClick: handleFullScreen
|
|
13478
|
-
}, {
|
|
13479
|
-
icon: vue.withCtx(() => [
|
|
13480
|
-
!fullscreen.value ? (vue.openBlock(), vue.createBlock(vue.unref(FullscreenOutlined), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(FullscreenExitOutlined), { key: 1 }))
|
|
13481
|
-
]),
|
|
13482
|
-
_: 1
|
|
13483
|
-
/* STABLE */
|
|
13484
|
-
}, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
|
13485
|
-
_ctx.closable ? (vue.openBlock(), vue.createBlock(vue.unref(ProButton), {
|
|
13486
|
-
key: 1,
|
|
13487
|
-
class: vue.normalizeClass(`${vue.unref(prefixCls)}-close`),
|
|
13488
|
-
size: "small",
|
|
13489
|
-
shape: "circle",
|
|
13490
|
-
type: "text",
|
|
13491
|
-
onClick: handleBtnClose
|
|
13492
|
-
}, {
|
|
13493
|
-
icon: vue.withCtx(() => [
|
|
13494
|
-
vue.createVNode(vue.unref(CloseOutlined))
|
|
13495
|
-
]),
|
|
13496
|
-
_: 1
|
|
13497
|
-
/* STABLE */
|
|
13498
|
-
}, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
13499
|
-
]),
|
|
13500
13446
|
default: vue.withCtx(() => [
|
|
13501
13447
|
vue.renderSlot(_ctx.$slots, "default")
|
|
13502
13448
|
]),
|
|
13503
13449
|
_: 2
|
|
13504
13450
|
/* DYNAMIC */
|
|
13505
13451
|
}, [
|
|
13452
|
+
_ctx.title || _ctx.$slots.title ? {
|
|
13453
|
+
name: "title",
|
|
13454
|
+
fn: vue.withCtx(() => [
|
|
13455
|
+
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
13456
|
+
vue.createElementVNode(
|
|
13457
|
+
"div",
|
|
13458
|
+
{
|
|
13459
|
+
class: vue.normalizeClass(`${vue.unref(prefixCls)}-title`)
|
|
13460
|
+
},
|
|
13461
|
+
vue.toDisplayString(_ctx.title),
|
|
13462
|
+
3
|
|
13463
|
+
/* TEXT, CLASS */
|
|
13464
|
+
)
|
|
13465
|
+
]),
|
|
13466
|
+
vue.renderSlot(_ctx.$slots, "description", {}, () => [
|
|
13467
|
+
vue.createElementVNode(
|
|
13468
|
+
"div",
|
|
13469
|
+
{
|
|
13470
|
+
class: vue.normalizeClass(`${vue.unref(prefixCls)}-description`)
|
|
13471
|
+
},
|
|
13472
|
+
vue.toDisplayString(_ctx.description),
|
|
13473
|
+
3
|
|
13474
|
+
/* TEXT, CLASS */
|
|
13475
|
+
)
|
|
13476
|
+
])
|
|
13477
|
+
]),
|
|
13478
|
+
key: "0"
|
|
13479
|
+
} : void 0,
|
|
13480
|
+
_ctx.title || _ctx.$slots.title ? {
|
|
13481
|
+
name: "extra",
|
|
13482
|
+
fn: vue.withCtx(() => [
|
|
13483
|
+
vue.renderSlot(_ctx.$slots, "extra"),
|
|
13484
|
+
mergeShowFullscreen.value && !vue.unref(isMobile) ? (vue.openBlock(), vue.createBlock(vue.unref(ProButton), {
|
|
13485
|
+
key: 0,
|
|
13486
|
+
class: vue.normalizeClass(`${vue.unref(prefixCls)}-fullscreen`),
|
|
13487
|
+
size: "small",
|
|
13488
|
+
shape: "circle",
|
|
13489
|
+
type: "text",
|
|
13490
|
+
onClick: handleFullScreen
|
|
13491
|
+
}, {
|
|
13492
|
+
icon: vue.withCtx(() => [
|
|
13493
|
+
!fullscreen.value ? (vue.openBlock(), vue.createBlock(vue.unref(FullscreenOutlined), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(FullscreenExitOutlined), { key: 1 }))
|
|
13494
|
+
]),
|
|
13495
|
+
_: 1
|
|
13496
|
+
/* STABLE */
|
|
13497
|
+
}, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
|
13498
|
+
_ctx.closable ? (vue.openBlock(), vue.createBlock(vue.unref(ProButton), {
|
|
13499
|
+
key: 1,
|
|
13500
|
+
class: vue.normalizeClass(`${vue.unref(prefixCls)}-close`),
|
|
13501
|
+
size: "small",
|
|
13502
|
+
shape: "circle",
|
|
13503
|
+
type: "text",
|
|
13504
|
+
onClick: handleBtnClose
|
|
13505
|
+
}, {
|
|
13506
|
+
icon: vue.withCtx(() => [
|
|
13507
|
+
vue.createVNode(vue.unref(CloseOutlined))
|
|
13508
|
+
]),
|
|
13509
|
+
_: 1
|
|
13510
|
+
/* STABLE */
|
|
13511
|
+
}, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
13512
|
+
]),
|
|
13513
|
+
key: "1"
|
|
13514
|
+
} : void 0,
|
|
13506
13515
|
_ctx.$slots.footer ? {
|
|
13507
13516
|
name: "footer",
|
|
13508
13517
|
fn: vue.withCtx(() => [
|
|
13509
13518
|
vue.renderSlot(_ctx.$slots, "footer")
|
|
13510
13519
|
]),
|
|
13511
|
-
key: "
|
|
13520
|
+
key: "2"
|
|
13512
13521
|
} : void 0
|
|
13513
13522
|
]), 1040, ["root-class-name", "width", "height"]);
|
|
13514
13523
|
};
|
|
@@ -16413,91 +16422,95 @@
|
|
|
16413
16422
|
style: modalStyle.value,
|
|
16414
16423
|
onCancel: handleClose
|
|
16415
16424
|
}), vue.createSlots({
|
|
16416
|
-
title: vue.withCtx(() => [
|
|
16417
|
-
vue.createElementVNode(
|
|
16418
|
-
"div",
|
|
16419
|
-
{
|
|
16420
|
-
ref: "modalHeaderRef",
|
|
16421
|
-
class: vue.normalizeClass(`${vue.unref(prefixCls)}-header`)
|
|
16422
|
-
},
|
|
16423
|
-
[
|
|
16424
|
-
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
16425
|
-
vue.createElementVNode(
|
|
16426
|
-
"div",
|
|
16427
|
-
{
|
|
16428
|
-
class: vue.normalizeClass(`${vue.unref(prefixCls)}-title`)
|
|
16429
|
-
},
|
|
16430
|
-
vue.toDisplayString(_ctx.title),
|
|
16431
|
-
3
|
|
16432
|
-
/* TEXT, CLASS */
|
|
16433
|
-
)
|
|
16434
|
-
]),
|
|
16435
|
-
vue.renderSlot(_ctx.$slots, "description", {}, () => [
|
|
16436
|
-
vue.createElementVNode(
|
|
16437
|
-
"div",
|
|
16438
|
-
{
|
|
16439
|
-
class: vue.normalizeClass(`${vue.unref(prefixCls)}-description`)
|
|
16440
|
-
},
|
|
16441
|
-
vue.toDisplayString(_ctx.description),
|
|
16442
|
-
3
|
|
16443
|
-
/* TEXT, CLASS */
|
|
16444
|
-
)
|
|
16445
|
-
]),
|
|
16446
|
-
vue.createElementVNode(
|
|
16447
|
-
"div",
|
|
16448
|
-
{
|
|
16449
|
-
class: vue.normalizeClass(`${vue.unref(prefixCls)}-extra`)
|
|
16450
|
-
},
|
|
16451
|
-
[
|
|
16452
|
-
mergeShowFullscreen.value && !vue.unref(isMobile) ? (vue.openBlock(), vue.createBlock(vue.unref(ProButton), {
|
|
16453
|
-
key: 0,
|
|
16454
|
-
class: vue.normalizeClass(`${vue.unref(prefixCls)}-fullscreen`),
|
|
16455
|
-
size: "small",
|
|
16456
|
-
shape: "circle",
|
|
16457
|
-
type: "text",
|
|
16458
|
-
onClick: handleFullScreen
|
|
16459
|
-
}, {
|
|
16460
|
-
icon: vue.withCtx(() => [
|
|
16461
|
-
!fullscreen.value ? (vue.openBlock(), vue.createBlock(vue.unref(FullscreenOutlined), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(FullscreenExitOutlined), { key: 1 }))
|
|
16462
|
-
]),
|
|
16463
|
-
_: 1
|
|
16464
|
-
/* STABLE */
|
|
16465
|
-
}, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
|
16466
|
-
_ctx.closable ? (vue.openBlock(), vue.createBlock(vue.unref(ProButton), {
|
|
16467
|
-
key: 1,
|
|
16468
|
-
class: vue.normalizeClass(`${vue.unref(prefixCls)}-close`),
|
|
16469
|
-
size: "small",
|
|
16470
|
-
shape: "circle",
|
|
16471
|
-
type: "text",
|
|
16472
|
-
onClick: handleBtnClose
|
|
16473
|
-
}, {
|
|
16474
|
-
icon: vue.withCtx(() => [
|
|
16475
|
-
vue.createVNode(vue.unref(CloseOutlined))
|
|
16476
|
-
]),
|
|
16477
|
-
_: 1
|
|
16478
|
-
/* STABLE */
|
|
16479
|
-
}, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
16480
|
-
],
|
|
16481
|
-
2
|
|
16482
|
-
/* CLASS */
|
|
16483
|
-
)
|
|
16484
|
-
],
|
|
16485
|
-
2
|
|
16486
|
-
/* CLASS */
|
|
16487
|
-
)
|
|
16488
|
-
]),
|
|
16489
16425
|
default: vue.withCtx(() => [
|
|
16490
16426
|
vue.renderSlot(_ctx.$slots, "default")
|
|
16491
16427
|
]),
|
|
16492
16428
|
_: 2
|
|
16493
16429
|
/* DYNAMIC */
|
|
16494
16430
|
}, [
|
|
16431
|
+
_ctx.title || _ctx.$slots.title ? {
|
|
16432
|
+
name: "title",
|
|
16433
|
+
fn: vue.withCtx(() => [
|
|
16434
|
+
vue.createElementVNode(
|
|
16435
|
+
"div",
|
|
16436
|
+
{
|
|
16437
|
+
ref: "modalHeaderRef",
|
|
16438
|
+
class: vue.normalizeClass(`${vue.unref(prefixCls)}-header`)
|
|
16439
|
+
},
|
|
16440
|
+
[
|
|
16441
|
+
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
16442
|
+
vue.createElementVNode(
|
|
16443
|
+
"div",
|
|
16444
|
+
{
|
|
16445
|
+
class: vue.normalizeClass(`${vue.unref(prefixCls)}-title`)
|
|
16446
|
+
},
|
|
16447
|
+
vue.toDisplayString(_ctx.title),
|
|
16448
|
+
3
|
|
16449
|
+
/* TEXT, CLASS */
|
|
16450
|
+
)
|
|
16451
|
+
]),
|
|
16452
|
+
vue.renderSlot(_ctx.$slots, "description", {}, () => [
|
|
16453
|
+
vue.createElementVNode(
|
|
16454
|
+
"div",
|
|
16455
|
+
{
|
|
16456
|
+
class: vue.normalizeClass(`${vue.unref(prefixCls)}-description`)
|
|
16457
|
+
},
|
|
16458
|
+
vue.toDisplayString(_ctx.description),
|
|
16459
|
+
3
|
|
16460
|
+
/* TEXT, CLASS */
|
|
16461
|
+
)
|
|
16462
|
+
]),
|
|
16463
|
+
vue.createElementVNode(
|
|
16464
|
+
"div",
|
|
16465
|
+
{
|
|
16466
|
+
class: vue.normalizeClass(`${vue.unref(prefixCls)}-extra`)
|
|
16467
|
+
},
|
|
16468
|
+
[
|
|
16469
|
+
mergeShowFullscreen.value && !vue.unref(isMobile) ? (vue.openBlock(), vue.createBlock(vue.unref(ProButton), {
|
|
16470
|
+
key: 0,
|
|
16471
|
+
class: vue.normalizeClass(`${vue.unref(prefixCls)}-fullscreen`),
|
|
16472
|
+
size: "small",
|
|
16473
|
+
shape: "circle",
|
|
16474
|
+
type: "text",
|
|
16475
|
+
onClick: handleFullScreen
|
|
16476
|
+
}, {
|
|
16477
|
+
icon: vue.withCtx(() => [
|
|
16478
|
+
!fullscreen.value ? (vue.openBlock(), vue.createBlock(vue.unref(FullscreenOutlined), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(FullscreenExitOutlined), { key: 1 }))
|
|
16479
|
+
]),
|
|
16480
|
+
_: 1
|
|
16481
|
+
/* STABLE */
|
|
16482
|
+
}, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
|
16483
|
+
_ctx.closable ? (vue.openBlock(), vue.createBlock(vue.unref(ProButton), {
|
|
16484
|
+
key: 1,
|
|
16485
|
+
class: vue.normalizeClass(`${vue.unref(prefixCls)}-close`),
|
|
16486
|
+
size: "small",
|
|
16487
|
+
shape: "circle",
|
|
16488
|
+
type: "text",
|
|
16489
|
+
onClick: handleBtnClose
|
|
16490
|
+
}, {
|
|
16491
|
+
icon: vue.withCtx(() => [
|
|
16492
|
+
vue.createVNode(vue.unref(CloseOutlined))
|
|
16493
|
+
]),
|
|
16494
|
+
_: 1
|
|
16495
|
+
/* STABLE */
|
|
16496
|
+
}, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
16497
|
+
],
|
|
16498
|
+
2
|
|
16499
|
+
/* CLASS */
|
|
16500
|
+
)
|
|
16501
|
+
],
|
|
16502
|
+
2
|
|
16503
|
+
/* CLASS */
|
|
16504
|
+
)
|
|
16505
|
+
]),
|
|
16506
|
+
key: "0"
|
|
16507
|
+
} : void 0,
|
|
16495
16508
|
_ctx.$slots.footer ? {
|
|
16496
16509
|
name: "footer",
|
|
16497
16510
|
fn: vue.withCtx(() => [
|
|
16498
16511
|
vue.renderSlot(_ctx.$slots, "footer")
|
|
16499
16512
|
]),
|
|
16500
|
-
key: "
|
|
16513
|
+
key: "1"
|
|
16501
16514
|
} : void 0
|
|
16502
16515
|
]), 1040, ["class", "width", "style"]);
|
|
16503
16516
|
};
|
|
@@ -21870,7 +21883,7 @@
|
|
|
21870
21883
|
pollingLoading.value = false;
|
|
21871
21884
|
};
|
|
21872
21885
|
const fetchList = async (isPolling) => {
|
|
21873
|
-
var _a2, _b, _c, _d;
|
|
21886
|
+
var _a2, _b, _c, _d, _e, _f, _g;
|
|
21874
21887
|
if (manualRequestRef.value) {
|
|
21875
21888
|
manualRequestRef.value = false;
|
|
21876
21889
|
return;
|
|
@@ -21882,12 +21895,13 @@
|
|
|
21882
21895
|
}
|
|
21883
21896
|
const { current, pageSize } = pagination.value;
|
|
21884
21897
|
const params = { ...innerParams.value, ...formSearch.value };
|
|
21885
|
-
if (
|
|
21886
|
-
|
|
21887
|
-
params.
|
|
21898
|
+
if (contextTablePagination.value !== false) {
|
|
21899
|
+
const { fieldNames } = (_a2 = contextTablePagination.value) != null ? _a2 : {};
|
|
21900
|
+
params[(_b = fieldNames == null ? void 0 : fieldNames.current) != null ? _b : "current"] = current;
|
|
21901
|
+
params[(_c = fieldNames == null ? void 0 : fieldNames.pageSize) != null ? _c : "pageSize"] = pageSize;
|
|
21888
21902
|
}
|
|
21889
21903
|
if (keyword.value) {
|
|
21890
|
-
params[(
|
|
21904
|
+
params[(_d = keywordName.value) != null ? _d : "keyword"] = keyword.value;
|
|
21891
21905
|
}
|
|
21892
21906
|
try {
|
|
21893
21907
|
const {
|
|
@@ -21895,13 +21909,13 @@
|
|
|
21895
21909
|
success,
|
|
21896
21910
|
total = 0,
|
|
21897
21911
|
...rest
|
|
21898
|
-
} = await ((
|
|
21912
|
+
} = await ((_e = getData.value) == null ? void 0 : _e.call(getData, params, vue.toRaw(sorters.value), vue.toRaw(filter.value))) || {};
|
|
21899
21913
|
if (success === false) return [];
|
|
21900
21914
|
setTableDataList(data);
|
|
21901
|
-
if (((
|
|
21915
|
+
if (((_f = pagination.value) == null ? void 0 : _f.total) !== total) {
|
|
21902
21916
|
pagination.value.total = total || data.length;
|
|
21903
21917
|
}
|
|
21904
|
-
(
|
|
21918
|
+
(_g = props.onLoad) == null ? void 0 : _g.call(props, data, rest);
|
|
21905
21919
|
return data;
|
|
21906
21920
|
} catch (e) {
|
|
21907
21921
|
if (props.onRequestError === void 0) throw new Error(e);
|
|
@@ -31381,8 +31395,8 @@
|
|
|
31381
31395
|
const nestExpandable = vue.computed(() => tableContext.expandType.value === "nest");
|
|
31382
31396
|
const hasNestChildren = vue.computed(
|
|
31383
31397
|
() => {
|
|
31384
|
-
var _a;
|
|
31385
|
-
return !!(tableContext.childrenColumnName.value && ((_a = props.record) == null ? void 0 : _a[tableContext.childrenColumnName.value]));
|
|
31398
|
+
var _a, _b;
|
|
31399
|
+
return !!(tableContext.childrenColumnName.value && ((_b = (_a = props.record) == null ? void 0 : _a[tableContext.childrenColumnName.value]) == null ? void 0 : _b.length));
|
|
31386
31400
|
}
|
|
31387
31401
|
);
|
|
31388
31402
|
const mergedExpandable = vue.computed(() => rowExpandable.value || nestExpandable.value);
|
|
@@ -33065,7 +33079,10 @@
|
|
|
33065
33079
|
);
|
|
33066
33080
|
const expandedRowRender = vue.computed(() => props.expandedRowRender);
|
|
33067
33081
|
const expandType = eagerComputed(
|
|
33068
|
-
() => rawData.value.some((column) =>
|
|
33082
|
+
() => rawData.value.some((column) => {
|
|
33083
|
+
var _a;
|
|
33084
|
+
return (_a = column == null ? void 0 : column[childrenColumnName.value]) == null ? void 0 : _a.length;
|
|
33085
|
+
}) ? "nest" : expandedRowRender.value ? "row" : null
|
|
33069
33086
|
);
|
|
33070
33087
|
const expandable = eagerComputed(() => !!props.expandedRowRender);
|
|
33071
33088
|
const columns = useColumns({
|
|
@@ -33318,7 +33335,12 @@
|
|
|
33318
33335
|
);
|
|
33319
33336
|
};
|
|
33320
33337
|
const paginationProps = vue.computed(() => {
|
|
33321
|
-
return omit(mergedPagination.value, [
|
|
33338
|
+
return omit(mergedPagination.value, [
|
|
33339
|
+
"position",
|
|
33340
|
+
"onChange",
|
|
33341
|
+
"onShowSizeChange",
|
|
33342
|
+
"fieldNames"
|
|
33343
|
+
]);
|
|
33322
33344
|
});
|
|
33323
33345
|
const paginationClass = vue.computed(() => {
|
|
33324
33346
|
return {
|
|
@@ -35257,7 +35279,8 @@
|
|
|
35257
35279
|
const tableRef = vue.ref();
|
|
35258
35280
|
const {
|
|
35259
35281
|
table,
|
|
35260
|
-
prefixCls: antPrefixCls
|
|
35282
|
+
prefixCls: antPrefixCls,
|
|
35283
|
+
dark
|
|
35261
35284
|
} = useProConfigInject();
|
|
35262
35285
|
const prefixCls = usePrefixCls("table");
|
|
35263
35286
|
const {
|
|
@@ -35558,7 +35581,7 @@
|
|
|
35558
35581
|
reset
|
|
35559
35582
|
});
|
|
35560
35583
|
return () => {
|
|
35561
|
-
var _a2, _b, _c, _d;
|
|
35584
|
+
var _a2, _b, _c, _d, _e;
|
|
35562
35585
|
const {
|
|
35563
35586
|
expandIcon = slots.expandIcon,
|
|
35564
35587
|
expandedRowRender = slots.expandedRowRender
|
|
@@ -35632,7 +35655,7 @@
|
|
|
35632
35655
|
return tableDom;
|
|
35633
35656
|
})();
|
|
35634
35657
|
tableDom = vue.createVNode(antDesignVue.Card, vue.mergeProps({
|
|
35635
|
-
"bordered": isBordered("table", (_d = props.cardBordered) != null ? _d : (_c = table == null ? void 0 : table.value) == null ? void 0 : _c.cardBordered),
|
|
35658
|
+
"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),
|
|
35636
35659
|
"bodyStyle": cardBodyStyle.value
|
|
35637
35660
|
}, props.cardProps), _isSlot$2(tableDom) ? tableDom : {
|
|
35638
35661
|
default: () => [_tableDom]
|
|
@@ -35645,7 +35668,7 @@
|
|
|
35645
35668
|
}
|
|
35646
35669
|
}, {
|
|
35647
35670
|
default: () => {
|
|
35648
|
-
var _a3, _b2, _c2;
|
|
35671
|
+
var _a3, _b2, _c2, _d2;
|
|
35649
35672
|
return [vue.createVNode("div", vue.mergeProps({
|
|
35650
35673
|
"ref": counter.rootDomRef
|
|
35651
35674
|
}, attrs, {
|
|
@@ -35654,7 +35677,7 @@
|
|
|
35654
35677
|
}), [props.search !== false && !!((_a3 = formItems.value) == null ? void 0 : _a3.length) && vue.createVNode(FormRender, {
|
|
35655
35678
|
"prefixCls": mergedPrefixCls.value,
|
|
35656
35679
|
"items": formItems.value,
|
|
35657
|
-
"cardBordered": (_c2 = props.cardBordered) != null ? _c2 : (_b2 = table == null ? void 0 : table.value) == null ? void 0 : _b2.cardBordered,
|
|
35680
|
+
"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,
|
|
35658
35681
|
"search": props.search,
|
|
35659
35682
|
"tableShowCard": props.cardProps !== false,
|
|
35660
35683
|
"loading": formSubmitLoading.value,
|