kui-vue 6.2.0 → 6.2.2

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 (56) hide show
  1. package/AI.en-US.md +72 -4
  2. package/AI.md +70 -4
  3. package/ai/behaviors.json +23 -1
  4. package/ai/cli.mjs +180 -17
  5. package/ai/descriptions.json +28 -0
  6. package/ai/kui-components.json +1460 -1426
  7. package/ai/mcp.mjs +2 -188
  8. package/ai/query.mjs +192 -0
  9. package/ai/skills/kui-vue/SKILL.md +39 -18
  10. package/ai/skills/kui-vue/references/mcp.md +11 -1
  11. package/ai/skills/kui-vue/references/react-to-vue.md +110 -0
  12. package/ai/skills/kui-vue/references/vue-to-react.md +86 -0
  13. package/dist/index.js +2 -2
  14. package/es/index.js +549 -107
  15. package/es/locale/de.js +1 -1
  16. package/es/locale/el.js +1 -1
  17. package/es/locale/en.js +1 -1
  18. package/es/locale/fr.js +1 -1
  19. package/es/locale/it.js +1 -1
  20. package/es/locale/ja.js +1 -1
  21. package/es/locale/ko.js +1 -1
  22. package/es/locale/ru.js +1 -1
  23. package/es/locale/th.js +1 -1
  24. package/es/locale/uk.js +1 -1
  25. package/es/locale/vi.js +1 -1
  26. package/es/locale/zh-CN.js +1 -1
  27. package/es/locale/zh-TW.js +1 -1
  28. package/lib/index.cjs +2 -2
  29. package/lib/locale/de.cjs +1 -1
  30. package/lib/locale/el.cjs +1 -1
  31. package/lib/locale/en.cjs +1 -1
  32. package/lib/locale/fr.cjs +1 -1
  33. package/lib/locale/it.cjs +1 -1
  34. package/lib/locale/ja.cjs +1 -1
  35. package/lib/locale/ko.cjs +1 -1
  36. package/lib/locale/ru.cjs +1 -1
  37. package/lib/locale/th.cjs +1 -1
  38. package/lib/locale/uk.cjs +1 -1
  39. package/lib/locale/vi.cjs +1 -1
  40. package/lib/locale/zh-CN.cjs +1 -1
  41. package/lib/locale/zh-TW.cjs +1 -1
  42. package/package.json +6 -3
  43. package/style/base.css +1 -1
  44. package/style/components.css +2 -2
  45. package/style/index.css +2 -2
  46. package/style/motion.css +1 -1
  47. package/style/theme.css +1 -1
  48. package/types/carousel/carousel.d.ts +13 -0
  49. package/types/carousel/drag.d.ts +19 -0
  50. package/types/input/input-base.d.ts +186 -0
  51. package/types/input/input.d.ts +36 -107
  52. package/types/page/index.d.ts +13 -0
  53. package/types/page/responsive.d.ts +1 -0
  54. package/vetur/attributes.json +746 -722
  55. package/vetur/tags.json +96 -94
  56. package/vetur/web-types.json +687 -671
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "affix/change": {
15
15
  "description": "固定状态改变时触发",
16
- "type": "(...args: unknown[]) => void"
16
+ "type": "(affixed: boolean) => void"
17
17
  },
18
18
  "k-affix/offsetTop": {
19
19
  "description": "距离目标顶部达到指定偏移量后触发",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "k-affix/change": {
31
31
  "description": "固定状态改变时触发",
32
- "type": "(...args: unknown[]) => void"
32
+ "type": "(affixed: boolean) => void"
33
33
  },
34
34
  "popup/disabled": {
35
35
  "description": "禁止交互打开并取消待执行的打开操作,不强制覆盖 open",
@@ -417,11 +417,11 @@
417
417
  },
418
418
  "alert/close": {
419
419
  "description": "点击关闭按钮时触发",
420
- "type": "(...args: unknown[]) => void"
420
+ "type": "(event: MouseEvent) => void"
421
421
  },
422
422
  "alert/afterClose": {
423
423
  "description": "退出动画结束后触发",
424
- "type": "(...args: unknown[]) => void"
424
+ "type": "() => void"
425
425
  },
426
426
  "k-alert/type": {
427
427
  "description": "按钮类型,可选值为 `success`、`info`、`warning`、`error` 或者不设置",
@@ -473,11 +473,11 @@
473
473
  },
474
474
  "k-alert/close": {
475
475
  "description": "点击关闭按钮时触发",
476
- "type": "(...args: unknown[]) => void"
476
+ "type": "(event: MouseEvent) => void"
477
477
  },
478
478
  "k-alert/afterClose": {
479
479
  "description": "退出动画结束后触发",
480
- "type": "(...args: unknown[]) => void"
480
+ "type": "() => void"
481
481
  },
482
482
  "auto-complete/disabled": {
483
483
  "description": "禁用",
@@ -565,23 +565,23 @@
565
565
  },
566
566
  "auto-complete/change": {
567
567
  "description": "输入变化",
568
- "type": "(...args: unknown[]) => void"
568
+ "type": "(value: string) => void"
569
569
  },
570
570
  "auto-complete/clear": {
571
571
  "description": "点击清除按钮",
572
- "type": "(...args: unknown[]) => void"
572
+ "type": "() => void"
573
573
  },
574
574
  "auto-complete/search": {
575
575
  "description": "搜索时触发",
576
- "type": "(...args: unknown[]) => void"
576
+ "type": "(value: string) => void"
577
577
  },
578
578
  "auto-complete/select": {
579
579
  "description": "选择候选项",
580
- "type": "(...args: unknown[]) => void"
580
+ "type": "(value: string, option: AutoCompleteOption) => void"
581
581
  },
582
582
  "auto-complete/openChange": {
583
583
  "description": "展开状态变化",
584
- "type": "(...args: unknown[]) => void"
584
+ "type": "(open: boolean) => void"
585
585
  },
586
586
  "k-auto-complete/disabled": {
587
587
  "description": "禁用",
@@ -669,23 +669,23 @@
669
669
  },
670
670
  "k-auto-complete/change": {
671
671
  "description": "输入变化",
672
- "type": "(...args: unknown[]) => void"
672
+ "type": "(value: string) => void"
673
673
  },
674
674
  "k-auto-complete/clear": {
675
675
  "description": "点击清除按钮",
676
- "type": "(...args: unknown[]) => void"
676
+ "type": "() => void"
677
677
  },
678
678
  "k-auto-complete/search": {
679
679
  "description": "搜索时触发",
680
- "type": "(...args: unknown[]) => void"
680
+ "type": "(value: string) => void"
681
681
  },
682
682
  "k-auto-complete/select": {
683
683
  "description": "选择候选项",
684
- "type": "(...args: unknown[]) => void"
684
+ "type": "(value: string, option: AutoCompleteOption) => void"
685
685
  },
686
686
  "k-auto-complete/openChange": {
687
687
  "description": "展开状态变化",
688
- "type": "(...args: unknown[]) => void"
688
+ "type": "(open: boolean) => void"
689
689
  },
690
690
  "anchor/offsetTop": {
691
691
  "description": "固定位置及锚点判定距离容器顶部的偏移",
@@ -709,11 +709,11 @@
709
709
  },
710
710
  "anchor/change": {
711
711
  "description": "当前激活锚点改变时触发",
712
- "type": "(...args: unknown[]) => void"
712
+ "type": "(activeLink: string) => void"
713
713
  },
714
714
  "anchor/click": {
715
715
  "description": "点击锚点时触发",
716
- "type": "(...args: unknown[]) => void"
716
+ "type": "(link: string) => void"
717
717
  },
718
718
  "k-anchor/offsetTop": {
719
719
  "description": "固定位置及锚点判定距离容器顶部的偏移",
@@ -737,21 +737,17 @@
737
737
  },
738
738
  "k-anchor/change": {
739
739
  "description": "当前激活锚点改变时触发",
740
- "type": "(...args: unknown[]) => void"
740
+ "type": "(activeLink: string) => void"
741
741
  },
742
742
  "k-anchor/click": {
743
743
  "description": "点击锚点时触发",
744
- "type": "(...args: unknown[]) => void"
745
- },
746
- "anchor-link/href": {
747
- "description": "锚点链接",
748
- "type": "string | undefined"
744
+ "type": "(link: string) => void"
749
745
  },
750
746
  "anchor-link/title": {
751
747
  "description": "文字内容,也可通过同名插槽自定义",
752
748
  "type": "string | undefined"
753
749
  },
754
- "k-anchor-link/href": {
750
+ "anchor-link/href": {
755
751
  "description": "锚点链接",
756
752
  "type": "string | undefined"
757
753
  },
@@ -759,12 +755,16 @@
759
755
  "description": "文字内容,也可通过同名插槽自定义",
760
756
  "type": "string | undefined"
761
757
  },
758
+ "k-anchor-link/href": {
759
+ "description": "锚点链接",
760
+ "type": "string | undefined"
761
+ },
762
762
  "avatar/shape": {
763
- "description": "统一子头像形状",
763
+ "description": "指定头像形状",
764
764
  "type": "AvatarShape"
765
765
  },
766
766
  "avatar/size": {
767
- "description": "统一子头像尺寸,并按尺寸自动调整头像重叠距离",
767
+ "description": "设置头像大小",
768
768
  "type": "AvatarSize"
769
769
  },
770
770
  "avatar/icon": {
@@ -784,11 +784,11 @@
784
784
  "type": "((event: Event) => boolean | void) | undefined"
785
785
  },
786
786
  "k-avatar/shape": {
787
- "description": "统一子头像形状",
787
+ "description": "指定头像形状",
788
788
  "type": "AvatarShape"
789
789
  },
790
790
  "k-avatar/size": {
791
- "description": "统一子头像尺寸,并按尺寸自动调整头像重叠距离",
791
+ "description": "设置头像大小",
792
792
  "type": "AvatarSize"
793
793
  },
794
794
  "k-avatar/icon": {
@@ -865,7 +865,7 @@
865
865
  },
866
866
  "breadcrumb-item/click": {
867
867
  "description": "点击面包屑项时触发",
868
- "type": "(...args: unknown[]) => void"
868
+ "type": "(event: MouseEvent) => void"
869
869
  },
870
870
  "k-breadcrumb-item/target": {
871
871
  "description": "链接打开方式",
@@ -885,7 +885,7 @@
885
885
  },
886
886
  "k-breadcrumb-item/click": {
887
887
  "description": "点击面包屑项时触发",
888
- "type": "(...args: unknown[]) => void"
888
+ "type": "(event: MouseEvent) => void"
889
889
  },
890
890
  "back-top/target": {
891
891
  "description": "需要回顶部的容器",
@@ -909,11 +909,11 @@
909
909
  },
910
910
  "back-top/click": {
911
911
  "description": "点击按钮时触发",
912
- "type": "(...args: unknown[]) => void"
912
+ "type": "(event: MouseEvent) => void"
913
913
  },
914
914
  "back-top/visibleChange": {
915
915
  "description": "显示状态变化时触发",
916
- "type": "(...args: unknown[]) => void"
916
+ "type": "(visible: boolean) => void"
917
917
  },
918
918
  "k-back-top/target": {
919
919
  "description": "需要回顶部的容器",
@@ -937,11 +937,11 @@
937
937
  },
938
938
  "k-back-top/click": {
939
939
  "description": "点击按钮时触发",
940
- "type": "(...args: unknown[]) => void"
940
+ "type": "(event: MouseEvent) => void"
941
941
  },
942
942
  "k-back-top/visibleChange": {
943
943
  "description": "显示状态变化时触发",
944
- "type": "(...args: unknown[]) => void"
944
+ "type": "(visible: boolean) => void"
945
945
  },
946
946
  "badge/maxCount": {
947
947
  "description": "展示封顶的数字值,高于的部分会以+号显示",
@@ -1068,7 +1068,7 @@
1068
1068
  ]
1069
1069
  },
1070
1070
  "button/icon": {
1071
- "description": "按钮的图标",
1071
+ "description": "从 kui-icons 导入的图标定义(如 Search),不是字符串或已渲染的 Icon 元素",
1072
1072
  "type": "IconType[] | undefined"
1073
1073
  },
1074
1074
  "button/theme": {
@@ -1128,7 +1128,7 @@
1128
1128
  ]
1129
1129
  },
1130
1130
  "k-button/icon": {
1131
- "description": "按钮的图标",
1131
+ "description": "从 kui-icons 导入的图标定义(如 Search),不是字符串或已渲染的 Icon 元素",
1132
1132
  "type": "IconType[] | undefined"
1133
1133
  },
1134
1134
  "k-button/theme": {
@@ -1395,14 +1395,14 @@
1395
1395
  "description": "卡片尺寸",
1396
1396
  "type": "SizeType"
1397
1397
  },
1398
+ "card/title": {
1399
+ "description": "卡片的标题",
1400
+ "type": "string | undefined"
1401
+ },
1398
1402
  "card/icon": {
1399
1403
  "description": "卡片标题的图标",
1400
1404
  "type": "IconType[] | undefined"
1401
1405
  },
1402
- "card/title": {
1403
- "description": "标题",
1404
- "type": "string | undefined"
1405
- },
1406
1406
  "card/cover": {
1407
1407
  "description": "卡片封面,设置后不显示卡片头部",
1408
1408
  "type": "VNodeChild"
@@ -1427,38 +1427,38 @@
1427
1427
  "description": "卡片尺寸",
1428
1428
  "type": "SizeType"
1429
1429
  },
1430
+ "k-card/title": {
1431
+ "description": "卡片的标题",
1432
+ "type": "string | undefined"
1433
+ },
1430
1434
  "k-card/icon": {
1431
1435
  "description": "卡片标题的图标",
1432
1436
  "type": "IconType[] | undefined"
1433
1437
  },
1434
- "k-card/title": {
1435
- "description": "标题",
1436
- "type": "string | undefined"
1437
- },
1438
1438
  "k-card/cover": {
1439
1439
  "description": "卡片封面,设置后不显示卡片头部",
1440
1440
  "type": "VNodeChild"
1441
1441
  },
1442
- "card-meta/description": {
1443
- "description": "描述内容",
1444
- "type": "VNodeChild"
1445
- },
1446
1442
  "card-meta/title": {
1447
1443
  "description": "标题",
1448
1444
  "type": "VNodeChild"
1449
1445
  },
1450
- "card-meta/avatar": {
1451
- "description": "头像",
1446
+ "card-meta/description": {
1447
+ "description": "描述内容",
1452
1448
  "type": "VNodeChild"
1453
1449
  },
1454
- "k-card-meta/description": {
1455
- "description": "描述内容",
1450
+ "card-meta/avatar": {
1451
+ "description": "头像",
1456
1452
  "type": "VNodeChild"
1457
1453
  },
1458
1454
  "k-card-meta/title": {
1459
1455
  "description": "标题",
1460
1456
  "type": "VNodeChild"
1461
1457
  },
1458
+ "k-card-meta/description": {
1459
+ "description": "描述内容",
1460
+ "type": "VNodeChild"
1461
+ },
1462
1462
  "k-card-meta/avatar": {
1463
1463
  "description": "头像",
1464
1464
  "type": "VNodeChild"
@@ -1501,15 +1501,15 @@
1501
1501
  },
1502
1502
  "calendar/change": {
1503
1503
  "description": "选择日期或点击“今天”时触发",
1504
- "type": "(...args: unknown[]) => void"
1504
+ "type": "(date: string, cell: CalendarDateCell) => void"
1505
1505
  },
1506
1506
  "calendar/monthChange": {
1507
1507
  "description": "切换展示月份时触发",
1508
- "type": "(...args: unknown[]) => void"
1508
+ "type": "(value: { year: number; month: number; }) => void"
1509
1509
  },
1510
1510
  "calendar/eventClick": {
1511
1511
  "description": "点击日程时触发",
1512
- "type": "(...args: unknown[]) => void"
1512
+ "type": "(event: CalendarEventData, cell: CalendarDateCell) => void"
1513
1513
  },
1514
1514
  "k-calendar/events": {
1515
1515
  "description": "日程数据",
@@ -1549,15 +1549,15 @@
1549
1549
  },
1550
1550
  "k-calendar/change": {
1551
1551
  "description": "选择日期或点击“今天”时触发",
1552
- "type": "(...args: unknown[]) => void"
1552
+ "type": "(date: string, cell: CalendarDateCell) => void"
1553
1553
  },
1554
1554
  "k-calendar/monthChange": {
1555
1555
  "description": "切换展示月份时触发",
1556
- "type": "(...args: unknown[]) => void"
1556
+ "type": "(value: { year: number; month: number; }) => void"
1557
1557
  },
1558
1558
  "k-calendar/eventClick": {
1559
1559
  "description": "点击日程时触发",
1560
- "type": "(...args: unknown[]) => void"
1560
+ "type": "(event: CalendarEventData, cell: CalendarDateCell) => void"
1561
1561
  },
1562
1562
  "feature-card/bordered": {
1563
1563
  "description": "是否显示边框",
@@ -1591,14 +1591,14 @@
1591
1591
  "false"
1592
1592
  ]
1593
1593
  },
1594
- "feature-card/icon": {
1595
- "description": "图标,也可通过同名插槽自定义",
1596
- "type": "IconType[] | undefined"
1597
- },
1598
1594
  "feature-card/title": {
1599
1595
  "description": "标题,也可通过同名插槽自定义",
1600
1596
  "type": "string | undefined"
1601
1597
  },
1598
+ "feature-card/icon": {
1599
+ "description": "图标,也可通过同名插槽自定义",
1600
+ "type": "IconType[] | undefined"
1601
+ },
1602
1602
  "feature-card/color": {
1603
1603
  "description": "图标强调色",
1604
1604
  "type": "string | undefined"
@@ -1621,7 +1621,7 @@
1621
1621
  },
1622
1622
  "feature-card/click": {
1623
1623
  "description": "点击时触发",
1624
- "type": "(...args: unknown[]) => void"
1624
+ "type": "(event: MouseEvent) => void"
1625
1625
  },
1626
1626
  "k-feature-card/bordered": {
1627
1627
  "description": "是否显示边框",
@@ -1655,14 +1655,14 @@
1655
1655
  "false"
1656
1656
  ]
1657
1657
  },
1658
- "k-feature-card/icon": {
1659
- "description": "图标,也可通过同名插槽自定义",
1660
- "type": "IconType[] | undefined"
1661
- },
1662
1658
  "k-feature-card/title": {
1663
1659
  "description": "标题,也可通过同名插槽自定义",
1664
1660
  "type": "string | undefined"
1665
1661
  },
1662
+ "k-feature-card/icon": {
1663
+ "description": "图标,也可通过同名插槽自定义",
1664
+ "type": "IconType[] | undefined"
1665
+ },
1666
1666
  "k-feature-card/color": {
1667
1667
  "description": "图标强调色",
1668
1668
  "type": "string | undefined"
@@ -1685,7 +1685,7 @@
1685
1685
  },
1686
1686
  "k-feature-card/click": {
1687
1687
  "description": "点击时触发",
1688
- "type": "(...args: unknown[]) => void"
1688
+ "type": "(event: MouseEvent) => void"
1689
1689
  },
1690
1690
  "flame-wrap/height": {
1691
1691
  "description": "顶部火焰高度,单位 px",
@@ -1857,7 +1857,7 @@
1857
1857
  },
1858
1858
  "list-panel/theme": {
1859
1859
  "description": "面板外观",
1860
- "type": "\"outline\" | \"fill\" | \"plain\""
1860
+ "type": "\"fill\" | \"outline\" | \"plain\""
1861
1861
  },
1862
1862
  "list-panel/shape": {
1863
1863
  "description": "面板形状",
@@ -1885,7 +1885,7 @@
1885
1885
  },
1886
1886
  "k-list-panel/theme": {
1887
1887
  "description": "面板外观",
1888
- "type": "\"outline\" | \"fill\" | \"plain\""
1888
+ "type": "\"fill\" | \"outline\" | \"plain\""
1889
1889
  },
1890
1890
  "k-list-panel/shape": {
1891
1891
  "description": "面板形状",
@@ -1939,6 +1939,14 @@
1939
1939
  "false"
1940
1940
  ]
1941
1941
  },
1942
+ "carousel/swipeable": {
1943
+ "description": "是否开启触摸滑动和鼠标跟手拖拽",
1944
+ "type": "boolean",
1945
+ "options": [
1946
+ "true",
1947
+ "false"
1948
+ ]
1949
+ },
1942
1950
  "carousel/modelValue": {
1943
1951
  "description": "幻灯片的索引,从 0 开始,可以使用 `v-model` 双向绑定数据",
1944
1952
  "type": "number | undefined"
@@ -1953,7 +1961,7 @@
1953
1961
  },
1954
1962
  "carousel/change": {
1955
1963
  "description": "当前幻灯片变化时触发",
1956
- "type": "(...args: unknown[]) => void"
1964
+ "type": "(value: number) => void"
1957
1965
  },
1958
1966
  "k-carousel/value": {
1959
1967
  "description": "初始值,仅初始化时读取;后续更新使用 modelValue,同时传入时 modelValue 优先。",
@@ -1991,6 +1999,14 @@
1991
1999
  "false"
1992
2000
  ]
1993
2001
  },
2002
+ "k-carousel/swipeable": {
2003
+ "description": "是否开启触摸滑动和鼠标跟手拖拽",
2004
+ "type": "boolean",
2005
+ "options": [
2006
+ "true",
2007
+ "false"
2008
+ ]
2009
+ },
1994
2010
  "k-carousel/modelValue": {
1995
2011
  "description": "幻灯片的索引,从 0 开始,可以使用 `v-model` 双向绑定数据",
1996
2012
  "type": "number | undefined"
@@ -2005,7 +2021,7 @@
2005
2021
  },
2006
2022
  "k-carousel/change": {
2007
2023
  "description": "当前幻灯片变化时触发",
2008
- "type": "(...args: unknown[]) => void"
2024
+ "type": "(value: number) => void"
2009
2025
  },
2010
2026
  "checkbox/theme": {
2011
2027
  "description": "组件呈现主题",
@@ -2024,23 +2040,27 @@
2024
2040
  "type": "ValueType"
2025
2041
  },
2026
2042
  "checkbox/disabled": {
2027
- "description": "是否禁用组件",
2043
+ "description": "是否禁用当前项",
2028
2044
  "type": "boolean | undefined",
2029
2045
  "options": [
2030
2046
  "true",
2031
2047
  "false"
2032
2048
  ]
2033
2049
  },
