摘要: <div className="document-left-body"> <Table columns={tableColumns} dataSource={serchData} pagination={false} scroll={{ y: `calc(${100}% - ${80}vh)` }} 阅读全文
posted @ 2023-06-01 14:58 维多利亚的巴黎世家 阅读(3147) 评论(0) 推荐(0)
摘要: //定义格式化函数: const handleTime=(time, format)=> { if (time == null || time == undefined || time == "") { return ""; } var t = new Date(time); var tf = fu 阅读全文
posted @ 2023-05-17 13:22 维多利亚的巴黎世家 阅读(85) 评论(0) 推荐(0)
摘要: react-json-view: 前端json可视化插件 安装: npm install --save react-json-view 使用: import ReactJson from 'react-json-view' <ReactJson/> 配置: <ReactJson collapsed= 阅读全文
posted @ 2023-05-17 13:19 维多利亚的巴黎世家 阅读(574) 评论(0) 推荐(0)
摘要: <Select options={} onChange={provinceChange} allowClear mode="multiple"// showSearch={false} maxTagTextLength={4} /> mode设置为多选,multiple配合showSearch可以实 阅读全文
posted @ 2023-05-17 13:17 维多利亚的巴黎世家 阅读(447) 评论(0) 推荐(0)
摘要: const donwLoadFn = (arr) => { if (arr.length <= 0) return const fullUrl = `http://192.168.2.50:9803${arr[0]?.filePath}` fetch(fullUrl) .then(res => re 阅读全文
posted @ 2023-05-17 13:16 维多利亚的巴黎世家 阅读(31) 评论(0) 推荐(0)
摘要: calc() 函数用于动态计算长度值。 需要注意的是,运算符前后都需要保留一个空格,例如:width: calc(100% - 10px); 任何长度值都可以使用calc()函数进行计算; calc()函数支持 "+", "-", "*", "/" 运算; calc()函数使用标准的数学运算优先级规 阅读全文
posted @ 2023-05-17 13:15 维多利亚的巴黎世家 阅读(37) 评论(0) 推荐(0)
摘要: git pull http://..... --rebase 阅读全文
posted @ 2023-05-17 13:12 维多利亚的巴黎世家 阅读(29) 评论(0) 推荐(0)
摘要: 创建水印方法: const setWaterwark = ({ // 使用 ES6 的函数默认值方式设置参数的默认取值 container = document.body, width = '250px', height = '160px', textAlign = 'left', textBase 阅读全文
posted @ 2023-05-17 13:10 维多利亚的巴黎世家 阅读(180) 评论(0) 推荐(0)
摘要: 组件内容: <Carousel autoplay afterChange={changeBanner} autoplaySpeed={7000} //添加左右切换箭头 arrows={true} prevArrow={<LeftOutlined />} nextArrow={<RightOutlin 阅读全文
posted @ 2023-05-17 13:08 维多利亚的巴黎世家 阅读(1950) 评论(0) 推荐(0)
摘要: import React from 'react'; import ReactPlayer from 'react-player'//引入 const LiveBroadcast=()=>{ return<ReactPlayer className='react-player' url='....f 阅读全文
posted @ 2023-05-17 13:06 维多利亚的巴黎世家 阅读(1279) 评论(0) 推荐(0)