iov-design 2.15.45 → 2.15.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/dialog.js +49 -3
- package/lib/empty.js +4 -1
- package/lib/index.js +1 -1
- package/lib/iov-design.common.js +60 -11
- package/lib/message.js +6 -6
- package/lib/theme-chalk/alert.css +1 -1
- package/lib/theme-chalk/dialog.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/message.css +1 -1
- package/lib/theme-chalk/notification.css +1 -1
- package/package.json +1 -1
- package/packages/dialog/src/component.vue +44 -4
- package/packages/empty/src/index.vue +4 -1
- package/packages/message/src/main.js +1 -1
- package/packages/message/src/main.vue +6 -6
- package/packages/tabs/src/tabs.vue +196 -196
- package/packages/theme-chalk/src/alert.scss +21 -18
- package/packages/theme-chalk/src/common/var.scss +1 -34
- package/packages/theme-chalk/src/dialog.scss +16 -6
- package/packages/theme-chalk/src/message-box.scss +207 -207
- package/packages/theme-chalk/src/message.scss +28 -37
- package/packages/theme-chalk/src/tabs.scss +686 -686
- package/src/index.js +1 -1
package/lib/iov-design.common.js
CHANGED
|
@@ -1275,6 +1275,7 @@ var componentvue_type_template_id_60140e62_render = function() {
|
|
|
1275
1275
|
? _c(
|
|
1276
1276
|
"div",
|
|
1277
1277
|
{
|
|
1278
|
+
ref: "body",
|
|
1278
1279
|
staticClass: "el-dialog__body",
|
|
1279
1280
|
class:
|
|
1280
1281
|
_vm.type === "form"
|
|
@@ -1288,7 +1289,7 @@ var componentvue_type_template_id_60140e62_render = function() {
|
|
|
1288
1289
|
_vm.$slots.footer
|
|
1289
1290
|
? _c(
|
|
1290
1291
|
"div",
|
|
1291
|
-
{ staticClass: "el-dialog__footer" },
|
|
1292
|
+
{ ref: "footer", staticClass: "el-dialog__footer" },
|
|
1292
1293
|
[_vm._t("footer")],
|
|
1293
1294
|
2
|
|
1294
1295
|
)
|
|
@@ -1424,7 +1425,7 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
|
|
1424
1425
|
|
|
1425
1426
|
top: {
|
|
1426
1427
|
type: String,
|
|
1427
|
-
default: '
|
|
1428
|
+
default: '50%'
|
|
1428
1429
|
},
|
|
1429
1430
|
beforeClose: Function,
|
|
1430
1431
|
center: {
|
|
@@ -1473,7 +1474,7 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
|
|
1473
1474
|
style: function style() {
|
|
1474
1475
|
var style = {};
|
|
1475
1476
|
if (!this.fullscreen) {
|
|
1476
|
-
style.
|
|
1477
|
+
style.top = this.top;
|
|
1477
1478
|
if (this.width) {
|
|
1478
1479
|
style.width = this.width;
|
|
1479
1480
|
}
|
|
@@ -1513,10 +1514,52 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
|
|
1513
1514
|
this.broadcast('ElDropdownMenu', 'updatePopper');
|
|
1514
1515
|
},
|
|
1515
1516
|
afterEnter: function afterEnter() {
|
|
1517
|
+
this.onDialogOpened();
|
|
1516
1518
|
this.$emit('opened');
|
|
1517
1519
|
},
|
|
1518
1520
|
afterLeave: function afterLeave() {
|
|
1519
1521
|
this.$emit('closed');
|
|
1522
|
+
},
|
|
1523
|
+
onDialogOpened: function onDialogOpened() {
|
|
1524
|
+
var _this2 = this;
|
|
1525
|
+
|
|
1526
|
+
this.$nextTick(function () {
|
|
1527
|
+
_this2.checkOverflow();
|
|
1528
|
+
_this2.observeContentChanges();
|
|
1529
|
+
});
|
|
1530
|
+
},
|
|
1531
|
+
|
|
1532
|
+
|
|
1533
|
+
// 检查内容是否超过body高度
|
|
1534
|
+
checkOverflow: function checkOverflow() {
|
|
1535
|
+
var body = this.$refs.body;
|
|
1536
|
+
var footer = this.$refs.footer;
|
|
1537
|
+
if (!body || !footer) return;
|
|
1538
|
+
if (body.scrollHeight > body.clientHeight) {
|
|
1539
|
+
footer.classList.add('el-dialog__footer--shadow');
|
|
1540
|
+
} else {
|
|
1541
|
+
footer.classList.remove('el-dialog__footer--shadow');
|
|
1542
|
+
}
|
|
1543
|
+
},
|
|
1544
|
+
|
|
1545
|
+
// 监听节点变化
|
|
1546
|
+
observeContentChanges: function observeContentChanges() {
|
|
1547
|
+
var _this3 = this;
|
|
1548
|
+
|
|
1549
|
+
var body = this.$refs.body;
|
|
1550
|
+
if (!body) return;
|
|
1551
|
+
if (this._mutationObserver) {
|
|
1552
|
+
this._mutationObserver.disconnect();
|
|
1553
|
+
}
|
|
1554
|
+
this._mutationObserver = new MutationObserver(function () {
|
|
1555
|
+
_this3.checkOverflow();
|
|
1556
|
+
});
|
|
1557
|
+
// 监听子节点及文本节点的内容变化
|
|
1558
|
+
this._mutationObserver.observe(body, {
|
|
1559
|
+
childList: true,
|
|
1560
|
+
subtree: true,
|
|
1561
|
+
characterData: true
|
|
1562
|
+
});
|
|
1520
1563
|
}
|
|
1521
1564
|
},
|
|
1522
1565
|
|
|
@@ -1534,6 +1577,9 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
|
|
1534
1577
|
if (this.appendToBody && this.$el && this.$el.parentNode) {
|
|
1535
1578
|
this.$el.parentNode.removeChild(this.$el);
|
|
1536
1579
|
}
|
|
1580
|
+
if (this._mutationObserver) {
|
|
1581
|
+
this._mutationObserver.disconnect();
|
|
1582
|
+
}
|
|
1537
1583
|
}
|
|
1538
1584
|
});
|
|
1539
1585
|
// CONCATENATED MODULE: ./packages/dialog/src/component.vue?vue&type=script&lang=js&
|
|
@@ -31208,7 +31254,7 @@ var mainvue_type_template_id_455b9f60_render = function() {
|
|
|
31208
31254
|
]),
|
|
31209
31255
|
_vm.showClose
|
|
31210
31256
|
? _c("i", {
|
|
31211
|
-
staticClass: "el-message__closeBtn
|
|
31257
|
+
staticClass: "el-message__closeBtn iov-icon-close",
|
|
31212
31258
|
on: { click: _vm.close }
|
|
31213
31259
|
})
|
|
31214
31260
|
: _vm._e()
|
|
@@ -31254,9 +31300,9 @@ mainvue_type_template_id_455b9f60_render._withStripped = true
|
|
|
31254
31300
|
|
|
31255
31301
|
var src_mainvue_type_script_lang_js_typeMap = {
|
|
31256
31302
|
success: 'success',
|
|
31257
|
-
info: '
|
|
31303
|
+
info: 'explain',
|
|
31258
31304
|
warning: 'warning',
|
|
31259
|
-
error: '
|
|
31305
|
+
error: 'fail'
|
|
31260
31306
|
};
|
|
31261
31307
|
|
|
31262
31308
|
/* harmony default export */ var message_src_mainvue_type_script_lang_js_ = ({
|
|
@@ -31271,7 +31317,7 @@ var src_mainvue_type_script_lang_js_typeMap = {
|
|
|
31271
31317
|
onClose: null,
|
|
31272
31318
|
showClose: false,
|
|
31273
31319
|
closed: false,
|
|
31274
|
-
verticalOffset:
|
|
31320
|
+
verticalOffset: 46,
|
|
31275
31321
|
timer: null,
|
|
31276
31322
|
dangerouslyUseHTMLString: false,
|
|
31277
31323
|
center: false
|
|
@@ -31281,7 +31327,7 @@ var src_mainvue_type_script_lang_js_typeMap = {
|
|
|
31281
31327
|
|
|
31282
31328
|
computed: {
|
|
31283
31329
|
typeClass: function typeClass() {
|
|
31284
|
-
return this.type && !this.iconClass ? 'el-message__icon
|
|
31330
|
+
return this.type && !this.iconClass ? 'el-message__icon iov-icon-fill-' + src_mainvue_type_script_lang_js_typeMap[this.type] : '';
|
|
31285
31331
|
},
|
|
31286
31332
|
positionStyle: function positionStyle() {
|
|
31287
31333
|
return {
|
|
@@ -31406,7 +31452,7 @@ var main_Message = function Message(options) {
|
|
|
31406
31452
|
}
|
|
31407
31453
|
message_src_main_instance.$mount();
|
|
31408
31454
|
document.body.appendChild(message_src_main_instance.$el);
|
|
31409
|
-
var verticalOffset = options.offset ||
|
|
31455
|
+
var verticalOffset = options.offset || 46;
|
|
31410
31456
|
main_instances.forEach(function (item) {
|
|
31411
31457
|
verticalOffset += item.$el.offsetHeight + 16;
|
|
31412
31458
|
});
|
|
@@ -43091,7 +43137,10 @@ var IMG = {
|
|
|
43091
43137
|
type: Number,
|
|
43092
43138
|
default: 1
|
|
43093
43139
|
},
|
|
43094
|
-
imageSize:
|
|
43140
|
+
imageSize: {
|
|
43141
|
+
type: Number,
|
|
43142
|
+
default: 140
|
|
43143
|
+
},
|
|
43095
43144
|
description: {
|
|
43096
43145
|
type: String,
|
|
43097
43146
|
default: ''
|
|
@@ -44050,7 +44099,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
44050
44099
|
}
|
|
44051
44100
|
|
|
44052
44101
|
/* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
|
|
44053
|
-
version: '2.15.
|
|
44102
|
+
version: '2.15.46',
|
|
44054
44103
|
locale: lib_locale_default.a.use,
|
|
44055
44104
|
i18n: lib_locale_default.a.i18n,
|
|
44056
44105
|
install: src_install,
|
package/lib/message.js
CHANGED
|
@@ -270,7 +270,7 @@ var render = function() {
|
|
|
270
270
|
]),
|
|
271
271
|
_vm.showClose
|
|
272
272
|
? _c("i", {
|
|
273
|
-
staticClass: "el-message__closeBtn
|
|
273
|
+
staticClass: "el-message__closeBtn iov-icon-close",
|
|
274
274
|
on: { click: _vm.close }
|
|
275
275
|
})
|
|
276
276
|
: _vm._e()
|
|
@@ -316,9 +316,9 @@ render._withStripped = true
|
|
|
316
316
|
|
|
317
317
|
var typeMap = {
|
|
318
318
|
success: 'success',
|
|
319
|
-
info: '
|
|
319
|
+
info: 'explain',
|
|
320
320
|
warning: 'warning',
|
|
321
|
-
error: '
|
|
321
|
+
error: 'fail'
|
|
322
322
|
};
|
|
323
323
|
|
|
324
324
|
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
|
@@ -333,7 +333,7 @@ var typeMap = {
|
|
|
333
333
|
onClose: null,
|
|
334
334
|
showClose: false,
|
|
335
335
|
closed: false,
|
|
336
|
-
verticalOffset:
|
|
336
|
+
verticalOffset: 46,
|
|
337
337
|
timer: null,
|
|
338
338
|
dangerouslyUseHTMLString: false,
|
|
339
339
|
center: false
|
|
@@ -343,7 +343,7 @@ var typeMap = {
|
|
|
343
343
|
|
|
344
344
|
computed: {
|
|
345
345
|
typeClass: function typeClass() {
|
|
346
|
-
return this.type && !this.iconClass ? 'el-message__icon
|
|
346
|
+
return this.type && !this.iconClass ? 'el-message__icon iov-icon-fill-' + typeMap[this.type] : '';
|
|
347
347
|
},
|
|
348
348
|
positionStyle: function positionStyle() {
|
|
349
349
|
return {
|
|
@@ -477,7 +477,7 @@ var main_Message = function Message(options) {
|
|
|
477
477
|
}
|
|
478
478
|
instance.$mount();
|
|
479
479
|
document.body.appendChild(instance.$el);
|
|
480
|
-
var verticalOffset = options.offset ||
|
|
480
|
+
var verticalOffset = options.offset || 46;
|
|
481
481
|
instances.forEach(function (item) {
|
|
482
482
|
verticalOffset += item.$el.offsetHeight + 16;
|
|
483
483
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.el-alert{width:100%;padding:11px 12px;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;position:relative;background-color:#
|
|
1
|
+
.el-alert{width:100%;padding:11px 12px;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;position:relative;background-color:#fff;overflow:hidden;opacity:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transition:opacity .2s;transition:opacity .2s}.el-alert.is-light .el-alert__closebtn{color:#ABAFB5}.el-alert.is-light .el-alert__closebtn:hover{color:#494B53}.el-alert.is-dark .el-alert__closebtn,.el-alert.is-dark .el-alert__description{color:#fff}.el-alert.is-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.el-alert--success.is-light{background-color:#EFF9F3;border:1px solid #B8F0C7;color:#212026}.el-alert--success.is-light .el-alert__icon{color:#23B25D}.el-alert--success.is-dark{background-color:#23B25D;color:#fff}.el-alert--info.is-light{background-color:#F0F4FD;border:1px solid #E6ECFE;color:#212026}.el-alert--info.is-light .el-alert__icon{color:#3F57FF}.el-alert--info.is-dark{background-color:#3F57FF;color:#fff}.el-alert--warning.is-light{background-color:#FFF7E8;border:1px solid #FFE4BA;color:#212026}.el-alert--warning.is-light .el-alert__icon{color:#FF7D00}.el-alert--warning.is-dark{background-color:#FF7D00;color:#fff}.el-alert--error.is-light{background-color:#FFF1F1;border:1px solid #FDCDC5;color:#212026}.el-alert--error.is-light .el-alert__icon{color:#F53F3F}.el-alert--error.is-dark{background-color:#F53F3F;color:#fff}.el-alert__content{display:table-cell}.el-alert__icon{margin-right:8px;font-size:16px;width:16px}.el-alert__icon.is-big{font-size:16px;width:16px;-ms-flex-item-align:start;align-self:flex-start}.el-alert__title{font-size:12px;line-height:16px;display:block}.el-alert__title.is-bold{font-weight:500}.el-alert .el-alert__description{font-size:12px;margin:4px 0 0;color:#212026;font-weight:400}.el-alert__closebtn{font-size:14px;opacity:1;position:absolute;top:12px;right:12px;cursor:pointer}.el-alert__closebtn.is-customed{font-style:normal;font-size:12px;top:11px}.el-alert-fade-enter,.el-alert-fade-leave-active{opacity:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.v-modal-enter{-webkit-animation:v-modal-in .2s ease;animation:v-modal-in .2s ease}.v-modal-leave{-webkit-animation:v-modal-out .2s ease forwards;animation:v-modal-out .2s ease forwards}@-webkit-keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-in{0%{opacity:0}}@-webkit-keyframes v-modal-out{100%{opacity:0}}@keyframes v-modal-out{100%{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:.5;background:#000}.el-popup-parent--hidden{overflow:hidden}.el-dialog{position:relative;margin:0 auto 50px;background:#fff;border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;width:50%}.el-dialog.is-fullscreen{width:100%;
|
|
1
|
+
.v-modal-enter{-webkit-animation:v-modal-in .2s ease;animation:v-modal-in .2s ease}.v-modal-leave{-webkit-animation:v-modal-out .2s ease forwards;animation:v-modal-out .2s ease forwards}@-webkit-keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-in{0%{opacity:0}}@-webkit-keyframes v-modal-out{100%{opacity:0}}@keyframes v-modal-out{100%{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:.5;background:#000}.el-popup-parent--hidden{overflow:hidden}.el-dialog{position:relative;margin:0 auto 50px;background:#fff;border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;width:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.el-dialog.is-fullscreen{width:100%;top:0;margin-bottom:0;height:100%;overflow:auto;-webkit-transform:none;transform:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.el-dialog.is-fullscreen .el-dialog__body{-webkit-box-flex:1;-ms-flex:1;flex:1;max-height:none}.el-dialog__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;margin:0}.el-dialog__header{padding:16px 24px;position:relative;border-bottom:1px solid #EDEFF3}.el-dialog__headerbtn{position:absolute;top:50%;right:20px;padding:4px;cursor:pointer;font-size:0;margin-top:-12px;-webkit-transition:all ease .3s;transition:all ease .3s;border-radius:4px}.el-dialog__headerbtn .el-dialog__close{font-size:16px;color:#777D87}.el-dialog__headerbtn:focus,.el-dialog__headerbtn:hover{background:#F6F7F8}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:#494B53}.el-dialog__title{line-height:1;font-size:16px;color:#212026}.el-dialog__body{padding:16px 24px 0;color:#212026;font-size:13px;word-break:break-all;max-height:503px;overflow-y:auto}.el-dialog__body.el-dialog__body--desc{padding-bottom:20px}.el-dialog__footer{padding:16px 24px 20px;text-align:right;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:0}.el-dialog__footer.el-dialog__footer--shadow{-webkit-box-shadow:0 0 12px 0 rgba(196,198,207,.21);box-shadow:0 0 12px 0 rgba(196,198,207,.21)}.el-dialog--center .el-dialog__body{text-align:left}.el-dialog--center .el-dialog__footer{text-align:center}.dialog-fade-enter-active{-webkit-animation:dialog-fade-in .3s;animation:dialog-fade-in .3s}.dialog-fade-leave-active{-webkit-animation:dialog-fade-out .3s;animation:dialog-fade-out .3s}@-webkit-keyframes dialog-fade-in{0%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}}@keyframes dialog-fade-in{0%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}}@-webkit-keyframes dialog-fade-out{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}100%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}}@keyframes dialog-fade-out{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}100%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}}
|