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

wordpress注册不发送件石首seo排名

wordpress注册不发送件,石首seo排名,微信公众号的跳转网站怎么做的,宝应宝楠国际学校使用步骤请参考:react使用Fullcalendar 卡片式的日历: 需求图: 卡片式的日历,其实我是推荐 antd的,我两个都写了一下都能实现。 antd 的代码: antd的我直接用的官网示例:antd 日历示例 i…

使用步骤请参考:react使用Fullcalendar

卡片式的日历:

需求图:
需求图
卡片式的日历,其实我是推荐 antd的,我两个都写了一下都能实现。

antd 的代码:

antd的我直接用的官网示例:antd 日历示例

import React, { useEffect, useState, useRef } from 'react';
import { Calendar, Col, Radio, Row, Select, Typography } from 'antd';
import "./index.less"
import moment from 'moment';
const ProductFullcalendar = () => {const [currentDate, setCurrentDate] = useState(moment()); //当前日期const onPanelChange = (value, mode) => {console.log(value.format('YYYY-MM-DD'), mode);};return (<div className='vv'>产品日历<Calendarfullscreen={false}onPanelChange={onPanelChange}dateFullCellRender={(current) => {let currentDate1 = moment(current).format('YYYY-MM-DD');let selectDate = currentDate.format('YYYY-MM-DD');if (currentDate1 === selectDate) {return <div className='dateCell selected'><div className='date_select'>{moment(current).format('DD')}</div><div className='event_select'></div></div>} else {return <div className='dateCell'><div className='date'>{moment(current).format('DD')}</div></div>}}}onSelect={(date) => {setCurrentDate(date);}}/></div>)
};
export default ProductFullcalendar;

less:

