fmui-base 2.1.10 → 2.1.11

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/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.1.11:弹出选择组件双击选项后返回到列表页面
6
7
  - 2.1.10:表单关联字段bug处理
7
8
  - 2.1.9:弹出选择组件双击后返回报错
8
9
  - 2.1.8:流程表单支持自动保存设置
@@ -172,7 +172,12 @@ var PageHome = function (_React$Component) {
172
172
  }
173
173
  this.props.onChange(returnValue);
174
174
  }
175
- history.back();
175
+ //防止双击选项时back两次
176
+ if (!location.hash.includes('POPPAGE')) {
177
+ return;
178
+ } else {
179
+ history.back();
180
+ }
176
181
  }
177
182
 
178
183
  // 触发弹出选择
@@ -359,7 +364,7 @@ var PageHome = function (_React$Component) {
359
364
  } else {
360
365
  t.refs.table.initState();
361
366
  }
362
-
367
+ // 防止双击字段时间戳加了两次 back一次回不去
363
368
  if (!location.hash.includes('POPPAGE')) {
364
369
  window.history.pushState({
365
370
  Poppage: t.state.historyStamp
@@ -388,7 +393,7 @@ var PageHome = function (_React$Component) {
388
393
  historyStamp: 'SearchPanel.index_' + Date.now()
389
394
  }, function () {
390
395
  t.refs.table.initState();
391
-
396
+ // 防止双击字段时间戳加了两次 back一次回不去
392
397
  if (!location.hash.includes('POPPAGE')) {
393
398
  window.history.pushState({
394
399
  Poppage: t.state.historyStamp
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.1.10",
3
+ "version": "2.1.11",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",