vue-devui 1.5.15-hotfix.3 → 1.5.15-hotfix.4
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/button/index.es.js +8 -2
- package/button/index.umd.js +9 -9
- package/date-picker-pro/index.es.js +8 -2
- package/date-picker-pro/index.umd.js +10 -10
- package/package.json +1 -1
- package/pagination/index.es.js +12 -2
- package/pagination/index.umd.js +17 -17
- package/table/index.es.js +8 -2
- package/table/index.umd.js +2 -2
- package/time-picker/index.es.js +8 -2
- package/time-picker/index.umd.js +6 -6
- package/types/button/src/button-types.d.ts +5 -0
- package/types/pagination/src/pagination-types.d.ts +4 -0
- package/types/pagination/src/pagination.d.ts +9 -0
- package/vue-devui.es.js +21 -5
- package/vue-devui.umd.js +21 -21
|
@@ -3,6 +3,7 @@ export declare type IButtonVariant = 'solid' | 'outline' | 'text';
|
|
|
3
3
|
export declare type IButtonColor = 'secondary' | 'primary' | 'danger';
|
|
4
4
|
export declare type IButtonSize = 'lg' | 'md' | 'sm';
|
|
5
5
|
export declare type IButtonShape = 'round' | 'circle';
|
|
6
|
+
export declare type IButtonType = 'button' | 'submit' | 'reset';
|
|
6
7
|
export declare const buttonProps: {
|
|
7
8
|
readonly variant: {
|
|
8
9
|
readonly type: PropType<IButtonVariant>;
|
|
@@ -30,6 +31,10 @@ export declare const buttonProps: {
|
|
|
30
31
|
readonly shape: {
|
|
31
32
|
readonly type: PropType<IButtonShape>;
|
|
32
33
|
};
|
|
34
|
+
readonly nativeType: {
|
|
35
|
+
readonly type: PropType<IButtonType>;
|
|
36
|
+
readonly default: "button";
|
|
37
|
+
};
|
|
33
38
|
};
|
|
34
39
|
export declare const buttonGroupProps: {
|
|
35
40
|
readonly size: {
|
|
@@ -96,6 +96,10 @@ export declare const paginationProps: {
|
|
|
96
96
|
readonly onPageSizeChange: {
|
|
97
97
|
readonly type: PropType<(v: number) => void>;
|
|
98
98
|
};
|
|
99
|
+
readonly maxPage: {
|
|
100
|
+
readonly type: NumberConstructor;
|
|
101
|
+
readonly default: 0;
|
|
102
|
+
};
|
|
99
103
|
};
|
|
100
104
|
export declare type PaginationProps = ExtractPropTypes<typeof paginationProps>;
|
|
101
105
|
export interface IPagination {
|
|
@@ -94,6 +94,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
94
94
|
readonly onPageSizeChange: {
|
|
95
95
|
readonly type: import("vue").PropType<(v: number) => void>;
|
|
96
96
|
};
|
|
97
|
+
readonly maxPage: {
|
|
98
|
+
readonly type: NumberConstructor;
|
|
99
|
+
readonly default: 0;
|
|
100
|
+
};
|
|
97
101
|
}, () => JSX.Element | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("pageIndexChange" | "pageSizeChange" | "update:pageSize" | "update:pageIndex")[], "pageSizeChange" | "pageIndexChange" | "update:pageSize" | "update:pageIndex", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
98
102
|
readonly pageSize: {
|
|
99
103
|
readonly type: NumberConstructor;
|
|
@@ -189,6 +193,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
189
193
|
readonly onPageSizeChange: {
|
|
190
194
|
readonly type: import("vue").PropType<(v: number) => void>;
|
|
191
195
|
};
|
|
196
|
+
readonly maxPage: {
|
|
197
|
+
readonly type: NumberConstructor;
|
|
198
|
+
readonly default: 0;
|
|
199
|
+
};
|
|
192
200
|
}>> & {
|
|
193
201
|
onPageSizeChange?: ((...args: any[]) => any) | undefined;
|
|
194
202
|
"onUpdate:pageIndex"?: ((...args: any[]) => any) | undefined;
|
|
@@ -214,5 +222,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
214
222
|
readonly haveConfigMenu: boolean;
|
|
215
223
|
readonly autoFixPageIndex: boolean;
|
|
216
224
|
readonly autoHide: boolean;
|
|
225
|
+
readonly maxPage: number;
|
|
217
226
|
}>;
|
|
218
227
|
export default _default;
|
package/vue-devui.es.js
CHANGED
|
@@ -11760,6 +11760,10 @@ const buttonProps = {
|
|
|
11760
11760
|
},
|
|
11761
11761
|
shape: {
|
|
11762
11762
|
type: String
|
|
11763
|
+
},
|
|
11764
|
+
nativeType: {
|
|
11765
|
+
type: String,
|
|
11766
|
+
default: "button"
|
|
11763
11767
|
}
|
|
11764
11768
|
};
|
|
11765
11769
|
const buttonGroupProps = {
|
|
@@ -11817,7 +11821,8 @@ var DButton = defineComponent({
|
|
|
11817
11821
|
const {
|
|
11818
11822
|
icon: icon2,
|
|
11819
11823
|
disabled,
|
|
11820
|
-
loading: loading2
|
|
11824
|
+
loading: loading2,
|
|
11825
|
+
nativeType
|
|
11821
11826
|
} = toRefs(props);
|
|
11822
11827
|
const {
|
|
11823
11828
|
classes,
|
|
@@ -11834,7 +11839,8 @@ var DButton = defineComponent({
|
|
|
11834
11839
|
return createVNode("button", {
|
|
11835
11840
|
"class": classes.value,
|
|
11836
11841
|
"disabled": disabled.value,
|
|
11837
|
-
"onClick": onClick
|
|
11842
|
+
"onClick": onClick,
|
|
11843
|
+
"type": nativeType.value
|
|
11838
11844
|
}, [icon2.value && createVNode(DIcon, {
|
|
11839
11845
|
"name": icon2.value,
|
|
11840
11846
|
"size": "var(--devui-font-size, 12px)",
|
|
@@ -32886,6 +32892,10 @@ const paginationProps = {
|
|
|
32886
32892
|
},
|
|
32887
32893
|
onPageSizeChange: {
|
|
32888
32894
|
type: Function
|
|
32895
|
+
},
|
|
32896
|
+
maxPage: {
|
|
32897
|
+
type: Number,
|
|
32898
|
+
default: 0
|
|
32889
32899
|
}
|
|
32890
32900
|
};
|
|
32891
32901
|
const paginationInjectionKey = Symbol("d-pagination");
|
|
@@ -33335,10 +33345,16 @@ var Pagination = defineComponent({
|
|
|
33335
33345
|
goToText,
|
|
33336
33346
|
pageIndex,
|
|
33337
33347
|
showJumpButton,
|
|
33338
|
-
haveConfigMenu
|
|
33348
|
+
haveConfigMenu,
|
|
33349
|
+
maxPage
|
|
33339
33350
|
} = toRefs(props);
|
|
33340
33351
|
const ns2 = useNamespace("pagination");
|
|
33341
|
-
const totalPages = computed(() =>
|
|
33352
|
+
const totalPages = computed(() => {
|
|
33353
|
+
if (maxPage.value) {
|
|
33354
|
+
return Math.min(Math.ceil(props.total / props.pageSize), maxPage.value);
|
|
33355
|
+
}
|
|
33356
|
+
return Math.ceil(props.total / props.pageSize);
|
|
33357
|
+
});
|
|
33342
33358
|
const litePageOptions = computed(() => liteSelectOptions(totalPages.value));
|
|
33343
33359
|
const cursor = computed({
|
|
33344
33360
|
get() {
|
|
@@ -44070,7 +44086,7 @@ const installs = [
|
|
|
44070
44086
|
VirtualListInstall
|
|
44071
44087
|
];
|
|
44072
44088
|
var vueDevui = {
|
|
44073
|
-
version: "1.5.15-hotfix.
|
|
44089
|
+
version: "1.5.15-hotfix.4",
|
|
44074
44090
|
install(app) {
|
|
44075
44091
|
installs.forEach((p) => app.use(p));
|
|
44076
44092
|
}
|