eoss-ui 0.5.81-beta13 → 0.5.81-beta15
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 +48 -46
- package/lib/button.js +48 -46
- package/lib/checkbox-group.js +48 -46
- package/lib/config/api.js +2 -1
- package/lib/data-table-form.js +48 -46
- package/lib/data-table.js +55 -54
- package/lib/date-picker.js +48 -46
- package/lib/dialog.js +48 -46
- package/lib/eoss-ui.common.js +412 -431
- package/lib/flow-group.js +48 -46
- package/lib/flow-list.js +49 -47
- package/lib/flow.js +68 -66
- package/lib/form.js +48 -46
- package/lib/handle-user.js +49 -47
- package/lib/handler.js +48 -46
- package/lib/icon.js +48 -46
- package/lib/index.js +1 -1
- package/lib/input-number.js +48 -46
- package/lib/input.js +48 -46
- package/lib/login.js +48 -46
- package/lib/main.js +366 -384
- package/lib/menu.js +1 -1
- package/lib/nav.js +48 -46
- package/lib/notify.js +53 -51
- package/lib/page.js +48 -46
- package/lib/pagination.js +48 -46
- package/lib/player.js +48 -46
- package/lib/qr-code.js +48 -46
- package/lib/radio-group.js +48 -46
- package/lib/retrial-auth.js +49 -47
- package/lib/select-ganged.js +48 -46
- package/lib/select.js +48 -46
- package/lib/selector-panel.js +48 -46
- package/lib/selector.js +48 -46
- package/lib/sizer.js +48 -46
- package/lib/steps.js +48 -46
- package/lib/switch.js +48 -46
- package/lib/table-form.js +48 -46
- package/lib/tabs.js +48 -46
- package/lib/tips.js +48 -46
- package/lib/tree-group.js +48 -46
- package/lib/tree.js +48 -46
- package/lib/upload.js +52 -50
- package/lib/wujie.js +48 -46
- package/lib/wxlogin.js +48 -46
- package/package.json +2 -2
- package/packages/data-table/src/sizer.vue +0 -1
- package/packages/main/src/default/index.vue +76 -157
- package/packages/main/src/main.vue +141 -2
- package/packages/main/src/simplicity/index.vue +21 -122
- package/packages/main/src/simplicity/menu-list.vue +1 -1
- package/packages/main/src/simplicity/sub-menu.vue +13 -4
- package/packages/menu/src/main.vue +4 -3
- package/src/config/api.js +2 -1
- package/src/index.js +157 -157
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
></i>
|
|
33
33
|
</div>
|
|
34
34
|
<menu-list
|
|
35
|
-
:active="
|
|
35
|
+
:active="actives[0]"
|
|
36
36
|
:data="menus"
|
|
37
37
|
:menuIcon="menuIcon"
|
|
38
38
|
:color="color"
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}}</span>
|
|
71
71
|
</div>
|
|
72
72
|
<menu-list
|
|
73
|
-
:active="
|
|
73
|
+
:active="actives[index + 1]"
|
|
74
74
|
:data="[...item.children, ...item.fourthTabs]"
|
|
75
75
|
:menuIcon="menuIcon"
|
|
76
76
|
:color="color"
|
|
@@ -147,7 +147,8 @@ export default {
|
|
|
147
147
|
width: this.size,
|
|
148
148
|
subMenus: [],
|
|
149
149
|
isEnter: false,
|
|
150
|
-
timer: null
|
|
150
|
+
timer: null,
|
|
151
|
+
actives: []
|
|
151
152
|
};
|
|
152
153
|
},
|
|
153
154
|
computed: {
|
|
@@ -192,6 +193,12 @@ export default {
|
|
|
192
193
|
getData(res, n, is) {
|
|
193
194
|
this.isEnter = is;
|
|
194
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
|
+
}
|
|
195
202
|
this.subMenus.splice(n);
|
|
196
203
|
let { children, fourthTabs } = res;
|
|
197
204
|
if (
|
|
@@ -206,8 +213,9 @@ export default {
|
|
|
206
213
|
this.timer = setTimeout(() => {
|
|
207
214
|
if (res && !this.isEnter) {
|
|
208
215
|
this.subMenus = [];
|
|
216
|
+
this.actives = [];
|
|
209
217
|
}
|
|
210
|
-
},
|
|
218
|
+
}, 300);
|
|
211
219
|
}
|
|
212
220
|
}
|
|
213
221
|
},
|
|
@@ -221,6 +229,7 @@ export default {
|
|
|
221
229
|
},
|
|
222
230
|
handleLeave() {
|
|
223
231
|
this.subMenus = [];
|
|
232
|
+
this.actives = [];
|
|
224
233
|
},
|
|
225
234
|
handleEnter() {
|
|
226
235
|
this.isEnter = true;
|
|
@@ -109,9 +109,10 @@ export default {
|
|
|
109
109
|
} else {
|
|
110
110
|
this.$nextTick(() => {
|
|
111
111
|
let w = 0;
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
this.$refs.menu &&
|
|
113
|
+
Array.from(this.$refs.menu.$el.children).forEach((item) => {
|
|
114
|
+
w += item.getBoundingClientRect().width;
|
|
115
|
+
});
|
|
115
116
|
const styles = window.getComputedStyle(this.$refs.menu.$el);
|
|
116
117
|
w += parseFloat(styles.paddingLeft) + parseFloat(styles.paddingRight);
|
|
117
118
|
if (w > this.$refs.esMenu.$el.getBoundingClientRect().width) {
|
package/src/config/api.js
CHANGED
|
@@ -26,6 +26,8 @@ export const doAssistanceQrLogin = '/sso2/signIn/auth/doAssistanceQrLogin';//
|
|
|
26
26
|
|
|
27
27
|
// 框架
|
|
28
28
|
export const userOnline = 'sys/v1/mecpSys/userOnlineListJson.dhtml';// 在线人数列表
|
|
29
|
+
export const getUserAppWithTag = '/sysv3/sysUucApp/getUserAppWithTag';// 获取应用
|
|
30
|
+
export const recordUserApp = '/sysv3/sysUucApp/recordUserApp';// 记录应用点击率
|
|
29
31
|
export const mainConfig = '/main2/main/mainConfig'; // 获取主页面配置
|
|
30
32
|
export const initUserSet = '/main2/main/initUserSet'; // 获取用户信息
|
|
31
33
|
export const updateUserInfo = '/main2/main/updateUserInfo'; // 更新用户信息
|
|
@@ -37,7 +39,6 @@ export const getApplicationIdArray = '/main2/main/getApplicationIdArray'; // 获
|
|
|
37
39
|
export const getComplexApplications = '/main2/menu/getComplexApplications'; // 获取当前用户菜单; 含页签菜单格式的数据
|
|
38
40
|
export const getComplexApplicationsNew =
|
|
39
41
|
'/main2/menu/getComplexApplicationsNew'; // 获取当前用户应用菜单; 含页签菜单格式的数据
|
|
40
|
-
export const getUserAppWithTag = '/sysv3/sysUucApp/getUserAppWithTag';// 获取应用
|
|
41
42
|
export const getUserCustomInfo = '/main2/main/getUserCustomInfo'; // 获取主题样式
|
|
42
43
|
export const updateUserCustomInfo = '/main2/main/updateUserCustomInfo'; // 更新主题样式
|
|
43
44
|
// 框架 - 系统消息
|
package/src/index.js
CHANGED
|
@@ -1,112 +1,112 @@
|
|
|
1
1
|
/* Automatically generated by './build/bin/build-entry.js' */
|
|
2
2
|
|
|
3
|
-
import Button from '../packages/button/index.js';
|
|
4
|
-
import ButtonGroup from '../packages/button-group/index.js';
|
|
5
|
-
import Calendar from '../packages/calendar/index.js';
|
|
6
|
-
import Card from '../packages/card/index.js';
|
|
7
|
-
import Cascader from '../packages/cascader/index.js';
|
|
8
|
-
import CheckboxGroup from '../packages/checkbox-group/index.js';
|
|
9
|
-
import Clients from '../packages/clients/index.js';
|
|
10
|
-
import DataTable from '../packages/data-table/index.js';
|
|
11
|
-
import DataTableForm from '../packages/data-table-form/index.js';
|
|
12
|
-
import DatePicker from '../packages/date-picker/index.js';
|
|
13
|
-
import Dialog from '../packages/dialog/index.js';
|
|
14
|
-
import Enterprise from '../packages/enterprise/index.js';
|
|
15
|
-
import ErrorPage from '../packages/error-page/index.js';
|
|
16
|
-
import Form from '../packages/form/index.js';
|
|
17
|
-
import Flow from '../packages/flow/index.js';
|
|
18
|
-
import FlowGroup from '../packages/flow-group/index.js';
|
|
19
|
-
import FlowList from '../packages/flow-list/index.js';
|
|
20
|
-
import HandleUser from '../packages/handle-user/index.js';
|
|
21
|
-
import Handler from '../packages/handler/index.js';
|
|
22
|
-
import Icon from '../packages/icon/index.js';
|
|
23
|
-
import Icons from '../packages/icons/index.js';
|
|
24
|
-
import Input from '../packages/input/index.js';
|
|
25
|
-
import InputNumber from '../packages/input-number/index.js';
|
|
26
|
-
import Label from '../packages/label/index.js';
|
|
27
|
-
import Layout from '../packages/layout/index.js';
|
|
28
|
-
import Login from '../packages/login/index.js';
|
|
29
|
-
import Main from '../packages/main/index.js';
|
|
30
|
-
import Menu from '../packages/menu/index.js';
|
|
31
|
-
import Nav from '../packages/nav/index.js';
|
|
32
|
-
import Notify from '../packages/notify/index.js';
|
|
33
|
-
import Pagination from '../packages/pagination/index.js';
|
|
34
|
-
import Page from '../packages/page/index.js';
|
|
35
|
-
import Player from '../packages/player/index.js';
|
|
36
|
-
import QrCode from '../packages/qr-code/index.js';
|
|
37
|
-
import RadioGroup from '../packages/radio-group/index.js';
|
|
38
|
-
import RetrialAuth from '../packages/retrial-auth/index.js';
|
|
39
|
-
import Select from '../packages/select/index.js';
|
|
40
|
-
import SelectGanged from '../packages/select-ganged/index.js';
|
|
41
|
-
import Selector from '../packages/selector/index.js';
|
|
42
|
-
import SelectorPanel from '../packages/selector-panel/index.js';
|
|
43
|
-
import Sizer from '../packages/sizer/index.js';
|
|
44
|
-
import Steps from '../packages/steps/index.js';
|
|
45
|
-
import Switch from '../packages/switch/index.js';
|
|
46
|
-
import Tabs from '../packages/tabs/index.js';
|
|
47
|
-
import TabsPanel from '../packages/tabs-panel/index.js';
|
|
48
|
-
import Tips from '../packages/tips/index.js';
|
|
49
|
-
import Tree from '../packages/tree/index.js';
|
|
50
|
-
import TreeGroup from '../packages/tree-group/index.js';
|
|
51
|
-
import Toolbar from '../packages/toolbar/index.js';
|
|
52
|
-
import TableForm from '../packages/table-form/index.js';
|
|
53
|
-
import Upload from '../packages/upload/index.js';
|
|
54
|
-
import Wujie from '../packages/wujie/index.js';
|
|
3
|
+
import Button from '../packages/button/index.js';
|
|
4
|
+
import ButtonGroup from '../packages/button-group/index.js';
|
|
5
|
+
import Calendar from '../packages/calendar/index.js';
|
|
6
|
+
import Card from '../packages/card/index.js';
|
|
7
|
+
import Cascader from '../packages/cascader/index.js';
|
|
8
|
+
import CheckboxGroup from '../packages/checkbox-group/index.js';
|
|
9
|
+
import Clients from '../packages/clients/index.js';
|
|
10
|
+
import DataTable from '../packages/data-table/index.js';
|
|
11
|
+
import DataTableForm from '../packages/data-table-form/index.js';
|
|
12
|
+
import DatePicker from '../packages/date-picker/index.js';
|
|
13
|
+
import Dialog from '../packages/dialog/index.js';
|
|
14
|
+
import Enterprise from '../packages/enterprise/index.js';
|
|
15
|
+
import ErrorPage from '../packages/error-page/index.js';
|
|
16
|
+
import Form from '../packages/form/index.js';
|
|
17
|
+
import Flow from '../packages/flow/index.js';
|
|
18
|
+
import FlowGroup from '../packages/flow-group/index.js';
|
|
19
|
+
import FlowList from '../packages/flow-list/index.js';
|
|
20
|
+
import HandleUser from '../packages/handle-user/index.js';
|
|
21
|
+
import Handler from '../packages/handler/index.js';
|
|
22
|
+
import Icon from '../packages/icon/index.js';
|
|
23
|
+
import Icons from '../packages/icons/index.js';
|
|
24
|
+
import Input from '../packages/input/index.js';
|
|
25
|
+
import InputNumber from '../packages/input-number/index.js';
|
|
26
|
+
import Label from '../packages/label/index.js';
|
|
27
|
+
import Layout from '../packages/layout/index.js';
|
|
28
|
+
import Login from '../packages/login/index.js';
|
|
29
|
+
import Main from '../packages/main/index.js';
|
|
30
|
+
import Menu from '../packages/menu/index.js';
|
|
31
|
+
import Nav from '../packages/nav/index.js';
|
|
32
|
+
import Notify from '../packages/notify/index.js';
|
|
33
|
+
import Pagination from '../packages/pagination/index.js';
|
|
34
|
+
import Page from '../packages/page/index.js';
|
|
35
|
+
import Player from '../packages/player/index.js';
|
|
36
|
+
import QrCode from '../packages/qr-code/index.js';
|
|
37
|
+
import RadioGroup from '../packages/radio-group/index.js';
|
|
38
|
+
import RetrialAuth from '../packages/retrial-auth/index.js';
|
|
39
|
+
import Select from '../packages/select/index.js';
|
|
40
|
+
import SelectGanged from '../packages/select-ganged/index.js';
|
|
41
|
+
import Selector from '../packages/selector/index.js';
|
|
42
|
+
import SelectorPanel from '../packages/selector-panel/index.js';
|
|
43
|
+
import Sizer from '../packages/sizer/index.js';
|
|
44
|
+
import Steps from '../packages/steps/index.js';
|
|
45
|
+
import Switch from '../packages/switch/index.js';
|
|
46
|
+
import Tabs from '../packages/tabs/index.js';
|
|
47
|
+
import TabsPanel from '../packages/tabs-panel/index.js';
|
|
48
|
+
import Tips from '../packages/tips/index.js';
|
|
49
|
+
import Tree from '../packages/tree/index.js';
|
|
50
|
+
import TreeGroup from '../packages/tree-group/index.js';
|
|
51
|
+
import Toolbar from '../packages/toolbar/index.js';
|
|
52
|
+
import TableForm from '../packages/table-form/index.js';
|
|
53
|
+
import Upload from '../packages/upload/index.js';
|
|
54
|
+
import Wujie from '../packages/wujie/index.js';
|
|
55
55
|
import Wxlogin from '../packages/wxlogin/index.js';
|
|
56
56
|
|
|
57
57
|
const components = [
|
|
58
|
-
Button,
|
|
59
|
-
ButtonGroup,
|
|
60
|
-
Calendar,
|
|
61
|
-
Card,
|
|
62
|
-
Cascader,
|
|
63
|
-
CheckboxGroup,
|
|
64
|
-
Clients,
|
|
65
|
-
DataTable,
|
|
66
|
-
DataTableForm,
|
|
67
|
-
DatePicker,
|
|
68
|
-
Dialog,
|
|
69
|
-
Enterprise,
|
|
70
|
-
ErrorPage,
|
|
71
|
-
Form,
|
|
72
|
-
Flow,
|
|
73
|
-
FlowGroup,
|
|
74
|
-
FlowList,
|
|
75
|
-
HandleUser,
|
|
76
|
-
Handler,
|
|
77
|
-
Icon,
|
|
78
|
-
Icons,
|
|
79
|
-
Input,
|
|
80
|
-
InputNumber,
|
|
81
|
-
Label,
|
|
82
|
-
Layout,
|
|
83
|
-
Login,
|
|
84
|
-
Main,
|
|
85
|
-
Menu,
|
|
86
|
-
Nav,
|
|
87
|
-
Notify,
|
|
88
|
-
Pagination,
|
|
89
|
-
Page,
|
|
90
|
-
Player,
|
|
91
|
-
QrCode,
|
|
92
|
-
RadioGroup,
|
|
93
|
-
RetrialAuth,
|
|
94
|
-
Select,
|
|
95
|
-
SelectGanged,
|
|
96
|
-
Selector,
|
|
97
|
-
SelectorPanel,
|
|
98
|
-
Sizer,
|
|
99
|
-
Steps,
|
|
100
|
-
Switch,
|
|
101
|
-
Tabs,
|
|
102
|
-
TabsPanel,
|
|
103
|
-
Tips,
|
|
104
|
-
Tree,
|
|
105
|
-
TreeGroup,
|
|
106
|
-
Toolbar,
|
|
107
|
-
TableForm,
|
|
108
|
-
Upload,
|
|
109
|
-
Wujie,
|
|
58
|
+
Button,
|
|
59
|
+
ButtonGroup,
|
|
60
|
+
Calendar,
|
|
61
|
+
Card,
|
|
62
|
+
Cascader,
|
|
63
|
+
CheckboxGroup,
|
|
64
|
+
Clients,
|
|
65
|
+
DataTable,
|
|
66
|
+
DataTableForm,
|
|
67
|
+
DatePicker,
|
|
68
|
+
Dialog,
|
|
69
|
+
Enterprise,
|
|
70
|
+
ErrorPage,
|
|
71
|
+
Form,
|
|
72
|
+
Flow,
|
|
73
|
+
FlowGroup,
|
|
74
|
+
FlowList,
|
|
75
|
+
HandleUser,
|
|
76
|
+
Handler,
|
|
77
|
+
Icon,
|
|
78
|
+
Icons,
|
|
79
|
+
Input,
|
|
80
|
+
InputNumber,
|
|
81
|
+
Label,
|
|
82
|
+
Layout,
|
|
83
|
+
Login,
|
|
84
|
+
Main,
|
|
85
|
+
Menu,
|
|
86
|
+
Nav,
|
|
87
|
+
Notify,
|
|
88
|
+
Pagination,
|
|
89
|
+
Page,
|
|
90
|
+
Player,
|
|
91
|
+
QrCode,
|
|
92
|
+
RadioGroup,
|
|
93
|
+
RetrialAuth,
|
|
94
|
+
Select,
|
|
95
|
+
SelectGanged,
|
|
96
|
+
Selector,
|
|
97
|
+
SelectorPanel,
|
|
98
|
+
Sizer,
|
|
99
|
+
Steps,
|
|
100
|
+
Switch,
|
|
101
|
+
Tabs,
|
|
102
|
+
TabsPanel,
|
|
103
|
+
Tips,
|
|
104
|
+
Tree,
|
|
105
|
+
TreeGroup,
|
|
106
|
+
Toolbar,
|
|
107
|
+
TableForm,
|
|
108
|
+
Upload,
|
|
109
|
+
Wujie,
|
|
110
110
|
Wxlogin
|
|
111
111
|
];
|
|
112
112
|
|
|
@@ -121,59 +121,59 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
export default {
|
|
124
|
-
version: '0.5.81-
|
|
124
|
+
version: '0.5.81-beta15',
|
|
125
125
|
install,
|
|
126
|
-
Button,
|
|
127
|
-
ButtonGroup,
|
|
128
|
-
Calendar,
|
|
129
|
-
Card,
|
|
130
|
-
Cascader,
|
|
131
|
-
CheckboxGroup,
|
|
132
|
-
Clients,
|
|
133
|
-
DataTable,
|
|
134
|
-
DataTableForm,
|
|
135
|
-
DatePicker,
|
|
136
|
-
Dialog,
|
|
137
|
-
Enterprise,
|
|
138
|
-
ErrorPage,
|
|
139
|
-
Form,
|
|
140
|
-
Flow,
|
|
141
|
-
FlowGroup,
|
|
142
|
-
FlowList,
|
|
143
|
-
HandleUser,
|
|
144
|
-
Handler,
|
|
145
|
-
Icon,
|
|
146
|
-
Icons,
|
|
147
|
-
Input,
|
|
148
|
-
InputNumber,
|
|
149
|
-
Label,
|
|
150
|
-
Layout,
|
|
151
|
-
Login,
|
|
152
|
-
Main,
|
|
153
|
-
Menu,
|
|
154
|
-
Nav,
|
|
155
|
-
Notify,
|
|
156
|
-
Pagination,
|
|
157
|
-
Page,
|
|
158
|
-
Player,
|
|
159
|
-
QrCode,
|
|
160
|
-
RadioGroup,
|
|
161
|
-
RetrialAuth,
|
|
162
|
-
Select,
|
|
163
|
-
SelectGanged,
|
|
164
|
-
Selector,
|
|
165
|
-
SelectorPanel,
|
|
166
|
-
Sizer,
|
|
167
|
-
Steps,
|
|
168
|
-
Switch,
|
|
169
|
-
Tabs,
|
|
170
|
-
TabsPanel,
|
|
171
|
-
Tips,
|
|
172
|
-
Tree,
|
|
173
|
-
TreeGroup,
|
|
174
|
-
Toolbar,
|
|
175
|
-
TableForm,
|
|
176
|
-
Upload,
|
|
177
|
-
Wujie,
|
|
126
|
+
Button,
|
|
127
|
+
ButtonGroup,
|
|
128
|
+
Calendar,
|
|
129
|
+
Card,
|
|
130
|
+
Cascader,
|
|
131
|
+
CheckboxGroup,
|
|
132
|
+
Clients,
|
|
133
|
+
DataTable,
|
|
134
|
+
DataTableForm,
|
|
135
|
+
DatePicker,
|
|
136
|
+
Dialog,
|
|
137
|
+
Enterprise,
|
|
138
|
+
ErrorPage,
|
|
139
|
+
Form,
|
|
140
|
+
Flow,
|
|
141
|
+
FlowGroup,
|
|
142
|
+
FlowList,
|
|
143
|
+
HandleUser,
|
|
144
|
+
Handler,
|
|
145
|
+
Icon,
|
|
146
|
+
Icons,
|
|
147
|
+
Input,
|
|
148
|
+
InputNumber,
|
|
149
|
+
Label,
|
|
150
|
+
Layout,
|
|
151
|
+
Login,
|
|
152
|
+
Main,
|
|
153
|
+
Menu,
|
|
154
|
+
Nav,
|
|
155
|
+
Notify,
|
|
156
|
+
Pagination,
|
|
157
|
+
Page,
|
|
158
|
+
Player,
|
|
159
|
+
QrCode,
|
|
160
|
+
RadioGroup,
|
|
161
|
+
RetrialAuth,
|
|
162
|
+
Select,
|
|
163
|
+
SelectGanged,
|
|
164
|
+
Selector,
|
|
165
|
+
SelectorPanel,
|
|
166
|
+
Sizer,
|
|
167
|
+
Steps,
|
|
168
|
+
Switch,
|
|
169
|
+
Tabs,
|
|
170
|
+
TabsPanel,
|
|
171
|
+
Tips,
|
|
172
|
+
Tree,
|
|
173
|
+
TreeGroup,
|
|
174
|
+
Toolbar,
|
|
175
|
+
TableForm,
|
|
176
|
+
Upload,
|
|
177
|
+
Wujie,
|
|
178
178
|
Wxlogin
|
|
179
179
|
};
|