2023年4月5日
摘要:
1. 基于table https://handsontable.com/docs/javascript-data-grid/demo/ 2. 基于canvas canvas-datagrid 3. 基于canvas SpreadJS 4. Luckysheet : https://github.co
阅读全文
posted @ 2023-04-05 00:39
袜子破了
阅读(152)
推荐(0)
2023年3月31日
摘要:
import {useContext, useEffect, useMemo, useRef, useState} from 'react'; import _get from "lodash.get"; import _set from "lodash.set"; import {shallowE
阅读全文
posted @ 2023-03-31 14:41
袜子破了
阅读(24)
推荐(0)
2023年3月30日
摘要:
import {useCallback, useRef, useState} from 'react'; import {shallowEqual} from "../utils/shallowEqual"; function isEquals(compare: any, current: any,
阅读全文
posted @ 2023-03-30 22:06
袜子破了
阅读(16)
推荐(0)
摘要:
import {useCallback, useRef, useState} from 'react'; import {shallowEqual} from "../utils/shallowEqual"; function useComparedState(initialState: any)
阅读全文
posted @ 2023-03-30 22:03
袜子破了
阅读(19)
推荐(0)
2023年3月22日
摘要:
import {useRef,} from 'react'; function usePersistFn(fn) { const fnRef = useRef(fn); fnRef.current = fn; const persistFn = useRef(); if (!persistFn.cu
阅读全文
posted @ 2023-03-22 17:02
袜子破了
阅读(91)
推荐(0)
2023年3月1日
摘要:
import {useCallback, useRef, useState} from 'react'; function useCurrentState(initialState: any, compare?: any) { const [state, setState] = useState(i
阅读全文
posted @ 2023-03-01 22:30
袜子破了
阅读(27)
推荐(0)
2023年2月16日
摘要:
import _get from 'lodash.get'; import _set from 'lodash.set'; import _debounce from 'lodash.debounce'; import {shallowEqual} from "./shallow-equal"; c
阅读全文
posted @ 2023-02-16 19:25
袜子破了
阅读(60)
推荐(0)
摘要:
const isBasicType = (t: any) => { return t "number" || t "string" || t "boolean" || t 'undefined';}/** * 数组和对象都能比较 * @param a * @param b * @returns {b
阅读全文
posted @ 2023-02-16 19:23
袜子破了
阅读(76)
推荐(0)
2023年2月11日
摘要:
function isNil(obj:any): boolean { return typeof obj "undefined" || obj null;}function fixCls(clsStr: string): string { if (!clsStr) { return ""; } le
阅读全文
posted @ 2023-02-11 14:22
袜子破了
阅读(27)
推荐(0)
2022年11月15日
posted @ 2022-11-15 20:46
袜子破了
阅读(38)
推荐(0)