easy-ep-ui 0.1.1 → 0.2.0

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 (103) hide show
  1. package/LICENSE +172 -0
  2. package/README.md +29 -14
  3. package/dist/easy-ep-ui.js +1 -1
  4. package/dist/style.css +1 -1
  5. package/es/charts/BaseBar/index.d.ts +2 -0
  6. package/es/charts/BaseBar/src/index.vue.d.ts +45 -0
  7. package/es/charts/BaseLine/index.d.ts +2 -0
  8. package/es/charts/BaseLine/src/index.vue.d.ts +47 -0
  9. package/es/charts/BasePie/index.d.ts +2 -0
  10. package/es/charts/BasePie/src/index.vue.d.ts +41 -0
  11. package/es/charts/BaseRadar/index.d.ts +2 -0
  12. package/es/charts/BaseRadar/src/index.vue.d.ts +47 -0
  13. package/es/charts/config.d.ts +32 -0
  14. package/es/charts/index.d.ts +8 -0
  15. package/es/charts/useChart.d.ts +21 -0
  16. package/es/components/ee-dept-cascader/index.d.ts +2 -0
  17. package/es/components/ee-dept-cascader/src/index.vue.d.ts +26 -0
  18. package/es/components/ee-dept-cascader/type.d.ts +39 -0
  19. package/es/components/ee-dict-select/src/index.vue.d.ts +19 -18
  20. package/es/components/ee-dict-select/type.d.ts +54 -0
  21. package/es/components/ee-form-dialog/src/index.vue.d.ts +108 -8
  22. package/es/components/ee-form-table/src/components/FormAuto.vue.d.ts +115 -0
  23. package/es/components/ee-form-table/src/components/FormDrawer.vue.d.ts +280 -7
  24. package/es/components/ee-form-table/src/components/TableToolbar.vue.d.ts +10 -3
  25. package/es/components/ee-form-table/src/constants.d.ts +2 -2
  26. package/es/components/ee-form-table/src/hooks/useCrud.d.ts +3 -1
  27. package/es/components/ee-form-table/src/hooks/useExport.d.ts +2 -0
  28. package/es/components/ee-form-table/src/hooks/useForm.d.ts +4 -2
  29. package/es/components/ee-form-table/src/hooks/useTable.d.ts +28 -11
  30. package/es/components/ee-form-table/src/index.vue.d.ts +33 -2
  31. package/es/components/ee-form-table/types.d.ts +86 -1
  32. package/es/components/ee-remote-select/index.d.ts +2 -0
  33. package/es/components/ee-remote-select/src/index.vue.d.ts +30 -0
  34. package/es/components/ee-remote-select/type.d.ts +53 -0
  35. package/es/components/ee-role-select/index.d.ts +2 -0
  36. package/es/components/ee-role-select/src/index.vue.d.ts +29 -0
  37. package/es/components/ee-role-select/type.d.ts +44 -0
  38. package/es/components/ee-search-bar/src/index.vue.d.ts +80 -10
  39. package/es/components/ee-status-tag/src/index.vue.d.ts +1 -1
  40. package/es/components/ee-user-select/index.d.ts +2 -0
  41. package/es/components/ee-user-select/src/index.vue.d.ts +29 -0
  42. package/es/components/ee-user-select/type.d.ts +46 -0
  43. package/es/hooks/index.d.ts +4 -0
  44. package/es/hooks/useRemoteSelectPagination.d.ts +68 -0
  45. package/es/hooks/useSelectEcho.d.ts +27 -0
  46. package/es/index.d.ts +50 -2
  47. package/es/index.mjs +3119 -1092
  48. package/es/locale/en.d.ts +3 -0
  49. package/es/locale/index.d.ts +91 -0
  50. package/es/locale/useLocale.d.ts +13 -0
  51. package/es/locale/zh-cn.d.ts +3 -0
  52. package/es/style.css +1 -1
  53. package/es/utils/types.d.ts +39 -0
  54. package/lib/charts/BaseBar/index.d.ts +2 -0
  55. package/lib/charts/BaseBar/src/index.vue.d.ts +45 -0
  56. package/lib/charts/BaseLine/index.d.ts +2 -0
  57. package/lib/charts/BaseLine/src/index.vue.d.ts +47 -0
  58. package/lib/charts/BasePie/index.d.ts +2 -0
  59. package/lib/charts/BasePie/src/index.vue.d.ts +41 -0
  60. package/lib/charts/BaseRadar/index.d.ts +2 -0
  61. package/lib/charts/BaseRadar/src/index.vue.d.ts +47 -0
  62. package/lib/charts/config.d.ts +32 -0
  63. package/lib/charts/index.d.ts +8 -0
  64. package/lib/charts/useChart.d.ts +21 -0
  65. package/lib/components/ee-dept-cascader/index.d.ts +2 -0
  66. package/lib/components/ee-dept-cascader/src/index.vue.d.ts +26 -0
  67. package/lib/components/ee-dept-cascader/type.d.ts +39 -0
  68. package/lib/components/ee-dict-select/src/index.vue.d.ts +19 -18
  69. package/lib/components/ee-dict-select/type.d.ts +54 -0
  70. package/lib/components/ee-form-dialog/src/index.vue.d.ts +108 -8
  71. package/lib/components/ee-form-table/src/components/FormAuto.vue.d.ts +115 -0
  72. package/lib/components/ee-form-table/src/components/FormDrawer.vue.d.ts +280 -7
  73. package/lib/components/ee-form-table/src/components/TableToolbar.vue.d.ts +10 -3
  74. package/lib/components/ee-form-table/src/constants.d.ts +2 -2
  75. package/lib/components/ee-form-table/src/hooks/useCrud.d.ts +3 -1
  76. package/lib/components/ee-form-table/src/hooks/useExport.d.ts +2 -0
  77. package/lib/components/ee-form-table/src/hooks/useForm.d.ts +4 -2
  78. package/lib/components/ee-form-table/src/hooks/useTable.d.ts +28 -11
  79. package/lib/components/ee-form-table/src/index.vue.d.ts +33 -2
  80. package/lib/components/ee-form-table/types.d.ts +86 -1
  81. package/lib/components/ee-remote-select/index.d.ts +2 -0
  82. package/lib/components/ee-remote-select/src/index.vue.d.ts +30 -0
  83. package/lib/components/ee-remote-select/type.d.ts +53 -0
  84. package/lib/components/ee-role-select/index.d.ts +2 -0
  85. package/lib/components/ee-role-select/src/index.vue.d.ts +29 -0
  86. package/lib/components/ee-role-select/type.d.ts +44 -0
  87. package/lib/components/ee-search-bar/src/index.vue.d.ts +80 -10
  88. package/lib/components/ee-status-tag/src/index.vue.d.ts +1 -1
  89. package/lib/components/ee-user-select/index.d.ts +2 -0
  90. package/lib/components/ee-user-select/src/index.vue.d.ts +29 -0
  91. package/lib/components/ee-user-select/type.d.ts +46 -0
  92. package/lib/hooks/index.d.ts +4 -0
  93. package/lib/hooks/useRemoteSelectPagination.d.ts +68 -0
  94. package/lib/hooks/useSelectEcho.d.ts +27 -0
  95. package/lib/index.cjs +1 -1
  96. package/lib/index.d.ts +50 -2
  97. package/lib/locale/en.d.ts +3 -0
  98. package/lib/locale/index.d.ts +91 -0
  99. package/lib/locale/useLocale.d.ts +13 -0
  100. package/lib/locale/zh-cn.d.ts +3 -0
  101. package/lib/style.css +1 -1
  102. package/lib/utils/types.d.ts +39 -0
  103. package/package.json +5 -2