2050
+ "checkbox/label": {
2051
+ "description": "显示的文字",
2052
+ "type": "string | number | undefined"
2053
+ },
2034
2054
  "checkbox/modelValue": {
2035
- "description": "用于设置当前选中的值,可使用 `v-model` 双向绑定",
2055
+ "description": "独立使用时通过 `v-model` 绑定的状态值",
2036
2056
  "type": "string | number | boolean | undefined"
2037
2057
  },
2038
2058
  "checkbox/value": {
2039
- "description": "初始值,仅初始化时读取;后续更新使用 modelValue,同时传入时 modelValue 优先。",
2059
+ "description": "结合使用时表示的值",
2040
2060
  "type": "string | number | boolean | undefined"
2041
2061
  },
2042
2062
  "checkbox/readonly": {
2043
- "description": "是否只读",
2063
+ "description": "是否只读,保持可聚焦但不可切换",
2044
2064
  "type": "boolean | undefined",
2045
2065
  "options": [
2046
2066
  "true",
@@ -2051,10 +2071,6 @@
2051
2071
  "description": "设置复选框的大小",
2052
2072
  "type": "SizeType | undefined"
2053
2073
  },
2054
- "checkbox/label": {
2055
- "description": "显示的文字",
2056
- "type": "string | number | undefined"
2057
- },
2058
2074
  "checkbox/indeterminate": {
2059
2075
  "description": "组合辅助选项控制半选状态",
2060
2076
  "type": "boolean | undefined",
@@ -2064,8 +2080,8 @@
2064
2080
  ]
2065
2081
  },
2066
2082
  "checkbox/change": {
2067
- "description": "在选项状态发生改变时触发,返回当前选中的项和状态",
2068
- "type": "(...args: unknown[]) => void"
2083
+ "description": "在选项状态发生改变时回调",
2084
+ "type": "(event: CheckboxChangeEvent) => void"
2069
2085
  },
2070
2086
  "k-checkbox/theme": {
2071
2087
  "description": "组件呈现主题",
@@ -2084,23 +2100,27 @@
2084
2100
  "type": "ValueType"
2085
2101
  },
2086
2102
  "k-checkbox/disabled": {
2087
- "description": "是否禁用组件",
2103
+ "description": "是否禁用当前项",
2088
2104
  "type": "boolean | undefined",
2089
2105
  "options": [
2090
2106
  "true",
2091
2107
  "false"
2092
2108
  ]
2093
2109
  },
2110
+ "k-checkbox/label": {
2111
+ "description": "显示的文字",
2112
+ "type": "string | number | undefined"
2113
+ },
2094
2114
  "k-checkbox/modelValue": {
2095
- "description": "用于设置当前选中的值,可使用 `v-model` 双向绑定",
2115
+ "description": "独立使用时通过 `v-model` 绑定的状态值",
2096
2116
  "type": "string | number | boolean | undefined"
2097
2117
  },
2098
2118
  "k-checkbox/value": {
2099
- "description": "初始值,仅初始化时读取;后续更新使用 modelValue,同时传入时 modelValue 优先。",
2119
+ "description": "结合使用时表示的值",
2100
2120
  "type": "string | number | boolean | undefined"
2101
2121
  },
2102
2122
  "k-checkbox/readonly": {
2103
- "description": "是否只读",
2123
+ "description": "是否只读,保持可聚焦但不可切换",
2104
2124
  "type": "boolean | undefined",
2105
2125
  "options": [
2106
2126
  "true",
@@ -2111,10 +2131,6 @@
2111
2131
  "description": "设置复选框的大小",
2112
2132
  "type": "SizeType | undefined"
2113
2133
  },
2114
- "k-checkbox/label": {
2115
- "description": "显示的文字",
2116
- "type": "string | number | undefined"
2117
- },
2118
2134
  "k-checkbox/indeterminate": {
2119
2135
  "description": "组合辅助选项控制半选状态",
2120
2136
  "type": "boolean | undefined",
@@ -2124,8 +2140,8 @@
2124
2140
  ]
2125
2141
  },
2126
2142
  "k-checkbox/change": {
2127
- "description": "在选项状态发生改变时触发,返回当前选中的项和状态",
2128
- "type": "(...args: unknown[]) => void"
2143
+ "description": "在选项状态发生改变时回调",
2144
+ "type": "(event: CheckboxChangeEvent) => void"
2129
2145
  },
2130
2146
  "checkbox-group/theme": {
2131
2147
  "description": "组件呈现主题",
@@ -2169,7 +2185,7 @@
2169
2185
  },
2170
2186
  "checkbox-group/change": {
2171
2187
  "description": "在选项状态发生改变时触发,返回当前选中的项和状态",
2172
- "type": "(...args: unknown[]) => void"
2188
+ "type": "(value: CheckboxValue[]) => void"
2173
2189
  },
2174
2190
  "k-checkbox-group/theme": {
2175
2191
  "description": "组件呈现主题",
@@ -2213,18 +2229,18 @@
2213
2229
  },
2214
2230
  "k-checkbox-group/change": {
2215
2231
  "description": "在选项状态发生改变时触发,返回当前选中的项和状态",
2216
- "type": "(...args: unknown[]) => void"
2232
+ "type": "(value: CheckboxValue[]) => void"
2217
2233
  },
2218
2234
  "check-card/theme": {
2219
- "description": "卡片主题",
2235
+ "description": "外观主题",
2220
2236
  "type": "CheckCardTheme"
2221
2237
  },
2222
2238
  "check-card/shape": {
2223
- "description": "卡片形状",
2239
+ "description": "形状",
2224
2240
  "type": "ShapeType"
2225
2241
  },
2226
2242
  "check-card/size": {
2227
- "description": "卡片尺寸",
2243
+ "description": "尺寸",
2228
2244
  "type": "SizeType"
2229
2245
  },
2230
2246
  "check-card/checked": {
@@ -2248,19 +2264,23 @@
2248
2264
  "type": "IconType[] | undefined"
2249
2265
  },
2250
2266
  "check-card/disabled": {
2251
- "description": "是否禁用整个卡片组",
2267
+ "description": "是否禁用",
2252
2268
  "type": "boolean | undefined",
2253
2269
  "options": [
2254
2270
  "true",
2255
2271
  "false"
2256
2272
  ]
2257
2273
  },
2274
+ "check-card/title": {
2275
+ "description": "标题,也可通过同名插槽自定义",
2276
+ "type": "string | number | undefined"
2277
+ },
2258
2278
  "check-card/description": {
2259
2279
  "description": "描述,也可通过同名插槽自定义",
2260
2280
  "type": "string | undefined"
2261
2281
  },
2262
2282
  "check-card/modelValue": {
2263
- "description": "当前选项值,可用 `v-model`",
2283
+ "description": "独立使用时的选中状态,可用 `v-model`",
2264
2284
  "type": "boolean | undefined",
2265
2285
  "options": [
2266
2286
  "true",
@@ -2268,39 +2288,35 @@
2268
2288
  ]
2269
2289
  },
2270
2290
  "check-card/value": {
2271
- "description": "初始值,仅初始化时读取;后续更新使用 modelValue,同时传入时 modelValue 优先。",
2291
+ "description": "在 Group 中使用的选项值",
2272
2292
  "type": "CheckCardValue | undefined"
2273
2293
  },
2274
2294
  "check-card/readonly": {
2275
- "description": "是否只读整个卡片组",
2295
+ "description": "是否只读,保持可聚焦但不可选择",
2276
2296
  "type": "boolean | undefined",
2277
2297
  "options": [
2278
2298
  "true",
2279
2299
  "false"
2280
2300
  ]
2281
2301
  },
2282
- "check-card/title": {
2283
- "description": "标题,也可通过同名插槽自定义",
2284
- "type": "string | number | undefined"
2285
- },
2286
2302
  "check-card/checkedSymbol": {
2287
2303
  "description": "选中时的 Symbol 图标",
2288
2304
  "type": "IconType[] | undefined"
2289
2305
  },
2290
2306
  "check-card/change": {
2291
- "description": "当前选择变化时触发",
2292
- "type": "(...args: unknown[]) => void"
2307
+ "description": "选择状态变化时触发",
2308
+ "type": "(event: CheckCardChangeEvent) => void"
2293
2309
  },
2294
2310
  "k-check-card/theme": {
2295
- "description": "卡片主题",
2311
+ "description": "外观主题",
2296
2312
  "type": "CheckCardTheme"
2297
2313
  },
2298
2314
  "k-check-card/shape": {
2299
- "description": "卡片形状",
2315
+ "description": "形状",
2300
2316
  "type": "ShapeType"
2301
2317
  },
2302
2318
  "k-check-card/size": {
2303
- "description": "卡片尺寸",
2319
+ "description": "尺寸",
2304
2320
  "type": "SizeType"
2305
2321
  },
2306
2322
  "k-check-card/checked": {
@@ -2324,19 +2340,23 @@
2324
2340
  "type": "IconType[] | undefined"
2325
2341
  },
2326
2342
  "k-check-card/disabled": {
2327
- "description": "是否禁用整个卡片组",
2343
+ "description": "是否禁用",
2328
2344
  "type": "boolean | undefined",
2329
2345
  "options": [
2330
2346
  "true",
2331
2347
  "false"
2332
2348
  ]
2333
2349
  },
2350
+ "k-check-card/title": {
2351
+ "description": "标题,也可通过同名插槽自定义",
2352
+ "type": "string | number | undefined"
2353
+ },
2334
2354
  "k-check-card/description": {
2335
2355
  "description": "描述,也可通过同名插槽自定义",
2336
2356
  "type": "string | undefined"
2337
2357
  },
2338
2358
  "k-check-card/modelValue": {
2339
- "description": "当前选项值,可用 `v-model`",
2359
+ "description": "独立使用时的选中状态,可用 `v-model`",
2340
2360
  "type": "boolean | undefined",
2341
2361
  "options": [
2342
2362
  "true",
@@ -2344,28 +2364,24 @@
2344
2364
  ]
2345
2365
  },
2346
2366
  "k-check-card/value": {
2347
- "description": "初始值,仅初始化时读取;后续更新使用 modelValue,同时传入时 modelValue 优先。",
2367
+ "description": "在 Group 中使用的选项值",
2348
2368
  "type": "CheckCardValue | undefined"
2349
2369
  },
2350
2370
  "k-check-card/readonly": {
2351
- "description": "是否只读整个卡片组",
2371
+ "description": "是否只读,保持可聚焦但不可选择",
2352
2372
  "type": "boolean | undefined",
2353
2373
  "options": [
2354
2374
  "true",
2355
2375
  "false"
2356
2376
  ]
2357
2377
  },
2358
- "k-check-card/title": {
2359
- "description": "标题,也可通过同名插槽自定义",
2360
- "type": "string | number | undefined"
2361
- },
2362
2378
  "k-check-card/checkedSymbol": {
2363
2379
  "description": "选中时的 Symbol 图标",
2364
2380
  "type": "IconType[] | undefined"
2365
2381
  },
2366
2382
  "k-check-card/change": {
2367
- "description": "当前选择变化时触发",
2368
- "type": "(...args: unknown[]) => void"
2383
+ "description": "选择状态变化时触发",
2384
+ "type": "(event: CheckCardChangeEvent) => void"
2369
2385
  },
2370
2386
  "check-card-group/theme": {
2371
2387
  "description": "卡片主题",
@@ -2413,7 +2429,7 @@
2413
2429
  },
2414
2430
  "check-card-group/change": {
2415
2431
  "description": "当前选择变化时触发",
2416
- "type": "(...args: unknown[]) => void"
2432
+ "type": "(value: CheckCardValue) => void"
2417
2433
  },
2418
2434
  "k-check-card-group/theme": {
2419
2435
  "description": "卡片主题",
@@ -2461,7 +2477,7 @@
2461
2477
  },
2462
2478
  "k-check-card-group/change": {
2463
2479
  "description": "当前选择变化时触发",
2464
- "type": "(...args: unknown[]) => void"
2480
+ "type": "(value: CheckCardValue) => void"
2465
2481
  },
2466
2482
  "collapse/theme": {
2467
2483
  "description": "外观主题",
@@ -2493,7 +2509,7 @@
2493
2509
  },
2494
2510
  "collapse/change": {
2495
2511
  "description": "切换面板时触发回调,返回当前选项卡的 `name`",
2496
- "type": "(...args: unknown[]) => void"
2512
+ "type": "(key: CollapseKey) => void"
2497
2513
  },
2498
2514
  "k-collapse/theme": {
2499
2515
  "description": "外观主题",
@@ -2525,7 +2541,7 @@
2525
2541
  },
2526
2542
  "k-collapse/change": {
2527
2543
  "description": "切换面板时触发回调,返回当前选项卡的 `name`",
2528
- "type": "(...args: unknown[]) => void"
2544
+ "type": "(key: CollapseKey) => void"
2529
2545
  },
2530
2546
  "collapse-panel/disabled": {
2531
2547
  "description": "是否禁用",
@@ -2541,7 +2557,7 @@
2541
2557
  },
2542
2558
  "collapse-panel/expand": {
2543
2559
  "description": "面板切换展开状态时触发",
2544
- "type": "(...args: unknown[]) => void"
2560
+ "type": "(key: CollapseKey) => void"
2545
2561
  },
2546
2562
  "k-collapse-panel/disabled": {
2547
2563
  "description": "是否禁用",
@@ -2557,7 +2573,7 @@
2557
2573
  },
2558
2574
  "k-collapse-panel/expand": {
2559
2575
  "description": "面板切换展开状态时触发",
2560
- "type": "(...args: unknown[]) => void"
2576
+ "type": "(key: CollapseKey) => void"
2561
2577
  },
2562
2578
  "color-picker/placement": {
2563
2579
  "description": "颜色选择器的放置位置",
@@ -2567,14 +2583,14 @@
2567
2583
  "description": "下拉触发形式",
2568
2584
  "type": "\"hover\" | \"click\""
2569
2585
  },
2570
- "color-picker/theme": {
2571
- "description": "外观主题,支持 `outline`、`fill`、`plain`,未设置时可继承 Form",
2572
- "type": "ThemeType"
2573
- },
2574
2586
  "color-picker/mode": {
2575
2587
  "description": "颜色展示类型,提供 3 种模式(`hex` 、 `rgb` 、`hsl`)",
2576
2588
  "type": "ColorMode"
2577
2589
  },
2590
+ "color-picker/theme": {
2591
+ "description": "外观主题,支持 `outline`、`fill`、`plain`,未设置时可继承 Form",
2592
+ "type": "ThemeType"
2593
+ },
2578
2594
  "color-picker/disabled": {
2579
2595
  "description": "是否失效状态",
2580
2596
  "type": "boolean | undefined",
@@ -2645,11 +2661,11 @@
2645
2661
  },
2646
2662
  "color-picker/change": {
2647
2663
  "description": "颜色值改变的时候触发,返回颜色的值",
2648
- "type": "(...args: unknown[]) => void"
2664
+ "type": "(value: string) => void"
2649
2665
  },
2650
2666
  "color-picker/openChange": {
2651
2667
  "description": "颜色选择器展开或者收起的时候触发",
2652
- "type": "(...args: unknown[]) => void"
2668
+ "type": "(open: boolean) => void"
2653
2669
  },
2654
2670
  "k-color-picker/placement": {
2655
2671
  "description": "颜色选择器的放置位置",
@@ -2659,14 +2675,14 @@
2659
2675
  "description": "下拉触发形式",
2660
2676
  "type": "\"hover\" | \"click\""
2661
2677
  },
2662
- "k-color-picker/theme": {
2663
- "description": "外观主题,支持 `outline`、`fill`、`plain`,未设置时可继承 Form",
2664
- "type": "ThemeType"
2665
- },
2666
2678
  "k-color-picker/mode": {
2667
2679
  "description": "颜色展示类型,提供 3 种模式(`hex` 、 `rgb` 、`hsl`)",
2668
2680
  "type": "ColorMode"
2669
2681
  },
2682
+ "k-color-picker/theme": {
2683
+ "description": "外观主题,支持 `outline`、`fill`、`plain`,未设置时可继承 Form",
2684
+ "type": "ThemeType"
2685
+ },
2670
2686
  "k-color-picker/disabled": {
2671
2687
  "description": "是否失效状态",
2672
2688
  "type": "boolean | undefined",
@@ -2737,16 +2753,20 @@
2737
2753
  },
2738
2754
  "k-color-picker/change": {
2739
2755
  "description": "颜色值改变的时候触发,返回颜色的值",
2740
- "type": "(...args: unknown[]) => void"
2756
+ "type": "(value: string) => void"
2741
2757
  },
2742
2758
  "k-color-picker/openChange": {
2743
2759
  "description": "颜色选择器展开或者收起的时候触发",
2744
- "type": "(...args: unknown[]) => void"
2760
+ "type": "(open: boolean) => void"
2745
2761
  },
2746
2762
  "date-picker/placement": {
2747
2763
  "description": "下拉展示的方位",
2748
2764
  "type": "DropPlacementsType"
2749
2765
  },
2766
+ "date-picker/mode": {
2767
+ "description": "使用 `mode` 属性,可以自定义日期显示类型,提供 `year`、`month`、`date`、`time`、`dateTime`、`dateRange`、`dateTimeRange`",
2768
+ "type": "DatePickerModeType"
2769
+ },
2750
2770
  "date-picker/bordered": {
2751
2771
  "description": "是否展示边框",
2752
2772
  "type": "boolean",
@@ -2779,10 +2799,6 @@
2779
2799
  "description": "输出值类型",
2780
2800
  "type": "DatePickerValueType"
2781
2801
  },
2782
- "date-picker/mode": {
2783
- "description": "使用 `mode` 属性,可以自定义日期显示类型,提供 `year`、`month`、`date`、`time`、`dateTime`、`dateRange`、`dateTimeRange`",
2784
- "type": "DatePickerModeType"
2785
- },
2786
2802
  "date-picker/startDate": {
2787
2803
  "description": "范围选择的开始值",
2788
2804
  "type": "DatePickerInput | null"
@@ -2865,20 +2881,24 @@
2865
2881
  },
2866
2882
  "date-picker/change": {
2867
2883
  "description": "值改变后的回调",
2868
- "type": "(...args: unknown[]) => void"
2884
+ "type": "(value: DatePickerOutput | DatePickerOutput[], text: string | string[]) => void"
2869
2885
  },
2870
2886
  "date-picker/openChange": {
2871
2887
  "description": "下拉框展开或收起时触发",
2872
- "type": "(...args: unknown[]) => void"
2888
+ "type": "(open: boolean) => void"
2873
2889
  },
2874
2890
  "date-picker/clear": {
2875
2891
  "description": "点击清除按钮时触发",
2876
- "type": "(...args: unknown[]) => void"
2892
+ "type": "() => void"
2877
2893
  },
2878
2894
  "k-date-picker/placement": {
2879
2895
  "description": "下拉展示的方位",
2880
2896
  "type": "DropPlacementsType"
2881
2897
  },
2898
+ "k-date-picker/mode": {
2899
+ "description": "使用 `mode` 属性,可以自定义日期显示类型,提供 `year`、`month`、`date`、`time`、`dateTime`、`dateRange`、`dateTimeRange`",
2900
+ "type": "DatePickerModeType"
2901
+ },
2882
2902
  "k-date-picker/bordered": {
2883
2903
  "description": "是否展示边框",
2884
2904
  "type": "boolean",
@@ -2911,10 +2931,6 @@
2911
2931
  "description": "输出值类型",
2912
2932
  "type": "DatePickerValueType"
2913
2933
  },
2914
- "k-date-picker/mode": {
2915
- "description": "使用 `mode` 属性,可以自定义日期显示类型,提供 `year`、`month`、`date`、`time`、`dateTime`、`dateRange`、`dateTimeRange`",
2916
- "type": "DatePickerModeType"
2917
- },
2918
2934
  "k-date-picker/startDate": {
2919
2935
  "description": "范围选择的开始值",
2920
2936
  "type": "DatePickerInput | null"
@@ -2997,15 +3013,15 @@
2997
3013
  },
2998
3014
  "k-date-picker/change": {
2999
3015
  "description": "值改变后的回调",
3000
- "type": "(...args: unknown[]) => void"
3016
+ "type": "(value: DatePickerOutput | DatePickerOutput[], text: string | string[]) => void"
3001
3017
  },
3002
3018
  "k-date-picker/openChange": {
3003
3019
  "description": "下拉框展开或收起时触发",
3004
- "type": "(...args: unknown[]) => void"
3020
+ "type": "(open: boolean) => void"
3005
3021
  },
3006
3022
  "k-date-picker/clear": {
3007
3023
  "description": "点击清除按钮时触发",
3008
- "type": "(...args: unknown[]) => void"
3024
+ "type": "() => void"
3009
3025
  },
3010
3026
  "descriptions/shape": {
3011
3027
  "description": "描述列表形状",
@@ -3019,6 +3035,10 @@
3019
3035
  "description": "描述布局",
3020
3036
  "type": "DirectionType"
3021
3037
  },
3038
+ "descriptions/title": {
3039
+ "description": "描述列表的标题,显示在最顶部",
3040
+ "type": "string | undefined"
3041
+ },
3022
3042
  "descriptions/bordered": {
3023
3043
  "description": "是否展示边框",
3024
3044
  "type": "boolean | undefined",
@@ -3031,10 +3051,6 @@
3031
3051
  "description": "设置列表大小",
3032
3052
  "type": "SizeType | undefined"
3033
3053
  },
3034
- "descriptions/title": {
3035
- "description": "描述列表的标题,显示在最顶部",
3036
- "type": "string | undefined"
3037
- },
3038
3054
  "descriptions/extra": {
3039
3055
  "description": "描述列表的操作区域,显示在右上方",
3040
3056
  "type": "string | undefined"
@@ -3051,6 +3067,10 @@
3051
3067
  "description": "描述布局",
3052
3068
  "type": "DirectionType"
3053
3069
  },
3070
+ "k-descriptions/title": {
3071
+ "description": "描述列表的标题,显示在最顶部",
3072
+ "type": "string | undefined"
3073
+ },
3054
3074
  "k-descriptions/bordered": {
3055
3075
  "description": "是否展示边框",
3056
3076
  "type": "boolean | undefined",
@@ -3063,10 +3083,6 @@
3063
3083
  "description": "设置列表大小",
3064
3084
  "type": "SizeType | undefined"
3065
3085
  },
