Skip to content

Commit

Permalink
✨ feat: ✨ feat: add es build
Browse files Browse the repository at this point in the history
  • Loading branch information
eternallycyf committed Mar 26, 2024
1 parent 6b60819 commit f7c4642
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 20 deletions.
5 changes: 0 additions & 5 deletions packages/chart/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/**
*
* @param config
* @returns
*/
export const formatNumber = (config: { number: number; isPercent?: true }) => {
if (config?.number == undefined) return '--';
const { number, isPercent = true } = config;
Expand Down
5 changes: 0 additions & 5 deletions packages/hooks/src/useFetch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ import { useEffect } from 'react';
import { useAsyncFn } from 'react-use';
import { useFetchProps, useFetchState } from './interface';

/**
*
* @param props
* @returns
*/
export default function useFetch<T>(props: useFetchProps<T>): useFetchState<T> {
const { fetchConfig, dataHandler, initRequest = true, request } = props;
const [data, fetchData] = useAsyncFn(async (defaultParams?, defaultData?) => {
Expand Down
10 changes: 5 additions & 5 deletions packages/ims-view-pc/src/constants/dict.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
export class BaseDict {
static COMMON_TYPE = [
{ label: '全部', value: '' },
{ label: '是', value: '0' },
{ label: '否', value: '1' },
{ text: '全部', value: '' },
{ text: '是', value: '0' },
{ text: '否', value: '1' },
];

static THEME_TYPE = [
{ label: '浅色', value: 'light' },
{ label: '深色', value: 'dark' },
{ text: '浅色', value: 'light' },
{ text: '深色', value: 'dark' },
];
}
5 changes: 0 additions & 5 deletions packages/utils/src/mergeProps/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import _ from 'lodash';

/**
*
* @param a
* @param b
*/
export function mergeProps<A, B>(a: A, b: B): B & A;
export function mergeProps<A, B, C>(a: A, b: B, c: C): C & B & A;
export function mergeProps(...items: any[]) {
Expand Down

0 comments on commit f7c4642

Please sign in to comment.