eoss-ui 0.5.32 → 0.5.34
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 +99 -96
- package/lib/button.js +99 -96
- package/lib/checkbox-group.js +102 -100
- package/lib/config/api.js +2 -0
- package/lib/data-table-form.js +100 -97
- package/lib/data-table.js +103 -100
- package/lib/date-picker.js +99 -96
- package/lib/dialog.js +107 -100
- package/lib/eoss-ui.common.js +574 -402
- package/lib/flow-group.js +168 -135
- package/lib/flow-list.js +103 -100
- package/lib/flow.js +147 -144
- package/lib/form.js +100 -97
- package/lib/handle-user.js +100 -97
- package/lib/handler.js +213 -162
- package/lib/index.js +1 -1
- package/lib/input-number.js +99 -96
- package/lib/input.js +99 -96
- package/lib/login.js +205 -114
- package/lib/main.js +117 -117
- package/lib/nav.js +99 -96
- package/lib/notify.js +103 -100
- package/lib/page.js +99 -96
- package/lib/player.js +99 -96
- package/lib/qr-code.js +99 -96
- package/lib/radio-group.js +100 -97
- package/lib/retrial-auth.js +102 -99
- package/lib/select-ganged.js +99 -96
- package/lib/select.js +100 -97
- package/lib/selector-panel.js +117 -114
- package/lib/selector.js +100 -97
- package/lib/sizer.js +101 -98
- package/lib/steps.js +99 -96
- package/lib/switch.js +99 -96
- package/lib/table-form.js +99 -96
- package/lib/tabs.js +99 -96
- package/lib/theme-chalk/handler.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/tips.js +100 -97
- package/lib/toolbar.js +24 -21
- package/lib/tree-group.js +99 -96
- package/lib/tree.js +100 -97
- package/lib/upload.js +109 -106
- package/lib/utils/util.js +1 -1
- package/lib/wujie.js +99 -96
- package/lib/wxlogin.js +99 -96
- package/package.json +2 -2
- package/packages/checkbox-group/src/main.vue +0 -1
- package/packages/dialog/src/main.vue +6 -2
- package/packages/flow-group/src/main.vue +40 -18
- package/packages/handler/src/main.vue +52 -32
- package/packages/login/src/main.vue +69 -8
- package/packages/main/src/main.vue +0 -6
- package/packages/theme-chalk/lib/handler.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/handler.scss +3 -1
- package/packages/toolbar/src/main.vue +20 -20
- package/src/config/api.js +2 -0
- package/src/index.js +1 -1
- package/src/utils/util.js +1 -1
|
@@ -65,8 +65,10 @@
|
|
|
65
65
|
.es-popper-sub-system {
|
|
66
66
|
background-color: $--color-primary-light-6 !important;
|
|
67
67
|
color: #ffff;
|
|
68
|
-
max-width: 346px;
|
|
69
68
|
min-width: unset;
|
|
69
|
+
&.is-width {
|
|
70
|
+
width: 346px;
|
|
71
|
+
}
|
|
70
72
|
.popper__arrow {
|
|
71
73
|
&::after {
|
|
72
74
|
border-bottom-color: $--color-primary-light-7 !important;
|
|
@@ -149,24 +149,25 @@ export default {
|
|
|
149
149
|
let filter = [];
|
|
150
150
|
|
|
151
151
|
this.contents.forEach((items) => {
|
|
152
|
-
|
|
152
|
+
let { config, type, reset, multiCondition, contents, ...other } = items;
|
|
153
|
+
if (type === 'text') {
|
|
153
154
|
text = [
|
|
154
155
|
h(
|
|
155
156
|
'div',
|
|
156
157
|
{ class: 'es-toolbar-text' },
|
|
157
|
-
Array.isArray(
|
|
158
|
-
?
|
|
158
|
+
Array.isArray(contents)
|
|
159
|
+
? contents.map((item) => {
|
|
159
160
|
return h('span', { class: 'es-text' }, [
|
|
160
161
|
h('span', { class: 'es-info-label' }, [`${item.label}:`]),
|
|
161
162
|
h('span', { class: 'es-info-value' }, [item.value])
|
|
162
163
|
]);
|
|
163
164
|
})
|
|
164
|
-
:
|
|
165
|
+
: contents
|
|
165
166
|
)
|
|
166
167
|
];
|
|
167
168
|
}
|
|
168
|
-
if (
|
|
169
|
-
|
|
169
|
+
if (type === 'button') {
|
|
170
|
+
contents.forEach((item) => {
|
|
170
171
|
if (!item.hide && (item.upload || (item.code && item.ownId))) {
|
|
171
172
|
buttons.push(
|
|
172
173
|
h('es-upload', {
|
|
@@ -201,7 +202,7 @@ export default {
|
|
|
201
202
|
}
|
|
202
203
|
});
|
|
203
204
|
}
|
|
204
|
-
if (
|
|
205
|
+
if (type === 'tabs') {
|
|
205
206
|
buttons = buttons.concat([
|
|
206
207
|
h(
|
|
207
208
|
'el-menu',
|
|
@@ -209,18 +210,18 @@ export default {
|
|
|
209
210
|
props: {
|
|
210
211
|
defaultActive: this.active
|
|
211
212
|
? this.active
|
|
212
|
-
:
|
|
213
|
-
?
|
|
213
|
+
: contents[0].name
|
|
214
|
+
? contents[0].name
|
|
214
215
|
: '0',
|
|
215
216
|
mode: 'horizontal'
|
|
216
217
|
},
|
|
217
218
|
on: {
|
|
218
219
|
select: (res) => {
|
|
219
|
-
this.handleSelect(
|
|
220
|
+
this.handleSelect(contents[parseInt(res, 10)], res);
|
|
220
221
|
}
|
|
221
222
|
}
|
|
222
223
|
},
|
|
223
|
-
|
|
224
|
+
contents.map((item, index) => {
|
|
224
225
|
return h(
|
|
225
226
|
'el-menu-item',
|
|
226
227
|
{
|
|
@@ -234,8 +235,7 @@ export default {
|
|
|
234
235
|
)
|
|
235
236
|
]);
|
|
236
237
|
}
|
|
237
|
-
|
|
238
|
-
if (items.type === 'search') {
|
|
238
|
+
if (type === 'search') {
|
|
239
239
|
let itemClass = {
|
|
240
240
|
radio: 'es-toolbar-item-radio',
|
|
241
241
|
checkbox: 'es-toolbar-item-checkbox',
|
|
@@ -254,18 +254,18 @@ export default {
|
|
|
254
254
|
labelWidth: this.labelWidth,
|
|
255
255
|
closeDialog: false,
|
|
256
256
|
model: this.searchData,
|
|
257
|
-
contents:
|
|
257
|
+
contents: contents,
|
|
258
258
|
itemClass: itemClass,
|
|
259
259
|
inline: true,
|
|
260
260
|
search: true,
|
|
261
|
-
isReset:
|
|
261
|
+
isReset: reset,
|
|
262
262
|
showButton: this.showFormBtn,
|
|
263
263
|
...other,
|
|
264
264
|
...(config || {})
|
|
265
265
|
},
|
|
266
266
|
on: {
|
|
267
267
|
submit: (data) => {
|
|
268
|
-
this.hanleSearch(data,
|
|
268
|
+
this.hanleSearch(data, multiCondition);
|
|
269
269
|
},
|
|
270
270
|
reset: this.hanleReset,
|
|
271
271
|
change: this.handleChange
|
|
@@ -273,12 +273,12 @@ export default {
|
|
|
273
273
|
})
|
|
274
274
|
];
|
|
275
275
|
}
|
|
276
|
-
if (
|
|
276
|
+
if (type === 'info') {
|
|
277
277
|
info = [
|
|
278
278
|
h(
|
|
279
279
|
'div',
|
|
280
280
|
{ class: 'es-toolbar-info' },
|
|
281
|
-
|
|
281
|
+
contents.map((item) => {
|
|
282
282
|
return h('span', { class: 'es-info' }, [
|
|
283
283
|
h('span', { class: 'es-info-label' }, [`${item.label}:`]),
|
|
284
284
|
h('span', { class: 'es-info-value' }, [item.value])
|
|
@@ -287,7 +287,7 @@ export default {
|
|
|
287
287
|
)
|
|
288
288
|
];
|
|
289
289
|
}
|
|
290
|
-
if (
|
|
290
|
+
if (type === 'filter') {
|
|
291
291
|
info.push(
|
|
292
292
|
h(
|
|
293
293
|
'el-button',
|
|
@@ -340,7 +340,7 @@ export default {
|
|
|
340
340
|
size: 'medium',
|
|
341
341
|
closeDialog: false,
|
|
342
342
|
model: this.advancedData,
|
|
343
|
-
contents:
|
|
343
|
+
contents: contents
|
|
344
344
|
},
|
|
345
345
|
on: {
|
|
346
346
|
submit: this.hanleSubmit,
|
package/src/config/api.js
CHANGED
|
@@ -22,6 +22,8 @@ export const initRetrialAuth = '/sso2/retrialAuth/initRetrialAuth'; // 初始化
|
|
|
22
22
|
export const getRetrialAuthCode = '/sso2/retrialAuth/getRetrialAuthCode'; // 获取二级身份验证验证码
|
|
23
23
|
export const scanCodeRetrialAuth = '/sso2/retrialAuth/scanCodeRetrialAuth';// 二维码扫码验证(二级权限验证)
|
|
24
24
|
export const codeRetrialAuth = '/sso2/retrialAuth/codeRetrialAuth';// 二级身份验证-验证码验证
|
|
25
|
+
export const doAssistanceQrLogin = '/sso2/signIn/auth/doAssistanceQrLogin';// 二级身份验证-验证码验证
|
|
26
|
+
|
|
25
27
|
// 框架
|
|
26
28
|
export const mainConfig = '/main2/main/mainConfig'; // 获取主页面配置
|
|
27
29
|
export const initUserSet = '/main2/main/initUserSet'; // 获取用户信息
|
package/src/index.js
CHANGED
package/src/utils/util.js
CHANGED
|
@@ -1858,7 +1858,7 @@ const indexOfObj = function (arry, target, key) {
|
|
|
1858
1858
|
* @param {Object} [obj] -
|
|
1859
1859
|
**/
|
|
1860
1860
|
const isExist = function(obj) {
|
|
1861
|
-
return obj !== undefined && obj !== null && obj
|
|
1861
|
+
return obj !== undefined && obj !== null && obj !== '';
|
|
1862
1862
|
};
|
|
1863
1863
|
|
|
1864
1864
|
/**
|