eoss-ui 0.6.18 → 0.6.20

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 (101) hide show
  1. package/lib/eoss-ui.common.js +761 -657
  2. package/lib/flow.js +619 -515
  3. package/lib/index.js +1 -1
  4. package/lib/main.js +132 -132
  5. package/lib/qr-code.js +13 -13
  6. package/lib/theme-chalk/index.css +1 -1
  7. package/lib/theme-chalk/login.css +1 -1
  8. package/package.json +157 -157
  9. package/packages/button/src/main.vue +418 -418
  10. package/packages/button-group/src/main.vue +298 -298
  11. package/packages/checkbox-group/src/main.vue +333 -333
  12. package/packages/clients/src/main.vue +144 -144
  13. package/packages/data-table/src/children.vue +39 -39
  14. package/packages/data-table/src/column.vue +983 -983
  15. package/packages/data-table/src/main.vue +1812 -1812
  16. package/packages/data-table/src/sizer.vue +195 -195
  17. package/packages/date-picker/src/main.vue +236 -236
  18. package/packages/flow/src/component/CustomPreset.vue +1 -1
  19. package/packages/flow/src/component/Preset.vue +1 -1
  20. package/packages/flow/src/component/SendMsg.vue +3 -1
  21. package/packages/flow/src/component/taskUnionExamine.vue +38 -20
  22. package/packages/flow/src/main.vue +2731 -2711
  23. package/packages/flow/src/processForm.vue +13 -2
  24. package/packages/flow/src/processReject.vue +14 -3
  25. package/packages/flow/src/startTaskRead.vue +23 -5
  26. package/packages/flow-group/src/main.vue +684 -684
  27. package/packages/form/src/main.vue +3582 -3582
  28. package/packages/form/src/table.vue +1420 -1420
  29. package/packages/handle-user/src/main.vue +134 -134
  30. package/packages/handler/src/main.vue +374 -374
  31. package/packages/icon/src/main.vue +101 -101
  32. package/packages/input/src/main.vue +356 -356
  33. package/packages/login/src/main.vue +1851 -1851
  34. package/packages/login/src/resetPassword.vue +557 -557
  35. package/packages/main/src/default/message.vue +249 -249
  36. package/packages/main/src/default/notice.vue +157 -157
  37. package/packages/main/src/default/userinfo.vue +494 -494
  38. package/packages/main/src/public/online.vue +89 -89
  39. package/packages/main/src/public/search.vue +454 -454
  40. package/packages/main/src/public/settings.vue +221 -221
  41. package/packages/main/src/simplicity/apps.vue +388 -388
  42. package/packages/main/src/simplicity/avatar.vue +82 -82
  43. package/packages/main/src/simplicity/handler.vue +183 -183
  44. package/packages/main/src/simplicity/index.vue +1930 -1930
  45. package/packages/main/src/simplicity/lists.vue +84 -84
  46. package/packages/main/src/simplicity/menu-list.vue +128 -128
  47. package/packages/main/src/simplicity/message.vue +259 -259
  48. package/packages/main/src/simplicity/notice.vue +190 -190
  49. package/packages/main/src/simplicity/router-page.vue +45 -45
  50. package/packages/main/src/simplicity/sub-menu.vue +241 -241
  51. package/packages/main/src/simplicity/user.vue +248 -248
  52. package/packages/main/src/simplicity/userinfo.vue +304 -304
  53. package/packages/menu/src/main.vue +536 -536
  54. package/packages/pagination/src/main.vue +96 -96
  55. package/packages/qr-code/src/main.vue +170 -170
  56. package/packages/radio-group/src/main.vue +319 -319
  57. package/packages/select/src/main.vue +761 -761
  58. package/packages/selector/src/main.vue +677 -677
  59. package/packages/selector-panel/src/main.vue +1020 -1020
  60. package/packages/selector-panel/src/selection.vue +160 -160
  61. package/packages/tabs/src/main.vue +788 -788
  62. package/packages/theme-chalk/lib/index.css +1 -1
  63. package/packages/theme-chalk/lib/login.css +1 -1
  64. package/packages/theme-chalk/src/base.scss +260 -260
  65. package/packages/theme-chalk/src/button-group.scss +175 -175
  66. package/packages/theme-chalk/src/calendar.scss +113 -113
  67. package/packages/theme-chalk/src/clients.scss +87 -87
  68. package/packages/theme-chalk/src/common/var.scss +1 -4
  69. package/packages/theme-chalk/src/data-table.scss +276 -276
  70. package/packages/theme-chalk/src/dialog.scss +77 -77
  71. package/packages/theme-chalk/src/flow-group.scss +110 -110
  72. package/packages/theme-chalk/src/form.scss +496 -496
  73. package/packages/theme-chalk/src/handler.scss +133 -133
  74. package/packages/theme-chalk/src/icon.scss +1745 -1745
  75. package/packages/theme-chalk/src/icons.scss +99 -99
  76. package/packages/theme-chalk/src/login.scss +917 -926
  77. package/packages/theme-chalk/src/main.scss +632 -632
  78. package/packages/theme-chalk/src/menu.scss +222 -222
  79. package/packages/theme-chalk/src/nav.scss +125 -125
  80. package/packages/theme-chalk/src/pagination.scss +29 -29
  81. package/packages/theme-chalk/src/selector-panel.scss +204 -204
  82. package/packages/theme-chalk/src/simplicity.scss +1246 -1246
  83. package/packages/theme-chalk/src/tabs.scss +87 -87
  84. package/packages/theme-chalk/src/toolbar.scss +179 -179
  85. package/packages/theme-chalk/src/tree-group.scss +72 -72
  86. package/packages/theme-chalk/src/tree.scss +165 -165
  87. package/packages/upload/src/main.vue +1313 -1313
  88. package/packages/wujie/src/main.vue +145 -145
  89. package/src/config/api.js +236 -236
  90. package/src/config/image.js +2 -2
  91. package/src/index.js +157 -157
  92. package/packages/.DS_Store +0 -0
  93. package/packages/checkbox-group/.DS_Store +0 -0
  94. package/packages/data-table/.DS_Store +0 -0
  95. package/packages/dialog/.DS_Store +0 -0
  96. package/packages/handler/.DS_Store +0 -0
  97. package/packages/login/.DS_Store +0 -0
  98. package/packages/main/.DS_Store +0 -0
  99. package/packages/main/src/.DS_Store +0 -0
  100. package/packages/theme-chalk/src/.DS_Store +0 -0
  101. package/src/.DS_Store +0 -0
