eoss-ui 0.5.59 → 0.5.61
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/CHANGELOG.md +929 -0
- package/lib/button-group.js +116 -40
- package/lib/calendar.js +43 -15
- package/lib/card.js +186 -186
- package/lib/eoss-ui.common.js +1364 -400
- package/lib/form.js +662 -2
- package/lib/icon.js +17 -5
- package/lib/index.js +1 -1
- package/lib/table-form.js +175 -5
- package/lib/theme-chalk/button.css +1 -1
- package/lib/theme-chalk/calendar.css +1 -0
- package/lib/theme-chalk/card.css +1 -1
- package/lib/theme-chalk/cascader.css +0 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/toolbar.css +1 -1
- package/lib/toolbar.js +43 -25
- package/package.json +2 -2
- package/packages/button-group/src/main.vue +47 -16
- package/packages/calendar/src/main.vue +26 -7
- package/packages/card/src/main.vue +72 -60
- package/packages/form/src/main.vue +129 -0
- package/packages/form/src/table.vue +33 -0
- package/packages/icon/src/main.vue +9 -3
- package/packages/theme-chalk/lib/button.css +1 -1
- package/packages/theme-chalk/lib/calendar.css +1 -0
- package/packages/theme-chalk/lib/card.css +1 -1
- package/packages/theme-chalk/lib/cascader.css +0 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/toolbar.css +1 -1
- package/packages/theme-chalk/src/button.scss +3 -0
- package/packages/theme-chalk/src/calendar.scss +110 -0
- package/packages/theme-chalk/src/card.scss +66 -22
- package/packages/theme-chalk/src/cascader.scss +0 -93
- package/packages/theme-chalk/src/toolbar.scss +8 -0
- package/packages/toolbar/src/main.vue +56 -32
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.es-toolbar{padding:6px 12px;border-bottom:1px solid #d9d9d9;position:relative;background-color:#fff}.es-toolbar .es-toolbar-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.es-toolbar .es-toolbar-content .es-button-content{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-toolbar .es-toolbar-content .es-button-content .el-button{padding:4px 8px}.es-toolbar .es-toolbar-content .es-button-content .el-button+.el-button,.es-toolbar .es-toolbar-content .es-button-content .el-button+.es-button-badge,.es-toolbar .es-toolbar-content .es-button-content .es-button-badge+.el-button{margin-left:6px}.es-toolbar .es-toolbar-content .es-form{background:0 0}.es-toolbar .es-toolbar-content .es-form .es-form-content{padding:0}.es-toolbar .es-toolbar-content .es-form .el-form-item{margin-bottom:0}.es-toolbar .es-toolbar-content .es-advanced-btn{margin-left:6px;height:32px}.es-toolbar .es-toolbar-content .es-advanced-btn .es-advanced-icon{margin-right:-8px}.es-toolbar .es-toolbar-content .es-toolbar-text{line-height:32px}.es-toolbar .es-toolbar-content .es-toolbar-info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.es-toolbar .es-toolbar-content .es-toolbar-info .es-info{font-size:13px;margin-left:20px}.es-toolbar .es-toolbar-content .el-menu--horizontal{border-bottom:0;position:relative;bottom:-6px}.es-toolbar .es-toolbar-content .el-menu-item{height:32px;line-height:24px}.es-toolbar .es-toolbar-content .el-input__inner,.es-toolbar .es-toolbar-content .es-checkbox-group{height:32px;line-height:32px}.es-toolbar .es-toolbar-content .es-radio-group,.es-toolbar .es-toolbar-content .es-switch-content{line-height:32px}.es-toolbar .es-toolbar-content .el-switch{top:-2px}.es-toolbar .es-toolbar-content .el-button span{line-height:14px}.es-toolbar .es-toolbar-content .el-checkbox:not(:last-child),.es-toolbar .es-toolbar-content .el-radio:not(:last-child){margin-right:8px}.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-checkbox+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-radio+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-switch+.el-form-item{margin-left:16px}.es-toolbar .es-toolbar-content .el-form-item .el-input__icon{line-height:32px;vertical-align:top}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner{width:100%;max-width:156px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange{max-width:300px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-input__icon,.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-range-separator{line-height:24px}.es-toolbar .es-form-search-small .el-form-item__content{line-height:32px!important}.es-toolbar .es-form-search-small .el-form-item__label{line-height:32px!important;height:32px}.es-toolbar .el-button.es-upload{padding:0!important;border:0!important}.es-toolbar .es-advanced-filter{margin-top:20px;z-index:9}.es-toolbar .es-advanced-filter.es-absolute{position:absolute;left:0;top:45px;right:0;margin-top:0;-webkit-box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);border-bottom-left-radius:6px;border-bottom-right-radius:6px}.es-toolbar .es-advanced-filter.es-absolute .es-form{background-color:#fff;border:1px solid #d9d9d9;border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top:0;padding:20px 20px 20px 10px}
|
|
1
|
+
@charset "UTF-8";.es-toolbar{padding:6px 12px;border-bottom:1px solid #d9d9d9;position:relative;background-color:#fff}.es-toolbar .es-toolbar-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.es-toolbar .es-toolbar-content .es-button-content{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-toolbar .es-toolbar-content .es-button-content .el-button{padding:4px 8px}.es-toolbar .es-toolbar-content .es-button-content .el-button+.el-button,.es-toolbar .es-toolbar-content .es-button-content .el-button+.es-button-badge,.es-toolbar .es-toolbar-content .es-button-content .es-button-badge+.el-button{margin-left:6px}.es-toolbar .es-toolbar-content .es-form{background:0 0}.es-toolbar .es-toolbar-content .es-form .es-form-content{padding:0}.es-toolbar .es-toolbar-content .es-form .el-form-item{margin-bottom:0}.es-toolbar .es-toolbar-content .es-advanced-btn{margin-left:6px;height:32px}.es-toolbar .es-toolbar-content .es-advanced-btn .es-advanced-icon{margin-right:-8px}.es-toolbar .es-toolbar-content .es-toolbar-text{line-height:32px}.es-toolbar .es-toolbar-content .es-toolbar-info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.es-toolbar .es-toolbar-content .es-toolbar-info .es-info{font-size:13px;margin-left:20px}.es-toolbar .es-toolbar-content .el-menu--horizontal{border-bottom:0;position:relative;bottom:-6px}.es-toolbar .es-toolbar-content .el-menu-item{height:32px;line-height:24px}.es-toolbar .es-toolbar-content .el-input__inner,.es-toolbar .es-toolbar-content .es-checkbox-group{height:32px;line-height:32px}.es-toolbar .es-toolbar-content .es-radio-group,.es-toolbar .es-toolbar-content .es-switch-content{line-height:32px}.es-toolbar .es-toolbar-content .el-switch{top:-2px}.es-toolbar .es-toolbar-content .el-button span{line-height:14px}.es-toolbar .es-toolbar-content .el-checkbox:not(:last-child),.es-toolbar .es-toolbar-content .el-radio:not(:last-child){margin-right:8px}.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-checkbox+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-radio+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-switch+.el-form-item{margin-left:16px}.es-toolbar .es-toolbar-content .el-form-item .el-input__icon{line-height:32px;vertical-align:top}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner{width:100%;max-width:156px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange{max-width:300px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-input__icon,.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-range-separator{line-height:24px}.es-toolbar .es-form-search-small .el-form-item__content{line-height:32px!important}.es-toolbar .es-form-search-small .el-form-item__label{line-height:32px!important;height:32px}.es-toolbar .el-button.es-upload{padding:0!important;border:0!important}.es-toolbar .es-advanced-filter{margin-top:20px;z-index:9}.es-toolbar .es-advanced-filter.es-absolute{position:absolute;left:0;top:45px;right:0;margin-top:0;-webkit-box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);border-bottom-left-radius:6px;border-bottom-right-radius:6px}.es-toolbar .es-advanced-filter.es-absolute .es-form{background-color:#fff;border:1px solid #d9d9d9;border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top:0;padding:20px 20px 20px 10px}.es-toolbar .es-toolbar-button-group .el-button--medium{border-radius:3px!important}.es-toolbar .es-toolbar-button-group .el-dropdown{margin-left:6px}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
.es-calendar {
|
|
2
|
+
background-color: #fff;
|
|
3
|
+
.es-calendar-title {
|
|
4
|
+
height: 44px;
|
|
5
|
+
padding: 12px 30px;
|
|
6
|
+
background-color: #ffffff;
|
|
7
|
+
font-family: PingFang SC, PingFang SC;
|
|
8
|
+
font-weight: 400;
|
|
9
|
+
font-size: 14px;
|
|
10
|
+
color: #262626;
|
|
11
|
+
line-height: 20px;
|
|
12
|
+
text-align: center;
|
|
13
|
+
position: relative;
|
|
14
|
+
display: flex;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
.es-calendar-prev,
|
|
17
|
+
.es-calendar-next {
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
color: #8c8c8c;
|
|
21
|
+
line-height: 20px;
|
|
22
|
+
}
|
|
23
|
+
.es-calendar-prev {
|
|
24
|
+
margin-right: 8px;
|
|
25
|
+
}
|
|
26
|
+
.es-calendar-next {
|
|
27
|
+
margin-left: 8px;
|
|
28
|
+
}
|
|
29
|
+
.es-title {
|
|
30
|
+
.es-calendar-picker {
|
|
31
|
+
.el-input__inner {
|
|
32
|
+
width: 76px;
|
|
33
|
+
height: 20px;
|
|
34
|
+
line-height: 20px;
|
|
35
|
+
text-align: center;
|
|
36
|
+
padding: 0;
|
|
37
|
+
border: 0 !important;
|
|
38
|
+
box-shadow: none !important;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
}
|
|
41
|
+
.el-input__prefix,
|
|
42
|
+
.el-input__suffix {
|
|
43
|
+
display: none;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
.es-calendar-weeks {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-wrap: wrap;
|
|
51
|
+
margin-bottom: 4px;
|
|
52
|
+
.es-week {
|
|
53
|
+
width: (100% / 7);
|
|
54
|
+
height: 32px;
|
|
55
|
+
text-align: center;
|
|
56
|
+
line-height: 32px;
|
|
57
|
+
font-weight: 400;
|
|
58
|
+
font-size: 14px;
|
|
59
|
+
color: #8c8c8c;
|
|
60
|
+
font-weight: bold;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
.es-calendar-days {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-wrap: wrap;
|
|
66
|
+
.es-day {
|
|
67
|
+
width: (100% / 7);
|
|
68
|
+
height: 32px;
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
.es-day-item {
|
|
73
|
+
width: 28px;
|
|
74
|
+
height: 28px;
|
|
75
|
+
font-weight: 400;
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
color: #262626;
|
|
78
|
+
text-align: center;
|
|
79
|
+
line-height: 28px;
|
|
80
|
+
position: relative;
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
&.es-disabled-day {
|
|
83
|
+
color: #bfbfbf;
|
|
84
|
+
}
|
|
85
|
+
&.es-today {
|
|
86
|
+
color: #2778e5;
|
|
87
|
+
border: 1px solid #2778e5;
|
|
88
|
+
line-height: 26px;
|
|
89
|
+
border-radius: 15px 15px 15px 15px;
|
|
90
|
+
}
|
|
91
|
+
&.es-select {
|
|
92
|
+
color: #fff;
|
|
93
|
+
background-color: #2778e5;
|
|
94
|
+
border-radius: 15px 15px 15px 15px;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
.es-calendar-switch {
|
|
100
|
+
height: 22px;
|
|
101
|
+
line-height: 22px;
|
|
102
|
+
font-weight: bold;
|
|
103
|
+
text-align: center;
|
|
104
|
+
color: #8c8c8c;
|
|
105
|
+
.es-switch-icon {
|
|
106
|
+
font-size: 14px;
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -1,50 +1,88 @@
|
|
|
1
1
|
@import './common/var.scss';
|
|
2
2
|
.es-card {
|
|
3
|
+
padding: 10px 20px 6px 20px;
|
|
4
|
+
position: relative;
|
|
5
|
+
&:not(.es-card-border-none):before {
|
|
6
|
+
content: '';
|
|
7
|
+
display: block;
|
|
8
|
+
height: 1px;
|
|
9
|
+
background-color: #d9d9d9;
|
|
10
|
+
position: absolute;
|
|
11
|
+
left: 0;
|
|
12
|
+
top: 50px;
|
|
13
|
+
right: 0;
|
|
14
|
+
}
|
|
3
15
|
.el-card__header {
|
|
4
|
-
padding:
|
|
16
|
+
padding: 0;
|
|
17
|
+
}
|
|
18
|
+
.el-card__body {
|
|
19
|
+
padding: 16px 0;
|
|
5
20
|
}
|
|
6
21
|
.es-card-header {
|
|
7
22
|
position: relative;
|
|
8
|
-
|
|
9
|
-
line-height: 28px;
|
|
23
|
+
line-height: 40px;
|
|
10
24
|
display: flex;
|
|
11
|
-
|
|
12
|
-
|
|
25
|
+
.es-icon {
|
|
26
|
+
line-height: 40px;
|
|
27
|
+
}
|
|
28
|
+
&.es-card-ornament-bar {
|
|
29
|
+
padding-left: 10px;
|
|
30
|
+
&:before {
|
|
31
|
+
content: '';
|
|
32
|
+
display: block;
|
|
33
|
+
height: 20px;
|
|
34
|
+
width: 4px;
|
|
35
|
+
display: inline-block;
|
|
36
|
+
position: absolute;
|
|
37
|
+
left: 0;
|
|
38
|
+
top: 50%;
|
|
39
|
+
margin-top: -10px;
|
|
40
|
+
border-radius: 2px;
|
|
41
|
+
background-color: $--color-primary;
|
|
42
|
+
}
|
|
13
43
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
44
|
+
&.es-card-ornament-chunk {
|
|
45
|
+
padding-left: 20px;
|
|
46
|
+
&::before,
|
|
47
|
+
&::after {
|
|
48
|
+
content: '';
|
|
49
|
+
display: block;
|
|
50
|
+
width: 10px;
|
|
51
|
+
height: 10px;
|
|
52
|
+
background-color: #d7e0f4;
|
|
53
|
+
position: absolute;
|
|
54
|
+
left: 6px;
|
|
55
|
+
top: 11px;
|
|
56
|
+
}
|
|
57
|
+
&::after {
|
|
58
|
+
background-color: $--color-primary;
|
|
59
|
+
left: 0;
|
|
60
|
+
top: 17px;
|
|
61
|
+
}
|
|
24
62
|
}
|
|
25
63
|
.es-header-text {
|
|
64
|
+
font-size: 15px;
|
|
65
|
+
font-weight: bold;
|
|
26
66
|
margin: 0 4px;
|
|
27
|
-
|
|
28
|
-
margin-left:
|
|
67
|
+
& + .es-card-menu {
|
|
68
|
+
margin-left: 24px;
|
|
29
69
|
}
|
|
30
70
|
}
|
|
31
71
|
.es-card-menu {
|
|
32
|
-
margin-top: -8px;
|
|
33
|
-
margin-bottom: -8px;
|
|
34
72
|
border-bottom: 0;
|
|
35
73
|
.el-menu-item {
|
|
36
74
|
padding: 8px 16px;
|
|
37
|
-
height:
|
|
75
|
+
height: 40px;
|
|
38
76
|
line-height: 28px;
|
|
39
77
|
color: initial;
|
|
40
78
|
&.is-active {
|
|
41
79
|
color: $--color-primary;
|
|
42
80
|
}
|
|
43
|
-
.el-badge__content{
|
|
81
|
+
.el-badge__content {
|
|
44
82
|
top: 6px;
|
|
45
83
|
right: 0;
|
|
46
84
|
}
|
|
47
|
-
.el-badge__content:not(.is-dot){
|
|
85
|
+
.el-badge__content:not(.is-dot) {
|
|
48
86
|
width: 18px;
|
|
49
87
|
padding: 0;
|
|
50
88
|
text-align: center;
|
|
@@ -52,4 +90,10 @@
|
|
|
52
90
|
}
|
|
53
91
|
}
|
|
54
92
|
}
|
|
93
|
+
&.es-card-border-none {
|
|
94
|
+
border: 0;
|
|
95
|
+
.el-card__header {
|
|
96
|
+
border: 0;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
55
99
|
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
.es-calendar {
|
|
2
|
-
background-color: #fff;
|
|
3
|
-
.es-calendar-title {
|
|
4
|
-
height: 44px;
|
|
5
|
-
padding: 12px 30px;
|
|
6
|
-
background-color: #ffffff;
|
|
7
|
-
font-family: PingFang SC, PingFang SC;
|
|
8
|
-
font-weight: 400;
|
|
9
|
-
font-size: 14px;
|
|
10
|
-
color: #262626;
|
|
11
|
-
line-height: 20px;
|
|
12
|
-
text-align: center;
|
|
13
|
-
position: relative;
|
|
14
|
-
display: flex;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
.es-calendar-prev,
|
|
17
|
-
.es-calendar-next {
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
font-size: 14px;
|
|
20
|
-
color: #8c8c8c;
|
|
21
|
-
line-height: 20px;
|
|
22
|
-
}
|
|
23
|
-
.es-calendar-prev {
|
|
24
|
-
margin-right: 8px;
|
|
25
|
-
}
|
|
26
|
-
.es-calendar-next {
|
|
27
|
-
margin-left: 8px;
|
|
28
|
-
}
|
|
29
|
-
.es-title {
|
|
30
|
-
width: 86px;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
.es-calendar-weeks {
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-wrap: wrap;
|
|
36
|
-
.es-week {
|
|
37
|
-
width: (100% / 7);
|
|
38
|
-
height: 20px;
|
|
39
|
-
text-align: center;
|
|
40
|
-
line-height: 20px;
|
|
41
|
-
font-weight: 400;
|
|
42
|
-
font-size: 12px;
|
|
43
|
-
color: #8c8c8c;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
.es-calendar-days {
|
|
47
|
-
display: flex;
|
|
48
|
-
flex-wrap: wrap;
|
|
49
|
-
.es-day {
|
|
50
|
-
width: (100% / 7);
|
|
51
|
-
height: 44px;
|
|
52
|
-
display: flex;
|
|
53
|
-
align-items: center;
|
|
54
|
-
justify-content: center;
|
|
55
|
-
.es-day-item {
|
|
56
|
-
width: 28px;
|
|
57
|
-
height: 28px;
|
|
58
|
-
font-weight: 400;
|
|
59
|
-
font-size: 14px;
|
|
60
|
-
color: #262626;
|
|
61
|
-
text-align: center;
|
|
62
|
-
line-height: 28px;
|
|
63
|
-
position: relative;
|
|
64
|
-
cursor: pointer;
|
|
65
|
-
&.es-disabled-day {
|
|
66
|
-
color: #bfbfbf;
|
|
67
|
-
}
|
|
68
|
-
&.es-today {
|
|
69
|
-
color: #2778e5;
|
|
70
|
-
border: 1px solid #2778e5;
|
|
71
|
-
line-height: 26px;
|
|
72
|
-
border-radius: 15px 15px 15px 15px;
|
|
73
|
-
}
|
|
74
|
-
&.es-select {
|
|
75
|
-
color: #fff;
|
|
76
|
-
background-color: #2778e5;
|
|
77
|
-
border-radius: 15px 15px 15px 15px;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
.es-calendar-switch {
|
|
83
|
-
height: 22px;
|
|
84
|
-
line-height: 22px;
|
|
85
|
-
font-weight: bold;
|
|
86
|
-
text-align: center;
|
|
87
|
-
color: #8c8c8c;
|
|
88
|
-
.es-switch-icon {
|
|
89
|
-
font-size: 14px;
|
|
90
|
-
cursor: pointer;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
@@ -134,7 +134,8 @@ export default {
|
|
|
134
134
|
let filter = [];
|
|
135
135
|
|
|
136
136
|
this.contents.forEach((items) => {
|
|
137
|
-
let { config, type, reset, multiCondition, contents, ...other } =
|
|
137
|
+
let { config, type, reset, multiCondition, contents, group, ...other } =
|
|
138
|
+
items;
|
|
138
139
|
if (type === 'text') {
|
|
139
140
|
text = [
|
|
140
141
|
h(
|
|
@@ -151,41 +152,64 @@ export default {
|
|
|
151
152
|
)
|
|
152
153
|
];
|
|
153
154
|
}
|
|
154
|
-
if (
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
155
|
+
if (
|
|
156
|
+
type === 'button' ||
|
|
157
|
+
type === 'button-group' ||
|
|
158
|
+
type === 'buttonGroup'
|
|
159
|
+
) {
|
|
160
|
+
if (type === 'button-group' || type === 'buttonGroup' || group) {
|
|
161
|
+
buttons = [
|
|
162
|
+
h('es-button-group', {
|
|
163
|
+
class: 'es-toolbar-button-group',
|
|
164
|
+
props: {
|
|
165
|
+
moreText: '更多',
|
|
166
|
+
size: 'medium',
|
|
167
|
+
...other,
|
|
168
|
+
contents: contents
|
|
169
|
+
},
|
|
170
|
+
on: {
|
|
171
|
+
handleClick: (res) => {
|
|
172
|
+
this.handleClick(res.handle);
|
|
166
173
|
}
|
|
167
|
-
}
|
|
168
|
-
)
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
+
}
|
|
175
|
+
})
|
|
176
|
+
];
|
|
177
|
+
} else {
|
|
178
|
+
contents.forEach((item) => {
|
|
179
|
+
if (!item.hide && (item.upload || (item.code && item.ownId))) {
|
|
180
|
+
buttons.push(
|
|
181
|
+
h('es-upload', {
|
|
182
|
+
class: 'el-button',
|
|
174
183
|
attrs: {
|
|
175
184
|
...item,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
this.handleClick(item);
|
|
181
|
-
}
|
|
185
|
+
method: 'post',
|
|
186
|
+
btnSize: 'medium',
|
|
187
|
+
showFileList: false,
|
|
188
|
+
selectType: item.type ? item.type : ''
|
|
182
189
|
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
190
|
+
})
|
|
191
|
+
);
|
|
192
|
+
} else {
|
|
193
|
+
buttons.push(
|
|
194
|
+
h(
|
|
195
|
+
'es-button',
|
|
196
|
+
{
|
|
197
|
+
attrs: {
|
|
198
|
+
...item,
|
|
199
|
+
size: 'medium'
|
|
200
|
+
},
|
|
201
|
+
on: {
|
|
202
|
+
click: () => {
|
|
203
|
+
this.handleClick(item);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
item.text
|
|
208
|
+
)
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
}
|
|
189
213
|
}
|
|
190
214
|
if (type === 'tabs') {
|
|
191
215
|
buttons = buttons.concat([
|