@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 CHANGED
@@ -3281,6 +3281,10 @@ var render = function () {
3281
3281
  },
3282
3282
  })
3283
3283
  : _c("mds-icon", {
3284
+ staticStyle: {
3285
+ color: "#ccd2db",
3286
+ "font-size": "14px",
3287
+ },
3284
3288
  attrs: { type: "fill-solid-down" },
3285
3289
  }),
3286
3290
  ],
@@ -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
- if (Object(dom_["hasClass"])(target.parentNode, 'disabled')) return;
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) this.$emit('close');
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() {