kui-vue 3.6.0 → 3.6.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.
Files changed (75) hide show
  1. package/{readme.md → README.md} +4 -10
  2. package/components/button/demo/group.md +1 -1
  3. package/components/card/card.jsx +1 -1
  4. package/components/checkbox/checkboxGroup.jsx +4 -4
  5. package/components/checkbox/demo/group.md +17 -6
  6. package/components/checkbox/styles/index.less +4 -11
  7. package/components/colorPicker/colorpicker.jsx +5 -6
  8. package/components/colorPicker/demo/customTrigger.md +2 -2
  9. package/components/colorPicker/demo/mode.md +1 -4
  10. package/components/datePicker/datepicker.jsx +19 -11
  11. package/components/datePicker/demo/basic.md +15 -6
  12. package/components/datePicker/demo/lang.md +2 -2
  13. package/components/drawer/drawer.jsx +2 -2
  14. package/components/dropdown/dropdown.jsx +9 -40
  15. package/components/form/demo/valid.md +1 -0
  16. package/components/image/image.jsx +1 -0
  17. package/components/input/index.md +1 -1
  18. package/components/inputNumber/demo/basic.md +12 -5
  19. package/components/inputNumber/demo/format.md +0 -5
  20. package/components/inputNumber/index.md +1 -1
  21. package/components/inputNumber/inputNumber.jsx +3 -5
  22. package/components/inputNumber/styles/index.less +64 -64
  23. package/components/menu/submenu.jsx +5 -5
  24. package/components/page/page.jsx +0 -1
  25. package/components/popconfirm/popconfirm.jsx +4 -4
  26. package/components/poptip/poptip.jsx +4 -4
  27. package/components/radio/demo/group.md +16 -6
  28. package/components/radio/demo/radioButton.md +3 -8
  29. package/components/radio/radioGroup.jsx +8 -11
  30. package/components/radio/styles/index.less +10 -21
  31. package/components/select/demo/basic.md +16 -7
  32. package/components/select/demo/filterable.md +4 -2
  33. package/components/select/index.md +23 -22
  34. package/components/select/option.jsx +7 -3
  35. package/components/select/select.jsx +43 -36
  36. package/components/select/styles/index.less +1 -0
  37. package/components/slider/demo/basic.md +2 -1
  38. package/components/slider/demo/withNumber.md +3 -3
  39. package/components/slider/slider.jsx +0 -25
  40. package/components/space/styles/index.less +3 -1
  41. package/components/styles/sys.less +3 -0
  42. package/components/switch/switch.jsx +15 -5
  43. package/components/table/styles/index.less +10 -5
  44. package/components/table/table.jsx +98 -69
  45. package/components/tooltip/tooltip.jsx +3 -3
  46. package/components/treeselect/demo/size.md +2 -2
  47. package/components/treeselect/treeselect.jsx +15 -20
  48. package/components/utils/placement.js +137 -126
  49. package/dist/k-ui.cjs.js +2 -2
  50. package/dist/k-ui.css +2 -2
  51. package/dist/k-ui.d.ts +118 -115
  52. package/dist/k-ui.esm.js +2 -2
  53. package/dist/k-ui.umd.js +2 -2
  54. package/dist/locale/de.js +1 -1
  55. package/dist/locale/el.js +1 -1
  56. package/dist/locale/en.js +1 -1
  57. package/dist/locale/fr.js +1 -1
  58. package/dist/locale/it.js +1 -1
  59. package/dist/locale/ja.js +1 -1
  60. package/dist/locale/ko.js +1 -1
  61. package/dist/locale/ru.js +1 -1
  62. package/dist/locale/th.js +1 -1
  63. package/dist/locale/uk.js +1 -1
  64. package/dist/locale/vi.js +1 -1
  65. package/dist/locale/zh-CN.js +1 -1
  66. package/dist/locale/zh-TW.js +1 -1
  67. package/package.json +5 -5
  68. package/test/i18n@8.x.html +6 -2
  69. package/types/image/KImage.d.ts +1 -0
  70. package/types/index.d.ts +10 -10
  71. package/types/switch/Switch.d.ts +2 -0
  72. package/components/steps/index.js +0 -4
  73. package/components/steps/step.vue +0 -82
  74. package/components/steps/steps.vue +0 -68
  75. package/components/steps/styles/index.less +0 -198
package/dist/k-ui.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * kui-vue v3.6.0
2
+ * kui-vue v3.6.1
3
3
  * Copyright 2017-present, kui-vue.
4
4
  * All rights reserved.
5
5
  * Author: Qiu / https://chuchur.com
