CP Design

使用 React hooks Typescript 开发的一个 H5 移动端 组件库

组件截图
其中包括了下图中的27个基础组件:
CP Design项目预览

CP Design Mobile

手机扫码查看

(github地址:https://10086xiaozhang.github.io/CP-DESIGN)

特性

  • 基于 CP Design 移动设计规范。
  • 规则化的视觉样式配置,适应各类产品风格。
  • 使用 TypeScript React hooks 开发,提供类型定义文件。

🖥 环境支持

  • Modern browsers and Internet Explorer 11+ (with polyfills)
  • Server-side Rendering
  • Electron

| IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |

📦 安装

npm install cp-design --save
yarn add cp-design

✨ 注意

在组件库中使用了 SASS,在安装的时候记得安装 node-sass

npm install node-sass --save-dev
yarn add node-sass -D

🔨 使用

import { Button } from 'cp-design'const App = () => (
<>
<Button type="primary">PRESS ME</Button>
</>
)

组件

  • Icon,
  • Button,
  • Input,
  • Row,
  • Col,
  • Affix,
  • Avatar,
  • Badge,
  • Card,
  • CheckboxGroup,
  • Checkbox,
  • Accordion,
  • Divider,
  • Modal,
  • Overlay,
  • Pagination,
  • Progress,
  • Radio,
  • Slider,
  • Step,
  • Spin,
  • Switch,
  • Tabs,
  • Tag,
  • ImagePicker,
  • Toast,
  • ActionSheet,
  • TabBar,
  • PickerPanel,
  • Picker,
  • SegmentedControl,
  • Popover,
  • NoticeBar,
  • SwipeAction
  • ListView

部分组件使用

Button 按钮

按钮的展示

引入组件

import * as React from 'react'
import { Button, Row, Col } from 'cp-design'

Demo 代码

export default function ButtonDemo() {const onClick = () => {}return (<div><Row style={{ marginBottom: '1rem' }}><Col span={24}><Button onClick={onClick}>default</Button></Col></Row><Row style={{ marginBottom: '1rem' }}><Col span={24}><Button disabled>default disabled</Button></Col></Row><Row style={{ marginBottom: '1rem' }}><Col span={24}><Button type="primary" onClick={onClick}>primary</Button></Col></Row><Row style={{ marginBottom: '1rem' }}><Col span={24}><Button type="primary" onClick={onClick} disabled>primary disabled</Button></Col></Row><Row style={{ marginBottom: '1rem' }}><Col span={24}><Button onClick={onClick} type="warning">warning</Button></Col></Row><Row style={{ marginBottom: '1rem' }}><Col span={24}><Button onClick={onClick} type="warning" disabled>warning disabled</Button></Col></Row><Row style={{ marginBottom: '1rem' }}><Col span={24}><Button onClick={onClick} loading>loading button</Button></Col></Row><Row style={{ marginBottom: '1rem' }}><Col span={24}><Button>with icon</Button></Col></Row></div>)
}

Badge 徽标数

徽标数的展示

引入组件

import * as React from 'react'
import { Badge, Row, Col } from 'cp-design'

Demo 代码

export default function BadgeDemo() {return (<div><Row style={{ marginBottom: '1rem' }}><Col span={24}><Badge dot status="default"><spanstyle={{ width: '26px', height: '26px', background: '#ddd', display: 'inline-block' }}/></Badge><spanstyle={{marginLeft: 12,height: '26px',lineHeight: '26px',display: 'inline-block',verticalAlign: 'top'}}>Dot badge</span></Col></Row><Row style={{ marginBottom: '1rem' }}><Col span={24}><Badge dot status="success"><spanstyle={{ width: '26px', height: '26px', background: '#ddd', display: 'inline-block' }}/></Badge><spanstyle={{marginLeft: 12,height: '26px',lineHeight: '26px',display: 'inline-block',verticalAlign: 'top'}}>Dot badge Success</span></Col></Row><Row style={{ marginBottom: '1rem' }}><Col span={24}><Badge text={'券1'} overflowCount={121}></Badge><Badgetext={'NEW'}overflowCount={121}style={{marginLeft: 12,padding: '0 3px',backgroundColor: '#21b68a',borderRadius: 2}}></Badge><Badgetext="自动缴费"style={{marginLeft: 12,padding: '0 3px',backgroundColor: '#fff',borderRadius: 2,color: '#f19736',border: '1px solid #f19736'}}/></Col></Row><Row style={{ marginBottom: '1rem' }}><Colspan={24}style={{border: '1px solid #999',height: 42,overflow: 'hidden'}}><Badge corner text={'促'} outStyle={{ height: 42, lineHeight: '42px' }}><spanstyle={{marginLeft: 12,display: 'inline-block'}}>Dot badge Success</span></Badge></Col></Row></div>)
}
属性 说明 类型 默认值 可选
text 展示的数字或文案,当为数字时候,大于 overflowCount 时显示为 ${overflowCount}+,为 0 时隐藏 string
corner 置于角落 boolean
disabled 设置禁用 boolean
dot 不展示数字,只有一个小红点 string/React.Element
overflowCount 展示封顶的数字值 number
status status 状态点 这个值对 dot 生效 ‘success’, ‘default’ , ‘process’ , ‘warning’ , ‘error’
style 自定义样式(样式) Object
outStyle 外围自定义样式(样式) Object
hot 营销样式 boolean

Api

属性 说明 类型 默认值 可选
type 按钮类型,可选值为 primary/ghost/warning 或者不设 string
size 按钮大小,可选值为 large、small string large
disabled 设置禁用 boolean
icon 可以是 Icon 组件里内置的某个 icon 的 type 值,也可以是任意合法的 ReactElement (注意: loading 设置后此项设置失效) string/React.Element
prefixCls class 前缀 默认 cp-ui-btn string
className 样式类名 fun():void
onClick 点击按钮的点击回调函数 fun() : void
style 自定义样式 Object
loading 是否出现正在加载 boolean

Icon 图标

图标的展示

引入组件

import * as React from 'react'
import { Icon, Row, Col } from 'cp-design'

Demo 代码

export default function IconDemo() {const list = ['check-circle','check','caret-up','delete','eye-close','eye','up','down','left','right','message-fill','link']const data = list.map(item => ({icon: <Icon type={item} />,text: item}))return (<div><h3>基本</h3>{data.map((item, index) => {if (index !== 0 && (index + 1) % 3 === 0) {return (<Row style={{ marginBottom: '1rem', textAlign: 'center' }} key={index}><Col span={8}>{data[index - 2].icon}<p>{data[index - 2].text}</p></Col><Col span={8}>{data[index - 1].icon}<p>{data[index - 1].text}</p></Col><Col span={8}>{item.icon}<p>{data[index].text}</p></Col></Row>)}return null})}<h3>大小</h3><Row style={{ marginBottom: '1rem', textAlign: 'center' }}><Col span={8}><Icon type={'camera-retro'} size={8} /></Col><Col span={8}><Icon type={'camera-retro'} size={16} /></Col><Col span={8}><Icon type={'camera-retro'} size={24} /></Col><Col span={8}><Icon type={'camera-retro'} size={32} /></Col></Row><h3>颜色</h3><Row style={{ marginBottom: '1rem', textAlign: 'center' }}><Col span={8}><Icon type={'camera-retro'} color="rgb(44, 167, 241)" /></Col><Col span={8}><Icon type={'camera-retro'} color="rgb(234, 32, 152)" /></Col><Col span={8}><Icon type={'camera-retro'} color="rgb(21, 239, 218)" /></Col><Col span={8}><Icon type={'camera-retro'} color="rgb(95, 25, 220)" /></Col></Row></div>)
}

Api

属性 说明 类型 默认值 可选
type 内置 icon 名称 string
size 图标大小 string,number
color 图标颜色 Color ‘#000’
rotate 是否旋转 boolean
rotateDegree 和 rotate 一起配置生效 0 ,90 ,180, 270 , 360
flip 是否翻转 boolean
flipOrder 和 flip 一起配置生效 ‘horizontal’ , ‘vertical’

Modal 弹窗

弹窗的展示

引入组件

import * as React from 'react'
import { Modal, Button, Row, Col } from 'cp-design'

Demo 代码

const { useState } = React
export default function ModalDemo() {const [modal1, setModal1] = useState(false)const [modal2, setModal2] = useState(false)const showModal1 = (e: React.MouseEvent) => {e.preventDefault()setModal1(true)}const showModal2 = (e: React.MouseEvent) => {e.preventDefault()setModal2(true)}return (<div><Modalvisible={modal1}title="Title1"closable={false}cancelText={null}onOk={() => {setModal1(false)}}><div style={{ height: 100, overflowY: 'scroll' }}>scoll content...<br />scoll content...<br />scoll content...<br />scoll content...<br />scoll content...<br />scoll content...<br /></div></Modal><Modalvisible={modal2}title="Title2"closable={false}onCancel={() => {setModal2(false)}}onOk={() => {alert('afterOK')setModal2(false)}}><div style={{ height: 100, overflowY: 'scroll' }}>scoll content...<br />scoll content...<br />scoll content...<br />scoll content...<br />scoll content...<br />scoll content...<br /></div></Modal><h1>Modal 对话框</h1><h3>基本</h3><Row style={{ marginBottom: '1rem' }}><Col span={24}><Button onClick={showModal1}>basic</Button></Col></Row><Row style={{ marginBottom: '1rem' }}><Col span={24}><Button onClick={showModal2}>confirm</Button></Col></Row></div>)
}

Api

属性 说明 类型 默认值 可选
cancelText 取消按钮自定义 React.ReactNode,string
okText 确定按钮自定义 React.ReactNode,string large
visible 是否可见 boolean
title Modal 弹窗标题 string/React.Element
children Modal 自定义内容区域 string/React.Element
prefixCls class 前缀 默认 cp-ui-modal string
className 样式类名 fun():void
maskClassName 弹出层样式类名 fun():void
onOk 点击确定回调函数 fun() : void
onCancel 点击取消回调函数 fun() : void
style 自定义样式 Object
maskClosable 点击浮层是否允许关闭 boolean true
closable 是否显示右上角关闭图标 boolean true
closeIcon 自定义右上角关闭图标 React.ReactNode
destroy 是否销毁(关闭后自动销毁) boolean true
maskAnimationName 弹出层动画类名 string fade
说明

icon 图标遵循fontawesome规则

Input 输入框

输入框的展示

引入组件

import * as React from 'react'
import { useForm, Controller } from 'react-hook-form'
import { Input, Button, Icon, Row, Col } from 'cp-design'

Demo 代码

const { useRef } = React
export default function ButtonDemo() {const inputRef = (useRef < HTMLInputElement) | (null > null)const { handleSubmit, control, errors } = useForm() // initialise the hookconst onSubmit = (data: any) => {console.log(data)}const getInputRef = (ele: HTMLInputElement) => {inputRef.current = ele}const handleFocus = (e: React.MouseEvent) => {e.preventDefault()if (!!inputRef.current) inputRef.current.focus()}const btnStyle = {background: 'linear-gradient(316deg, #f75cff 0%, rgb(236, 9, 51) 100%)',opacity: 0.5,display: 'block',margin: '0 auto',height: '2.8rem',borderRadius: '0.6rem',textAlign: 'center',lineHeight: '2.8rem',fontSize: '0.88rem',color: '#fff'}return (<div><h1>Input 输入框</h1><h3>基本</h3><form onSubmit={handleSubmit(onSubmit)}><div style={{ color: '#777575', marginBottom: '0.01rem' }}>标题</div><Row style={{ marginBottom: '1rem' }}><Col span={24}><Controlleras={<Inputclearplaceholder="auto focus"style={{ height: '2.5rem' }}error={errors.title0 && <span style={{ color: 'red' }}>This is required.</span>}/>}name="title0"control={control}rules={{ required: true }}/></Col></Row><div style={{ color: '#777575', marginBottom: '0.01rem' }}>标题</div><Row style={{ marginBottom: '1rem' }}><Col span={24}><Controlleras={<InputclearaddonBefore={<divstyle={{width: '100%',color: 'rgb(16, 142, 233)',textAlign: 'center',float: 'right',height: '2.33rem'}}onClick={handleFocus}>click to focus</div>}getInputRef={getInputRef}placeholder="auto focus"style={{ height: '2.5rem' }}error={errors.title1 && (<span style={{ color: 'red', paddingLeft: '8rem' }}>This is required.</span>)}/>}name="title1"control={control}rules={{ required: true }}/></Col></Row><div style={{ color: '#777575', marginBottom: '0.01rem' }}>自定义前缀</div><Row style={{ marginBottom: '1rem' }}><Col span={24}><Controlleras={<Inputclearprefix={<Icon type={'user'} style={{ lineHeight: '2.5rem' }} />}placeholder="auto focus"style={{ height: '2.5rem' }}error={errors.title2 && (<span style={{ color: 'red', paddingLeft: '1rem' }}>This is required.</span>)}/>}name="title2"control={control}rules={{ required: true }}/></Col></Row><div style={{ color: '#777575', marginBottom: '0.01rem' }}>自定义内部前缀</div><Row style={{ marginBottom: '1rem' }}><Col span={24}><Controlleras={<InputclearinlinePrefix={<Icon type={'user'} style={{ lineHeight: '2.5rem' }} />}placeholder="auto focus"style={{ height: '2.5rem' }}error={errors.title3 && (<span style={{ color: 'red', paddingLeft: '1.4rem' }}>This is required.</span>)}/>}name="title3"control={control}rules={{ required: true }}/></Col></Row><div style={{ color: '#777575', marginBottom: '0.01rem' }}>价格</div><Row style={{ marginBottom: '1rem' }}><Col span={24}><Controlleras={<InputinlineSuffix={<Icon type={'cny'} style={{ lineHeight: '2.5rem' }} />}placeholder="0.00"style={{ height: '2.5rem' }}error={errors.title4 && (<span style={{ color: 'red', paddingLeft: '1.4rem' }}>This is required.</span>)}/>}name="title4"control={control}rules={{ required: true }}/></Col></Row><h3>Format</h3><div style={{ color: '#777575', marginBottom: '0.01rem' }}>银行卡</div><Row style={{ marginBottom: '1rem' }}><Col span={24}><Controlleras={<Inputcleartype="bankCard"placeholder="请输入银行卡"style={{ height: '2.5rem' }}error={errors.bankCard && <span style={{ color: 'red' }}>This is required.</span>}/>}name="bankCard"control={control}rules={{ required: true }}/></Col></Row><div style={{ color: '#777575', marginBottom: '0.01rem' }}>手机号码</div><Row style={{ marginBottom: '1rem' }}><Col span={24}><Controlleras={<Inputcleartype="mobile"placeholder="请输入手机号码"style={{ height: '2.5rem' }}error={errors.mobile && <span style={{ color: 'red' }}>This is required.</span>}/>}name="mobile"control={control}rules={{ required: true }}/></Col></Row><div style={{ color: '#777575', marginBottom: '0.01rem' }}>密码</div><Row style={{ marginBottom: '1rem' }}><Col span={24}><Controlleras={<Inputcleartype="password"placeholder="请输入密码"style={{ height: '2.5rem' }}error={errors.password && <span style={{ color: 'red' }}>This is required.</span>}/>}name="password"control={control}rules={{ required: true }}/></Col></Row><div style={{ color: '#777575', marginBottom: '0.01rem' }}>数字键盘</div><Row style={{ marginBottom: '1rem' }}><Col span={24}><Controlleras={<Inputcleartype="number"placeholder="数字键盘"style={{ height: '2.5rem' }}error={errors.number && <span style={{ color: 'red' }}>This is required.</span>}/>}name="number"control={control}rules={{ required: true }}/></Col></Row><h3>禁用</h3><Row style={{ marginBottom: '1rem' }}><Col span={24}><Controlleras={<Input clear disabled placeholder="不能输入" style={{ height: '2.5rem' }} />}name="number"control={control}rules={{ required: true }}/></Col></Row><Row justify={'center'}><Col span={18}><Button htmlType="submit" onClick={handleSubmit(onSubmit)} style={btnStyle}>Submit</Button></Col></Row></form></div>)
}

Api

属性 说明 类型 默认值 可选
type 可以是银行卡 bankCard; 手机号 phone(此时最大长度固定为 11,maxLength 设置无效); 密码 password;类型:InputType string “text”
addonBefore 前置点击 React.ReactNode
addonAfter 后置点击 React.ReactNode
error 错误提示 string/React.Element
clear 是否显示清除 boolean false
className 样式类名 fun():void
getInputRef 获取元素组件的 ref (ele: HTMLInputElement) => void
style 自定义样式 Object
disabled 是否禁用 boolean
inlinePrefix 内嵌 input 前缀 React.ReactNode
inlineSuffix 内嵌 input 前缀 React.ReactNode
prefix input 外前缀 React.ReactNode
suffix input 外后缀 React.ReactNode
prefix input 外前缀 string
value value 值(受控与否参考 react-hook-form) string
defaultValue 默认 value 值(受控与否参考 react-hook-form) string
InputType

(‘text’ ,‘number’ , ‘mobile’ ,‘bankCard’ , ‘password’)

案例

mobile web demo

手机扫码查看

https://10086xiaozhang.github.io/CP-DESIGN

安装与使用

介绍

浏览器支持

  • iOS
  • Android 4.0+

链接

  • 案例主页
  • 组件文档
  • 例子

欢迎贡献

有任何建议或意见您可以进行 提问。

作者🎮Email

fcj_zhang@163.com

注明:文章转载:https://blog.csdn.net/XIAOZHANG86/article/details/105325681

查看全文
如若内容造成侵权/违法违规/事实不符,请联系编程学习网邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

相关文章

  1. CMOS工艺名词解

    saliside——当金属和硅化物接触时会产生一层融合物,叫难融金属硅化物,此及saliside。siliside——一种工艺,在源漏区淀积(或是叫覆盖?)硅化物,这样一种 工艺就叫siliside。poliside——也为一种工艺,乃在栅极poly上淀积硅化物。A.M.U 原子质量数 ADI After…...

    2024/4/28 12:10:19
  2. MTD源码分析(1)

    Linux MTD源代码分析by jim zeusvision 0.1If you got any Problem, Suggestion, Advice or Question ,Please mail to: jimzeus@sina.com.cnAny correction will be appreciated.专有名词: 1. MTD:Memory Technology Device,内存技术设备,2. JEDEC:Joint Electron Devi…...

    2024/4/28 13:02:42
  3. 导电聚合物中热电效应转换原理

    CPs中热和电转换原理 绝缘聚合物有共键价原子组成(类似于Si),sp3sp^3sp3杂化的碳原子,共享电子被束缚在链形分子的低能量轨道上,导致导电率很低。但是在一些共轭聚合物(conjugated polymers), 比如聚乙炔(trans-polyacetylene), 碳原子sp2sp^2sp2杂化,在垂直于σ\sigmaσ键…...

    2024/4/28 18:57:33
  4. 一种无线传感器网络自组网协议的研究与实现

    来源:单片机与嵌入式系统应用 作者:余向阳 徐科军 周杨 引言无线传感器网络是由一些功耗低、体积小的传感器节点,以无线通讯方式自组成一个网络。这些分散的节点能够协作地实施监测、感知和采集各种环境对象的信息,具有非常广阔的应用前景[1]。近年来,无线传感器网络的研…...

    2024/4/28 19:58:35
  5. 柔性电子 --Conductive polymers: Creating their niche in thermoelectric domain

    关键字: Thermoelectric Power Generator(TEG) 讨论内容:(i) factors affecting thermoelectric performance (ii) strategies required for improvement of the power factor(due to inherent low thermal conductivity) 提高功率因子的策略 (iii) challengesfigure-of-meri…...

    2024/4/28 13:30:32
  6. 计算软件介绍siesta、vasp、wien2k、PWSCF、Materials Studio

    1 siesta 背景介绍:(Spanish Initiative for Electronic Simulations with Thousands ofAtoms)是一种实现电子结构计算和第一性原理分子动力学模拟的程序,同时也是一种实现的方法。软件主要由剑桥大学地球科学系Emilio教授、西 班牙马德里Autnoma大学的Soler与其他大学的研究…...

    2024/4/28 6:43:12
  7. 尖端技术104之计算机技术的未来

    【译文】 在过去的20年里,计算机的运算速度有了令人印象深刻的提升,网络吞吐量和英特网的速度。这些好处为一些领域的革命铺设好了道路,就像分配物理,人工智能和纳米技术。这些好处对我们的生活和工作会产生深远的影响。我们在电影当中看到的虚拟现实,就像《矩阵…...

    2024/4/27 23:50:15
  8. 自2018年以来我不知道的事情-Dan Abramov

    原文地址哈:https://overreacted.io/things-i-dont-know-as-of-2018/ 人们常常假设我知道的知识远比实际知识道的多。我不抱怨这个错误的想法。(拥有些许成就的少数群体的人们往往遭受外人遐想的偏见,尽管成就来之不易,但这很糟糕。) 在这篇文章里,我将提供一个不完整的…...

    2024/4/27 22:07:45
  9. 你离英文的技术文档大神,只差这个中英文对照!

    半导体技术总是碰到很多英文文献跟单词。小编一直在后台收到烧友留言希望我们提供一下参考手册给到大家一起学习。在这里我们整理一些常用的半导体术语的中英文版本,希望对大家有所帮助。如果当中有出错,请帮忙纠正,谢谢!AAbrupt junction 突变结Accelerated testing 加速实…...

    2024/4/28 8:57:49
  10. 物理专业英语词汇(O-Z)

    物理专业英语词汇(O-Z) O o branch o 分支 object 对象 object distance 物距 object point 物点 object space 物空间 objective 物镜 objective glass 物镜 objective lens 物镜 objective prism 物端棱镜 oblateness 扁率 oblateness of the earth 地球偏率 obliquity of t…...

    2024/4/28 22:49:44
  11. 微电子半导体集成电路专业术语英语整理

    A be absorb in 集中精力做某事 access control list 访问控制表 active attack 主动攻击 activeX control ActiveX 控件 advanced encryption standard AES,高级加密标准 algorithm 算法 alteration of message 改变消息 application level attack 应用层攻击 argume…...

    2024/4/19 11:44:52
  12. Linux内核MTD子系统七之Flash 存储器接口标准:CFI和JEDEC

    Flash 存储器接口标准:CFI和JEDEC。CFI为公共Flash接口[Common FlashInterface],用来帮助程序从Flash芯片中获取操作方式信息,而不用在程序中硬编码Flash的ID。 CFI: 自从Intel公司于1988年推出了可快速擦写的非易失性存储器FlashMemory以来,快速擦写存储器FlashMemory技术…...

    2024/4/20 18:33:49
  13. 半导体术语的中英文版本

    A Abrupt junction 突变结 Accelerated testing 加速实验 Acceptor 受主 Acceptor atom 受主原子 Accumulation 积累、堆积 Accumulating contact 积累接触 Accumulation region 积累区 Accumulation layer 积累层 Active region 有源区 Active component 有源元 Active device…...

    2024/4/19 13:34:07
  14. 分子轨道波函数相对论效应的高分辨电子动量谱学观测

    [摘要]利用新研制的能量分辨为0.5 eV 的高分辨(e, 2e)谱仪测量了CF3I分子在9—15 eV能区的束缚能谱.新谱仪能较好地分辨该分子碘孤对轨道的自旋轨道劈裂组分5e3/2和5e1/2,并得到了它们各自的电子动量分布以及分支比随动量的变化关系.实验结果清楚地显示了5e3/2和5e1/2态波函数…...

    2024/4/27 14:02:15
  15. 收藏,半导体一些术语的中英文对照

    很多相关的技术术语都是用英文表述。且由于很多从业者都有海外经历,或者他们习惯于用英文表述相关的工艺和技术节点,那就导致很多的英文术语被翻译为中文之后,很多人不能对照得上,或者不知道怎么翻译。在这里我们整理一些常用的半导体术语的中英文版本,希望对大家有所帮助…...

    2024/4/28 17:47:25
  16. 第一次使用MFC开发桌面小程序

    第一次使用MFC开发桌面小程序闲话QTMFC学习c++学习mfc开发mfc小程序需要学哪些创建对话框程序添加控件添加响应控件设置Spin ControlEdit Control添加菜单为菜单添加事件弹出第二个窗口禁用F1,Esc,Enter注册全局热键禁止窗口缩放读写文件使用GitGitHub还使用了哪些API多线程按…...

    2024/4/21 9:47:16
  17. Magnetoresistive random-access memory(MRAM)简介

    转自维基百科:https://en.wikipedia.org/wiki/Magnetoresistive_random-access_memory 点击打开链接Magnetoresistive random-access memory (MRAM) is a non-volatile random-access memory technology available today that began its development in mid-1980s.[1]Continue…...

    2024/4/25 19:04:46
  18. 双电子两个格点Hubbard模型严格对角化

    考虑如下体系,对应H2分子这四个基地都可以用产生算符写出,最后可以得到哈密顿量矩阵最终得到基态能量,对应以及对应的系数,对应的基态波函数为前面的是反对称态,后面是对称的双占据态,还有一种方法是使用变分波函数这个波函数带一个参数g,直接可以得到体系的能量Let us …...

    2024/4/24 23:03:36
  19. php点击链接直接下载文件写法

    down.php<?php$file = "avater.jpg"; //计算机上的一个文件 $fileName = basename($file); //获取文件名 header("Content-Type:applica…...

    2024/4/22 8:08:48
  20. GitHub 5月最受欢迎开源发布

    GitHub 发布雷达(release radar) 5 月最受欢迎的一些开源发布mitmproxy 4.0mitmproxy 是用 Python 和 C 开发的一个中间人代理软件(man-in-the-middle proxy),它可以用来拦截、修改、重放和保存 HTTP/HTTPS 请求。最新版本 mitmproxy 4.0 在速度上有大幅提升,新版本也有一…...

    2024/4/21 1:13:12

最新文章

  1. OpenHarmony 实战开发——分布式购物车案例展示~

    简介 分布式购物车demo 模拟的是我们购物时参加满减活动&#xff0c;进行拼单的场景&#xff1b;实现两人拼单时&#xff0c;其他一人添加商品到购物车&#xff0c;另外一人购物车列表能同步更新&#xff0c;且在购物车列表页面结算时&#xff0c;某一人结算对方也能实时知道结…...

    2024/4/29 1:24:50
  2. 梯度消失和梯度爆炸的一些处理方法

    在这里是记录一下梯度消失或梯度爆炸的一些处理技巧。全当学习总结了如有错误还请留言&#xff0c;在此感激不尽。 权重和梯度的更新公式如下&#xff1a; w w − η ⋅ ∇ w w w - \eta \cdot \nabla w ww−η⋅∇w 个人通俗的理解梯度消失就是网络模型在反向求导的时候出…...

    2024/3/20 10:50:27
  3. JSON格式转换

    文章目录 1. JSON 格式2. 细节 1. JSON 格式 实体类格式&#xff1a; public class Student {public string name {get; set;}public int age {get; set;} } public class Classs {public string teacher {get; set;}public List<Student> students {get; set;} }JSON格…...

    2024/4/18 22:12:03
  4. 多态--下

    文章目录 概念多态如何实现的指向谁调谁&#xff1f;例子分析 含有虚函数类的大小是多少&#xff1f;虚函数地址虚表地址多继承的子类的大小怎么计算&#xff1f;练习题虚函数和虚继承 概念 优先使用组合、而不是继承; 继承会破坏父类的封装、因为子类也可以调用到父类的函数;…...

    2024/4/28 11:54:13
  5. Python(乱学)

    字典在转化为其他类型时&#xff0c;会出现是否舍弃value的操作&#xff0c;只有在转化为字符串的时候才不会舍弃value 注释的快捷键是ctrl/ 字符串无法与整数&#xff0c;浮点数&#xff0c;等用加号完成拼接 5不入&#xff1f;&#xff1f;&#xff1f; 还有一种格式化的方法…...

    2024/4/22 13:05:01
  6. Dart教程_Flutter入门必备基础视频教程-2019年5月录制

    ...

    2024/4/28 8:07:51
  7. 商业智能数据仓库ETL视频教程ssis/kettle视频教程/informatica视频教程/datastage视频教程

    ...

    2024/4/28 23:34:25
  8. 论文写作之常见错误总结

    内容出处,个人常见错误已加红!目录1 用词分析1.1 近义词的用法区别1.2 大小写1.3 单复数1.4 数字的英文写法1.5 词义的选取1.6 冠词1.7 介词的误用1.8 比较级1.9 缩写1.10 中英文习惯用法1.11 词性的选取1.12 形似词1.13 动词的过去时和过去分词1.15 及物动词、不及物动词和情…...

    2024/4/28 20:58:38
  9. 一些前端开发的干货网址

    一些前端开发的干货---- `资料或许有重复!` `资料或许有重复!` `资料或许有重复!`,我也只是一个搬运工![库?](https://github.com/dypsilon/frontend-dev-bookmarks) [目前最全的前端开发面试题及答案](https://github.com/HerbertKarajan/Fe-Interview-questions)推荐 > …...

    2024/4/28 11:19:46
  10. 破解字谜游戏的小程序

    游戏描述:输入是由一些字母和单词的二维数组组成。目标是要找出字谜中的单词,这些单词可能是水平、垂直或者沿对角线以任何方向放置的。解决方案:对表中,检查每个有序三元组(行,列,方向),验证是否有单词存在。这需要大量嵌套的for循环。其中的单词库,我用的是四级单词的…...

    2024/4/28 22:13:46
  11. 2011大学英语四级核心高频词汇表免费下载

    2011年大学英语四级核心高频词汇表abandon vt.丢弃;放弃,抛弃 ability n.能力;能耐,本领 abnormal a.不正常的;变态的 aboard ad.在船(车)上;上船 abroad ad.(在)国外;到处 absence n.缺席,不在场;缺乏 absent a.不在场的;缺乏的 absolute a.绝对的;纯粹的 …...

    2024/4/28 0:56:18
  12. 4、6word

    英语四级+六级词汇大全(全部带“音标”) 第一部分:四级词汇大全 Aabandon/ ə’bndən/ vt.丢弃;放弃,抛弃 aboard/ ə’bɔ:d/ ad.在船(车)上;上船 absolute/ ‘bsəlu:t/ a.绝对的;纯粹的 absolutely/ ‘bsəlu:tli/ ad.完全地;绝对地 absorb/ əb’sɔ:b/ vt.吸收…...

    2024/4/28 14:03:13
  13. JavaScript 资源大全

    JavaScript 资源大全我想很多程序员应该记得 GitHub 上有一个 Awesome - XXX 系列的资源整理。awesome-javascript 是 sorrycc 发起维护的 JS 资源列表,内容包括:包管理器、加载器、测试框架、运行器、QA、MVC框架和库、模板引擎、数据可视化、时间轴、编辑器等等Awesome 系列…...

    2024/4/28 14:15:53
  14. js 资源大全

    转自:http://bigdata.evget.com/post/1198.html包管理器管理着 JavaScript 库,并提供读取和打包它们的工具。npm:npm 是 JavaScript 的包管理器。官网Bower:一个 web 应用的包管理器。官网component:能构建更好 web 应用的客户端包管理器。官网spm:全新的静态包管理器。官…...

    2024/4/28 9:45:42
  15. pwscf 声子计算

    1) 声子谱的计算原理;2) PWSCF计算声子谱的步骤;3) 高对称性点的插入及后处理步骤。声子谱计算步骤小结:以下两个步骤写入prun_phon脚本文件一次执行1) 用pw.x进行电子密度的自洽计算;2) 用ph.x对小的q网格点进行动力学矩阵元的计算; 【得到fildyn=$name.dyn动力学矩阵文件,…...

    2024/4/28 5:59:37
  16. javascript功能插件大集合 前端常用插件 js常用插件

    包管理器 管理着 JavaScript 库,并提供读取和打包它们的工具。npm:npm 是 JavaScript 的包管理器。官网 Bower:一个 web 应用的包管理器。官网 component:能构建更好 web 应用的客户端包管理器。官网 spm:全新的静态包管理器。官网 jam:一个专注于浏览器端和兼容 Require…...

    2024/4/28 20:07:52
  17. 高性能计算专业应用软件大观

    谈到高性能计算,很多人都会想到那些每秒可以运行百万亿次、千万亿次计算的超级计算机,如最近炒得很火爆的“天河一号”、“曙光6000“等,但很少有人会想到上面跑的软件。其实,硬件只是基础,只是提供了平台和资源,真正发挥作用的还得依靠软件。一直以来,国内“重硬轻软”…...

    2024/4/28 5:56:34
  18. 说一说美国大学常用的课本吧,各位想自学的可以参考

    电驴上看到的,拿过来方便自己以后看,o(∩_∩)o... 原帖看http://board.verycd.com/t271462.html我来说一些美国college比较流行的课本,因为本人是理工科,上的大学也是很一般的,不过没吃过猪肉也见过猪跑啊。顶尖大学的课本名单还是能找到的。很多希望学习英文,或是由至于…...

    2024/4/28 7:00:56
  19. 量子信息技术(QIT)

    信息技术IT(Information Technology),比特(bit)——20世纪的技术革命量子信息技术QIT(Quantum Information Technology),量子比特(qbit)——21世纪的技术革命量子信息论在科学方面有着深远的影响,改造量子力学基础,加速变革时空观,加深对定域因果律的看法。量子信息论在技术…...

    2024/4/28 23:42:00
  20. react hooks + typescript 开发的H5移动端组件库

    CP Design 使用 React hooks Typescript 开发的一个 H5 移动端 组件库其中包括了下图中的27个基础组件:CP Design Mobile(github地址:https://10086xiaozhang.github.io/CP-DESIGN) 特性基于 CP Design 移动设计规范。 规则化的视觉样式配置,适应各类产品风格。 使用 TypeScri…...

    2024/4/28 15:23:46
  21. react hooks + typescript + sass 开发的H5移动端组件库

    CP Design 使用 React hooks Typescript 开发的一个 H5 移动端 组件库其中包括了下图中的27个基础组件:CP Design Mobile(github地址:https://10086xiaozhang.github.io/CP-DESIGN) 特性基于 CP Design 移动设计规范。 规则化的视觉样式配置,适应各类产品风格。 使用 TypeScri…...

    2024/4/29 1:24:55
  22. CMOS工艺名词解

    saliside——当金属和硅化物接触时会产生一层融合物,叫难融金属硅化物,此及saliside。siliside——一种工艺,在源漏区淀积(或是叫覆盖?)硅化物,这样一种 工艺就叫siliside。poliside——也为一种工艺,乃在栅极poly上淀积硅化物。A.M.U 原子质量数 ADI After…...

    2024/4/28 12:10:19
  23. MTD源码分析(1)

    Linux MTD源代码分析by jim zeusvision 0.1If you got any Problem, Suggestion, Advice or Question ,Please mail to: jimzeus@sina.com.cnAny correction will be appreciated.专有名词: 1. MTD:Memory Technology Device,内存技术设备,2. JEDEC:Joint Electron Devi…...

    2024/4/28 13:02:42
  24. 导电聚合物中热电效应转换原理

    CPs中热和电转换原理 绝缘聚合物有共键价原子组成(类似于Si),sp3sp^3sp3杂化的碳原子,共享电子被束缚在链形分子的低能量轨道上,导致导电率很低。但是在一些共轭聚合物(conjugated polymers), 比如聚乙炔(trans-polyacetylene), 碳原子sp2sp^2sp2杂化,在垂直于σ\sigmaσ键…...

    2024/4/28 18:57:33
  25. 一种无线传感器网络自组网协议的研究与实现

    来源:单片机与嵌入式系统应用 作者:余向阳 徐科军 周杨 引言无线传感器网络是由一些功耗低、体积小的传感器节点,以无线通讯方式自组成一个网络。这些分散的节点能够协作地实施监测、感知和采集各种环境对象的信息,具有非常广阔的应用前景[1]。近年来,无线传感器网络的研…...

    2024/4/28 19:58:35
  26. 配置失败还原请勿关闭计算机,电脑开机屏幕上面显示,配置失败还原更改 请勿关闭计算机 开不了机 这个问题怎么办...

    解析如下&#xff1a;1、长按电脑电源键直至关机&#xff0c;然后再按一次电源健重启电脑&#xff0c;按F8健进入安全模式2、安全模式下进入Windows系统桌面后&#xff0c;按住“winR”打开运行窗口&#xff0c;输入“services.msc”打开服务设置3、在服务界面&#xff0c;选中…...

    2022/11/19 21:17:18
  27. 错误使用 reshape要执行 RESHAPE,请勿更改元素数目。

    %读入6幅图像&#xff08;每一幅图像的大小是564*564&#xff09; f1 imread(WashingtonDC_Band1_564.tif); subplot(3,2,1),imshow(f1); f2 imread(WashingtonDC_Band2_564.tif); subplot(3,2,2),imshow(f2); f3 imread(WashingtonDC_Band3_564.tif); subplot(3,2,3),imsho…...

    2022/11/19 21:17:16
  28. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机...

    win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”问题的解决方法在win7系统关机时如果有升级系统的或者其他需要会直接进入一个 等待界面&#xff0c;在等待界面中我们需要等待操作结束才能关机&#xff0c;虽然这比较麻烦&#xff0c;但是对系统进行配置和升级…...

    2022/11/19 21:17:15
  29. 台式电脑显示配置100%请勿关闭计算机,“准备配置windows 请勿关闭计算机”的解决方法...

    有不少用户在重装Win7系统或更新系统后会遇到“准备配置windows&#xff0c;请勿关闭计算机”的提示&#xff0c;要过很久才能进入系统&#xff0c;有的用户甚至几个小时也无法进入&#xff0c;下面就教大家这个问题的解决方法。第一种方法&#xff1a;我们首先在左下角的“开始…...

    2022/11/19 21:17:14
  30. win7 正在配置 请勿关闭计算机,怎么办Win7开机显示正在配置Windows Update请勿关机...

    置信有很多用户都跟小编一样遇到过这样的问题&#xff0c;电脑时发现开机屏幕显现“正在配置Windows Update&#xff0c;请勿关机”(如下图所示)&#xff0c;而且还需求等大约5分钟才干进入系统。这是怎样回事呢&#xff1f;一切都是正常操作的&#xff0c;为什么开时机呈现“正…...

    2022/11/19 21:17:13
  31. 准备配置windows 请勿关闭计算机 蓝屏,Win7开机总是出现提示“配置Windows请勿关机”...

    Win7系统开机启动时总是出现“配置Windows请勿关机”的提示&#xff0c;没过几秒后电脑自动重启&#xff0c;每次开机都这样无法进入系统&#xff0c;此时碰到这种现象的用户就可以使用以下5种方法解决问题。方法一&#xff1a;开机按下F8&#xff0c;在出现的Windows高级启动选…...

    2022/11/19 21:17:12
  32. 准备windows请勿关闭计算机要多久,windows10系统提示正在准备windows请勿关闭计算机怎么办...

    有不少windows10系统用户反映说碰到这样一个情况&#xff0c;就是电脑提示正在准备windows请勿关闭计算机&#xff0c;碰到这样的问题该怎么解决呢&#xff0c;现在小编就给大家分享一下windows10系统提示正在准备windows请勿关闭计算机的具体第一种方法&#xff1a;1、2、依次…...

    2022/11/19 21:17:11
  33. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”的解决方法...

    今天和大家分享一下win7系统重装了Win7旗舰版系统后&#xff0c;每次关机的时候桌面上都会显示一个“配置Windows Update的界面&#xff0c;提示请勿关闭计算机”&#xff0c;每次停留好几分钟才能正常关机&#xff0c;导致什么情况引起的呢&#xff1f;出现配置Windows Update…...

    2022/11/19 21:17:10
  34. 电脑桌面一直是清理请关闭计算机,windows7一直卡在清理 请勿关闭计算机-win7清理请勿关机,win7配置更新35%不动...

    只能是等着&#xff0c;别无他法。说是卡着如果你看硬盘灯应该在读写。如果从 Win 10 无法正常回滚&#xff0c;只能是考虑备份数据后重装系统了。解决来方案一&#xff1a;管理员运行cmd&#xff1a;net stop WuAuServcd %windir%ren SoftwareDistribution SDoldnet start WuA…...

    2022/11/19 21:17:09
  35. 计算机配置更新不起,电脑提示“配置Windows Update请勿关闭计算机”怎么办?

    原标题&#xff1a;电脑提示“配置Windows Update请勿关闭计算机”怎么办&#xff1f;win7系统中在开机与关闭的时候总是显示“配置windows update请勿关闭计算机”相信有不少朋友都曾遇到过一次两次还能忍但经常遇到就叫人感到心烦了遇到这种问题怎么办呢&#xff1f;一般的方…...

    2022/11/19 21:17:08
  36. 计算机正在配置无法关机,关机提示 windows7 正在配置windows 请勿关闭计算机 ,然后等了一晚上也没有关掉。现在电脑无法正常关机...

    关机提示 windows7 正在配置windows 请勿关闭计算机 &#xff0c;然后等了一晚上也没有关掉。现在电脑无法正常关机以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;关机提示 windows7 正在配…...

    2022/11/19 21:17:05
  37. 钉钉提示请勿通过开发者调试模式_钉钉请勿通过开发者调试模式是真的吗好不好用...

    钉钉请勿通过开发者调试模式是真的吗好不好用 更新时间:2020-04-20 22:24:19 浏览次数:729次 区域: 南阳 > 卧龙 列举网提醒您:为保障您的权益,请不要提前支付任何费用! 虚拟位置外设器!!轨迹模拟&虚拟位置外设神器 专业用于:钉钉,外勤365,红圈通,企业微信和…...

    2022/11/19 21:17:05
  38. 配置失败还原请勿关闭计算机怎么办,win7系统出现“配置windows update失败 还原更改 请勿关闭计算机”,长时间没反应,无法进入系统的解决方案...

    前几天班里有位学生电脑(windows 7系统)出问题了&#xff0c;具体表现是开机时一直停留在“配置windows update失败 还原更改 请勿关闭计算机”这个界面&#xff0c;长时间没反应&#xff0c;无法进入系统。这个问题原来帮其他同学也解决过&#xff0c;网上搜了不少资料&#x…...

    2022/11/19 21:17:04
  39. 一个电脑无法关闭计算机你应该怎么办,电脑显示“清理请勿关闭计算机”怎么办?...

    本文为你提供了3个有效解决电脑显示“清理请勿关闭计算机”问题的方法&#xff0c;并在最后教给你1种保护系统安全的好方法&#xff0c;一起来看看&#xff01;电脑出现“清理请勿关闭计算机”在Windows 7(SP1)和Windows Server 2008 R2 SP1中&#xff0c;添加了1个新功能在“磁…...

    2022/11/19 21:17:03
  40. 请勿关闭计算机还原更改要多久,电脑显示:配置windows更新失败,正在还原更改,请勿关闭计算机怎么办...

    许多用户在长期不使用电脑的时候&#xff0c;开启电脑发现电脑显示&#xff1a;配置windows更新失败&#xff0c;正在还原更改&#xff0c;请勿关闭计算机。。.这要怎么办呢&#xff1f;下面小编就带着大家一起看看吧&#xff01;如果能够正常进入系统&#xff0c;建议您暂时移…...

    2022/11/19 21:17:02
  41. 还原更改请勿关闭计算机 要多久,配置windows update失败 还原更改 请勿关闭计算机,电脑开机后一直显示以...

    配置windows update失败 还原更改 请勿关闭计算机&#xff0c;电脑开机后一直显示以以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;配置windows update失败 还原更改 请勿关闭计算机&#x…...

    2022/11/19 21:17:01
  42. 电脑配置中请勿关闭计算机怎么办,准备配置windows请勿关闭计算机一直显示怎么办【图解】...

    不知道大家有没有遇到过这样的一个问题&#xff0c;就是我们的win7系统在关机的时候&#xff0c;总是喜欢显示“准备配置windows&#xff0c;请勿关机”这样的一个页面&#xff0c;没有什么大碍&#xff0c;但是如果一直等着的话就要两个小时甚至更久都关不了机&#xff0c;非常…...

    2022/11/19 21:17:00
  43. 正在准备配置请勿关闭计算机,正在准备配置windows请勿关闭计算机时间长了解决教程...

    当电脑出现正在准备配置windows请勿关闭计算机时&#xff0c;一般是您正对windows进行升级&#xff0c;但是这个要是长时间没有反应&#xff0c;我们不能再傻等下去了。可能是电脑出了别的问题了&#xff0c;来看看教程的说法。正在准备配置windows请勿关闭计算机时间长了方法一…...

    2022/11/19 21:16:59
  44. 配置失败还原请勿关闭计算机,配置Windows Update失败,还原更改请勿关闭计算机...

    我们使用电脑的过程中有时会遇到这种情况&#xff0c;当我们打开电脑之后&#xff0c;发现一直停留在一个界面&#xff1a;“配置Windows Update失败&#xff0c;还原更改请勿关闭计算机”&#xff0c;等了许久还是无法进入系统。如果我们遇到此类问题应该如何解决呢&#xff0…...

    2022/11/19 21:16:58
  45. 如何在iPhone上关闭“请勿打扰”

    Apple’s “Do Not Disturb While Driving” is a potentially lifesaving iPhone feature, but it doesn’t always turn on automatically at the appropriate time. For example, you might be a passenger in a moving car, but your iPhone may think you’re the one dri…...

    2022/11/19 21:16:57