ant-design/5f7bc26b-async.4ee49f42.js
2024-11-20 18:30:54 +00:00

1 line
1.4 KiB
JavaScript

(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["5f7bc26b"],{"5f7bc26b":function(e,l,r){"use strict";r.d(l,"__esModule",{value:!0}),r.d(l,"default",{enumerable:!0,get:function(){return c;}});var a=r("f19d2b93");r("bcfda361");var s=r("0b30cea8"),n=r("a9d1a279");let t=(e=s.presetPalettes)=>Object.entries(e).map(([e,l])=>({label:e,colors:l})),i=()=>{let{token:e}=n.theme.useToken(),l=t({primary:(0,s.generate)(e.colorPrimary),red:s.red,green:s.green,cyan:s.cyan});return(0,a.jsx)(n.ColorPicker,{defaultValue:e.colorPrimary,styles:{popupOverlayInner:{width:480}},presets:l,panelRender:(e,{components:{Picker:l,Presets:r}})=>(0,a.jsxs)(n.Row,{justify:"space-between",wrap:!1,children:[(0,a.jsx)(n.Col,{span:12,children:(0,a.jsx)(r,{})}),(0,a.jsx)(n.Divider,{type:"vertical",style:{height:"auto"}}),(0,a.jsx)(n.Col,{flex:"auto",children:(0,a.jsx)(l,{})})]})});},o=()=>(0,a.jsx)(n.ColorPicker,{defaultValue:"#1677ff",panelRender:e=>(0,a.jsxs)("div",{className:"custom-panel",children:[(0,a.jsx)("div",{style:{fontSize:12,color:"rgba(0, 0, 0, 0.88)",lineHeight:"20px",marginBottom:8},children:"Color Picker"}),e]})});var c=()=>(0,a.jsxs)(n.Space,{direction:"vertical",children:[(0,a.jsxs)(n.Space,{children:[(0,a.jsx)("span",{children:"Add title:"}),(0,a.jsx)(o,{})]}),(0,a.jsxs)(n.Space,{children:[(0,a.jsx)("span",{children:"Horizontal layout:"}),(0,a.jsx)(i,{})]})]});}}]);