straw-ui-vue 0.1.48 → 0.1.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/components/st-cascade/desktop/st-cascade-desktop.d.ts +22 -11
  2. package/dist/components/st-cascade/desktop/types/st-cascade-desktop.d.ts +9 -3
  3. package/dist/components/st-cascade/index.d.ts +319 -162
  4. package/dist/components/st-cascade/phone/st-cascade-phone.d.ts +23 -13
  5. package/dist/components/st-cascade/phone/types/st-cascade-phone.d.ts +10 -6
  6. package/dist/components/st-cascade/st-cascade-group.d.ts +20 -11
  7. package/dist/components/st-cascade/st-cascade.d.ts +22 -11
  8. package/dist/components/st-cascade/types/st-cascade-context.d.ts +12 -4
  9. package/dist/components/st-cascade/types/st-cascade-group.d.ts +5 -3
  10. package/dist/components/st-cascade/useCascadeState.d.ts +6 -0
  11. package/dist/components/st-checkbox/index.d.ts +6 -6
  12. package/dist/components/st-checkbox/st-checkbox-group.d.ts +1 -1
  13. package/dist/components/st-checkbox/types/st-checkbox-group.d.ts +1 -1
  14. package/dist/components/st-confirm/index.d.ts +5 -5
  15. package/dist/components/st-confirm/st-confirm.d.ts +2 -2
  16. package/dist/components/st-date-picker/desktop/types/st-date-picker-desktop.d.ts +0 -4
  17. package/dist/components/st-date-picker/index.d.ts +6 -6
  18. package/dist/components/st-date-picker/st-picker-trigger.d.ts +1 -1
  19. package/dist/components/st-dialog/desktop/st-dialog-desktop.d.ts +2 -2
  20. package/dist/components/st-dialog/index.d.ts +25 -25
  21. package/dist/components/st-dialog/phone/st-dialog-phone.d.ts +2 -2
  22. package/dist/components/st-dialog/st-dialog.d.ts +2 -2
  23. package/dist/components/st-drawer/desktop/st-drawer-desktop-group.d.ts +2 -2
  24. package/dist/components/st-drawer/desktop/st-drawer-desktop.d.ts +2 -2
  25. package/dist/components/st-drawer/index.d.ts +55 -55
  26. package/dist/components/st-drawer/phone/st-drawer-phone-group.d.ts +2 -2
  27. package/dist/components/st-drawer/phone/st-drawer-phone.d.ts +2 -2
  28. package/dist/components/st-drawer/st-drawer-group.d.ts +2 -2
  29. package/dist/components/st-drawer/st-drawer.d.ts +2 -2
  30. package/dist/components/st-input/index.d.ts +0 -9
  31. package/dist/components/st-input/st-input-group.d.ts +0 -1
  32. package/dist/components/st-input/st-input.d.ts +0 -1
  33. package/dist/components/st-input/types/st-input-group.d.ts +4 -4
  34. package/dist/components/st-input/types/st-input.d.ts +0 -2
  35. package/dist/components/st-message/index.d.ts +5 -5
  36. package/dist/components/st-message/st-message.d.ts +2 -2
  37. package/dist/components/st-prompt/index.d.ts +5 -5
  38. package/dist/components/st-prompt/st-prompt.d.ts +2 -2
  39. package/dist/components/st-radio/index.d.ts +15 -15
  40. package/dist/components/st-radio/st-radio-group.d.ts +2 -2
  41. package/dist/components/st-radio/st-radio.d.ts +1 -1
  42. package/dist/components/st-radio/types/st-radio-group.d.ts +1 -1
  43. package/dist/components/st-scrollbar/types/st-scrollbar-group-scroller.d.ts +1 -1
  44. package/dist/components/st-scrollbar/types/st-scrollbar-group-virtual.d.ts +2 -2
  45. package/dist/components/st-scrollbar/types/st-scrollbar.d.ts +3 -3
  46. package/dist/components/st-segmented/index.d.ts +3 -3
  47. package/dist/components/st-segmented/st-segmented.d.ts +1 -1
  48. package/dist/components/st-segmented/types/st-segmented.d.ts +2 -2
  49. package/dist/components/st-select/desktop/st-select-desktop.d.ts +5 -0
  50. package/dist/components/st-select/desktop/types/st-select-desktop.d.ts +12 -0
  51. package/dist/components/st-select/index.d.ts +106 -0
  52. package/dist/components/st-select/phone/st-select-phone-footer.d.ts +1 -0
  53. package/dist/components/st-select/phone/st-select-phone.d.ts +8 -0
  54. package/dist/components/st-select/phone/types/st-select-phone-footer.d.ts +2 -0
  55. package/dist/components/st-select/phone/types/st-select-phone.d.ts +16 -0
  56. package/dist/components/st-select/st-select-content.d.ts +2 -2
  57. package/dist/components/st-select/st-select-group-list.d.ts +4 -0
  58. package/dist/components/st-select/types/st-select-group-list.d.ts +8 -0
  59. package/dist/components/st-sidebar/index.d.ts +9 -0
  60. package/dist/components/st-sidebar/st-sidebar-group.d.ts +1 -0
  61. package/dist/components/st-sidebar/st-sidebar.d.ts +1 -0
  62. package/dist/components/st-sidebar/types/st-sidebar-context.d.ts +41 -37
  63. package/dist/components/st-sidebar/types/st-sidebar-group.d.ts +34 -30
  64. package/dist/components/st-sidebar/types/st-sidebar.d.ts +39 -37
  65. package/dist/components/st-tree/index.d.ts +92 -35
  66. package/dist/components/st-tree/st-tree-group-node.d.ts +1 -1
  67. package/dist/components/st-tree/st-tree-group.d.ts +14 -5
  68. package/dist/components/st-tree/st-tree.d.ts +15 -6
  69. package/dist/components/st-tree/types/st-tree-context.d.ts +3 -0
  70. package/dist/components/st-tree/types/st-tree-group-node.d.ts +2 -2
  71. package/dist/components/st-tree/types/st-tree-group.d.ts +7 -5
  72. package/dist/components/st-tree/types/st-tree.d.ts +7 -5
  73. package/dist/straw-ui.js +2869 -2557
  74. package/dist/utils.js +1 -1
  75. package/package.json +94 -94
