@rft-rc/recycle-ui 0.0.2 → 0.0.3-rc.2

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 (44) hide show
  1. package/README.md +38 -34
  2. package/dist/components/button/index.vue.d.ts +18 -6
  3. package/dist/components/button/index.vue.d.ts.map +1 -1
  4. package/dist/components/calendar/index.d.ts +5 -0
  5. package/dist/components/calendar/index.d.ts.map +1 -0
  6. package/dist/components/calendar/index.vue.d.ts +64 -0
  7. package/dist/components/calendar/index.vue.d.ts.map +1 -0
  8. package/dist/components/calendar/panel-content.vue.d.ts +38 -0
  9. package/dist/components/calendar/panel-content.vue.d.ts.map +1 -0
  10. package/dist/components/card/index.vue.d.ts +2 -2
  11. package/dist/components/card/index.vue.d.ts.map +1 -1
  12. package/dist/components/dropdown/index.d.ts +8 -0
  13. package/dist/components/dropdown/index.d.ts.map +1 -0
  14. package/dist/components/dropdown/index.vue.d.ts +49 -0
  15. package/dist/components/dropdown/index.vue.d.ts.map +1 -0
  16. package/dist/components/dropdown/item.vue.d.ts +24 -0
  17. package/dist/components/dropdown/item.vue.d.ts.map +1 -0
  18. package/dist/components/dropdown/menu.vue.d.ts +32 -0
  19. package/dist/components/dropdown/menu.vue.d.ts.map +1 -0
  20. package/dist/components/dropdown/types.d.ts +2 -0
  21. package/dist/components/dropdown/types.d.ts.map +1 -0
  22. package/dist/components/icon/index.d.ts +1 -1
  23. package/dist/components/icon/index.vue.d.ts +1 -1
  24. package/dist/components/icon/index.vue.d.ts.map +1 -1
  25. package/dist/components/input/index.d.ts +5 -0
  26. package/dist/components/input/index.d.ts.map +1 -0
  27. package/dist/components/input/index.vue.d.ts +139 -0
  28. package/dist/components/input/index.vue.d.ts.map +1 -0
  29. package/dist/components/popup/index.d.ts +5 -0
  30. package/dist/components/popup/index.d.ts.map +1 -0
  31. package/dist/components/popup/index.vue.d.ts +70 -0
  32. package/dist/components/popup/index.vue.d.ts.map +1 -0
  33. package/dist/components/search-area/index.vue.d.ts +51 -11
  34. package/dist/components/search-area/index.vue.d.ts.map +1 -1
  35. package/dist/index.cjs +1 -1
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d.ts +9 -0
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/index.mjs +2165 -477
  40. package/dist/index.mjs.map +1 -1
  41. package/dist/style.css +1 -1
  42. package/dist/types.d.ts +4 -0
  43. package/dist/types.d.ts.map +1 -1
  44. package/package.json +1 -1
package/README.md CHANGED
@@ -1,34 +1,38 @@
1
- ## recycle-ui
2
-
3
- 基于 Vue 3 的组件库,使用 dumi 搭建文档站。
4
-
5
- ### 启动文档(开发)
6
- ```bash
7
- pnpm i
8
- pnpm docs:dev
9
- # 或 npm i && npm run docs:dev
10
- ```
11
-
12
- 打开浏览器访问本地提示地址(默认 8000/5173 等端口)。
13
-
14
- ### 构建文档(生产)
15
- ```bash
16
- pnpm docs:build
17
- ```
18
-
19
- ### 构建组件库
20
- ```bash
21
- pnpm build
22
- ```
23
-
24
- ### 使用
25
- ```ts
26
- import { createApp } from 'vue';
27
- import { RcButton } from '@rft-rc/recycle-ui';
28
- // 引入样式(确保与文档站一致)
29
- import '@rft-rc/recycle-ui/style.css';
30
- createApp({}).component('RcButton', RcButton);
31
- ```
32
-
33
-
34
-
1
+ ---
2
+ toc: content
3
+ ---
4
+
5
+ ## recycle-ui
6
+
7
+ 基于 Vue 3 的组件库,使用 dumi 搭建文档站。
8
+
9
+ ### 启动文档(开发)
10
+ ```bash
11
+ pnpm i
12
+ pnpm docs:dev
13
+ # 或 npm i && npm run docs:dev
14
+ ```
15
+
16
+ 打开浏览器访问本地提示地址(默认 8000/5173 等端口)。
17
+
18
+ ### 构建文档(生产)
19
+ ```bash
20
+ pnpm docs:build
21
+ ```
22
+
23
+ ### 构建组件库
24
+ ```bash
25
+ pnpm build
26
+ ```
27
+
28
+ ### 使用
29
+ ```ts
30
+ import { createApp } from 'vue';
31
+ import { RcButton } from '@rft-rc/recycle-ui';
32
+ // 引入样式(确保与文档站一致)
33
+ import '@rft-rc/recycle-ui/style.css';
34
+ createApp({}).component('RcButton', RcButton);
35
+ ```
36
+
37
+
38
+
@@ -1,9 +1,11 @@
1
1
  type ButtonType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
