@sdata/web-vue 1.8.0 → 1.9.0

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 (120) hide show
  1. package/dist/sd.css +90 -0
  2. package/dist/sd.min.css +1 -1
  3. package/es/_components/input-label/input-label.js +30 -24
  4. package/es/_components/select-view/interface.d.ts +1 -0
  5. package/es/_components/select-view/select-view.d.ts +12 -3
  6. package/es/_components/select-view/select-view.js +38 -28
  7. package/es/_components/select-view/style/index.css +45 -0
  8. package/es/_hooks/use-trigger.d.ts +4 -6
  9. package/es/_hooks/use-trigger.js +7 -5
  10. package/es/auto-complete/auto-complete.d.ts +1 -1
  11. package/es/auto-complete/index.d.ts +3 -3
  12. package/es/badge/badge.d.ts +1 -1
  13. package/es/badge/index.d.ts +3 -3
  14. package/es/carousel/carousel-arrow.vue.d.ts +1 -1
  15. package/es/carousel/carousel.d.ts +2 -2
  16. package/es/carousel/index.d.ts +6 -6
  17. package/es/cascader/cascader-panel.vue.d.ts +2 -2
  18. package/es/cascader/cascader.vue.d.ts +20 -11
  19. package/es/cascader/index.d.ts +44 -26
  20. package/es/config-provider/config-provider.vue.d.ts +1 -1
  21. package/es/config-provider/index.d.ts +3 -3
  22. package/es/date-picker/index.d.ts +6 -6
  23. package/es/date-picker/picker.vue.d.ts +6 -6
  24. package/es/date-picker/range-picker.vue.d.ts +6 -6
  25. package/es/descriptions/descriptions.d.ts +2 -2
  26. package/es/descriptions/index.d.ts +6 -6
  27. package/es/drawer/drawer.vue_vue_type_script_lang.js +1 -1
  28. package/es/dropdown/dropdown-button.vue.d.ts +8 -8
  29. package/es/dropdown/dropdown-panel.vue.d.ts +2 -2
  30. package/es/dropdown/dropdown-submenu.vue.d.ts +8 -8
  31. package/es/dropdown/dropdown.vue.d.ts +8 -8
  32. package/es/dropdown/index.d.ts +32 -32
  33. package/es/ellipsis/ellipsis.vue.d.ts +13 -13
  34. package/es/ellipsis/ellipsis.vue_vue_type_script_lang.js +1 -1
  35. package/es/ellipsis/index.d.ts +56 -56
  36. package/es/ellipsis/performant-ellipsis.vue.d.ts +14 -14
  37. package/es/form/form-item-label.vue.d.ts +12 -12
  38. package/es/form/form-item.vue.d.ts +12 -12
  39. package/es/form/index.d.ts +12 -12
  40. package/es/grid/grid.vue.d.ts +1 -1
  41. package/es/grid/index.d.ts +3 -3
  42. package/es/image/image.vue.d.ts +12 -12
  43. package/es/image/preview-action.d.ts +12 -12
  44. package/es/image/preview-group.vue.d.ts +12 -12
  45. package/es/image/preview-toolbar.vue.d.ts +12 -12
  46. package/es/image/preview.vue.d.ts +12 -12
  47. package/es/index.css +90 -0
  48. package/es/index.js +2 -2
  49. package/es/input-tag/index.d.ts +6 -6
  50. package/es/input-tag/input-tag.d.ts +3 -3
  51. package/es/input-tag/input-tag.js +179 -30
  52. package/es/input-tag/style/index.css +45 -0
  53. package/es/input-tag/style/input-tag.scss +53 -0
  54. package/es/list/index.d.ts +3 -3
  55. package/es/list/list.d.ts +1 -1
  56. package/es/menu/sub-menu-pop.vue.d.ts +6 -6
  57. package/es/modal/modal.vue_vue_type_script_lang.js +1 -1
  58. package/es/overflow-list/index.d.ts +3 -3
  59. package/es/overflow-list/overflow-list.d.ts +1 -1
  60. package/es/pagination/page-options.vue.d.ts +188 -98
  61. package/es/popconfirm/index.d.ts +12 -12
  62. package/es/popconfirm/popconfirm.vue.d.ts +6 -6
  63. package/es/popover/index.d.ts +12 -12
  64. package/es/popover/popover.vue.d.ts +6 -6
  65. package/es/progress/index.d.ts +5 -5
  66. package/es/progress/line.vue.d.ts +1 -1
  67. package/es/progress/progress.vue.d.ts +2 -2
  68. package/es/scrollbar/index.d.ts +2 -2
  69. package/es/scrollbar/scrollbar.vue.d.ts +1 -1
  70. package/es/scrollbar/thumb.vue.d.ts +1 -1
  71. package/es/sd-vue.js +2 -2
  72. package/es/select/hooks/use-options.d.ts +9 -4
  73. package/es/select/hooks/use-options.js +2 -2
  74. package/es/select/hooks/use-select.d.ts +9 -4
  75. package/es/select/index.d.ts +188 -98
  76. package/es/select/interface.d.ts +57 -46
  77. package/es/select/select-dropdown.vue.d.ts +2 -2
  78. package/es/select/select.d.ts +107 -59
  79. package/es/select/select.js +179 -125
  80. package/es/select/utils.d.ts +1 -1
  81. package/es/select/utils.js +28 -10
  82. package/es/skeleton/index.d.ts +1 -1
  83. package/es/skeleton/line.vue.d.ts +1 -1
  84. package/es/slider/index.d.ts +27 -27
  85. package/es/slider/slider-button.vue.d.ts +12 -12
  86. package/es/slider/slider.vue.d.ts +13 -13
  87. package/es/space/index.d.ts +3 -3
  88. package/es/space/space.d.ts +1 -1
  89. package/es/statistic/index.d.ts +6 -6
  90. package/es/statistic/statistic.vue.d.ts +2 -2
  91. package/es/table/index.d.ts +6 -6
  92. package/es/table/table.d.ts +2 -2
  93. package/es/tabs/index.d.ts +9 -9
  94. package/es/tabs/tabs.d.ts +3 -3
  95. package/es/tag/index.d.ts +3 -3
  96. package/es/tag/tag.vue.d.ts +1 -1
  97. package/es/time-picker/index.d.ts +12 -12
  98. package/es/time-picker/time-picker.vue.d.ts +6 -6
  99. package/es/tooltip/index.d.ts +12 -12
  100. package/es/tooltip/tooltip.vue.d.ts +6 -6
  101. package/es/transfer/index.d.ts +10 -10
  102. package/es/transfer/transfer-view.vue.d.ts +5 -5
  103. package/es/transfer/transfer.vue.d.ts +5 -5
  104. package/es/tree/index.d.ts +6 -6
  105. package/es/tree/tree.vue.d.ts +2 -2
  106. package/es/tree-select/hooks/use-selected-state.d.ts +2 -0
  107. package/es/tree-select/hooks/use-selected-state.js +26 -8
  108. package/es/tree-select/index.d.ts +265 -61
  109. package/es/tree-select/interface.d.ts +16 -3
  110. package/es/tree-select/panel.d.ts +6 -6
  111. package/es/tree-select/tree-select.js +28 -15
  112. package/es/tree-select/tree-select.vue.d.ts +143 -30
  113. package/es/tree-select/tree-select.vue_vue_type_script_lang.js +100 -23
  114. package/es/trigger/index.d.ts +6 -6
  115. package/es/trigger/trigger.d.ts +2 -2
  116. package/es/typography/operations.vue.d.ts +12 -12
  117. package/json/vetur-attributes.json +36 -158
  118. package/json/vetur-tags.json +10 -46
  119. package/json/web-types.json +79 -366
  120. package/package.json +7 -7
