@mdsfe/mds-ui 0.2.8 → 0.2.9
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/dist/cascader.js +4 -0
- package/dist/datepicker.js +3 -1
- package/dist/drawer.js +8 -4
- package/dist/index.js +1 -1
- package/dist/input.js +7 -1
- package/dist/mds-ui.min.js +62 -85
- package/package.json +1 -1
package/dist/cascader.js
CHANGED
package/dist/datepicker.js
CHANGED
|
@@ -6412,8 +6412,10 @@ var year_tablevue_type_script_lang_js_datesInYear = function datesInYear(year) {
|
|
|
6412
6412
|
},
|
|
6413
6413
|
handleYearTableClick: function handleYearTableClick(event) {
|
|
6414
6414
|
var target = event.target;
|
|
6415
|
+
|
|
6415
6416
|
if (target.tagName === 'A') {
|
|
6416
|
-
|
|
6417
|
+
target = target.parentNode.parentNode;
|
|
6418
|
+
if (Object(dom_["hasClass"])(target, 'disabled')) return;
|
|
6417
6419
|
var year = target.textContent || target.innerText;
|
|
6418
6420
|
this.$emit('pick', Number(year));
|
|
6419
6421
|
}
|
package/dist/drawer.js
CHANGED
|
@@ -796,7 +796,7 @@ var PREFIXCLS = 'mds-drawer';
|
|
|
796
796
|
visibility: function visibility(val) {
|
|
797
797
|
var _this = this;
|
|
798
798
|
|
|
799
|
-
if (val) {
|
|
799
|
+
if (val && this.closed === true) {
|
|
800
800
|
this.closed = false;
|
|
801
801
|
this.$emit('open');
|
|
802
802
|
if (this.appendToBody) {
|
|
@@ -807,8 +807,10 @@ var PREFIXCLS = 'mds-drawer';
|
|
|
807
807
|
if (this.preFocus) {
|
|
808
808
|
this.prevActiveElement = document.activeElement;
|
|
809
809
|
}
|
|
810
|
-
} else {
|
|
811
|
-
if (!this.closed)
|
|
810
|
+
} else if (!val) {
|
|
811
|
+
if (!this.closed) {
|
|
812
|
+
this.handleClose();
|
|
813
|
+
}
|
|
812
814
|
this.move();
|
|
813
815
|
if (this.prevActiveElement) {
|
|
814
816
|
this.$nextTick(function () {
|
|
@@ -829,9 +831,11 @@ var PREFIXCLS = 'mds-drawer';
|
|
|
829
831
|
methods: {
|
|
830
832
|
hide: function hide(cancel) {
|
|
831
833
|
if (cancel !== false) {
|
|
832
|
-
this.$emit('update:visibility', false);
|
|
834
|
+
this.visibility && this.$emit('update:visibility', false);
|
|
833
835
|
this.$emit('close');
|
|
834
836
|
this.closed = true;
|
|
837
|
+
} else {
|
|
838
|
+
this.$emit('update:visibility', true);
|
|
835
839
|
}
|
|
836
840
|
},
|
|
837
841
|
handleClose: function handleClose() {
|