fmui-base 2.0.97 → 2.0.98

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.0.98:表单字段增加校验
6
7
  - 2.0.97:流程列表页增加分类查询
7
8
  - 2.0.96:流程列表页增加分类查询
8
9
  - 2.0.95:弹出选择内容高度优化
@@ -1684,6 +1684,36 @@ var PageHome = function (_React$Component) {
1684
1684
  if (!s.test(value)) {
1685
1685
  return saveItem[j].itemTitle + ':' + tips;
1686
1686
  }
1687
+ } else if (regular.indexOf('compare') != -1) {
1688
+ var regularArr = regular.split('|');
1689
+ if (regularArr.length == 3) {
1690
+ var compareMark = regularArr[1];
1691
+ var otherUniqueName = regularArr[2];
1692
+ var otherValue = 0;
1693
+ var thisValue = 0;
1694
+ for (var f = 0; f < mainTblData.length; f++) {
1695
+ if (mainTblData[f].uniqueName == otherUniqueName) {
1696
+
1697
+ if (value != '') {
1698
+ if (mainTblData[i].itemType == 'datetime') {
1699
+ thisValue = new Date(value).getTime();
1700
+ } else {
1701
+ thisValue = value;
1702
+ }
1703
+ }
1704
+ if (mainTblData[f].value != '') {
1705
+ if (mainTblData[f].itemType == 'datetime') {
1706
+ otherValue = new Date(mainTblData[f].value).getTime();
1707
+ } else {
1708
+ otherValue = mainTblData[f].value;
1709
+ }
1710
+ }
1711
+ }
1712
+ }
1713
+ if (eval(thisValue + compareMark + otherValue)) {
1714
+ return saveItem[j].itemTitle + ':' + tips;
1715
+ }
1716
+ }
1687
1717
  } else {
1688
1718
  var extRegex = /^(.+?)(\d+)-(\d+)$/; //判断是否为 *1-2或n1-2等默认属性的形式
1689
1719
  var mac = regular.match(extRegex),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.0.97",
3
+ "version": "2.0.98",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",