@rft-rc/recycle-ui 0.0.1-rc.3 → 0.0.1-rc.5

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 (31) hide show
  1. package/dist/components/button/index.d.ts +5 -0
  2. package/dist/components/button/index.d.ts.map +1 -0
  3. package/dist/components/button/index.vue.d.ts +40 -0
  4. package/dist/components/button/index.vue.d.ts.map +1 -0
  5. package/dist/components/card/index.d.ts +5 -0
  6. package/dist/components/card/index.d.ts.map +1 -0
  7. package/dist/components/card/index.vue.d.ts +60 -0
  8. package/dist/components/card/index.vue.d.ts.map +1 -0
  9. package/dist/components/descriptions/index.d.ts +118 -0
  10. package/dist/components/descriptions/index.d.ts.map +1 -0
  11. package/dist/components/descriptions/index.vue.d.ts +37 -0
  12. package/dist/components/descriptions/index.vue.d.ts.map +1 -0
  13. package/dist/components/descriptions/item.vue.d.ts +27 -0
  14. package/dist/components/descriptions/item.vue.d.ts.map +1 -0
  15. package/dist/components/icon/index.d.ts +23 -0
  16. package/dist/components/icon/index.d.ts.map +1 -0
  17. package/dist/components/icon/index.vue.d.ts +20 -0
  18. package/dist/components/icon/index.vue.d.ts.map +1 -0
  19. package/dist/components/message/index.d.ts +19 -0
  20. package/dist/components/message/index.d.ts.map +1 -0
  21. package/dist/components/message/index.vue.d.ts +15 -0
  22. package/dist/components/message/index.vue.d.ts.map +1 -0
  23. package/dist/components/toast/index.d.ts +18 -0
  24. package/dist/components/toast/index.d.ts.map +1 -0
  25. package/dist/components/toast/index.vue.d.ts +30 -0
  26. package/dist/components/toast/index.vue.d.ts.map +1 -0
  27. package/dist/index.d.ts +21 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/types.d.ts +30 -0
  30. package/dist/types.d.ts.map +1 -0
  31. package/package.json +4 -3
