@mdsfe/mds-ui 0.2.9-rc.1 → 0.2.10-rc.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## [0.2.9](http://igit.58corp.com/matrix/mds-ui/compare/v0.2.8...v0.2.9) (2023-07-24)
2
+
3
+ ### Bug Fixes
4
+
5
+ * 🐛 修复 Input输入框组件 若干问题
6
+ * `clear`和`search`共存时,触发事件冲突
7
+ * 点击搜索时,执行清空操作的问题
8
+ * 🐛 修复 Drawer抽屉组件 直接修改`visibility`属性为`false`时,没触发`beforeClose`事件的问题
9
+
10
+
11
+ ### Performance Improvements
12
+ * ⚡️ 走查修复 日期组件年度禁用无效及气泡框组件用例异常等若干问题
13
+ * ⚡️ 优化展示 Cascader级联组件 指定清除icon默认色
14
+ * ⚡️ 迁移包至新分组
15
+
1
16
  ## [0.2.8](http://igit.58corp.com/matrix/mds-ui/compare/v0.2.7...v0.2.8) (2023-01-12)
2
17
 
3
18
  ### Features
@@ -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() {