@@ -293,10 +293,10 @@ declare const TimePicker: {
293
293
  };
294
294
  }>> & Readonly<{
295
295
  onResize?: (() => any) | undefined;
296
+ onHide?: (() => any) | undefined;
297
+ onShow?: (() => any) | undefined;
296
298
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
297
299
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
298
- onShow?: (() => any) | undefined;
299
- onHide?: (() => any) | undefined;
300
300
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
301
301
  'update:popupVisible': (_visible: boolean) => true;
302
302
  popupVisibleChange: (_visible: boolean) => true;
@@ -484,10 +484,10 @@ declare const TimePicker: {
484
484
  };
485
485
  }>> & Readonly<{
486
486
  onResize?: (() => any) | undefined;
487
+ onHide?: (() => any) | undefined;
488
+ onShow?: (() => any) | undefined;
487
489
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
488
490
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
489
- onShow?: (() => any) | undefined;
490
- onHide?: (() => any) | undefined;
491
491
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
492
492
  disabled: boolean;
493
493
  unmountOnClose: boolean;
@@ -666,10 +666,10 @@ declare const TimePicker: {
666
666
  };
667
667
  }>> & Readonly<{
668
668
  onResize?: (() => any) | undefined;
669
+ onHide?: (() => any) | undefined;
670
+ onShow?: (() => any) | undefined;
669
671
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
670
672
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
671
- onShow?: (() => any) | undefined;
672
- onHide?: (() => any) | undefined;
673
673
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
674
674
  'update:popupVisible': (_visible: boolean) => true;
675
675
  popupVisibleChange: (_visible: boolean) => true;
@@ -4220,10 +4220,10 @@ declare const TimePicker: {
4220
4220
  };
4221
4221
  }>> & Readonly<{
4222
4222
  onResize?: (() => any) | undefined;
4223
+ onHide?: (() => any) | undefined;
4224
+ onShow?: (() => any) | undefined;
4223
4225
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
4224
4226
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
4225
- onShow?: (() => any) | undefined;
4226
- onHide?: (() => any) | undefined;
4227
4227
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4228
4228
  'update:popupVisible': (_visible: boolean) => true;
4229
4229
  popupVisibleChange: (_visible: boolean) => true;
@@ -4411,10 +4411,10 @@ declare const TimePicker: {
4411
4411
  };
4412
4412
  }>> & Readonly<{
4413
4413
  onResize?: (() => any) | undefined;
4414
+ onHide?: (() => any) | undefined;
4415
+ onShow?: (() => any) | undefined;
4414
4416
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
4415
4417
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
4416
- onShow?: (() => any) | undefined;
4417
- onHide?: (() => any) | undefined;
4418
4418
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
4419
4419
  disabled: boolean;
4420
4420
  unmountOnClose: boolean;
@@ -4593,10 +4593,10 @@ declare const TimePicker: {
4593
4593
  };
4594
4594
  }>> & Readonly<{
4595
4595
  onResize?: (() => any) | undefined;
4596
+ onHide?: (() => any) | undefined;
4597
+ onShow?: (() => any) | undefined;
4596
4598
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
4597
4599
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
4598
- onShow?: (() => any) | undefined;
4599
- onHide?: (() => any) | undefined;
4600
4600
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4601
4601
  'update:popupVisible': (_visible: boolean) => true;
4602
4602
  popupVisibleChange: (_visible: boolean) => true;
@@ -375,10 +375,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
375
375
  };
