@fastkit/vui 1.5.0 → 1.5.1
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/vui.css +1290 -1288
- package/dist/vui.d.mts +32 -31
- package/dist/vui.mjs +32 -20
- package/dist/vui.mjs.map +1 -1
- package/package.json +27 -27
package/dist/vui.d.mts
CHANGED
|
@@ -31,7 +31,6 @@ export * from "@fastkit/vue-stack";
|
|
|
31
31
|
export * from "@fastkit/vue-action";
|
|
32
32
|
export * from "@fastkit/vue-utils";
|
|
33
33
|
export * from "@fastkit/vue-loading";
|
|
34
|
-
|
|
35
34
|
//#region src/schemes/control.d.ts
|
|
36
35
|
declare const CONTROL_SIZES: readonly ["sm", "md", "lg"];
|
|
37
36
|
type ControlSize = (typeof CONTROL_SIZES)[number];
|
|
@@ -1260,10 +1259,10 @@ declare const VSnackbar: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
1260
1259
|
timeout: string | number;
|
|
1261
1260
|
navigationGuard: boolean | import("@fastkit/vue-stack").VStackNavigationGuard;
|
|
1262
1261
|
guardEffect: string | boolean;
|
|
1263
|
-
top: boolean;
|
|
1264
|
-
bottom: boolean;
|
|
1265
1262
|
left: boolean;
|
|
1266
1263
|
right: boolean;
|
|
1264
|
+
top: boolean;
|
|
1265
|
+
bottom: boolean;
|
|
1267
1266
|
}, import("@fastkit/vue-stack").MergeStackBaseSlots<import("vue").SlotsType<{}>>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1268
1267
|
//#endregion
|
|
1269
1268
|
//#region src/components/VMenu/VMenu.d.ts
|
|
@@ -2404,7 +2403,7 @@ declare module '@fastkit/vue-action' {
|
|
|
2404
2403
|
}
|
|
2405
2404
|
//#endregion
|
|
2406
2405
|
//#region src/components/VBusyImage/VBusyImage.d.ts
|
|
2407
|
-
declare type ImgHTMLAttributesPropOptions = { [K in keyof ImgHTMLAttributes]-?: PropType<ImgHTMLAttributes[K]
|
|
2406
|
+
declare type ImgHTMLAttributesPropOptions = { [K in keyof ImgHTMLAttributes]-?: PropType<ImgHTMLAttributes[K]>; };
|
|
2408
2407
|
declare function splitAttrs(attrs: ImgHTMLAttributes): {
|
|
2409
2408
|
el: HTMLAttributes;
|
|
2410
2409
|
img: ImgHTMLAttributes;
|
|
@@ -2495,7 +2494,7 @@ declare const VBusyImage: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
2495
2494
|
'aria-colindex': PropType<(string | number) | undefined>;
|
|
2496
2495
|
'aria-colspan': PropType<(string | number) | undefined>;
|
|
2497
2496
|
'aria-controls': PropType<string | undefined>;
|
|
2498
|
-
'aria-current': PropType<"date" | "time" |
|
|
2497
|
+
'aria-current': PropType<"date" | "time" | "page" | "step" | "location" | (boolean | "true" | "false") | undefined>;
|
|
2499
2498
|
'aria-describedby': PropType<string | undefined>;
|
|
2500
2499
|
'aria-details': PropType<string | undefined>;
|
|
2501
2500
|
'aria-disabled': PropType<(boolean | "true" | "false") | undefined>;
|
|
@@ -2706,7 +2705,7 @@ declare const VBusyImage: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
2706
2705
|
'aria-colindex': PropType<(string | number) | undefined>;
|
|
2707
2706
|
'aria-colspan': PropType<(string | number) | undefined>;
|
|
2708
2707
|
'aria-controls': PropType<string | undefined>;
|
|
2709
|
-
'aria-current': PropType<"date" | "time" |
|
|
2708
|
+
'aria-current': PropType<"date" | "time" | "page" | "step" | "location" | (boolean | "true" | "false") | undefined>;
|
|
2710
2709
|
'aria-describedby': PropType<string | undefined>;
|
|
2711
2710
|
'aria-details': PropType<string | undefined>;
|
|
2712
2711
|
'aria-disabled': PropType<(boolean | "true" | "false") | undefined>;
|
|
@@ -3042,7 +3041,7 @@ declare function createAvatarProps(): {
|
|
|
3042
3041
|
custom: PropType<boolean>;
|
|
3043
3042
|
activeClass: PropType<string>;
|
|
3044
3043
|
exactActiveClass: PropType<string>;
|
|
3045
|
-
ariaCurrentValue: PropType<"date" | "time" | "
|
|
3044
|
+
ariaCurrentValue: PropType<"date" | "time" | "page" | "step" | "location" | "true" | "false">;
|
|
3046
3045
|
viewTransition: PropType<boolean>;
|
|
3047
3046
|
onDblclick: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
3048
3047
|
onMousedown: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
@@ -3113,7 +3112,7 @@ declare const VAvatar: import("vue").DefineComponent<import("vue").ExtractPropTy
|
|
|
3113
3112
|
custom: PropType<boolean>;
|
|
3114
3113
|
activeClass: PropType<string>;
|
|
3115
3114
|
exactActiveClass: PropType<string>;
|
|
3116
|
-
ariaCurrentValue: PropType<"date" | "time" | "
|
|
3115
|
+
ariaCurrentValue: PropType<"date" | "time" | "page" | "step" | "location" | "true" | "false">;
|
|
3117
3116
|
viewTransition: PropType<boolean>;
|
|
3118
3117
|
onDblclick: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
3119
3118
|
onMousedown: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
@@ -3185,7 +3184,7 @@ declare const VAvatar: import("vue").DefineComponent<import("vue").ExtractPropTy
|
|
|
3185
3184
|
custom: PropType<boolean>;
|
|
3186
3185
|
activeClass: PropType<string>;
|
|
3187
3186
|
exactActiveClass: PropType<string>;
|
|
3188
|
-
ariaCurrentValue: PropType<"date" | "time" | "
|
|
3187
|
+
ariaCurrentValue: PropType<"date" | "time" | "page" | "step" | "location" | "true" | "false">;
|
|
3189
3188
|
viewTransition: PropType<boolean>;
|
|
3190
3189
|
onDblclick: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
3191
3190
|
onMousedown: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
@@ -3267,7 +3266,7 @@ declare function createChipProps(): {
|
|
|
3267
3266
|
custom: PropType<boolean>;
|
|
3268
3267
|
activeClass: PropType<string>;
|
|
3269
3268
|
exactActiveClass: PropType<string>;
|
|
3270
|
-
ariaCurrentValue: PropType<"date" | "time" | "
|
|
3269
|
+
ariaCurrentValue: PropType<"date" | "time" | "page" | "step" | "location" | "true" | "false">;
|
|
3271
3270
|
viewTransition: PropType<boolean>;
|
|
3272
3271
|
onDblclick: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
3273
3272
|
onMousedown: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
@@ -3338,7 +3337,7 @@ declare const VChip: import("vue").DefineComponent<import("vue").ExtractPropType
|
|
|
3338
3337
|
custom: PropType<boolean>;
|
|
3339
3338
|
activeClass: PropType<string>;
|
|
3340
3339
|
exactActiveClass: PropType<string>;
|
|
3341
|
-
ariaCurrentValue: PropType<"date" | "time" | "
|
|
3340
|
+
ariaCurrentValue: PropType<"date" | "time" | "page" | "step" | "location" | "true" | "false">;
|
|
3342
3341
|
viewTransition: PropType<boolean>;
|
|
3343
3342
|
onDblclick: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
3344
3343
|
onMousedown: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
@@ -3410,7 +3409,7 @@ declare const VChip: import("vue").DefineComponent<import("vue").ExtractPropType
|
|
|
3410
3409
|
custom: PropType<boolean>;
|
|
3411
3410
|
activeClass: PropType<string>;
|
|
3412
3411
|
exactActiveClass: PropType<string>;
|
|
3413
|
-
ariaCurrentValue: PropType<"date" | "time" | "
|
|
3412
|
+
ariaCurrentValue: PropType<"date" | "time" | "page" | "step" | "location" | "true" | "false">;
|
|
3414
3413
|
viewTransition: PropType<boolean>;
|
|
3415
3414
|
onDblclick: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
3416
3415
|
onMousedown: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
@@ -3480,7 +3479,7 @@ declare function createCardProps(): {
|
|
|
3480
3479
|
custom: import("vue").PropType<boolean>;
|
|
3481
3480
|
activeClass: import("vue").PropType<string>;
|
|
3482
3481
|
exactActiveClass: import("vue").PropType<string>;
|
|
3483
|
-
ariaCurrentValue: import("vue").PropType<"date" | "time" | "
|
|
3482
|
+
ariaCurrentValue: import("vue").PropType<"date" | "time" | "page" | "step" | "location" | "true" | "false">;
|
|
3484
3483
|
viewTransition: import("vue").PropType<boolean>;
|
|
3485
3484
|
onDblclick: import("vue").PropType<((payload: MouseEvent) => void) | undefined>;
|
|
3486
3485
|
onMousedown: import("vue").PropType<((payload: MouseEvent) => void) | undefined>;
|
|
@@ -3551,7 +3550,7 @@ declare const VCard: import("vue").DefineComponent<import("vue").ExtractPropType
|
|
|
3551
3550
|
custom: import("vue").PropType<boolean>;
|
|
3552
3551
|
activeClass: import("vue").PropType<string>;
|
|
3553
3552
|
exactActiveClass: import("vue").PropType<string>;
|
|
3554
|
-
ariaCurrentValue: import("vue").PropType<"date" | "time" | "
|
|
3553
|
+
ariaCurrentValue: import("vue").PropType<"date" | "time" | "page" | "step" | "location" | "true" | "false">;
|
|
3555
3554
|
viewTransition: import("vue").PropType<boolean>;
|
|
3556
3555
|
onDblclick: import("vue").PropType<((payload: MouseEvent) => void) | undefined>;
|
|
3557
3556
|
onMousedown: import("vue").PropType<((payload: MouseEvent) => void) | undefined>;
|
|
@@ -3621,7 +3620,7 @@ declare const VCard: import("vue").DefineComponent<import("vue").ExtractPropType
|
|
|
3621
3620
|
custom: import("vue").PropType<boolean>;
|
|
3622
3621
|
activeClass: import("vue").PropType<string>;
|
|
3623
3622
|
exactActiveClass: import("vue").PropType<string>;
|
|
3624
|
-
ariaCurrentValue: import("vue").PropType<"date" | "time" | "
|
|
3623
|
+
ariaCurrentValue: import("vue").PropType<"date" | "time" | "page" | "step" | "location" | "true" | "false">;
|
|
3625
3624
|
viewTransition: import("vue").PropType<boolean>;
|
|
3626
3625
|
onDblclick: import("vue").PropType<((payload: MouseEvent) => void) | undefined>;
|
|
3627
3626
|
onMousedown: import("vue").PropType<((payload: MouseEvent) => void) | undefined>;
|
|
@@ -3723,7 +3722,7 @@ declare const vueButtonProps: {
|
|
|
3723
3722
|
custom: PropType<boolean>;
|
|
3724
3723
|
activeClass: PropType<string>;
|
|
3725
3724
|
exactActiveClass: PropType<string>;
|
|
3726
|
-
ariaCurrentValue: PropType<"date" | "time" | "
|
|
3725
|
+
ariaCurrentValue: PropType<"date" | "time" | "page" | "step" | "location" | "true" | "false">;
|
|
3727
3726
|
viewTransition: PropType<boolean>;
|
|
3728
3727
|
onDblclick: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
3729
3728
|
onMousedown: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
@@ -3803,7 +3802,7 @@ declare const VButton: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
3803
3802
|
custom: PropType<boolean>;
|
|
3804
3803
|
activeClass: PropType<string>;
|
|
3805
3804
|
exactActiveClass: PropType<string>;
|
|
3806
|
-
ariaCurrentValue: PropType<"date" | "time" | "
|
|
3805
|
+
ariaCurrentValue: PropType<"date" | "time" | "page" | "step" | "location" | "true" | "false">;
|
|
3807
3806
|
viewTransition: PropType<boolean>;
|
|
3808
3807
|
onDblclick: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
3809
3808
|
onMousedown: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
@@ -3880,7 +3879,7 @@ declare const VButton: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
3880
3879
|
custom: PropType<boolean>;
|
|
3881
3880
|
activeClass: PropType<string>;
|
|
3882
3881
|
exactActiveClass: PropType<string>;
|
|
3883
|
-
ariaCurrentValue: PropType<"date" | "time" | "
|
|
3882
|
+
ariaCurrentValue: PropType<"date" | "time" | "page" | "step" | "location" | "true" | "false">;
|
|
3884
3883
|
viewTransition: PropType<boolean>;
|
|
3885
3884
|
onDblclick: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
3886
3885
|
onMousedown: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
@@ -3918,7 +3917,7 @@ declare const VButton: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
3918
3917
|
borderColor: PropType<PaletteName>;
|
|
3919
3918
|
}>> & Readonly<{}>, {
|
|
3920
3919
|
loading: boolean;
|
|
3921
|
-
align: "left" | "
|
|
3920
|
+
align: "left" | "center" | "right";
|
|
3922
3921
|
rounded: boolean;
|
|
3923
3922
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3924
3923
|
//#endregion
|
|
@@ -4070,7 +4069,7 @@ declare const VPagination: import("vue").DefineComponent<import("vue").ExtractPr
|
|
|
4070
4069
|
length: string | number;
|
|
4071
4070
|
modelValue: string | number;
|
|
4072
4071
|
disabled: boolean;
|
|
4073
|
-
align: "left" | "
|
|
4072
|
+
align: "left" | "center" | "right";
|
|
4074
4073
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4075
4074
|
//#endregion
|
|
4076
4075
|
//#region src/components/VListTile/VListTile.d.ts
|
|
@@ -4109,7 +4108,7 @@ declare function createListTileProps(): {
|
|
|
4109
4108
|
custom: PropType<boolean>;
|
|
4110
4109
|
activeClass: PropType<string>;
|
|
4111
4110
|
exactActiveClass: PropType<string>;
|
|
4112
|
-
ariaCurrentValue: PropType<"date" | "time" | "
|
|
4111
|
+
ariaCurrentValue: PropType<"date" | "time" | "page" | "step" | "location" | "true" | "false">;
|
|
4113
4112
|
viewTransition: PropType<boolean>;
|
|
4114
4113
|
onDblclick: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
4115
4114
|
onMousedown: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
@@ -4179,7 +4178,7 @@ declare const VListTile: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
4179
4178
|
custom: PropType<boolean>;
|
|
4180
4179
|
activeClass: PropType<string>;
|
|
4181
4180
|
exactActiveClass: PropType<string>;
|
|
4182
|
-
ariaCurrentValue: PropType<"date" | "time" | "
|
|
4181
|
+
ariaCurrentValue: PropType<"date" | "time" | "page" | "step" | "location" | "true" | "false">;
|
|
4183
4182
|
viewTransition: PropType<boolean>;
|
|
4184
4183
|
onDblclick: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
4185
4184
|
onMousedown: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
@@ -4247,7 +4246,7 @@ declare const VListTile: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
4247
4246
|
custom: PropType<boolean>;
|
|
4248
4247
|
activeClass: PropType<string>;
|
|
4249
4248
|
exactActiveClass: PropType<string>;
|
|
4250
|
-
ariaCurrentValue: PropType<"date" | "time" | "
|
|
4249
|
+
ariaCurrentValue: PropType<"date" | "time" | "page" | "step" | "location" | "true" | "false">;
|
|
4251
4250
|
viewTransition: PropType<boolean>;
|
|
4252
4251
|
onDblclick: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
4253
4252
|
onMousedown: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
@@ -4403,7 +4402,7 @@ declare function createNavigationItemProps(): {
|
|
|
4403
4402
|
custom: PropType<boolean>;
|
|
4404
4403
|
activeClass: PropType<string>;
|
|
4405
4404
|
exactActiveClass: PropType<string>;
|
|
4406
|
-
ariaCurrentValue: PropType<"date" | "time" | "
|
|
4405
|
+
ariaCurrentValue: PropType<"date" | "time" | "page" | "step" | "location" | "true" | "false">;
|
|
4407
4406
|
viewTransition: PropType<boolean>;
|
|
4408
4407
|
onDblclick: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
4409
4408
|
onMousedown: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
@@ -4487,7 +4486,7 @@ declare const VNavigationItem: import("vue").DefineComponent<import("vue").Extra
|
|
|
4487
4486
|
custom: PropType<boolean>;
|
|
4488
4487
|
activeClass: PropType<string>;
|
|
4489
4488
|
exactActiveClass: PropType<string>;
|
|
4490
|
-
ariaCurrentValue: PropType<"date" | "time" | "
|
|
4489
|
+
ariaCurrentValue: PropType<"date" | "time" | "page" | "step" | "location" | "true" | "false">;
|
|
4491
4490
|
viewTransition: PropType<boolean>;
|
|
4492
4491
|
onDblclick: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
4493
4492
|
onMousedown: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
@@ -4562,7 +4561,7 @@ declare const VNavigationItem: import("vue").DefineComponent<import("vue").Extra
|
|
|
4562
4561
|
custom: PropType<boolean>;
|
|
4563
4562
|
activeClass: PropType<string>;
|
|
4564
4563
|
exactActiveClass: PropType<string>;
|
|
4565
|
-
ariaCurrentValue: PropType<"date" | "time" | "
|
|
4564
|
+
ariaCurrentValue: PropType<"date" | "time" | "page" | "step" | "location" | "true" | "false">;
|
|
4566
4565
|
viewTransition: PropType<boolean>;
|
|
4567
4566
|
onDblclick: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
4568
4567
|
onMousedown: PropType<((payload: MouseEvent) => void) | undefined>;
|
|
@@ -7480,7 +7479,8 @@ interface DataTableRowSettings<T extends DataTableItem = DataTableItem> {
|
|
|
7480
7479
|
type DataTableRowSettingsFn<T extends DataTableItem = DataTableItem> = (payload: DataTableItemSlotPayload<T>) => DataTableRowSettings<T>;
|
|
7481
7480
|
type RawDataTableRowSettings<T extends DataTableItem = DataTableItem> = DataTableRowSettingsFn<T> | DataTableRowSettings<T>;
|
|
7482
7481
|
declare const VDataTable: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7483
|
-
/** 選択中のkeyの配列 */
|
|
7482
|
+
/** 選択中のkeyの配列 */
|
|
7483
|
+
modelValue: {
|
|
7484
7484
|
type: PropType<string[]>;
|
|
7485
7485
|
default: () => never[];
|
|
7486
7486
|
};
|
|
@@ -7568,7 +7568,8 @@ declare const VDataTable: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
7568
7568
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7569
7569
|
input: (selectedValues: string[]) => true;
|
|
7570
7570
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7571
|
-
/** 選択中のkeyの配列 */
|
|
7571
|
+
/** 選択中のkeyの配列 */
|
|
7572
|
+
modelValue: {
|
|
7572
7573
|
type: PropType<string[]>;
|
|
7573
7574
|
default: () => never[];
|
|
7574
7575
|
};
|
|
@@ -7742,7 +7743,7 @@ declare const VToolbarMenu: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
7742
7743
|
custom: import("vue").PropType<boolean>;
|
|
7743
7744
|
activeClass: import("vue").PropType<string>;
|
|
7744
7745
|
exactActiveClass: import("vue").PropType<string>;
|
|
7745
|
-
ariaCurrentValue: import("vue").PropType<"date" | "time" | "
|
|
7746
|
+
ariaCurrentValue: import("vue").PropType<"date" | "time" | "page" | "step" | "location" | "true" | "false">;
|
|
7746
7747
|
viewTransition: import("vue").PropType<boolean>;
|
|
7747
7748
|
onDblclick: import("vue").PropType<((payload: MouseEvent) => void) | undefined>;
|
|
7748
7749
|
onMousedown: import("vue").PropType<((payload: MouseEvent) => void) | undefined>;
|
|
@@ -7819,7 +7820,7 @@ declare const VToolbarMenu: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
7819
7820
|
custom: import("vue").PropType<boolean>;
|
|
7820
7821
|
activeClass: import("vue").PropType<string>;
|
|
7821
7822
|
exactActiveClass: import("vue").PropType<string>;
|
|
7822
|
-
ariaCurrentValue: import("vue").PropType<"date" | "time" | "
|
|
7823
|
+
ariaCurrentValue: import("vue").PropType<"date" | "time" | "page" | "step" | "location" | "true" | "false">;
|
|
7823
7824
|
viewTransition: import("vue").PropType<boolean>;
|
|
7824
7825
|
onDblclick: import("vue").PropType<((payload: MouseEvent) => void) | undefined>;
|
|
7825
7826
|
onMousedown: import("vue").PropType<((payload: MouseEvent) => void) | undefined>;
|
|
@@ -7857,7 +7858,7 @@ declare const VToolbarMenu: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
7857
7858
|
borderColor: import("vue").PropType<PaletteName>;
|
|
7858
7859
|
}>> & Readonly<{}>, {
|
|
7859
7860
|
loading: boolean;
|
|
7860
|
-
align: "left" | "
|
|
7861
|
+
align: "left" | "center" | "right";
|
|
7861
7862
|
rounded: boolean;
|
|
7862
7863
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7863
7864
|
//#endregion
|
package/dist/vui.mjs
CHANGED
|
@@ -1313,23 +1313,33 @@ const VPagination = defineComponent({
|
|
|
1313
1313
|
const even = maxLength % 2 === 0 ? 1 : 0;
|
|
1314
1314
|
const left = Math.floor(maxLength / 2);
|
|
1315
1315
|
const right = length - left + 1 + even;
|
|
1316
|
-
if (pageValue > left && pageValue < right)
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1316
|
+
if (pageValue > left && pageValue < right) {
|
|
1317
|
+
const start = pageValue - left + 2;
|
|
1318
|
+
const end = pageValue + left - 2 - even;
|
|
1319
|
+
return [
|
|
1320
|
+
1,
|
|
1321
|
+
"truncate",
|
|
1322
|
+
..._range(start, end),
|
|
1323
|
+
"truncate",
|
|
1324
|
+
length
|
|
1325
|
+
];
|
|
1326
|
+
}
|
|
1327
|
+
if (pageValue === left) {
|
|
1328
|
+
const end = pageValue + left - 1 - even;
|
|
1329
|
+
return [
|
|
1330
|
+
..._range(1, end),
|
|
1331
|
+
"truncate",
|
|
1332
|
+
length
|
|
1333
|
+
];
|
|
1334
|
+
}
|
|
1335
|
+
if (pageValue === right) {
|
|
1336
|
+
const start = pageValue - left + 1;
|
|
1337
|
+
return [
|
|
1338
|
+
1,
|
|
1339
|
+
"truncate",
|
|
1340
|
+
..._range(start, length)
|
|
1341
|
+
];
|
|
1342
|
+
}
|
|
1333
1343
|
return [
|
|
1334
1344
|
..._range(1, left),
|
|
1335
1345
|
"truncate",
|
|
@@ -1450,7 +1460,8 @@ const VPagination = defineComponent({
|
|
|
1450
1460
|
const style = window.getComputedStyle(el, "before");
|
|
1451
1461
|
const width = style.getPropertyValue("width");
|
|
1452
1462
|
const margin = style.getPropertyValue("margin");
|
|
1453
|
-
|
|
1463
|
+
const size = parseFloat(width) + parseFloat(margin) * .5;
|
|
1464
|
+
itemSize.value = size;
|
|
1454
1465
|
}
|
|
1455
1466
|
containerWidth.value = width;
|
|
1456
1467
|
})]);
|
|
@@ -3547,11 +3558,12 @@ const VDataTable = defineComponent({
|
|
|
3547
3558
|
const { item: itemSlot = defaultItemSlot } = ctx.slots;
|
|
3548
3559
|
return createVNode("tbody", { "class": "v-data-table__table__body" }, [items.map((item) => {
|
|
3549
3560
|
const key = item[itemKey];
|
|
3550
|
-
|
|
3561
|
+
const payload = {
|
|
3551
3562
|
key,
|
|
3552
3563
|
item,
|
|
3553
3564
|
selected: isSelected(key)
|
|
3554
|
-
}
|
|
3565
|
+
};
|
|
3566
|
+
return itemSlot(payload);
|
|
3555
3567
|
})]);
|
|
3556
3568
|
}
|
|
3557
3569
|
watch(() => props.modelValue, (modelValue) => {
|