3066
- "k-descriptions/title": {
3067
- "description": "描述列表的标题,显示在最顶部",
3068
- "type": "string | undefined"
3069
- },
3070
3086
  "k-descriptions/extra": {
3071
3087
  "description": "描述列表的操作区域,显示在右上方",
3072
3088
  "type": "string | undefined"
@@ -3091,6 +3107,18 @@
3091
3107
  "description": "抽屉显示方向,提供 `left`、`top`、`right`、`bottom` 4种展示方式",
3092
3108
  "type": "DrawerPlacementsType"
3093
3109
  },
3110
+ "drawer/footer": {
3111
+ "description": "是否显示页脚,也可通过同名插槽自定义页脚内容",
3112
+ "type": "boolean",
3113
+ "options": [
3114
+ "true",
3115
+ "false"
3116
+ ]
3117
+ },
3118
+ "drawer/title": {
3119
+ "description": "抽屉标题",
3120
+ "type": "string"
3121
+ },
3094
3122
  "drawer/closable": {
3095
3123
  "description": "是否显示关闭按钮",
3096
3124
  "type": "boolean",
@@ -3115,10 +3143,6 @@
3115
3143
  "false"
3116
3144
  ]
3117
3145
  },
3118
- "drawer/title": {
3119
- "description": "抽屉标题",
3120
- "type": "string"
3121
- },
3122
3146
  "drawer/height": {
3123
3147
  "description": "抽屉高度 `placement`为 `top` 或 `bottom` 时使用,支持百分比",
3124
3148
  "type": "string | number"
@@ -3127,14 +3151,6 @@
3127
3151
  "description": "抽屉宽度 `placement`为 `left` 或 `right` 时使用,支持百分比",
3128
3152
  "type": "string | number"
3129
3153
  },
3130
- "drawer/footer": {
3131
- "description": "是否显示页脚,也可通过同名插槽自定义页脚内容",
3132
- "type": "boolean",
3133
- "options": [
3134
- "true",
3135
- "false"
3136
- ]
3137
- },
3138
3154
  "drawer/maskClosable": {
3139
3155
  "description": "点击蒙层是否允许关闭",
3140
3156
  "type": "boolean",
@@ -3181,24 +3197,36 @@
3181
3197
  },
3182
3198
  "drawer/openChange": {
3183
3199
  "description": "打开或抽屉关闭的回调",
3184
- "type": "(...args: unknown[]) => void"
3200
+ "type": "(visible: boolean) => void"
3185
3201
  },
3186
3202
  "drawer/ok": {
3187
3203
  "description": "点击确定的回调",
3188
- "type": "(...args: unknown[]) => void"
3204
+ "type": "() => void"
3189
3205
  },
3190
3206
  "drawer/cancel": {
3191
3207
  "description": "点击取消的回调",
3192
- "type": "(...args: unknown[]) => void"
3208
+ "type": "() => void"
3193
3209
  },
3194
3210
  "drawer/close": {
3195
3211
  "description": "抽屉关闭的回调",
3196
- "type": "(...args: unknown[]) => void"
3212
+ "type": "() => void"
3197
3213
  },
3198
3214
  "k-drawer/placement": {
3199
3215
  "description": "抽屉显示方向,提供 `left`、`top`、`right`、`bottom` 4种展示方式",
3200
3216
  "type": "DrawerPlacementsType"
3201
3217
  },
3218
+ "k-drawer/footer": {
3219
+ "description": "是否显示页脚,也可通过同名插槽自定义页脚内容",
3220
+ "type": "boolean",
3221
+ "options": [
3222
+ "true",
3223
+ "false"
3224
+ ]
3225
+ },
3226
+ "k-drawer/title": {
3227
+ "description": "抽屉标题",
3228
+ "type": "string"
3229
+ },
3202
3230
  "k-drawer/closable": {
3203
3231
  "description": "是否显示关闭按钮",
3204
3232
  "type": "boolean",
@@ -3223,10 +3251,6 @@
3223
3251
  "false"
3224
3252
  ]
3225
3253
  },
3226
- "k-drawer/title": {
3227
- "description": "抽屉标题",
3228
- "type": "string"
3229
- },
3230
3254
  "k-drawer/height": {
3231
3255
  "description": "抽屉高度 `placement`为 `top` 或 `bottom` 时使用,支持百分比",
3232
3256
  "type": "string | number"
@@ -3235,14 +3259,6 @@
3235
3259
  "description": "抽屉宽度 `placement`为 `left` 或 `right` 时使用,支持百分比",
3236
3260
  "type": "string | number"
3237
3261
  },
3238
- "k-drawer/footer": {
3239
- "description": "是否显示页脚,也可通过同名插槽自定义页脚内容",
3240
- "type": "boolean",
3241
- "options": [
3242
- "true",
3243
- "false"
3244
- ]
3245
- },
3246
3262
  "k-drawer/maskClosable": {
3247
3263
  "description": "点击蒙层是否允许关闭",
3248
3264
  "type": "boolean",
@@ -3289,19 +3305,19 @@
3289
3305
  },
3290
3306
  "k-drawer/openChange": {
3291
3307
  "description": "打开或抽屉关闭的回调",
3292
- "type": "(...args: unknown[]) => void"
3308
+ "type": "(visible: boolean) => void"
3293
3309
  },
3294
3310
  "k-drawer/ok": {
3295
3311
  "description": "点击确定的回调",
3296
- "type": "(...args: unknown[]) => void"
3312
+ "type": "() => void"
3297
3313
  },
3298
3314
  "k-drawer/cancel": {
3299
3315
  "description": "点击取消的回调",
3300
- "type": "(...args: unknown[]) => void"
3316
+ "type": "() => void"
3301
3317
  },
3302
3318
  "k-drawer/close": {
3303
3319
  "description": "抽屉关闭的回调",
3304
- "type": "(...args: unknown[]) => void"
3320
+ "type": "() => void"
3305
3321
  },
3306
3322
  "dropdown/placement": {
3307
3323
  "description": "下拉层位置",
@@ -3312,7 +3328,7 @@
3312
3328
  "type": "TriggerType"
3313
3329
  },