@@ -1,26 +1,34 @@
1
1
  import { StCascadeDesktopExpose, StCascadeDesktopProps, StCascadeDesktopSlots } from './types/st-cascade-desktop.d.ts';
2
- import { StCascadePath } from '../types/st-cascade-context.d.ts';
2
+ import { StCascadePath, StCascadeValue } from '../types/st-cascade-context.d.ts';
3
3
  type __VLS_Slots = StCascadeDesktopSlots;
4
4
  type __VLS_Props = StCascadeDesktopProps;
5
5
  type __VLS_ModelProps = {
6
- /** 单选模式下的选中路径 */
7
- modelValue?: StCascadePath;
8
- /** 多选模式下的选中路径列表 */
9
- 'multipleValue'?: StCascadePath[];
6
+ /** 单选模式下的选中值(末级节点值,由 path 末位投影) */
7
+ modelValue?: StCascadeValue;
8
+ /** 单选模式下的选中路径(选中态真源) */
9
+ 'path'?: StCascadePath;
10
+ /** 多选模式下的选中值列表(末级节点值,由 multiplePaths 末位投影) */
11
+ 'multipleValue'?: StCascadeValue[];
12
+ /** 多选模式下的选中路径列表(勾选态真源) */
13
+ 'multiplePaths'?: StCascadePath[];
10
14
  };
11
15
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
12
16
  declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, StCascadeDesktopExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
17
  clear: () => any;
14
- change: (value: StCascadePath | StCascadePath[]) => any;
18
+ change: (value: StCascadeValue | StCascadeValue[]) => any;
15
19
  visibleChange: (visible: boolean) => any;