package/lib/index.d.ts CHANGED
@@ -1,15 +1,63 @@
1
1
  import { App } from 'vue';
2
+ import { AxiosInstance } from 'axios';
3
+ import { ComponentSize } from './components/ee-form-table/types';
2
4
  import { default as EeDictSelect } from './components/ee-dict-select';
3
5
  import { default as EeStatusTag } from './components/ee-status-tag';
4
6
  import { default as EeSearchBar } from './components/ee-search-bar';
5
7
  import { default as EeFormDialog } from './components/ee-form-dialog';
6
8
  import { default as EeFormTable } from './components/ee-form-table';
9
+ import { default as EeRemoteSelect } from './components/ee-remote-select';
10
+ import { default as EeDeptCascader } from './components/ee-dept-cascader';
11
+ import { default as EeUserSelect } from './components/ee-user-select';
12
+ import { default as EeRoleSelect } from './components/ee-role-select';
13
+ import { EeBaseBar, EeBaseLine, EeBasePie, EeBaseRadar } from './charts';
14
+ import { Locale } from './locale';
15
+ export type { Locale };
16
+ /** 全局 requestInstance 注入 key,组件通过 inject 获取 */
17
+ export declare const EE_REQUEST_KEY = "eeRequestInstance";
18
+ /** Easy EP UI 全局配置选项 */
19
+ export interface EasyEpUIOptions {
20
+ /** 全局 axios 请求实例,所有选择组件共享,组件内通过 inject 获取 */
21
+ requestInstance?: AxiosInstance;
22
+ size?: ComponentSize;
23
+ readOnly?: boolean;
24
+ locale?: string | Partial<Locale>;
25
+ formTable?: Record<string, unknown>;
26
+ searchBar?: Record<string, unknown>;
27
+ formDialog?: Record<string, unknown>;
28
+ dictSelect?: Record<string, unknown>;
29
+ statusTag?: Record<string, unknown>;
30
+ remoteSelect?: Record<string, unknown>;
31
+ deptCascader?: Record<string, unknown>;
32
+ userSelect?: Record<string, unknown>;
33
+ roleSelect?: Record<string, unknown>;
34
+ /** 图表组件全局默认配置覆盖 */
35
+ baseChart?: Record<string, unknown>;
36
+ }
7
37
  export type { DictOption, SearchField, TableColumn, FormField, Pagination, StatusMapping } from './utils/types';
