{"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\\src\\demo\\html\\input.code.js","dependencies":[{"path":"D:\\jenkins\\workspace\\artfess-module\\src\\demo\\html\\input.code.js","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}],"contextDependencies":[],"result":["var InputCode = {\n  singleText: \"<ht-input prefix-icon=\\\"icon-account\\\" v-model=\\\"data.name\\\" placeholder=\\\"\\u59D3\\u540D\\\" />\",\n  numberText: \"<ht-input type=\\\"number\\\" v-model=\\\"data.age\\\" placeholder=\\\"\\u5E74\\u9F84\\\" :step=\\\"2\\\" :min=\\\"12\\\" :max=\\\"99\\\" />\",\n  multipleText: \"\\n  <ht-input\\n    type=\\\"textarea\\\"\\n    v-model=\\\"data.memo\\\"\\n    :cols=\\\"80\\\"\\n    :autosize=\\\"{ minRows: 2, maxRows: 4}\\\"\\n    placeholder=\\\"\\u5907\\u6CE8\\\"\\n  />\",\n  permission: \"\\n  <div>\\n      <ht-radio\\n          v-model=\\\"permission.xm\\\"\\n          :options=\\\"[{key:'r',value:'\\u53EA\\u8BFB'},{key:'w',value:'\\u7F16\\u8F91'},{key:'b',value:'\\u5FC5\\u586B'}]\\\" />\\n      <el-divider />\\n      <ht-input v-model=\\\"data.xm\\\" :permission=\\\"permission.xm\\\" placeholder=\\\"\\u8BF7\\u8F93\\u5165\\u60A8\\u7684\\u59D3\\u540D\\\" />\\n  </div>\\n  <script>\\n  export default {\\n    data(){\\n      return {\\n        data: {\\n          xm: null\\n        },\\n        permission: {\\n          xm: \\\"w\\\"\\n        }\\n      };\\n    }\\n  }\\n  </script>\",\n  selectPermission: \"\\n  <div>\\n  <label class=\\\"item-label\\\">\\u6743\\u9650\\u63A7\\u5236:</label>\\n  <ht-radio\\n    v-model=\\\"permission.xlk\\\"\\n    :options=\\\"[{key:'r',value:'\\u53EA\\u8BFB'},{key:'w',value:'\\u7F16\\u8F91'},{key:'b',value:'\\u5FC5\\u586B'}]\\\"\\n  />\\n  <el-divider />\\n  <ht-select v-model=\\\"data.xlk\\\" :permission=\\\"permission.xlk\\\" :options=\\\"options.xlk\\\" />\\n\\n  <el-button\\n    size=\\\"small\\\"\\n    style=\\\"margin-left:10px\\\"\\n    type=\\\"danger\\\"\\n    @click=\\\"options.xlk=[]\\\"\\n  >\\u6E05\\u7A7A\\u4E0B\\u62C9\\u6846\\u9009\\u9879</el-button>\\n</div>\",\n  math: \"\\n  <div v-form>\\n    <label class=\\\"item-label\\\">\\u76F8\\u52A0:</label>\\n    <div class=\\\"flex\\\">\\n      <ht-input class=\\\"m-r\\\" v-model=\\\"data.math1\\\" placeholder=\\\"\\u6570\\u5B571\\\" />\\n      <span class=\\\"m-r\\\">+</span>\\n      <ht-input class=\\\"m-r\\\" v-model=\\\"data.math2\\\" placeholder=\\\"\\u6570\\u5B572\\\" />\\n      <span class=\\\"m-r\\\">=</span>\\n      <ht-input\\n        class=\\\"m-r\\\"\\n        v-model=\\\"data.math3\\\"\\n        disabled\\n        placeholder=\\\"\\u6570\\u5B571 + \\u6570\\u5B572\\\"\\n        math-exp=\\\"{\\u6570\\u5B571(data.math1)} + {\\u6570\\u5B572(data.math2)}\\\"\\n      />\\n    </div>\\n    <el-divider />\\n    <div>\\n      <label class=\\\"item-label\\\">\\u5B50\\u8868\\u6BCF\\u884C\\u5206\\u522B\\u8BA1\\u7B97\\uFF0C\\u518D\\u5BF9\\u5217\\u6C42\\u548C:</label>\\n      <br />\\n      <ul class=\\\"math-ul\\\">\\n        <li\\n          v-for=\\\"(row, index) in data.sub\\\"\\n          :key=\\\"index\\\"\\n          :data-index=\\\"index\\\"\\n          data-subname=\\\"data.sub\\\"\\n        >\\n          <div class=\\\"flex\\\">\\n            <ht-input class=\\\"m-r\\\" v-model=\\\"row.dj\\\" placeholder=\\\"\\u5355\\u4EF7\\\" />\\n            <ht-input class=\\\"m-r\\\" v-model=\\\"row.sl\\\" placeholder=\\\"\\u6570\\u91CF\\\" />\\n            <ht-input\\n              class=\\\"m-r\\\"\\n              v-model=\\\"row.xj\\\"\\n              placeholder=\\\"\\u5C0F\\u8BA1\\\"\\n              math-exp=\\\"{\\u5355\\u4EF7(row.dj)} * {\\u6570\\u91CF(row.sl)}\\\"\\n            />\\n            <el-link type=\\\"danger\\\" class=\\\"m-r\\\" @click=\\\"data.sub.remove(row)\\\">\\u5220\\u9664</el-link>\\n          </div>\\n        </li>\\n        <li>\\n          <div class=\\\"flex\\\">\\n            <el-button\\n              type=\\\"primary\\\"\\n              class=\\\"m-r\\\"\\n              size=\\\"small\\\"\\n              @click=\\\"data.sub.push({})\\\"\\n            >\\u6DFB\\u52A0\\u4E00\\u884C\\u6570\\u636E</el-button>\\n            <label class=\\\"item-label\\\">\\u5BF9\\u5B50\\u8868\\u5C0F\\u8BA1\\u6C42\\u548C:</label>\\n            <ht-input\\n              class=\\\"m-r\\\"\\n              v-model=\\\"data.math4\\\"\\n              placeholder=\\\"\\u5BF9\\u5B50\\u8868\\u4E2D\\u7684\\u5C0F\\u8BA1\\u6C42\\u548C\\\"\\n              math-exp=\\\"FormMath.sum([{\\u5C0F\\u8BA1(data.sub.xj)}])\\\"\\n            />\\n          </div>\\n        </li>\\n      </ul>\\n    </div>\\n  </div>\\n  <script>\\n  export default {\\n    data(){\\n      return {\\n        data: {\\n          math1: null,\\n          math2: null,\\n          math3: null,\\n          sub: [{ dj: null, sl: null, xj: null }]\\n        }\\n      };\\n    }\\n  }\\n  </script>\",\n  linkage: \"\\n  <template>\\n    <div class=\\\"flex\\\">\\n      <label class=\\\"item-label\\\">\\u5174\\u8DA3\\u7231\\u597D(\\u540E\\u9762\\u7684\\u8F93\\u5165\\u6846\\u5728\\u663E\\u793A\\u548C\\u9690\\u85CF\\u4E4B\\u95F4\\u5207\\u6362):</label>\\n      <ht-select\\n        v-model=\\\"data.ah\\\"\\n        class=\\\"m-r\\\"\\n        :options=\\\"[{ key: '1', value: '\\u722C\\u5C71' },{ key: '2', value: '\\u6E38\\u6CF3' },{ key: '3', value: '\\u4E0B\\u68CB' }]\\\"\\n        :linkage=\\\"[{'value':'1','effect':[{'target':'permission.shan', 'type': '=','value':'w'}]},\\n        {'value':'2','effect':[{'target': 'permission.yong', 'type': '=', 'value': 'b'}]},{'value':'3','effect':[{'target': 'permission.qi', 'type': '=', 'value': 'w'}]}]\\\"\\n      />\\n      <ht-input :permission=\\\"permission.shan\\\" v-model=\\\"data.shan\\\" placeholder=\\\"\\u559C\\u6B22\\u722C\\u54EA\\u5EA7\\u5C71\\\" />\\n      <ht-input :permission=\\\"permission.yong\\\" v-model=\\\"data.yong\\\" placeholder=\\\"\\u559C\\u6B22\\u54EA\\u79CD\\u6CF3\\u59FF\\\" />\\n      <ht-input :permission=\\\"permission.qi\\\" v-model=\\\"data.qi\\\" placeholder=\\\"\\u559C\\u6B22\\u54EA\\u79CD\\u68CB\\\" />\\n    </div>\\n    <el-divider />\\n    <div class=\\\"flex\\\">\\n      <label class=\\\"item-label\\\">\\u8054\\u7CFB\\u65B9\\u5F0F(\\u540E\\u9762\\u7684\\u8F93\\u5165\\u6846\\u4F1A\\u5207\\u6362\\u4E0D\\u540C\\u7684\\u6821\\u9A8C\\u89C4\\u5219):</label>\\n      <ht-radio\\n        v-model=\\\"data.lxfs\\\"\\n        :options=\\\"[{ key: '1', value: 'Email' },{ key: '2', value: '\\u624B\\u673A' }]\\\"\\n        :linkage=\\\"[{'value':'1','effect':[{'target':'validate.lxdz', 'type': '+','value':'email'}]},{'value':'2','effect':[{'target':'validate.lxdz', 'type': '+','value':'phonenumber'}]}]\\\"\\n      />\\n      <ht-input v-model=\\\"data.lxdz\\\" :validate=\\\"validate.lxdz\\\" />\\n    </div>\\n    <el-divider />\\n    <div class=\\\"flex\\\">\\n      <label class=\\\"item-label\\\">\\u9886\\u6B3E\\u65B9\\u5F0F(\\u540E\\u9762\\u7684\\u8F93\\u5165\\u6846\\u7684\\u5185\\u5BB9\\u4F1A\\u7F6E\\u7A7A):</label>\\n      <ht-checkbox\\n        v-model=\\\"data.lkfs\\\"\\n        :options=\\\"[{ key: '1', value: '\\u94F6\\u884C\\u5361' },{ key: '2', value: '\\u73B0\\u91D1' }]\\\"\\n        :linkage=\\\"[{'value':'2','effect':[{'target':'data.yhkh', 'type': '=','value':''}]}]\\\"\\n      />\\n      <ht-input v-model=\\\"data.yhkh\\\" />\\n    </div>\\n  </template>\\n  <script>\\n  export default {\\n    data(){\\n      return {\\n        data: {\\n          ah: null,\\n          shan: null,\\n          yong: null,\\n          qi: null,\\n          sub: [{ dj: null, sl: null, xj: null }]\\n        },\\n        permission: {\\n          shan: \\\"n\\\",\\n          yong: \\\"n\\\",\\n          qi: \\\"n\\\"\\n        },\\n        validate: {\\n          yong: null,\\n          lxdz: {}\\n        }\\n      };\\n    }\\n  }\\n  </script>\",\n  \"validation\": \"\\n  <template>\\n    <div class=\\\"flex\\\">\\n      <label class=\\\"item-label\\\">\\u9009\\u62E9\\u6821\\u9A8C\\u89C4\\u5219\\uFF1A</label>\\n      <ht-select class=\\\"m-r\\\" :options=\\\"validate.dic\\\" v-model=\\\"validate.current\\\" />\\n      <div class=\\\"m-r\\\" v-if=\\\"currentValidateArgsNumber > 0\\\">\\n        <label class=\\\"item-label\\\">\\u7B2C\\u4E00\\u4E2A\\u53C2\\u6570\\uFF1A</label>\\n        <ht-input v-model=\\\"validate.arg1\\\" placeholder=\\\"\\u6821\\u9A8C\\u89C4\\u5219\\u7684\\u7B2C\\u4E00\\u4E2A\\u53C2\\u6570\\\" />\\n      </div>\\n      <div class=\\\"m-r\\\" v-if=\\\"currentValidateArgsNumber > 1\\\">\\n        <label class=\\\"item-label\\\">\\u7B2C\\u4E8C\\u4E2A\\u53C2\\u6570\\uFF1A</label>\\n        <ht-input v-model=\\\"validate.arg2\\\" placeholder=\\\"\\u6821\\u9A8C\\u89C4\\u5219\\u7684\\u7B2C\\u4E8C\\u4E2A\\u53C2\\u6570\\\" />\\n      </div>\\n      <div class=\\\"m-r\\\" v-if=\\\"currentValidateHasTarget\\\">\\n        <label class=\\\"item-label\\\">\\u68C0\\u9A8C\\u5173\\u8054\\u5BF9\\u8C61\\uFF1A</label>\\n        <ht-select\\n          :options=\\\"[{key: 'wb2', value: '\\u8F93\\u5165\\u6846\\u4E8C'},{key: 'rq2', value: '\\u7ED3\\u675F\\u65F6\\u95F4'}]\\\"\\n          v-model=\\\"validate.target\\\"\\n        />\\n      </div>\\n      <div class=\\\"m-r\\\" v-if=\\\"validate.current=='method'\\\">\\n        <label class=\\\"item-label\\\">\\u81EA\\u5B9A\\u4E49\\u65B9\\u6CD5\\uFF1A</label>\\n        <ht-input class=\\\"m-r\\\" type=\\\"textarea\\\" :rows=\\\"4\\\" v-model=\\\"validate.method\\\" />\\n        <label class=\\\"item-label\\\">\\u63D0\\u793A\\u4FE1\\u606F\\uFF1A</label>\\n        <ht-input v-model=\\\"validate.message\\\" />\\n      </div>\\n    </div>\\n    <el-divider />\\n    <div style=\\\"margin-bottom: 15px\\\">\\n      <el-tooltip class=\\\"m-r\\\" v-if=\\\"validateExp\\\" content=\\\"\\u751F\\u6210\\u7684\\u6821\\u9A8C\\u89C4\\u5219\\\">\\n        <i class=\\\"icon-tips\\\" style=\\\"font-size: 14px; font-weight: bold;\\\" />\\n      </el-tooltip>\\n      <span>{{validateExp}}</span>\\n    </div>\\n    <label class=\\\"item-label\\\">\\u8F93\\u5165\\u6846\\u4E00\\uFF1A</label>\\n    <ht-input v-model=\\\"data.wb1\\\" :validate=\\\"validateExp\\\" />\\n    <div v-if=\\\"currentValidateHasTarget && currentValidateHasTarget!='date'\\\">\\n      <label class=\\\"item-label\\\">\\u8F93\\u5165\\u6846\\u4E8C\\uFF1A</label>\\n      <ht-input v-model=\\\"data.wb2\\\" name=\\\"wb2\\\" />\\n    </div>\\n    <el-divider />\\n    <div v-if=\\\"currentValidateHasTarget=='date'\\\">\\n      <label class=\\\"item-label\\\">\\u5F00\\u59CB\\u65F6\\u95F4\\uFF1A</label>\\n      <ht-date class=\\\"m-r\\\" v-model=\\\"data.rq1\\\" :validate=\\\"validateExp\\\" />\\n      <label class=\\\"item-label\\\">\\u7ED3\\u675F\\u65F6\\u95F4\\uFF1A</label>\\n      <ht-date v-model=\\\"data.rq2\\\" name=\\\"rq2\\\" />\\n    </div>\\n  </template>\\n  <script>\\n  export default {\\n    data(){\\n      return {\\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: null,\\n          lxdz: null\\n        }\\n      };\\n    },\\n    computed: {\\n      currentValidateArgsNumber: function() {\\n        return this.validate.current\\n          ? this.validate.dic.find(m => m.key == this.validate.current)[\\\"args\\\"]\\n          : 0;\\n      },\\n      currentValidateHasTarget: function() {\\n        return this.validate.current\\n          ? this.validate.dic.find(m => m.key == this.validate.current)[\\\"target\\\"]\\n          : false;\\n      },\\n      validateExp: function() {\\n        if (this.validate.current == \\\"method\\\" && this.validate.method) {\\n          let _method = null;\\n          try {\\n            _method = eval(`(${this.validate.method})`);\\n          } catch (e) {}\\n          if (_method && typeof _method == \\\"function\\\") {\\n            if (this.validate.message) {\\n              return {\\n                method: { callback: _method, message: this.validate.message }\\n              };\\n            } else {\\n              return { method: _method };\\n            }\\n          }\\n          return null;\\n        }\\n        if (this.currentValidateHasTarget) {\\n          return this.validate.target\\n            ? `${this.validate.current}:${this.validate.target}`\\n            : this.validate.current;\\n        }\\n        if (this.currentValidateArgsNumber == 1) {\\n          return this.validate.arg1\\n            ? `${this.validate.current}:${this.validate.arg1}`\\n            : this.validate.current;\\n        }\\n        if (this.currentValidateArgsNumber == 2) {\\n          return this.validate.arg1 && this.validate.arg2\\n            ? `${this.validate.current}:${this.validate.arg1},${this.validate.arg2}`\\n            : this.validate.current;\\n        }\\n        return this.validate.current;\\n      }\\n    }\\n  }\\n  </script>\",\n  anchors: [{\n    content: \"单行文本\",\n    alias: \"singleText\"\n  }, {\n    content: \"数字输入框\",\n    alias: \"numberText\"\n  }, {\n    content: \"多行文本\",\n    alias: \"multipleText\"\n  }, {\n    content: \"数学计算\",\n    alias: \"mathCalculation\"\n  }, {\n    content: \"联动\",\n    alias: \"linkage\"\n  }, {\n    content: \"校验规则\",\n    alias: \"validation\"\n  }, {\n    content: \"权限控制\",\n    alias: \"permission\"\n  }, {\n    content: \"下拉框权限控制\",\n    alias: \"selectPermission\"\n  }, {\n    content: \"API\",\n    alias: \"api\"\n  }]\n};\nexport default InputCode;",null]}