deepsea-components 1.0.1 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -23
- package/dist/esm/index.d.ts +11 -0
- package/dist/esm/index.js +45 -5
- package/dist/esm/index.js.map +1 -1
- package/package.json +42 -39
package/README.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
# deepsea-components
|
|
2
|
-
|
|
3
|
-
[](https://npmjs.org/package/deepsea-components)
|
|
4
|
-
[](https://npmjs.org/package/deepsea-components)
|
|
5
|
-
|
|
6
|
-
## Install
|
|
7
|
-
|
|
8
|
-
```bash
|
|
9
|
-
$ yarn install
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
$ npm run dev
|
|
14
|
-
$ npm run build
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Options
|
|
18
|
-
|
|
19
|
-
TODO
|
|
20
|
-
|
|
21
|
-
## LICENSE
|
|
22
|
-
|
|
23
|
-
MIT
|
|
1
|
+
# deepsea-components
|
|
2
|
+
|
|
3
|
+
[](https://npmjs.org/package/deepsea-components)
|
|
4
|
+
[](https://npmjs.org/package/deepsea-components)
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
$ yarn install
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
$ npm run dev
|
|
14
|
+
$ npm run build
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Options
|
|
18
|
+
|
|
19
|
+
TODO
|
|
20
|
+
|
|
21
|
+
## LICENSE
|
|
22
|
+
|
|
23
|
+
MIT
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { ButtonHTMLAttributes, CSSProperties, FC, HTMLAttributes, InputHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import type { ScrollbarOptions } from "smooth-scrollbar/interfaces";
|
|
2
3
|
export type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false;
|
|
3
4
|
export interface InputFileDataTypes {
|
|
4
5
|
base64: string;
|
|
@@ -249,3 +250,13 @@ export interface CircleTextProps extends Omit<HTMLAttributes<HTMLSpanElement>, "
|
|
|
249
250
|
}
|
|
250
251
|
/** 环形文字 */
|
|
251
252
|
export declare const CircleText: FC<CircleTextProps>;
|
|
253
|
+
export interface ScrollProps extends HTMLAttributes<HTMLDivElement> {
|
|
254
|
+
/** 容器宽度 */
|
|
255
|
+
containerClassName?: string;
|
|
256
|
+
/** 容器样式 */
|
|
257
|
+
containerStyle?: CSSProperties;
|
|
258
|
+
scrollbarOptions?: Partial<ScrollbarOptions>;
|
|
259
|
+
/** 滑块宽度 */
|
|
260
|
+
thumbWidth?: number;
|
|
261
|
+
}
|
|
262
|
+
export declare const Scroll: React.ForwardRefExoticComponent<ScrollProps & React.RefAttributes<HTMLDivElement>>;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import { css } from "@emotion/css";
|
|
3
|
+
import clsx from "clsx";
|
|
2
4
|
import { drawArc, setFrameInterval } from "deepsea-tools";
|
|
3
|
-
import React, { Fragment, forwardRef, useEffect, useImperativeHandle, useRef, useState } from "react";
|
|
5
|
+
import React, { Fragment, forwardRef, useEffect, useId, useImperativeHandle, useRef, useState } from "react";
|
|
6
|
+
import SmoothScrollBar from "smooth-scrollbar";
|
|
4
7
|
import { read, utils, writeFile } from "xlsx";
|
|
5
8
|
export async function getFileData(file, type) {
|
|
6
9
|
const fileReader = new FileReader();
|
|
@@ -129,7 +132,6 @@ export const ExportExcel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
129
132
|
/** 尺寸渐变的组件 */
|
|
130
133
|
export const TransitionBox = props => {
|
|
131
134
|
const {
|
|
132
|
-
className,
|
|
133
135
|
style,
|
|
134
136
|
containerClassName,
|
|
135
137
|
containerStyle,
|
|
@@ -137,7 +139,7 @@ export const TransitionBox = props => {
|
|
|
137
139
|
vertical = true,
|
|
138
140
|
horizontal = true,
|
|
139
141
|
time = 3000,
|
|
140
|
-
...
|
|
142
|
+
...others
|
|
141
143
|
} = props;
|
|
142
144
|
const box = useRef(null);
|
|
143
145
|
const [width, setWidth] = useState(0);
|
|
@@ -170,9 +172,8 @@ export const TransitionBox = props => {
|
|
|
170
172
|
...style
|
|
171
173
|
};
|
|
172
174
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
173
|
-
className: className,
|
|
174
175
|
style: outerStyle
|
|
175
|
-
},
|
|
176
|
+
}, others), /*#__PURE__*/React.createElement("div", {
|
|
176
177
|
className: containerClassName,
|
|
177
178
|
style: {
|
|
178
179
|
position: "absolute",
|
|
@@ -663,4 +664,43 @@ export const CircleText = props => {
|
|
|
663
664
|
}
|
|
664
665
|
}, others), w)));
|
|
665
666
|
};
|
|
667
|
+
export const Scroll = /*#__PURE__*/forwardRef((props, ref) => {
|
|
668
|
+
const {
|
|
669
|
+
children,
|
|
670
|
+
containerClassName,
|
|
671
|
+
containerStyle,
|
|
672
|
+
scrollbarOptions,
|
|
673
|
+
thumbWidth,
|
|
674
|
+
className,
|
|
675
|
+
...others
|
|
676
|
+
} = props;
|
|
677
|
+
const id = useId();
|
|
678
|
+
useEffect(() => {
|
|
679
|
+
SmoothScrollBar.init(document.querySelector(`[data-scroll-id="${id}"]`), scrollbarOptions);
|
|
680
|
+
}, []);
|
|
681
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
682
|
+
ref: ref,
|
|
683
|
+
className: clsx(!!thumbWidth && css`
|
|
684
|
+
.scrollbar-track.scrollbar-track-x {
|
|
685
|
+
height: ${thumbWidth}px;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.scrollbar-thumb.scrollbar-thumb-x {
|
|
689
|
+
height: ${thumbWidth}px;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.scrollbar-track.scrollbar-track-y {
|
|
693
|
+
width: ${thumbWidth}px;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
.scrollbar-thumb.scrollbar-thumb-y {
|
|
697
|
+
width: ${thumbWidth}px;
|
|
698
|
+
}
|
|
699
|
+
`, className),
|
|
700
|
+
"data-scroll-id": id
|
|
701
|
+
}, others), /*#__PURE__*/React.createElement("div", {
|
|
702
|
+
className: containerClassName,
|
|
703
|
+
style: containerStyle
|
|
704
|
+
}, children));
|
|
705
|
+
});
|
|
666
706
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["drawArc","setFrameInterval","React","Fragment","forwardRef","useEffect","useImperativeHandle","useRef","useState","read","utils","writeFile","getFileData","file","type","fileReader","FileReader","readAsArrayBuffer","readAsBinaryString","readAsDataURL","readAsText","Promise","resolve","addEventListener","result","InputFile","props","ref","multiple","onChange","disabled","inputDisabled","otherProps","setDisabled","onInputChange","e","input","target","files","length","push","value","error","createElement","_extends","ImportExcel","data","wb","sheet_to_json","Sheets","SheetNames","$","map","it","_","Object","keys","filter","key","forEach","String","accept","exportExcel","name","workSheet","json_to_sheet","workBook","book_new","book_append_sheet","endsWith","ExportExcel","fileName","onClick","onButtonClick","TransitionBox","className","style","containerClassName","containerStyle","children","vertical","horizontal","time","box","width","setWidth","height","setHeight","count","setCount","observer","ResizeObserver","entries","currentWidth","currentHeight","contentRect","observe","current","disconnect","Math","min","outerStyle","transitionProperty","Boolean","join","undefined","transitionDuration","overflow","position","SeaRadar","unitRadius","circleCount","circleWidth","circleColor","directionCount","directionWidth","directionColor","backgroundColor","scanColor","scanAngle","PI","period","targets","showGraduationLine","showGraduationText","showCircle","showDirection","Array","fill","index","transform","display","padStart","tan","clipPath","left","radius","cos","angle","bottom","sin","element","Ring","outerWidth","innerWidth","leftProps","outerRadius","innerRadius","getGapRange","gap","isArray","getGapCountAndSize","itemWidth","minGap","maxGap","floor","averageGap","Flow","itemHeight","columnGap","rowGap","maxRows","render","keyExactor","throttle","onSizeChange","minColumnGap","maxColumnGap","columnCount","setColumnCount","columnGapSize","setColumnGapSize","showItems","setShowItems","ele","contentRows","ceil","contentShownRows","getPosition","y","x","top","getHidden","timeout","clearTimeout","task","inlineSize","borderBoxSize","newColumnCount","newColumnGapSize","window","setTimeout","rowCount","itemCount","boxSizing","idx","transition","Trapezium","borderRadius","other","diff","a","atan","b","c","d","f","g","h","LoopSwiper","size","start","speed","paused","direction","RangeError","arr","keysRef","cache","eles","dom","offset","some","setStyles","setProperty","toUpperCase","stop","minIndex","minOffset","newOffset","abs","SectionRing","o","i","angel","others","s","arc","startAngle","endAngle","options","line","anticlockwise","TransitionNum","num","numToStr","Number","isInteger","show","get","innerText","div","cancel","CircleText","startAngel","gapAngel","align","reverse","separator","unitAngle","totalAngle","offsetAngle","getTransform","z","words","split","w","textAlign","lineHeight"],"sources":["../../src/index.tsx"],"sourcesContent":["import { Tree } from \"antd\"\nimport { DrawArcOptions, drawArc, setFrameInterval } from \"deepsea-tools\"\nimport React, { ButtonHTMLAttributes, CSSProperties, ChangeEvent, FC, Fragment, HTMLAttributes, InputHTMLAttributes, MouseEvent as ReactMouseEvent, ReactNode, forwardRef, useEffect, useImperativeHandle, useRef, useState } from \"react\"\nimport { read, utils, writeFile } from \"xlsx\"\n\nexport type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false\n\nexport interface InputFileDataTypes {\n base64: string\n text: string\n arrayBuffer: ArrayBuffer\n binary: string\n file: File\n}\n\nexport type InputFileDataType = keyof InputFileDataTypes\n\nexport interface InputFileData<T> {\n result: T\n file: File\n}\n\nexport type InputFileProps = (\n | {\n multiple?: false\n type: \"base64\" | \"text\" | \"binary\"\n onChange?: (data: InputFileData<string>) => void\n }\n | {\n multiple?: false\n type: \"arrayBuffer\"\n onChange?: (data: InputFileData<ArrayBuffer>) => void\n }\n | {\n multiple?: false\n type?: \"file\"\n onChange?: (data: InputFileData<File>) => void\n }\n | {\n multiple: true\n type: \"base64\" | \"text\" | \"binary\"\n onChange?: (data: InputFileData<string>[]) => void\n }\n | {\n multiple: true\n type: \"arrayBuffer\"\n onChange?: (data: InputFileData<ArrayBuffer>[]) => void\n }\n | {\n multiple: true\n type?: \"file\"\n onChange?: (data: InputFileData<File>[]) => void\n }\n) &\n Omit<InputHTMLAttributes<HTMLInputElement>, \"onChange\" | \"multiple\" | \"type\">\n\nexport async function getFileData<T extends InputFileDataType>(file: File, type: T): Promise<InputFileDataTypes[T]> {\n const fileReader = new FileReader()\n switch (type) {\n case \"arrayBuffer\":\n fileReader.readAsArrayBuffer(file)\n break\n case \"binary\":\n fileReader.readAsBinaryString(file)\n break\n case \"base64\":\n fileReader.readAsDataURL(file)\n break\n case \"text\":\n fileReader.readAsText(file)\n break\n default:\n return file as any\n }\n return new Promise(resolve => {\n fileReader.addEventListener(\"load\", () => {\n resolve(fileReader.result as any)\n })\n })\n}\n\n/** 专用与读取文件的组件 */\nexport const InputFile = forwardRef<HTMLInputElement, InputFileProps>((props, ref) => {\n const { multiple = false, type = \"file\", onChange, disabled: inputDisabled, ...otherProps } = props\n const [disabled, setDisabled] = useState(false)\n\n async function onInputChange(e: ChangeEvent<HTMLInputElement>) {\n const input = e.target\n const { files } = input\n if (!files || files.length === 0) return\n setDisabled(true)\n try {\n if (multiple) {\n const result: any[] = []\n for (const file of files) {\n result.push({\n result: await getFileData(file, type),\n file\n })\n }\n onChange?.(result as any)\n } else {\n onChange?.({\n result: await getFileData(files[0], type),\n file: files[0]\n } as any)\n }\n setDisabled(false)\n input.value = \"\"\n } catch (error) {\n setDisabled(false)\n input.value = \"\"\n throw error\n }\n }\n\n return <input disabled={disabled && inputDisabled} ref={ref} type=\"file\" multiple={multiple} onChange={onInputChange} {...otherProps} />\n})\n\nexport interface ImportExcelProps extends Omit<InputFileProps, \"multiple\" | \"onChange\" | \"accept\" | \"type\"> {\n onChange?: (data: Record<string, string>[]) => void\n}\n\n/** 专门用于读取 excel 的组件 */\nexport const ImportExcel = forwardRef<HTMLInputElement, ImportExcelProps>((props, ref) => {\n const { onChange, ...otherProps } = props\n\n function onInputChange(data: InputFileData<ArrayBuffer>) {\n const wb = read(data.result)\n const result = utils.sheet_to_json<any>(wb.Sheets[wb.SheetNames[0]])\n if (typeof result === \"object\") {\n const $ = result.map(it => {\n const _: Record<string, string> = {}\n Object.keys(it)\n .filter(key => key !== \"__rowNum__\")\n .forEach(key => (_[key] = String(it[key])))\n return _\n })\n onChange?.($)\n }\n }\n\n return <InputFile ref={ref} accept=\".xlsx\" type=\"arrayBuffer\" onChange={onInputChange} {...otherProps} />\n})\n\n/** 手动导出 excel */\nexport function exportExcel(data: Record<string, string>[], name: string) {\n const workSheet = utils.json_to_sheet(data)\n const workBook = utils.book_new()\n utils.book_append_sheet(workBook, workSheet)\n writeFile(workBook, `${name}${name.endsWith(\".xlsx\") ? \"\" : \".xlsx\"}`)\n}\n\nexport interface ExportExcelProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n data: Record<string, string>[]\n fileName: string\n}\n\n/** 导出 excel 的 button 组件 */\nexport const ExportExcel = forwardRef<HTMLButtonElement, ExportExcelProps>((props, ref) => {\n const { data, fileName, onClick, ...otherProps } = props\n\n function onButtonClick(e: ReactMouseEvent<HTMLButtonElement, MouseEvent>) {\n exportExcel(data, fileName)\n onClick?.(e)\n }\n\n return <button ref={ref} onClick={onButtonClick} {...otherProps} />\n})\n\nexport interface TransitionBoxProps extends HTMLAttributes<HTMLDivElement> {\n containerClassName?: string\n containerStyle?: CSSProperties\n vertical?: boolean\n horizontal?: boolean\n time?: number\n}\n\n/** 尺寸渐变的组件 */\nexport const TransitionBox: FC<TransitionBoxProps> = props => {\n const { className, style, containerClassName, containerStyle, children, vertical = true, horizontal = true, time = 3000, ...otherProps } = props\n const box = useRef<HTMLDivElement>(null)\n const [width, setWidth] = useState(0)\n const [height, setHeight] = useState(0)\n const [count, setCount] = useState(0)\n\n useEffect(() => {\n const observer = new ResizeObserver(entries => {\n const { width: currentWidth, height: currentHeight } = entries[0].contentRect\n setWidth(currentWidth)\n setHeight(currentHeight)\n })\n\n observer.observe(box.current!)\n\n return () => {\n observer.disconnect()\n }\n }, [])\n\n useEffect(() => {\n setCount(count => Math.min(count + 1, 3))\n }, [width, height])\n\n const outerStyle: CSSProperties = { transitionProperty: count === 3 ? [horizontal && \"width\", vertical && \"height\"].filter(Boolean).join(\", \") : undefined, transitionDuration: count === 3 ? `${time}ms` : undefined, width, height, overflow: \"hidden\", position: \"relative\", ...style }\n\n return (\n <div className={className} style={outerStyle} {...otherProps}>\n <div className={containerClassName} style={{ position: \"absolute\", ...containerStyle }} ref={box}>\n {children}\n </div>\n </div>\n )\n}\n\nexport interface SeaRadarTarget {\n /** 半径 */\n radius: number\n /** 弧度 */\n angle: number\n /** 元素 */\n element: ReactNode\n}\n\nexport interface SeaRadarProps {\n /** 最小圆的半径 */\n unitRadius?: number\n /** 一共的全数 */\n circleCount?: number\n /** 角度分成多少份 */\n directionCount?: number\n /** 圈的宽度 */\n circleWidth?: number\n /** 圈的颜色 */\n circleColor: string\n /** 角度的宽度 */\n directionWidth?: number\n /** 角度颜色 */\n directionColor: string\n /** 背景色 */\n backgroundColor: string\n /** 扫描的颜色 */\n scanColor: string\n /** 扫描的弧度 */\n scanAngle?: number\n /** 扫描一周的时间,单位秒 */\n period?: number\n /** 目标列表 */\n targets?: SeaRadarTarget[]\n /** 展示圈 */\n showCircle?: boolean\n /** 展示方位 */\n showDirection?: boolean\n /** 展示刻度线 */\n showGraduationLine?: boolean\n /** 展示刻度文字 */\n showGraduationText?: boolean\n}\n\n/** 雷达组件 */\nexport const SeaRadar: FC<SeaRadarProps> = props => {\n const { unitRadius = 50, circleCount = 4, circleWidth = 1, circleColor, directionCount = 36, directionWidth = 1, directionColor, backgroundColor, scanColor, scanAngle = Math.PI / 6, period = 8, targets, showGraduationLine, showGraduationText, showCircle, showDirection } = props\n const style = { \"--unit-radius\": `${unitRadius}px`, \"--circle-count\": circleCount, \"--circle-width\": `${circleWidth}px`, \"--circle-color\": circleColor, \"--direction-count\": directionCount, \"--direction-width\": `${directionWidth}px`, \"--direction-color\": directionColor, \"--background-color\": backgroundColor, \"--scan-color\": scanColor, \"--period\": `${period}s` } as CSSProperties\n return (\n <div className=\"sea-radar-wrapper\" style={style}>\n {Array(180)\n .fill(0)\n .map((_, index) => (\n <div className=\"sea-radar-little-graduation\" style={{ transform: `rotateZ(${2 * index}deg)`, display: showGraduationLine ? \"block\" : \"none\" }}></div>\n ))}\n {Array(36)\n .fill(0)\n .map((_, index) => (\n <div className=\"sea-radar-graduation\" style={{ transform: `rotateZ(${10 * index}deg)`, display: showGraduationLine ? \"block\" : \"none\" }}>\n <span className=\"sea-radar-graduation-text\" style={{ display: showGraduationText ? \"block\" : \"none\" }}>\n {String(index * 10).padStart(3, \"0\")}\n </span>\n </div>\n ))}\n <div className=\"sea-radar\">\n <div className=\"sea-radar-scan\" style={{ height: `${unitRadius * circleCount * Math.tan(scanAngle)}px`, clipPath: `polygon(0 0, 0 100%, 100% 100%)` }}></div>\n {showCircle &&\n Array(circleCount)\n .fill(0)\n .map((_, index) => <div className=\"sea-radar-circle\" style={{ width: `${unitRadius * 2 * (index + 1)}px`, height: `${unitRadius * 2 * (index + 1)}px` }}></div>)}\n {showDirection &&\n Array(directionCount)\n .fill(0)\n .map((_, index) => <div className=\"sea-radar-direction\" style={{ transform: `rotateZ(${(360 / directionCount) * index}deg)` }}></div>)}\n {targets?.map(it => (\n <div className=\"sea-radar-target\" style={{ left: `${unitRadius * circleCount + it.radius * Math.cos(it.angle)}px`, bottom: `${unitRadius * circleCount + it.radius * Math.sin(it.angle)}px` }}>\n {it.element}\n </div>\n ))}\n </div>\n </div>\n )\n}\n\nexport interface RingProps extends HTMLAttributes<HTMLDivElement> {\n outerWidth: number\n innerWidth: number\n}\n\n/** 忘了什么组件 */\nexport const Ring: FC<RingProps> = props => {\n const { outerWidth, innerWidth, style, ...leftProps } = props\n\n const outerRadius = outerWidth / 2\n\n const innerRadius = innerWidth / 2\n\n return <div style={{ ...style, width: `${outerWidth}px`, height: `${outerWidth}px`, clipPath: `path(\"M0,${outerRadius} a${outerRadius},${outerRadius},0,1,0,${outerWidth},0 a${outerRadius},${outerRadius},0,1,0,-${outerWidth},0 l${outerRadius - innerRadius},0 a${innerRadius},${innerRadius},0,0,1,${innerRadius * 2},0 a${innerRadius},${innerRadius},0,0,1,-${innerRadius * 2},0 Z\")` }} {...leftProps} />\n}\n\nexport interface FlowSizeData {\n /** 容器宽度 */\n width: number\n /** 容器高度 */\n height: number\n /** 元素宽度 */\n itemWidth: number\n /** 元素高度 */\n itemHeight: number\n /** 列间距 */\n columnGap: number\n /** 列数 */\n columnCount: number\n /** 行间距 */\n rowGap: number\n /** 行数 */\n rowCount: number\n /** 元素格数 */\n itemCount: number\n /** 最大行数 */\n maxRows: number | null\n /** 是否有元素被隐藏 */\n overflow: boolean\n}\n\nexport interface FlowProps<T> extends Omit<HTMLAttributes<HTMLDivElement>, \"children\"> {\n /** 元素宽度 */\n itemWidth: number\n /** 元素高度 */\n itemHeight: number\n /** 列间距 */\n columnGap?: number | null | (number | null)[]\n /** 行间距 */\n rowGap?: number\n /** 最大行数 */\n maxRows?: number | null\n /** 源数据 */\n data: T[]\n /** 渲染 */\n render: (item: T, index: number, hidden: boolean) => ReactNode\n /** key释放器,默认为 index */\n keyExactor?: (item: T, index: number) => string | number\n /** 容器类名 */\n containerClassName?: string\n /** 容器样式 */\n containerStyle?: CSSProperties\n /** 节流时间,单位毫秒,默认200ms,传入 null 不节流 */\n throttle?: number | null\n /** 动画时间,单位毫秒,默认400ms,传入 null 不展示动画 */\n transitionDuration?: number | null\n /** 变化的回调函数 */\n onSizeChange?: (sizeData: FlowSizeData) => void\n}\n\nexport function getGapRange(gap?: undefined | number | null | (number | null)[]): [number, number | null] {\n if (typeof gap === \"number\") return [gap, gap]\n if (Array.isArray(gap)) return [gap[0] || 0, gap[1]]\n return [0, null]\n}\n\nexport function getGapCountAndSize(width: number, itemWidth: number, minGap: number, maxGap: number | null): [number, number] {\n const count = Math.floor((width + minGap) / (itemWidth + minGap)) || 1\n if (count === 1) return [count, 0]\n const averageGap = (width - itemWidth * count) / (count - 1)\n if (averageGap < minGap) return [count, minGap]\n if (maxGap !== null && averageGap > maxGap) return [count, maxGap]\n return [count, averageGap]\n}\n\n/** 自适应浮动组件 */\nexport function Flow<T>(props: FlowProps<T>) {\n const { itemWidth, itemHeight, columnGap, rowGap = 0, maxRows, data, render, keyExactor, className, style, containerClassName, containerStyle, throttle, transitionDuration, onSizeChange, ...otherProps } = props\n const [minColumnGap, maxColumnGap] = getGapRange(columnGap)\n const [width, setWidth] = useState(0)\n const [columnCount, setColumnCount] = useState(1)\n const [columnGapSize, setColumnGapSize] = useState(minColumnGap)\n const [showItems, setShowItems] = useState(false)\n const ele = useRef<HTMLDivElement>(null)\n const contentRows = Math.ceil(data.length / columnCount)\n const contentShownRows = typeof maxRows === \"number\" ? Math.min(contentRows, maxRows) : contentRows\n const height = contentShownRows > 0 ? contentShownRows * (itemHeight + rowGap) - rowGap : 0\n\n interface Position {\n left: number\n top: number\n }\n\n function getPosition(index: number): Position {\n const y = Math.floor(index / columnCount)\n const x = index - y * columnCount\n return {\n left: x * (itemWidth + columnGapSize),\n top: y * (itemHeight + rowGap)\n }\n }\n\n function getHidden(index: number) {\n if (typeof maxRows !== \"number\") return false\n return index >= maxRows * columnCount\n }\n\n useEffect(() => {\n let timeout: number\n const observer = new ResizeObserver(entries => {\n clearTimeout(timeout)\n function task() {\n const { inlineSize: width } = entries[0].borderBoxSize[0]\n const [newColumnCount, newColumnGapSize] = getGapCountAndSize(width, itemWidth, minColumnGap, maxColumnGap)\n setShowItems(true)\n setWidth(width)\n setColumnCount(newColumnCount)\n setColumnGapSize(newColumnGapSize)\n }\n if (throttle === null) {\n task()\n } else {\n timeout = window.setTimeout(task, throttle || 200)\n }\n })\n observer.observe(ele.current!)\n\n return () => {\n observer.disconnect()\n }\n }, [itemWidth, throttle, columnGap])\n\n useEffect(() => {\n onSizeChange?.({ width, height, itemWidth, itemHeight, columnGap: columnGapSize, columnCount, rowGap, rowCount: contentShownRows, overflow: data.length > contentShownRows * columnCount, itemCount: data.length, maxRows: maxRows ?? null })\n }, [width, height, columnGapSize, columnCount, rowGap, contentShownRows, data.length, itemWidth, itemHeight, maxRows])\n\n return (\n <div ref={ele} className={className} style={{ position: \"relative\", boxSizing: \"border-box\", height, ...style }} {...otherProps}>\n {showItems &&\n data.map((it, idx) => (\n <div\n key={keyExactor?.(it, idx) || idx}\n className={containerClassName}\n style={{\n position: \"absolute\",\n width: itemWidth,\n height: itemHeight,\n transition: transitionDuration !== null ? `all ${transitionDuration ?? 400}ms` : undefined,\n ...getPosition(idx)\n }}\n >\n <div style={{ width: itemWidth, height: itemHeight, display: maxRows && idx >= maxRows * columnCount ? \"none\" : \"block\", ...containerStyle }}>{render(it, idx, getHidden(idx))}</div>\n </div>\n ))}\n </div>\n )\n}\n\nexport interface TrapeziumProps extends HTMLAttributes<HTMLDivElement> {\n top: number\n bottom: number\n height: number\n borderRadius: number\n}\n\n/** 梯形组件 */\nexport const Trapezium = forwardRef<HTMLDivElement, TrapeziumProps>((props, ref) => {\n const { top, bottom, height, borderRadius, style, ...other } = props\n\n const diff = (bottom - top) / 2\n\n const a = Math.atan(height / diff) / 2\n\n const b = borderRadius / Math.tan(a)\n\n const c = b * Math.cos(a * 2)\n\n const d = b * Math.sin(a * 2)\n\n const e = Math.PI / 2 - a\n\n const f = borderRadius / Math.tan(e)\n\n const g = f * Math.cos(a * 2)\n\n const h = f * Math.sin(a * 2)\n\n return <div ref={ref} style={{ width: bottom, height, clipPath: `path(\"M ${diff + f} ${0} A ${borderRadius} ${borderRadius} 0 0 0 ${diff - g} ${h} L ${c} ${height - d} A ${borderRadius} ${borderRadius} 0 0 0 ${b} ${height} L ${bottom - b} ${height} A ${borderRadius} ${borderRadius} 0 0 0 ${bottom - c} ${height - d} L ${top + diff + g} ${h} A ${borderRadius} ${borderRadius} 0 0 0 ${top + diff - f} ${0} Z\")`, ...style }} {...other} />\n})\n\nexport interface LoopSwiperProps<T> {\n /** 源数据 */\n data: T[]\n /** 渲染函数 */\n render: (item: T, index: number, array: T[]) => ReactNode\n /** 每个元素的key */\n keyExactor?: (item: T, index: number, array: T[]) => string\n /** 水平方向是宽度,垂直方向是高度 */\n size: number\n /** 元素之间间隔 */\n gap?: number\n /** 起始位置 */\n start?: number\n /** 速度,水平方向正数为向左,水平方向负数为向右,垂直方向正数为向上,水平方向负数为向下 */\n speed: number\n /** 是否暂停播放 */\n paused?: boolean\n /** 容器的类名 */\n className?: string\n /** x 水平方向,y 垂直方向 */\n direction?: \"x\" | \"y\"\n}\n\nexport interface LoopSwiperItem {\n key: string\n dom: HTMLDivElement | null\n offset: number\n}\n\n/** 循环播放组件 */\nexport function LoopSwiper<T>(props: LoopSwiperProps<T>) {\n const { data, render, keyExactor, size, gap = 0, start = 0, speed, paused = false, className = \"\", direction = \"x\" } = props\n if (!(size > 0 && (speed > 0 || speed < 0))) {\n throw new RangeError(\"size 必须是正数,speed 必须非0\")\n }\n const keys = data.map((it, idx, arr) => (keyExactor ? keyExactor(it, idx, arr) : String(idx)))\n const keysRef = useRef(keys)\n const cache = useRef({ size, gap, speed, keys, paused, className, direction })\n cache.current = { size, gap, speed, keys, paused, className, direction }\n const eles = useRef<LoopSwiperItem[]>(keys.map((key, idx) => ({ key, dom: null, offset: idx * (size + gap) + start })))\n\n if (keysRef.current.length !== keys.length || keysRef.current.some((it, idx) => it !== keys[idx])) {\n keysRef.current = keys\n eles.current = keys.map((key, idx) => ({ key, dom: null, offset: idx * (size + gap) + start }))\n }\n\n function setStyles() {\n const { size, speed, className, direction } = cache.current\n eles.current.forEach(it => {\n it.dom!.className = className\n it.dom!.style.setProperty(\"position\", `absolute`)\n it.dom!.style.setProperty(\"width\", `${size}px`)\n direction === \"x\" && speed < 0 ? it.dom!.style.setProperty(\"right\", `0`) : it.dom!.style.setProperty(\"left\", `0`)\n direction === \"y\" && speed < 0 ? it.dom!.style.setProperty(\"bottom\", `0`) : it.dom!.style.setProperty(\"top\", `0`)\n it.dom!.style.setProperty(\"transform\", `translate${direction.toUpperCase()}(${it.offset * (speed > 0 ? 1 : -1)}px)`)\n })\n }\n\n useEffect(() => {\n setStyles()\n }, [])\n\n useEffect(() => {\n const stop = setFrameInterval(() => {\n const { size, gap, speed, keys, paused } = cache.current\n if (paused) return\n eles.current.length = keys.length\n let minIndex = 0\n eles.current.forEach((it, idx) => {\n if (it.offset < eles.current[minIndex].offset) {\n minIndex = idx\n }\n })\n const minOffset = eles.current[minIndex].offset\n eles.current.forEach((it, idx) => {\n let index = idx\n if (idx < minIndex) index = eles.current.length + idx\n it.offset = minOffset + (index - minIndex) * (size + gap)\n let newOffset = it.offset - Math.abs(speed)\n if (newOffset + size + gap <= 0) {\n newOffset += eles.current.length * (size + gap)\n }\n it.offset = newOffset\n })\n setStyles()\n }, 1)\n\n return stop\n }, [])\n\n function ref(dom: HTMLDivElement | null, index: number) {\n if (!eles.current[index]) return\n eles.current[index].dom = dom\n }\n\n return (\n <Fragment>\n {data.map((it, idx, arr) => (\n <div key={keys[idx]} ref={dom => ref(dom, idx)}>\n {render(it, idx, arr)}\n </div>\n ))}\n </Fragment>\n )\n}\n\nexport interface SectionRingProps extends HTMLAttributes<HTMLDivElement> {\n outerRadius: number\n innerRadius: number\n count: number\n angel: number\n}\n\nexport const SectionRing: FC<SectionRingProps> = props => {\n const { outerRadius: o, innerRadius: i, count: c, angel: a, style, ...others } = props\n\n const s = (Math.PI * 2) / c - a\n\n function arc(radius: number, startAngle: number, endAngle: number, options: DrawArcOptions = {}) {\n return drawArc(o, o, radius, startAngle, endAngle, options)\n }\n\n return (\n <div\n style={{\n ...style,\n width: o * 2,\n height: o * 2,\n clipPath: `path(\"${Array(c)\n .fill(0)\n .map((it, idx) => `${arc(o, idx * (a + s), idx * (a + s) + a)} ${arc(i, idx * (a + s) + a, idx * (a + s), { line: true, anticlockwise: true })}`)\n .join(\" \")} Z\")`\n }}\n {...others}\n />\n )\n}\n\nexport interface TransitionNumProps extends Omit<HTMLAttributes<HTMLDivElement>, \"children\"> {\n /** 当前数字 */\n children: number\n /** 变换周期,单位帧 */\n period: number\n /** 数字转换为字符串的方法 */\n numToStr?: (num: number) => string\n}\n\nexport interface TransitionNumIns {\n get(): number\n}\n\n/** 渐变数字组件 */\nexport const TransitionNum = forwardRef<TransitionNumIns, TransitionNumProps>((props, ref) => {\n const { children: num, period, numToStr, ...others } = props\n if (!Number.isInteger(num) || !Number.isInteger(period) || period <= 0) {\n throw new RangeError(\"目标数字必须是整数,周期必须是正整数\")\n }\n const ele = useRef<HTMLDivElement>(null)\n const cache = useRef({ num, period, numToStr, show: num })\n cache.current = { ...cache.current, num, period, numToStr }\n\n useImperativeHandle(ref, () => ({ get: () => cache.current.show }), [])\n\n useEffect(() => {\n const { num, period, show, numToStr } = cache.current\n ele.current!.innerText = (numToStr || String)(show)\n if (num === show) return\n const div = ele.current!\n const speed = (num - show) / period\n const cancel = setFrameInterval(() => {\n const { num, numToStr } = cache.current\n cache.current.show += speed\n if ((speed > 0 && cache.current.show > num) || (speed < 0 && cache.current.show < num)) {\n cancel()\n cache.current.show = num\n }\n div.innerText = (numToStr || String)(speed > 0 ? Math.floor(cache.current.show) : Math.ceil(cache.current.show))\n }, 1)\n\n return cancel\n }, [num])\n\n return <div ref={ele} {...others} />\n})\n\nexport interface CircleTextProps extends Omit<HTMLAttributes<HTMLSpanElement>, \"children\"> {\n /** 每一个方块的宽度 */\n width: number\n /** 每一个方块的高度 */\n height: number\n /** 圆弧的半径,不包含方块的高度 */\n radius: number\n /** 开始旋转的弧度,逆时针增加,0 为 x 轴方向 */\n startAngel?: number\n /** 每一个方块之间间隔的弧度 */\n gapAngel?: number\n /** 文字对齐的方式,默认居中 */\n align?: \"left\" | \"center\" | \"right\"\n /** 文字朝向圆心还是外侧,默认外侧 */\n direction?: \"inner\" | \"outer\"\n /** 是否反转文字顺序 */\n reverse?: boolean\n /** 分割文字的方法 */\n separator?: string | RegExp | ((text: string) => string[])\n /** 显示的文字 */\n children: string\n}\n\n/** 环形文字 */\nexport const CircleText: FC<CircleTextProps> = props => {\n const { width, height, radius, startAngel = 0, gapAngel = 0, align = \"center\", style, direction = \"outer\", reverse = false, separator, children, ...others } = props\n const unitAngle = Math.atan(width / 2 / radius) * 2\n const totalAngle = (unitAngle + gapAngel) * children.length - gapAngel\n const offsetAngle = align === \"left\" ? 0 : align === \"right\" ? totalAngle : totalAngle / 2\n\n function getTransform(idx: number) {\n const angle = startAngel - idx * (unitAngle + gapAngel) + offsetAngle - unitAngle / 2\n const x = (radius + height / 2) * Math.cos(angle) - width / 2\n const y = (radius + height / 2) * Math.sin(angle) * -1 - height / 2\n const z = Math.PI / 2 - angle + (direction === \"inner\" ? Math.PI : 0)\n return `translateX(${x}px) translateY(${y}px) rotateZ(${(z / Math.PI) * 180}deg)`\n }\n\n const words = typeof separator === \"function\" ? separator(children) : children.split(separator ?? \"\")\n\n if (reverse) words.reverse()\n\n return (\n <Fragment>\n {words.map((w, idx) => (\n <span key={idx} style={{ position: \"absolute\", ...style, transform: getTransform(idx), textAlign: \"center\", width, lineHeight: `${height}px`, height: height }} {...others}>\n {w}\n </span>\n ))}\n </Fragment>\n )\n}\n"],"mappings":";AACA,SAAyBA,OAAO,EAAEC,gBAAgB,QAAQ,eAAe;AACzE,OAAOC,KAAK,IAA0DC,QAAQ,EAAiFC,UAAU,EAAEC,SAAS,EAAEC,mBAAmB,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAC1O,SAASC,IAAI,EAAEC,KAAK,EAAEC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AAG,CAAC;IACnE,MAAMiL,CAAC,GAAGpK,IAAI,CAACqB,EAAE,GAAG,CAAC,GAAGkB,KAAK,IAAI4E,SAAS,KAAK,OAAO,GAAGnH,IAAI,CAACqB,EAAE,GAAG,CAAC,CAAC;IACrE,OAAQ,cAAa4D,CAAE,kBAAiBD,CAAE,eAAeoF,CAAC,GAAGpK,IAAI,CAACqB,EAAE,GAAI,GAAI,MAAK;EACrF;EAEA,MAAMgJ,KAAK,GAAG,OAAON,SAAS,KAAK,UAAU,GAAGA,SAAS,CAACnL,QAAQ,CAAC,GAAGA,QAAQ,CAAC0L,KAAK,CAACP,SAAS,IAAI,EAAE,CAAC;EAErG,IAAID,OAAO,EAAEO,KAAK,CAACP,OAAO,CAAC,CAAC;EAE5B,oBACI/P,KAAA,CAAAyC,aAAA,CAACxC,QAAQ,QACJqQ,KAAK,CAACpN,GAAG,CAAC,CAACsN,CAAC,EAAEvE,GAAG,kBACdjM,KAAA,CAAAyC,aAAA,SAAAC,QAAA;IAAMc,GAAG,EAAEyI,GAAI;IAACvH,KAAK,EAAE;MAAEgC,QAAQ,EAAE,UAAU;MAAE,GAAGhC,KAAK;MAAEsD,SAAS,EAAEoI,YAAY,CAACnE,GAAG,CAAC;MAAEwE,SAAS,EAAE,QAAQ;MAAEvL,KAAK;MAAEwL,UAAU,EAAG,GAAEtL,MAAO,IAAG;MAAEA,MAAM,EAAEA;IAAO;EAAE,GAAKqJ,MAAM,GACrK+B,CACC,CACT,CACK,CAAC;AAEnB,CAAC"}
|
|
1
|
+
{"version":3,"names":["css","clsx","drawArc","setFrameInterval","React","Fragment","forwardRef","useEffect","useId","useImperativeHandle","useRef","useState","SmoothScrollBar","read","utils","writeFile","getFileData","file","type","fileReader","FileReader","readAsArrayBuffer","readAsBinaryString","readAsDataURL","readAsText","Promise","resolve","addEventListener","result","InputFile","props","ref","multiple","onChange","disabled","inputDisabled","otherProps","setDisabled","onInputChange","e","input","target","files","length","push","value","error","createElement","_extends","ImportExcel","data","wb","sheet_to_json","Sheets","SheetNames","$","map","it","_","Object","keys","filter","key","forEach","String","accept","exportExcel","name","workSheet","json_to_sheet","workBook","book_new","book_append_sheet","endsWith","ExportExcel","fileName","onClick","onButtonClick","TransitionBox","style","containerClassName","containerStyle","children","vertical","horizontal","time","others","box","width","setWidth","height","setHeight","count","setCount","observer","ResizeObserver","entries","currentWidth","currentHeight","contentRect","observe","current","disconnect","Math","min","outerStyle","transitionProperty","Boolean","join","undefined","transitionDuration","overflow","position","className","SeaRadar","unitRadius","circleCount","circleWidth","circleColor","directionCount","directionWidth","directionColor","backgroundColor","scanColor","scanAngle","PI","period","targets","showGraduationLine","showGraduationText","showCircle","showDirection","Array","fill","index","transform","display","padStart","tan","clipPath","left","radius","cos","angle","bottom","sin","element","Ring","outerWidth","innerWidth","leftProps","outerRadius","innerRadius","getGapRange","gap","isArray","getGapCountAndSize","itemWidth","minGap","maxGap","floor","averageGap","Flow","itemHeight","columnGap","rowGap","maxRows","render","keyExactor","throttle","onSizeChange","minColumnGap","maxColumnGap","columnCount","setColumnCount","columnGapSize","setColumnGapSize","showItems","setShowItems","ele","contentRows","ceil","contentShownRows","getPosition","y","x","top","getHidden","timeout","clearTimeout","task","inlineSize","borderBoxSize","newColumnCount","newColumnGapSize","window","setTimeout","rowCount","itemCount","boxSizing","idx","transition","Trapezium","borderRadius","other","diff","a","atan","b","c","d","f","g","h","LoopSwiper","size","start","speed","paused","direction","RangeError","arr","keysRef","cache","eles","dom","offset","some","setStyles","setProperty","toUpperCase","stop","minIndex","minOffset","newOffset","abs","SectionRing","o","i","angel","s","arc","startAngle","endAngle","options","line","anticlockwise","TransitionNum","num","numToStr","Number","isInteger","show","get","innerText","div","cancel","CircleText","startAngel","gapAngel","align","reverse","separator","unitAngle","totalAngle","offsetAngle","getTransform","z","words","split","w","textAlign","lineHeight","Scroll","scrollbarOptions","thumbWidth","id","init","document","querySelector"],"sources":["../../src/index.tsx"],"sourcesContent":["import { css } from \"@emotion/css\"\r\nimport clsx from \"clsx\"\r\nimport { DrawArcOptions, drawArc, setFrameInterval } from \"deepsea-tools\"\r\nimport React, { ButtonHTMLAttributes, CSSProperties, ChangeEvent, FC, Fragment, HTMLAttributes, InputHTMLAttributes, MouseEvent as ReactMouseEvent, ReactNode, forwardRef, useEffect, useId, useImperativeHandle, useRef, useState } from \"react\"\r\nimport SmoothScrollBar from \"smooth-scrollbar\"\r\nimport type { ScrollbarOptions } from \"smooth-scrollbar/interfaces\"\r\nimport { read, utils, writeFile } from \"xlsx\"\r\n\r\nexport type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false\r\n\r\nexport interface InputFileDataTypes {\r\n base64: string\r\n text: string\r\n arrayBuffer: ArrayBuffer\r\n binary: string\r\n file: File\r\n}\r\n\r\nexport type InputFileDataType = keyof InputFileDataTypes\r\n\r\nexport interface InputFileData<T> {\r\n result: T\r\n file: File\r\n}\r\n\r\nexport type InputFileProps = (\r\n | {\r\n multiple?: false\r\n type: \"base64\" | \"text\" | \"binary\"\r\n onChange?: (data: InputFileData<string>) => void\r\n }\r\n | {\r\n multiple?: false\r\n type: \"arrayBuffer\"\r\n onChange?: (data: InputFileData<ArrayBuffer>) => void\r\n }\r\n | {\r\n multiple?: false\r\n type?: \"file\"\r\n onChange?: (data: InputFileData<File>) => void\r\n }\r\n | {\r\n multiple: true\r\n type: \"base64\" | \"text\" | \"binary\"\r\n onChange?: (data: InputFileData<string>[]) => void\r\n }\r\n | {\r\n multiple: true\r\n type: \"arrayBuffer\"\r\n onChange?: (data: InputFileData<ArrayBuffer>[]) => void\r\n }\r\n | {\r\n multiple: true\r\n type?: \"file\"\r\n onChange?: (data: InputFileData<File>[]) => void\r\n }\r\n) &\r\n Omit<InputHTMLAttributes<HTMLInputElement>, \"onChange\" | \"multiple\" | \"type\">\r\n\r\nexport async function getFileData<T extends InputFileDataType>(file: File, type: T): Promise<InputFileDataTypes[T]> {\r\n const fileReader = new FileReader()\r\n switch (type) {\r\n case \"arrayBuffer\":\r\n fileReader.readAsArrayBuffer(file)\r\n break\r\n case \"binary\":\r\n fileReader.readAsBinaryString(file)\r\n break\r\n case \"base64\":\r\n fileReader.readAsDataURL(file)\r\n break\r\n case \"text\":\r\n fileReader.readAsText(file)\r\n break\r\n default:\r\n return file as any\r\n }\r\n return new Promise(resolve => {\r\n fileReader.addEventListener(\"load\", () => {\r\n resolve(fileReader.result as any)\r\n })\r\n })\r\n}\r\n\r\n/** 专用与读取文件的组件 */\r\nexport const InputFile = forwardRef<HTMLInputElement, InputFileProps>((props, ref) => {\r\n const { multiple = false, type = \"file\", onChange, disabled: inputDisabled, ...otherProps } = props\r\n const [disabled, setDisabled] = useState(false)\r\n\r\n async function onInputChange(e: ChangeEvent<HTMLInputElement>) {\r\n const input = e.target\r\n const { files } = input\r\n if (!files || files.length === 0) return\r\n setDisabled(true)\r\n try {\r\n if (multiple) {\r\n const result: any[] = []\r\n for (const file of files) {\r\n result.push({\r\n result: await getFileData(file, type),\r\n file\r\n })\r\n }\r\n onChange?.(result as any)\r\n } else {\r\n onChange?.({\r\n result: await getFileData(files[0], type),\r\n file: files[0]\r\n } as any)\r\n }\r\n setDisabled(false)\r\n input.value = \"\"\r\n } catch (error) {\r\n setDisabled(false)\r\n input.value = \"\"\r\n throw error\r\n }\r\n }\r\n\r\n return <input disabled={disabled && inputDisabled} ref={ref} type=\"file\" multiple={multiple} onChange={onInputChange} {...otherProps} />\r\n})\r\n\r\nexport interface ImportExcelProps extends Omit<InputFileProps, \"multiple\" | \"onChange\" | \"accept\" | \"type\"> {\r\n onChange?: (data: Record<string, string>[]) => void\r\n}\r\n\r\n/** 专门用于读取 excel 的组件 */\r\nexport const ImportExcel = forwardRef<HTMLInputElement, ImportExcelProps>((props, ref) => {\r\n const { onChange, ...otherProps } = props\r\n\r\n function onInputChange(data: InputFileData<ArrayBuffer>) {\r\n const wb = read(data.result)\r\n const result = utils.sheet_to_json<any>(wb.Sheets[wb.SheetNames[0]])\r\n if (typeof result === \"object\") {\r\n const $ = result.map(it => {\r\n const _: Record<string, string> = {}\r\n Object.keys(it)\r\n .filter(key => key !== \"__rowNum__\")\r\n .forEach(key => (_[key] = String(it[key])))\r\n return _\r\n })\r\n onChange?.($)\r\n }\r\n }\r\n\r\n return <InputFile ref={ref} accept=\".xlsx\" type=\"arrayBuffer\" onChange={onInputChange} {...otherProps} />\r\n})\r\n\r\n/** 手动导出 excel */\r\nexport function exportExcel(data: Record<string, string>[], name: string) {\r\n const workSheet = utils.json_to_sheet(data)\r\n const workBook = utils.book_new()\r\n utils.book_append_sheet(workBook, workSheet)\r\n writeFile(workBook, `${name}${name.endsWith(\".xlsx\") ? \"\" : \".xlsx\"}`)\r\n}\r\n\r\nexport interface ExportExcelProps extends ButtonHTMLAttributes<HTMLButtonElement> {\r\n data: Record<string, string>[]\r\n fileName: string\r\n}\r\n\r\n/** 导出 excel 的 button 组件 */\r\nexport const ExportExcel = forwardRef<HTMLButtonElement, ExportExcelProps>((props, ref) => {\r\n const { data, fileName, onClick, ...otherProps } = props\r\n\r\n function onButtonClick(e: ReactMouseEvent<HTMLButtonElement, MouseEvent>) {\r\n exportExcel(data, fileName)\r\n onClick?.(e)\r\n }\r\n\r\n return <button ref={ref} onClick={onButtonClick} {...otherProps} />\r\n})\r\n\r\nexport interface TransitionBoxProps extends HTMLAttributes<HTMLDivElement> {\r\n containerClassName?: string\r\n containerStyle?: CSSProperties\r\n vertical?: boolean\r\n horizontal?: boolean\r\n time?: number\r\n}\r\n\r\n/** 尺寸渐变的组件 */\r\nexport const TransitionBox: FC<TransitionBoxProps> = props => {\r\n const { style, containerClassName, containerStyle, children, vertical = true, horizontal = true, time = 3000, ...others } = props\r\n const box = useRef<HTMLDivElement>(null)\r\n const [width, setWidth] = useState(0)\r\n const [height, setHeight] = useState(0)\r\n const [count, setCount] = useState(0)\r\n\r\n useEffect(() => {\r\n const observer = new ResizeObserver(entries => {\r\n const { width: currentWidth, height: currentHeight } = entries[0].contentRect\r\n setWidth(currentWidth)\r\n setHeight(currentHeight)\r\n })\r\n\r\n observer.observe(box.current!)\r\n\r\n return () => {\r\n observer.disconnect()\r\n }\r\n }, [])\r\n\r\n useEffect(() => {\r\n setCount(count => Math.min(count + 1, 3))\r\n }, [width, height])\r\n\r\n const outerStyle: CSSProperties = { transitionProperty: count === 3 ? [horizontal && \"width\", vertical && \"height\"].filter(Boolean).join(\", \") : undefined, transitionDuration: count === 3 ? `${time}ms` : undefined, width, height, overflow: \"hidden\", position: \"relative\", ...style }\r\n\r\n return (\r\n <div style={outerStyle} {...others}>\r\n <div className={containerClassName} style={{ position: \"absolute\", ...containerStyle }} ref={box}>\r\n {children}\r\n </div>\r\n </div>\r\n )\r\n}\r\n\r\nexport interface SeaRadarTarget {\r\n /** 半径 */\r\n radius: number\r\n /** 弧度 */\r\n angle: number\r\n /** 元素 */\r\n element: ReactNode\r\n}\r\n\r\nexport interface SeaRadarProps {\r\n /** 最小圆的半径 */\r\n unitRadius?: number\r\n /** 一共的全数 */\r\n circleCount?: number\r\n /** 角度分成多少份 */\r\n directionCount?: number\r\n /** 圈的宽度 */\r\n circleWidth?: number\r\n /** 圈的颜色 */\r\n circleColor: string\r\n /** 角度的宽度 */\r\n directionWidth?: number\r\n /** 角度颜色 */\r\n directionColor: string\r\n /** 背景色 */\r\n backgroundColor: string\r\n /** 扫描的颜色 */\r\n scanColor: string\r\n /** 扫描的弧度 */\r\n scanAngle?: number\r\n /** 扫描一周的时间,单位秒 */\r\n period?: number\r\n /** 目标列表 */\r\n targets?: SeaRadarTarget[]\r\n /** 展示圈 */\r\n showCircle?: boolean\r\n /** 展示方位 */\r\n showDirection?: boolean\r\n /** 展示刻度线 */\r\n showGraduationLine?: boolean\r\n /** 展示刻度文字 */\r\n showGraduationText?: boolean\r\n}\r\n\r\n/** 雷达组件 */\r\nexport const SeaRadar: FC<SeaRadarProps> = props => {\r\n const { unitRadius = 50, circleCount = 4, circleWidth = 1, circleColor, directionCount = 36, directionWidth = 1, directionColor, backgroundColor, scanColor, scanAngle = Math.PI / 6, period = 8, targets, showGraduationLine, showGraduationText, showCircle, showDirection } = props\r\n const style = { \"--unit-radius\": `${unitRadius}px`, \"--circle-count\": circleCount, \"--circle-width\": `${circleWidth}px`, \"--circle-color\": circleColor, \"--direction-count\": directionCount, \"--direction-width\": `${directionWidth}px`, \"--direction-color\": directionColor, \"--background-color\": backgroundColor, \"--scan-color\": scanColor, \"--period\": `${period}s` } as CSSProperties\r\n return (\r\n <div className=\"sea-radar-wrapper\" style={style}>\r\n {Array(180)\r\n .fill(0)\r\n .map((_, index) => (\r\n <div className=\"sea-radar-little-graduation\" style={{ transform: `rotateZ(${2 * index}deg)`, display: showGraduationLine ? \"block\" : \"none\" }}></div>\r\n ))}\r\n {Array(36)\r\n .fill(0)\r\n .map((_, index) => (\r\n <div className=\"sea-radar-graduation\" style={{ transform: `rotateZ(${10 * index}deg)`, display: showGraduationLine ? \"block\" : \"none\" }}>\r\n <span className=\"sea-radar-graduation-text\" style={{ display: showGraduationText ? \"block\" : \"none\" }}>\r\n {String(index * 10).padStart(3, \"0\")}\r\n </span>\r\n </div>\r\n ))}\r\n <div className=\"sea-radar\">\r\n <div className=\"sea-radar-scan\" style={{ height: `${unitRadius * circleCount * Math.tan(scanAngle)}px`, clipPath: `polygon(0 0, 0 100%, 100% 100%)` }}></div>\r\n {showCircle &&\r\n Array(circleCount)\r\n .fill(0)\r\n .map((_, index) => <div className=\"sea-radar-circle\" style={{ width: `${unitRadius * 2 * (index + 1)}px`, height: `${unitRadius * 2 * (index + 1)}px` }}></div>)}\r\n {showDirection &&\r\n Array(directionCount)\r\n .fill(0)\r\n .map((_, index) => <div className=\"sea-radar-direction\" style={{ transform: `rotateZ(${(360 / directionCount) * index}deg)` }}></div>)}\r\n {targets?.map(it => (\r\n <div className=\"sea-radar-target\" style={{ left: `${unitRadius * circleCount + it.radius * Math.cos(it.angle)}px`, bottom: `${unitRadius * circleCount + it.radius * Math.sin(it.angle)}px` }}>\r\n {it.element}\r\n </div>\r\n ))}\r\n </div>\r\n </div>\r\n )\r\n}\r\n\r\nexport interface RingProps extends HTMLAttributes<HTMLDivElement> {\r\n outerWidth: number\r\n innerWidth: number\r\n}\r\n\r\n/** 忘了什么组件 */\r\nexport const Ring: FC<RingProps> = props => {\r\n const { outerWidth, innerWidth, style, ...leftProps } = props\r\n\r\n const outerRadius = outerWidth / 2\r\n\r\n const innerRadius = innerWidth / 2\r\n\r\n return <div style={{ ...style, width: `${outerWidth}px`, height: `${outerWidth}px`, clipPath: `path(\"M0,${outerRadius} a${outerRadius},${outerRadius},0,1,0,${outerWidth},0 a${outerRadius},${outerRadius},0,1,0,-${outerWidth},0 l${outerRadius - innerRadius},0 a${innerRadius},${innerRadius},0,0,1,${innerRadius * 2},0 a${innerRadius},${innerRadius},0,0,1,-${innerRadius * 2},0 Z\")` }} {...leftProps} />\r\n}\r\n\r\nexport interface FlowSizeData {\r\n /** 容器宽度 */\r\n width: number\r\n /** 容器高度 */\r\n height: number\r\n /** 元素宽度 */\r\n itemWidth: number\r\n /** 元素高度 */\r\n itemHeight: number\r\n /** 列间距 */\r\n columnGap: number\r\n /** 列数 */\r\n columnCount: number\r\n /** 行间距 */\r\n rowGap: number\r\n /** 行数 */\r\n rowCount: number\r\n /** 元素格数 */\r\n itemCount: number\r\n /** 最大行数 */\r\n maxRows: number | null\r\n /** 是否有元素被隐藏 */\r\n overflow: boolean\r\n}\r\n\r\nexport interface FlowProps<T> extends Omit<HTMLAttributes<HTMLDivElement>, \"children\"> {\r\n /** 元素宽度 */\r\n itemWidth: number\r\n /** 元素高度 */\r\n itemHeight: number\r\n /** 列间距 */\r\n columnGap?: number | null | (number | null)[]\r\n /** 行间距 */\r\n rowGap?: number\r\n /** 最大行数 */\r\n maxRows?: number | null\r\n /** 源数据 */\r\n data: T[]\r\n /** 渲染 */\r\n render: (item: T, index: number, hidden: boolean) => ReactNode\r\n /** key释放器,默认为 index */\r\n keyExactor?: (item: T, index: number) => string | number\r\n /** 容器类名 */\r\n containerClassName?: string\r\n /** 容器样式 */\r\n containerStyle?: CSSProperties\r\n /** 节流时间,单位毫秒,默认200ms,传入 null 不节流 */\r\n throttle?: number | null\r\n /** 动画时间,单位毫秒,默认400ms,传入 null 不展示动画 */\r\n transitionDuration?: number | null\r\n /** 变化的回调函数 */\r\n onSizeChange?: (sizeData: FlowSizeData) => void\r\n}\r\n\r\nexport function getGapRange(gap?: undefined | number | null | (number | null)[]): [number, number | null] {\r\n if (typeof gap === \"number\") return [gap, gap]\r\n if (Array.isArray(gap)) return [gap[0] || 0, gap[1]]\r\n return [0, null]\r\n}\r\n\r\nexport function getGapCountAndSize(width: number, itemWidth: number, minGap: number, maxGap: number | null): [number, number] {\r\n const count = Math.floor((width + minGap) / (itemWidth + minGap)) || 1\r\n if (count === 1) return [count, 0]\r\n const averageGap = (width - itemWidth * count) / (count - 1)\r\n if (averageGap < minGap) return [count, minGap]\r\n if (maxGap !== null && averageGap > maxGap) return [count, maxGap]\r\n return [count, averageGap]\r\n}\r\n\r\n/** 自适应浮动组件 */\r\nexport function Flow<T>(props: FlowProps<T>) {\r\n const { itemWidth, itemHeight, columnGap, rowGap = 0, maxRows, data, render, keyExactor, className, style, containerClassName, containerStyle, throttle, transitionDuration, onSizeChange, ...otherProps } = props\r\n const [minColumnGap, maxColumnGap] = getGapRange(columnGap)\r\n const [width, setWidth] = useState(0)\r\n const [columnCount, setColumnCount] = useState(1)\r\n const [columnGapSize, setColumnGapSize] = useState(minColumnGap)\r\n const [showItems, setShowItems] = useState(false)\r\n const ele = useRef<HTMLDivElement>(null)\r\n const contentRows = Math.ceil(data.length / columnCount)\r\n const contentShownRows = typeof maxRows === \"number\" ? Math.min(contentRows, maxRows) : contentRows\r\n const height = contentShownRows > 0 ? contentShownRows * (itemHeight + rowGap) - rowGap : 0\r\n\r\n interface Position {\r\n left: number\r\n top: number\r\n }\r\n\r\n function getPosition(index: number): Position {\r\n const y = Math.floor(index / columnCount)\r\n const x = index - y * columnCount\r\n return {\r\n left: x * (itemWidth + columnGapSize),\r\n top: y * (itemHeight + rowGap)\r\n }\r\n }\r\n\r\n function getHidden(index: number) {\r\n if (typeof maxRows !== \"number\") return false\r\n return index >= maxRows * columnCount\r\n }\r\n\r\n useEffect(() => {\r\n let timeout: number\r\n const observer = new ResizeObserver(entries => {\r\n clearTimeout(timeout)\r\n function task() {\r\n const { inlineSize: width } = entries[0].borderBoxSize[0]\r\n const [newColumnCount, newColumnGapSize] = getGapCountAndSize(width, itemWidth, minColumnGap, maxColumnGap)\r\n setShowItems(true)\r\n setWidth(width)\r\n setColumnCount(newColumnCount)\r\n setColumnGapSize(newColumnGapSize)\r\n }\r\n if (throttle === null) {\r\n task()\r\n } else {\r\n timeout = window.setTimeout(task, throttle || 200)\r\n }\r\n })\r\n observer.observe(ele.current!)\r\n\r\n return () => {\r\n observer.disconnect()\r\n }\r\n }, [itemWidth, throttle, columnGap])\r\n\r\n useEffect(() => {\r\n onSizeChange?.({ width, height, itemWidth, itemHeight, columnGap: columnGapSize, columnCount, rowGap, rowCount: contentShownRows, overflow: data.length > contentShownRows * columnCount, itemCount: data.length, maxRows: maxRows ?? null })\r\n }, [width, height, columnGapSize, columnCount, rowGap, contentShownRows, data.length, itemWidth, itemHeight, maxRows])\r\n\r\n return (\r\n <div ref={ele} className={className} style={{ position: \"relative\", boxSizing: \"border-box\", height, ...style }} {...otherProps}>\r\n {showItems &&\r\n data.map((it, idx) => (\r\n <div\r\n key={keyExactor?.(it, idx) || idx}\r\n className={containerClassName}\r\n style={{\r\n position: \"absolute\",\r\n width: itemWidth,\r\n height: itemHeight,\r\n transition: transitionDuration !== null ? `all ${transitionDuration ?? 400}ms` : undefined,\r\n ...getPosition(idx)\r\n }}\r\n >\r\n <div style={{ width: itemWidth, height: itemHeight, display: maxRows && idx >= maxRows * columnCount ? \"none\" : \"block\", ...containerStyle }}>{render(it, idx, getHidden(idx))}</div>\r\n </div>\r\n ))}\r\n </div>\r\n )\r\n}\r\n\r\nexport interface TrapeziumProps extends HTMLAttributes<HTMLDivElement> {\r\n top: number\r\n bottom: number\r\n height: number\r\n borderRadius: number\r\n}\r\n\r\n/** 梯形组件 */\r\nexport const Trapezium = forwardRef<HTMLDivElement, TrapeziumProps>((props, ref) => {\r\n const { top, bottom, height, borderRadius, style, ...other } = props\r\n\r\n const diff = (bottom - top) / 2\r\n\r\n const a = Math.atan(height / diff) / 2\r\n\r\n const b = borderRadius / Math.tan(a)\r\n\r\n const c = b * Math.cos(a * 2)\r\n\r\n const d = b * Math.sin(a * 2)\r\n\r\n const e = Math.PI / 2 - a\r\n\r\n const f = borderRadius / Math.tan(e)\r\n\r\n const g = f * Math.cos(a * 2)\r\n\r\n const h = f * Math.sin(a * 2)\r\n\r\n return <div ref={ref} style={{ width: bottom, height, clipPath: `path(\"M ${diff + f} ${0} A ${borderRadius} ${borderRadius} 0 0 0 ${diff - g} ${h} L ${c} ${height - d} A ${borderRadius} ${borderRadius} 0 0 0 ${b} ${height} L ${bottom - b} ${height} A ${borderRadius} ${borderRadius} 0 0 0 ${bottom - c} ${height - d} L ${top + diff + g} ${h} A ${borderRadius} ${borderRadius} 0 0 0 ${top + diff - f} ${0} Z\")`, ...style }} {...other} />\r\n})\r\n\r\nexport interface LoopSwiperProps<T> {\r\n /** 源数据 */\r\n data: T[]\r\n /** 渲染函数 */\r\n render: (item: T, index: number, array: T[]) => ReactNode\r\n /** 每个元素的key */\r\n keyExactor?: (item: T, index: number, array: T[]) => string\r\n /** 水平方向是宽度,垂直方向是高度 */\r\n size: number\r\n /** 元素之间间隔 */\r\n gap?: number\r\n /** 起始位置 */\r\n start?: number\r\n /** 速度,水平方向正数为向左,水平方向负数为向右,垂直方向正数为向上,水平方向负数为向下 */\r\n speed: number\r\n /** 是否暂停播放 */\r\n paused?: boolean\r\n /** 容器的类名 */\r\n className?: string\r\n /** x 水平方向,y 垂直方向 */\r\n direction?: \"x\" | \"y\"\r\n}\r\n\r\nexport interface LoopSwiperItem {\r\n key: string\r\n dom: HTMLDivElement | null\r\n offset: number\r\n}\r\n\r\n/** 循环播放组件 */\r\nexport function LoopSwiper<T>(props: LoopSwiperProps<T>) {\r\n const { data, render, keyExactor, size, gap = 0, start = 0, speed, paused = false, className = \"\", direction = \"x\" } = props\r\n if (!(size > 0 && (speed > 0 || speed < 0))) {\r\n throw new RangeError(\"size 必须是正数,speed 必须非0\")\r\n }\r\n const keys = data.map((it, idx, arr) => (keyExactor ? keyExactor(it, idx, arr) : String(idx)))\r\n const keysRef = useRef(keys)\r\n const cache = useRef({ size, gap, speed, keys, paused, className, direction })\r\n cache.current = { size, gap, speed, keys, paused, className, direction }\r\n const eles = useRef<LoopSwiperItem[]>(keys.map((key, idx) => ({ key, dom: null, offset: idx * (size + gap) + start })))\r\n\r\n if (keysRef.current.length !== keys.length || keysRef.current.some((it, idx) => it !== keys[idx])) {\r\n keysRef.current = keys\r\n eles.current = keys.map((key, idx) => ({ key, dom: null, offset: idx * (size + gap) + start }))\r\n }\r\n\r\n function setStyles() {\r\n const { size, speed, className, direction } = cache.current\r\n eles.current.forEach(it => {\r\n it.dom!.className = className\r\n it.dom!.style.setProperty(\"position\", `absolute`)\r\n it.dom!.style.setProperty(\"width\", `${size}px`)\r\n direction === \"x\" && speed < 0 ? it.dom!.style.setProperty(\"right\", `0`) : it.dom!.style.setProperty(\"left\", `0`)\r\n direction === \"y\" && speed < 0 ? it.dom!.style.setProperty(\"bottom\", `0`) : it.dom!.style.setProperty(\"top\", `0`)\r\n it.dom!.style.setProperty(\"transform\", `translate${direction.toUpperCase()}(${it.offset * (speed > 0 ? 1 : -1)}px)`)\r\n })\r\n }\r\n\r\n useEffect(() => {\r\n setStyles()\r\n }, [])\r\n\r\n useEffect(() => {\r\n const stop = setFrameInterval(() => {\r\n const { size, gap, speed, keys, paused } = cache.current\r\n if (paused) return\r\n eles.current.length = keys.length\r\n let minIndex = 0\r\n eles.current.forEach((it, idx) => {\r\n if (it.offset < eles.current[minIndex].offset) {\r\n minIndex = idx\r\n }\r\n })\r\n const minOffset = eles.current[minIndex].offset\r\n eles.current.forEach((it, idx) => {\r\n let index = idx\r\n if (idx < minIndex) index = eles.current.length + idx\r\n it.offset = minOffset + (index - minIndex) * (size + gap)\r\n let newOffset = it.offset - Math.abs(speed)\r\n if (newOffset + size + gap <= 0) {\r\n newOffset += eles.current.length * (size + gap)\r\n }\r\n it.offset = newOffset\r\n })\r\n setStyles()\r\n }, 1)\r\n\r\n return stop\r\n }, [])\r\n\r\n function ref(dom: HTMLDivElement | null, index: number) {\r\n if (!eles.current[index]) return\r\n eles.current[index].dom = dom\r\n }\r\n\r\n return (\r\n <Fragment>\r\n {data.map((it, idx, arr) => (\r\n <div key={keys[idx]} ref={dom => ref(dom, idx)}>\r\n {render(it, idx, arr)}\r\n </div>\r\n ))}\r\n </Fragment>\r\n )\r\n}\r\n\r\nexport interface SectionRingProps extends HTMLAttributes<HTMLDivElement> {\r\n outerRadius: number\r\n innerRadius: number\r\n count: number\r\n angel: number\r\n}\r\n\r\nexport const SectionRing: FC<SectionRingProps> = props => {\r\n const { outerRadius: o, innerRadius: i, count: c, angel: a, style, ...others } = props\r\n\r\n const s = (Math.PI * 2) / c - a\r\n\r\n function arc(radius: number, startAngle: number, endAngle: number, options: DrawArcOptions = {}) {\r\n return drawArc(o, o, radius, startAngle, endAngle, options)\r\n }\r\n\r\n return (\r\n <div\r\n style={{\r\n ...style,\r\n width: o * 2,\r\n height: o * 2,\r\n clipPath: `path(\"${Array(c)\r\n .fill(0)\r\n .map((it, idx) => `${arc(o, idx * (a + s), idx * (a + s) + a)} ${arc(i, idx * (a + s) + a, idx * (a + s), { line: true, anticlockwise: true })}`)\r\n .join(\" \")} Z\")`\r\n }}\r\n {...others}\r\n />\r\n )\r\n}\r\n\r\nexport interface TransitionNumProps extends Omit<HTMLAttributes<HTMLDivElement>, \"children\"> {\r\n /** 当前数字 */\r\n children: number\r\n /** 变换周期,单位帧 */\r\n period: number\r\n /** 数字转换为字符串的方法 */\r\n numToStr?: (num: number) => string\r\n}\r\n\r\nexport interface TransitionNumIns {\r\n get(): number\r\n}\r\n\r\n/** 渐变数字组件 */\r\nexport const TransitionNum = forwardRef<TransitionNumIns, TransitionNumProps>((props, ref) => {\r\n const { children: num, period, numToStr, ...others } = props\r\n if (!Number.isInteger(num) || !Number.isInteger(period) || period <= 0) {\r\n throw new RangeError(\"目标数字必须是整数,周期必须是正整数\")\r\n }\r\n const ele = useRef<HTMLDivElement>(null)\r\n const cache = useRef({ num, period, numToStr, show: num })\r\n cache.current = { ...cache.current, num, period, numToStr }\r\n\r\n useImperativeHandle(ref, () => ({ get: () => cache.current.show }), [])\r\n\r\n useEffect(() => {\r\n const { num, period, show, numToStr } = cache.current\r\n ele.current!.innerText = (numToStr || String)(show)\r\n if (num === show) return\r\n const div = ele.current!\r\n const speed = (num - show) / period\r\n const cancel = setFrameInterval(() => {\r\n const { num, numToStr } = cache.current\r\n cache.current.show += speed\r\n if ((speed > 0 && cache.current.show > num) || (speed < 0 && cache.current.show < num)) {\r\n cancel()\r\n cache.current.show = num\r\n }\r\n div.innerText = (numToStr || String)(speed > 0 ? Math.floor(cache.current.show) : Math.ceil(cache.current.show))\r\n }, 1)\r\n\r\n return cancel\r\n }, [num])\r\n\r\n return <div ref={ele} {...others} />\r\n})\r\n\r\nexport interface CircleTextProps extends Omit<HTMLAttributes<HTMLSpanElement>, \"children\"> {\r\n /** 每一个方块的宽度 */\r\n width: number\r\n /** 每一个方块的高度 */\r\n height: number\r\n /** 圆弧的半径,不包含方块的高度 */\r\n radius: number\r\n /** 开始旋转的弧度,逆时针增加,0 为 x 轴方向 */\r\n startAngel?: number\r\n /** 每一个方块之间间隔的弧度 */\r\n gapAngel?: number\r\n /** 文字对齐的方式,默认居中 */\r\n align?: \"left\" | \"center\" | \"right\"\r\n /** 文字朝向圆心还是外侧,默认外侧 */\r\n direction?: \"inner\" | \"outer\"\r\n /** 是否反转文字顺序 */\r\n reverse?: boolean\r\n /** 分割文字的方法 */\r\n separator?: string | RegExp | ((text: string) => string[])\r\n /** 显示的文字 */\r\n children: string\r\n}\r\n\r\n/** 环形文字 */\r\nexport const CircleText: FC<CircleTextProps> = props => {\r\n const { width, height, radius, startAngel = 0, gapAngel = 0, align = \"center\", style, direction = \"outer\", reverse = false, separator, children, ...others } = props\r\n const unitAngle = Math.atan(width / 2 / radius) * 2\r\n const totalAngle = (unitAngle + gapAngel) * children.length - gapAngel\r\n const offsetAngle = align === \"left\" ? 0 : align === \"right\" ? totalAngle : totalAngle / 2\r\n\r\n function getTransform(idx: number) {\r\n const angle = startAngel - idx * (unitAngle + gapAngel) + offsetAngle - unitAngle / 2\r\n const x = (radius + height / 2) * Math.cos(angle) - width / 2\r\n const y = (radius + height / 2) * Math.sin(angle) * -1 - height / 2\r\n const z = Math.PI / 2 - angle + (direction === \"inner\" ? Math.PI : 0)\r\n return `translateX(${x}px) translateY(${y}px) rotateZ(${(z / Math.PI) * 180}deg)`\r\n }\r\n\r\n const words = typeof separator === \"function\" ? separator(children) : children.split(separator ?? \"\")\r\n\r\n if (reverse) words.reverse()\r\n\r\n return (\r\n <Fragment>\r\n {words.map((w, idx) => (\r\n <span key={idx} style={{ position: \"absolute\", ...style, transform: getTransform(idx), textAlign: \"center\", width, lineHeight: `${height}px`, height: height }} {...others}>\r\n {w}\r\n </span>\r\n ))}\r\n </Fragment>\r\n )\r\n}\r\n\r\nexport interface ScrollProps extends HTMLAttributes<HTMLDivElement> {\r\n /** 容器宽度 */\r\n containerClassName?: string\r\n /** 容器样式 */\r\n containerStyle?: CSSProperties\r\n scrollbarOptions?: Partial<ScrollbarOptions>\r\n /** 滑块宽度 */\r\n thumbWidth?: number\r\n}\r\n\r\nexport const Scroll = forwardRef<HTMLDivElement, ScrollProps>((props, ref) => {\r\n const { children, containerClassName, containerStyle, scrollbarOptions, thumbWidth, className, ...others } = props\r\n const id = useId()\r\n\r\n useEffect(() => {\r\n SmoothScrollBar.init(document.querySelector(`[data-scroll-id=\"${id}\"]`)!, scrollbarOptions)\r\n }, [])\r\n\r\n return (\r\n <div\r\n ref={ref}\r\n className={clsx(\r\n !!thumbWidth &&\r\n css`\r\n .scrollbar-track.scrollbar-track-x {\r\n height: ${thumbWidth}px;\r\n }\r\n\r\n .scrollbar-thumb.scrollbar-thumb-x {\r\n height: ${thumbWidth}px;\r\n }\r\n\r\n .scrollbar-track.scrollbar-track-y {\r\n width: ${thumbWidth}px;\r\n }\r\n\r\n .scrollbar-thumb.scrollbar-thumb-y {\r\n width: ${thumbWidth}px;\r\n }\r\n `,\r\n className\r\n )}\r\n data-scroll-id={id}\r\n {...others}\r\n >\r\n <div className={containerClassName} style={containerStyle}>\r\n {children}\r\n </div>\r\n </div>\r\n )\r\n})\r\n"],"mappings":";AAAA,SAASA,GAAG,QAAQ,cAAc;AAClC,OAAOC,IAAI,MAAM,MAAM;AACvB,SAAyBC,OAAO,EAAEC,gBAAgB,QAAQ,eAAe;AACzE,OAAOC,KAAK,IAA0DC,QAAQ,EAAiFC,UAAU,EAAEC,SAAS,EAAEC,KAAK,EAAEC,mBAAmB,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACjP,OAAOC,eAAe,MAAM,kBAAkB;AAE9C,SAASC,IAAI,EAAEC,KAAK,EAAEC,SAAS,QAAQ,MAAM;AAqD7C,OAAO,eAAeC,WAAWA,CAA8BC,IAAU,EAAEC,IAAO,EAAkC;EAChH,MAAMC,UAAU,GAAG,IAAIC,UAAU,CAAC,CAAC;EACnC,QAAQF,IAAI;IACR,KAAK,aAAa;MACdC,UAAU,CAACE,iBAAiB,CAACJ,IAAI,CAAC;MAClC;IACJ,KAAK,QAAQ;MACTE,UAAU,CAACG,kBAAkB,CAACL,IAAI,CAAC;MACnC;IACJ,KAAK,QAAQ;MACTE,UAAU,CAACI,aAAa,CAACN,IAAI,CAAC;MAC9B;IACJ,KAAK,MAAM;MACPE,UAAU,CAACK,UAAU,CAACP,IAAI,CAAC;MAC3B;IACJ;MACI,OAAOA,IAAI;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f9L,MAAM,gBAEVlF,KAAA,CAAA2C,aAAA;IAAKkE,SAAS,EAAEjC,kBAAmB;IAACD,KAAK,EAAEE;EAAe,GACrDC,QACA,CACJ,CAAC;AAEd,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,39 +1,42 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "deepsea-components",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "格数科技自用组件库",
|
|
5
|
-
"module": "dist/esm/index.js",
|
|
6
|
-
"types": "dist/esm/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"dev": "father dev",
|
|
9
|
-
"build": "father build",
|
|
10
|
-
"build:deps": "father prebundle",
|
|
11
|
-
"prepublishOnly": "father doctor && npm run build"
|
|
12
|
-
},
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "https://github.com/1adybug/deepsea-components"
|
|
16
|
-
},
|
|
17
|
-
"keywords": [],
|
|
18
|
-
"authors": [
|
|
19
|
-
"lurongv@qq.com"
|
|
20
|
-
],
|
|
21
|
-
"license": "MIT",
|
|
22
|
-
"files": [
|
|
23
|
-
"dist",
|
|
24
|
-
"compiled"
|
|
25
|
-
],
|
|
26
|
-
"publishConfig": {
|
|
27
|
-
"access": "public"
|
|
28
|
-
},
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "deepsea-components",
|
|
3
|
+
"version": "1.1.1",
|
|
4
|
+
"description": "格数科技自用组件库",
|
|
5
|
+
"module": "dist/esm/index.js",
|
|
6
|
+
"types": "dist/esm/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"dev": "father dev",
|
|
9
|
+
"build": "father build",
|
|
10
|
+
"build:deps": "father prebundle",
|
|
11
|
+
"prepublishOnly": "father doctor && npm run build"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/1adybug/deepsea-components"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [],
|
|
18
|
+
"authors": [
|
|
19
|
+
"lurongv@qq.com"
|
|
20
|
+
],
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"compiled"
|
|
25
|
+
],
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@emotion/css": "^11.11.2",
|
|
31
|
+
"antd": "^5.11.5",
|
|
32
|
+
"clsx": "^2.0.0",
|
|
33
|
+
"deepsea-tools": "^1.0.0",
|
|
34
|
+
"react": "^18.2.0",
|
|
35
|
+
"smooth-scrollbar": "^8.8.4",
|
|
36
|
+
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.0/xlsx-0.20.0.tgz"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@types/react": "^18.2.37",
|
|
40
|
+
"father": "^4.3.7"
|
|
41
|
+
}
|
|
42
|
+
}
|