@qin-ui/antd-vue-pro 2.0.7 → 2.0.8
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/antd-vue-pro.css +4 -4
- package/es/index.d.ts +1 -90
- package/es/table/index.js +2 -4
- package/package.json +1 -1
package/es/antd-vue-pro.css
CHANGED
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
.control-icon[data-v-88c80679] :hover {
|
|
37
37
|
color: #1677ff;
|
|
38
38
|
}
|
|
39
|
-
.pro-table .pro-table-header[data-v-
|
|
39
|
+
.pro-table .pro-table-header[data-v-eb2f3860] {
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
42
42
|
justify-content: flex-end;
|
|
43
43
|
}
|
|
44
|
-
.pro-table .pro-table-header[data-v-
|
|
44
|
+
.pro-table .pro-table-header[data-v-eb2f3860]:empty {
|
|
45
45
|
display: none;
|
|
46
46
|
}
|
|
47
|
-
.pro-table .pro-table-header + .pro-table-content[data-v-
|
|
47
|
+
.pro-table .pro-table-header + .pro-table-content[data-v-eb2f3860] {
|
|
48
48
|
margin-top: 16px;
|
|
49
49
|
}
|
|
50
|
-
.pro-table[data-v-
|
|
50
|
+
.pro-table[data-v-eb2f3860] .ant-pagination .ant-pagination-total-text {
|
|
51
51
|
flex: 1;
|
|
52
52
|
}
|
package/es/index.d.ts
CHANGED
|
@@ -365,96 +365,7 @@ export default _default;
|
|
|
365
365
|
declare const _default_2: <T extends Table<any> = Table>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
366
366
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ({
|
|
367
367
|
table?: T;
|
|
368
|
-
search?: (
|
|
369
|
-
total: NumberConstructor;
|
|
370
|
-
defaultCurrent: NumberConstructor;
|
|
371
|
-
disabled: {
|
|
372
|
-
type: BooleanConstructor;
|
|
373
|
-
default: boolean;
|
|
374
|
-
};
|
|
375
|
-
current: NumberConstructor;
|
|
376
|
-
defaultPageSize: NumberConstructor;
|
|
377
|
-
pageSize: NumberConstructor;
|
|
378
|
-
hideOnSinglePage: {
|
|
379
|
-
type: BooleanConstructor;
|
|
380
|
-
default: boolean;
|
|
381
|
-
};
|
|
382
|
-
showSizeChanger: {
|
|
383
|
-
type: BooleanConstructor;
|
|
384
|
-
default: boolean;
|
|
385
|
-
};
|
|
386
|
-
pageSizeOptions: {
|
|
387
|
-
type: PropType<(string | number)[]>;
|
|
388
|
-
default: (string | number)[];
|
|
389
|
-
};
|
|
390
|
-
buildOptionText: {
|
|
391
|
-
type: PropType<(opt: {
|
|
392
|
-
value: any;
|
|
393
|
-
}) => any>;
|
|
394
|
-
default: (opt: {
|
|
395
|
-
value: any;
|
|
396
|
-
}) => any;
|
|
397
|
-
};
|
|
398
|
-
showQuickJumper: {
|
|
399
|
-
type: PropType<boolean | {
|
|
400
|
-
goButton?: any;
|
|
401
|
-
}>;
|
|
402
|
-
default: boolean | {
|
|
403
|
-
goButton?: any;
|
|
404
|
-
};
|
|
405
|
-
};
|
|
406
|
-
showTotal: {
|
|
407
|
-
type: PropType<(total: number, range: [number, number]) => any>;
|
|
408
|
-
default: (total: number, range: [number, number]) => any;
|
|
409
|
-
};
|
|
410
|
-
size: {
|
|
411
|
-
type: PropType<"default" | "small">;
|
|
412
|
-
default: "default" | "small";
|
|
413
|
-
};
|
|
414
|
-
simple: {
|
|
415
|
-
type: BooleanConstructor;
|
|
416
|
-
default: boolean;
|
|
417
|
-
};
|
|
418
|
-
locale: ObjectConstructor;
|
|
419
|
-
prefixCls: StringConstructor;
|
|
420
|
-
selectPrefixCls: StringConstructor;
|
|
421
|
-
totalBoundaryShowSizeChanger: NumberConstructor;
|
|
422
|
-
selectComponentClass: StringConstructor;
|
|
423
|
-
itemRender: {
|
|
424
|
-
type: PropType<(opt: {
|
|
425
|
-
page: number;
|
|
426
|
-
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
427
|
-
originalElement: any;
|
|
428
|
-
}) => any>;
|
|
429
|
-
default: (opt: {
|
|
430
|
-
page: number;
|
|
431
|
-
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
432
|
-
originalElement: any;
|
|
433
|
-
}) => any;
|
|
434
|
-
};
|
|
435
|
-
role: StringConstructor;
|
|
436
|
-
responsive: BooleanConstructor;
|
|
437
|
-
showLessItems: {
|
|
438
|
-
type: BooleanConstructor;
|
|
439
|
-
default: boolean;
|
|
440
|
-
};
|
|
441
|
-
onChange: {
|
|
442
|
-
type: PropType<(page: number, pageSize: number) => void>;
|
|
443
|
-
default: (page: number, pageSize: number) => void;
|
|
444
|
-
};
|
|
445
|
-
onShowSizeChange: {
|
|
446
|
-
type: PropType<(current: number, size: number) => void>;
|
|
447
|
-
default: (current: number, size: number) => void;
|
|
448
|
-
};
|
|
449
|
-
'onUpdate:current': {
|
|
450
|
-
type: PropType<(current: number) => void>;
|
|
451
|
-
default: (current: number) => void;
|
|
452
|
-
};
|
|
453
|
-
'onUpdate:pageSize': {
|
|
454
|
-
type: PropType<(size: number) => void>;
|
|
455
|
-
default: (size: number) => void;
|
|
456
|
-
};
|
|
457
|
-
}>>, "current" | "pageSize">>) => Promise<unknown>;
|
|
368
|
+
search?: () => Promise<unknown>;
|
|
458
369
|
addIndexColumn?: boolean;
|
|
459
370
|
immediateSearch?: boolean;
|
|
460
371
|
control?: boolean | Partial<{
|
package/es/table/index.js
CHANGED
|
@@ -466,11 +466,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
466
466
|
const loading = useModel(attrs, "loading");
|
|
467
467
|
const _search = async () => {
|
|
468
468
|
var _a;
|
|
469
|
-
const { current = 0, pageSize = 0 } = pageParam || {};
|
|
470
|
-
const param = { ...searchForm == null ? void 0 : searchForm.formData, current, pageSize };
|
|
471
469
|
try {
|
|
472
470
|
loading.value = true;
|
|
473
|
-
await ((_a = props.search) == null ? void 0 : _a.call(props
|
|
471
|
+
await ((_a = props.search) == null ? void 0 : _a.call(props));
|
|
474
472
|
} finally {
|
|
475
473
|
loading.value = false;
|
|
476
474
|
}
|
|
@@ -622,7 +620,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
622
620
|
};
|
|
623
621
|
}
|
|
624
622
|
});
|
|
625
|
-
const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
623
|
+
const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-eb2f3860"]]);
|
|
626
624
|
const getDefaultPageParam = () => ({ current: 1, pageSize: 10, total: 0 });
|
|
627
625
|
const pageParamProperty = ["current", "pageSize", "total"];
|
|
628
626
|
const useTable = (params) => {
|