ap-dev 1.0.34 → 1.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dev/ApiPanel/components/ApiTabs.vue +52 -0
  2. package/dev/ApiPanel/menus.js +88 -210
  3. package/dev/ApiPanel/modules/ApiColor.vue +253 -0
  4. package/dev/ApiPanel/modules/ApiFs.vue +35 -0
  5. package/dev/ApiPanel/modules/ApiIconList.vue +1 -1
  6. package/dev/ApiPanel/modules/ApiJavaUtils.vue +65 -0
  7. package/dev/ApiPanel/modules/ApiOtherJava.vue +32 -0
  8. package/dev/ApiPanel/modules/ApiOtherVue.vue +29 -0
  9. package/dev/ApiPanel/modules/ApiRequired.vue +36 -0
  10. package/dev/ApiPanel/modules/ApiStandard.vue +32 -0
  11. package/dev/ApiPanel/modules/ApiStyle.vue +43 -54
  12. package/dev/ApiPanel/{modules → tabs}/ApiAp.vue +0 -0
  13. package/dev/ApiPanel/{modules → tabs}/ApiArrayUtil.vue +0 -0
  14. package/dev/ApiPanel/{modules → tabs}/ApiCacheUtil.vue +0 -0
  15. package/dev/ApiPanel/{modules → tabs}/ApiDataTypeJava.vue +2 -2
  16. package/dev/ApiPanel/{modules → tabs}/ApiDateUtil.vue +0 -0
  17. package/dev/ApiPanel/{modules → tabs}/ApiDefaultVue.vue +0 -0
  18. package/dev/ApiPanel/{modules → tabs}/ApiDoc.vue +0 -0
  19. package/dev/ApiPanel/{modules → tabs}/ApiEMailUtil.vue +0 -0
  20. package/dev/ApiPanel/{modules → tabs}/ApiExcelExport.vue +4 -3
  21. package/dev/ApiPanel/{modules → tabs}/ApiExcelUtil.vue +0 -0
  22. package/dev/ApiPanel/{modules → tabs}/ApiFileServiceDownload.vue +0 -0
  23. package/dev/ApiPanel/{modules → tabs}/ApiFileServiceUpload.vue +0 -0
  24. package/dev/ApiPanel/{modules → tabs}/ApiFileServiceUtil.vue +0 -0
  25. package/dev/ApiPanel/{modules → tabs}/ApiGridUtil.vue +0 -0
  26. package/dev/ApiPanel/{modules → tabs}/ApiHttpUtil.vue +0 -0
  27. package/dev/ApiPanel/{modules → tabs}/ApiHttpsUtil.vue +0 -0
  28. package/dev/ApiPanel/{modules → tabs}/ApiIcon.vue +0 -0
  29. package/dev/ApiPanel/{modules → tabs}/ApiIdeaPlugins.vue +0 -0
  30. package/dev/ApiPanel/{modules → tabs}/ApiJsonUtil.vue +0 -0
  31. package/dev/ApiPanel/{modules → tabs}/ApiListUtil.vue +0 -0
  32. package/dev/ApiPanel/{modules → tabs}/ApiLoginUser.vue +0 -0
  33. package/dev/ApiPanel/{modules → tabs}/ApiMapper.vue +0 -0
  34. package/dev/ApiPanel/{modules → tabs}/ApiNameJava.vue +0 -0
  35. package/dev/ApiPanel/{modules → tabs}/ApiNameVue.vue +0 -0
  36. package/dev/ApiPanel/{modules → tabs}/ApiPageHelperUtil.vue +0 -0
  37. package/dev/ApiPanel/{modules → tabs}/ApiResultUtil.vue +0 -0
  38. package/dev/ApiPanel/{modules → tabs}/ApiStringUtil.vue +0 -0
  39. package/dev/ApiPanel/{modules → tabs}/ApiSwagger.vue +0 -0
  40. package/dev/ApiPanel/{modules → tabs}/ApiUUIDUtil.vue +0 -0
  41. package/dev/ApiPanel/{modules → tabs}/ApiUpdateJava.vue +0 -0
  42. package/dev/OperatePanel/index.vue +1 -1
  43. package/package.json +1 -1
