From 60dab14a5741d5989724114b6594557f9958fffa Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Tue, 28 Feb 2023 14:58:40 +0800 Subject: [PATCH] splitPane --- package-lock.json | 14 +- package.json | 2 +- src/router/index.js | 18 ++ src/views/home/introduce.vue | 9 +- src/views/splitPane/splitPane.vue | 306 ++++++++++++++++++++++++++++++ 5 files changed, 340 insertions(+), 9 deletions(-) create mode 100644 src/views/splitPane/splitPane.vue diff --git a/package-lock.json b/package-lock.json index a078555..3c974bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "code-brick-wd", "version": "0.1.0", "dependencies": { - "code-brick-zj": "^0.0.7", + "code-brick-zj": "^0.1.0", "core-js": "^3.8.3", "element-ui": "^2.15.12", "vue": "^2.6.14", @@ -4007,9 +4007,9 @@ } }, "node_modules/code-brick-zj": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/code-brick-zj/-/code-brick-zj-0.0.7.tgz", - "integrity": "sha512-ZuhseY/9RUUUweAiTdumq5pJKAKAJxpvD8yjcVluY+cGDEKyoKzN9PjycPh2tUsE/gmwShfgrcIcm5DKcmzqvA==" + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/code-brick-zj/-/code-brick-zj-0.1.0.tgz", + "integrity": "sha512-vEymEN/28lEJP3045DCE/7143SXjdNyNmWZuy3/NcIUP/e9YOjhm46itzjNWCjJZCI6vWvQkCD1EfmA4hPknuw==" }, "node_modules/color-convert": { "version": "1.9.3", @@ -14473,9 +14473,9 @@ } }, "code-brick-zj": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/code-brick-zj/-/code-brick-zj-0.0.7.tgz", - "integrity": "sha512-ZuhseY/9RUUUweAiTdumq5pJKAKAJxpvD8yjcVluY+cGDEKyoKzN9PjycPh2tUsE/gmwShfgrcIcm5DKcmzqvA==" + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/code-brick-zj/-/code-brick-zj-0.1.0.tgz", + "integrity": "sha512-vEymEN/28lEJP3045DCE/7143SXjdNyNmWZuy3/NcIUP/e9YOjhm46itzjNWCjJZCI6vWvQkCD1EfmA4hPknuw==" }, "color-convert": { "version": "1.9.3", diff --git a/package.json b/package.json index 014de0d..87af197 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "lint": "vue-cli-service lint" }, "dependencies": { - "code-brick-zj": "^0.0.7", + "code-brick-zj": "^0.1.0", "core-js": "^3.8.3", "element-ui": "^2.15.12", "vue": "^2.6.14", diff --git a/src/router/index.js b/src/router/index.js index 299f497..dc3035b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -112,6 +112,24 @@ export const routes = [ } ] }, + { + path: '/splitPane', + component: Layout, + name: 'splitPane', + meta: { + title: '分割面板' + }, + children: [ + { + path: 'splitPane', + name: 'splitPane', + meta: { + title: '分割面板' + }, + component: () => import('../views/splitPane/splitPane') + } + ] + }, { path: '*', redirect: '/home/introduce', hidden: true } ] diff --git a/src/views/home/introduce.vue b/src/views/home/introduce.vue index ff74511..a6d67cb 100644 --- a/src/views/home/introduce.vue +++ b/src/views/home/introduce.vue @@ -3,9 +3,16 @@

组件包目前封装常用的四个组件:表格,搜索区域,分页,对话框。包npm地址为:https://www.npmjs.com/package/code-brick-zj。

-

文档当前使用的组件包的版本为:0.0.7

+

文档当前使用的组件包的版本为:0.1.0

+ + +

新增

+

增加组件SplitPane,可以拖动来调整面板的大小

+

组件版本号为:0.1.0

+
+

修改

diff --git a/src/views/splitPane/splitPane.vue b/src/views/splitPane/splitPane.vue new file mode 100644 index 0000000..60a0041 --- /dev/null +++ b/src/views/splitPane/splitPane.vue @@ -0,0 +1,306 @@ + + +