eoss-ui 0.5.10 → 0.5.11
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/lib/button-group.js +18 -33
- package/lib/button.js +18 -33
- package/lib/checkbox-group.js +18 -33
- package/lib/data-table-form.js +18 -33
- package/lib/data-table.js +36 -42
- package/lib/date-picker.js +18 -33
- package/lib/dialog.js +18 -33
- package/lib/eoss-ui.common.js +217 -486
- package/lib/flow-group.js +18 -33
- package/lib/flow-list.js +18 -33
- package/lib/flow.js +18 -33
- package/lib/form.js +50 -172
- package/lib/handle-user.js +18 -33
- package/lib/handler.js +18 -33
- package/lib/index.js +1 -1
- package/lib/input-number.js +18 -33
- package/lib/input.js +18 -33
- package/lib/login.js +18 -33
- package/lib/main.js +117 -282
- package/lib/nav.js +18 -33
- package/lib/page.js +18 -33
- package/lib/player.js +18 -33
- package/lib/qr-code.js +18 -33
- package/lib/radio-group.js +21 -36
- package/lib/retrial-auth.js +18 -33
- package/lib/select-ganged.js +18 -33
- package/lib/select.js +18 -33
- package/lib/selector-panel.js +18 -33
- package/lib/selector.js +18 -33
- package/lib/sizer.js +18 -33
- package/lib/steps.js +18 -33
- package/lib/switch.js +18 -33
- package/lib/table-form.js +30 -61
- package/lib/tabs.js +18 -33
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/toolbar.css +1 -1
- package/lib/tips.js +18 -33
- package/lib/toolbar.js +19 -9
- package/lib/tree-group.js +18 -33
- package/lib/tree.js +18 -33
- package/lib/upload.js +18 -33
- package/lib/utils/util.js +18 -33
- package/lib/wujie.js +18 -33
- package/lib/wxlogin.js +18 -33
- package/package.json +1 -1
- package/packages/data-table/src/main.vue +14 -6
- package/packages/form/src/main.vue +11 -46
- package/packages/form/src/table.vue +6 -11
- package/packages/main/src/main.vue +12 -150
- package/packages/radio-group/src/main.vue +1 -5
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/pagination.css +1 -1
- package/packages/theme-chalk/lib/toolbar.css +1 -1
- package/packages/theme-chalk/src/pagination.scss +8 -0
- package/packages/theme-chalk/src/toolbar.scss +1 -0
- package/packages/toolbar/src/main.vue +17 -8
- package/src/index.js +1 -1
- package/src/utils/util.js +20 -34
|
@@ -1 +1 @@
|
|
|
1
|
-
.es-pagination .el-select .el-input{width:56px}.es-pagination:not(.is-background) .btn-next,.es-pagination:not(.is-background) .btn-prev,.es-pagination:not(.is-background) li{background-color:transparent!important}
|
|
1
|
+
.es-pagination .el-select .el-input{width:56px}.es-pagination:not(.is-background) .btn-next,.es-pagination:not(.is-background) .btn-prev,.es-pagination:not(.is-background) li{background-color:transparent!important}.es-pagination button,.es-pagination span:not([class*=suffix]){height:26px;line-height:26px}.es-pagination .el-input__suffix{line-height:26px}
|
|
@@ -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-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:12px}.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-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 .el-form-item__content
|
|
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-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:12px}.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-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 .el-form-item__content{line-height:32px!important}.es-toolbar .el-form-item__label{line-height:32px!important;height:32px}.es-toolbar .el-button.es-upload{padding:0!important;border:0!important}
|
|
@@ -41,6 +41,14 @@ export default {
|
|
|
41
41
|
small: {
|
|
42
42
|
type: Boolean,
|
|
43
43
|
default: true
|
|
44
|
+
},
|
|
45
|
+
showLabel: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: false
|
|
48
|
+
},
|
|
49
|
+
labelWidth: {
|
|
50
|
+
type: String,
|
|
51
|
+
default: 'auto'
|
|
44
52
|
}
|
|
45
53
|
},
|
|
46
54
|
computed: {
|
|
@@ -226,6 +234,7 @@ export default {
|
|
|
226
234
|
)
|
|
227
235
|
]);
|
|
228
236
|
}
|
|
237
|
+
let { config, ...other } = items;
|
|
229
238
|
if (items.type === 'search') {
|
|
230
239
|
let itemClass = {
|
|
231
240
|
radio: 'es-toolbar-item-radio',
|
|
@@ -237,14 +246,12 @@ export default {
|
|
|
237
246
|
class: [
|
|
238
247
|
'es-form-search',
|
|
239
248
|
this.small ? 'es-form-search-small' : '',
|
|
240
|
-
this.
|
|
249
|
+
this.showLabel ? 'es-form-search-nobtn' : ''
|
|
241
250
|
],
|
|
242
251
|
props: {
|
|
243
|
-
showButton: items.showButton,
|
|
244
|
-
formatSubmit: items.formatSubmit,
|
|
245
|
-
...(items.config || {}),
|
|
246
252
|
size: 'medium',
|
|
247
|
-
showLabel:
|
|
253
|
+
showLabel: this.showLabel,
|
|
254
|
+
labelWidth: this.labelWidth,
|
|
248
255
|
closeDialog: false,
|
|
249
256
|
model: this.searchData,
|
|
250
257
|
contents: items.contents,
|
|
@@ -252,7 +259,9 @@ export default {
|
|
|
252
259
|
inline: true,
|
|
253
260
|
search: true,
|
|
254
261
|
isReset: items.reset,
|
|
255
|
-
showButton: this.showFormBtn
|
|
262
|
+
showButton: this.showFormBtn,
|
|
263
|
+
...other,
|
|
264
|
+
...(config || {})
|
|
256
265
|
},
|
|
257
266
|
on: {
|
|
258
267
|
submit: (data) => {
|
|
@@ -326,8 +335,8 @@ export default {
|
|
|
326
335
|
class: 'es-form-search',
|
|
327
336
|
ref: 'filter',
|
|
328
337
|
props: {
|
|
329
|
-
|
|
330
|
-
...(
|
|
338
|
+
...other,
|
|
339
|
+
...(config || {}),
|
|
331
340
|
size: 'medium',
|
|
332
341
|
closeDialog: false,
|
|
333
342
|
model: this.advancedData,
|
package/src/index.js
CHANGED
package/src/utils/util.js
CHANGED
|
@@ -663,6 +663,7 @@ const delUrlParam = function ({ url, key }) {
|
|
|
663
663
|
key.forEach(item => {
|
|
664
664
|
if (param.hasOwnProperty(item)) {
|
|
665
665
|
let reg = `${item}=${param[item]}`;
|
|
666
|
+
console.log(reg);
|
|
666
667
|
if (src.indexOf(reg + '&') > -1) {
|
|
667
668
|
src = src.replace(reg + '&', '');
|
|
668
669
|
} else if (src.indexOf('&' + reg) > -1) {
|
|
@@ -1876,7 +1877,6 @@ const isLogined = function ({
|
|
|
1876
1877
|
from,
|
|
1877
1878
|
next,
|
|
1878
1879
|
exclude = [],
|
|
1879
|
-
open,
|
|
1880
1880
|
cookie,
|
|
1881
1881
|
loginPage,
|
|
1882
1882
|
redirect
|
|
@@ -1884,24 +1884,24 @@ const isLogined = function ({
|
|
|
1884
1884
|
if (cookie === undefined) {
|
|
1885
1885
|
cookie = getParams({ name: 'cookie' });
|
|
1886
1886
|
}
|
|
1887
|
+
let pathname = win.top.location.pathname;
|
|
1887
1888
|
if (loginPage) {
|
|
1888
1889
|
sessionStorage.setItem('loginPage', loginPage);
|
|
1889
1890
|
if (!startWith(loginPage, ['http', '/'], true)) {
|
|
1890
|
-
let pathname = win.top.location.pathname;
|
|
1891
1891
|
if (pathname !== '/') {
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
loginPage =
|
|
1892
|
+
let path = pathname.split('/');
|
|
1893
|
+
path.splice(pathname.length - 1);
|
|
1894
|
+
path = path.join('/');
|
|
1895
|
+
loginPage = path + '/' + loginPage.replace('./', '');
|
|
1896
1896
|
} else {
|
|
1897
1897
|
loginPage = pathname + loginPage.replace('./', '');
|
|
1898
1898
|
}
|
|
1899
1899
|
}
|
|
1900
1900
|
}
|
|
1901
1901
|
const token = getStorage('token') || getStorage('Authorization');
|
|
1902
|
-
const logined = getStorage('logined');
|
|
1902
|
+
// const logined = getStorage('logined');
|
|
1903
1903
|
// eslint-disable-next-line eqeqeq
|
|
1904
|
-
if (token ||
|
|
1904
|
+
if (token || cookie == true || cookie == 1) {
|
|
1905
1905
|
next && next();
|
|
1906
1906
|
} else {
|
|
1907
1907
|
if (
|
|
@@ -1927,40 +1927,25 @@ const isLogined = function ({
|
|
|
1927
1927
|
deviceUnique: results.deviceUnique
|
|
1928
1928
|
}
|
|
1929
1929
|
});
|
|
1930
|
-
|
|
1930
|
+
let url = delUrlParam({
|
|
1931
|
+
url: win.top.location.href,
|
|
1932
|
+
key: ['serverId', 'authType', 'code', 'sessionId']
|
|
1933
|
+
});
|
|
1934
|
+
win.top.location.href = url;
|
|
1935
|
+
setTimeout(() => {
|
|
1936
|
+
win.top.location.reload();
|
|
1937
|
+
}, 200);
|
|
1931
1938
|
break;
|
|
1932
1939
|
case 1:
|
|
1933
1940
|
break;
|
|
1934
1941
|
case 2:
|
|
1935
1942
|
break;
|
|
1936
1943
|
case 3:
|
|
1937
|
-
let url = win.top.location.href;
|
|
1938
1944
|
const href = results.authorizeUrl.replace(
|
|
1939
1945
|
'{redirectUri}',
|
|
1940
|
-
encodeURIComponent(
|
|
1946
|
+
encodeURIComponent(win.top.location.href)
|
|
1941
1947
|
);
|
|
1942
|
-
|
|
1943
|
-
switch (to.query.openType) {
|
|
1944
|
-
case 'self':
|
|
1945
|
-
win.location.href = href;
|
|
1946
|
-
break;
|
|
1947
|
-
case 'blank':
|
|
1948
|
-
win.open(href);
|
|
1949
|
-
break;
|
|
1950
|
-
case 'top':
|
|
1951
|
-
win.top.location.href = href;
|
|
1952
|
-
break;
|
|
1953
|
-
case 'parent':
|
|
1954
|
-
win.parent.location.href = href;
|
|
1955
|
-
break;
|
|
1956
|
-
}
|
|
1957
|
-
} else {
|
|
1958
|
-
if (open) {
|
|
1959
|
-
win.open(href);
|
|
1960
|
-
} else {
|
|
1961
|
-
win.top.location.href = href;
|
|
1962
|
-
}
|
|
1963
|
-
}
|
|
1948
|
+
win.top.location.href = href;
|
|
1964
1949
|
break;
|
|
1965
1950
|
case 4:
|
|
1966
1951
|
MessageBox.alert(
|
|
@@ -2010,7 +1995,8 @@ const isLogined = function ({
|
|
|
2010
1995
|
);
|
|
2011
1996
|
}
|
|
2012
1997
|
}).catch(e => { });
|
|
2013
|
-
} else
|
|
1998
|
+
} else
|
|
1999
|
+
if (
|
|
2014
2000
|
token ||
|
|
2015
2001
|
to.path === '/' ||
|
|
2016
2002
|
to.path === '/404' ||
|