3314
3330
  "dropdown/arrow": {
3315
- "description": "是否显示下拉箭头",
3331
+ "description": "是否显示箭头",
3316
3332
  "type": "boolean",
3317
3333
  "options": [
3318
3334
  "true",
@@ -3324,7 +3340,7 @@
3324
3340
  "type": "Ref<HTMLElement | ComponentPublicInstance | null, HTMLElement | ComponentPublicInstance | null> | undefined"
3325
3341
  },
3326
3342
  "dropdown/disabled": {
3327
- "description": "是否禁用",
3343
+ "description": "是否禁用触发",
3328
3344
  "type": "boolean | undefined",
3329
3345
  "options": [
3330
3346
  "true",
@@ -3341,7 +3357,7 @@
3341
3357
  },
3342
3358
  "dropdown/openChange": {
3343
3359
  "description": "打开或关闭时触发",
3344
- "type": "(...args: unknown[]) => void"
3360
+ "type": "(open: boolean) => void"
3345
3361
  },
3346
3362
  "k-dropdown/placement": {
3347
3363
  "description": "下拉层位置",
@@ -3352,7 +3368,7 @@
3352
3368
  "type": "TriggerType"
3353
3369
  },
3354
3370
  "k-dropdown/arrow": {
3355
- "description": "是否显示下拉箭头",
3371
+ "description": "是否显示箭头",
3356
3372
  "type": "boolean",
3357
3373
  "options": [
3358
3374
  "true",
@@ -3364,7 +3380,7 @@
3364
3380
  "type": "Ref<HTMLElement | ComponentPublicInstance | null, HTMLElement | ComponentPublicInstance | null> | undefined"
3365
3381
  },
3366
3382
  "k-dropdown/disabled": {
3367
- "description": "是否禁用",
3383
+ "description": "是否禁用触发",
3368
3384
  "type": "boolean | undefined",
3369
3385
  "options": [
3370
3386
  "true",
@@ -3381,7 +3397,7 @@
3381
3397
  },
3382
3398
  "k-dropdown/openChange": {
3383
3399
  "description": "打开或关闭时触发",
3384
- "type": "(...args: unknown[]) => void"
3400
+ "type": "(open: boolean) => void"
3385
3401
  },
3386
3402
  "dropdown-button/placement": {
3387
3403
  "description": "下拉层位置",
@@ -3421,7 +3437,7 @@
3421
3437
  },
3422
3438
  "dropdown-button/click": {
3423
3439
  "description": "点击主按钮时触发",
3424
- "type": "(...args: unknown[]) => void"
3440
+ "type": "(event: MouseEvent) => void"
3425
3441
  },
3426
3442
  "k-dropdown-button/placement": {
3427
3443
  "description": "下拉层位置",
@@ -3461,7 +3477,7 @@
3461
3477
  },
3462
3478
  "k-dropdown-button/click": {
3463
3479
  "description": "点击主按钮时触发",
3464
- "type": "(...args: unknown[]) => void"
3480
+ "type": "(event: MouseEvent) => void"
3465
3481
  },
3466
3482
  "divider/type": {
3467
3483
  "description": "水平还是垂直类型: horizontal vertical",
@@ -3532,13 +3548,17 @@
3532
3548
  "type": "DirectionType"
3533
3549
  },
3534
3550
  "form/colon": {
3535
- "description": "是否在标签后显示冒号;未设置时继承 Form 的配置",
3551
+ "description": "是否在标签后显示冒号",
3536
3552
  "type": "boolean",
3537
3553
  "options": [
3538
3554
  "true",
3539
3555
  "false"
3540
3556
  ]
3541
3557
  },
3558
+ "form/name": {
3559
+ "description": "表单名称,会作为表单字段 id 前缀使用",
3560
+ "type": "string | undefined"
3561
+ },
3542
3562
  "form/disabled": {
3543
3563
  "description": "是否禁用表单",
3544
3564
  "type": "boolean | undefined",
@@ -3567,10 +3587,6 @@
3567
3587
  "description": "子组件的尺寸",
3568
3588
  "type": "SizeType | undefined"
3569
3589
  },
3570
- "form/name": {
3571
- "description": "表单名称,会作为表单字段 id 前缀使用",
3572
- "type": "string | undefined"
3573
- },
3574
3590
  "form/model": {
3575
3591
  "description": "表单数据对象",
3576
3592
  "type": "Record<string, unknown> | undefined"
@@ -3589,28 +3605,32 @@
3589
3605
  },
3590
3606
  "form/change": {
3591
3607
  "description": "表单字段值变化时触发,返回当前表单数据",
3592
- "type": "(...args: unknown[]) => void"
3608
+ "type": "(model: Record<string, unknown>) => void"
3593
3609
  },
3594
3610
  "form/reset": {
3595
3611
  "description": "对整个表单进行重置,将所有字段值重置为空并移除校验结果",
3596
- "type": "(...args: unknown[]) => void"
3612
+ "type": "() => void"
3597
3613
  },
3598
3614
  "form/submit": {
3599
3615
  "description": "提交表单,并验证",
3600
- "type": "(...args: unknown[]) => void"
3616
+ "type": "(result: FormSubmitEvent) => void"
3601
3617
  },
3602
3618
  "k-form/layout": {
3603
3619
  "description": "表单布局",
3604
3620
  "type": "DirectionType"
3605
3621
  },
3606
3622
  "k-form/colon": {
3607
- "description": "是否在标签后显示冒号;未设置时继承 Form 的配置",
3623
+ "description": "是否在标签后显示冒号",
3608
3624
  "type": "boolean",
3609
3625
  "options": [
3610
3626
  "true",
3611
3627
  "false"
3612
3628
  ]
3613
3629
  },
3630
+ "k-form/name": {
3631
+ "description": "表单名称,会作为表单字段 id 前缀使用",
3632
+ "type": "string | undefined"
3633
+ },
3614
3634
  "k-form/disabled": {
3615
3635
  "description": "是否禁用表单",
3616
3636
  "type": "boolean | undefined",
@@ -3639,10 +3659,6 @@
3639
3659
  "description": "子组件的尺寸",
3640
3660
  "type": "SizeType | undefined"
3641
3661
  },
3642
- "k-form/name": {
3643
- "description": "表单名称,会作为表单字段 id 前缀使用",
3644
- "type": "string | undefined"
3645
- },
3646
3662
  "k-form/model": {
3647
3663
  "description": "表单数据对象",
3648
3664
  "type": "Record<string, unknown> | undefined"
@@ -3661,15 +3677,15 @@
3661
3677
  },
3662
3678
  "k-form/change": {
3663
3679
  "description": "表单字段值变化时触发,返回当前表单数据",
3664
- "type": "(...args: unknown[]) => void"
3680
+ "type": "(model: Record<string, unknown>) => void"
3665
3681
  },
3666
3682
  "k-form/reset": {
3667
3683
  "description": "对整个表单进行重置,将所有字段值重置为空并移除校验结果",
3668
- "type": "(...args: unknown[]) => void"
3684
+ "type": "() => void"
3669
3685
  },
3670
3686
  "k-form/submit": {
3671
3687
  "description": "提交表单,并验证",
3672
- "type": "(...args: unknown[]) => void"
3688
+ "type": "(result: FormSubmitEvent) => void"
3673
3689
  },
3674
3690
  "form-item/label": {
3675
3691
  "description": "标签文本",
@@ -3805,15 +3821,15 @@
3805
3821
  },
3806
3822
  "grid/flow": {
3807
3823
  "description": "CSS Grid 自动放置方向",
3808
- "type": "GridAutoFlow | undefined"
3824
+ "type": "Property.GridAutoFlow | undefined"
3809
3825
  },
3810
3826
  "grid/align": {
3811
3827
  "description": "子项在网格单元格内的垂直对齐方式",
3812
- "type": "AlignItems | undefined"
3828
+ "type": "Property.AlignItems | undefined"
3813
3829
  },
3814
3830
  "grid/justify": {
3815
3831
  "description": "子项在网格单元格内的水平对齐方式",
3816
- "type": "JustifyItems | undefined"
3832
+ "type": "Property.JustifyItems | undefined"
3817
3833
  },
3818
3834
  "grid/itemMinWidth": {
3819
3835
  "description": "自动填充模式。设置子项最小宽度,Grid 将根据容器宽度自动计算列数。",
@@ -3849,15 +3865,15 @@
3849
3865
  },
3850
3866
  "k-grid/flow": {
3851
3867
  "description": "CSS Grid 自动放置方向",
3852
- "type": "GridAutoFlow | undefined"
3868
+ "type": "Property.GridAutoFlow | undefined"
3853
3869
  },
3854
3870
  "k-grid/align": {
3855
3871
  "description": "子项在网格单元格内的垂直对齐方式",
3856
- "type": "AlignItems | undefined"
3872
+ "type": "Property.AlignItems | undefined"
3857
3873
  },
3858
3874
  "k-grid/justify": {
3859
3875
  "description": "子项在网格单元格内的水平对齐方式",
3860
- "type": "JustifyItems | undefined"
3876
+ "type": "Property.JustifyItems | undefined"
3861
3877
  },
3862
3878
  "k-grid/itemMinWidth": {
3863
3879
  "description": "自动填充模式。设置子项最小宽度,Grid 将根据容器宽度自动计算列数。",
@@ -3931,6 +3947,10 @@
3931
3947
  "description": "Preview 内容类型",
3932
3948
  "type": "ImageType | undefined"
3933
3949
  },
3950
+ "Image/data": {
3951
+ "description": "图片数据",
3952
+ "type": "string[] | undefined"
3953
+ },
3934
3954
  "Image/placeholder": {
3935
3955
  "description": "图片加载失败时展示的占位符",
3936
3956
  "type": "string | undefined"
@@ -3955,10 +3975,6 @@
3955
3975
  "description": "点击图片展示的大图",
3956
3976
  "type": "string | undefined"
3957
3977
  },
3958
- "Image/data": {
3959
- "description": "图片数据",
3960
- "type": "string[] | undefined"
3961
- },
3962
3978
  "Image/imgStyle": {
3963
3979
  "description": "图片的 style",
3964
3980
  "type": "CSSProperties | undefined"
@@ -3973,11 +3989,11 @@
3973
3989
  },
3974
3990
  "Image/close": {
3975
3991
  "description": "关闭触发事件",
3976
- "type": "(...args: unknown[]) => void"
3992
+ "type": "() => void"
3977
3993
  },
3978
3994
  "Image/switch": {
3979
3995
  "description": "多图切换触发事件",
3980
- "type": "(...args: unknown[]) => void"
3996
+ "type": "(index: number) => void"
3981
3997
  },
3982
3998
  "image-group/data": {
3983
3999
  "description": "图片数据",
@@ -3995,6 +4011,10 @@
3995
4011
  "description": "图标类型。遵循图标的命名规范",
3996
4012
  "type": "IconType[] | undefined"
3997
4013
  },
4014
+ "icon/keydown": {
4015
+ "description": "键盘按下时触发",
4016
+ "type": "((event: KeyboardEvent) => void) | undefined"
4017
+ },
3998
4018
  "icon/size": {
3999
4019
  "description": "图标的大小,单位是 px",
4000
4020
  "type": "string | number | undefined"
@@ -4003,10 +4023,6 @@
4003
4023
  "description": "图标的颜色",
4004
4024
  "type": "string | undefined"
4005
4025
  },
4006
- "icon/keydown": {
4007
- "description": "键盘按下时触发",
4008
- "type": "((event: KeyboardEvent) => void) | undefined"
4009
- },
4010
4026
  "icon/pointerdown": {
4011
4027
  "description": "指针按下时触发",
4012
4028
  "type": "((event: PointerEvent) => void) | undefined"
@@ -4045,7 +4061,7 @@
4045
4061
  },
4046
4062
  "icon/click": {
4047
4063
  "description": "点击事件",
4048
- "type": "(...args: unknown[]) => void"
4064
+ "type": "(event: MouseEvent) => void"
4049
4065
  },
4050
4066
  "k-icon/strokeWidth": {
4051
4067
  "description": "图标的线条粗细",
@@ -4055,6 +4071,10 @@
4055
4071
  "description": "图标类型。遵循图标的命名规范",
4056
4072
  "type": "IconType[] | undefined"
4057
4073
  },
4074
+ "k-icon/keydown": {
4075
+ "description": "键盘按下时触发",
4076
+ "type": "((event: KeyboardEvent) => void) | undefined"
4077
+ },
4058
4078
  "k-icon/size": {
4059
4079
  "description": "图标的大小,单位是 px",
4060
4080
  "type": "string | number | undefined"
@@ -4063,10 +4083,6 @@
4063
4083
  "description": "图标的颜色",
4064
4084
  "type": "string | undefined"
4065
4085
  },
4066
- "k-icon/keydown": {
4067
- "description": "键盘按下时触发",
4068
- "type": "((event: KeyboardEvent) => void) | undefined"
4069
- },
4070
4086
  "k-icon/pointerdown": {
4071
4087
  "description": "指针按下时触发",
4072
4088
  "type": "((event: PointerEvent) => void) | undefined"
@@ -4105,14 +4121,14 @@
4105
4121
  },
4106
4122
  "k-icon/click": {
4107
4123
  "description": "点击事件",
4108
- "type": "(...args: unknown[]) => void"
4124
+ "type": "(event: MouseEvent) => void"
4109
4125
  },
4110
4126
  "input/type": {
4111
4127
  "description": "原生输入类型",
4112
4128
  "type": "InputTypeHTMLAttribute | undefined"
4113
4129
  },
4114
4130
  "input/theme": {
4115
- "description": "文本域主题",
4131
+ "description": "主题",
4116
4132
  "type": "ThemeType | undefined"
4117
4133
  },
4118
4134
  "input/clearable": {
@@ -4131,12 +4147,8 @@
4131
4147
  "false"
4132
4148
  ]
4133
4149
  },
4134
- "input/inputType": {
4135
- "description": "内部输入元素类型,通常保持为 input",
4136
- "type": "string | undefined"
4137
- },
4138
4150
  "input/disabled": {
4139
- "description": "是否禁用文本域",
4151
+ "description": "是否禁用输入框",
4140
4152
  "type": "boolean | undefined",
4141
4153
  "options": [
4142
4154
  "true",
@@ -4148,7 +4160,7 @@
4148
4160
  "type": "IconType[] | undefined"
4149
4161
  },
4150
4162
  "input/shape": {
4151
- "description": "文本域形状",
4163
+ "description": "输入框形状",
4152
4164
  "type": "ShapeType | undefined"
4153
4165
  },
4154
4166
  "input/modelValue": {
@@ -4156,11 +4168,11 @@
4156
4168
  "type": "unknown"
4157
4169
  },
4158
4170
  "input/value": {
4159
- "description": "非受控文本域的初始值",
4171
+ "description": "非受控输入框的初始值",
4160
4172
  "type": "any"
4161
4173
  },
4162
4174
  "input/readonly": {
4163
- "description": "是否只读",
4175
+ "description": "是否只读,可聚焦和复制但不可修改",
4164
4176
  "type": "boolean | undefined",
4165
4177
  "options": [
4166
4178
  "true",
@@ -4192,7 +4204,7 @@
4192
4204
  "type": "((value: string) => void) | undefined"
4193
4205
  },
4194
4206
  "input/change": {
4195
- "description": "内容变化时触发",
4207
+ "description": "输入框内容变化时的回调",
4196
4208
  "type": "((value: string) => void) | undefined"
4197
4209
  },
4198
4210
  "input/search": {
@@ -4220,7 +4232,7 @@
4220
4232
  "type": "InputTypeHTMLAttribute | undefined"
4221
4233
  },
4222
4234
  "k-input/theme": {
4223
- "description": "文本域主题",
4235
+ "description": "主题",
4224
4236
  "type": "ThemeType | undefined"
4225
4237
  },
4226
4238
  "k-input/clearable": {
@@ -4239,12 +4251,8 @@
4239
4251
  "false"
4240
4252
  ]
4241
4253
  },
4242
- "k-input/inputType": {
4243
- "description": "内部输入元素类型,通常保持为 input",
4244
- "type": "string | undefined"
4245
- },
4246
4254
  "k-input/disabled": {
4247
- "description": "是否禁用文本域",
4255
+ "description": "是否禁用输入框",
4248
4256
  "type": "boolean | undefined",
4249
4257
  "options": [
4250
4258
  "true",
@@ -4256,7 +4264,7 @@
4256
4264
  "type": "IconType[] | undefined"
4257
4265
  },
4258
4266
  "k-input/shape": {
4259
- "description": "文本域形状",
4267
+ "description": "输入框形状",
4260
4268
  "type": "ShapeType | undefined"
4261
4269
  },
4262
4270
  "k-input/modelValue": {
@@ -4264,11 +4272,11 @@
4264
4272
  "type": "unknown"
4265
4273
  },
4266
4274
  "k-input/value": {
4267
- "description": "非受控文本域的初始值",
4275
+ "description": "非受控输入框的初始值",
4268
4276
  "type": "any"
4269
4277
  },
4270
4278
  "k-input/readonly": {
4271
- "description": "是否只读",
4279
+ "description": "是否只读,可聚焦和复制但不可修改",
4272
4280
  "type": "boolean | undefined",
4273
4281
  "options": [
4274
4282
  "true",
@@ -4300,7 +4308,7 @@
4300
4308
  "type": "((value: string) => void) | undefined"
4301
4309
  },
4302
4310
  "k-input/change": {
4303
- "description": "内容变化时触发",
4311
+ "description": "输入框内容变化时的回调",
4304
4312
  "type": "((value: string) => void) | undefined"
4305
4313
  },
4306
4314
  "k-input/search": {
@@ -4412,7 +4420,7 @@
4412
4420
  "type": "string | undefined"
4413
4421
  },
4414
4422
  "text-area/size": {
4415
- "description": "子组件的间距,可选值 `small`、`large`,默认不选",
4423
+ "description": "文本域尺寸",
4416
4424
  "type": "SizeType | undefined"
4417
4425
  },
4418
4426
  "text-area/update:modelValue": {
@@ -4468,7 +4476,7 @@
4468
4476
  "type": "string | undefined"
4469
4477
  },
4470
4478
  "k-text-area/size": {
4471
- "description": "子组件的间距,可选值 `small`、`large`,默认不选",
4479
+ "description": "文本域尺寸",
4472
4480
  "type": "SizeType | undefined"
4473
4481
  },
4474
4482
  "k-text-area/update:modelValue": {
@@ -4561,19 +4569,19 @@
4561
4569
  },
4562
4570
  "input-tag/change": {
4563
4571
  "description": "标签变化",
4564
- "type": "(...args: unknown[]) => void"
4572
+ "type": "(value: string[]) => void"
4565
4573
  },
4566
4574
  "input-tag/add": {
4567
4575
  "description": "新增标签",
4568
- "type": "(...args: unknown[]) => void"
4576
+ "type": "(value: string) => void"
4569
4577
  },
4570
4578
  "input-tag/remove": {
4571
4579
  "description": "删除标签",
4572
- "type": "(...args: unknown[]) => void"
4580
+ "type": "(value: string, index: number) => void"
4573
4581
  },
4574
4582
  "input-tag/clear": {
4575
4583
  "description": "清空标签",
4576
- "type": "(...args: unknown[]) => void"
4584
+ "type": "() => void"
4577
4585
  },
4578
4586
  "k-input-tag/disabled": {
4579
4587
  "description": "禁用",
@@ -4653,24 +4661,28 @@
4653
4661
  },
4654
4662
  "k-input-tag/change": {
4655
4663
  "description": "标签变化",
4656
- "type": "(...args: unknown[]) => void"
4664
+ "type": "(value: string[]) => void"
4657
4665
  },
4658
4666
  "k-input-tag/add": {
4659
4667
  "description": "新增标签",
4660
- "type": "(...args: unknown[]) => void"
4668
+ "type": "(value: string) => void"
4661
4669
  },
4662
4670
  "k-input-tag/remove": {
4663
4671
  "description": "删除标签",
4664
- "type": "(...args: unknown[]) => void"
4672
+ "type": "(value: string, index: number) => void"
4665
4673
  },
4666
4674
  "k-input-tag/clear": {
4667
4675
  "description": "清空标签",
4668
- "type": "(...args: unknown[]) => void"
4676
+ "type": "() => void"
4669
4677
  },
4670
4678
  "input-otp/type": {
4671
4679
  "description": "允许输入的字符类型",
4672
4680
  "type": "\"number\" | \"text\""
4673
4681
  },
4682
+ "input-otp/length": {
4683
+ "description": "验证码位数,按非负整数处理",
4684
+ "type": "number"
4685
+ },
4674
4686
  "input-otp/theme": {
4675
4687
  "description": "主题",
4676
4688
  "type": "ThemeType"
@@ -4679,10 +4691,6 @@
4679
4691
  "description": "初始值,仅初始化时读取;后续更新使用 modelValue,同时传入时 modelValue 优先。",
4680
4692
  "type": "string | number"
4681
4693
  },
4682
- "input-otp/length": {
4683
- "description": "验证码位数,按非负整数处理",
4684
- "type": "number"
4685
- },
4686
4694
  "input-otp/disabled": {
4687
4695
  "description": "是否禁用",
4688
4696
  "type": "boolean | undefined",
@@ -4737,24 +4745,28 @@
4737
4745
  },
4738
4746
  "input-otp/change": {
4739
4747
  "description": "输入值变化时触发",
4740
- "type": "(...args: unknown[]) => void"
4748
+ "type": "(value: string) => void"
4741
4749
  },
4742
4750
  "input-otp/complete": {
4743
4751
  "description": "输入达到指定长度时触发",
4744
- "type": "(...args: unknown[]) => void"
4752
+ "type": "(value: string) => void"
4745
4753
  },
4746
4754
  "input-otp/focus": {
4747
4755
  "description": "输入框获得焦点时触发",
4748
- "type": "(...args: unknown[]) => void"
4756
+ "type": "(event: FocusEvent) => void"
4749
4757
  },
4750
4758
  "input-otp/blur": {
4751
4759
  "description": "输入框失去焦点时触发",
4752
- "type": "(...args: unknown[]) => void"
4760
+ "type": "(event: FocusEvent) => void"
4753
4761
  },
4754
4762
  "k-input-otp/type": {
4755
4763
  "description": "允许输入的字符类型",
4756
4764
  "type": "\"number\" | \"text\""
4757
4765
  },
4766
+ "k-input-otp/length": {
4767
+ "description": "验证码位数,按非负整数处理",
4768
+ "type": "number"
4769
+ },
4758
4770
  "k-input-otp/theme": {
4759
4771
  "description": "主题",
4760
4772
  "type": "ThemeType"
@@ -4763,10 +4775,6 @@
4763
4775
  "description": "初始值,仅初始化时读取;后续更新使用 modelValue,同时传入时 modelValue 优先。",
4764
4776
  "type": "string | number"
4765
4777
  },
4766
- "k-input-otp/length": {
4767
- "description": "验证码位数,按非负整数处理",
4768
- "type": "number"
4769
- },
4770
4778
  "k-input-otp/disabled": {
4771
4779
  "description": "是否禁用",
4772
4780
  "type": "boolean | undefined",
@@ -4821,19 +4829,19 @@
4821
4829
  },
4822
4830
  "k-input-otp/change": {
4823
4831
  "description": "输入值变化时触发",
4824
- "type": "(...args: unknown[]) => void"
4832
+ "type": "(value: string) => void"
4825
4833
  },
4826
4834
  "k-input-otp/complete": {
4827
4835
  "description": "输入达到指定长度时触发",
4828
- "type": "(...args: unknown[]) => void"
4836
+ "type": "(value: string) => void"
4829
4837
  },
4830
4838
  "k-input-otp/focus": {
4831
4839
  "description": "输入框获得焦点时触发",
4832
- "type": "(...args: unknown[]) => void"
4840
+ "type": "(event: FocusEvent) => void"
4833
4841
  },
4834
4842
  "k-input-otp/blur": {
4835
4843
  "description": "输入框失去焦点时触发",
4836
- "type": "(...args: unknown[]) => void"
4844
+ "type": "(event: FocusEvent) => void"
4837
4845
  },
4838
4846
  "input-number/theme": {
4839
4847
  "description": "组件呈现主题",
@@ -4929,15 +4937,15 @@
4929
4937
  },
4930
4938
  "input-number/change": {
4931
4939
  "description": "变化回调,清空时返回 `undefined`",
4932
- "type": "(...args: unknown[]) => void"
4940
+ "type": "(value: number | undefined) => void"
4933
4941
  },
4934
4942
  "input-number/blur": {
4935
4943
  "description": "输入框失焦时触发",
4936
- "type": "(...args: unknown[]) => void"
4944
+ "type": "(event: FocusEvent) => void"
4937
4945
  },
4938
4946
  "input-number/keydown": {
4939
4947
  "description": "输入框按键时触发",
4940
- "type": "(...args: unknown[]) => void"
4948
+ "type": "(event: KeyboardEvent) => void"
4941
4949
  },
4942
4950
  "k-input-number/theme": {
4943
4951
  "description": "组件呈现主题",
@@ -5033,15 +5041,15 @@
5033
5041
  },
5034
5042
  "k-input-number/change": {
5035
5043
  "description": "变化回调,清空时返回 `undefined`",
5036
- "type": "(...args: unknown[]) => void"
5044
+ "type": "(value: number | undefined) => void"
5037
5045
  },
5038
5046
  "k-input-number/blur": {
5039
5047
  "description": "输入框失焦时触发",
5040
- "type": "(...args: unknown[]) => void"
5048
+ "type": "(event: FocusEvent) => void"
5041
5049
  },
5042
5050
  "k-input-number/keydown": {
5043
5051
  "description": "输入框按键时触发",
5044
- "type": "(...args: unknown[]) => void"
5052
+ "type": "(event: KeyboardEvent) => void"
5045
5053
  },
5046
5054
  "layout/suffixCls": {
5047
5055
  "description": "样式类名后缀,自动添加 `k-` 前缀;自定义值需提供配套样式。",
@@ -5123,6 +5131,10 @@
5123
5131
  "false"
5124
5132
  ]
5125
5133
  },
5134
+ "menu/mode": {
5135
+ "description": "菜单类型",
5136
+ "type": "DirectionType"
5137
+ },
5126
5138
  "menu/value": {
5127
5139
  "description": "初始值,仅初始化时读取;后续更新使用 modelValue,同时传入时 modelValue 优先。",
5128
5140
  "type": "string[]"
@@ -5131,10 +5143,6 @@
5131
5143
  "description": "当前展开的 SubMenu 菜单项 key 数组",
5132
5144
  "type": "string[]"
5133
5145
  },
5134
- "menu/mode": {
5135
- "description": "菜单类型",
5136
- "type": "DirectionType"
5137
- },
5138
5146
  "menu/collapsedTooltip": {
5139
5147
  "description": "收起时是否显示无子菜单项的文字提示",
5140
5148
  "type": "boolean",
@@ -5173,11 +5181,15 @@
5173
5181
  },
5174
5182
  "menu/select": {
5175
5183
  "description": "点击 MenuItem 调用此函数",
5176
- "type": "(...args: unknown[]) => void"
5184
+ "type": "(event: MenuSelectEvent) => void"
5177
5185
  },
5178
5186
  "menu/openChange": {
5179
5187
  "description": "SubMenu 展开/关闭的回调",
5180
- "type": "(...args: unknown[]) => void"
5188
+ "type": "(keys: string[]) => void"
5189
+ },
5190
+ "k-menu/mode": {
5191
+ "description": "菜单类型",
5192
+ "type": "DirectionType"
5181
5193
  },
5182
5194
  "k-menu/value": {
5183
5195
  "description": "初始值,仅初始化时读取;后续更新使用 modelValue,同时传入时 modelValue 优先。",
@@ -5187,10 +5199,6 @@
5187
5199
  "description": "当前展开的 SubMenu 菜单项 key 数组",
5188
5200
  "type": "string[]"
5189
5201
  },
5190
- "k-menu/mode": {
5191
- "description": "菜单类型",
5192
- "type": "DirectionType"
5193
- },
5194
5202
  "k-menu/collapsedTooltip": {
5195
5203
  "description": "收起时是否显示无子菜单项的文字提示",
5196
5204
  "type": "boolean",
@@ -5229,11 +5237,11 @@
5229
5237
  },
5230
5238
  "k-menu/select": {
5231
5239
  "description": "点击 MenuItem 调用此函数",
5232
- "type": "(...args: unknown[]) => void"
5240
+ "type": "(event: MenuSelectEvent) => void"
5233
5241
  },
5234
5242
  "k-menu/openChange": {
5235
5243
  "description": "SubMenu 展开/关闭的回调",
5236
- "type": "(...args: unknown[]) => void"
5244
+ "type": "(keys: string[]) => void"
5237
5245
  },
5238
5246
  "menu-group/title": {
5239
5247
  "description": "分组标题",
@@ -5251,17 +5259,17 @@
5251
5259
  "false"
5252
5260
  ]
5253
5261
  },
5254
- "menu-item/icon": {
5255
- "description": "item 的图标",
5256
- "type": "IconType[] | undefined"
5257
- },
5258
5262
  "menu-item/title": {
5259
5263
  "description": "分组标题",
5260
5264
  "type": "VNodeChild"
5261
5265
  },
5266
+ "menu-item/icon": {
5267
+ "description": "item 的图标",
5268
+ "type": "IconType[] | undefined"
5269
+ },
5262
5270
  "menu-item/click": {
5263
5271
  "description": "点击菜单项时触发的回调",
5264
- "type": "(...args: unknown[]) => void"
5272
+ "type": "(event: MouseEvent) => void"
5265
5273
  },
5266
5274
  "k-menu-item/disabled": {
5267
5275
  "description": "是否禁用",
@@ -5271,17 +5279,17 @@
5271
5279
  "false"
5272
5280
  ]
5273
5281
  },
5274
- "k-menu-item/icon": {
5275
- "description": "item 的图标",
5276
- "type": "IconType[] | undefined"
5277
- },
5278
5282
  "k-menu-item/title": {
5279
5283
  "description": "分组标题",
5280
5284
  "type": "VNodeChild"
5281
5285
  },
5286
+ "k-menu-item/icon": {
5287
+ "description": "item 的图标",
5288
+ "type": "IconType[] | undefined"
5289
+ },
5282
5290
  "k-menu-item/click": {
5283
5291
  "description": "点击菜单项时触发的回调",
5284
- "type": "(...args: unknown[]) => void"
5292
+ "type": "(event: MouseEvent) => void"
5285
5293
  },
5286
5294
  "sub-menu/disabled": {
5287
5295
  "description": "是否禁用",
@@ -5291,14 +5299,14 @@
5291
5299
  "false"
5292
5300
  ]
5293
5301
  },
5294
- "sub-menu/icon": {
5295
- "description": "item 的图标",
5296
- "type": "IconType[] | undefined"
5297
- },
5298
5302
  "sub-menu/title": {
5299
5303
  "description": "分组标题",
5300
5304
  "type": "VNodeChild"
5301
5305
  },
5306
+ "sub-menu/icon": {
5307
+ "description": "item 的图标",
5308
+ "type": "IconType[] | undefined"
5309
+ },
5302
5310
  "k-sub-menu/disabled": {
5303
5311
  "description": "是否禁用",
5304
5312
  "type": "boolean | undefined",
@@ -5307,14 +5315,14 @@
5307
5315
  "false"
5308
5316
  ]
5309
5317
  },
5310
- "k-sub-menu/icon": {
5311
- "description": "item 的图标",
5312
- "type": "IconType[] | undefined"
5313
- },
5314
5318
  "k-sub-menu/title": {
5315
5319
  "description": "分组标题",
5316
5320
  "type": "VNodeChild"
5317
5321
  },
5322
+ "k-sub-menu/icon": {
5323
+ "description": "item 的图标",
5324
+ "type": "IconType[] | undefined"
5325
+ },
5318
5326
  "mentions/disabled": {
5319
5327
  "description": "是否禁用",
5320
5328
  "type": "boolean",
@@ -5401,19 +5409,19 @@
5401
5409
  },
5402
5410
  "mentions/change": {
5403
5411
  "description": "文本变化",
5404
- "type": "(...args: unknown[]) => void"
5412
+ "type": "(value: string) => void"
5405
5413
  },
5406
5414
  "mentions/select": {
5407
5415
  "description": "选择提及",
5408
- "type": "(...args: unknown[]) => void"
5416
+ "type": "(option: MentionOption, trigger: string) => void"
5409
5417
  },
5410
5418
  "mentions/search": {
5411
5419
  "description": "远程搜索,参数为查询文本和触发字符",
5412
- "type": "(...args: unknown[]) => void"
5420
+ "type": "(value: string, trigger: string) => void"
5413
5421
  },
5414
5422
  "mentions/clear": {
5415
5423
  "description": "清空文本",
5416
- "type": "(...args: unknown[]) => void"
5424
+ "type": "() => void"
5417
5425
  },
5418
5426
  "k-mentions/disabled": {
5419
5427
  "description": "是否禁用",
@@ -5501,28 +5509,24 @@
5501
5509
  },
5502
5510
  "k-mentions/change": {
5503
5511
  "description": "文本变化",
5504
- "type": "(...args: unknown[]) => void"
5512
+ "type": "(value: string) => void"
5505
5513
  },
5506
5514
  "k-mentions/select": {
5507
5515
  "description": "选择提及",
5508
- "type": "(...args: unknown[]) => void"
5516
+ "type": "(option: MentionOption, trigger: string) => void"
5509
5517
  },
5510
5518
  "k-mentions/search": {
5511
5519
  "description": "远程搜索,参数为查询文本和触发字符",
5512
- "type": "(...args: unknown[]) => void"
5520
+ "type": "(value: string, trigger: string) => void"
5513
5521
  },
5514
5522
  "k-mentions/clear": {
5515
5523
  "description": "清空文本",
5516
- "type": "(...args: unknown[]) => void"
5524
+ "type": "() => void"
5517
5525
  },
5518
5526
  "modal/top": {
5519
5527
  "description": "窗口距离顶部的距离",
5520
5528
  "type": "number"
5521
5529
  },
5522
- "modal/width": {
5523
- "description": "对话框宽度",
5524
- "type": "string | number"
5525
- },
5526
5530
  "modal/footer": {
5527
5531
  "description": "当`footer=false`时不展示底部按钮",
5528
5532
  "type": "boolean",
@@ -5531,6 +5535,10 @@
5531
5535
  "false"
5532
5536
  ]
5533
5537
  },
5538
+ "modal/width": {
5539
+ "description": "对话框宽度",
5540
+ "type": "string | number"
5541
+ },
5534
5542
  "modal/maskClosable": {
5535
5543
  "description": "是否点击遮罩关闭弹窗, 为否时 Esc 键将失效",
5536
5544
  "type": "boolean",
@@ -5571,6 +5579,10 @@
5571
5579
  "false"
5572
5580
  ]
5573
5581
  },
5582
+ "modal/title": {
5583
+ "description": "对话框标题",
5584
+ "type": "string | undefined"
5585
+ },
5574
5586
  "modal/modelValue": {
5575
5587
  "description": "对话框是否显示,可使用 v-model 双向绑定数据。",
5576
5588
  "type": "boolean | undefined",
@@ -5595,10 +5607,6 @@
5595
5607
  "false"
5596
5608
  ]
5597
5609
  },
5598
- "modal/title": {
5599
- "description": "对话框标题",
5600
- "type": "string | undefined"
5601
- },
5602
5610
  "modal/draggable": {
5603
5611
  "description": "弹框是否可拖动, confirm 模式不可用",
5604
5612
  "type": "boolean | undefined",
@@ -5633,28 +5641,24 @@
5633
5641
  },
5634
5642
  "modal/openChange": {
5635
5643
  "description": "打开或者窗口关闭的回调",
5636
- "type": "(...args: unknown[]) => void"
5644
+ "type": "(visible: boolean) => void"
5637
5645
  },
5638
5646
  "modal/ok": {
5639
5647
  "description": "点击确定的回调",
5640
- "type": "(...args: unknown[]) => void"
5648
+ "type": "() => void"
5641
5649
  },
5642
5650
  "modal/cancel": {
5643
5651
  "description": "点击取消的回调",
5644
- "type": "(...args: unknown[]) => void"
5652
+ "type": "() => void"
5645
5653
  },
5646
5654
  "modal/close": {
5647
5655
  "description": "窗口关闭的回调",
5648
- "type": "(...args: unknown[]) => void"
5656
+ "type": "() => void"
5649
5657
  },
5650
5658
  "k-modal/top": {
5651
5659
  "description": "窗口距离顶部的距离",
5652
5660
  "type": "number"
5653
5661
  },
5654
- "k-modal/width": {
5655
- "description": "对话框宽度",
5656
- "type": "string | number"
5657
- },
5658
5662
  "k-modal/footer": {
5659
5663
  "description": "当`footer=false`时不展示底部按钮",
5660
5664
  "type": "boolean",
@@ -5663,6 +5667,10 @@
5663
5667
  "false"
5664
5668
  ]
5665
5669
  },
5670
+ "k-modal/width": {
5671
+ "description": "对话框宽度",
5672
+ "type": "string | number"
5673
+ },
5666
5674
  "k-modal/maskClosable": {
5667
5675
  "description": "是否点击遮罩关闭弹窗, 为否时 Esc 键将失效",
5668
5676
  "type": "boolean",
@@ -5703,6 +5711,10 @@
5703
5711
  "false"
5704
5712
  ]
5705
5713
  },
5714
+ "k-modal/title": {
5715
+ "description": "对话框标题",
5716
+ "type": "string | undefined"
5717
+ },
5706
5718
  "k-modal/modelValue": {
5707
5719
  "description": "对话框是否显示,可使用 v-model 双向绑定数据。",
5708
5720
  "type": "boolean | undefined",
@@ -5727,10 +5739,6 @@
5727
5739
  "false"
5728
5740
  ]
5729
5741
  },
5730
- "k-modal/title": {
5731
- "description": "对话框标题",
5732
- "type": "string | undefined"
5733
- },
5734
5742
  "k-modal/draggable": {
5735
5743
  "description": "弹框是否可拖动, confirm 模式不可用",
5736
5744
  "type": "boolean | undefined",
@@ -5765,19 +5773,19 @@
5765
5773
  },
5766
5774
  "k-modal/openChange": {
5767
5775
  "description": "打开或者窗口关闭的回调",
5768
- "type": "(...args: unknown[]) => void"
5776
+ "type": "(visible: boolean) => void"
5769
5777
  },
5770
5778
  "k-modal/ok": {
5771
5779
  "description": "点击确定的回调",
5772
- "type": "(...args: unknown[]) => void"
5780
+ "type": "() => void"
5773
5781
  },
