el-plus 0.0.87 → 0.0.89

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 (38) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/index.full.js +61 -45
  3. package/dist/index.full.min.js +4 -4
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +4 -4
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +57 -43
  8. package/docs/components/buttons.md +66 -19
  9. package/docs/components/form.md +24 -5
  10. package/docs/components/header.md +23 -0
  11. package/docs/components/search-list-page.md +11 -1
  12. package/docs/components/table.md +2 -1
  13. package/docs/components/use-form-dialog.md +4 -5
  14. package/docs/hooks/use-navigation.md +131 -0
  15. package/docs/hooks/use-utils.md +144 -0
  16. package/docs/index.md +11 -11
  17. package/docs/overview.md +99 -0
  18. package/docs/pages/detail.md +1 -1
  19. package/docs/pages/list.md +1 -1
  20. package/docs/pages/router.md +151 -0
  21. package/es/components/uni-vue/index.d.ts +7 -17
  22. package/es/components/uni-vue/src/uni-vue.vue.d.ts +3 -7
  23. package/es/components/uni-vue/src/uni-vue.vue2.mjs +1 -3
  24. package/es/components/uni-vue/src/uni-vue.vue2.mjs.map +1 -1
  25. package/es/components/uni-vue/src/use-uni-vue.d.ts +1 -1
  26. package/es/components/uni-vue/src/use-uni-vue.mjs +54 -38
  27. package/es/components/uni-vue/src/use-uni-vue.mjs.map +1 -1
  28. package/es/package.json.mjs +1 -1
  29. package/lib/components/uni-vue/index.d.ts +7 -17
  30. package/lib/components/uni-vue/src/uni-vue.vue.d.ts +3 -7
  31. package/lib/components/uni-vue/src/uni-vue.vue2.js +1 -3
  32. package/lib/components/uni-vue/src/uni-vue.vue2.js.map +1 -1
  33. package/lib/components/uni-vue/src/use-uni-vue.d.ts +1 -1
  34. package/lib/components/uni-vue/src/use-uni-vue.js +54 -38
  35. package/lib/components/uni-vue/src/use-uni-vue.js.map +1 -1
  36. package/lib/package.json.js +1 -1
  37. package/package.json +4 -2
  38. package/docs/components/index.md +0 -23