@@ -0,0 +1,52 @@
1
+ <template>
2
+ <div style="height: 100%">
3
+ <el-tabs v-model="activeName" class="api-tabs">
4
+ <template v-for="(item,index) in options">
5
+ <el-tab-pane :label="item.label" :name="'tab' + index" class="api-tab">
6
+ <component :is="item.component"></component>
7
+ </el-tab-pane>
8
+ </template>
9
+ </el-tabs>
10
+ </div>
11
+ </template>
12
+
13
+ <script>
14
+ // 批量导入modules下的组件
15
+ const allComponents = require.context('./../tabs', false, /\.vue$/)
16
+ const apiComponents = {}
17
+ allComponents.keys().forEach(fileName => {
18
+ const comp = allComponents(fileName)
19
+ apiComponents[fileName.replace(/^\.\/(.*)\.\w+$/, '$1')] = comp.default
20
+ })
21
+ export default {
22
+ name: "ApiTabs",
23
+ components: apiComponents,
24
+ props: {
25
+ options: {
26
+ type: Array,
27
+ }
28
+ },
29
+ data() {
30
+ return {
31
+ activeName: 'tab0',
32
+ }
33
+ }
34
+ }
35
+ </script>
36
+
37
+ <style scoped>
38
+ .api-tabs {
39
+ display: flex;
40
+ flex-flow: column;
41
+ height: 100%;
42
+ }
43
+
44
+ .api-tab {
45
+ height: 100%;
46
+ }
47
+
48
+ .api-tabs /deep/ .el-tabs__content {
49
+ flex: 1;
50
+ overflow: scroll;
51
+ }
52
+ </style>
@@ -1,222 +1,100 @@
1
1
  const menus = [
2
- {
3
- id: 'ApiLog',
4
- label: '更新日志'
5
- }, {
6
- id: 'ApiDefault',
7
- label: '一、必读',
8
- children: [
9
- {
10
- id: 'ApiNameVue',
11
- label: '1.1 命名规范-前端'
12
- }, {
13
- id: 'ApiDefaultVue',
14
- label: '1.2 默认设定-前端'
15
- }, {
16
- id: 'ApiNameJava',
17
- label: '1.3 命名规范-后端'
18
- }, {
19
- id: 'ApiDataTypeJava',
20
- label: '1.4 数据类型-后端'
21
- }, {
22
- id: 'ApiUpdateJava',
23
- label: '1.5 update说明-后端'
24
- }, {
25
- id: 'ApiLoginUser',
26
- label: '1.6 登录用户'
27
- }, {
28
- id: 'ApiAp',
29
- label: '1.7 项目启动-前端'
30
- }]
31
- }, {
32
- id: 'ApiDefault',
33
- label: '二、通用业务',
34
- children: [
35
- {
2
+ {
3
+ id: 'ApiLog',
4
+ label: '更新日志'
5
+ }, {
36
6
  id: 'ApiDefault',
37
- label: '2.1 组织架构',
7
+ label: '一、常用',
38
8
  children: [
39
- {
40
- id: 'ApiDcOrgController',
41
- label: '2.1.1 后端接口说明'
42
- }, {
43
- id: 'ApiDcOrgSearch',
44
- label: '2.1.2 组织弹出选择组件'
45
- }, {
46
- id: 'ApiDcOrgSelect',
47
- label: '2.1.3 组织下拉选择组件'
48
- }]
49
- }, {
9
+ {
10
+ id: 'ApiRequired',
11
+ label: '1.1 必读内容'
12
+ }, {
13
+ id: 'ApiStandard',
14
+ label: '1.2 代码规范'
15
+ }, {
16
+ id: 'ApiFs',
17
+ label: '1.3 文件服务'
18
+ }]
19
+ }, {
50
20
  id: 'ApiDefault',
51
- label: '2.2 文件服务',
21
+ label: '二、通用组件',
52
22
  children: [
53
- {
54
- id: 'ApiFileServiceDownload',
55
- label: '2.2.1 文件下载'
56
- },
57
- {
58
- id: 'ApiFileServiceUpload',
59
- label: '2.2.2 文件上传'
60
- }, {
61
- id: 'ApiFileServiceUtil',
62
- label: '2.2.3 文件下载/上传 - 工具类'
63
- }, {
64
- id: 'ApiExcelExport',
65
- label: '2.2.4 Excel模版数据导出'
66
- }]
67
- }, {
23
+ {
24
+ id: 'ApiLayout',
25
+ label: '2.1 页面布局组件'
26
+ }, {
27
+ id: 'ApiGrid',
28
+ label: '2.2 表格组件'
29
+ }, {
30
+ id: 'ApiApButton',
31
+ label: '2.3 按钮组件'
32
+ }, {
33
+ id: 'ApiFormSearchTree',
34
+ label: '2.4 表单-树查询'
35
+ }, {
36
+ id: 'ApiApSearchPick',
37
+ label: '2.5 表单-树-表选择'
38
+ },{
39
+ id: 'ApiRequest',
40
+ label: '2.6 request'
41
+ }]
42
+ }, {
68
43
  id: 'ApiDefault',
69
- label: '2.3 其他',
44
+ label: '三、业务组件',
70
45
  children: [
71
- {
72
- id: 'ApiDcSupplierSearch',
73
- label: '2.3.1 供应商选择组件'
74
- }]
75
- }]
76
- }, {
77
- id: 'ApiDefault',
78
- label: '三、前端框架',
79
- children: [
80
- {
81
- id: 'ApiLayout',
82
- label: '2.1 页面布局'
83
- }, {
84
- id: 'ApiStyle',
85
- label: '2.2 共通式样'
86
- }, {
87
- id: 'ApiIconList',
88
- label: '2.3 Icon 图标'
89
- }, {
46
+ {
47
+ id: 'ApiDcOrgController',
48
+ label: '3.1 组织-后端接口说明'
49
+ }, {
50
+ id: 'ApiDcOrgSearch',
51
+ label: '3.2 组织-弹出选择'
52
+ }, {
53
+ id: 'ApiDcOrgSelect',
54
+ label: '3.3 组织-下拉选择'
55
+ }, {
56
+ id: 'ApiDcSupplierSearch',
57
+ label: '3.4 供应商-选择组件'
58
+ }]
59
+ }, {
90
60
  id: 'ApiDefault',
91
- label: '2.4 自定义组件',
61
+ label: '四、前端规范',
92
62
  children: [
93
- {
94
- id: 'ApiGrid',
95
- label: '2.4.1 表格组件'
96
- }, {
97
- id: 'ApiApButton',
98
- label: '2.4.2 按钮'
99
- }, {
100
- id: 'ApiFormSearchTree',
101
- label: '2.4.3 表单-树查询'
102
- }, {
103
- id: 'ApiApSearchPick',
104
- label: '2.4.3 表单-树-表选择'
105
- }]
106
- }, {
63
+ {
64
+ id: 'ApiStyle',
65
+ label: '4.1 通用CSS'
66
+ },{
67
+ id: 'ApiColor',
68
+ label: '4.2 配色库'
69
+ }, {
70
+ id: 'ApiIconList',
71
+ label: '4.3 Icon 图标'
72
+ }, {
73
+ id: 'ApiOtherVue',
74
+ label: '4.4 其他'
75
+ }]
76
+ }, {
107
77
  id: 'ApiDefault',
108
- label: '2.5 工具包',
78
+ label: '五、后端规范',
109
79
  children: [
110
- {
111
- id: 'ApiRequest',
112
- label: '2.5.1 数据请求'
113
- },{
114
- id: 'ApiMethod',
115
- label: '2.5.2 通用'
116
- }]
117
- }, {
118
- id: 'ApiDefault',
119
- label: '2.6 其他',
120
- children: [
121
- {
122
- id: 'ApiDoc',
123
- label: '2.6.1 API 文档'
124
- }, {
125
- id: 'ApiIcon',
126
- label: '2.6.2 Icon 添加'
127
- }]
128
- }]
129
- }, {
130
- id: 'ApiDefault',
131
- label: '四、后端框架',
132
- children: [
133
- {
134
- id: 'ApiServiceUtil',
135
- label: '3.1 生成通用代码'
136
- }, {
137
- id: 'ApiMybatis',
138
- label: '3.2 Mybatis规范'
139
- }, {
140
- id: 'ApiPaging',
141
- label: '3.3 表格分页'
142
- }, {
143
- id: 'ApiException',
144
- label: '3.4 异常处理'
145
- }, {
146
- id: 'ApiDefault',
147
- label: '3.5 工具类',
148
- children: [
149
- // {
150
- // id: 'ApiAESUtil',
151
- // label: 'AESUtil(AES)'
152
- // },
153
- {
154
- id: 'ApiArrayUtil',
155
- label: 'ArrayUtil(数组)'
156
- }, {
157
- id: 'ApiCacheUtil',
158
- label: 'CacheUtil(缓存:字典/组织分组)'
159
- }, {
160
- id: 'ApiDateUtil',
161
- label: 'DateUtil(日期)'
162
- }, {
163
- id: 'ApiEMailUtil',
164
- label: 'EMailUtil(邮件)'
165
- }, {
166
- id: 'ApiExcelUtil',
167
- label: 'ExcelUtil(excel)'
168
- }, {
169
- id: 'ApiGridUtil',
170
- label: 'GridUtil(表格数据转换)'
171
- }, {
172
- id: 'ApiHttpsUtil',
173
- label: 'HttpsUtil(https请求)'
174
- }, {
175
- id: 'ApiHttpUtil',
176
- label: 'HttpUtil(http请求)'
177
- }, {
178
- id: 'ApiJsonUtil',
179
- label: 'JsonUtil(json)'
180
- }, {
181
- id: 'ApiListUtil',
182
- label: 'ListUtil(list)'
183
- }, {
184
- id: 'ApiPageHelperUtil',
185
- label: 'PageHelperUtil(分页)'
186
- },
187
- // {
188
- // id: 'ApiQrCodeUtil',
189
- // label: 'QrCodeUtil(二维码)'
190
- // },
191
- {
192
- id: 'ApiResultUtil',
193
- label: 'ResultUtil(请求返回)'
194
- }, {
195
- id: 'ApiStringUtil',
196
- label: 'StringUtil(字符串)'
197
- }, {
198
- id: 'ApiUUIDUtil',
199
- label: 'UUIDUtil(UUID)'
200
- }
201
- // {
202
- // id: 'ApiWxUtil',
203
- // label: 'WxUtil(小程序)'
204
- // }
205
- ]
206
- }, {
207
- id: 'ApiDefault',
208
- label: '3.6 其他',
209
- children: [
210
- {
211
- id: 'ApiSwagger',
212
- label: '3.6.1 swagger接口文档'
213
- }, {
214
- id: 'ApiMapper',
215
- label: '3.6.2 tk.mybatis'
216
- }, {
217
- id: 'ApiIdeaPlugins',
218
- label: '3.6.3 Idea插件'
219
- }]
220
- }]
221
- }]
80
+ {
81
+ id: 'ApiServiceUtil',
82
+ label: '5.1 生成通用代码'
83
+ }, {
84
+ id: 'ApiMybatis',
85
+ label: '5.2 Mybatis规范'
86
+ }, {
87
+ id: 'ApiPaging',
88
+ label: '5.3 表格分页'
89
+ }, {
90
+ id: 'ApiException',
91
+ label: '5.4 异常处理'
92
+ }, {
93
+ id: 'ApiJavaUtils',
94
+ label: '5.5 工具类'
95
+ }, {
96
+ id: 'ApiOtherJava',
97
+ label: '5.6 其他'
98
+ }]
99
+ }]
222
100
  export default menus