5774
5782
  "k-modal/cancel": {
5775
5783
  "description": "点击取消的回调",
5776
- "type": "(...args: unknown[]) => void"
5784
+ "type": "() => void"
5777
5785
  },
5778
5786
  "k-modal/close": {
5779
5787
  "description": "窗口关闭的回调",
5780
- "type": "(...args: unknown[]) => void"
5788
+ "type": "() => void"
5781
5789
  },
5782
5790
  "page/theme": {
5783
5791
  "description": "主题",
@@ -5795,6 +5803,14 @@
5795
5803
  "false"
5796
5804
  ]
5797
5805
  },
5806
+ "page/responsive": {
5807
+ "description": "是否根据容器可用宽度自动调整分页布局",
5808
+ "type": "boolean",
5809
+ "options": [
5810
+ "true",
5811
+ "false"
5812
+ ]
5813
+ },
5798
5814
  "page/sizeData": {
5799
5815
  "description": "自定义页码组数据",
5800
5816
  "type": "number[]"
@@ -5849,7 +5865,7 @@
5849
5865
  },
5850
5866
  "page/change": {
5851
5867
  "description": "页码、每页条数改变时的回调",
5852
- "type": "(...args: unknown[]) => void"
5868
+ "type": "(page: number, pageSize: number) => void"
5853
5869
  },
5854
5870
  "k-page/theme": {
5855
5871
  "description": "主题",
@@ -5867,6 +5883,14 @@
5867
5883
  "false"
5868
5884
  ]
5869
5885
  },
5886
+ "k-page/responsive": {
5887
+ "description": "是否根据容器可用宽度自动调整分页布局",
5888
+ "type": "boolean",
5889
+ "options": [
5890
+ "true",
5891
+ "false"
5892
+ ]
5893
+ },
5870
5894
  "k-page/sizeData": {
5871
5895
  "description": "自定义页码组数据",
5872
5896
  "type": "number[]"
@@ -5921,17 +5945,13 @@
5921
5945
  },
5922
5946
  "k-page/change": {
5923
5947
  "description": "页码、每页条数改变时的回调",
5924
- "type": "(...args: unknown[]) => void"
5925
- },
5926
- "page-header/description": {
5927
- "description": "页面说明,也可通过同名插槽自定义",
5928
- "type": "string | undefined"
5948
+ "type": "(page: number, pageSize: number) => void"
5929
5949
  },
5930
5950
  "page-header/title": {
5931
5951
  "description": "页面标题,也可通过同名插槽自定义",
5932
5952
  "type": "string | undefined"
5933
5953
  },
5934
- "k-page-header/description": {
5954
+ "page-header/description": {
5935
5955
  "description": "页面说明,也可通过同名插槽自定义",
5936
5956
  "type": "string | undefined"
5937
5957
  },
@@ -5939,6 +5959,10 @@
5939
5959
  "description": "页面标题,也可通过同名插槽自定义",
5940
5960
  "type": "string | undefined"
5941
5961
  },
5962
+ "k-page-header/description": {
5963
+ "description": "页面说明,也可通过同名插槽自定义",
5964
+ "type": "string | undefined"
5965
+ },
5942
5966
  "poptip/placement": {
5943
5967
  "description": "提示框出现的位置,可选值为`top`、`top-left`、`top-right`、`bottom`、`bottom-left`、`bottom-right`、`left`、`left-top`、`left-bottom`、`right`、`right-top`、`right-bottom`",
5944
5968
  "type": "PlacementsType"
@@ -5985,7 +6009,7 @@
5985
6009
  },
5986
6010
  "poptip/close": {
5987
6011
  "description": "关闭时的回调",
5988
- "type": "(...args: unknown[]) => void"
6012
+ "type": "() => void"
5989
6013
  },
5990
6014
  "k-poptip/placement": {
5991
6015
  "description": "提示框出现的位置,可选值为`top`、`top-left`、`top-right`、`bottom`、`bottom-left`、`bottom-right`、`left`、`left-top`、`left-bottom`、`right`、`right-top`、`right-bottom`",
@@ -6033,7 +6057,7 @@
6033
6057
  },
6034
6058
  "k-poptip/close": {
6035
6059
  "description": "关闭时的回调",
6036
- "type": "(...args: unknown[]) => void"
6060
+ "type": "() => void"
6037
6061
  },
6038
6062
  "popconfirm/placement": {
6039
6063
  "description": "提示框出现的位置,可选值为`top`、`top-left`、`top-right`、`bottom`、`bottom-left`、`bottom-right`、`left`、`left-top`、`left-bottom`、`right`、`right-top`、`right-bottom`",
@@ -6081,11 +6105,11 @@
6081
6105
  },
6082
6106
  "popconfirm/ok": {
6083
6107
  "description": "点击确定的回调,",
6084
- "type": "(...args: unknown[]) => void"
6108
+ "type": "() => void"
6085
6109
  },
6086
6110
  "popconfirm/cancel": {
6087
6111
  "description": "点击取消的回调,",
6088
- "type": "(...args: unknown[]) => void"
6112
+ "type": "() => void"
6089
6113
  },
6090
6114
  "k-popconfirm/placement": {
6091
6115
  "description": "提示框出现的位置,可选值为`top`、`top-left`、`top-right`、`bottom`、`bottom-left`、`bottom-right`、`left`、`left-top`、`left-bottom`、`right`、`right-top`、`right-bottom`",
@@ -6133,11 +6157,11 @@
6133
6157
  },
6134
6158
  "k-popconfirm/ok": {
6135
6159
  "description": "点击确定的回调,",
6136
- "type": "(...args: unknown[]) => void"
6160
+ "type": "() => void"
6137
6161
  },
6138
6162
  "k-popconfirm/cancel": {
6139
6163
  "description": "点击取消的回调,",
6140
- "type": "(...args: unknown[]) => void"
6164
+ "type": "() => void"
6141
6165
  },
6142
6166
  "progress/type": {
6143
6167
  "description": "进度条类型,提供三种类型: `line`、`circle`、`dashboard`",
@@ -6389,7 +6413,7 @@
6389
6413
  },
6390
6414
  "qr-code/refresh": {
6391
6415
  "description": "当 `status` 为 `'expired'` (已失效) 时,点击遮罩层上的刷新按钮时触发。用于通知父组件重新请求后端获取新的二维码数据。",
6392
- "type": "(...args: unknown[]) => void"
6416
+ "type": "() => void"
6393
6417
  },
6394
6418
  "k-qr-code/bordered": {
6395
6419
  "description": "是否保留外边框和内边距容器。",
@@ -6457,22 +6481,30 @@
6457
6481
  },
6458
6482
  "k-qr-code/refresh": {
6459
6483
  "description": "当 `status` 为 `'expired'` (已失效) 时,点击遮罩层上的刷新按钮时触发。用于通知父组件重新请求后端获取新的二维码数据。",
6460
- "type": "(...args: unknown[]) => void"
6484
+ "type": "() => void"
6461
6485
  },
6462
6486
  "radio/theme": {
6463
6487
  "description": "`button` 的主题",
6464
6488
  "type": "ThemeType"
6465
6489
  },
6490
+ "radio/name": {
6491
+ "description": "原生 radio 的分组名称",
6492
+ "type": "string | undefined"
6493
+ },
6466
6494
  "radio/disabled": {
6467
- "description": "是否禁用整个单选组",
6495
+ "description": "是否禁用当前项",
6468
6496
  "type": "boolean | undefined",
6469
6497
  "options": [
6470
6498
  "true",
6471
6499
  "false"
6472
6500
  ]
6473
6501
  },
6502
+ "radio/label": {
6503
+ "description": "文字提示",
6504
+ "type": "string | undefined"
6505
+ },
6474
6506
  "radio/modelValue": {
6475
- "description": "用于设置当前选中的值。可以使用 `v-model` 双向绑定数据",
6507
+ "description": "是否选中状态(v-model)",
6476
6508
  "type": "boolean | undefined",
6477
6509
  "options": [
6478
6510
  "true",
@@ -6480,7 +6512,7 @@
6480
6512
  ]
6481
6513
  },
6482
6514
  "radio/value": {
6483
- "description": "初始值,仅初始化时读取;后续更新使用 modelValue,同时传入时 modelValue 优先。",
6515
+ "description": "组合使用时的值",
6484
6516
  "type": "string | number | undefined"
6485
6517
  },
6486
6518
  "radio/readonly": {
@@ -6495,10 +6527,6 @@
6495
6527
  "description": "按钮尺寸",
6496
6528
  "type": "SizeType | undefined"
6497
6529
  },
6498
- "radio/name": {
6499
- "description": "原生 radio 的分组名称",
6500
- "type": "string | undefined"
6501
- },
6502
6530
  "radio/checked": {
6503
6531
  "description": "是否选中状态",
6504
6532
  "type": "boolean | undefined",
@@ -6507,28 +6535,32 @@
6507
6535
  "false"
6508
6536
  ]
6509
6537
  },
6510
- "radio/label": {
6511
- "description": "文字提示",
6512
- "type": "string | undefined"
6513
- },
6514
6538
  "radio/change": {
6515
- "description": "在选项状态发生改变时触发,返回当前选中的项",
6516
- "type": "(...args: unknown[]) => void"
6539
+ "description": "在选项状态发生改变时回调",
6540
+ "type": "(event: ChangeEvent) => void"
6517
6541
  },
6518
6542
  "k-radio/theme": {
6519
6543
  "description": "`button` 的主题",
6520
6544
  "type": "ThemeType"
6521
6545
  },
6546
+ "k-radio/name": {
6547
+ "description": "原生 radio 的分组名称",
6548
+ "type": "string | undefined"
6549
+ },
6522
6550
  "k-radio/disabled": {
6523
- "description": "是否禁用整个单选组",
6551
+ "description": "是否禁用当前项",
6524
6552
  "type": "boolean | undefined",
6525
6553
  "options": [
6526
6554
  "true",
6527
6555
  "false"
6528
6556
  ]
6529
6557
  },
6558
+ "k-radio/label": {
6559
+ "description": "文字提示",
6560
+ "type": "string | undefined"
6561
+ },
6530
6562
  "k-radio/modelValue": {
6531
- "description": "用于设置当前选中的值。可以使用 `v-model` 双向绑定数据",
6563
+ "description": "是否选中状态(v-model)",
6532
6564
  "type": "boolean | undefined",
6533
6565
  "options": [
6534
6566
  "true",
@@ -6536,7 +6568,7 @@
6536
6568
  ]
6537
6569
  },
6538
6570
  "k-radio/value": {
6539
- "description": "初始值,仅初始化时读取;后续更新使用 modelValue,同时传入时 modelValue 优先。",
6571
+ "description": "组合使用时的值",
6540
6572
  "type": "string | number | undefined"
6541
6573
  },
6542
6574
  "k-radio/readonly": {
@@ -6551,10 +6583,6 @@
6551
6583
  "description": "按钮尺寸",
6552
6584
  "type": "SizeType | undefined"
6553
6585
  },
6554
- "k-radio/name": {
6555
- "description": "原生 radio 的分组名称",
6556
- "type": "string | undefined"
6557
- },
6558
6586
  "k-radio/checked": {
6559
6587
  "description": "是否选中状态",
6560
6588
  "type": "boolean | undefined",
@@ -6563,13 +6591,9 @@
6563
6591
  "false"
6564
6592
  ]
6565
6593
  },
6566
- "k-radio/label": {
6567
- "description": "文字提示",
6568
- "type": "string | undefined"
6569
- },
6570
6594
  "k-radio/change": {
6571
- "description": "在选项状态发生改变时触发,返回当前选中的项",
6572
- "type": "(...args: unknown[]) => void"
6595
+ "description": "在选项状态发生改变时回调",
6596
+ "type": "(event: ChangeEvent) => void"
6573
6597
  },
6574
6598
  "radio-button/disabled": {
6575
6599
  "description": "是否禁用整个单选组",
@@ -6579,6 +6603,10 @@
6579
6603
  "false"
6580
6604
  ]
6581
6605
  },
6606
+ "radio-button/label": {
6607
+ "description": "文字提示",
6608
+ "type": "string | undefined"
6609
+ },
6582
6610
  "radio-button/icon": {
6583
6611
  "description": "按钮图标",
6584
6612
  "type": "IconType[] | undefined"
@@ -6623,13 +6651,9 @@
6623
6651
  "false"
6624
6652
  ]
6625
6653
  },
6626
- "radio-button/label": {
6627
- "description": "文字提示",
6628
- "type": "string | undefined"
6629
- },
6630
6654
  "radio-button/change": {
6631
6655
  "description": "在选项状态发生改变时触发,返回当前选中的项",
6632
- "type": "(...args: unknown[]) => void"
6656
+ "type": "(event: ChangeEvent) => void"
6633
6657
  },
6634
6658
  "k-radio-button/disabled": {
6635
6659
  "description": "是否禁用整个单选组",
@@ -6639,6 +6663,10 @@
6639
6663
  "false"
6640
6664
  ]
6641
6665
  },
6666
+ "k-radio-button/label": {
6667
+ "description": "文字提示",
6668
+ "type": "string | undefined"
6669
+ },
6642
6670
  "k-radio-button/icon": {
6643
6671
  "description": "按钮图标",
6644
6672
  "type": "IconType[] | undefined"
@@ -6683,13 +6711,9 @@
6683
6711
  "false"
6684
6712
  ]
6685
6713
  },
6686
- "k-radio-button/label": {
6687
- "description": "文字提示",
6688
- "type": "string | undefined"
6689
- },
6690
6714
  "k-radio-button/change": {
6691
6715
  "description": "在选项状态发生改变时触发,返回当前选中的项",
6692
- "type": "(...args: unknown[]) => void"
6716
+ "type": "(event: ChangeEvent) => void"
6693
6717
  },
6694
6718
  "radio-group/direction": {
6695
6719
  "description": "布局方向",
@@ -6741,7 +6765,7 @@
6741
6765
  },
6742
6766
  "radio-group/change": {
6743
6767
  "description": "在选项状态发生改变时触发,返回当前选中的项",
6744
- "type": "(...args: unknown[]) => void"
6768
+ "type": "(value: string | number) => void"
6745
6769
  },
6746
6770
  "k-radio-group/direction": {
6747
6771
  "description": "布局方向",
@@ -6793,7 +6817,7 @@
6793
6817
  },
6794
6818
  "k-radio-group/change": {
6795
6819
  "description": "在选项状态发生改变时触发,返回当前选中的项",
6796
- "type": "(...args: unknown[]) => void"
6820
+ "type": "(value: string | number) => void"
6797
6821
  },
6798
6822
  "segmented/shape": {
6799
6823
  "description": "形状",
@@ -6845,7 +6869,7 @@
6845
6869
  },
6846
6870
  "segmented/change": {
6847
6871
  "description": "选中值改变时触发",
6848
- "type": "(...args: unknown[]) => void"
6872
+ "type": "(value: SegmentedValue) => void"
6849
6873
  },
6850
6874
  "k-segmented/shape": {
6851
6875
  "description": "形状",
@@ -6897,7 +6921,7 @@
6897
6921
  },
6898
6922
  "k-segmented/change": {
6899
6923
  "description": "选中值改变时触发",
6900
- "type": "(...args: unknown[]) => void"
6924
+ "type": "(value: SegmentedValue) => void"
6901
6925
  },
6902
6926
  "rate/value": {
6903
6927
  "description": "非受控模式的初始值",
@@ -6985,7 +7009,7 @@
6985
7009
  },
6986
7010
  "rate/change": {
6987
7011
  "description": "选择时的回调",
6988
- "type": "(...args: unknown[]) => void"
7012
+ "type": "(value: number) => void"
6989
7013
  },
6990
7014
  "k-rate/value": {
6991
7015
  "description": "非受控模式的初始值",
@@ -7073,20 +7097,20 @@
7073
7097
  },
7074
7098
  "k-rate/change": {
7075
7099
  "description": "选择时的回调",
7076
- "type": "(...args: unknown[]) => void"
7100
+ "type": "(value: number) => void"
7077
7101
  },
7078
7102
  "result/status": {
7079
7103
  "description": "结果状态",
7080
7104
  "type": "ResultStatus"
7081
7105
  },
7082
- "result/icon": {
7083
- "description": "自定义图标",
7084
- "type": "IconType[] | undefined"
7085
- },
7086
7106
  "result/title": {
7087
7107
  "description": "标题",
7088
7108
  "type": "VNodeChild"
7089
7109
  },
7110
+ "result/icon": {
7111
+ "description": "自定义图标",
7112
+ "type": "IconType[] | undefined"
7113
+ },
7090
7114
  "result/subTitle": {
7091
7115
  "description": "副标题",
7092
7116
  "type": "VNodeChild"
@@ -7095,14 +7119,14 @@
7095
7119
  "description": "结果状态",
7096
7120
  "type": "ResultStatus"
7097
7121
  },
7098
- "k-result/icon": {
7099
- "description": "自定义图标",
7100
- "type": "IconType[] | undefined"
7101
- },
7102
7122
  "k-result/title": {
7103
7123
  "description": "标题",
7104
7124
  "type": "VNodeChild"
7105
7125
  },
7126
+ "k-result/icon": {
7127
+ "description": "自定义图标",
7128
+ "type": "IconType[] | undefined"
7129
+ },
7106
7130
  "k-result/subTitle": {
7107
7131
  "description": "副标题",
7108
7132
  "type": "VNodeChild"
@@ -7179,6 +7203,10 @@
7179
7203
  "false"
7180
7204
  ]
7181
7205
  },
7206
+ "option/label": {
7207
+ "description": "选项显示的内容",
7208
+ "type": "VNodeChild"
7209
+ },
7182
7210
  "option/value": {
7183
7211
  "description": "选项值,默认根据此属性值进行筛选,必填",
7184
7212
  "type": "string | number | undefined"
@@ -7199,10 +7227,6 @@
7199
7227
  "false"
7200
7228
  ]
7201
7229
  },
7202
- "option/label": {
7203
- "description": "选项显示的内容",
7204
- "type": "VNodeChild"
7205
- },
7206
7230
  "option/multiple": {
7207
7231
  "description": "是否呈现多选模式",
7208
7232
  "type": "boolean | undefined",
@@ -7213,15 +7237,15 @@
7213
7237
  },
7214
7238
  "option/click": {
7215
7239
  "description": "Event emitted for click",
7216
- "type": "(...args: unknown[]) => void"
7240
+ "type": "(event: MouseEvent) => void"
7217
7241
  },
7218
7242
  "option/mouseenter": {
7219
7243
  "description": "Event emitted for mouseenter",
7220
- "type": "(...args: unknown[]) => void"
7244
+ "type": "(event: MouseEvent) => void"
7221
7245
  },
7222
7246
  "option/select": {
7223
7247
  "description": "选中一项时触发",
7224
- "type": "(...args: unknown[]) => void"
7248
+ "type": "(option: OptionSelectEvent) => void"
7225
7249
  },
7226
7250
  "k-option/disabled": {
7227
7251
  "description": "是否禁用当前项",
@@ -7231,6 +7255,10 @@
7231
7255
  "false"
7232
7256
  ]
7233
7257
  },
7258
+ "k-option/label": {
7259
+ "description": "选项显示的内容",
7260
+ "type": "VNodeChild"
7261
+ },
7234
7262
  "k-option/value": {
7235
7263
  "description": "选项值,默认根据此属性值进行筛选,必填",
7236
7264
  "type": "string | number | undefined"
@@ -7251,10 +7279,6 @@
7251
7279
  "false"
7252
7280
  ]
7253
7281
  },
7254
- "k-option/label": {
7255
- "description": "选项显示的内容",
7256
- "type": "VNodeChild"
7257
- },
7258
7282
  "k-option/multiple": {
7259
7283
  "description": "是否呈现多选模式",
7260
7284
  "type": "boolean | undefined",
@@ -7265,15 +7289,15 @@
7265
7289
  },
7266
7290
  "k-option/click": {
7267
7291
  "description": "Event emitted for click",
7268
- "type": "(...args: unknown[]) => void"
7292
+ "type": "(event: MouseEvent) => void"
7269
7293
  },
7270
7294
  "k-option/mouseenter": {
7271
7295
  "description": "Event emitted for mouseenter",
7272
- "type": "(...args: unknown[]) => void"
7296
+ "type": "(event: MouseEvent) => void"
7273
7297
  },
7274
7298
  "k-option/select": {
7275
7299
  "description": "选中一项时触发",
7276
- "type": "(...args: unknown[]) => void"
7300
+ "type": "(option: OptionSelectEvent) => void"
7277
7301
  },
7278
7302
  "select/placement": {
7279
7303
  "description": "下拉菜单弹出位置",
@@ -7336,7 +7360,7 @@
7336
7360
  "type": "SelectValue | SelectValue[] | undefined"
7337
7361
  },
7338
7362
  "select/value": {
7339
- "description": "选项值,默认根据此属性值进行筛选,必填",
7363
+ "description": "初始值,仅初始化时读取;后续更新使用 modelValue,同时传入时 modelValue 优先。",
7340
7364
  "type": "SelectValue | SelectValue[] | undefined"
7341
7365
  },
7342
7366
  "select/options": {
@@ -7429,23 +7453,23 @@
7429
7453
  },
7430
7454
  "select/search": {
7431
7455
  "description": "搜索时触发",
7432
- "type": "(...args: unknown[]) => void"
7456
+ "type": "(event: InputEvent) => void"
7433
7457
  },
7434
7458
  "select/change": {
7435
7459
  "description": "在选项状态发生改变时触发,,返回选择的值value",
7436
- "type": "(...args: unknown[]) => void"
7460
+ "type": "(value: SelectValue | SelectValue[]) => void"
7437
7461
  },
7438
7462
  "select/select": {
7439
7463
  "description": "选中一项时触发",
7440
- "type": "(...args: unknown[]) => void"
7464
+ "type": "(option: OptionSelectEvent) => void"
7441
7465
  },
7442
7466
  "select/openChange": {
7443
7467
  "description": "下拉框展开或收起时触发",
7444
- "type": "(...args: unknown[]) => void"
7468
+ "type": "(open: boolean) => void"
7445
7469
  },
7446
7470
  "select/clear": {
7447
7471
  "description": "点击清除按钮时触发",
7448
- "type": "(...args: unknown[]) => void"
7472
+ "type": "() => void"
7449
7473
  },
