{"remainingRequest":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\artfess-module\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\artfess-module\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\artfess-module\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\artfess-module\\src\\demo\\Input.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\artfess-module\\src\\demo\\Input.vue","mtime":1675232038699},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.array.find\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport CodeBox from \"@/components/CodeBox.vue\";\nimport AnchorWrapper from \"@/components/AnchorWrapper.vue\";\nimport MdView from \"@/views/MdView.vue\";\nimport InputCode from \"@/demo/html/input.code.js\";\nimport ValidateDic from \"@/demo/html/validate.dic.js\";\nexport default {\n  name: \"Form\",\n  components: {\n    CodeBox: CodeBox,\n    AnchorWrapper: AnchorWrapper,\n    MdView: MdView\n  },\n  data: function data() {\n    return {\n      data: {\n        name: null,\n        xm: null,\n        age: null,\n        ah: null,\n        shan: null,\n        yong: null,\n        qi: null,\n        yz: null,\n        lxfs: \"1\",\n        lxdz: \"13912345678@139.com\",\n        lkfs: null,\n        yhkh: null,\n        memo: null,\n        math1: null,\n        math2: null,\n        math3: null,\n        xlk: \"3\",\n        sub: [{\n          dj: null,\n          sl: null,\n          xj: null\n        }]\n      },\n      options: {\n        xlk: [{\n          key: \"1\",\n          value: \"选项一\"\n        }, {\n          key: \"2\",\n          value: \"选项二\"\n        }, {\n          key: \"3\",\n          value: \"选项三\"\n        }]\n      },\n      permission: {\n        xm: \"w\",\n        shan: \"n\",\n        yong: \"n\",\n        qi: \"n\"\n      },\n      validate: {\n        dic: ValidateDic,\n        current: null,\n        arg1: null,\n        arg2: null,\n        target: null,\n        method: null,\n        message: null,\n        yong: \"required\",\n        lxdz: null\n      },\n      code: InputCode\n    };\n  },\n  computed: {\n    currentValidateArgsNumber: function currentValidateArgsNumber() {\n      var _this = this;\n\n      return this.validate.current ? this.validate.dic.find(function (m) {\n        return m.key == _this.validate.current;\n      })[\"args\"] : 0;\n    },\n    currentValidateHasTarget: function currentValidateHasTarget() {\n      var _this2 = this;\n\n      return this.validate.current ? this.validate.dic.find(function (m) {\n        return m.key == _this2.validate.current;\n      })[\"target\"] : false;\n    },\n    validateExp: function validateExp() {\n      if (this.validate.current == \"method\" && this.validate.method) {\n        var _method = null;\n\n        try {\n          _method = eval(\"(\".concat(this.validate.method, \")\"));\n        } catch (e) {}\n\n        if (_method && typeof _method == \"function\") {\n          if (this.validate.message) {\n            return {\n              method: {\n                callback: _method,\n                message: this.validate.message\n              }\n            };\n          } else {\n            return {\n              method: _method\n            };\n          }\n        }\n\n        return null;\n      }\n\n      if (this.currentValidateHasTarget) {\n        return this.validate.target ? \"\".concat(this.validate.current, \":\").concat(this.validate.target) : this.validate.current;\n      }\n\n      if (this.currentValidateArgsNumber == 1) {\n        return this.validate.arg1 ? \"\".concat(this.validate.current, \":\").concat(this.validate.arg1) : this.validate.current;\n      }\n\n      if (this.currentValidateArgsNumber == 2) {\n        return this.validate.arg1 && this.validate.arg2 ? \"\".concat(this.validate.current, \":\").concat(this.validate.arg1, \",\").concat(this.validate.arg2) : this.validate.current;\n      }\n\n      return this.validate.current;\n    }\n  }\n};",null]}