@zl-ui-kit/components 0.3.0 → 0.3.1
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.
- package/README.md +50 -6
- package/dist/components/ZlFileViewer/index.vue.mjs +3 -3
- package/dist/entries/chart.d.ts +10 -0
- package/dist/entries/chart.mjs +6 -0
- package/dist/entries/editor.d.ts +12 -0
- package/dist/entries/editor.mjs +10 -0
- package/dist/entries/file-preview.d.ts +10 -0
- package/dist/entries/file-preview.mjs +8 -0
- package/dist/index.d.ts +0 -7
- package/dist/index.mjs +156 -176
- package/package.json +18 -6
package/README.md
CHANGED
|
@@ -3,13 +3,30 @@
|
|
|
3
3
|
ZL UI 业务组件库(**Element Plus 体系**,`Zl` 前缀,TypeScript + `<script setup lang="ts">`)。
|
|
4
4
|
对外 API(props/emits/slots)与参考实现保持一致;样式经 `vite-plugin-lib-inject-css` 随组件自动注入,无需手动引 css。
|
|
5
5
|
|
|
6
|
-
##
|
|
6
|
+
## 安装
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
```bash
|
|
9
|
+
npm i @zl-ui-kit/components
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
peer 依赖(宿主提供):`vue` ^3.5、`element-plus` ^2.9、`@vueuse/core` ^12。
|
|
13
|
+
|
|
14
|
+
**重型依赖的组件不在主入口**,走独立子路径,依赖按需安装(`peerDependenciesMeta.optional`)。这样只装 `@zl-ui-kit/components` 不会把你拖进 monaco(约 50MB)/ echarts / 4 个 `@vue-office` 包:
|
|
15
|
+
|
|
16
|
+
| 子入口 | 组件 | 需安装 |
|
|
17
|
+
| --- | --- | --- |
|
|
18
|
+
| `@zl-ui-kit/components/chart` | `ZlChart` | `echarts` |
|
|
19
|
+
| `@zl-ui-kit/components/editor` | `ZlEditor` / `ZlSqlEditor` / `useSqlCompletion` | `monaco-editor` |
|
|
20
|
+
| `@zl-ui-kit/components/file-preview` | `ZlFilePreview` / `ZlFileViewer` | `@vue-office/*` |
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
import { ZlChart } from '@zl-ui-kit/components/chart'
|
|
24
|
+
import { ZlEditor, ZlSqlEditor } from '@zl-ui-kit/components/editor'
|
|
25
|
+
import { ZlFilePreview, ZlFileViewer } from '@zl-ui-kit/components/file-preview'
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
> `ZlPdfViewer` 无重型依赖,仍在主入口;`app.use(install)` 不含子入口组件,需手动注册。
|
|
11
29
|
|
|
12
|
-
> 迁移批次见需求文档 §12-Q8:二批(表格/表单/反馈)已完成,ZlUpload 顺延三批;三批=编辑器/文件预览/登录/
|
|
13
30
|
## 使用
|
|
14
31
|
|
|
15
32
|
```ts
|
|
@@ -18,7 +35,34 @@ import { ZlTag, ZlIcon, install } from '@zl-ui-kit/components'
|
|
|
18
35
|
app.use(install) // 全量注册;或按需 import { ZlTag }
|
|
19
36
|
```
|
|
20
37
|
|
|
21
|
-
|
|
38
|
+
离线图标(可选,`@zl-ui-kit/icons` 已是本包依赖):
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
import { presetIconifyIcon } from '@zl-ui-kit/components'
|
|
42
|
+
import { icons } from '@zl-ui-kit/icons'
|
|
43
|
+
|
|
44
|
+
presetIconifyIcon(icons) // 注册 444 个 zl: 图标,供 ZlIcon 离线渲染
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
> **本包只导出组件与 `install`**,hooks、工具函数、主题样式在各自包里,入口独立:
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
import { useRequest, useDict } from '@zl-ui-kit/composables' // hooks
|
|
51
|
+
import { generateUUID, paginate } from '@zl-ui-kit/utils' // 工具函数
|
|
52
|
+
import '@zl-ui-kit/theme/themes.css' // 主题样式
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## 组件清单(48 个目录 / 56 个导出符号)
|
|
56
|
+
|
|
57
|
+
通用:ZlIcon / ZlIconHover / ZlIconLabel / ZlAutoTooltip / ZlTag / ZlCornerTag / ZlText / ZlTitle / ZlCopy / ZlEmpty / ZlPagination / ZlDictTag(需 micro-app 字典环境)
|
|
58
|
+
|
|
59
|
+
表格/表单/反馈:ZlTable / ZlSearchTable / ZlForm / ZlSearch / ZlAction / ZlActionList / ZlDescription / ZlDrawer / ZlPopconfirm / ZlSwitch / ZlFormChild / ZlHorizontalTable / ZlUpload(+ usePermission / useTablePagination hooks)
|
|
60
|
+
|
|
61
|
+
通用/布局:ZlAvatar(+Group) / ZlCheckAll / ZlRadioTag / ZlCheckboxTag / ZlAddSub / ZlSorter(+List) / ZlLayoutSwitch / ZlSection / ZlCard / ZlCardPage / ZlAppSlogan / ZlPermission / ZlTabs / ZlGrid(+GridItem) / ZlDynamicComponent / ZlTree / ZlTreeSelect / ZlAppLayout(双形态) / ZlAppMenu(+Item) / ZlChart
|
|
62
|
+
|
|
63
|
+
编辑器/文件/登录/国际化:ZlEditor / ZlSqlEditor / ZlFilePreview / ZlFileViewer / ZlPdfViewer / ZlLogin / ZlLoginForm / ZlI18nProvider(`<el-config-provider>` 挂载,使 Element Plus 内置组件跟随语言切换)
|
|
64
|
+
|
|
65
|
+
> 迁移批次见需求文档 §12-Q8:二批(表格/表单/反馈)已完成,ZlUpload 顺延三批;三批已完成(编辑器/文件预览/登录)。
|
|
22
66
|
|
|
23
67
|
## 本地调试
|
|
24
68
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./index2.vue.mjs";
|
|
2
2
|
import './index.css';/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0ff2a458"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.vue.mjs.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 子入口:图表组件
|
|
3
|
+
* 依赖 echarts(peerDependenciesMeta.optional,需宿主自行安装)
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* import { ZlChart } from '@zl-ui-kit/components/chart'
|
|
7
|
+
* import * as echarts from 'echarts' // 宿主提供,组件内部不打包
|
|
8
|
+
*/
|
|
9
|
+
export { default as ZlChart } from '../components/ZlChart/index.vue';
|
|
10
|
+
//# sourceMappingURL=chart.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 子入口:代码编辑器(Monaco)
|
|
3
|
+
* 依赖 monaco-editor(peerDependenciesMeta.optional,需宿主自行安装)
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* import { ZlEditor, ZlSqlEditor, useSqlCompletion } from '@zl-ui-kit/components/editor'
|
|
7
|
+
*/
|
|
8
|
+
export { default as ZlEditor } from '../components/ZlEditor/index.vue';
|
|
9
|
+
export { default as ZlSqlEditor } from '../components/ZlEditor/ZlSqlEditor.vue';
|
|
10
|
+
export { useSqlCompletion } from '../components/ZlEditor/useSqlCompletion';
|
|
11
|
+
export type { SqlTableColumn, SqlTableSchema } from '../components/ZlEditor/useSqlCompletion';
|
|
12
|
+
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as e } from "../components/ZlEditor/index.vue.mjs";
|
|
2
|
+
import '../components/ZlEditor/index.css';/* empty css */
|
|
3
|
+
import { default as f } from "../components/ZlEditor/ZlSqlEditor.vue.mjs";
|
|
4
|
+
import { useSqlCompletion as p } from "../components/ZlEditor/useSqlCompletion.mjs";
|
|
5
|
+
export {
|
|
6
|
+
e as ZlEditor,
|
|
7
|
+
f as ZlSqlEditor,
|
|
8
|
+
p as useSqlCompletion
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=editor.mjs.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 子入口:文件预览
|
|
3
|
+
* 依赖 @vue-office/docx|excel|pdf|pptx(peerDependenciesMeta.optional,需宿主自行安装)
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* import { ZlFilePreview, ZlFileViewer } from '@zl-ui-kit/components/file-preview'
|
|
7
|
+
*/
|
|
8
|
+
export { default as ZlFilePreview } from '../components/ZlFilePreview/index.vue';
|
|
9
|
+
export { default as ZlFileViewer } from '../components/ZlFileViewer/index.vue';
|
|
10
|
+
//# sourceMappingURL=file-preview.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as i } from "../components/ZlFilePreview/index.vue.mjs";
|
|
2
|
+
import '../components/ZlFilePreview/index.css';/* empty css */
|
|
3
|
+
import { default as t } from "../components/ZlFileViewer/index.vue.mjs";
|
|
4
|
+
export {
|
|
5
|
+
i as ZlFilePreview,
|
|
6
|
+
t as ZlFileViewer
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=file-preview.mjs.map
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export { default as ZlAvatar } from './components/ZlAvatar/index.vue';
|
|
|
10
10
|
export { default as ZlAvatarGroup } from './components/ZlAvatar/Group.vue';
|
|
11
11
|
export { default as ZlCard } from './components/ZlCard/index.vue';
|
|
12
12
|
export { default as ZlCardPage } from './components/ZlCardPage/index.vue';
|
|
13
|
-
export { default as ZlChart } from './components/ZlChart/index.vue';
|
|
14
13
|
export { default as ZlCheckAll } from './components/ZlCheckAll/index.vue';
|
|
15
14
|
export { default as ZlCheckboxTag } from './components/ZlCheckboxTag/index.vue';
|
|
16
15
|
export { default as ZlCopy } from './components/ZlCopy/index.vue';
|
|
@@ -18,10 +17,6 @@ export { default as ZlDescription } from './components/ZlDescription/index.vue';
|
|
|
18
17
|
export { default as ZlDictTag } from './components/ZlDictTag/index.vue';
|
|
19
18
|
export { default as ZlDrawer } from './components/ZlDrawer/index.vue';
|
|
20
19
|
export { default as ZlDynamicComponent } from './components/ZlDynamicComponent/index.vue';
|
|
21
|
-
export { default as ZlEditor } from './components/ZlEditor/index.vue';
|
|
22
|
-
export { default as ZlSqlEditor } from './components/ZlEditor/ZlSqlEditor.vue';
|
|
23
|
-
export { default as ZlFilePreview } from './components/ZlFilePreview/index.vue';
|
|
24
|
-
export { default as ZlFileViewer } from './components/ZlFileViewer/index.vue';
|
|
25
20
|
export { default as ZlPdfViewer } from './components/ZlPdfViewer/index.vue';
|
|
26
21
|
export { default as ZlLogin } from './components/ZlLogin/index.vue';
|
|
27
22
|
export { default as ZlLoginForm } from './components/ZlLogin/components/LoginForm.vue';
|
|
@@ -61,8 +56,6 @@ export * from './components/ZlIcon/presetIconifyIcon';
|
|
|
61
56
|
export { usePagination } from './components/ZlPagination/usePagination';
|
|
62
57
|
export { useTablePagination } from './components/ZlTable/useTablePagination';
|
|
63
58
|
export { usePermission, usePermissionProvider } from './components/ZlPermission/usePermission';
|
|
64
|
-
export { useSqlCompletion } from './components/ZlEditor/useSqlCompletion';
|
|
65
|
-
export type { SqlTableSchema, SqlTableColumn } from './components/ZlEditor/useSqlCompletion';
|
|
66
59
|
export type { MenuItem } from './components/ZlAppMenu/AppMenu.vue';
|
|
67
60
|
export type { ActionItem, FormItem, SearchItem, TableColumn } from './types';
|
|
68
61
|
export type { IGridItem } from './components/ZlGrid/types';
|
package/dist/index.mjs
CHANGED
|
@@ -1,227 +1,207 @@
|
|
|
1
1
|
import i from "./components/ZlAction/index.vue.mjs";
|
|
2
2
|
import t from "./components/ZlAction/List.vue.mjs";
|
|
3
|
-
import './components/ZlTree/index.css';import './components/ZlTag/index.css';import './components/ZlTabs/index.css';import './components/ZlTable/index.css';import './components/ZlSwitch/index.css';import './components/ZlSection/index.css';import './components/ZlSearchTable/index.css';import './components/ZlSearch/index.css';import './components/ZlRadioTag/index.css';import './components/ZlPopconfirm/index.css';import './components/ZlPdfViewer/index.css';import './components/ZlLogin/index.css';import './components/ZlIconLabel/index.css';import './components/ZlGrid/index.css';import './components/ZlForm/index.css';import './components/
|
|
3
|
+
import './components/ZlTree/index.css';import './components/ZlTag/index.css';import './components/ZlTabs/index.css';import './components/ZlTable/index.css';import './components/ZlSwitch/index.css';import './components/ZlSection/index.css';import './components/ZlSearchTable/index.css';import './components/ZlSearch/index.css';import './components/ZlRadioTag/index.css';import './components/ZlPopconfirm/index.css';import './components/ZlPdfViewer/index.css';import './components/ZlLogin/index.css';import './components/ZlIconLabel/index.css';import './components/ZlGrid/index.css';import './components/ZlForm/index.css';import './components/ZlDrawer/index.css';import './components/ZlDescription/index.css';import './components/ZlTag/ZlCornerTag.css';import './components/ZlCheckboxTag/index.css';import './components/ZlCard/index.css';import './components/ZlCardPage/index.css';import './components/ZlAppSlogan/index.css';import './components/ZlAppMenu/AppMenu.css';import './components/ZlAction/List.css';/* empty css */
|
|
4
4
|
import a from "./components/ZlAddSub/index.vue.mjs";
|
|
5
5
|
import l from "./components/ZlAppLayout/index.vue.mjs";
|
|
6
6
|
import p from "./components/ZlAppMenu/AppMenu.vue.mjs";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import
|
|
8
|
+
import s from "./components/ZlAppSlogan/index.vue.mjs";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
10
|
+
import f from "./components/ZlAutoTooltip/index.vue.mjs";
|
|
11
|
+
import n from "./components/ZlAvatar/index.vue.mjs";
|
|
12
|
+
import e from "./components/ZlAvatar/Group.vue.mjs";
|
|
13
13
|
import Z from "./components/ZlCardPage/index.vue.mjs";
|
|
14
14
|
/* empty css */
|
|
15
|
-
import c from "./components/
|
|
16
|
-
/* empty css */
|
|
17
|
-
import _ from "./components/ZlCard/index.vue.mjs";
|
|
15
|
+
import c from "./components/ZlCard/index.vue.mjs";
|
|
18
16
|
/* empty css */
|
|
19
|
-
import
|
|
20
|
-
import
|
|
17
|
+
import _ from "./components/ZlCheckAll/index.vue.mjs";
|
|
18
|
+
import $ from "./components/ZlCheckboxTag/index.vue.mjs";
|
|
21
19
|
/* empty css */
|
|
22
|
-
import
|
|
20
|
+
import d from "./components/ZlTag/ZlCornerTag.vue.mjs";
|
|
23
21
|
/* empty css */
|
|
24
|
-
import
|
|
25
|
-
import
|
|
22
|
+
import g from "./components/ZlCopy/index.vue.mjs";
|
|
23
|
+
import T from "./components/ZlDescription/index.vue.mjs";
|
|
26
24
|
/* empty css */
|
|
27
|
-
import
|
|
25
|
+
import u from "./components/ZlDictTag/index.vue.mjs";
|
|
28
26
|
import P from "./components/ZlDrawer/index.vue.mjs";
|
|
29
27
|
/* empty css */
|
|
30
|
-
import
|
|
31
|
-
import h from "./components/
|
|
32
|
-
|
|
33
|
-
import A from "./components/ZlEmpty/index.vue.mjs";
|
|
34
|
-
import b from "./components/ZlFilePreview/index.vue.mjs";
|
|
35
|
-
/* empty css */
|
|
36
|
-
import x from "./components/ZlFileViewer/index.vue.mjs";
|
|
37
|
-
import I from "./components/ZlForm/index.vue.mjs";
|
|
28
|
+
import b from "./components/ZlDynamicComponent/index.vue.mjs";
|
|
29
|
+
import h from "./components/ZlEmpty/index.vue.mjs";
|
|
30
|
+
import A from "./components/ZlForm/index.vue.mjs";
|
|
38
31
|
/* empty css */
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
32
|
+
import C from "./components/ZlForm/ZlFormChild.vue.mjs";
|
|
33
|
+
import S from "./components/ZlGrid/ZlGridItem.vue.mjs";
|
|
34
|
+
import x from "./components/ZlGrid/index.vue.mjs";
|
|
42
35
|
/* empty css */
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
36
|
+
import I from "./components/ZlHorizontalTable/index.vue.mjs";
|
|
37
|
+
import L from "./components/ZlIcon/index.vue.mjs";
|
|
38
|
+
import v from "./components/ZlI18nProvider/index.vue.mjs";
|
|
39
|
+
import w from "./components/ZlIconHover/index.vue.mjs";
|
|
40
|
+
import y from "./components/ZlIconLabel/index.vue.mjs";
|
|
48
41
|
/* empty css */
|
|
49
|
-
import
|
|
50
|
-
import
|
|
42
|
+
import D from "./components/ZlLayoutSwitch/index.vue.mjs";
|
|
43
|
+
import F from "./components/ZlLogin/index.vue.mjs";
|
|
51
44
|
/* empty css */
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
45
|
+
import G from "./components/ZlLogin/components/LoginForm.vue.mjs";
|
|
46
|
+
import M from "./components/ZlPagination/index.vue.mjs";
|
|
47
|
+
import k from "./components/ZlPdfViewer/index.vue.mjs";
|
|
55
48
|
/* empty css */
|
|
56
|
-
import
|
|
57
|
-
import
|
|
49
|
+
import z from "./components/ZlPermission/index.vue.mjs";
|
|
50
|
+
import E from "./components/ZlPopconfirm/index.vue.mjs";
|
|
58
51
|
/* empty css */
|
|
59
|
-
import
|
|
52
|
+
import H from "./components/ZlRadioTag/index.vue.mjs";
|
|
60
53
|
/* empty css */
|
|
61
|
-
import
|
|
54
|
+
import j from "./components/ZlSearch/index.vue.mjs";
|
|
62
55
|
/* empty css */
|
|
63
|
-
import
|
|
56
|
+
import R from "./components/ZlSearchTable/index.vue.mjs";
|
|
64
57
|
/* empty css */
|
|
65
|
-
import
|
|
58
|
+
import V from "./components/ZlSection/index.vue.mjs";
|
|
66
59
|
/* empty css */
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import Q from "./components/ZlSwitch/index.vue.mjs";
|
|
60
|
+
import q from "./components/ZlSorter/index.vue.mjs";
|
|
61
|
+
import O from "./components/ZlSorter/ZlSorterList.vue.mjs";
|
|
62
|
+
import U from "./components/ZlSwitch/index.vue.mjs";
|
|
71
63
|
/* empty css */
|
|
72
|
-
import
|
|
64
|
+
import B from "./components/ZlTable/index.vue.mjs";
|
|
73
65
|
/* empty css */
|
|
74
|
-
import
|
|
66
|
+
import J from "./components/ZlTabs/index.vue.mjs";
|
|
75
67
|
/* empty css */
|
|
76
|
-
import
|
|
68
|
+
import K from "./components/ZlTag/index.vue.mjs";
|
|
77
69
|
/* empty css */
|
|
78
|
-
import
|
|
79
|
-
import
|
|
80
|
-
import
|
|
70
|
+
import N from "./components/ZlText/index.vue.mjs";
|
|
71
|
+
import Q from "./components/ZlTitle/index.vue.mjs";
|
|
72
|
+
import W from "./components/ZlTree/index.vue.mjs";
|
|
81
73
|
/* empty css */
|
|
82
|
-
import
|
|
83
|
-
import
|
|
84
|
-
import { presetIconifyIcon as
|
|
85
|
-
import { usePagination as
|
|
86
|
-
import { useTablePagination as
|
|
87
|
-
import { usePermission as
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
|
|
93
|
-
const ao = {
|
|
74
|
+
import X from "./components/ZlTreeSelect/index.vue.mjs";
|
|
75
|
+
import Y from "./components/ZlUpload/index.vue.mjs";
|
|
76
|
+
import { presetIconifyIcon as Ir } from "./components/ZlIcon/presetIconifyIcon.mjs";
|
|
77
|
+
import { usePagination as vr } from "./components/ZlPagination/usePagination.mjs";
|
|
78
|
+
import { useTablePagination as yr } from "./components/ZlTable/useTablePagination.mjs";
|
|
79
|
+
import { usePermission as Fr, usePermissionProvider as Gr } from "./components/ZlPermission/usePermission.mjs";
|
|
80
|
+
import { createZlI18n as kr } from "./locales/createZlI18n.mjs";
|
|
81
|
+
import { default as Er } from "./locales/en.mjs";
|
|
82
|
+
import { zlMessages as jr } from "./locales/messages.mjs";
|
|
83
|
+
import { default as Vr } from "./locales/zh-cn.mjs";
|
|
84
|
+
const oo = {
|
|
94
85
|
ZlAction: i,
|
|
95
86
|
ZlActionList: t,
|
|
96
87
|
ZlAddSub: a,
|
|
97
88
|
ZlAppLayout: l,
|
|
98
89
|
ZlAppMenu: p,
|
|
99
|
-
ZlAppSlogan:
|
|
100
|
-
ZlAutoTooltip:
|
|
101
|
-
ZlAvatar:
|
|
102
|
-
ZlAvatarGroup:
|
|
90
|
+
ZlAppSlogan: s,
|
|
91
|
+
ZlAutoTooltip: f,
|
|
92
|
+
ZlAvatar: n,
|
|
93
|
+
ZlAvatarGroup: e,
|
|
103
94
|
ZlCardPage: Z,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
ZlDictTag: C,
|
|
95
|
+
ZlCard: c,
|
|
96
|
+
ZlCheckAll: _,
|
|
97
|
+
ZlCheckboxTag: $,
|
|
98
|
+
ZlCopy: g,
|
|
99
|
+
ZlDescription: T,
|
|
100
|
+
ZlDictTag: u,
|
|
111
101
|
ZlDrawer: P,
|
|
112
|
-
ZlDynamicComponent:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
ZlTitle: ro,
|
|
147
|
-
ZlUpload: to,
|
|
148
|
-
ZlTree: mo,
|
|
149
|
-
ZlTreeSelect: io
|
|
102
|
+
ZlDynamicComponent: b,
|
|
103
|
+
ZlEmpty: h,
|
|
104
|
+
ZlForm: A,
|
|
105
|
+
ZlFormChild: C,
|
|
106
|
+
ZlGridItem: S,
|
|
107
|
+
ZlGrid: x,
|
|
108
|
+
ZlHorizontalTable: I,
|
|
109
|
+
ZlIcon: L,
|
|
110
|
+
ZlI18nProvider: v,
|
|
111
|
+
ZlIconHover: w,
|
|
112
|
+
ZlIconLabel: y,
|
|
113
|
+
ZlCornerTag: d,
|
|
114
|
+
ZlLayoutSwitch: D,
|
|
115
|
+
ZlLogin: F,
|
|
116
|
+
ZlLoginForm: G,
|
|
117
|
+
ZlPagination: M,
|
|
118
|
+
ZlPdfViewer: k,
|
|
119
|
+
ZlPermission: z,
|
|
120
|
+
ZlPopconfirm: E,
|
|
121
|
+
ZlRadioTag: H,
|
|
122
|
+
ZlSearch: j,
|
|
123
|
+
ZlSearchTable: R,
|
|
124
|
+
ZlSection: V,
|
|
125
|
+
ZlSorter: q,
|
|
126
|
+
ZlSorterList: O,
|
|
127
|
+
ZlSwitch: U,
|
|
128
|
+
ZlTable: B,
|
|
129
|
+
ZlTabs: J,
|
|
130
|
+
ZlTag: K,
|
|
131
|
+
ZlText: N,
|
|
132
|
+
ZlTitle: Q,
|
|
133
|
+
ZlUpload: Y,
|
|
134
|
+
ZlTree: W,
|
|
135
|
+
ZlTreeSelect: X
|
|
150
136
|
};
|
|
151
|
-
function
|
|
152
|
-
Object.entries(
|
|
137
|
+
function ro(o) {
|
|
138
|
+
Object.entries(oo).forEach(([r, m]) => {
|
|
153
139
|
o.component(r, m);
|
|
154
140
|
});
|
|
155
141
|
}
|
|
156
|
-
const
|
|
142
|
+
const Cr = { install: ro };
|
|
157
143
|
export {
|
|
158
144
|
i as ZlAction,
|
|
159
145
|
t as ZlActionList,
|
|
160
146
|
a as ZlAddSub,
|
|
161
147
|
l as ZlAppLayout,
|
|
162
148
|
p as ZlAppMenu,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
149
|
+
s as ZlAppSlogan,
|
|
150
|
+
f as ZlAutoTooltip,
|
|
151
|
+
n as ZlAvatar,
|
|
152
|
+
e as ZlAvatarGroup,
|
|
153
|
+
c as ZlCard,
|
|
168
154
|
Z as ZlCardPage,
|
|
169
|
-
|
|
170
|
-
$ as
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
u as
|
|
175
|
-
C as ZlDictTag,
|
|
155
|
+
_ as ZlCheckAll,
|
|
156
|
+
$ as ZlCheckboxTag,
|
|
157
|
+
g as ZlCopy,
|
|
158
|
+
d as ZlCornerTag,
|
|
159
|
+
T as ZlDescription,
|
|
160
|
+
u as ZlDictTag,
|
|
176
161
|
P as ZlDrawer,
|
|
177
|
-
|
|
178
|
-
h as
|
|
179
|
-
A as
|
|
180
|
-
|
|
181
|
-
x as
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
v as
|
|
185
|
-
L as
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
D as
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
H as
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
Nr as useSqlCompletion,
|
|
222
|
-
Or as useTablePagination,
|
|
223
|
-
Yr as zlEnMessages,
|
|
224
|
-
rm as zlMessages,
|
|
225
|
-
im as zlZhMessages
|
|
162
|
+
b as ZlDynamicComponent,
|
|
163
|
+
h as ZlEmpty,
|
|
164
|
+
A as ZlForm,
|
|
165
|
+
C as ZlFormChild,
|
|
166
|
+
x as ZlGrid,
|
|
167
|
+
S as ZlGridItem,
|
|
168
|
+
I as ZlHorizontalTable,
|
|
169
|
+
v as ZlI18nProvider,
|
|
170
|
+
L as ZlIcon,
|
|
171
|
+
w as ZlIconHover,
|
|
172
|
+
y as ZlIconLabel,
|
|
173
|
+
D as ZlLayoutSwitch,
|
|
174
|
+
F as ZlLogin,
|
|
175
|
+
G as ZlLoginForm,
|
|
176
|
+
M as ZlPagination,
|
|
177
|
+
k as ZlPdfViewer,
|
|
178
|
+
z as ZlPermission,
|
|
179
|
+
E as ZlPopconfirm,
|
|
180
|
+
H as ZlRadioTag,
|
|
181
|
+
j as ZlSearch,
|
|
182
|
+
R as ZlSearchTable,
|
|
183
|
+
V as ZlSection,
|
|
184
|
+
q as ZlSorter,
|
|
185
|
+
O as ZlSorterList,
|
|
186
|
+
U as ZlSwitch,
|
|
187
|
+
B as ZlTable,
|
|
188
|
+
J as ZlTabs,
|
|
189
|
+
K as ZlTag,
|
|
190
|
+
N as ZlText,
|
|
191
|
+
Q as ZlTitle,
|
|
192
|
+
W as ZlTree,
|
|
193
|
+
X as ZlTreeSelect,
|
|
194
|
+
Y as ZlUpload,
|
|
195
|
+
kr as createZlI18n,
|
|
196
|
+
Cr as default,
|
|
197
|
+
ro as install,
|
|
198
|
+
Ir as presetIconifyIcon,
|
|
199
|
+
vr as usePagination,
|
|
200
|
+
Fr as usePermission,
|
|
201
|
+
Gr as usePermissionProvider,
|
|
202
|
+
yr as useTablePagination,
|
|
203
|
+
Er as zlEnMessages,
|
|
204
|
+
jr as zlMessages,
|
|
205
|
+
Vr as zlZhMessages
|
|
226
206
|
};
|
|
227
207
|
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zl-ui-kit/components",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "ZL UI 业务组件库(Element Plus 体系,Zl 前缀)——首批:Icon/AutoTooltip/Tag/CornerTag/Text/Title/Copy/Empty/Pagination/DictTag",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,6 +10,18 @@
|
|
|
10
10
|
".": {
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"import": "./dist/index.mjs"
|
|
13
|
+
},
|
|
14
|
+
"./chart": {
|
|
15
|
+
"types": "./dist/entries/chart.d.ts",
|
|
16
|
+
"import": "./dist/entries/chart.mjs"
|
|
17
|
+
},
|
|
18
|
+
"./editor": {
|
|
19
|
+
"types": "./dist/entries/editor.d.ts",
|
|
20
|
+
"import": "./dist/entries/editor.mjs"
|
|
21
|
+
},
|
|
22
|
+
"./file-preview": {
|
|
23
|
+
"types": "./dist/entries/file-preview.d.ts",
|
|
24
|
+
"import": "./dist/entries/file-preview.mjs"
|
|
13
25
|
}
|
|
14
26
|
},
|
|
15
27
|
"files": [
|
|
@@ -27,9 +39,9 @@
|
|
|
27
39
|
"file-type": "^20.4.1",
|
|
28
40
|
"dt-sql-parser": "^4.3.1",
|
|
29
41
|
"sql-formatter": "^15.4.2",
|
|
30
|
-
"@zl-ui-kit/
|
|
31
|
-
"@zl-ui-kit/
|
|
32
|
-
"@zl-ui-kit/icons": "0.3.
|
|
42
|
+
"@zl-ui-kit/composables": "0.3.1",
|
|
43
|
+
"@zl-ui-kit/utils": "0.3.1",
|
|
44
|
+
"@zl-ui-kit/icons": "0.3.1"
|
|
33
45
|
},
|
|
34
46
|
"peerDependencies": {
|
|
35
47
|
"@vueuse/core": "^12.3.0",
|
|
@@ -86,10 +98,10 @@
|
|
|
86
98
|
"@vue-office/pdf": "^2.0.10",
|
|
87
99
|
"@vue-office/pptx": "1.0.1",
|
|
88
100
|
"echarts": "^5.6.0",
|
|
89
|
-
"@jichuang/eslint-config": "1.0.0",
|
|
90
101
|
"@jichuang/tsconfig": "1.0.0",
|
|
102
|
+
"@zl-ui-kit/theme": "0.3.1",
|
|
91
103
|
"@jichuang/vite-config": "1.0.0",
|
|
92
|
-
"@
|
|
104
|
+
"@jichuang/eslint-config": "1.0.0"
|
|
93
105
|
},
|
|
94
106
|
"repository": {
|
|
95
107
|
"type": "git",
|