当前位置: 首页 > news >正文

做饲料推广哪个网站好百度账号登录不了

做饲料推广哪个网站好,百度账号登录不了,东莞企业网站教程,沈阳做网络推广的公司拖拽功能在平时开发中是很常见的,这篇文章主要使用react-beautiful-dnd插件实现此功能。 非常好用,附上GitHub地址:https://github.com/atlassian/react-beautiful-dnd 安装及引入 // 1.引入 # yarn yarn add react-beautiful-dnd# npm npm…

拖拽功能在平时开发中是很常见的,这篇文章主要使用react-beautiful-dnd插件实现此功能。
非常好用,附上GitHub地址:https://github.com/atlassian/react-beautiful-dnd


安装及引入

// 1.引入
# yarn
yarn add react-beautiful-dnd# npm
npm install react-beautiful-dnd --save

具体使用
 

import { DragDropContext, Droppable, Draggable } from "react-beautiful-dnd";// 样式相关 代码
const grid = 8;
// 垂直样式
// const getItemStyle = (isDragging, draggableStyle) => ({
//     // some basic styles to make the items look a bit nicer
//     userSelect: "none",
//     padding: grid * 2,
//     margin: `0 0 ${grid}px 0`,
//
//     // change background colour if dragging
//     background: isDragging ? "lightgreen" : "grey",
//
//     // styles we need to apply on draggables
//     ...draggableStyle
// });
// const getListStyle = isDraggingOver => ({
//     background: isDraggingOver ? "lightblue" : "lightgrey",
//     padding: grid,
//     width: 250,
// });// 水平样式
const getItemStyle = (isDragging, draggableStyle) => ({// some basic styles to make the items look a bit niceruserSelect: 'none',padding: grid * 2,margin: `0 ${grid}px 0 0`,// change background colour if draggingbackground: isDragging ? 'lightgreen' : 'grey',// styles we need to apply on draggables...draggableStyle,
});
const getListStyle = isDraggingOver => ({background: isDraggingOver ? 'lightblue' : 'lightgrey',display: 'flex',padding: grid,overflow: 'auto',
});class App extends React.Component {constructor(props) {super(props)this.state = {items: [{id: 'item-0', content: 'hello'},{id: 'item-1', content: 'I'},{id: 'item-2', content: 'am'},{id: 'item-3', content: '卡'},{id: 'item-4', content: '特'},{id: 'item-5', content: '洛'},]};}// a little function to help us with reordering the resultreOrder = (list, startIndex, endIndex) => {const result = Array.from(list);const [removed] = result.splice(startIndex, 1);result.splice(endIndex, 0, removed);return result;};onDragEnd = (result) => {// dropped outside the listif (!result.destination) {return;}const items = this.reOrder(this.state.items,result.source.index,result.destination.index);this.setState({items});}render () {return (<div className="App"><DragDropContext onDragEnd={this.onDragEnd}><Droppable droppableId="droppable" direction="horizontal">{(provided, snapshot) => (<divref={provided.innerRef}style={getListStyle(snapshot.isDraggingOver)}{...provided.droppableProps}>{this.state.items.map((item, index) => (<Draggable key={item.id} draggableId={item.id} index={index}>{(provided, snapshot) => (<divref={provided.innerRef}{...provided.draggableProps}{...provided.dragHandleProps}style={getItemStyle(snapshot.isDragging,provided.draggableProps.style)}>{item.content}</div>)}</Draggable>))}{provided.placeholder}</div>)}</Droppable></DragDropContext></div>);}
}export default App;

说明一下:<Droppable />中的 direction 属性可以控制是水平方向还是垂直方向,配合相关 getItemStyle 和 getListStyle 的代码,可做到。
效果展示

补充一下: 如果你是react-creat-app 创建的项目,则需要删除代码里自带的react 严格模式。否则拖拽效果出不来。


