@qin-ui/antd-vue-pro 1.0.33 → 1.0.35
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/es/component-provider/index.js +1 -1
- package/es/form/{index-a8c9e629.js → index-e89e1742.js} +4 -3
- package/es/form/index.js +1 -1
- package/es/index.d.ts +19 -13
- package/es/index.js +2 -2
- package/es/style.css +2 -2
- package/es/table/index.js +5 -4
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, provide, renderSlot } from "vue";
|
|
2
2
|
import "ant-design-vue";
|
|
3
|
-
import { I as INJECT_COMPONENT_PROPS_KEYS } from "../form/index-
|
|
3
|
+
import { I as INJECT_COMPONENT_PROPS_KEYS } from "../form/index-e89e1742.js";
|
|
4
4
|
import { PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS } from "../table/index.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "index",
|
|
@@ -15958,16 +15958,17 @@ const useFields = (initFields) => {
|
|
|
15958
15958
|
return void 0;
|
|
15959
15959
|
return (_a = fieldMap.value[path]) == null ? void 0 : _a.fieldPath;
|
|
15960
15960
|
};
|
|
15961
|
-
const setField = (path, field) => {
|
|
15961
|
+
const setField = (path, field, updateType = "merge") => {
|
|
15962
15962
|
const fieldPath = getFieldPath(path);
|
|
15963
15963
|
if (!fieldPath)
|
|
15964
15964
|
return;
|
|
15965
15965
|
let value = field;
|
|
15966
|
+
const preField = getField(path);
|
|
15966
15967
|
if (typeof field === "function") {
|
|
15967
|
-
const preField = getField(path);
|
|
15968
15968
|
value = field(preField);
|
|
15969
15969
|
}
|
|
15970
|
-
|
|
15970
|
+
const newField = updateType === "rewrite" ? value : { ...preField, ...value };
|
|
15971
|
+
set$1(fields.value, fieldPath, newField);
|
|
15971
15972
|
};
|
|
15972
15973
|
function findFieldIndex(path) {
|
|
15973
15974
|
var _a;
|
package/es/form/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k, B, d, h, C, b, f, F, j, l, I, R, e, i, U, g, _, m, p, n, s, q, u, r, t } from "./index-
|
|
1
|
+
import { k, B, d, h, C, b, f, F, j, l, I, R, e, i, U, g, _, m, p, n, s, q, u, r, t } from "./index-e89e1742.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "ant-design-vue";
|
|
4
4
|
export {
|
package/es/index.d.ts
CHANGED
|
@@ -683,14 +683,14 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
|
|
|
683
683
|
footer?: PanelRender<any> | undefined;
|
|
684
684
|
tableLayout?: TableLayout | undefined;
|
|
685
685
|
columns?: ColumnsType<any> | undefined;
|
|
686
|
-
sortDirections?: SortOrder[] | undefined;
|
|
687
|
-
showSorterTooltip?: boolean | undefined;
|
|
688
686
|
scroll?: ({
|
|
689
687
|
x?: string | number | true | undefined;
|
|
690
688
|
y?: string | number | undefined;
|
|
691
689
|
} & {
|
|
692
690
|
scrollToFirstRowOnChange?: boolean | undefined;
|
|
693
691
|
}) | undefined;
|
|
692
|
+
sortDirections?: SortOrder[] | undefined;
|
|
693
|
+
showSorterTooltip?: boolean | undefined;
|
|
694
694
|
rowClassName?: string | RowClassName<any> | undefined;
|
|
695
695
|
showHeader?: boolean | undefined;
|
|
696
696
|
customRow?: GetComponentProps<any> | undefined;
|
|
@@ -718,6 +718,7 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
|
|
|
718
718
|
controlContainer?: ContainerComponent | any;
|
|
719
719
|
tableContainer?: ContainerComponent | any;
|
|
720
720
|
paramCache?: ParamCache | undefined;
|
|
721
|
+
disabledParamCache?: boolean | undefined;
|
|
721
722
|
immediateSearch?: boolean | undefined;
|
|
722
723
|
onResizeColumn?: ((w: number, col: ColumnType_2<any>) => void) | undefined;
|
|
723
724
|
rowSelection?: TableRowSelection<any> | undefined;
|
|
@@ -1126,14 +1127,14 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
|
|
|
1126
1127
|
footer?: PanelRender<any> | undefined;
|
|
1127
1128
|
tableLayout?: TableLayout | undefined;
|
|
1128
1129
|
columns?: ColumnsType<any> | undefined;
|
|
1129
|
-
sortDirections?: SortOrder[] | undefined;
|
|
1130
|
-
showSorterTooltip?: boolean | undefined;
|
|
1131
1130
|
scroll?: ({
|
|
1132
1131
|
x?: string | number | true | undefined;
|
|
1133
1132
|
y?: string | number | undefined;
|
|
1134
1133
|
} & {
|
|
1135
1134
|
scrollToFirstRowOnChange?: boolean | undefined;
|
|
1136
1135
|
}) | undefined;
|
|
1136
|
+
sortDirections?: SortOrder[] | undefined;
|
|
1137
|
+
showSorterTooltip?: boolean | undefined;
|
|
1137
1138
|
rowClassName?: string | RowClassName<any> | undefined;
|
|
1138
1139
|
showHeader?: boolean | undefined;
|
|
1139
1140
|
customRow?: GetComponentProps<any> | undefined;
|
|
@@ -1161,6 +1162,7 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
|
|
|
1161
1162
|
controlContainer?: ContainerComponent | any;
|
|
1162
1163
|
tableContainer?: ContainerComponent | any;
|
|
1163
1164
|
paramCache?: ParamCache | undefined;
|
|
1165
|
+
disabledParamCache?: boolean | undefined;
|
|
1164
1166
|
immediateSearch?: boolean | undefined;
|
|
1165
1167
|
onResizeColumn?: ((w: number, col: ColumnType_2<any>) => void) | undefined;
|
|
1166
1168
|
rowSelection?: TableRowSelection<any> | undefined;
|
|
@@ -1573,14 +1575,14 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
|
|
|
1573
1575
|
footer?: PanelRender<any> | undefined;
|
|
1574
1576
|
tableLayout?: TableLayout | undefined;
|
|
1575
1577
|
columns?: ColumnsType<any> | undefined;
|
|
1576
|
-
sortDirections?: SortOrder[] | undefined;
|
|
1577
|
-
showSorterTooltip?: boolean | undefined;
|
|
1578
1578
|
scroll?: ({
|
|
1579
1579
|
x?: string | number | true | undefined;
|
|
1580
1580
|
y?: string | number | undefined;
|
|
1581
1581
|
} & {
|
|
1582
1582
|
scrollToFirstRowOnChange?: boolean | undefined;
|
|
1583
1583
|
}) | undefined;
|
|
1584
|
+
sortDirections?: SortOrder[] | undefined;
|
|
1585
|
+
showSorterTooltip?: boolean | undefined;
|
|
1584
1586
|
rowClassName?: string | RowClassName<any> | undefined;
|
|
1585
1587
|
showHeader?: boolean | undefined;
|
|
1586
1588
|
customRow?: GetComponentProps<any> | undefined;
|
|
@@ -1608,6 +1610,7 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
|
|
|
1608
1610
|
controlContainer?: ContainerComponent | any;
|
|
1609
1611
|
tableContainer?: ContainerComponent | any;
|
|
1610
1612
|
paramCache?: ParamCache | undefined;
|
|
1613
|
+
disabledParamCache?: boolean | undefined;
|
|
1611
1614
|
immediateSearch?: boolean | undefined;
|
|
1612
1615
|
onResizeColumn?: ((w: number, col: ColumnType_2<any>) => void) | undefined;
|
|
1613
1616
|
rowSelection?: TableRowSelection<any> | undefined;
|
|
@@ -3291,14 +3294,14 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
|
|
|
3291
3294
|
footer?: PanelRender<any> | undefined;
|
|
3292
3295
|
tableLayout?: TableLayout | undefined;
|
|
3293
3296
|
columns?: TableColumnsType<any> | undefined;
|
|
3294
|
-
sortDirections?: SortOrder[] | undefined;
|
|
3295
|
-
showSorterTooltip?: boolean | undefined;
|
|
3296
3297
|
scroll?: ({
|
|
3297
3298
|
x?: string | number | true | undefined;
|
|
3298
3299
|
y?: string | number | undefined;
|
|
3299
3300
|
} & {
|
|
3300
3301
|
scrollToFirstRowOnChange?: boolean | undefined;
|
|
3301
3302
|
}) | undefined;
|
|
3303
|
+
sortDirections?: SortOrder[] | undefined;
|
|
3304
|
+
showSorterTooltip?: boolean | undefined;
|
|
3302
3305
|
rowClassName?: string | RowClassName<any> | undefined;
|
|
3303
3306
|
showHeader?: boolean | undefined;
|
|
3304
3307
|
customRow?: GetComponentProps<any> | undefined;
|
|
@@ -3326,6 +3329,7 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
|
|
|
3326
3329
|
controlContainer?: any;
|
|
3327
3330
|
tableContainer?: any;
|
|
3328
3331
|
paramCache?: ParamCache | undefined;
|
|
3332
|
+
disabledParamCache?: boolean | undefined;
|
|
3329
3333
|
immediateSearch?: boolean | undefined;
|
|
3330
3334
|
onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
|
|
3331
3335
|
rowSelection?: TableRowSelection<any> | undefined;
|
|
@@ -3734,14 +3738,14 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
|
|
|
3734
3738
|
footer?: PanelRender<any> | undefined;
|
|
3735
3739
|
tableLayout?: TableLayout | undefined;
|
|
3736
3740
|
columns?: TableColumnsType<any> | undefined;
|
|
3737
|
-
sortDirections?: SortOrder[] | undefined;
|
|
3738
|
-
showSorterTooltip?: boolean | undefined;
|
|
3739
3741
|
scroll?: ({
|
|
3740
3742
|
x?: string | number | true | undefined;
|
|
3741
3743
|
y?: string | number | undefined;
|
|
3742
3744
|
} & {
|
|
3743
3745
|
scrollToFirstRowOnChange?: boolean | undefined;
|
|
3744
3746
|
}) | undefined;
|
|
3747
|
+
sortDirections?: SortOrder[] | undefined;
|
|
3748
|
+
showSorterTooltip?: boolean | undefined;
|
|
3745
3749
|
rowClassName?: string | RowClassName<any> | undefined;
|
|
3746
3750
|
showHeader?: boolean | undefined;
|
|
3747
3751
|
customRow?: GetComponentProps<any> | undefined;
|
|
@@ -3769,6 +3773,7 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
|
|
|
3769
3773
|
controlContainer?: any;
|
|
3770
3774
|
tableContainer?: any;
|
|
3771
3775
|
paramCache?: ParamCache | undefined;
|
|
3776
|
+
disabledParamCache?: boolean | undefined;
|
|
3772
3777
|
immediateSearch?: boolean | undefined;
|
|
3773
3778
|
onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
|
|
3774
3779
|
rowSelection?: TableRowSelection<any> | undefined;
|
|
@@ -4181,14 +4186,14 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
|
|
|
4181
4186
|
footer?: PanelRender<any> | undefined;
|
|
4182
4187
|
tableLayout?: TableLayout | undefined;
|
|
4183
4188
|
columns?: TableColumnsType<any> | undefined;
|
|
4184
|
-
sortDirections?: SortOrder[] | undefined;
|
|
4185
|
-
showSorterTooltip?: boolean | undefined;
|
|
4186
4189
|
scroll?: ({
|
|
4187
4190
|
x?: string | number | true | undefined;
|
|
4188
4191
|
y?: string | number | undefined;
|
|
4189
4192
|
} & {
|
|
4190
4193
|
scrollToFirstRowOnChange?: boolean | undefined;
|
|
4191
4194
|
}) | undefined;
|
|
4195
|
+
sortDirections?: SortOrder[] | undefined;
|
|
4196
|
+
showSorterTooltip?: boolean | undefined;
|
|
4192
4197
|
rowClassName?: string | RowClassName<any> | undefined;
|
|
4193
4198
|
showHeader?: boolean | undefined;
|
|
4194
4199
|
customRow?: GetComponentProps<any> | undefined;
|
|
@@ -4216,6 +4221,7 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
|
|
|
4216
4221
|
controlContainer?: any;
|
|
4217
4222
|
tableContainer?: any;
|
|
4218
4223
|
paramCache?: ParamCache | undefined;
|
|
4224
|
+
disabledParamCache?: boolean | undefined;
|
|
4219
4225
|
immediateSearch?: boolean | undefined;
|
|
4220
4226
|
onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
|
|
4221
4227
|
rowSelection?: TableRowSelection<any> | undefined;
|
|
@@ -4371,7 +4377,7 @@ declare type SelectSlots = FieldSlot<keyof InstanceType<typeof Select>['$slots']
|
|
|
4371
4377
|
|
|
4372
4378
|
export declare type SetActivePath = (path: string | undefined) => void;
|
|
4373
4379
|
|
|
4374
|
-
export declare type SetField = (path: string | undefined, field: Field | ((preField: ReturnType<GetField>) => Field)) => void;
|
|
4380
|
+
export declare type SetField = (path: string | undefined, field: Field | ((preField: ReturnType<GetField>) => Field), updateType?: 'rewrite' | 'merge') => void;
|
|
4375
4381
|
|
|
4376
4382
|
export declare type SetFormData = (path: string | undefined, value: any | ((preValue: DeepReadonly<any>) => any)) => void;
|
|
4377
4383
|
|
package/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { _ as _sfc_main } from "./form/index-
|
|
3
|
-
import { k, B, d, h, C, b, f, F, j, l, I, R, e, i, U, g, m, p, n, s, q, u, r, t } from "./form/index-
|
|
2
|
+
import { _ as _sfc_main } from "./form/index-e89e1742.js";
|
|
3
|
+
import { k, B, d, h, C, b, f, F, j, l, I, R, e, i, U, g, m, p, n, s, q, u, r, t } from "./form/index-e89e1742.js";
|
|
4
4
|
import BaseTable from "./table/index.js";
|
|
5
5
|
import { PRO_TABLE_INIT_COMPONENT_PROPS_MAP, PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS, useTable } from "./table/index.js";
|
|
6
6
|
import _sfc_main$1 from "./component-provider/index.js";
|
package/es/style.css
CHANGED
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
padding: 24px 24px 16px;
|
|
42
42
|
background-color: #fff;
|
|
43
43
|
}
|
|
44
|
-
.pro-table[data-v-
|
|
44
|
+
.pro-table[data-v-1a65329a] {
|
|
45
45
|
display: flex;
|
|
46
46
|
flex-direction: column;
|
|
47
47
|
min-width: 800px;
|
|
48
48
|
}
|
|
49
|
-
.pro-table[data-v-
|
|
49
|
+
.pro-table[data-v-1a65329a] .ant-pagination .ant-pagination-total-text {
|
|
50
50
|
flex: 1;
|
|
51
51
|
}
|
package/es/table/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode, defineComponent, ref, onMounted, openBlock, createElementBlock, unref, normalizeStyle, createElementVNode, withCtx, createTextVNode, createBlock, toDisplayString, createCommentVNode, mergeModels, useModel, computed, watch, Fragment, renderList, withModifiers, renderSlot, inject, useAttrs, useSlots, mergeProps, createSlots, normalizeProps, guardReactiveProps, nextTick } from "vue";
|
|
2
2
|
import { Button, Space, Dropdown, Menu, MenuItem, Checkbox, MenuDivider, Table } from "ant-design-vue";
|
|
3
|
-
import { A as AntdIcon, _ as _sfc_main$6, a as _export_sfc, o as omit, b as _sfc_main$7, c as cloneDeep, u as useForm } from "../form/index-
|
|
3
|
+
import { A as AntdIcon, _ as _sfc_main$6, a as _export_sfc, o as omit, b as _sfc_main$7, c as cloneDeep, u as useForm } from "../form/index-e89e1742.js";
|
|
4
4
|
var ColumnHeightOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 00-11.3 0L403.6 366.3a7.23 7.23 0 005.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z" } }] }, "name": "column-height", "theme": "outlined" };
|
|
5
5
|
const ColumnHeightOutlinedSvg = ColumnHeightOutlined$2;
|
|
6
6
|
function _objectSpread$2(target) {
|
|
@@ -400,6 +400,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
400
400
|
controlContainer: { default: DefaultControlContainer },
|
|
401
401
|
tableContainer: { default: DefaultTableContainer },
|
|
402
402
|
paramCache: { default: void 0 },
|
|
403
|
+
disabledParamCache: { type: Boolean, default: false },
|
|
403
404
|
immediateSearch: { type: Boolean, default: false }
|
|
404
405
|
},
|
|
405
406
|
emits: ["search"],
|
|
@@ -409,7 +410,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
409
410
|
const injectProps = inject(
|
|
410
411
|
PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS.table
|
|
411
412
|
);
|
|
412
|
-
const cache = props.paramCache ?? (injectProps == null ? void 0 : injectProps.paramCache);
|
|
413
|
+
const cache = props.disabledParamCache ? void 0 : props.paramCache ?? (injectProps == null ? void 0 : injectProps.paramCache);
|
|
413
414
|
const size = ref(unref(props.size));
|
|
414
415
|
const attrs = useAttrs();
|
|
415
416
|
const { table = {} } = props;
|
|
@@ -586,8 +587,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
586
587
|
};
|
|
587
588
|
}
|
|
588
589
|
});
|
|
589
|
-
const
|
|
590
|
-
const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
590
|
+
const Table_vue_vue_type_style_index_0_scoped_1a65329a_lang = "";
|
|
591
|
+
const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1a65329a"]]);
|
|
591
592
|
const getDefaultPagination = () => ({ current: 1, pageSize: 10, total: 0 });
|
|
592
593
|
const useTable = ({
|
|
593
594
|
columns: initColumns = [],
|