@@ -0,0 +1,144 @@
1
+ # useUtils 工具函数
2
+
3
+ 提供常用的工具函数集合,包括时间处理、文件操作、Cookie管理等。
4
+
5
+ ## 基本用法
6
+
7
+ ```vue
8
+ <script setup lang="ts">
9
+ import { useUtils } from 'el-plus'
10
+
11
+ const {
12
+ getUnifyTime,
13
+ dayjs,
14
+ importFile,
15
+ downloadFile,
16
+ previewFile,
17
+ Cookies
18
+ } = useUtils()
19
+
20
+ // 时间格式化
21
+ const time = getUnifyTime('2024-01-01')
22
+ const formatted = dayjs().format('YYYY-MM-DD HH:mm:ss')
23
+
24
+ // 文件导入
25
+ importFile().then(file => {
26
+ console.log('导入的文件:', file)
27
+ })
28
+
29
+ // 文件下载
30
+ downloadFile({ url: '/api/download', filename: 'test.xlsx' })
31
+
32
+ // 文件预览
33
+ previewFile('/files/document.pdf')
34
+
35
+ // Cookie 操作
36
+ Cookies.set('token', 'xxx')
37
+ const token = Cookies.get('token')
38
+ </script>
39
+ ```
40
+
41
+ ## 返回值
42
+
43
+ | 属性 | 说明 | 类型 |
44
+ |------|------|------|
45
+ | getUnifyTime | 统一时间处理函数 | `(time: string \| number \| Date) => string` |
46
+ | dayjs | Day.js 实例 | `typeof dayjs` |
47
+ | importFile | 文件导入函数 | `() => Promise<File>` |
48
+ | downloadFile | 文件下载函数 | `(config: DownloadConfig) => void` |
49
+ | previewFile | 文件预览函数 | `(url: string) => void` |
50
+ | Cookies | Cookie 操作对象 | `CookiesStatic` |
51
+
52
+ ## 功能说明
53
+
54
+ ### getUnifyTime 时间处理
55
+
56
+ 统一时间格式处理函数。
57
+
58
+ ```ts
59
+ // 时间戳转格式化字符串
60
+ const time1 = getUnifyTime(1609459200000)
61
+
62
+ // Date对象转格式化字符串
63
+ const time2 = getUnifyTime(new Date())
64
+
65
+ // 字符串转格式化字符串
66
+ const time3 = getUnifyTime('2024-01-01')
67
+ ```
68
+
69
+ ### dayjs 日期处理
70
+
71
+ 提供 Day.js 的所有功能,用于日期格式化和计算。
72
+
73
+ ```ts
74
+ // 格式化当前时间
75
+ const now = dayjs().format('YYYY-MM-DD HH:mm:ss')
76
+
77
+ // 日期计算
78
+ const tomorrow = dayjs().add(1, 'day')
79
+ const lastMonth = dayjs().subtract(1, 'month')
80
+
81
+ // 日期比较
82
+ const isBefore = dayjs('2024-01-01').isBefore(dayjs())
83
+ ```
84
+
85
+ ### importFile 文件导入
86
+
87
+ 打开文件选择器,返回选择的文件对象。
88
+
89
+ ```ts
90
+ importFile().then(file => {
91
+ console.log('文件名:', file.name)
92
+ console.log('文件大小:', file.size)
93
+ console.log('文件类型:', file.type)
94
+ })
95
+ ```
96
+
97
+ ### downloadFile 文件下载
98
+
99
+ 触发文件下载。
100
+
101
+ ```ts
102
+ downloadFile({
103
+ url: '/api/export',
104
+ filename: '导出数据.xlsx',
105
+ params: { id: '123' } // 可选的请求参数
106
+ })
107
+ ```
108
+
109
+ ### previewFile 文件预览
110
+
111
+ 在新窗口中预览文件。
112
+
113
+ ```ts
114
+ // PDF预览
115
+ previewFile('/files/document.pdf')
116
+
117
+ // 图片预览
118
+ previewFile('/images/photo.jpg')
119
+ ```
120
+
121
+ ### Cookies Cookie管理
122
+
123
+ 提供 Cookie 的增删改查操作。
124
+
125
+ ```ts
126
+ // 设置 Cookie
127
+ Cookies.set('token', 'xxx', { expires: 7 }) // 7天后过期
128
+
129
+ // 获取 Cookie
130
+ const token = Cookies.get('token')
131
+
132
+ // 删除 Cookie
133
+ Cookies.remove('token')
134
+
135
+ // 获取所有 Cookie
136
+ const allCookies = Cookies.get()
137
+ ```
138
+
139
+ ## 注意事项
140
+
141
+ - `importFile` 会打开系统文件选择器
142
+ - `downloadFile` 支持跨域下载,会自动处理 blob 响应
143
+ - `previewFile` 会打开新窗口或标签页
144
+ - `Cookies` 基于 js-cookie 库,支持所有其配置选项
package/docs/index.md CHANGED
@@ -5,21 +5,21 @@ layout: home
5
5
  hero:
6
6
  name: "el-plus-docs"
7
7
  text: "宏信组件文档"
8
- tagline: My great project tagline
8
+ tagline: 快速生成 Vue 页面和组件
9
9
  actions:
10
10
  - theme: brand
11
- text: Markdown Examples
12
- link: /markdown-examples
11
+ text: 组件库总览
12
+ link: /overview
13
13
  - theme: alt
14
- text: API Examples
15
- link: /api-examples
14
+ text: 更新日志
15
+ link: /CHANGELOG
16
16
 
17
17
  features:
18
- - title: Feature A
19
- details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
20
- - title: Feature B
21
- details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
22
- - title: Feature C
23
- details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
18
+ - title: 📄 列表页
19
+ details: 快速生成包含搜索、表格、操作按钮的列表页面
20
+ - title: 📝 详情页
21
+ details: 灵活组合表单、明细表格、附件等组件
22
+ - title: 🧩 组件库
23
+ details: 丰富的业务组件,支持自由组合配置
24
24
  ---
25
25
 
