imatrix-ui 2.8.2-tmp1 → 2.8.2-tmp2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imatrix-ui",
3
- "version": "2.8.2-tmp1",
3
+ "version": "2.8.2-tmp2",
4
4
  "description": "前端组件库:表格、表单、组织结构树等",
5
5
  "main": "lib/super-ui.umd.min.js",
6
6
  "private": false,
@@ -90,6 +90,7 @@ const cn = {
90
90
  isShow: '是否显示',
91
91
  isExportable: '是否导出',
92
92
  recordLine: '第 {row} 行记录',
93
+ pageRecordLine: '第 {pageNum} 页第 {row} 行记录',
93
94
  fileName: '文件名称',
94
95
  deleteSuccessful: '删除成功',
95
96
  index: '序号',
@@ -89,6 +89,7 @@ const en = {
89
89
  isShow: 'Is Show',
90
90
  isExportable: 'Is Exportable',
91
91
  recordLine: 'Record line {row}',
92
+ pageRecordLine: 'Record in row {row} of page {pageNum}',
92
93
  fileName: 'File Name',
93
94
  deleteSuccessful: 'Deleted successfully',
94
95
  index: 'No.',
package/src/permission.js CHANGED
@@ -29,6 +29,10 @@ router.beforeEach((to, from, next) => {
29
29
  setToken(token)
30
30
  }
31
31
  }
32
+ if (to.query && to.query._systemName_) {
33
+ // 表示需要设置浏览器页签名
34
+ document.title = to.query._systemName_
35
+ }
32
36
  // console.log('router.beforeEach-getToken()=', token)
33
37
  if ((['/update-password', '/forget-password', '/reset-password', '/redirect'].indexOf(to.path) === -1 || store.getters.whiteList.indexOf(to.path) !== -1) && token) {
34
38
  if (to.path === '/login') {
@@ -86,7 +86,10 @@ const permission = {
86
86
  return new Promise(resolve => {
87
87
  const currentUserPermissions = data
88
88
  // commit('setCurrentUserPermissions', currentUserPermissions)
89
+ const a = new Date().getTime()
89
90
  const accessableRoutersResult = filterProtectedRouter(protectedRouterMap, currentUserPermissions)
91
+ const b = new Date().getTime()
92
+ sessionStorage.setItem('=====generateRoutes====>'+new Date().getTime()+'-执行时间b-a=', (b-a)+'')
90
93
  const accessableRouters = accessableRoutersResult.allRouters
91
94
  const allMenuRoutes = accessableRoutersResult.menuRouters
92
95
  // console.log('有权限的路由表结果==', accessableRouters)
@@ -114,6 +117,8 @@ const permission = {
114
117
  // console.log('更新后的有权限的路由表结果,更新了根路由跳转的地址==', accessableRouters)
115
118
  }
116
119
  }
120
+ const c = new Date().getTime()
121
+ sessionStorage.setItem('=====generateRoutes====>执行时间c-a=', (c-a)+'')
117
122
  commit('setRouters', accessableRouters)
118
123
  resolve()
119
124
  })
@@ -0,0 +1,34 @@
1
+ .flex-container {
2
+ display: flex;
3
+ width: 100%;
4
+
5
+ .tree-area {
6
+ flex: 0 0 200px;
7
+ overflow: auto;
8
+ }
9
+
10
+ .list-area {
11
+ flex: 1;
12
+ overflow: auto;
13
+ margin-left: 20px;
14
+ }
15
+ }
16
+
17
+ .three-column-layout {
18
+ height: calc(100vh - 20px);
19
+
20
+ .el-aside {
21
+ margin-right: 20px;
22
+ padding-top: 20px;
23
+ background-color: #FFFFFF;
24
+ box-shadow: 0px 1px 8px 0px #00000019;
25
+
26
+ }
27
+
28
+ .el-main {
29
+ padding: 20px 0 0 20px;
30
+ border-radius: 6px;
31
+ background: #FFFFFF;
32
+ box-shadow: 0px 1px 8px 0px #00000019;
33
+ }
34
+ }
@@ -9,6 +9,9 @@
9
9
  @import './theme/blue2/sidebar.scss';
10
10
  @import './theme/gray/index.scss';
11
11
  @import './theme/gray/sidebar.scss';
12
+ @import './theme/dark-blue/index.scss';
13
+ @import './theme/dark-blue/sidebar.scss';
14
+ @import './display-layout.scss';
12
15
 
13
16
  body {
14
17
  overflow: hidden;
@@ -32,19 +35,33 @@ body .el-table th.gutter {
32
35
  body .el-table colgroup.gutter {
33
36
  display: table-cell !important;
34
37
  }
38
+
35
39
  // 日期控件宽度不自适应问题
36
- .formContent .el-date-editor.el-input,.formContent .el-date-editor.el-input__input,.formContent .el-date-editor.el-input__inner,
37
- .grid-search-form .el-date-editor.el-input,.grid-search-form .el-date-editor.el-input__input,.grid-search-form .el-date-editor.el-input__inner {
40
+ .formContent .el-date-editor.el-input,
41
+ .formContent .el-date-editor.el-input__input,
42
+ .formContent .el-date-editor.el-input__inner,
43
+ .grid-search-form .el-date-editor.el-input,
44
+ .grid-search-form .el-date-editor.el-input__input,
45
+ .grid-search-form .el-date-editor.el-input__inner {
38
46
  width: 100%;
39
47
  }
40
- .formContent .el-date-editor--daterange.el-input,.formContent .el-date-editor--daterange.el-input__inner,.formContent .el-date-editor--timerange.el-input,.formContent .el-date-editor--timerange.el-input__inner,
41
- .grid-search-form .el-date-editor--daterange.el-input,.grid-search-form .el-date-editor--daterange.el-input__inner,.grid-search-form .el-date-editor--timerange.el-input,.grid-search-form .el-date-editor--timerange.el-input__inner {
48
+
49
+ .formContent .el-date-editor--daterange.el-input,
50
+ .formContent .el-date-editor--daterange.el-input__inner,
51
+ .formContent .el-date-editor--timerange.el-input,
52
+ .formContent .el-date-editor--timerange.el-input__inner,
53
+ .grid-search-form .el-date-editor--daterange.el-input,
54
+ .grid-search-form .el-date-editor--daterange.el-input__inner,
55
+ .grid-search-form .el-date-editor--timerange.el-input,
56
+ .grid-search-form .el-date-editor--timerange.el-input__inner {
42
57
  width: 100%;
43
58
  }
59
+
44
60
  // 日期选择按钮太小问题(gcommon ui)
45
61
  .el-picker-panel__footer .el-button--mini {
46
62
  font-size: 16px;
47
63
  }
64
+
48
65
  // 显示必填标志
49
66
  .is_req {
50
67
  .required__label::before {
@@ -56,4 +73,15 @@ body .el-table colgroup.gutter {
56
73
 
57
74
  .formContent .el-form-item {
58
75
  margin-bottom: 0;
76
+ }
77
+
78
+ .operation-area-float {
79
+ float: right;
80
+ position: fixed;
81
+ bottom: 5px;
82
+ right: 4%;
83
+ }
84
+
85
+ .el-button+.el-button {
86
+ margin-left: 10px;
59
87
  }
@@ -0,0 +1,9 @@
1
+ @import "./dark-blue-var.scss";
2
+
3
+ .dark-blue {
4
+ .operation-area .el-button--primary {
5
+ border-radius: 4px;
6
+ background: $--button-opt-background-color;
7
+ border-color: $--button-opt-background-color;
8
+ }
9
+ }
@@ -0,0 +1,64 @@
1
+ .dark-blue {
2
+ $titleColor: rgba(0, 0, 0, 0.85);
3
+
4
+ el-card box-card is-always-shadow .card-radius {
5
+ border-radius: 12px
6
+ }
7
+
8
+ .form-card-header {
9
+ width: 3px;
10
+ height: 14px;
11
+ left: 0;
12
+ align-items: center;
13
+ text-align: center;
14
+ }
15
+
16
+ .form-card-header-bgc {
17
+ width: 3px;
18
+ height: 14px;
19
+ display: flex;
20
+ background-color: #3D4CF2
21
+ }
22
+
23
+ .form-card-text {
24
+ padding-left: 8px;
25
+ font-size: 16px;
26
+ line-height: 24px;
27
+ font-weight: 500;
28
+ color: $titleColor;
29
+ display: table-cell;
30
+ position: relative;
31
+ }
32
+
33
+ .superForm {
34
+ .el-card {
35
+ border-radius: 12px;
36
+ box-shadow: 0 1px 4px 0 rgba(0, 13, 31, 0.10);
37
+ }
38
+
39
+
40
+ }
41
+
42
+
43
+ .platform-card {
44
+ .el-card__header {
45
+ height: 40px;
46
+ background: #F0F8FE;
47
+ color: #005EBA;
48
+ font-family: Source Han Sans CN;
49
+ font-weight: medium;
50
+ font-size: 14px;
51
+ text-align: left;
52
+ padding: 9px 0px 9px 20px;
53
+ }
54
+
55
+ .el-card__header>div {
56
+ line-height: 22px;
57
+ }
58
+
59
+ .card-style {
60
+ margin-top: 20px;
61
+ }
62
+ }
63
+
64
+ }
@@ -0,0 +1,10 @@
1
+ @import "./dark-blue-var.scss";
2
+
3
+ .dark-blue {
4
+
5
+ .el-checkbox__input.is-checked .el-checkbox__inner,
6
+ .el-checkbox__input.is-indeterminate .el-checkbox__inner {
7
+ background-color: $--color-primary;
8
+ border-color: $--color-primary;
9
+ }
10
+ }
@@ -0,0 +1,8 @@
1
+ /* 改变主题色变量 */
2
+ $--color-primary: #005EBA;
3
+ $--button-default-border-color: $--color-primary;
4
+ $--button-default-font-color: $--color-primary;
5
+ $--button-font-weight: regular;
6
+ $--button-default-font-color: $--color-primary;
7
+ $--button-opt-background-color:#0780ED;
8
+ $th-cell-background: #F0F8FE;
@@ -0,0 +1,21 @@
1
+ .dark-blue {
2
+ .el-dialog__header {
3
+ padding: 22px 0px 0px 24px;
4
+ }
5
+
6
+ .el-dialog__title::before {
7
+ content: "";
8
+ text-align: center;
9
+ background: #1A6BF3;
10
+ float: left;
11
+ position: relative;
12
+ border-radius: 3px;
13
+ /** 定义成 block 元素 **/
14
+ display: block;
15
+ height: 21px;
16
+ width: 4px;
17
+ margin-right: 12px;
18
+ }
19
+
20
+
21
+ }
@@ -0,0 +1,7 @@
1
+ @import "./dark-blue-var.scss";
2
+
3
+ .dark-blue {
4
+ /* 改变 icon 字体路径变量,必需 */
5
+ $--font-path: '~element-ui/lib/theme-chalk/fonts';
6
+ @import "~element-ui/packages/theme-chalk/src/index";
7
+ }
@@ -0,0 +1,71 @@
1
+ .dark-blue {
2
+ $titleColor: rgba(0, 0, 0, 0.85);
3
+
4
+ .list-file {
5
+ color: rgba(0, 13, 31, 0.45);
6
+ font-size: 14px;
7
+ cursor: pointer;
8
+ }
9
+
10
+ .form-list-file {
11
+ color: rgba(0, 0, 0, 0.65);
12
+ background: #F2F6FA;
13
+ border-radius: 6px;
14
+ font-size: 14px;
15
+ cursor: pointer;
16
+ height: 28px;
17
+ line-height: 28px;
18
+ padding: 0 8px 0 8px;
19
+ margin-right: 32px
20
+ }
21
+
22
+ .tip-font {
23
+ color: rgba(0, 0, 0, 0.65);
24
+ font-size: 14px;
25
+ }
26
+
27
+ .superForm {
28
+ .el-form-item__label {
29
+ color: rgba(0, 13, 31, 0.85);
30
+ }
31
+ }
32
+
33
+
34
+ .page-layout__title {
35
+ width: 46px;
36
+ height: 16px;
37
+ font-size: 11px;
38
+ font-weight: 500;
39
+ color: #333333;
40
+ line-height: 13px;
41
+ }
42
+
43
+ .component-type-name__title {
44
+ width: 40px;
45
+ height: 14px;
46
+ font-size: 10px;
47
+ font-weight: 500;
48
+ color: #333333;
49
+ line-height: 12px;
50
+ // -webkit-background-clip: text;
51
+ // -webkit-text-fill-color: transparent;
52
+ }
53
+
54
+ .page-layout__title::before {
55
+ content: "";
56
+ text-align: center;
57
+ background: #1A6BF3;
58
+ float: left;
59
+ position: relative;
60
+ border-radius: 3px;
61
+ /** 定义成 block 元素 **/
62
+ display: block;
63
+ // height: 21px;
64
+ // width: 4px;
65
+ margin-right: 12px;
66
+
67
+ width: 2px;
68
+ height: 16px;
69
+
70
+ }
71
+ }
@@ -0,0 +1,51 @@
1
+ .dark-blue {
2
+
3
+ .button-at-top {
4
+ width: 100%;
5
+ background: rgb(255, 255, 255);
6
+ line-height: 72px;
7
+ height: 72px;
8
+ position: absolute;
9
+ z-index: 100;
10
+ top: 0px;
11
+ left: 0px;
12
+ right: 0px;
13
+ }
14
+
15
+ .button-at-bottom {
16
+ width: 100%;
17
+ background: rgb(255, 255, 255);
18
+ line-height: 72px;
19
+ height: 72px;
20
+ position: absolute;
21
+ bottom: 0px;
22
+ z-index: 100;
23
+ left: 0px;
24
+ right: 0px;
25
+ }
26
+
27
+ .form-top-button {
28
+ height: 72px;
29
+ float: left;
30
+ padding-left: 24px;
31
+ line-height: 72px;
32
+ }
33
+
34
+ .form-bottom-button {
35
+ height: 72px;
36
+ float: right;
37
+ padding-right: 24px;
38
+ line-height: 72px;
39
+ }
40
+
41
+ .form-center-position{
42
+ position: relative;
43
+
44
+ .form-center-son{
45
+ position: absolute;
46
+ top: 50%;
47
+ left: 50%;
48
+ transform: translate(-50%,-50%);
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,247 @@
1
+ @import './element-variables.scss';
2
+ @import './table.scss';
3
+ @import './sidebar.scss';
4
+ @import './font.scss';
5
+ @import './card.scss';
6
+ @import './tab.scss';
7
+ @import './input.scss';
8
+ @import './form.scss';
9
+ @import './pagination.scss';
10
+ @import './button.scss';
11
+ @import './checkbox.scss';
12
+ @import './dialog.scss';
13
+ @import './tree.scss';
14
+ @import './scrollbar-style.scss';
15
+
16
+
17
+ .dark-blue {
18
+ font-family: cursive;
19
+ font-size: 14px;
20
+ color: rgba(0, 0, 0, 0.85);
21
+ -moz-osx-font-smoothing: grayscale;
22
+ -webkit-font-smoothing: antialiased;
23
+ text-rendering: optimizeLegibility;
24
+ height: 100%;
25
+
26
+ .el-button {
27
+ font-family: cursive;
28
+ }
29
+
30
+ .fl {
31
+ float: left;
32
+ }
33
+
34
+ .fr {
35
+ float: right;
36
+ }
37
+
38
+
39
+ html {
40
+ height: 100%;
41
+ box-sizing: border-box;
42
+ }
43
+
44
+ #app {
45
+ height: 100%;
46
+ }
47
+
48
+ a,
49
+ a:focus,
50
+ a:hover {
51
+ cursor: pointer;
52
+ color: inherit;
53
+ outline: none;
54
+ text-decoration: none;
55
+ }
56
+
57
+ div:focus {
58
+ outline: none;
59
+ }
60
+
61
+ a:focus,
62
+ a:active {
63
+ outline: none;
64
+ }
65
+
66
+ a,
67
+ a:focus,
68
+ a:hover {
69
+ cursor: pointer;
70
+ color: inherit;
71
+ text-decoration: none;
72
+ }
73
+
74
+ .clearfix {
75
+ &:after {
76
+ visibility: hidden;
77
+ display: block;
78
+ font-size: 0;
79
+ content: " ";
80
+ clear: both;
81
+ height: 0;
82
+ }
83
+ }
84
+
85
+ //main-container全局样式
86
+ .app-main {
87
+ min-height: 100%;
88
+ background: #f7f7f8;
89
+ padding: 11px 24px 11px 24px;
90
+ // padding-top: 12px;
91
+ }
92
+
93
+ .app-container {
94
+ // padding: 20px;
95
+ // padding: 0px;
96
+ padding: 20px 24px;
97
+ background: #FFFFFF;
98
+ border-radius: 6px;
99
+ box-shadow: 0px 1px 8px 0px #00000019;
100
+
101
+ .box-card {
102
+ margin: 0px 0px 0px 0px;
103
+ }
104
+ }
105
+
106
+ .no-margin {
107
+ padding: 0px 0px;
108
+ }
109
+
110
+ .add_form_height {
111
+ height: calc(100vh - 60px);
112
+ position: relative;
113
+
114
+ .add_form_center {
115
+ position: absolute;
116
+ top: 50%;
117
+ left: 50%;
118
+ transform: translate(-50%, -50%);
119
+
120
+ .add_form_buttomButton {
121
+ text-align: right;
122
+ }
123
+ }
124
+ }
125
+
126
+ .operation-area {
127
+ margin-bottom: 20px;
128
+
129
+ }
130
+
131
+ .operation-area-chart {
132
+ padding-right: 24px;
133
+ padding-top: 24px;
134
+ text-align: right;
135
+ }
136
+
137
+ // 解决tab页签中内容多时没有滚动条问题
138
+ .el-tabs__content {
139
+ flex-grow: 1;
140
+ overflow-y: auto;
141
+ }
142
+
143
+ // 解决在edge浏览器中dialog有遮罩层 或 MessageBox的$confirm时,遮罩层偏移,导致弹框中组件元素无法操作问题。
144
+ // .el-dialog__wrapper、.el-message-box__wrapper、.v-modal默认position是relative,改为absolute就不会出现偏移了。
145
+ // dialog弹框的样式
146
+ .el-dialog__wrapper {
147
+ position: absolute;
148
+ }
149
+
150
+ // MessageBox的样式,必须这样修改,否则会导致点击确定、取消按钮不好用
151
+ .el-message-box__wrapper {
152
+ position: absolute;
153
+ }
154
+
155
+ // dialog遮罩层的样式
156
+ .v-modal {
157
+ position: absolute;
158
+ }
159
+
160
+ .menu-tab-container .el-tabs__item {
161
+ height: 48px;
162
+ line-height: 48px;
163
+ }
164
+
165
+ //顶部标签字体样式
166
+ .menu-tab-container .el-tabs__item.is-active {
167
+ color: #3D4cf2;
168
+ }
169
+
170
+ //顶部标签样式
171
+ .menu-tab-container .el-tabs__active-bar {
172
+ background-color: #3D4cf2;
173
+ }
174
+
175
+ .el-pagination {
176
+ text-align: right;
177
+ }
178
+
179
+ .el-table td {
180
+ padding: 14px 0;
181
+ }
182
+
183
+ .el-table td,
184
+ .el-table th {
185
+ height: 40px;
186
+ }
187
+
188
+ .el-table th {
189
+ padding: 0;
190
+ }
191
+
192
+ /**表格内容纵向分隔线去掉**/
193
+ .el-table--border td,
194
+ .el-table--border th,
195
+ .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed {
196
+ border-right: 0px
197
+ }
198
+
199
+ /**表格标题纵向分隔线颜色调浅点儿**/
200
+ .el-table--border td,
201
+ .el-table--border th,
202
+ .el-table--border th.is-leaf,
203
+ .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed {
204
+ border-right: 1px solid #fefefe;
205
+ }
206
+
207
+ .selectPeopleClass {
208
+ color: #313233;
209
+ font-family: Source Han Sans CN;
210
+ font-weight: regular;
211
+ font-size: 14px;
212
+ line-height: 22px;
213
+ letter-spacing: 0px;
214
+ text-align: left;
215
+ }
216
+
217
+ .el-button+.el-button {
218
+ margin-left: 10px;
219
+ }
220
+
221
+ // .el-main {
222
+ // padding: 0px;
223
+ // }
224
+
225
+ // .el-aside {
226
+ // margin-right: 20px;
227
+ // }
228
+
229
+ // .three-column-layout {
230
+ // height: calc(100vh - 20px);
231
+
232
+ // .el-aside {
233
+ // margin-right: 20px;
234
+ // padding-top: 20px;
235
+ // background-color: #FFFFFF;
236
+ // box-shadow: 0px 1px 8px 0px #00000019;
237
+
238
+ // }
239
+
240
+ // .el-main {
241
+ // padding: 20px 0 0 20px;
242
+ // border-radius: 6px;
243
+ // background: #FFFFFF;
244
+ // box-shadow: 0px 1px 8px 0px #00000019;
245
+ // }
246
+ // }
247
+ }
@@ -0,0 +1,15 @@
1
+ .dark-blue {
2
+
3
+ .superForm {
4
+
5
+ .el-input--medium .el-input__inner {
6
+ height: 32px;
7
+ line-height: 32px;
8
+ }
9
+
10
+ .el-input.is-disabled .el-input__inner {
11
+ color: #606266;
12
+ }
13
+ }
14
+
15
+ }
@@ -0,0 +1,14 @@
1
+ @import "./dark-blue-var.scss";
2
+
3
+ .dark-blue {
4
+ .el-pager li:not(.disabled) {
5
+ &:hover {
6
+ //color: $--pagination-hover-color;
7
+ }
8
+
9
+ &.active {
10
+ color: #FFFFFF;
11
+ background-color: $--button-default-font-color;
12
+ }
13
+ }
14
+ }