eoss-ui 0.5.64 → 0.5.66

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 (52) hide show
  1. package/CHANGELOG.md +929 -0
  2. package/lib/button-group.js +209 -44
  3. package/lib/button.js +65 -37
  4. package/lib/calendar.js +18 -6
  5. package/lib/data-table.js +116 -31
  6. package/lib/eoss-ui.common.js +1143 -719
  7. package/lib/form.js +22 -7
  8. package/lib/index.js +1 -1
  9. package/lib/login.js +11 -2
  10. package/lib/main.js +183 -121
  11. package/lib/selector.js +469 -429
  12. package/lib/theme-chalk/base.css +1 -1
  13. package/lib/theme-chalk/button-group.css +1 -1
  14. package/lib/theme-chalk/button.css +1 -1
  15. package/lib/theme-chalk/calendar.css +1 -1
  16. package/lib/theme-chalk/index.css +1 -1
  17. package/lib/theme-chalk/main.css +1 -1
  18. package/lib/theme-chalk/menu.css +1 -1
  19. package/lib/theme-chalk/sizer.css +1 -1
  20. package/lib/theme-chalk/tree.css +1 -1
  21. package/lib/theme-chalk/upload.css +1 -1
  22. package/lib/toolbar.js +6 -0
  23. package/lib/upload.js +9 -7
  24. package/package.json +2 -2
  25. package/packages/button/src/main.vue +96 -56
  26. package/packages/button-group/src/main.vue +72 -8
  27. package/packages/calendar/src/main.vue +16 -5
  28. package/packages/data-table/src/children.vue +3 -1
  29. package/packages/data-table/src/column.vue +1 -1
  30. package/packages/data-table/src/main.vue +55 -10
  31. package/packages/form/src/main.vue +19 -5
  32. package/packages/login/src/main.vue +8 -0
  33. package/packages/main/src/main.vue +141 -96
  34. package/packages/selector/src/main.vue +31 -5
  35. package/packages/theme-chalk/lib/base.css +1 -1
  36. package/packages/theme-chalk/lib/button-group.css +1 -1
  37. package/packages/theme-chalk/lib/button.css +1 -1
  38. package/packages/theme-chalk/lib/calendar.css +1 -1
  39. package/packages/theme-chalk/lib/index.css +1 -1
  40. package/packages/theme-chalk/lib/main.css +1 -1
  41. package/packages/theme-chalk/lib/menu.css +1 -1
  42. package/packages/theme-chalk/lib/sizer.css +1 -1
  43. package/packages/theme-chalk/lib/tree.css +1 -1
  44. package/packages/theme-chalk/lib/upload.css +1 -1
  45. package/packages/theme-chalk/src/base.scss +3 -0
  46. package/packages/theme-chalk/src/button-group.scss +149 -0
  47. package/packages/theme-chalk/src/button.scss +6 -0
  48. package/packages/theme-chalk/src/calendar.scss +3 -0
  49. package/packages/theme-chalk/src/tree.scss +1 -0
  50. package/packages/toolbar/src/main.vue +6 -0
  51. package/packages/upload/src/main.vue +4 -2
  52. package/src/index.js +1 -1
@@ -7,3 +7,152 @@
7
7
  }
8
8
  }
9
9
  }
