- 博客(5)
- 收藏
- 关注
原创 【vue3.0】从零开始搭建TypeScript + less的px转rem + 反向代理 + axios + vuex
一、创建项目Npm 修改下载源 1、找一个空白文件地址,在地址栏上输入cmddos系统进入当前文件地址 dos系统中直接输入代码 npm config get registry 查看当前源 当前为淘宝镜像地址,如果你不是,需要修改当前npm 的下载源 修改npm 下载源 npm config set registry https://registry.npm.taobao.org 下载 cnpm ...
2022-04-19 15:21:35
259
原创 react+ts仿文件夹拖拽九宫格拖拽
index.tsx:import React, { Component, createRef } from 'react'import "./index.less"interface props{ }interface start{}export default class index extends Component<props,start> { code=createRef<HTMLDivElement>() codeel?:HTML
2022-03-28 17:40:33
1453
原创 React+ts仿小球模块左右滑动交叉碰撞
index.tsximport { Component } from "react";import './xiaoqou.less'; interface Props { }interface State { Num: number, MaxNum: number,} class Drag extends Component<Props, State>{ constructor(props: Props) { super(props); t
2022-03-21 09:01:34
116
原创 react+ts版自动轮播选项卡
tsx:import { Component } from "react"; import "./tuozhuai.less"interface Props { }interface User { ID: string, text: string}interface Con { ID: string, text: string}interface State { ButtonIndex: number, ButtonList: User
2022-03-17 16:14:35
147
原创 【React+TS】从零开始搭建react+typescript+router+redux+less+px2rem自适应+sass+axios反向代理
一、通过create-react-app脚手架创建项目npx create-react-app testproject --template typescript在vscode中打开项目,可以看到顺利生成了react项目且组件的后缀为tsx,此时说明成功创建了react+typescript项目的雏形在项目根目录下,运行npm run start,成功启动项目npm run start二、配置路由npm i react-router-do...
2022-03-17 09:10:29
881
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人