ant-design/1ad6cd08-async.8dc54cbc.js
2024-11-20 18:30:54 +00:00

1 line
5.9 KiB
JavaScript

(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["1ad6cd08"],{"388008f9":function(e,t,n){"use strict";n.d(t,"__esModule",{value:!0}),n.d(t,"default",{enumerable:!0,get:function(){return s;}});var a=n("f19d2b93");n("f9c8a4b0");var r=n("a9d1a279"),s=()=>(0,a.jsx)(r.Watermark,{height:30,width:130,image:"https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*lkAoRbywo0oAAAAAAAAAAAAADrJ8AQ/original",children:(0,a.jsx)("div",{style:{height:500}})});},"5730fe95":function(e,t,n){"use strict";n.d(t,"__esModule",{value:!0}),n.d(t,"default",{enumerable:!0,get:function(){return o;}});var a=n("f19d2b93");n("64984701");var r=n("5b220c3d"),s=n("a9d1a279");let{Paragraph:i}=s.Typography;var o=()=>{let[e]=s.Form.useForm(),[t,n]=(0,r.useState)({content:"Ant Design",color:"rgba(0, 0, 0, 0.15)",fontSize:16,zIndex:11,rotate:-22,gap:[100,100],offset:void 0}),{content:o,color:l,fontSize:d,zIndex:c,rotate:u,gap:h,offset:m}=t,f={content:o,zIndex:c,rotate:u,gap:h,offset:m,font:{color:"string"==typeof l?l:l.toRgbString(),fontSize:d}};return(0,a.jsxs)(s.Flex,{gap:"middle",children:[(0,a.jsxs)(s.Watermark,{...f,children:[(0,a.jsxs)(s.Typography,{children:[(0,a.jsx)(i,{children:"The light-speed iteration of the digital world makes products more complex. However, human consciousness and attention resources are limited. Facing this design contradiction, the pursuit of natural interaction will be the consistent direction of Ant Design."}),(0,a.jsx)(i,{children:"Natural user cognition: According to cognitive psychology, about 80% of external information is obtained through visual channels. The most important visual elements in the interface design, including layout, colors, illustrations, icons, etc., should fully absorb the laws of nature, thereby reducing the user's cognitive cost and bringing authentic and smooth feelings. In some scenarios, opportunely adding other sensory channels such as hearing, touch can create a richer and more natural product experience."}),(0,a.jsx)(i,{children:"Natural user behavior: In the interaction with the system, the designer should fully understand the relationship between users, system roles, and task objectives, and also contextually organize system functions and services. At the same time, a series of methods such as behavior analysis, artificial intelligence and sensors could be applied to assist users to make effective decisions and reduce extra operations of users, to save users' mental and physical resources and make human-computer interaction more natural."})]}),(0,a.jsx)("img",{style:{zIndex:10,width:"100%",maxWidth:800,position:"relative"},src:"https://gw.alipayobjects.com/mdn/rms_08e378/afts/img/A*zx7LTI_ECSAAAAAAAAAAAABkARQnAQ",alt:"img"})]}),(0,a.jsxs)(s.Form,{style:{width:280,flexShrink:0,borderLeft:"1px solid #eee",paddingInlineStart:16},form:e,layout:"vertical",initialValues:t,onValuesChange:(e,t)=>{n(t);},children:[(0,a.jsx)(s.Form.Item,{name:"content",label:"Content",children:(0,a.jsx)(s.Input,{placeholder:"\u8BF7\u8F93\u5165"})}),(0,a.jsx)(s.Form.Item,{name:"color",label:"Color",children:(0,a.jsx)(s.ColorPicker,{})}),(0,a.jsx)(s.Form.Item,{name:"fontSize",label:"FontSize",children:(0,a.jsx)(s.Slider,{step:1,min:1,max:100})}),(0,a.jsx)(s.Form.Item,{name:"zIndex",label:"zIndex",children:(0,a.jsx)(s.Slider,{step:1,min:0,max:100})}),(0,a.jsx)(s.Form.Item,{name:"rotate",label:"Rotate",children:(0,a.jsx)(s.Slider,{step:1,min:-180,max:180})}),(0,a.jsx)(s.Form.Item,{label:"Gap",style:{marginBottom:0},children:(0,a.jsxs)(s.Flex,{gap:"small",children:[(0,a.jsx)(s.Form.Item,{name:["gap",0],children:(0,a.jsx)(s.InputNumber,{placeholder:"gapX",style:{width:"100%"}})}),(0,a.jsx)(s.Form.Item,{name:["gap",1],children:(0,a.jsx)(s.InputNumber,{placeholder:"gapY",style:{width:"100%"}})})]})}),(0,a.jsx)(s.Form.Item,{label:"Offset",style:{marginBottom:0},children:(0,a.jsxs)(s.Flex,{gap:"small",children:[(0,a.jsx)(s.Form.Item,{name:["offset",0],children:(0,a.jsx)(s.InputNumber,{placeholder:"offsetLeft",style:{width:"100%"}})}),(0,a.jsx)(s.Form.Item,{name:["offset",1],children:(0,a.jsx)(s.InputNumber,{placeholder:"offsetTop",style:{width:"100%"}})})]})})]})]});};},"67d53d68":function(e,t,n){"use strict";n.d(t,"__esModule",{value:!0}),n.d(t,"default",{enumerable:!0,get:function(){return l;}});var a=n("777fffbe"),r=n("f19d2b93");n("5ef2e240");var s=a._(n("5b220c3d")),i=n("a9d1a279");let o=(0,r.jsx)("div",{style:{height:300,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(150, 150, 150, 0.2)"},children:"A mock height"});var l=()=>{let[e,t]=s.default.useState(!1),[n,a]=s.default.useState(!1),[l,d]=s.default.useState(!1),c=()=>t(!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.Flex,{gap:"middle",children:[(0,r.jsx)(i.Button,{type:"primary",onClick:()=>t(!0),children:"Show in Modal"}),(0,r.jsx)(i.Button,{type:"primary",onClick:()=>a(!0),children:"Show in Drawer"}),(0,r.jsx)(i.Button,{type:"primary",onClick:()=>d(!0),children:"Not Show in Drawer"})]}),(0,r.jsxs)(i.Watermark,{content:"Ant Design",children:[(0,r.jsx)(i.Modal,{destroyOnClose:!0,open:e,title:"Modal",onCancel:c,onOk:c,children:o}),(0,r.jsx)(i.Drawer,{destroyOnClose:!0,open:n,title:"Drawer",onClose:()=>a(!1),children:o})]}),(0,r.jsx)(i.Watermark,{content:"Ant Design",inherit:!1,children:(0,r.jsx)(i.Drawer,{destroyOnClose:!0,open:l,title:"Drawer",onClose:()=>d(!1),children:o})})]});};},da1d0631:function(e,t,n){"use strict";n.d(t,"__esModule",{value:!0}),n.d(t,"default",{enumerable:!0,get:function(){return s;}});var a=n("f19d2b93");n("8e9ba2f6");var r=n("a9d1a279"),s=()=>(0,a.jsx)(r.Watermark,{content:"Ant Design",children:(0,a.jsx)("div",{style:{height:500}})});},fa63ad2a:function(e,t,n){"use strict";n.d(t,"__esModule",{value:!0}),n.d(t,"default",{enumerable:!0,get:function(){return s;}});var a=n("f19d2b93");n("3868ee65");var r=n("a9d1a279"),s=()=>(0,a.jsx)(r.Watermark,{content:["Ant Design","Happy Working"],children:(0,a.jsx)("div",{style:{height:500}})});}}]);