7450
7474
  "k-select/placement": {
7451
7475
  "description": "下拉菜单弹出位置",
@@ -7508,7 +7532,7 @@
7508
7532
  "type": "SelectValue | SelectValue[] | undefined"
7509
7533
  },
7510
7534
  "k-select/value": {
7511
- "description": "选项值,默认根据此属性值进行筛选,必填",
7535
+ "description": "初始值,仅初始化时读取;后续更新使用 modelValue,同时传入时 modelValue 优先。",
7512
7536
  "type": "SelectValue | SelectValue[] | undefined"
7513
7537
  },
7514
7538
  "k-select/options": {
@@ -7601,23 +7625,23 @@
7601
7625
  },
7602
7626
  "k-select/search": {
7603
7627
  "description": "搜索时触发",
7604
- "type": "(...args: unknown[]) => void"
7628
+ "type": "(event: InputEvent) => void"
7605
7629
  },
7606
7630
  "k-select/change": {
7607
7631
  "description": "在选项状态发生改变时触发,,返回选择的值value",
7608
- "type": "(...args: unknown[]) => void"
7632
+ "type": "(value: SelectValue | SelectValue[]) => void"
7609
7633
  },
7610
7634
  "k-select/select": {
7611
7635
  "description": "选中一项时触发",
7612
- "type": "(...args: unknown[]) => void"
7636
+ "type": "(option: OptionSelectEvent) => void"
7613
7637
  },
7614
7638
  "k-select/openChange": {
7615
7639
  "description": "下拉框展开或收起时触发",
7616
- "type": "(...args: unknown[]) => void"
7640
+ "type": "(open: boolean) => void"
7617
7641
  },
7618
7642
  "k-select/clear": {
7619
7643
  "description": "点击清除按钮时触发",
7620
- "type": "(...args: unknown[]) => void"
7644
+ "type": "() => void"
7621
7645
  },
7622
7646
  "config-provider/locale": {
7623
7647
  "description": "组件语言包",
@@ -7660,7 +7684,7 @@
7660
7684
  "type": "SizeType | undefined"
7661
7685
  },
7662
7686
  "skeleton/delay": {
7663
- "description": "延迟显示骨架,单位毫秒",
7687
+ "description": "延迟显示骨架,避免快速加载时闪烁,单位毫秒",
7664
7688
  "type": "number"
7665
7689
  },
7666
7690
  "skeleton/rows": {
@@ -7671,6 +7695,10 @@
7671
7695
  "description": "标题占位图宽度,取值范围 0-100",
7672
7696
  "type": "number"
7673
7697
  },
7698
+ "skeleton/title": {
7699
+ "description": "已废弃,请使用 `titleWidth`",
7700
+ "type": "number | undefined"
7701
+ },
7674
7702
  "skeleton/loading": {
7675
7703
  "description": "为 true 时,显示占位图。反之则直接展示子组件",
7676
7704
  "type": "boolean | undefined",
@@ -7679,13 +7707,9 @@
7679
7707
  "false"
7680
7708
  ]
7681
7709
  },
7682
- "skeleton/title": {
7683
- "description": "已废弃,请使用 `titleWidth`",
7684
- "type": "number | undefined"
7685
- },
7686
7710
  "skeleton/avatar": {
7687
7711
  "description": "是否显示头像占位图",
7688
- "type": "boolean | { size?: SizeType | undefined; shape?: ShapeType | undefined; } | undefined"
7712
+ "type": "boolean | { size?: SizeType; shape?: ShapeType; } | undefined"
7689
7713
  },
7690
7714
  "skeleton/animated": {
7691
7715
  "description": "是否展示动画效果",
@@ -7696,7 +7720,7 @@
7696
7720
  ]
7697
7721
  },
7698
7722
  "k-skeleton/delay": {
7699
- "description": "延迟显示骨架,单位毫秒",
7723
+ "description": "延迟显示骨架,避免快速加载时闪烁,单位毫秒",
7700
7724
  "type": "number"
7701
7725
  },
7702
7726
  "k-skeleton/rows": {
@@ -7707,6 +7731,10 @@
7707
7731
  "description": "标题占位图宽度,取值范围 0-100",
7708
7732
  "type": "number"
7709
7733
  },
7734
+ "k-skeleton/title": {
7735
+ "description": "已废弃,请使用 `titleWidth`",
7736
+ "type": "number | undefined"
7737
+ },
7710
7738
  "k-skeleton/loading": {
7711
7739
  "description": "为 true 时,显示占位图。反之则直接展示子组件",
7712
7740
  "type": "boolean | undefined",
@@ -7715,13 +7743,9 @@
7715
7743
  "false"
7716
7744
  ]
7717
7745
  },
7718
- "k-skeleton/title": {
7719
- "description": "已废弃,请使用 `titleWidth`",
7720
- "type": "number | undefined"
7721
- },
7722
7746
  "k-skeleton/avatar": {
7723
7747
  "description": "是否显示头像占位图",
7724
- "type": "boolean | { size?: SizeType | undefined; shape?: ShapeType | undefined; } | undefined"
7748
+ "type": "boolean | { size?: SizeType; shape?: ShapeType; } | undefined"
7725
7749
  },
7726
7750
  "k-skeleton/animated": {
7727
7751
  "description": "是否展示动画效果",
@@ -7997,7 +8021,7 @@
7997
8021
  },
7998
8022
  "stat-card/theme": {
7999
8023
  "description": "外观主题",
8000
- "type": "\"outline\" | \"fill\" | \"plain\""
8024
+ "type": "\"fill\" | \"outline\" | \"plain\""
8001
8025
  },
8002
8026
  "stat-card/shape": {
8003
8027
  "description": "卡片形状",
@@ -8015,14 +8039,6 @@
8015
8039
  "description": "展示的数据",
8016
8040
  "type": "StatNumberItem[]"
8017
8041
  },
8018
- "stat-card/title": {
8019
- "description": "卡片标题,也可通过同名插槽自定义",
8020
- "type": "VNodeChild"
8021
- },
8022
- "stat-card/separator": {
8023
- "description": "分隔符",
8024
- "type": "string | undefined"
8025
- },
8026
8042
  "stat-card/reverse": {
8027
8043
  "description": "数值/数值描述是否反相排列",
8028
8044
  "type": "boolean | undefined",
@@ -8031,6 +8047,14 @@
8031
8047
  "false"
8032
8048
  ]
8033
8049
  },
8050
+ "stat-card/title": {
8051
+ "description": "卡片标题,也可通过同名插槽自定义",
8052
+ "type": "VNodeChild"
8053
+ },
8054
+ "stat-card/separator": {
8055
+ "description": "分隔符",
8056
+ "type": "string | undefined"
8057
+ },
8034
8058
  "stat-card/statNumberType": {
8035
8059
  "description": "数值变化类型",
8036
8060
  "type": "\"rollup\" | \"countup\" | undefined"
@@ -8045,7 +8069,7 @@
8045
8069
  },
8046
8070
  "k-stat-card/theme": {
8047
8071
  "description": "外观主题",
8048
- "type": "\"outline\" | \"fill\" | \"plain\""
8072
+ "type": "\"fill\" | \"outline\" | \"plain\""
8049
8073
  },
8050
8074
  "k-stat-card/shape": {
8051
8075
  "description": "卡片形状",
@@ -8063,14 +8087,6 @@
8063
8087
  "description": "展示的数据",
8064
8088
  "type": "StatNumberItem[]"
8065
8089
  },
8066
- "k-stat-card/title": {
8067
- "description": "卡片标题,也可通过同名插槽自定义",
8068
- "type": "VNodeChild"
8069
- },
8070
- "k-stat-card/separator": {
8071
- "description": "分隔符",
8072
- "type": "string | undefined"
8073
- },
8074
8090
  "k-stat-card/reverse": {
8075
8091
  "description": "数值/数值描述是否反相排列",
8076
8092
  "type": "boolean | undefined",
@@ -8079,6 +8095,14 @@
8079
8095
  "false"
8080
8096
  ]
8081
8097
  },
8098
+ "k-stat-card/title": {
8099
+ "description": "卡片标题,也可通过同名插槽自定义",
8100
+ "type": "VNodeChild"
8101
+ },
8102
+ "k-stat-card/separator": {
8103
+ "description": "分隔符",
8104
+ "type": "string | undefined"
8105
+ },
8082
8106
  "k-stat-card/statNumberType": {
8083
8107
  "description": "数值变化类型",
8084
8108
  "type": "\"rollup\" | \"countup\" | undefined"
@@ -8211,6 +8235,14 @@
8211
8235
  "false"
8212
8236
  ]
8213
8237
  },
8238
+ "slider/reverse": {
8239
+ "description": "是否倒序排列",
8240
+ "type": "boolean | undefined",
8241
+ "options": [
8242
+ "true",
8243
+ "false"
8244
+ ]
8245
+ },
8214
8246
  "slider/disabled": {
8215
8247
  "description": "滑块是否禁用",
8216
8248
  "type": "boolean | undefined",
@@ -8235,14 +8267,6 @@
8235
8267
  "description": "组件显示的尺寸大小",
8236
8268
  "type": "number | \"small\" | undefined"
8237
8269
  },
8238
- "slider/reverse": {
8239
- "description": "是否倒序排列",
8240
- "type": "boolean | undefined",
8241
- "options": [
8242
- "true",
8243
- "false"
8244
- ]
8245
- },
8246
8270
  "slider/vertical": {
8247
8271
  "description": "是否设置方向为垂直",
8248
8272
  "type": "boolean | undefined",
@@ -8269,7 +8293,7 @@
8269
8293
  },
8270
8294
  "slider/change": {
8271
8295
  "description": "当 Slider 的值发生改变时,会触发 change 事件,并把改变后的值作为参数传入。",
8272
- "type": "(...args: unknown[]) => void"
8296
+ "type": "(value: number | number[]) => void"
8273
8297
  },
8274
8298
  "k-slider/value": {
8275
8299
  "description": "初始值,仅初始化时读取;后续更新使用 modelValue,同时传入时 modelValue 优先。",
@@ -8303,6 +8327,14 @@
8303
8327
  "false"
8304
8328
  ]
8305
8329
  },
8330
+ "k-slider/reverse": {
8331
+ "description": "是否倒序排列",
8332
+ "type": "boolean | undefined",
8333
+ "options": [
8334
+ "true",
8335
+ "false"
8336
+ ]
8337
+ },
8306
8338
  "k-slider/disabled": {
8307
8339
  "description": "滑块是否禁用",
8308
8340
  "type": "boolean | undefined",
@@ -8327,14 +8359,6 @@
8327
8359
  "description": "组件显示的尺寸大小",
8328
8360
  "type": "number | \"small\" | undefined"
8329
8361
  },
8330
- "k-slider/reverse": {
8331
- "description": "是否倒序排列",
8332
- "type": "boolean | undefined",
8333
- "options": [
8334
- "true",
8335
- "false"
8336
- ]
8337
- },
8338
8362
  "k-slider/vertical": {
8339
8363
  "description": "是否设置方向为垂直",
8340
8364
  "type": "boolean | undefined",
@@ -8361,7 +8385,7 @@
8361
8385
  },
8362
8386
  "k-slider/change": {
8363
8387
  "description": "当 Slider 的值发生改变时,会触发 change 事件,并把改变后的值作为参数传入。",
8364
- "type": "(...args: unknown[]) => void"
8388
+ "type": "(value: number | number[]) => void"
8365
8389
  },
8366
8390
  "space/wrap": {
8367
8391
  "description": "是否换行",
@@ -8451,6 +8475,10 @@
8451
8475
  "false"
8452
8476
  ]
8453
8477
  },
8478
+ "spin/mode": {
8479
+ "description": "加载动画类型",
8480
+ "type": "SpinModeType"
8481
+ },
8454
8482
  "spin/value": {
8455
8483
  "description": "初始值,仅初始化时读取;后续更新使用 modelValue,同时传入时 modelValue 优先。",
8456
8484
  "type": "boolean",
@@ -8463,10 +8491,6 @@
8463
8491
  "description": "延迟显示加载效果的时间(防止闪烁)",
8464
8492
  "type": "number"
8465
8493
  },
8466
- "spin/mode": {
8467
- "description": "加载动画类型",
8468
- "type": "SpinModeType"
8469
- },
8470
8494
  "spin/modelValue": {
8471
8495
  "description": "是否加载状态,可以使用 `v-model` 双向绑定数据",
8472
8496
  "type": "boolean | undefined",
@@ -8479,6 +8503,10 @@
8479
8503
  "description": "加载效果的尺寸",
8480
8504
  "type": "SizeType | undefined"
8481
8505
  },
8506
+ "k-spin/mode": {
8507
+ "description": "加载动画类型",
8508
+ "type": "SpinModeType"
8509
+ },
8482
8510
  "k-spin/value": {
8483
8511
  "description": "初始值,仅初始化时读取;后续更新使用 modelValue,同时传入时 modelValue 优先。",
8484
8512
  "type": "boolean",
@@ -8491,10 +8519,6 @@
8491
8519
  "description": "延迟显示加载效果的时间(防止闪烁)",
8492
8520
  "type": "number"
8493
8521
  },
8494
- "k-spin/mode": {
8495
- "description": "加载动画类型",
8496
- "type": "SpinModeType"
8497
- },
8498
8522
  "k-spin/modelValue": {
8499
8523
  "description": "是否加载状态,可以使用 `v-model` 双向绑定数据",
8500
8524
  "type": "boolean | undefined",
@@ -8515,6 +8539,10 @@
8515
8539
  "false"
8516
8540
  ]
8517
8541
  },
8542
+ "step/title": {
8543
+ "description": "标题",
8544
+ "type": "VNodeChild"
8545
+ },
8518
8546
  "step/icon": {
8519
8547
  "description": "自定义节点",
8520
8548
  "type": "VNodeChild"
@@ -8523,17 +8551,13 @@
8523
8551
  "description": "描述",
8524
8552
  "type": "VNodeChild"
8525
8553
  },
8526
- "step/title": {
8527
- "description": "标题",
8528
- "type": "VNodeChild"
8529
- },
8530
8554
  "step/status": {
8531
8555
  "description": "单步状态",
8532
8556
  "type": "StepStatus | undefined"
8533
8557
  },
8534
8558
  "step/change": {
8535
8559
  "description": "点击步骤",
8536
- "type": "(...args: unknown[]) => void"
8560
+ "type": "(current: number) => void"
8537
8561
  },
8538
8562
  "k-step/disabled": {
8539
8563
  "description": "禁止点击",
@@ -8543,6 +8567,10 @@
8543
8567
  "false"
8544
8568
  ]
8545
8569
  },
8570
+ "k-step/title": {
8571
+ "description": "标题",
8572
+ "type": "VNodeChild"
8573
+ },
8546
8574
  "k-step/icon": {
8547
8575
  "description": "自定义节点",
8548
8576
  "type": "VNodeChild"
@@ -8551,20 +8579,16 @@
8551
8579
  "description": "描述",
8552
8580
  "type": "VNodeChild"
8553
8581
  },
8554
- "k-step/title": {
8555
- "description": "标题",
8556
- "type": "VNodeChild"
8557
- },
8558
8582
  "k-step/status": {
8559
8583
  "description": "单步状态",
8560
8584
  "type": "StepStatus | undefined"
8561
8585
  },
8562
8586
  "k-step/change": {
8563
8587
  "description": "点击步骤",
8564
- "type": "(...args: unknown[]) => void"
8588
+ "type": "(current: number) => void"
8565
8589
  },
8566
8590
  "steps/status": {
8567
- "description": "单步状态",
8591
+ "description": "当前状态",
8568
8592
  "type": "\"error\" | \"process\""
8569
8593
  },
8570
8594
  "steps/direction": {
@@ -8581,10 +8605,10 @@
8581
8605
  },
8582
8606
  "steps/change": {
8583
8607
  "description": "点击步骤",
8584
- "type": "(...args: unknown[]) => void"
8608
+ "type": "(current: number) => void"
8585
8609
  },
8586
8610
  "k-steps/status": {
8587
- "description": "单步状态",
8611
+ "description": "当前状态",
8588
8612
  "type": "\"error\" | \"process\""
8589
8613
  },
8590
8614
  "k-steps/direction": {
@@ -8601,7 +8625,7 @@
8601
8625
  },
8602
8626
  "k-steps/change": {
8603
8627
  "description": "点击步骤",
8604
- "type": "(...args: unknown[]) => void"
8628
+ "type": "(current: number) => void"
8605
8629
  },
8606
8630
  "Switch/shape": {
8607
8631
  "description": "开关形状,可选 `round`、`square`",
@@ -8669,7 +8693,7 @@
8669
8693
  },
8670
8694
  "Switch/change": {
8671
8695
  "description": "状态改变时触发,返回值类型由 `valueType` 决定",
8672
- "type": "(...args: unknown[]) => void"
8696
+ "type": "(value: string | number | boolean) => void"
8673
8697
  },
8674
8698
  "splitter/direction": {
8675
8699
  "description": "布局方向",
@@ -8677,15 +8701,15 @@
8677
8701
  },
8678
8702
  "splitter/resize": {
8679
8703
  "description": "面板大小变化时触发",
8680
- "type": "(...args: unknown[]) => void"
8704
+ "type": "(sizes: number[]) => void"
8681
8705
  },
8682
8706
  "splitter/resizeStart": {
8683
8707
  "description": "开始调整大小时触发",
8684
- "type": "(...args: unknown[]) => void"
8708
+ "type": "(sizes: number[]) => void"
8685
8709
  },
8686
8710
  "splitter/resizeEnd": {
8687
8711
  "description": "调整大小结束时触发",
8688
- "type": "(...args: unknown[]) => void"
8712
+ "type": "(sizes: number[]) => void"
8689
8713
  },
8690
8714
  "k-splitter/direction": {
8691
8715
  "description": "布局方向",
@@ -8693,15 +8717,15 @@
8693
8717
  },
8694
8718
  "k-splitter/resize": {
8695
8719
  "description": "面板大小变化时触发",
8696
- "type": "(...args: unknown[]) => void"
8720
+ "type": "(sizes: number[]) => void"
8697
8721
  },
8698
8722
  "k-splitter/resizeStart": {
8699
8723
  "description": "开始调整大小时触发",
8700
- "type": "(...args: unknown[]) => void"
8724
+ "type": "(sizes: number[]) => void"
8701
8725
  },
8702
8726
  "k-splitter/resizeEnd": {
8703
8727
  "description": "调整大小结束时触发",
8704
- "type": "(...args: unknown[]) => void"
8728
+ "type": "(sizes: number[]) => void"
8705
8729
  },
8706
8730
  "splitter-panel/size": {
8707
8731
  "description": "初始尺寸;数字为 px,字符串支持 px 或百分比",
@@ -8727,6 +8751,10 @@
8727
8751
  "description": "最小尺寸;数字为 px,字符串支持 px 或百分比",
8728
8752
  "type": "string | number | undefined"
8729
8753
  },
8754
+ "table/data": {
8755
+ "description": "显示的结构化数据",
8756
+ "type": "TableRecord[]"
8757
+ },
8730
8758
  "table/bordered": {
8731
8759
  "description": "是否显示边框",
8732
8760
  "type": "boolean",
@@ -8739,10 +8767,6 @@
8739
8767
  "description": "表格形状",
8740
8768
  "type": "SurfaceShapeType"
8741
8769
  },
8742
- "table/data": {
8743
- "description": "显示的结构化数据",
8744
- "type": "TableRecord[]"
8745
- },
8746
8770
  "table/itemHeight": {
8747
8771
  "description": "虚拟滚动行的固定高度",
8748
8772
  "type": "number"
@@ -8752,7 +8776,7 @@
8752
8776
  "type": "number"
8753
8777
  },
8754
8778
  "table/columns": {
8755
- "description": "与 Table 共用的列配置",
8779
+ "description": "表格列的配置描述,",
8756
8780
  "type": "Column[]"
8757
8781
  },
8758
8782
  "table/hiddenColumnKeys": {
@@ -8764,7 +8788,7 @@
8764
8788
  "type": "TableKey[]"
8765
8789
  },
8766
8790
  "table/disabledKeys": {
8767
- "description": "不允许在设置面板中切换的关键列",
8791
+ "description": "禁用的key集合",
8768
8792
  "type": "TableKey[]"
8769
8793
  },
8770
8794
  "table/rowKey": {
@@ -8781,7 +8805,7 @@
8781
8805
  },
8782
8806
  "table/scroll": {
8783
8807
  "description": "滚动配置;`x` 为内容最小宽度,`y` 为纵向区域高度",
8784
- "type": "{ x?: string | number | undefined; y?: string | number | undefined; }"
8808
+ "type": "{ x?: number | string; y?: number | string; }"
8785
8809
  },
8786
8810
  "table/loading": {
8787
8811
  "description": "表格异步加载模式",
@@ -8792,7 +8816,7 @@
8792
8816
  ]
8793
8817
  },
8794
8818
  "table/size": {
8795
- "description": "触发按钮和选择项尺寸",
8819
+ "description": "值为`small`时展示紧凑模式",
8796
8820
  "type": "SizeType | undefined"
8797
8821
  },
8798
8822
  "table/emptyText": {
@@ -8845,27 +8869,31 @@
8845
8869
  },
8846
8870
  "table/sort": {
8847
8871
  "description": "点击排序时触发",
8848
- "type": "(...args: unknown[]) => void"
8872
+ "type": "(state: SortState) => void"
8849
8873
  },
8850
8874
  "table/rowClick": {
8851
8875
  "description": "单击某一行时触发",
8852
- "type": "(...args: unknown[]) => void"
8876
+ "type": "(record: TableRecord, index: number) => void"
8853
8877
  },
8854
8878
  "table/select": {
8855
8879
  "description": "点击复选框时触发",
8856
- "type": "(...args: unknown[]) => void"
8880
+ "type": "(record: TableRecord, selected: boolean, keys: TableKey[]) => void"
8857
8881
  },
8858
8882
  "table/selectAll": {
8859
8883
  "description": "点击Table头部复选框时触发",
8860
- "type": "(...args: unknown[]) => void"
8884
+ "type": "(selected: boolean, keys: TableKey[]) => void"
8861
8885
  },
8862
8886
  "table/expand": {
8863
8887
  "description": "展开状态变化时触发",
8864
- "type": "(...args: unknown[]) => void"
8888
+ "type": "(expanded: boolean, record: TableRecord) => void"
8865
8889
  },