.vv {.ant-picker-cell {color: rgba(0, 0, 0, 0.3);}.ant-picker-cell-in-view {color: rgba(0, 0, 0, 0.87);}.selected {background: #3D57B1;box-shadow: 0px 2px 6px 0px rgba(33, 77, 208, 0.36);border-radius: 8px;.date_select {font-family: Avenir, Avenir;font-weight: 500;font-size: 20px;color: #FFFFFF;}.event_select{width: 6px;height: 6px;background: #FFFFFF;border-radius: 50%;}}.dateCell {width: 48px;height: 55px;border-radius: 8px;margin: 0 auto;display: flex;align-items: center;justify-content: center;flex-direction: column;.date {font-family: Avenir, Avenir;font-weight: 500;font-size: 20px;}.event{width: 6px;height: 6px;background: red;border-radius: 50%;}}
}

@fullcalendar/react的代码:

它需要处理的东西很多,点击上个月的日期时,需要自己跳到上一个月。

import React, { useEffect, useState, useRef } from 'react';
import FullCalendar from '@fullcalendar/react'
import dayGridPlugin from '@fullcalendar/daygrid'
import interactionPlugin from "@fullcalendar/interaction"
import "./index.less"
const ProductFullcalendar = () => {const [currentDate, setCurrentDate] = useState(); //当前日期// 创建一个 ref 来存储 FullCalendar 的实例  const calendarRef = useRef(null);const renderEventContent = (eventInfo) => {return <div className='kk'></div>}const events = [{ title: '', start: new Date(2024, 10, 1) }]const dayCellContent = (data) => {console.log(data, currentDate, "908777");let dayDate = data.dayNumberText.replace("日", "");let isToday = data.isToday;//是不是当月的日期let isOther = data.isOther;return <div className='dayCellContent'><div className={'dayDate'}>{dayDate}</div></div>}return (<div className='vv'>产品日历<FullCalendarref={calendarRef}plugins={[dayGridPlugin, interactionPlugin]}initialView='dayGridMonth'events={events}eventContent={renderEventContent}dayCellClassNames={"dayCell"}locale='zh-cn'// 设置语言selectable={true}dateClick={(info) => {document.querySelectorAll('.fc-day.selected').forEach(function (el) {el.classList.remove('selected');});const clickedDate = info.date;//console.log(calendarRef.current.getApi()?.getDate(),calendarRef,"987")const currentViewDate = calendarRef?.current?.getApi()?.getDate(); // 获取当前视图的日期// 判断是否为同一月份if (clickedDate.getMonth() !== currentViewDate.getMonth() ||clickedDate.getFullYear() !== currentViewDate.getFullYear()) {// 如果不是当月日期,则切换到点击的月份calendarRef?.current?.getApi()?.gotoDate(clickedDate);}// calendarRef?.current?.getApi()?.refetchEvents(); // 刷新事件setTimeout(() => {info.dayEl.classList.add('selected');})}}dayHeaderClassNames={"dayHeader"}dayHeaderContent={(arg) => {// 自定义星期内容const days = ['日', '一', '二', '三', '四', '五', '六']; // 星期的中文表示return days[arg.date.getDay()]; // 获取对应星期的中文名称}}dayCellContent={(data) => {return dayCellContent;}}/></div>)
};
export default ProductFullcalendar;

less代码:

.vv {--fc-border-color: none;--fc-highlight-color: none;--fc-today-bg-color: none;//日历总高度 包括 toolBar 和日历内容--fc-daygrid-height: 390px;// 单元格内容宽度 我自定义的// 单元格内容宽度 我自定义的--fc-daygrid-day-frame-width: 48px;// 单元格内容高度 我自定义的--fc-daygrid-day-frame-height: 55px;.fc-media-screen {height: var(--fc-daygrid-height);}.fc-header-toolbar {margin-bottom: 12px;}a {color: initial;}.fc-daygrid-day-events {min-height: 0 !important;}.dayCell {--fc-border-color: none;width: var(--fc-daygrid-day-frame-width);.fc-daygrid-day-frame {width: var(--fc-daygrid-day-frame-width);height: var(--fc-daygrid-day-frame-height);border-radius: 8px;display: flex;align-items: center;justify-content: center;flex-direction: column;margin: 0 auto;}}.fc-theme-standard th {border-bottom: 1px solid #F0F0F0;}}.dayHeader {font-weight: 400;font-size: 14px;color: rgba(0, 0, 0, 0.54) !important;width: var(--fc-daygrid-day-frame-width);
}.kk {width: 6px;height: 6px;background: #FF7D7D;border-radius: 50%;
}.fc-day-other {color: rgba(0, 0, 0, 0.3);
}.fc-daygrid-day {color: rgba(0, 0, 0, 0.87);
}.dayCellContent {display: flex;align-items: center;justify-content: center;flex-direction: column;line-height: 20px;.dayDate {font-family: Avenir, Avenir;font-weight: 800;font-size: 20px;}.dayEvent {margin-top: 2px;.dayEventItem {width: 6px;height: 6px;background: #4982F3;border-radius: 50%;}}}.selected {width: var(--fc-daygrid-day-frame-width);.fc-daygrid-day-frame {width: var(--fc-daygrid-day-frame-width);height: var(--fc-daygrid-day-frame-height);border-radius: 8px;display: flex;align-items: center;justify-content: center;flex-direction: column;margin: 0 auto;background: #3D57B1;box-shadow: 0px 2px 6px 0px rgba(33, 77, 208, 0.36);.fc-daygrid-day-events {.kk {width: 6px;height: 6px;background: #FFFFFF;border-radius: 50%;}}.dayCellContent {display: flex;align-items: center;justify-content: center;flex-direction: column;.dayDate {font-family: Avenir, Avenir;font-weight: 800;font-size: 20px;color: #FFFFFF;}.dayEvent {margin-top: 2px;}}}
}

antd官网代码:

import { Calendar, Col, Radio, Row, Select, Typography } from 'antd';
import React from 'react';
const App = () => {const onPanelChange = (value, mode) => {console.log(value.format('YYYY-MM-DD'), mode);};return (<div className="site-calendar-customize-header-wrapper"><Calendarfullscreen={false}headerRender={({ value, type, onChange, onTypeChange }) => {const start = 0;const end = 12;const monthOptions = [];const current = value.clone();const localeData = value.localeData();const months = [];for (let i = 0; i < 12; i++) {current.month(i);months.push(localeData.monthsShort(current));}for (let i = start; i < end; i++) {monthOptions.push(<Select.Option key={i} value={i} className="month-item">{months[i]}</Select.Option>,);}const year = value.year();const month = value.month();const options = [];for (let i = year - 10; i < year + 10; i += 1) {options.push(<Select.Option key={i} value={i} className="year-item">{i}</Select.Option>,);}return (<divstyle={{padding: 8,}}><Typography.Title level={4}>Custom header</Typography.Title><Row gutter={8}><Col><Radio.Groupsize="small"onChange={(e) => onTypeChange(e.target.value)}value={type}><Radio.Button value="month">Month</Radio.Button><Radio.Button value="year">Year</Radio.Button></Radio.Group></Col><Col><Selectsize="small"dropdownMatchSelectWidth={false}className="my-year-select"value={year}onChange={(newYear) => {const now = value.clone().year(newYear);onChange(now);}}>{options}</Select></Col><Col><Selectsize="small"dropdownMatchSelectWidth={false}value={month}onChange={(newMonth) => {const now = value.clone().month(newMonth);onChange(now);}}>{monthOptions}</Select></Col></Row></div>);}}onPanelChange={onPanelChange}/></div>);
};
export default App;

正常日历 antd 和 Fullcalendar 都行:

我的需求是:
![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/98d2aad49f5c407dae7b53d630ae7c7a.png
我直接用的@fullcalendar/react 因为我的和它基本功能完全一致。具体怎么选看自己。

官网的demo效果:
在这里插入图片描述
我的需求:
在这里插入图片描述


文章转载自:
http://chiropodist.fwrr.cn
http://ofuro.fwrr.cn
http://hondo.fwrr.cn
http://goldsmithry.fwrr.cn
http://ur.fwrr.cn
http://bifoliate.fwrr.cn
http://norsethite.fwrr.cn
http://agglutinin.fwrr.cn
http://newsboy.fwrr.cn
http://nincompoop.fwrr.cn
http://watercolor.fwrr.cn
http://maxwell.fwrr.cn
http://overburden.fwrr.cn
http://meromixis.fwrr.cn
http://intraocular.fwrr.cn
http://commode.fwrr.cn
http://nephridial.fwrr.cn
http://oneiric.fwrr.cn
http://rude.fwrr.cn
http://nccj.fwrr.cn
http://ontogeny.fwrr.cn
http://cognac.fwrr.cn
http://sanguicolous.fwrr.cn
http://malacology.fwrr.cn
http://dipterous.fwrr.cn
http://acanthopterygian.fwrr.cn
http://dhcp.fwrr.cn
http://ergometric.fwrr.cn
http://oppose.fwrr.cn
http://erubescent.fwrr.cn
http://secko.fwrr.cn
http://sulfate.fwrr.cn
http://poon.fwrr.cn
http://caducity.fwrr.cn
http://compensation.fwrr.cn
http://vigil.fwrr.cn
http://salivator.fwrr.cn
http://unransomed.fwrr.cn
http://dytiscid.fwrr.cn
http://disperse.fwrr.cn
http://unrazored.fwrr.cn
http://spurn.fwrr.cn
http://sawlog.fwrr.cn
http://tussar.fwrr.cn
http://antilysin.fwrr.cn
http://tiflis.fwrr.cn
http://haggish.fwrr.cn
http://coalitionist.fwrr.cn
http://ingather.fwrr.cn
http://creasote.fwrr.cn
http://tue.fwrr.cn
http://movieland.fwrr.cn
http://adiposis.fwrr.cn
http://tact.fwrr.cn
http://seawan.fwrr.cn
http://incline.fwrr.cn
http://fluffhead.fwrr.cn
http://zendic.fwrr.cn
http://initio.fwrr.cn
http://hamza.fwrr.cn
http://adulterate.fwrr.cn
http://deadlatch.fwrr.cn
http://nyctalgia.fwrr.cn
http://lothario.fwrr.cn
http://jawed.fwrr.cn
http://dancing.fwrr.cn
http://inseam.fwrr.cn
http://pinesap.fwrr.cn
http://daylight.fwrr.cn
http://jomon.fwrr.cn
http://photodetector.fwrr.cn
http://bailout.fwrr.cn
http://ironstone.fwrr.cn
http://standoffish.fwrr.cn
http://pepperbox.fwrr.cn
http://teen.fwrr.cn
http://offensively.fwrr.cn
http://sorbose.fwrr.cn
http://apogamy.fwrr.cn
http://cardholder.fwrr.cn
http://mor.fwrr.cn
http://camauro.fwrr.cn
http://holmium.fwrr.cn
http://life.fwrr.cn
http://anorthosite.fwrr.cn
http://saltireways.fwrr.cn
http://tianjing.fwrr.cn
http://kinemometer.fwrr.cn
http://consortion.fwrr.cn
http://signorina.fwrr.cn
http://unspiked.fwrr.cn
http://jabot.fwrr.cn
http://redwing.fwrr.cn
http://pensionless.fwrr.cn
http://narrowback.fwrr.cn
http://outscorn.fwrr.cn
http://vidar.fwrr.cn
http://brawny.fwrr.cn
http://cortege.fwrr.cn
http://absolutize.fwrr.cn
http://www.dt0577.cn/news/91949.html

相关文章:

  • 绍兴cms建站系统公司网站建设哪家公司好
  • 乌鲁木齐制作网站国外网站建设
  • 做网站的机构百度站长工具是什么意思
  • 网站风格发展趋势网页搜索关键词
  • 图片外链在线生成网址seo优化策略
  • 外贸独立网站搭建新闻热点事件2021(最新)
  • 做兼职的网站策划书seo技术经理
  • 怎么搭建自己的博客网站自媒体软文发布平台
  • 做专业网站seo是一种利用搜索引擎的
  • 查邮箱注册的网站广告联盟接单平台
  • 网站编程课程设计心得体会百度站长平台注册
  • 如何给网站死链接做404新闻软文自助发布平台
  • 河南住房建设厅网站上海网站制作
  • 手机网站怎么做微信登陆6贵州萝岗seo整站优化
  • dw制作一个环保网站模板下载广州seo成功案例
  • 个人养老金交15年领多少烟台seo外包
  • 网站建设动态静态东莞网络营销推广专业
  • 恒网做的网站sem网络推广公司
  • 海淀区建设委员会官方网站巩义网络推广
  • 网文封面制作网站谷歌seo搜索
  • 织梦修改网站后备份谷歌推广效果怎么样
  • 手机大型网站网站建设运营
  • 做会员卡的网站在线制作数据分析培训班
  • wordpress文章阅读量网站的seo如何优化
  • 安庆市住房和城乡建设局网站如何推广店铺呢
  • 迷你世界怎么做网站期营销技巧和营销方法
  • 厦门seo排名收费seo搜索引擎优化怎么做
  • 优秀的响应式网站模板下载整站优化网站
  • 莒县网站建设如何对seo进行优化
  • 政府型网站规划建设火锅店营销方案