(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-588b41d0","chunk-5179263e"],{"16bd":function(t,n,e){"use strict";var a=e("c07b"),r=e.n(a);r.a},3890:function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"layout"},[e("header",[t._t("header")],2),e("article",[e("div",[t._t("content")],2)])])},r=[],i=(e("16bd"),e("2877")),s={},u=Object(i["a"])(s,a,r,!1,null,"1d8c31c2",null);n["default"]=u.exports},6001:function(t,n,e){"use strict";var a=e("f100"),r=e.n(a);r.a},c07b:function(t,n,e){},e292:function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("layout",[e("template",{slot:"header"},[e("span",[t._v("\n            语言选择：\n            "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.curr,expression:"curr"}],on:{change:[function(n){var e=Array.prototype.filter.call(n.target.options,(function(t){return t.selected})).map((function(t){var n="_value"in t?t._value:t.value;return n}));t.curr=n.target.multiple?e:e[0]},function(n){return t.load()}]}},t._l(t.langs,(function(n,a){return e("option",{key:a,domProps:{value:"_"+n.name}},[t._v(t._s(n.text))])})),0)]),e("button",{on:{click:t.onSave}},[t._v("保存")])]),e("template",{slot:"content"},[e("ul",{staticClass:"menus"},t._l(t.lang,(function(n,a){return e("li",{key:a},[e("div",[t._v(t._s(n.__name))]),e("div",{staticClass:"module"},[t._l(n,(function(a,r){return e("div",{directives:[{name:"show",rawName:"v-show",value:t.isChildren(r,a),expression:"isChildren(key,next)"}],key:r,staticClass:"input"},[e("div",[t._v(t._s(r))]),e("input",{attrs:{type:"text"},domProps:{value:a},on:{change:function(e){return t.onValueChange(e,n,r)}}})])})),t._l(n,(function(n){return e("div",{directives:[{name:"show",rawName:"v-show",value:t.isModule(n),expression:"isModule(next)"}],key:n.__name},[e("div",[t._v(t._s(n.__name))]),e("div",{staticClass:"module"},t._l(n,(function(n,a){return e("div",{directives:[{name:"show",rawName:"v-show",value:t.isChildren(a,n),expression:"isChildren(key,next)"}],key:a,staticClass:"input"},[e("div",[t._v(t._s(a))]),e("input",{attrs:{type:"text"},domProps:{value:n}})])})),0)])}))],2)])})),0)])],2)},r=[],i=(e("96cf"),e("3b8d")),s=(e("28a5"),e("b775")),u=e("3890"),o={components:{Layout:u["default"]},data:function(){return{lang:null,curr:"_zh"}},computed:{langs:function(){return"zh#中文,en#英文,de#德文,fr#法文,jp#日文,kr#韩文,es#西班牙文".split(",").map((function(t){var n=t.split("#");return{name:n[0],text:n[1]}}))}},created:function(){this.load()},methods:{load:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(n){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,s["b"].get("dev/lang/"+(n||this.curr));case 2:e=t.sent,e.ok?null==this.lang?this.lang=e.data:$.extend(!0,this.lang,e.data):"_zh"!=this.curr&&(this.lang=null,this.load("_zh"));case 4:case"end":return t.stop()}}),t,this)})));function n(n){return t.apply(this,arguments)}return n}(),isChildren:function(t,n){return"__name"!==t&&"string"===typeof n},isModule:function(t){return"string"!==typeof t},onValueChange:function(t,n,e,a){var r=t.target.value.trim();r&&(a||(n[e]=r))},onSave:function(){var t=this;this.$confirm({content:"是否保存？",ok:function(){s["b"].postJson("dev/lang/".concat(t.curr),t.lang).then((function(n){n.ok?t.$tips({content:"保存成功"}):t.$tips({content:"保存失败"})})).catch((function(n){t.$tips({content:"保存失败"})}))}})}}},c=o,l=(e("6001"),e("2877")),d=Object(l["a"])(c,a,r,!1,null,"613a6482",null);n["default"]=d.exports},f100:function(t,n,e){}}]);
//# sourceMappingURL=chunk-588b41d0.3ee50246.js.map