diff --git a/example/docs/zh-CN/components/result.md b/example/docs/zh-CN/components/result.md new file mode 100644 index 00000000..b9021d9c --- /dev/null +++ b/example/docs/zh-CN/components/result.md @@ -0,0 +1,25 @@ +::: anchor +::: + +::: title 成功 +::: + +::: demo 使用 `lay-exception` 标签, 创建一个异常页面 + + + + + + + +::: \ No newline at end of file diff --git a/example/src/router/zh-CN.ts b/example/src/router/zh-CN.ts index 572fdf91..3ecae45b 100644 --- a/example/src/router/zh-CN.ts +++ b/example/src/router/zh-CN.ts @@ -340,6 +340,10 @@ const zhCN = [ path: "/zh-CN/components/exception", component: () => import("../../docs/zh-CN/components/exception.md"), meta: { title: "异常" }, + }, { + path: "/zh-CN/components/result", + component: () => import("../../docs/zh-CN/components/result.md"), + meta: { title: "结果" }, }, ], }, diff --git a/example/src/view/utils/menus.ts b/example/src/view/utils/menus.ts index 57012a78..a5de190c 100644 --- a/example/src/view/utils/menus.ts +++ b/example/src/view/utils/menus.ts @@ -308,6 +308,12 @@ const menus = [ title: "异常", subTitle: "exception", path: "/zh-CN/components/exception", + }, + { + id: 100, + title: "结果", + subTitle: "result", + path: "/zh-CN/components/result", }, ], }, diff --git a/package.json b/package.json index b9814e15..cf8ac36e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@layui/layui-vue", - "version": "0.3.6-alpha.5", + "version": "0.3.6-alpha.6", "author": "SleepRite", "license": "MIT", "description": "a component library for Vue 3 base on layui-vue", diff --git a/src/component/exception/index.vue b/src/component/exception/index.vue index 0eca9879..b409488b 100644 --- a/src/component/exception/index.vue +++ b/src/component/exception/index.vue @@ -1,10 +1,10 @@ + + + + + + + + + + + + 提交失败 + + 请核对并修改以下信息后,再重新提交。如果仅是简单操作,使用 Message + 全局提示反馈即可。 本文字区域可以展示简单的补充说明,如果有类似展示 + “单据”的需求,下面这个灰色区域可以呈现比较复杂的内容。 + + + + 返回修改 + + 返回首页 + + + \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index c9505ba1..4cc5db13 100644 --- a/src/index.ts +++ b/src/index.ts @@ -74,6 +74,7 @@ import LaySubMenu from "./component/subMenu/index"; import LaySplitPanel from "./component/splitPanel/index"; import LaySplitPanelItem from "./component/splitPanelItem/index"; import LayException from "./component/exception/index" +import LayResult from "./component/result/index" const components: Record = { LaySplitPanel, @@ -144,7 +145,8 @@ const components: Record = { LayStep, LayStepItem, LaySubMenu, - LayException + LayException, + LayResult }; const install = (app: App): void => { @@ -223,7 +225,8 @@ export { LayStep, LayStepItem, LaySubMenu, - LayException + LayException, + LayResult }; export { layer, useLayer };
+ 请核对并修改以下信息后,再重新提交。如果仅是简单操作,使用 Message + 全局提示反馈即可。 本文字区域可以展示简单的补充说明,如果有类似展示 + “单据”的需求,下面这个灰色区域可以呈现比较复杂的内容。 +