@@ -0,0 +1,253 @@
1
+ <template>
2
+ <div>
3
+ <api-tittle-1>AP配色规范:</api-tittle-1>
4
+ <api-tittle-2>一、基础配色</api-tittle-2>
5
+ <api-content style="height: 140px;">
6
+ <div class="color-ctn" title="点击复制颜色">
7
+ <div class="color-item" @click="copyText('#1890FF', $event)" style="background-color: #1890FF"></div>
8
+ <div class="color-text">
9
+ <div @click="copyText('#1890FF', $event)" title="点击复制颜色">#1890FF</div>
10
+ <div @click="copyText('ap-color-blue', $event)" title="点击复制字体颜色类">ap-color-blue</div>
11
+ <div @click="copyText('ap-bg-blue', $event)" title="点击复制背景颜色类">ap-bg-blue</div>
12
+ </div>
13
+ </div>
14
+ <div class="color-ctn" title="点击复制颜色">
15
+ <div class="color-item" @click="copyText('#13CE66', $event)" style="background-color: #13CE66"></div>
16
+ <div class="color-text">
17
+ <div @click="copyText('#1890FF', $event)" title="点击复制颜色">#13CE66</div>
18
+ <div @click="copyText('ap-color-green', $event)" title="点击复制字体颜色类">ap-color-green</div>
19
+ <div @click="copyText('ap-bg-green', $event)" title="点击复制背景颜色类">ap-bg-green</div>
20
+ </div>
21
+ </div>
22
+ <div class="color-ctn" title="点击复制颜色">
23
+ <div class="color-item" @click="copyText('#ffba00', $event)" style="background-color: #ffba00"></div>
24
+ <div class="color-text">
25
+ <div @click="copyText('#1890FF', $event)" title="点击复制颜色">#ffba00</div>
26
+ <div @click="copyText('ap-color-yellow', $event)" title="点击复制字体颜色类">ap-color-yellow</div>
27
+ <div @click="copyText('ap-bg-yellow', $event)" title="点击复制背景颜色类">ap-bg-yellow</div>
28
+ </div>
29
+ </div>
30
+ <div class="color-ctn" title="点击复制颜色">
31
+ <div class="color-item" @click="copyText('#ff4949', $event)" style="background-color: #ff4949"></div>
32
+ <div class="color-text">
33
+ <div @click="copyText('#1890FF', $event)" title="点击复制颜色">#ff4949</div>
34
+ <div @click="copyText('ap-color-red', $event)" title="点击复制字体颜色类">ap-color-red</div>
35
+ <div @click="copyText('ap-bg-red', $event)" title="点击复制背景颜色类">ap-bg-red</div>
36
+ </div>
37
+ </div>
38
+ <div class="color-ctn" title="点击复制颜色">
39
+ <div class="color-item" @click="copyText('#909399', $event)" style="background-color: #909399"></div>
40
+ <div class="color-text">
41
+ <div @click="copyText('#1890FF', $event)" title="点击复制颜色">#909399</div>
42
+ <div @click="copyText('ap-color-gray', $event)" title="点击复制字体颜色类">ap-color-gray</div>
43
+ <div @click="copyText('ap-bg-gray', $event)" title="点击复制背景颜色类">ap-bg-gray</div>
44
+ </div>
45
+ </div>
46
+ </api-content>
47
+ <div class="memo">注:1、按钮、tag、字体都是以该配色为基础。<br>
48
+ 2、点击颜色或类名可直接复制。</div>
49
+ <br>
50
+ <api-tittle-2>二、按钮</api-tittle-2>
51
+ <api-content style="height: 60px;">
52
+ <div class="btn-ctn" @click="copyText(btn1, $event)" title="点击复制按钮">
53
+ <div class="btn-item">
54
+ <el-button type="primary">主要</el-button>
55
+ </div>
56
+ <div class="btn-text ap-ellipse" :title="btn1">{{ btn1 }}</div>
57
+ </div>
58
+ <div class="btn-ctn" @click="copyText(btn2, $event)" title="点击复制按钮">
59
+ <div class="btn-item">
60
+ <el-button type="success">成功</el-button>
61
+ </div>
62
+ <div class="btn-text ap-ellipse" :title="btn2">{{ btn2 }}</div>
63
+ </div>
64
+ <div class="btn-ctn" @click="copyText(btn3, $event)" title="点击复制按钮">
65
+ <div class="btn-item">
66
+ <el-button type="warning">警告</el-button>
67
+ </div>
68
+ <div class="btn-text ap-ellipse" :title="btn3">{{ btn3 }}</div>
69
+ </div>
70
+ <div class="btn-ctn" @click="copyText(btn4, $event)" title="点击复制按钮">
71
+ <div class="btn-item">
72
+ <el-button type="danger">危险</el-button>
73
+ </div>
74
+ <div class="btn-text ap-ellipse" :title="btn4">{{ btn4 }}</div>
75
+ </div>
76
+ <div class="btn-ctn" @click="copyText(btn5, $event)" title="点击复制按钮">
77
+ <div class="btn-item">
78
+ <el-button type="info">信息</el-button>
79
+ </div>
80
+ <div class="btn-text ap-ellipse" :title="btn5">{{ btn5 }}</div>
81
+ </div>
82
+ <div class="btn-ctn" @click="copyText(btn6, $event)" title="点击复制按钮">
83
+ <div class="btn-item">
84
+ <el-button>默认</el-button>
85
+ </div>
86
+ <div class="btn-text ap-ellipse" :title="btn6">{{ btn6 }}</div>
87
+ </div>
88
+
89
+ </api-content>
90
+ <div class="memo">注:1、写法和element相同。<br>
91
+ 2、按钮配色和element默认颜色有细微差别,以该配色为准!
92
+ </div>
93
+ <br>
94
+ <api-tittle-2>三、tag标签</api-tittle-2>
95
+ <api-content style="height: 60px;">
96
+ <div class="tag-ctn" @click="copyText(tag1, $event)" title="点击复制类名">
97
+ <div class="tag-item">
98
+ <div class="ap-tag">主要</div>
99
+ </div>
100
+ <div class="tag-text ap-ellipse">{{ tag1 }}</div>
101
+ </div>
102
+ <div class="tag-ctn" @click="copyText(tag2, $event)" title="点击复制类名">
103
+ <div class="tag-item">
104
+ <div class="ap-tag-success">成功</div>
105
+ </div>
106
+ <div class="tag-text ap-ellipse">{{ tag2 }}</div>
107
+ </div>
108
+ <div class="tag-ctn" @click="copyText(tag4, $event)" title="点击复制类名">
109
+ <div class="tag-item">
110
+ <div class="ap-tag-warning">警告</div>
111
+ </div>
112
+ <div class="tag-text ap-ellipse">{{ tag4 }}</div>
113
+ </div>
114
+ <div class="tag-ctn" @click="copyText(tag5, $event)" title="点击复制类名">
115
+ <div class="tag-item">
116
+ <div class="ap-tag-danger">危险</div>
117
+ </div>
118
+ <div class="tag-text ap-ellipse">{{ tag5 }}</div>
119
+ </div>
120
+ <div class="tag-ctn" @click="copyText(tag3, $event)" title="点击复制类名">
121
+ <div class="tag-item">
122
+ <div class="ap-tag-info">信息</div>
123
+ </div>
124
+ <div class="tag-text ap-ellipse">{{ tag3 }}</div>
125
+ </div>
126
+ </api-content>
127
+ <div class="memo">注:tag标签可应用与表格值渲染。
128
+ </div>
129
+ <br>
130
+ <api-tittle-2>四、字体</api-tittle-2>
131
+ <api-content>
132
+ <span class="ap-color-blue">主要</span>&nbsp;
133
+ <span class="ap-color-green">成功</span>&nbsp;
134
+ <span class="ap-color-yellow">警告</span>&nbsp;
135
+ <span class="ap-color-red">危险</span>&nbsp;
136
+ <span class="ap-color-gray">信息</span>&nbsp;
137
+ <br>
138
+ 参见【一、基础配色】。
139
+ </api-content>
140
+
141
+ </div>
142
+ </template>
143
+
144
+ <script>
145
+ import {ApiCode, ApiContent, ApiTable, ApiTittle1, ApiTittle2} from './../components'
146
+ import clipboard from 'ap-util/util/ClipboardUtil'
147
+
148
+ export default {
149
+ name: 'ApiStyle',
150
+ components: {ApiTable, ApiCode, ApiTittle1, ApiContent, ApiTittle2},
151
+ data() {
152
+ const js1 = `// 格式:
153
+ {
154
+ id: 'id名', //对应组件名称,
155
+ label: 'label名' //对应左侧菜单名称
156
+ }`
157
+
158
+ return {
159
+ js1: js1,
160
+ btn1: '<el-button type="primary">主要</el-button>',
161
+ btn2: '<el-button type="success">成功</el-button>',
162
+ btn3: '<el-button type="warning">警告</el-button>',
163
+ btn4: '<el-button type="danger">危险</el-button>',
164
+ btn5: '<el-button type="info">信息</el-button>',
165
+ btn6: '<el-button>默认</el-button>',
166
+ tag1: '<div class="ap-tag">默认</div>',
167
+ tag2: '<div class="ap-tag-success">成功</div>',
168
+ tag3: '<div class="ap-tag-info">信息</div>',
169
+ tag4: '<div class="ap-tag-warning">警告</div>',
170
+ tag5: '<div class="ap-tag-danger">危险</div>',
171
+ }
172
+ },
173
+ methods: {
174
+ copyText(value, event) {
175
+ clipboard(value, event)
176
+ },
177
+ }
178
+ }
179
+ </script>
180
+
181
+ <style scoped>
182
+ .memo {
183
+ color: red;
184
+ font-size: 14px;
185
+ }
186
+
187
+ .color-ctn {
188
+ float: left;
189
+ cursor: pointer;
190
+ }
191
+
192
+ .color-item {
193
+ width: 100px;
194
+ height: 70px;
195
+ }
196
+
197
+ .color-text {
198
+ font-size: 12px;
199
+ text-align: center;
200
+ width: 100px;
201
+ height: 20px;
202
+ line-height: 20px;
203
+ color: #9e9e9e;
204
+ }
205
+
206
+ .btn-ctn {
207
+ float: left;
208
+ cursor: pointer;
209
+ }
210
+
211
+ .btn-item {
212
+ width: 200px;
213
+ height: 30px;
214
+ }
215
+
216
+ .btn-item button {
217
+ width: 195px;
218
+ }
219
+
220
+ .btn-text {
221
+ font-size: 10px;
222
+ text-align: left;
223
+ width: 190px;
224
+ height: 20px;
225
+ line-height: 20px;
226
+ color: #9e9e9e;
227
+ }
228
+
229
+
230
+ .tag-ctn {
231
+ float: left;
232
+ cursor: pointer;
233
+ }
234
+
235
+ .tag-item {
236
+ width: 200px;
237
+ height: 30px;
238
+ }
239
+
240
+ .tag-item div {
241
+ width: 195px;
242
+ text-align: center;
243
+ }
244
+
245
+ .tag-text {
246
+ font-size: 10px;
247
+ text-align: center;
248
+ width: 190px;
249
+ height: 20px;
250
+ line-height: 20px;
251
+ color: #9e9e9e;
252
+ }
253
+ </style>
@@ -0,0 +1,35 @@
1
+ <template>
2
+ <api-tabs :options.sync="opts"></api-tabs>
3
+ </template>
4
+
5
+ <script>
6
+ import ApiTabs from './../components/ApiTabs'
7
+
8
+ export default {
9
+ name: "ApiFs",
10
+ components: {ApiTabs},
11
+ data() {
12
+ let opts = [
13
+ {
14
+ label: "1.文件下载",
15
+ component: "ApiFileServiceDownload"
16
+ }, {
17
+ label: "2.文件上传",
18
+ component: "ApiFileServiceUpload"
19
+ }, {
20
+ label: "3.文件下载/上传工具类",
21
+ component: "ApiFileServiceUtil"
22
+ }, {
23
+ label: "4.Excel模版数据导出",
24
+ component: "ApiExcelExport"
25
+ }
26
+ ];
27
+ return {
28
+ opts: opts
29
+ }
30
+ }
31
+ }
32
+ </script>
33
+
34
+ <style scoped>
35
+ </style>
@@ -38,7 +38,7 @@
38
38
  </div>