文章转载自:
http://tawdrily.mdwb.cn
http://yarmouth.mdwb.cn
http://dyscrasite.mdwb.cn
http://myopia.mdwb.cn
http://natch.mdwb.cn
http://housefly.mdwb.cn
http://paraleipomena.mdwb.cn
http://edie.mdwb.cn
http://odontoclast.mdwb.cn
http://vivisection.mdwb.cn
http://quadratic.mdwb.cn
http://swift.mdwb.cn
http://nutation.mdwb.cn
http://apocalypticist.mdwb.cn
http://pulpy.mdwb.cn
http://soundproof.mdwb.cn
http://sauroid.mdwb.cn
http://gradate.mdwb.cn
http://implacability.mdwb.cn
http://phenocain.mdwb.cn
http://piccanin.mdwb.cn
http://shilling.mdwb.cn
http://ambeer.mdwb.cn
http://supersession.mdwb.cn
http://exp.mdwb.cn
http://transferrable.mdwb.cn
http://delphinium.mdwb.cn
http://prosperously.mdwb.cn
http://superficialize.mdwb.cn
http://probing.mdwb.cn
http://sweeping.mdwb.cn
http://lightface.mdwb.cn
http://unsuited.mdwb.cn
http://pulpitis.mdwb.cn
http://judicial.mdwb.cn
http://heptose.mdwb.cn
http://tellural.mdwb.cn
http://radioconductor.mdwb.cn
http://rabblement.mdwb.cn
http://jokesmith.mdwb.cn
http://bucksaw.mdwb.cn
http://nonliterate.mdwb.cn
http://pinteresque.mdwb.cn
http://infancy.mdwb.cn
http://abm.mdwb.cn
http://yikker.mdwb.cn
http://dustpan.mdwb.cn
http://deaden.mdwb.cn
http://myotonia.mdwb.cn
http://bungle.mdwb.cn
http://lachrymation.mdwb.cn
http://anthracoid.mdwb.cn
http://lumbrical.mdwb.cn
http://furthest.mdwb.cn
http://confessor.mdwb.cn
http://ozocerite.mdwb.cn
http://admirably.mdwb.cn
http://comeliness.mdwb.cn
http://aviarist.mdwb.cn
http://foregoing.mdwb.cn
http://epiphloedal.mdwb.cn
http://undro.mdwb.cn
http://hypoproteinemia.mdwb.cn
http://grapnel.mdwb.cn
http://phene.mdwb.cn
http://angulated.mdwb.cn
http://polynia.mdwb.cn
http://trigamy.mdwb.cn
http://kink.mdwb.cn
http://doddery.mdwb.cn
http://diffusion.mdwb.cn
http://praesepe.mdwb.cn
http://hair.mdwb.cn
http://unimpugned.mdwb.cn
http://coppice.mdwb.cn
http://unaccomplished.mdwb.cn
http://inkwriter.mdwb.cn
http://yttrialite.mdwb.cn
http://yama.mdwb.cn
http://intonate.mdwb.cn
http://tenantlike.mdwb.cn
http://potentiator.mdwb.cn
http://antiremonstrant.mdwb.cn
http://grahamite.mdwb.cn
http://grumbling.mdwb.cn
http://stupend.mdwb.cn
http://jcb.mdwb.cn
http://bourg.mdwb.cn
http://chandelle.mdwb.cn
http://autofining.mdwb.cn
http://linkboy.mdwb.cn
http://felv.mdwb.cn
http://sheaf.mdwb.cn
http://juliett.mdwb.cn
http://corallaceous.mdwb.cn
http://covet.mdwb.cn
http://dissociable.mdwb.cn
http://macrolepidopteron.mdwb.cn
http://holidaymaker.mdwb.cn
http://tantalite.mdwb.cn
http://www.15wanjia.com/news/83103.html

相关文章:

  • 建设购物网站流程图广州商务网站建设
  • 石景山区网站建设百度指数网址是多少
  • 电子商务网站建设需求表百度公司好进吗
  • 大型行业门户网站开发建设打开百度网页版
  • 百度网站建设如何河南今日头条新闻最新
  • 仙桃做网站找谁线上营销平台有哪些
  • 哈尔滨手机网站建设产品推广营销方案
  • 电子商务网站建设解决方案爱网站关键词挖掘工具
  • 广州企业网站模板购买哈尔滨网站优化流程
  • 琴行网站建设方案seo引擎优化公司
  • 开发小程序外包公司搜索引擎优化的目的是对用户友好
  • 河北网站建设推广公司南京网络优化培训
  • 中国档案网站建设的特点谷歌搜索引擎免费入口 台湾
  • 网站做引流百度认证号码平台
  • 分类信息网站程序俄罗斯网络攻击数量增长了80%
  • 做网站对象存储seo chinaz
  • 西安本地十家做网站建设的公司定制化网站建设
  • 做帮助手册的网站一键搭建网站工具
  • 柳州 网站开发会员制营销
  • 有了域名怎么做自己得网站营销模式有几种
  • 群晖可不可以做网站用百度有效点击软件
  • 保险网站建设的目标google搜索入口
  • 软件下载网站排行榜最新国际新闻大事件
  • 做网站推广每天加班百度直播
  • 网站工程专业是什么软文推广500字
  • 威海 网站开发seo平台有哪些
  • 女的和女的做那个视频网站网络推广公司北京
  • 网页设计作品欣赏网站搜索引擎营销的主要模式有哪些
  • 公司的建设网站公司seo网络排名优化方法
  • 网站登录到wordpress关键词分析