x-next 0.0.0-alpha.51 → 0.0.0-alpha.52

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 (77) hide show
  1. package/README.md +28 -21
  2. package/dist/_hooks/_types.d.ts +6 -0
  3. package/dist/_hooks/use-trigger.d.ts +13 -0
  4. package/dist/_utils/vue-eco.d.ts +4 -0
  5. package/dist/components/button/Button.d.ts +11 -5
  6. package/dist/components/button/ButtonGroup.vue.d.ts +90 -0
  7. package/dist/components/button/context.d.ts +11 -0
  8. package/dist/components/button/index.d.ts +143 -29
  9. package/dist/components/button/props.d.ts +10 -6
  10. package/dist/components/dialog/Dialog.d.ts +3 -3
  11. package/dist/components/dialog/index.d.ts +11 -11
  12. package/dist/components/drawer/index.d.ts +225 -133
  13. package/dist/components/drawer/src/Drawer.vue.d.ts +111 -65
  14. package/dist/components/dropdown/Dropdown.vue.d.ts +1143 -0
  15. package/dist/components/dropdown/DropdownButton.vue.d.ts +1612 -0
  16. package/dist/components/dropdown/DropdownGroup.vue.d.ts +21 -0
  17. package/dist/components/dropdown/DropdownOption.vue.d.ts +63 -0
  18. package/dist/components/dropdown/DropdownSubmenu.vue.d.ts +1234 -0
  19. package/dist/components/dropdown/context.d.ts +6 -0
  20. package/dist/components/dropdown/dropdown-panel.vue.d.ts +432 -0
  21. package/dist/components/dropdown/index.d.ts +7614 -0
  22. package/dist/components/dropdown/interface.d.ts +33 -0
  23. package/dist/components/dropdown/utils.d.ts +5 -0
  24. package/dist/components/empty/Empty.d.ts +44 -0
  25. package/dist/components/empty/index.d.ts +43 -0
  26. package/dist/components/image/Image.vue.d.ts +2179 -0
  27. package/dist/components/image/ImagePreview.vue.d.ts +1879 -0
  28. package/dist/components/image/ImagePreviewAction.d.ts +15 -15
  29. package/dist/components/image/ImagePreviewGroup.vue.d.ts +1975 -0
  30. package/dist/components/image/index.d.ts +14126 -0
  31. package/dist/components/image/interface.d.ts +8 -0
  32. package/dist/components/image/preview-toolbar.vue.d.ts +16 -22
  33. package/dist/components/index.d.ts +3 -1
  34. package/dist/components/input/Input.d.ts +14 -14
  35. package/dist/components/input/index.d.ts +35 -35
  36. package/dist/components/input/props.d.ts +2 -2
  37. package/dist/components/message/Message.d.ts +1 -1
  38. package/dist/components/message/MessageVue.vue.d.ts +1 -1
  39. package/dist/components/message/index.d.ts +5 -5
  40. package/dist/components/message-box/index.d.ts +2 -2
  41. package/dist/components/notification/index.d.ts +2 -2
  42. package/dist/components/popconfirm/index.d.ts +8 -8
  43. package/dist/components/popconfirm/src/Popconfirm.d.ts +2 -2
  44. package/dist/components/popconfirm/src/popup.vue.d.ts +18 -9
  45. package/dist/components/popup/Popup.d.ts +3 -3
  46. package/dist/components/popup/index.d.ts +11 -11
  47. package/dist/components/{scrollbar/src → scrollbar-v2}/Scrollbar.vue.d.ts +96 -28
  48. package/dist/components/{scrollbar → scrollbar-v2}/index.d.ts +94 -57
  49. package/dist/components/{scrollbar/src/types.d.ts → scrollbar-v2/interface.d.ts} +0 -2
  50. package/dist/components/scrollbar-v2/thumb.vue.d.ts +62 -0
  51. package/dist/components/space/index.d.ts +2 -2
  52. package/dist/components/tabs/index.d.ts +3 -3
  53. package/dist/components/tabs/tabs-nav.d.ts +1 -1
  54. package/dist/components/tabs/tabs-tab.vue.d.ts +1 -1
  55. package/dist/components/tag/index.d.ts +2 -2
  56. package/dist/components/timeline/index.d.ts +2 -2
  57. package/dist/components/timeline-item/index.d.ts +2 -2
  58. package/dist/components/tooltip/Tooltip.vue.d.ts +7 -7
  59. package/dist/components/tooltip/index.d.ts +17 -17
  60. package/dist/components/trend-chart/index.d.ts +2 -2
  61. package/dist/components/trigger/index.d.ts +6 -6
  62. package/dist/components/trigger/src/trigger.d.ts +2 -2
  63. package/dist/components/trigger-v2/index.d.ts +6 -6
  64. package/dist/components/trigger-v2/trigger.d.ts +2 -2
  65. package/dist/icons/_self/empty-better.d.ts +50 -0
  66. package/dist/icons/_self/empty.d.ts +50 -0
  67. package/dist/icons/_self/more-dot.d.ts +50 -0
  68. package/dist/index.es.js +3702 -2729
  69. package/dist/index.umd.js +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/types.d.ts +28 -21
  72. package/package.json +2 -2
  73. package/volar.d.ts +28 -21
  74. package/dist/components/scrollbar/src/constant.d.ts +0 -1
  75. package/dist/components/scrollbar/src/scrollbar.d.ts +0 -24
  76. package/dist/components/scrollbar/src/thumb.d.ts +0 -20
  77. package/dist/components/scrollbar/src/thumb.vue.d.ts +0 -47
