File tree Expand file tree Collapse file tree 38 files changed +146
-295
lines changed Expand file tree Collapse file tree 38 files changed +146
-295
lines changed Original file line number Diff line number Diff line change 1
- <!-- 引用或解释说明组件 -->
2
1
<template >
3
2
<div class =" sys-notes" >
4
3
<slot ></slot >
7
6
8
7
<script >
9
8
export default {
10
- name: 'vPageNotes '
9
+ name: ' AppNotes '
11
10
}
12
11
</script >
Original file line number Diff line number Diff line change 6
6
7
7
<script >
8
8
export default {
9
- name: ' vPageSearch '
9
+ name: ' AppSearch '
10
10
}
11
11
</script >
Original file line number Diff line number Diff line change 9
9
10
10
<script >
11
11
export default {
12
- name: ' vPageSection ' ,
12
+ name: ' AppSection ' ,
13
13
props: [' title' ]
14
14
}
15
15
</script >
Original file line number Diff line number Diff line change 1
- <!-- 每个页面的标题,用来重复确认当前所处页面,亦可用作面包屑导航的外层结构。 -->
2
1
<template >
3
2
<div class =" sys-title" >
4
3
<strong >{{title}}</strong >
7
6
8
7
<script >
9
8
export default {
10
- name: 'vPageTitle ',
9
+ name: ' AppTitle ' ,
11
10
props: [' title' ]
12
11
}
13
12
</script >
Original file line number Diff line number Diff line change 6
6
7
7
<script >
8
8
export default {
9
- name: ' vPageToolbar ' ,
9
+ name: ' AppToolbar ' ,
10
10
props: {
11
11
align: {
12
12
type: String ,
Original file line number Diff line number Diff line change 22
22
23
23
<script >
24
24
export default {
25
- name: ' vPageTable ' ,
25
+ name: ' TableMixin ' ,
26
26
props: {
27
27
pagination: Boolean ,
28
28
paginationAlign: String ,
Original file line number Diff line number Diff line change
1
+ // 组件全局注册
2
+ import Vue from 'vue'
3
+
4
+ import AppNotes from './AppNotes'
5
+ import AppTitle from './AppTitle'
6
+ import AppToolbar from './AppToolbar'
7
+ import AppSection from './AppSection'
8
+ import AppSearch from './AppSearch'
9
+ import TableMixin from './TableMixin'
10
+
11
+ // 组件库
12
+ const Components = [
13
+ AppNotes ,
14
+ AppTitle ,
15
+ AppToolbar ,
16
+ AppSection ,
17
+ AppSearch ,
18
+ TableMixin
19
+ ]
20
+
21
+ // 注册全局组件
22
+ Components . map ( ( com ) => {
23
+ Vue . component ( com . name , com )
24
+ } )
25
+
26
+ export default Vue
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ import axios from './util/ajax'
11
11
import i18n from './util/i18n'
12
12
import App from './index'
13
13
14
- import './components/platformCom/install'
14
+ import './components/install'
15
+ import './plugins/install'
15
16
16
17
// 注册组件到Vue
17
18
Vue . prototype . $axios = axios
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" sys-page" >
3
- <v-pageTitle title =" 引用说明" ></v-pageTitle >
3
+ <app-title title =" 引用说明" ></app-title >
4
4
<div class =" page-content" >
5
- <v-pageNotes >
5
+ <app-notes >
6
6
现在看到的就是引用说明组件
7
- </v-pageNotes >
8
- <v-pageSection title =" 组件说明" >
7
+ </app-notes >
8
+ <app-section title =" 组件说明" >
9
9
<el-table :data =" tableData" style =" width : 100% " >
10
10
<el-table-column prop =" name" label =" 组件使用" >
11
11
</el-table-column >
18
18
<el-table-column prop =" paramType" label =" 参数类型" >
19
19
</el-table-column >
20
20
</el-table >
21
- </v-pagesection >
21
+ </app-section >
22
22
</div >
23
23
</div >
24
24
</template >
@@ -29,7 +29,7 @@ export default {
29
29
return {
30
30
tableData: [
31
31
{
32
- name: ' <v-pageNotes ></v-pageNotes >' ,
32
+ name: ' <app-notes ></app-notes >' ,
33
33
detail: ' 可以插入任意节点,外层仅为有样式的<div>层' ,
34
34
param: ' -' ,
35
35
paramDetail: ' -' ,
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" sys-page" >
3
- <v-pageTitle title =" 统一分页插件" ></v-pageTitle >
3
+ <app-title title =" 统一分页插件" ></app-title >
4
4
<div class =" page-content" >
5
5
<div class =" article" >
6
6
<p >该组件为ElementUI的分页组件二次封装,以实现统一的分页设置。分页所有方法统一继承自ElementUI</p >
7
7
</div >
8
- <v-pageTable pagination ></v-pageTable >
9
- <v-pageSection title =" 函数说明" >
8
+ <table-mixin pagination ></table-mixin >
9
+ <app-section title =" 函数说明" >
10
10
<el-table :data =" tableData" style =" width : 100% " >
11
11
<el-table-column prop =" name" label =" 组件使用" >
12
12
</el-table-column >
19
19
<el-table-column prop =" paramType" label =" 参数类型" >
20
20
</el-table-column >
21
21
</el-table >
22
- </v-pagesection >
22
+ </app-section >
23
23
</div >
24
24
</div >
25
25
</template >
@@ -30,7 +30,7 @@ export default {
30
30
return {
31
31
tableData: [
32
32
{
33
- name: ' <v-pageTable ></v-pageTable >' ,
33
+ name: ' <table-mixin ></table-mixin >' ,
34
34
detail: ' 统一table' ,
35
35
param: ' pagination' ,
36
36
paramDetail: ' 是否有分页' ,
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" sys-page" >
3
- <v-pageTitle title =" 详细鉴权组件" ></v-pageTitle >
3
+ <app-title title =" 详细鉴权组件" ></app-title >
4
4
<div class =" page-content" >
5
5
<div class =" sys-article" >
6
6
<p >该组件并非鉴别页面访问权限,实际是鉴别页面内部某些按钮或操作的权限。</p >
7
7
<p >页面中的某些操作或者某些区块拥有访问等其他权限时,只需要添加<code >v-hasPermission="'view'"</code >即可。</p >
8
8
</div >
9
- <v-pageSection title =" 函数说明" >
9
+ <app-section title =" 函数说明" >
10
10
<el-table :data =" tableData" style =" width : 100% " >
11
11
<el-table-column prop =" name" label =" 指令名" >
12
12
</el-table-column >
15
15
<el-table-column prop =" type" label =" 参数类型" >
16
16
</el-table-column >
17
17
</el-table >
18
- </v-pagesection >
18
+ </app-section >
19
19
</div >
20
20
</div >
21
21
</template >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" sys-page" v-once >
3
- <v-pageTitle title =" 介绍" ></v-pageTitle >
3
+ <app-title title =" 介绍" ></app-title >
4
4
<div class =" page-content" >
5
- <v-pageNotes >
5
+ <app-notes >
6
6
该部分组件为本系统自行开发的组件(包括对第三方组件的封装),不包括纯粹的第三方组件。系统组件仅为通用的大众化组件,需注意和项目组件进行区分。全部系统组件文件位于 src/components/platformCom
7
- </v-pageNotes >
8
- <v-pageSection title =" 使用方法" >
7
+ </app-notes >
8
+ <app-section title =" 使用方法" >
9
9
<div class =" sys-article" >
10
10
<p >系统组件默认使用全局注册,无需再次引入。如果需要按需引入,只需在<code >src/main.js</code >中取消对全局组件的引入即可。如下所示</p >
11
11
<pre v-pre class =" sys-pre" ><code >
18
18
</code ></pre >
19
19
<p >如果需要取消部分全局组件的应用,则修改<code >src/components/platformCom/install.js</code >的引入组件即可</p >
20
20
</div >
21
- </v-pageSection >
22
- <v-pageSection title =" 分类说明" >
21
+ </app-section >
22
+ <app-section title =" 分类说明" >
23
23
<div class =" sys-article" >
24
24
<p >系统组件主要分为三大类</p >
25
25
<p >功能类:以实现具体功能为主,包括对第三方组件的二次封装类,尽量不要修改。</p >
26
26
<p >布局类:以常用布局为主,包括标题、间距、搜索之类的纯布局组件,可按实际项目要求修改</p >
27
27
<p >辅助类:文档辅助说明及其他组件部分,可能不会应用在正式产品中,该类别可以不引入到正式产品中</p >
28
28
</div >
29
- </v-pageSection >
29
+ </app-section >
30
30
</div >
31
31
</div >
32
32
</template >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" sys-page" >
3
- <v-pageTitle title =" 搜索条" ></v-pageTitle >
3
+ <app-title title =" 搜索条" ></app-title >
4
4
<div class =" page-content" >
5
- <v-pageSearch >
5
+ <app-search >
6
6
现在看到的就是搜索条
7
- </v-pageSearch >
8
- <v-pageSection title =" 组件说明" >
7
+ </app-search >
8
+ <app-section title =" 组件说明" >
9
9
<el-table :data =" tableData" style =" width : 100% " >
10
10
<el-table-column prop =" name" label =" 组件使用" >
11
11
</el-table-column >
18
18
<el-table-column prop =" paramType" label =" 参数类型" >
19
19
</el-table-column >
20
20
</el-table >
21
- </v-pagesection >
21
+ </app-section >
22
22
</div >
23
23
</div >
24
24
</template >
@@ -29,7 +29,7 @@ export default {
29
29
return {
30
30
tableData: [
31
31
{
32
- name: ' <v-pageSearch ></v-pageSearch >' ,
32
+ name: ' <app-search ></app-search >' ,
33
33
detail: ' 可以插入任意节点,外层仅为有样式的<div>层' ,
34
34
param: ' -' ,
35
35
paramDetail: ' -' ,
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" sys-page" >
3
- <v-pageTitle title =" 子区域" ></v-pageTitle >
3
+ <app-title title =" 子区域" ></app-title >
4
4
<div class =" page-content" >
5
- <v-pageSection title =" 子区域标题" >
5
+ <app-section title =" 子区域标题" >
6
6
子区域任意内容
7
- </v-pageSection >
8
- <v-pageSection title =" 组件说明" >
7
+ </app-section >
8
+ <app-section title =" 组件说明" >
9
9
<el-table :data =" tableData" style =" width : 100% " >
10
10
<el-table-column prop =" name" label =" 组件使用" >
11
11
</el-table-column >
18
18
<el-table-column prop =" paramType" label =" 参数类型" >
19
19
</el-table-column >
20
20
</el-table >
21
- </v-pagesection >
21
+ </app-section >
22
22
</div >
23
23
</div >
24
24
</template >
@@ -29,7 +29,7 @@ export default {
29
29
return {
30
30
tableData: [
31
31
{
32
- name: ' <v-pageSection ></v-pageSection >' ,
32
+ name: ' <app-section ></app-section >' ,
33
33
detail: ' 该区域为详细区域分块' ,
34
34
param: ' title' ,
35
35
paramDetail: ' 定义分块标题' ,
You can’t perform that action at this time.
0 commit comments