@@ -1,241 +1,241 @@
1
- <template>
2
- <el-drawer
3
- class="es-simplicity-subMenus"
4
- direction="ltr"
5
- modal-class="es-simplicity-apps-modal"
6
- size="auto"
7
- :modal-append-to-body="false"
8
- :close-on-press-escape="false"
9
- :modal="false"
10
- :with-header="false"
11
- :wrapperClosable="false"
12
- :visible.sync="show"
13
- >
14
- <div
15
- class="es-simplicity-menus"
16
- :class="{ 'es-simplicity-menus-plus': mode == 'plus' }"
17
- >
18
- <div class="es-simplicity-menus-box" :style="{ width: width + 'px' }">
19
- <div class="es-simplicity-menus-title">
20
- <span class="es-simplicity-menus-title-text" v-if="!fold">{{
21
- title || text
22
- }}</span>
23
- <i
24
- class="es-icon-shouqicaidan es-simplicity-menus-title-icon"
25
- v-show="!fold"
26
- @click="handleFold(true)"
27
- ></i>
28
- <i
29
- class="es-icon-shouqicaidan-right es-simplicity-menus-title-icon"
30
- v-show="fold"
31
- @click="handleFold(false)"
32
- ></i>
33
- </div>
34
- <menu-list
35
- :active="actives[0]"
36
- :data="menus"
37
- :menuIcon="menuIcon"
38
- :color="color"
39
- :backgroundColor="backgroundColor"
40
- :fold="fold"
41
- :width="size"
42
- @menter="
43
- (res) => {
44
- this.getData(res, 0, true);
45
- }
46
- "
47
- @mleave="
48
- (res) => {
49
- this.getData(res, 0, false);
50
- }
51
- "
52
- @hover="handleHover"
53
- @command="handleCommand"
54
- ></menu-list>
55
- </div>
56
- <div
57
- class="es-simplicity-menus-view"
58
- @mouseleave="handleLeave"
59
- @mouseenter="handleEnter"
60
- v-show="subMenus.length"
61
- >
62
- <div
63
- class="es-simplicity-menus-box"
64
- v-for="(item, index) in subMenus"
65
- :key="item.id"
66
- >
67
- <div class="es-simplicity-menus-title">
68
- <span class="es-simplicity-menus-title-text">{{
69
- item.name || item.text || item.title
70
- }}</span>
71
- </div>
72
- <menu-list
73
- :active="actives[index + 1]"
74
- :data="[...item.children, ...item.fourthTabs]"
75
- :menuIcon="menuIcon"
76
- :color="color"
77
- :backgroundColor="backgroundColor"
78
- :width="size"
79
- @menter="
80
- (res) => {
81
- getData(res, index + 1, true);
82
- }
83
- "
84
- @mleave="
85
- (res) => {
86
- getData(res, index + 1, false);
87
- }
88
- "
89
- @command="handleCommand"
90
- ></menu-list>
91
- </div>
92
- </div>
93
- </div>
94
- </el-drawer>
95
- </template>
96
-
97
- <script>
98
- import MenuList from './menu-list.vue';
99
- export default {
100
- name: 'SubMenu',
101
- components: { MenuList },
102
- props: {
103
- mode: String,
104
- title: String,
105
- active: String,
106
- closed: Boolean,
107
- color: {
108
- type: [String, Array],
109
- default: '#fff'
110
- },
111
- backgroundColor: {
112
- type: [String, Array],
113
- default() {
114
- return [
115
- '#FF9C52',
116
- '#2591F7',
117
- '#17C27B',
118
- '#1265D7',
119
- '#FFC724',
120
- '#E34D59'
121
- ];
122
- }
123
- },
124
- size: {
125
- type: Number,
126
- default: 220
127
- },
128
- visible: Boolean,
129
- text: String,
130
- menuIcon: String,
131
- children: {
132
- type: Array,
133
- default() {
134
- return [];
135
- }
136
- },
137
- fourthTabs: {
138
- type: Array,
139
- default() {
140
- return [];
141
- }
142
- }
143
- },
144
- data() {
145
- return {
146
- fold: this.closed,
147
- width: this.size,
148
- subMenus: [],
149
- isEnter: false,
150
- timer: null,
151
- actives: []
152
- };
153
- },
154
- computed: {
155
- menus() {
156
- return [...this.children, ...this.fourthTabs];
157
- },
158
- show: {
159
- get() {
160
- return this.visible;
161
- },
162
- set(val) {
163
- this.$emit('update:visible', val);
164
- return val;
165
- }
166
- }
167
- },
168
- watch: {
169
- closed(val) {
170
- this.fold = val;
171
- if (val) {
172
- this.width = 48;
173
- } else {
174
- this.width = this.size;
175
- }
176
- }
177
- },
178
- created() {},
179
- mounted() {},
180
- methods: {
181
- handleFold(res) {
182
- this.fold = res;
183
- if (res) {
184
- this.width = 48;
185
- } else {
186
- this.width = this.size;
187
- }
188
- this.$emit('update:closed', res);
189
- },
190
- handleCommand(res) {
191
- this.$emit('command', res);
192
- },
193
- getData(res, n, is) {
194
- this.isEnter = is;
195
- if (is) {
196
- this.actives.splice(n);
197
- if (this.actives[n]) {
198
- this.actives[n] = res.id;
199
- } else {
200
- this.actives.push(res.id);
201
- }
202
- this.subMenus.splice(n);
203
- let { children, fourthTabs } = res;
204
- if (
205
- (children && children.length) ||
206
- (fourthTabs && fourthTabs.length)
207
- ) {
208
- this.subMenus = this.subMenus.concat(res);
209
- }
210
- } else {
211
- if (n == 0) {
212
- clearTimeout(this.timer);
213
- this.timer = setTimeout(() => {
214
- if (res && !this.isEnter) {
215
- this.subMenus = [];
216
- this.actives = [];
217
- }
218
- }, 300);
219
- }
220
- }
221
- },
222
- handleHover(res) {
223
- this.isEnter = res;
224
- //if(this)
225
- },
226
- clearSubmenu() {
227
- this.$refs.menus.clearActive();
228
- this.subMenus = [];
229
- },
230
- handleLeave() {
231
- this.subMenus = [];
232
- this.actives = [];
233
- },
234
- handleEnter() {
235
- this.isEnter = true;
236
- }
237
- }
238
- };
239
- </script>
240
-
241
- <style lang="scss" scoped></style>
1
+ <template>
2
+ <el-drawer
3
+ class="es-simplicity-subMenus"
4
+ direction="ltr"
5
+ modal-class="es-simplicity-apps-modal"
6
+ size="auto"
7
+ :modal-append-to-body="false"
8
+ :close-on-press-escape="false"
9
+ :modal="false"
10
+ :with-header="false"
11
+ :wrapperClosable="false"
12
+ :visible.sync="show"
13
+ >
14
+ <div
15
+ class="es-simplicity-menus"
16
+ :class="{ 'es-simplicity-menus-plus': mode == 'plus' }"
17
+ >
18
+ <div class="es-simplicity-menus-box" :style="{ width: width + 'px' }">
19
+ <div class="es-simplicity-menus-title">
20
+ <span class="es-simplicity-menus-title-text" v-if="!fold">{{
21
+ title || text
22
+ }}</span>
23
+ <i
24
+ class="es-icon-shouqicaidan es-simplicity-menus-title-icon"
25
+ v-show="!fold"
26
+ @click="handleFold(true)"
27
+ ></i>
28
+ <i
29
+ class="es-icon-shouqicaidan-right es-simplicity-menus-title-icon"
30
+ v-show="fold"
31
+ @click="handleFold(false)"
32
+ ></i>
33
+ </div>
34
+ <menu-list
35
+ :active="actives[0]"
36
+ :data="menus"
37
+ :menuIcon="menuIcon"
38
+ :color="color"
39
+ :backgroundColor="backgroundColor"
40
+ :fold="fold"
41
+ :width="size"
42
+ @menter="
43
+ (res) => {
44
+ this.getData(res, 0, true);
45
+ }
46
+ "
47
+ @mleave="
48
+ (res) => {
49
+ this.getData(res, 0, false);
50
+ }
51
+ "
52
+ @hover="handleHover"
53
+ @command="handleCommand"
54
+ ></menu-list>
55
+ </div>
56
+ <div
57
+ class="es-simplicity-menus-view"
58
+ @mouseleave="handleLeave"
59
+ @mouseenter="handleEnter"
60
+ v-show="subMenus.length"
61
+ >
62
+ <div
63
+ class="es-simplicity-menus-box"
64
+ v-for="(item, index) in subMenus"
65
+ :key="item.id"
66
+ >
67
+ <div class="es-simplicity-menus-title">
68
+ <span class="es-simplicity-menus-title-text">{{
69
+ item.name || item.text || item.title
70
+ }}</span>
71
+ </div>
72
+ <menu-list
73
+ :active="actives[index + 1]"
74
+ :data="[...item.children, ...item.fourthTabs]"
75
+ :menuIcon="menuIcon"
76
+ :color="color"
77
+ :backgroundColor="backgroundColor"
78
+ :width="size"
79
+ @menter="
80
+ (res) => {
81
+ getData(res, index + 1, true);
82
+ }
83
+ "
84
+ @mleave="
85
+ (res) => {
86
+ getData(res, index + 1, false);
87
+ }
88
+ "
89
+ @command="handleCommand"
90
+ ></menu-list>
91
+ </div>
92
+ </div>
93
+ </div>
94
+ </el-drawer>
95
+ </template>
96
+
97
+ <script>
98
+ import MenuList from './menu-list.vue';
99
+ export default {
100
+ name: 'SubMenu',
101
+ components: { MenuList },
102
+ props: {
103
+ mode: String,
104
+ title: String,
105
+ active: String,
106
+ closed: Boolean,
107
+ color: {
108
+ type: [String, Array],
109
+ default: '#fff'
110
+ },
111
+ backgroundColor: {
112
+ type: [String, Array],
113
+ default() {
114
+ return [
115
+ '#FF9C52',
116
+ '#2591F7',
117
+ '#17C27B',
118
+ '#1265D7',
119
+ '#FFC724',
120
+ '#E34D59'
121
+ ];
122
+ }
123
+ },
124
+ size: {
125
+ type: Number,
126
+ default: 220
127
+ },
128
+ visible: Boolean,
129
+ text: String,
130
+ menuIcon: String,
131
+ children: {
132
+ type: Array,
133
+ default() {
134
+ return [];
135
+ }
136
+ },
137
+ fourthTabs: {
138
+ type: Array,
139
+ default() {
140
+ return [];
141
+ }
142
+ }
143
+ },
144
+ data() {
145
+ return {
146
+ fold: this.closed,
147
+ width: this.size,
148
+ subMenus: [],
149
+ isEnter: false,
150
+ timer: null,
151
+ actives: []
152
+ };
153
+ },
154
+ computed: {
155
+ menus() {
156
+ return [...this.children, ...this.fourthTabs];
157
+ },
158
+ show: {
159
+ get() {
160
+ return this.visible;
161
+ },
162
+ set(val) {
163
+ this.$emit('update:visible', val);
164
+ return val;
165
+ }
166
+ }
167
+ },
168
+ watch: {
169
+ closed(val) {
170
+ this.fold = val;
171
+ if (val) {
172
+ this.width = 48;
173
+ } else {
174
+ this.width = this.size;
175
+ }
176
+ }
177
+ },
178
+ created() {},
179
+ mounted() {},
180
+ methods: {
181
+ handleFold(res) {
182
+ this.fold = res;
183
+ if (res) {
184
+ this.width = 48;
185
+ } else {
186
+ this.width = this.size;
187
+ }
188
+ this.$emit('update:closed', res);
189
+ },
190
+ handleCommand(res) {
191
+ this.$emit('command', res);
192
+ },
193
+ getData(res, n, is) {
194
+ this.isEnter = is;
195
+ if (is) {
196
+ this.actives.splice(n);
197
+ if (this.actives[n]) {
198
+ this.actives[n] = res.id;
199
+ } else {
200
+ this.actives.push(res.id);
201
+ }
202
+ this.subMenus.splice(n);
203
+ let { children, fourthTabs } = res;
204
+ if (
205
+ (children && children.length) ||
206
+ (fourthTabs && fourthTabs.length)
207
+ ) {
208
+ this.subMenus = this.subMenus.concat(res);
209
+ }
210
+ } else {
211
+ if (n == 0) {
212
+ clearTimeout(this.timer);
213
+ this.timer = setTimeout(() => {
214
+ if (res && !this.isEnter) {
215
+ this.subMenus = [];
216
+ this.actives = [];
217
+ }
218
+ }, 300);
219
+ }
220
+ }
221
+ },
222
+ handleHover(res) {
223
+ this.isEnter = res;
224
+ //if(this)
225
+ },
226
+ clearSubmenu() {
227
+ this.$refs.menus.clearActive();
228
+ this.subMenus = [];
229
+ },
230
+ handleLeave() {
231
+ this.subMenus = [];
232
+ this.actives = [];
233
+ },
234
+ handleEnter() {
235
+ this.isEnter = true;
236
+ }
237
+ }
238
+ };
239
+ </script>
240
+
241
+ <style lang="scss" scoped></style>