@@ -0,0 +1,5 @@
1
+ import type { App } from 'vue';
2
+ import Button from './index.vue';
3
+ export declare function install(app: App): App<any>;
4
+ export default Button;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,MAAM,MAAM,aAAa,CAAC;AAKjC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAG/B;AAGD,eAAe,MAAM,CAAC"}
@@ -0,0 +1,40 @@
1
+ type ButtonType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
2
+ type ButtonSize = 'mini' | 'small' | 'medium' | 'large';
3
+ interface Props {
4
+ type?: ButtonType;
5
+ size?: ButtonSize;
6
+ plain?: boolean;
7
+ block?: boolean;
8
+ /** 按钮文本,提供时可不写默认插槽 */
9
+ label?: string;
10
+ /** 圆角;number 代表 px,string 支持百分比等写法(如 '50%')。也兼容 boolean,true 表示大圆角。 */
11
+ round?: number | string | boolean;
12
+ disabled?: boolean;
13
+ loading?: boolean;
14
+ }
15
+ declare var __VLS_1: {};
16
+ type __VLS_Slots = {} & {
17
+ default?: (props: typeof __VLS_1) => any;
18
+ };
19
+ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
20
+ click: (ev: MouseEvent) => any;
21
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
22
+ onClick?: ((ev: MouseEvent) => any) | undefined;
23
+ }>, {
24
+ type: ButtonType;
25
+ size: ButtonSize;
26
+ plain: boolean;
27
+ block: boolean;
28
+ label: string;
29
+ round: number | string | boolean;
30
+ disabled: boolean;
31
+ loading: boolean;
32
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
34
+ export default _default;
35
+ type __VLS_WithSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
40
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.vue"],"names":[],"mappings":"AAmHA,KAAK,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC3E,KAAK,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAExD,UAAU,KAAK;IACb,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,sBAAsB;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AA0ED,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAuB/C,QAAA,MAAM,eAAe;;;;;UA7GZ,UAAU;UACV,UAAU;WACT,OAAO;WACP,OAAO;WAEP,MAAM;WAEN,MAAM,GAAG,MAAM,GAAG,OAAO;cACtB,OAAO;aACR,OAAO;6EA4GjB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { App } from 'vue';
2
+ import Card from './index.vue';
3
+ export declare function install(app: App): App<any>;
4
+ export default Card;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/card/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,IAAI,MAAM,aAAa,CAAC;AAM/B,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAI/B;AAED,eAAe,IAAI,CAAC"}
@@ -0,0 +1,60 @@
1
+ interface Props {
2
+ /** 卡片整体背景色,默认白色 */
3
+ color?: string;
4
+ /** 顶部色块背景色 */
5
+ topBgColor?: string;
6
+ /** 标题文本(可用 slot="title" 自定义) */
7
+ title?: string;
8
+ /** 右侧状态文案(可用 slot="status" 自定义) */
9
+ status?: string;
10
+ /** 状态文本颜色 */
11
+ statusColor?: string;
12
+ /** 圆角:数值代表 px,字符串可用百分比 */
13
+ round?: number | string;
14
+ /** 是否描边 */
15
+ bordered?: boolean;
16
+ /** 阴影强度:0/1/2/3... -> 转换为不同阴影强度 */
17
+ elevation?: number;
18
+ /** 内边距(CSS 值,如 '16px 12px') */
19
+ padding?: string;
20
+ /** 主体内容的垂直间距(px 或 CSS 字符串) */
21
+ gap?: number | string;
22
+ /** 宽度(px/百分比) */
23
+ width?: string | number;
24
+ /** 高度(px/百分比) */
25
+ height?: string | number;
26
+ }
27
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {};
28
+ type __VLS_Slots = {} & {
29
+ title?: (props: typeof __VLS_1) => any;
30
+ } & {
31
+ status?: (props: typeof __VLS_3) => any;
32
+ } & {
33
+ content?: (props: typeof __VLS_5) => any;
34
+ } & {
35
+ default?: (props: typeof __VLS_7) => any;
36
+ } & {
37
+ action?: (props: typeof __VLS_9) => any;
38
+ };
39
+ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
40
+ round: number | string;
41
+ title: string;
42
+ width: string | number;
43
+ gap: number | string;
44
+ color: string;
45
+ topBgColor: string;
46
+ status: string;
47
+ statusColor: string;
48
+ bordered: boolean;
49
+ elevation: number;
50
+ padding: string;
51
+ height: string | number;
52
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
53
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
54
+ export default _default;
55
+ type __VLS_WithSlots<T, S> = T & {
56
+ new (): {
57
+ $slots: S;
58
+ };
59
+ };
60
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/card/index.vue"],"names":[],"mappings":"AAyLA,UAAU,KAAK;IACb,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0BAA0B;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8BAA8B;IAC9B,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,iBAAiB;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAwJD,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AACpG,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAuB9C,QAAA,MAAM,eAAe;WAlMX,MAAM,GAAG,MAAM;WANf,MAAM;WAgBN,MAAM,GAAG,MAAM;SAFjB,MAAM,GAAG,MAAM;WAlBb,MAAM;gBAED,MAAM;YAIV,MAAM;iBAED,MAAM;cAIT,OAAO;eAEN,MAAM;aAER,MAAM;YAMP,MAAM,GAAG,MAAM;6EA6LxB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,118 @@
1
+ import type { App } from 'vue';
2
+ import Descriptions from './index.vue';
3
+ export declare function install(app: App): App<any>;
4
+ export declare const RcDescriptions: {
5
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
6
+ title?: string;
7
+ column?: number | string;
8
+ gap?: number | string;
9
+ labelWidth?: number | string | "";
10
+ data?: Array<Record<string, any>>;
11
+ keyMap?: {
12
+ key: string;
13
+ value: string;
14
+ };
15
+ }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
16
+ data: Array<Record<string, any>>;
17
+ labelWidth: number | string | "";
18
+ column: number | string;
19
+ gap: number | string;
20
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
21
+ P: {};
22
+ B: {};
23
+ D: {};
24
+ C: {};
25
+ M: {};
26
+ Defaults: {};
27
+ }, Readonly<{
28
+ title?: string;
29
+ column?: number | string;
30
+ gap?: number | string;
31
+ labelWidth?: number | string | "";
32
+ data?: Array<Record<string, any>>;
33
+ keyMap?: {
34
+ key: string;
35
+ value: string;
36
+ };
37
+ }> & Readonly<{}>, {}, {}, {}, {}, {
38
+ data: Array<Record<string, any>>;
39
+ labelWidth: number | string | "";
40
+ column: number | string;
41
+ gap: number | string;
42
+ }>;
43
+ __isFragment?: never;
44
+ __isTeleport?: never;
45
+ __isSuspense?: never;
46
+ } & import("vue").ComponentOptionsBase<Readonly<{
47
+ title?: string;
48
+ column?: number | string;
49
+ gap?: number | string;
50
+ labelWidth?: number | string | "";
51
+ data?: Array<Record<string, any>>;
52
+ keyMap?: {
53
+ key: string;
54
+ value: string;
55
+ };
56
+ }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
57
+ data: Array<Record<string, any>>;
58
+ labelWidth: number | string | "";
59
+ column: number | string;
60
+ gap: number | string;
61
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
62
+ $slots: {
63
+ title?: (props: {}) => any;
64
+ } & {
65
+ default?: (props: {}) => any;
66
+ };
67
+ });
68
+ export declare const RcDescriptionsItem: {
69
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
70
+ label?: string | number;
71
+ value?: any;
72
+ labelWidth?: string | number;
73
+ span?: number | string;
74
+ }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
75
+ label: string | number;
76
+ span: number | string;
77
+ value: any;
78
+ labelWidth: string | number;
79
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
80
+ P: {};
81
+ B: {};
82
+ D: {};
83
+ C: {};
84
+ M: {};
85
+ Defaults: {};
86
+ }, Readonly<{
87
+ label?: string | number;
88
+ value?: any;
89
+ labelWidth?: string | number;
90
+ span?: number | string;
91
+ }> & Readonly<{}>, {}, {}, {}, {}, {
92
+ label: string | number;
93
+ span: number | string;
94
+ value: any;
95
+ labelWidth: string | number;
96
+ }>;
97
+ __isFragment?: never;
98
+ __isTeleport?: never;
99
+ __isSuspense?: never;
100
+ } & import("vue").ComponentOptionsBase<Readonly<{
101
+ label?: string | number;
102
+ value?: any;
103
+ labelWidth?: string | number;
104
+ span?: number | string;
105
+ }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
106
+ label: string | number;
107
+ span: number | string;
108
+ value: any;
109
+ labelWidth: string | number;
110
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
111
+ $slots: {
112
+ label?: (props: {}) => any;
113
+ } & {
114
+ default?: (props: {}) => any;
115
+ };
116
+ });
117
+ export default Descriptions;
118
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/descriptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,YAAY,MAAM,aAAa,CAAC;AAMvC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAO/B;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAe,CAAC;AAC3C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAmB,CAAC;AAEnD,eAAe,YAAY,CAAC"}
@@ -0,0 +1,37 @@
1
+ type KeyMap = {
2
+ key: string;
3
+ value: string;
4
+ };
5
+ type __VLS_Props = {
6
+ title?: string;
7
+ /** 每行展示的列数,支持数字或字符串数字 */
8
+ column?: number | string;
9
+ /** 列间距,支持数字(px)或字符串值,例如 '12px' */
10
+ gap?: number | string;
11
+ /** label 固定宽度,数字代表 px,也可直接传入 '120px' */
12
+ labelWidth?: number | string | '';
13
+ /** 直接通过数据渲染 */
14
+ data?: Array<Record<string, any>>;
15
+ /** data 的字段映射,如 { key: 'label', value: 'value' } */
16
+ keyMap?: KeyMap;
17
+ };
18
+ declare var __VLS_1: {}, __VLS_6: {};
19
+ type __VLS_Slots = {} & {
20
+ title?: (props: typeof __VLS_1) => any;
21
+ } & {
22
+ default?: (props: typeof __VLS_6) => any;
23
+ };
24
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
25
+ data: Array<Record<string, any>>;
26
+ labelWidth: number | string | "";
27
+ column: number | string;
28
+ gap: number | string;
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
31
+ export default _default;
32
+ type __VLS_WithSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
37
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/descriptions/index.vue"],"names":[],"mappings":"AA4HA,KAAK,MAAM,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE7C,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,kCAAkC;IAClC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,wCAAwC;IACxC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,EAAE,CAAC;IAClC,eAAe;IACf,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IAClC,oDAAoD;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAuHF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAyB/C,QAAA,MAAM,eAAe;UAtJZ,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;gBAFpB,MAAM,GAAG,MAAM,GAAG,EAAE;YAJxB,MAAM,GAAG,MAAM;SAElB,MAAM,GAAG,MAAM;6EAiKrB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,27 @@
1
+ type __VLS_Props = {
2
+ label?: string | number;
3
+ value?: any;
4
+ labelWidth?: string | number;
5
+ /** 跨越的列数,默认 1,可传字符串数字 */
6
+ span?: number | string;
7
+ };
8
+ declare var __VLS_1: {}, __VLS_3: {};
9
+ type __VLS_Slots = {} & {
10
+ label?: (props: typeof __VLS_1) => any;
11
+ } & {
12
+ default?: (props: typeof __VLS_3) => any;
13
+ };
14
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
15
+ label: string | number;
16
+ span: number | string;
17
+ value: any;
18
+ labelWidth: string | number;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
27
+ //# sourceMappingURL=item.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item.vue.d.ts","sourceRoot":"","sources":["../../../src/components/descriptions/item.vue"],"names":[],"mappings":"AAkGA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB,CAAC;AAmFF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAsB/C,QAAA,MAAM,eAAe;WAjHX,MAAM,GAAG,MAAM;UAIhB,MAAM,GAAG,MAAM;WAHd,GAAG;gBACE,MAAM,GAAG,MAAM;6EAsH5B,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { App } from 'vue';
2
+ import Icon from './index.vue';
3
+ export declare function install(app: App): App<any>;
4
+ export declare const RcIcon: import("vue").DefineComponent<{
5
+ name: string;
6
+ size?: number | string;
7
+ color?: string;
8
+ spin?: boolean;
9
+ code?: string | number;
10
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
11
+ name: string;
12
+ size?: number | string;
13
+ color?: string;
14
+ spin?: boolean;
15
+ code?: string | number;
16
+ }> & Readonly<{}>, {
17
+ size: number | string;
18
+ code: string | number;
19
+ color: string;
20
+ spin: boolean;
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ export default Icon;
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,IAAI,MAAM,aAAa,CAAC;AAI/B,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAI/B;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;6EAAO,CAAC;AAC3B,eAAe,IAAI,CAAC"}
@@ -0,0 +1,20 @@
1
+ type __VLS_Props = {
2
+ /** 图标名,例如 'icon_a_in_store',也可直接传完整类名 */
3
+ name: string;
4
+ /** 尺寸,数字按 px 处理,也可传 '1.2em' 等 */
5
+ size?: number | string;
6
+ /** 颜色 */
7
+ color?: string;
8
+ /** 是否旋转(用于 loading 类图标) */
9
+ spin?: boolean;
10
+ /** Unicode 码点(不带 \\u,十六进制,如 'e609' 或 0xe609),用于无类名时渲染 */
11
+ code?: string | number;
12
+ };
13
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
14
+ size: number | string;
15
+ code: string | number;
16
+ color: string;
17
+ spin: boolean;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ export default _default;
20
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/icon/index.vue"],"names":[],"mappings":"AA0GA,KAAK,WAAW,GAAG;IACjB,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,SAAS;IACT,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2BAA2B;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,yDAAyD;IACzD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB,CAAC;;UAPO,MAAM,GAAG,MAAM;UAMf,MAAM,GAAG,MAAM;WAJd,MAAM;UAEP,OAAO;;AA+GhB,wBAOG"}
@@ -0,0 +1,19 @@
1
+ import { type App } from 'vue';
2
+ type MessageType = 'info' | 'success' | 'warning' | 'error' | 'loading';
3
+ export interface MessageOptions {
4
+ content: string;
5
+ duration?: number;
6
+ type?: MessageType;
7
+ }
8
+ export declare const message: {
9
+ open(opts: MessageOptions): any;
10
+ info(content: string, duration?: number): any;
11
+ success(content: string, duration?: number): any;
12
+ warning(content: string, duration?: number): any;
13
+ error(content: string, duration?: number): any;
14
+ loading(content: string, duration?: number): any;
15
+ destroy(): void;
16
+ };
17
+ export default message;
18
+ export declare function install(app: App): App<any>;
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/message/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAGpD,KAAK,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAExE,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AAsBD,eAAO,MAAM,OAAO;eACP,cAAc;kBAGX,MAAM,aAAa,MAAM;qBAGtB,MAAM,aAAa,MAAM;qBAGzB,MAAM,aAAa,MAAM;mBAG3B,MAAM,aAAa,MAAM;qBAGvB,MAAM,aAAa,MAAM;;CAW3C,CAAC;AAEF,eAAe,OAAO,CAAC;AAGvB,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAG/B"}
@@ -0,0 +1,15 @@
1
+ export type MessageType = 'info' | 'success' | 'warning' | 'error' | 'loading';
2
+ export interface MessageItem {
3
+ id: number;
4
+ type: MessageType;
5
+ content: string;
6
+ duration: number;
7
+ }
8
+ declare function remove(id: number): void;
9
+ declare function add(type: MessageType, content: string, duration: number): number;
10
+ declare const _default: import("vue").DefineComponent<{}, {
11
+ add: typeof add;
12
+ remove: typeof remove;
13
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
14
+ export default _default;
15
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/message/index.vue"],"names":[],"mappings":"AA4FA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAC/E,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAKD,iBAAS,MAAM,CAAC,EAAE,EAAE,MAAM,QAGzB;AAED,iBAAS,GAAG,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAOhE;;;;;AA8ED,wBAMG"}
@@ -0,0 +1,18 @@
1
+ import { App } from 'vue';
2
+ import Toast, { type ToastProps } from './index.vue';
3
+ export type { ToastProps };
4
+ export interface ShowToastOptions {
5
+ message?: string;
6
+ type?: 'text' | 'success' | 'fail' | 'loading';
7
+ duration?: number;
8
+ mask?: boolean;
9
+ /** 关闭时回调(仅服务方式有效) */
10
+ onClose?: () => void;
11
+ }
12
+ export declare function showToast(options: string | ShowToastOptions): {
13
+ close: typeof hideToast;
14
+ };
15
+ export declare function hideToast(): void;
16
+ export declare function install(app: App): App<any>;
17
+ export default Toast;
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AACrC,OAAO,KAAK,EAAE,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAErD,YAAY,EAAE,UAAU,EAAE,CAAC;AAC3B,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,qBAAqB;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAgBD,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,gBAAgB;;EAqB3D;AAED,wBAAgB,SAAS,SAKxB;AAID,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAG/B;AAED,eAAe,KAAK,CAAC"}
@@ -0,0 +1,30 @@
1
+ export type ToastType = 'text' | 'success' | 'fail' | 'loading';
2
+ export interface ToastProps {
3
+ message?: string;
4
+ type?: ToastType;
5
+ duration?: number;
6
+ mask?: boolean;
7
+ /** 服务端关闭回调,用于卸载容器 */
8
+ onAfterLeave?: () => void;
9
+ }
10
+ declare function close(): void;
11
+ declare var __VLS_13: {};
12
+ type __VLS_Slots = {} & {
13
+ default?: (props: typeof __VLS_13) => any;
14
+ };
15
+ declare const __VLS_component: import("vue").DefineComponent<ToastProps, {
16
+ close: typeof close;
17
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToastProps> & Readonly<{}>, {
18
+ type: ToastType;
19
+ mask: boolean;
20
+ message: string;
21
+ duration: number;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
24
+ export default _default;
25
+ type __VLS_WithSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
30
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/toast/index.vue"],"names":[],"mappings":"AAgKA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAChE,MAAM,WAAW,UAAU;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,qBAAqB;IACrB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAoBD,iBAAS,KAAK,SAGb;AA2HD,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAoBhD,QAAA,MAAM,eAAe;;;UA7KZ,SAAS;UAET,OAAO;aAHJ,MAAM;cAEL,MAAM;6EAoLjB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,21 @@
1
+ import type { App, Plugin } from 'vue';
2
+ import type { RecycleUIOptions } from './types';
3
+ export declare const RECYCLE_UI_SYMBOL: unique symbol;
4
+ export declare const defaultRecycleUIConfig: RecycleUIOptions;
5
+ export declare const install: (app: App, options?: RecycleUIOptions) => App<any>;
6
+ declare const plugin: Plugin;
7
+ export default plugin;
8
+ export declare function createRecycleUI(options?: RecycleUIOptions): Plugin;
9
+ export { default as RcButton } from './components/button';
10
+ export { RcDescriptions, RcDescriptionsItem } from './components/descriptions';
11
+ export { install as installButton } from './components/button';
12
+ export { install as installDescriptions } from './components/descriptions';
13
+ export { default as RcCard } from './components/card';
14
+ export { install as installCard } from './components/card';
15
+ export { RcDescriptions as rcDescriptions, RcDescriptionsItem as rcDescriptionsItem } from './components/descriptions';
16
+ export { default as RcToast, showToast, hideToast } from './components/toast';
17
+ export { default as RcIcon } from './components/icon/index';
18
+ export { install as installIcon } from './components/icon/index';
19
+ export { default as message } from './components/message';
20
+ export { install as installMessage } from './components/message';
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAOvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,iBAAiB,eAA8B,CAAC;AAE7D,eAAO,MAAM,sBAAsB,EAAE,gBASpC,CAAC;AAYF,eAAO,MAAM,OAAO,GAAI,KAAK,GAAG,EAAE,UAAU,gBAAgB,aAqB3D,CAAC;AAGF,QAAA,MAAM,MAAM,EAAE,MAAoB,CAAC;AACnC,eAAe,MAAM,CAAC;AAKtB,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,MAAM,CAMlE;AAGD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAE,cAAc,IAAI,cAAc,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEvH,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEjE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,30 @@
1
+ export interface RecycleUIOptions {
2
+ /**
3
+ * 全局组件注册前缀,默认 rc
4
+ * 仅对通过 app.use(plugin) 的全量注册生效;
5
+ * 单独按需引入的组件不受影响。
6
+ */
7
+ prefix?: string;
8
+ /**
9
+ * 是否自动注册内置组件,默认 true
10
+ */
11
+ autoRegister?: boolean;
12
+ /**
13
+ * 全局主题与自定义键值
14
+ */
15
+ theme?: Record<string, any>;
16
+ /**
17
+ * 自定义 provide 的 key(高级用法)
18
+ */
19
+ provideKey?: symbol;
20
+ /**
21
+ * 阿里 IconFont 的样式表地址(.css),用于注入到 <head>,默认指向指定项目版本。
22
+ * 若希望始终拉取最新版本,可配置为 `//at.alicdn.com/t/c/font_<projectId>.css`
23
+ */
24
+ iconCssUrl?: string;
25
+ /**
26
+ * IconFont 字体类名,通常为 'iconfont'
27
+ */
28
+ iconClass?: string;
29
+ }
30
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rft-rc/recycle-ui",
3
- "version": "0.0.1-rc.3",
3
+ "version": "0.0.1-rc.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "A Vue 3 component library with dumi-powered docs.",
@@ -19,7 +19,8 @@
19
19
  "typesVersions": {
20
20
  "*": {
21
21
  "*": [
22
- "dist/*"
22
+ "dist/*",
23
+ "dist/index.d.ts"
23
24
  ]
24
25
  }
25
26
  },
@@ -36,7 +37,7 @@
36
37
  "dev": "dumi dev --open",
37
38
  "docs:dev": "dumi dev",
38
39
  "docs:build": "dumi build",
39
- "build": "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.build.json && vite build",
40
+ "build": "vite build && vue-tsc --declaration --emitDeclarationOnly -p tsconfig.build.json",
40
41
  "typecheck": "vue-tsc --noEmit",
41
42
  "version:rc": "node scripts/version-rc.js",
42
43
  "version:release": "node scripts/version-release.js"