x-next 0.0.0-alpha.2 → 0.0.0-alpha.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. package/README.md +15 -84
  2. package/dist/{types/_hooks → _hooks}/use-overflow.d.ts +1 -1
  3. package/dist/{types/_hooks → _hooks}/use-popup-manager.d.ts +1 -1
  4. package/dist/{types/_utils → _utils}/config.d.ts +1 -1
  5. package/dist/{types/_utils → _utils}/dom.d.ts +1 -1
  6. package/dist/{types/_utils → _utils}/is.d.ts +5 -6
  7. package/dist/{types/_utils → _utils}/keyboard.d.ts +1 -1
  8. package/dist/{types/_utils → _utils}/vue-eco.d.ts +10 -11
  9. package/dist/{types/componets/button/index.vue.d.ts → components/button/Button.d.ts} +18 -28
  10. package/dist/components/button/index.d.ts +181 -0
  11. package/dist/{types/componets → components}/button/props.d.ts +4 -4
  12. package/dist/{types/componets/dialog/index.vue.d.ts → components/dialog/Dialog.d.ts} +9 -42
  13. package/dist/components/dialog/index.d.ts +334 -0
  14. package/dist/{types/componets → components}/dialog/props.d.ts +7 -7
  15. package/dist/{types/componets → components}/dialog/use-props.d.ts +1 -1
  16. package/dist/{types/componets → components}/dialog/use.d.ts +1 -1
  17. package/dist/components/dialog/warp.d.ts +2 -0
  18. package/dist/components/index.d.ts +6 -0
  19. package/dist/{types/componets/message/index.vue.d.ts → components/message/Message.d.ts} +19 -27
  20. package/dist/components/message/MessageVue.vue.d.ts +362 -0
  21. package/dist/components/message/index.d.ts +193 -0
  22. package/dist/{types/componets → components}/message/props.d.ts +1 -1
  23. package/dist/{types/componets → components}/message/warp.d.ts +1 -1
  24. package/dist/{types/componets/message-box/index.d.ts → components/message-box/MessageBox.d.ts} +1 -1
  25. package/dist/components/message-box/index.d.ts +4 -0
  26. package/dist/{types/componets → components}/message-box/props.d.ts +1 -1
  27. package/dist/components/message-box/warp.d.ts +2 -0
  28. package/dist/components/notification/Notification.d.ts +89 -0
  29. package/dist/components/notification/index.d.ts +166 -0
  30. package/dist/{types/componets → components}/notification/props.d.ts +2 -2
  31. package/dist/{types/componets → components}/notification/warp.d.ts +1 -1
  32. package/dist/{types/componets/space/index.d.ts → components/space/Space.d.ts} +9 -9
  33. package/dist/components/space/index.d.ts +82 -0
  34. package/dist/{types/componets → components}/trend-chart/components/trend-chart-curve.d.ts +17 -17
  35. package/dist/{types/componets → components}/trend-chart/components/trend-chart-grid.d.ts +7 -7
  36. package/dist/{types/componets → components}/trend-chart/components/trend-chart-labels.d.ts +7 -7
  37. package/dist/{types/componets → components}/trend-chart/components/trend-chart.d.ts +47 -47
  38. package/dist/{types/componets → components}/trend-chart/helpers/genPoints.d.ts +1 -1
  39. package/dist/components/trend-chart/index.d.ts +2 -0
  40. package/dist/{types/componets → components}/trend-chart/props.d.ts +2 -2
  41. package/dist/directives/clipboard/cache.d.ts +8 -0
  42. package/dist/directives/clipboard/clipboard.d.ts +18 -0
  43. package/dist/directives/clipboard/convert.d.ts +3 -0
  44. package/dist/directives/clipboard/index.d.ts +3 -0
  45. package/dist/directives/clipboard/plugin.d.ts +2 -0
  46. package/dist/directives/clipboard/textarea.d.ts +3 -0
  47. package/dist/{types/icons/default/exclamation-circle-fill.vue.d.ts → icons/animation/animation-loading.d.ts} +5 -10
  48. package/dist/{types/icons/default/close-circle-fill.vue.d.ts → icons/default/check-circle-fill.d.ts} +5 -10
  49. package/dist/{types/icons/animation/animation-loading.vue.d.ts → icons/default/close-circle-fill.d.ts} +5 -10
  50. package/dist/{types/icons/default/check-circle-fill.vue.d.ts → icons/default/exclamation-circle-fill.d.ts} +5 -10
  51. package/dist/icons/default/info-circle-fill.d.ts +50 -0
  52. package/dist/icons/default/minus-circle-fill.d.ts +50 -0
  53. package/dist/icons/icon.d.ts +51 -0
  54. package/dist/icons/index.d.ts +7 -0
  55. package/dist/index.d.ts +12 -0
  56. package/dist/index.es.js +1368 -0
  57. package/dist/index.umd.js +1 -0
  58. package/dist/style.css +1 -0
  59. package/dist/types.d.ts +11 -0
  60. package/package.json +45 -48
  61. package/volar.d.ts +12 -0
  62. package/LICENSE +0 -21
  63. package/dist/favicon.ico +0 -0
  64. package/dist/types/_utils/icon.d.ts +0 -59
  65. package/dist/types/componets/dialog/warp.d.ts +0 -2
  66. package/dist/types/componets/message-box/warp.d.ts +0 -2
  67. package/dist/types/componets/notification/index.vue.d.ts +0 -160
  68. package/dist/types/componets/trend-chart/index.d.ts +0 -2
  69. package/dist/types/icons/default/info-circle-fill.vue.d.ts +0 -55
  70. package/dist/types/icons/default/minus-circle-fill.vue.d.ts +0 -55
  71. package/dist/types/icons/index.d.ts +0 -7
  72. package/dist/types/ui.d.ts +0 -5
  73. package/dist/ui.cjs.js +0 -2
  74. package/dist/ui.es.js +0 -1395
  75. package/dist/ui.umd.js +0 -3
  76. /package/dist/{types/_props → _props}/css.d.ts +0 -0
  77. /package/dist/{types/_props → _props}/global.d.ts +0 -0
  78. /package/dist/{types/_utils → _utils}/convert-case.d.ts +0 -0
  79. /package/dist/{types/_utils → _utils}/helpers.d.ts +0 -0
  80. /package/dist/{types/_utils → _utils}/number.d.ts +0 -0
  81. /package/dist/{types/componets → components}/tag-cloud/index.d.ts +0 -0
  82. /package/dist/{types/componets → components}/trend-chart/helpers/genPath.d.ts +0 -0
  83. /package/dist/{types/componets → components}/trend-chart/helpers/getPadding.d.ts +0 -0
  84. /package/dist/{types/componets → components}/trend-chart/helpers/validatePadding.d.ts +0 -0
