From 2945ecb3b876d0641e34ca5a31259dfb4ac5f6f8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=87=AA=E5=B8=A6=E5=A4=A7=E4=BD=AC=E6=B0=94=E5=9C=BA?=
<188633308@qq.com>
Date: Tue, 27 Apr 2021 14:13:28 +0800
Subject: [PATCH 1/5] =?UTF-8?q?update=20=E4=B8=80=E7=B3=BB=E5=88=97?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Web/package.json | 2 +
Web/public/doc-part/use/a.js | 2 +
Web/public/doc-part/use/test.vue | 53 +++++++++++++++++++++
Web/src/assets/style/lib/font-weight.css | 17 -------
Web/src/assets/style/lib/modal.less | 14 +-----
Web/src/assets/style/lib/tree-layout.less | 28 ++++++++++-
Web/src/components/yoTreeLayout/index.js | 13 +++++
Web/src/main.js | 4 ++
Web/src/pages/css/app.css | 0
Web/src/pages/doc/use.vue | 3 --
Web/src/pages/system/doc/highlight.js | 16 +++++++
Web/src/pages/system/doc/index.vue | 53 +++++++++++++++++++++
Web/src/pages/system/doc/use.vue | 21 ++++++++
Web/src/pages/system/user/index.vue | 3 ++
Web/src/views/main/_layout/header/search.js | 2 +-
Web/yarn.lock | 34 ++++++++++++-
16 files changed, 230 insertions(+), 35 deletions(-)
create mode 100644 Web/public/doc-part/use/a.js
create mode 100644 Web/public/doc-part/use/test.vue
delete mode 100644 Web/src/assets/style/lib/font-weight.css
delete mode 100644 Web/src/pages/css/app.css
delete mode 100644 Web/src/pages/doc/use.vue
create mode 100644 Web/src/pages/system/doc/highlight.js
create mode 100644 Web/src/pages/system/doc/index.vue
create mode 100644 Web/src/pages/system/doc/use.vue
diff --git a/Web/package.json b/Web/package.json
index 7c932a7..c51e772 100644
--- a/Web/package.json
+++ b/Web/package.json
@@ -13,6 +13,7 @@
"core-js": "^3.6.5",
"crypto-js": "^4.0.0",
"echarts": "^5.0.2",
+ "highlight.js": "^10.7.2",
"less": "^3.12.2",
"less-loader": "4.1.0",
"lodash": "^4.17.21",
@@ -20,6 +21,7 @@
"swiper": "^6.5.0",
"vue": "^2.6.11",
"vue-awesome-swiper": "^4.1.1",
+ "vue-highlight.js": "^3.1.0",
"vue-router": "^3.5.1"
},
"devDependencies": {
diff --git a/Web/public/doc-part/use/a.js b/Web/public/doc-part/use/a.js
new file mode 100644
index 0000000..19cff95
--- /dev/null
+++ b/Web/public/doc-part/use/a.js
@@ -0,0 +1,2 @@
+const a = 2;
+const b = 3;
\ No newline at end of file
diff --git a/Web/public/doc-part/use/test.vue b/Web/public/doc-part/use/test.vue
new file mode 100644
index 0000000..83e6095
--- /dev/null
+++ b/Web/public/doc-part/use/test.vue
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Web/src/assets/style/lib/font-weight.css b/Web/src/assets/style/lib/font-weight.css
deleted file mode 100644
index 9f97552..0000000
--- a/Web/src/assets/style/lib/font-weight.css
+++ /dev/null
@@ -1,17 +0,0 @@
-body {
- font-weight: 100;
-}
-h1,
-h2,
-h3,
-h4,
-h5,
-h6 {
- font-weight: 300;
-}
-.ant-card-meta-title {
- font-weight: inherit;
-}
-.ant-table-thead > tr > th {
- font-weight: 500;
-}
diff --git a/Web/src/assets/style/lib/modal.less b/Web/src/assets/style/lib/modal.less
index 4a0fb66..e7a5ce3 100644
--- a/Web/src/assets/style/lib/modal.less
+++ b/Web/src/assets/style/lib/modal.less
@@ -1,30 +1,20 @@
@import (reference) '~@/assets/style/extend.less';
.ant-modal-content {
- background-color: fade(@primary-color, 20%);
+ background-color: fade(@white, 90%);
- backdrop-filter: blur(10px);
+ backdrop-filter: blur(5px);
}
.ant-modal-header {
padding: @padding-sm @padding-md;
background-color: transparent;
}
-.ant-modal-title {
- color: fade(@white, 85%);
-}
.ant-modal-body {
background-color: @white;
}
.ant-modal-footer {
background-color: @white;
}
-.ant-modal-close {
- color: fade(@white, 45%);
- &:focus,
- &:hover {
- color: fade(@white, 75%);
- }
-}
.ant-modal-close-x {
line-height: 46px;
diff --git a/Web/src/assets/style/lib/tree-layout.less b/Web/src/assets/style/lib/tree-layout.less
index 723a6c3..8974a44 100644
--- a/Web/src/assets/style/lib/tree-layout.less
+++ b/Web/src/assets/style/lib/tree-layout.less
@@ -29,7 +29,7 @@
}
.swiper-container {
position: absolute;
- top: @layout-header-height - 20px;
+ top: @layout-header-height;
left: 0;
bottom: 0;
@@ -38,6 +38,32 @@
height: auto;
min-height: 100%;
}
+ .swiper-scrollbar {
+ transition: @animation-duration-slow opacity;
+
+ opacity: 0;
+ }
+ &:hover {
+ .swiper-scrollbar {
+ opacity: 1;
+ }
+ }
+ }
+ }
+ &--bar {
+ line-height: 20px;
+
+ height: 20px;
+ padding: 0 @padding-md;
+
+ text-align: right;
+ >.anticon {
+ cursor: pointer;
+
+ color: fade(@black, 50%);
+ &:hover {
+ color: fade(@black, 80%);
+ }
}
}
}
diff --git a/Web/src/components/yoTreeLayout/index.js b/Web/src/components/yoTreeLayout/index.js
index 2cdac96..e50a0d8 100644
--- a/Web/src/components/yoTreeLayout/index.js
+++ b/Web/src/components/yoTreeLayout/index.js
@@ -122,6 +122,10 @@ export default {
this.onUpdateSwiper()
},
+ onUnexpandAll() {
+ this.expandedKeys = []
+ },
+
onSearch(value) {
const expandedKeys = this.list
.map(p => {
@@ -136,6 +140,10 @@ export default {
this.expandedKeys = expandedKeys
this.autoExpandParent = true
+ this.$nextTick(() => {
+ this.onUpdateSwiper()
+ })
+
},
onSelect(selectedKeys) {
@@ -238,6 +246,11 @@ export default {
+
diff --git a/Web/src/main.js b/Web/src/main.js
index a4b1f0f..50d6be0 100644
--- a/Web/src/main.js
+++ b/Web/src/main.js
@@ -25,6 +25,10 @@ import getAwesomeSwiper from 'vue-awesome-swiper/dist/exporter'
SwiperClass.use([Pagination, Mousewheel, Autoplay, Scrollbar])
Vue.use(getAwesomeSwiper(SwiperClass))
+import hljs from 'highlight.js'
+import 'highlight.js/styles/github.css'
+Vue.use(hljs.vuePlugin);
+
/**
* api全局化
*/
diff --git a/Web/src/pages/css/app.css b/Web/src/pages/css/app.css
deleted file mode 100644
index e69de29..0000000
diff --git a/Web/src/pages/doc/use.vue b/Web/src/pages/doc/use.vue
deleted file mode 100644
index 0bc6fc9..0000000
--- a/Web/src/pages/doc/use.vue
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/Web/src/pages/system/doc/highlight.js b/Web/src/pages/system/doc/highlight.js
new file mode 100644
index 0000000..9a89b01
--- /dev/null
+++ b/Web/src/pages/system/doc/highlight.js
@@ -0,0 +1,16 @@
+export default {
+ props: {
+ code: {
+ type: String
+ }
+ },
+
+ render() {
+ const props = {
+ ...this.$props,
+ ...this.$attrs
+ }
+
+ return props.code &&
+ }
+}
\ No newline at end of file
diff --git a/Web/src/pages/system/doc/index.vue b/Web/src/pages/system/doc/index.vue
new file mode 100644
index 0000000..f968fac
--- /dev/null
+++ b/Web/src/pages/system/doc/index.vue
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Web/src/pages/system/doc/use.vue b/Web/src/pages/system/doc/use.vue
new file mode 100644
index 0000000..de1c1dd
--- /dev/null
+++ b/Web/src/pages/system/doc/use.vue
@@ -0,0 +1,21 @@
+
+
+
+
\ No newline at end of file
diff --git a/Web/src/pages/system/user/index.vue b/Web/src/pages/system/user/index.vue
index 52b2eaf..127e7e9 100644
--- a/Web/src/pages/system/user/index.vue
+++ b/Web/src/pages/system/user/index.vue
@@ -260,6 +260,9 @@ export default {
} else {
this.$message.error(message);
}
+ })
+ .finally(() => {
+ record.statusChanging = false;
});
},
diff --git a/Web/src/views/main/_layout/header/search.js b/Web/src/views/main/_layout/header/search.js
index 0273a15..1e8fb2f 100644
--- a/Web/src/views/main/_layout/header/search.js
+++ b/Web/src/views/main/_layout/header/search.js
@@ -127,7 +127,7 @@ export default {
{this.renderSelect(this.searchResult)}
-
+
diff --git a/Web/yarn.lock b/Web/yarn.lock
index 7d085f2..436919e 100644
--- a/Web/yarn.lock
+++ b/Web/yarn.lock
@@ -3241,6 +3241,11 @@ destroy@~1.0.4:
resolved "https://registry.npm.taobao.org/destroy/download/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80"
integrity sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=
+detect-indent@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.nlark.com/detect-indent/download/detect-indent-5.0.0.tgz?cache=0&sync_timestamp=1618847240598&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fdetect-indent%2Fdownload%2Fdetect-indent-5.0.0.tgz#3871cc0a6a002e8c3e5b3cf7f336264675f06b9d"
+ integrity sha1-OHHMCmoALow+Wzz38zYmRnXwa50=
+
detect-node@^2.0.4:
version "2.0.5"
resolved "https://registry.npm.taobao.org/detect-node/download/detect-node-2.0.5.tgz#9d270aa7eaa5af0b72c4c9d9b814e7f4ce738b79"
@@ -4418,6 +4423,11 @@ highlight.js@^10.0.0:
resolved "https://registry.npm.taobao.org/highlight.js/download/highlight.js-10.7.1.tgz#a8ec4152db24ea630c90927d6cae2a45f8ecb955"
integrity sha1-qOxBUtsk6mMMkJJ9bK4qRfjsuVU=
+highlight.js@^10.7.2:
+ version "10.7.2"
+ resolved "https://registry.nlark.com/highlight.js/download/highlight.js-10.7.2.tgz?cache=0&sync_timestamp=1619160938319&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fhighlight.js%2Fdownload%2Fhighlight.js-10.7.2.tgz#89319b861edc66c48854ed1e6da21ea89f847360"
+ integrity sha1-iTGbhh7cZsSIVO0ebaIeqJ+Ec2A=
+
hmac-drbg@^1.0.1:
version "1.0.1"
resolved "https://registry.npm.taobao.org/hmac-drbg/download/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1"
@@ -4688,6 +4698,11 @@ imurmurhash@^0.1.4:
resolved "https://registry.npm.taobao.org/imurmurhash/download/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
integrity sha1-khi5srkoojixPcT7a21XbyMUU+o=
+indent-string@^3.0.0:
+ version "3.2.0"
+ resolved "https://registry.npm.taobao.org/indent-string/download/indent-string-3.2.0.tgz?cache=0&sync_timestamp=1618679561483&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Findent-string%2Fdownload%2Findent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289"
+ integrity sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=
+
indent-string@^4.0.0:
version "4.0.0"
resolved "https://registry.npm.taobao.org/indent-string/download/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251"
@@ -7054,6 +7069,14 @@ readdirp@~3.5.0:
dependencies:
picomatch "^2.2.1"
+redent@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npm.taobao.org/redent/download/redent-2.0.0.tgz#c1b2007b42d57eb1389079b3c8333639d5e1ccaa"
+ integrity sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=
+ dependencies:
+ indent-string "^3.0.0"
+ strip-indent "^2.0.0"
+
regenerate-unicode-properties@^8.2.0:
version "8.2.0"
resolved "https://registry.npm.taobao.org/regenerate-unicode-properties/download/regenerate-unicode-properties-8.2.0.tgz#e5de7111d655e7ba60c057dbe9ff37c87e65cdec"
@@ -8169,7 +8192,7 @@ tslib@2.0.3:
resolved "https://registry.npm.taobao.org/tslib/download/tslib-2.0.3.tgz?cache=0&sync_timestamp=1617647442601&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftslib%2Fdownload%2Ftslib-2.0.3.tgz#8e0741ac45fc0c226e58a17bfc3e64b9bc6ca61c"
integrity sha1-jgdBrEX8DCJuWKF7/D5kubxsphw=
-tslib@^1.10.0, tslib@^1.9.0:
+tslib@^1.10.0, tslib@^1.9.0, tslib@^1.9.3:
version "1.14.1"
resolved "https://registry.npm.taobao.org/tslib/download/tslib-1.14.1.tgz?cache=0&sync_timestamp=1609887785854&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftslib%2Fdownload%2Ftslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
integrity sha1-zy04vcNKE0vK8QkcQfZhni9nLQA=
@@ -8482,6 +8505,15 @@ vue-eslint-parser@^7.0.0:
esquery "^1.4.0"
lodash "^4.17.15"
+vue-highlight.js@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.npm.taobao.org/vue-highlight.js/download/vue-highlight.js-3.1.0.tgz#87b60b4931fd310b318f2b2c9116fe71b69dd053"
+ integrity sha1-h7YLSTH9MQsxjysskRb+cbad0FM=
+ dependencies:
+ detect-indent "^5.0.0"
+ redent "^2.0.0"
+ tslib "^1.9.3"
+
vue-hot-reload-api@^2.3.0:
version "2.3.4"
resolved "https://registry.npm.taobao.org/vue-hot-reload-api/download/vue-hot-reload-api-2.3.4.tgz#532955cc1eb208a3d990b3a9f9a70574657e08f2"
From 0b18832602bd9f8064f316e86553720d39960303 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=87=AA=E5=B8=A6=E5=A4=A7=E4=BD=AC=E6=B0=94=E5=9C=BA?=
<188633308@qq.com>
Date: Tue, 27 Apr 2021 14:18:53 +0800
Subject: [PATCH 2/5] =?UTF-8?q?test=20=E5=B8=90=E5=8F=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Web/src/pages/system/doc/highlight.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Web/src/pages/system/doc/highlight.js b/Web/src/pages/system/doc/highlight.js
index 9a89b01..07d663a 100644
--- a/Web/src/pages/system/doc/highlight.js
+++ b/Web/src/pages/system/doc/highlight.js
@@ -5,6 +5,10 @@ export default {
}
},
+ methods: {
+
+ },
+
render() {
const props = {
...this.$props,
From bfb61e728cd1fb698ee03ff66f7ea3286877d54b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=87=AA=E5=B8=A6=E5=A4=A7=E4=BD=AC=E6=B0=94=E5=9C=BA?=
<188633308@qq.com>
Date: Tue, 27 Apr 2021 18:22:32 +0800
Subject: [PATCH 3/5] =?UTF-8?q?update=20=E5=A2=9E=E5=8A=A0=E4=BA=86?=
=?UTF-8?q?=E5=BC=80=E5=8F=91=E6=96=87=E6=A1=A3=E7=9A=84=E7=BC=96=E5=86=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Web/public/doc-code/seed/addForm.vue | 78 ++++++++++
Web/public/doc-code/seed/editForm.vue | 79 ++++++++++
Web/public/doc-code/seed/form.vue | 100 +++++++++++++
Web/public/doc-code/seed/query.vue | 189 ++++++++++++++++++++++++
Web/public/doc-code/seed/vue.json | 9 ++
Web/public/doc-part/use/a.js | 2 -
Web/public/doc-part/use/test.vue | 53 -------
Web/src/assets/style/lib/font-size.less | 24 +++
Web/src/components/container/index.vue | 13 +-
Web/src/main.js | 2 +-
Web/src/pages/system/doc/highlight.js | 28 +++-
Web/src/pages/system/doc/index.vue | 103 ++++++++++---
Web/src/pages/system/doc/seed/form.vue | 33 +++++
Web/src/pages/system/doc/seed/index.vue | 45 ++++++
Web/src/pages/system/doc/seed/query.vue | 19 +++
Web/src/pages/system/doc/usage.vue | 17 +++
Web/src/pages/system/doc/use.vue | 21 ---
17 files changed, 711 insertions(+), 104 deletions(-)
create mode 100644 Web/public/doc-code/seed/addForm.vue
create mode 100644 Web/public/doc-code/seed/editForm.vue
create mode 100644 Web/public/doc-code/seed/form.vue
create mode 100644 Web/public/doc-code/seed/query.vue
create mode 100644 Web/public/doc-code/seed/vue.json
delete mode 100644 Web/public/doc-part/use/a.js
delete mode 100644 Web/public/doc-part/use/test.vue
create mode 100644 Web/src/pages/system/doc/seed/form.vue
create mode 100644 Web/src/pages/system/doc/seed/index.vue
create mode 100644 Web/src/pages/system/doc/seed/query.vue
create mode 100644 Web/src/pages/system/doc/usage.vue
delete mode 100644 Web/src/pages/system/doc/use.vue
diff --git a/Web/public/doc-code/seed/addForm.vue b/Web/public/doc-code/seed/addForm.vue
new file mode 100644
index 0000000..28c81b2
--- /dev/null
+++ b/Web/public/doc-code/seed/addForm.vue
@@ -0,0 +1,78 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Web/public/doc-code/seed/editForm.vue b/Web/public/doc-code/seed/editForm.vue
new file mode 100644
index 0000000..6f96748
--- /dev/null
+++ b/Web/public/doc-code/seed/editForm.vue
@@ -0,0 +1,79 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Web/public/doc-code/seed/form.vue b/Web/public/doc-code/seed/form.vue
new file mode 100644
index 0000000..ab74d56
--- /dev/null
+++ b/Web/public/doc-code/seed/form.vue
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Web/public/doc-code/seed/query.vue b/Web/public/doc-code/seed/query.vue
new file mode 100644
index 0000000..c88a70c
--- /dev/null
+++ b/Web/public/doc-code/seed/query.vue
@@ -0,0 +1,189 @@
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+ 新增XX
+
+
+
+
+
+
+ 编辑
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Web/public/doc-code/seed/vue.json b/Web/public/doc-code/seed/vue.json
new file mode 100644
index 0000000..6ff84f8
--- /dev/null
+++ b/Web/public/doc-code/seed/vue.json
@@ -0,0 +1,9 @@
+{
+ "seed-index.vue": {
+ "prefix": "seed.index",
+ "body": [
+ "",
+ ""
+ ]
+ }
+}
\ No newline at end of file
diff --git a/Web/public/doc-part/use/a.js b/Web/public/doc-part/use/a.js
deleted file mode 100644
index 19cff95..0000000
--- a/Web/public/doc-part/use/a.js
+++ /dev/null
@@ -1,2 +0,0 @@
-const a = 2;
-const b = 3;
\ No newline at end of file
diff --git a/Web/public/doc-part/use/test.vue b/Web/public/doc-part/use/test.vue
deleted file mode 100644
index 83e6095..0000000
--- a/Web/public/doc-part/use/test.vue
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Web/src/assets/style/lib/font-size.less b/Web/src/assets/style/lib/font-size.less
index 15316f9..06b98ff 100644
--- a/Web/src/assets/style/lib/font-size.less
+++ b/Web/src/assets/style/lib/font-size.less
@@ -1 +1,25 @@
@import (reference) '~@/assets/style/extend.less';
+h1,
+.h1 {
+ font-size: 36px;
+}
+h2,
+.h2 {
+ font-size: 32px;
+}
+h3,
+.h3 {
+ font-size: 24px;
+}
+h4,
+.h4 {
+ font-size: 18px;
+}
+h5,
+.h5 {
+ font-size: 14px;
+}
+h6,
+.h6 {
+ font-size: 12px;
+}
diff --git a/Web/src/components/container/index.vue b/Web/src/components/container/index.vue
index 1b13d7a..86c6c8b 100644
--- a/Web/src/components/container/index.vue
+++ b/Web/src/components/container/index.vue
@@ -1,5 +1,14 @@
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/Web/src/main.js b/Web/src/main.js
index 50d6be0..f921c86 100644
--- a/Web/src/main.js
+++ b/Web/src/main.js
@@ -26,7 +26,7 @@ SwiperClass.use([Pagination, Mousewheel, Autoplay, Scrollbar])
Vue.use(getAwesomeSwiper(SwiperClass))
import hljs from 'highlight.js'
-import 'highlight.js/styles/github.css'
+import 'highlight.js/styles/vs2015.css'
Vue.use(hljs.vuePlugin);
/**
diff --git a/Web/src/pages/system/doc/highlight.js b/Web/src/pages/system/doc/highlight.js
index 07d663a..78919c2 100644
--- a/Web/src/pages/system/doc/highlight.js
+++ b/Web/src/pages/system/doc/highlight.js
@@ -6,15 +6,37 @@ export default {
},
methods: {
-
+ onCopy() {
+ try {
+ const $textarea = document.createElement('textarea')
+ $textarea.style = 'opacity: 0;position: fixed;top: -10000;left: -10000'
+ document.body.append($textarea)
+ $textarea.value = this.code
+ $textarea.select()
+ document.execCommand('copy')
+ $textarea.remove()
+ this.$message.success('已复制到剪贴板')
+ }
+ catch
+ {
+ this.$message.error('复制失败')
+ }
+ }
},
render() {
const props = {
...this.$props,
- ...this.$attrs
+ ...this.$attrs,
}
- return props.code &&
+ return props.code && (
+
+ )
}
}
\ No newline at end of file
diff --git a/Web/src/pages/system/doc/index.vue b/Web/src/pages/system/doc/index.vue
index f968fac..aa6ca76 100644
--- a/Web/src/pages/system/doc/index.vue
+++ b/Web/src/pages/system/doc/index.vue
@@ -1,22 +1,51 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ {{ doc.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Web/src/pages/system/doc/seed/form.vue b/Web/src/pages/system/doc/seed/form.vue
new file mode 100644
index 0000000..5dc650c
--- /dev/null
+++ b/Web/src/pages/system/doc/seed/form.vue
@@ -0,0 +1,33 @@
+
+
+
+ 新增
+ 1.0
+
+
+
+ 编辑
+ 1.0
+
+
+
+ 表单主体
+ 1.0
+
+
+
+
+
\ No newline at end of file
diff --git a/Web/src/pages/system/doc/seed/index.vue b/Web/src/pages/system/doc/seed/index.vue
new file mode 100644
index 0000000..ac99884
--- /dev/null
+++ b/Web/src/pages/system/doc/seed/index.vue
@@ -0,0 +1,45 @@
+
+
+ 种子文件已经提供了业务组件通用的架构,可以通过以下几种方式快速获取架构代码。
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Web/src/pages/system/doc/seed/query.vue b/Web/src/pages/system/doc/seed/query.vue
new file mode 100644
index 0000000..6d2555f
--- /dev/null
+++ b/Web/src/pages/system/doc/seed/query.vue
@@ -0,0 +1,19 @@
+
+
+
+
\ No newline at end of file
diff --git a/Web/src/pages/system/doc/usage.vue b/Web/src/pages/system/doc/usage.vue
new file mode 100644
index 0000000..383e738
--- /dev/null
+++ b/Web/src/pages/system/doc/usage.vue
@@ -0,0 +1,17 @@
+
+
+
+
\ No newline at end of file
diff --git a/Web/src/pages/system/doc/use.vue b/Web/src/pages/system/doc/use.vue
deleted file mode 100644
index de1c1dd..0000000
--- a/Web/src/pages/system/doc/use.vue
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
\ No newline at end of file
From a52dd1bdb2d1761c83a8a9716627a6f851625003 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=87=AA=E5=B8=A6=E5=A4=A7=E4=BD=AC=E6=B0=94=E5=9C=BA?=
<188633308@qq.com>
Date: Wed, 28 Apr 2021 09:32:40 +0800
Subject: [PATCH 4/5] =?UTF-8?q?update=20moment=E5=85=A8=E5=B1=80=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Web/src/App.vue | 4 ----
Web/src/main.js | 11 ++++++++++-
Web/src/pages/home/notice.vue | 10 ++++------
Web/src/pages/system/config/form.vue | 2 --
Web/src/pages/system/log/oplog/index.vue | 10 +++-------
Web/src/pages/system/log/vislog/index.vue | 10 +++-------
Web/src/pages/system/user/form.vue | 8 ++------
7 files changed, 22 insertions(+), 33 deletions(-)
diff --git a/Web/src/App.vue b/Web/src/App.vue
index 67822e7..bd456df 100644
--- a/Web/src/App.vue
+++ b/Web/src/App.vue
@@ -9,10 +9,6 @@
\ No newline at end of file
diff --git a/Web/src/pages/system/config/form.vue b/Web/src/pages/system/config/form.vue
index 16e8277..e12a41f 100644
--- a/Web/src/pages/system/config/form.vue
+++ b/Web/src/pages/system/config/form.vue
@@ -37,7 +37,6 @@