376
376
  }>> & Readonly<{
377
377
  onResize?: (() => any) | undefined;
378
+ onHide?: (() => any) | undefined;
379
+ onShow?: (() => any) | undefined;
378
380
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
379
381
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
380
- onShow?: (() => any) | undefined;
381
- onHide?: (() => any) | undefined;
382
382
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
383
383
  'update:popupVisible': (_visible: boolean) => true;
384
384
  popupVisibleChange: (_visible: boolean) => true;
@@ -566,10 +566,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
566
566
  };
567
567
  }>> & Readonly<{
568
568
  onResize?: (() => any) | undefined;
569
+ onHide?: (() => any) | undefined;
570
+ onShow?: (() => any) | undefined;
569
571
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
570
572
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
571
- onShow?: (() => any) | undefined;
572
- onHide?: (() => any) | undefined;
573
573
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
574
574
  disabled: boolean;
575
575
  unmountOnClose: boolean;
@@ -748,10 +748,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
748
748
  };
749
749
  }>> & Readonly<{
750
750
  onResize?: (() => any) | undefined;
751
+ onHide?: (() => any) | undefined;
752
+ onShow?: (() => any) | undefined;
751
753
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
752
754
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
753
- onShow?: (() => any) | undefined;
754
- onHide?: (() => any) | undefined;
755
755
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
756
756
  'update:popupVisible': (_visible: boolean) => true;
757
757
  popupVisibleChange: (_visible: boolean) => true;
@@ -209,10 +209,10 @@ declare const Tooltip: {
209
209
  };
210
210
  }>> & Readonly<{
211
211
  onResize?: (() => any) | undefined;
212
+ onHide?: (() => any) | undefined;
213
+ onShow?: (() => any) | undefined;
212
214
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
213
215
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
214
- onShow?: (() => any) | undefined;
215
- onHide?: (() => any) | undefined;
216
216
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
217
217
  'update:popupVisible': (_visible: boolean) => true;
218
218
  popupVisibleChange: (_visible: boolean) => true;
@@ -400,10 +400,10 @@ declare const Tooltip: {
400
400
  };
401
401
  }>> & Readonly<{
402
402
  onResize?: (() => any) | undefined;
403
+ onHide?: (() => any) | undefined;
404
+ onShow?: (() => any) | undefined;
403
405
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
404
406
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
405
- onShow?: (() => any) | undefined;
406
- onHide?: (() => any) | undefined;
407
407
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
408
408
  disabled: boolean;
409
409
  unmountOnClose: boolean;
@@ -582,10 +582,10 @@ declare const Tooltip: {
582
582
  };
583
583
  }>> & Readonly<{
584
584
  onResize?: (() => any) | undefined;
585
+ onHide?: (() => any) | undefined;
586
+ onShow?: (() => any) | undefined;
585
587
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
586
588
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
587
- onShow?: (() => any) | undefined;
588
- onHide?: (() => any) | undefined;
589
589
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
590
590
  'update:popupVisible': (_visible: boolean) => true;
591
591
  popupVisibleChange: (_visible: boolean) => true;
@@ -899,10 +899,10 @@ declare const Tooltip: {
899
899
  };
900
900
  }>> & Readonly<{
901
901
  onResize?: (() => any) | undefined;
902
+ onHide?: (() => any) | undefined;
903
+ onShow?: (() => any) | undefined;
902
904
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
903
905
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
904
- onShow?: (() => any) | undefined;
905
- onHide?: (() => any) | undefined;
906
906
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
907
907
  'update:popupVisible': (_visible: boolean) => true;
908
908
  popupVisibleChange: (_visible: boolean) => true;
@@ -1090,10 +1090,10 @@ declare const Tooltip: {
1090
1090
  };
1091
1091
  }>> & Readonly<{
1092
1092
  onResize?: (() => any) | undefined;
1093
+ onHide?: (() => any) | undefined;
1094
+ onShow?: (() => any) | undefined;
1093
1095
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
1094
1096
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
1095
- onShow?: (() => any) | undefined;
1096
- onHide?: (() => any) | undefined;
1097
1097
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
1098
1098
  disabled: boolean;
1099
1099
  unmountOnClose: boolean;
@@ -1272,10 +1272,10 @@ declare const Tooltip: {
1272
1272
  };
1273
1273
  }>> & Readonly<{
1274
1274
  onResize?: (() => any) | undefined;
1275
+ onHide?: (() => any) | undefined;
1276
+ onShow?: (() => any) | undefined;
1275
1277
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
1276
1278
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
1277
- onShow?: (() => any) | undefined;
1278
- onHide?: (() => any) | undefined;
1279
1279
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1280
1280
  'update:popupVisible': (_visible: boolean) => true;
1281
1281
  popupVisibleChange: (_visible: boolean) => true;
@@ -251,10 +251,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
251
251
  };
