zmdms-webui 3.4.1 → 3.4.3

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.
@@ -106,7 +106,10 @@ var SubMenu = function (props, ref) {
106
106
  if (Array.isArray(r)) {
107
107
  if (r.length === 0 && openOnlyHasSubmenus) {
108
108
  hasMenuData.current = false;
109
- setVisible(false);
109
+ // 固定状态下不收起抽屉,避免 marginRight 残留导致空白
110
+ if (!isFixed) {
111
+ setVisible(false);
112
+ }
110
113
  }
111
114
  else {
112
115
  hasMenuData.current = true;
@@ -118,7 +121,10 @@ var SubMenu = function (props, ref) {
118
121
  }
119
122
  else {
120
123
  hasMenuData.current = false;
121
- openOnlyHasSubmenus && setVisible(false);
124
+ // 固定状态下不收起抽屉
125
+ if (openOnlyHasSubmenus && !isFixed) {
126
+ setVisible(false);
127
+ }
122
128
  }
123
129
  }
124
130
  },
@@ -134,6 +134,8 @@ function getFormatter(formatterType, currencySymbol, isFocusRef, precision) {
134
134
  return getValue(value, isFocusRef, precision);
135
135
  },
136
136
  parser: function (value) {
137
+ // 移除千分符(兼容粘贴带千分符的数字)
138
+ value = value.replace(/,/g, "");
137
139
  // 替换 。号
138
140
  value = value.replace(/。/g, ".");
139
141
  // 替换多个小数点
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmdms-webui",
3
- "version": "3.4.1",
3
+ "version": "3.4.3",
4
4
  "private": false,
5
5
  "main": "dist/index.es.js",
6
6
  "module": "dist/index.es.js",