@origen-ui/admin-cli 3.0.5 → 3.0.6
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/package.json +15 -15
- package/templates/current/clean/CHANGELOG.md +22 -0
- package/templates/current/clean/component-catalog.v2.json +15 -15
- package/templates/current/clean/docs/components/index.md +19 -19
- package/templates/current/clean/element-plus-plugin.ts +22 -0
- package/templates/current/clean/package.json +7 -7
- package/templates/current/clean/pnpm-workspace.yaml +3 -12
- package/templates/current/clean/scaffold.lock.json +20 -20
- package/templates/current/clean/src/app/ui/createAdminUi.ts +1 -0
- package/templates/current/clean/src/app/ui/elementPlusApiStyles.ts +3 -0
- package/templates/current/clean/src/layouts/BreadcrumbBar.vue +1 -0
- package/templates/current/clean/src/layouts/SideMenu.vue +1 -0
- package/templates/current/clean/src/layouts/WorkspaceTabs.vue +1 -0
- package/templates/current/clean/tests/e2e/fixtures/adminMockBackend.ts +4 -0
- package/templates/current/clean/vite.config.ts +26 -21
- package/templates/current/examples/CHANGELOG.md +22 -0
- package/templates/current/examples/component-catalog.v2.json +15 -15
- package/templates/current/examples/docs/components/index.md +19 -19
- package/templates/current/examples/element-plus-plugin.ts +22 -0
- package/templates/current/examples/package.json +7 -7
- package/templates/current/examples/pnpm-workspace.yaml +3 -12
- package/templates/current/examples/scaffold.lock.json +20 -20
- package/templates/current/examples/src/app/ui/createAdminUi.ts +1 -0
- package/templates/current/examples/src/app/ui/elementPlusApiStyles.ts +3 -0
- package/templates/current/examples/src/layouts/BreadcrumbBar.vue +1 -0
- package/templates/current/examples/src/layouts/SideMenu.vue +1 -0
- package/templates/current/examples/src/layouts/WorkspaceTabs.vue +1 -0
- package/templates/current/examples/tests/e2e/fixtures/adminMockBackend.ts +4 -0
- package/templates/current/examples/vite.config.ts +26 -21
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@origen-ui/admin-cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.6",
|
|
5
5
|
"description": "Project creation CLI for the Origen UI Admin scaffold",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://gitee.com/zapcenter/origen-ui",
|
|
@@ -29,20 +29,20 @@
|
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "26.6.6",
|
|
31
31
|
"@vitest/coverage-v8": "5.0.5",
|
|
32
|
-
"@origen-ui/
|
|
33
|
-
"@origen-ui/
|
|
34
|
-
"@origen-ui/form-table": "3.0.
|
|
35
|
-
"@origen-ui/
|
|
36
|
-
"@origen-ui/permission": "3.0.
|
|
37
|
-
"@origen-ui/
|
|
38
|
-
"@origen-ui/
|
|
39
|
-
"@origen-ui/
|
|
40
|
-
"@origen-ui/
|
|
41
|
-
"@origen-ui/
|
|
42
|
-
"@origen-ui/
|
|
43
|
-
"@origen-ui/
|
|
44
|
-
"@origen-ui/
|
|
45
|
-
"origen-ui": "3.0.
|
|
32
|
+
"@origen-ui/dialog": "3.0.6",
|
|
33
|
+
"@origen-ui/table-search": "3.0.6",
|
|
34
|
+
"@origen-ui/form-table": "3.0.6",
|
|
35
|
+
"@origen-ui/http": "3.0.6",
|
|
36
|
+
"@origen-ui/permission": "3.0.6",
|
|
37
|
+
"@origen-ui/form": "3.0.6",
|
|
38
|
+
"@origen-ui/router": "3.0.6",
|
|
39
|
+
"@origen-ui/search": "3.0.6",
|
|
40
|
+
"@origen-ui/shared": "3.0.6",
|
|
41
|
+
"@origen-ui/upload": "3.0.6",
|
|
42
|
+
"@origen-ui/tabs": "3.0.6",
|
|
43
|
+
"@origen-ui/editor": "3.0.6",
|
|
44
|
+
"@origen-ui/table": "3.0.6",
|
|
45
|
+
"origen-ui": "3.0.6"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "node --check bin/og-admin.mjs && pnpm run templates:check",
|
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @origen-ui/admin
|
|
2
2
|
|
|
3
|
+
## 1.0.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Include Element Plus Loading, Message, and MessageBox styles in standalone Admin builds.
|
|
8
|
+
- Updated dependencies for linked package release 3.0.6, set the standalone scaffold's `minimumReleaseAge` to `0`, and pre-bundled the editor's `lowlight` interop dependencies for Vite development while preserving strict peer checks.
|
|
9
|
+
- @origen-ui/shared@3.0.6
|
|
10
|
+
- @origen-ui/icons@3.0.6
|
|
11
|
+
- @origen-ui/permission@3.0.6
|
|
12
|
+
- @origen-ui/http@3.0.6
|
|
13
|
+
- @origen-ui/dialog@3.0.6
|
|
14
|
+
- @origen-ui/editor@3.0.6
|
|
15
|
+
- @origen-ui/upload@3.0.6
|
|
16
|
+
- @origen-ui/search@3.0.6
|
|
17
|
+
- @origen-ui/table@3.0.6
|
|
18
|
+
- @origen-ui/tabs@3.0.6
|
|
19
|
+
- @origen-ui/router@3.0.6
|
|
20
|
+
- @origen-ui/form@3.0.6
|
|
21
|
+
- @origen-ui/form-table@3.0.6
|
|
22
|
+
- @origen-ui/table-search@3.0.6
|
|
23
|
+
- origen-ui@3.0.6
|
|
24
|
+
|
|
3
25
|
## 1.0.9
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -2021,20 +2021,20 @@
|
|
|
2021
2021
|
}
|
|
2022
2022
|
],
|
|
2023
2023
|
"packageVersions": {
|
|
2024
|
-
"@origen-ui/dialog": "3.0.
|
|
2025
|
-
"@origen-ui/editor": "3.0.
|
|
2026
|
-
"@origen-ui/form": "3.0.
|
|
2027
|
-
"@origen-ui/form-table": "3.0.
|
|
2028
|
-
"@origen-ui/http": "3.0.
|
|
2029
|
-
"@origen-ui/icons": "3.0.
|
|
2030
|
-
"@origen-ui/permission": "3.0.
|
|
2031
|
-
"@origen-ui/router": "3.0.
|
|
2032
|
-
"@origen-ui/search": "3.0.
|
|
2033
|
-
"@origen-ui/shared": "3.0.
|
|
2034
|
-
"@origen-ui/table": "3.0.
|
|
2035
|
-
"@origen-ui/table-search": "3.0.
|
|
2036
|
-
"@origen-ui/tabs": "3.0.
|
|
2037
|
-
"@origen-ui/upload": "3.0.
|
|
2038
|
-
"origen-ui": "3.0.
|
|
2024
|
+
"@origen-ui/dialog": "3.0.6",
|
|
2025
|
+
"@origen-ui/editor": "3.0.6",
|
|
2026
|
+
"@origen-ui/form": "3.0.6",
|
|
2027
|
+
"@origen-ui/form-table": "3.0.6",
|
|
2028
|
+
"@origen-ui/http": "3.0.6",
|
|
2029
|
+
"@origen-ui/icons": "3.0.6",
|
|
2030
|
+
"@origen-ui/permission": "3.0.6",
|
|
2031
|
+
"@origen-ui/router": "3.0.6",
|
|
2032
|
+
"@origen-ui/search": "3.0.6",
|
|
2033
|
+
"@origen-ui/shared": "3.0.6",
|
|
2034
|
+
"@origen-ui/table": "3.0.6",
|
|
2035
|
+
"@origen-ui/table-search": "3.0.6",
|
|
2036
|
+
"@origen-ui/tabs": "3.0.6",
|
|
2037
|
+
"@origen-ui/upload": "3.0.6",
|
|
2038
|
+
"origen-ui": "3.0.6"
|
|
2039
2039
|
}
|
|
2040
2040
|
}
|
|
@@ -13,25 +13,25 @@ description: 按任务场景检索 origen-ui 的公开 Vue 组件、调用参数
|
|
|
13
13
|
|
|
14
14
|
| 组件 | 场景、用途与检索词 | 包 | 公开导入入口 | 参数 / API 摘要 | 使用约束 | 状态 / 包版本 | API 与示例 |
|
|
15
15
|
| ----------------- | ----------------------------------------------------- | ----------------------- | ------------------------------ | ------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------ |
|
|
16
|
-
| OgTable | 数据列表、远程 CRUD、分页、排序、权限、编辑、虚拟滚动 | @origen-ui/table | @origen-ui/table | OgTableProps:rowKey(按行级能力要求)、ogColumns、ogDataSource、ogConfig | 实例身份自动管理;仅远程纯展示且无行级能力时可省略 rowKey。 | 当前 · 3.0.
|
|
17
|
-
| OgTableLocal | 本地数据、草稿行、表单明细、小规模客户端编辑 | @origen-ui/table | @origen-ui/table | OgTableLocalProps:modelValue、rowKey、ogColumns | 父组件持有行数组;本地行操作需要 rowKey;不接收远程 ogDataSource。 | 当前 · 3.0.
|
|
18
|
-
| OgTableWithSearch | 表格加条件搜索、查询提交、搜索失败恢复 | @origen-ui/table-search | @origen-ui/table-search | OgTableWithSearchProps:OgTable 属性及 ogConfig.search.fields | 搜索字段使用 ogControl.ogType;其余表格请求、列和样式契约见 OgTable。 | 当前 · 3.0.
|
|
19
|
-
| OgSearch | 独立查询表单、筛选字段、关键字搜索、校验与重置 | @origen-ui/search | @origen-ui/search | OgSearchProps:modelValue、ogKeyword、ogConfig、search 事件 | 应用负责持有查询状态并处理提交后的请求;自定义控件需提供有效的 ogType。 | 当前 · 3.0.
|
|
20
|
-
| OgForm | Schema 表单、字段联动、校验、只读与动态配置 | @origen-ui/form | @origen-ui/form | OgFormProps:modelValue、ogSchema、ogColumns | 应用持有业务数据、提交与请求职责;字段渲染遵循表单上下文和公开 renderer 配置。 | 当前 · 3.0.
|
|
21
|
-
| FieldRenderer | 表单字段渲染、注册 renderer、扩展字段控件 | @origen-ui/form | @origen-ui/form | `ogField`(必填)、`ogReadonly`(默认 false)、`ogA11y` 可选。 | 仅在 OgForm 上下文中使用;一般页面优先通过 schema 配置字段。 | 当前 · 3.0.
|
|
22
|
-
| OgFormItem | 表单项布局、标签、校验与插槽组合 | @origen-ui/form | @origen-ui/form | `ogName`(必填)、`ogField`、`ogReadonly`(默认 false)、`ogLabelTip`;支持 FormItem 属性。 | 仅在 OgForm 上下文中使用;`ogName` 指定字段,错误与表单状态由 OgForm 控制。 | 当前 · 3.0.
|
|
23
|
-
| OgFormTable | 表单内可编辑明细表、网格编辑、单元格 schema | @origen-ui/form-table | @origen-ui/form-table | OgFormTableProps:modelValue、ogColumns、ogConfig | 通过公开表单字段适配器接入 OgForm;编辑和提交遵循表格与表单各自的数据所有权。 | 当前 · 3.0.
|
|
24
|
-
| OgUpload | 受控文件值、上传进度、失败恢复与文件列表 | @origen-ui/upload | @origen-ui/upload | OgUploadPropsDocumentation:modelValue、上传配置、值编解码与事件 | 应用提供上传适配器并定义业务文件值;组件不决定业务请求地址或权限。 | 当前 · 3.0.
|
|
25
|
-
| SvgIcon | SVG 图标、图标尺寸与颜色、应用本地资源 | @origen-ui/icons | @origen-ui/icons | SvgIconProps:图标标识、尺寸、颜色及 SVG 属性 | 图标资源按项目图标注册和构建约定提供;完整样式入口见样式与主题文档。 | 当前 · 3.0.
|
|
26
|
-
| OgEditor | 富文本编辑、媒体上传、HTML 内容处理 | @origen-ui/editor | @origen-ui/editor | OgEditorProps:受控内容、编辑能力配置、上传与事件 | 应用负责配置媒体上传适配器及业务内容边界;展示已有内容时选用 OgEditorViewer。 | 当前 · 3.0.
|
|
27
|
-
| OgEditorViewer | 富文本只读展示、空态与媒体布局 | @origen-ui/editor | @origen-ui/editor | OgEditorViewerProps:待展示内容及查看器配置 | 只读展示使用该组件;内容安全处理按组件详页和应用内容边界配置。 | 当前 · 3.0.
|
|
28
|
-
| OgDialog | 对话框或抽屉、确认、编辑、关闭保护 | @origen-ui/dialog | @origen-ui/dialog | OgDialogProps:受控显示、展示配置、确认与关闭回调 | 应用决定业务提交和异步操作;命令式弹窗还需安装 manager 并挂载 OgDialogHost。 | 当前 · 3.0.
|
|
29
|
-
| OgDialogHost | 命令式弹窗宿主、DialogManager 挂载 | @origen-ui/dialog | @origen-ui/dialog | manager 可选;默认使用应用注入的 manager。 | 在应用根级挂载;使用前安装 createOgDialog(),或显式传入 DialogManager。 | 当前 · 3.0.
|
|
30
|
-
| OgTabs | 工作区标签、受控导航、关闭守卫与标签操作 | @origen-ui/tabs | @origen-ui/tabs | OgTabsProps:ogItems、modelValue、ogBeforeAction、actionRequest | 父组件决定是否接受标签和激活项变更;路由工作区集成可使用 RouterTabs。 | 当前 · 3.0.
|
|
31
|
-
| RouterViewHost | 路由视图、动态路由组件挂载、缓存视图 | @origen-ui/router | @origen-ui/router | cacheMax 可选,默认 10;限制 KeepAlive 缓存数量。 | 依赖 Vue Router 和应用提供的 router adapter;路由数据及后端 DTO 映射由应用负责。 | 当前 · 3.0.
|
|
32
|
-
| RouterBreadcrumb | Element Plus 面包屑、当前路由导航层级 | @origen-ui/router | @origen-ui/router/element-plus | RouterBreadcrumbProps:面包屑显示和 Element Plus 属性 | 需使用 Element Plus 预设子路径;菜单和路由元数据由 router adapter 提供。 | 当前 · 3.0.
|
|
33
|
-
| RouterMenu | Element Plus 菜单、路由菜单选择与导航 | @origen-ui/router | @origen-ui/router/element-plus | RouterMenuProps:菜单显示、路由选择及 Element Plus 属性 | 需使用 Element Plus 预设子路径;应用仍负责菜单 API、授权和业务 DTO 转换。 | 当前 · 3.0.
|
|
34
|
-
| RouterTabs | 路由工作区标签、页面缓存与路由联动 | @origen-ui/router | @origen-ui/router/tabs | RouterTabsProps:标签外观和导航展示配置 | 需使用 tabs 子路径并满足其 peer dependency;应用负责路由和工作区状态策略。 | 当前 · 3.0.
|
|
16
|
+
| OgTable | 数据列表、远程 CRUD、分页、排序、权限、编辑、虚拟滚动 | @origen-ui/table | @origen-ui/table | OgTableProps:rowKey(按行级能力要求)、ogColumns、ogDataSource、ogConfig | 实例身份自动管理;仅远程纯展示且无行级能力时可省略 rowKey。 | 当前 · 3.0.6 | [API](./table.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
17
|
+
| OgTableLocal | 本地数据、草稿行、表单明细、小规模客户端编辑 | @origen-ui/table | @origen-ui/table | OgTableLocalProps:modelValue、rowKey、ogColumns | 父组件持有行数组;本地行操作需要 rowKey;不接收远程 ogDataSource。 | 当前 · 3.0.6 | [API](./table-local.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
18
|
+
| OgTableWithSearch | 表格加条件搜索、查询提交、搜索失败恢复 | @origen-ui/table-search | @origen-ui/table-search | OgTableWithSearchProps:OgTable 属性及 ogConfig.search.fields | 搜索字段使用 ogControl.ogType;其余表格请求、列和样式契约见 OgTable。 | 当前 · 3.0.6 | [API](./table-with-search.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
19
|
+
| OgSearch | 独立查询表单、筛选字段、关键字搜索、校验与重置 | @origen-ui/search | @origen-ui/search | OgSearchProps:modelValue、ogKeyword、ogConfig、search 事件 | 应用负责持有查询状态并处理提交后的请求;自定义控件需提供有效的 ogType。 | 当前 · 3.0.6 | [API](./search.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
20
|
+
| OgForm | Schema 表单、字段联动、校验、只读与动态配置 | @origen-ui/form | @origen-ui/form | OgFormProps:modelValue、ogSchema、ogColumns | 应用持有业务数据、提交与请求职责;字段渲染遵循表单上下文和公开 renderer 配置。 | 当前 · 3.0.6 | [API](./form.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
21
|
+
| FieldRenderer | 表单字段渲染、注册 renderer、扩展字段控件 | @origen-ui/form | @origen-ui/form | `ogField`(必填)、`ogReadonly`(默认 false)、`ogA11y` 可选。 | 仅在 OgForm 上下文中使用;一般页面优先通过 schema 配置字段。 | 当前 · 3.0.6 | [API](./form.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
22
|
+
| OgFormItem | 表单项布局、标签、校验与插槽组合 | @origen-ui/form | @origen-ui/form | `ogName`(必填)、`ogField`、`ogReadonly`(默认 false)、`ogLabelTip`;支持 FormItem 属性。 | 仅在 OgForm 上下文中使用;`ogName` 指定字段,错误与表单状态由 OgForm 控制。 | 当前 · 3.0.6 | [API](./form.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
23
|
+
| OgFormTable | 表单内可编辑明细表、网格编辑、单元格 schema | @origen-ui/form-table | @origen-ui/form-table | OgFormTableProps:modelValue、ogColumns、ogConfig | 通过公开表单字段适配器接入 OgForm;编辑和提交遵循表格与表单各自的数据所有权。 | 当前 · 3.0.6 | [API](./form-table.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
24
|
+
| OgUpload | 受控文件值、上传进度、失败恢复与文件列表 | @origen-ui/upload | @origen-ui/upload | OgUploadPropsDocumentation:modelValue、上传配置、值编解码与事件 | 应用提供上传适配器并定义业务文件值;组件不决定业务请求地址或权限。 | 当前 · 3.0.6 | [API](./upload.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
25
|
+
| SvgIcon | SVG 图标、图标尺寸与颜色、应用本地资源 | @origen-ui/icons | @origen-ui/icons | SvgIconProps:图标标识、尺寸、颜色及 SVG 属性 | 图标资源按项目图标注册和构建约定提供;完整样式入口见样式与主题文档。 | 当前 · 3.0.6 | [API](./svg-icon.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
26
|
+
| OgEditor | 富文本编辑、媒体上传、HTML 内容处理 | @origen-ui/editor | @origen-ui/editor | OgEditorProps:受控内容、编辑能力配置、上传与事件 | 应用负责配置媒体上传适配器及业务内容边界;展示已有内容时选用 OgEditorViewer。 | 当前 · 3.0.6 | [API](./editor.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
27
|
+
| OgEditorViewer | 富文本只读展示、空态与媒体布局 | @origen-ui/editor | @origen-ui/editor | OgEditorViewerProps:待展示内容及查看器配置 | 只读展示使用该组件;内容安全处理按组件详页和应用内容边界配置。 | 当前 · 3.0.6 | [API](./editor-viewer.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
28
|
+
| OgDialog | 对话框或抽屉、确认、编辑、关闭保护 | @origen-ui/dialog | @origen-ui/dialog | OgDialogProps:受控显示、展示配置、确认与关闭回调 | 应用决定业务提交和异步操作;命令式弹窗还需安装 manager 并挂载 OgDialogHost。 | 当前 · 3.0.6 | [API](./dialog.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
29
|
+
| OgDialogHost | 命令式弹窗宿主、DialogManager 挂载 | @origen-ui/dialog | @origen-ui/dialog | manager 可选;默认使用应用注入的 manager。 | 在应用根级挂载;使用前安装 createOgDialog(),或显式传入 DialogManager。 | 当前 · 3.0.6 | [API](./dialog.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
30
|
+
| OgTabs | 工作区标签、受控导航、关闭守卫与标签操作 | @origen-ui/tabs | @origen-ui/tabs | OgTabsProps:ogItems、modelValue、ogBeforeAction、actionRequest | 父组件决定是否接受标签和激活项变更;路由工作区集成可使用 RouterTabs。 | 当前 · 3.0.6 | [API](./tabs.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
31
|
+
| RouterViewHost | 路由视图、动态路由组件挂载、缓存视图 | @origen-ui/router | @origen-ui/router | cacheMax 可选,默认 10;限制 KeepAlive 缓存数量。 | 依赖 Vue Router 和应用提供的 router adapter;路由数据及后端 DTO 映射由应用负责。 | 当前 · 3.0.6 | [API](./router.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
32
|
+
| RouterBreadcrumb | Element Plus 面包屑、当前路由导航层级 | @origen-ui/router | @origen-ui/router/element-plus | RouterBreadcrumbProps:面包屑显示和 Element Plus 属性 | 需使用 Element Plus 预设子路径;菜单和路由元数据由 router adapter 提供。 | 当前 · 3.0.6 | [API](./router.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
33
|
+
| RouterMenu | Element Plus 菜单、路由菜单选择与导航 | @origen-ui/router | @origen-ui/router/element-plus | RouterMenuProps:菜单显示、路由选择及 Element Plus 属性 | 需使用 Element Plus 预设子路径;应用仍负责菜单 API、授权和业务 DTO 转换。 | 当前 · 3.0.6 | [API](./router.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
34
|
+
| RouterTabs | 路由工作区标签、页面缓存与路由联动 | @origen-ui/router | @origen-ui/router/tabs | RouterTabsProps:标签外观和导航展示配置 | 需使用 tabs 子路径并满足其 peer dependency;应用负责路由和工作区状态策略。 | 当前 · 3.0.6 | [API](./router.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
35
35
|
|
|
36
36
|
<!-- component-catalog:end -->
|
|
37
37
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import ElementPlus from 'unplugin-element-plus/vite'
|
|
2
|
+
|
|
3
|
+
export function createAdminElementPlusPlugin() {
|
|
4
|
+
return ElementPlus({
|
|
5
|
+
useSource: true,
|
|
6
|
+
include: [
|
|
7
|
+
'**/*.vue',
|
|
8
|
+
'**/*.ts',
|
|
9
|
+
'**/*.js',
|
|
10
|
+
'**/*.tsx',
|
|
11
|
+
'**/*.jsx',
|
|
12
|
+
'**/*.vue?vue&type=script*',
|
|
13
|
+
/\.vue\.[tj]sx?\?vue/,
|
|
14
|
+
/\.mjs(?:$|\?)/,
|
|
15
|
+
],
|
|
16
|
+
exclude: [
|
|
17
|
+
/[/\\]node_modules[/\\](?!\.pnpm[/\\])(?!@origen-ui[/\\])/,
|
|
18
|
+
/[/\\]\.git[/\\]/,
|
|
19
|
+
/[/\\]\.nuxt[/\\]/,
|
|
20
|
+
],
|
|
21
|
+
})
|
|
22
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@origen-ui/admin-scaffold",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.6",
|
|
5
5
|
"private": true,
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=22.22.2"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"examples:remove": "node scripts/remove-examples.mjs"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@element-plus/icons-vue": "2.3.2",
|
|
35
|
+
"@element-plus/icons-vue": "^2.3.2",
|
|
36
36
|
"@noble/ciphers": "2.4.0",
|
|
37
37
|
"@origen-ui/dialog": "latest",
|
|
38
38
|
"@origen-ui/editor": "latest",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"@origen-ui/upload": "latest",
|
|
51
51
|
"@vue/devtools-api": "8.2.1",
|
|
52
52
|
"@vueuse/core": "15.0.0",
|
|
53
|
-
"axios": "1.21.
|
|
54
|
-
"element-plus": "2.14.8",
|
|
53
|
+
"axios": "^1.21.1",
|
|
54
|
+
"element-plus": "^2.14.8",
|
|
55
55
|
"origen-ui": "latest",
|
|
56
56
|
"pinia": "4.1.0",
|
|
57
57
|
"sortablejs": "1.15.7",
|
|
58
|
-
"vue": "3.5.
|
|
58
|
+
"vue": "^3.5.45",
|
|
59
59
|
"vue-i18n": "11.4.16",
|
|
60
|
-
"vue-router": "5.5.1"
|
|
60
|
+
"vue-router": "^5.5.1"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@antfu/eslint-config": "10.0.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@vitejs/plugin-vue": "6.0.10",
|
|
68
68
|
"@vitejs/plugin-vue-jsx": "5.1.6",
|
|
69
69
|
"@vitest/coverage-v8": "5.0.5",
|
|
70
|
-
"@vue/compiler-sfc": "3.5.
|
|
70
|
+
"@vue/compiler-sfc": "3.5.45",
|
|
71
71
|
"@vue/test-utils": "2.5.1",
|
|
72
72
|
"eslint": "10.14.0",
|
|
73
73
|
"jsdom": "30.1.3",
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
packages: []
|
|
2
|
+
minimumReleaseAge: 0
|
|
3
|
+
minimumReleaseAgeStrict: true
|
|
2
4
|
|
|
3
5
|
allowBuilds:
|
|
4
6
|
'@parcel/watcher': true
|
|
@@ -9,26 +11,15 @@ allowBuilds:
|
|
|
9
11
|
strictPeerDependencies: true
|
|
10
12
|
|
|
11
13
|
overrides:
|
|
12
|
-
'@changesets/cli@3.0.3>launch-editor': 2.14.2
|
|
13
|
-
axios@1.21.0>follow-redirects: 1.16.2
|
|
14
14
|
# The npm braces line has no published fixed release; use the maintained patched fork.
|
|
15
15
|
braces: npm:@zklogic/braces@3.0.7
|
|
16
|
-
dompurify: 3.4.
|
|
17
|
-
eslint-plugin-vue@10.10.0>postcss-selector-parser: 7.1.6
|
|
16
|
+
dompurify: ^3.4.18
|
|
18
17
|
fast-uri: 3.1.9
|
|
19
18
|
glob: 14.0.2
|
|
20
19
|
js-yaml: 4.3.2
|
|
21
|
-
jsdom@30.1.3>undici: 8.12.2
|
|
22
20
|
launch-editor@2.14.2>shell-quote: 1.11.0
|
|
23
21
|
# Reviewed renderer API/security probes cover this intentional parent-range exception.
|
|
24
22
|
micromark-extension-math@3.1.0>katex: 0.18.2
|
|
25
23
|
minimatch: 11.0.1
|
|
26
|
-
# Tiptap 3.32.x expects a single ProseMirror model runtime across extensions.
|
|
27
|
-
prosemirror-model: 1.25.12
|
|
28
24
|
source-map-js: 1.2.2
|
|
29
25
|
unplugin-element-plus>@nuxt/kit: 4.4.2
|
|
30
|
-
vitepress>@vue/shared: 3.5.44
|
|
31
|
-
vitepress>vue: 3.5.44
|
|
32
|
-
|
|
33
|
-
vitepress@2.0.0-alpha.20>@vitejs/plugin-vue: 6.0.10
|
|
34
|
-
vitepress@2.0.0-alpha.20>vite: 8.3.5
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"scaffoldVersion": "3.0.
|
|
4
|
-
"agentContractsVersion": "3.0.
|
|
3
|
+
"scaffoldVersion": "3.0.6",
|
|
4
|
+
"agentContractsVersion": "3.0.6",
|
|
5
5
|
"variant": "clean",
|
|
6
6
|
"examplesPresent": false,
|
|
7
7
|
"appliedMigrations": [],
|
|
@@ -11,23 +11,23 @@
|
|
|
11
11
|
},
|
|
12
12
|
"componentContractSync": {
|
|
13
13
|
"schemaVersion": 1,
|
|
14
|
-
"sourceVersion": "3.0.
|
|
14
|
+
"sourceVersion": "3.0.6",
|
|
15
15
|
"packageVersions": {
|
|
16
|
-
"@origen-ui/dialog": "3.0.
|
|
17
|
-
"@origen-ui/editor": "3.0.
|
|
18
|
-
"@origen-ui/form": "3.0.
|
|
19
|
-
"@origen-ui/form-table": "3.0.
|
|
20
|
-
"@origen-ui/http": "3.0.
|
|
21
|
-
"@origen-ui/icons": "3.0.
|
|
22
|
-
"@origen-ui/permission": "3.0.
|
|
23
|
-
"@origen-ui/router": "3.0.
|
|
24
|
-
"@origen-ui/search": "3.0.
|
|
25
|
-
"@origen-ui/shared": "3.0.
|
|
26
|
-
"@origen-ui/table": "3.0.
|
|
27
|
-
"@origen-ui/table-search": "3.0.
|
|
28
|
-
"@origen-ui/tabs": "3.0.
|
|
29
|
-
"@origen-ui/upload": "3.0.
|
|
30
|
-
"origen-ui": "3.0.
|
|
16
|
+
"@origen-ui/dialog": "3.0.6",
|
|
17
|
+
"@origen-ui/editor": "3.0.6",
|
|
18
|
+
"@origen-ui/form": "3.0.6",
|
|
19
|
+
"@origen-ui/form-table": "3.0.6",
|
|
20
|
+
"@origen-ui/http": "3.0.6",
|
|
21
|
+
"@origen-ui/icons": "3.0.6",
|
|
22
|
+
"@origen-ui/permission": "3.0.6",
|
|
23
|
+
"@origen-ui/router": "3.0.6",
|
|
24
|
+
"@origen-ui/search": "3.0.6",
|
|
25
|
+
"@origen-ui/shared": "3.0.6",
|
|
26
|
+
"@origen-ui/table": "3.0.6",
|
|
27
|
+
"@origen-ui/table-search": "3.0.6",
|
|
28
|
+
"@origen-ui/tabs": "3.0.6",
|
|
29
|
+
"@origen-ui/upload": "3.0.6",
|
|
30
|
+
"origen-ui": "3.0.6"
|
|
31
31
|
},
|
|
32
32
|
"managedFiles": {
|
|
33
33
|
".agents/skills/admin-component-usage/SKILL.md": "400cadb1074806bfd89b7cf4a27f3f8b203b8cc1a890a9402003be1abeaddc07",
|
|
@@ -152,13 +152,13 @@
|
|
|
152
152
|
"AGENTS.md": "8278b5677271b4c5085524fdfbeadadba14ef4b852e444b693e3bc4b0afa113b",
|
|
153
153
|
"CLAUDE.md": "b1b7ba3336b6dce2ac9eee92bfc6d352dbcb3d918bc82be73e7381aac7f891ba",
|
|
154
154
|
"component-catalog.json": "ab0f963b77175e2695f2954112c533b4a6a3328387491095be559593003c6b3a",
|
|
155
|
-
"component-catalog.v2.json": "
|
|
155
|
+
"component-catalog.v2.json": "da242b26abcead355c6f1058138f543488d6ccd439f75f500d50a1b6afce18d2",
|
|
156
156
|
"docs/components/dialog.md": "9fd66535f17c5acbd1495e968500c84e4ec4dc5b2a2c0bd219dd368a073476c9",
|
|
157
157
|
"docs/components/editor-viewer.md": "50d6d0f38b921373d2c2264e057d0fddceb723f24cde41f86a359124184553cb",
|
|
158
158
|
"docs/components/editor.md": "78e8fe17b1c46e0ae4c9d397f0c49060fe76967a7e76a4ec3653d22aea7034ed",
|
|
159
159
|
"docs/components/form-table.md": "579d2233cf1c11a73cec1c30c6a10f7d8111375faf77099796bac7194708b85c",
|
|
160
160
|
"docs/components/form.md": "c5fa42c6930a195906b63ac34de3b4e8e5df1f2d2cd976a7e16fd72f735f62fc",
|
|
161
|
-
"docs/components/index.md": "
|
|
161
|
+
"docs/components/index.md": "7003469db491569fcedafcb6d4143a711f2abd9e37466f600985630fda34a21d",
|
|
162
162
|
"docs/components/router.md": "890f9dca3326cd37c46c56250972e2269c8eb395ba8fcd126aeda1d87ba32ffa",
|
|
163
163
|
"docs/components/search.md": "3dd8290b0d5fc545dd0fa3380e841f04a3f80b0778b9477f268b7500d5279e5d",
|
|
164
164
|
"docs/components/svg-icon.md": "3ab0ab4993f7446163926357fe6c8a057d5397f63a51badf51838550acdd137c",
|
|
@@ -6,6 +6,7 @@ import { createOrigenUi } from 'origen-ui'
|
|
|
6
6
|
import { permission } from '@/app/authorization/permission'
|
|
7
7
|
import { appRuntimeConfig } from '@/app/config/runtimeConfig'
|
|
8
8
|
import { createAdminI18nComposer, createAdminLanguageOptions } from '@/locales'
|
|
9
|
+
import './elementPlusApiStyles'
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* 创建 Origen UI 插件,接入 Admin 的权限检查器、语言选项与各组件运行时默认配置。
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { useBreadcrumbs } from '@origen-ui/router'
|
|
3
3
|
import { RouterBreadcrumb } from '@origen-ui/router/element-plus'
|
|
4
4
|
import { ElBreadcrumbItem } from 'element-plus'
|
|
5
|
+
import 'element-plus/es/components/breadcrumb/style/index'
|
|
5
6
|
|
|
6
7
|
defineOptions({ name: 'BreadcrumbBar' })
|
|
7
8
|
|
|
@@ -4,6 +4,7 @@ import { RouterMenu } from '@origen-ui/router/element-plus'
|
|
|
4
4
|
import { useI18n } from 'vue-i18n'
|
|
5
5
|
import { resolveAdminIcon } from '@/app/ui/iconCatalog'
|
|
6
6
|
import { useSidebarStore } from '@/store/sidebar'
|
|
7
|
+
import 'element-plus/es/components/menu/style/index'
|
|
7
8
|
|
|
8
9
|
defineOptions({ name: 'SideMenu' })
|
|
9
10
|
|
|
@@ -37,6 +37,10 @@ export async function installAdminMockBackend(page: Page): Promise<AdminMockBack
|
|
|
37
37
|
await page.route('**/api/**', async (route) => {
|
|
38
38
|
const request = route.request()
|
|
39
39
|
const url = new URL(request.url())
|
|
40
|
+
if (!url.pathname.startsWith('/api/')) {
|
|
41
|
+
await route.continue()
|
|
42
|
+
return
|
|
43
|
+
}
|
|
40
44
|
const failureIndex = failures.findIndex((item) =>
|
|
41
45
|
matchesPath(item.path, url.pathname) && (!item.method || item.method.toUpperCase() === request.method().toUpperCase()),
|
|
42
46
|
)
|
|
@@ -5,12 +5,11 @@ import { fileURLToPath } from 'node:url'
|
|
|
5
5
|
import { createSvgIconsPlugin } from '@origen-ui/icons/vite'
|
|
6
6
|
import vue from '@vitejs/plugin-vue'
|
|
7
7
|
import vueJsx from '@vitejs/plugin-vue-jsx'
|
|
8
|
-
import ElementPlus from 'unplugin-element-plus/vite'
|
|
9
8
|
import { loadEnv } from 'vite'
|
|
10
9
|
import { defineConfig } from 'vitest/config'
|
|
10
|
+
import { createAdminElementPlusPlugin } from './element-plus-plugin.js'
|
|
11
11
|
import { createMockApiPlugin } from './scripts/mock-api.js'
|
|
12
|
-
//
|
|
13
|
-
// with the application source as ./vite.build-policy.ts.
|
|
12
|
+
// 此文件会复制到脚手架项目根目录;构建策略会随应用源码复制为 ./vite.build-policy.ts。
|
|
14
13
|
import {
|
|
15
14
|
createAdminBuildOptions,
|
|
16
15
|
createAdminBuildPlugins,
|
|
@@ -18,6 +17,20 @@ import {
|
|
|
18
17
|
} from './vite.build-policy.js'
|
|
19
18
|
|
|
20
19
|
const elementPlusPackageRoot = dirname(dirname(fileURLToPath(import.meta.resolve('element-plus'))))
|
|
20
|
+
const origenUiSubpathIncludes = [
|
|
21
|
+
'@origen-ui/dialog/locale',
|
|
22
|
+
'@origen-ui/editor/locale',
|
|
23
|
+
'@origen-ui/form-table/locale',
|
|
24
|
+
'@origen-ui/form/core',
|
|
25
|
+
'@origen-ui/form/locale',
|
|
26
|
+
'@origen-ui/permission/codes',
|
|
27
|
+
'@origen-ui/router/element-plus',
|
|
28
|
+
'@origen-ui/router/tabs',
|
|
29
|
+
'@origen-ui/search/locale',
|
|
30
|
+
'@origen-ui/table/locale',
|
|
31
|
+
'@origen-ui/tabs/locale',
|
|
32
|
+
'@origen-ui/upload/locale',
|
|
33
|
+
]
|
|
21
34
|
const elementPlusStyleIncludes = readdirSync(join(elementPlusPackageRoot, 'es/components'), {
|
|
22
35
|
withFileTypes: true,
|
|
23
36
|
})
|
|
@@ -27,6 +40,11 @@ const elementPlusStyleIncludes = readdirSync(join(elementPlusPackageRoot, 'es/co
|
|
|
27
40
|
existsSync(join(elementPlusPackageRoot, 'es/components', entry.name, 'style/index.mjs')),
|
|
28
41
|
)
|
|
29
42
|
.map((entry) => `element-plus/es/components/${entry.name}/style/index`)
|
|
43
|
+
// 显式补充子路径和插件生成的样式入口。
|
|
44
|
+
const optimizeDepsIncludes = [
|
|
45
|
+
...origenUiSubpathIncludes,
|
|
46
|
+
...elementPlusStyleIncludes,
|
|
47
|
+
]
|
|
30
48
|
|
|
31
49
|
export default defineConfig(({ command, mode }) => {
|
|
32
50
|
const loadedEnv = loadEnv(mode, process.cwd(), '')
|
|
@@ -50,7 +68,7 @@ export default defineConfig(({ command, mode }) => {
|
|
|
50
68
|
}),
|
|
51
69
|
...createAdminBuildPlugins(),
|
|
52
70
|
...mockPlugins,
|
|
53
|
-
|
|
71
|
+
createAdminElementPlusPlugin(),
|
|
54
72
|
],
|
|
55
73
|
resolve: {
|
|
56
74
|
alias: {
|
|
@@ -58,22 +76,9 @@ export default defineConfig(({ command, mode }) => {
|
|
|
58
76
|
},
|
|
59
77
|
},
|
|
60
78
|
optimizeDeps: {
|
|
61
|
-
//
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
include: [
|
|
65
|
-
'@element-plus/icons-vue',
|
|
66
|
-
'@origen-ui/icons',
|
|
67
|
-
'@vueuse/core',
|
|
68
|
-
'axios',
|
|
69
|
-
'element-plus',
|
|
70
|
-
'pinia',
|
|
71
|
-
'sortablejs',
|
|
72
|
-
'vue',
|
|
73
|
-
'vue-i18n',
|
|
74
|
-
'vue-router',
|
|
75
|
-
...elementPlusStyleIncludes,
|
|
76
|
-
],
|
|
79
|
+
// 保留自动发现;include 会与扫描结果合并,补齐插件注入和样式入口。
|
|
80
|
+
noDiscovery: false,
|
|
81
|
+
include: optimizeDepsIncludes,
|
|
77
82
|
},
|
|
78
83
|
oxc: {
|
|
79
84
|
jsx: { runtime: 'automatic', importSource: 'vue' },
|
|
@@ -94,7 +99,7 @@ export default defineConfig(({ command, mode }) => {
|
|
|
94
99
|
build: createAdminBuildOptions(isDebugBuild),
|
|
95
100
|
test: {
|
|
96
101
|
environment: 'jsdom',
|
|
97
|
-
//
|
|
102
|
+
// 限制冷启动时的并行转换量,不调整单项测试的超时时间。
|
|
98
103
|
maxWorkers: 2,
|
|
99
104
|
include: ['tests/unit/**/*.spec.ts'],
|
|
100
105
|
exclude: ['tests/e2e/**', 'node_modules/**'],
|
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @origen-ui/admin
|
|
2
2
|
|
|
3
|
+
## 1.0.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Include Element Plus Loading, Message, and MessageBox styles in standalone Admin builds.
|
|
8
|
+
- Updated dependencies for linked package release 3.0.6, set the standalone scaffold's `minimumReleaseAge` to `0`, and pre-bundled the editor's `lowlight` interop dependencies for Vite development while preserving strict peer checks.
|
|
9
|
+
- @origen-ui/shared@3.0.6
|
|
10
|
+
- @origen-ui/icons@3.0.6
|
|
11
|
+
- @origen-ui/permission@3.0.6
|
|
12
|
+
- @origen-ui/http@3.0.6
|
|
13
|
+
- @origen-ui/dialog@3.0.6
|
|
14
|
+
- @origen-ui/editor@3.0.6
|
|
15
|
+
- @origen-ui/upload@3.0.6
|
|
16
|
+
- @origen-ui/search@3.0.6
|
|
17
|
+
- @origen-ui/table@3.0.6
|
|
18
|
+
- @origen-ui/tabs@3.0.6
|
|
19
|
+
- @origen-ui/router@3.0.6
|
|
20
|
+
- @origen-ui/form@3.0.6
|
|
21
|
+
- @origen-ui/form-table@3.0.6
|
|
22
|
+
- @origen-ui/table-search@3.0.6
|
|
23
|
+
- origen-ui@3.0.6
|
|
24
|
+
|
|
3
25
|
## 1.0.9
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -2021,20 +2021,20 @@
|
|
|
2021
2021
|
}
|
|
2022
2022
|
],
|
|
2023
2023
|
"packageVersions": {
|
|
2024
|
-
"@origen-ui/dialog": "3.0.
|
|
2025
|
-
"@origen-ui/editor": "3.0.
|
|
2026
|
-
"@origen-ui/form": "3.0.
|
|
2027
|
-
"@origen-ui/form-table": "3.0.
|
|
2028
|
-
"@origen-ui/http": "3.0.
|
|
2029
|
-
"@origen-ui/icons": "3.0.
|
|
2030
|
-
"@origen-ui/permission": "3.0.
|
|
2031
|
-
"@origen-ui/router": "3.0.
|
|
2032
|
-
"@origen-ui/search": "3.0.
|
|
2033
|
-
"@origen-ui/shared": "3.0.
|
|
2034
|
-
"@origen-ui/table": "3.0.
|
|
2035
|
-
"@origen-ui/table-search": "3.0.
|
|
2036
|
-
"@origen-ui/tabs": "3.0.
|
|
2037
|
-
"@origen-ui/upload": "3.0.
|
|
2038
|
-
"origen-ui": "3.0.
|
|
2024
|
+
"@origen-ui/dialog": "3.0.6",
|
|
2025
|
+
"@origen-ui/editor": "3.0.6",
|
|
2026
|
+
"@origen-ui/form": "3.0.6",
|
|
2027
|
+
"@origen-ui/form-table": "3.0.6",
|
|
2028
|
+
"@origen-ui/http": "3.0.6",
|
|
2029
|
+
"@origen-ui/icons": "3.0.6",
|
|
2030
|
+
"@origen-ui/permission": "3.0.6",
|
|
2031
|
+
"@origen-ui/router": "3.0.6",
|
|
2032
|
+
"@origen-ui/search": "3.0.6",
|
|
2033
|
+
"@origen-ui/shared": "3.0.6",
|
|
2034
|
+
"@origen-ui/table": "3.0.6",
|
|
2035
|
+
"@origen-ui/table-search": "3.0.6",
|
|
2036
|
+
"@origen-ui/tabs": "3.0.6",
|
|
2037
|
+
"@origen-ui/upload": "3.0.6",
|
|
2038
|
+
"origen-ui": "3.0.6"
|
|
2039
2039
|
}
|
|
2040
2040
|
}
|
|
@@ -13,25 +13,25 @@ description: 按任务场景检索 origen-ui 的公开 Vue 组件、调用参数
|
|
|
13
13
|
|
|
14
14
|
| 组件 | 场景、用途与检索词 | 包 | 公开导入入口 | 参数 / API 摘要 | 使用约束 | 状态 / 包版本 | API 与示例 |
|
|
15
15
|
| ----------------- | ----------------------------------------------------- | ----------------------- | ------------------------------ | ------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------ |
|
|
16
|
-
| OgTable | 数据列表、远程 CRUD、分页、排序、权限、编辑、虚拟滚动 | @origen-ui/table | @origen-ui/table | OgTableProps:rowKey(按行级能力要求)、ogColumns、ogDataSource、ogConfig | 实例身份自动管理;仅远程纯展示且无行级能力时可省略 rowKey。 | 当前 · 3.0.
|
|
17
|
-
| OgTableLocal | 本地数据、草稿行、表单明细、小规模客户端编辑 | @origen-ui/table | @origen-ui/table | OgTableLocalProps:modelValue、rowKey、ogColumns | 父组件持有行数组;本地行操作需要 rowKey;不接收远程 ogDataSource。 | 当前 · 3.0.
|
|
18
|
-
| OgTableWithSearch | 表格加条件搜索、查询提交、搜索失败恢复 | @origen-ui/table-search | @origen-ui/table-search | OgTableWithSearchProps:OgTable 属性及 ogConfig.search.fields | 搜索字段使用 ogControl.ogType;其余表格请求、列和样式契约见 OgTable。 | 当前 · 3.0.
|
|
19
|
-
| OgSearch | 独立查询表单、筛选字段、关键字搜索、校验与重置 | @origen-ui/search | @origen-ui/search | OgSearchProps:modelValue、ogKeyword、ogConfig、search 事件 | 应用负责持有查询状态并处理提交后的请求;自定义控件需提供有效的 ogType。 | 当前 · 3.0.
|
|
20
|
-
| OgForm | Schema 表单、字段联动、校验、只读与动态配置 | @origen-ui/form | @origen-ui/form | OgFormProps:modelValue、ogSchema、ogColumns | 应用持有业务数据、提交与请求职责;字段渲染遵循表单上下文和公开 renderer 配置。 | 当前 · 3.0.
|
|
21
|
-
| FieldRenderer | 表单字段渲染、注册 renderer、扩展字段控件 | @origen-ui/form | @origen-ui/form | `ogField`(必填)、`ogReadonly`(默认 false)、`ogA11y` 可选。 | 仅在 OgForm 上下文中使用;一般页面优先通过 schema 配置字段。 | 当前 · 3.0.
|
|
22
|
-
| OgFormItem | 表单项布局、标签、校验与插槽组合 | @origen-ui/form | @origen-ui/form | `ogName`(必填)、`ogField`、`ogReadonly`(默认 false)、`ogLabelTip`;支持 FormItem 属性。 | 仅在 OgForm 上下文中使用;`ogName` 指定字段,错误与表单状态由 OgForm 控制。 | 当前 · 3.0.
|
|
23
|
-
| OgFormTable | 表单内可编辑明细表、网格编辑、单元格 schema | @origen-ui/form-table | @origen-ui/form-table | OgFormTableProps:modelValue、ogColumns、ogConfig | 通过公开表单字段适配器接入 OgForm;编辑和提交遵循表格与表单各自的数据所有权。 | 当前 · 3.0.
|
|
24
|
-
| OgUpload | 受控文件值、上传进度、失败恢复与文件列表 | @origen-ui/upload | @origen-ui/upload | OgUploadPropsDocumentation:modelValue、上传配置、值编解码与事件 | 应用提供上传适配器并定义业务文件值;组件不决定业务请求地址或权限。 | 当前 · 3.0.
|
|
25
|
-
| SvgIcon | SVG 图标、图标尺寸与颜色、应用本地资源 | @origen-ui/icons | @origen-ui/icons | SvgIconProps:图标标识、尺寸、颜色及 SVG 属性 | 图标资源按项目图标注册和构建约定提供;完整样式入口见样式与主题文档。 | 当前 · 3.0.
|
|
26
|
-
| OgEditor | 富文本编辑、媒体上传、HTML 内容处理 | @origen-ui/editor | @origen-ui/editor | OgEditorProps:受控内容、编辑能力配置、上传与事件 | 应用负责配置媒体上传适配器及业务内容边界;展示已有内容时选用 OgEditorViewer。 | 当前 · 3.0.
|
|
27
|
-
| OgEditorViewer | 富文本只读展示、空态与媒体布局 | @origen-ui/editor | @origen-ui/editor | OgEditorViewerProps:待展示内容及查看器配置 | 只读展示使用该组件;内容安全处理按组件详页和应用内容边界配置。 | 当前 · 3.0.
|
|
28
|
-
| OgDialog | 对话框或抽屉、确认、编辑、关闭保护 | @origen-ui/dialog | @origen-ui/dialog | OgDialogProps:受控显示、展示配置、确认与关闭回调 | 应用决定业务提交和异步操作;命令式弹窗还需安装 manager 并挂载 OgDialogHost。 | 当前 · 3.0.
|
|
29
|
-
| OgDialogHost | 命令式弹窗宿主、DialogManager 挂载 | @origen-ui/dialog | @origen-ui/dialog | manager 可选;默认使用应用注入的 manager。 | 在应用根级挂载;使用前安装 createOgDialog(),或显式传入 DialogManager。 | 当前 · 3.0.
|
|
30
|
-
| OgTabs | 工作区标签、受控导航、关闭守卫与标签操作 | @origen-ui/tabs | @origen-ui/tabs | OgTabsProps:ogItems、modelValue、ogBeforeAction、actionRequest | 父组件决定是否接受标签和激活项变更;路由工作区集成可使用 RouterTabs。 | 当前 · 3.0.
|
|
31
|
-
| RouterViewHost | 路由视图、动态路由组件挂载、缓存视图 | @origen-ui/router | @origen-ui/router | cacheMax 可选,默认 10;限制 KeepAlive 缓存数量。 | 依赖 Vue Router 和应用提供的 router adapter;路由数据及后端 DTO 映射由应用负责。 | 当前 · 3.0.
|
|
32
|
-
| RouterBreadcrumb | Element Plus 面包屑、当前路由导航层级 | @origen-ui/router | @origen-ui/router/element-plus | RouterBreadcrumbProps:面包屑显示和 Element Plus 属性 | 需使用 Element Plus 预设子路径;菜单和路由元数据由 router adapter 提供。 | 当前 · 3.0.
|
|
33
|
-
| RouterMenu | Element Plus 菜单、路由菜单选择与导航 | @origen-ui/router | @origen-ui/router/element-plus | RouterMenuProps:菜单显示、路由选择及 Element Plus 属性 | 需使用 Element Plus 预设子路径;应用仍负责菜单 API、授权和业务 DTO 转换。 | 当前 · 3.0.
|
|
34
|
-
| RouterTabs | 路由工作区标签、页面缓存与路由联动 | @origen-ui/router | @origen-ui/router/tabs | RouterTabsProps:标签外观和导航展示配置 | 需使用 tabs 子路径并满足其 peer dependency;应用负责路由和工作区状态策略。 | 当前 · 3.0.
|
|
16
|
+
| OgTable | 数据列表、远程 CRUD、分页、排序、权限、编辑、虚拟滚动 | @origen-ui/table | @origen-ui/table | OgTableProps:rowKey(按行级能力要求)、ogColumns、ogDataSource、ogConfig | 实例身份自动管理;仅远程纯展示且无行级能力时可省略 rowKey。 | 当前 · 3.0.6 | [API](./table.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
17
|
+
| OgTableLocal | 本地数据、草稿行、表单明细、小规模客户端编辑 | @origen-ui/table | @origen-ui/table | OgTableLocalProps:modelValue、rowKey、ogColumns | 父组件持有行数组;本地行操作需要 rowKey;不接收远程 ogDataSource。 | 当前 · 3.0.6 | [API](./table-local.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
18
|
+
| OgTableWithSearch | 表格加条件搜索、查询提交、搜索失败恢复 | @origen-ui/table-search | @origen-ui/table-search | OgTableWithSearchProps:OgTable 属性及 ogConfig.search.fields | 搜索字段使用 ogControl.ogType;其余表格请求、列和样式契约见 OgTable。 | 当前 · 3.0.6 | [API](./table-with-search.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
19
|
+
| OgSearch | 独立查询表单、筛选字段、关键字搜索、校验与重置 | @origen-ui/search | @origen-ui/search | OgSearchProps:modelValue、ogKeyword、ogConfig、search 事件 | 应用负责持有查询状态并处理提交后的请求;自定义控件需提供有效的 ogType。 | 当前 · 3.0.6 | [API](./search.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
20
|
+
| OgForm | Schema 表单、字段联动、校验、只读与动态配置 | @origen-ui/form | @origen-ui/form | OgFormProps:modelValue、ogSchema、ogColumns | 应用持有业务数据、提交与请求职责;字段渲染遵循表单上下文和公开 renderer 配置。 | 当前 · 3.0.6 | [API](./form.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
21
|
+
| FieldRenderer | 表单字段渲染、注册 renderer、扩展字段控件 | @origen-ui/form | @origen-ui/form | `ogField`(必填)、`ogReadonly`(默认 false)、`ogA11y` 可选。 | 仅在 OgForm 上下文中使用;一般页面优先通过 schema 配置字段。 | 当前 · 3.0.6 | [API](./form.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
22
|
+
| OgFormItem | 表单项布局、标签、校验与插槽组合 | @origen-ui/form | @origen-ui/form | `ogName`(必填)、`ogField`、`ogReadonly`(默认 false)、`ogLabelTip`;支持 FormItem 属性。 | 仅在 OgForm 上下文中使用;`ogName` 指定字段,错误与表单状态由 OgForm 控制。 | 当前 · 3.0.6 | [API](./form.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
23
|
+
| OgFormTable | 表单内可编辑明细表、网格编辑、单元格 schema | @origen-ui/form-table | @origen-ui/form-table | OgFormTableProps:modelValue、ogColumns、ogConfig | 通过公开表单字段适配器接入 OgForm;编辑和提交遵循表格与表单各自的数据所有权。 | 当前 · 3.0.6 | [API](./form-table.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
24
|
+
| OgUpload | 受控文件值、上传进度、失败恢复与文件列表 | @origen-ui/upload | @origen-ui/upload | OgUploadPropsDocumentation:modelValue、上传配置、值编解码与事件 | 应用提供上传适配器并定义业务文件值;组件不决定业务请求地址或权限。 | 当前 · 3.0.6 | [API](./upload.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
25
|
+
| SvgIcon | SVG 图标、图标尺寸与颜色、应用本地资源 | @origen-ui/icons | @origen-ui/icons | SvgIconProps:图标标识、尺寸、颜色及 SVG 属性 | 图标资源按项目图标注册和构建约定提供;完整样式入口见样式与主题文档。 | 当前 · 3.0.6 | [API](./svg-icon.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
26
|
+
| OgEditor | 富文本编辑、媒体上传、HTML 内容处理 | @origen-ui/editor | @origen-ui/editor | OgEditorProps:受控内容、编辑能力配置、上传与事件 | 应用负责配置媒体上传适配器及业务内容边界;展示已有内容时选用 OgEditorViewer。 | 当前 · 3.0.6 | [API](./editor.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
27
|
+
| OgEditorViewer | 富文本只读展示、空态与媒体布局 | @origen-ui/editor | @origen-ui/editor | OgEditorViewerProps:待展示内容及查看器配置 | 只读展示使用该组件;内容安全处理按组件详页和应用内容边界配置。 | 当前 · 3.0.6 | [API](./editor-viewer.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
28
|
+
| OgDialog | 对话框或抽屉、确认、编辑、关闭保护 | @origen-ui/dialog | @origen-ui/dialog | OgDialogProps:受控显示、展示配置、确认与关闭回调 | 应用决定业务提交和异步操作;命令式弹窗还需安装 manager 并挂载 OgDialogHost。 | 当前 · 3.0.6 | [API](./dialog.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
29
|
+
| OgDialogHost | 命令式弹窗宿主、DialogManager 挂载 | @origen-ui/dialog | @origen-ui/dialog | manager 可选;默认使用应用注入的 manager。 | 在应用根级挂载;使用前安装 createOgDialog(),或显式传入 DialogManager。 | 当前 · 3.0.6 | [API](./dialog.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
30
|
+
| OgTabs | 工作区标签、受控导航、关闭守卫与标签操作 | @origen-ui/tabs | @origen-ui/tabs | OgTabsProps:ogItems、modelValue、ogBeforeAction、actionRequest | 父组件决定是否接受标签和激活项变更;路由工作区集成可使用 RouterTabs。 | 当前 · 3.0.6 | [API](./tabs.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
31
|
+
| RouterViewHost | 路由视图、动态路由组件挂载、缓存视图 | @origen-ui/router | @origen-ui/router | cacheMax 可选,默认 10;限制 KeepAlive 缓存数量。 | 依赖 Vue Router 和应用提供的 router adapter;路由数据及后端 DTO 映射由应用负责。 | 当前 · 3.0.6 | [API](./router.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
32
|
+
| RouterBreadcrumb | Element Plus 面包屑、当前路由导航层级 | @origen-ui/router | @origen-ui/router/element-plus | RouterBreadcrumbProps:面包屑显示和 Element Plus 属性 | 需使用 Element Plus 预设子路径;菜单和路由元数据由 router adapter 提供。 | 当前 · 3.0.6 | [API](./router.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
33
|
+
| RouterMenu | Element Plus 菜单、路由菜单选择与导航 | @origen-ui/router | @origen-ui/router/element-plus | RouterMenuProps:菜单显示、路由选择及 Element Plus 属性 | 需使用 Element Plus 预设子路径;应用仍负责菜单 API、授权和业务 DTO 转换。 | 当前 · 3.0.6 | [API](./router.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
34
|
+
| RouterTabs | 路由工作区标签、页面缓存与路由联动 | @origen-ui/router | @origen-ui/router/tabs | RouterTabsProps:标签外观和导航展示配置 | 需使用 tabs 子路径并满足其 peer dependency;应用负责路由和工作区状态策略。 | 当前 · 3.0.6 | [API](./router.md#api) · [示例](../../.agents/skills/admin-component-usage/references/component-directory.md) |
|
|
35
35
|
|
|
36
36
|
<!-- component-catalog:end -->
|
|
37
37
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import ElementPlus from 'unplugin-element-plus/vite'
|
|
2
|
+
|
|
3
|
+
export function createAdminElementPlusPlugin() {
|
|
4
|
+
return ElementPlus({
|
|
5
|
+
useSource: true,
|
|
6
|
+
include: [
|
|
7
|
+
'**/*.vue',
|
|
8
|
+
'**/*.ts',
|
|
9
|
+
'**/*.js',
|
|
10
|
+
'**/*.tsx',
|
|
11
|
+
'**/*.jsx',
|
|
12
|
+
'**/*.vue?vue&type=script*',
|
|
13
|
+
/\.vue\.[tj]sx?\?vue/,
|
|
14
|
+
/\.mjs(?:$|\?)/,
|
|
15
|
+
],
|
|
16
|
+
exclude: [
|
|
17
|
+
/[/\\]node_modules[/\\](?!\.pnpm[/\\])(?!@origen-ui[/\\])/,
|
|
18
|
+
/[/\\]\.git[/\\]/,
|
|
19
|
+
/[/\\]\.nuxt[/\\]/,
|
|
20
|
+
],
|
|
21
|
+
})
|
|
22
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@origen-ui/admin-scaffold",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.6",
|
|
5
5
|
"private": true,
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=22.22.2"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"examples:remove": "node scripts/remove-examples.mjs"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@element-plus/icons-vue": "2.3.2",
|
|
35
|
+
"@element-plus/icons-vue": "^2.3.2",
|
|
36
36
|
"@noble/ciphers": "2.4.0",
|
|
37
37
|
"@origen-ui/dialog": "latest",
|
|
38
38
|
"@origen-ui/editor": "latest",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"@origen-ui/upload": "latest",
|
|
51
51
|
"@vue/devtools-api": "8.2.1",
|
|
52
52
|
"@vueuse/core": "15.0.0",
|
|
53
|
-
"axios": "1.21.
|
|
54
|
-
"element-plus": "2.14.8",
|
|
53
|
+
"axios": "^1.21.1",
|
|
54
|
+
"element-plus": "^2.14.8",
|
|
55
55
|
"origen-ui": "latest",
|
|
56
56
|
"pinia": "4.1.0",
|
|
57
57
|
"sortablejs": "1.15.7",
|
|
58
|
-
"vue": "3.5.
|
|
58
|
+
"vue": "^3.5.45",
|
|
59
59
|
"vue-i18n": "11.4.16",
|
|
60
|
-
"vue-router": "5.5.1"
|
|
60
|
+
"vue-router": "^5.5.1"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@antfu/eslint-config": "10.0.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@vitejs/plugin-vue": "6.0.10",
|
|
68
68
|
"@vitejs/plugin-vue-jsx": "5.1.6",
|
|
69
69
|
"@vitest/coverage-v8": "5.0.5",
|
|
70
|
-
"@vue/compiler-sfc": "3.5.
|
|
70
|
+
"@vue/compiler-sfc": "3.5.45",
|
|
71
71
|
"@vue/test-utils": "2.5.1",
|
|
72
72
|
"eslint": "10.14.0",
|
|
73
73
|
"jsdom": "30.1.3",
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
packages: []
|
|
2
|
+
minimumReleaseAge: 0
|
|
3
|
+
minimumReleaseAgeStrict: true
|
|
2
4
|
|
|
3
5
|
allowBuilds:
|
|
4
6
|
'@parcel/watcher': true
|
|
@@ -9,26 +11,15 @@ allowBuilds:
|
|
|
9
11
|
strictPeerDependencies: true
|
|
10
12
|
|
|
11
13
|
overrides:
|
|
12
|
-
'@changesets/cli@3.0.3>launch-editor': 2.14.2
|
|
13
|
-
axios@1.21.0>follow-redirects: 1.16.2
|
|
14
14
|
# The npm braces line has no published fixed release; use the maintained patched fork.
|
|
15
15
|
braces: npm:@zklogic/braces@3.0.7
|
|
16
|
-
dompurify: 3.4.
|
|
17
|
-
eslint-plugin-vue@10.10.0>postcss-selector-parser: 7.1.6
|
|
16
|
+
dompurify: ^3.4.18
|
|
18
17
|
fast-uri: 3.1.9
|
|
19
18
|
glob: 14.0.2
|
|
20
19
|
js-yaml: 4.3.2
|
|
21
|
-
jsdom@30.1.3>undici: 8.12.2
|
|
22
20
|
launch-editor@2.14.2>shell-quote: 1.11.0
|
|
23
21
|
# Reviewed renderer API/security probes cover this intentional parent-range exception.
|
|
24
22
|
micromark-extension-math@3.1.0>katex: 0.18.2
|
|
25
23
|
minimatch: 11.0.1
|
|
26
|
-
# Tiptap 3.32.x expects a single ProseMirror model runtime across extensions.
|
|
27
|
-
prosemirror-model: 1.25.12
|
|
28
24
|
source-map-js: 1.2.2
|
|
29
25
|
unplugin-element-plus>@nuxt/kit: 4.4.2
|
|
30
|
-
vitepress>@vue/shared: 3.5.44
|
|
31
|
-
vitepress>vue: 3.5.44
|
|
32
|
-
|
|
33
|
-
vitepress@2.0.0-alpha.20>@vitejs/plugin-vue: 6.0.10
|
|
34
|
-
vitepress@2.0.0-alpha.20>vite: 8.3.5
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"scaffoldVersion": "3.0.
|
|
4
|
-
"agentContractsVersion": "3.0.
|
|
3
|
+
"scaffoldVersion": "3.0.6",
|
|
4
|
+
"agentContractsVersion": "3.0.6",
|
|
5
5
|
"variant": "examples",
|
|
6
6
|
"examplesPresent": true,
|
|
7
7
|
"appliedMigrations": [],
|
|
@@ -11,23 +11,23 @@
|
|
|
11
11
|
},
|
|
12
12
|
"componentContractSync": {
|
|
13
13
|
"schemaVersion": 1,
|
|
14
|
-
"sourceVersion": "3.0.
|
|
14
|
+
"sourceVersion": "3.0.6",
|
|
15
15
|
"packageVersions": {
|
|
16
|
-
"@origen-ui/dialog": "3.0.
|
|
17
|
-
"@origen-ui/editor": "3.0.
|
|
18
|
-
"@origen-ui/form": "3.0.
|
|
19
|
-
"@origen-ui/form-table": "3.0.
|
|
20
|
-
"@origen-ui/http": "3.0.
|
|
21
|
-
"@origen-ui/icons": "3.0.
|
|
22
|
-
"@origen-ui/permission": "3.0.
|
|
23
|
-
"@origen-ui/router": "3.0.
|
|
24
|
-
"@origen-ui/search": "3.0.
|
|
25
|
-
"@origen-ui/shared": "3.0.
|
|
26
|
-
"@origen-ui/table": "3.0.
|
|
27
|
-
"@origen-ui/table-search": "3.0.
|
|
28
|
-
"@origen-ui/tabs": "3.0.
|
|
29
|
-
"@origen-ui/upload": "3.0.
|
|
30
|
-
"origen-ui": "3.0.
|
|
16
|
+
"@origen-ui/dialog": "3.0.6",
|
|
17
|
+
"@origen-ui/editor": "3.0.6",
|
|
18
|
+
"@origen-ui/form": "3.0.6",
|
|
19
|
+
"@origen-ui/form-table": "3.0.6",
|
|
20
|
+
"@origen-ui/http": "3.0.6",
|
|
21
|
+
"@origen-ui/icons": "3.0.6",
|
|
22
|
+
"@origen-ui/permission": "3.0.6",
|
|
23
|
+
"@origen-ui/router": "3.0.6",
|
|
24
|
+
"@origen-ui/search": "3.0.6",
|
|
25
|
+
"@origen-ui/shared": "3.0.6",
|
|
26
|
+
"@origen-ui/table": "3.0.6",
|
|
27
|
+
"@origen-ui/table-search": "3.0.6",
|
|
28
|
+
"@origen-ui/tabs": "3.0.6",
|
|
29
|
+
"@origen-ui/upload": "3.0.6",
|
|
30
|
+
"origen-ui": "3.0.6"
|
|
31
31
|
},
|
|
32
32
|
"managedFiles": {
|
|
33
33
|
".agents/skills/admin-component-usage/SKILL.md": "400cadb1074806bfd89b7cf4a27f3f8b203b8cc1a890a9402003be1abeaddc07",
|
|
@@ -152,13 +152,13 @@
|
|
|
152
152
|
"AGENTS.md": "8278b5677271b4c5085524fdfbeadadba14ef4b852e444b693e3bc4b0afa113b",
|
|
153
153
|
"CLAUDE.md": "b1b7ba3336b6dce2ac9eee92bfc6d352dbcb3d918bc82be73e7381aac7f891ba",
|
|
154
154
|
"component-catalog.json": "ab0f963b77175e2695f2954112c533b4a6a3328387491095be559593003c6b3a",
|
|
155
|
-
"component-catalog.v2.json": "
|
|
155
|
+
"component-catalog.v2.json": "da242b26abcead355c6f1058138f543488d6ccd439f75f500d50a1b6afce18d2",
|
|
156
156
|
"docs/components/dialog.md": "9fd66535f17c5acbd1495e968500c84e4ec4dc5b2a2c0bd219dd368a073476c9",
|
|
157
157
|
"docs/components/editor-viewer.md": "50d6d0f38b921373d2c2264e057d0fddceb723f24cde41f86a359124184553cb",
|
|
158
158
|
"docs/components/editor.md": "78e8fe17b1c46e0ae4c9d397f0c49060fe76967a7e76a4ec3653d22aea7034ed",
|
|
159
159
|
"docs/components/form-table.md": "579d2233cf1c11a73cec1c30c6a10f7d8111375faf77099796bac7194708b85c",
|
|
160
160
|
"docs/components/form.md": "c5fa42c6930a195906b63ac34de3b4e8e5df1f2d2cd976a7e16fd72f735f62fc",
|
|
161
|
-
"docs/components/index.md": "
|
|
161
|
+
"docs/components/index.md": "7003469db491569fcedafcb6d4143a711f2abd9e37466f600985630fda34a21d",
|
|
162
162
|
"docs/components/router.md": "890f9dca3326cd37c46c56250972e2269c8eb395ba8fcd126aeda1d87ba32ffa",
|
|
163
163
|
"docs/components/search.md": "3dd8290b0d5fc545dd0fa3380e841f04a3f80b0778b9477f268b7500d5279e5d",
|
|
164
164
|
"docs/components/svg-icon.md": "3ab0ab4993f7446163926357fe6c8a057d5397f63a51badf51838550acdd137c",
|
|
@@ -6,6 +6,7 @@ import { createOrigenUi } from 'origen-ui'
|
|
|
6
6
|
import { permission } from '@/app/authorization/permission'
|
|
7
7
|
import { appRuntimeConfig } from '@/app/config/runtimeConfig'
|
|
8
8
|
import { createAdminI18nComposer, createAdminLanguageOptions } from '@/locales'
|
|
9
|
+
import './elementPlusApiStyles'
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* 创建 Origen UI 插件,接入 Admin 的权限检查器、语言选项与各组件运行时默认配置。
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { useBreadcrumbs } from '@origen-ui/router'
|
|
3
3
|
import { RouterBreadcrumb } from '@origen-ui/router/element-plus'
|
|
4
4
|
import { ElBreadcrumbItem } from 'element-plus'
|
|
5
|
+
import 'element-plus/es/components/breadcrumb/style/index'
|
|
5
6
|
|
|
6
7
|
defineOptions({ name: 'BreadcrumbBar' })
|
|
7
8
|
|
|
@@ -4,6 +4,7 @@ import { RouterMenu } from '@origen-ui/router/element-plus'
|
|
|
4
4
|
import { useI18n } from 'vue-i18n'
|
|
5
5
|
import { resolveAdminIcon } from '@/app/ui/iconCatalog'
|
|
6
6
|
import { useSidebarStore } from '@/store/sidebar'
|
|
7
|
+
import 'element-plus/es/components/menu/style/index'
|
|
7
8
|
|
|
8
9
|
defineOptions({ name: 'SideMenu' })
|
|
9
10
|
|
|
@@ -37,6 +37,10 @@ export async function installAdminMockBackend(page: Page): Promise<AdminMockBack
|
|
|
37
37
|
await page.route('**/api/**', async (route) => {
|
|
38
38
|
const request = route.request()
|
|
39
39
|
const url = new URL(request.url())
|
|
40
|
+
if (!url.pathname.startsWith('/api/')) {
|
|
41
|
+
await route.continue()
|
|
42
|
+
return
|
|
43
|
+
}
|
|
40
44
|
const failureIndex = failures.findIndex((item) =>
|
|
41
45
|
matchesPath(item.path, url.pathname) && (!item.method || item.method.toUpperCase() === request.method().toUpperCase()),
|
|
42
46
|
)
|
|
@@ -5,12 +5,11 @@ import { fileURLToPath } from 'node:url'
|
|
|
5
5
|
import { createSvgIconsPlugin } from '@origen-ui/icons/vite'
|
|
6
6
|
import vue from '@vitejs/plugin-vue'
|
|
7
7
|
import vueJsx from '@vitejs/plugin-vue-jsx'
|
|
8
|
-
import ElementPlus from 'unplugin-element-plus/vite'
|
|
9
8
|
import { loadEnv } from 'vite'
|
|
10
9
|
import { defineConfig } from 'vitest/config'
|
|
10
|
+
import { createAdminElementPlusPlugin } from './element-plus-plugin.js'
|
|
11
11
|
import { createMockApiPlugin } from './scripts/mock-api.js'
|
|
12
|
-
//
|
|
13
|
-
// with the application source as ./vite.build-policy.ts.
|
|
12
|
+
// 此文件会复制到脚手架项目根目录;构建策略会随应用源码复制为 ./vite.build-policy.ts。
|
|
14
13
|
import {
|
|
15
14
|
createAdminBuildOptions,
|
|
16
15
|
createAdminBuildPlugins,
|
|
@@ -18,6 +17,20 @@ import {
|
|
|
18
17
|
} from './vite.build-policy.js'
|
|
19
18
|
|
|
20
19
|
const elementPlusPackageRoot = dirname(dirname(fileURLToPath(import.meta.resolve('element-plus'))))
|
|
20
|
+
const origenUiSubpathIncludes = [
|
|
21
|
+
'@origen-ui/dialog/locale',
|
|
22
|
+
'@origen-ui/editor/locale',
|
|
23
|
+
'@origen-ui/form-table/locale',
|
|
24
|
+
'@origen-ui/form/core',
|
|
25
|
+
'@origen-ui/form/locale',
|
|
26
|
+
'@origen-ui/permission/codes',
|
|
27
|
+
'@origen-ui/router/element-plus',
|
|
28
|
+
'@origen-ui/router/tabs',
|
|
29
|
+
'@origen-ui/search/locale',
|
|
30
|
+
'@origen-ui/table/locale',
|
|
31
|
+
'@origen-ui/tabs/locale',
|
|
32
|
+
'@origen-ui/upload/locale',
|
|
33
|
+
]
|
|
21
34
|
const elementPlusStyleIncludes = readdirSync(join(elementPlusPackageRoot, 'es/components'), {
|
|
22
35
|
withFileTypes: true,
|
|
23
36
|
})
|
|
@@ -27,6 +40,11 @@ const elementPlusStyleIncludes = readdirSync(join(elementPlusPackageRoot, 'es/co
|
|
|
27
40
|
existsSync(join(elementPlusPackageRoot, 'es/components', entry.name, 'style/index.mjs')),
|
|
28
41
|
)
|
|
29
42
|
.map((entry) => `element-plus/es/components/${entry.name}/style/index`)
|
|
43
|
+
// 显式补充子路径和插件生成的样式入口。
|
|
44
|
+
const optimizeDepsIncludes = [
|
|
45
|
+
...origenUiSubpathIncludes,
|
|
46
|
+
...elementPlusStyleIncludes,
|
|
47
|
+
]
|
|
30
48
|
|
|
31
49
|
export default defineConfig(({ command, mode }) => {
|
|
32
50
|
const loadedEnv = loadEnv(mode, process.cwd(), '')
|
|
@@ -50,7 +68,7 @@ export default defineConfig(({ command, mode }) => {
|
|
|
50
68
|
}),
|
|
51
69
|
...createAdminBuildPlugins(),
|
|
52
70
|
...mockPlugins,
|
|
53
|
-
|
|
71
|
+
createAdminElementPlusPlugin(),
|
|
54
72
|
],
|
|
55
73
|
resolve: {
|
|
56
74
|
alias: {
|
|
@@ -58,22 +76,9 @@ export default defineConfig(({ command, mode }) => {
|
|
|
58
76
|
},
|
|
59
77
|
},
|
|
60
78
|
optimizeDeps: {
|
|
61
|
-
//
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
include: [
|
|
65
|
-
'@element-plus/icons-vue',
|
|
66
|
-
'@origen-ui/icons',
|
|
67
|
-
'@vueuse/core',
|
|
68
|
-
'axios',
|
|
69
|
-
'element-plus',
|
|
70
|
-
'pinia',
|
|
71
|
-
'sortablejs',
|
|
72
|
-
'vue',
|
|
73
|
-
'vue-i18n',
|
|
74
|
-
'vue-router',
|
|
75
|
-
...elementPlusStyleIncludes,
|
|
76
|
-
],
|
|
79
|
+
// 保留自动发现;include 会与扫描结果合并,补齐插件注入和样式入口。
|
|
80
|
+
noDiscovery: false,
|
|
81
|
+
include: optimizeDepsIncludes,
|
|
77
82
|
},
|
|
78
83
|
oxc: {
|
|
79
84
|
jsx: { runtime: 'automatic', importSource: 'vue' },
|
|
@@ -94,7 +99,7 @@ export default defineConfig(({ command, mode }) => {
|
|
|
94
99
|
build: createAdminBuildOptions(isDebugBuild),
|
|
95
100
|
test: {
|
|
96
101
|
environment: 'jsdom',
|
|
97
|
-
//
|
|
102
|
+
// 限制冷启动时的并行转换量,不调整单项测试的超时时间。
|
|
98
103
|
maxWorkers: 2,
|
|
99
104
|
include: ['tests/unit/**/*.spec.ts'],
|
|
100
105
|
exclude: ['tests/e2e/**', 'node_modules/**'],
|