8866
8890
  "table/expandedKeysChange": {
8867
8891
  "description": "展开 key 集合变化时触发",
8868
- "type": "(...args: unknown[]) => void"
8892
+ "type": "(keys: TableKey[]) => void"
8893
+ },
8894
+ "k-table/data": {
8895
+ "description": "显示的结构化数据",
8896
+ "type": "TableRecord[]"
8869
8897
  },
8870
8898
  "k-table/bordered": {
8871
8899
  "description": "是否显示边框",
@@ -8879,10 +8907,6 @@
8879
8907
  "description": "表格形状",
8880
8908
  "type": "SurfaceShapeType"
8881
8909
  },
8882
- "k-table/data": {
8883
- "description": "显示的结构化数据",
8884
- "type": "TableRecord[]"
8885
- },
8886
8910
  "k-table/itemHeight": {
8887
8911
  "description": "虚拟滚动行的固定高度",
8888
8912
  "type": "number"
@@ -8892,7 +8916,7 @@
8892
8916
  "type": "number"
8893
8917
  },
8894
8918
  "k-table/columns": {
8895
- "description": "与 Table 共用的列配置",
8919
+ "description": "表格列的配置描述,",
8896
8920
  "type": "Column[]"
8897
8921
  },
8898
8922
  "k-table/hiddenColumnKeys": {
@@ -8904,7 +8928,7 @@
8904
8928
  "type": "TableKey[]"
8905
8929
  },
8906
8930
  "k-table/disabledKeys": {
8907
- "description": "不允许在设置面板中切换的关键列",
8931
+ "description": "禁用的key集合",
8908
8932
  "type": "TableKey[]"
8909
8933
  },
8910
8934
  "k-table/rowKey": {
@@ -8921,7 +8945,7 @@
8921
8945
  },
8922
8946
  "k-table/scroll": {
8923
8947
  "description": "滚动配置;`x` 为内容最小宽度,`y` 为纵向区域高度",
8924
- "type": "{ x?: string | number | undefined; y?: string | number | undefined; }"
8948
+ "type": "{ x?: number | string; y?: number | string; }"
8925
8949
  },
8926
8950
  "k-table/loading": {
8927
8951
  "description": "表格异步加载模式",
@@ -8932,7 +8956,7 @@
8932
8956
  ]
8933
8957
  },
8934
8958
  "k-table/size": {
8935
- "description": "触发按钮和选择项尺寸",
8959
+ "description": "值为`small`时展示紧凑模式",
8936
8960
  "type": "SizeType | undefined"
8937
8961
  },
8938
8962
  "k-table/emptyText": {
@@ -8985,27 +9009,27 @@
8985
9009
  },
8986
9010
  "k-table/sort": {
8987
9011
  "description": "点击排序时触发",
8988
- "type": "(...args: unknown[]) => void"
9012
+ "type": "(state: SortState) => void"
8989
9013
  },
8990
9014
  "k-table/rowClick": {
8991
9015
  "description": "单击某一行时触发",
8992
- "type": "(...args: unknown[]) => void"
9016
+ "type": "(record: TableRecord, index: number) => void"
8993
9017
  },
8994
9018
  "k-table/select": {
8995
9019
  "description": "点击复选框时触发",
8996
- "type": "(...args: unknown[]) => void"
9020
+ "type": "(record: TableRecord, selected: boolean, keys: TableKey[]) => void"
8997
9021
  },
8998
9022
  "k-table/selectAll": {
8999
9023
  "description": "点击Table头部复选框时触发",
9000
- "type": "(...args: unknown[]) => void"
9024
+ "type": "(selected: boolean, keys: TableKey[]) => void"
9001
9025
  },
9002
9026
  "k-table/expand": {
9003
9027
  "description": "展开状态变化时触发",
9004
- "type": "(...args: unknown[]) => void"
9028
+ "type": "(expanded: boolean, record: TableRecord) => void"
9005
9029
  },
9006
9030
  "k-table/expandedKeysChange": {
9007
9031
  "description": "展开 key 集合变化时触发",
9008
- "type": "(...args: unknown[]) => void"
9032
+ "type": "(keys: TableKey[]) => void"
9009
9033
  },
9010
9034
  "table-column-setting/columns": {
9011
9035
  "description": "与 Table 共用的列配置",
@@ -9027,21 +9051,21 @@
9027
9051
  "false"
9028
9052
  ]
9029
9053
  },
9054
+ "table-column-setting/title": {
9055
+ "description": "面板标题及默认触发按钮文字",
9056
+ "type": "string | undefined"
9057
+ },
9030
9058
  "table-column-setting/size": {
9031
9059
  "description": "触发按钮和选择项尺寸",
9032
9060
  "type": "SizeType | undefined"
9033
9061
  },
9034
- "table-column-setting/title": {
9035
- "description": "列头显示文字",
9036
- "type": "string | undefined"
9037
- },
9038
9062
  "table-column-setting/resetText": {
9039
9063
  "description": "重置按钮文字",
9040
9064
  "type": "string | undefined"
9041
9065
  },
9042
9066
  "table-column-setting/change": {
9043
9067
  "description": "隐藏列变化时触发",
9044
- "type": "(...args: unknown[]) => void"
9068
+ "type": "(keys: string[]) => void"
9045
9069
  },
9046
9070
  "k-table-column-setting/columns": {
9047
9071
  "description": "与 Table 共用的列配置",
@@ -9063,25 +9087,29 @@
9063
9087
  "false"
9064
9088
  ]
9065
9089
  },
9090
+ "k-table-column-setting/title": {
9091
+ "description": "面板标题及默认触发按钮文字",
9092
+ "type": "string | undefined"
9093
+ },
9066
9094
  "k-table-column-setting/size": {
9067
9095
  "description": "触发按钮和选择项尺寸",
9068
9096
  "type": "SizeType | undefined"
9069
9097
  },
9070
- "k-table-column-setting/title": {
9071
- "description": "列头显示文字",
9072
- "type": "string | undefined"
9073
- },
9074
9098
  "k-table-column-setting/resetText": {
9075
9099
  "description": "重置按钮文字",
9076
9100
  "type": "string | undefined"
9077
9101
  },
9078
9102
  "k-table-column-setting/change": {
9079
9103
  "description": "隐藏列变化时触发",
9080
- "type": "(...args: unknown[]) => void"
9104
+ "type": "(keys: string[]) => void"
9105
+ },
9106
+ "kanban/data": {
9107
+ "description": "看板数据",
9108
+ "type": "KanbanItemData[]"
9081
9109
  },
9082
9110
  "kanban/theme": {
9083
9111
  "description": "看板列外观",
9084
- "type": "\"outline\" | \"fill\""
9112
+ "type": "\"fill\" | \"outline\""
9085
9113
  },
9086
9114
  "kanban/draggable": {
9087
9115
  "description": "是否允许拖拽",
@@ -9091,10 +9119,6 @@
9091
9119
  "false"
9092
9120
  ]
9093
9121
  },
9094
- "kanban/data": {
9095
- "description": "看板数据",
9096
- "type": "KanbanItemData[]"
9097
- },
9098
9122
  "kanban/columns": {
9099
9123
  "description": "看板列配置",
9100
9124
  "type": "KanbanColumnData[]"
@@ -9117,11 +9141,11 @@
9117
9141
  },
9118
9142
  "kanban/move": {
9119
9143
  "description": "卡片拖入其他列时触发;组件不会直接修改原数据",
9120
- "type": "(...args: unknown[]) => void"
9144
+ "type": "(event: KanbanMoveEvent) => void"
9121
9145
  },
9122
9146
  "kanban/itemClick": {
9123
9147
  "description": "点击卡片时触发",
9124
- "type": "(...args: unknown[]) => void"
9148
+ "type": "(item: KanbanItemData, column: KanbanColumnData) => void"
9125
9149
  },
9126
9150
  "tooltip/placement": {
9127
9151
  "description": "提示框出现的位置,可选值为`top`、`top-left`、`top-right`、`bottom`、`bottom-left`、`bottom-right`、`left`、`left-top`、`left-bottom`、`right`、`right-top`、`right-bottom`",
@@ -9269,15 +9293,15 @@
9269
9293
  },
9270
9294
  "tour/change": {
9271
9295
  "description": "步骤变化",
9272
- "type": "(...args: unknown[]) => void"
9296
+ "type": "(current: number) => void"
9273
9297
  },
9274
9298
  "tour/openChange": {
9275
9299
  "description": "显示状态变化",
9276
- "type": "(...args: unknown[]) => void"
9300
+ "type": "(open: boolean) => void"
9277
9301
  },
9278
9302
  "tour/finish": {
9279
9303
  "description": "完成引导",
9280
- "type": "(...args: unknown[]) => void"
9304
+ "type": "() => void"
9281
9305
  },
9282
9306
  "k-tour/closable": {
9283
9307
  "description": "显示关闭按钮",
@@ -9337,15 +9361,15 @@
9337
9361
  },
9338
9362
  "k-tour/change": {
9339
9363
  "description": "步骤变化",
9340
- "type": "(...args: unknown[]) => void"
9364
+ "type": "(current: number) => void"
9341
9365
  },
9342
9366
  "k-tour/openChange": {
9343
9367
  "description": "显示状态变化",
9344
- "type": "(...args: unknown[]) => void"
9368
+ "type": "(open: boolean) => void"
9345
9369
  },
9346
9370
  "k-tour/finish": {
9347
9371
  "description": "完成引导",
9348
- "type": "(...args: unknown[]) => void"
9372
+ "type": "() => void"
9349
9373
  },
9350
9374
  "transfer/disabled": {
9351
9375
  "description": "是否禁用此项",
@@ -9357,7 +9381,7 @@
9357
9381
  },
9358
9382
  "transfer/theme": {
9359
9383
  "description": "外观主题",
9360
- "type": "\"outline\" | \"fill\""
9384
+ "type": "\"fill\" | \"outline\""
9361
9385
  },
9362
9386
  "transfer/value": {
9363
9387
  "description": "初始值,仅初始化时读取;后续更新使用 modelValue,同时传入时 modelValue 优先。",
@@ -9405,15 +9429,15 @@
9405
9429
  },
9406
9430
  "transfer/change": {
9407
9431
  "description": "数据移动时触发",
9408
- "type": "(...args: unknown[]) => void"
9432
+ "type": "(targetKeys: TransferKey[], direction: \"left\" | \"right\", movedKeys: TransferKey[]) => void"
9409
9433
  },
9410
9434
  "transfer/search": {
9411
9435
  "description": "搜索时触发",
9412
- "type": "(...args: unknown[]) => void"
9436
+ "type": "(direction: \"left\" | \"right\", value: string) => void"
9413
9437
  },
9414
9438
  "transfer/selectChange": {
9415
9439
  "description": "选择状态变化时触发",
9416
- "type": "(...args: unknown[]) => void"
9440
+ "type": "(sourceKeys: TransferKey[], targetKeys: TransferKey[]) => void"
9417
9441
  },
9418
9442
  "k-transfer/disabled": {
9419
9443
  "description": "是否禁用此项",
@@ -9425,7 +9449,7 @@
9425
9449
  },
9426
9450
  "k-transfer/theme": {
9427
9451
  "description": "外观主题",
9428
- "type": "\"outline\" | \"fill\""
9452
+ "type": "\"fill\" | \"outline\""
9429
9453
  },
9430
9454
  "k-transfer/value": {
9431
9455
  "description": "初始值,仅初始化时读取;后续更新使用 modelValue,同时传入时 modelValue 优先。",
@@ -9473,15 +9497,15 @@
9473
9497
  },
9474
9498
  "k-transfer/change": {
9475
9499
  "description": "数据移动时触发",
9476
- "type": "(...args: unknown[]) => void"
9500
+ "type": "(targetKeys: TransferKey[], direction: \"left\" | \"right\", movedKeys: TransferKey[]) => void"
9477
9501
  },
9478
9502
  "k-transfer/search": {
9479
9503
  "description": "搜索时触发",
9480
- "type": "(...args: unknown[]) => void"
9504
+ "type": "(direction: \"left\" | \"right\", value: string) => void"
9481
9505
  },
9482
9506
  "k-transfer/selectChange": {
9483
9507
  "description": "选择状态变化时触发",
9484
- "type": "(...args: unknown[]) => void"
9508
+ "type": "(sourceKeys: TransferKey[], targetKeys: TransferKey[]) => void"
9485
9509
  },
9486
9510
  "typography/disabled": {
9487
9511
  "description": "禁用状态",
@@ -9491,52 +9515,52 @@
9491
9515
  "false"
9492
9516
  ]
9493
9517
  },
