
React日常组件
哈哈哈
臧小川
我很酷 你想跟我一样酷吗 关注我吧
展开
-
圆形导航栏
import { useState } from 'react';import styles from './style.less'const menus = [ { name: '文旅', id: 1, children: [ { name: '住房服务', id: 1 }, { name: '公共事业', id: 2 }, { name: '社保服务', id: 3 }, ] },原创 2022-12-07 17:16:27 · 456 阅读 · 0 评论 -
时钟啊时钟
/** * @color --color 父级定义颜色 css直接使用变量 */import { useState, useEffect } from 'react';import styles from './style.less'const index = () =>{ const [time, setTime] = useState({ hours: '00', minutes: '00', seconds: '00' })原创 2022-12-07 16:54:08 · 289 阅读 · 0 评论 -
列表滚动效果
【代码】列表滚动效果。原创 2022-09-18 17:43:07 · 263 阅读 · 0 评论 -
旋转按钮组件
import styles from './style.less'import TurnButton from '@/common/TurnButton'const index = () =>{ return ( { return (原创 2022-09-14 18:17:07 · 182 阅读 · 0 评论 -
根据表格展示详情数据
【代码】根据表格展示详情数据。原创 2022-09-07 17:48:01 · 197 阅读 · 0 评论 -
测试1111
测试原创 2022-08-05 14:24:56 · 117 阅读 · 0 评论 -
312312dd
import { useState, useRef, useEffect, Fragment } from 'react';import styles from './style.less'import { StarOutlined } from '@ant-design/icons';const arr = [ { name: '羽神', title: '白丝萝莉 卡哇伊', img: 'https://img0.baidu.com/it/u=1228576179,2597010157&f原创 2022-07-14 10:04:01 · 1270 阅读 · 0 评论 -
侧边导航栏
import { useState, useRef, useEffect, Fragment } from 'react';import styles from './style.less'const arr = [ { name: '羽神', title: '名侦探柯南 普通话版', img: 'https://img0.baidu.com/it/u=1228576179,2597010157&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=700', id: 1原创 2022-07-11 16:39:41 · 1356 阅读 · 0 评论 -
页面标题组件
import styles from './style.less'const index = () =>{ return ( 我唤醒大海 环形山脉原创 2022-07-01 15:43:18 · 325 阅读 · 0 评论 -
Progress-进度条
import { useState } from 'react';import styles from './style.less'import Progress from './Progress'const index = () =>{ const [count, setCount] = useState(50) return (原创 2022-06-30 10:23:49 · 459 阅读 · 0 评论 -
旋转菜单3.0
旋转菜单3.0原创 2022-06-07 17:25:51 · 414 阅读 · 2 评论 -
旋转菜单2.0
这怎么还要填写摘要了~原创 2022-06-07 10:26:21 · 229 阅读 · 0 评论 -
旋转导航栏
效果图JSimport React, { useState } from 'react';import styles from './style.less'const index = () =>{ const [navData, setNavData] = useState([ { name: '文旅', id: 1, rotate: 0 }, { name: '卫生', id: 2, rotate: 60 }, { name:原创 2022-05-27 19:48:43 · 198 阅读 · 0 评论 -
自制Table表格
效果图JSimport { useState, } from 'react';import styles from './style.less'const data = [ { name: '胡乐乐', key: 1, age: 19, value: '你的努力真让人可笑', operating: '哈哈哈哈' }, { name: '少主', key: 2, age: 129, value: '嘿嘿嘿', operating: '哈哈哈哈' }, { name: '郭帅'原创 2022-05-24 17:35:26 · 767 阅读 · 0 评论 -
Ant-Table查看详情
效果图JSimport { useState, useEffect, useRef } from 'react'import styles from './style.less'import { Table, Space } from 'antd';const dataSource = [ { name: '羽神', grade: '优', time: '2022-5-13 2022-5-18', detail: '我跨原创 2022-05-19 19:20:13 · 865 阅读 · 0 评论 -
动画边框按钮
效果图JSimport styles from './style.less'const index = () =>{ return ( <div className={styles.container}> <a href="#" className={styles.SidebarCreate}> <span>Hello World</span>原创 2022-05-17 20:43:17 · 93 阅读 · 0 评论 -
彩虹动画边框按钮
效果图JSimport styles from './style.less'const index = () =>{ return ( <div className={styles.container}> <button data-spotlight="Hello World"></button> </div> );};export default indexCSS原创 2022-05-17 20:28:49 · 165 阅读 · 1 评论 -
Ant-Table样式初始化
效果图JSimport { useState, useEffect } from 'react'import styles from './style.less'import { Table, Space } from 'antd';const dataSource = [ { name: '羽神', grade: '优', time: '2022-5-13 2022-5-18', detail: '我跨过沙漠之舟 背原创 2022-05-13 14:27:17 · 1061 阅读 · 0 评论 -
Ant-Select样式初始化
效果图JSimport styles from './style.less'import { Select } from 'antd';const index = () =>{ const { Option } = Select; function handleChange (value) { console.log(`selected ${value}`); } return ( <div style={原创 2022-05-11 15:03:23 · 1571 阅读 · 0 评论