@me-framework/me-ui-antdv-next 0.0.3

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 (59) hide show
  1. package/LICENSE +21 -0
  2. package/README.en.md +82 -0
  3. package/README.md +82 -0
  4. package/dist/components/body/index.d.ts +4 -0
  5. package/dist/components/body/index.vue.d.ts +176 -0
  6. package/dist/components/body/types.d.ts +30 -0
  7. package/dist/components/box/index.d.ts +4 -0
  8. package/dist/components/box/index.vue.d.ts +120 -0
  9. package/dist/components/box/types.d.ts +34 -0
  10. package/dist/components/breadcrumb/index.d.ts +4 -0
  11. package/dist/components/breadcrumb/index.vue.d.ts +31 -0
  12. package/dist/components/breadcrumb/types.d.ts +76 -0
  13. package/dist/components/icon/index.d.ts +16 -0
  14. package/dist/components/icon/index.vue.d.ts +129 -0
  15. package/dist/components/icon/types.d.ts +32 -0
  16. package/dist/components/input-gps/index.d.ts +4 -0
  17. package/dist/components/input-gps/index.vue.d.ts +19 -0
  18. package/dist/components/input-gps/map.vue.d.ts +21 -0
  19. package/dist/components/input-gps/types.d.ts +44 -0
  20. package/dist/components/input-icon-selector/index.d.ts +4 -0
  21. package/dist/components/input-icon-selector/index.vue.d.ts +33 -0
  22. package/dist/components/input-icon-selector/types.d.ts +39 -0
  23. package/dist/components/input-radio/index.d.ts +4 -0
  24. package/dist/components/input-radio/index.vue.d.ts +106 -0
  25. package/dist/components/input-radio/types.d.ts +23 -0
  26. package/dist/components/menu/MenuTreeItem.vue.d.ts +14 -0
  27. package/dist/components/menu/index.d.ts +4 -0
  28. package/dist/components/menu/index.vue.d.ts +50 -0
  29. package/dist/components/menu/types.d.ts +270 -0
  30. package/dist/components/message/index.d.ts +16 -0
  31. package/dist/components/message/index.vue.d.ts +39 -0
  32. package/dist/components/message/types.d.ts +97 -0
  33. package/dist/components/modal/index.d.ts +4 -0
  34. package/dist/components/modal/index.vue.d.ts +36 -0
  35. package/dist/components/modal/types.d.ts +24 -0
  36. package/dist/components/nav/index.d.ts +4 -0
  37. package/dist/components/nav/index.vue.d.ts +37 -0
  38. package/dist/components/nav/types.d.ts +102 -0
  39. package/dist/components/tree-menu/TreeMenuActions.vue.d.ts +35 -0
  40. package/dist/components/tree-menu/TreeMenuCard.vue.d.ts +40 -0
  41. package/dist/components/tree-menu/TreeMenuEdit.vue.d.ts +127 -0
  42. package/dist/components/tree-menu/TreeMenuNode.vue.d.ts +40 -0
  43. package/dist/components/tree-menu/index.d.ts +4 -0
  44. package/dist/components/tree-menu/index.vue.d.ts +345 -0
  45. package/dist/components/tree-menu/types.d.ts +133 -0
  46. package/dist/composables/useColor.d.ts +8 -0
  47. package/dist/data/menu.json +3686 -0
  48. package/dist/icons/me-icon-test.svg +3 -0
  49. package/dist/images/bg/0.jpg +0 -0
  50. package/dist/images/logo/0.svg +24 -0
  51. package/dist/index.d.ts +35 -0
  52. package/dist/me-ui-antdv-next.css +2 -0
  53. package/dist/me-ui-antdv-next.js +90528 -0
  54. package/dist/me-ui-antdv-next.umd.cjs +262 -0
  55. package/dist/shims-vue.d.ts +25 -0
  56. package/dist/types/index.d.ts +10 -0
  57. package/dist/utils/index.d.ts +16 -0
  58. package/dist/vite.svg +10 -0
  59. package/package.json +99 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 me-framework
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.en.md ADDED
@@ -0,0 +1,82 @@
1
+ # me-ui-antdv-next
2
+
3
+ #### Description
4
+
5
+ An enterprise-grade UI component library based on Vue 3 + TypeScript + antdv-next.
6
+
7
+ - Vue 3 Composition API
8
+ - TypeScript support
9
+ - antdv-next ecosystem
10
+ - Lucide icon library
11
+ - Vite build
12
+
13
+ #### Architecture
14
+
15
+ - `src/` - Component library source code
16
+ - `components/` - Component directory, one subdirectory per component
17
+ - `styles/` - Global styles and design variables
18
+ - `utils/` - Utility functions
19
+ - `composables/` - Composable functions
20
+ - `types/` - Global type definitions
21
+ - `index.ts` - Library entry point
22
+ - `demo/` - Development demo site
23
+ - `views/` - Demo pages
24
+ - `layout/` - Layout components
25
+ - `router/` - Router configuration
26
+ - `composables/` - Demo composables
27
+ - `config/` - Configuration files
28
+ - `document/` - Markdown documentation
29
+ - `scripts/` - Publish scripts
30
+
31
+ #### Installation
32
+
33
+ ```bash
34
+ # Install dependencies
35
+ npm install
36
+
37
+ # Start dev server
38
+ npm run dev
39
+
40
+ # Build library
41
+ npm run build
42
+
43
+ # Build demo site
44
+ npm run build:demo
45
+
46
+ # Type check
47
+ npm run type-check
48
+ ```
49
+
50
+ #### Usage
51
+
52
+ ```ts
53
+ // Global import
54
+ import { createApp } from 'vue'
55
+ import Antd from 'antdv-next'
56
+ import 'antdv-next/dist/reset.css'
57
+ import MeUiAntdv from '@me-framework/me-ui-antdv-next'
58
+ import '@me-framework/me-ui-antdv-next/dist/style.css'
59
+
60
+ const app = createApp(App)
61
+ app.use(Antd)
62
+ app.use(MeUiAntdv)
63
+ app.mount('#app')
64
+ ```
65
+
66
+ ```vue
67
+ <!-- Component usage -->
68
+ <template>
69
+ <MeButton type="primary">Button</MeButton>
70
+ </template>
71
+ ```
72
+
73
+ #### Contributing
74
+
75
+ 1. Fork the repository
76
+ 2. Create a Feat_xxx branch
77
+ 3. Commit your changes
78
+ 4. Create a Pull Request
79
+
80
+ #### License
81
+
82
+ MIT
package/README.md ADDED
@@ -0,0 +1,82 @@
1
+ # me-ui-antdv-next
2
+
3
+ #### 介绍
4
+
5
+ 基于 Vue 3 + TypeScript + antdv-next 的企业级 UI 组件库。
6
+
7
+ - Vue 3 Composition API
8
+ - TypeScript 类型支持
9
+ - antdv-next 生态
10
+ - Lucide 图标库
11
+ - Vite 构建
12
+
13
+ #### 软件架构
14
+
15
+ - `src/` - 组件库源码
16
+ - `components/` - 组件目录,每个组件一个子目录
17
+ - `styles/` - 全局样式和设计变量
18
+ - `utils/` - 工具函数
19
+ - `composables/` - 组合式函数
20
+ - `types/` - 全局类型定义
21
+ - `index.ts` - 组件库入口
22
+ - `demo/` - 开发演示站点
23
+ - `views/` - 演示页面
24
+ - `layout/` - 布局组件
25
+ - `router/` - 路由配置
26
+ - `composables/` - 演示用组合式函数
27
+ - `config/` - 配置文件
28
+ - `document/` - Markdown 格式文档
29
+ - `scripts/` - 发布脚本
30
+
31
+ #### 安装教程
32
+
33
+ ```bash
34
+ # 安装依赖
35
+ npm install
36
+
37
+ # 启动开发服务器
38
+ npm run dev
39
+
40
+ # 构建组件库
41
+ npm run build
42
+
43
+ # 构建演示站点
44
+ npm run build:demo
45
+
46
+ # 类型检查
47
+ npm run type-check
48
+ ```
49
+
50
+ #### 使用说明
51
+
52
+ ```ts
53
+ // 全局引入
54
+ import { createApp } from 'vue'
55
+ import Antd from 'antdv-next'
56
+ import 'antdv-next/dist/reset.css'
57
+ import MeUiAntdv from '@me-framework/me-ui-antdv-next'
58
+ import '@me-framework/me-ui-antdv-next/dist/style.css'
59
+
60
+ const app = createApp(App)
61
+ app.use(Antd)
62
+ app.use(MeUiAntdv)
63
+ app.mount('#app')
64
+ ```
65
+
66
+ ```vue
67
+ <!-- 组件使用 -->
68
+ <template>
69
+ <MeButton type="primary">按钮</MeButton>
70
+ </template>
71
+ ```
72
+
73
+ #### 参与贡献
74
+
75
+ 1. Fork 本仓库
76
+ 2. 新建 Feat_xxx 分支
77
+ 3. 提交代码
78
+ 4. 新建 Pull Request
79
+
80
+ #### License
81
+
82
+ MIT
@@ -0,0 +1,4 @@
1
+ import { default as MeBody } from './index.vue';
2
+ export { MeBody };
3
+ export default MeBody;
4
+ export * from './types';
@@ -0,0 +1,176 @@
1
+ import { PropType, Component } from 'vue';
2
+ declare var __VLS_1: {}, __VLS_8: {}, __VLS_30: {}, __VLS_49: {}, __VLS_51: {}, __VLS_53: {}, __VLS_55: {}, __VLS_57: {}, __VLS_59: {}, __VLS_61: {}, __VLS_63: {}, __VLS_65: {}, __VLS_67: {};
3
+ type __VLS_Slots = {} & {
4
+ 'me-body-loading'?: (props: typeof __VLS_1) => any;
5
+ } & {
6
+ 'me-body-error'?: (props: typeof __VLS_8) => any;
7
+ } & {
8
+ 'me-body-empty'?: (props: typeof __VLS_30) => any;
9
+ } & {
10
+ 'me-body-result'?: (props: typeof __VLS_49) => any;
11
+ } & {
12
+ default?: (props: typeof __VLS_51) => any;
13
+ } & {
14
+ 'me-body-header'?: (props: typeof __VLS_53) => any;
15
+ } & {
16
+ 'me-body-main'?: (props: typeof __VLS_55) => any;
17
+ } & {
18
+ default?: (props: typeof __VLS_57) => any;
19
+ } & {
20
+ 'me-body-footer'?: (props: typeof __VLS_59) => any;
21
+ } & {
22
+ 'me-body-header'?: (props: typeof __VLS_61) => any;
23
+ } & {
24
+ 'me-body-main'?: (props: typeof __VLS_63) => any;
25
+ } & {
26
+ default?: (props: typeof __VLS_65) => any;
27
+ } & {
28
+ 'me-body-footer'?: (props: typeof __VLS_67) => any;
29
+ };
30
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
31
+ /** 背景色,默认 #fff */
32
+ background: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ /** 内容区域外边距,支持数字(px)或字符串(如 '16px' / '1rem'),默认 0 */
37
+ space: {
38
+ type: PropType<number | string>;
39
+ default: number;
40
+ };
41
+ /** 显示模式:normal 普通模式 / full 全屏填充模式,默认 normal */
42
+ mode: {
43
+ type: PropType<"normal" | "full">;
44
+ default: string;
45
+ };
46
+ /** 是否全屏显示,全屏时 space 强制为 0,默认 false */
47
+ fullScreen: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ /**
52
+ * 加载中状态
53
+ * - 传入 true:显示默认像素风加载动画
54
+ * - 传入 Component:渲染自定义加载组件
55
+ * - 默认 false
56
+ */
57
+ loading: {
58
+ type: PropType<boolean | Component>;
59
+ default: boolean;
60
+ };
61
+ /** 错误状态,传入 true 显示默认错误页,传入 Component 则渲染自定义错误组件,默认 false */
62
+ error: {
63
+ type: PropType<boolean | Component>;
64
+ default: boolean;
65
+ };
66
+ /** 空状态,传入 true 显示默认空状态页,传入 Component 则渲染自定义空状态组件,默认 false */
67
+ empty: {
68
+ type: PropType<boolean | Component>;
69
+ default: boolean;
70
+ };
71
+ /** 空状态描述文本,默认 "暂无数据" */
72
+ emptyDescription: {
73
+ type: StringConstructor;
74
+ default: string;
75
+ };
76
+ /** 结果页类型,设置后展示 Ant Design Vue Result 结果页 */
77
+ result: {
78
+ type: PropType<"success" | "warning" | "info" | "error">;
79
+ default: undefined;
80
+ };
81
+ /** 结果页标题 */
82
+ title: {
83
+ type: StringConstructor;
84
+ default: undefined;
85
+ };
86
+ /** 结果页副标题 */
87
+ subTitle: {
88
+ type: StringConstructor;
89
+ default: undefined;
90
+ };
91
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
92
+ retry: (...args: any[]) => void;
93
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
94
+ /** 背景色,默认 #fff */
95
+ background: {
96
+ type: StringConstructor;
97
+ default: string;
98
+ };
99
+ /** 内容区域外边距,支持数字(px)或字符串(如 '16px' / '1rem'),默认 0 */
100
+ space: {
101
+ type: PropType<number | string>;
102
+ default: number;
103
+ };
104
+ /** 显示模式:normal 普通模式 / full 全屏填充模式,默认 normal */
105
+ mode: {
106
+ type: PropType<"normal" | "full">;
107
+ default: string;
108
+ };
109
+ /** 是否全屏显示,全屏时 space 强制为 0,默认 false */
110
+ fullScreen: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
114
+ /**
115
+ * 加载中状态
116
+ * - 传入 true:显示默认像素风加载动画
117
+ * - 传入 Component:渲染自定义加载组件
118
+ * - 默认 false
119
+ */
120
+ loading: {
121
+ type: PropType<boolean | Component>;
122
+ default: boolean;
123
+ };
124
+ /** 错误状态,传入 true 显示默认错误页,传入 Component 则渲染自定义错误组件,默认 false */
125
+ error: {
126
+ type: PropType<boolean | Component>;
127
+ default: boolean;
128
+ };
129
+ /** 空状态,传入 true 显示默认空状态页,传入 Component 则渲染自定义空状态组件,默认 false */
130
+ empty: {
131
+ type: PropType<boolean | Component>;
132
+ default: boolean;
133
+ };
134
+ /** 空状态描述文本,默认 "暂无数据" */
135
+ emptyDescription: {
136
+ type: StringConstructor;
137
+ default: string;
138
+ };
139
+ /** 结果页类型,设置后展示 Ant Design Vue Result 结果页 */
140
+ result: {
141
+ type: PropType<"success" | "warning" | "info" | "error">;
142
+ default: undefined;
143
+ };
144
+ /** 结果页标题 */
145
+ title: {
146
+ type: StringConstructor;
147
+ default: undefined;
148
+ };
149
+ /** 结果页副标题 */
150
+ subTitle: {
151
+ type: StringConstructor;
152
+ default: undefined;
153
+ };
154
+ }>> & Readonly<{
155
+ onRetry?: ((...args: any[]) => any) | undefined;
156
+ }>, {
157
+ loading: boolean | Component;
158
+ title: string;
159
+ space: string | number;
160
+ result: "success" | "warning" | "info" | "error";
161
+ empty: boolean | Component;
162
+ error: boolean | Component;
163
+ mode: "normal" | "full";
164
+ background: string;
165
+ fullScreen: boolean;
166
+ emptyDescription: string;
167
+ subTitle: string;
168
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
169
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
170
+ declare const _default: typeof __VLS_export;
171
+ export default _default;
172
+ type __VLS_WithSlots<T, S> = T & {
173
+ new (): {
174
+ $slots: S;
175
+ };
176
+ };
@@ -0,0 +1,30 @@
1
+ import { Component } from 'vue';
2
+ /** MeBody 组件状态枚举 */
3
+ export type MeBodyState = 'loading' | 'error' | 'empty' | 'result' | 'normal' | 'full';
4
+ /** MeBody 组件 Props */
5
+ export interface MeBodyProps {
6
+ /** 背景色,默认 #fff */
7
+ background?: string;
8
+ /** 内容区域外边距,支持数字(px)或字符串(如 '16px' / '1rem'),默认 0 */
9
+ space?: number | string;
10
+ /** 显示模式:normal 普通模式 / full 全屏填充模式,默认 normal */
11
+ mode?: 'normal' | 'full';
12
+ /** 是否全屏显示,全屏时 space 强制为 0,默认 false */
13
+ fullScreen?: boolean;
14
+ /** 错误状态,传入 true 显示默认错误页,传入 Component 则渲染自定义错误组件,默认 false */
15
+ error?: boolean | Component;
16
+ /** 空状态,传入 true 显示默认空状态页,传入 Component 则渲染自定义空状态组件,默认 false */
17
+ empty?: boolean | Component;
18
+ /** 空状态描述文本,默认 "暂无数据" */
19
+ emptyDescription?: string;
20
+ /** 加载中状态,传入 true 显示默认像素风动画,传入 Component 则渲染自定义加载组件,默认 false */
21
+ loading?: boolean | Component;
22
+ /** 结果页类型,设置后展示 Ant Design Vue Result 结果页 */
23
+ result?: 'success' | 'warning' | 'info' | 'error';
24
+ /** 结果页标题 */
25
+ title?: string;
26
+ /** 结果页副标题 */
27
+ subTitle?: string;
28
+ }
29
+ /** MeBody 组件实例类型 */
30
+ export type MeBodyInstance = InstanceType<typeof import('./index.vue').default>;
@@ -0,0 +1,4 @@
1
+ import { default as MeBox } from './index.vue';
2
+ export { MeBox };
3
+ export default MeBox;
4
+ export * from './types';
@@ -0,0 +1,120 @@
1
+ import { PropType } from 'vue';
2
+ import { MeBoxType, MeBoxTrafficLightPosition } from './types';
3
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
4
+ type __VLS_Slots = {} & {
5
+ 'header-left'?: (props: typeof __VLS_1) => any;
6
+ } & {
7
+ title?: (props: typeof __VLS_3) => any;
8
+ } & {
9
+ 'header-right'?: (props: typeof __VLS_5) => any;
10
+ } & {
11
+ default?: (props: typeof __VLS_7) => any;
12
+ };
13
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
14
+ /** 容器类型:default 普通容器 / mac Mac 窗口风格,默认 'default' */
15
+ type: {
16
+ type: PropType<MeBoxType>;
17
+ default: MeBoxType;
18
+ };
19
+ /** 标题 */
20
+ title: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ /** 容器宽度 */
25
+ width: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ /** 容器高度 */
30
+ height: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ /** 是否显示交通灯按钮(仅 type=mac 时有效),默认 true */
35
+ showTrafficLights: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ /** 交通灯位置:left / right,默认 'left'(仅 type=mac 时有效) */
40
+ trafficLightPosition: {
41
+ type: PropType<MeBoxTrafficLightPosition>;
42
+ default: MeBoxTrafficLightPosition;
43
+ };
44
+ /** body 自定义样式 */
45
+ bodyStyle: {
46
+ type: PropType<Record<string, any>>;
47
+ default: () => Record<string, any>;
48
+ };
49
+ /** 自定义样式 */
50
+ customStyle: {
51
+ type: PropType<Record<string, any>>;
52
+ default: () => Record<string, any>;
53
+ };
54
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
55
+ close: (...args: any[]) => void;
56
+ minimize: (...args: any[]) => void;
57
+ maximize: (...args: any[]) => void;
58
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
59
+ /** 容器类型:default 普通容器 / mac Mac 窗口风格,默认 'default' */
60
+ type: {
61
+ type: PropType<MeBoxType>;
62
+ default: MeBoxType;
63
+ };
64
+ /** 标题 */
65
+ title: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ /** 容器宽度 */
70
+ width: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ };
74
+ /** 容器高度 */
75
+ height: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ };
79
+ /** 是否显示交通灯按钮(仅 type=mac 时有效),默认 true */
80
+ showTrafficLights: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ };
84
+ /** 交通灯位置:left / right,默认 'left'(仅 type=mac 时有效) */
85
+ trafficLightPosition: {
86
+ type: PropType<MeBoxTrafficLightPosition>;
87
+ default: MeBoxTrafficLightPosition;
88
+ };
89
+ /** body 自定义样式 */
90
+ bodyStyle: {
91
+ type: PropType<Record<string, any>>;
92
+ default: () => Record<string, any>;
93
+ };
94
+ /** 自定义样式 */
95
+ customStyle: {
96
+ type: PropType<Record<string, any>>;
97
+ default: () => Record<string, any>;
98
+ };
99
+ }>> & Readonly<{
100
+ onClose?: ((...args: any[]) => any) | undefined;
101
+ onMinimize?: ((...args: any[]) => any) | undefined;
102
+ onMaximize?: ((...args: any[]) => any) | undefined;
103
+ }>, {
104
+ width: string;
105
+ type: MeBoxType;
106
+ title: string;
107
+ bodyStyle: Record<string, any>;
108
+ height: string;
109
+ showTrafficLights: boolean;
110
+ trafficLightPosition: MeBoxTrafficLightPosition;
111
+ customStyle: Record<string, any>;
112
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
113
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
114
+ declare const _default: typeof __VLS_export;
115
+ export default _default;
116
+ type __VLS_WithSlots<T, S> = T & {
117
+ new (): {
118
+ $slots: S;
119
+ };
120
+ };
@@ -0,0 +1,34 @@
1
+ /** MeBox 容器类型 */
2
+ export type MeBoxType = 'default' | 'mac';
3
+ /** MeBox 标题栏交通灯位置 */
4
+ export type MeBoxTrafficLightPosition = 'left' | 'right';
5
+ /** MeBox 组件 Props */
6
+ export interface MeBoxProps {
7
+ /** 容器类型:default 普通容器 / mac Mac 窗口风格,默认 'default' */
8
+ type?: MeBoxType;
9
+ /** 标题 */
10
+ title?: string;
11
+ /** 容器宽度 */
12
+ width?: string;
13
+ /** 容器高度 */
14
+ height?: string;
15
+ /** 是否显示交通灯按钮(仅 type=mac 时有效),默认 true */
16
+ showTrafficLights?: boolean;
17
+ /** 交通灯位置:left / right,默认 'left'(仅 type=mac 时有效) */
18
+ trafficLightPosition?: MeBoxTrafficLightPosition;
19
+ /** body 自定义样式 */
20
+ bodyStyle?: Record<string, any>;
21
+ /** 自定义样式 */
22
+ customStyle?: Record<string, any>;
23
+ }
24
+ /** MeBox 组件 Emits */
25
+ export interface MeBoxEmits {
26
+ /** 关闭按钮点击事件 */
27
+ (e: 'close'): void;
28
+ /** 最小化按钮点击事件 */
29
+ (e: 'minimize'): void;
30
+ /** 最大化按钮点击事件 */
31
+ (e: 'maximize'): void;
32
+ }
33
+ /** MeBox 组件实例类型 */
34
+ export type MeBoxInstance = InstanceType<typeof import('./index.vue').default>;
@@ -0,0 +1,4 @@
1
+ import { default as MeBreadcrumb } from './index.vue';
2
+ export { MeBreadcrumb };
3
+ export default MeBreadcrumb;
4
+ export * from './types';
@@ -0,0 +1,31 @@
1
+ import { PropType } from 'vue';
2
+ import { MeBreadcrumbItem, MeBreadcrumbChangePayload } from './types';
3
+ declare var __VLS_9: {};
4
+ type __VLS_Slots = {} & {
5
+ separator?: (props: typeof __VLS_9) => any;
6
+ };
7
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
8
+ items: {
9
+ type: PropType<MeBreadcrumbItem[]>;
10
+ default: () => MeBreadcrumbItem[];
11
+ };
12
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ change: (payload: MeBreadcrumbChangePayload) => any;
14
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
15
+ items: {
16
+ type: PropType<MeBreadcrumbItem[]>;
17
+ default: () => MeBreadcrumbItem[];
18
+ };
19
+ }>> & Readonly<{
20
+ onChange?: ((payload: MeBreadcrumbChangePayload) => any) | undefined;
21
+ }>, {
22
+ items: MeBreadcrumbItem[];
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
24
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
27
+ type __VLS_WithSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,76 @@
1
+ /** 面包屑项类型 */
2
+ export type MeBreadcrumbItemType = 'default' | 'select' | 'menu';
3
+ /** 普通面包屑项 */
4
+ export interface MeBreadcrumbDefaultItem {
5
+ /** 项类型:default 普通文本,默认 'default' */
6
+ type?: 'default';
7
+ /** 显示文本 */
8
+ label: string;
9
+ /** 路由跳转目标 */
10
+ to?: string | Record<string, any>;
11
+ /** 文本是否加粗,默认 false */
12
+ bold?: boolean;
13
+ }
14
+ /** Select 选项 */
15
+ export interface MeBreadcrumbSelectOption {
16
+ /** 选项值 */
17
+ value: string | number;
18
+ /** 选项标签 */
19
+ label: string;
20
+ }
21
+ /** Select 类型面包屑项 */
22
+ export interface MeBreadcrumbSelectItem {
23
+ /** 项类型:select 下拉选择器 */
24
+ type: 'select';
25
+ /** 当前选中值 */
26
+ value: string | number;
27
+ /** 选项列表 */
28
+ options: MeBreadcrumbSelectOption[];
29
+ /** a-select 的额外 props 配置 */
30
+ props?: Record<string, any>;
31
+ /** 文本是否加粗,默认 false */
32
+ bold?: boolean;
33
+ /** 选中值变化时的回调 */
34
+ onChange?: (option: MeBreadcrumbSelectOption) => void;
35
+ }
36
+ /** Menu 类型面包屑项 */
37
+ export interface MeBreadcrumbMenuDropdownItem {
38
+ /** 项类型:menu 下拉菜单 */
39
+ type: 'menu';
40
+ /** 显示文本 */
41
+ label: string;
42
+ /** 当前选中项 value,用于高亮显示 */
43
+ activeValue?: string | number;
44
+ /** 下拉菜单项列表(与 select 选项结构一致) */
45
+ options: MeBreadcrumbSelectOption[];
46
+ /** 文本是否加粗,默认 false */
47
+ bold?: boolean;
48
+ /** 菜单项点击时的回调 */
49
+ onChange?: (option: MeBreadcrumbSelectOption) => void;
50
+ }
51
+ /** 面包屑项(联合类型,支持类型收窄) */
52
+ export type MeBreadcrumbItem = MeBreadcrumbDefaultItem | MeBreadcrumbSelectItem | MeBreadcrumbMenuDropdownItem;
53
+ /** change 事件参数 */
54
+ export interface MeBreadcrumbChangePayload {
55
+ /** 被选中的选项 */
56
+ option: MeBreadcrumbSelectOption;
57
+ /** 面包屑项在数组中的索引 */
58
+ index: number;
59
+ }
60
+ /** MeBreadcrumb 组件 Props */
61
+ export interface MeBreadcrumbProps {
62
+ /** 面包屑数据 */
63
+ items?: MeBreadcrumbItem[];
64
+ }
65
+ /** MeBreadcrumb 组件 Emits */
66
+ export interface MeBreadcrumbEmits {
67
+ /**
68
+ * 交互变化时触发,统一事件出口
69
+ * - select 类型:选中值变化
70
+ * - menu 类型:下拉菜单项点击
71
+ * - default 类型:文本项点击
72
+ */
73
+ (e: 'change', payload: MeBreadcrumbChangePayload): void;
74
+ }
75
+ /** MeBreadcrumb 组件实例类型 */
76
+ export type MeBreadcrumbInstance = InstanceType<typeof import('./index.vue').default>;
@@ -0,0 +1,16 @@
1
+ import { default as MeIcon } from './index.vue';
2
+ /**
3
+ * 动态加载 iconfont Symbol 模式的 JS 资源
4
+ * @param url iconfont JS 地址(如 //at.alicdn.com/t/c/font_xxx.js)
5
+ * @returns Promise 在脚本加载完成后 resolve
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { loadIconfont } from '@me-framework/me-ui-antdv-next'
10
+ * loadIconfont('//at.alicdn.com/t/c/font_4553328_gv6smxir5b.js')
11
+ * ```
12
+ */
13
+ export declare function loadIconfont(url: string): Promise<void>;
14
+ export { MeIcon };
15
+ export default MeIcon;
16
+ export * from './types';