kui-vue 3.6.7 → 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.
Files changed (66) hide show
  1. package/components/alert/demo/basic.md +2 -2
  2. package/components/alert/demo/close.md +2 -2
  3. package/components/alert/demo/customIcon.md +2 -2
  4. package/components/alert/styles/index.less +0 -1
  5. package/components/avatar/styles/index.less +1 -1
  6. package/components/datePicker/datepicker.jsx +0 -5
  7. package/components/form/demo/valid.md +8 -7
  8. package/components/image/demo/group.md +1 -1
  9. package/components/image/group.jsx +10 -4
  10. package/components/image/image.jsx +47 -99
  11. package/components/image/preview.jsx +130 -116
  12. package/components/image/styles/index.less +219 -224
  13. package/components/image/utils.js +31 -0
  14. package/components/input/demo/event.md +0 -1
  15. package/components/input/inputBox.jsx +1 -1
  16. package/components/inputNumber/styles/index.less +2 -2
  17. package/components/layout/demo/layout5.md +0 -1
  18. package/components/loading/loading.jsx +5 -21
  19. package/components/modal/styles/index.less +1 -0
  20. package/components/page/demo/basic.md +3 -3
  21. package/components/page/demo/size.md +4 -4
  22. package/components/page/demo/sizer-elevator.md +6 -6
  23. package/components/page/index.md +1 -1
  24. package/components/page/page.jsx +8 -8
  25. package/components/progress/progress.jsx +23 -5
  26. package/components/progress/styles/index.less +7 -6
  27. package/components/select/demo/theme.md +2 -1
  28. package/components/select/select.jsx +1 -1
  29. package/components/select/styles/index.less +1 -1
  30. package/components/slider/demo/formatter.md +8 -9
  31. package/components/slider/slider.jsx +3 -4
  32. package/components/slider/thumb.jsx +4 -3
  33. package/components/space/demo/compact.md +9 -9
  34. package/components/statCard/countup.jsx +8 -0
  35. package/components/statCard/demo/card.md +2 -2
  36. package/components/statCard/index.md +12 -7
  37. package/components/statCard/statCard.jsx +12 -0
  38. package/components/styles/less-css-var.less +4 -0
  39. package/components/styles/less-var.less +1 -1
  40. package/components/table/table.jsx +1 -1
  41. package/components/tabs/styles/index.less +2 -2
  42. package/dist/k-ui.cjs.js +2 -2
  43. package/dist/k-ui.css +2 -2
  44. package/dist/k-ui.d.ts +183 -179
  45. package/dist/k-ui.esm.js +2 -2
  46. package/dist/k-ui.umd.js +2 -2
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/el.js +1 -1
  49. package/dist/locale/en.js +1 -1
  50. package/dist/locale/fr.js +1 -1
  51. package/dist/locale/it.js +1 -1
  52. package/dist/locale/ja.js +1 -1
  53. package/dist/locale/ko.js +1 -1
  54. package/dist/locale/ru.js +1 -1
  55. package/dist/locale/th.js +1 -1
  56. package/dist/locale/ua.js +2 -2
  57. package/dist/locale/uk.js +1 -1
  58. package/dist/locale/vi.js +1 -1
  59. package/dist/locale/zh-CN.js +1 -1
  60. package/dist/locale/zh-TW.js +1 -1
  61. package/package.json +1 -1
  62. package/types/index.d.ts +16 -16
  63. package/types/page/Page.d.ts +1 -1
  64. package/types/slider/Slider.d.ts +1 -0
  65. package/types/statCard/StatCard.d.ts +3 -0
  66. package/types/table/Table.d.ts +1 -1