package/README.md CHANGED
@@ -27,25 +27,32 @@ app.mount('#app')
27
27
  ### 目前已完成的组件
28
28
 
29
29
  ```
30
- XButton: (typeof import('x-next'))['XButton'];
31
- XDialog: (typeof import('x-next'))['XDialog'];
32
- XMessage: (typeof import('x-next'))['XMessage'];
33
- XMessageBox: (typeof import('x-next'))['XMessageBox'];
34
- XNotification: (typeof import('x-next'))['XNotification'];
35
- XSpace: (typeof import('x-next'))['XSpace'];
36
- XPopconfirm: (typeof import('x-next'))['XPopconfirm'];
37
- XTrendChart: (typeof import('x-next'))['XTrendChart'];
38
- XTimeline: (typeof import('x-next'))['XTimeline'];
39
- XTimelineItem: (typeof import('x-next'))['XTimelineItem'];
40
- XPopup: (typeof import('x-next'))['XPopup'];
41
- XScrollbar: (typeof import('x-next'))['XScrollbar'];
42
- XDrawer: (typeof import('x-next'))['XDrawer'];
43
- XTag: (typeof import('x-next'))['XTag'];
44
- XTooltip: (typeof import('x-next'))['XTooltip'];
45
- XImage: (typeof import('x-next'))['XImage'];
46
- XImagePreview: (typeof import('x-next'))['XImagePreview'];
47
- XImagePreviewGroup: (typeof import('x-next'))['XImagePreviewGroup'];
48
- XImagePreviewAction: (typeof import('x-next'))['XImagePreviewAction'];
49
- XTabPane: (typeof import('x-next'))['XTabPane'];
50
- XTabs: (typeof import('x-next'))['XTabs'];
30
+ XButton: (typeof import('x-next'))['Button'];
31
+ XDialog: (typeof import('x-next'))['Dialog'];
32
+ XMessage: (typeof import('x-next'))['Message'];
33
+ XMessageBox: (typeof import('x-next'))['MessageBox'];
34
+ XNotification: (typeof import('x-next'))['Notification'];
35
+ XSpace: (typeof import('x-next'))['Space'];
36
+ XPopconfirm: (typeof import('x-next'))['Popconfirm'];
37
+ XTrendChart: (typeof import('x-next'))['TrendChart'];
38
+ XTimeline: (typeof import('x-next'))['Timeline'];
39
+ XTimelineItem: (typeof import('x-next'))['TimelineItem'];
40
+ XPopup: (typeof import('x-next'))['Popup'];
41
+ XScrollbar: (typeof import('x-next'))['Scrollbar'];
42
+ XDrawer: (typeof import('x-next'))['Drawer'];
43
+ XTag: (typeof import('x-next'))['Tag'];
44
+ XTooltip: (typeof import('x-next'))['Tooltip'];
45
+ XImage: (typeof import('x-next'))['Image'];
46
+ XImagePreview: (typeof import('x-next'))['ImagePreview'];
47
+ XImagePreviewGroup: (typeof import('x-next'))['ImagePreviewGroup'];
48
+ XImagePreviewAction: (typeof import('x-next'))['ImagePreviewAction'];
49
+ XTabPane: (typeof import('x-next'))['TabPane'];
50
+ XTabs: (typeof import('x-next'))['Tabs'];
51
+ XButtonGroup: (typeof import('x-next'))['ButtonGroup'];
52
+ XDropdown: (typeof import('x-next'))['Dropdown'];
53
+ XDropdownButton: (typeof import('x-next'))['DropdownButton'];
54
+ XEmpty: (typeof import('x-next'))['Empty'];
55
+ XDropdownOption: (typeof import('x-next'))['DropdownOption'];
56
+ XDropdownGroup: (typeof import('x-next'))['DropdownGroup'];
57
+ XDropdownSubmenu: (typeof import('x-next'))['DropdownSubmenu'];
51
58
  ```
