ant-design/e1fd47f0-async.1933e17f.js
2024-11-20 18:30:54 +00:00

1 line
3.1 KiB
JavaScript

(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["e1fd47f0"],{10488778:function(e,a,l){"use strict";l.d(a,"__esModule",{value:!0}),l.d(a,"default",{enumerable:!0,get:function(){return u;}});var t=l("f19d2b93");l("55a5a3c0");var d=l("e22febe0"),r=l("a9d1a279"),u=()=>(0,t.jsxs)(r.Flex,{vertical:!0,gap:"middle",children:[(0,t.jsx)(r.Rate,{character:(0,t.jsx)(d.HeartOutlined,{}),allowHalf:!0}),(0,t.jsx)(r.Rate,{character:"A",allowHalf:!0,style:{fontSize:36}}),(0,t.jsx)(r.Rate,{character:"\u597D",allowHalf:!0})]});},"20c266ae":function(e,a,l){"use strict";l.d(a,"__esModule",{value:!0}),l.d(a,"default",{enumerable:!0,get:function(){return r;}});var t=l("f19d2b93");l("bc7bbfb0");var d=l("a9d1a279"),r=()=>(0,t.jsx)(d.Rate,{disabled:!0,defaultValue:2});},"234a400d":function(e,a,l){"use strict";l.d(a,"__esModule",{value:!0}),l.d(a,"default",{enumerable:!0,get:function(){return n;}});var t=l("f19d2b93");l("4e620aaf");var d=l("e22febe0"),r=l("a9d1a279");let u={1:(0,t.jsx)(d.FrownOutlined,{}),2:(0,t.jsx)(d.FrownOutlined,{}),3:(0,t.jsx)(d.MehOutlined,{}),4:(0,t.jsx)(d.SmileOutlined,{}),5:(0,t.jsx)(d.SmileOutlined,{})};var n=()=>(0,t.jsxs)(r.Flex,{gap:"middle",vertical:!0,children:[(0,t.jsx)(r.Rate,{defaultValue:2,character:({index:e=0})=>e+1}),(0,t.jsx)(r.Rate,{defaultValue:3,character:({index:e=0})=>u[e+1]})]});},"48fb5a43":function(e,a,l){"use strict";l.d(a,"__esModule",{value:!0}),l.d(a,"default",{enumerable:!0,get:function(){return n;}});var t=l("f19d2b93");l("0592f27c");var d=l("5b220c3d"),r=l("a9d1a279");let u=["terrible","bad","normal","good","wonderful"];var n=()=>{let[e,a]=(0,d.useState)(3);return(0,t.jsxs)(r.Flex,{gap:"middle",vertical:!0,children:[(0,t.jsx)(r.Rate,{tooltips:u,onChange:a,value:e}),e?(0,t.jsx)("span",{children:u[e-1]}):null]});};},85537301:function(e,a,l){"use strict";l.d(a,"__esModule",{value:!0}),l.d(a,"default",{enumerable:!0,get:function(){return r;}});var t=l("f19d2b93");l("a5ee2ee8");var d=l("a9d1a279"),r=()=>(0,t.jsx)(d.ConfigProvider,{theme:{components:{Rate:{starColor:"blue",starSize:40,starHoverScale:"scale(2)",starBg:"red"}}},children:(0,t.jsx)(d.Rate,{defaultValue:2.5})});},"85f3f331":function(e,a,l){"use strict";l.d(a,"__esModule",{value:!0}),l.d(a,"default",{enumerable:!0,get:function(){return r;}});var t=l("f19d2b93");l("efc44d5e");var d=l("a9d1a279"),r=()=>(0,t.jsx)(d.Rate,{});},dce96077:function(e,a,l){"use strict";l.d(a,"__esModule",{value:!0}),l.d(a,"default",{enumerable:!0,get:function(){return r;}});var t=l("f19d2b93");l("acd771c8");var d=l("a9d1a279"),r=()=>(0,t.jsx)(d.Rate,{allowHalf:!0,defaultValue:2.5});},f4fc9dee:function(e,a,l){"use strict";l.d(a,"__esModule",{value:!0}),l.d(a,"default",{enumerable:!0,get:function(){return r;}});var t=l("f19d2b93");l("9fe53e6f");var d=l("a9d1a279"),r=()=>(0,t.jsxs)(d.Flex,{gap:"middle",vertical:!0,children:[(0,t.jsxs)(d.Flex,{gap:"middle",children:[(0,t.jsx)(d.Rate,{defaultValue:3}),(0,t.jsx)("span",{children:"allowClear: true"})]}),(0,t.jsxs)(d.Flex,{gap:"middle",children:[(0,t.jsx)(d.Rate,{defaultValue:3,allowClear:!1}),(0,t.jsx)("span",{children:"allowClear: false"})]})]});}}]);