10
+
11
+ .el-button-group {
12
+ & > .el-button + .es-button,
13
+ & > .es-button + .el-button,
14
+ & > .es-button + .es-button {
15
+ margin-left: 0;
16
+ }
17
+ & > .es-selector {
18
+ float: left;
19
+ &:first-child {
20
+ & > .el-button {
21
+ border-top-right-radius: 0;
22
+ border-bottom-right-radius: 0;
23
+ &.el-button--danger,
24
+ &.el-button--info,
25
+ &.el-button--primary,
26
+ &.el-button--success,
27
+ &.el-button--warning {
28
+ border-right-color: rgba(255, 255, 255, 0.5);
29
+ }
30
+ }
31
+ }
32
+ &:not(:first-child):not(:last-child) {
33
+ & > .el-button {
34
+ border-radius: 0;
35
+ &.el-button--danger,
36
+ &.el-button--info,
37
+ &.el-button--primary,
38
+ &.el-button--success,
39
+ &.el-button--warning {
40
+ border-left-color: rgba(255, 255, 255, 0.5);
41
+ border-right-color: rgba(255, 255, 255, 0.5);
42
+ }
43
+ }
44
+ }
45
+ &:last-child {
46
+ & > .el-button {
47
+ border-top-left-radius: 0;
48
+ border-bottom-left-radius: 0;
49
+ &.el-button--danger,
50
+ &.el-button--info,
51
+ &.el-button--primary,
52
+ &.el-button--success,
53
+ &.el-button--warning {
54
+ border-left-color: rgba(255, 255, 255, 0.5);
55
+ }
56
+ }
57
+ }
58
+ &:not(:last-child) {
59
+ & > .el-button {
60
+ margin-right: -1px;
61
+ }
62
+ }
63
+ }
64
+ & > .es-upload {
65
+ float: left;
66
+ &:first-child {
67
+ & > .el-upload--handle > .el-upload {
68
+ & > .el-button {
69
+ border-top-right-radius: 0;
70
+ border-bottom-right-radius: 0;
71
+ &.el-button--danger,
72
+ &.el-button--info,
73
+ &.el-button--primary,
74
+ &.el-button--success,
75
+ &.el-button--warning {
76
+ border-right-color: rgba(255, 255, 255, 0.5);
77
+ }
78
+ }
79
+ }
80
+ }
81
+ &:not(:first-child):not(:last-child) {
82
+ & > .el-upload--handle > .el-upload {
83
+ & > .el-button {
84
+ border-radius: 0;
85
+ &.el-button--danger,
86
+ &.el-button--info,
87
+ &.el-button--primary,
88
+ &.el-button--success,
89
+ &.el-button--warning {
90
+ border-left-color: rgba(255, 255, 255, 0.5);
91
+ border-right-color: rgba(255, 255, 255, 0.5);
92
+ }
93
+ }
94
+ }
95
+ }
96
+ &:last-child {
97
+ & > .el-upload--handle > .el-upload {
98
+ & > .el-button {
99
+ border-top-left-radius: 0;
100
+ border-bottom-left-radius: 0;
101
+ &.el-button--danger,
102
+ &.el-button--info,
103
+ &.el-button--primary,
104
+ &.el-button--success,
105
+ &.el-button--warning {
106
+ border-left-color: rgba(255, 255, 255, 0.5);
107
+ }
108
+ }
109
+ }
110
+ }
111
+ &:not(:last-child) {
112
+ & > .el-upload--handle > .el-upload {
113
+ & > .el-button {
114
+ margin-right: -1px;
115
+ }
116
+ }
117
+ }
118
+ }
119
+ }
120
+ .es-dropdown-padding {
121
+ padding: 0;
122
+ }
123
+ .es-dropdown-upload {
124
+ & > .el-upload--handle {
125
+ display: block;
126
+ & > .el-upload {
127
+ display: block;
128
+ & > .el-button {
129
+ display: block;
130
+ width: 100%;
131
+ text-align: left;
132
+ font-size: 14px;
133
+ color: rgba(0, 0, 0, 0.75);
134
+ padding: 6px 20px;
135
+ line-height: 24px;
136
+ border: 0;
137
+ &:hover {
138
+ color: #69c0ff;
139
+ }
140
+ }
141
+ }
142
+ }
143
+ }
144
+ .es-dropdown-selector {
145
+ & > .el-button {
146
+ display: block;
147
+ width: 100%;
148
+ text-align: left;
149
+ padding: 6px 20px;
150
+ line-height: 24px;
151
+ font-size: 14px;
152
+ color: rgba(0, 0, 0, 0.75);
153
+ border: 0;
154
+ &:hover {
155
+ color: #69c0ff;
156
+ }
157
+ }
158
+ }
@@ -1,3 +1,9 @@
1
+ .es-button {
2
+ display: inline-block;
3
+ }
4
+ .es-button + .es-button,
5
+ .es-button + .el-button,
6
+ .el-button + .es-button,
1
7
  .el-button + .es-button-badge,
2
8
  .es-button-badge + .el-button {
3
9
  margin-left: 10px;
@@ -93,6 +93,9 @@
93
93
  background-color: #2778e5;
94
94
  border-radius: 15px 15px 15px 15px;
95
95
  }
96
+ &.es-disabled {
97
+ cursor: not-allowed;
98
+ }
96
99
  }
97
100
  }
98
101
  }
@@ -102,6 +102,7 @@
102
102
  }
103
103
  }
104
104
  .es-tree-label {
105
+ font-size: 12px;
105
106
  &:hover {
106
107
  text-decoration: underline;
107
108
  }
@@ -248,6 +248,12 @@ export default {
248
248
  ]);
249
249
  }
250
250
  if (type === 'search') {
251
+ for (let i = 0; i < contents.length; i++) {
252
+ if (contents[i].type == 'selector') {
253
+ contents[i].inputHeight = 32;
254
+ break;
255
+ }
256
+ }
251
257
  let itemClass = {
252
258
  radio: 'es-toolbar-item-radio',
253
259
  checkbox: 'es-toolbar-item-checkbox',
@@ -17,7 +17,7 @@
17
17
  :class="[
18
18
  {
19
19
  'es-avatar-uploader': portrait,
20
- 'es-upload-readonly': isReadonly
20
+ 'es-upload-readonly': isReadonly && !downloads
21
21
  },
22
22
  'es-upload-' + listType
23
23
  ]"
@@ -787,7 +787,9 @@ export default {
787
787
  }
788
788
  });
789
789
  this.filesTotalSize = filesTotalSize;
790
- this.$emit('input', this.lists.length ? this.lists : '');
790
+ if (this.lists.length) {
791
+ this.$emit('input', this.lists);
792
+ }
791
793
  }
792
794
  } else {
793
795
  let msg = res.msg || '系统错误,请联系管理员!';
package/src/index.js CHANGED
@@ -121,7 +121,7 @@ if (typeof window !== 'undefined' && window.Vue) {
121
121
  }
122
122
 
123
123
  export default {
124
- version: '0.5.64',
124
+ version: '0.5.66',
125
125
  install,
126
126
  Button,
127
127
  ButtonGroup,