package/README.md CHANGED
@@ -1,95 +1,26 @@
1
- # Vue 3 Datepicker
1
+ # 简介
2
2
 
3
- Documentation: https://icehaunter.github.io/vue3-datepicker/
3
+ X-Next是Ringing Tech的基础UI库。
4
4
 
5
- This is a basic (at least for now) reimplementation of https://github.com/icehaunter/vuejs-datepicker in Vue 3 and with greatly cleaned up code.
5
+ # 安装
6
6
 
7
- All date manipulation and formatting are done via the amazing [`date-fns`](https://date-fns.org/) library, so it's a direct dependency of this picker.
7
+ ### 运行
8
8
 
9
- ## Installation
10
-
11
- Package is available on NPM: https://www.npmjs.com/package/vue3-datepicker
12
-
13
- ```sh
14
- npm i vue3-datepicker
15
9
  ```
16
-
17
- The component is packaged mainly for use with bundlers, if you require a browser build - post an issue.
18
-
19
- ## Usage
20
-
21
- For more examples see https://icehaunter.github.io/vue3-datepicker/examples.html
22
-
23
- ```vue
24
- <template>
25
- <datepicker
26
- v-model="selected"
27
- :locale="locale"
28
- :upperLimit="to"
29
- :lowerLimit="from"
30
- :clearable="true"
31
- />
32
- </template>
10
+ pnpm i x-next
33
11
  ```
34
12
 
35
- ## Props and attributes
36
-
37
- Attribute fallthrough is enabled, so any attribute you apply to the component will be passed down to the input.
38
-
39
- All props which accept formatting strings for dates use [`date-fns` formatting function](https://date-fns.org/docs/format) under the hood, so see that function's documentation for patterns.
13
+ ### 引入
40
14
 
41
- Main interaction to date selection is done via `v-model` with `Date` as expected type of the value passed.
42
-
43
- Full props documentation is available at https://icehaunter.github.io/vue3-datepicker/config.html#props
44
-
45
- | ID | Type | Default | Description |
46
- | ------------------------ | -------------------------------------------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
47
- | `upperLimit` | `Date` | | Upper limit for available dates for picking |
48
- | `lowerLimit` | `Date` | | Lower limit for available dates for picking |
49
- | `startingViewDate` | `Date` | `() => new Date()` | Date on which to focus when empty datepicker is opened. Default is "right now" |
50
- | `disabledDates` | `{ dates: Date[] }` | | Dates not available for picking |
51
- | `disabledTime` | `{ dates: Date[] }` | | Dates not available for time picking |
52
- | `startingView` | `'time' \| 'day' \| 'month' \| 'year'` | `'day'` | View on which the date picker should open. Can be either `year`, `month`, or `day` |
53
- | `minimumView` | `'time' \| 'day' \| 'month' \| 'year'` | `'day'` | If set, lower-level views won't show |
54
- | `dayPickerHeadingFormat` | `String` | `LLLL yyyy` | `date-fns`-type formatting for a day view heading |
55
- | `dayFormat` | `String` | `dd` | `date-fns`-type formatting for each day on the day view |
56
- | `weekdayFormat` | `String` | `EE` | `date-fns`-type formatting for a line of weekdays on day view |
57
- | `inputFormat` | `String` | `yyyy-MM-dd` | `date-fns`-type format in which the string in the input should be both parsed and displayed |
58
- | `locale` | [`Locale`](https://date-fns.org/v2.16.1/docs/I18n#usage) | `date-fns/locale/en` | [`date-fns` locale object](https://date-fns.org/v2.16.1/docs/I18n#usage). Used in string formatting (see default `dayPickerHeadingFormat`) |
59
- | `disabled` | `Boolean` | `false` | Disables datepicker and prevents it's opening |
60
- | `typeable` | `Boolean` | `false` | Allows user to input date manually |
61
- | `weekStartsOn` | `Number` | 1 | Day on which the week should start. Number from 0 to 6, where 0 is Sunday and 6 is Saturday. Week starts with a Monday (1) by default |
62
- | `clearable` | `Boolean` | `false` | Allows clearing the selected date and setting the value to `null` |
63
- | `allowOutsideInterval` | `Boolean` | `false` | Allows user to click dates outside of current interval |
64
-
65
- ### Events
66
-
67
- - `opened`: Emitted every time the popup opens, including on field focus
68
- - `closed`: Emitted every time the popup closes, including on field blur
69
- - `decadePageChanged`: Emitted when a page is changed on the year picker view, displaying a different decade. Has a date that is included in the shown decade as an argument.
70
- - `yearPageChanged`: Emitted when a page is changed on the month picker view, displaying a different year. Has a date that is included in the shown year as an argument.
71
- - `monthPageChanged`: Emitted when a page is changed on the day picker view, displaying a different month. Has a date that is included in the shown month as an argument.
72
-
73
- ## Compatibility
74
-
75
- Package is transpiled and should be usable for everyone with ES6 and above, but the styling of the datepicker itself uses CSS Grid and CSS variables.
76
-
77
- ## Example
15
+ ```
16
+ // main.ts
17
+ import { createApp } from 'vue'
18
+ import XNext from 'x-next'
19
+ import "x-next/dist/style.css"; //引入组件样式
20
+ import App from './App.vue'
78
21
 
79
- ```vue
80
- <template>
81
- <datepicker v-model="picked" />
82
- </template>
22
+ const app = createApp(App)
83
23
 
84
- <script>
85
- import Datepicker from '../src/datepicker/Datepicker.vue'
86
- components: {
87
- Datepicker
88
- },
89
- data(): {
90
- return {
91
- picked: new Date();
92
- }
93
- }
94
- </script>
24
+ app.use(XNext)
25
+ app.mount('#app')
95
26
  ```
@@ -1,4 +1,4 @@
1
- import { type Ref } from 'vue';
1
+ import { Ref } from 'vue';
2
2
  export declare const useOverflow: (containerRef: Ref<HTMLElement | undefined>, targetRef?: Ref<HTMLElement | undefined>) => {
3
3
  setOverflowHidden: () => void;
4
4
  resetOverflow: () => void;
@@ -1,4 +1,4 @@
1
- import type { Ref } from 'vue';
1
+ import { Ref } from 'vue';
2
2
  export type PopupType = 'popup' | 'dialog' | 'message';
3
3
  export default function usePopupManager(type: PopupType, { visible, runOnMounted, }?: {
4
4
  visible?: Ref<boolean>;
@@ -1,6 +1,6 @@
1
1
  export declare const COMPONENT_INSTALLED_KEY: unique symbol;
2
2
  export declare const getClassPrefix: (name?: string) => string;
3
- export declare const getComponentPrefix: (name: string) => string;
3
+ export declare const getComponentPrefix: (name: string) => `X${string}`;
4
4
  export declare const getClassNameMixin: (name: string) => {
5
5
  block: string;
6
6
  element: (className: string) => string;
@@ -1,4 +1,4 @@
1
- import type { CSSProperties } from 'vue';
1
+ import { CSSProperties } from 'vue';
2
2
  export declare const NOOP: () => void;
3
3
  export declare const querySelector: (selectors: string, container?: Document | HTMLElement) => HTMLElement | undefined;
4
4
  export declare const getScrollBarWidth: (element: HTMLElement) => number;
@@ -1,11 +1,12 @@
1
- import type { ComponentPublicInstance, VNodeNormalizedChildren } from 'vue';
1
+ import { ComponentPublicInstance, VNodeNormalizedChildren, VNode } from 'vue';
2
2
  import { Dayjs } from 'dayjs';
3
- import { VNode } from 'vue';
4
3
  export declare function isArray(obj: any): obj is any[];
5
4
  export declare function isNull(obj: any): obj is null;
6
5
  export declare function isBoolean(obj: unknown): obj is boolean;
7
6
  export declare function isObject<T>(obj: T): obj is Extract<T, Record<string, any>>;
8
7
  export declare const isPromise: <T>(obj: unknown) => obj is Promise<T>;
8
+ export declare const isAsync: (fn: unknown) => boolean;
9
+ export declare const isAsyncOrPromise: (fn: unknown) => boolean;
9
10
  export declare function isString(obj: any): obj is string;
10
11
  export declare function isNumber(obj: any): obj is number;
11
12
  export declare function isRegExp(obj: any): boolean;
@@ -16,10 +17,8 @@ export declare function isFunction(obj: any): obj is (...args: any[]) => any;
16
17
  export declare function isEmptyObject(obj: any): boolean;
17
18
  export declare function isExist(obj: any): boolean;
18
19
  export declare function isWindow(el: any): el is Window;
19
- export declare const isComponentInstance: (value: any) => value is ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any>;
20
- export declare const isArrayChildren: (children: VNodeNormalizedChildren) => children is VNode<import("vue").RendererNode, import("vue").RendererElement, {
21
- [key: string]: any;
22
- }>[];
20
+ export declare const isComponentInstance: (value: any) => value is ComponentPublicInstance;
21
+ export declare const isArrayChildren: (children: VNodeNormalizedChildren) => children is VNode[];
23
22
  export declare const isQuarter: (fromat: string) => boolean;
24
23
  export declare function isDayjs(time: any): time is Dayjs;
25
24
  export declare function isClient(): boolean;
@@ -21,4 +21,4 @@ export interface CodeKey {
21
21
  /** meta ⌘ / ⊞ */
22
22
  meta?: boolean;
23
23
  }
24
- export declare const getKeyDownHandler: (codeKeyMap: Map<string | CodeKey, (e: Event) => void>) => (event: KeyboardEvent) => void;
24
+ export declare const getKeyDownHandler: (codeKeyMap: Map<CodeKey | string, (e: Event) => void>) => (event: KeyboardEvent) => void;
@@ -1,4 +1,4 @@
1
- import type { VNodeTypes, VNode, PropType, Component, Plugin } from 'vue';
1
+ import { VNodeTypes, VNode, PropType, Component, Slots, App, Plugin, DefineComponent } from 'vue';
2
2
  export type SFCWithInstall<T> = T & Plugin;
3
3
  /**
4
4
  * @description Vue生态操作封装
@@ -18,15 +18,14 @@ export declare enum ShapeFlags {
18
18
  COMPONENT_KEPT_ALIVE = 512
19
19
  }
20
20
  export declare const isElement: (vn: VNode) => boolean;
21
- export declare const isComponent: (vn: VNode, type?: VNodeTypes) => type is Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>;
22
- export declare const isTextChildren: (child: VNode, children: VNode['children']) => children is string;
23
- export declare const isArrayChildren: (vn: VNode, children: VNode['children']) => children is VNode<import("vue").RendererNode, import("vue").RendererElement, {
21
+ export declare const isComponent: (vn: VNode, type?: VNodeTypes) => type is Component;
22
+ export declare const isTextChildren: (child: VNode, children: VNode["children"]) => children is string;
23
+ export declare const isArrayChildren: (vn: VNode, children: VNode["children"]) => children is VNode[];
24
+ export declare const isSlotsChildren: (vn: VNode, children: VNode["children"]) => children is Slots;
25
+ export declare const getAllElements: (children: VNode[] | undefined, includeText?: boolean) => VNode<import('vue').RendererNode, import('vue').RendererElement, {
24
26
  [key: string]: any;
25
27
  }>[];
26
- export declare const isSlotsChildren: (vn: VNode, children: VNode['children']) => children is Readonly<{
27
- [name: string]: import("vue").Slot<any> | undefined;
28
- }>;
29
- export declare const getAllElements: (children: VNode[] | undefined, includeText?: boolean) => VNode<import("vue").RendererNode, import("vue").RendererElement, {
30
- [key: string]: any;
31
- }>[];
32
- export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E | undefined) => SFCWithInstall<T> & E;
28
+ export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E) => SFCWithInstall<T> & E;
29
+ export declare const generateComponent: <T extends Component | DefineComponent>(name: string, component: T) => T & {
30
+ install(app: App): void;
31
+ };
@@ -1,4 +1,4 @@
1
- declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  disabled: BooleanConstructor;
3
3
  block: BooleanConstructor;
4
4
  loading: BooleanConstructor;
@@ -11,7 +11,7 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
11
11
  default: number;
12
12
  };
13
13
  shape: {
14
- type: import("vue").PropType<import("./props").ButtonShape>;
14
+ type: import('vue').PropType<import('./props').ButtonShape>;
15
15
  default: undefined;
16
16
  };
17
17
  link: {
@@ -19,11 +19,11 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
19
19
  default: boolean;
20
20
  };
21
21
  type: {
22
- type: import("vue").PropType<import("./props").ButtonType>;
22
+ type: import('vue').PropType<import('./props').ButtonType>;
23
23
  default: undefined;
24
24
  };
25
25
  status: {
26
- type: import("vue").PropType<import("./props").ButtonStatus>;
26
+ type: import('vue').PropType<import('./props').ButtonStatus>;
27
27
  default: undefined;
28
28
  };
29
29
  plain: {
@@ -31,24 +31,14 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
31
31
  default: boolean;
32
32
  };
33
33
  size: {
34
- type: import("vue").PropType<import("./props").ButtonSize>;
34
+ type: import('vue').PropType<import('./props').ButtonSize>;
35
35
  default: string;
36
36
  };
37
37
  border: {
38
38
  type: BooleanConstructor;
39
39
  default: boolean;
40
40
  };
41
- }>, {
42
- cn: {
43
- block: string;
44
- element: (className: string) => string;
45
- modifier: (className: string) => string;
46
- is: (className: string) => string;
47
- };
48
- cls: import("vue").ComputedRef<(string | false | undefined)[]>;
49
- handleClick: (event: MouseEvent) => Promise<void>;
50
- isLoading: import("vue").ComputedRef<boolean>;
51
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
41
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
52
42
  disabled: BooleanConstructor;
53
43
  block: BooleanConstructor;
54
44
  loading: BooleanConstructor;
@@ -61,7 +51,7 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
61
51
  default: number;
62
52
  };
63
53
  shape: {
64
- type: import("vue").PropType<import("./props").ButtonShape>;
54
+ type: import('vue').PropType<import('./props').ButtonShape>;
65
55
  default: undefined;
66
56
  };
67
57
  link: {
@@ -69,11 +59,11 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
69
59
  default: boolean;
70
60
  };
71
61
  type: {
72
- type: import("vue").PropType<import("./props").ButtonType>;
62
+ type: import('vue').PropType<import('./props').ButtonType>;
73
63
  default: undefined;
74
64
  };
75
65
  status: {
76
- type: import("vue").PropType<import("./props").ButtonStatus>;
66
+ type: import('vue').PropType<import('./props').ButtonStatus>;
77
67
  default: undefined;
78
68
  };
79
69
  plain: {
@@ -81,7 +71,7 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
81
71
  default: boolean;
82
72
  };
83
73
  size: {
84
- type: import("vue").PropType<import("./props").ButtonSize>;
74
+ type: import('vue').PropType<import('./props').ButtonSize>;
85
75
  default: string;
86
76
  };
87
77
  border: {
@@ -91,17 +81,17 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
91
81
  }>> & Readonly<{
92
82
  onClick?: ((...args: any[]) => any) | undefined;
93
83
  }>, {
94
- size: import("./props").ButtonSize;
95
- border: boolean;
84
+ size: import('./props').ButtonSize;
85
+ type: import('./props').ButtonType;
96
86
  link: boolean;
97
- block: boolean;
98
87
  disabled: boolean;
99
- type: import("./props").ButtonType;
88
+ block: boolean;
100
89
  loading: boolean;
101
90
  loadingFill: boolean;
102
91
  debounce: number;
103
- shape: import("./props").ButtonShape;
104
- status: import("./props").ButtonStatus;
92
+ shape: import('./props').ButtonShape;
93
+ status: import('./props').ButtonStatus;
105
94
  plain: boolean;
106
- }, {}, Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>>, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
107
- export default _sfc_main;
95
+ border: boolean;
96
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
97
+ export default _default;
@@ -0,0 +1,181 @@
1
+ export declare const XButton: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ disabled: BooleanConstructor;
4
+ block: BooleanConstructor;
5
+ loading: BooleanConstructor;
6
+ loadingFill: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ debounce: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ shape: {
15
+ type: import('vue').PropType<import('./props').ButtonShape>;
16
+ default: undefined;
17
+ };
18
+ link: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ type: {
23
+ type: import('vue').PropType<import('./props').ButtonType>;
24
+ default: undefined;
25
+ };
26
+ status: {
27
+ type: import('vue').PropType<import('./props').ButtonStatus>;
28
+ default: undefined;
29
+ };
30
+ plain: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ size: {
35
+ type: import('vue').PropType<import('./props').ButtonSize>;
36
+ default: string;
37
+ };
38
+ border: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ }>> & Readonly<{
43
+ onClick?: ((...args: any[]) => any) | undefined;
44
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], import('vue').PublicProps, {
45
+ size: import('./props').ButtonSize;
46
+ type: import('./props').ButtonType;
47
+ link: boolean;
48
+ disabled: boolean;
49
+ block: boolean;
50
+ loading: boolean;
51
+ loadingFill: boolean;
52
+ debounce: number;
53
+ shape: import('./props').ButtonShape;
54
+ status: import('./props').ButtonStatus;
55
+ plain: boolean;
56
+ border: boolean;
57
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
58
+ P: {};
59
+ B: {};
60
+ D: {};
61
+ C: {};
62
+ M: {};
63
+ Defaults: {};
64
+ }, Readonly<import('vue').ExtractPropTypes<{
65
+ disabled: BooleanConstructor;
66
+ block: BooleanConstructor;
67
+ loading: BooleanConstructor;
68
+ loadingFill: {
69
+ type: BooleanConstructor;
70
+ default: boolean;
71
+ };
72
+ debounce: {
73
+ type: NumberConstructor;
74
+ default: number;
75
+ };
76
+ shape: {
77
+ type: import('vue').PropType<import('./props').ButtonShape>;
78
+ default: undefined;
79
+ };
80
+ link: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ };
84
+ type: {
85
+ type: import('vue').PropType<import('./props').ButtonType>;
86
+ default: undefined;
87
+ };
88
+ status: {
89
+ type: import('vue').PropType<import('./props').ButtonStatus>;
90
+ default: undefined;
91
+ };
92
+ plain: {
93
+ type: BooleanConstructor;
94
+ default: boolean;
95
+ };
96
+ size: {
97
+ type: import('vue').PropType<import('./props').ButtonSize>;
98
+ default: string;
99
+ };
100
+ border: {
101
+ type: BooleanConstructor;
102
+ default: boolean;
103
+ };
104
+ }>> & Readonly<{
105
+ onClick?: ((...args: any[]) => any) | undefined;
106
+ }>, () => any, {}, {}, {}, {
107
+ size: import('./props').ButtonSize;
108
+ type: import('./props').ButtonType;
109
+ link: boolean;
110
+ disabled: boolean;
111
+ block: boolean;
112
+ loading: boolean;
113
+ loadingFill: boolean;
114
+ debounce: number;
115
+ shape: import('./props').ButtonShape;
116
+ status: import('./props').ButtonStatus;
117
+ plain: boolean;
118
+ border: boolean;
119
+ }>;
120
+ __isFragment?: never;
121
+ __isTeleport?: never;
122
+ __isSuspense?: never;
123
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
124
+ disabled: BooleanConstructor;
125
+ block: BooleanConstructor;
126
+ loading: BooleanConstructor;
127
+ loadingFill: {
128
+ type: BooleanConstructor;
129
+ default: boolean;
130
+ };
131
+ debounce: {
132
+ type: NumberConstructor;
133
+ default: number;
134
+ };
135
+ shape: {
136
+ type: import('vue').PropType<import('./props').ButtonShape>;
137
+ default: undefined;
138
+ };
139
+ link: {
140
+ type: BooleanConstructor;
141
+ default: boolean;
142
+ };
143
+ type: {
144
+ type: import('vue').PropType<import('./props').ButtonType>;
145
+ default: undefined;
146
+ };
147
+ status: {
148
+ type: import('vue').PropType<import('./props').ButtonStatus>;
149
+ default: undefined;
150
+ };
151
+ plain: {
152
+ type: BooleanConstructor;
153
+ default: boolean;
154
+ };
155
+ size: {
156
+ type: import('vue').PropType<import('./props').ButtonSize>;
157
+ default: string;
158
+ };
159
+ border: {
160
+ type: BooleanConstructor;
161
+ default: boolean;
162
+ };
163
+ }>> & Readonly<{
164
+ onClick?: ((...args: any[]) => any) | undefined;
165
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", {
166
+ size: import('./props').ButtonSize;
167
+ type: import('./props').ButtonType;
168
+ link: boolean;
169
+ disabled: boolean;
170
+ block: boolean;
171
+ loading: boolean;
172
+ loadingFill: boolean;
173
+ debounce: number;
174
+ shape: import('./props').ButtonShape;
175
+ status: import('./props').ButtonStatus;
176
+ plain: boolean;
177
+ border: boolean;
178
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
179
+ install(app: import('vue').App): void;
180
+ };
181
+ export { XButton as default };
@@ -15,7 +15,7 @@ export declare const buttonProps: {
15
15
  default: number;
16
16
  };
17
17
  shape: {
18
- type: import("vue").PropType<ButtonShape>;
18
+ type: import('vue').PropType<ButtonShape>;
19
19
  default: undefined;
20
20
  };
21
21
  link: {
@@ -23,11 +23,11 @@ export declare const buttonProps: {
23
23
  default: boolean;
24
24
  };
25
25
  type: {
26
- type: import("vue").PropType<ButtonType>;
26
+ type: import('vue').PropType<ButtonType>;
27
27
  default: undefined;
28
28
  };
29
29
  status: {
30
- type: import("vue").PropType<ButtonStatus>;
30
+ type: import('vue').PropType<ButtonStatus>;
31
31
  default: undefined;
32
32
  };
33
33
  plain: {
@@ -35,7 +35,7 @@ export declare const buttonProps: {
35
35
  default: boolean;
36
36
  };
37
37
  size: {
38
- type: import("vue").PropType<ButtonSize>;
38
+ type: import('vue').PropType<ButtonSize>;
39
39
  default: string;
40
40
  };
41
41
  border: {
@@ -1,6 +1,6 @@
1
- declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  renderTo: {
3
- type: import("vue").PropType<string | HTMLElement>;
3
+ type: import('vue').PropType<string | HTMLElement>;
4
4
  default: string;
5
5
  };
6
6
  disabled: {
@@ -78,42 +78,9 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
78
78
  type: BooleanConstructor;
79
79
  default: boolean;
80
80
  };
81
- }>, {
82
- cls: import("vue").ComputedRef<(string | false | undefined)[]>;
83
- ns: string;
84
- cn: {
85
- block: string;
86
- element: (className: string) => string;
87
- modifier: (className: string) => string;
88
- is: (className: string) => string;
89
- };
90
- cnOMB: {
91
- block: string;
92
- element: (className: string) => string;
93
- modifier: (className: string) => string;
94
- is: (className: string) => string;
95
- };
96
- messageBoxNs: string;
97
- containerStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
98
- dialogStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
99
- dialogRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
100
- teleportContainer: import("vue").ComputedRef<HTMLElement | undefined>;
101
- teleportDisabled: import("vue").ComputedRef<boolean>;
102
- modelVisible: import("vue").ComputedRef<boolean>;
103
- mergeVisible: import("vue").ComputedRef<boolean>;
104
- interceptClose: (action: 'cancel' | 'ok', e?: Event) => void;
105
- afterLeave: () => void;
106
- afterEnter: () => void;
107
- handleMaskClick: () => void;
108
- handleCancel: (e: Event) => void;
109
- handleOk: (e: Event) => void;
110
- loadingObj: {
111
- ok: boolean;
112
- cancel: boolean;
113
- };
114
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "closed" | "opened" | "update:modelValue")[], "open" | "close" | "closed" | "opened" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
81
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("close" | "open" | "closed" | "opened" | "update:modelValue")[], "close" | "open" | "closed" | "opened" | "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
115
82
  renderTo: {
116
- type: import("vue").PropType<string | HTMLElement>;
83
+ type: import('vue').PropType<string | HTMLElement>;
117
84
  default: string;
118
85
  };
119
86
  disabled: {
@@ -192,12 +159,14 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
192
159
  default: boolean;
193
160
  };
194
161
  }>> & Readonly<{
195
- onOpen?: ((...args: any[]) => any) | undefined;
196
162
  onClose?: ((...args: any[]) => any) | undefined;
163
+ onOpen?: ((...args: any[]) => any) | undefined;
197
164
  onClosed?: ((...args: any[]) => any) | undefined;
198
165
  onOpened?: ((...args: any[]) => any) | undefined;
199
166
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
200
167
  }>, {
168
+ title: string;
169
+ disabled: boolean;
201
170
  height: string | number;
202
171
  minHeight: string | number;
203
172
  minWidth: string | number;
@@ -205,8 +174,6 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
205
174
  width: string | number;
206
175
  mask: boolean;
207
176
  center: boolean;
208
- disabled: boolean;
209
- title: string;
210
177
  renderTo: string | HTMLElement;
211
178
  modelValue: boolean;
212
179
  destroyOnClosed: boolean;
@@ -217,5 +184,5 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
217
184
  popupClass: string;
218
185
  showClose: boolean;
219
186
  showHeaderBottomLine: boolean;
220
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
221
- export default _sfc_main;
187
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
188
+ export default _default;