package/dist/k-ui.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * kui-vue v3.6.7
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
@@ -47,27 +47,42 @@ interface Badge extends Vue {
47
47
  /** Badge Vue component type */
48
48
  declare const Badge: VueConstructor<Badge>;
49
49
 
50
- /** Alert component props */
51
- interface AlertProps {
52
- /** default: warning */
53
- type?: string;
54
- closable?: boolean;
55
- /** default: true */
56
- showIcon?: boolean;
57
- icon?: string | Record<string, any> | any[];
58
- message?: string;
59
- description?: string;
60
- bordered?: boolean;
50
+ /** Avatar component props */
51
+ interface AvatarProps {
52
+ icon?: string | any[];
53
+ shape?: string;
54
+ /** default: default */
55
+ size?: number | string;
56
+ src?: string;
61
57
  }
62
58
 
63
- /** Alert component instance */
64
- interface Alert extends Vue {
65
- $props: AlertProps;
59
+ /** Avatar component instance */
60
+ interface Avatar extends Vue {
61
+ $props: AvatarProps;
66
62
  $emit(event: string, ...args: any[]): this;
67
63
  }
68
64
 
69
- /** Alert Vue component type */
70
- declare const Alert: VueConstructor<Alert>;
65
+ /** Avatar Vue component type */
66
+ declare const Avatar: VueConstructor<Avatar>;
67
+
68
+ /** BackTop component props */
69
+ interface BackTopProps {
70
+ /** default: 100 */
71
+ height?: number;
72
+ right?: number;
73
+ bottom?: number;
74
+ /** default: undefined */
75
+ target?: (...args: any[]) => any;
76
+ }
77
+
78
+ /** BackTop component instance */
79
+ interface BackTop extends Vue {
80
+ $props: BackTopProps;
81
+ $emit(event: string, ...args: any[]): this;
82
+ }
83
+
84
+ /** BackTop Vue component type */
85
+ declare const BackTop: VueConstructor<BackTop>;
71
86
 
72
87
  /** Breadcrumb component props */
73
88
  interface BreadcrumbProps {
@@ -99,42 +114,27 @@ interface BreadcrumbItem extends Vue {
99
114
  /** BreadcrumbItem Vue component type */
100
115
  declare const BreadcrumbItem: VueConstructor<BreadcrumbItem>;
101
116
 
102
- /** Avatar component props */
103
- interface AvatarProps {
104
- icon?: string | any[];
105
- shape?: string;
106
- /** default: default */
107
- size?: number | string;
108
- src?: string;
109
- }
110
-
111
- /** Avatar component instance */
112
- interface Avatar extends Vue {
113
- $props: AvatarProps;
114
- $emit(event: string, ...args: any[]): this;
115
- }
116
-
117
- /** Avatar Vue component type */
118
- declare const Avatar: VueConstructor<Avatar>;
119
-
120
- /** BackTop component props */
121
- interface BackTopProps {
122
- /** default: 100 */
123
- height?: number;
124
- right?: number;
125
- bottom?: number;
126
- /** default: undefined */
127
- target?: (...args: any[]) => any;
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
- /** BackTop component instance */
131
- interface BackTop extends Vue {
132
- $props: BackTopProps;
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
- /** BackTop Vue component type */
137
- declare const BackTop: VueConstructor<BackTop>;
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
- current?: number;
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 */
@@ -1383,8 +1364,11 @@ declare const Spin: VueConstructor<Spin>;
1383
1364
  /** StatCard component props */
1384
1365
  interface StatCardProps {
1385
1366
  title?: string;
1367
+ /** default: 0 */
1368
+ precision?: number;
1386
1369
  /** default: undefined */
1387
1370
  items?: any[];
1371
+ separator?: string;
1388
1372
  statNumberType?: string;
1389
1373
  /** default: false */
1390
1374
  bordered?: boolean;
@@ -1422,6 +1406,26 @@ interface StatNumber extends Vue {
1422
1406
  /** StatNumber Vue component type */
1423
1407
  declare const StatNumber: VueConstructor<StatNumber>;
1424
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
+
1425
1429
  /** Switch component props */
1426
1430
  interface SwitchProps {
1427
1431
  /** default: false */
@@ -1460,7 +1464,7 @@ interface TableProps {
1460
1464
  scroll?: Record<string, any>;
1461
1465
  /** default: default */
1462
1466
  size?: any;
1463
- /** default: true */
1467
+ /** default: false */
1464
1468
  bordered?: boolean;
1465
1469
  checkable?: boolean;
1466
1470
  loading?: boolean;