(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-707f4980"],{"1d42":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("h3",{style:{marginBottom:"16px"}},[t._v(" demo4 快捷键 ")]),a("a-row",{attrs:{gutter:[16,16]}},[a("a-col",{attrs:{span:24}},[t._v(" 窗口最小化 "),a("a-form",{attrs:{form:t.form},on:{submit:t.handleSubmit}},[a("a-form-item",[a("hot-key-input",{staticStyle:{width:"100%"},attrs:{hotkey:t.hotKeyObj.keys,verify:t.handleHotkeyVerify,max:1,type:"lowser",reset:!0,shake:!1,range:null,placeholder:"快捷键"},on:{"update:hotkey":function(e){return t.$set(t.hotKeyObj,"keys",e)}}})],1),a("a-form-item",{staticStyle:{"text-align":"center"},attrs:{wrapperCol:{span:24}}},[a("a-button",{attrs:{htmlType:"submit",type:"primary"}},[t._v("保存")])],1)],1)],1)],1)],1)},n=[],r=(a("d3b7"),a("ddb0"),a("a358")),i={components:{},data:function(){return{form:this.$form.createForm(this),cmd:"",hotKeyObj:{tab:"save",keys:["Ctrl+k"]}}},methods:{handleHotkeyVerify:function(t){return console.log("组合键:",t),!0},handleSubmit:function(t){var e=this;t.preventDefault(),console.log("submit 验证:",this.hotKeyObj);var a=this.hotKeyObj.keys[0],o={id:"mini_window",name:"窗口最小化",cmd:a};Object(r["b"])("setShortcut",o).then((function(t){if(0!==t.code)return!1;e.$message.info("设置成功,请按【设置的快捷键】查看效果")})).catch((function(t){console.log("err:",t)})),this.form.validateFields((function(t,e){t||console.log("Received values of form: ",e)}))}}},u=i,c=a("2877"),s=Object(c["a"])(u,o,n,!1,null,null,null);e["default"]=s.exports},a358:function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return u}));var o=a("b775"),n={outApi:"/api/v1/outApi",openDir:"/api/v1/example/openLocalDir",uploadFile:"/api/v1/example/uploadFile",executeJS:"/api/v1/example/executeJS",setShortcut:"/api/v1/example/setShortcut",autoLaunchEnable:"/api/v1/setting/autoLaunchEnable",autoLaunchDisable:"/api/v1/setting/autoLaunchDisable",autoLaunchIsEnabled:"/api/v1/setting/autoLaunchIsEnabled"};function r(t,e){return Object(o["b"])({url:n[t],method:"post",data:e})}function i(t){return Object(o["b"])({url:n.openDir,method:"post",data:t})}function u(t){return Object(o["b"])({url:n.executeJS,method:"post",data:t})}},ddb0:function(t,e,a){var o=a("da84"),n=a("fdbc"),r=a("e260"),i=a("9112"),u=a("b622"),c=u("iterator"),s=u("toStringTag"),l=r.values;for(var p in n){var d=o[p],f=d&&d.prototype;if(f){if(f[c]!==l)try{i(f,c,l)}catch(m){f[c]=l}if(f[s]||i(f,s,p),n[p])for(var h in r)if(f[h]!==r[h])try{i(f,h,r[h])}catch(m){f[h]=r[h]}}}}}]); //# sourceMappingURL=chunk-707f4980.46929655.js.map