@@ -2,3 +2,9 @@ import { VNode } from 'vue';
2
2
  export interface SlotChildren {
3
3
  value?: VNode[];
4
4
  }
5
+ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
6
+ export type EmitFn2<Options = Record<string, any>, Event extends keyof Options = keyof Options> = UnionToIntersection<{
7
+ [key in Event]: Options[key] extends (...args: infer Args) => any ? (event: key, ...args: Args) => void : (event: key, ...args: any[]) => void;
8
+ }[Event]>;
9
+ export type EmitType<T> = T | T[];
10
+ export {};
@@ -0,0 +1,13 @@
1
+ import { Ref } from 'vue';
2
+ import { EmitFn2 } from './_types';
3
+ export declare const useTrigger: ({ popupVisible, defaultPopupVisible, emit, }: {
4
+ popupVisible?: Ref<boolean | undefined>;
5
+ defaultPopupVisible?: Ref<boolean>;
6
+ emit: EmitFn2<{
7
+ "update:popupVisible": (visible: boolean) => true;
8
+ popupVisibleChange: (visible: boolean) => true;
9
+ }>;
10
+ }) => {
11
+ computedPopupVisible: import('vue').ComputedRef<boolean>;
12
+ handlePopupVisibleChange: (visible: boolean) => void;
13
+ };
@@ -1,4 +1,5 @@
1
1
  import { VNodeTypes, VNode, PropType, Component, Slots, App, Plugin, DefineComponent } from 'vue';
2
+ import { Data } from './types';
2
3
  export type SFCWithInstall<T> = T & Plugin;
3
4
  type ObjectData = Record<string, unknown>;
