eoss-ui 0.5.12 → 0.5.14
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/lib/button-group.js +1 -13
- package/lib/button.js +3 -15
- package/lib/cascader.js +2 -2
- package/lib/checkbox-group.js +40 -34
- package/lib/data-table-form.js +4 -15
- package/lib/data-table.js +1219 -1529
- package/lib/date-picker.js +3 -15
- package/lib/dialog.js +10 -22
- package/lib/eoss-ui.common.js +1282 -1818
- package/lib/flow-group.js +1 -13
- package/lib/flow-list.js +3 -15
- package/lib/flow.js +43 -54
- package/lib/form.js +5 -22
- package/lib/handle-user.js +1 -13
- package/lib/handler.js +1 -13
- package/lib/icons.js +2 -2
- package/lib/index.js +1 -1
- package/lib/input-number.js +3 -15
- package/lib/input.js +3 -15
- package/lib/label.js +5 -4
- package/lib/layout.js +166 -152
- package/lib/login.js +1 -13
- package/lib/main.js +15 -24
- package/lib/menu.js +2 -2
- package/lib/nav.js +10 -22
- package/lib/notify.js +2 -2
- package/lib/page.js +3 -15
- package/lib/pagination.js +2 -2
- package/lib/player.js +9 -21
- package/lib/qr-code.js +5 -17
- package/lib/radio-group.js +44 -34
- package/lib/retrial-auth.js +3 -15
- package/lib/select-ganged.js +26 -18
- package/lib/select.js +42 -31
- package/lib/selector-panel.js +7 -18
- package/lib/selector.js +5 -17
- package/lib/sizer.js +3 -15
- package/lib/steps.js +10 -22
- package/lib/switch.js +3 -15
- package/lib/table-form.js +3 -15
- package/lib/tabs-panel.js +2 -2
- package/lib/tabs.js +3 -15
- package/lib/theme-chalk/data-table.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/nav.css +1 -1
- package/lib/tips.js +3 -15
- package/lib/toolbar.js +2 -2
- package/lib/tree-group.js +3 -15
- package/lib/tree.js +3 -15
- package/lib/upload.js +4 -16
- package/lib/utils/util.js +1 -10
- package/lib/utils/webSocket.js +0 -3
- package/lib/wujie.js +3 -15
- package/lib/wxlogin.js +3 -15
- package/package.json +1 -1
- package/packages/checkbox-group/src/main.vue +20 -30
- package/packages/data-table/src/children.vue +4 -8
- package/packages/data-table/src/column.vue +522 -575
- package/packages/data-table/src/main.vue +123 -124
- package/packages/flow/src/component/taskUnionExamine.vue +1 -1
- package/packages/flow/src/main.vue +1 -1
- package/packages/flow/src/processForm.vue +1 -1
- package/packages/flow/src/processReject.vue +1 -1
- package/packages/flow/src/startTaskRead.vue +1 -1
- package/packages/form/src/main.vue +2 -7
- package/packages/label/src/main.vue +3 -2
- package/packages/main/src/main.vue +6 -4
- package/packages/radio-group/src/main.vue +20 -30
- package/packages/select/src/main.vue +20 -29
- package/packages/select-ganged/src/main.vue +1 -3
- package/packages/theme-chalk/lib/data-table.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/nav.css +1 -1
- package/packages/theme-chalk/src/data-table.scss +2 -1
- package/packages/theme-chalk/src/nav.scss +21 -2
- package/src/index.js +1 -1
- package/src/utils/util.js +1 -10
- package/src/utils/webSocket.js +0 -3
- package/packages/data-table/src/mixins/table.js +0 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.es-nav,.es-nav .es-nav-main{display:inline-block;overflow:hidden}.es-nav{transition:all .2s;-webkit-transition:all .2s}.es-nav .el-menu,.es-nav .es-menu{background-color:transparent}.es-nav .es-nav-main{position:relative;height:100%;background-color:#002766;border-right:1px solid #d9d9d9}.es-nav .es-nav-main .es-nav-title{width:100%;height:45px;font-size:
|
|
1
|
+
@charset "UTF-8";.es-nav,.es-nav .es-nav-main{display:inline-block;overflow:hidden}.es-nav{transition:all .2s;-webkit-transition:all .2s}.es-nav .el-menu,.es-nav .es-menu{background-color:transparent}.es-nav .es-nav-main{position:relative;height:100%;background-color:#002766;border-right:1px solid #d9d9d9}.es-nav .es-nav-main .es-nav-title{width:100%;height:45px;font-size:15px;line-height:30px;text-align:center;overflow:hidden;padding:7px 32px 7px 0;background-color:#096dd9;color:#fff;position:relative;z-index:1;-webkit-box-shadow:0 4px 10px 0 rgba(0,0,0,.2);box-shadow:0 4px 10px 0 rgba(0,0,0,.2)}.es-nav .es-nav-main .es-nav-title .es-collapse-handle{font-size:20px;cursor:pointer;position:absolute;right:12px;top:50%;margin-top:-10px;color:#fff}.es-nav .es-nav-main .es-nav-title .es-collapse-handle.es-icon-zengjiasuojinliang{right:50%;margin-right:-10px}.es-nav .es-nav-main .es-nav-title .el-tooltip{text-align:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:relative;padding:0 4px}.es-nav .es-nav-main .es-nav-title .el-tooltip.es-nav-title-filter{padding-right:10px;cursor:pointer}.es-nav .es-nav-main .es-nav-title .el-tooltip.es-nav-title-filter .el-icon--right{position:absolute;right:6px;top:50%;margin-top:-4px}.es-nav .es-nav-initial{width:70px;-webkit-box-shadow:0 6px 30px 5px rgba(0,0,0,.05),0 16px 24px 2px rgba(0,0,0,.04),0 8px 10px -5px rgba(0,0,0,.08);box-shadow:0 6px 30px 5px rgba(0,0,0,.05),0 16px 24px 2px rgba(0,0,0,.04),0 8px 10px -5px rgba(0,0,0,.08);position:relative;z-index:2;height:100%;background:#003a8c}.es-nav .es-nav-initial .el-menu-item,.es-nav .es-nav-initial .es-menu-vertical{height:auto}.es-nav .es-nav-initial .el-menu-item.is-active,.es-nav .es-nav-initial .es-menu-vertical.is-active{background:#096dd9}.es-nav.es-nav-biserial{position:relative}.es-nav.es-nav-biserial .es-nav-main{position:absolute;left:70px;top:0;bottom:0}.es-nav.es-nav-biserial .es-menu-title-vertical{margin-right:0}
|
|
@@ -18,10 +18,11 @@
|
|
|
18
18
|
.es-nav-title {
|
|
19
19
|
width: 100%;
|
|
20
20
|
height: 45px;
|
|
21
|
-
font-size:
|
|
22
|
-
line-height:
|
|
21
|
+
font-size: 15px;
|
|
22
|
+
line-height: 30px;
|
|
23
23
|
text-align: center;
|
|
24
24
|
overflow: hidden;
|
|
25
|
+
padding: 7px 32px 7px 0;
|
|
25
26
|
padding-right: 32px;
|
|
26
27
|
background-color: $--color-primary-light-7;
|
|
27
28
|
color: #fff;
|
|
@@ -41,6 +42,24 @@
|
|
|
41
42
|
margin-right: -10px;
|
|
42
43
|
}
|
|
43
44
|
}
|
|
45
|
+
.el-tooltip {
|
|
46
|
+
text-align: center;
|
|
47
|
+
text-overflow: ellipsis;
|
|
48
|
+
white-space: nowrap;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
position: relative;
|
|
51
|
+
padding: 0 4px;
|
|
52
|
+
&.es-nav-title-filter {
|
|
53
|
+
padding-right: 10px;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
.el-icon--right {
|
|
56
|
+
position: absolute;
|
|
57
|
+
right: 6px;
|
|
58
|
+
top: 50%;
|
|
59
|
+
margin-top: -4px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
44
63
|
}
|
|
45
64
|
}
|
|
46
65
|
.es-nav-initial {
|
package/src/index.js
CHANGED
package/src/utils/util.js
CHANGED
|
@@ -2471,7 +2471,6 @@ const setStorage = function ({ type, key, value }) {
|
|
|
2471
2471
|
* @author huangbo
|
|
2472
2472
|
* @date 2022年5月7日
|
|
2473
2473
|
* @param {String} [url] - 连接地址
|
|
2474
|
-
* @param {String} [send] - 是否发送消息
|
|
2475
2474
|
* @param {String} [take] - 订阅地址
|
|
2476
2475
|
* @param {String} [debug] - 调试
|
|
2477
2476
|
* @param {String} [interval] - 重连间隔时间
|
|
@@ -2479,16 +2478,8 @@ const setStorage = function ({ type, key, value }) {
|
|
|
2479
2478
|
* @param {Function} [error] - 重连间隔时间
|
|
2480
2479
|
**/
|
|
2481
2480
|
function socket(option, vm) {
|
|
2482
|
-
let options = {};
|
|
2483
|
-
for (let i in option) {
|
|
2484
|
-
if (i === 'send') {
|
|
2485
|
-
options['isSend'] = option[i];
|
|
2486
|
-
} else {
|
|
2487
|
-
options[i] = option[i];
|
|
2488
|
-
}
|
|
2489
|
-
}
|
|
2490
2481
|
const socket = new WebSocket();
|
|
2491
|
-
socket.init(
|
|
2482
|
+
socket.init(option, vm);
|
|
2492
2483
|
return socket;
|
|
2493
2484
|
}
|
|
2494
2485
|
/**
|
package/src/utils/webSocket.js
CHANGED
|
@@ -15,7 +15,6 @@ class WebSocket {
|
|
|
15
15
|
this.connects = 1;
|
|
16
16
|
this.recon = false;
|
|
17
17
|
this.sendTimeout = null;
|
|
18
|
-
this.isSend = false;
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
/** socket连接 */
|
|
@@ -40,9 +39,7 @@ class WebSocket {
|
|
|
40
39
|
// tryTimes定义重置
|
|
41
40
|
this.connects = 1;
|
|
42
41
|
// 订阅消息
|
|
43
|
-
// if (!this.isSend) {
|
|
44
42
|
this.subscribe();
|
|
45
|
-
// }
|
|
46
43
|
}, (error) => {
|
|
47
44
|
let diffSecond = parseInt((new Date() - this.nextDate) / 1000, 10);
|
|
48
45
|
if (this.connects > 5 && diffSecond < this.interval) {
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
methods: {
|
|
3
|
-
showTemplate(item) {
|
|
4
|
-
if (item.type) {
|
|
5
|
-
item.type.toLowerCase();
|
|
6
|
-
}
|
|
7
|
-
return (
|
|
8
|
-
this.form && (['text', 'textarea', 'checkbox', 'radio', 'select', 'handle', 'date', 'year', 'month', 'date', 'dates', 'week', 'datetime', 'datetimerange', 'daterange', 'monthrange', 'quarter', 'halfyear', 'switch', 'selector', 'ganged', 'number'].indexOf(item.type) > -1) ||
|
|
9
|
-
['space', 'slot', 'handle', 'template'].indexOf(item.type) > -1);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
};
|