kui-vue 3.6.8 → 3.6.9
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/components/alert/demo/basic.md +2 -2
- package/components/alert/demo/close.md +2 -2
- package/components/alert/demo/customIcon.md +2 -2
- package/components/alert/styles/index.less +0 -1
- package/components/form/demo/valid.md +8 -7
- package/components/image/demo/group.md +1 -1
- package/components/image/group.jsx +10 -4
- package/components/image/image.jsx +47 -99
- package/components/image/preview.jsx +130 -116
- package/components/image/styles/index.less +219 -224
- package/components/image/utils.js +31 -0
- package/components/input/demo/event.md +0 -1
- package/components/inputNumber/styles/index.less +2 -2
- package/components/layout/demo/layout5.md +0 -1
- package/components/loading/loading.jsx +5 -21
- package/components/modal/styles/index.less +1 -0
- package/components/page/demo/basic.md +3 -3
- package/components/page/demo/size.md +4 -4
- package/components/page/demo/sizer-elevator.md +6 -6
- package/components/page/index.md +1 -1
- package/components/page/page.jsx +8 -8
- package/components/select/demo/theme.md +2 -1
- package/components/select/select.jsx +1 -1
- package/components/slider/demo/formatter.md +8 -9
- package/components/slider/slider.jsx +3 -4
- package/components/slider/thumb.jsx +4 -3
- package/components/space/demo/compact.md +9 -9
- package/components/styles/less-var.less +1 -1
- package/components/tabs/styles/index.less +2 -2
- package/dist/k-ui.cjs.js +2 -2
- package/dist/k-ui.css +2 -2
- package/dist/k-ui.d.ts +163 -162
- package/dist/k-ui.esm.js +2 -2
- package/dist/k-ui.umd.js +2 -2
- package/dist/locale/de.js +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/zh-CN.js +1 -1
- package/dist/locale/zh-TW.js +1 -1
- package/package.json +1 -2
- package/types/index.d.ts +14 -14
- package/types/page/Page.d.ts +1 -1
- package/types/slider/Slider.d.ts +1 -0
package/dist/k-ui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* kui-vue v3.6.
|
|
2
|
+
* kui-vue v3.6.9
|
|
3
3
|
* Copyright 2017-present, kui-vue.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Homepage: https://k-ui.cn
|
|
@@ -26,27 +26,26 @@ interface Affix extends Vue {
|
|
|
26
26
|
/** Affix Vue component type */
|
|
27
27
|
declare const Affix: VueConstructor<Affix>;
|
|
28
28
|
|
|
29
|
-
/**
|
|
30
|
-
interface
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
/** default:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
bordered?: boolean;
|
|
29
|
+
/** Badge component props */
|
|
30
|
+
interface BadgeProps {
|
|
31
|
+
count?: string | number;
|
|
32
|
+
dot?: boolean;
|
|
33
|
+
color?: string;
|
|
34
|
+
/** default: default */
|
|
35
|
+
status?: string;
|
|
36
|
+
text?: string;
|
|
37
|
+
/** default: 99 */
|
|
38
|
+
maxCount?: number;
|
|
40
39
|
}
|
|
41
40
|
|
|
42
|
-
/**
|
|
43
|
-
interface
|
|
44
|
-
$props:
|
|
41
|
+
/** Badge component instance */
|
|
42
|
+
interface Badge extends Vue {
|
|
43
|
+
$props: BadgeProps;
|
|
45
44
|
$emit(event: string, ...args: any[]): this;
|
|
46
45
|
}
|
|
47
46
|
|
|
48
|
-
/**
|
|
49
|
-
declare const
|
|
47
|
+
/** Badge Vue component type */
|
|
48
|
+
declare const Badge: VueConstructor<Badge>;
|
|
50
49
|
|
|
51
50
|
/** Avatar component props */
|
|
52
51
|
interface AvatarProps {
|
|
@@ -115,26 +114,27 @@ interface BreadcrumbItem extends Vue {
|
|
|
115
114
|
/** BreadcrumbItem Vue component type */
|
|
116
115
|
declare const BreadcrumbItem: VueConstructor<BreadcrumbItem>;
|
|
117
116
|
|
|
118
|
-
/**
|
|
119
|
-
interface
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
/** default:
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
117
|
+
/** Alert component props */
|
|
118
|
+
interface AlertProps {
|
|
119
|
+
/** default: warning */
|
|
120
|
+
type?: string;
|
|
121
|
+
closable?: boolean;
|
|
122
|
+
/** default: true */
|
|
123
|
+
showIcon?: boolean;
|
|
124
|
+
icon?: string | Record<string, any> | any[];
|
|
125
|
+
message?: string;
|
|
126
|
+
description?: string;
|
|
127
|
+
bordered?: boolean;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
/**
|
|
131
|
-
interface
|
|
132
|
-
$props:
|
|
130
|
+
/** Alert component instance */
|
|
131
|
+
interface Alert extends Vue {
|
|
132
|
+
$props: AlertProps;
|
|
133
133
|
$emit(event: string, ...args: any[]): this;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
/**
|
|
137
|
-
declare const
|
|
136
|
+
/** Alert Vue component type */
|
|
137
|
+
declare const Alert: VueConstructor<Alert>;
|
|
138
138
|
|
|
139
139
|
/** Button component props */
|
|
140
140
|
interface ButtonProps {
|
|
@@ -565,50 +565,6 @@ interface Flex extends Vue {
|
|
|
565
565
|
/** Flex Vue component type */
|
|
566
566
|
declare const Flex: VueConstructor<Flex>;
|
|
567
567
|
|
|
568
|
-
/** Form component props */
|
|
569
|
-
interface FormProps {
|
|
570
|
-
/** default: horizontal */
|
|
571
|
-
layout?: string;
|
|
572
|
-
model?: Record<string, any>;
|
|
573
|
-
name?: string;
|
|
574
|
-
labelCol?: Record<string, any>;
|
|
575
|
-
wrapperCol?: Record<string, any>;
|
|
576
|
-
/** default: undefined */
|
|
577
|
-
rules?: Record<string, any>;
|
|
578
|
-
/** default: default */
|
|
579
|
-
size?: string;
|
|
580
|
-
theme?: string;
|
|
581
|
-
shape?: string;
|
|
582
|
-
disabled?: boolean;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
/** Form component instance */
|
|
586
|
-
interface Form extends Vue {
|
|
587
|
-
$props: FormProps;
|
|
588
|
-
$emit(event: string, ...args: any[]): this;
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
/** Form Vue component type */
|
|
592
|
-
declare const Form: VueConstructor<Form>;
|
|
593
|
-
|
|
594
|
-
/** formitem component props */
|
|
595
|
-
interface formitemProps {
|
|
596
|
-
label?: string;
|
|
597
|
-
prop?: string;
|
|
598
|
-
labelCol?: Record<string, any>;
|
|
599
|
-
wrapperCol?: Record<string, any>;
|
|
600
|
-
rules?: any[] | Record<string, any>;
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
/** formitem component instance */
|
|
604
|
-
interface formitem extends Vue {
|
|
605
|
-
$props: formitemProps;
|
|
606
|
-
$emit(event: string, ...args: any[]): this;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
/** formitem Vue component type */
|
|
610
|
-
declare const formitem: VueConstructor<formitem>;
|
|
611
|
-
|
|
612
568
|
/** Row component props */
|
|
613
569
|
interface RowProps {
|
|
614
570
|
gutter?: number | any[];
|
|
@@ -661,6 +617,50 @@ interface Icon extends Vue {
|
|
|
661
617
|
/** Icon Vue component type */
|
|
662
618
|
declare const Icon: VueConstructor<Icon>;
|
|
663
619
|
|
|
620
|
+
/** Form component props */
|
|
621
|
+
interface FormProps {
|
|
622
|
+
/** default: horizontal */
|
|
623
|
+
layout?: string;
|
|
624
|
+
model?: Record<string, any>;
|
|
625
|
+
name?: string;
|
|
626
|
+
labelCol?: Record<string, any>;
|
|
627
|
+
wrapperCol?: Record<string, any>;
|
|
628
|
+
/** default: undefined */
|
|
629
|
+
rules?: Record<string, any>;
|
|
630
|
+
/** default: default */
|
|
631
|
+
size?: string;
|
|
632
|
+
theme?: string;
|
|
633
|
+
shape?: string;
|
|
634
|
+
disabled?: boolean;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
/** Form component instance */
|
|
638
|
+
interface Form extends Vue {
|
|
639
|
+
$props: FormProps;
|
|
640
|
+
$emit(event: string, ...args: any[]): this;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
/** Form Vue component type */
|
|
644
|
+
declare const Form: VueConstructor<Form>;
|
|
645
|
+
|
|
646
|
+
/** formitem component props */
|
|
647
|
+
interface formitemProps {
|
|
648
|
+
label?: string;
|
|
649
|
+
prop?: string;
|
|
650
|
+
labelCol?: Record<string, any>;
|
|
651
|
+
wrapperCol?: Record<string, any>;
|
|
652
|
+
rules?: any[] | Record<string, any>;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
/** formitem component instance */
|
|
656
|
+
interface formitem extends Vue {
|
|
657
|
+
$props: formitemProps;
|
|
658
|
+
$emit(event: string, ...args: any[]): this;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
/** formitem Vue component type */
|
|
662
|
+
declare const formitem: VueConstructor<formitem>;
|
|
663
|
+
|
|
664
664
|
/** KImage component props */
|
|
665
665
|
interface KImageProps {
|
|
666
666
|
alt?: string;
|
|
@@ -830,6 +830,40 @@ interface loading extends Vue {
|
|
|
830
830
|
/** loading Vue component type */
|
|
831
831
|
declare const loading: VueConstructor<loading>;
|
|
832
832
|
|
|
833
|
+
/** Modal component props */
|
|
834
|
+
interface ModalProps {
|
|
835
|
+
value?: boolean;
|
|
836
|
+
title?: string;
|
|
837
|
+
okText?: string;
|
|
838
|
+
cancelText?: string;
|
|
839
|
+
top?: number;
|
|
840
|
+
width?: number;
|
|
841
|
+
/** default: true */
|
|
842
|
+
mask?: boolean;
|
|
843
|
+
/** default: false */
|
|
844
|
+
maskClosable?: boolean;
|
|
845
|
+
maximized?: boolean;
|
|
846
|
+
centered?: boolean;
|
|
847
|
+
draggable?: boolean;
|
|
848
|
+
/** default: true */
|
|
849
|
+
showClose?: boolean;
|
|
850
|
+
loading?: boolean;
|
|
851
|
+
footer?: string;
|
|
852
|
+
/** default: true */
|
|
853
|
+
transfer?: boolean;
|
|
854
|
+
/** default: true */
|
|
855
|
+
escKey?: boolean;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
/** Modal component instance */
|
|
859
|
+
interface Modal extends Vue {
|
|
860
|
+
$props: ModalProps;
|
|
861
|
+
$emit(event: string, ...args: any[]): this;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
/** Modal Vue component type */
|
|
865
|
+
declare const Modal: VueConstructor<Modal>;
|
|
866
|
+
|
|
833
867
|
/** Menu component props */
|
|
834
868
|
interface MenuProps {
|
|
835
869
|
theme?: string;
|
|
@@ -914,40 +948,6 @@ interface MenuDivider extends Vue {
|
|
|
914
948
|
/** MenuDivider Vue component type */
|
|
915
949
|
declare const MenuDivider: VueConstructor<MenuDivider>;
|
|
916
950
|
|
|
917
|
-
/** Modal component props */
|
|
918
|
-
interface ModalProps {
|
|
919
|
-
value?: boolean;
|
|
920
|
-
title?: string;
|
|
921
|
-
okText?: string;
|
|
922
|
-
cancelText?: string;
|
|
923
|
-
top?: number;
|
|
924
|
-
width?: number;
|
|
925
|
-
/** default: true */
|
|
926
|
-
mask?: boolean;
|
|
927
|
-
/** default: false */
|
|
928
|
-
maskClosable?: boolean;
|
|
929
|
-
maximized?: boolean;
|
|
930
|
-
centered?: boolean;
|
|
931
|
-
draggable?: boolean;
|
|
932
|
-
/** default: true */
|
|
933
|
-
showClose?: boolean;
|
|
934
|
-
loading?: boolean;
|
|
935
|
-
footer?: string;
|
|
936
|
-
/** default: true */
|
|
937
|
-
transfer?: boolean;
|
|
938
|
-
/** default: true */
|
|
939
|
-
escKey?: boolean;
|
|
940
|
-
}
|
|
941
|
-
|
|
942
|
-
/** Modal component instance */
|
|
943
|
-
interface Modal extends Vue {
|
|
944
|
-
$props: ModalProps;
|
|
945
|
-
$emit(event: string, ...args: any[]): this;
|
|
946
|
-
}
|
|
947
|
-
|
|
948
|
-
/** Modal Vue component type */
|
|
949
|
-
declare const Modal: VueConstructor<Modal>;
|
|
950
|
-
|
|
951
951
|
/** Page component props */
|
|
952
952
|
interface PageProps {
|
|
953
953
|
disabled?: boolean;
|
|
@@ -966,7 +966,7 @@ interface PageProps {
|
|
|
966
966
|
/** default: 10 */
|
|
967
967
|
pageSize?: number;
|
|
968
968
|
/** default: 1 */
|
|
969
|
-
|
|
969
|
+
page?: number;
|
|
970
970
|
}
|
|
971
971
|
|
|
972
972
|
/** Page component instance */
|
|
@@ -1207,6 +1207,38 @@ interface Option extends Vue {
|
|
|
1207
1207
|
/** Option Vue component type */
|
|
1208
1208
|
declare const Option: VueConstructor<Option>;
|
|
1209
1209
|
|
|
1210
|
+
/** Slider component props */
|
|
1211
|
+
interface SliderProps {
|
|
1212
|
+
/** default: 0 */
|
|
1213
|
+
value?: any[] | number;
|
|
1214
|
+
/** default: 0 */
|
|
1215
|
+
min?: number;
|
|
1216
|
+
/** default: 100 */
|
|
1217
|
+
max?: number;
|
|
1218
|
+
/** default: 1 */
|
|
1219
|
+
step?: number | Record<string, any>;
|
|
1220
|
+
disabled?: boolean;
|
|
1221
|
+
vertical?: boolean;
|
|
1222
|
+
reverse?: boolean;
|
|
1223
|
+
range?: boolean;
|
|
1224
|
+
marks?: Record<string, any>;
|
|
1225
|
+
size?: string | number;
|
|
1226
|
+
/** default: true */
|
|
1227
|
+
included?: boolean;
|
|
1228
|
+
tipFormatter?: (...args: any[]) => any;
|
|
1229
|
+
/** default: undefined */
|
|
1230
|
+
tooltipVisible?: boolean;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
/** Slider component instance */
|
|
1234
|
+
interface Slider extends Vue {
|
|
1235
|
+
$props: SliderProps;
|
|
1236
|
+
$emit(event: string, ...args: any[]): this;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
/** Slider Vue component type */
|
|
1240
|
+
declare const Slider: VueConstructor<Slider>;
|
|
1241
|
+
|
|
1210
1242
|
/** Skeleton component props */
|
|
1211
1243
|
interface SkeletonProps {
|
|
1212
1244
|
animated?: boolean;
|
|
@@ -1308,57 +1340,6 @@ interface SkeletonText extends Vue {
|
|
|
1308
1340
|
/** SkeletonText Vue component type */
|
|
1309
1341
|
declare const SkeletonText: VueConstructor<SkeletonText>;
|
|
1310
1342
|
|
|
1311
|
-
/** Slider component props */
|
|
1312
|
-
interface SliderProps {
|
|
1313
|
-
/** default: 0 */
|
|
1314
|
-
value?: any[] | number;
|
|
1315
|
-
/** default: 0 */
|
|
1316
|
-
min?: number;
|
|
1317
|
-
/** default: 100 */
|
|
1318
|
-
max?: number;
|
|
1319
|
-
/** default: 1 */
|
|
1320
|
-
step?: number | Record<string, any>;
|
|
1321
|
-
disabled?: boolean;
|
|
1322
|
-
vertical?: boolean;
|
|
1323
|
-
reverse?: boolean;
|
|
1324
|
-
range?: boolean;
|
|
1325
|
-
marks?: Record<string, any>;
|
|
1326
|
-
size?: string | number;
|
|
1327
|
-
/** default: true */
|
|
1328
|
-
included?: boolean;
|
|
1329
|
-
tipFormatter?: (...args: any[]) => any;
|
|
1330
|
-
tooltipVisible?: boolean;
|
|
1331
|
-
}
|
|
1332
|
-
|
|
1333
|
-
/** Slider component instance */
|
|
1334
|
-
interface Slider extends Vue {
|
|
1335
|
-
$props: SliderProps;
|
|
1336
|
-
$emit(event: string, ...args: any[]): this;
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
|
-
/** Slider Vue component type */
|
|
1340
|
-
declare const Slider: VueConstructor<Slider>;
|
|
1341
|
-
|
|
1342
|
-
/** Space component props */
|
|
1343
|
-
interface SpaceProps {
|
|
1344
|
-
align?: string;
|
|
1345
|
-
vertical?: boolean;
|
|
1346
|
-
/** default: false */
|
|
1347
|
-
wrap?: boolean;
|
|
1348
|
-
block?: boolean;
|
|
1349
|
-
compact?: boolean;
|
|
1350
|
-
size?: string | number | any[];
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
|
-
/** Space component instance */
|
|
1354
|
-
interface Space extends Vue {
|
|
1355
|
-
$props: SpaceProps;
|
|
1356
|
-
$emit(event: string, ...args: any[]): this;
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
/** Space Vue component type */
|
|
1360
|
-
declare const Space: VueConstructor<Space>;
|
|
1361
|
-
|
|
1362
1343
|
/** Spin component props */
|
|
1363
1344
|
interface SpinProps {
|
|
1364
1345
|
/** default: true */
|
|
@@ -1425,6 +1406,26 @@ interface StatNumber extends Vue {
|
|
|
1425
1406
|
/** StatNumber Vue component type */
|
|
1426
1407
|
declare const StatNumber: VueConstructor<StatNumber>;
|
|
1427
1408
|
|
|
1409
|
+
/** Space component props */
|
|
1410
|
+
interface SpaceProps {
|
|
1411
|
+
align?: string;
|
|
1412
|
+
vertical?: boolean;
|
|
1413
|
+
/** default: false */
|
|
1414
|
+
wrap?: boolean;
|
|
1415
|
+
block?: boolean;
|
|
1416
|
+
compact?: boolean;
|
|
1417
|
+
size?: string | number | any[];
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
/** Space component instance */
|
|
1421
|
+
interface Space extends Vue {
|
|
1422
|
+
$props: SpaceProps;
|
|
1423
|
+
$emit(event: string, ...args: any[]): this;
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
/** Space Vue component type */
|
|
1427
|
+
declare const Space: VueConstructor<Space>;
|
|
1428
|
+
|
|
1428
1429
|
/** Switch component props */
|
|
1429
1430
|
interface SwitchProps {
|
|
1430
1431
|
/** default: false */
|