39
39
  </div>
40
40
  </template>
41
- <template v-else>
41
+ <template v-if="showType == 3">
42
42
  <div v-for="item of iconImgs" :key="item" class="icon-img-ctn">
43
43
  <div class="icon-item-ctn" @click="copyIconImg(item,$event)">
44
44
  <img :src="getIconImg(item)" class="icon-img-ctn-img">
@@ -0,0 +1,65 @@
1
+ <template>
2
+ <api-tabs :options.sync="opts"></api-tabs>
3
+ </template>
4
+
5
+ <script>
6
+ import ApiTabs from './../components/ApiTabs'
7
+
8
+ export default {
9
+ name: "ApiJavaUtils",
10
+ components: {ApiTabs},
11
+ data() {
12
+ let opts = [
13
+ {
14
+ label: 'ArrayUtil',
15
+ component: 'ApiArrayUtil',
16
+ }, {
17
+ label: 'CacheUtil(字典/组织)',
18
+ component: 'ApiCacheUtil',
19
+ }, {
20
+ label: 'DateUtil',
21
+ component: 'ApiDateUtil',
22
+ }, {
23
+ label: 'EMailUtil',
24
+ component: 'ApiEMailUtil',
25
+ }, {
26
+ label: 'ExcelUtil',
27
+ component: 'ApiExcelUtil',
28
+ }, {
29
+ label: 'GridUtil',
30
+ component: 'ApiGridUtil',
31
+ }, {
32
+ label: 'HttpsUtil',
33
+ component: 'ApiHttpsUtil',
34
+ }, {
35
+ label: 'HttpUtil',
36
+ component: 'ApiHttpUtil',
37
+ }, {
38
+ label: 'JsonUtil',
39
+ component: 'ApiJsonUtil',
40
+ }, {
41
+ label: 'ListUtil',
42
+ component: 'ApiListUtil',
43
+ }, {
44
+ label: 'PageHelperUtil',
45
+ component: 'ApiPageHelperUtil',
46
+ }, {
47
+ label: "ResultUtil",
48
+ component: "ApiResultUtil"
49
+ }, {
50
+ label: "StringUtil",
51
+ component: "ApiStringUtil"
52
+ }, {
53
+ label: "UUIDUtil",
54
+ component: "ApiUUIDUtil"
55
+ }
56
+ ];
57
+ return {
58
+ opts: opts
59
+ }
60
+ }
61
+ }
62
+ </script>
63
+
64
+ <style scoped>
65
+ </style>
@@ -0,0 +1,32 @@
1
+ <template>
2
+ <api-tabs :options.sync="opts"></api-tabs>
3
+ </template>
4
+
5
+ <script>
6
+ import ApiTabs from './../components/ApiTabs'
7
+
8
+ export default {
9
+ name: "ApiOtherJava",
10
+ components: {ApiTabs},
11
+ data() {
12
+ let opts = [
13
+ {
14
+ label: "1.swagger接口文档",
15
+ component: "ApiSwagger"
16
+ }, {
17
+ label: "2.tkMybatis",
18
+ component: "ApiMapper"
19
+ }, {
20
+ label: "3.Idea插件",
21
+ component: "ApiIdeaPlugins"
22
+ }
23
+ ];
24
+ return {
25
+ opts: opts
26
+ }
27
+ }
28
+ }
29
+ </script>
30
+
31
+ <style scoped>
32
+ </style>
@@ -0,0 +1,29 @@
1
+ <template>
2
+ <api-tabs :options.sync="opts"></api-tabs>
3
+ </template>
4
+
5
+ <script>
6
+ import ApiTabs from './../components/ApiTabs'
7
+
8
+ export default {
9
+ name: "ApiOtherVue",
10
+ components: {ApiTabs},
11
+ data() {
12
+ let opts = [
13
+ {
14
+ label: "1.API文档",
15
+ component: "ApiDoc"
16
+ }, {
17
+ label: "2.Icon 添加",
18
+ component: "ApiIcon"
19
+ }
20
+ ];
21
+ return {
22
+ opts: opts
23
+ }
24
+ }
25
+ }
26
+ </script>
27
+
28
+ <style scoped>
29
+ </style>
@@ -0,0 +1,36 @@
1
+ <template>
2
+ <api-tabs :options.sync="opts"></api-tabs>
3
+ </template>
4
+
5
+ <script>
6
+ import ApiTabs from './../components/ApiTabs'
7
+
8
+ export default {
9
+ name: "ApiRequired",
10
+ components: {ApiTabs},
11
+ data() {
12
+
13
+ let opts = [
14
+ {
15
+ label: "1.前端-日期类型",
16
+ component: "ApiDefaultVue"
17
+ }, {
18
+ label: "2.后端-update说明",
19
+ component: "ApiUpdateJava"
20
+ }, {
21
+ label: "3.登录用户",
22
+ component: "ApiLoginUser"
23
+ }, {
24
+ label: "4.前端-项目环境",
25
+ component: "ApiAp"
26
+ }
27
+ ];
28
+ return {
29
+ opts: opts
30
+ }
31
+ }
32
+ }
33
+ </script>
34
+
35
+ <style scoped>
36
+ </style>
@@ -0,0 +1,32 @@
1
+ <template>
2
+ <api-tabs :options.sync="opts"></api-tabs>
3
+ </template>
4
+
5
+ <script>
6
+ import ApiTabs from './../components/ApiTabs'
7
+
8
+ export default {
9
+ name: "ApiStandard",
10
+ components: {ApiTabs},
11
+ data() {
12
+ let opts = [
13
+ {
14
+ label: "1.前端-命名规范",
15
+ component: "ApiNameVue"
16
+ }, {
17
+ label: "2.后端-命名规范",
18
+ component: "ApiNameJava"
19
+ }, {
20
+ label: "3.后端-数据类型",
21
+ component: "ApiDataTypeJava"
22
+ }
23
+ ];
24
+ return {
25
+ opts: opts
26
+ }
27
+ }
28
+ }
29
+ </script>
30
+
31
+ <style scoped>
32
+ </style>
@@ -1,71 +1,60 @@
1
1
  <template>
