pro-design-vue 1.2.11 → 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 +30 -19
- package/dist/index.full.min.js +6 -6
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +7 -7
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +30 -19
- 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/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/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;
|
|
@@ -21882,7 +21883,7 @@
|
|
|
21882
21883
|
pollingLoading.value = false;
|
|
21883
21884
|
};
|
|
21884
21885
|
const fetchList = async (isPolling) => {
|
|
21885
|
-
var _a2, _b, _c, _d;
|
|
21886
|
+
var _a2, _b, _c, _d, _e, _f, _g;
|
|
21886
21887
|
if (manualRequestRef.value) {
|
|
21887
21888
|
manualRequestRef.value = false;
|
|
21888
21889
|
return;
|
|
@@ -21894,12 +21895,13 @@
|
|
|
21894
21895
|
}
|
|
21895
21896
|
const { current, pageSize } = pagination.value;
|
|
21896
21897
|
const params = { ...innerParams.value, ...formSearch.value };
|
|
21897
|
-
if (
|
|
21898
|
-
|
|
21899
|
-
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;
|
|
21900
21902
|
}
|
|
21901
21903
|
if (keyword.value) {
|
|
21902
|
-
params[(
|
|
21904
|
+
params[(_d = keywordName.value) != null ? _d : "keyword"] = keyword.value;
|
|
21903
21905
|
}
|
|
21904
21906
|
try {
|
|
21905
21907
|
const {
|
|
@@ -21907,13 +21909,13 @@
|
|
|
21907
21909
|
success,
|
|
21908
21910
|
total = 0,
|
|
21909
21911
|
...rest
|
|
21910
|
-
} = await ((
|
|
21912
|
+
} = await ((_e = getData.value) == null ? void 0 : _e.call(getData, params, vue.toRaw(sorters.value), vue.toRaw(filter.value))) || {};
|
|
21911
21913
|
if (success === false) return [];
|
|
21912
21914
|
setTableDataList(data);
|
|
21913
|
-
if (((
|
|
21915
|
+
if (((_f = pagination.value) == null ? void 0 : _f.total) !== total) {
|
|
21914
21916
|
pagination.value.total = total || data.length;
|
|
21915
21917
|
}
|
|
21916
|
-
(
|
|
21918
|
+
(_g = props.onLoad) == null ? void 0 : _g.call(props, data, rest);
|
|
21917
21919
|
return data;
|
|
21918
21920
|
} catch (e) {
|
|
21919
21921
|
if (props.onRequestError === void 0) throw new Error(e);
|
|
@@ -31393,8 +31395,8 @@
|
|
|
31393
31395
|
const nestExpandable = vue.computed(() => tableContext.expandType.value === "nest");
|
|
31394
31396
|
const hasNestChildren = vue.computed(
|
|
31395
31397
|
() => {
|
|
31396
|
-
var _a;
|
|
31397
|
-
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));
|
|
31398
31400
|
}
|
|
31399
31401
|
);
|
|
31400
31402
|
const mergedExpandable = vue.computed(() => rowExpandable.value || nestExpandable.value);
|
|
@@ -33077,7 +33079,10 @@
|
|
|
33077
33079
|
);
|
|
33078
33080
|
const expandedRowRender = vue.computed(() => props.expandedRowRender);
|
|
33079
33081
|
const expandType = eagerComputed(
|
|
33080
|
-
() => 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
|
|
33081
33086
|
);
|
|
33082
33087
|
const expandable = eagerComputed(() => !!props.expandedRowRender);
|
|
33083
33088
|
const columns = useColumns({
|
|
@@ -33330,7 +33335,12 @@
|
|
|
33330
33335
|
);
|
|
33331
33336
|
};
|
|
33332
33337
|
const paginationProps = vue.computed(() => {
|
|
33333
|
-
return omit(mergedPagination.value, [
|
|
33338
|
+
return omit(mergedPagination.value, [
|
|
33339
|
+
"position",
|
|
33340
|
+
"onChange",
|
|
33341
|
+
"onShowSizeChange",
|
|
33342
|
+
"fieldNames"
|
|
33343
|
+
]);
|
|
33334
33344
|
});
|
|
33335
33345
|
const paginationClass = vue.computed(() => {
|
|
33336
33346
|
return {
|
|
@@ -35269,7 +35279,8 @@
|
|
|
35269
35279
|
const tableRef = vue.ref();
|
|
35270
35280
|
const {
|
|
35271
35281
|
table,
|
|
35272
|
-
prefixCls: antPrefixCls
|
|
35282
|
+
prefixCls: antPrefixCls,
|
|
35283
|
+
dark
|
|
35273
35284
|
} = useProConfigInject();
|
|
35274
35285
|
const prefixCls = usePrefixCls("table");
|
|
35275
35286
|
const {
|
|
@@ -35570,7 +35581,7 @@
|
|
|
35570
35581
|
reset
|
|
35571
35582
|
});
|
|
35572
35583
|
return () => {
|
|
35573
|
-
var _a2, _b, _c, _d;
|
|
35584
|
+
var _a2, _b, _c, _d, _e;
|
|
35574
35585
|
const {
|
|
35575
35586
|
expandIcon = slots.expandIcon,
|
|
35576
35587
|
expandedRowRender = slots.expandedRowRender
|
|
@@ -35644,7 +35655,7 @@
|
|
|
35644
35655
|
return tableDom;
|
|
35645
35656
|
})();
|
|
35646
35657
|
tableDom = vue.createVNode(antDesignVue.Card, vue.mergeProps({
|
|
35647
|
-
"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),
|
|
35648
35659
|
"bodyStyle": cardBodyStyle.value
|
|
35649
35660
|
}, props.cardProps), _isSlot$2(tableDom) ? tableDom : {
|
|
35650
35661
|
default: () => [_tableDom]
|
|
@@ -35657,7 +35668,7 @@
|
|
|
35657
35668
|
}
|
|
35658
35669
|
}, {
|
|
35659
35670
|
default: () => {
|
|
35660
|
-
var _a3, _b2, _c2;
|
|
35671
|
+
var _a3, _b2, _c2, _d2;
|
|
35661
35672
|
return [vue.createVNode("div", vue.mergeProps({
|
|
35662
35673
|
"ref": counter.rootDomRef
|
|
35663
35674
|
}, attrs, {
|
|
@@ -35666,7 +35677,7 @@
|
|
|
35666
35677
|
}), [props.search !== false && !!((_a3 = formItems.value) == null ? void 0 : _a3.length) && vue.createVNode(FormRender, {
|
|
35667
35678
|
"prefixCls": mergedPrefixCls.value,
|
|
35668
35679
|
"items": formItems.value,
|
|
35669
|
-
"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,
|
|
35670
35681
|
"search": props.search,
|
|
35671
35682
|
"tableShowCard": props.cardProps !== false,
|
|
35672
35683
|
"loading": formSubmitLoading.value,
|