Skip to content

Commit

Permalink
prettier all code
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Jan 6, 2021
1 parent 5fa80c2 commit e3a1f1c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 26 deletions.
7 changes: 5 additions & 2 deletions .script/genBlockConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ const tagsKey = {
};
/**
* 从文件数组映射为 pro 的路由
* @param {*} name
*
* @param {any} name
*/
const genBlockName = (name) =>
name
Expand All @@ -99,7 +100,8 @@ const genBlockName = (name) =>

/**
* 从文件数组映射为 tags 列表
* @param {*} name
*
* @param {any} name
*/
const genBlockTags = (name) =>
Array.from(new Set(name.match(/[A-Z]?[a-z]+|[0-9]+/g).map((p) => p.toLowerCase())))
Expand Down Expand Up @@ -132,6 +134,7 @@ const getFeature = (filePath) => {

/**
* 遍历文件地址
*
* @param path
*/
const getFolderTreeData = (filePath) => {
Expand Down
4 changes: 1 addition & 3 deletions DashboardAnalysis/src/utils/Yuan.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React from 'react';
import { yuan } from '../components/Charts';
/**
* 减少使用 dangerouslySetInnerHTML
*/
/** 减少使用 dangerouslySetInnerHTML */
export default class Yuan extends React.Component<{
children: React.ReactText;
}> {
Expand Down
5 changes: 4 additions & 1 deletion ListTableList/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { queryRule, updateRule, addRule, removeRule } from './service';

/**
* 添加节点
*
* @param fields
*/
const handleAdd = async (fields: TableListItem) => {
Expand All @@ -29,6 +30,7 @@ const handleAdd = async (fields: TableListItem) => {

/**
* 更新节点
*
* @param fields
*/
const handleUpdate = async (fields: FormValueType) => {
Expand All @@ -51,7 +53,8 @@ const handleUpdate = async (fields: FormValueType) => {
};

/**
* 删除节点
* 删除节点
*
* @param selectedRows
*/
const handleRemove = async (selectedRows: TableListItem[]) => {
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"**/*.{js,ts,tsx}": "npm run lint-staged:js"
},
"dependencies": {
"@ant-design/pro-layout": "^6.0.0",
"@ant-design/icons": "^4.0.0",
"@ant-design/pro-cli": "^1.0.5",
"@ant-design/pro-layout": "^6.0.0",
"antd": "^4.0.0",
"bizcharts": "^3.5.4",
"numeral": "^2.0.6",
Expand All @@ -44,15 +44,17 @@
"@types/numeral": "^0.0.28",
"@types/react-dom": "^16.8.4",
"@umijs/fabric": "^2.0.0",
"@umijs/plugin-block-devtool": "^1.1.1",
"@umijs/preset-ant-design-pro": "^1.1.2",
"@umijs/preset-react": "^1.4.3",
"@umijs/plugin-block-devtool": "^1.1.1",
"cross-env": "^7.0.0",
"eslint": "^7.2.0",
"husky": "^4.0.1",
"lint-staged": "^10.0.1",
"mockjs": "^1.1.0",
"prettier": "^2.0.2",
"prettier-plugin-jsdoc": "^0.2.13",
"prettier-plugin-style-order": "^0.2.2",
"stylelint": "^13.0.0",
"typescript": "^4.0.3"
},
Expand Down
18 changes: 0 additions & 18 deletions umi-block.json
Original file line number Diff line number Diff line change
Expand Up @@ -426,24 +426,6 @@
],
"previewUrl": "https://preview.pro.ant.design/result/success"
},
{
"name": "登录页",
"key": "UserLogin",
"description": "用户登录界面,支持用户名密码和手机号登录。",
"url": "https://github.com/ant-design/pro-blocks/tree/master/UserLogin",
"path": "UserLogin",
"features": [
"antd",
"i18n",
"dva"
],
"img": "https://raw.githubusercontent.com/ant-design/pro-blocks/master/UserLogin/snapshot.png?raw=true",
"tags": [
"用户",
"登录"
],
"previewUrl": "https://preview.pro.ant.design/user/login"
},
{
"name": "注册页",
"key": "UserRegister",
Expand Down

0 comments on commit e3a1f1c

Please sign in to comment.