2
- <div>
3
- <api-tittle-1>css共通式样:</api-tittle-1>
4
- <api-tittle-2>一、常用:</api-tittle-2>
5
- <api-tittle-2>1.1 弹性盒子布局:</api-tittle-2>
6
- <api-content>
7
- <api-code>
8
- <span style="color: #384c56;">盒子模型弹性布局:</span>flex<br>
9
- <span style="color: #384c56;">子元素排列垂直排列:</span>flex-direction-column<br>
10
- <span style="color: #384c56;">子元素自动占满剩余的空间:</span>flex-1<br>
11
- <span style="color: #384c56;">子元素水平居中:</span>flex-pack-center<br>
12
- <span style="color: #384c56;">子元素垂直居中:</span>flex-align-center<br>
13
- <span style="color: #384c56;">子元素垂直居中+水平居中:</span>flex-center<br>
14
- <span style="color: #384c56;">子元素两端对齐:</span>flex-pack-justify<br></api-code>
15
- 示例:子元素水平排列,水平和垂直居中。
16
- <api-code>&lt;div class="flex flex-center"&gt;...&lt;/div&gt;</api-code>
17
- </api-content>
18
- <api-tittle-2>1.2 tag标签:</api-tittle-2>
19
- <api-content>
20
- <div class="ap-tag">默认ap-tag</div>&nbsp;&nbsp;
21
- <div class="ap-tag-success">ap-tag-success</div>&nbsp;&nbsp;
22
- <div class="ap-tag-info">ap-tag-info</div>&nbsp;&nbsp;
23
- <div class="ap-tag-warning">ap-tag-warning</div>&nbsp;&nbsp;
24
- <div class="ap-tag-danger">ap-tag-danger</div>&nbsp;&nbsp;
25
- <br>
26
- 示例:
27
- <api-code>&lt;div class="ap-tag-success"&gt;...&lt;/div&gt;</api-code>
28
- </api-content>
29
- <api-tittle-2>1.3 表单:</api-tittle-2>
30
- <api-content>
31
- 1.3.1 表单的宽度固定为:label宽度+160px<br>
32
- <api-code>&lt;el-form class="ap-form"&gt;...&lt;/el-form &gt;</api-code>
33
- 1.3.2 表单item占满一行。 :inline="true"时使用<br>
34
- <api-code>&lt;div class="ap-form-row"&gt; 表单item &lt;/div &gt;</api-code>
35
- </api-content>
36
-
37
- <api-tittle-2>二、共通:</api-tittle-2>
38
- <api-tittle-2>2.1 分割线:</api-tittle-2>
39
- <api-content>
40
- <api-code>&lt;div class="ap-split-line"/&gt;</api-code>
41
- </api-content>
42
- <api-tittle-2>2.2 单行超出内容省略号:</api-tittle-2>
43
- <api-content>
44
- <api-code>&lt;div class="ap-ellipse"/&gt;</api-code>
45
- </api-content>
46
-
47
-
48
- </div>
2
+ <div>
3
+ <api-tittle-1>css共通式样:</api-tittle-1>
4
+ <api-tittle-2>一、常用:</api-tittle-2>
5
+ <api-tittle-2>1.1 弹性盒子布局:</api-tittle-2>
6
+ <api-content>
7
+ <api-code>
8
+ <span style="color: #384c56;">盒子模型弹性布局:</span>flex<br>
9
+ <span style="color: #384c56;">子元素排列垂直排列:</span>flex-direction-column<br>
10
+ <span style="color: #384c56;">子元素自动占满剩余的空间:</span>flex-1<br>
11
+ <span style="color: #384c56;">子元素水平居中:</span>flex-pack-center<br>
12
+ <span style="color: #384c56;">子元素垂直居中:</span>flex-align-center<br>
13
+ <span style="color: #384c56;">子元素垂直居中+水平居中:</span>flex-center<br>
14
+ <span style="color: #384c56;">子元素两端对齐:</span>flex-pack-justify<br></api-code>
15
+ 示例:子元素水平排列,水平和垂直居中。
16
+ <api-code>&lt;div class="flex flex-center"&gt;...&lt;/div&gt;</api-code>
17
+ </api-content>
18
+ <api-tittle-2>1.2 表单:</api-tittle-2>
19
+ <api-content>
20
+ 1.2.1 表单的宽度固定为:label宽度+160px<br>
21
+ <api-code>&lt;el-form class="ap-form"&gt;...&lt;/el-form &gt;</api-code>
22
+ 1.2.2 表单item占满一行。 :inline="true"时使用<br>
23
+ <api-code>&lt;div class="ap-form-row"&gt; 表单item &lt;/div &gt;</api-code>
24
+ </api-content>
25
+
26
+ <api-tittle-2>二、共通:</api-tittle-2>
27
+ <api-tittle-2>2.1 分割线:</api-tittle-2>
28
+ <api-content>
29
+ <api-code>&lt;div class="ap-split-line"/&gt;</api-code>
30
+ </api-content>
31
+ <api-tittle-2>2.2 单行超出内容省略号:</api-tittle-2>
32
+ <api-content>
33
+ <api-code>&lt;div class="ap-ellipse"/&gt;</api-code>
34
+ </api-content>
35
+
36
+
37
+ </div>
49
38
  </template>