8
38
  export type { ColumnSearchItem, SearchConfig, PaginationConfig, ActionConfig, ActionButton, ToolbarConfig, ToolbarButton, CrudConfig, CrudApi, SelectionConfig, ExportConfig, DrawerConfig, ColumnSettingConfig, AutoHeightConfig, } from './components/ee-form-table/types';
9
39
  export type { EeFormTableProps } from './components/ee-form-table/types';
10
- export declare function install(app: App): void;
40
+ /**
41
+ * 全局注册 Easy EP UI 组件和配置
42
+ *
43
+ * @param app - Vue 应用实例
44
+ * @param options - 全局配置(locale / requestInstance / size / per-component 配置)
45
+ */
46
+ export declare function install(app: App, options?: EasyEpUIOptions): void;
11
47
  declare const EasyEpUI: {
12
48
  install: typeof install;
13
49
  };
14
50
  export default EasyEpUI;
15
- export { EeDictSelect, EeStatusTag, EeSearchBar, EeFormDialog, EeFormTable, };
51
+ export { EeDictSelect, EeStatusTag, EeSearchBar, EeFormDialog, EeFormTable, EeRemoteSelect, EeDeptCascader, EeUserSelect, EeRoleSelect, EeBaseBar, EeBaseLine, EeBasePie, EeBaseRadar, };
52
+ export { GLOBAL_CHART_CONFIG, deepMerge } from './charts/config';
53
+ export { useChart } from './charts/useChart';
54
+ export { EE_LOCALE_KEY } from './locale/useLocale';
55
+ export { mergeLocale } from './locale';
56
+ export { useRemoteSelectPagination, useSelectEcho } from './hooks';
57
+ export type { RemotePaginationOption, RemoteSelectOption } from './hooks';
58
+ export type { EchoOption } from './hooks';
59
+ export type { EeRemoteSelectProps, EeRemoteSelectEmits } from './components/ee-remote-select/type';
60
+ export type { EeDictSelectProps, EeDictSelectEmits } from './components/ee-dict-select/type';
61
+ export type { EeDeptCascaderProps, EeDeptCascaderEmits } from './components/ee-dept-cascader/type';
62
+ export type { EeUserSelectProps, EeUserSelectEmits } from './components/ee-user-select/type';
63
+ export type { EeRoleSelectProps, EeRoleSelectEmits } from './components/ee-role-select/type';
@@ -0,0 +1,3 @@
1
+ import { Locale } from '.';
2
+ declare const en: Locale;
3
+ export default en;
@@ -0,0 +1,91 @@
1
+ /**
2
+ * 国际化语言包类型定义和合并工具
3
+ *
4
+ * 所有组件 UI 字符串集中管理,支持中文(zh-cn)和英文(en)两种内置语言,
5
+ * 可自定义/覆盖部分文字。
6
+ */
7
+ export interface Locale {
8
+ formTable: {
9
+ operation: string;
10
+ add: string;
11
+ edit: string;
12
+ delete: string;
13
+ view: string;
14
+ import: string;
15
+ export: string;
16
+ batchDelete: string;
17
+ refresh: string;
18
+ columnSetting: string;
19
+ search: string;
20
+ reset: string;
21
+ expand: string;
22
+ collapse: string;
23
+ empty: string;
24
+ confirm: string;
25
+ cancel: string;
26
+ close: string;
27
+ confirmDelete: string;
28
+ confirmDeleteMsg: string;
29
+ confirmBatchDelete: string;
30
+ confirmBatchDeleteMsg: string;
31
+ addTitle: string;
32
+ editTitle: string;
33
+ viewTitle: string;
34
+ addSuccess: string;
35
+ editSuccess: string;
36
+ deleteSuccess: string;
37
+ batchDeleteSuccess: string;
38
+ refreshSuccess: string;
39
+ exportSuccess: string;
40
+ exportFail: string;
41
+ requestFailed: string;
42
+ deleteFailed: string;
43
+ batchDeleteFailed: string;
44
+ installXlsx: string;
45
+ exportFileName: string;
46
+ inputPlaceholder: string;
47
+ selectPlaceholder: string;
48
+ dateRangeTo: string;
49
+ dateRangeStart: string;
50
+ dateRangeEnd: string;
51
+ version: string;
52
+ versionTitle: string;
53
+ moreActions: string;
54
+ rowIndex: string;
55
+ selectionLabel: string;
56
+ };
57
+ searchBar: {
58
+ search: string;
59
+ reset: string;
60
+ expand: string;
61
+ collapse: string;
62
+ inputPlaceholder: string;
63
+ selectPlaceholder: string;
64
+ dateRangeTo: string;
65
+ dateRangeStart: string;
66
+ dateRangeEnd: string;
67
+ };
68
+ formDialog: {
69
+ confirm: string;
70
+ cancel: string;
71
+ title: string;
72
+ inputPlaceholder: string;
73
+ textareaPlaceholder: string;
74
+ selectPlaceholder: string;
75
+ datePickerPlaceholder: string;
76
+ };
77
+ remoteSelect: {
78
+ loading: string;
79
+ noMore: string;
80
+ loadMore: string;
81
+ searchPlaceholder: string;
82
+ requestFailed: string;
83
+ noData: string;
84
+ };
85
+ }
86
+ export { default as zhCn } from './zh-cn';
87
+ export { default as en } from './en';
88
+ /**
89
+ * 浅合并 locale 对象,目标字段为 undefined 时使用默认值
90
+ */
91
+ export declare function mergeLocale(target: Partial<Locale> | undefined, fallback: Locale): Locale;
@@ -0,0 +1,13 @@
1
+ import { Locale } from '.';
2
+ /** 全局 locale 的注入 key */
3
+ export declare const EE_LOCALE_KEY = "eeLocale";
4
+ /**
5
+ * 获取当前 locale 上下文
6
+ *
7
+ * 组件中可通过 useLocale() 获取 t 函数和当前语言包对象。
8
+ * t(key) 支持 {placeholder} 模板变量替换。
9
+ */
10
+ export declare function useLocale(): {
11
+ locale: Locale;
12
+ t: (section: string, key: string, args?: Record<string, string | number>) => string;
13
+ };
@@ -0,0 +1,3 @@
1
+ import { Locale } from '.';
2
+ declare const zhCn: Locale;
3
+ export default zhCn;
package/lib/style.css CHANGED
@@ -1 +1 @@
1
- .ee-search-bar[data-v-b65c74a4]{margin-bottom:16px}.ee-search-bar .el-form-item[data-v-b65c74a4]{margin-bottom:0}.ee-form-dialog-footer[data-v-560e642c]{display:flex;justify-content:flex-end;gap:12px}.ee-form-table{display:flex;flex-direction:column;height:100%;background:#fff;border-radius:4px}.ee-search-area{padding:16px 16px 0;border-bottom:1px solid #ebeef5}.ee-search-area .el-form-item{margin-bottom:16px}.ee-toolbar{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;flex-shrink:0}.ee-toolbar-left{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ee-toolbar-right{display:flex;align-items:center;gap:8px}.ee-table-wrapper{flex:1;overflow:auto;padding:0 16px}.ee-table-wrapper .el-table{width:100%}.ee-pagination{display:flex;justify-content:flex-end;padding:12px 16px;border-top:1px solid #ebeef5;flex-shrink:0}.ee-size--small{font-size:13px}.ee-size--large{font-size:16px}
1
+ .ee-search-bar[data-v-fe481020]{margin-bottom:16px}.ee-search-bar .el-form-item[data-v-fe481020]{margin-bottom:0}.ee-form-dialog-footer[data-v-929d8568]{display:flex;justify-content:flex-end;gap:12px}.ee-column-setting[data-v-951992f2]{max-height:320px;overflow-y:auto}.ee-column-setting-item[data-v-951992f2]{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 4px 8px;cursor:grab;border-radius:4px;-webkit-user-select:none;user-select:none}.ee-column-setting-item[data-v-951992f2]:hover{background:var(--el-color-primary-light-9, #f0f5ff)}.ee-column-setting-item--drag-over[data-v-951992f2]{background:var(--el-color-primary-light-7, #d9ecff)}.ee-column-setting-drag[data-v-951992f2]{cursor:grab;color:#c0c4cc;font-size:14px}.ee-column-setting-drag[data-v-951992f2]:hover{color:#909399}.ee-column-setting-special[data-v-951992f2]{padding-bottom:4px}.ee-column-setting-item--special[data-v-951992f2]{cursor:default}.ee-column-setting-item--special[data-v-951992f2]:hover{background:transparent}.ee-form-table{display:flex;flex-direction:column;height:100%;background:#fff;border-radius:4px}.ee-search-area{padding:16px 16px 0;border-bottom:1px solid #ebeef5}.ee-search-area .el-form-item{margin-bottom:16px}.ee-toolbar{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;flex-shrink:0}.ee-toolbar-left{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ee-toolbar-right{display:flex;align-items:center;gap:8px}.ee-table-wrapper{flex:1;overflow:auto;padding:0 16px}.ee-table-wrapper .el-table{width:100%}.ee-table-wrapper .el-table th.el-table__cell{background-color:#f5f7fa}.app-root.dark .ee-table-wrapper .el-table th.el-table__cell{background-color:#2a2a2a}.ee-pagination{display:flex;justify-content:flex-end;padding:12px 16px;border-top:1px solid #ebeef5;flex-shrink:0}.ee-size--small{font-size:13px}.ee-size--large{font-size:16px}.ee-action-btns{display:flex;align-items:center;justify-content:center;gap:2px;flex-wrap:nowrap}.ee-action-btn{white-space:nowrap!important}.ee-action-btn .el-icon{margin-right:0}.ee-load-more[data-v-21c5d143],.ee-no-more[data-v-21c5d143]{display:flex;align-items:center;justify-content:center;padding:8px 0;font-size:12px;color:#999;cursor:pointer}.ee-load-more[data-v-21c5d143]:hover{color:#409eff}.ee-loading-tip[data-v-21c5d143]{display:flex;align-items:center;justify-content:center;padding:8px 0;font-size:12px;color:#999}.ee-load-more[data-v-6e78b80d],.ee-no-more[data-v-6e78b80d]{display:flex;align-items:center;justify-content:center;padding:8px 0;font-size:12px;color:#999;cursor:pointer}.ee-load-more[data-v-6e78b80d]:hover{color:#409eff}.ee-loading-tip[data-v-6e78b80d]{display:flex;align-items:center;justify-content:center;padding:8px 0;font-size:12px;color:#999}.ee-load-more[data-v-58cd12c9],.ee-no-more[data-v-58cd12c9]{display:flex;align-items:center;justify-content:center;padding:8px 0;font-size:12px;color:#999;cursor:pointer}.ee-load-more[data-v-58cd12c9]:hover{color:#409eff}.ee-loading-tip[data-v-58cd12c9]{display:flex;align-items:center;justify-content:center;padding:8px 0;font-size:12px;color:#999}
@@ -1,48 +1,87 @@
1
1
  import { VNode } from 'vue';
2
+ /** 下拉选项项 */
2
3
  export interface DictOption {
4
+ /** 选项值 */
3
5
  value: string | number;
6
+ /** 显示文本 */
4
7
  label: string;
8
+ /** 是否禁用 */
5
9
  disabled?: boolean;
6
10
  [key: string]: unknown;
7
11
  }
12
+ /** 搜索栏字段配置 */
8
13
  export interface SearchField {
14
+ /** 字段 key */
9
15
  prop: string;
16
+ /** 字段标签 */
10
17
  label: string;
18
+ /** 字段类型:输入框/下拉/日期/日期范围/级联 */
11
19
  type?: 'input' | 'select' | 'date' | 'date-range' | 'cascader';
20
+ /** 占位符 */
12
21
  placeholder?: string;
22
+ /** 下拉/级联选项(type=select/cascader 时使用) */
13
23
  options?: DictOption[];
24
+ /** 栅格占宽,默认 6 */
14
25
  span?: number;
26
+ /** 自定义渲染组件 */
15
27
  component?: VNode;
16
28
  }
29
+ /** 表格列配置 */
17
30
  export interface TableColumn {
31
+ /** 字段 key */
18
32
  prop: string;
33
+ /** 列标题 */
19
34
  label: string;
35
+ /** 列宽 */
20
36
  width?: string | number;
37
+ /** 最小列宽 */
21
38
  minWidth?: string | number;
39
+ /** 固定列(left/right) */
22
40
  fixed?: 'left' | 'right';
41
+ /** 是否可排序 */
23
42
  sortable?: boolean;
43
+ /** 对齐方式 */
24
44
  align?: 'left' | 'center' | 'right';
45
+ /** 自定义格式化函数 */
25
46
  formatter?: (row: Record<string, unknown>, column: TableColumn, cellValue: unknown, index: number) => VNode | string;
26
47
  [key: string]: unknown;
27
48
  }
49
+ /** 表单字段配置 */
28
50
  export interface FormField {
51
+ /** 字段 key */
29
52
  prop: string;
53
+ /** 字段标签 */
30
54
  label: string;
55
+ /** 字段类型 */
31
56
  type?: 'input' | 'textarea' | 'select' | 'radio' | 'checkbox' | 'date' | 'switch';
57
+ /** 占位符 */
32
58
  placeholder?: string;
59
+ /** 校验规则 */
33
60
  rules?: Record<string, unknown>[];
61
+ /** 选项数据 */
34
62
  options?: DictOption[];
63
+ /** 栅格占宽 */
35
64
  span?: number;
65
+ /** 自定义渲染组件 */
36
66
  component?: VNode;
37
67
  }
68
+ /** 分页信息 */
38
69
  export interface Pagination {
70
+ /** 当前页 */
39
71
  current: number;
72
+ /** 每页条数 */
40
73
  pageSize: number;
74
+ /** 总条数 */
41
75
  total: number;
42
76
  }
77
+ /** 状态映射(用于 EeStatusTag) */
43
78
  export interface StatusMapping {
79
+ /** 状态值 */
44
80
  value: string | number;
81
+ /** 显示文字 */
45
82
  label: string;
83
+ /** Element Plus Tag 类型 */
46
84
  type?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
85
+ /** 主题效果 */
47
86
  effect?: 'dark' | 'light' | 'plain';
48
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-ep-ui",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Enterprise Element Plus 二次封装组件库 - Easy EP UI",
5
5
  "type": "module",
6
6
  "main": "lib/index.cjs",
@@ -24,7 +24,6 @@
24
24
  },
25
25
  "scripts": {
26
26
  "dev": "vitepress dev docs",
27
- "docs:dev": "vitepress dev docs",
28
27
  "docs:build": "vitepress build docs",
29
28
  "docs:serve": "vitepress serve docs",
30
29
  "clean": "rm -rf dist es lib",
@@ -38,11 +37,15 @@
38
37
  "prepublishOnly": "npm run clean && npm run build"
39
38
  },
40
39
  "peerDependencies": {
40
+ "axios": "^1.7.0",
41
+ "echarts": "^6.0.0",
41
42
  "element-plus": "^2.8.0",
42
43
  "vue": "^3.4.0"
43
44
  },
44
45
  "devDependencies": {
45
46
  "@vitejs/plugin-vue": "^5.1.0",
47
+ "axios": "^1.7.0",
48
+ "echarts": "^6.1.0",
46
49
  "element-plus": "^2.8.0",
47
50
  "typescript": "^5.5.0",
48
51
  "vite": "^5.4.0",