16
- "update:modelValue": (value: StCascadePath) => any;
17
- "update:multipleValue": (value: StCascadePath[]) => any;
20
+ "update:modelValue": (value: StCascadeValue) => any;
21
+ "update:path": (value: StCascadePath) => any;
22
+ "update:multipleValue": (value: StCascadeValue[]) => any;
23
+ "update:multiplePaths": (value: StCascadePath[]) => any;
18
24
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
25
  onClear?: () => any;
20
- onChange?: (value: StCascadePath | StCascadePath[]) => any;
26
+ onChange?: (value: StCascadeValue | StCascadeValue[]) => any;
21
27
  onVisibleChange?: (visible: boolean) => any;
22
- "onUpdate:modelValue"?: (value: StCascadePath) => any;
23
- "onUpdate:multipleValue"?: (value: StCascadePath[]) => any;
28
+ "onUpdate:modelValue"?: (value: StCascadeValue) => any;
29
+ "onUpdate:path"?: (value: StCascadePath) => any;
30
+ "onUpdate:multipleValue"?: (value: StCascadeValue[]) => any;
31
+ "onUpdate:multiplePaths"?: (value: StCascadePath[]) => any;
24
32
  }>, {
25
33
  size: import('../../../types.ts').StSize;
26
34
  disabled: boolean;
@@ -31,7 +39,10 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, StCas
31
39
  placeholder: string;
32
40
  clearable: boolean;
33
41
  multiple: boolean;
42
+ strict: boolean;
43
+ expandOnClick: boolean | "auto";
34
44
  separator: string;
45
+ showPath: boolean;
35
46
  defaultExpandedAll: boolean;
36
47
  floatingLabel: boolean;
37
48
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,5 +1,5 @@
1
1
  import type { ClassValue, StyleValue, VNodeChild } from 'vue';
2
- import type { StCascadeOption, StCascadePath } from '../../types/st-cascade-context.d.ts';
2
+ import type { StCascadeOption, StCascadeValue } from '../../types/st-cascade-context.d.ts';
3
3
  import type { StSize } from '../../../../types/size.d.ts';
4
4
 
5
5
  /**
@@ -24,8 +24,14 @@ export interface StCascadeDesktopProps {
24
24
  clearable?: boolean;
25
25
  /** 是否多选模式(树形多选框) */
26
26
  multiple?: boolean;
27
+ /** 严格模式:开启时仅能选中叶子节点;关闭后任意层级点击节点行即完成选择,多选勾选各级独立 */
28
+ strict?: boolean;
29
+ /** 点击树节点是否同时切换其展开/收起状态;`'auto'`(默认)跟随 `strict`:严格模式下展开,非严格模式下仅箭头可展开 */
30
+ expandOnClick?: boolean | 'auto';
27
31
  /** 路径显示文本的分隔符 */
28
32
  separator?: string;
33
+ /** 是否显示完整路径(关闭时只显示末级节点文本) */
34
+ showPath?: boolean;
29
35
  /** 打开面板时是否展开全部节点 */
30
36
  defaultExpandedAll?: boolean;
31
37
  /** 是否启用浮动占位标签(placeholder 在聚焦或有值时缩到左上角) */
@@ -60,8 +66,8 @@ export interface StCascadeDesktopSlots {
60
66
  * StCascadeDesktop 组件事件接口
61
67
  * */
62
68
  export interface StCascadeDesktopEmits {
63
- /** 选中值改变事件 */
64
- change: [value: StCascadePath | StCascadePath[]];
69
+ /** 选中值改变事件(单选为末级节点值,多选为末级节点值数组,清空为 undefined / 空数组) */
70
+ change: [value: StCascadeValue | StCascadeValue[] | undefined];
65
71
  /** 清空事件 */
66
72
  clear: [];
67
73
  /** 面板显示状态改变事件 */