4
5
  /**
@@ -20,9 +21,11 @@ export declare enum ShapeFlags {
20
21
  }
21
22
  export declare const isElement: (vn: VNode) => boolean;
22
23
  export declare const isComponent: (vn: VNode, type?: VNodeTypes) => type is Component;
24
+ export declare const isNamedComponent: (child: VNode, name: string) => boolean;
23
25
  export declare const isTextChildren: (child: VNode, children: VNode["children"]) => children is string;
24
26
  export declare const isArrayChildren: (vn: VNode, children: VNode["children"]) => children is VNode[];
25
27
  export declare const isSlotsChildren: (vn: VNode, children: VNode["children"]) => children is Slots;
28
+ export declare const getChildrenString: (children: VNode[]) => string;
26
29
  export declare const isEmptyChildren: (children?: VNode[]) => boolean;
27
30
  export declare const getAllElements: (children: VNode[] | undefined, includeText?: boolean) => VNode<import('vue').RendererNode, import('vue').RendererElement, {
28
31
  [key: string]: any;
@@ -33,6 +36,7 @@ export declare const getFirstElementFromChildren: (children: VNode[] | undefined
33
36
  export declare const getChildrenArray: (vn: VNode) => VNode[] | undefined;
34
37
  export declare const getComponentsFromVNode: (vn: VNode, name: string) => number[];
35
38
  export declare const getComponentsFromChildren: (children: VNode[] | undefined, name: string) => number[];
39
+ export declare const resolveProps: (vn: VNode) => Data;
36
40
  export declare const mergeFirstChild: (children: VNode[] | undefined, extraProps: ObjectData | ((vn: VNode) => ObjectData)) => boolean;
37
41
  export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E) => SFCWithInstall<T> & E;
38
42
  export declare const generateComponent: <T extends Component | DefineComponent>(name: string, component: T) => T & {
@@ -1,5 +1,8 @@
1
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- disabled: BooleanConstructor;
2
+ disabled: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
3
6
  block: BooleanConstructor;
4
7
  loading: BooleanConstructor;
5
8
  loadingFill: {
@@ -19,7 +22,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
19
22
  default: boolean;
20
23
  };
21
24
  type: {
22
- type: import('vue').PropType<import('./props').ButtonType>;
25
+ type: import('vue').PropType<import('./props').ButtonTypes>;
23
26
  default: string;
24
27
  };
25
28
  status: {
@@ -39,7 +42,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
39
42
  default: boolean;
40
43
  };
41
44
  }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
42
- disabled: BooleanConstructor;
45
+ disabled: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
43
49
  block: BooleanConstructor;
44
50
  loading: BooleanConstructor;
45
51
  loadingFill: {
@@ -59,7 +65,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
59
65
  default: boolean;
60
66
  };
61
67
  type: {
62
- type: import('vue').PropType<import('./props').ButtonType>;
68
+ type: import('vue').PropType<import('./props').ButtonTypes>;
63
69
  default: string;
64
70
  };
65
71
  status: {
@@ -82,7 +88,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
82
88
  onClick?: ((...args: any[]) => any) | undefined;
83
89
  }>, {
84
90
  size: import('./props').ButtonSize;
85
- type: import('./props').ButtonType;
91
+ type: import('./props').ButtonTypes;
86
92
  link: boolean;
87
93
  disabled: boolean;
88
94
  block: boolean;
@@ -0,0 +1,90 @@
1
+ import { PropType } from 'vue';
2
+ import { Status, Size, BorderShape } from '../../_utils/constant';
3
+ import { ButtonTypes } from './props';
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ /**
6
+ * @zh 按钮的类型,分为五种:次要按钮、主要按钮、虚框按钮、线性按钮、文字按钮。
7
+ * @en Children button types are divided into five types: secondary, primary, dashed, outline and text.
8
+ */
9
+ type: {
10
+ type: PropType<ButtonTypes>;
11
+ };
12
+ /**
13
+ * @zh 按钮的状态
14
+ * @en Children button state
15
+ * @values 'normal','warning','success','danger'
16
+ */
17
+ status: {
18
+ type: PropType<Status>;
19
+ };
20
+ /**
21
+ * @zh 按钮的形状
22
+ * @en Button shape
23
+ */
24
+ shape: {
25
+ type: PropType<BorderShape>;
26
+ };
27
+ /**
28
+ * @zh 按钮的尺寸
29
+ * @en Children button size
30
+ * @values 'mini','small','medium','large'
31
+ */
32
+ size: {
33
+ type: PropType<Size>;
34
+ };
35
+ /**
36
+ * @zh 全部子按钮是否禁用
37
+ * @en All children whether the button is disabled
38
+ */
39
+ disabled: {
40
+ type: BooleanConstructor;
41
+ };
42
+ }>, {
43
+ className: {
44
+ block: string;
45
+ element: (className: string) => string;
46
+ modifier: (className: string) => string;
47
+ is: (className: string) => string;
48
+ };
49
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
50
+ /**
51
+ * @zh 按钮的类型,分为五种:次要按钮、主要按钮、虚框按钮、线性按钮、文字按钮。
52
+ * @en Children button types are divided into five types: secondary, primary, dashed, outline and text.
53
+ */
54
+ type: {
55
+ type: PropType<ButtonTypes>;
56
+ };
57
+ /**
58
+ * @zh 按钮的状态
59
+ * @en Children button state
60
+ * @values 'normal','warning','success','danger'
61
+ */
62
+ status: {
63
+ type: PropType<Status>;
64
+ };
65
+ /**
66
+ * @zh 按钮的形状
67
+ * @en Button shape
68
+ */
69
+ shape: {
70
+ type: PropType<BorderShape>;
71
+ };
72
+ /**
73
+ * @zh 按钮的尺寸
74
+ * @en Children button size
75
+ * @values 'mini','small','medium','large'
76
+ */
77
+ size: {
78
+ type: PropType<Size>;
79
+ };
80
+ /**
81
+ * @zh 全部子按钮是否禁用
82
+ * @en All children whether the button is disabled
83
+ */
84
+ disabled: {
85
+ type: BooleanConstructor;
86
+ };
87
+ }>> & Readonly<{}>, {
88
+ disabled: boolean;
89
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
90
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { InjectionKey } from 'vue';
2
+ import { Size, Status } from '../../_utils/constant';
3
+ import { ButtonTypes } from './props';
4
+ export interface ButtonGroupContext {
5
+ size: Size | undefined;
6
+ status: Status | undefined;
7
+ type: ButtonTypes | undefined;
8
+ disabled: boolean;
9
+ shape: 'square' | 'round' | 'circle' | undefined;
10
+ }
11
+ export declare const buttonGroupInjectionKey: InjectionKey<ButtonGroupContext>;
@@ -1,6 +1,10 @@
1
- export declare const XButton: {
1
+ import { ButtonShape, ButtonSize, ButtonStatus, ButtonTypes } from './props';
2
+ export declare const Button: {
2
3
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
- disabled: BooleanConstructor;
4
+ disabled: {
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
4
8
  block: BooleanConstructor;
5
9
  loading: BooleanConstructor;
6
10
  loadingFill: {
@@ -12,7 +16,7 @@ export declare const XButton: {
12
16
  default: number;
13
17
  };
14
18
  shape: {
15
- type: import('vue').PropType<import('./props').ButtonShape>;
19
+ type: import('vue').PropType<ButtonShape>;
16
20
  default: undefined;
17
21
  };
18
22
  link: {
@@ -20,11 +24,11 @@ export declare const XButton: {
20
24
  default: boolean;
21
25
  };
22
26
  type: {
23
- type: import('vue').PropType<import('./props').ButtonType>;
27
+ type: import('vue').PropType<ButtonTypes>;
24
28
  default: string;
25
29
  };
26
30
  status: {
27
- type: import('vue').PropType<import('./props').ButtonStatus>;
31
+ type: import('vue').PropType<ButtonStatus>;
28
32
  default: string;
29
33
  };
30
34
  plain: {
@@ -32,7 +36,7 @@ export declare const XButton: {
32
36
  default: boolean;
33
37
  };
34
38
  size: {
35
- type: import('vue').PropType<import('./props').ButtonSize>;
39
+ type: import('vue').PropType<ButtonSize>;
36
40
  default: string;
37
41
  };
38
42
  border: {
@@ -42,16 +46,16 @@ export declare const XButton: {
42
46
  }>> & Readonly<{
43
47
  onClick?: ((...args: any[]) => any) | undefined;
44
48
  }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], import('vue').PublicProps, {
45
- size: import('./props').ButtonSize;
46
- type: import('./props').ButtonType;
49
+ size: ButtonSize;
50
+ type: ButtonTypes;
47
51
  link: boolean;
48
52
  disabled: boolean;
49
53
  block: boolean;
50
54
  loading: boolean;
51
55
  loadingFill: boolean;
52
56
  debounce: number;
53
- shape: import('./props').ButtonShape;
54
- status: import('./props').ButtonStatus;
57
+ shape: ButtonShape;
58
+ status: ButtonStatus;
55
59
  plain: boolean;
56
60
  border: boolean;
57
61
  }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
@@ -62,7 +66,10 @@ export declare const XButton: {
62
66
  M: {};
63
67
  Defaults: {};
64
68
  }, Readonly<import('vue').ExtractPropTypes<{
65
- disabled: BooleanConstructor;
69
+ disabled: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
66
73
  block: BooleanConstructor;
67
74
  loading: BooleanConstructor;
68
75
  loadingFill: {
@@ -74,7 +81,7 @@ export declare const XButton: {
74
81
  default: number;
75
82
  };
76
83
  shape: {
77
- type: import('vue').PropType<import('./props').ButtonShape>;
84
+ type: import('vue').PropType<ButtonShape>;
78
85
  default: undefined;
79
86
  };
80
87
  link: {
@@ -82,11 +89,11 @@ export declare const XButton: {
82
89
  default: boolean;
83
90
  };
84
91
  type: {
85
- type: import('vue').PropType<import('./props').ButtonType>;
92
+ type: import('vue').PropType<ButtonTypes>;
86
93
  default: string;
87
94
  };
88
95
  status: {
89
- type: import('vue').PropType<import('./props').ButtonStatus>;
96
+ type: import('vue').PropType<ButtonStatus>;
90
97
  default: string;
91
98
  };
92
99
  plain: {
@@ -94,7 +101,7 @@ export declare const XButton: {
94
101
  default: boolean;
95
102
  };
96
103
  size: {
97
- type: import('vue').PropType<import('./props').ButtonSize>;
104
+ type: import('vue').PropType<ButtonSize>;
98
105
  default: string;
99
106
  };
100
107
  border: {
@@ -104,16 +111,16 @@ export declare const XButton: {
104
111
  }>> & Readonly<{
105
112
  onClick?: ((...args: any[]) => any) | undefined;
106
113
  }>, () => any, {}, {}, {}, {
107
- size: import('./props').ButtonSize;
108
- type: import('./props').ButtonType;
114
+ size: ButtonSize;
115
+ type: ButtonTypes;
109
116
  link: boolean;
110
117
  disabled: boolean;
111
118
  block: boolean;
112
119
  loading: boolean;
113
120
  loadingFill: boolean;
114
121
  debounce: number;
115
- shape: import('./props').ButtonShape;
116
- status: import('./props').ButtonStatus;
122
+ shape: ButtonShape;
123
+ status: ButtonStatus;
117
124
  plain: boolean;
118
125
  border: boolean;
119
126
  }>;
@@ -121,7 +128,10 @@ export declare const XButton: {
121
128
  __isTeleport?: never;
122
129
  __isSuspense?: never;
123
130
  } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
124
- disabled: BooleanConstructor;
131
+ disabled: {
132
+ type: BooleanConstructor;
133
+ default: boolean;
134
+ };
125
135
  block: BooleanConstructor;
126
136
  loading: BooleanConstructor;
127
137
  loadingFill: {
@@ -133,7 +143,7 @@ export declare const XButton: {
133
143
  default: number;
134
144
  };
135
145
  shape: {
136
- type: import('vue').PropType<import('./props').ButtonShape>;
146
+ type: import('vue').PropType<ButtonShape>;
137
147
  default: undefined;
138
148
  };
139
149
  link: {
@@ -141,11 +151,11 @@ export declare const XButton: {
141
151
  default: boolean;
142
152
  };
143
153
  type: {
144
- type: import('vue').PropType<import('./props').ButtonType>;
154
+ type: import('vue').PropType<ButtonTypes>;
145
155
  default: string;
146
156
  };
147
157
  status: {
148
- type: import('vue').PropType<import('./props').ButtonStatus>;
158
+ type: import('vue').PropType<ButtonStatus>;
149
159
  default: string;
150
160
  };
151
161
  plain: {
@@ -153,7 +163,7 @@ export declare const XButton: {
153
163
  default: boolean;
154
164
  };
155
165
  size: {
156
- type: import('vue').PropType<import('./props').ButtonSize>;
166
+ type: import('vue').PropType<ButtonSize>;
157
167
  default: string;
158
168
  };
159
169
  border: {
@@ -163,19 +173,123 @@ export declare const XButton: {
163
173
  }>> & Readonly<{
164
174
  onClick?: ((...args: any[]) => any) | undefined;
165
175
  }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", {
166
- size: import('./props').ButtonSize;
167
- type: import('./props').ButtonType;
176
+ size: ButtonSize;
177
+ type: ButtonTypes;
168
178
  link: boolean;
169
179
  disabled: boolean;
170
180
  block: boolean;
171
181
  loading: boolean;
172
182
  loadingFill: boolean;
173
183
  debounce: number;
174
- shape: import('./props').ButtonShape;
175
- status: import('./props').ButtonStatus;
184
+ shape: ButtonShape;
185
+ status: ButtonStatus;
176
186
  plain: boolean;
177
187
  border: boolean;
178
188
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
179
189
  install(app: import('vue').App): void;
180
190
  };
181
- export { XButton as default };
191
+ export declare const ButtonGroup: {
192
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
193
+ type: {
194
+ type: import('vue').PropType<ButtonTypes>;
195
+ };
196
+ status: {
197
+ type: import('vue').PropType<import('../../_utils/constant').Status>;
198
+ };
199
+ shape: {
200
+ type: import('vue').PropType<import('../../_utils/constant').BorderShape>;
201
+ };
202
+ size: {
203
+ type: import('vue').PropType<import('../../_utils/constant').Size>;
204
+ };
205
+ disabled: {
206
+ type: BooleanConstructor;
207
+ };
208
+ }>> & Readonly<{}>, {
209
+ className: {
210
+ block: string;
211
+ element: (className: string) => string;
212
+ modifier: (className: string) => string;
213
+ is: (className: string) => string;
214
+ };
215
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
216
+ disabled: boolean;
217
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
218
+ P: {};
219
+ B: {};
220
+ D: {};
221
+ C: {};
222
+ M: {};
223
+ Defaults: {};
224
+ }, Readonly<import('vue').ExtractPropTypes<{
225
+ type: {
226
+ type: import('vue').PropType<ButtonTypes>;
227
+ };
228
+ status: {
229
+ type: import('vue').PropType<import('../../_utils/constant').Status>;
230
+ };
231
+ shape: {
232
+ type: import('vue').PropType<import('../../_utils/constant').BorderShape>;
233
+ };
234
+ size: {
235
+ type: import('vue').PropType<import('../../_utils/constant').Size>;
236
+ };
237
+ disabled: {
238
+ type: BooleanConstructor;
239
+ };
240
+ }>> & Readonly<{}>, {
241
+ className: {
242
+ block: string;
243
+ element: (className: string) => string;
244
+ modifier: (className: string) => string;
245
+ is: (className: string) => string;
246
+ };
247
+ }, {}, {}, {}, {
248
+ disabled: boolean;
249
+ }>;
250
+ __isFragment?: never;
251
+ __isTeleport?: never;
252
+ __isSuspense?: never;
253
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
254
+ type: {
255
+ type: import('vue').PropType<ButtonTypes>;
256
+ };
257
+ status: {
258
+ type: import('vue').PropType<import('../../_utils/constant').Status>;
259
+ };
260
+ shape: {
261
+ type: import('vue').PropType<import('../../_utils/constant').BorderShape>;
262
+ };
263
+ size: {
264
+ type: import('vue').PropType<import('../../_utils/constant').Size>;
265
+ };
266
+ disabled: {
267
+ type: BooleanConstructor;
268
+ };
269
+ }>> & Readonly<{}>, {
270
+ className: {
271
+ block: string;
272
+ element: (className: string) => string;
273
+ modifier: (className: string) => string;
274
+ is: (className: string) => string;
275
+ };
276
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
277
+ disabled: boolean;
278
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
279
+ install(app: import('vue').App): void;
280
+ };
281
+ export type ButtonProps = {
282
+ disabled?: boolean;
283
+ block?: boolean;
284
+ loading?: boolean;
285
+ loadingFill?: boolean;
286
+ debounce?: number;
287
+ shape?: ButtonShape;
288
+ link?: boolean;
289
+ type?: ButtonTypes;
290
+ status?: ButtonStatus;
291
+ plain?: boolean;
292
+ size?: ButtonSize;
293
+ border?: boolean;
294
+ };
295
+ export { Button as default };
@@ -1,9 +1,13 @@
1
+ import { PropType } from 'vue';
1
2
  export type ButtonSize = 'mini' | 'small' | 'medium' | 'large' | 'huge';
2
3
  export type ButtonStatus = 'default' | 'success' | 'warning' | 'strong' | 'danger' | 'info';
3
- export type ButtonType = 'primary' | 'default' | 'dashed' | 'outline' | 'text';
4
+ export type ButtonTypes = 'primary' | 'default' | 'dashed' | 'outline' | 'text';
4
5
  export type ButtonShape = 'round' | 'circle' | 'square';
5
6
  export declare const buttonProps: {
6
- disabled: BooleanConstructor;
7
+ disabled: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
7
11
  block: BooleanConstructor;
8
12
  loading: BooleanConstructor;
9
13
  loadingFill: {
@@ -15,7 +19,7 @@ export declare const buttonProps: {
15
19
  default: number;
16
20
  };
17
21
  shape: {
18
- type: import('vue').PropType<ButtonShape>;
22
+ type: PropType<ButtonShape>;
19
23
  default: undefined;
20
24
  };
21
25
  link: {
@@ -23,11 +27,11 @@ export declare const buttonProps: {
23
27
  default: boolean;
24
28
  };
25
29
  type: {
26
- type: import('vue').PropType<ButtonType>;
30
+ type: PropType<ButtonTypes>;
27
31
  default: string;
28
32
  };
29
33
  status: {
30
- type: import('vue').PropType<ButtonStatus>;
34
+ type: PropType<ButtonStatus>;
31
35
  default: string;
32
36
  };
33
37
  plain: {
@@ -35,7 +39,7 @@ export declare const buttonProps: {
35
39
  default: boolean;
36
40
  };
37
41
  size: {
38
- type: import('vue').PropType<ButtonSize>;
42
+ type: PropType<ButtonSize>;
39
43
  default: string;
40
44
  };
41
45
  border: {
@@ -167,13 +167,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
167
167
  }>, {
168
168
  title: string;
169
169
  disabled: boolean;
170
+ top: string | number;
171
+ center: boolean;
172
+ mask: boolean;
170
173
  height: string | number;
171
174
  minHeight: string | number;
172
175
  minWidth: string | number;
173
- top: string | number;
174
176
  width: string | number;
175
- mask: boolean;
176
- center: boolean;
177
177
  renderTo: string | HTMLElement;
178
178
  modelValue: boolean;
179
179
  destroyOnClosed: boolean;