252
252
  }>> & Readonly<{
253
253
  onResize?: (() => any) | undefined;
254
+ onHide?: (() => any) | undefined;
255
+ onShow?: (() => any) | undefined;
254
256
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
255
257
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
256
- onShow?: (() => any) | undefined;
257
- onHide?: (() => any) | undefined;
258
258
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
259
259
  'update:popupVisible': (_visible: boolean) => true;
260
260
  popupVisibleChange: (_visible: boolean) => true;
@@ -442,10 +442,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
442
442
  };
443
443
  }>> & Readonly<{
444
444
  onResize?: (() => any) | undefined;
445
+ onHide?: (() => any) | undefined;
446
+ onShow?: (() => any) | undefined;
445
447
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
446
448
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
447
- onShow?: (() => any) | undefined;
448
- onHide?: (() => any) | undefined;
449
449
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
450
450
  disabled: boolean;
451
451
  unmountOnClose: boolean;
@@ -624,10 +624,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
624
624
  };
625
625
  }>> & Readonly<{
626
626
  onResize?: (() => any) | undefined;
627
+ onHide?: (() => any) | undefined;
628
+ onShow?: (() => any) | undefined;
627
629
  "onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
628
630
  onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
629
- onShow?: (() => any) | undefined;
630
- onHide?: (() => any) | undefined;
631
631
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
632
632
  'update:popupVisible': (_visible: boolean) => true;
633
633
  popupVisibleChange: (_visible: boolean) => true;
@@ -1135,8 +1135,8 @@ declare const Transfer: {
1135
1135
  size: "small" | "medium" | "large";
1136
1136
  loading: boolean;
1137
1137
  split: boolean;
1138
- bordered: boolean;
1139
1138
  scrollbar: boolean | import("..").ScrollbarProps;
1139
+ bordered: boolean;
1140
1140
  bottomOffset: number;
1141
1141
  maxHeight: string | number;
1142
1142
  hoverable: boolean;
@@ -1206,8 +1206,8 @@ declare const Transfer: {
1206
1206
  size: "small" | "medium" | "large";
1207
1207
  loading: boolean;
1208
1208
  split: boolean;
1209
- bordered: boolean;
1210
1209
  scrollbar: boolean | import("..").ScrollbarProps;
1210
+ bordered: boolean;
1211
1211
  bottomOffset: number;
1212
1212
  maxHeight: string | number;
1213
1213
  hoverable: boolean;
@@ -1279,8 +1279,8 @@ declare const Transfer: {
1279
1279
  size: "small" | "medium" | "large";
1280
1280
  loading: boolean;
1281
1281
  split: boolean;
1282
- bordered: boolean;
1283
1282
  scrollbar: boolean | import("..").ScrollbarProps;
1283
+ bordered: boolean;
1284
1284
  bottomOffset: number;
1285
1285
  maxHeight: string | number;
1286
1286
  hoverable: boolean;
@@ -1489,9 +1489,9 @@ declare const Transfer: {
1489
1489
  }>> & Readonly<{
1490
1490
  onScroll?: ((...args: any[]) => any) | undefined;
1491
1491
  }>, {
1492
- both: boolean;
1493
1492
  direction: "horizontal" | "vertical";
1494
1493
  alwaysShow: boolean;
1494
+ both: boolean;
1495
1495
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1496
1496
  } & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
1497
1497
  P: {};
@@ -1669,9 +1669,9 @@ declare const Transfer: {
1669
1669
  }>> & Readonly<{
1670
1670
  onScroll?: ((...args: any[]) => any) | undefined;
1671
1671
  }>, {
1672
- both: boolean;
1673
1672
  direction: "horizontal" | "vertical";
1674
1673
  alwaysShow: boolean;
1674
+ both: boolean;
1675
1675
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1676
1676
  } & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
1677
1677
  install: (app: App, options?: SDOptions) => void;
@@ -3141,8 +3141,8 @@ declare const Transfer: {
3141
3141
  size: "small" | "medium" | "large";
3142
3142
  loading: boolean;
3143
3143
  split: boolean;
3144
- bordered: boolean;
3145
3144
  scrollbar: boolean | import("..").ScrollbarProps;
3145
+ bordered: boolean;
3146
3146
  bottomOffset: number;
3147
3147
  maxHeight: string | number;
3148
3148
  hoverable: boolean;
@@ -3212,8 +3212,8 @@ declare const Transfer: {
3212
3212
  size: "small" | "medium" | "large";
3213
3213
  loading: boolean;
3214
3214
  split: boolean;
3215
- bordered: boolean;
3216
3215
  scrollbar: boolean | import("..").ScrollbarProps;
3216
+ bordered: boolean;
3217
3217
  bottomOffset: number;
3218
3218
  maxHeight: string | number;
3219
3219
  hoverable: boolean;
@@ -3285,8 +3285,8 @@ declare const Transfer: {
3285
3285
  size: "small" | "medium" | "large";
3286
3286
  loading: boolean;
3287
3287
  split: boolean;
3288
- bordered: boolean;
3289
3288
  scrollbar: boolean | import("..").ScrollbarProps;
3289
+ bordered: boolean;
3290
3290
  bottomOffset: number;
3291
3291
  maxHeight: string | number;
3292
3292
  hoverable: boolean;
@@ -3495,9 +3495,9 @@ declare const Transfer: {
3495
3495
  }>> & Readonly<{
3496
3496
  onScroll?: ((...args: any[]) => any) | undefined;
3497
3497
  }>, {
3498
- both: boolean;
3499
3498
  direction: "horizontal" | "vertical";
3500
3499
  alwaysShow: boolean;
3500
+ both: boolean;
3501
3501
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3502
3502
  } & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
3503
3503
  P: {};
@@ -3675,9 +3675,9 @@ declare const Transfer: {
3675
3675
  }>> & Readonly<{
3676
3676
  onScroll?: ((...args: any[]) => any) | undefined;
3677
3677
  }>, {
3678
- both: boolean;
3679
3678
  direction: "horizontal" | "vertical";
3680
3679
  alwaysShow: boolean;
3680
+ both: boolean;
3681
3681
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3682
3682
  } & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
3683
3683
  install: (app: App, options?: SDOptions) => void;
@@ -606,8 +606,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
606
606
  size: "small" | "medium" | "large";
607
607
  loading: boolean;
608
608
  split: boolean;
609
- bordered: boolean;
610
609
  scrollbar: boolean | import("../scrollbar").ScrollbarProps;
610
+ bordered: boolean;
611
611
  bottomOffset: number;
612
612
  maxHeight: string | number;
613
613
  hoverable: boolean;
@@ -677,8 +677,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
677
677
  size: "small" | "medium" | "large";
678
678
  loading: boolean;
679
679
  split: boolean;
680
- bordered: boolean;
681
680
  scrollbar: boolean | import("../scrollbar").ScrollbarProps;
681
+ bordered: boolean;
682
682
  bottomOffset: number;
683
683
  maxHeight: string | number;
684
684
  hoverable: boolean;
@@ -750,8 +750,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
750
750
  size: "small" | "medium" | "large";
751
751
  loading: boolean;
752
752
  split: boolean;
753
- bordered: boolean;
754
753
  scrollbar: boolean | import("../scrollbar").ScrollbarProps;
754
+ bordered: boolean;
755
755
  bottomOffset: number;
756
756
  maxHeight: string | number;
757
757
  hoverable: boolean;
@@ -960,9 +960,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
960
960
  }>> & Readonly<{
961
961
  onScroll?: ((...args: any[]) => any) | undefined;
962
962
  }>, {
963
- both: boolean;
964
963
  direction: "horizontal" | "vertical";
965
964
  alwaysShow: boolean;
965
+ both: boolean;
966
966
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
967
967
  } & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
968
968
  P: {};
@@ -1140,9 +1140,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
1140
1140
  }>> & Readonly<{
1141
1141
  onScroll?: ((...args: any[]) => any) | undefined;
1142
1142
  }>, {
1143
- both: boolean;
1144
1143
  direction: "horizontal" | "vertical";
1145
1144
  alwaysShow: boolean;
1145
+ both: boolean;
1146
1146
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1147
1147
  } & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
1148
1148
  install: (app: import("vue").App, options?: import("../_utils/types.js").SDOptions) => void;
@@ -1186,8 +1186,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
1186
1186
  size: "small" | "medium" | "large";
1187
1187
  loading: boolean;
1188
1188
  split: boolean;
1189
- bordered: boolean;
1190
1189
  scrollbar: boolean | import("..").ScrollbarProps;
1190
+ bordered: boolean;
1191
1191
  bottomOffset: number;
1192
1192
  maxHeight: string | number;
1193
1193
  hoverable: boolean;
@@ -1257,8 +1257,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
1257
1257
  size: "small" | "medium" | "large";
1258
1258
  loading: boolean;
1259
1259
  split: boolean;
1260
- bordered: boolean;
1261
1260
  scrollbar: boolean | import("..").ScrollbarProps;
1261
+ bordered: boolean;
1262
1262
  bottomOffset: number;
1263
1263
  maxHeight: string | number;
1264
1264
  hoverable: boolean;
@@ -1330,8 +1330,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
1330
1330
  size: "small" | "medium" | "large";
1331
1331
  loading: boolean;
1332
1332
  split: boolean;
1333
- bordered: boolean;
1334
1333
  scrollbar: boolean | import("..").ScrollbarProps;
1334
+ bordered: boolean;
1335
1335
  bottomOffset: number;
1336
1336
  maxHeight: string | number;
1337
1337
  hoverable: boolean;
@@ -1540,9 +1540,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
1540
1540
  }>> & Readonly<{
1541
1541
  onScroll?: ((...args: any[]) => any) | undefined;
1542
1542
  }>, {
1543
- both: boolean;
1544
1543
  direction: "horizontal" | "vertical";
1545
1544
  alwaysShow: boolean;
1545
+ both: boolean;
1546
1546
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1547
1547
  } & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
1548
1548
  P: {};
@@ -1720,9 +1720,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
1720
1720
  }>> & Readonly<{
1721
1721
  onScroll?: ((...args: any[]) => any) | undefined;
1722
1722
  }>, {
1723
- both: boolean;
1724
1723
  direction: "horizontal" | "vertical";
1725
1724
  alwaysShow: boolean;
1725
+ both: boolean;
1726
1726
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1727
1727
  } & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
1728
1728
  install: (app: import("vue").App, options?: import("../_utils/types").SDOptions) => void;
@@ -184,8 +184,8 @@ declare const Tree: {
184
184
  level: number;
185
185
  isLeaf: boolean;
186
186
  }) => boolean);
187
- readonly checkStrictly: boolean;
188
187
  readonly animation: boolean;
188
+ readonly checkStrictly: boolean;
189
189
  readonly selectable: boolean | ((node: import("./interface").TreeNodeData, info: {
190
190
  level: number;
191
191
  isLeaf: boolean;
@@ -427,8 +427,8 @@ declare const Tree: {
427
427
  level: number;
428
428
  isLeaf: boolean;
429
429
  }) => boolean);
430
- checkStrictly: boolean;
431
430
  animation: boolean;
431
+ checkStrictly: boolean;
432
432
  selectable: boolean | ((node: import("./interface").TreeNodeData, info: {
433
433
  level: number;
434
434
  isLeaf: boolean;
@@ -782,8 +782,8 @@ declare const Tree: {
782
782
  level: number;
783
783
  isLeaf: boolean;
784
784
  }) => boolean);
785
- readonly checkStrictly: boolean;
786
785
  readonly animation: boolean;
786
+ readonly checkStrictly: boolean;
787
787
  readonly selectable: boolean | ((node: import("./interface").TreeNodeData, info: {
788
788
  level: number;
789
789
  isLeaf: boolean;
@@ -990,8 +990,8 @@ declare const Tree: {
990
990
  level: number;
991
991
  isLeaf: boolean;
992
992
  }) => boolean);
993
- checkStrictly: boolean;
994
993
  animation: boolean;
994
+ checkStrictly: boolean;
995
995
  selectable: boolean | ((node: import("./interface").TreeNodeData, info: {
996
996
  level: number;
997
997
  isLeaf: boolean;
@@ -1191,8 +1191,8 @@ declare const Tree: {
1191
1191
  level: number;
1192
1192
  isLeaf: boolean;
1193
1193
  }) => boolean);
1194
- readonly checkStrictly: boolean;
1195
1194
  readonly animation: boolean;
1195
+ readonly checkStrictly: boolean;
1196
1196
  readonly selectable: boolean | ((node: import("./interface").TreeNodeData, info: {
1197
1197
  level: number;
1198
1198
  isLeaf: boolean;
@@ -1434,8 +1434,8 @@ declare const Tree: {
1434
1434
  level: number;
1435
1435
  isLeaf: boolean;
1436
1436
  }) => boolean);
1437
- checkStrictly: boolean;
1438
1437
  animation: boolean;
1438
+ checkStrictly: boolean;
1439
1439
  selectable: boolean | ((node: import("./interface").TreeNodeData, info: {
1440
1440
  level: number;
1441
1441
  isLeaf: boolean;
@@ -149,8 +149,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
149
149
  level: number;
150
150
  isLeaf: boolean;
151
151
  }) => boolean);
152
- readonly checkStrictly: boolean;
153
152
  readonly animation: boolean;
153
+ readonly checkStrictly: boolean;
154
154
  readonly selectable: boolean | ((node: TreeNodeData, info: {
155
155
  level: number;
156
156
  isLeaf: boolean;
@@ -541,8 +541,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
541
541
  level: number;
542
542
  isLeaf: boolean;
543
543
  }) => boolean);
544
- checkStrictly: boolean;
545
544
  animation: boolean;
545
+ checkStrictly: boolean;
546
546
  selectable: boolean | ((node: TreeNodeData, info: {
547
547
  level: number;
548
548
  isLeaf: boolean;
@@ -9,6 +9,8 @@ export default function useSelectedState(props: {
9
9
  treeCheckStrictly?: boolean;
10
10
  fallbackOption?: FallbackOption;
11
11
  fieldNames?: TreeFieldNames;
12
+ showPath?: boolean;
13
+ separator?: string;
12
14
  }): {
13
15
  selectedKeys: import("vue").ComputedRef<TreeNodeKey[]>;
14
16
  selectedValue: import("vue").ComputedRef<LabelValue[]>;
@@ -22,7 +22,18 @@ function getKeys(value) {
22
22
  }
23
23
  function useSelectedState(props) {
24
24
  var _defaultValue$value;
25
- const { defaultValue, modelValue, key2TreeNode, multiple, treeCheckable, fallbackOption, fieldNames } = toRefs(props);
25
+ const { defaultValue, modelValue, key2TreeNode, multiple, treeCheckable, fallbackOption, fieldNames, showPath, separator } = toRefs(props);
26
+ function getPathLabel(key, node) {
27
+ var _fieldNames$value, _separator$value;
28
+ if (!(showPath === null || showPath === void 0 ? void 0 : showPath.value) || !node) return;
29
+ const nodeDataTitle = (fieldNames === null || fieldNames === void 0 || (_fieldNames$value = fieldNames.value) === null || _fieldNames$value === void 0 ? void 0 : _fieldNames$value.title) || "title";
30
+ return [...node.pathParentKeys, key].map((pathKey) => key2TreeNode.value.get(pathKey)).filter((pathNode) => Boolean(pathNode)).map((pathNode) => {
31
+ const pathLabel = pathNode.treeNodeData[nodeDataTitle];
32
+ if (typeof pathLabel === "string" || typeof pathLabel === "number") return String(pathLabel);
33
+ if (typeof pathNode.title === "string" || typeof pathNode.title === "number") return String(pathNode.title);
34
+ return String(pathNode.key);
35
+ }).join((_separator$value = separator === null || separator === void 0 ? void 0 : separator.value) !== null && _separator$value !== void 0 ? _separator$value : " / ");
36
+ }
26
37
  function normalizeValue(value) {
27
38
  const validValue = (isArray(value) ? value : [value]).filter(isValidValue);
28
39
  return (multiple === null || multiple === void 0 ? void 0 : multiple.value) || (treeCheckable === null || treeCheckable === void 0 ? void 0 : treeCheckable.value) ? validValue : validValue.slice(0, 1);
@@ -36,12 +47,12 @@ function useSelectedState(props) {
36
47
  originValueMap.set(item.value, item);
37
48
  });
38
49
  validValue.forEach((item) => {
39
- var _fieldNames$value, _ref, _ref2, _ref3, _getLabel;
50
+ var _fieldNames$value2, _ref, _ref2, _ref3, _ref4, _getLabel;
40
51
  const key = getKey(item);
41
52
  const originValueItem = originValueMap.get(key);
42
53
  const node = key2TreeNode.value.get(key);
43
54
  let fallbackNodeData = null;
44
- const nodeDataTitle = (fieldNames === null || fieldNames === void 0 || (_fieldNames$value = fieldNames.value) === null || _fieldNames$value === void 0 ? void 0 : _fieldNames$value.title) || "title";
55
+ const nodeDataTitle = (fieldNames === null || fieldNames === void 0 || (_fieldNames$value2 = fieldNames.value) === null || _fieldNames$value2 === void 0 ? void 0 : _fieldNames$value2.title) || "title";
45
56
  if (!node) {
46
57
  const fallbackResult = isFunction(fallbackOption === null || fallbackOption === void 0 ? void 0 : fallbackOption.value) ? fallbackOption === null || fallbackOption === void 0 ? void 0 : fallbackOption.value(key) : fallbackOption === null || fallbackOption === void 0 ? void 0 : fallbackOption.value;
47
58
  if (fallbackResult === false) return;
@@ -49,7 +60,7 @@ function useSelectedState(props) {
49
60
  }
50
61
  res.push(_objectSpread2(_objectSpread2(_objectSpread2({}, isLabelValue(item) ? item : {}), originValueItem), {}, {
51
62
  value: key,
52
- label: (_ref = (_ref2 = (_ref3 = (_getLabel = getLabel(item)) !== null && _getLabel !== void 0 ? _getLabel : node === null || node === void 0 ? void 0 : node.title) !== null && _ref3 !== void 0 ? _ref3 : originValueItem === null || originValueItem === void 0 ? void 0 : originValueItem.label) !== null && _ref2 !== void 0 ? _ref2 : fallbackNodeData === null || fallbackNodeData === void 0 ? void 0 : fallbackNodeData[nodeDataTitle]) !== null && _ref !== void 0 ? _ref : key
63
+ label: (_ref = (_ref2 = (_ref3 = (_ref4 = (_getLabel = getLabel(item)) !== null && _getLabel !== void 0 ? _getLabel : getPathLabel(key, node)) !== null && _ref4 !== void 0 ? _ref4 : node === null || node === void 0 ? void 0 : node.title) !== null && _ref3 !== void 0 ? _ref3 : originValueItem === null || originValueItem === void 0 ? void 0 : originValueItem.label) !== null && _ref2 !== void 0 ? _ref2 : fallbackNodeData === null || fallbackNodeData === void 0 ? void 0 : fallbackNodeData[nodeDataTitle]) !== null && _ref !== void 0 ? _ref : key
53
64
  }));
54
65
  });
55
66
  }
@@ -67,11 +78,18 @@ function useSelectedState(props) {
67
78
  });
68
79
  const normalizeDefaultValue = normalizeValue((_defaultValue$value = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value) !== null && _defaultValue$value !== void 0 ? _defaultValue$value : []);
69
80
  const defaultKeys = getKeys(normalizeDefaultValue);
70
- const defaultLabelValues = getLabelValues(defaultKeys, getLabelValues(normalizeDefaultValue));
81
+ const defaultLabelValues = computed(() => getLabelValues(defaultKeys, getLabelValues(normalizeDefaultValue)));
71
82
  const localValueKeys = ref(defaultKeys || []);
72
- const localValue = ref(defaultLabelValues);
73
- watch(localValueKeys, () => {
74
- localValue.value = getLabelValues(localValueKeys.value, defaultLabelValues);
83
+ const localValue = ref(defaultLabelValues.value);
84
+ watch([
85
+ localValueKeys,
86
+ key2TreeNode,
87
+ fieldNames,
88
+ showPath,
89
+ separator,
90
+ defaultLabelValues
91
+ ], () => {
92
+ localValue.value = getLabelValues(localValueKeys.value, defaultLabelValues.value);
75
93
  });
76
94
  watch([computedModelValueKeys, computedModelValue], ([valueKeys, value]) => {
77
95
  localValueKeys.value = valueKeys || [];