@@ -0,0 +1,99 @@
1
+ # 组件库总览
2
+
3
+ 本文档是 el-plus 组件库的总入口,包含所有可用的页面类型和组件概览。
4
+
5
+ ## 页面类型
6
+
7
+ 本组件库支持两种页面类型,可自由组合组件实现业务需求:
8
+
9
+ | 页面类型 | 说明 | 文档 | 核心组件 |
10
+ |---------|------|------|---------|
11
+ | **列表页** | 包含搜索表单、数据表格、操作按钮等 | [pages/list.md](./pages/list.md) | EpSearchListPage |
12
+ | **详情页** | 包含表单、明细表格、附件等 | [pages/detail.md](./pages/detail.md) | EpForm |
13
+
14
+ ## 组件分类
15
+
16
+ ### 页面容器组件
17
+
18
+ | 组件 | 说明 | 文档 |
19
+ |------|------|------|
20
+ | **EpSearchListPage** | 列表页容器,集成搜索表单和数据表格 | [search-list-page.md](./components/search-list-page.md) |
21
+ | **EpForm** | 表单容器,支持栅格布局和组件自由组合 | [form.md](./components/form.md) |
22
+
23
+ ### 布局组件
24
+
25
+ | 组件 | 说明 | 文档 |
26
+ |------|------|------|
27
+ | **EpHeader** | 顶部操作栏,用于放置页面级操作按钮 | [header.md](./components/header.md) |
28
+ | **EpTitle** | 标题分组,用于表单内容分组展示 | [title.md](./components/title.md) |
29
+
30
+ ### 弹窗组件
31
+
32
+ | 组件 | 说明 | 文档 |
33
+ |------|------|------|
34
+ | **EpDialog** | 对话框容器 | [dialog.md](./components/dialog.md) |
35
+ | **useFormDialog** | 表单对话框 Hook,快速实现表单弹窗 | [use-form-dialog.md](./components/use-form-dialog.md) |
36
+ | **useConfirmDialog** | 确认对话框 Hook,用于二次确认操作 | [use-confirm-dialog.md](./components/use-confirm-dialog.md) |
37
+ | **useChooseDialog** | 选择对话框 Hook,用于弹窗选择数据 | [use-choose-dialog.md](./components/use-choose-dialog.md) |
38
+
39
+ ### 表单组件
40
+
41
+ | 组件 | 说明 | 文档 |
42
+ |------|------|------|
43
+ | **EpInput** | 输入框 | [input.md](./components/input.md) |
44
+ | **EpSelect** | 下拉选择框 | [select.md](./components/select.md) |
45
+ | **EpDatePickerRange** | 日期范围选择 | [date-picker-range.md](./components/date-picker-range.md) |
46
+
47
+ ### 数据展示组件
48
+
49
+ | 组件 | 说明 | 文档 |
50
+ |------|------|------|
51
+ | **EpTable** | 数据表格 | [table.md](./components/table.md) |
52
+ | **EpCustomColumn** | 自定义列配置,用于表格列的个性化设置 | [custom-column.md](./components/custom-column.md) |
53
+ | **EpLink** | 链接,用于表格内链接跳转 | [link.md](./components/link.md) |
54
+ | **EpFooterInfo** | 底部信息展示 | [footer-info.md](./components/footer-info.md) |
55
+
56
+ ### 操作组件
57
+
58
+ | 组件 | 说明 | 文档 |
59
+ |------|------|------|
60
+ | **EpButtons** | 按钮组,支持配置多个操作按钮 | [buttons.md](./components/buttons.md) |
61
+
62
+ ### 其他组件
63
+
64
+ | 组件 | 说明 | 文档 |
65
+ |------|------|------|
66
+ | **EpAttachment** | 附件管理,支持上传、预览、下载 | [attachment.md](./components/attachment.md) |
67
+
68
+ ### Hooks 工具
69
+
70
+ | Hook | 说明 | 文档 |
71
+ |------|------|------|
72
+ | **useNavigation** | 导航工具,提供路由跳转、标签页管理、模式控制 | [use-navigation.md](./hooks/use-navigation.md) |
73
+ | **useUtils** | 工具函数集合,包含时间处理、文件操作、Cookie管理 | [use-utils.md](./hooks/use-utils.md) |
74
+
75
+ ## 组件组合示例
76
+
77
+ 所有组件都可以在 EpForm 中自由组合:
78
+
79
+ ```typescript
80
+ const formItemList = [
81
+ { col: 24, type: 'EpHeader', props: { /* ... */ } },
82
+ { col: 24, type: 'EpTitle', props: { title: '基本信息' } },
83
+ { type: 'EpInput', props: { /* ... */ } },
84
+ { type: 'EpSelect', props: { /* ... */ } },
85
+ { col: 24, type: 'EpTable', props: { /* ... */ } },
86
+ ]
87
+ ```
88
+
89
+ ## 路由配置
90
+
91
+ 页面生成后需配置路由,参考:[pages/router.md](./pages/router.md)
92
+
93
+ ## 快速开始
94
+
95
+ 根据你的需求选择:
96
+
97
+ 1. **生成列表页** → 阅读 [pages/list.md](./pages/list.md)
98
+ 2. **生成详情页** → 阅读 [pages/detail.md](./pages/detail.md)
99
+ 3. **了解某个组件** → 查看上方对应组件文档
@@ -5,7 +5,7 @@
5
5
  ## 页面结构
