eoss-ui 0.5.44 → 0.5.46
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 +16 -0
- package/lib/button.js +157 -144
- package/lib/calendar.js +769 -0
- package/lib/cascader.js +2 -2
- package/lib/checkbox-group.js +20 -2
- package/lib/clients.js +2 -2
- package/lib/data-table-form.js +52 -13
- package/lib/data-table.js +33 -7
- package/lib/date-picker.js +18 -2
- package/lib/dialog.js +30 -13
- package/lib/enterprise.js +2 -2
- package/lib/eoss-ui.common.js +1324 -730
- package/lib/error-page.js +2 -2
- package/lib/flow-group.js +32 -19
- package/lib/flow-list.js +18 -2
- package/lib/flow.js +16 -0
- package/lib/form.js +231 -231
- package/lib/handle-user.js +25 -10
- package/lib/handler.js +24 -5
- package/lib/icons.js +2 -2
- package/lib/index.js +1 -1
- package/lib/input-number.js +18 -2
- package/lib/input.js +18 -2
- package/lib/label.js +2 -2
- package/lib/login.js +16 -0
- package/lib/main.js +27 -4
- package/lib/menu.js +2 -2
- package/lib/nav.js +21 -5
- package/lib/notify.js +2 -2
- package/lib/page.js +18 -2
- package/lib/pagination.js +2 -2
- package/lib/player.js +18 -2
- package/lib/qr-code.js +18 -2
- package/lib/radio-group.js +18 -2
- package/lib/retrial-auth.js +22 -8
- package/lib/select-ganged.js +18 -2
- package/lib/select.js +18 -2
- package/lib/selector-panel.js +16 -0
- package/lib/selector.js +18 -2
- package/lib/sizer.js +25 -9
- package/lib/steps.js +18 -2
- package/lib/switch.js +18 -2
- package/lib/table-form.js +18 -2
- package/lib/tabs-panel.js +2 -2
- package/lib/tabs.js +18 -2
- package/lib/theme-chalk/calendar.css +0 -0
- package/lib/theme-chalk/cascader.css +1 -0
- package/lib/theme-chalk/data-table-form.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/toolbar.css +1 -1
- package/lib/tips.js +18 -2
- package/lib/toolbar.js +24 -34
- package/lib/tree-group.js +18 -2
- package/lib/tree.js +18 -2
- package/lib/upload.js +22 -15
- package/lib/utils/util.js +16 -0
- package/lib/wujie.js +18 -2
- package/lib/wxlogin.js +18 -2
- package/package.json +2 -2
- package/packages/button/src/main.vue +6 -9
- package/packages/calendar/index.js +5 -0
- package/packages/calendar/src/main.vue +386 -0
- package/packages/data-table/src/main.vue +12 -2
- package/packages/data-table-form/src/main.vue +30 -23
- package/packages/data-table-form/src/table.vue +16 -3
- package/packages/dialog/src/main.vue +9 -9
- package/packages/flow-group/src/main.vue +12 -15
- package/packages/handle-user/src/main.vue +5 -6
- package/packages/handler/src/main.vue +4 -1
- package/packages/main/src/main.vue +9 -2
- package/packages/nav/src/main.vue +1 -1
- package/packages/retrial-auth/src/main.vue +2 -4
- package/packages/theme-chalk/lib/calendar.css +0 -0
- package/packages/theme-chalk/lib/cascader.css +1 -0
- package/packages/theme-chalk/lib/data-table-form.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/toolbar.css +1 -1
- package/packages/theme-chalk/src/calendar.scss +0 -0
- package/packages/theme-chalk/src/cascader.scss +93 -0
- package/packages/theme-chalk/src/data-table-form.scss +11 -0
- package/packages/theme-chalk/src/index.scss +2 -1
- package/packages/theme-chalk/src/toolbar.scss +16 -11
- package/packages/toolbar/src/main.vue +44 -49
- package/packages/upload/src/main.vue +1 -10
- package/src/index.js +7 -4
- package/src/utils/util.js +16 -0
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
:storage="storage"
|
|
66
66
|
:notice="notice"
|
|
67
67
|
:data="handleData"
|
|
68
|
-
:max-height="
|
|
68
|
+
:max-height="_maxHeight"
|
|
69
69
|
@select="
|
|
70
70
|
(res) => {
|
|
71
71
|
handleSelect(res, 'sys');
|
|
@@ -267,7 +267,7 @@ import store from 'eoss-ui/src/utils/store';
|
|
|
267
267
|
import util from 'eoss-ui/src/utils/util';
|
|
268
268
|
const isIE = navigator.userAgent.indexOf('MSIE') != -1;
|
|
269
269
|
const log = util.getParams('console');
|
|
270
|
-
const appCode = util.getParams('appCode');
|
|
270
|
+
const appCode = util.getParams('appCode') || util.getParams('appcode');
|
|
271
271
|
export default {
|
|
272
272
|
name: 'EsMain',
|
|
273
273
|
inheritAttrs: false,
|
|
@@ -421,6 +421,13 @@ export default {
|
|
|
421
421
|
showHeader() {
|
|
422
422
|
return this.isHeader == 0 ? false : this.header;
|
|
423
423
|
},
|
|
424
|
+
_maxHeight() {
|
|
425
|
+
if (this.maxHeight) {
|
|
426
|
+
return this.maxHeight;
|
|
427
|
+
}
|
|
428
|
+
console.log(document.body.clientHeight - 50);
|
|
429
|
+
return String(document.body.clientHeight - 77);
|
|
430
|
+
},
|
|
424
431
|
showSide() {
|
|
425
432
|
return this.isSide !== null ? this.isSide : this.sideNav;
|
|
426
433
|
},
|
|
@@ -109,7 +109,7 @@ export default {
|
|
|
109
109
|
let active =
|
|
110
110
|
typeof this.defaultActive === 'string'
|
|
111
111
|
? this.defaultActive
|
|
112
|
-
: this.defaultActive.length
|
|
112
|
+
: this.defaultActive && this.defaultActive.length
|
|
113
113
|
? this.defaultActive[this.defaultActive.length - 1]
|
|
114
114
|
: undefined;
|
|
115
115
|
return active;
|
|
@@ -174,8 +174,7 @@ export default {
|
|
|
174
174
|
try {
|
|
175
175
|
this.reload && util.win.top.location.reload();
|
|
176
176
|
} catch (error) {
|
|
177
|
-
this.reload && util.win.
|
|
178
|
-
util.win.postMessage({ type: 3 }, '*');
|
|
177
|
+
this.reload && util.win.postMessage({ type: 3 }, '*');
|
|
179
178
|
}
|
|
180
179
|
} else {
|
|
181
180
|
this.$message({
|
|
@@ -257,8 +256,7 @@ export default {
|
|
|
257
256
|
try {
|
|
258
257
|
this.reload && util.win.top.location.reload();
|
|
259
258
|
} catch (error) {
|
|
260
|
-
this.reload && util.win.
|
|
261
|
-
util.win.postMessage({ type: 3 }, '*');
|
|
259
|
+
this.reload && util.win.postMessage({ type: 3 }, '*');
|
|
262
260
|
}
|
|
263
261
|
} else {
|
|
264
262
|
this.scanCode = setTimeout(() => {
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.es-calendar{background-color:#fff}.es-calendar .es-calendar-title{height:44px;padding:12px 30px;background-color:#fff;font-family:PingFang SC,PingFang SC;font-weight:400;font-size:14px;color:#262626;line-height:20px;text-align:center;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.es-calendar .es-calendar-title .es-calendar-next,.es-calendar .es-calendar-title .es-calendar-prev{cursor:pointer;font-size:14px;color:#8c8c8c;line-height:20px}.es-calendar .es-calendar-title .es-calendar-prev{margin-right:8px}.es-calendar .es-calendar-title .es-calendar-next{margin-left:8px}.es-calendar .es-calendar-title .es-title{width:86px}.es-calendar .es-calendar-weeks{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.es-calendar .es-calendar-weeks .es-week{width:14.28571%;height:20px;text-align:center;line-height:20px;font-weight:400;font-size:12px;color:#8c8c8c}.es-calendar .es-calendar-days{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.es-calendar .es-calendar-days .es-day{width:14.28571%;height:44px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.es-calendar .es-calendar-days .es-day .es-day-item{width:28px;height:28px;font-weight:400;font-size:14px;color:#262626;text-align:center;line-height:28px;position:relative;cursor:pointer}.es-calendar .es-calendar-days .es-day .es-day-item.es-disabled-day{color:#bfbfbf}.es-calendar .es-calendar-days .es-day .es-day-item.es-today{color:#2778e5;border:1px solid #2778e5;line-height:26px;border-radius:15px}.es-calendar .es-calendar-days .es-day .es-day-item.es-select{color:#fff;background-color:#2778e5;border-radius:15px}.es-calendar .es-calendar-switch{height:22px;line-height:22px;font-weight:700;text-align:center;color:#8c8c8c}.es-calendar .es-calendar-switch .es-switch-icon{font-size:14px;cursor:pointer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.es-data-form,.es-data-table-form td .es-input-box,.es-data-table-form th .es-input-box{position:relative}.es-data-table-form{min-width:100%;border-color:#e1e1e1;background-color:#fff;font-size:14px;table-layout:fixed}.es-data-table-form td,.es-data-table-form th{padding:6px;line-height:28px}.es-data-table-form td.numbers,.es-data-table-form th.numbers{text-align:center}.es-data-table-form td .cell,.es-data-table-form th .cell{min-height:28px}.es-data-table-form td .cell.is-textarea,.es-data-table-form th .cell.is-textarea{line-height:20px}.es-data-table-form td .cell.es-required::before,.es-data-table-form th .cell.es-required::before{content:'*';color:#f56c6c}.es-data-table-form td .es-input-box .es-select-multiple,.es-data-table-form th .es-input-box .es-select-multiple{height:auto;min-height:40px;line-height:1;padding:4px 6px 4px 0}.es-data-table-form td .es-input-box .es-select-multiple .el-tag,.es-data-table-form th .es-input-box .es-select-multiple .el-tag{margin:2px 0 2px 6px}.es-data-table-form .es-data-form-head{background-color:#f8f8f8}.es-data-form .es-table-page{height:46px;text-align:center;border:1px solid #e1e1e1;padding:8px 12px;margin-top:-1px;background-color:#f8f8f8}.es-data-form .es-data-table-form-handle{position:fixed;opacity:0}
|
|
1
|
+
@charset "UTF-8";.es-data-form,.es-data-table-form td .es-input-box,.es-data-table-form th .es-input-box{position:relative}.es-data-table-form{min-width:100%;border-color:#e1e1e1;background-color:#fff;font-size:14px;table-layout:fixed}.es-data-table-form td,.es-data-table-form th{padding:6px;line-height:28px}.es-data-table-form td.numbers,.es-data-table-form th.numbers{text-align:center}.es-data-table-form td .cell,.es-data-table-form th .cell{min-height:28px}.es-data-table-form td .cell.is-textarea,.es-data-table-form th .cell.is-textarea{line-height:20px}.es-data-table-form td .cell.es-required::before,.es-data-table-form th .cell.es-required::before{content:'*';color:#f56c6c}.es-data-table-form td .es-input-box .es-select-multiple,.es-data-table-form th .es-input-box .es-select-multiple{height:auto;min-height:40px;line-height:1;padding:4px 6px 4px 0}.es-data-table-form td .es-input-box .es-select-multiple .el-tag,.es-data-table-form th .es-input-box .es-select-multiple .el-tag{margin:2px 0 2px 6px}.es-data-table-form .es-data-form-head{background-color:#f8f8f8}.es-data-table-form.es-data-form-full,.es-data-table-form.es-data-form-full .es-data-form{height:100%}.es-data-table-form.es-data-form-full .es-data-form.es-data-form-haspage .es-scrollbar{height:calc(100% - 46px)}.es-data-form .es-table-page{height:46px;text-align:center;border:1px solid #e1e1e1;padding:8px 12px;margin-top:-1px;background-color:#f8f8f8}.es-data-form .es-data-table-form-handle{position:fixed;opacity:0}
|