9494
- "typography/editable": {
9495
- "description": "允许编辑及配置操作提示",
9496
- "type": "boolean | TypographyEditableOptions"
9497
- },
9498
- "typography/strong": {
9499
- "description": "加粗",
9518
+ "typography/code": {
9519
+ "description": "行内代码样式",
9500
9520
  "type": "boolean",
9501
9521
  "options": [
9502
9522
  "true",
9503
9523
  "false"
9504
9524
  ]
9505
9525
  },
9506
- "typography/italic": {
9507
- "description": "斜体",
9526
+ "typography/mark": {
9527
+ "description": "标记样式",
9508
9528
  "type": "boolean",
9509
9529
  "options": [
9510
9530
  "true",
9511
9531
  "false"
9512
9532
  ]
9513
9533
  },
9514
- "typography/underline": {
9515
- "description": "下划线",
9534
+ "typography/strong": {
9535
+ "description": "加粗",
9516
9536
  "type": "boolean",
9517
9537
  "options": [
9518
9538
  "true",
9519
9539
  "false"
9520
9540
  ]
9521
9541
  },
9522
- "typography/delete": {
9523
- "description": "删除线",
9542
+ "typography/editable": {
9543
+ "description": "允许编辑及配置操作提示",
9544
+ "type": "boolean | TypographyEditableOptions"
9545
+ },
9546
+ "typography/italic": {
9547
+ "description": "斜体",
9524
9548
  "type": "boolean",
9525
9549
  "options": [
9526
9550
  "true",
9527
9551
  "false"
9528
9552
  ]
9529
9553
  },
9530
- "typography/mark": {
9531
- "description": "标记样式",
9554
+ "typography/underline": {
9555
+ "description": "下划线",
9532
9556
  "type": "boolean",
9533
9557
  "options": [
9534
9558
  "true",
9535
9559
  "false"
9536
9560
  ]
9537
9561
  },
9538
- "typography/code": {
9539
- "description": "行内代码样式",
9562
+ "typography/delete": {
9563
+ "description": "删除线",
9540
9564
  "type": "boolean",
9541
9565
  "options": [
9542
9566
  "true",
@@ -9569,11 +9593,11 @@
9569
9593
  },
9570
9594
  "typography/change": {
9571
9595
  "description": "编辑完成后触发",
9572
- "type": "(...args: unknown[]) => void"
9596
+ "type": "(value: string) => void"
9573
9597
  },
9574
9598
  "typography/copy": {
9575
9599
  "description": "复制后触发",
9576
- "type": "(...args: unknown[]) => void"
9600
+ "type": "(value: string) => void"
9577
9601
  },
9578
9602
  "k-typography/disabled": {
9579
9603
  "description": "禁用状态",
@@ -9583,52 +9607,52 @@
9583
9607
  "false"
9584
9608
  ]
9585
9609
  },
9586
- "k-typography/editable": {
9587
- "description": "允许编辑及配置操作提示",
9588
- "type": "boolean | TypographyEditableOptions"
9589
- },
9590
- "k-typography/strong": {
9591
- "description": "加粗",
9610
+ "k-typography/code": {
9611
+ "description": "行内代码样式",
9592
9612
  "type": "boolean",
9593
9613
  "options": [
9594
9614
  "true",
9595
9615
  "false"
9596
9616
  ]
9597
9617
  },
9598
- "k-typography/italic": {
9599
- "description": "斜体",
9618
+ "k-typography/mark": {
9619
+ "description": "标记样式",
9600
9620
  "type": "boolean",
9601
9621
  "options": [
9602
9622
  "true",
9603
9623
  "false"
9604
9624
  ]
9605
9625
  },
9606
- "k-typography/underline": {
9607
- "description": "下划线",
9626
+ "k-typography/strong": {
9627
+ "description": "加粗",
9608
9628
  "type": "boolean",
9609
9629
  "options": [
9610
9630
  "true",
9611
9631
  "false"
9612
9632
  ]
9613
9633
  },
9614
- "k-typography/delete": {
9615
- "description": "删除线",
9634
+ "k-typography/editable": {
9635
+ "description": "允许编辑及配置操作提示",
9636
+ "type": "boolean | TypographyEditableOptions"
9637
+ },
9638
+ "k-typography/italic": {
9639
+ "description": "斜体",
9616
9640
  "type": "boolean",
9617
9641
  "options": [
9618
9642
  "true",
9619
9643
  "false"
9620
9644
  ]
9621
9645
  },
9622
- "k-typography/mark": {
9623
- "description": "标记样式",
9646
+ "k-typography/underline": {
9647
+ "description": "下划线",
9624
9648
  "type": "boolean",
9625
9649
  "options": [
9626
9650
  "true",
9627
9651
  "false"
9628
9652
  ]
9629
9653
  },
9630
- "k-typography/code": {
9631
- "description": "行内代码样式",
9654
+ "k-typography/delete": {
9655
+ "description": "删除线",
9632
9656
  "type": "boolean",
9633
9657
  "options": [
9634
9658
  "true",
@@ -9661,11 +9685,11 @@
9661
9685
  },
9662
9686
  "k-typography/change": {
9663
9687
  "description": "编辑完成后触发",
9664
- "type": "(...args: unknown[]) => void"
9688
+ "type": "(value: string) => void"
9665
9689
  },
9666
9690
  "k-typography/copy": {
9667
9691
  "description": "复制后触发",
9668
- "type": "(...args: unknown[]) => void"
9692
+ "type": "(value: string) => void"
9669
9693
  },
9670
9694
  "tab-panel/disabled": {
9671
9695
  "description": "tab是否被禁用",
@@ -9675,6 +9699,10 @@
9675
9699
  "false"
9676
9700
  ]
9677
9701
  },
9702
+ "tab-panel/title": {
9703
+ "description": "选项卡头内容",
9704
+ "type": "VNodeChild"
9705
+ },
9678
9706
  "tab-panel/closable": {
9679
9707
  "description": "tab是否显示关闭按钮",
9680
9708
  "type": "boolean | undefined",
@@ -9687,10 +9715,6 @@
9687
9715
  "description": "选项卡头显示的图标",
9688
9716
  "type": "IconType[] | undefined"
9689
9717
  },
9690
- "tab-panel/title": {
9691
- "description": "选项卡头内容",
9692
- "type": "VNodeChild"
9693
- },
9694
9718
  "k-tab-panel/disabled": {
9695
9719
  "description": "tab是否被禁用",
9696
9720
  "type": "boolean | undefined",
@@ -9699,6 +9723,10 @@
9699
9723
  "false"
9700
9724
  ]
9701
9725
  },
9726
+ "k-tab-panel/title": {
9727
+ "description": "选项卡头内容",
9728
+ "type": "VNodeChild"
9729
+ },
9702
9730
  "k-tab-panel/closable": {
9703
9731
  "description": "tab是否显示关闭按钮",
9704
9732
  "type": "boolean | undefined",
@@ -9711,10 +9739,6 @@
9711
9739
  "description": "选项卡头显示的图标",
9712
9740
  "type": "IconType[] | undefined"
9713
9741
  },
9714
- "k-tab-panel/title": {
9715
- "description": "选项卡头内容",
9716
- "type": "VNodeChild"
9717
- },
9718
9742
  "tabs/animated": {
9719
9743
  "description": "是否使用动画切换 Tabs",
9720
9744
  "type": "boolean",
@@ -9761,15 +9785,15 @@
9761
9785
  },
9762
9786
  "tabs/tabClick": {
9763
9787
  "description": "tab点击时的回调",
9764
- "type": "(...args: unknown[]) => void"
9788
+ "type": "(name: string) => void"
9765
9789
  },
9766
9790
  "tabs/change": {
9767
9791
  "description": "切换面板的回调",
9768
- "type": "(...args: unknown[]) => void"
9792
+ "type": "(name: string) => void"
9769
9793
  },
9770
9794
  "tabs/remove": {
9771
9795
  "description": "tab关闭时的回调,返回关闭的tab的key值",
9772
- "type": "(...args: unknown[]) => void"
9796
+ "type": "(name: string) => void"
9773
9797
  },
9774
9798
  "k-tabs/animated": {
9775
9799
  "description": "是否使用动画切换 Tabs",
@@ -9817,15 +9841,15 @@
9817
9841
  },
9818
9842
  "k-tabs/tabClick": {
9819
9843
  "description": "tab点击时的回调",
9820
- "type": "(...args: unknown[]) => void"
9844
+ "type": "(name: string) => void"
9821
9845
  },
9822
9846
  "k-tabs/change": {
9823
9847
  "description": "切换面板的回调",
9824
- "type": "(...args: unknown[]) => void"
9848
+ "type": "(name: string) => void"
9825
9849
  },
9826
9850
  "k-tabs/remove": {
9827
9851
  "description": "tab关闭时的回调,返回关闭的tab的key值",
9828
- "type": "(...args: unknown[]) => void"
9852
+ "type": "(name: string) => void"
9829
9853
  },
9830
9854
  "time-line/mode": {
9831
9855
  "description": "时间轴和内容的相对位置",
@@ -9835,6 +9859,10 @@
9835
9859
  "description": "时间轴和内容的相对位置",
9836
9860
  "type": "TimelineMode"
9837
9861
  },
9862
+ "time-line-item/time": {
9863
+ "description": "时间内容",
9864
+ "type": "VNodeChild"
9865
+ },
9838
9866
  "time-line-item/icon": {
9839
9867
  "description": "时间轴节点图标",
9840
9868
  "type": "IconType[] | undefined"
@@ -9843,14 +9871,14 @@
9843
9871
  "description": "时间轴节点颜色",
9844
9872
  "type": "string | undefined"
9845
9873
  },
9846
- "time-line-item/time": {
9847
- "description": "时间内容",
9848
- "type": "VNodeChild"
9849
- },
9850
9874
  "time-line-item/extra": {
9851
9875
  "description": "辅助内容,也可通过同名插槽自定义",
9852
9876
  "type": "VNodeChild"
9853
9877
  },
9878
+ "k-time-line-item/time": {
9879
+ "description": "时间内容",
9880
+ "type": "VNodeChild"
9881
+ },
9854
9882
  "k-time-line-item/icon": {
9855
9883
  "description": "时间轴节点图标",
9856
9884
  "type": "IconType[] | undefined"
@@ -9859,10 +9887,6 @@
9859
9887
  "description": "时间轴节点颜色",
9860
9888
  "type": "string | undefined"
9861
9889
  },
9862
- "k-time-line-item/time": {
9863
- "description": "时间内容",
9864
- "type": "VNodeChild"
9865
- },
9866
9890
  "k-time-line-item/extra": {
9867
9891
  "description": "辅助内容,也可通过同名插槽自定义",
9868
9892
  "type": "VNodeChild"
@@ -9911,6 +9935,10 @@
9911
9935
  "false"
9912
9936
  ]
9913
9937
  },
9938
+ "tree/data": {
9939
+ "description": "可嵌套的节点属性的数组,生成 `tree` 的数据",
9940
+ "type": "TreeNodeData[] | undefined"
9941
+ },
9914
9942
  "tree/loading": {
9915
9943
  "description": "异步加载状态",
9916
9944
  "type": "boolean | undefined",
@@ -9931,10 +9959,6 @@
9931
9959
  "description": "异步加载数据的方法;成功后同一节点不会重复加载",
9932
9960
  "type": "((node: TreeNode) => Promise<unknown>) | undefined"
9933
9961
  },
9934
- "tree/data": {
9935
- "description": "可嵌套的节点属性的数组,生成 `tree` 的数据",
9936
- "type": "TreeNodeData[] | undefined"
9937
- },
9938
9962
  "tree/virtual": {
9939
9963
  "description": "是否启用虚拟滚动",
9940
9964
  "type": "boolean | undefined",
@@ -9993,39 +10017,39 @@
9993
10017
  },
9994
10018
  "tree/expand": {
9995
10019
  "description": "展开和收起子节点时触发",
9996
- "type": "(...args: unknown[]) => void"
10020
+ "type": "(result: TreeExpandEvent) => void"
9997
10021
  },
9998
10022
  "tree/check": {
9999
10023
  "description": "点击复选框时触发",
10000
- "type": "(...args: unknown[]) => void"
10024
+ "type": "(node: TreeNode, checked: boolean, keys: string[]) => void"
10001
10025
  },
10002
10026
  "tree/select": {
10003
10027
  "description": "点击树节点时触发",
10004
- "type": "(...args: unknown[]) => void"
10028
+ "type": "(node: TreeNode) => void"
10005
10029
  },
10006
10030
  "tree/dragstart": {
10007
10031
  "description": "开始拖拽时调用",
10008
- "type": "(...args: unknown[]) => void"
10032
+ "type": "(node: TreeNode, event: DragEvent) => void"
10009
10033
  },
10010
10034
  "tree/dragenter": {
10011
10035
  "description": "dragenter 触发时调用",
10012
- "type": "(...args: unknown[]) => void"
10036
+ "type": "(node: TreeNode, event: DragEvent) => void"
10013
10037
  },
10014
10038
  "tree/dragleave": {
10015
10039
  "description": "dragleave 触发时调用",
10016
- "type": "(...args: unknown[]) => void"
10040
+ "type": "(node: TreeNode, event: DragEvent) => void"
10017
10041
  },
10018
10042
  "tree/drop": {
10019
10043
  "description": "drop 触发时调用",
10020
- "type": "(...args: unknown[]) => void"
10044
+ "type": "(nodes: TreeDropEvent, event: DragEvent) => void"
10021
10045
  },
10022
10046
  "tree/loadError": {
10023
10047
  "description": "异步加载失败时触发",
10024
- "type": "(...args: unknown[]) => void"
10048
+ "type": "(_error: unknown, node: TreeNode) => void"
10025
10049
  },
10026
10050
  "tree/dragend": {
10027
10051
  "description": "dragend 触发时调用",
10028
- "type": "(...args: unknown[]) => void"
10052
+ "type": "(node: TreeNode, event: DragEvent) => void"
10029
10053
  },
10030
10054
  "k-tree/showIcon": {
10031
10055
  "description": "是否展示图标",
@@ -10071,6 +10095,10 @@
10071
10095
  "false"
10072
10096
  ]
10073
10097
  },
10098
+ "k-tree/data": {
10099
+ "description": "可嵌套的节点属性的数组,生成 `tree` 的数据",
10100
+ "type": "TreeNodeData[] | undefined"
10101
+ },
10074
10102
  "k-tree/loading": {
10075
10103
  "description": "异步加载状态",
10076
10104
  "type": "boolean | undefined",
@@ -10091,10 +10119,6 @@
10091
10119
  "description": "异步加载数据的方法;成功后同一节点不会重复加载",
10092
10120
  "type": "((node: TreeNode) => Promise<unknown>) | undefined"
10093
10121
  },
10094
- "k-tree/data": {
10095
- "description": "可嵌套的节点属性的数组,生成 `tree` 的数据",
10096
- "type": "TreeNodeData[] | undefined"
10097
- },
10098
10122
  "k-tree/virtual": {
10099
10123
  "description": "是否启用虚拟滚动",
10100
10124
  "type": "boolean | undefined",
@@ -10153,39 +10177,39 @@
10153
10177
  },
10154
10178
  "k-tree/expand": {
10155
10179
  "description": "展开和收起子节点时触发",
10156
- "type": "(...args: unknown[]) => void"
10180
+ "type": "(result: TreeExpandEvent) => void"
10157
10181
  },
10158
10182
  "k-tree/check": {
10159
10183
  "description": "点击复选框时触发",
10160
- "type": "(...args: unknown[]) => void"
10184
+ "type": "(node: TreeNode, checked: boolean, keys: string[]) => void"
10161
10185
  },
10162
10186
  "k-tree/select": {
10163
10187
  "description": "点击树节点时触发",
10164
- "type": "(...args: unknown[]) => void"
10188
+ "type": "(node: TreeNode) => void"
10165
10189
  },
10166
10190
  "k-tree/dragstart": {
10167
10191
  "description": "开始拖拽时调用",
10168
- "type": "(...args: unknown[]) => void"
10192
+ "type": "(node: TreeNode, event: DragEvent) => void"
10169
10193
  },
10170
10194
  "k-tree/dragenter": {
10171
10195
  "description": "dragenter 触发时调用",
10172
- "type": "(...args: unknown[]) => void"
10196
+ "type": "(node: TreeNode, event: DragEvent) => void"
10173
10197
  },
10174
10198
  "k-tree/dragleave": {
10175
10199
  "description": "dragleave 触发时调用",
10176
- "type": "(...args: unknown[]) => void"
10200
+ "type": "(node: TreeNode, event: DragEvent) => void"
10177
10201
  },
10178
10202
  "k-tree/drop": {
10179
10203
  "description": "drop 触发时调用",
10180
- "type": "(...args: unknown[]) => void"
10204
+ "type": "(nodes: TreeDropEvent, event: DragEvent) => void"
10181
10205
  },
10182
10206
  "k-tree/loadError": {
10183
10207
  "description": "异步加载失败时触发",
10184
- "type": "(...args: unknown[]) => void"
10208
+ "type": "(_error: unknown, node: TreeNode) => void"
10185
10209
  },
10186
10210
  "k-tree/dragend": {
10187
10211
  "description": "dragend 触发时调用",
10188
- "type": "(...args: unknown[]) => void"
10212
+ "type": "(node: TreeNode, event: DragEvent) => void"
10189
10213
  },
10190
10214
  "tree-select/placement": {
10191
10215
  "description": "下拉菜单弹出位置",
@@ -10373,27 +10397,27 @@
10373
10397
  },
10374
10398
  "tree-select/change": {
10375
10399
  "description": "值改变时触发",
10376
- "type": "(...args: unknown[]) => void"
10400
+ "type": "(value: TreeSelectValue) => void"
10377
10401
  },
10378
10402
  "tree-select/treeSelect": {
10379
10403
  "description": "点击树节点时触发",
10380
- "type": "(...args: unknown[]) => void"
10404
+ "type": "(value: string, label: VNodeChild, selected: boolean) => void"
10381
10405
  },
10382
10406
  "tree-select/search": {
10383
10407
  "description": "搜索时触发",
10384
- "type": "(...args: unknown[]) => void"
10408
+ "type": "(event: InputEvent) => void"
10385
10409
  },
10386
10410
  "tree-select/treeExpand": {
10387
10411
  "description": "Tree节点展开时触发",
10388
- "type": "(...args: unknown[]) => void"
10412
+ "type": "(event: TreeExpandEvent) => void"
10389
10413
  },
10390
10414
  "tree-select/openChange": {
10391
10415
  "description": "下拉框展开或收起时触发",
10392
- "type": "(...args: unknown[]) => void"
10416
+ "type": "(open: boolean) => void"
10393
10417
  },
10394
10418
  "tree-select/clear": {
10395
10419
  "description": "清空时触发",
10396
- "type": "(...args: unknown[]) => void"
10420
+ "type": "() => void"
10397
10421
  },
10398
10422
  "k-tree-select/placement": {
10399
10423
  "description": "下拉菜单弹出位置",
@@ -10581,27 +10605,27 @@
10581
10605
  },
10582
10606
  "k-tree-select/change": {
10583
10607
  "description": "值改变时触发",
10584
- "type": "(...args: unknown[]) => void"
10608
+ "type": "(value: TreeSelectValue) => void"
10585
10609
  },
10586
10610
  "k-tree-select/treeSelect": {
10587
10611
  "description": "点击树节点时触发",
10588
- "type": "(...args: unknown[]) => void"
10612
+ "type": "(value: string, label: VNodeChild, selected: boolean) => void"
10589
10613
  },
10590
10614
  "k-tree-select/search": {
10591
10615
  "description": "搜索时触发",
10592
- "type": "(...args: unknown[]) => void"
10616
+ "type": "(event: InputEvent) => void"
10593
10617
  },
10594
10618
  "k-tree-select/treeExpand": {
10595
10619
  "description": "Tree节点展开时触发",
10596
- "type": "(...args: unknown[]) => void"
10620
+ "type": "(event: TreeExpandEvent) => void"
10597
10621
  },
10598
10622
  "k-tree-select/openChange": {
10599
10623
  "description": "下拉框展开或收起时触发",
10600
- "type": "(...args: unknown[]) => void"
10624
+ "type": "(open: boolean) => void"
10601
10625
  },
10602
10626
  "k-tree-select/clear": {
10603
10627
  "description": "清空时触发",
10604
- "type": "(...args: unknown[]) => void"
10628
+ "type": "() => void"
10605
10629
  },
10606
10630
  "tag/theme": {
10607
10631
  "description": "组件呈现主题",
@@ -10641,11 +10665,11 @@
10641
10665
  },
10642
10666
  "tag/close": {
10643
10667
  "description": "点击关闭按钮时触发",
10644
- "type": "(...args: unknown[]) => void"
10668
+ "type": "() => void"
10645
10669
  },
10646
10670
  "tag/afterClose": {
10647
10671
  "description": "退出动画结束后触发",
10648
- "type": "(...args: unknown[]) => void"
10672
+ "type": "() => void"
10649
10673
  },
10650
10674
  "k-tag/theme": {
10651
10675
  "description": "组件呈现主题",
@@ -10685,18 +10709,22 @@
10685
10709
  },
10686
10710
  "k-tag/close": {
10687
10711
  "description": "点击关闭按钮时触发",
10688
- "type": "(...args: unknown[]) => void"
10712
+ "type": "() => void"
10689
10713
  },
10690
10714
  "k-tag/afterClose": {
10691
10715
  "description": "退出动画结束后触发",
10692
- "type": "(...args: unknown[]) => void"
10716
+ "type": "() => void"
10717
+ },
10718
+ "col/push": {
10719
+ "description": "栅格向右移动的格数,可选值为 0~24",
10720
+ "type": "number | undefined"
10693
10721
  },
10694
10722
  "col/offset": {
10695
10723
  "description": "栅格左侧间隔格数,可选值为 0~24",
10696
10724
  "type": "number | undefined"
10697
10725
  },
10698
- "col/push": {
10699
- "description": "栅格向右移动的格数,可选值为 0~24",
10726
+ "col/span": {
10727
+ "description": "栅格占位格数,可选值为 0~24,`0` 表示隐藏",
10700
10728
  "type": "number | undefined"
10701
10729
  },
10702
10730
  "col/xs": {
@@ -10723,10 +10751,6 @@
10723
10751
  "description": "`≥1600px`",
10724
10752
  "type": "ColResponsiveSize | undefined"
10725
10753
  },
10726
- "col/span": {
10727
- "description": "栅格占位格数,可选值为 0~24,`0` 表示隐藏",
10728
- "type": "number | undefined"
10729
- },
10730
10754
  "col/order": {
10731
10755
  "description": "栅格顺序,可选值为 0~24",
10732
10756
  "type": "number | undefined"
@@ -10739,12 +10763,16 @@
10739
10763
  "description": "Flex 布局填充,例如 `1`、`auto`、`100px`、`1 1 200px`",
10740
10764
  "type": "string | number | undefined"
10741
10765
  },
10766
+ "k-col/push": {
10767
+ "description": "栅格向右移动的格数,可选值为 0~24",
10768
+ "type": "number | undefined"
10769
+ },
10742
10770
  "k-col/offset": {
10743
10771
  "description": "栅格左侧间隔格数,可选值为 0~24",
10744
10772
  "type": "number | undefined"
10745
10773
  },
10746
- "k-col/push": {
10747
- "description": "栅格向右移动的格数,可选值为 0~24",
10774
+ "k-col/span": {
10775
+ "description": "栅格占位格数,可选值为 0~24,`0` 表示隐藏",
10748
10776
  "type": "number | undefined"
10749
10777
  },
10750
10778
  "k-col/xs": {
@@ -10771,10 +10799,6 @@
10771
10799
  "description": "`≥1600px`",
10772
10800
  "type": "ColResponsiveSize | undefined"
10773
10801
  },
10774
- "k-col/span": {
10775
- "description": "栅格占位格数,可选值为 0~24,`0` 表示隐藏",
10776
- "type": "number | undefined"
10777
- },
10778
10802
  "k-col/order": {
10779
10803
  "description": "栅格顺序,可选值为 0~24",
10780
10804
  "type": "number | undefined"
@@ -10813,7 +10837,7 @@
10813
10837
  },
10814
10838
  "upload/type": {
10815
10839
  "description": "选择上传文件之后所呈现的形式",
10816
- "type": "\"list\" | \"picture\""
10840
+ "type": "\"picture\" | \"list\""
10817
10841
  },
10818
10842
  "upload/name": {
10819
10843
  "description": "发到后台的文件参数名,默认`file`",
@@ -10937,7 +10961,7 @@
10937
10961
  },
10938
10962
  "upload/transformFile": {
10939
10963
  "description": "在上传之前转换文件",
10940
- "type": "((file: File) => Blob | File | Promise<Blob | File>) | undefined"
10964
+ "type": "((file: File) => File | Blob | Promise<File | Blob>) | undefined"
10941
10965
  },
10942
10966
  "upload/fileList": {
10943
10967
  "description": "上传的文件列表",
@@ -10977,39 +11001,39 @@
10977
11001
  },
10978
11002
  "upload/beforeUpload": {
10979
11003
  "description": "上传前校验或转换;返回 `false` 可阻止上传",
10980
- "type": "((item: UploadFile, file: File) => boolean | void | Blob | File | Promise<boolean | void | Blob | File>) | undefined"
11004
+ "type": "((item: UploadFile, file: File) => boolean | File | Blob | void | Promise<boolean | File | Blob | void>) | undefined"
10981
11005
  },
10982
11006
  "upload/change": {
10983
11007
  "description": "上传中、完成、失败都会触发",
10984
- "type": "(...args: unknown[]) => void"
11008
+ "type": "(event: UploadChangeEvent) => void"
10985
11009
  },
10986
11010
  "upload/remove": {
10987
11011
  "description": "移除文件回调",
10988
- "type": "(...args: unknown[]) => void"
11012
+ "type": "(event: UploadChangeEvent) => void"
10989
11013
  },
10990
11014
  "upload/selectFiles": {
10991
11015
  "description": "选中文件时触发,返回选中的文件",
10992
- "type": "(...args: unknown[]) => void"
11016
+ "type": "(files: UploadFile[]) => void"
10993
11017
  },
10994
11018
  "upload/exceed": {
10995
11019
  "description": "limit异常时回调",
10996
- "type": "(...args: unknown[]) => void"
11020
+ "type": "() => void"
10997
11021
  },
10998
11022
  "upload/sizeError": {
10999
11023
  "description": "minSize, maxSize异常时回调",
11000
- "type": "(...args: unknown[]) => void"
11024
+ "type": "(event: UploadChangeEvent) => void"
11001
11025
  },
11002
11026
  "upload/typeError": {
11003
11027
  "description": "文件类型不符合 accept 时触发",
11004
- "type": "(...args: unknown[]) => void"
11028
+ "type": "(event: UploadChangeEvent) => void"
11005
11029
  },
11006
11030
  "upload/sort": {
11007
11031
  "description": "照片顺序改变时触发",
11008
- "type": "(...args: unknown[]) => void"
11032
+ "type": "(event: UploadSortEvent) => void"
11009
11033
  },
11010
11034
  "k-upload/type": {
11011
11035
  "description": "选择上传文件之后所呈现的形式",
11012
- "type": "\"list\" | \"picture\""
11036
+ "type": "\"picture\" | \"list\""
11013
11037
  },
11014
11038
  "k-upload/name": {
11015
11039
  "description": "发到后台的文件参数名,默认`file`",
@@ -11133,7 +11157,7 @@
11133
11157
  },
11134
11158
  "k-upload/transformFile": {
11135
11159
  "description": "在上传之前转换文件",
11136
- "type": "((file: File) => Blob | File | Promise<Blob | File>) | undefined"
11160
+ "type": "((file: File) => File | Blob | Promise<File | Blob>) | undefined"
11137
11161
  },
11138
11162
  "k-upload/fileList": {
11139
11163
  "description": "上传的文件列表",
@@ -11173,35 +11197,35 @@
11173
11197
  },
11174
11198
  "k-upload/beforeUpload": {
11175
11199
  "description": "上传前校验或转换;返回 `false` 可阻止上传",
11176
- "type": "((item: UploadFile, file: File) => boolean | void | Blob | File | Promise<boolean | void | Blob | File>) | undefined"
11200
+ "type": "((item: UploadFile, file: File) => boolean | File | Blob | void | Promise<boolean | File | Blob | void>) | undefined"
11177
11201
  },
11178
11202
  "k-upload/change": {
11179
11203
  "description": "上传中、完成、失败都会触发",
11180
- "type": "(...args: unknown[]) => void"
11204
+ "type": "(event: UploadChangeEvent) => void"
11181
11205
  },
11182
11206
  "k-upload/remove": {
11183
11207
  "description": "移除文件回调",
11184
- "type": "(...args: unknown[]) => void"
11208
+ "type": "(event: UploadChangeEvent) => void"
11185
11209
  },
11186
11210
  "k-upload/selectFiles": {
11187
11211
  "description": "选中文件时触发,返回选中的文件",
11188
- "type": "(...args: unknown[]) => void"
11212
+ "type": "(files: UploadFile[]) => void"
11189
11213
  },
11190
11214
  "k-upload/exceed": {
11191
11215
  "description": "limit异常时回调",
11192
- "type": "(...args: unknown[]) => void"
11216
+ "type": "() => void"
11193
11217
  },
11194
11218
  "k-upload/sizeError": {
11195
11219
  "description": "minSize, maxSize异常时回调",
11196
- "type": "(...args: unknown[]) => void"
11220
+ "type": "(event: UploadChangeEvent) => void"
11197
11221
  },
11198
11222
  "k-upload/typeError": {
11199
11223
  "description": "文件类型不符合 accept 时触发",
11200
- "type": "(...args: unknown[]) => void"
11224
+ "type": "(event: UploadChangeEvent) => void"
11201
11225
  },
11202
11226
  "k-upload/sort": {
11203
11227
  "description": "照片顺序改变时触发",
11204
- "type": "(...args: unknown[]) => void"
11228
+ "type": "(event: UploadSortEvent) => void"
11205
11229
  },
11206
11230
  "watermark/offset": {
11207
11231
  "description": "水印网格平铺时的起始原点偏移量,格式为 `[x, y]`,用于微调边缘留白。",
@@ -11315,14 +11339,14 @@
11315
11339
  "description": "水印格子之间的横向与纵向间距,格式为 `[x, y]`。",
11316
11340
  "type": "number[]"
11317
11341
  },
11318
- "virtual-list/height": {
11319
- "description": "可视区域高度",
11320
- "type": "string | number"
11321
- },
11322
11342
  "virtual-list/data": {
11323
11343
  "description": "列表数据",
11324
11344
  "type": "unknown[]"
11325
11345
  },
11346
+ "virtual-list/height": {
11347
+ "description": "可视区域高度",
11348
+ "type": "string | number"
11349
+ },
11326
11350
  "virtual-list/itemHeight": {
11327
11351
  "description": "每一项的固定高度",
11328
11352
  "type": "number"
@@ -11337,16 +11361,16 @@
11337
11361
  },
11338
11362
  "virtual-list/scroll": {
11339
11363
  "description": "滚动时触发",
11340
- "type": "(...args: unknown[]) => void"
11341
- },
11342
- "k-virtual-list/height": {
11343
- "description": "可视区域高度",
11344
- "type": "string | number"
11364
+ "type": "(event: Event) => void"
11345
11365
  },
11346
11366
  "k-virtual-list/data": {
11347
11367
  "description": "列表数据",
11348
11368
  "type": "unknown[]"
11349
11369
  },
11370
+ "k-virtual-list/height": {
11371
+ "description": "可视区域高度",
11372
+ "type": "string | number"
11373
+ },
11350
11374
  "k-virtual-list/itemHeight": {
11351
11375
  "description": "每一项的固定高度",
11352
11376
  "type": "number"
@@ -11361,6 +11385,6 @@
11361
11385
  },
11362
11386
  "k-virtual-list/scroll": {
11363
11387
  "description": "滚动时触发",
11364
- "type": "(...args: unknown[]) => void"
11388
+ "type": "(event: Event) => void"
11365
11389
  }
11366
11390
  }