6
6
 
7
7
  详情页无固定结构,根据业务需求自由组合以下组件:
8
- > 查看所有可用组件:[组件文档索引](../components/index.md)
8
+ > 查看所有可用组件:[组件文档索引](../overview.md)
9
9
 
10
10
  ## 完整示例
11
11
 
@@ -71,4 +71,4 @@ const handleAdd = () => {
71
71
 
72
72
  ## 组件文档
73
73
 
74
- > 查看所有可用组件:[组件文档索引](../components/index.md)
74
+ > 查看所有可用组件:[组件文档索引](../overview.md)
@@ -0,0 +1,151 @@
1
+ # 路由配置
2
+
3
+ 本项目使用自动导入路由模块的方式,无需手动在路由文件中引入。
4
+
5
+ ## 路由文件位置
6
+
7
+ 所有路由配置文件位于 `src/router/modules/` 目录下,每个 `.ts` 文件会被自动导入。
8
+
9
+ ::: warning 排除文件
10
+ `remaining.ts` 文件不会被自动导入,用于配置不参与菜单的路由。
11
+ :::
12
+
13
+ ## 路由配置结构
14
+
15
+ 创建文件 `src/router/modules/{模块名}.ts`,参考以下结构:
16
+
17
+ ```typescript
18
+ export default {
19
+ path: '/demand', // 路由路径
20
+ redirect: '/demand/list', // 默认重定向
21
+ meta: {
22
+ icon: 'ep/document', // 菜单图标
23
+ title: '需求管理', // 菜单标题
24
+ rank: 1 // 菜单排序权重
25
+ },
26
+ children: [
27
+ {
28
+ path: '/demand/list', // 列表页路径
29
+ name: 'DemandList', // 路由名称(必须唯一)
30
+ component: () => import('@/views/demand-list.vue'),
31
+ meta: {
32
+ title: '需求列表',
33
+ keepAlive: true // 开启页面缓存
34
+ }
35
+ },
36
+ {
37
+ path: '/demand/detail', // 详情页路径
38
+ name: 'DemandDetail',
39
+ component: () => import('@/views/demand-detail.vue'),
40
+ meta: {
41
+ title: '需求详情'
42
+ }
43
+ }
44
+ ]
45
+ } satisfies RouteConfigsTable;
46
+ ```
47
+
48
+ ## Meta 配置说明
49
+
50
+ ### 一级路由 Meta
51
+
52
+ | 属性 | 类型 | 说明 |
53
+ |-----|------|-----|
54
+ | `title` | `string` | 菜单标题,必填 |
55
+ | `icon` | `string` | 菜单图标,使用 Element Plus 图标,如 `ep/document` |
56
+ | `rank` | `number` | 菜单排序权重,数字越小越靠前 |
57
+ | `showLink` | `boolean` | 是否在菜单中显示,默认 `true` |
58
+
59
+ ### 子路由 Meta
60
+
61
+ | 属性 | 类型 | 默认值 | 说明 |
62
+ |-----|------|--------|-----|
63
+ | `title` | `string` | - | 页面标题,必填 |
64
+ | `keepAlive` | `boolean` | `false` | 是否开启页面缓存 |
65
+ | `showLink` | `boolean` | `true` | 是否在菜单中显示 |
66
+ | `auths` | `string[]` | - | 权限标识,用于按钮级权限控制 |
67
+
68
+ ## 常用配置示例
69
+
70
+ ### 列表页路由
71
+
72
+ ```typescript
73
+ {
74
+ path: '/user/list',
75
+ name: 'UserList',
76
+ component: () => import('@/views/user/list.vue'),
77
+ meta: {
78
+ title: '用户列表',
79
+ keepAlive: true // 列表页通常需要缓存
80
+ }
81
+ }
82
+ ```
83
+
84
+ ### 详情页路由
85
+
86
+ ```typescript
87
+ {
88
+ path: '/user/detail',
89
+ name: 'UserDetail',
90
+ component: () => import('@/views/user/detail.vue'),
91
+ meta: {
92
+ title: '用户详情'
93
+ // 详情页通常不需要缓存
94
+ }
95
+ }
96
+ ```
97
+
98
+ ### 隐藏菜单项
99
+
100
+ ```typescript
101
+ {
102
+ path: '/system/config',
103
+ name: 'SystemConfig',
104
+ component: () => import('@/views/system/config.vue'),
105
+ meta: {
106
+ title: '系统配置',
107
+ showLink: false // 不在菜单中显示,但可以访问
108
+ }
109
+ }
110
+ ```
111
+
112
+ ### 嵌套路由
113
+
114
+ ```typescript
115
+ export default {
116
+ path: '/system',
117
+ meta: {
118
+ icon: 'ep/setting',
119
+ title: '系统管理',
120
+ rank: 10
121
+ },
122
+ children: [
123
+ {
124
+ path: '/system/user',
125
+ name: 'SystemUser',
126
+ component: () => import('@/views/system/user.vue'),
127
+ meta: { title: '用户管理' }
128
+ },
129
+ {
130
+ path: '/system/role',
131
+ name: 'SystemRole',
132
+ component: () => import('@/views/system/role.vue'),
133
+ meta: { title: '角色管理' }
134
+ }
135
+ ]
136
+ } satisfies RouteConfigsTable;
137
+ ```
138
+
139
+ ## 注意事项
140
+
141
+ ::: warning 路由名称唯一性
142
+ 每个路由的 `name` 属性必须全局唯一,不能重复。
143
+ :::
144
+
145
+ ::: tip 组件路径
146
+ `component` 使用动态导入 `() => import('@/views/xxx.vue')`,路径必须以 `@/views/` 开头。
147
+ :::
148
+
149
+ ::: warning 自动导入原理
150
+ 路由使用 `import.meta.glob` 自动导入,文件创建后无需手动引入,项目会自动识别。
151
+ :::
@@ -3,13 +3,9 @@ export declare const EpUniVue: {
3
3
  readonly name: StringConstructor;
4
4
  readonly type: import("vue").PropType<typeof import("./src/uni-vue").componentType[number]>;
5
5
  }>> & Readonly<{
6
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
7
- "onUpdate:dialogFormData"?: ((...args: any[]) => any) | undefined;
8
- "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
9
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
- "update:modelValue": (...args: any[]) => void;
11
- "update:dialogFormData": (...args: any[]) => void;
12
- "update:visible": (...args: any[]) => void;
6
+ [x: `onUpdate:${string}`]: ((value: any) => any) | undefined;
7
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
+ [x: `update:${string}`]: (value: any) => any;
13
9
  }, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
14
10
  P: {};
15
11
  B: {};
@@ -21,9 +17,7 @@ export declare const EpUniVue: {
21
17
  readonly name: StringConstructor;
22
18
  readonly type: import("vue").PropType<typeof import("./src/uni-vue").componentType[number]>;
23
19
  }>> & Readonly<{
24
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
25
- "onUpdate:dialogFormData"?: ((...args: any[]) => any) | undefined;
26
- "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
20
+ [x: `onUpdate:${string}`]: ((value: any) => any) | undefined;
27
21
  }>, {}, {}, {}, {}, {}>;
28
22
  __isFragment?: never;
29
23
  __isTeleport?: never;
@@ -32,13 +26,9 @@ export declare const EpUniVue: {
32
26
  readonly name: StringConstructor;
33
27
  readonly type: import("vue").PropType<typeof import("./src/uni-vue").componentType[number]>;
34
28
  }>> & Readonly<{
35
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
36
- "onUpdate:dialogFormData"?: ((...args: any[]) => any) | undefined;
37
- "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
38
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
39
- "update:modelValue": (...args: any[]) => void;
40
- "update:dialogFormData": (...args: any[]) => void;
41
- "update:visible": (...args: any[]) => void;
29
+ [x: `onUpdate:${string}`]: ((value: any) => any) | undefined;
30
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
31
+ [x: `update:${string}`]: (value: any) => any;
42
32
  }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
43
33
  export default EpUniVue;
44
34
  export * from './src/uni-vue';
@@ -1,17 +1,13 @@
1
1
  declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  readonly name: StringConstructor;
3
3
  readonly type: import("vue").PropType<typeof import("./uni-vue").componentType[number]>;
4
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
- "update:modelValue": (...args: any[]) => void;
6
- "update:dialogFormData": (...args: any[]) => void;
7
- "update:visible": (...args: any[]) => void;
4
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
5
+ [x: `update:${string}`]: (value: any) => any;
8
6
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
9
7
  readonly name: StringConstructor;
10
8
  readonly type: import("vue").PropType<typeof import("./uni-vue").componentType[number]>;
11
9
  }>> & Readonly<{
12
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
13
- "onUpdate:dialogFormData"?: ((...args: any[]) => any) | undefined;
14
- "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
10
+ [x: `onUpdate:${string}`]: ((value: any) => any) | undefined;
15
11
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
16
12
  declare const _default: typeof __VLS_export;
17
13
  export default _default;
@@ -12,12 +12,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  },
13
13
  __name: "uni-vue",
