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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. package/README.md +15 -84
  2. package/package.json +34 -48
  3. package/{dist/types → x-next}/_hooks/use-overflow.d.ts +1 -1
  4. package/{dist/types → x-next}/_hooks/use-popup-manager.d.ts +1 -1
  5. package/{dist/types → x-next}/_utils/dom.d.ts +1 -1
  6. package/{dist/types → x-next}/_utils/icon.d.ts +7 -7
  7. package/{dist/types → x-next}/_utils/is.d.ts +3 -6
  8. package/{dist/types → x-next}/_utils/keyboard.d.ts +1 -1
  9. package/{dist/types → x-next}/_utils/vue-eco.d.ts +7 -11
  10. package/x-next/componets/button/index.vue.d.ts +162 -0
  11. package/{dist/types → x-next}/componets/button/props.d.ts +4 -4
  12. package/{dist/types → x-next}/componets/dialog/index.vue.d.ts +27 -27
  13. package/{dist/types → x-next}/componets/dialog/props.d.ts +2 -2
  14. package/{dist/types → x-next}/componets/dialog/use-props.d.ts +1 -1
  15. package/{dist/types → x-next}/componets/dialog/use.d.ts +1 -1
  16. package/x-next/componets/dialog/warp.d.ts +2 -0
  17. package/x-next/componets/message/index.vue.d.ts +387 -0
  18. package/{dist/types → x-next}/componets/message/props.d.ts +1 -1
  19. package/{dist/types → x-next}/componets/message/warp.d.ts +1 -1
  20. package/{dist/types → x-next}/componets/message-box/index.d.ts +1 -1
  21. package/{dist/types → x-next}/componets/message-box/props.d.ts +1 -1
  22. package/x-next/componets/message-box/warp.d.ts +2 -0
  23. package/{dist/types → x-next}/componets/notification/index.vue.d.ts +26 -26
  24. package/{dist/types → x-next}/componets/notification/props.d.ts +2 -2
  25. package/{dist/types → x-next}/componets/notification/warp.d.ts +1 -1
  26. package/{dist/types → x-next}/componets/space/index.d.ts +9 -9
  27. package/{dist/types → x-next}/componets/trend-chart/components/trend-chart-curve.d.ts +17 -17
  28. package/{dist/types → x-next}/componets/trend-chart/components/trend-chart-grid.d.ts +7 -7
  29. package/{dist/types → x-next}/componets/trend-chart/components/trend-chart-labels.d.ts +7 -7
  30. package/{dist/types → x-next}/componets/trend-chart/components/trend-chart.d.ts +47 -47
  31. package/{dist/types → x-next}/componets/trend-chart/helpers/genPoints.d.ts +1 -1
  32. package/x-next/componets/trend-chart/index.d.ts +2 -0
  33. package/{dist/types → x-next}/componets/trend-chart/props.d.ts +2 -2
  34. package/{dist/types → x-next}/icons/animation/animation-loading.vue.d.ts +9 -9
  35. package/{dist/types → x-next}/icons/default/check-circle-fill.vue.d.ts +9 -9
  36. package/{dist/types → x-next}/icons/default/close-circle-fill.vue.d.ts +9 -9
  37. package/{dist/types → x-next}/icons/default/exclamation-circle-fill.vue.d.ts +9 -9
  38. package/{dist/types → x-next}/icons/default/info-circle-fill.vue.d.ts +9 -9
  39. package/{dist/types → x-next}/icons/default/minus-circle-fill.vue.d.ts +9 -9
  40. package/x-next/icons/index.d.ts +7 -0
  41. package/x-next/style.css +1 -0
  42. package/x-next/ui.d.ts +5 -0
  43. package/x-next/ui.js +1357 -0
  44. package/x-next/ui.umd.cjs +1 -0
  45. package/LICENSE +0 -21
  46. package/dist/favicon.ico +0 -0
  47. package/dist/types/componets/button/index.vue.d.ts +0 -107
  48. package/dist/types/componets/dialog/warp.d.ts +0 -2
  49. package/dist/types/componets/message/index.vue.d.ts +0 -116
  50. package/dist/types/componets/message-box/warp.d.ts +0 -2
  51. package/dist/types/componets/tag-cloud/index.d.ts +0 -0
  52. package/dist/types/componets/trend-chart/index.d.ts +0 -2
  53. package/dist/types/icons/index.d.ts +0 -7
  54. package/dist/types/ui.d.ts +0 -5
  55. package/dist/ui.cjs.js +0 -2
  56. package/dist/ui.es.js +0 -1395
  57. package/dist/ui.umd.js +0 -3
  58. /package/{dist/types → x-next}/_props/css.d.ts +0 -0
  59. /package/{dist/types → x-next}/_props/global.d.ts +0 -0
  60. /package/{dist/types → x-next}/_utils/config.d.ts +0 -0
  61. /package/{dist/types → x-next}/_utils/convert-case.d.ts +0 -0
  62. /package/{dist/types → x-next}/_utils/helpers.d.ts +0 -0
  63. /package/{dist/types → x-next}/_utils/number.d.ts +0 -0
  64. /package/{dist → x-next/componets/tag-cloud}/index.d.ts +0 -0
  65. /package/{dist/types → x-next}/componets/trend-chart/helpers/genPath.d.ts +0 -0
  66. /package/{dist/types → x-next}/componets/trend-chart/helpers/getPadding.d.ts +0 -0
  67. /package/{dist/types → x-next}/componets/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/packages/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
  ```
package/package.json CHANGED
@@ -1,66 +1,52 @@
1
1
  {
2
- "author": {
3
- "email": "xy@ztes.com",
4
- "name": "XuYu"
5
- },
6
- "license": "MIT",
7
- "engines": {
8
- "node": ">=10.16.0"
2
+ "name": "x-next",
3
+ "private": false,
4
+ "version": "0.0.0-alpha.3",
5
+ "description": "An amazing Vue3 UI library.",
6
+ "type": "module",
7
+ "main": "x-next/ui.umd.js",
8
+ "module": "x-next/ui.js",
9
+ "types": "x-next/types/ui.d.ts",
10
+ "scripts": {
11
+ "dev": "vite",
12
+ "build": "vue-tsc && vite build",
13
+ "preview": "vite preview",
14
+ "publish": "npm publish --access=public"
9
15
  },
10
16
  "repository": {
11
17
  "type": "git",
12
- "url": "https://github.com/ztes/x-next.git"
18
+ "url": "git+https://github.com/ztes/x-next.git"
13
19
  },
14
20
  "bugs": {
15
21
  "url": "https://github.com/ztes/x-next/issues"
16
22
  },
17
- "private": false,
18
- "name": "x-next",
19
- "version": "0.0.0-alpha.2",
23
+ "dependencies": {
24
+ "dayjs": "^1.11.11",
25
+ "vue": "^3.5.12"
26
+ },
27
+ "devDependencies": {
28
+ "@types/node": "^20.12.7",
29
+ "@vitejs/plugin-vue": "^5.0.4",
30
+ "sass": "^1.80.3",
31
+ "typescript": "^5.2.2",
32
+ "vite": "^5.2.0",
33
+ "vite-plugin-dts": "^4.3.0",
34
+ "vue-tsc": "^2.0.6"
35
+ },
20
36
  "publishConfig": {
21
37
  "access": "public"
22
38
  },
23
- "description": "A simple Vue 3 UI component. ",
24
39
  "keywords": [
25
40
  "vue",
26
41
  "vue 3",
27
42
  "component"
28
43
  ],
29
- "main": "dist/ui.umd.js",
30
- "module": "dist/ui.es.js",
31
- "types": "./dist/types/ui.d.ts",
32
- "files": [
33
- "dist"
34
- ],
35
- "scripts": {
36
- "dev": "vite",
37
- "dev:docs": "vitepress dev docs",
38
- "build:component": "vite build",
39
- "build:docs": "vitepress build docs",
40
- "preview:docs": "vitepress preview docs",
41
- "format": "prettier -w ."
42
- },
43
- "devDependencies": {
44
- "@babel/types": "^7.22.4",
45
- "@types/node": "^20.2.5",
46
- "@vitejs/plugin-vue": "^4.2.3",
47
- "@vitejs/plugin-vue-jsx": "^4.0.1",
48
- "@vue/compiler-sfc": "^3.5.12",
49
- "prettier": "^2.8.8",
50
- "sass": "^1.80.3",
51
- "sass-loader": "^16.0.2",
52
- "typescript": "^5.4.5",
53
- "vite": "^5.2.13",
54
- "vite-plugin-css-injected-by-js": "^3.1.1",
55
- "vite-plugin-dts": "^2.3.0",
56
- "vitepress": "^1.4.1",
57
- "vue": "^3.5.12"
58
- },
59
- "peerDependencies": {
60
- "vue": "^3.0.0"
44
+ "author": {
45
+ "email": "xy@ztes.com",
46
+ "name": "XuYu"
61
47
  },
62
- "dependencies": {
63
- "date-fns": "^2.22.1",
64
- "dayjs": "^1.11.13"
65
- }
48
+ "license": "MIT",
49
+ "files": [
50
+ "x-next"
51
+ ]
66
52
  }
@@ -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,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;
@@ -3,7 +3,7 @@
3
3
  * @param str
4
4
  */
5
5
  export declare const toPascalCase: (str: string) => string;
6
- export declare function createIconComponent(name: string): import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ export declare function createIconComponent(name: string): import('vue').DefineComponent<import('vue').ExtractPropTypes<{
7
7
  size: {
8
8
  type: (StringConstructor | NumberConstructor)[];
9
9
  default: undefined;
@@ -25,11 +25,11 @@ export declare function createIconComponent(name: string): import("vue").DefineC
25
25
  default: undefined;
26
26
  };
27
27
  }>, {
28
- cls: import("vue").ComputedRef<(string | {
29
- [x: string]: boolean;
28
+ cls: import('vue').ComputedRef<(string | {
29
+ "x-icon-loading": boolean;
30
30
  })[]>;
31
- styles: import("vue").ComputedRef<import("vue").CSSProperties>;
32
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
31
+ styles: import('vue').ComputedRef<import('vue').CSSProperties>;
32
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
33
33
  size: {
34
34
  type: (StringConstructor | NumberConstructor)[];
35
35
  default: undefined;
@@ -51,9 +51,9 @@ export declare function createIconComponent(name: string): import("vue").DefineC
51
51
  default: undefined;
52
52
  };
53
53
  }>> & Readonly<{}>, {
54
+ size: string | number;
54
55
  color: string;
55
56
  rotate: number;
56
- size: string | number;
57
57
  spin: boolean;
58
58
  fillColor: unknown[];
59
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
59
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,6 +1,5 @@
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;
@@ -16,10 +15,8 @@ export declare function isFunction(obj: any): obj is (...args: any[]) => any;
16
15
  export declare function isEmptyObject(obj: any): boolean;
17
16
  export declare function isExist(obj: any): boolean;
18
17
  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
- }>[];
18
+ export declare const isComponentInstance: (value: any) => value is ComponentPublicInstance;
19
+ export declare const isArrayChildren: (children: VNodeNormalizedChildren) => children is VNode[];
23
20
  export declare const isQuarter: (fromat: string) => boolean;
24
21
  export declare function isDayjs(time: any): time is Dayjs;
25
22
  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, Plugin } from 'vue';
2
2
  export type SFCWithInstall<T> = T & Plugin;
3
3
  /**
4
4
  * @description Vue生态操作封装
@@ -18,15 +18,11 @@ 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;
@@ -0,0 +1,162 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ disabled: BooleanConstructor;
3
+ block: BooleanConstructor;
4
+ loading: BooleanConstructor;
5
+ loadingFill: {
6
+ type: BooleanConstructor;
7
+ default: boolean;
8
+ };
9
+ debounce: {
10
+ type: NumberConstructor;
11
+ default: number;
12
+ };
13
+ shape: {
14
+ type: import('vue').PropType<import('./props').ButtonShape>;
15
+ default: undefined;
16
+ };
17
+ link: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ type: {
22
+ type: import('vue').PropType<import('./props').ButtonType>;
23
+ default: undefined;
24
+ };
25
+ status: {
26
+ type: import('vue').PropType<import('./props').ButtonStatus>;
27
+ default: undefined;
28
+ };
29
+ plain: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ size: {
34
+ type: import('vue').PropType<import('./props').ButtonSize>;
35
+ default: string;
36
+ };
37
+ border: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
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<{
52
+ disabled: BooleanConstructor;
53
+ block: BooleanConstructor;
54
+ loading: BooleanConstructor;
55
+ loadingFill: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ debounce: {
60
+ type: NumberConstructor;
61
+ default: number;
62
+ };
63
+ shape: {
64
+ type: import('vue').PropType<import('./props').ButtonShape>;
65
+ default: undefined;
66
+ };
67
+ link: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ type: {
72
+ type: import('vue').PropType<import('./props').ButtonType>;
73
+ default: undefined;
74
+ };
75
+ status: {
76
+ type: import('vue').PropType<import('./props').ButtonStatus>;
77
+ default: undefined;
78
+ };
79
+ plain: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
83
+ size: {
84
+ type: import('vue').PropType<import('./props').ButtonSize>;
85
+ default: string;
86
+ };
87
+ border: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ }>> & Readonly<{
92
+ onClick?: ((...args: any[]) => any) | undefined;
93
+ }>, {
94
+ size: import('./props').ButtonSize;
95
+ border: boolean;
96
+ link: boolean;
97
+ block: boolean;
98
+ disabled: boolean;
99
+ type: import('./props').ButtonType;
100
+ loading: boolean;
101
+ loadingFill: boolean;
102
+ debounce: number;
103
+ shape: import('./props').ButtonShape;
104
+ status: import('./props').ButtonStatus;
105
+ plain: boolean;
106
+ }, {}, {
107
+ AnimationLoading: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
108
+ size: {
109
+ type: (StringConstructor | NumberConstructor)[];
110
+ default: undefined;
111
+ };
112
+ rotate: {
113
+ type: NumberConstructor;
114
+ default: undefined;
115
+ };
116
+ spin: {
117
+ type: BooleanConstructor;
118
+ default: boolean;
119
+ };
120
+ color: {
121
+ type: StringConstructor;
122
+ default: undefined;
123
+ };
124
+ fillColor: {
125
+ type: ArrayConstructor;
126
+ default: undefined;
127
+ };
128
+ }>, {
129
+ cls: import('vue').ComputedRef<(string | {
130
+ "x-icon-loading": boolean;
131
+ })[]>;
132
+ styles: import('vue').ComputedRef<import('vue').CSSProperties>;
133
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
134
+ size: {
135
+ type: (StringConstructor | NumberConstructor)[];
136
+ default: undefined;
137
+ };
138
+ rotate: {
139
+ type: NumberConstructor;
140
+ default: undefined;
141
+ };
142
+ spin: {
143
+ type: BooleanConstructor;
144
+ default: boolean;
145
+ };
146
+ color: {
147
+ type: StringConstructor;
148
+ default: undefined;
149
+ };
150
+ fillColor: {
151
+ type: ArrayConstructor;
152
+ default: undefined;
153
+ };
154
+ }>> & Readonly<{}>, {
155
+ size: string | number;
156
+ color: string;
157
+ rotate: number;
158
+ spin: boolean;
159
+ fillColor: unknown[];
160
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
161
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
162
+ export default _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: {