pro-design-vue 1.3.15 → 1.3.17
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 +37 -21
- package/dist/index.full.min.js +6 -6
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +6 -6
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +37 -21
- package/es/components/table/src/components/interface.d.ts +1 -0
- package/es/index.d.ts +1 -0
- package/es/packages/components/drawer/src/drawer.vue2.mjs +14 -5
- package/es/packages/components/drawer/src/drawer.vue2.mjs.map +1 -1
- package/es/packages/components/table/src/components/Table.mjs +12 -5
- package/es/packages/components/table/src/components/Table.mjs.map +1 -1
- package/es/packages/components/table/src/components/ToolBar/ToolBar.vue.mjs +10 -10
- package/es/packages/components/table/src/components/ToolBar/ToolBar.vue.mjs.map +1 -1
- package/es/packages/components/table/src/components/ToolBar/ToolBar.vue2.mjs.map +1 -1
- package/es/packages/components/table/src/components/interface.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/interface.d.ts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/packages/components/drawer/src/drawer.vue2.js +13 -4
- package/lib/packages/components/drawer/src/drawer.vue2.js.map +1 -1
- package/lib/packages/components/table/src/components/Table.js +12 -5
- package/lib/packages/components/table/src/components/Table.js.map +1 -1
- package/lib/packages/components/table/src/components/ToolBar/ToolBar.vue.js +10 -10
- package/lib/packages/components/table/src/components/ToolBar/ToolBar.vue.js.map +1 -1
- package/lib/packages/components/table/src/components/ToolBar/ToolBar.vue2.js.map +1 -1
- package/lib/packages/components/table/src/components/interface.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.3.
|
|
1
|
+
/*! Pro Design Vue v1.3.17 */
|
|
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.3.
|
|
35
|
+
const version$1 = "1.3.17";
|
|
36
36
|
|
|
37
37
|
const makeInstaller = (components = []) => {
|
|
38
38
|
const install = (app) => {
|
|
@@ -13450,7 +13450,15 @@
|
|
|
13450
13450
|
return (_b = props.showFullscreen) != null ? _b : (_a = drawer == null ? void 0 : drawer.value) == null ? void 0 : _a.showFullscreen;
|
|
13451
13451
|
});
|
|
13452
13452
|
const drawerProps = vue.computed(
|
|
13453
|
-
() => omitKeysAndUndefined(props, [
|
|
13453
|
+
() => omitKeysAndUndefined(props, [
|
|
13454
|
+
"rootClassName",
|
|
13455
|
+
"closable",
|
|
13456
|
+
"onClose",
|
|
13457
|
+
"title",
|
|
13458
|
+
"width",
|
|
13459
|
+
"height",
|
|
13460
|
+
"bodyStyle"
|
|
13461
|
+
])
|
|
13454
13462
|
);
|
|
13455
13463
|
const width = vue.computed(() => {
|
|
13456
13464
|
if (fullscreen.value) {
|
|
@@ -13489,13 +13497,14 @@
|
|
|
13489
13497
|
vue.createElementVNode(
|
|
13490
13498
|
"div",
|
|
13491
13499
|
{
|
|
13492
|
-
class: vue.normalizeClass(`${vue.unref(prefixCls)}-body`)
|
|
13500
|
+
class: vue.normalizeClass(`${vue.unref(prefixCls)}-body`),
|
|
13501
|
+
style: vue.normalizeStyle(_ctx.bodyStyle)
|
|
13493
13502
|
},
|
|
13494
13503
|
[
|
|
13495
13504
|
vue.renderSlot(_ctx.$slots, "default")
|
|
13496
13505
|
],
|
|
13497
|
-
|
|
13498
|
-
/* CLASS */
|
|
13506
|
+
6
|
|
13507
|
+
/* CLASS, STYLE */
|
|
13499
13508
|
)
|
|
13500
13509
|
]),
|
|
13501
13510
|
_: 2
|
|
@@ -37294,7 +37303,7 @@
|
|
|
37294
37303
|
});
|
|
37295
37304
|
|
|
37296
37305
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
37297
|
-
var _a, _b, _c, _d
|
|
37306
|
+
var _a, _b, _c, _d;
|
|
37298
37307
|
const _component_InfoCircleOutlined = vue.resolveComponent("InfoCircleOutlined");
|
|
37299
37308
|
const _component_Tooltip = vue.resolveComponent("Tooltip");
|
|
37300
37309
|
const _component_ProSearch = vue.resolveComponent("ProSearch");
|
|
@@ -37337,10 +37346,10 @@
|
|
|
37337
37346
|
selectedRowKeys: _ctx.selectedRowKeys,
|
|
37338
37347
|
selectedRows: _ctx.selectedRows,
|
|
37339
37348
|
actionsRef: _ctx.actionsRef,
|
|
37340
|
-
searchParams: (
|
|
37349
|
+
searchParams: (_c = _ctx.actionsRef) == null ? void 0 : _c.searchParams,
|
|
37341
37350
|
onCleanSelected: _ctx.onCleanSelected
|
|
37342
37351
|
}, () => {
|
|
37343
|
-
var _a2
|
|
37352
|
+
var _a2;
|
|
37344
37353
|
return [
|
|
37345
37354
|
vue.createElementVNode(
|
|
37346
37355
|
"div",
|
|
@@ -37359,7 +37368,7 @@
|
|
|
37359
37368
|
selectedRowKeys: _ctx.selectedRowKeys,
|
|
37360
37369
|
selectedRows: _ctx.selectedRows,
|
|
37361
37370
|
actionsRef: _ctx.actionsRef,
|
|
37362
|
-
searchParams: (
|
|
37371
|
+
searchParams: (_a2 = _ctx.actionsRef) == null ? void 0 : _a2.searchParams,
|
|
37363
37372
|
onCleanSelected: _ctx.onCleanSelected
|
|
37364
37373
|
}, () => [
|
|
37365
37374
|
vue.createTextVNode(
|
|
@@ -37396,7 +37405,7 @@
|
|
|
37396
37405
|
class: vue.normalizeClass(`${_ctx.prefixCls}-toolbar-options`)
|
|
37397
37406
|
}, {
|
|
37398
37407
|
default: vue.withCtx(() => {
|
|
37399
|
-
var _a3
|
|
37408
|
+
var _a3;
|
|
37400
37409
|
return [
|
|
37401
37410
|
_ctx.mergeOptions.search !== false && !(!!_ctx.title || !!_ctx.$slots.title) ? (vue.openBlock(), vue.createElementBlock(
|
|
37402
37411
|
vue.Fragment,
|
|
@@ -37408,7 +37417,7 @@
|
|
|
37408
37417
|
selectedRowKeys: _ctx.selectedRowKeys,
|
|
37409
37418
|
selectedRows: _ctx.selectedRows,
|
|
37410
37419
|
actionsRef: _ctx.actionsRef,
|
|
37411
|
-
searchParams: (
|
|
37420
|
+
searchParams: (_a3 = _ctx.actionsRef) == null ? void 0 : _a3.searchParams,
|
|
37412
37421
|
onCleanSelected: _ctx.onCleanSelected
|
|
37413
37422
|
})
|
|
37414
37423
|
],
|
|
@@ -37434,7 +37443,7 @@
|
|
|
37434
37443
|
class: vue.normalizeClass(`${_ctx.prefixCls}-toolbar-actions`)
|
|
37435
37444
|
}, {
|
|
37436
37445
|
default: vue.withCtx(() => {
|
|
37437
|
-
var _a3,
|
|
37446
|
+
var _a3, _b2;
|
|
37438
37447
|
return [
|
|
37439
37448
|
_ctx.mergeOptions.search !== false && (!!_ctx.title || !!_ctx.$slots.title) ? (vue.openBlock(), vue.createElementBlock(
|
|
37440
37449
|
vue.Fragment,
|
|
@@ -37446,7 +37455,7 @@
|
|
|
37446
37455
|
selectedRowKeys: _ctx.selectedRowKeys,
|
|
37447
37456
|
selectedRows: _ctx.selectedRows,
|
|
37448
37457
|
actionsRef: _ctx.actionsRef,
|
|
37449
|
-
searchParams: (
|
|
37458
|
+
searchParams: (_a3 = _ctx.actionsRef) == null ? void 0 : _a3.searchParams,
|
|
37450
37459
|
onCleanSelected: _ctx.onCleanSelected
|
|
37451
37460
|
})
|
|
37452
37461
|
],
|
|
@@ -37458,7 +37467,7 @@
|
|
|
37458
37467
|
selectedRowKeys: _ctx.selectedRowKeys,
|
|
37459
37468
|
selectedRows: _ctx.selectedRows,
|
|
37460
37469
|
actionsRef: _ctx.actionsRef,
|
|
37461
|
-
searchParams: (
|
|
37470
|
+
searchParams: (_b2 = _ctx.actionsRef) == null ? void 0 : _b2.searchParams,
|
|
37462
37471
|
onCleanSelected: _ctx.onCleanSelected
|
|
37463
37472
|
}),
|
|
37464
37473
|
_ctx.options !== false ? (vue.openBlock(), vue.createElementBlock(
|
|
@@ -37535,7 +37544,7 @@
|
|
|
37535
37544
|
selectedRowKeys: _ctx.selectedRowKeys,
|
|
37536
37545
|
selectedRows: _ctx.selectedRows,
|
|
37537
37546
|
actionsRef: _ctx.actionsRef,
|
|
37538
|
-
searchParams: (
|
|
37547
|
+
searchParams: (_d = _ctx.actionsRef) == null ? void 0 : _d.searchParams,
|
|
37539
37548
|
onCleanSelected: _ctx.onCleanSelected
|
|
37540
37549
|
})
|
|
37541
37550
|
],
|
|
@@ -38072,9 +38081,6 @@
|
|
|
38072
38081
|
}
|
|
38073
38082
|
};
|
|
38074
38083
|
const hideToolbar = vue.computed(() => mergeOptions.value === false && !props.title && !slots.title && !slots.toolbar && !slots.searchExtra && !slots.toolbarActions);
|
|
38075
|
-
const showTableCard = vue.computed(() => {
|
|
38076
|
-
return props.cardProps !== false && !counter.hasFullScreen.value;
|
|
38077
|
-
});
|
|
38078
38084
|
const notNeedCardDom = vue.computed(() => {
|
|
38079
38085
|
var _a2;
|
|
38080
38086
|
if ((props.search === false || !((_a2 = formItems.value) == null ? void 0 : _a2.length)) && props.toolBar === false) {
|
|
@@ -38082,8 +38088,14 @@
|
|
|
38082
38088
|
}
|
|
38083
38089
|
return false;
|
|
38084
38090
|
});
|
|
38091
|
+
const showTableCard = vue.computed(() => {
|
|
38092
|
+
if (counter.hasFullScreen.value) {
|
|
38093
|
+
return false;
|
|
38094
|
+
}
|
|
38095
|
+
return props.cardProps !== false && !notNeedCardDom.value;
|
|
38096
|
+
});
|
|
38085
38097
|
const cardBodyStyle = vue.computed(() => {
|
|
38086
|
-
if (!showTableCard.value
|
|
38098
|
+
if (!showTableCard.value) return {};
|
|
38087
38099
|
if (hideToolbar.value) {
|
|
38088
38100
|
return {
|
|
38089
38101
|
padding: 0
|
|
@@ -38195,6 +38207,10 @@
|
|
|
38195
38207
|
...actions.formSearch.value,
|
|
38196
38208
|
...fieldValues
|
|
38197
38209
|
});
|
|
38210
|
+
},
|
|
38211
|
+
getSearchParams: () => {
|
|
38212
|
+
var _a2;
|
|
38213
|
+
return (_a2 = actions.searchParams.value) != null ? _a2 : {};
|
|
38198
38214
|
}
|
|
38199
38215
|
});
|
|
38200
38216
|
return () => {
|
|
@@ -38265,7 +38281,7 @@
|
|
|
38265
38281
|
...slots,
|
|
38266
38282
|
footer: props.footer || slots.footer
|
|
38267
38283
|
})]);
|
|
38268
|
-
if (
|
|
38284
|
+
if (showTableCard.value) {
|
|
38269
38285
|
const _tableDom = /* @__PURE__ */ (function() {
|
|
38270
38286
|
return tableDom;
|
|
38271
38287
|
})();
|