50
39
 
51
40
  <script>
52
41
  import { ApiCode, ApiContent, ApiTable, ApiTittle1, ApiTittle2 } from './../components'
53
42
 
54
43
  export default {
55
- name: 'ApiStyle',
56
- components: { ApiTable, ApiCode, ApiTittle1, ApiContent, ApiTittle2 },
57
- data() {
58
- const js1 = `// 格式:
44
+ name: 'ApiColor',
45
+ components: { ApiTable, ApiCode, ApiTittle1, ApiContent, ApiTittle2 },
46
+ data() {
47
+ const js1 = `// 格式:
59
48
  {
60
49
  id: 'id名', //对应组件名称,
61
50
  label: 'label名' //对应左侧菜单名称
62
51
  }`
63
52
 
64
- return { js1 }
65
- }
53
+ return { js1 }
54
+ }
66
55
  }
67
56
  </script>
68
57
 
69
58
  <style scoped>
70
59
 
71
- </style>
60
+ </style>
File without changes
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div style="height: 100%">
3
- <api-tittle-1>数据类型说明:</api-tittle-1>
3
+ <api-tittle-1>后端数据类型说明:</api-tittle-1>
4
4
  <api-tittle-2>一、常用java数据类型:</api-tittle-2>
5
5
  <api-content>
6
6
  "Integer","Long","Float","Double","BigDecimal","Date","Timestamp", "String"<br>
@@ -119,4 +119,4 @@ export default {
119
119
  </script>
120
120
 
121
121
  <style scoped>
122
- </style>
122
+ </style>
File without changes
File without changes
File without changes
File without changes
@@ -10,10 +10,11 @@
10
10
  <b>1.2 excel配置数据接收参数:</b><br>
11
11
  <div class="api-code">
12
12
  map填充:{参数名}<br><br>
13
- // 注意:"sheet0_list0"表示第一个sheet页的第一个list,格式固定只能修改对应的数字<br>
14
- list填充:{sheet0_list0.name}
13
+ // 注意:"sheet0_dataList1"表示第一个sheet页的dataList1,格式固定只能修改对应的数字<br>
14
+ list垂直填充:{sheet0_dataList1.name}<br>
15
+ list横向填充:{sheet0_horizontalDataList1.name}<br>
15
16
  </div>
16
- <el-image style="height: 500px" :src="image1" :fit="true"></el-image>
17
+ <el-image style="height: 500px" :src="image1" fit="true"></el-image>
17
18
  </api-content>
18
19
 
19
20
  <api-tittle-2>2、前端调用文件下载接口</api-tittle-2>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -36,7 +36,7 @@
36
36
  </div>
37
37
  <div class="ap-dev-tool-item flex flex-center" @click="currentDesignPanel('online-code-panel', $event)">
38
38
  <div class="ap-dev-tool-item-icon1">
39
- <i class="el-icon-edit" />
39
+ <i class="el-icon-code" />
40
40
  </div>
41
41
  <div class="ap-dev-tool-item-text1">在线开发</div>
42
42
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ap-dev",
3
- "version": "1.0.34",
3
+ "version": "1.0.40",
4
4
  "description": "===== ap-dev =====",
5
5
  "author": "xiexinbin",
6
6
  "email": "876818817@qq.com",