2
2
  type ButtonSize = 'mini' | 'small' | 'medium' | 'large';
3
+ type ButtonMode = 'outline' | 'text';
3
4
  interface Props {
4
5
  type?: ButtonType;
5
6
  size?: ButtonSize;
6
- plain?: boolean;
7
+ /** 按钮模式:outline 中空模式,text 文本模式 */
8
+ mode?: ButtonMode;
7
9
  block?: boolean;
8
10
  /** 按钮文本,提供时可不写默认插槽 */
9
11
  label?: string;
@@ -11,24 +13,34 @@ interface Props {
11
13
  round?: number | string | boolean;
12
14
  disabled?: boolean;
13
15
  loading?: boolean;
16
+ /** 前置图标名称 */
17
+ preIcon?: string;
18
+ /** 后置图标名称 */
19
+ suffixIcon?: string;
14
20
  }
15
- declare var __VLS_1: {};
21
+ declare var __VLS_1: {}, __VLS_6: {}, __VLS_8: {};
16
22
  type __VLS_Slots = {} & {
17
- default?: (props: typeof __VLS_1) => any;
23
+ preIcon?: (props: typeof __VLS_1) => any;
24
+ } & {
25
+ default?: (props: typeof __VLS_6) => any;
26
+ } & {
27
+ suffixIcon?: (props: typeof __VLS_8) => any;
18
28
  };
19
29
  declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
20
30
  click: (ev: MouseEvent) => any;
21
31
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
22
32
  onClick?: ((ev: MouseEvent) => any) | undefined;
23
33
  }>, {
24
- type: ButtonType;
25
34
  size: ButtonSize;
26
- plain: boolean;
27
- block: boolean;
35
+ type: ButtonType;
28
36
  label: string;
37
+ mode: ButtonMode;
38
+ block: boolean;
29
39
  round: number | string | boolean;
30
40
  disabled: boolean;
31
41
  loading: boolean;
42
+ preIcon: string;
43
+ suffixIcon: string;
32
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
45
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
34
46
  export default _default;
@@ -1 +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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AAU;WACT,OAAO;WAIP,MAAM,GAAG,MAAM,GAAG,OAAO;cACtB,OAAO;aACR,OAAO;aAEP,MAAM;gBAEH,MAAM;6EAoKnB,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 Calendar from './index.vue';
3
+ export declare function install(app: App): App<any>;
4
+ export default Calendar;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,QAAQ,MAAM,aAAa,CAAC;AAMnC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAI/B;AAED,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,64 @@
1
+ type CalendarValue = string | [string, string] | null;
2
+ interface DayItem {
3
+ date: Date;
4
+ type: string;
5
+ text: string;
6
+ bottomInfo?: string;
7
+ }
8
+ type CalendarMode = 'default' | 'popup';
9
+ interface Props {
10
+ /** 当前选中的日期,格式为 YYYY-MM-DD */
11
+ modelValue?: CalendarValue;
12
+ /** 是否支持区间选择:true/false 或数字(表示区间可选的最大天数) */
13
+ range?: boolean | number;
14
+ /** 显示模式:default 直接展示,popup 输入框模式(点击后弹出日历) */
15
+ mode?: CalendarMode;
16
+ /** 输入框占位符 */
17
+ placeholder?: string;
18
+ /** 是否显示标题栏 */
19
+ showTitle?: boolean;
20
+ /** 标题栏文字 */
21
+ title?: string;
22
+ /** 最小可选日期 */
23
+ minDate?: string;
24
+ /** 最大可选日期 */
25
+ maxDate?: string;
26
+ /** 禁用日期函数 */
27
+ disabledDate?: (date: Date) => boolean;
28
+ /** 日期格式化函数 */
29
+ formatter?: (day: DayItem) => {
30
+ text?: string;
31
+ bottomInfo?: string;
32
+ };
33
+ /** 区间模式下是否显示底部按钮(确定/取消),为 false 时区间完整后自动确认 */
34
+ showFooter?: boolean;
35
+ /** 区间模式下,结束日期是否自动加一天(选中日期为结束日期时,实际返回的结束日期会加一天) */
36
+ endDateOffset?: boolean;
37
+ }
38
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
39
+ "update:modelValue": (value: CalendarValue) => any;
40
+ confirm: (value: CalendarValue) => any;
41
+ change: (value: CalendarValue) => any;
42
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
43
+ "onUpdate:modelValue"?: ((value: CalendarValue) => any) | undefined;
44
+ onConfirm?: ((value: CalendarValue) => any) | undefined;
45
+ onChange?: ((value: CalendarValue) => any) | undefined;
46
+ }>, {
47
+ title: string;
48
+ mode: CalendarMode;
49
+ placeholder: string;
50
+ modelValue: CalendarValue;
51
+ showTitle: boolean;
52
+ range: boolean | number;
53
+ minDate: string;
54
+ maxDate: string;
55
+ disabledDate: (date: Date) => boolean;
56
+ formatter: (day: DayItem) => {
57
+ text?: string;
58
+ bottomInfo?: string;
59
+ };
60
+ showFooter: boolean;
61
+ endDateOffset: boolean;
62
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
63
+ export default _default;
64
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/index.vue"],"names":[],"mappings":"AAoiBA,KAAK,aAAa,GAAG,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;AAEtD,UAAU,OAAO;IACf,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IA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;
3
+ type: string;
4
+ text: string;
5
+ bottomInfo?: string;
6
+ }
7
+ interface Props {
8
+ showTitle?: boolean;
9
+ title?: string;
10
+ range?: boolean;
11
+ selectedDate: string | null;
12
+ rangeStart: string | null;
13
+ rangeEnd: string | null;
14
+ minDate?: string;
15
+ maxDate?: string;
16
+ disabledDate?: (date: Date) => boolean;
17
+ formatter?: (day: DayItem) => {
18
+ text?: string;
19
+ bottomInfo?: string;
20
+ };
21
+ showFooter?: boolean;
22
+ maxRangeDays?: number;
23
+ }
24
+ declare const _default: import("vue").DefineComponent<Props, {
25
+ yearScrollRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
26
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
27
+ clear: () => any;
28
+ "select-day": (day: DayItem) => any;
29
+ confirm: () => any;
30
+ "shortcut-select": (range: [string, string]) => any;
31
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
32
+ onClear?: (() => any) | undefined;
33
+ "onSelect-day"?: ((day: DayItem) => any) | undefined;
34
+ onConfirm?: (() => any) | undefined;
35
+ "onShortcut-select"?: ((range: [string, string]) => any) | undefined;
36
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
+ export default _default;
38
+ //# sourceMappingURL=panel-content.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"panel-content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/panel-content.vue"],"names":[],"mappings":"AAisCA,UAAU,OAAO;IACf,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,KAAK;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;IACvC,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACrE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;;;;;;;;;;;;;;AAmmCD,wBAQG"}
@@ -37,11 +37,11 @@ type __VLS_Slots = {} & {
37
37
  action?: (props: typeof __VLS_9) => any;
38
38
  };
39
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;
40
+ color: string;
41
41
  title: string;
42
+ round: number | string;
42
43
  width: string | number;
43
44
  gap: number | string;
44
- color: string;
45
45
  topBgColor: string;
46
46
  status: string;
47
47
  statusColor: string;
@@ -1 +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,MAA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AK,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;WA5MX,MAAM;WAIN,MAAM;WAMN,MAAM,GAAG,MAAM;WAUf,MAAM,GAAG,MAAM;SAFjB,MAAM,GAAG,MAAM;gBAhBR,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,8 @@
1
+ import type { App } from 'vue';
2
+ import Dropdown from './index.vue';
3
+ import DropdownMenu from './menu.vue';
4
+ import DropdownItem from './item.vue';
5
+ export declare function install(app: App): App<any>;
6
+ export { DropdownMenu, DropdownItem };
7
+ export default Dropdown;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,YAAY,MAAM,YAAY,CAAC;AACtC,OAAO,YAAY,MAAM,YAAY,CAAC;AAMtC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAK/B;AAED,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;AACtC,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,49 @@
1
+ import type { DropdownPlacement } from './types';
2
+ interface Props {
3
+ placement?: DropdownPlacement;
4
+ trigger?: 'hover' | 'click';
5
+ disabled?: boolean;
6
+ effect?: 'dark' | 'light';
7
+ maxHeight?: string | number;
8
+ hideOnClick?: boolean;
9
+ showTimeout?: number;
10
+ hideTimeout?: number;
11
+ }
12
+ declare function show(): void;
13
+ declare function hide(): void;
14
+ declare function toggle(): void;
15
+ declare var __VLS_1: {}, __VLS_13: {};
16
+ type __VLS_Slots = {} & {
17
+ default?: (props: typeof __VLS_1) => any;
18
+ } & {
19
+ dropdown?: (props: typeof __VLS_13) => any;
20
+ };
21
+ declare const __VLS_component: import("vue").DefineComponent<Props, {
22
+ show: typeof show;
23
+ hide: typeof hide;
24
+ toggle: typeof toggle;
25
+ visible: import("vue").Ref<boolean, boolean>;
26
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
27
+ command: (command: string | number | object) => any;
28
+ "visible-change": (visible: boolean) => any;
29
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
30
+ onCommand?: ((command: string | number | object) => any) | undefined;
31
+ "onVisible-change"?: ((visible: boolean) => any) | undefined;
32
+ }>, {
33
+ disabled: boolean;
34
+ effect: "dark" | "light";
35
+ maxHeight: string | number;
36
+ placement: DropdownPlacement;
37
+ trigger: "hover" | "click";
38
+ hideOnClick: boolean;
39
+ showTimeout: number;
40
+ hideTimeout: number;
41
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
42
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
43
+ export default _default;
44
+ type __VLS_WithSlots<T, S> = T & {
45
+ new (): {
46
+ $slots: S;
47
+ };
48
+ };
49
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/index.vue"],"names":[],"mappings":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icon?: string;
6
+ }
7
+ declare var __VLS_4: {};
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_4) => any;
10
+ };
11
+ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
12
+ disabled: boolean;
13
+ command: string | number | object;
14
+ divided: boolean;
15
+ icon: string;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
24
+ //# sourceMappingURL=item.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item.vue.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/item.vue"],"names":[],"mappings":"AAsHA,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AA2ED,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;AAsB/C,QAAA,MAAM,eAAe;cAtGR,OAAO;aADR,MAAM,GAAG,MAAM,GAAG,MAAM;aAExB,OAAO;UACV,MAAM;6EA2Gb,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,32 @@
1
+ interface Props {
2
+ visible?: boolean;
3
+ effect?: 'dark' | 'light';
4
+ maxHeight?: string | number;
5
+ }
6
+ declare var __VLS_9: {}, __VLS_11: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_9) => any;
9
+ } & {
10
+ default?: (props: typeof __VLS_11) => any;
11
+ };
12
+ declare const __VLS_component: import("vue").DefineComponent<Props, {
13
+ menuRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
14
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
15
+ mouseenter: (event: MouseEvent) => any;
16
+ mouseleave: (event: MouseEvent) => any;
17
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
18
+ onMouseenter?: ((event: MouseEvent) => any) | undefined;
19
+ onMouseleave?: ((event: MouseEvent) => any) | undefined;
20
+ }>, {
21
+ visible: boolean;
22
+ effect: "dark" | "light";
23
+ maxHeight: string | number;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
26
+ export default _default;
27
+ type __VLS_WithSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
32
+ //# sourceMappingURL=menu.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/menu.vue"],"names":[],"mappings":"AA6IA,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B;AAqID,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA2BhD,QAAA,MAAM,eAAe;;;;;;;;;aAtKT,OAAO;YACR,MAAM,GAAG,OAAO;eACb,MAAM,GAAG,MAAM;6EA6K3B,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,2 @@
1
+ export type DropdownPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
2
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GACzB,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,GACV,OAAO,GACP,aAAa,GACb,WAAW,CAAC"}
@@ -15,9 +15,9 @@ export declare const RcIcon: import("vue").DefineComponent<{
15
15
  code?: string | number;
16
16
  }> & Readonly<{}>, {
17
17
  size: number | string;
18
- code: string | number;
19
18
  color: string;
20
19
  spin: boolean;
20
+ code: string | number;
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
22
  export default Icon;
23
23
  //# sourceMappingURL=index.d.ts.map
@@ -12,9 +12,9 @@ type __VLS_Props = {
12
12
  };
13
13
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
14
14
  size: number | string;
15
- code: string | number;
16
15
  color: string;
17
16
  spin: boolean;
17
+ code: string | number;
18
18
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
19
  export default _default;
20
20
  //# sourceMappingURL=index.vue.d.ts.map
@@ -1 +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"}
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;WAEd,MAAM;UAEP,OAAO;UAEP,MAAM,GAAG,MAAM;;AA6GxB,wBAOG"}
@@ -0,0 +1,5 @@
1
+ import type { App } from 'vue';
2
+ import Input from './index.vue';
3
+ export declare function install(app: App): App<any>;
4
+ export default Input;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/input/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,KAAK,MAAM,aAAa,CAAC;AAIhC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAG/B;AAED,eAAe,KAAK,CAAC"}
@@ -0,0 +1,139 @@
1
+ type InputValue = string | number | null | undefined;
2
+ type InputSize = 'large' | 'default' | 'small';
3
+ type AutosizeConfig = boolean | {
4
+ minRows?: number;
5
+ maxRows?: number;
6
+ };
7
+ type DeviceType = 'pc' | 'mobile';
8
+ interface Props {
9
+ /** 双向绑定值 */
10
+ modelValue?: InputValue;
11
+ /** 输入框类型 */
12
+ type?: string;
13
+ /** 尺寸 */
14
+ size?: InputSize;
15
+ /** 占位符 */
16
+ placeholder?: string;
17
+ /** 是否禁用 */
18
+ disabled?: boolean;
19
+ /** 是否显示清空按钮 */
20
+ clearable?: boolean;
21
+ /** 是否显示密码切换按钮 */
22
+ showPassword?: boolean;
23
+ /** 是否只读 */
24
+ readonly?: boolean;
25
+ /** 最大输入长度 */
26
+ maxlength?: number;
27
+ /** 最小输入长度 */
28
+ minlength?: number;
29
+ /** 是否显示字数统计,只在 type 为 'text' 或 'textarea' 时生效 */
30
+ showWordLimit?: boolean;
31
+ /** 文本域行数 */
32
+ rows?: number;
33
+ /** 文本域自适应内容高度 */
34
+ autosize?: AutosizeConfig;
35
+ /** 文本域是否可以缩放 */
36
+ resize?: 'none' | 'both' | 'horizontal' | 'vertical';
37
+ /** 前缀图标 */
38
+ prefixIcon?: string;
39
+ /** 后缀图标 */
40
+ suffixIcon?: string;
41
+ /** 原生 autocomplete 属性 */
42
+ autocomplete?: string;
43
+ /** 原生 name 属性 */
44
+ name?: string;
45
+ /** 原生 autofocus 属性 */
46
+ autofocus?: boolean;
47
+ /** 原生 form 属性 */
48
+ form?: string;
49
+ /** tabindex */
50
+ tabindex?: string | number;
51
+ /** 格式化函数 */
52
+ formatter?: (value: string) => string;
53
+ /** 解析函数 */
54
+ parser?: (value: string) => string;
55
+ /** 设备类型,'pc' | 'mobile',默认从全局配置读取,全局配置默认为 'pc' */
56
+ deviceType?: DeviceType;
57
+ }
58
+ declare function resizeTextarea(): void;
59
+ declare function focus(): void;
60
+ declare function blur(): void;
61
+ declare function select(): void;
62
+ declare function clear(): void;
63
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_49: {}, __VLS_63: {};
64
+ type __VLS_Slots = {} & {
65
+ prepend?: (props: typeof __VLS_1) => any;
66
+ } & {
67
+ prefix?: (props: typeof __VLS_3) => any;
68
+ } & {
69
+ suffix?: (props: typeof __VLS_49) => any;
70
+ } & {
71
+ append?: (props: typeof __VLS_63) => any;
72
+ };
73
+ declare const __VLS_component: import("vue").DefineComponent<Props, {
74
+ focus: typeof focus;
75
+ blur: typeof blur;
76
+ select: typeof select;
77
+ clear: typeof clear;
78
+ resizeTextarea: typeof resizeTextarea;
79
+ inputRef: import("vue").Ref<HTMLInputElement | HTMLTextAreaElement | undefined, HTMLInputElement | HTMLTextAreaElement | undefined>;
80
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
81
+ input: (value: InputValue) => any;
82
+ clear: () => any;
83
+ "update:modelValue": (value: InputValue) => any;
84
+ change: (value: InputValue) => any;
85
+ focus: (event: FocusEvent) => any;
86
+ blur: (event: FocusEvent) => any;
87
+ keydown: (event: KeyboardEvent) => any;
88
+ mouseenter: (event: MouseEvent) => any;
89
+ mouseleave: (event: MouseEvent) => any;
90
+ compositionstart: (event: CompositionEvent) => any;
91
+ compositionupdate: (event: CompositionEvent) => any;
92
+ compositionend: (event: CompositionEvent) => any;
93
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
94
+ onInput?: ((value: InputValue) => any) | undefined;
95
+ onClear?: (() => any) | undefined;
96
+ "onUpdate:modelValue"?: ((value: InputValue) => any) | undefined;
97
+ onChange?: ((value: InputValue) => any) | undefined;
98
+ onFocus?: ((event: FocusEvent) => any) | undefined;
99
+ onBlur?: ((event: FocusEvent) => any) | undefined;
100
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
101
+ onMouseenter?: ((event: MouseEvent) => any) | undefined;
102
+ onMouseleave?: ((event: MouseEvent) => any) | undefined;
103
+ onCompositionstart?: ((event: CompositionEvent) => any) | undefined;
104
+ onCompositionupdate?: ((event: CompositionEvent) => any) | undefined;
105
+ onCompositionend?: ((event: CompositionEvent) => any) | undefined;
106
+ }>, {
107
+ name: string;
108
+ size: InputSize;
109
+ type: string;
110
+ form: string;
111
+ disabled: boolean;
112
+ suffixIcon: string;
113
+ placeholder: string;
114
+ modelValue: string | number | null;
115
+ formatter: (value: string) => string;
116
+ readonly: boolean;
117
+ clearable: boolean;
118
+ showPassword: boolean;
119
+ maxlength: number;
120
+ minlength: number;
121
+ showWordLimit: boolean;
122
+ rows: number;
123
+ autosize: AutosizeConfig;
124
+ resize: "none" | "both" | "horizontal" | "vertical";
125
+ prefixIcon: string;
126
+ autocomplete: string;
127
+ autofocus: boolean;
128
+ tabindex: string | number;
129
+ parser: (value: string) => string;
130
+ deviceType: DeviceType;
131
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
132
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
133
+ export default _default;
134
+ type __VLS_WithSlots<T, S> = T & {
135
+ new (): {
136
+ $slots: S;
137
+ };
138
+ };
139
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/input/index.vue"],"names":[],"mappings":"AA2tBA,KAAK,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,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,MAAM,GAAG,YAAY,GAAG,UAAU;gBAEvC,MAAM;kBAIJ,MAAM;eAIT,OAAO;cAIR,MAAM,GAAG,MAAM;YAIjB,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM;gBAErB,UAAU;6EA0uBvB,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 Popup from './index.vue';
3
+ export declare function install(app: App): App<any>;
4
+ export default Popup;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/popup/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,KAAK,MAAM,aAAa,CAAC;AAMhC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAI/B;AAED,eAAe,KAAK,CAAC"}