mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-06 04:00:06 +08:00
1 line
1.9 KiB
JavaScript
1 line
1.9 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2a48a52c"],{aa91:function(o,c,r){},b8df:function(o,c,r){"use strict";var t=r("aa91"),a=r.n(t);a.a},e842:function(o,c,r){"use strict";r.r(c);var t=function(){var o=this,c=o.$createElement,r=o._self._c||c;return r("div",{staticStyle:{"text-align":"center","margin-top":"48px"}},[r("color-checkbox-group",{staticStyle:{display:"inline-block"},attrs:{defaultValues:["1","3","4"],multiple:!0},on:{change:o.changeColor}},[r("color-checkbox",{attrs:{color:"rgb(245, 34, 45)",value:"1"}}),r("color-checkbox",{attrs:{color:"rgb(250, 84, 28)",value:"2"}}),r("color-checkbox",{attrs:{color:"rgb(250, 173, 20)",value:"3"}}),r("color-checkbox",{attrs:{color:"rgb(19, 194, 194)",value:"4"}}),r("color-checkbox",{attrs:{color:"rgb(82, 196, 26)",value:"5"}}),r("color-checkbox",{attrs:{color:"rgb(24, 144, 255)",value:"6"}}),r("color-checkbox",{attrs:{color:"rgb(47, 84, 235)",value:"7"}}),r("color-checkbox",{attrs:{color:"rgb(114, 46, 209)",value:"8"}}),r("color-checkbox",{attrs:{color:"rgb(256, 0, 0)",value:"9"}}),r("color-checkbox",{attrs:{color:"rgb(0, 256, 0)",value:"10"}}),r("color-checkbox",{attrs:{color:"rgb(0, 0, 256)",value:"11"}}),r("color-checkbox",{attrs:{color:"rgb(256, 256, 0)",value:"12"}})],1),r("div"),r("div",{staticClass:"view-color",style:{backgroundColor:o.color}})],1)},a=[],l=(r("4160"),r("ac1f"),r("1276"),r("159b"),r("59d6")),e=l["a"].Group,n={name:"Palette",data:function(){return{color:"rgb(245, 34, 45)"}},components:{ColorCheckbox:l["a"],ColorCheckboxGroup:e},methods:{changeColor:function(o,c){this.color=this.calculateColor(c)},calculateColor:function(o){var c,r=0,t=0,a=0;return o.forEach((function(o){c=o.split("(")[1].split(")")[0].split(","),r=Math.max(r,parseInt(c[0])),t+=Math.max(t,parseInt(c[1])),a+=Math.max(a,parseInt(c[2]))})),"rgb("+r+","+t+","+a+")"}}},s=n,u=(r("b8df"),r("0c7c")),b=Object(u["a"])(s,t,a,!1,null,"04b61512",null);c["default"]=b.exports}}]); |