@@ -25,26 +25,6 @@ interface Affix extends Vue {
25
25
  /** Affix Vue component type */
26
26
  declare const Affix: VueConstructor<Affix>;
27
27
 
28
- /** Alert component props */
29
- interface AlertProps {
30
- /** default: warning */
31
- type?: string;
32
- closable?: boolean;
33
- showIcon?: boolean;
34
- icon?: string | Record<string, any> | any[];
35
- message?: string;
36
- description?: string;
37
- }
38
-
39
- /** Alert component instance */
40
- interface Alert extends Vue {
41
- $props: AlertProps;
42
- $emit(event: string, ...args: any[]): void;
43
- }
44
-
45
- /** Alert Vue component type */
46
- declare const Alert: VueConstructor<Alert>;
47
-
48
28
  /** Avatar component props */
49
29
  interface AvatarProps {
50
30
  icon?: string | any[];
@@ -63,6 +43,25 @@ interface Avatar extends Vue {
63
43
  /** Avatar Vue component type */
64
44
  declare const Avatar: VueConstructor<Avatar>;
65
45
 
46
+ /** BackTop component props */
47
+ interface BackTopProps {
48
+ /** default: 100 */
49
+ height?: number;
50
+ right?: number;
51
+ bottom?: number;
52
+ /** default: undefined */
53
+ target?: (...args: any[]) => any;
54
+ }
55
+
56
+ /** BackTop component instance */
57
+ interface BackTop extends Vue {
58
+ $props: BackTopProps;
59
+ $emit(event: string, ...args: any[]): void;
60
+ }
61
+
62
+ /** BackTop Vue component type */
63
+ declare const BackTop: VueConstructor<BackTop>;
64
+
66
65
  /** Badge component props */
67
66
  interface BadgeProps {
68
67
  count?: string | number;
@@ -114,24 +113,25 @@ interface BreadcrumbItem extends Vue {
114
113
  /** BreadcrumbItem Vue component type */
115
114
  declare const BreadcrumbItem: VueConstructor<BreadcrumbItem>;
116
115
 
117
- /** BackTop component props */
118
- interface BackTopProps {
119
- /** default: 100 */
120
- height?: number;
121
- right?: number;
122
- bottom?: number;
123
- /** default: undefined */
124
- target?: (...args: any[]) => any;
116
+ /** Alert component props */
117
+ interface AlertProps {
118
+ /** default: warning */
119
+ type?: string;
120
+ closable?: boolean;
121
+ showIcon?: boolean;
122
+ icon?: string | Record<string, any> | any[];
123
+ message?: string;
124
+ description?: string;
125
125
  }
126
126
 
127
- /** BackTop component instance */
128
- interface BackTop extends Vue {
129
- $props: BackTopProps;
127
+ /** Alert component instance */
128
+ interface Alert extends Vue {
129
+ $props: AlertProps;
130
130
  $emit(event: string, ...args: any[]): void;
131
131
  }
132
132
 
133
- /** BackTop Vue component type */
134
- declare const BackTop: VueConstructor<BackTop>;
133
+ /** Alert Vue component type */
134
+ declare const Alert: VueConstructor<Alert>;
135
135
 
136
136
  /** Button component props */
137
137
  interface ButtonProps {
@@ -479,53 +479,6 @@ interface Drawer extends Vue {
479
479
  /** Drawer Vue component type */
480
480
  declare const Drawer: VueConstructor<Drawer>;
481
481
 
482
- /** Dropdown component props */
483
- interface DropdownProps {
484
- dark?: boolean;
485
- /** default: hover */
486
- trigger?: string;
487
- /** default: true */
488
- transfer?: boolean;
489
- disabled?: boolean;
490
- /** default: false */
491
- arrow?: boolean;
492
- show?: boolean;
493
- /** default: bottom-left */
494
- placement?: any;
495
- target?: Record<string, any>;
496
- }
497
-
498
- /** Dropdown component instance */
499
- interface Dropdown extends Vue {
500
- $props: DropdownProps;
501
- $emit(event: string, ...args: any[]): void;
502
- }
503
-
504
- /** Dropdown Vue component type */
505
- declare const Dropdown: VueConstructor<Dropdown>;
506
-
507
- /** DropdownButton component props */
508
- interface DropdownButtonProps {
509
- size?: string;
510
- shape?: string;
511
- disabled?: boolean;
512
- icon?: string | any[] | Record<string, any>;
513
- theme?: string;
514
- dark?: boolean;
515
- arrow?: boolean;
516
- /** default: bottom-right */
517
- placement?: string;
518
- }
519
-
520
- /** DropdownButton component instance */
521
- interface DropdownButton extends Vue {
522
- $props: DropdownButtonProps;
523
- $emit(event: string, ...args: any[]): void;
524
- }
525
-
526
- /** DropdownButton Vue component type */
527
- declare const DropdownButton: VueConstructor<DropdownButton>;
528
-
529
482
  /** Empty component props */
530
483
  interface EmptyProps {
531
484
  description?: string;
@@ -665,6 +618,7 @@ interface KImageProps {
665
618
  height?: string | number;
666
619
  width?: string | number;
667
620
  placeholder?: string;
621
+ data?: any[];
668
622
  imgStyle?: Record<string, any>;
669
623
  showPanel?: boolean;
670
624
  }
@@ -757,6 +711,53 @@ interface InputGroup extends Vue {
757
711
  /** InputGroup Vue component type */
758
712
  declare const InputGroup: VueConstructor<InputGroup>;
759
713
 
714
+ /** Dropdown component props */
715
+ interface DropdownProps {
716
+ dark?: boolean;
717
+ /** default: hover */
718
+ trigger?: string;
719
+ /** default: true */
720
+ transfer?: boolean;
721
+ disabled?: boolean;
722
+ /** default: false */
723
+ arrow?: boolean;
724
+ show?: boolean;
725
+ /** default: bottom-left */
726
+ placement?: any;
727
+ target?: Record<string, any>;
728
+ }
729
+
730
+ /** Dropdown component instance */
731
+ interface Dropdown extends Vue {
732
+ $props: DropdownProps;
733
+ $emit(event: string, ...args: any[]): void;
734
+ }
735
+
736
+ /** Dropdown Vue component type */
737
+ declare const Dropdown: VueConstructor<Dropdown>;
738
+
739
+ /** DropdownButton component props */
740
+ interface DropdownButtonProps {
741
+ size?: string;
742
+ shape?: string;
743
+ disabled?: boolean;
744
+ icon?: string | any[] | Record<string, any>;
745
+ theme?: string;
746
+ dark?: boolean;
747
+ arrow?: boolean;
748
+ /** default: bottom-right */
749
+ placement?: string;
750
+ }
751
+
752
+ /** DropdownButton component instance */
753
+ interface DropdownButton extends Vue {
754
+ $props: DropdownButtonProps;
755
+ $emit(event: string, ...args: any[]): void;
756
+ }
757
+
758
+ /** DropdownButton Vue component type */
759
+ declare const DropdownButton: VueConstructor<DropdownButton>;
760
+
760
761
  /** InputNumber component props */
761
762
  interface InputNumberProps {
762
763
  value?: any[] | number | string;
@@ -1008,40 +1009,6 @@ interface Poptip extends Vue {
1008
1009
  /** Poptip Vue component type */
1009
1010
  declare const Poptip: VueConstructor<Poptip>;
1010
1011
 
1011
- /** Progress component props */
1012
- interface ProgressProps {
1013
- /** default: 0 */
1014
- percent?: number;
1015
- /** default: 6 */
1016
- strokeWidth?: number;
1017
- color?: string;
1018
- format?: (...args: any[]) => any;
1019
- width?: number;
1020
- strokeHeight?: number;
1021
- /** default: 75 */
1022
- gapDegree?: number;
1023
- strokeColor?: Record<string, any>;
1024
- /** default: round */
1025
- strokeLinecap?: string;
1026
- /** default: default */
1027
- size?: string;
1028
- /** default: normal */
1029
- status?: string;
1030
- /** default: line */
1031
- type?: string;
1032
- /** default: true */
1033
- showInfo?: boolean;
1034
- }
1035
-
1036
- /** Progress component instance */
1037
- interface Progress extends Vue {
1038
- $props: ProgressProps;
1039
- $emit(event: string, ...args: any[]): void;
1040
- }
1041
-
1042
- /** Progress Vue component type */
1043
- declare const Progress: VueConstructor<Progress>;
1044
-
1045
1012
  /** Radio component props */
1046
1013
  interface RadioProps {
1047
1014
  /** default: false */
@@ -1343,6 +1310,40 @@ interface Space extends Vue {
1343
1310
  /** Space Vue component type */
1344
1311
  declare const Space: VueConstructor<Space>;
1345
1312
 
1313
+ /** Progress component props */
1314
+ interface ProgressProps {
1315
+ /** default: 0 */
1316
+ percent?: number;
1317
+ /** default: 6 */
1318
+ strokeWidth?: number;
1319
+ color?: string;
1320
+ format?: (...args: any[]) => any;
1321
+ width?: number;
1322
+ strokeHeight?: number;
1323
+ /** default: 75 */
1324
+ gapDegree?: number;
1325
+ strokeColor?: Record<string, any>;
1326
+ /** default: round */
1327
+ strokeLinecap?: string;
1328
+ /** default: default */
1329
+ size?: string;
1330
+ /** default: normal */
1331
+ status?: string;
1332
+ /** default: line */
1333
+ type?: string;
1334
+ /** default: true */
1335
+ showInfo?: boolean;
1336
+ }
1337
+
1338
+ /** Progress component instance */
1339
+ interface Progress extends Vue {
1340
+ $props: ProgressProps;
1341
+ $emit(event: string, ...args: any[]): void;
1342
+ }
1343
+
1344
+ /** Progress Vue component type */
1345
+ declare const Progress: VueConstructor<Progress>;
1346
+
1346
1347
  /** Spin component props */
1347
1348
  interface SpinProps {
1348
1349
  /** default: true */
@@ -1366,6 +1367,8 @@ declare const Spin: VueConstructor<Spin>;
1366
1367
 
1367
1368
  /** Switch component props */
1368
1369
  interface SwitchProps {
1370
+ /** default: false */
1371
+ checked?: boolean;
1369
1372
  value?: boolean | number;
1370
1373
  type?: string;
1371
1374
  disabled?: boolean;