You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
8.2 KiB
JavaScript
1 line
8.2 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ab469200"],{"09e3":function(t,e,o){"use strict";var a=o("0bfc"),r=o.n(a);r.a},"0bfc":function(t,e,o){var a=o("79f6");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var r=o("499e").default;r("1991df1e",a,!0,{sourceMap:!1,shadowMode:!1})},"13ba":function(t,e,o){var a=o("24fb");e=a(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-9b39daf6]{text-align:left}",""]),t.exports=e},1847:function(t,e,o){var a=o("9626");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var r=o("499e").default;r("7483113e",a,!0,{sourceMap:!1,shadowMode:!1})},"2b68":function(t,e,o){var a=o("24fb");e=a(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-aff96b80]{text-align:left}.index[data-v-aff96b80] {width:70%;margin:auto}.index[data-v-aff96b80] .ant-form-item{margin-bottom:10px}.index[data-v-aff96b80] .jsoneditor-menu{display:none}",""]),t.exports=e},"53ca":function(t,e,o){"use strict";o.d(e,"a",(function(){return a}));o("a4d3"),o("e01a"),o("d28b"),o("d3b7"),o("3ca3"),o("ddb0");function a(t){return a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}},5481:function(t,e,o){var a=o("8a5c");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var r=o("499e").default;r("d533fd54",a,!0,{sourceMap:!1,shadowMode:!1})},"79f6":function(t,e,o){var a=o("24fb");e=a(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-f5d80f30]{text-align:left}",""]),t.exports=e},8128:function(t,e,o){"use strict";var a=o("ff78"),r=o.n(a);r.a},"8a5c":function(t,e,o){var a=o("24fb");e=a(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-5815eb7a]{text-align:left}",""]),t.exports=e},9626:function(t,e,o){var a=o("24fb");e=a(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-226741a9]{text-align:left}",""]),t.exports=e},a931:function(t,e,o){var a=o("2b68");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var r=o("499e").default;r("328e3b64",a,!0,{sourceMap:!1,shadowMode:!1})},b85d:function(t,e,o){"use strict";var a=o("5481"),r=o.n(a);r.a},d3fe:function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"index"},[o("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.formData,"label-width":"100px"}},[o("a-collapse",{model:{value:t.activeKey,callback:function(e){t.activeKey=e},expression:"activeKey"}},[o("a-collapse-panel",{key:"0",attrs:{header:"主题"}},[o("styles-theme",{attrs:{form:t.formData.theme},on:{"update:form":function(e){return t.$set(t.formData,"theme",e)}}})],1),o("a-collapse-panel",{key:"1",attrs:{header:"标题"}},[o("styles-title",{attrs:{form:t.formData.title},on:{"update:form":function(e){return t.$set(t.formData,"title",e)}}})],1),o("a-collapse-panel",{key:"2",attrs:{header:"菜单"}},[o("styles-menu",{attrs:{form:t.formData.menu},on:{"update:form":function(e){return t.$set(t.formData,"menu",e)}}})],1)],1),o("el-form-item",[o("span",{staticStyle:{float:"right"}},[o("a-button",{staticStyle:{"margin-right":"10px"},attrs:{type:"primary"},on:{click:function(e){return t.handleSubmit()}}},[t._v(" 保存 ")]),o("a-button",{attrs:{type:"info"},on:{click:function(e){return t.init()}}},[t._v(" 重置 ")])],1)])],1)],1)},r=[],n=o("5530"),l=o("2f62"),c=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"styles-title"},[o("el-form-item",{attrs:{label:"标题文字",prop:"title.text",rules:{required:!0,message:"请输入标题",trigger:["blur","change"]}}},[o("a-input",{model:{value:t.form.text,callback:function(e){t.$set(t.form,"text",e)},expression:"form.text"}})],1),o("el-form-item",{attrs:{label:"字体颜色"}},[o("select-color",{model:{value:t.form.style.color,callback:function(e){t.$set(t.form.style,"color",e)},expression:"form.style.color"}})],1),o("el-form-item",{attrs:{label:"背景颜色"}},[o("select-color",{model:{value:t.form.style["background-color"],callback:function(e){t.$set(t.form.style,"background-color",e)},expression:"form.style['background-color']"}})],1)],1)},s=[],f=o("53ca"),i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-color-picker",{attrs:{"show-alpha":"",size:"medium",value:t.color,predefine:t.predefineColors},on:{change:function(e){return t.$emit("change",e)}}})},u=[],m={name:"SelectColor",components:{},props:{color:{type:String}},computed:{},watch:{},model:{prop:"color",event:"change"},data:function(){return{predefineColors:["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgba(255, 69, 0, 0.68)","rgb(255, 120, 0)","hsv(51, 100, 98)","hsva(120, 40, 94, 0.5)","hsl(181, 100%, 37%)","hsla(209, 100%, 56%, 0.73)","#c7158577"]}},mounted:function(){},created:function(){},destroyed:function(){},methods:{}},d=m,p=(o("b85d"),o("2877")),b=Object(p["a"])(d,i,u,!1,null,"5815eb7a",null),y=b.exports,h={name:"StylesTitle",components:{SelectColor:y},props:{form:{}},computed:{},watch:{},data:function(){return{}},mounted:function(){},created:function(){},destroyed:function(){},methods:{onJsonChange:function(t){"object"===Object(f["a"])(t)&&(this.form.style=t)},onError:function(t){}}},v=h,x=(o("f5a4"),Object(p["a"])(v,c,s,!1,null,"226741a9",null)),g=x.exports,S=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"StylesMenu"},[o("p",[t._v("默认")]),o("el-form-item",{attrs:{label:"字体颜色"}},[o("select-color",{model:{value:t.form.default.color,callback:function(e){t.$set(t.form.default,"color",e)},expression:"form.default.color"}})],1),o("el-form-item",{attrs:{label:"背景颜色"}},[o("select-color",{model:{value:t.form.default["background-color"],callback:function(e){t.$set(t.form.default,"background-color",e)},expression:"form.default['background-color']"}})],1),o("p",[t._v("选中后")]),o("el-form-item",{attrs:{label:"字体颜色"}},[o("select-color",{model:{value:t.form.select.color,callback:function(e){t.$set(t.form.select,"color",e)},expression:"form.select.color"}})],1),o("el-form-item",{attrs:{label:"背景颜色"}},[o("select-color",{model:{value:t.form.select["background-color"],callback:function(e){t.$set(t.form.select,"background-color",e)},expression:"form.select['background-color']"}})],1)],1)},k=[],w={name:"StylesMenu",components:{SelectColor:y},props:{form:{}},computed:{},watch:{},data:function(){return{}},mounted:function(){},created:function(){},destroyed:function(){},methods:{}},$=w,O=(o("8128"),Object(p["a"])($,S,k,!1,null,"9b39daf6",null)),j=O.exports,_=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"StylesTheme"},[o("el-form-item",{attrs:{label:"主题颜色"}},[o("select-color",{model:{value:t.form["primary-color"],callback:function(e){t.$set(t.form,"primary-color",e)},expression:"form['primary-color']"}})],1)],1)},M=[],C={name:"StylesTheme",components:{SelectColor:y},props:{form:{}},computed:{},watch:{},data:function(){return{}},mounted:function(){},created:function(){},destroyed:function(){},methods:{}},D=C,E=(o("09e3"),Object(p["a"])(D,_,M,!1,null,"f5d80f30",null)),J=E.exports,T={name:"index",components:{StylesTheme:J,StylesMenu:j,StylesTitle:g},props:{},computed:Object(n["a"])(Object(n["a"])({},Object(l["mapGetters"])(["styles"])),{},{watchStyles:function(){return JSON.stringify(this.styles)}}),watch:{watchStyles:function(){this.init()}},data:function(){return{activeKey:["0","1","2"],formData:{}}},mounted:function(){},created:function(){console.log(this.styles),this.init()},destroyed:function(){},methods:Object(n["a"])(Object(n["a"])({},Object(l["mapActions"])(["updateStyles"])),{},{init:function(){console.log("init"),this.formData=JSON.parse(JSON.stringify(this.styles))},handleSubmit:function(){var t=this;this.$refs.ruleForm.validate((function(e){if(!e)return console.log("error submit!!"),!1;t.updateStyles(t.formData)}))}})},K=T,F=(o("e9c5"),Object(p["a"])(K,a,r,!1,null,"aff96b80",null));e["default"]=F.exports},e9c5:function(t,e,o){"use strict";var a=o("a931"),r=o.n(a);r.a},f5a4:function(t,e,o){"use strict";var a=o("1847"),r=o.n(a);r.a},ff78:function(t,e,o){var a=o("13ba");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var r=o("499e").default;r("ea8696ec",a,!0,{sourceMap:!1,shadowMode:!1})}}]); |