From ca1064afbd08fc9c1f3572d89c4b061efd696416 Mon Sep 17 00:00:00 2001
From: xiesi <305492881@qq.com>
Date: Mon, 12 Jul 2021 23:28:01 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E5=B7=A6=E8=BE=B9?=
=?UTF-8?q?=E7=9A=84=E6=A0=8F=E4=B8=BA=E6=A0=91=E7=8A=B6=E7=BB=93=E6=9E=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: xiesi <305492881@qq.com>
---
README.md | 37 ++++++++--------------
src/views/Home.vue | 79 ++++++++++++++++++++++++++++++++++++++++------
2 files changed, 83 insertions(+), 33 deletions(-)
diff --git a/README.md b/README.md
index 05e7a08..51974c2 100644
--- a/README.md
+++ b/README.md
@@ -1,24 +1,13 @@
-# x_modellibrary
-
-## Project setup
-```
-npm install
-```
-
-### Compiles and hot-reloads for development
-```
-npm run serve
-```
-
-### Compiles and minifies for production
-```
-npm run build
-```
-
-### Lints and fixes files
-```
-npm run lint
-```
-
-### Customize configuration
-See [Configuration Reference](https://cli.vuejs.org/config/).
+# 业务
+
+1. 可以创建模型
+1. 模型是有版本号的
+1. 左侧的列表为模型的类型
+1. 也就是说每个模型至少有一个类型
+1. 左侧列表是一个可以添加的二级树状列表
+
+# todo-list
+
+1. 左侧列表可以添加大的列表
+1. 左侧列表可以添加小的列表
+1. 对应的内容可以保存到数据库
\ No newline at end of file
diff --git a/src/views/Home.vue b/src/views/Home.vue
index 1e57dfd..e0dcd43 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -2,15 +2,14 @@
-
-
- 大分类A
- A.小分类a
- A.小分类b
-
-
+
+
{
+ this.append(data);
+ },
+ },
+ "+ "
+ )
+ )
+ );
+ } else {
+ return h(
+ "span",
+ {
+ class: "custom-tree-node",
+ },
+ h("span", null, node.label)
+ );
+ }
+ },
+
gotologin11() {
console.log("goto login");
this.$router.push("Login");
@@ -128,6 +168,27 @@ export default {
fbxnamelist: ["a.fbx", "b.fbx", "Samba Dancing.fbx"], // ! fbx列表,用于测试,后续会删掉
curefbxname: "a.fbx", // 当前的fbx名称,用于传参用
count: 0, // ! 一个索引,所随着点击次数增加,使用的时候要取余,在正式代码中会删掉
+ treeid: 1000,
+ treedata: [
+ {
+ id: 1,
+ label: "一级1",
+ canadd: true,
+ children: [
+ { id: 2, label: "二级1", canadd: false },
+ { id: 3, label: "二级2", canadd: false },
+ ],
+ },
+ {
+ id: 4,
+ label: "一级2",
+ canadd: true,
+ children: [
+ { id: 5, label: "二级3", canadd: false },
+ { id: 6, label: "二级4", canadd: false },
+ ],
+ },
+ ],
};
},
};
--
GitLab