14
14
  props: uniVueProps,
15
- emits: ["update:modelValue", "update:dialogFormData", "update:visible"],
16
15
  setup(__props, { emit: __emit }) {
17
16
  const bem = createNameSpace("uni-vue");
18
17
  const props = __props;
19
- const emit = __emit;
20
- const { loading } = useUniVue(props, emit);
18
+ const { loading } = useUniVue(props);
21
19
  return (_ctx, _cache) => {
22
20
  return openBlock(), createElementBlock(Fragment, null, [
23
21
  createVNode(unref(ElSkeleton), {
@@ -1 +1 @@
1
- {"version":3,"file":"uni-vue.vue2.mjs","sources":["../../../../../../packages/components/uni-vue/src/uni-vue.vue"],"sourcesContent":["<template>\n <el-skeleton\n :class=\"bem.e('skeleton')\"\n :loading=\"loading\"\n style=\"background: #fff; padding: 5px 15px\"\n :rows=\"1\"\n />\n <div\n ref=\"uniVue\"\n :class=\"`${bem.b()} ${prepareClassNames()}`\"\n :style=\"{\n ...prepareStyles(),\n }\"\n />\n</template>\n<script setup lang=\"ts\">\nimport { createNameSpace } from '@el-plus/utils/bem'\nimport { uniVueProps } from './uni-vue'\nimport { prepareClassNames, prepareStyles } from '@el-plus/utils/props'\nimport { ElSkeleton } from 'element-plus'\nimport { useUniVue } from './use-uni-vue'\ndefineOptions({\n name: 'EpUniVue',\n inheritAttrs: false,\n})\nconst bem = createNameSpace('uni-vue')\nconst props = defineProps(uniVueProps)\n// const emit = defineEmits<{\n// (e: `update:${string}`, value: any): void\n// }>()\nconst emit = defineEmits(['update:modelValue', 'update:dialogFormData', 'update:visible'])\nconst { loading } = useUniVue(props, emit)\n\n</script>\n"],"names":["_createVNode","_unref","_normalizeClass","_createElementVNode","_normalizeStyle"],"mappings":";;;;;;;;;;;;;;;;AAyBA,IAAA,MAAM,GAAA,GAAM,gBAAgB,SAAS,CAAA;AACrC,IAAA,MAAM,KAAA,GAAQ,OAAA;AAId,IAAA,MAAM,IAAA,GAAO,MAAA;AACb,IAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,SAAA,CAAU,OAAO,IAAI,CAAA;;;QA9BvCA,WAAA,CAKEC,KAAA,CAAA,UAAA,CAAA,EAAA;AAAA,UAJC,OAAKC,cAAA,CAAED,KAAA,CAAA,GAAA,CAAA,CAAI,CAAA,CAAC,UAAA,CAAA,CAAA;AAAA,UACZ,OAAA,EAASA,MAAA,OAAA,CAAA;AAAA,UACV,KAAA,EAAA,EAAA,YAAA,EAAA,MAAA,EAAA,WAAA,UAAA,EAAA;AAAA,UACC,IAAA,EAAM;AAAA;QAETE,mBAME,KAAA,EAAA;AAAA,UALA,GAAA,EAAI,QAAA;AAAA,UACH,KAAA,EAAKD,cAAA,CAAA,CAAA,EAAKD,KAAA,CAAA,GAAA,CAAA,CAAI,CAAA,MAAOA,KAAA,CAAA,iBAAA,CAAA,EAAiB,CAAA,CAAA,CAAA;AAAA,UACtC,OAAKG,cAAA,CAAA;AAAA,eAAaH,KAAA,CAAA,aAAA,CAAA;AAAa;;;;;;;;;"}
1
+ {"version":3,"file":"uni-vue.vue2.mjs","sources":["../../../../../../packages/components/uni-vue/src/uni-vue.vue"],"sourcesContent":["<template>\n <el-skeleton\n :class=\"bem.e('skeleton')\"\n :loading=\"loading\"\n style=\"background: #fff; padding: 5px 15px\"\n :rows=\"1\"\n />\n <div\n ref=\"uniVue\"\n :class=\"`${bem.b()} ${prepareClassNames()}`\"\n :style=\"{\n ...prepareStyles(),\n }\"\n />\n</template>\n<script setup lang=\"ts\">\nimport { createNameSpace } from '@el-plus/utils/bem'\nimport { uniVueProps } from './uni-vue'\nimport { prepareClassNames, prepareStyles } from '@el-plus/utils/props'\nimport { ElSkeleton } from 'element-plus'\nimport { useUniVue } from './use-uni-vue'\ndefineOptions({\n name: 'EpUniVue',\n inheritAttrs: false,\n})\nconst bem = createNameSpace('uni-vue')\nconst props = defineProps(uniVueProps)\nconst emit = defineEmits<{\n (e: `update:${string}`, value: any): void\n}>()\nconst { loading } = useUniVue(props, emit)\n</script>\n"],"names":["_createVNode","_unref","_normalizeClass","_createElementVNode","_normalizeStyle"],"mappings":";;;;;;;;;;;;;;;AAyBA,IAAA,MAAM,GAAA,GAAM,gBAAgB,SAAS,CAAA;AACrC,IAAA,MAAM,KAAA,GAAQ,OAAA;AAId,IAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,SAAA,CAAU,KAAW,CAAA;;;QA7BvCA,WAAA,CAKEC,KAAA,CAAA,UAAA,CAAA,EAAA;AAAA,UAJC,OAAKC,cAAA,CAAED,KAAA,CAAA,GAAA,CAAA,CAAI,CAAA,CAAC,UAAA,CAAA,CAAA;AAAA,UACZ,OAAA,EAASA,MAAA,OAAA,CAAA;AAAA,UACV,KAAA,EAAA,EAAA,YAAA,EAAA,MAAA,EAAA,WAAA,UAAA,EAAA;AAAA,UACC,IAAA,EAAM;AAAA;QAETE,mBAME,KAAA,EAAA;AAAA,UALA,GAAA,EAAI,QAAA;AAAA,UACH,KAAA,EAAKD,cAAA,CAAA,CAAA,EAAKD,KAAA,CAAA,GAAA,CAAA,CAAI,CAAA,MAAOA,KAAA,CAAA,iBAAA,CAAA,EAAiB,CAAA,CAAA,CAAA;AAAA,UACtC,OAAKG,cAAA,CAAA;AAAA,eAAaH,KAAA,CAAA,aAAA,CAAA;AAAa;;;;;;;;;"}
@@ -1,3 +1,3 @@
1
- export declare const useUniVue: (props: any, emit: any) => {
1
+ export declare const useUniVue: (props: any, _emit: any) => {
2
2
  loading: import("vue").Ref<boolean, boolean>;
3
3
  };