Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(ci): fix lint errors (#179)
Wenzhao Huf4035e172b1c
diff --git a/packages/base-slides/src/Locale/en.ts b/packages/base-slides/src/Locale/en.tsindex d48dbb3bc8..e3809e731b 100644--- a/packages/base-slides/src/Locale/en.ts+++ b/packages/base-slides/src/Locale/en.ts@@ -411,7 +411,8 @@ export default {chooseText: 'Confirm color',tipNameRepeat: 'The name of the tab page cannot be repeated! Please revise',- noMoreSheet: 'The workbook contains at least one visual worksheet. To delete the selected worksheet, please insert a new worksheet or show a hidden worksheet.',+ noMoreSheet:+ 'The workbook contains at least one visual worksheet. To delete the selected worksheet, please insert a new worksheet or show a hidden worksheet.',confirmDelete: 'Are you sure to delete',redoDelete: 'Can be undo by Ctrl+Z',noHide: "Can't hide, at least keep one sheet tag",diff --git a/packages/base-slides/src/Locale/zh.ts b/packages/base-slides/src/Locale/zh.tsindex fd85edc4fc..a5feff1641 100644--- a/packages/base-slides/src/Locale/zh.ts+++ b/packages/base-slides/src/Locale/zh.ts@@ -274,7 +274,8 @@ export default {chooseText: '确定颜色',tipNameRepeat: '标签页的名称不能重复!请重新修改',- noMoreSheet: '工作薄内至少含有一张可视工作表。若需删除选定的工作表,请先插入一张新工作表或显示一张隐藏的工作表。',+ noMoreSheet:+ '工作薄内至少含有一张可视工作表。若需删除选定的工作表,请先插入一张新工作表或显示一张隐藏的工作表。',confirmDelete: '是否删除',redoDelete: '可以通过Ctrl+Z撤销删除',noHide: '不能隐藏, 至少保留一个sheet标签',diff --git a/packages/base-ui/src/Components/Avatar/Avatar.tsx b/packages/base-ui/src/Components/Avatar/Avatar.tsxindex 374dcc5214..9c2619b624 100644--- a/packages/base-ui/src/Components/Avatar/Avatar.tsx+++ b/packages/base-ui/src/Components/Avatar/Avatar.tsx@@ -50,7 +50,18 @@ export interface BaseAvatarProps extends BaseComponentProps {* Avatar Component*/export function Avatar(props: BaseAvatarProps) {- const { children, style, title, alt, shape = 'circle', size = 'default', src, fit = 'fill', onError, onLoad } = props;+ const {+ children,+ style,+ title,+ alt,+ shape = 'circle',+ size = 'default',+ src,+ fit = 'fill',+ onError,+ onLoad,+ } = props;const sizeStyle =typeof size === 'number'diff --git a/packages/base-ui/src/Components/CanvasIcon/BorderLine/BorderDashDotDot.tsx b/packages/base-ui/src/Components/CanvasIcon/BorderLine/BorderDashDotDot.tsxindex dd5196315d..1b1e410e2f 100644--- a/packages/base-ui/src/Components/CanvasIcon/BorderLine/BorderDashDotDot.tsx+++ b/packages/base-ui/src/Components/CanvasIcon/BorderLine/BorderDashDotDot.tsx@@ -7,5 +7,7 @@ interface IProps {export function BorderDashDotDot(props: IProps) {const { width = '100', height = '10' } = props;- return <CanvasIcon width={width} height={height} type="DashDotDot" hv="h" mSt={0} mEd={5} lineSt={100} lineEd={5} />;+ return (+ <CanvasIcon width={width} height={height} type="DashDotDot" hv="h" mSt={0} mEd={5} lineSt={100} lineEd={5} />+ );}diff --git a/packages/base-ui/src/Components/CanvasIcon/BorderLine/BorderMediumDashDot.tsx b/packages/base-ui/src/Components/CanvasIcon/BorderLine/BorderMediumDashDot.tsxindex aabb182d64..081ec1d215 100644--- a/packages/base-ui/src/Components/CanvasIcon/BorderLine/BorderMediumDashDot.tsx+++ b/packages/base-ui/src/Components/CanvasIcon/BorderLine/BorderMediumDashDot.tsx@@ -7,5 +7,7 @@ interface IProps {export function BorderMediumDashDot(props: IProps) {const { width = '100', height = '10' } = props;- return <CanvasIcon width={width} height={height} type="MediumDashDot" hv="h" mSt={0} mEd={5} lineSt={100} lineEd={5} />;+ return (+ <CanvasIcon width={width} height={height} type="MediumDashDot" hv="h" mSt={0} mEd={5} lineSt={100} lineEd={5} />+ );}diff --git a/packages/base-ui/src/Components/CanvasIcon/BorderLine/BorderMediumDashDotDot.tsx b/packages/base-ui/src/Components/CanvasIcon/BorderLine/BorderMediumDashDotDot.tsxindex e7100261f3..c9a7ac4adc 100644--- a/packages/base-ui/src/Components/CanvasIcon/BorderLine/BorderMediumDashDotDot.tsx+++ b/packages/base-ui/src/Components/CanvasIcon/BorderLine/BorderMediumDashDotDot.tsx@@ -7,5 +7,16 @@ interface IProps {export function BorderMediumDashDotDot(props: IProps) {const { width = '100', height = '10' } = props;- return <CanvasIcon width={width} height={height} type="MediumDashDotDot" hv="h" mSt={0} mEd={5} lineSt={100} lineEd={5} />;+ return (+ <CanvasIcon+ width={width}+ height={height}+ type="MediumDashDotDot"+ hv="h"+ mSt={0}+ mEd={5}+ lineSt={100}+ lineEd={5}+ />+ );}diff --git a/packages/base-ui/src/Components/CanvasIcon/BorderLine/BorderMediumDashed.tsx b/packages/base-ui/src/Components/CanvasIcon/BorderLine/BorderMediumDashed.tsxindex bcf78e3c05..26964bd3a5 100644--- a/packages/base-ui/src/Components/CanvasIcon/BorderLine/BorderMediumDashed.tsx+++ b/packages/base-ui/src/Components/CanvasIcon/BorderLine/BorderMediumDashed.tsx@@ -7,5 +7,7 @@ interface IProps {export function BorderMediumDashed(props: IProps) {const { width = '100', height = '10' } = props;- return <CanvasIcon width={width} height={height} type="MediumDashed" hv="h" mSt={0} mEd={5} lineSt={100} lineEd={5} />;+ return (+ <CanvasIcon width={width} height={height} type="MediumDashed" hv="h" mSt={0} mEd={5} lineSt={100} lineEd={5} />+ );}diff --git a/packages/base-ui/src/Components/Checkbox/Checkbox.tsx b/packages/base-ui/src/Components/Checkbox/Checkbox.tsxindex c0b959687f..bdc8d59a8c 100644--- a/packages/base-ui/src/Components/Checkbox/Checkbox.tsx+++ b/packages/base-ui/src/Components/Checkbox/Checkbox.tsx@@ -67,7 +67,15 @@ export function Checkbox(props: BaseCheckboxProps) {<label className={styles.checkboxWrapper}><span className={classes}><span className={styles.checkboxInner} />- <input className={styles.checkboxInput} type="checkbox" name={name} checked={checked} disabled={disabled} value={value} onChange={handleChange} />+ <input+ className={styles.checkboxInput}+ type="checkbox"+ name={name}+ checked={checked}+ disabled={disabled}+ value={value}+ onChange={handleChange}+ /></span>{children && <span>{children}</span>}</label>diff --git a/packages/base-ui/src/Components/Checkbox/CheckboxGroup.tsx b/packages/base-ui/src/Components/Checkbox/CheckboxGroup.tsxindex 983cfc983a..ed1852b9e7 100644--- a/packages/base-ui/src/Components/Checkbox/CheckboxGroup.tsx+++ b/packages/base-ui/src/Components/Checkbox/CheckboxGroup.tsx@@ -71,7 +71,14 @@ export function CheckboxGroup(props: BaseCheckboxGroupProps) {return (<div className={styles.checkboxGroup} ref={ref}>{options.map((item) => (- <Checkbox key={item.name} name={item.name} disabled={item.disabled} checked={item.checked} onChange={handelChange} value={item.value}>+ <Checkbox+ key={item.name}+ name={item.name}+ disabled={item.disabled}+ checked={item.checked}+ onChange={handelChange}+ value={item.value}+ >{item.label}</Checkbox>))}diff --git a/packages/base-ui/src/Components/Collapse/Collapse.tsx b/packages/base-ui/src/Components/Collapse/Collapse.tsxindex 891f50ec1c..b37c91fdaa 100644--- a/packages/base-ui/src/Components/Collapse/Collapse.tsx+++ b/packages/base-ui/src/Components/Collapse/Collapse.tsx@@ -33,7 +33,11 @@ export function Collapse(props: BaseCollapseProps) {<div className={Style.panelWrapper}><div className={Style.panelHeader} onClick={handelClick}>{header}- <span className={`${Style.panelHeaderIcon} ${panelBodyClassName!.includes('active') ? Style.panelHeaderIconRotate : ''}`}>+ <span+ className={`${Style.panelHeaderIcon} ${+ panelBodyClassName!.includes('active') ? Style.panelHeaderIconRotate : ''+ }`}+ ><NextIcon /></span></div>diff --git a/packages/base-ui/src/Components/ColorPicker/ColorPickerPanel/ColorPickerPanel.tsx b/packages/base-ui/src/Components/ColorPicker/ColorPickerPanel/ColorPickerPanel.tsxindex 5a118b1a09..8a453586ac 100644--- a/packages/base-ui/src/Components/ColorPicker/ColorPickerPanel/ColorPickerPanel.tsx+++ b/packages/base-ui/src/Components/ColorPicker/ColorPickerPanel/ColorPickerPanel.tsx@@ -72,10 +72,18 @@ export function ColorPickerPanel(props: IProps) {return (<div className={styles.colorPickerPanel} onClick={(e) => e.stopPropagation()}>- <RgbaStringColorPicker className={styles.colorPicker} color={currentColor} onChange={debounce(setColor, 500)} />+ <RgbaStringColorPicker+ className={styles.colorPicker}+ color={currentColor}+ onChange={debounce(setColor, 500)}+ /><div className={styles.colorPickerPanelSetting}><div className={styles.panelInput}>- {rgb ? <RgbaColorInput color={currentColor} onChange={debounce(setColor, 500)} /> : <HexColorInput color={currentColor} onChange={debounce(setColor, 500)} />}+ {rgb ? (+ <RgbaColorInput color={currentColor} onChange={debounce(setColor, 500)} />+ ) : (+ <HexColorInput color={currentColor} onChange={debounce(setColor, 500)} />+ )}</div><div className={styles.panelColor}>diff --git a/packages/base-ui/src/Components/ColorPickerCircleButton/ColorPickerCircleButton.tsx b/packages/base-ui/src/Components/ColorPickerCircleButton/ColorPickerCircleButton.tsxindex af2c1f7518..e3be3437a3 100644--- a/packages/base-ui/src/Components/ColorPickerCircleButton/ColorPickerCircleButton.tsx+++ b/packages/base-ui/src/Components/ColorPickerCircleButton/ColorPickerCircleButton.tsx@@ -59,7 +59,13 @@ export interface BaseColorPickerCircleButtonProps {// }// }-export function ColorPickerCircleButton({ color, onClick, onCancel, style, colorPickerStyle }: BaseColorPickerCircleButtonProps) {+export function ColorPickerCircleButton({+ color,+ onClick,+ onCancel,+ style,+ colorPickerStyle,+}: BaseColorPickerCircleButtonProps) {const ref = useRef<HTMLDivElement>(null);const [currentColorPickerStyle, setCurrentColorPickerStyle] = useState(colorPickerStyle);/**@@ -78,7 +84,10 @@ export function ColorPickerCircleButton({ color, onClick, onCancel, style, colorref={ref}onClick={handleColorSelectButtonClick}>- <span className={`${Styles.colorSelectCircle} ${Styles.verticalMiddle}`} style={{ backgroundColor: color }}></span>+ <span+ className={`${Styles.colorSelectCircle} ${Styles.verticalMiddle}`}+ style={{ backgroundColor: color }}+ ></span><NextIcon className={Styles.verticalMiddle} /> {/* Replace with your NextIcon component */}{/* Replace ColorPicker with your actual ColorPicker component */}<ColorPicker color={color} onClick={onClick} onCancel={onCancel} style={currentColorPickerStyle} />diff --git a/packages/base-ui/src/Components/CustomLabel/CustomLabel.tsx b/packages/base-ui/src/Components/CustomLabel/CustomLabel.tsxindex b9abc765dd..424972b00e 100644--- a/packages/base-ui/src/Components/CustomLabel/CustomLabel.tsx+++ b/packages/base-ui/src/Components/CustomLabel/CustomLabel.tsx@@ -32,7 +32,9 @@ export interface INeoCustomLabelProps {* @param props* @returns*/-export function NeoCustomLabel(props: Pick<IMenuSelectorItem<unknown>, 'label' | 'icon' | 'display' | 'title'> & INeoCustomLabelProps): JSX.Element | null {+export function NeoCustomLabel(+ props: Pick<IMenuSelectorItem<unknown>, 'label' | 'icon' | 'display' | 'title'> & INeoCustomLabelProps+): JSX.Element | null {const context = useContext(AppContext);const { display, value, title, icon, label, onChange, selected } = props;@@ -73,7 +75,14 @@ export function NeoCustomLabel(props: Pick<IMenuSelectorItem<unknown>, 'label' |// eslint-disable-next-line @typescript-eslint/no-explicit-anyconst LabelComponent = icon ? (context.componentManager?.get(icon) as any) : null;- return <Item selected={selected} label={title} suffix={LabelComponent ? <LabelComponent /> : null} disabled={false}></Item>;+ return (+ <Item+ selected={selected}+ label={title}+ suffix={LabelComponent ? <LabelComponent /> : null}+ disabled={false}+ ></Item>+ );}/** @deprecated */diff --git a/packages/base-ui/src/Components/Icon/Data/index.tsx b/packages/base-ui/src/Components/Icon/Data/index.tsxindex 3bd5351011..ae4975252b 100644--- a/packages/base-ui/src/Components/Icon/Data/index.tsx+++ b/packages/base-ui/src/Components/Icon/Data/index.tsx@@ -2,7 +2,16 @@ import { BaseIconProps, Icon } from '../AddIcon';export const PivotableIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7578" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="7578"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M256 362.666667v298.666666l256 149.333334 256-149.333334v-298.666666L512 213.333333 256 362.666667zM725.333333 640l-213.333333 128-213.333333-128V384l213.333333-128 213.333333 128v256z m-189.354666 40.021333a18.645333 18.645333 0 0 1-18.645334 18.645334 18.304 18.304 0 0 1-18.688-18.645334V535.466667l-130.645333-75.349334a18.645333 18.645333 0 0 1 4.565333-34.133333 18.304 18.304 0 0 1 14.08 2.005333l130.688 74.666667 129.578667-74.666667a18.304 18.304 0 0 1 25.386667 6.698667 18.645333 18.645333 0 0 1-6.784 25.386667l-129.536 74.666666v145.237334z"p-id="7579"@@ -13,7 +22,16 @@ export const PivotableIcon = (props: BaseIconProps) => (export const SumIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7451" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="7451"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M774.058667 213.333333v42.666667H310.784l236.288 256-236.330667 256h463.317334v42.666667H213.333333l275.669334-298.666667L213.333333 213.333333z"p-id="7452"@@ -24,7 +42,16 @@ export const SumIcon = (props: BaseIconProps) => (export const OrderIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6675" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="6675"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M704 256a21.333333 21.333333 0 0 1 21.333333 21.333333v469.333334a21.333333 21.333333 0 1 1-42.666666 0v-469.333334c0-11.776 9.472-21.333333 21.333333-21.333333zM512 384c11.776 0 21.333333 7.68 21.333333 17.194667v221.610666c0 9.514667-9.472 17.194667-21.333333 17.194667-11.776 0-21.333333-7.68-21.333333-17.194667V401.194667c0-4.565333 2.218667-8.96 6.186666-12.16A24.32 24.32 0 0 1 512 384zM320 256a21.333333 21.333333 0 0 1 21.333333 21.333333v469.333334a21.333333 21.333333 0 1 1-42.666666 0v-469.333334c0-11.776 9.472-21.333333 21.333333-21.333333z m283.562667 368.896a21.333333 21.333333 0 0 1 30.165333 30.165333l-106.666667 106.666667a21.333333 21.333333 0 0 1-30.165333 0l-106.666667-106.666667a21.333333 21.333333 0 0 1 30.165334-30.165333L512 716.501333l91.605333-91.562666z m0.298666-225.834667a21.333333 21.333333 0 0 0 30.165334-30.165333l-106.666667-106.666667a21.333333 21.333333 0 0 0-30.165333 0l-106.666667 106.666667a21.333333 21.333333 0 0 0 30.165333 30.165333l91.562667-91.562666 91.605333 91.562666z"p-id="6676"@@ -35,7 +62,16 @@ export const OrderIcon = (props: BaseIconProps) => (export const OrderDESCIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6548" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="6548"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M430.848 666.197333H366.592V236.074667a6.656 6.656 0 0 0-6.741333-6.528h-47.36a6.656 6.656 0 0 0-6.741334 6.528v430.122666H241.493333c-5.674667 0-8.874667 6.314667-5.333333 10.538667l94.72 115.2a6.912 6.912 0 0 0 10.624 0l94.72-115.2c3.413333-4.224 0.298667-10.538667-5.376-10.538667zM582.442667 806.698667l20.992-61.098667h103.68l21.205333 61.098667h43.690667L672.64 533.333333h-34.688l-99.370667 273.365334h43.861334z m112.896-97.877334h-79.872l39.552-119.424h0.768l39.552 119.466667zM742.570667 486.698667v-39.168h-124.288l124.288-203.093334V213.333333h-169.685334v36.949334h119.04l-123.904 201.941333v34.474667z"p-id="6549"@@ -46,7 +82,16 @@ export const OrderDESCIcon = (props: BaseIconProps) => (export const OrderASCIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6294" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="6294"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M430.848 357.76H366.592v430.165333a6.656 6.656 0 0 1-6.741333 6.485334h-47.36a6.656 6.656 0 0 1-6.741334-6.485334V357.76H241.493333c-5.674667 0-8.874667-6.314667-5.333333-10.538667l94.72-115.2a6.912 6.912 0 0 1 10.624 0l94.72 115.2c3.413333 4.224 0.298667 10.538667-5.376 10.538667zM582.442667 486.698667l20.992-61.098667h103.68l21.205333 61.098667h43.690667L672.64 213.333333h-34.688l-99.370667 273.365334h43.861334z m112.896-97.877334h-79.872l39.552-119.424h0.768l39.552 119.466667zM742.570667 806.698667v-39.168h-124.288l124.288-203.093334V533.333333h-169.685334v36.949334h119.04l-123.904 201.941333v34.474667z"p-id="6295"@@ -57,7 +102,16 @@ export const OrderASCIcon = (props: BaseIconProps) => (export const FilterIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6802" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="6802"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M736 213.333333H328.533333C288 213.333333 256 245.333333 256 285.866667c0 17.066667 6.4 34.133333 17.066667 46.933333 0 2.133333 2.133333 2.133333 2.133333 4.266667l160 160v168.533333c0 6.4 2.133333 10.666667 6.4 14.933333l145.066667 123.733334c4.266667 2.133333 8.533333 4.266667 12.8 4.266666 6.4 0 10.666667-2.133333 14.933333-6.4 4.266667-4.266667 4.266667-10.666667 4.266667-14.933333V503.466667l170.666666-166.4 2.133334-2.133334c10.666667-12.8 17.066667-29.866667 17.066666-46.933333 0-42.666667-32-74.666667-72.533333-74.666667z m23.466667 93.866667s-2.133333 2.133333 0 0l-172.8 172.8c-4.266667 4.266667-6.4 8.533333-6.4 14.933333v251.733334l-104.533334-87.466667V490.666667c0-6.4-2.133333-10.666667-6.4-14.933334l-162.133333-166.4-2.133333-2.133333c-6.4-6.4-8.533333-12.8-8.533334-21.333333 0-17.066667 14.933333-32 32-32h407.466667c17.066667 0 32 14.933333 32 32 0 8.533333-4.266667 14.933333-8.533333 21.333333z"p-id="6803"@@ -68,7 +122,16 @@ export const FilterIcon = (props: BaseIconProps) => (export const FilterRankIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6929" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="6929"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M736 213.333333H328.533333C288 213.333333 256 245.333333 256 285.866667c0 17.066667 6.4 34.133333 17.066667 46.933333 0 2.133333 2.133333 2.133333 2.133333 4.266667l160 160v168.533333c0 6.4 2.133333 10.666667 6.4 14.933333l145.066667 123.733334c4.266667 2.133333 8.533333 4.266667 12.8 4.266666 6.4 0 10.666667-2.133333 14.933333-6.4 4.266667-4.266667 4.266667-10.666667 4.266667-14.933333V503.466667l170.666666-166.4 2.133334-2.133334c10.666667-12.8 17.066667-29.866667 17.066666-46.933333 0-42.666667-32-74.666667-72.533333-74.666667z m23.466667 93.866667s-2.133333 2.133333 0 0l-172.8 172.8c-4.266667 4.266667-6.4 8.533333-6.4 14.933333v251.733334l-104.533334-87.466667V490.666667c0-6.4-2.133333-10.666667-6.4-14.933334l-162.133333-166.4-2.133333-2.133333c-6.4-6.4-8.533333-12.8-8.533334-21.333333 0-17.066667 14.933333-32 32-32h407.466667c17.066667 0 32 14.933333 32 32 0 8.533333-4.266667 14.933333-8.533333 21.333333z"p-id="6930"@@ -83,7 +146,16 @@ export const FilterRankIcon = (props: BaseIconProps) => (export const CleanIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7193" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="7193"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M214.016 722.432h593.92v42.410667H214.016v-42.410667z m578.048-312.106667l-180.693333-181.077333A53.376 53.376 0 0 0 573.738667 213.333333a45.653333 45.653333 0 0 0-32.64 13.226667l-313.941334 314.965333c-18.56 18.602667-17.322667 50.261333 2.688 70.4l68.010667 68.096h298.24l198.698667-199.338666c18.56-18.602667 17.322667-50.261333-2.730667-70.357334z m-213.546667 227.242667H315.434667L259.84 581.888c-3.968-4.010667-4.053333-9.088-2.730667-10.453333L430.08 398.08l193.92 193.92-45.44 45.568z"p-id="7194"@@ -94,7 +166,16 @@ export const CleanIcon = (props: BaseIconProps) => (export const CheckIcon = (props: BaseIconProps) => (<Icon spin={props.spin} className={props.className} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5912" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5912"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M764.330667 592.170667l30.165333 30.165333L734.165333 682.666667l60.330667 60.330666-30.165333 30.165334-60.330667-60.330667-60.330667 60.330667-30.165333-30.165334L673.834667 682.666667l-60.330667-60.330667 30.165333-30.165333 60.330667 60.330666 60.330667-60.330666zM725.333333 512v42.666667H256v128h256v42.666666H213.333333v-213.333333h512z m47.829334-209.664l30.165333 30.165333L682.666667 453.12l-30.165334 30.165333-90.496-90.453333 30.165334-30.208 60.330666 60.330667 120.661334-120.661334zM725.333333 256v42.666667H256v128h256v42.666666H213.333333V256h512z"p-id="5913"diff --git a/packages/base-ui/src/Components/Icon/Delete/index.tsx b/packages/base-ui/src/Components/Icon/Delete/index.tsxindex a8a4b2a39e..435fd51ae4 100644--- a/packages/base-ui/src/Components/Icon/Delete/index.tsx+++ b/packages/base-ui/src/Components/Icon/Delete/index.tsx@@ -2,7 +2,15 @@ import { BaseIconProps, Icon } from '../AddIcon';export const DeleteIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="logo" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1214" width="1em" height="1em">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="1214"+ width="1em"+ height="1em"+ ><pathd="M840 288H688v-56c0-40-32-72-72-72h-208C368 160 336 192 336 232V288h-152c-12.8 0-24 11.2-24 24s11.2 24 24 24h656c12.8 0 24-11.2 24-24s-11.2-24-24-24zM384 288v-56c0-12.8 11.2-24 24-24h208c12.8 0 24 11.2 24 24V288H384zM758.4 384c-12.8 0-24 11.2-24 24v363.2c0 24-19.2 44.8-44.8 44.8H332.8c-24 0-44.8-19.2-44.8-44.8V408c0-12.8-11.2-24-24-24s-24 11.2-24 24v363.2c0 51.2 41.6 92.8 92.8 92.8h358.4c51.2 0 92.8-41.6 92.8-92.8V408c-1.6-12.8-12.8-24-25.6-24z"p-id="1215"diff --git a/packages/base-ui/src/Components/Icon/Font/index.tsx b/packages/base-ui/src/Components/Icon/Font/index.tsxindex 761c23cec6..9d9bcff557 100644--- a/packages/base-ui/src/Components/Icon/Font/index.tsx+++ b/packages/base-ui/src/Components/Icon/Font/index.tsx@@ -2,7 +2,16 @@ import { BaseIconProps, Icon } from '../AddIcon';export const BoldIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5565" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5565"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M298.666667 213.333333h224a174.208 174.208 0 0 1 141.952 275.242667A174.208 174.208 0 0 1 572.458667 810.666667H298.666667V213.333333z m273.792 348.458667l-174.250667-0.042667v149.333334h174.250667a74.666667 74.666667 0 0 0 6.101333-149.077334l-6.101333-0.213333zM398.208 312.874667v149.333333h124.458667a74.666667 74.666667 0 0 0 6.144-149.077333l-6.144-0.256H398.208z"p-id="5566"@@ -13,7 +22,16 @@ export const BoldIcon = (props: BaseIconProps) => (export const ItalicIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5692" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5692"+ width="1em"+ height="1em"+ fill="currentColor"+ ><path d="M469.333333 256h170.666667v42.666667h-170.666667z" p-id="5693"></path><path d="M573.738667 284.586667l-81.493334 462.208-41.984-7.381334 81.493334-462.208z" p-id="5694"></path><path d="M384 725.333333h170.666667v42.666667H384z" p-id="5695"></path>@@ -23,20 +41,41 @@ export const ItalicIcon = (props: BaseIconProps) => (export const DeleteLineIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5311" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5311"+ width="1em"+ height="1em"+ fill="currentColor"+ ><path d="M298.666667 256h426.666666v42.666667H298.666667z" p-id="5312"></path><pathd="M533.290667 554.666667l0.042666 192h-42.666666l-0.042667-192h42.666667z m0.042666-277.333334l-0.042666 234.666667h-42.666667l0.042667-234.666667h42.666666zM320 256v85.333333h-42.666667V256zM746.666667 256v85.333333h-42.666667V256z"p-id="5313"></path>- <path d="M256 469.333333h512v42.666667H256zM426.666667 725.333333h170.666666v42.666667h-170.666666z" p-id="5314"></path>+ <path+ d="M256 469.333333h512v42.666667H256zM426.666667 725.333333h170.666666v42.666667h-170.666666z"+ p-id="5314"+ ></path></svg></Icon>);export const UnderLineIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5318" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5318"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M362.666667 256v298.666667a149.333333 149.333333 0 0 0 298.453333 8.192L661.333333 554.666667V256h42.666667v298.666667a192 192 0 0 1-383.786667 9.045333L320 554.666667V256h42.666667z"p-id="5319"@@ -59,7 +98,16 @@ export const UnderLineIcon = (props: BaseIconProps) => (export const TextColorIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5440" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5440"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M549.546667 256l194.133333 533.333333h-45.354667l-77.653333-213.333333H421.632l-77.653333 213.333333H298.666667L492.757333 256h56.789334z m-28.416 46.634667L437.162667 533.333333h167.978666l-84.010666-230.698666z"p-id="5441"diff --git a/packages/base-ui/src/Components/Icon/Format/index.tsx b/packages/base-ui/src/Components/Icon/Format/index.tsxindex 6eac083d47..1a8f50e3e9 100644--- a/packages/base-ui/src/Components/Icon/Format/index.tsx+++ b/packages/base-ui/src/Components/Icon/Format/index.tsx@@ -2,7 +2,16 @@ import { BaseIconProps, Icon } from '../AddIcon';export const BackIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} className={props.className} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5692" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5692"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M737.664 419.328H426.666667v42.666667h311.296l-84.48 84.437333a21.333333 21.333333 0 0 0 30.208 30.165333l120.746666-120.704a21.290667 21.290667 0 0 0 0-30.165333l-120.746666-120.661333a21.333333 21.333333 0 0 0-30.165334 30.165333l84.138667 84.096zM213.333333 632.661333a213.333333 213.333333 0 0 1 213.333334-213.333333v42.666667a170.666667 170.666667 0 0 0-170.666667 170.666666H213.333333z m0 0h42.666667v64a21.333333 21.333333 0 0 1-42.666667 0v-64z"p-id="5693"@@ -13,7 +22,16 @@ export const BackIcon = (props: BaseIconProps) => (export const ForwardIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} className={props.className} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5565" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5565"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M287.018667 419.328h310.997333v42.666667H286.72l84.48 84.437333a21.333333 21.333333 0 1 1-30.208 30.165333l-120.746667-120.704a21.248 21.248 0 0 1 0-30.165333l120.746667-120.661333a21.333333 21.333333 0 0 1 30.165333 30.165333L287.018667 419.328z m524.330666 213.333333a213.333333 213.333333 0 0 0-213.333333-213.333333v42.666667a170.666667 170.666667 0 0 1 170.666667 170.666666h42.666666z m0 0h-42.666666v64a21.333333 21.333333 0 1 0 42.666666 0v-64z"p-id="5566"@@ -24,7 +42,16 @@ export const ForwardIcon = (props: BaseIconProps) => (export const FormatIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5955" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5955"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M725.333333 213.333333v85.333334h85.333334v234.666666h-298.666667V597.333333h21.333333v213.333334h-85.333333v-213.333334h21.333333v-106.666666h298.666667V341.333333h-42.666667v85.333334H213.333333V213.333333h512z m-42.666666 42.666667H256v128h426.666667V256z"p-id="5956"@@ -35,7 +62,16 @@ export const FormatIcon = (props: BaseIconProps) => (export const NextIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} className={props.className} name="nextIcon" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5311" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5311"+ width="1em"+ height="1em"+ fill="currentColor"+ ><path d="M512 682.666667L170.666667 341.333333h682.666666z" p-id="5312"></path></svg></Icon>@@ -43,7 +79,16 @@ export const NextIcon = (props: BaseIconProps) => (export const RightIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} className={props.className} name="rightIcon" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5311" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5311"+ width="1em"+ height="1em"+ fill="currentColor"+ ><path d="M682.666667 512l-341.333334 341.333333V170.666667z" p-id="5312"></path></svg></Icon>@@ -51,16 +96,37 @@ export const RightIcon = (props: BaseIconProps) => (export const CorrectIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} className={props.className} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5311" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5311"+ width="1em"+ height="1em"+ fill="currentColor"+ ><path d="M268.032 523.434667l60.373333-60.330667 211.2 211.2-60.373333 60.330667z" p-id="5312"></path>- <path d="M780.928 312.234667l60.373333 60.330666-331.904 331.861334-60.330666-60.330667z" p-id="5313"></path>+ <path+ d="M780.928 312.234667l60.373333 60.330666-331.904 331.861334-60.330666-60.330667z"+ p-id="5313"+ ></path></svg></Icon>);export const LtIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} className={props.className} name="foward" style={props.style}>- <svg width="1em" height="1em" fill="currentColor" className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1732">+ <svg+ width="1em"+ height="1em"+ fill="currentColor"+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="1732"+ ><path d="M224.45 538.68l575.11-346.21-0.05-68.75-575.03 345.61-0.03 69.35z" p-id="1733"></path><path d="M224.45 538.68l575.08 356.96v-69.52L224.48 469.33l-0.03 69.35z" p-id="1734"></path></svg>@@ -69,7 +135,16 @@ export const LtIcon = (props: BaseIconProps) => (export const CloseIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} className={props.className} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5318" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5318"+ width="1em"+ height="1em"+ fill="currentColor"+ ><path d="M330.965333 270.634667l422.4 422.4-60.330666 60.330666-422.4-422.4z" p-id="5319"></path><path d="M753.365333 330.965333l-422.4 422.4-60.330666-60.330666 422.4-422.4z" p-id="5320"></path></svg>@@ -78,7 +153,16 @@ export const CloseIcon = (props: BaseIconProps) => (export const MenuIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} className={props.className} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5446" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5446"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M213.333333 469.333333h597.333334v85.333334H213.333333zM213.333333 213.333333h597.333334v85.333334H213.333333zM213.333333 725.333333h597.333334v85.333334H213.333333z"p-id="5447"@@ -89,7 +173,16 @@ export const MenuIcon = (props: BaseIconProps) => (export const HideIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} className={props.className} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6513" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="6513"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M512 219.428571c161.645714 0 307.931429 97.499429 438.857143 292.571429-130.925714 195.072-277.211429 292.571429-438.857143 292.571429S204.068571 707.072 73.142857 512c130.925714-195.072 277.211429-292.571429 438.857143-292.571429z m0 73.142858c-124.123429 0-241.225143 65.462857-365.714286 219.428571 119.661714 147.968 231.424 213.577143 365.714286 219.428571 124.196571 0 241.298286-65.462857 365.714286-219.428571-119.588571-147.968-231.350857-213.577143-365.714286-219.428571z"p-id="6514"diff --git a/packages/base-ui/src/Components/Icon/Icon.stories.tsx b/packages/base-ui/src/Components/Icon/Icon.stories.tsxindex 9ac10923d0..67f062358c 100644--- a/packages/base-ui/src/Components/Icon/Icon.stories.tsx+++ b/packages/base-ui/src/Components/Icon/Icon.stories.tsx@@ -12,7 +12,16 @@ const meta: Meta<typeof Icon> = {args: {children: (<>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5374" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5374"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M590.848 567.04l-265.386667-306.645333a28.245333 28.245333 0 0 1 3.2-40.149334 29.141333 29.141333 0 0 1 40.789334 3.242667l267.946666 309.674667a124.885333 124.885333 0 0 1 144.213334 34.474666 125.141333 125.141333 0 0 1-16.042667 176.256 125.141333 125.141333 0 0 1-176.341333-14.805333 125.013333 125.013333 0 0 1 1.621333-162.048z m40.149333 18.133333c-18.602667 15.701333-29.312 38.826667-29.312 63.189334 0 45.909333 37.461333 83.157333 83.754667 83.157333a83.413333 83.413333 0 0 0 83.712-83.157333 83.413333 83.413333 0 0 0-83.712-83.114667c-15.189333 0-29.44 4.010667-41.685333 11.008a28.458667 28.458667 0 0 1-12.757334 8.96v-0.042667z m-150.698666-52.565333l-38.229334 44.16a29.653333 29.653333 0 0 1-0.768 0.810667 124.885333 124.885333 0 0 1-6.528 151.509333 125.141333 125.141333 0 0 1-176.341333 14.805333C205.226667 699.306667 198.101333 620.373333 242.346667 567.637333a124.928 124.928 0 0 1 156.416-28.544l38.528-44.501333c9.514667 17.237333 24.746667 30.634667 43.008 37.973333z m105.6-122.026667a85.632 85.632 0 0 0-43.818667-37.12l129.749333-150.016a29.141333 29.141333 0 0 1 40.789334-3.242666 28.245333 28.245333 0 0 1 3.2 40.149333l-129.92 150.186667z m-300.8 301.44c35.413333 29.738667 88.064 25.301333 117.546666-9.813333a83.413333 83.413333 0 0 0-10.666666-117.546667 83.456 83.456 0 0 0-117.589334 9.856 83.456 83.456 0 0 0 10.709334 117.504z"p-id="5375"diff --git a/packages/base-ui/src/Components/Icon/Insert/index.tsx b/packages/base-ui/src/Components/Icon/Insert/index.tsxindex 225f8bf0e0..189a5be82a 100644--- a/packages/base-ui/src/Components/Icon/Insert/index.tsx+++ b/packages/base-ui/src/Components/Icon/Insert/index.tsx@@ -2,7 +2,16 @@ import { BaseIconProps, Icon } from '../AddIcon';export const PhotoIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8090" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="8090"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M810.666667 213.333333v597.333334H213.333333V213.333333h597.333334z m-42.666667 263.381334l-233.984 190.890666-118.613333-98.218666L256 704.64V768h512v-291.285333zM768 256H256v392.704l159.146667-134.954667 119.04 98.602667L768 421.674667V256zM384 341.333333a42.666667 42.666667 0 1 1 0 85.333334 42.666667 42.666667 0 0 1 0-85.333334z"p-id="8091"@@ -13,7 +22,16 @@ export const PhotoIcon = (props: BaseIconProps) => (export const LinkIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7962" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="7962"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M771.584 251.733333c-49.066667-51.2-132.266667-51.2-181.333333 0l-74.666667 76.8c-8.533333 8.533333-8.533333 23.466667 0 32 8.533333 8.533333 21.333333 8.533333 29.866667 0l74.666666-76.8c34.133333-34.133333 87.466667-34.133333 121.6 0 34.133333 34.133333 34.133333 89.6 0 123.733334l-121.6 123.733333c-34.133333 34.133333-87.466667 34.133333-121.6 0-8.533333-8.533333-21.333333-8.533333-29.866666 0-8.533333 8.533333-8.533333 23.466667 0 32 49.066667 51.2 132.266667 51.2 181.333333 0l121.6-123.733333c51.2-53.333333 51.2-136.533333 0-187.733334z"p-id="7963"@@ -28,7 +46,16 @@ export const LinkIcon = (props: BaseIconProps) => (export const ChartIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7833" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="7833"+ width="1em"+ height="1em"+ fill="currentColor"+ ><path d="M256 213.333333H213.333333v597.333334h597.333334v-42.666667H256z" p-id="7834"></path><pathd="M490.666667 343.466667V554.666667h185.6c-19.2 72.533333-85.333333 128-164.266667 128-93.866667 0-170.666667-76.8-170.666667-170.666667 0-87.466667 66.133333-157.866667 149.333334-168.533333M512 298.666667c-117.333333 0-213.333333 96-213.333333 213.333333s96 213.333333 213.333333 213.333333 213.333333-96 213.333333-213.333333h-192V298.666667H512z"diff --git a/packages/base-ui/src/Components/Icon/Logo/index.tsx b/packages/base-ui/src/Components/Icon/Logo/index.tsxindex 593b0d8533..b41754b06d 100644--- a/packages/base-ui/src/Components/Icon/Logo/index.tsx+++ b/packages/base-ui/src/Components/Icon/Logo/index.tsx@@ -2,7 +2,14 @@ import { BaseIconProps, Icon } from '../AddIcon';export const LogoIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="logo" style={props.style}>- <svg className="icon" viewBox="0 0 4864 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8477" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 4864 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="8477"+ fill="currentColor"+ ><pathd="M1023.168 131.36c0 234.4-190.016 424.416-424.416 424.416 0-234.4 190.016-424.416 424.416-424.416zM131.36 1023.168c0-234.4 190.016-424.416 424.416-424.416 0 234.4-190.016 424.416-424.416 424.416zM929.696 929.696c-182.784 0-330.944-148.16-330.944-330.944 182.752 0 330.944 148.16 330.944 330.944z"fill="#2D7FF9"diff --git a/packages/base-ui/src/Components/Icon/Math/index.tsx b/packages/base-ui/src/Components/Icon/Math/index.tsxindex 9214eee4ac..6625285f54 100644--- a/packages/base-ui/src/Components/Icon/Math/index.tsx+++ b/packages/base-ui/src/Components/Icon/Math/index.tsx@@ -2,8 +2,20 @@ import { BaseIconProps, Icon } from '../AddIcon';export const AddNumIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6466" width="1em" height="1em" fill="currentColor">- <path d="M533.333333 789.333333m-42.666666 0a42.666667 42.666667 0 1 0 85.333333 0 42.666667 42.666667 0 1 0-85.333333 0Z" p-id="6467"></path>+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="6466"+ width="1em"+ height="1em"+ fill="currentColor"+ >+ <path+ d="M533.333333 789.333333m-42.666666 0a42.666667 42.666667 0 1 0 85.333333 0 42.666667 42.666667 0 1 0-85.333333 0Z"+ p-id="6467"+ ></path><pathd="M682.666667 554.666667a85.333333 85.333333 0 0 0-85.333334 85.333333v85.333333a85.333333 85.333333 0 1 0 170.666667 0V640a85.333333 85.333333 0 0 0-85.333333-85.333333z m0 42.666666a42.666667 42.666667 0 0 1 42.666666 42.666667v85.333333a42.666667 42.666667 0 1 1-85.333333 0V640a42.666667 42.666667 0 0 1 42.666667-42.666667z"p-id="6468"@@ -16,16 +28,34 @@ export const AddNumIcon = (props: BaseIconProps) => (d="M490.666667 213.333333a85.333333 85.333333 0 0 0-85.333334 85.333334v85.333333a85.333333 85.333333 0 1 0 170.666667 0V298.666667a85.333333 85.333333 0 0 0-85.333333-85.333334z m0 42.666667a42.666667 42.666667 0 0 1 42.666666 42.666667v85.333333a42.666667 42.666667 0 1 1-85.333333 0V298.666667a42.666667 42.666667 0 0 1 42.666667-42.666667zM682.666667 213.333333a85.333333 85.333333 0 0 0-85.333334 85.333334v85.333333a85.333333 85.333333 0 1 0 170.666667 0V298.666667a85.333333 85.333333 0 0 0-85.333333-85.333334z m0 42.666667a42.666667 42.666667 0 0 1 42.666666 42.666667v85.333333a42.666667 42.666667 0 0 1-85.333333 0V298.666667a42.666667 42.666667 0 0 1 42.666667-42.666667z"p-id="6470"></path>- <path d="M341.333333 448m-42.666666 0a42.666667 42.666667 0 1 0 85.333333 0 42.666667 42.666667 0 1 0-85.333333 0Z" p-id="6471"></path>+ <path+ d="M341.333333 448m-42.666666 0a42.666667 42.666667 0 1 0 85.333333 0 42.666667 42.666667 0 1 0-85.333333 0Z"+ p-id="6471"+ ></path></svg></Icon>);export const ReduceNumIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6336" width="1em" height="1em" fill="currentColor">- <path d="M533.333333 448m-42.666666 0a42.666667 42.666667 0 1 0 85.333333 0 42.666667 42.666667 0 1 0-85.333333 0Z" p-id="6337"></path>- <path d="M341.333333 789.333333m-42.666666 0a42.666667 42.666667 0 1 0 85.333333 0 42.666667 42.666667 0 1 0-85.333333 0Z" p-id="6338"></path>+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="6336"+ width="1em"+ height="1em"+ fill="currentColor"+ >+ <path+ d="M533.333333 448m-42.666666 0a42.666667 42.666667 0 1 0 85.333333 0 42.666667 42.666667 0 1 0-85.333333 0Z"+ p-id="6337"+ ></path>+ <path+ d="M341.333333 789.333333m-42.666666 0a42.666667 42.666667 0 1 0 85.333333 0 42.666667 42.666667 0 1 0-85.333333 0Z"+ p-id="6338"+ ></path><pathd="M346.496 394.368L256 303.786667 346.496 213.333333l30.165333 30.165334-37.717333 37.802666h119.424v42.666667H336.469333l40.192 40.234667-30.165333 30.165333z"p-id="6339"@@ -40,7 +70,16 @@ export const ReduceNumIcon = (props: BaseIconProps) => (export const PercentIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6209" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="6209"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M653.525333 213.333333l36.949334 21.333334-320 554.24-36.949334-21.333334L653.525333 213.333333zM682.666667 469.333333c71.68 0 128 67.626667 128 149.333334S754.346667 768 682.666667 768s-128-67.626667-128-149.333333 56.32-149.333333 128-149.333334z m0 42.666667c-46.165333 0-85.333333 46.976-85.333334 106.666667s39.168 106.666667 85.333334 106.666666c46.165333 0 85.333333-46.976 85.333333-106.666666s-39.168-106.666667-85.333333-106.666667zM341.333333 234.666667c71.68 0 128 67.626667 128 149.333333s-56.32 149.333333-128 149.333333S213.333333 465.706667 213.333333 384s56.32-149.333333 128-149.333333z m0 42.666666C295.168 277.333333 256 324.309333 256 384s39.168 106.666667 85.333333 106.666667c46.165333 0 85.333333-46.976 85.333334-106.666667s-39.168-106.666667-85.333334-106.666667z"p-id="6210"@@ -51,7 +90,16 @@ export const PercentIcon = (props: BaseIconProps) => (export const MoneyIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6082" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="6082"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M658.816 256l34.986667 24.490667-124.629334 177.92h119.04v42.666666h-149.333333v85.333334h149.333333v42.666666h-149.333333v128h-42.666667v-128h-149.333333v-42.666666h149.333333v-85.333334h-149.333333v-42.666666h119.04L341.333333 280.490667 376.32 256l141.226667 201.728L658.816 256z"p-id="6083"@@ -62,7 +110,16 @@ export const MoneyIcon = (props: BaseIconProps) => (export const FxIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5446" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5446"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M771.072 391.253333a6.698667 6.698667 0 0 0-0.512-9.514666 6.997333 6.997333 0 0 0-4.48-1.749334h-61.354667c-1.962667 0-3.84 0.853333-5.12 2.346667l-103.893333 122.709333a6.698667 6.698667 0 0 1-11.392-1.621333l-53.674667-119.381333a6.656 6.656 0 0 0-6.144-4.010667H381.866667l0.853333-3.968 6.741333-35.712c8.874667-46.933333 32.085333-68.864 72.533334-68.864 15.658667 0 29.994667 1.450667 41.258666 4.010667l11.861334-56.490667a197.888 197.888 0 0 0-46.464-5.12c-87.296 0-132.224 37.418667-148.650667 124.458667l-7.978667 41.813333H229.632a6.698667 6.698667 0 0 0-6.613333 5.376l-9.130667 43.818667a6.826667 6.826667 0 0 0 6.570667 8.106666h79.786666l-75.264 363.52a6.826667 6.826667 0 0 0 6.570667 8.234667H287.573333c3.242667 0 5.973333-2.346667 6.570667-5.418667l75.861333-366.165333h114.773334l57.685333 117.546667a6.570667 6.570667 0 0 1-1.024 7.381333l-152.746667 171.690667a6.826667 6.826667 0 0 0 5.12 11.264h61.44c2.005333 0 3.882667-0.853333 5.162667-2.389334l104.576-123.989333a6.826667 6.826667 0 0 1 11.392 1.493333l55.594667 120.661334a6.741333 6.741333 0 0 0 6.186666 3.968h54.613334a6.784 6.784 0 0 0 6.101333-9.770667L618.325333 567.466667a6.698667 6.698667 0 0 1 1.066667-7.466667l151.722667-168.661333-0.042667-0.042667z"p-id="5447"@@ -73,7 +130,16 @@ export const FxIcon = (props: BaseIconProps) => (export const AddIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5318" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5318"+ width="1em"+ height="1em"+ fill="currentColor"+ ><path d="M213.333333 469.333333h597.333334v85.333334H213.333333z" p-id="5319"></path><path d="M554.666667 213.333333v597.333334h-85.333334V213.333333z" p-id="5320"></path></svg>@@ -82,7 +148,16 @@ export const AddIcon = (props: BaseIconProps) => (export const ReduceIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5318" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5318"+ width="1em"+ height="1em"+ fill="currentColor"+ ><path d="M213.333333 469.333333h597.333334v85.333334H213.333333z" p-id="5319"></path></svg></Icon>diff --git a/packages/base-ui/src/Components/Icon/Other/index.tsx b/packages/base-ui/src/Components/Icon/Other/index.tsxindex b0ba8c0f81..6ee7cf7476 100644--- a/packages/base-ui/src/Components/Icon/Other/index.tsx+++ b/packages/base-ui/src/Components/Icon/Other/index.tsx@@ -2,17 +2,48 @@ import { BaseIconProps, Icon } from '../AddIcon';export const Close = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="logo" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4224" width="1em" height="1em" fill="currentColor">- <path d="M119.808 180.053333l60.330667-60.245333 724.053333 724.053333-60.330667 60.330667z" p-id="4225"></path>- <path d="M843.946667 119.808l60.245333 60.330667-724.053333 724.053333-60.330667-60.330667z" p-id="4226"></path>+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="4224"+ width="1em"+ height="1em"+ fill="currentColor"+ >+ <path+ d="M119.808 180.053333l60.330667-60.245333 724.053333 724.053333-60.330667 60.330667z"+ p-id="4225"+ ></path>+ <path+ d="M843.946667 119.808l60.245333 60.330667-724.053333 724.053333-60.330667-60.330667z"+ p-id="4226"+ ></path></svg></Icon>);export const DropDownIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="dropdown" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4519" width="1em" height="1em">- <path d="M149.930667 444.330667l60.330666-60.330667 362.069334 362.069333L512 806.4z" fill="#B5B8BD" p-id="4520"></path>- <path d="M813.738667 384l60.330666 60.330667L512 806.4l-60.330667-60.330667z" fill="#B5B8BD" p-id="4521"></path>+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="4519"+ width="1em"+ height="1em"+ >+ <path+ d="M149.930667 444.330667l60.330666-60.330667 362.069334 362.069333L512 806.4z"+ fill="#B5B8BD"+ p-id="4520"+ ></path>+ <path+ d="M813.738667 384l60.330666 60.330667L512 806.4l-60.330667-60.330667z"+ fill="#B5B8BD"+ p-id="4521"+ ></path></svg></Icon>);diff --git a/packages/base-ui/src/Components/Icon/Sheet/index.tsx b/packages/base-ui/src/Components/Icon/Sheet/index.tsxindex 7a7fef8f36..d5c5f0cae4 100644--- a/packages/base-ui/src/Components/Icon/Sheet/index.tsx+++ b/packages/base-ui/src/Components/Icon/Sheet/index.tsx@@ -2,8 +2,20 @@ import { BaseIconProps, Icon } from '../AddIcon';export const CommentIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7705" width="1em" height="1em" fill="currentColor">- <path d="M352 490.666667a32 32 0 1 0 64 0 32 32 0 0 0-64 0z m128 0a32 32 0 1 0 64 0 32 32 0 0 0-64 0z m128 0a32 32 0 1 0 64 0 32 32 0 0 0-64 0z" p-id="7706"></path>+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="7705"+ width="1em"+ height="1em"+ fill="currentColor"+ >+ <path+ d="M352 490.666667a32 32 0 1 0 64 0 32 32 0 0 0-64 0z m128 0a32 32 0 1 0 64 0 32 32 0 0 0-64 0z m128 0a32 32 0 1 0 64 0 32 32 0 0 0-64 0z"+ p-id="7706"+ ></path><pathd="M768 298.666667H256c-23.466667 0-42.666667 19.2-42.666667 42.666666v298.666667c0 23.466667 19.2 42.666667 42.666667 42.666667h106.666667v128l128-128H768c23.466667 0 42.666667-19.2 42.666667-42.666667V341.333333c0-23.466667-19.2-42.666667-42.666667-42.666666z m0 320c0 12.8-8.533333 21.333333-21.333333 21.333333H469.333333l-64 64V640h-128c-12.8 0-21.333333-8.533333-21.333333-21.333333v-256c0-12.8 8.533333-21.333333 21.333333-21.333334h469.333334c12.8 0 21.333333 8.533333 21.333333 21.333334v256z"p-id="7707"@@ -14,7 +26,15 @@ export const CommentIcon = (props: BaseIconProps) => (export const FreezeIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5448" width="1em" height="1em">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5448"+ width="1em"+ height="1em"+ ><path d="M256.426667 256.426667h255.317333v553.130666H256.426667z" fill="#B5B8BD" p-id="5449"></path><pathd="M809.557333 213.930667v595.626666H213.930667V213.930667h595.626666z m-42.538666 42.538666H256.426667v510.549334h510.549333V256.426667z"@@ -34,7 +54,16 @@ export const FreezeIcon = (props: BaseIconProps) => (export const conditionalFormatIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6039" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="6039"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M810.666667 213.333333v597.333334H213.333333V213.333333h597.333334z m-42.666667 320h-106.666667V768H768v-234.666667z m-405.376 0h-106.666667V768h106.666667v-234.666667z m256.042667 86.784L445.482667 768H618.666667v-147.882667z m0-162.346666l-213.376 179.968v108.885333l213.376-179.072v-109.781333z m0-163.669334l-213.333334 179.029334v108.885333l213.333334-179.072V294.101333zM768 256h-103.936l-2.730667 2.304V490.666667H768V256zM362.666667 256H256v234.666667h106.666667V256z m235.008 0H405.333333v161.408L597.674667 256z"p-id="6040"@@ -45,7 +74,16 @@ export const conditionalFormatIcon = (props: BaseIconProps) => (export const DivideIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5501" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5501"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M544.896 389.717333h110.762667v46.933334c6.698667 6.613333 15.658667 6.613333 22.357333 0l84.949333-55.125334c6.698667-4.437333 6.698667-13.226667 0-19.84l-84.906666-57.386666c-6.741333-6.613333-15.701333-6.613333-22.4 0v41.258666h-133.12l-89.429334 154.453334H343.722667v0.128h-22.698667c-11.178667 0-22.357333 11.050667-22.357333 22.058666 0 11.050667 11.178667 22.058667 22.357333 22.058667h134.101333l-0.085333-0.128h0.426667l89.386666-154.453333h0.042667z m133.12 198.954667a15.061333 15.061333 0 0 0-22.314667 0v43.690667h-66.133333l-67.029333-110.293334-22.357334 44.117334s62.592 103.68 67.072 110.293333h88.448V721.066667a15.061333 15.061333 0 0 0 22.314667 0l84.949333-55.168c6.698667-4.437333 6.698667-13.226667 0-19.84l-84.906666-57.386667h-0.042667z"p-id="5502"@@ -56,7 +94,16 @@ export const DivideIcon = (props: BaseIconProps) => (export const ReplaceIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4859" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="4859"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M768 430.933333H280.405333l-4.394666-0.554666c-5.461333-0.853333-6.570667-1.749333-12.885334-6.528l-2.986666-5.376c-6.4-11.946667-5.376-13.738667 2.986666-28.885334L440.618667 213.333333l34.218666 34.048-136.362666 135.424H768v48.170667z m-7.594667 163.242667L585.472 768l-34.261333-34.048 136.362666-135.424H258.048v-48.170667h484.096c10.453333 0 19.882667 6.272 23.893333 15.872a25.6 25.6 0 0 1-5.632 27.989334z"p-id="4860"@@ -67,7 +114,16 @@ export const ReplaceIcon = (props: BaseIconProps) => (export const SearchIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4732" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="4732"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M664.832 634.624l128.554667 128.597333a21.333333 21.333333 0 1 1-30.165334 30.165334l-128.597333-128.597334a256 256 0 1 1 30.165333-30.165333zM469.333333 682.666667a213.333333 213.333333 0 1 0 0-426.666667 213.333333 213.333333 0 0 0 0 426.666667z"p-id="4733"@@ -78,7 +134,16 @@ export const SearchIcon = (props: BaseIconProps) => (export const LockIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4605" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="4605"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M810.666667 213.333333v597.333334H213.333333V213.333333h597.333334zM341.333333 383.872H256V768h85.333333V383.872z m426.666667 0H383.872V768H768V383.872z m-149.333333 21.461333a64 64 0 0 1 63.701333 57.856L682.666667 469.333333v64h42.666666v213.333334h-298.666666v-213.333334h42.666666V469.333333a64 64 0 0 1 57.856-63.701333L533.333333 405.333333h85.333334z m64 170.666667h-213.333334v128h213.333334v-128z m-106.666667 21.333333a21.333333 21.333333 0 0 1 21.333333 21.333334v42.666666a21.333333 21.333333 0 1 1-42.666666 0v-42.666666a21.333333 21.333333 0 0 1 21.333333-21.333334z m42.666667-149.333333h-85.333334a21.333333 21.333333 0 0 0-20.992 17.493333L512 469.333333v64h128V469.333333a21.333333 21.333333 0 0 0-13.909333-20.010666l-3.584-0.981334-3.84-0.341333zM768 256H383.872v85.290667L768 341.333333V256zM341.333333 256H256v85.333333l85.333333-0.042666V256z"p-id="4606"@@ -89,7 +154,16 @@ export const LockIcon = (props: BaseIconProps) => (export const LocationIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5579" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5579"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M618.666667 723.584V661.333333a21.333333 21.333333 0 1 1 42.666666 0v62.250667a128.128 128.128 0 0 0 104.917334-104.917333H704a21.333333 21.333333 0 1 1 0-42.666667h62.250667a128.128 128.128 0 0 0-104.917334-104.874667V533.333333a21.333333 21.333333 0 1 1-42.666666 0v-62.208a128.085333 128.085333 0 0 0-104.874667 104.874667H576a21.333333 21.333333 0 0 1 0 42.666667h-62.208a128.128 128.128 0 0 0 104.874667 104.917333z m149.333333-296.96a213.12 213.12 0 0 0-42.666667-24.874667V277.333333a21.333333 21.333333 0 0 0-21.333333-21.333333h-426.666667a21.333333 21.333333 0 0 0-21.333333 21.333333v341.333334a21.333333 21.333333 0 0 0 21.333333 21.333333h153.6c2.986667 14.848 7.594667 29.098667 13.482667 42.666667H256a42.666667 42.666667 0 0 1-42.666667-42.666667V256a42.666667 42.666667 0 0 1 42.666667-42.666667h469.333333a42.666667 42.666667 0 0 1 42.666667 42.666667v170.666667zM640 768a170.666667 170.666667 0 1 1 0-341.333333 170.666667 170.666667 0 0 1 0 341.333333z"p-id="5580"@@ -100,8 +174,19 @@ export const LocationIcon = (props: BaseIconProps) => (export const PageIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5318" width="1em" height="1em">- <path d="M810.666667 213.333333v597.333334H213.333333V213.333333h597.333334z m-42.666667 42.666667H256v512h512V256z" p-id="5319"></path>+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5318"+ width="1em"+ height="1em"+ >+ <path+ d="M810.666667 213.333333v597.333334H213.333333V213.333333h597.333334z m-42.666667 42.666667H256v512h512V256z"+ p-id="5319"+ ></path><path d="M256 512h256v42.666667H256zM554.666667 256v298.666667h-42.666667V256z" p-id="5320"></path><path d="M405.333333 256v298.666667h-42.666666V256z" p-id="5321"></path></svg>@@ -110,20 +195,41 @@ export const PageIcon = (props: BaseIconProps) => (export const RegularIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5447" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5447"+ width="1em"+ height="1em"+ fill="currentColor"+ ><path d="M256 256h554.666667v42.666667H256z" p-id="5448"></path><pathd="M298.666667 256v554.666667H256V256zM810.666667 256v554.666667h-42.666667V256zM469.333333 256v554.666667h-42.666666V256zM640 256v554.666667h-42.666667V256z"p-id="5449"></path>- <path d="M256 426.666667h554.666667v42.666666H256zM256 597.333333h554.666667v42.666667H256zM256 768h554.666667v42.666667H256z" p-id="5450"></path>+ <path+ d="M256 426.666667h554.666667v42.666666H256zM256 597.333333h554.666667v42.666667H256zM256 768h554.666667v42.666667H256z"+ p-id="5450"+ ></path></svg></Icon>);export const LayoutIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5576" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5576"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M810.666667 213.333333v42.666667h-170.709334L640 768h170.666667v42.666667h-213.333334V213.333333h213.333334z m-384 0l-0.042667 554.666667H426.666667v42.666667H213.333333v-42.666667h170.624L384 256H213.333333V213.333333h213.333334z m106.666666 512v85.333334h-42.666666v-85.333334h42.666666z m0-170.666666v85.333333h-42.666666v-85.333333h42.666666z m0-170.666667v85.333333h-42.666666V384h42.666666z m0-170.666667v85.333334h-42.666666V213.333333h42.666666z"p-id="5577"@@ -134,7 +240,16 @@ export const LayoutIcon = (props: BaseIconProps) => (export const TableIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6094" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="6094"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M913.988 173.68H110.05c-25.671 0-46.676 21.007-46.676 46.679v665.897c0 25.651 20.987 46.638 46.637 46.638H913.95c25.671 0 46.676-21.004 46.676-46.676V220.32c0-25.651-20.988-46.64-46.638-46.64zM339.796 896.142c0 12.016-9.34 21.353-21.305 21.353H104.864c-11.965 0-21.303-9.337-21.303-21.353V768.023c0-12.014 9.338-21.353 21.303-21.353h213.627c11.965 0 21.305 9.34 21.305 21.353v128.118z m0-224.995c0 12.015-9.34 21.353-21.305 21.353H104.864c-11.965 0-21.303-9.338-21.303-21.353V543.029c0-12.013 9.338-21.354 21.303-21.354h213.627c11.965 0 21.305 9.34 21.305 21.354v128.117z m0-223.432c0 12.016-9.34 21.353-21.305 21.353H104.864c-11.965 0-21.303-9.337-21.303-21.353V319.596c0-12.013 9.338-21.353 21.303-21.353h213.627c11.965 0 21.305 9.34 21.305 21.353v128.118zM639.269 896.14c0 12.016-9.34 21.353-21.306 21.353H404.337c-11.966 0-21.305-9.337-21.305-21.353V768.023c0-12.014 9.34-21.353 21.305-21.353h213.626c11.966 0 21.306 9.34 21.306 21.353v128.118z m0-224.995c0 12.015-9.34 21.353-21.306 21.353H404.337c-11.966 0-21.305-9.338-21.305-21.353V543.029c0-12.013 9.34-21.354 21.305-21.354h213.626c11.966 0 21.306 9.34 21.306 21.354v128.117z m0-223.432c0 12.016-9.34 21.353-21.306 21.353H404.337c-11.966 0-21.305-9.337-21.305-21.353V319.596c0-12.013 9.34-21.353 21.305-21.353h213.626c11.966 0 21.306 9.34 21.306 21.353v128.118zM941.864 896.14c0 12.016-9.34 21.353-21.304 21.353H706.933c-11.966 0-21.304-9.337-21.304-21.353V768.023c0-12.014 9.338-21.353 21.304-21.353h213.626c11.966 0 21.304 9.34 21.304 21.353v128.118z m0-224.995c0 12.015-9.34 21.353-21.304 21.353H706.933c-11.966 0-21.304-9.338-21.304-21.353V543.029c0-12.013 9.338-21.354 21.304-21.354h213.626c11.966 0 21.304 9.34 21.304 21.354v128.117z m0-223.432c0 12.016-9.34 21.353-21.304 21.353H706.933c-11.966 0-21.304-9.337-21.304-21.353V319.596c0-12.013 9.338-21.353 21.304-21.353h213.626c11.966 0 21.304 9.34 21.304 21.353v128.118z"p-id="6095"diff --git a/packages/base-ui/src/Components/Icon/Text/index.tsx b/packages/base-ui/src/Components/Icon/Text/index.tsxindex d5104cb097..d8c5e6881a 100644--- a/packages/base-ui/src/Components/Icon/Text/index.tsx+++ b/packages/base-ui/src/Components/Icon/Text/index.tsx@@ -2,7 +2,16 @@ import { BaseIconProps, Icon } from '../AddIcon';export const LeftAlignIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7250" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="7250"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M234.666667 298.666667h554.666666a21.333333 21.333333 0 1 1 0 42.666666h-554.666666a21.333333 21.333333 0 1 1 0-42.666666z m0 128h341.333333a21.333333 21.333333 0 0 1 0 42.666666h-341.333333a21.333333 21.333333 0 0 1 0-42.666666z m0 128h554.666666a21.333333 21.333333 0 1 1 0 42.666666h-554.666666a21.333333 21.333333 0 0 1 0-42.666666z m0 128h341.333333a21.333333 21.333333 0 0 1 0 42.666666h-341.333333a21.333333 21.333333 0 0 1 0-42.666666z"p-id="7251"@@ -13,7 +22,16 @@ export const LeftAlignIcon = (props: BaseIconProps) => (export const CenterAlignIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7377" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="7377"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M234.666667 298.666667h554.666666a21.333333 21.333333 0 1 1 0 42.666666h-554.666666a21.333333 21.333333 0 1 1 0-42.666666zM341.333333 426.666667h341.333334a21.333333 21.333333 0 1 1 0 42.666666H341.333333a21.333333 21.333333 0 0 1 0-42.666666z m-106.666666 128h554.666666a21.333333 21.333333 0 1 1 0 42.666666h-554.666666a21.333333 21.333333 0 0 1 0-42.666666zM341.333333 682.666667h341.333334a21.333333 21.333333 0 1 1 0 42.666666H341.333333a21.333333 21.333333 0 0 1 0-42.666666z"p-id="7378"@@ -24,7 +42,16 @@ export const CenterAlignIcon = (props: BaseIconProps) => (export const RightAlignIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7504" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="7504"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M234.666667 298.666667h554.666666a21.333333 21.333333 0 1 1 0 42.666666h-554.666666a21.333333 21.333333 0 1 1 0-42.666666z m213.333333 128h341.333333a21.333333 21.333333 0 1 1 0 42.666666h-341.333333a21.333333 21.333333 0 0 1 0-42.666666z m-213.333333 128h554.666666a21.333333 21.333333 0 1 1 0 42.666666h-554.666666a21.333333 21.333333 0 0 1 0-42.666666z m213.333333 128h341.333333a21.333333 21.333333 0 1 1 0 42.666666h-341.333333a21.333333 21.333333 0 0 1 0-42.666666z"p-id="7505"@@ -35,7 +62,16 @@ export const RightAlignIcon = (props: BaseIconProps) => (export const TopVerticalIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7631" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="7631"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M298.666667 384h426.666666v42.666667H298.666667zM416 527.829333l90.496-90.496 90.538667 90.496-30.165334 30.165334-37.802666-37.717334v290.090667h-42.666667v-292.565333l-40.234667 40.192-30.165333-30.165334z"p-id="7632"@@ -46,7 +82,16 @@ export const TopVerticalIcon = (props: BaseIconProps) => (export const CenterVerticalIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7758" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="7758"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M725.333333 533.333333H298.666667v-42.666666h426.666666zM426.666667 634.496l90.496-90.496 90.538666 90.496-30.165333 30.165333-39.936-39.850666v121.557333h-42.666667v-119.765333l-38.101333 38.058666-30.165333-30.165333zM426.666667 389.162667l90.496 90.538666 90.538666-90.538666-30.165333-30.165334-39.936 39.893334V277.333333h-42.666667v119.765334l-38.101333-38.101334-30.165333 30.165334z"p-id="7759"@@ -57,7 +102,16 @@ export const CenterVerticalIcon = (props: BaseIconProps) => (export const BottomVerticalIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7885" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="7885"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M725.333333 725.333333H298.666667v-42.666666h426.666666zM608 581.504l-90.496 90.496-90.538667-90.496 30.165334-30.165333 37.802666 37.717333V298.965333h42.666667v292.565334l40.234667-40.192 30.165333 30.165333z"p-id="7886"@@ -68,7 +122,16 @@ export const BottomVerticalIcon = (props: BaseIconProps) => (export const TextRotateIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8217" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="8217"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M549.546667 213.333333l77.653333 213.333334h0.64l-0.042667 1.621333 53.76 147.712h-45.354666l-38.826667-106.666667h-152.405333l-38.826667 106.666667H360.789333l53.674667-147.498667 0.042667-1.834666h0.64l77.610666-213.333334h56.789334z m-28.416 46.634667L460.458667 426.666667h121.386666l-60.714666-166.698667zM709.162667 618.666667l90.538666 90.496-90.538666 90.538666-30.165334-30.165333 37.76-37.802667H256v-42.666666h463.232l-40.234667-40.234667 30.165334-30.165333z"p-id="8218"@@ -78,7 +141,16 @@ export const TextRotateIcon = (props: BaseIconProps) => ();export const TextRotateAngleUpIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4524" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="4524"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M290.944 289.365333l205.738667 95.914667 0.469333-0.426667 1.109333 1.152 142.506667 66.432-32.128 32.085334-102.826667-47.957334-107.818666 107.733334 48 102.912-32.085334 32.042666-66.346666-142.250666-1.28-1.28 0.469333-0.512-96-205.696 40.192-40.149334z m12.885333 53.034667l74.965334 160.810667 85.845333-85.845334L303.786667 342.4zM690.432 463.104h128v128h-42.666667v-53.418667l-325.845333 325.802667-30.165333-30.165333 327.552-327.552h-56.874667v-42.666667z"fill="#444D5A"@@ -89,7 +161,16 @@ export const TextRotateAngleUpIcon = (props: BaseIconProps) => ();export const TextRotateAngleDownIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4659" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="4659"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M755.968 312.277333l-95.914667 205.738667 0.426667 0.469333-1.152 1.109334-66.432 142.506666-32.085333-32.128 47.957333-102.826666-107.733333-107.818667-102.912 48-32.042667-32.085333 142.250667-66.346667 1.28-1.28 0.512 0.469333 205.696-96 40.149333 40.192z m-53.034667 12.885334l-160.810666 74.965333 85.845333 85.845333 74.965333-160.810666zM582.229333 711.765333v128h-128v-42.666666h53.418667l-325.802667-325.845334 30.165334-30.165333 327.552 327.552v-56.874667h42.666666z"fill="#444D5A"@@ -100,7 +181,16 @@ export const TextRotateAngleDownIcon = (props: BaseIconProps) => ();export const TextRotateVerticalIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4794" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="4794"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M636.757333 298.666667l77.653334 213.333333h0.64l-0.042667 1.621333 53.76 147.712h-45.354667l-38.826666-106.666666h-152.405334l-38.826666 106.666666H448l53.674667-147.498666 0.042666-1.834667h0.64l77.610667-213.333333h56.789333z m-28.416 46.634666L547.669333 512h121.386667l-60.714667-166.698667zM394.368 698.496L303.786667 789.034667 213.333333 698.453333l30.165334-30.165333 37.802666 37.76V245.333333h42.666667v463.232l40.234667-40.234666 30.165333 30.165333z"fill="#444D5A"@@ -111,7 +201,16 @@ export const TextRotateVerticalIcon = (props: BaseIconProps) => ();export const TextRotateRotationUpIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4929" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="4929"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M192 495.786667l213.333333-77.653334v-0.64l1.621334 0.042667L554.666667 363.776v45.354667l-106.666667 38.826666v152.405334l106.666667 38.826666v45.354667l-147.498667-53.674667-1.834667-0.042666v-0.64l-213.333333-77.610667V495.786667z m46.634667 28.416L405.333333 584.874667v-121.386667l-166.698666 60.714667zM597.333333 336.170667l90.496-90.538667 90.538667 90.538667-30.165333 30.165333-37.802667-37.76V789.333333h-42.666667V326.101333l-40.234666 40.234667L597.333333 336.170667z"fill="#444D5A"@@ -122,7 +221,16 @@ export const TextRotateRotationUpIcon = (props: BaseIconProps) => ();export const TextRotateRotationDownIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5199" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5199"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M789.333333 528.213333l-213.333333 77.653334v0.64l-1.621333-0.042667L426.666667 660.224v-45.354667l106.666666-38.826666V423.637333l-106.666666-38.826666V339.456l147.498666 53.674667 1.834667 0.042666v0.64l213.333333 77.610667v56.789333z m-46.634666-28.416L576 439.125333v121.386667l166.698667-60.714667zM384 687.829333l-90.496 90.538667-90.538667-90.538667 30.165334-30.165333 37.802666 37.76V234.666667h42.666667v463.232l40.234667-40.234667 30.165333 30.165333z"fill="#444D5A"@@ -134,7 +242,16 @@ export const TextRotateRotationDownIcon = (props: BaseIconProps) => (export const BrIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8736" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="8736"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M213.333333 213.333333h85.12v597.333334H213.333333V213.333333z m225.450667 477.44l25.557333-21.333333-72.362666-63.786667 72.362666-63.872-25.557333-21.248-93.610667 80.853334h4.266667-4.266667l93.610667 89.386666z"p-id="8737"@@ -150,21 +267,45 @@ export const BrIcon = (props: BaseIconProps) => (export const OverflowIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8608" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="8608"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M300.288 810.666667H213.333333V213.333333h86.954667v279.978667h441.898667l-91.306667-85.845333 26.624-26.112L810.666667 512l-133.162667 130.688-26.624-26.154667 91.306667-85.845333-441.898667-0.042667z"p-id="8609"></path>- <path d="M530.688 213.333333h42.666667v242.688h-42.666667V213.333333z m0 354.688h42.666667V810.666667h-42.666667v-242.688z" p-id="8610"></path>+ <path+ d="M530.688 213.333333h42.666667v242.688h-42.666667V213.333333z m0 354.688h42.666667V810.666667h-42.666667v-242.688z"+ p-id="8610"+ ></path></svg></Icon>);export const CutIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8865" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="8865"+ width="1em"+ height="1em"+ fill="currentColor"+ ><path d="M767.829333 213.333333h42.496v597.333334h-42.496z" p-id="8866"></path>- <path d="M767.146667 553.216h-384v-42.496h384v42.496zM213.333333 213.333333h84.992v597.333334H213.333333V213.333333z" p-id="8867"></path>+ <path+ d="M767.146667 553.216h-384v-42.496h384v42.496zM213.333333 213.333333h84.992v597.333334H213.333333V213.333333z"+ p-id="8867"+ ></path></svg></Icon>);diff --git a/packages/base-ui/src/Components/Icon/View/index.tsx b/packages/base-ui/src/Components/Icon/View/index.tsxindex b4dedb3717..c2356f6233 100644--- a/packages/base-ui/src/Components/Icon/View/index.tsx+++ b/packages/base-ui/src/Components/Icon/View/index.tsx@@ -2,7 +2,16 @@ import { BaseIconProps, Icon } from '../AddIcon';export const PrintIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4476" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="4476"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M743.125333 341.333333c35.669333 0 64.384 28.885333 67.285334 65.024l0.256 6.101334V682.666667h-149.76v-42.666667H768V412.458667c0-14.592-9.514667-26.154667-21.333333-28.16L743.168 384H280.874667c-12.16 0-22.784 10.24-24.576 24.149333l-0.298667 4.266667V640h127.36v42.666667H213.333333V412.458667c0-36.906667 26.794667-67.712 61.653334-70.826667L280.874667 341.333333h462.250666z"p-id="4477"@@ -18,7 +27,16 @@ export const PrintIcon = (props: BaseIconProps) => (export const ScreenshotIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5374" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5374"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M590.848 567.04l-265.386667-306.645333a28.245333 28.245333 0 0 1 3.2-40.149334 29.141333 29.141333 0 0 1 40.789334 3.242667l267.946666 309.674667a124.885333 124.885333 0 0 1 144.213334 34.474666 125.141333 125.141333 0 0 1-16.042667 176.256 125.141333 125.141333 0 0 1-176.341333-14.805333 125.013333 125.013333 0 0 1 1.621333-162.048z m40.149333 18.133333c-18.602667 15.701333-29.312 38.826667-29.312 63.189334 0 45.909333 37.461333 83.157333 83.754667 83.157333a83.413333 83.413333 0 0 0 83.712-83.157333 83.413333 83.413333 0 0 0-83.712-83.114667c-15.189333 0-29.44 4.010667-41.685333 11.008a28.458667 28.458667 0 0 1-12.757334 8.96v-0.042667z m-150.698666-52.565333l-38.229334 44.16a29.653333 29.653333 0 0 1-0.768 0.810667 124.885333 124.885333 0 0 1-6.528 151.509333 125.141333 125.141333 0 0 1-176.341333 14.805333C205.226667 699.306667 198.101333 620.373333 242.346667 567.637333a124.928 124.928 0 0 1 156.416-28.544l38.528-44.501333c9.514667 17.237333 24.746667 30.634667 43.008 37.973333z m105.6-122.026667a85.632 85.632 0 0 0-43.818667-37.12l129.749333-150.016a29.141333 29.141333 0 0 1 40.789334-3.242666 28.245333 28.245333 0 0 1 3.2 40.149333l-129.92 150.186667z m-300.8 301.44c35.413333 29.738667 88.064 25.301333 117.546666-9.813333a83.413333 83.413333 0 0 0-10.666666-117.546667 83.456 83.456 0 0 0-117.589334 9.856 83.456 83.456 0 0 0 10.709334 117.504z"p-id="5375"@@ -29,7 +47,16 @@ export const ScreenshotIcon = (props: BaseIconProps) => (export const PrintAreaIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5706" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5706"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M727.04 706.218667a11.946667 11.946667 0 0 1 8.704 3.754666 13.312 13.312 0 0 1 3.626667 9.130667V810.666667H583.253333v-91.52c0-3.413333 1.28-6.741333 3.626667-9.173334a11.946667 11.946667 0 0 1 8.661333-3.754666zM362.666667 725.333333v42.666667h-128v-42.666667h128z m128 0v42.666667h-42.666667v-42.666667h42.666667z m301.696-143.957333a18.773333 18.773333 0 0 1 18.304 19.2v117.205333c0 10.581333-8.277333 19.2-18.346667 19.2h-28.458667v-11.434666c-0.128-21.333333-16.554667-38.570667-36.778666-38.570667h-131.498667c-20.224 0-36.693333 17.237333-36.778667 38.570667v11.477333h-28.458666a18.858667 18.858667 0 0 1-18.346667-19.2v-117.248c0-10.581333 8.277333-19.2 18.346667-19.2zM256 533.333333v128H213.333333v-128h42.666667z m411.477333 85.845334H567.04a12.586667 12.586667 0 0 0-12.245333 12.8c0.042667 7.125333 5.546667 12.885333 12.245333 12.842666h100.394667a12.586667 12.586667 0 0 0 12.202666-12.8c0-7.082667-5.504-12.8-12.202666-12.8zM723.072 512a14.506667 14.506667 0 0 1 14.165333 14.805333v35.84H585.386667v-35.84a14.506667 14.506667 0 0 1 14.165333-14.805333zM768 362.666667v128h-42.666667v-128h42.666667z m-512-42.666667v128H213.333333v-128h42.666667zM768 213.333333v64h-42.666667V256h-64V213.333333H768zM362.666667 213.333333v42.666667H256v21.333333H213.333333V213.333333h149.333334z m213.333333 0v42.666667h-128V213.333333h128z"p-id="5707"@@ -40,19 +67,41 @@ export const PrintAreaIcon = (props: BaseIconProps) => (export const PrintTitleIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5833" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5833"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M727.04 706.218667a11.946667 11.946667 0 0 1 8.704 3.754666 13.312 13.312 0 0 1 3.626667 9.130667V810.666667H583.253333v-91.52c0-3.413333 1.28-6.741333 3.626667-9.173334a11.946667 11.946667 0 0 1 8.661333-3.754666zM768 213.333333v277.333334h-42.666667V256H256v469.333333h234.666667v42.666667H213.333333V213.333333h554.666667z m24.362667 368.042667a18.773333 18.773333 0 0 1 18.304 19.2v117.205333c0 10.581333-8.277333 19.2-18.346667 19.2h-28.458667v-11.434666c-0.128-21.333333-16.554667-38.570667-36.778666-38.570667h-131.498667c-20.224 0-36.693333 17.237333-36.778667 38.570667v11.477333h-28.458666a18.858667 18.858667 0 0 1-18.346667-19.2v-117.248c0-10.581333 8.277333-19.2 18.346667-19.2z m-124.885334 37.802667H567.04a12.586667 12.586667 0 0 0-12.245333 12.8c0.042667 7.125333 5.546667 12.885333 12.245333 12.842666h100.394667a12.586667 12.586667 0 0 0 12.202666-12.8c0-7.082667-5.504-12.8-12.202666-12.8zM723.072 512a14.506667 14.506667 0 0 1 14.165333 14.805333v35.84H585.386667v-35.84a14.506667 14.506667 0 0 1 14.165333-14.805333z"p-id="5834"></path>- <path d="M341.333333 341.333333h298.666667v42.666667H341.333333zM341.333333 426.666667h170.666667v42.666666H341.333333z" fill="#444D5A" p-id="5835"></path>+ <path+ d="M341.333333 341.333333h298.666667v42.666667H341.333333zM341.333333 426.666667h170.666667v42.666666H341.333333z"+ fill="#444D5A"+ p-id="5835"+ ></path></svg></Icon>);export const ImageIcon = (props: BaseIconProps) => (<Icon spin={props.spin} rotate={props.rotate} name="foward" style={props.style}>- <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5815" width="1em" height="1em" fill="currentColor">+ <svg+ className="icon"+ viewBox="0 0 1024 1024"+ version="1.1"+ xmlns="http://www.w3.org/2000/svg"+ p-id="5815"+ width="1em"+ height="1em"+ fill="currentColor"+ ><pathd="M810.666667 213.333333v597.333334H213.333333V213.333333h597.333334z m-42.666667 263.381334l-233.984 190.890666-118.613333-98.218666L256 704.64V768h512v-291.285333zM768 256H256v392.704l159.146667-134.954667 119.04 98.602667L768 421.674667V256zM384 341.333333a42.666667 42.666667 0 1 1 0 85.333334 42.666667 42.666667 0 0 1 0-85.333334z"fill="#444D5A"diff --git a/packages/base-ui/src/Components/Input/Input.tsx b/packages/base-ui/src/Components/Input/Input.tsxindex 06db08f7dd..275e4d5a46 100644--- a/packages/base-ui/src/Components/Input/Input.tsx+++ b/packages/base-ui/src/Components/Input/Input.tsx@@ -10,7 +10,18 @@ export interface BaseInputProps extends BaseComponentProps {* The type of input* @default 'text'*/- type?: 'text' | 'button' | 'checkbox' | 'file' | 'hidden' | 'image' | 'password' | 'radio' | 'reset' | 'submit' | 'number';+ type?:+ | 'text'+ | 'button'+ | 'checkbox'+ | 'file'+ | 'hidden'+ | 'image'+ | 'password'+ | 'radio'+ | 'reset'+ | 'submit'+ | 'number';/*** The input content valuediff --git a/packages/base-ui/src/Components/Item/Item.tsx b/packages/base-ui/src/Components/Item/Item.tsxindex 3b9aa502fd..8b18c04a16 100644--- a/packages/base-ui/src/Components/Item/Item.tsx+++ b/packages/base-ui/src/Components/Item/Item.tsx@@ -49,7 +49,11 @@ export interface BaseItemProps extends BaseMenuItem {export function Item({ selected, label, suffix, disabled, className, style, onClick }: BaseItemProps) {return (- <div className={`${styles.selectItem} ${disabled ? styles.selectDisabledItem : ''} ${className || ''}`} style={style} onClick={onClick}>+ <div+ className={`${styles.selectItem} ${disabled ? styles.selectDisabledItem : ''} ${className || ''}`}+ style={style}+ onClick={onClick}+ >{selected && (<span className={styles.selectItemSelected}><Icon.CorrectIcon />diff --git a/packages/base-ui/src/Components/Modal/Modal.tsx b/packages/base-ui/src/Components/Modal/Modal.tsxindex 0cebb0ab33..b370924e56 100644--- a/packages/base-ui/src/Components/Modal/Modal.tsx+++ b/packages/base-ui/src/Components/Modal/Modal.tsx@@ -130,7 +130,20 @@ export interface ModalProps extends BaseModalProps {}export function Modal(props: BaseModalProps) {- const { title, width = 500, top = 0, style, children, className = '', group = [], isDrag = false, mask = true, footer = true, onCancel, visible: propsVisible } = props;+ const {+ title,+ width = 500,+ top = 0,+ style,+ children,+ className = '',+ group = [],+ isDrag = false,+ mask = true,+ footer = true,+ onCancel,+ visible: propsVisible,+ } = props;const [visible, setVisible] = useState<boolean>(propsVisible || false);diff --git a/packages/base-ui/src/Components/Radio/RadioGroup.stories.tsx b/packages/base-ui/src/Components/Radio/RadioGroup.stories.tsxindex 665c21ccec..d6bd0d6d5b 100644--- a/packages/base-ui/src/Components/Radio/RadioGroup.stories.tsx+++ b/packages/base-ui/src/Components/Radio/RadioGroup.stories.tsx@@ -10,7 +10,10 @@ const meta: Meta<typeof RadioGroup> = {},tags: ['autodocs'],args: {- children: [<Radio value="test" label="test"></Radio>, <Radio value="test1" label="test1" style={{ marginLeft: '10px' }}></Radio>],+ children: [+ <Radio value="test" label="test"></Radio>,+ <Radio value="test1" label="test1" style={{ marginLeft: '10px' }}></Radio>,+ ],},};diff --git a/packages/base-ui/src/Components/Select/Select.tsx b/packages/base-ui/src/Components/Select/Select.tsxindex 4178701e41..ea8ef656c6 100644--- a/packages/base-ui/src/Components/Select/Select.tsx+++ b/packages/base-ui/src/Components/Select/Select.tsx@@ -611,7 +611,12 @@ export function Select(props: BaseSelectProps) {return (<div className={`${styles.selectInput} ${className}`}><Dropdown onMainClick={onMainClick} tooltip={tooltip} menu={{ menu, onClick }}>- <Input onPressEnter={(e) => handlePressEnter(e)} onBlur={onPressEnter} type="number" value={`${props.label as number}` ?? (content as string)} />+ <Input+ onPressEnter={(e) => handlePressEnter(e)}+ onBlur={onPressEnter}+ type="number"+ value={`${props.label as number}` ?? (content as string)}+ /></Dropdown></div>);@@ -671,7 +676,12 @@ export function Select(props: BaseSelectProps) {};const iconToDisplay = options?.find((o) => o.value === value)?.icon ?? icon;- const displayInSubMenu = display === DisplayTypes.ICON ? DisplayTypes.LABEL : display === DisplayTypes.INPUT ? DisplayTypes.LABEL : display;+ const displayInSubMenu =+ display === DisplayTypes.ICON+ ? DisplayTypes.LABEL+ : display === DisplayTypes.INPUT+ ? DisplayTypes.LABEL+ : display;return (<div className={`${styles.selectDouble}`}>@@ -689,7 +699,13 @@ export function Select(props: BaseSelectProps) {icon={<NextIcon />}><div className={styles.selectLabel}>- <NeoCustomLabel icon={iconToDisplay} display={display} title={title!} value={value} onChange={(v) => onClick?.(v)} />+ <NeoCustomLabel+ icon={iconToDisplay}+ display={display}+ title={title!}+ value={value}+ onChange={(v) => onClick?.(v)}+ /></div></Dropdown></div>diff --git a/packages/base-ui/src/Components/Slot/Slot.tsx b/packages/base-ui/src/Components/Slot/Slot.tsxindex e0355a8187..03136d8b46 100644--- a/packages/base-ui/src/Components/Slot/Slot.tsx+++ b/packages/base-ui/src/Components/Slot/Slot.tsx@@ -109,7 +109,13 @@ export function Slot(props: IProps) {slotGroup.forEach((item, index) => {const Label = context?.componentManager?.get(item.component.name) as React.ComponentType<any>;if (Label) {- arr.push(<Label key={index} ref={(ref: any) => (_refs.current[index as any] = ref)} {...item.component.props} />);+ arr.push(+ <Label+ key={index}+ ref={(ref: any) => (_refs.current[index as any] = ref)}+ {...item.component.props}+ />+ );}});return arr;diff --git a/packages/base-ui/src/controllers/shared-shortcut.controller.ts b/packages/base-ui/src/controllers/shared-shortcut.controller.tsindex 2e2a47504e..70ff3bd93d 100644--- a/packages/base-ui/src/controllers/shared-shortcut.controller.ts+++ b/packages/base-ui/src/controllers/shared-shortcut.controller.ts@@ -19,7 +19,10 @@ export const RedoShortcutItem: IShortcutItem = {* Define shared UI behavior across Univer business.*/export class SharedController extends Disposable {- constructor(@IShortcutService private readonly _shortcutService: IShortcutService, @ICommandService private readonly _commandService: ICommandService) {+ constructor(+ @IShortcutService private readonly _shortcutService: IShortcutService,+ @ICommandService private readonly _commandService: ICommandService+ ) {super();}@@ -29,7 +32,9 @@ export class SharedController extends Disposable {}private _registerCommands(): void {- [CutCommand, CopyCommand, PasteCommand].forEach((command) => this.disposeWithMe(this._commandService.registerAsMultipleCommand(command)));+ [CutCommand, CopyCommand, PasteCommand].forEach((command) =>+ this.disposeWithMe(this._commandService.registerAsMultipleCommand(command))+ );}private _registerShortcuts(): void {diff --git a/packages/base-ui/src/views/components/toolbar/data-bar.tsx b/packages/base-ui/src/views/components/toolbar/data-bar.tsxindex 4f000c29ce..0c6a0945bb 100644--- a/packages/base-ui/src/views/components/toolbar/data-bar.tsx+++ b/packages/base-ui/src/views/components/toolbar/data-bar.tsx@@ -15,7 +15,11 @@ export const DataBar = (props: BarProps) => {return (<div style={{ display: 'flex' }}>{list.map((item, index) => (- <div key={index} onClick={() => handleClick(item, index)} style={{ width: '28px', height: '26px', background, backgroundPosition: `${item.x} ${item.y}` }}></div>+ <div+ key={index}+ onClick={() => handleClick(item, index)}+ style={{ width: '28px', height: '26px', background, backgroundPosition: `${item.x} ${item.y}` }}+ ></div>))}</div>);diff --git a/packages/base-ui/src/views/components/toolbar/toolbar-item.tsx b/packages/base-ui/src/views/components/toolbar/toolbar-item.tsxindex 30510bf54d..511714cdb6 100644--- a/packages/base-ui/src/views/components/toolbar/toolbar-item.tsx+++ b/packages/base-ui/src/views/components/toolbar/toolbar-item.tsx@@ -7,7 +7,14 @@ import { Button } from '../../../Components/Button/Button';import { CustomLabel } from '../../../Components/CustomLabel/CustomLabel';import { Select } from '../../../Components/Select/Select';import { Tooltip } from '../../../Components/Tooltip/Tooltip';-import { IDisplayMenuItem, IMenuButtonItem, IMenuItem, IMenuSelectorItem, IValueOption, MenuItemType } from '../../../services/menu/menu';+import {+ IDisplayMenuItem,+ IMenuButtonItem,+ IMenuItem,+ IMenuSelectorItem,+ IValueOption,+ MenuItemType,+} from '../../../services/menu/menu';import styles from './index.module.less';export interface IToolbarItemStatus {@@ -108,7 +115,13 @@ export class ToolbarItem extends Component<IDisplayMenuItem<IMenuItem>, IToolbarreturn (<Tooltip title={this.getTooltip()} placement="bottom">- <Button active={activated} className={styles.textButton} type="text" disabled={disabled} onClick={() => commandService.executeCommand(props.id)}>+ <Button+ active={activated}+ className={styles.textButton}+ type="text"+ disabled={disabled}+ onClick={() => commandService.executeCommand(props.id)}+ ><CustomLabel label={icon ? { name: icon } : title} /></Button></Tooltip>@@ -116,6 +129,8 @@ export class ToolbarItem extends Component<IDisplayMenuItem<IMenuItem>, IToolbar}private getTooltip(): string {- return this.context.localeService?.t(this.props.tooltip) + (this.props.shortcut ? ` (${this.props.shortcut})` : '');+ return (+ this.context.localeService?.t(this.props.tooltip) + (this.props.shortcut ? ` (${this.props.shortcut})` : '')+ );}}diff --git a/packages/common-plugin-data/src/Docs/DEFAULT_DOCUMENT_DATA_EN.ts b/packages/common-plugin-data/src/Docs/DEFAULT_DOCUMENT_DATA_EN.tsindex 62c2e8c6c6..a45d71b7fb 100644--- a/packages/common-plugin-data/src/Docs/DEFAULT_DOCUMENT_DATA_EN.ts+++ b/packages/common-plugin-data/src/Docs/DEFAULT_DOCUMENT_DATA_EN.ts@@ -1,4 +1,13 @@-import { BooleanNumber, ColumnSeparatorType, IDocumentData, ObjectRelativeFromH, ObjectRelativeFromV, PositionedObjectLayoutType, SectionType, WrapTextType } from '@univerjs/core';+import {+ BooleanNumber,+ ColumnSeparatorType,+ IDocumentData,+ ObjectRelativeFromH,+ ObjectRelativeFromV,+ PositionedObjectLayoutType,+ SectionType,+ WrapTextType,+} from '@univerjs/core';import { DEFAULT_LIST_TEST } from './DEFAULT_LIST';diff --git a/packages/common-plugin-data/src/Slides/DefaultPages/Page7.ts b/packages/common-plugin-data/src/Slides/DefaultPages/Page7.tsindex 50b638cf0e..6e80ae9958 100644--- a/packages/common-plugin-data/src/Slides/DefaultPages/Page7.ts+++ b/packages/common-plugin-data/src/Slides/DefaultPages/Page7.ts@@ -147,7 +147,13 @@ export const DEFAULT_SEVEN_PAGE = {0.9,generateUnlimitedSlideData(0.9,- generateUnlimitedSlideData(0.9, generateUnlimitedSlideData(0.9, generateUnlimitedSlideData(0.9, generateUnlimitedSlideData(0.9))))+ generateUnlimitedSlideData(+ 0.9,+ generateUnlimitedSlideData(+ 0.9,+ generateUnlimitedSlideData(0.9, generateUnlimitedSlideData(0.9))+ )+ ))))diff --git a/packages/core/src/Basics/Univer.ts b/packages/core/src/Basics/Univer.tsindex 061a143a2e..098010234e 100644--- a/packages/core/src/Basics/Univer.ts+++ b/packages/core/src/Basics/Univer.ts@@ -46,6 +46,10 @@ export class Univer {return this._univerInjector.get(ICurrentUniverService);}+ dispose(): void {+ // left empty for purpose+ }+/** Register a plugin into univer. */registerPlugin<T extends Plugin>(plugin: PluginCtor<T>, configs?: any): void {// TODO: type of `configs` could be optimized here using typescript inferdiff --git a/packages/core/src/Docs/Domain/DataStreamTreeNode.ts b/packages/core/src/Docs/Domain/DataStreamTreeNode.tsindex 8a2efd0b9f..3017dc96ec 100644--- a/packages/core/src/Docs/Domain/DataStreamTreeNode.ts+++ b/packages/core/src/Docs/Domain/DataStreamTreeNode.ts@@ -157,7 +157,11 @@ export class DataStreamTreeNode {this.endIndex = segments[1];if (this.content != null) {- this.content = deleteContent(this.content || '', startIndex - originStartIndex, endIndex - originStartIndex + 1);+ this.content = deleteContent(+ this.content || '',+ startIndex - originStartIndex,+ endIndex - originStartIndex + 1+ );}}diff --git a/packages/core/src/Docs/Domain/DocumentBodyModel.ts b/packages/core/src/Docs/Domain/DocumentBodyModel.tsindex 2405c4c762..3564de37b4 100644--- a/packages/core/src/Docs/Domain/DocumentBodyModel.ts+++ b/packages/core/src/Docs/Domain/DocumentBodyModel.ts@@ -166,7 +166,11 @@ export class DocumentBodyModelSimple implements IDisposable {}}- private _batchParent(parent: DataStreamTreeNode, children: DataStreamTreeNode[], nodeType = DataStreamTreeNodeType.SECTION_BREAK) {+ private _batchParent(+ parent: DataStreamTreeNode,+ children: DataStreamTreeNode[],+ nodeType = DataStreamTreeNodeType.SECTION_BREAK+ ) {for (const child of children) {child.parent = parent;parent.children.push(child);@@ -252,7 +256,13 @@ export class DocumentBodyModel extends DocumentBodyModelSimple {const { firstNode: insertedFirstNode, lastNode: insertedLastNode } = insertedNodeSplit;- insertedNode.parent?.children.splice(insertedNode.getPositionInParent(), 1, insertedFirstNode, ...insertNodes, insertedLastNode);+ insertedNode.parent?.children.splice(+ insertedNode.getPositionInParent(),+ 1,+ insertedFirstNode,+ ...insertNodes,+ insertedLastNode+ );this.foreachTop(insertedNode.parent, (currentNode) => {// currentNode.endIndex += dataStreamLen;@@ -325,7 +335,10 @@ export class DocumentBodyModel extends DocumentBodyModelSimple {return null;}- foreachTop(node: Nullable<DataStreamTreeNode>, func: (node: DataStreamTreeNode | DocumentBodyModelOrSimple) => void) {+ foreachTop(+ node: Nullable<DataStreamTreeNode>,+ func: (node: DataStreamTreeNode | DocumentBodyModelOrSimple) => void+ ) {let parent: Nullable<DataStreamTreeNode> = node;while (parent) {func(parent);@@ -623,7 +636,12 @@ export class DocumentBodyModel extends DocumentBodyModelSimple {newNode.plus(insertStartIndex + 1);});- insertedNode.parent?.children.splice(insertedNode.getPositionInParent(), 1, insertedFirstNode, insertedLastNode);+ insertedNode.parent?.children.splice(+ insertedNode.getPositionInParent(),+ 1,+ insertedFirstNode,+ insertedLastNode+ );this.foreachTop(insertedNode.parent, (currentNode) => {// currentNode.endIndex += dataStreamLen;diff --git a/packages/core/src/Shared/Compare.ts b/packages/core/src/Shared/Compare.tsindex 67105311bd..196e0084cd 100644--- a/packages/core/src/Shared/Compare.ts+++ b/packages/core/src/Shared/Compare.ts@@ -6,7 +6,10 @@ type AnyObject = {export function deepCompare(arg1: AnyObject, arg2: AnyObject): boolean {if (Object.prototype.toString.call(arg1) === Object.prototype.toString.call(arg2)) {- if (Object.prototype.toString.call(arg1) === '[object Object]' || Object.prototype.toString.call(arg1) === '[object Array]') {+ if (+ Object.prototype.toString.call(arg1) === '[object Object]' ||+ Object.prototype.toString.call(arg1) === '[object Array]'+ ) {if (Object.keys(arg1).length !== Object.keys(arg2).length) {return false;}diff --git a/packages/core/src/Shared/DocTool.ts b/packages/core/src/Shared/DocTool.tsindex 8829d8753c..cf2984024c 100644--- a/packages/core/src/Shared/DocTool.ts+++ b/packages/core/src/Shared/DocTool.ts@@ -60,7 +60,11 @@ export function checkParagraphHasIndentByStyle(paragraphStyle?: IParagraphStyle)return false;}- if (((paragraphStyle?.indentStart == null || paragraphStyle?.indentStart === 0) && paragraphStyle?.hanging == null) || paragraphStyle?.hanging === 0) {+ if (+ ((paragraphStyle?.indentStart == null || paragraphStyle?.indentStart === 0) &&+ paragraphStyle?.hanging == null) ||+ paragraphStyle?.hanging === 0+ ) {return false;}diff --git a/packages/core/src/Shared/Generate.ts b/packages/core/src/Shared/Generate.tsindex 65fad0e5f9..4fbec027f1 100644--- a/packages/core/src/Shared/Generate.ts+++ b/packages/core/src/Shared/Generate.ts@@ -164,7 +164,11 @@ export function generate(value: string): any {} else if (/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(value)) {m = value.toString();ct = { fa: '@', t: 's' };- } else if (isRealNum(value) && Math.abs(parseFloat(value)) > 0 && (Math.abs(parseFloat(value)) >= 1e11 || Math.abs(parseFloat(value)) < 1e-9)) {+ } else if (+ isRealNum(value) &&+ Math.abs(parseFloat(value)) > 0 &&+ (Math.abs(parseFloat(value)) >= 1e11 || Math.abs(parseFloat(value)) < 1e-9)+ ) {v = numeral(value).value();const str = v.toExponential();if (str.indexOf('.') > -1) {@@ -302,7 +306,10 @@ export function generate(value: string): any {m = value.toString();ct = { fa: 'General', t: 'n' };v = parseFloat(value);- } else if (isdatetime(value) && (value.toString().indexOf('.') > -1 || value.toString().indexOf(':') > -1 || value.toString().length < 16)) {+ } else if (+ isdatetime(value) &&+ (value.toString().indexOf('.') > -1 || value.toString().indexOf(':') > -1 || value.toString().length < 16)+ ) {v = datenum_local(parseDate(value.toString().replace(/-/g, '/')));if (v.toString().indexOf('.') > -1) {diff --git a/packages/core/src/Shared/KeyboardUtil.ts b/packages/core/src/Shared/KeyboardUtil.tsindex dae380998c..1c9292b690 100644--- a/packages/core/src/Shared/KeyboardUtil.ts+++ b/packages/core/src/Shared/KeyboardUtil.ts@@ -1,6 +1,9 @@import { KEYBOARD_KEYS } from '../Types/Const/KEYBOARD_KEYS';-const allKeys = Object.keys(KEYBOARD_KEYS).reduce((acc, category) => [...acc, ...KEYBOARD_KEYS[category]], [] as string[]);+const allKeys = Object.keys(KEYBOARD_KEYS).reduce(+ (acc, category) => [...acc, ...KEYBOARD_KEYS[category]],+ [] as string[]+);/*** Reference of non-printable Keyboard Event.key valuesdiff --git a/packages/core/src/Shared/Logger.ts b/packages/core/src/Shared/Logger.tsindex dd2f486d77..30ec9f9c20 100644--- a/packages/core/src/Shared/Logger.ts+++ b/packages/core/src/Shared/Logger.ts@@ -32,7 +32,13 @@ export class Logger {static capsule(env: string, version: string, prefix: string = '', suffix = ''): void {if (console) {- console.log(`%c${prefix}%c${env}%c${version}%c${suffix}`, '', 'padding:3px;color:white;background:#023047', 'padding:3px;color:white;background:#219EBC', '');+ console.log(+ `%c${prefix}%c${env}%c${version}%c${suffix}`,+ '',+ 'padding:3px;color:white;background:#023047',+ 'padding:3px;color:white;background:#219EBC',+ ''+ );}}}diff --git a/packages/core/src/Shared/Migrate/Border.ts b/packages/core/src/Shared/Migrate/Border.tsindex b6899f2aab..c5fc7cfc48 100644--- a/packages/core/src/Shared/Migrate/Border.ts+++ b/packages/core/src/Shared/Migrate/Border.ts@@ -29,7 +29,10 @@ export function border(newSheet: Partial<IWorksheetConfig>, sheet: any) {},};- if (newSheet.cellData[rowIndex] && (newSheet.cellData[rowIndex][colIndex - 1]?.s as IStyleData)?.bd?.r) {+ if (+ newSheet.cellData[rowIndex] &&+ (newSheet.cellData[rowIndex][colIndex - 1]?.s as IStyleData)?.bd?.r+ ) {delete (newSheet.cellData[rowIndex][colIndex - 1]?.s as IStyleData)?.bd?.r;}}@@ -41,7 +44,10 @@ export function border(newSheet: Partial<IWorksheetConfig>, sheet: any) {},};- if (newSheet.cellData[rowIndex] && (newSheet.cellData[rowIndex][Number(colIndex) + 1]?.s as IStyleData)?.bd?.l) {+ if (+ newSheet.cellData[rowIndex] &&+ (newSheet.cellData[rowIndex][Number(colIndex) + 1]?.s as IStyleData)?.bd?.l+ ) {delete (newSheet.cellData[rowIndex][colIndex - 1]?.s as IStyleData)?.bd?.l;}}@@ -53,7 +59,10 @@ export function border(newSheet: Partial<IWorksheetConfig>, sheet: any) {},};- if (newSheet.cellData[rowIndex - 1] && (newSheet.cellData[rowIndex][colIndex]?.s as IStyleData)?.bd?.b) {+ if (+ newSheet.cellData[rowIndex - 1] &&+ (newSheet.cellData[rowIndex][colIndex]?.s as IStyleData)?.bd?.b+ ) {delete (newSheet.cellData[rowIndex][colIndex - 1]?.s as IStyleData)?.bd?.b;}}@@ -65,12 +74,18 @@ export function border(newSheet: Partial<IWorksheetConfig>, sheet: any) {},};- if (newSheet.cellData[Number(rowIndex) + 1] && (newSheet.cellData[rowIndex][colIndex]?.s as IStyleData)?.bd?.t) {+ if (+ newSheet.cellData[Number(rowIndex) + 1] &&+ (newSheet.cellData[rowIndex][colIndex]?.s as IStyleData)?.bd?.t+ ) {delete (newSheet.cellData[rowIndex][colIndex - 1]?.s as IStyleData)?.bd?.t;}}- (newSheet.cellData[rowIndex][colIndex].s as IStyleData).bd = Object.assign((newSheet.cellData[rowIndex][colIndex].s as IStyleData).bd || {}, newBorder);+ (newSheet.cellData[rowIndex][colIndex].s as IStyleData).bd = Object.assign(+ (newSheet.cellData[rowIndex][colIndex].s as IStyleData).bd || {},+ newBorder+ );} else if (borderInfo.rangeType === 'range') {for (const range of borderInfo.range) {const startRow = range.row[0];@@ -103,7 +118,10 @@ export function border(newSheet: Partial<IWorksheetConfig>, sheet: any) {},};- (newSheet.cellData[r][c].s as IStyleData).bd = Object.assign((newSheet.cellData[r][c].s as IStyleData).bd || {}, newBorder);+ (newSheet.cellData[r][c].s as IStyleData).bd = Object.assign(+ (newSheet.cellData[r][c].s as IStyleData).bd || {},+ newBorder+ );}}@@ -141,7 +159,10 @@ export function border(newSheet: Partial<IWorksheetConfig>, sheet: any) {},};- (newSheet.cellData[r][c].s as IStyleData).bd = Object.assign((newSheet.cellData[r][c].s as IStyleData).bd || {}, newBorder);+ (newSheet.cellData[r][c].s as IStyleData).bd = Object.assign(+ (newSheet.cellData[r][c].s as IStyleData).bd || {},+ newBorder+ );}}@@ -179,7 +200,10 @@ export function border(newSheet: Partial<IWorksheetConfig>, sheet: any) {},};- (newSheet.cellData[r][c].s as IStyleData).bd = Object.assign((newSheet.cellData[r][c].s as IStyleData).bd || {}, newBorder);+ (newSheet.cellData[r][c].s as IStyleData).bd = Object.assign(+ (newSheet.cellData[r][c].s as IStyleData).bd || {},+ newBorder+ );}}@@ -217,7 +241,10 @@ export function border(newSheet: Partial<IWorksheetConfig>, sheet: any) {},};- (newSheet.cellData[r][c].s as IStyleData).bd = Object.assign((newSheet.cellData[r][c].s as IStyleData).bd || {}, newBorder);+ (newSheet.cellData[r][c].s as IStyleData).bd = Object.assign(+ (newSheet.cellData[r][c].s as IStyleData).bd || {},+ newBorder+ );}}@@ -376,7 +403,10 @@ export function border(newSheet: Partial<IWorksheetConfig>, sheet: any) {};}- (newSheet.cellData[r][c].s as IStyleData).bd = Object.assign((newSheet.cellData[r][c].s as IStyleData).bd || {}, newBorder);+ (newSheet.cellData[r][c].s as IStyleData).bd = Object.assign(+ (newSheet.cellData[r][c].s as IStyleData).bd || {},+ newBorder+ );}}@@ -501,7 +531,10 @@ export function border(newSheet: Partial<IWorksheetConfig>, sheet: any) {},};- (newSheet.cellData[r][c].s as IStyleData).bd = Object.assign((newSheet.cellData[r][c].s as IStyleData).bd || {}, newBorder);+ (newSheet.cellData[r][c].s as IStyleData).bd = Object.assign(+ (newSheet.cellData[r][c].s as IStyleData).bd || {},+ newBorder+ );}}@@ -539,7 +572,10 @@ export function border(newSheet: Partial<IWorksheetConfig>, sheet: any) {},};- (newSheet.cellData[r][c].s as IStyleData).bd = Object.assign((newSheet.cellData[r][c].s as IStyleData).bd || {}, newBorder);+ (newSheet.cellData[r][c].s as IStyleData).bd = Object.assign(+ (newSheet.cellData[r][c].s as IStyleData).bd || {},+ newBorder+ );}}diff --git a/packages/core/src/Shared/Migrate/Migrate.ts b/packages/core/src/Shared/Migrate/Migrate.tsindex 448e176f58..e6b5f2a0ec 100644--- a/packages/core/src/Shared/Migrate/Migrate.ts+++ b/packages/core/src/Shared/Migrate/Migrate.ts@@ -1,5 +1,14 @@import { BooleanNumber, HorizontalAlign, VerticalAlign, WrapStrategy } from '../../Types/Enum';-import { ICellData, IColumnData, IRowData, IStyleData, ITextRun, ITextStyle, IWorkbookConfig, IWorksheetConfig } from '../../Types/Interfaces';+import {+ ICellData,+ IColumnData,+ IRowData,+ IStyleData,+ ITextRun,+ ITextStyle,+ IWorkbookConfig,+ IWorksheetConfig,+} from '../../Types/Interfaces';import { ObjectArrayPrimitiveType } from '../ObjectArray';import { Tools } from '../Tools';import { IKeyValue } from '../Types';diff --git a/packages/core/src/Shared/RectTree/BorderTree.ts b/packages/core/src/Shared/RectTree/BorderTree.tsindex 6d496f2812..6850d42abb 100644--- a/packages/core/src/Shared/RectTree/BorderTree.ts+++ b/packages/core/src/Shared/RectTree/BorderTree.ts@@ -107,7 +107,12 @@ export namespace BorderTree {}equals(other: BorderTree.Node) {- return this.minX === other.minX && this.minY === other.minY && other.maxX === this.maxX && other.maxY === this.maxY;+ return (+ this.minX === other.minX &&+ this.minY === other.minY &&+ other.maxX === this.maxX &&+ other.maxY === this.maxY+ );}}}diff --git a/packages/core/src/Shared/RectTree/RectTree.ts b/packages/core/src/Shared/RectTree/RectTree.tsindex 68336804c6..b9f12df7ce 100644--- a/packages/core/src/Shared/RectTree/RectTree.ts+++ b/packages/core/src/Shared/RectTree/RectTree.ts@@ -35,7 +35,13 @@ export class RectTree {return -1;}- static multiSelect(array: RectTree.Node[], left: number, right: number, n: number, compare: Compare<RectTree.Node>) {+ static multiSelect(+ array: RectTree.Node[],+ left: number,+ right: number,+ n: number,+ compare: Compare<RectTree.Node>+ ) {// 对数组进行排序,以便项目以 n 个未排序项目为一组,各组在彼此之间排序;// 将选择算法与二元分治法相结合const stack: number[] = [left, right];@@ -261,7 +267,9 @@ export class RectTree {const splitIndex = this._chooseSplitIndex(node, m, M);- const newNode = RectTree.Node.makeParentNode(node.childrenNodes.splice(splitIndex, node.childrenNodes.length - splitIndex));+ const newNode = RectTree.Node.makeParentNode(+ node.childrenNodes.splice(splitIndex, node.childrenNodes.length - splitIndex)+ );newNode.height = node.height;newNode.leaf = node.leaf;@@ -597,11 +605,15 @@ export namespace RectTree {}contains(other: RectTree.Node) {- return this.minX <= other.minX && this.minY <= other.minY && other.maxX <= this.maxX && other.maxY <= this.maxY;+ return (+ this.minX <= other.minX && this.minY <= other.minY && other.maxX <= this.maxX && other.maxY <= this.maxY+ );}intersects(other: RectTree.Node) {- return other.minX <= this.maxX && other.minY <= this.maxY && other.maxX >= this.minX && other.maxY >= this.minY;+ return (+ other.minX <= this.maxX && other.minY <= this.maxY && other.maxX >= this.minX && other.maxY >= this.minY+ );}extend(other: RectTree.Node): RectTree.Node {@@ -613,7 +625,10 @@ export namespace RectTree {}enlargedArea(other: RectTree.Node) {- return (Math.max(other.maxX, this.maxX) - Math.min(other.minX, this.minX)) * (Math.max(other.maxY, this.maxY) - Math.min(other.minY, this.minY));+ return (+ (Math.max(other.maxX, this.maxX) - Math.min(other.minX, this.minX)) *+ (Math.max(other.maxY, this.maxY) - Math.min(other.minY, this.minY))+ );}intersectionArea(other: RectTree.Node) {diff --git a/packages/core/src/Sheets/Domain/Color.ts b/packages/core/src/Sheets/Domain/Color.tsindex d29766982b..de351d98a5 100644--- a/packages/core/src/Sheets/Domain/Color.ts+++ b/packages/core/src/Sheets/Domain/Color.ts@@ -11,7 +11,9 @@ export class Color {}static rgbColorToHexValue(color: RgbColor): string {- return `#${((1 << 24) + (color.getRed() << 16) + (color.getGreen() << 8) + color.getBlue()).toString(16).slice(1)}`;+ return `#${((1 << 24) + (color.getRed() << 16) + (color.getGreen() << 8) + color.getBlue())+ .toString(16)+ .slice(1)}`;}static hexValueToRgbColor(hexValue: string): RgbColor {@@ -123,7 +125,9 @@ export class HLSColor {const builder = new ColorBuilder();if (this._saturation === 0) {- builder.setRgbColor(`rgba(${this._lightness * 255},${this._lightness * 255},${this._lightness * 255},${this._alpha * 255})`);+ builder.setRgbColor(+ `rgba(${this._lightness * 255},${this._lightness * 255},${this._lightness * 255},${this._alpha * 255})`+ );return builder.asRgbColor();}@@ -143,7 +147,9 @@ export class HLSColor {const tB = hue - 1.0 / 3.0;const blue = this.setColor(t1, t2, tB);- builder.setRgbColor(`rgba(${Math.round(red * 255)},${Math.round(green * 255)},${Math.round(blue * 255)},${this._alpha * 255})`);+ builder.setRgbColor(+ `rgba(${Math.round(red * 255)},${Math.round(green * 255)},${Math.round(blue * 255)},${this._alpha * 255})`+ );return builder.asRgbColor();}@@ -195,7 +201,9 @@ export class HLSColor {export class RgbColor extends Color {static RGB_COLOR_AMT: number = 0;- static RGBA_EXTRACT: RegExp = new RegExp(`\\s*rgba\\s*\\((\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d.\\d|\\d\\s*)\\)\\s*`);+ static RGBA_EXTRACT: RegExp = new RegExp(+ `\\s*rgba\\s*\\((\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d.\\d|\\d\\s*)\\)\\s*`+ );static RGB_EXTRACT: RegExp = new RegExp(`\\s*rgb\\s*\\((\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d+\\s*)\\)\\s*`);@@ -304,7 +312,12 @@ export class RgbColor extends Color {override equals(color: Color): boolean {if (color instanceof RgbColor) {- return color._red === this._red && color._blue === this._blue && color._green === this._green && color._alpha === this._alpha;+ return (+ color._red === this._red &&+ color._blue === this._blue &&+ color._green === this._green &&+ color._alpha === this._alpha+ );}return false;}diff --git a/packages/core/src/Sheets/Domain/Styles.ts b/packages/core/src/Sheets/Domain/Styles.tsindex 998ecc2299..a3589a7ed5 100644--- a/packages/core/src/Sheets/Domain/Styles.ts+++ b/packages/core/src/Sheets/Domain/Styles.ts@@ -11,7 +11,13 @@ export class Styles {this._styles = styles;}- each(callback: (value: [string, Nullable<IStyleData>], index: number, array: Array<[string, Nullable<IStyleData>]>) => void) {+ each(+ callback: (+ value: [string, Nullable<IStyleData>],+ index: number,+ array: Array<[string, Nullable<IStyleData>]>+ ) => void+ ) {Object.entries(this._styles).forEach(callback);return this;}diff --git a/packages/core/src/Types/Interfaces/IStyleData.ts b/packages/core/src/Types/Interfaces/IStyleData.tsindex a8d8679be1..ae96a93ed2 100644--- a/packages/core/src/Types/Interfaces/IStyleData.ts+++ b/packages/core/src/Types/Interfaces/IStyleData.ts@@ -1,6 +1,14 @@import { Nullable } from '../../Shared/Types';import { BorderStyleTypes } from '../Enum/BorderStyleTypes';-import { BaselineOffset, BooleanNumber, HorizontalAlign, TextDecoration, TextDirection, VerticalAlign, WrapStrategy } from '../Enum/TextStyle';+import {+ BaselineOffset,+ BooleanNumber,+ HorizontalAlign,+ TextDecoration,+ TextDirection,+ VerticalAlign,+ WrapStrategy,+} from '../Enum/TextStyle';import { ThemeColorType } from '../Enum/ThemeColorType';/**diff --git a/packages/core/src/Types/Interfaces/IWorkbookData.ts b/packages/core/src/Types/Interfaces/IWorkbookData.tsindex 95bbdb8412..8b35b328f9 100644--- a/packages/core/src/Types/Interfaces/IWorkbookData.ts+++ b/packages/core/src/Types/Interfaces/IWorkbookData.ts@@ -1,4 +1,4 @@-import { IKeyType, IKeyValue, Nullable } from '../../Shared/Types';+import { IKeyType, Nullable } from '../../Shared/Types';import { LocaleType } from '../Enum';import { INamedRange } from './INamedRange';import { IStyleData } from './IStyleData';@@ -27,4 +27,4 @@ export interface IWorkbookConfig {sheets: { [sheetId: string]: Partial<IWorksheetConfig> };styles: IKeyType<Nullable<IStyleData>>;timeZone: string;-}\ No newline at end of file+}diff --git a/packages/sheets-plugin-filter/src/Action/AddFilterCriteriaAction.ts b/packages/sheets-plugin-filter/src/Action/AddFilterCriteriaAction.tsindex c0019f1e22..a83945e066 100644--- a/packages/sheets-plugin-filter/src/Action/AddFilterCriteriaAction.ts+++ b/packages/sheets-plugin-filter/src/Action/AddFilterCriteriaAction.ts@@ -4,7 +4,10 @@ import { AddFilterCriteria, RemoveFilterCriteria } from '../Apply';import { ACTION_NAMES } from '../Const/ACTION_NAME';import { IAddFilterCriteriaActionData, IRemoveFilterCriteriaAction } from '../IData/FilterType';-export class AddFilterCriteriaAction extends SheetActionBase<IAddFilterCriteriaActionData, IRemoveFilterCriteriaAction> {+export class AddFilterCriteriaAction extends SheetActionBase<+ IAddFilterCriteriaActionData,+ IRemoveFilterCriteriaAction+> {constructor(actionData: IAddFilterCriteriaActionData, workbook: Workbook, observers: ActionObservers) {super(actionData,diff --git a/packages/sheets-plugin-filter/src/Action/RemoveFilterCriteriaAction.ts b/packages/sheets-plugin-filter/src/Action/RemoveFilterCriteriaAction.tsindex 7fddbe7063..da812efc17 100644--- a/packages/sheets-plugin-filter/src/Action/RemoveFilterCriteriaAction.ts+++ b/packages/sheets-plugin-filter/src/Action/RemoveFilterCriteriaAction.ts@@ -4,7 +4,10 @@ import { AddFilterCriteria, RemoveFilterCriteria } from '../Apply';import { ACTION_NAMES } from '../Const';import { IAddFilterCriteriaActionData, IFilterCriteriaColumn, IRemoveFilterCriteriaAction } from '../IData/FilterType';-export class RemoveFilterCriteriaAction extends SheetActionBase<IRemoveFilterCriteriaAction, IAddFilterCriteriaActionData> {+export class RemoveFilterCriteriaAction extends SheetActionBase<+ IRemoveFilterCriteriaAction,+ IAddFilterCriteriaActionData+> {constructor(actionData: IRemoveFilterCriteriaAction, workbook: Workbook, observers: ActionObservers) {super(actionData,diff --git a/packages/sheets-plugin-filter/src/Domain/FilterCriteriaColumn.ts b/packages/sheets-plugin-filter/src/Domain/FilterCriteriaColumn.tsindex 34f135ca40..9cc7d17e7c 100644--- a/packages/sheets-plugin-filter/src/Domain/FilterCriteriaColumn.ts+++ b/packages/sheets-plugin-filter/src/Domain/FilterCriteriaColumn.ts@@ -11,7 +11,9 @@ export class FilterCriteriaColumn extends Serializer {static newInstance(sequence: IFilterCriteriaColumn): FilterCriteriaColumn {const criteriaColumn = new FilterCriteriaColumn();criteriaColumn._column = sequence.column;- criteriaColumn._criteria = FilterCriteria.fromSequence(sequence.criteria as Sequence) as unknown as FilterCriteria;+ criteriaColumn._criteria = FilterCriteria.fromSequence(+ sequence.criteria as Sequence+ ) as unknown as FilterCriteria;return criteriaColumn;}diff --git a/packages/sheets-plugin-filter/src/IData/FilterType.ts b/packages/sheets-plugin-filter/src/IData/FilterType.tsindex a6b171ff78..2ef3be3e10 100644--- a/packages/sheets-plugin-filter/src/IData/FilterType.ts+++ b/packages/sheets-plugin-filter/src/IData/FilterType.ts@@ -1,4 +1,13 @@-import { Color, ConditionType, IColor, ISelectionRange, ISheetActionData, Nullable, RelativeDate, Sequence } from '@univerjs/core';+import {+ Color,+ ConditionType,+ IColor,+ ISelectionRange,+ ISheetActionData,+ Nullable,+ RelativeDate,+ Sequence,+} from '@univerjs/core';import { BooleanCriteria } from '../Enum/BooleanCriteria';diff --git a/packages/sheets-plugin-filter/src/UI/FilterButton.tsx b/packages/sheets-plugin-filter/src/UI/FilterButton.tsxindex 25c0b95d2d..ae05115ec4 100644--- a/packages/sheets-plugin-filter/src/UI/FilterButton.tsx+++ b/packages/sheets-plugin-filter/src/UI/FilterButton.tsx@@ -1,8 +1,9 @@import { BaseSelectProps, Icon, Select } from '@univerjs/base-ui';-import { Component } from 'react';import { Nullable, Observer, Workbook } from '@univerjs/core';-import { IProps } from '../IData';+import { Component } from 'react';+import { FilterPlugin } from '../FilterPlugin';+import { IProps } from '../IData';interface IState {filter: IToolbarItemProps;@@ -55,16 +56,20 @@ export class FilterButton extends Component<IProps, IState> {this.setLocale();// subscribe Locale change event- this._localeObserver = this.context.observerManager.requiredObserver('onAfterChangeUILocaleObservable', 'core')?.add(() => {- this.setLocale();- });+ this._localeObserver = this.context.observerManager+ .requiredObserver('onAfterChangeUILocaleObservable', 'core')+ ?.add(() => {+ this.setLocale();+ });}/*** destory*/override componentWillUnmount() {- this.context.observerManager.requiredObserver('onAfterChangeUILocaleObservable', 'core')?.remove(this._localeObserver);+ this.context.observerManager+ .requiredObserver('onAfterChangeUILocaleObservable', 'core')+ ?.remove(this._localeObserver);}/**@@ -98,6 +103,14 @@ export class FilterButton extends Component<IProps, IState> {*/render() {const { filter } = this.state;- return <Select tooltip={filter.tooltip} key={filter.locale} children={filter.children as BaseSelectProps[]} label={filter.label} icon={filter.icon} />;+ return (+ <Select+ tooltip={filter.tooltip}+ key={filter.locale}+ children={filter.children as BaseSelectProps[]}+ label={filter.label}+ icon={filter.icon}+ />+ );}}diff --git a/packages/sheets-plugin-filter/src/main.tsx b/packages/sheets-plugin-filter/src/main.tsxindex a21cd8c44d..e00c9e5190 100644--- a/packages/sheets-plugin-filter/src/main.tsx+++ b/packages/sheets-plugin-filter/src/main.tsx@@ -1,6 +1,6 @@-import { UniverSheet } from '@univerjs/core';import { RenderEngine } from '@univerjs/base-render';import { DEFAULT_WORKBOOK_DATA } from '@univerjs/common-plugin-data';+import { UniverSheet } from '@univerjs/core';const uiDefaultConfigUp = {container: 'universheet-demo-up',diff --git a/packages/sheets-plugin-find/src/Domain/TextFind.ts b/packages/sheets-plugin-find/src/Domain/TextFind.tsindex 8469ca620b..c81aab55ce 100644--- a/packages/sheets-plugin-find/src/Domain/TextFind.ts+++ b/packages/sheets-plugin-find/src/Domain/TextFind.ts@@ -1,6 +1,15 @@import { ISelectionTransformerShapeManager } from '@univerjs/base-render';import { SelectionManagerService } from '@univerjs/base-sheets';-import { FormatType, ICellData, ICurrentUniverService, IGridRange, Nullable, ObjectMatrix, Range, Worksheet } from '@univerjs/core';+import {+ FormatType,+ ICellData,+ ICurrentUniverService,+ IGridRange,+ Nullable,+ ObjectMatrix,+ Range,+ Worksheet,+} from '@univerjs/core';import { Inject } from '@wendellhu/redi';import { FindType } from '../IData';@@ -33,7 +42,8 @@ export class TextFinder {constructor(@ICurrentUniverService private readonly _currentUniverService: ICurrentUniverService,@Inject(SelectionManagerService) private readonly _selectionManagerService: SelectionManagerService,- @ISelectionTransformerShapeManager private readonly _selectionTransformerShapeManager: ISelectionTransformerShapeManager+ @ISelectionTransformerShapeManager+ private readonly _selectionTransformerShapeManager: ISelectionTransformerShapeManager) {}/**@@ -122,7 +132,10 @@ export class TextFinder {let sheet = this._currentUniverService.getCurrentUniverSheetInstance().getWorkBook().getSheetBySheetId(sheetId);for (let i = 0; i < this._range.length; i++) {if (sheetId !== this._range[i].sheetId) {- sheet = this._currentUniverService.getCurrentUniverSheetInstance().getWorkBook().getSheetBySheetId(this._range[i].sheetId);+ sheet = this._currentUniverService+ .getCurrentUniverSheetInstance()+ .getWorkBook()+ .getSheetBySheetId(this._range[i].sheetId);}const range = this._range[i];if (!sheet) continue;@@ -142,7 +155,10 @@ export class TextFinder {replaceWith(replaceText: string): number {if (!this._range.length) return 0;const range = this._range[this._index];- const sheet = this._currentUniverService.getCurrentUniverSheetInstance().getWorkBook().getSheetBySheetId(range.sheetId);+ const sheet = this._currentUniverService+ .getCurrentUniverSheetInstance()+ .getWorkBook()+ .getSheetBySheetId(range.sheetId);if (!sheet) return 0;this._replaceText(sheet, range, replaceText);@@ -169,7 +185,11 @@ export class TextFinder {}// 开始查找- searchText(text: string | FormatType, type: FindType = 'text', searchRange: SelectSearch = SelectSearch.CurrentSheet): TextFinder | null {+ searchText(+ text: string | FormatType,+ type: FindType = 'text',+ searchRange: SelectSearch = SelectSearch.CurrentSheet+ ): TextFinder | null {if (!text) return null;// 查找范围变化或者初始化rangeDataif (this._searchRange !== searchRange || !this._rangeData.length) {@@ -241,7 +261,10 @@ export class TextFinder {private _mathTxt(): IGridRange[] {const range: IGridRange[] = [];for (let i = 0; i < this._rangeData.length; i++) {- const sheet = this._currentUniverService.getCurrentUniverSheetInstance().getWorkBook().getSheetBySheetId(this._rangeData[i].sheetId);+ const sheet = this._currentUniverService+ .getCurrentUniverSheetInstance()+ .getWorkBook()+ .getSheetBySheetId(this._rangeData[i].sheetId);if (!sheet) return [];let matrix: ObjectMatrix<ICellData> = new ObjectMatrix<ICellData>();if (this._matchFormula) {@@ -253,7 +276,10 @@ export class TextFinder {if (this._matchEntire) {matrix.forValue((row, col, value) => {if (!value.m) return;- if ((this._matchCase && value.m === this._text) || (this._text as string).toLowerCase() === value.m.toLowerCase()) {+ if (+ (this._matchCase && value.m === this._text) ||+ (this._text as string).toLowerCase() === value.m.toLowerCase()+ ) {range.push({sheetId: this._rangeData[i].sheetId,rangeData: {@@ -309,7 +335,11 @@ export class TextFinder {const sheetId = range.sheetId;const mergeData = workbook.getActiveSheet().getMergeData();- const selectionRange = this._selectionManagerService.transformCellDataToSelectionData(range.rangeData.startColumn, range.rangeData.endColumn, mergeData);+ const selectionRange = this._selectionManagerService.transformCellDataToSelectionData(+ range.rangeData.startColumn,+ range.rangeData.endColumn,+ mergeData+ );if (selectionRange == null) {return;}diff --git a/packages/sheets-plugin-find/src/Util/util.ts b/packages/sheets-plugin-find/src/Util/util.tsindex 370ec111ff..64039173a4 100644--- a/packages/sheets-plugin-find/src/Util/util.ts+++ b/packages/sheets-plugin-find/src/Util/util.ts@@ -1 +1,2 @@-export const getRegExpStr = (str: string) => str.replace('~*', '\\*').replace('~?', '\\?').replace('.', '\\.').replace('*', '.*').replace('?', '.');+export const getRegExpStr = (str: string) =>+ str.replace('~*', '\\*').replace('~?', '\\?').replace('.', '\\.').replace('*', '.*').replace('?', '.');diff --git a/packages/sheets-plugin-find/src/View/UI/FindModal.tsx b/packages/sheets-plugin-find/src/View/UI/FindModal.tsxindex b26f20d362..bc23960b6c 100644--- a/packages/sheets-plugin-find/src/View/UI/FindModal.tsx+++ b/packages/sheets-plugin-find/src/View/UI/FindModal.tsx@@ -1,6 +1,17 @@-import { BaseCheckboxGroupOptions, BaseComponentProps, Button, CellRange, CheckboxGroup, CustomLabel, Icon, Input, Modal, Select } from '@univerjs/base-ui';+import {+ BaseCheckboxGroupOptions,+ BaseComponentProps,+ Button,+ CellRange,+ CheckboxGroup,+ CustomLabel,+ Icon,+ Input,+ Modal,+ Select,+} from '@univerjs/base-ui';import { BaseItemProps } from '@univerjs/base-ui/src/Components/Item/Item';-import { Component, createRef } from 'react';+import { Component } from 'react';import styles from './index.module.less';@@ -38,7 +49,6 @@ export enum SelectSearch {}export class FindModal extends Component<IProps, IState> {-private _matchGroup: BaseCheckboxGroupOptions[] = [];private _select: BaseItemProps[] = [];@@ -223,7 +233,10 @@ export class FindModal extends Component<IProps, IState> {) : null}</div>{hideAdvanced ? (- <p style={{ display: hideAdvanced ? 'block' : 'none' }} onClick={() => this.handleHideAdvanced(false)}>+ <p+ style={{ display: hideAdvanced ? 'block' : 'none' }}+ onClick={() => this.handleHideAdvanced(false)}+ ><CustomLabel label="find.replace" />/<CustomLabel label="find.advanced" /><Icon.Format.NextIcon /></p>@@ -239,12 +252,19 @@ export class FindModal extends Component<IProps, IState> {<span><CustomLabel label="find.search" /></span>- <Select onClick={this.selectSearch.bind(this)} type={0} children={this.getSelect()}></Select>+ <Select+ onClick={this.selectSearch.bind(this)}+ type={0}+ children={this.getSelect()}+ ></Select>{showRange ? <CellRange /> : null}</div><div className={styles.box}><span></span>- <CheckboxGroup options={this.getMatchGroup()} onChange={this.handleChange.bind(this)}></CheckboxGroup>+ <CheckboxGroup+ options={this.getMatchGroup()}+ onChange={this.handleChange.bind(this)}+ ></CheckboxGroup></div><div className={styles.buttonGroup}><Button type="primary">diff --git a/packages/sheets-plugin-find/src/View/UI/SearchContent.tsx b/packages/sheets-plugin-find/src/View/UI/SearchContent.tsxindex 2acd757c79..cc7434a869 100644--- a/packages/sheets-plugin-find/src/View/UI/SearchContent.tsx+++ b/packages/sheets-plugin-find/src/View/UI/SearchContent.tsx@@ -1,5 +1,5 @@-import { Component } from 'react';import { Nullable } from '@univerjs/core';+import { Component } from 'react';interface SearchProps {config: any;@@ -25,7 +25,6 @@ type LabelProps = {};export class SearchContent extends Component<SearchProps, SearchState> {-// initialize() {// this.state = {// tab: [],diff --git a/packages/sheets-plugin-formula/src/Basics/Register/FormulaCellEditExtension.ts b/packages/sheets-plugin-formula/src/Basics/Register/FormulaCellEditExtension.tsindex 288c58ed3f..d08f066c6a 100644--- a/packages/sheets-plugin-formula/src/Basics/Register/FormulaCellEditExtension.ts+++ b/packages/sheets-plugin-formula/src/Basics/Register/FormulaCellEditExtension.ts@@ -65,7 +65,9 @@ export class FormulaCellEditExtensionFactory extends BaseCellEditExtensionFactorconst value = rowArray[Number(cellColumn)];if (Number(cellRow) === row && Number(cellColumn) === column) {// Get the content of the formula and convert it into a DOM structure- formula = this._formulaPromptController.cellInputHandler.functionHTMLGenerate(value.formula);+ formula = this._formulaPromptController.cellInputHandler.functionHTMLGenerate(+ value.formula+ );return false;}});diff --git a/packages/sheets-plugin-formula/src/Controller/CellInputHandler.ts b/packages/sheets-plugin-formula/src/Controller/CellInputHandler.tsindex d1e13757ae..c5096961d6 100644--- a/packages/sheets-plugin-formula/src/Controller/CellInputHandler.ts+++ b/packages/sheets-plugin-formula/src/Controller/CellInputHandler.ts@@ -146,9 +146,15 @@ export class CellInputHandler {// all browsers, except IE before version 9if (currSelection?.anchorNode instanceof HTMLElement && currSelection.anchorNode?.matches('div')) {const editorlen = $$('span', $editer).length;- _this.functionRangeIndex = [editorlen - 1, $$('span', $editer)[editorlen - 1].textContent.length];+ _this.functionRangeIndex = [+ editorlen - 1,+ $$('span', $editer)[editorlen - 1].textContent.length,+ ];} else {- _this.functionRangeIndex = [getNodeIndex(currSelection.anchorNode?.parentNode), currSelection.anchorOffset];+ _this.functionRangeIndex = [+ getNodeIndex(currSelection.anchorNode?.parentNode),+ currSelection.anchorOffset,+ ];}} else {// Internet Explorer before version 9@@ -231,7 +237,12 @@ export class CellInputHandler {return pfri;}if (p.length > n.length) {- if (p != null && v_a[i + 1] != null && v_a[i + 1].substr(0, 1) === '"' && (p.indexOf('{') > -1 || p.indexOf('}') > -1)) {+ if (+ p != null &&+ v_a[i + 1] != null &&+ v_a[i + 1].substr(0, 1) === '"' &&+ (p.indexOf('{') > -1 || p.indexOf('}') > -1)+ ) {pfri[0] += 1;pfri[1] = 1;}@@ -262,7 +273,12 @@ export class CellInputHandler {pfri[1] = 0;}} else if (p.length === n.length) {- if (v_a[i + 1] != null && (v_a[i + 1].substr(0, 1) === '"' || v_a[i + 1].substr(0, 1) === '{' || v_a[i + 1].substr(0, 1) === '}')) {+ if (+ v_a[i + 1] != null &&+ (v_a[i + 1].substr(0, 1) === '"' ||+ v_a[i + 1].substr(0, 1) === '{' ||+ v_a[i + 1].substr(0, 1) === '}')+ ) {pfri[0] += 1;pfri[1] = 1;} else if (p != null && p.length > 2 && p.substr(0, 1) === '"' && p.substr(p.length - 1, 1) === '"') {@@ -279,7 +295,12 @@ export class CellInputHandler {return pfri;} else if (p.length > n.length) {- if (v_a[i + 1] != null && (v_a[i + 1].substr(0, 1) === '"' || v_a[i + 1].substr(0, 1) === '{' || v_a[i + 1].substr(0, 1) === '}')) {+ if (+ v_a[i + 1] != null &&+ (v_a[i + 1].substr(0, 1) === '"' ||+ v_a[i + 1].substr(0, 1) === '{' ||+ v_a[i + 1].substr(0, 1) === '}')+ ) {pfri[0] += 1;pfri[1] = 1;}@@ -306,14 +327,35 @@ export class CellInputHandler {pfri[1] = 1;}} else if (p.length === n.length) {- if (vp_a[i + 1] != null && (vp_a[i + 1].substr(0, 1) === '"' || vp_a[i + 1].substr(0, 1) === '{' || vp_a[i + 1].substr(0, 1) === '}')) {+ if (+ vp_a[i + 1] != null &&+ (vp_a[i + 1].substr(0, 1) === '"' ||+ vp_a[i + 1].substr(0, 1) === '{' ||+ vp_a[i + 1].substr(0, 1) === '}')+ ) {pfri[1] = n.length;- } else if (v_a[i + 1] != null && v_a[i + 1].substr(0, 1) === '"' && (v_a[i + 1].substr(0, 1) === '{' || v_a[i + 1].substr(0, 1) === '}')) {+ } else if (+ v_a[i + 1] != null &&+ v_a[i + 1].substr(0, 1) === '"' &&+ (v_a[i + 1].substr(0, 1) === '{' || v_a[i + 1].substr(0, 1) === '}')+ ) {pfri[0] += 1;pfri[1] = 1;- } else if (n != null && n.substr(0, 1) === '"' && n.substr(n.length - 1, 1) === '"' && p.substr(0, 1) === '"' && p.substr(p.length - 1, 1) === ')') {+ } else if (+ n != null &&+ n.substr(0, 1) === '"' &&+ n.substr(n.length - 1, 1) === '"' &&+ p.substr(0, 1) === '"' &&+ p.substr(p.length - 1, 1) === ')'+ ) {pfri[1] = n.length;- } else if (n != null && n.substr(0, 1) === '{' && n.substr(n.length - 1, 1) === '}' && p.substr(0, 1) === '{' && p.substr(p.length - 1, 1) === ')') {+ } else if (+ n != null &&+ n.substr(0, 1) === '{' &&+ n.substr(n.length - 1, 1) === '}' &&+ p.substr(0, 1) === '{' &&+ p.substr(p.length - 1, 1) === ')'+ ) {pfri[1] = n.length;} else {pfri[0] = pfri[0] + vlen - vplen;@@ -331,7 +373,11 @@ export class CellInputHandler {} else if (v_a[i + 1] != null && /{.*?}/.test(v_a[i + 1])) {pfri[0] += 1;pfri[1] = v_a[i + 1].length;- } else if (p != null && v_a[i + 1].substr(0, 1) === '"' && (p.indexOf('{') > -1 || p.indexOf('}') > -1)) {+ } else if (+ p != null &&+ v_a[i + 1].substr(0, 1) === '"' &&+ (p.indexOf('{') > -1 || p.indexOf('}') > -1)+ ) {pfri[0] += 1;pfri[1] = 1;}@@ -446,7 +492,9 @@ export class CellInputHandler {str = '';} else if (s === ')' && matchConfig.squote === 0 && matchConfig.dquote === 0 && matchConfig.braces === 0) {matchConfig.bracket -= 1;- function_str += `${_this.functionHTML(str)}<span dir="auto" class="universheet-formula-text-rpar">)</span>`;+ function_str += `${_this.functionHTML(+ str+ )}<span dir="auto" class="universheet-formula-text-rpar">)</span>`;str = '';} else if (s === '{' && matchConfig.squote === 0 && matchConfig.dquote === 0) {str += '{';@@ -468,7 +516,9 @@ export class CellInputHandler {matchConfig.dquote += 1;if (str.length > 0) {- function_str += `${_this.functionHTML(str)}<span dir="auto" class="universheet-formula-text-string">"`;+ function_str += `${_this.functionHTML(+ str+ )}<span dir="auto" class="universheet-formula-text-string">"`;} else {function_str += `<span dir="auto" class="universheet-formula-text-string">"`;}@@ -482,16 +532,25 @@ export class CellInputHandler {matchConfig.squote = matchConfig.squote === 0 ? 1 : 0;} else if (s === ',' && matchConfig.squote === 0 && matchConfig.dquote === 0 && matchConfig.braces === 0) {// matchConfig.comma += 1;- function_str += `${_this.functionHTML(str)}<span dir="auto" class="universheet-formula-text-comma">,</span>`;+ function_str += `${_this.functionHTML(+ str+ )}<span dir="auto" class="universheet-formula-text-comma">,</span>`;str = '';} else if (s === '&' && matchConfig.squote === 0 && matchConfig.dquote === 0 && matchConfig.braces === 0) {if (str.length > 0) {- function_str += `${_this.functionHTML(str)}<span dir="auto" class="universheet-formula-text-calc">&</span>`;+ function_str += `${_this.functionHTML(+ str+ )}<span dir="auto" class="universheet-formula-text-calc">&</span>`;str = '';} else {function_str += '<span dir="auto" class="universheet-formula-text-calc">&</span>';}- } else if (s in _this.operatorjson && matchConfig.squote === 0 && matchConfig.dquote === 0 && matchConfig.braces === 0) {+ } else if (+ s in _this.operatorjson &&+ matchConfig.squote === 0 &&+ matchConfig.dquote === 0 &&+ matchConfig.braces === 0+ ) {let s_next = '';if (i + 1 < funcstack.length) {s_next = funcstack[i + 1];@@ -507,17 +566,25 @@ export class CellInputHandler {if (s + s_next in _this.operatorjson) {if (str.length > 0) {- function_str += `${_this.functionHTML(str)}<span dir="auto" class="universheet-formula-text-calc">${s}${s_next}</span>`;+ function_str += `${_this.functionHTML(+ str+ )}<span dir="auto" class="universheet-formula-text-calc">${s}${s_next}</span>`;str = '';} else {function_str += `<span dir="auto" class="universheet-formula-text-calc">${s}${s_next}</span>`;}i++;- } else if (!/[^0-9]/.test(s_next) && s === '-' && (s_pre === '(' || s_pre == null || s_pre === ',' || s_pre === ' ' || s_pre in _this.operatorjson)) {+ } else if (+ !/[^0-9]/.test(s_next) &&+ s === '-' &&+ (s_pre === '(' || s_pre == null || s_pre === ',' || s_pre === ' ' || s_pre in _this.operatorjson)+ ) {str += s;} else if (str.length > 0) {- function_str += `${_this.functionHTML(str)}<span dir="auto" class="universheet-formula-text-calc">${s}</span>`;+ function_str += `${_this.functionHTML(+ str+ )}<span dir="auto" class="universheet-formula-text-calc">${s}</span>`;str = '';} else {function_str += `<span dir="auto" class="universheet-formula-text-calc">${s}</span>`;@@ -529,9 +596,9 @@ export class CellInputHandler {if (i === funcstack.length - 1) {// function_str += str;if (_this.iscelldata(str.trim())) {- function_str += `<span class="universheet-formula-functionrange-cell" rangeindex="${_this.functionHTMLIndex}" dir="auto" style="color:${- LUCKY_COLOR[_this.functionHTMLIndex]- };">${str}</span>`;+ function_str += `<span class="universheet-formula-functionrange-cell" rangeindex="${+ _this.functionHTMLIndex+ }" dir="auto" style="color:${LUCKY_COLOR[_this.functionHTMLIndex]};">${str}</span>`;_this.functionHTMLIndex++;} else if (matchConfig.dquote > 0) {function_str += `${str}</span>`;@@ -544,13 +611,19 @@ export class CellInputHandler {let alltxt = '';if (arraystart > 0) {- alltxt += `<span dir="auto" class="universheet-formula-text-color">${str.substr(0, arraystart)}</span>`;+ alltxt += `<span dir="auto" class="universheet-formula-text-color">${str.substr(+ 0,+ arraystart+ )}</span>`;}alltxt += `<span dir="auto" style="color:#959a05" class="universheet-formula-text-array">${arraytxt}</span>`;if (arraystart + arraytxt.length < str.length) {- alltxt += `<span dir="auto" class="universheet-formula-text-color">${str.substr(arraystart + arraytxt.length, str.length)}</span>`;+ alltxt += `<span dir="auto" class="universheet-formula-text-color">${str.substr(+ arraystart + arraytxt.length,+ str.length+ )}</span>`;}function_str += alltxt;@@ -602,7 +675,8 @@ export class CellInputHandler {}return false;}- reg_cellRange = /^(((([a-zA-Z]+)|([$][a-zA-Z]+))(([0-9]+)|([$][0-9]+)))|((([a-zA-Z]+)|([$][a-zA-Z]+)))|((([0-9]+)|([$][0-9]+s))))$/g;+ reg_cellRange =+ /^(((([a-zA-Z]+)|([$][a-zA-Z]+))(([0-9]+)|([$][0-9]+)))|((([a-zA-Z]+)|([$][a-zA-Z]+)))|((([0-9]+)|([$][0-9]+s))))$/g;rangetxt = rangetxt.split(':');@@ -774,7 +848,10 @@ export class CellInputHandler {const $prev = currSelection;const $span = $editer.querySelectorAll('span');- const currentIndex = [].indexOf.call(currSelection.parentNode!.querySelectorAll(currSelection.tagName), currSelection as never);+ const currentIndex = [].indexOf.call(+ currSelection.parentNode!.querySelectorAll(currSelection.tagName),+ currSelection as never+ );// currentIndex = currSelection.parentNode.childNodes.length - 1,let i = currentIndex;@@ -792,7 +869,10 @@ export class CellInputHandler {while (--i > 0) {$cur = $span[`${i}`];- if ($cur.className === 'universheet-formula-text-func' || $cur.textContent!.trim().toUpperCase() in _this.functionlistPosition) {+ if (+ $cur.className === 'universheet-formula-text-func' ||+ $cur.textContent!.trim().toUpperCase() in _this.functionlistPosition+ ) {funcName = $cur.textContent;paramindex = null;let endstate = true;diff --git a/packages/sheets-plugin-formula/src/Controller/FirstLoader.ts b/packages/sheets-plugin-formula/src/Controller/FirstLoader.tsindex 66d17747bf..17d284362b 100644--- a/packages/sheets-plugin-formula/src/Controller/FirstLoader.ts+++ b/packages/sheets-plugin-formula/src/Controller/FirstLoader.ts@@ -4,7 +4,12 @@ export function firstLoader(formulaController: FormulaController) {const dataModel = formulaController.getDataModel();const engine = formulaController.getFormulaEngine();- const sheetDataPromise = engine.execute(formulaController.getUnitId(), dataModel.getFormulaData(), formulaController.toInterpreterCalculateProps(), true);+ const sheetDataPromise = engine.execute(+ formulaController.getUnitId(),+ dataModel.getFormulaData(),+ formulaController.toInterpreterCalculateProps(),+ true+ );// const commandManager = formulaController.getCommandManager();diff --git a/packages/sheets-plugin-formula/src/Controller/SearchFormulaModalController.ts b/packages/sheets-plugin-formula/src/Controller/SearchFormulaModalController.tsindex 028904ec21..b7db1bc00e 100644--- a/packages/sheets-plugin-formula/src/Controller/SearchFormulaModalController.ts+++ b/packages/sheets-plugin-formula/src/Controller/SearchFormulaModalController.ts@@ -3,7 +3,14 @@ import { ISelection, ObserverManager } from '@univerjs/core';import { SheetContainerUIController } from '@univerjs/ui-plugin-sheets';import { Inject } from '@wendellhu/redi';-import { FORMULA_PLUGIN_NAME, FormulaType, FunList, FunParams, SearchFormulaModalData, SelectCategoryType } from '../Basics';+import {+ FORMULA_PLUGIN_NAME,+ FormulaType,+ FunList,+ FunParams,+ SearchFormulaModalData,+ SelectCategoryType,+} from '../Basics';import { SearchFormulaContent } from '../View/UI/SearchFormulaModal/SearchFormulaContent';import { SearchFormulaModal } from '../View/UI/SearchFormulaModal/SearchFormulaModal';import { SearchItem } from '../View/UI/SearchFormulaModal/SearchItem';@@ -136,14 +143,16 @@ export class SearchFormulaController {}private _initRegisterComponent() {- this._sheetContainerUIController.getMainSlotController().addSlot(FORMULA_PLUGIN_NAME + SearchFormulaModal.name, {- component: SearchFormulaModal,- props: {- getComponent: (ref: SearchFormulaModal) => {- this._formulaModal = ref;+ this._sheetContainerUIController+ .getMainSlotController()+ .addSlot(FORMULA_PLUGIN_NAME + SearchFormulaModal.name, {+ component: SearchFormulaModal,+ props: {+ getComponent: (ref: SearchFormulaModal) => {+ this._formulaModal = ref;+ },},- },- });+ });this._componentManager.register(FORMULA_PLUGIN_NAME + SearchItem.name, SearchItem);this._componentManager.register(FORMULA_PLUGIN_NAME + SearchFormulaContent.name, SearchFormulaContent);}diff --git a/packages/sheets-plugin-formula/src/Locale/en.ts b/packages/sheets-plugin-formula/src/Locale/en.tsindex 17eead579a..512b455903 100644--- a/packages/sheets-plugin-formula/src/Locale/en.ts+++ b/packages/sheets-plugin-formula/src/Locale/en.ts@@ -272,7 +272,8 @@ export default {execfunctionError: 'Error in the formula',execfunctionSelfError: 'The formula cannot refer to its own cell',- execfunctionSelfErrorResult: 'The formula cannot refer to its own cell, which will lead to inaccurate calculation results',+ execfunctionSelfErrorResult:+ 'The formula cannot refer to its own cell, which will lead to inaccurate calculation results',allowRepeatText: 'Repeat',allowOptionText: 'Option',diff --git "a/packages/sheets-plugin-formula/src/Locale/en\345\244\207\344\273\275.ts" "b/packages/sheets-plugin-formula/src/Locale/en\345\244\207\344\273\275.ts"index 6364b07893..8d6d45aefa 100644--- "a/packages/sheets-plugin-formula/src/Locale/en\345\244\207\344\273\275.ts"+++ "b/packages/sheets-plugin-formula/src/Locale/en\345\244\207\344\273\275.ts"@@ -10540,7 +10540,8 @@ export default {execfunctionError: 'Error in the formula',execfunctionSelfError: 'The formula cannot refer to its own cell',- execfunctionSelfErrorResult: 'The formula cannot refer to its own cell, which will lead to inaccurate calculation results',+ execfunctionSelfErrorResult:+ 'The formula cannot refer to its own cell, which will lead to inaccurate calculation results',allowRepeatText: 'Repeat',allowOptionText: 'Option',diff --git a/packages/sheets-plugin-formula/src/Model/Action/SetFormulaRangeDataAction.ts b/packages/sheets-plugin-formula/src/Model/Action/SetFormulaRangeDataAction.tsindex b364609985..2b729a8235 100644--- a/packages/sheets-plugin-formula/src/Model/Action/SetFormulaRangeDataAction.ts+++ b/packages/sheets-plugin-formula/src/Model/Action/SetFormulaRangeDataAction.ts@@ -8,7 +8,11 @@ export interface ISetFormulaRangeActionData extends ISheetActionData {formulaData: FormulaDataType;}-export class SetFormulaRangeDataAction extends SheetActionBase<ISetFormulaRangeActionData, ISetFormulaRangeActionData, FormulaDataType> {+export class SetFormulaRangeDataAction extends SheetActionBase<+ ISetFormulaRangeActionData,+ ISetFormulaRangeActionData,+ FormulaDataType+> {constructor(actionData: ISetFormulaRangeActionData, commandUnit: CommandUnit, observers: ActionObservers) {super(actionData, commandUnit, observers);this._doActionData = {diff --git a/packages/sheets-plugin-formula/src/Model/Apply/SetFormulaRangeData.ts b/packages/sheets-plugin-formula/src/Model/Apply/SetFormulaRangeData.tsindex 0a2ba9c3cf..88578a029a 100644--- a/packages/sheets-plugin-formula/src/Model/Apply/SetFormulaRangeData.ts+++ b/packages/sheets-plugin-formula/src/Model/Apply/SetFormulaRangeData.ts@@ -3,7 +3,11 @@ import { Tools, Workbook } from '@univerjs/core';import { FormulaController } from '../../Controller/FormulaController';-export function SetFormulaRangeData(workbook: Workbook, formulaData: FormulaDataType, _formulaController: FormulaController): FormulaDataType {+export function SetFormulaRangeData(+ workbook: Workbook,+ formulaData: FormulaDataType,+ _formulaController: FormulaController+): FormulaDataType {const formulaDataModel = _formulaController.getDataModel();// store old resultdiff --git a/packages/sheets-plugin-formula/src/View/UI/FormulaLabel.tsx b/packages/sheets-plugin-formula/src/View/UI/FormulaLabel.tsxindex 00ec592a87..f75aa79e23 100644--- a/packages/sheets-plugin-formula/src/View/UI/FormulaLabel.tsx+++ b/packages/sheets-plugin-formula/src/View/UI/FormulaLabel.tsx@@ -6,7 +6,6 @@ interface IProps {}export class FormulaLabel extends Component<IProps> {-render() {// const SumIcon = this._render.renderFunction('SumIcon');const { label } = this.props;diff --git a/packages/sheets-plugin-formula/src/View/UI/FormulaPrompt/HelpFunction.tsx b/packages/sheets-plugin-formula/src/View/UI/FormulaPrompt/HelpFunction.tsxindex 9c65aa2eed..718a0f08a1 100644--- a/packages/sheets-plugin-formula/src/View/UI/FormulaPrompt/HelpFunction.tsx+++ b/packages/sheets-plugin-formula/src/View/UI/FormulaPrompt/HelpFunction.tsx@@ -1,6 +1,7 @@import { BaseComponentProps, CustomLabel } from '@univerjs/base-ui';-import { Component, createRef } from 'react';import { IKeyValue } from '@univerjs/core';+import { Component, createRef } from 'react';+import { FormulaParamType, FormulaType } from '../../../Basics';import styles from './index.module.less';@@ -45,7 +46,13 @@ export class HelpFunction extends Component<IProps, IState> {this.props.getComponent?.(this);}- updateState(helpFormulaActive: boolean, activeIndex: number = 0, functionInfo: FormulaType = {}, position = { left: 0, top: 0 }, cb?: () => void) {+ updateState(+ helpFormulaActive: boolean,+ activeIndex: number = 0,+ functionInfo: FormulaType = {},+ position = { left: 0, top: 0 },+ cb?: () => void+ ) {this.setState({helpFormulaActive,@@ -71,7 +78,12 @@ export class HelpFunction extends Component<IProps, IState> {return (<divclassName={styles.helpFunction}- style={{ display: helpFormulaActive ? 'block' : 'none', position: 'absolute', left: `${position.left}px`, top: `${position.top}px` }}+ style={{+ display: helpFormulaActive ? 'block' : 'none',+ position: 'absolute',+ left: `${position.left}px`,+ top: `${position.top}px`,+ }}ref={this.contentRef}><div className={styles.helpFunctionTitle}>diff --git a/packages/sheets-plugin-formula/src/View/UI/FormulaPrompt/SearchFunction.tsx b/packages/sheets-plugin-formula/src/View/UI/FormulaPrompt/SearchFunction.tsxindex cbca8aeed6..e003fad34a 100644--- a/packages/sheets-plugin-formula/src/View/UI/FormulaPrompt/SearchFunction.tsx+++ b/packages/sheets-plugin-formula/src/View/UI/FormulaPrompt/SearchFunction.tsx@@ -1,6 +1,7 @@import { BaseComponentProps, CustomLabel } from '@univerjs/base-ui';-import { Component, createRef } from 'react';import { IKeyValue } from '@univerjs/core';+import { Component, createRef } from 'react';+import styles from './index.module.less';interface IProps extends BaseComponentProps {}@@ -61,7 +62,13 @@ export class SearchFunction extends Component<IProps, IState> {* @param formula* @param selectIndex*/- updateState(searchActive: boolean, formula: IKeyValue[] = [], selectIndex: number = 0, position = { left: 0, top: 0 }, cb?: () => void) {+ updateState(+ searchActive: boolean,+ formula: IKeyValue[] = [],+ selectIndex: number = 0,+ position = { left: 0, top: 0 },+ cb?: () => void+ ) {this.setState({ searchActive, formula, selectIndex, position }, cb);}@@ -75,7 +82,12 @@ export class SearchFunction extends Component<IProps, IState> {<ulclassName={styles.searchFunction}onKeyDown={this.onKeyDown.bind(this)}- style={{ display: searchActive ? 'block' : 'none', position: 'absolute', left: `${position.left}px`, top: `${position.top}px` }}+ style={{+ display: searchActive ? 'block' : 'none',+ position: 'absolute',+ left: `${position.left}px`,+ top: `${position.top}px`,+ }}ref={this.contentRef}>{formula.map((item: any, i: number) => (diff --git a/packages/sheets-plugin-formula/src/View/UI/IfGenerate/ifGenerate.tsx b/packages/sheets-plugin-formula/src/View/UI/IfGenerate/ifGenerate.tsxindex 73c44fc5d1..b9a568fd31 100644--- a/packages/sheets-plugin-formula/src/View/UI/IfGenerate/ifGenerate.tsx+++ b/packages/sheets-plugin-formula/src/View/UI/IfGenerate/ifGenerate.tsx@@ -1,6 +1,16 @@-import { BaseButtonProps, BaseModalProps, BaseSelectProps, FunctionComponent, Button, Modal, Select, AppContext } from '@univerjs/base-ui';-import { Component } from 'react';+import {+ AppContext,+ BaseButtonProps,+ BaseModalProps,+ BaseSelectProps,+ Button,+ FunctionComponent,+ Modal,+ Select,+} from '@univerjs/base-ui';import { Nullable, Observer, Workbook } from '@univerjs/core';+import { Component } from 'react';+import { IConfig } from '../../../Basics/Interfaces/IFormula';import styles from './index.module.less';@@ -48,16 +58,20 @@ class IfGenerate extends Component<IProps, IState> {*/override UNSAFE_componentWillMount() {this.setLocale();- this._localeObserver = this.context.observerManager.requiredObserver('onAfterChangeUILocaleObservable', 'core')?.add(() => {- this.setLocale();- });+ this._localeObserver = this.context.observerManager+ .requiredObserver('onAfterChangeUILocaleObservable', 'core')+ ?.add(() => {+ this.setLocale();+ });}/*** destory*/override componentWillUnmount() {- this.context.observerManager.requiredObserver('onAfterChangeUILocaleObservable', 'core')?.remove(this._localeObserver);+ this.context.observerManager+ .requiredObserver('onAfterChangeUILocaleObservable', 'core')+ ?.remove(this._localeObserver);}setLocale() {@@ -69,7 +83,14 @@ class IfGenerate extends Component<IProps, IState> {render() {const { locale } = this.state;return (- <Modal title={locale.formula.if} width={320} isDrag={true} footer={false} visible={this.props.visible} onCancel={this.props.onCancel}>+ <Modal+ title={locale.formula.if}+ width={320}+ isDrag={true}+ footer={false}+ visible={this.props.visible}+ onCancel={this.props.onCancel}+ ><div className={styles.ifGenerate}><div><div className={styles.label}>{locale.ifFormula.ifGenCompareValueTitle}</div>@@ -106,7 +127,16 @@ class IfGenerate extends Component<IProps, IState> {<input type="text" /></div></div>- <div style={{ textAlign: 'center', backgroundColor: '#1890ff', color: '#fff', fontSize: '14px', padding: '5px', borderRadius: '3px' }}>+ <div+ style={{+ textAlign: 'center',+ backgroundColor: '#1890ff',+ color: '#fff',+ fontSize: '14px',+ padding: '5px',+ borderRadius: '3px',+ }}+ >{locale.ifFormula.ifGenCutSame}</div></div>diff --git a/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchFormulaContent.tsx b/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchFormulaContent.tsxindex 0a047cb908..5a88d8d425 100644--- a/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchFormulaContent.tsx+++ b/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchFormulaContent.tsx@@ -1,5 +1,6 @@-import { BaseComponentProps, debounce, Input, Select, CustomLabel } from '@univerjs/base-ui';+import { BaseComponentProps, CustomLabel, debounce, Input, Select } from '@univerjs/base-ui';import { Component, createRef } from 'react';+import { FormulaType, FunListILabel, Label } from '../../../Basics';import styles from './index.module.less';@@ -128,7 +129,9 @@ export class SearchFormulaContent extends Component<IProps, IState> {<CustomLabel label="formula.formulaMore.findFunctionTitle" />;</div><Input- placeholder={(<CustomLabel label="formula.formulaMore.tipInputFunctionName" />) as unknown as string}+ placeholder={+ (<CustomLabel label="formula.formulaMore.tipInputFunctionName" />) as unknown as string+ }onChange={debounce(this.changeInput.bind(this), 50)}/></div>@@ -137,7 +140,12 @@ export class SearchFormulaContent extends Component<IProps, IState> {<CustomLabel label="formula.formulaMore.selectCategory" /></div><div className={styles.functionSelector}>- <Select onClick={this.selectType.bind(this)} type={0} children={this.getSelect()} hideSelectedIcon={true}></Select>+ <Select+ onClick={this.selectType.bind(this)}+ type={0}+ children={this.getSelect()}+ hideSelectedIcon={true}+ ></Select></div></div><div className={styles.functionList} ref={this.functionListRef}>@@ -146,7 +154,11 @@ export class SearchFormulaContent extends Component<IProps, IState> {</div><ul className={styles.functionLists}>{functionList?.map((item, index) => (- <li key={index} className={`${styles.functionListsItem}`} onClick={() => this.handleClick(item, index)}>+ <li+ key={index}+ className={`${styles.functionListsItem}`}+ onClick={() => this.handleClick(item, index)}+ ><div className={styles.functionListsItemName}>{item.n}</div><div className={styles.functionListsItemDetail}>{item.d}</div></li>diff --git a/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchFormulaModal.tsx b/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchFormulaModal.tsxindex d7f3297c56..1828867279 100644--- a/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchFormulaModal.tsx+++ b/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchFormulaModal.tsx@@ -1,5 +1,6 @@import { BaseComponentProps, Modal } from '@univerjs/base-ui';import { Component } from 'react';+import { SearchFormulaModalData } from '../../../Basics/Interfaces/IFormula';interface IProps extends BaseComponentProps {}@@ -48,7 +49,15 @@ export class SearchFormulaModal extends Component<IProps, IState> {{modalData.map((item, index) => {if (!item.show) return;return (- <Modal key={index} isDrag={true} mask={item.mask} title={item.label?.funParams.n} visible={item.show} group={item.group} onCancel={item.onCancel}>+ <Modal+ key={index}+ isDrag={true}+ mask={item.mask}+ title={item.label?.funParams.n}+ visible={item.show}+ group={item.group}+ onCancel={item.onCancel}+ >{item.modal}</Modal>);diff --git a/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchItem.tsx b/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchItem.tsxindex da8ffe9179..7202e7caef 100644--- a/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchItem.tsx+++ b/packages/sheets-plugin-formula/src/View/UI/SearchFormulaModal/SearchItem.tsx@@ -1,5 +1,6 @@import { BaseComponentProps, CellRange, CustomLabel } from '@univerjs/base-ui';import { Component } from 'react';+import { FormulaParamType, FunParams } from '../../../Basics';import styles from './index.module.less';@@ -68,8 +69,16 @@ export class SearchItem extends Component<IProps, IState> {<span>{item.name}:</span><div onClick={() => this.handleClick(index)}><CellRange- contentPlaceholder={(<CustomLabel label="formula.formulaMore.tipDataRangeTitle" />) as unknown as string}- title={(<CustomLabel label="formula.formulaMore.tipSelectDataRange" />) as unknown as string}+ contentPlaceholder={+ (+ <CustomLabel label="formula.formulaMore.tipDataRangeTitle" />+ ) as unknown as string+ }+ title={+ (+ <CustomLabel label="formula.formulaMore.tipSelectDataRange" />+ ) as unknown as string+ }value={rangeList[index]}/></div>diff --git a/packages/sheets-plugin-image/src/Controller/CellImageController.ts b/packages/sheets-plugin-image/src/Controller/CellImageController.tsindex f40e493a8a..3319f4a10a 100644--- a/packages/sheets-plugin-image/src/Controller/CellImageController.ts+++ b/packages/sheets-plugin-image/src/Controller/CellImageController.ts@@ -2,7 +2,9 @@ import { SheetContainerUIController } from '@univerjs/ui-plugin-sheets';import { Inject } from '@wendellhu/redi';export class CellImageController {- constructor(@Inject(SheetContainerUIController) private readonly _sheetContainerUIController: SheetContainerUIController) {+ constructor(+ @Inject(SheetContainerUIController) private readonly _sheetContainerUIController: SheetContainerUIController+ ) {// TODO ...}}diff --git a/packages/sheets-plugin-image/src/ImagePlugin.tsx b/packages/sheets-plugin-image/src/ImagePlugin.tsxindex b09db076a9..8c5dd61181 100644--- a/packages/sheets-plugin-image/src/ImagePlugin.tsx+++ b/packages/sheets-plugin-image/src/ImagePlugin.tsx@@ -49,7 +49,12 @@ export class ImagePlugin extends Plugin {}private _initializeDependencies(sheetInjector: Injector) {- const dependencies: Dependency[] = [[OverGridImageController], [CellImageController], [OverImageRender], [UploadService]];+ const dependencies: Dependency[] = [+ [OverGridImageController],+ [CellImageController],+ [OverImageRender],+ [UploadService],+ ];dependencies.forEach((d) => {sheetInjector.add(d);});diff --git a/packages/sheets-plugin-image/src/Model/Action/AddOverGridImageAction.ts b/packages/sheets-plugin-image/src/Model/Action/AddOverGridImageAction.tsindex f7395904d1..de69217f95 100644--- a/packages/sheets-plugin-image/src/Model/Action/AddOverGridImageAction.ts+++ b/packages/sheets-plugin-image/src/Model/Action/AddOverGridImageAction.ts@@ -18,7 +18,10 @@ export interface IAddOverGridImageActionData extends ISheetActionData {borderWidth: number;}-export class AddOverGridImageAction extends SheetActionBase<IAddOverGridImageActionData, IRemoveOverGridImageActionData> {+export class AddOverGridImageAction extends SheetActionBase<+ IAddOverGridImageActionData,+ IRemoveOverGridImageActionData+> {static NAME = 'AddImagePropertyAction';constructor(actionData: IAddOverGridImageActionData, commandUnit: CommandUnit, observers: ActionObservers) {diff --git a/packages/sheets-plugin-image/src/Model/Action/RemoveOverGridImageAction.ts b/packages/sheets-plugin-image/src/Model/Action/RemoveOverGridImageAction.tsindex 8cafafb051..73b3b9d502 100644--- a/packages/sheets-plugin-image/src/Model/Action/RemoveOverGridImageAction.ts+++ b/packages/sheets-plugin-image/src/Model/Action/RemoveOverGridImageAction.ts@@ -7,7 +7,10 @@ export interface IRemoveOverGridImageActionData extends ISheetActionData {id: string;}-export class RemoveOverGridImageAction extends SheetActionBase<IRemoveOverGridImageActionData, IAddOverGridImageActionData> {+export class RemoveOverGridImageAction extends SheetActionBase<+ IRemoveOverGridImageActionData,+ IAddOverGridImageActionData+> {static NAME = 'RemoveOverGridImageAction';constructor(actionData: IRemoveOverGridImageActionData, commandUnit: CommandUnit, observers: ActionObservers) {diff --git a/packages/sheets-plugin-image/src/Model/Action/SetOverGridImageTypeAction.ts b/packages/sheets-plugin-image/src/Model/Action/SetOverGridImageTypeAction.tsindex 30af46dc21..1b5bdf49d1 100644--- a/packages/sheets-plugin-image/src/Model/Action/SetOverGridImageTypeAction.ts+++ b/packages/sheets-plugin-image/src/Model/Action/SetOverGridImageTypeAction.ts@@ -30,7 +30,12 @@ export class SetImageTypeAction extends SheetActionBase<ISetImageTypeData, ISetIconst context = worksheet.getContext();const manager = context.getPluginManager();const plugin = manager.getPluginByName(OVER_GRID_IMAGE_PLUGIN_NAME) as OverGridImagePlugin;- return SetOverGridImageTypeApply(plugin, this._doActionData.sheetId, this._doActionData.id, this._doActionData.type);+ return SetOverGridImageTypeApply(+ plugin,+ this._doActionData.sheetId,+ this._doActionData.id,+ this._doActionData.type+ );}undo(): void {@@ -38,7 +43,12 @@ export class SetImageTypeAction extends SheetActionBase<ISetImageTypeData, ISetIconst context = worksheet.getContext();const manager = context.getPluginManager();const plugin = manager.getPluginByName(OVER_GRID_IMAGE_PLUGIN_NAME) as OverGridImagePlugin;- SetOverGridImageTypeApply(plugin, this._oldActionData.sheetId, this._oldActionData.id, this._oldActionData.type);+ SetOverGridImageTypeApply(+ plugin,+ this._oldActionData.sheetId,+ this._oldActionData.id,+ this._oldActionData.type+ );}validate(): boolean {diff --git a/packages/sheets-plugin-image/src/View/Render/OverImageRender.ts b/packages/sheets-plugin-image/src/View/Render/OverImageRender.tsindex df4e95627d..20c3f3a1bd 100644--- a/packages/sheets-plugin-image/src/View/Render/OverImageRender.ts+++ b/packages/sheets-plugin-image/src/View/Render/OverImageRender.ts@@ -10,7 +10,10 @@ export class OverImageRender {private _mainScene: Scene;- constructor(@Inject(Injector) readonly _injector: Injector, @Inject(ObserverManager) private _observerManager: ObserverManager) {+ constructor(+ @Inject(Injector) readonly _injector: Injector,+ @Inject(ObserverManager) private _observerManager: ObserverManager+ ) {const engine = _injector.get(IRenderingEngine);this._mainScene = engine.getScene('mainScene') as Scene;if (this._mainScene == null) {diff --git a/packages/sheets-plugin-image/src/View/Render/OverImageShape.ts b/packages/sheets-plugin-image/src/View/Render/OverImageShape.tsindex ae80a17dd6..59683fc36b 100644--- a/packages/sheets-plugin-image/src/View/Render/OverImageShape.ts+++ b/packages/sheets-plugin-image/src/View/Render/OverImageShape.ts@@ -10,7 +10,17 @@ export class OverImageShape extends Picture {this._property = property;}- static drawRoundRect(ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, tl: number, tr: number, bl: number, br: number) {+ static drawRoundRect(+ ctx: CanvasRenderingContext2D,+ x: number,+ y: number,+ width: number,+ height: number,+ tl: number,+ tr: number,+ bl: number,+ br: number+ ) {ctx.beginPath();ctx.moveTo(x + tl, y);ctx.lineTo(x + width - tr, y);diff --git a/packages/sheets-plugin-image/src/View/UI/ImagePanel/ImagePanelUI.tsx b/packages/sheets-plugin-image/src/View/UI/ImagePanel/ImagePanelUI.tsxindex 6142290d1d..626ba89c61 100644--- a/packages/sheets-plugin-image/src/View/UI/ImagePanel/ImagePanelUI.tsx+++ b/packages/sheets-plugin-image/src/View/UI/ImagePanel/ImagePanelUI.tsx@@ -1,5 +1,6 @@import { ColorPickerCircleButton, SiderModal } from '@univerjs/base-ui';import { Component, VNode } from 'react';+import { BorderType, NormalType } from '../../../Basics';import Style from './ImagePanelUI.module.less';@@ -25,7 +26,9 @@ export class ImagePanelUI extends Component<ImagePanelUIProps> {}initialize(props: ImagePanelUIProps) {- const imagePlugin = this.getContext().getPluginManager().getPluginByName<OverGridImagePlugin>(OVER_GRID_IMAGE_PLUGIN_NAME)!;+ const imagePlugin = this.getContext()+ .getPluginManager()+ .getPluginByName<OverGridImagePlugin>(OVER_GRID_IMAGE_PLUGIN_NAME)!;this.state = {};imagePlugin.getObserver('onActiveImage')!.add((data) => {this._width = data.width;diff --git a/packages/sheets-plugin-image/src/main.tsx b/packages/sheets-plugin-image/src/main.tsxindex 63c9d2a407..53b8d2fe1f 100644--- a/packages/sheets-plugin-image/src/main.tsx+++ b/packages/sheets-plugin-image/src/main.tsx@@ -1,7 +1,7 @@-import { UniverSheet } from '@univerjs/core';import { RenderEngine } from '@univerjs/base-render';-import { DEFAULT_WORKBOOK_DATA } from '@univerjs/common-plugin-data';import { SheetPlugin } from '@univerjs/base-sheets';+import { DEFAULT_WORKBOOK_DATA } from '@univerjs/common-plugin-data';+import { UniverSheet } from '@univerjs/core';const uiDefaultConfigUp = {container: 'universheet-demo-up',diff --git a/packages/sheets-plugin-import-xlsx/src/Basics/Register/DragAndDropExtension.ts b/packages/sheets-plugin-import-xlsx/src/Basics/Register/DragAndDropExtension.tsindex 04b513d9b4..2532821255 100644--- a/packages/sheets-plugin-import-xlsx/src/Basics/Register/DragAndDropExtension.ts+++ b/packages/sheets-plugin-import-xlsx/src/Basics/Register/DragAndDropExtension.ts@@ -4,7 +4,10 @@ import { Inject, Injector } from '@wendellhu/redi';import { ImportXlsxController } from '../../Controller/ImportXlsxController';export class DragAndDropExtension extends BaseDragAndDropExtension {- constructor(data: File[], @Inject(ImportXlsxController) private readonly _importXlsxController: ImportXlsxController) {+ constructor(+ data: File[],+ @Inject(ImportXlsxController) private readonly _importXlsxController: ImportXlsxController+ ) {super(data);}diff --git a/packages/sheets-plugin-import-xlsx/src/ImportXlsxPlugin.tsx b/packages/sheets-plugin-import-xlsx/src/ImportXlsxPlugin.tsxindex 5f528587a6..8be73264d9 100644--- a/packages/sheets-plugin-import-xlsx/src/ImportXlsxPlugin.tsx+++ b/packages/sheets-plugin-import-xlsx/src/ImportXlsxPlugin.tsx@@ -16,7 +16,11 @@ export class ImportXlsxPlugin extends Plugin<any> {private _dragAndDropExtensionFactory: DragAndDropExtensionFactory;- constructor(config: IImportXlsxPluginConfig, @Inject(Injector) override readonly _injector: Injector, @Inject(LocaleService) private readonly _localeService: LocaleService) {+ constructor(+ config: IImportXlsxPluginConfig,+ @Inject(Injector) override readonly _injector: Injector,+ @Inject(LocaleService) private readonly _localeService: LocaleService+ ) {super(IMPORT_XLSX_PLUGIN_NAME);}diff --git a/packages/sheets-plugin-numfmt/src/Controller/NumfmtController.ts b/packages/sheets-plugin-numfmt/src/Controller/NumfmtController.tsindex bd538be312..41a7ccd781 100644--- a/packages/sheets-plugin-numfmt/src/Controller/NumfmtController.ts+++ b/packages/sheets-plugin-numfmt/src/Controller/NumfmtController.ts@@ -1,5 +1,13 @@import { ComponentManager, IMenuService } from '@univerjs/base-ui';-import { Disposable, ICommandService, ICurrentUniverService, ISelectionRange, ObjectMatrix, ObjectMatrixPrimitiveType, Range } from '@univerjs/core';+import {+ Disposable,+ ICommandService,+ ICurrentUniverService,+ ISelectionRange,+ ObjectMatrix,+ ObjectMatrixPrimitiveType,+ Range,+} from '@univerjs/core';import { Inject, Injector } from '@wendellhu/redi';import { NUMFMT_PLUGIN_NAME } from '../Basics/Const';@@ -94,7 +102,9 @@ export class NumfmtController extends Disposable {this._initializeContextMenu();- [ShowModalOperation, SetNumfmtRangeDataCommand].forEach((command) => this.disposeWithMe(this._commandService.registerCommand(command)));+ [ShowModalOperation, SetNumfmtRangeDataCommand].forEach((command) =>+ this.disposeWithMe(this._commandService.registerCommand(command))+ );}getNumfmtBySheetIdConfig(sheetId: string): ObjectMatrixPrimitiveType<string> {diff --git a/packages/sheets-plugin-numfmt/src/Model/index.ts b/packages/sheets-plugin-numfmt/src/Model/index.tsindex 4e89b98eb2..6d58261146 100644--- a/packages/sheets-plugin-numfmt/src/Model/index.ts+++ b/packages/sheets-plugin-numfmt/src/Model/index.ts@@ -1,3 +1,2 @@-export * from './Action';export * from './Apply';export * from './NumfmtModel';diff --git a/packages/sheets-plugin-numfmt/src/View/UI/NumfmtModal.tsx b/packages/sheets-plugin-numfmt/src/View/UI/NumfmtModal.tsxindex 198bcf578a..68e31a3b3e 100644--- a/packages/sheets-plugin-numfmt/src/View/UI/NumfmtModal.tsx+++ b/packages/sheets-plugin-numfmt/src/View/UI/NumfmtModal.tsx@@ -1,7 +1,8 @@-import { BaseComponentProps} from '@univerjs/base-ui';-import { Component } from 'react';import { SheetPlugin } from '@univerjs/base-sheets';+import { BaseComponentProps } from '@univerjs/base-ui';import { PLUGIN_NAMES } from '@univerjs/core';+import { Component } from 'react';+import { NUMFMT_PLUGIN_NAME } from '../../Basics/Const';import { ModalDataProps } from '../../Controller/NumfmtModalController';import { NumfmtPlugin } from '../../NumfmtPlugin';@@ -13,14 +14,12 @@ interface IState {}export class NumfmtModal extends Component<IProps, IState> {-constructor(props: IProps) {super(props);this.initialize(props);}initialize(props: IProps): void {-this.state = {modalData: [],};@@ -32,7 +31,9 @@ export class NumfmtModal extends Component<IProps, IState> {}setModal(modalData: ModalDataProps[]): void {- const SheetPlugin: SheetPlugin = this.getContext().getPluginManager().getPluginByName<SheetPlugin>(PLUGIN_NAMES.SPREADSHEET)!;+ const SheetPlugin: SheetPlugin = this.getContext()+ .getPluginManager()+ .getPluginByName<SheetPlugin>(PLUGIN_NAMES.SPREADSHEET)!;modalData.forEach((item): void => {const Label = this.context.componentManager.get(item.children.name);if (Label) {diff --git a/packages/sheets-plugin-operation/src/Domain/Clipboard.ts b/packages/sheets-plugin-operation/src/Domain/Clipboard.tsindex c64fc69d6b..015dac0215 100644--- a/packages/sheets-plugin-operation/src/Domain/Clipboard.ts+++ b/packages/sheets-plugin-operation/src/Domain/Clipboard.ts@@ -88,12 +88,14 @@ export class Clipboard {} else {reader.readAsText(blob);}- const promise: Promise<PasteType | null> = new Promise((resolve: (value: PasteType) => void, reject) => {- reader.onload = (e) => {- const item: PasteType = { type, result: reader.result };- resolve(item);- };- }).then(+ const promise: Promise<PasteType | null> = new Promise(+ (resolve: (value: PasteType) => void, reject) => {+ reader.onload = (e) => {+ const item: PasteType = { type, result: reader.result };+ resolve(item);+ };+ }+ ).then((res) => res,() => null);diff --git a/packages/sheets-plugin-operation/src/Domain/Copy.ts b/packages/sheets-plugin-operation/src/Domain/Copy.tsindex 26e8ec0e28..38fba0b44d 100644--- a/packages/sheets-plugin-operation/src/Domain/Copy.ts+++ b/packages/sheets-plugin-operation/src/Domain/Copy.ts@@ -325,17 +325,27 @@ export class UniverCopy extends Copy {// }if (cellValue && cellValue.s) {- const cellStyle = this._currentUniverService.getCurrentUniverSheetInstance().getWorkBook().getStyles().getStyleByCell(cellValue);+ const cellStyle = this._currentUniverService+ .getCurrentUniverSheetInstance()+ .getWorkBook()+ .getStyles()+ .getStyleByCell(cellValue);// const cellStyle = this.getContext().getWorkBook().getStyles().get(cellValue.s);if (cellStyle) {style += handleStyleToString(cellStyle);}}- const cellRange = this._selectionManagerService.transformCellDataToSelectionData(r, c, mergeData)?.cellRange;+ const cellRange = this._selectionManagerService.transformCellDataToSelectionData(+ r,+ c,+ mergeData+ )?.cellRange;if (cellRange?.isMerged || (!cellRange?.isMerged && cellRange?.isMergedMainCell)) {if (cellRange.isMergedMainCell) {- span = `rowSpan="${cellRange.endRow - cellRange.startRow + 1}" colSpan="${cellRange.endColumn - cellRange.startColumn + 1}"`;+ span = `rowSpan="${cellRange.endRow - cellRange.startRow + 1}" colSpan="${+ cellRange.endColumn - cellRange.startColumn + 1+ }"`;} else {continue;}@@ -350,7 +360,9 @@ export class UniverCopy extends Copy {angle = +match[0];ver = +match[1] ?? 0;}- column += `<td ${span} ${ver ? `data-vertical=${ver}` : ''} style="display:inline-block;transform: rotate(${angle}deg);${style}">`;+ column += `<td ${span} ${+ ver ? `data-vertical=${ver}` : ''+ } style="display:inline-block;transform: rotate(${angle}deg);${style}">`;} else {column = `<td ${span} style="${style}">`;}diff --git a/packages/sheets-plugin-operation/src/UI/ClipboardInput.tsx b/packages/sheets-plugin-operation/src/UI/ClipboardInput.tsxindex e63b3a06ea..2a2ffaa254 100644--- a/packages/sheets-plugin-operation/src/UI/ClipboardInput.tsx+++ b/packages/sheets-plugin-operation/src/UI/ClipboardInput.tsx@@ -9,7 +9,6 @@ interface IProps {}export class ClipboardInput extends Component<IProps> {-render() {const { prefix, placeholder1, suffix, placeholder2 } = this.props;diff --git a/packages/ui-plugin-docs/src/Locale/en.ts b/packages/ui-plugin-docs/src/Locale/en.tsindex 8b5d1e9acc..c9571663cd 100644--- a/packages/ui-plugin-docs/src/Locale/en.ts+++ b/packages/ui-plugin-docs/src/Locale/en.ts@@ -411,7 +411,8 @@ export default {chooseText: 'Confirm color',tipNameRepeat: 'The name of the tab page cannot be repeated! Please revise',- noMoreSheet: 'The workbook contains at least one visual worksheet. To delete the selected worksheet, please insert a new worksheet or show a hidden worksheet.',+ noMoreSheet:+ 'The workbook contains at least one visual worksheet. To delete the selected worksheet, please insert a new worksheet or show a hidden worksheet.',confirmDelete: 'Are you sure to delete',redoDelete: 'Can be undo by Ctrl+Z',noHide: "Can't hide, at least keep one sheet tag",diff --git a/packages/ui-plugin-docs/src/Locale/zh.ts b/packages/ui-plugin-docs/src/Locale/zh.tsindex d9e3a8b42e..9d1e00fefa 100644--- a/packages/ui-plugin-docs/src/Locale/zh.ts+++ b/packages/ui-plugin-docs/src/Locale/zh.ts@@ -274,7 +274,8 @@ export default {chooseText: '确定颜色',tipNameRepeat: '标签页的名称不能重复!请重新修改',- noMoreSheet: '工作薄内至少含有一张可视工作表。若需删除选定的工作表,请先插入一张新工作表或显示一张隐藏的工作表。',+ noMoreSheet:+ '工作薄内至少含有一张可视工作表。若需删除选定的工作表,请先插入一张新工作表或显示一张隐藏的工作表。',confirmDelete: '是否删除',redoDelete: '可以通过Ctrl+Z撤销删除',noHide: '不能隐藏, 至少保留一个sheet标签',diff --git a/packages/ui-plugin-docs/src/View/App.tsx b/packages/ui-plugin-docs/src/View/App.tsxindex 89a772cce8..ac5fe1af5a 100644--- a/packages/ui-plugin-docs/src/View/App.tsx+++ b/packages/ui-plugin-docs/src/View/App.tsx@@ -1,6 +1,7 @@import { AppContext, BaseComponentProps, ComponentManager } from '@univerjs/base-ui';-import { Component } from 'react';import { LocaleService, LocaleType } from '@univerjs/core';+import { Component } from 'react';+import { BaseDocContainerProps, DocContainer } from './DocContainer';export interface BaseUIProps extends BaseComponentProps {diff --git a/packages/ui-plugin-docs/src/View/DocContainer/DocContainer.tsx b/packages/ui-plugin-docs/src/View/DocContainer/DocContainer.tsxindex 2e01d85485..0eba95b4f6 100644--- a/packages/ui-plugin-docs/src/View/DocContainer/DocContainer.tsx+++ b/packages/ui-plugin-docs/src/View/DocContainer/DocContainer.tsx@@ -109,7 +109,12 @@ export class DocContainer extends Component<BaseDocContainerProps> {let currentSkin = skins[skin];// transform "primaryColor" to "--primary-color"- currentSkin = Object.fromEntries(Object.keys(currentSkin).map((item) => [`--${item.replace(/([A-Z0-9])/g, '-$1').toLowerCase()}`, currentSkin[item]]));+ currentSkin = Object.fromEntries(+ Object.keys(currentSkin).map((item) => [+ `--${item.replace(/([A-Z0-9])/g, '-$1').toLowerCase()}`,+ currentSkin[item],+ ])+ );// ie11 does not support css variables, use css-vars-ponyfill to handleif (Tools.isIEBrowser()) {@@ -208,13 +213,26 @@ export class DocContainer extends Component<BaseDocContainerProps> {>{/* innerLeft */}</Sider>- <Content className={config.contentSplit === 'vertical' ? style.contentContainerVertical : style.contentContainerHorizontal}>+ <Content+ className={+ config.contentSplit === 'vertical'+ ? style.contentContainerVertical+ : style.contentContainerHorizontal+ }+ >{!!config.contentSplit && (<Container ref={this.splitLeftRef} className={style.contentInnerLeftContainer}>- <div className={style.hoverCursor} onMouseDown={this.handleSplitBarMouseDown}></div>+ <div+ className={style.hoverCursor}+ onMouseDown={this.handleSplitBarMouseDown}+ ></div></Container>)}- <Container onContextMenu={(e) => e.preventDefault()} ref={this.contentRef} className={style.contentInnerRightContainer}></Container>+ <Container+ onContextMenu={(e) => e.preventDefault()}+ ref={this.contentRef}+ className={style.contentInnerRightContainer}+ ></Container>{/* extend main content */}</Content>diff --git a/packages/ui-plugin-sheets/src/Basics/Interfaces/ComponentConfig/ISheetUIPluginConfig.ts b/packages/ui-plugin-sheets/src/Basics/Interfaces/ComponentConfig/ISheetUIPluginConfig.tsindex 816166fb48..71570588e8 100644--- a/packages/ui-plugin-sheets/src/Basics/Interfaces/ComponentConfig/ISheetUIPluginConfig.ts+++ b/packages/ui-plugin-sheets/src/Basics/Interfaces/ComponentConfig/ISheetUIPluginConfig.ts@@ -1,13 +1,11 @@import { LocaleType } from '@univerjs/core';-import { SheetRightMenuConfig } from './RightMenuConfig';import { SheetContainerConfig } from './SheetContainerConfig';import { SheetToolbarConfig } from './ToolbarConfig';export interface ILayout {sheetContainerConfig?: SheetContainerConfig;toolbarConfig?: SheetToolbarConfig;- rightMenuConfig?: SheetRightMenuConfig;}export interface ISheetUIPluginConfig {diff --git a/packages/ui-plugin-sheets/src/Basics/Observer.ts b/packages/ui-plugin-sheets/src/Basics/Observer.tsdeleted file mode 100644index 8d3a11d56c..0000000000--- a/packages/ui-plugin-sheets/src/Basics/Observer.ts+++ /dev/null@@ -1,28 +0,0 @@-import { Observable } from '@univerjs/core';--import { SheetUIPlugin } from '../sheet-ui-plugin';-import { SheetContainer } from '../View';--export type SheetUIPluginObserve = {- // onAfterChangeUILocaleObservable: Observable<void>;-- onRichTextKeyDownObservable: Observable<KeyboardEvent>;- onRichTextKeyUpObservable: Observable<KeyboardEvent>;- onUIDidMount: Observable<SheetContainer>;-};--export function uninstallObserver(plugin: SheetUIPlugin) {- // plugin.deleteObserve('onAfterChangeUILocaleObservable');-- plugin.deleteObserve('onRichTextKeyDownObservable');- plugin.deleteObserve('onRichTextKeyUpObservable');- plugin.deleteObserve('onUIDidMount');-}--export function installObserver(plugin: SheetUIPlugin) {- // plugin.pushToObserve('onAfterChangeUILocaleObservable');-- plugin.pushToObserve('onRichTextKeyDownObservable');- plugin.pushToObserve('onRichTextKeyUpObservable');- plugin.pushToObserve('onUIDidMount');-}diff --git a/packages/ui-plugin-sheets/src/Basics/index.ts b/packages/ui-plugin-sheets/src/Basics/index.tsindex e59915e9a1..f2a63d815e 100644--- a/packages/ui-plugin-sheets/src/Basics/index.ts+++ b/packages/ui-plugin-sheets/src/Basics/index.ts@@ -1,4 +1,3 @@export * from '../Locale';export * from './Const';export * from './Interfaces';-export * from './Observer';diff --git a/packages/ui-plugin-sheets/src/Locale/en.ts b/packages/ui-plugin-sheets/src/Locale/en.tsindex 94acb81784..edca50b117 100644--- a/packages/ui-plugin-sheets/src/Locale/en.ts+++ b/packages/ui-plugin-sheets/src/Locale/en.ts@@ -411,7 +411,8 @@ export default {chooseText: 'Confirm color',tipNameRepeat: 'The name of the tab page cannot be repeated! Please revise',- noMoreSheet: 'The workbook contains at least one visual worksheet. To delete the selected worksheet, please insert a new worksheet or show a hidden worksheet.',+ noMoreSheet:+ 'The workbook contains at least one visual worksheet. To delete the selected worksheet, please insert a new worksheet or show a hidden worksheet.',confirmDelete: 'Are you sure to delete',redoDelete: 'Can be undo by Ctrl+Z',noHide: "Can't hide, at least keep one sheet tag",diff --git a/packages/ui-plugin-sheets/src/Locale/zh.ts b/packages/ui-plugin-sheets/src/Locale/zh.tsindex 3dc4a5a49f..655adbd39b 100644--- a/packages/ui-plugin-sheets/src/Locale/zh.ts+++ b/packages/ui-plugin-sheets/src/Locale/zh.ts@@ -274,7 +274,8 @@ export default {chooseText: '确定颜色',tipNameRepeat: '标签页的名称不能重复!请重新修改',- noMoreSheet: '工作薄内至少含有一张可视工作表。若需删除选定的工作表,请先插入一张新工作表或显示一张隐藏的工作表。',+ noMoreSheet:+ '工作薄内至少含有一张可视工作表。若需删除选定的工作表,请先插入一张新工作表或显示一张隐藏的工作表。',confirmDelete: '是否删除',redoDelete: '可以通过Ctrl+Z撤销删除',noHide: '不能隐藏, 至少保留一个sheet标签',diff --git a/packages/ui-plugin-sheets/src/View/CountBar/CountBar.tsx b/packages/ui-plugin-sheets/src/View/CountBar/CountBar.tsxindex 5fd1437c36..90b44d9d7d 100644--- a/packages/ui-plugin-sheets/src/View/CountBar/CountBar.tsx+++ b/packages/ui-plugin-sheets/src/View/CountBar/CountBar.tsx@@ -98,7 +98,14 @@ export class CountBar extends Component<CountBarProps, CountState> {<Icon.Math.AddIcon /></Button><div className={styles.countSlider}>- <Slider onChange={this.onChange} value={[20, 50]} min={this.min} max={this.max} range onClick={this.handleClick} />+ <Slider+ onChange={this.onChange}+ value={[20, 50]}+ min={this.min}+ max={this.max}+ range+ onClick={this.handleClick}+ /></div><Button onClick={this.reduceZoom}><Icon.Math.ReduceIcon />diff --git a/packages/ui-plugin-sheets/src/View/RichText/CellTextStyle.ts b/packages/ui-plugin-sheets/src/View/RichText/CellTextStyle.tsindex 887a371cc5..7060e6360c 100644--- a/packages/ui-plugin-sheets/src/View/RichText/CellTextStyle.ts+++ b/packages/ui-plugin-sheets/src/View/RichText/CellTextStyle.ts@@ -38,7 +38,16 @@ export class CellTextStyle {constructor(ele: HTMLDivElement) {this.inlineStyleAffectAttribute = { bl: 1, it: 1, ff: 1, cl: 1, un: 1, fs: 1, fc: 1, bg: 1 };- this.inlineStyleAffectCssName = { 'font-weight': 1, 'font-style': 1, 'font-family': 1, 'text-decoration': 1, 'border-bottom': 1, 'font-size': 1, color: 1, background: 1 };+ this.inlineStyleAffectCssName = {+ 'font-weight': 1,+ 'font-style': 1,+ 'font-family': 1,+ 'text-decoration': 1,+ 'border-bottom': 1,+ 'font-size': 1,+ color: 1,+ background: 1,+ };this.univerToCssName = {bl: 'font-weight',@@ -164,7 +173,10 @@ export class CellTextStyle {}selectTextContent($textEditor.querySelectorAll('span')[seletedNodeIndex]);- } else if ((startContainer.parentNode as HTMLElement).tagName === 'SPAN' && (endContainer.parentNode as HTMLElement).tagName === 'SPAN') {+ } else if (+ (startContainer.parentNode as HTMLElement).tagName === 'SPAN' &&+ (endContainer.parentNode as HTMLElement).tagName === 'SPAN'+ ) {const startSpan = startContainer.parentNode as HTMLElement;const endSpan = endContainer.parentNode as HTMLElement;@@ -388,7 +400,11 @@ export class CellTextStyle {s = s.toLowerCase();const key = textTrim(s.substr(0, s.indexOf(':')));const value = textTrim(s.substr(s.indexOf(':') + 1));- if (key === ukey || (oUkey === 'cl' && key === 'lucky-strike') || (oUkey === 'un' && key === 'lucky-underline')) {+ if (+ key === ukey ||+ (oUkey === 'cl' && key === 'lucky-strike') ||+ (oUkey === 'un' && key === 'lucky-underline')+ ) {continue;} else if (key.length > 0) {newCss += `${key}:${value};`;@@ -454,7 +470,11 @@ export class CellTextStyle {style += `font-size: ${value}pt;`;}- if ((key === 'fc' && value !== '#000000') || checksAF != null || (checksCF != null && checksCF.textColor != null)) {+ if (+ (key === 'fc' && value !== '#000000') ||+ checksAF != null ||+ (checksCF != null && checksCF.textColor != null)+ ) {if (checksCF != null && checksCF.textColor != null) {style += `color: ${checksCF.textColor};`;} else if (checksAF != null) {diff --git a/packages/ui-plugin-sheets/src/View/SheetBar/SheetBarMenu.tsx b/packages/ui-plugin-sheets/src/View/SheetBar/SheetBarMenu.tsxindex eb682beabe..d714380e9f 100644--- a/packages/ui-plugin-sheets/src/View/SheetBar/SheetBarMenu.tsx+++ b/packages/ui-plugin-sheets/src/View/SheetBar/SheetBarMenu.tsx@@ -66,7 +66,11 @@ export class SheetBarMenu extends Component<ISheetBarMenuProps, IState> {return (<ul className={styles.sheetBarMenu} style={{ ...style, display: show ? 'block' : ' none' }}>{menu.map((item) => (- <li key={item.index} onClick={(e) => this.handleClick(e, item)} className={joinClassNames(styles.sheetBarMenuItem)}>+ <li+ key={item.index}+ onClick={(e) => this.handleClick(e, item)}+ className={joinClassNames(styles.sheetBarMenuItem)}+ ><span className={styles.sheetBarMenuIcon}><EffIcon item={item}></EffIcon></span>diff --git a/packages/ui-plugin-sheets/src/sheet-ui-plugin.ts b/packages/ui-plugin-sheets/src/sheet-ui-plugin.tsindex b4afe69466..093365fdd8 100644--- a/packages/ui-plugin-sheets/src/sheet-ui-plugin.ts+++ b/packages/ui-plugin-sheets/src/sheet-ui-plugin.ts@@ -2,7 +2,7 @@ import { DragManager, SlotManager, ZIndexManager } from '@univerjs/base-ui';import { ICurrentUniverService, LocaleService, Plugin, PluginType } from '@univerjs/core';import { Dependency, Inject, Injector } from '@wendellhu/redi';-import { SHEET_UI_PLUGIN_NAME, SheetUIPluginObserve } from './Basics';+import { SHEET_UI_PLUGIN_NAME } from './Basics';import { SheetClipboardController } from './controller/clipboard/clipboard.controller';import { SheetUIController } from './controller/sheet-ui.controller';import { en } from './Locale';@@ -10,7 +10,7 @@ import { ICellEditorService } from './services/cell-editor/cell-editor.service';import { DesktopCellEditorService } from './services/cell-editor/cell-editor-desktop.service';import { ISheetClipboardService, SheetClipboardService } from './services/clipboard/clipboard.service';-export class SheetUIPlugin extends Plugin<SheetUIPluginObserve> {+export class SheetUIPlugin extends Plugin {static override type = PluginType.Sheet;constructor(diff --git a/packages/ui-plugin-slides/src/Controller/SlideBarUIController.ts b/packages/ui-plugin-slides/src/Controller/SlideBarUIController.tsindex 8318e64ad6..8b367b3e6a 100644--- a/packages/ui-plugin-slides/src/Controller/SlideBarUIController.ts+++ b/packages/ui-plugin-slides/src/Controller/SlideBarUIController.ts@@ -9,7 +9,10 @@ export class SlideBarUIController {private _pages: ISlidePage[] = [];- constructor(@Inject(CanvasView) private readonly _canvasView: CanvasView, @ICurrentUniverService private readonly _currentUniverService: ICurrentUniverService) {+ constructor(+ @Inject(CanvasView) private readonly _canvasView: CanvasView,+ @ICurrentUniverService private readonly _currentUniverService: ICurrentUniverService+ ) {this._initialize();}diff --git a/packages/ui-plugin-slides/src/Controller/ToolbarUIController.ts b/packages/ui-plugin-slides/src/Controller/ToolbarUIController.tsindex 5ee8e98ab8..4cba02b05c 100644--- a/packages/ui-plugin-slides/src/Controller/ToolbarUIController.ts+++ b/packages/ui-plugin-slides/src/Controller/ToolbarUIController.ts@@ -1,6 +1,16 @@import { BorderInfo } from '@univerjs/base-slides';import { BaseSelectChildrenProps, BaseSelectProps, ColorPicker, ComponentManager } from '@univerjs/base-ui';-import { BorderType, HorizontalAlign, ICurrentUniverService, IKeyValue, ObserverManager, Tools, UIObserver, VerticalAlign, WrapStrategy } from '@univerjs/core';+import {+ BorderType,+ HorizontalAlign,+ ICurrentUniverService,+ IKeyValue,+ ObserverManager,+ Tools,+ UIObserver,+ VerticalAlign,+ WrapStrategy,+} from '@univerjs/core';import { Inject, SkipSelf } from '@wendellhu/redi';import { ComponentChildren } from 'react';@@ -100,7 +110,9 @@ export class ToolbarUIController {}setUIObserve<T>(msg: UIObserver<T>) {- this._globalObserverManager.requiredObserver<UIObserver<T>>('onUIChangeObservable', 'core').notifyObservers(msg);+ this._globalObserverManager+ .requiredObserver<UIObserver<T>>('onUIChangeObservable', 'core')+ .notifyObservers(msg);}changeColor(color: string) {diff --git a/packages/ui-plugin-slides/src/View/App.tsx b/packages/ui-plugin-slides/src/View/App.tsxindex af6d8b2f4c..b0754bcf70 100644--- a/packages/ui-plugin-slides/src/View/App.tsx+++ b/packages/ui-plugin-slides/src/View/App.tsx@@ -1,6 +1,7 @@import { AppContext, BaseComponentProps, ComponentManager } from '@univerjs/base-ui';-import { Component } from 'react';import { LocaleService, LocaleType } from '@univerjs/core';+import { Component } from 'react';+import { BaseSlideContainerProps, SlideContainer } from './SlideContainer';export interface BaseUIProps extends BaseComponentProps {diff --git a/packages/ui-plugin-slides/src/View/InfoBar/InfoBar.tsx b/packages/ui-plugin-slides/src/View/InfoBar/InfoBar.tsxindex 0f44e50e5b..ed4ecaa875 100644--- a/packages/ui-plugin-slides/src/View/InfoBar/InfoBar.tsx+++ b/packages/ui-plugin-slides/src/View/InfoBar/InfoBar.tsx@@ -1,6 +1,7 @@import { BaseComponentProps, Container, CustomLabel, Input, Tooltip } from '@univerjs/base-ui';-import { Component } from 'react';import { Nullable } from '@univerjs/core';+import { Component } from 'react';+import { BaseInfoBarProps } from '../../Controller/InfoBarUIController';import styles from './index.module.less';diff --git a/packages/ui-plugin-slides/src/View/SlideBar/SlideBar.tsx b/packages/ui-plugin-slides/src/View/SlideBar/SlideBar.tsxindex e0c033d480..d61417653f 100644--- a/packages/ui-plugin-slides/src/View/SlideBar/SlideBar.tsx+++ b/packages/ui-plugin-slides/src/View/SlideBar/SlideBar.tsx@@ -1,6 +1,7 @@import { AppContext, BaseComponentProps, Button } from '@univerjs/base-ui';-import { Component, createRef } from 'react';import { ISlidePage } from '@univerjs/core';+import { Component, createRef } from 'react';+import styles from './index.module.less';interface SlideBarState {@@ -72,7 +73,11 @@ export class SlideBar extends Component<IProps, SlideBarState> {<div className={styles.slideBar} ref={this.slideBarRef}><div className={styles.slideBarContent}>{slideList.map((item, index) => (- <div key={index} className={`${styles.slideBarItem} ${this.isActive(item.id, index)}`} onClick={() => this.activeSlide(item.id, index)}>+ <div+ key={index}+ className={`${styles.slideBarItem} ${this.isActive(item.id, index)}`}+ onClick={() => this.activeSlide(item.id, index)}+ ><span>{index + 1}</span><div className={styles.slideBarBox}></div></div>diff --git a/packages/ui-plugin-slides/src/View/SlideContainer/SlideContainer.tsx b/packages/ui-plugin-slides/src/View/SlideContainer/SlideContainer.tsxindex 1059aa057e..b2b557d1bc 100644--- a/packages/ui-plugin-slides/src/View/SlideContainer/SlideContainer.tsx+++ b/packages/ui-plugin-slides/src/View/SlideContainer/SlideContainer.tsx@@ -112,7 +112,12 @@ export class SlideContainer extends Component<BaseSlideContainerProps> {let currentSkin = skins[skin];// transform "primaryColor" to "--primary-color"- currentSkin = Object.fromEntries(Object.keys(currentSkin).map((item) => [`--${item.replace(/([A-Z0-9])/g, '-$1').toLowerCase()}`, currentSkin[item]]));+ currentSkin = Object.fromEntries(+ Object.keys(currentSkin).map((item) => [+ `--${item.replace(/([A-Z0-9])/g, '-$1').toLowerCase()}`,+ currentSkin[item],+ ])+ );// ie11 does not support css variables, use css-vars-ponyfill to handleif (Tools.isIEBrowser()) {@@ -216,13 +221,26 @@ export class SlideContainer extends Component<BaseSlideContainerProps> {><SlideBar {...methods.slideBar}></SlideBar></Sider>- <Content className={config.contentSplit === 'vertical' ? style.contentContainerVertical : style.contentContainerHorizontal}>+ <Content+ className={+ config.contentSplit === 'vertical'+ ? style.contentContainerVertical+ : style.contentContainerHorizontal+ }+ >{!!config.contentSplit && (<Container ref={this.splitLeftRef} className={style.contentInnerLeftContainer}>- <div className={style.hoverCursor} onMouseDown={this.handleSplitBarMouseDown}></div>+ <div+ className={style.hoverCursor}+ onMouseDown={this.handleSplitBarMouseDown}+ ></div></Container>)}- <Container onContextMenu={(e) => e.preventDefault()} ref={this.contentRef} className={style.contentInnerRightContainer}>+ <Container+ onContextMenu={(e) => e.preventDefault()}+ ref={this.contentRef}+ className={style.contentInnerRightContainer}+ >{/* {config.rightMenu && <RightMenu {...methods.rightMenu}></RightMenu>} */}</Container>{/* extend main content */}diff --git a/packages/ui-plugin-slides/src/View/Toolbar/DataBar.tsx b/packages/ui-plugin-slides/src/View/Toolbar/DataBar.tsxindex 12a716f03b..70cf08ca22 100644--- a/packages/ui-plugin-slides/src/View/Toolbar/DataBar.tsx+++ b/packages/ui-plugin-slides/src/View/Toolbar/DataBar.tsx@@ -8,14 +8,18 @@ export const DataBar = (props: BarProps) => {const { list, img, onClick } = props;const background = `url(${img}) no-repeat`;- let handleClick = (item: {}, index: number) => {+ const handleClick = (item: {}, index: number) => {onClick?.call(this, item, index);};return (<div style="display: flex;">{list.map((item, index) => (- <div key={index} onClick={() => handleClick(item, index)} style={{ width: '28px', height: '26px', background, backgroundPosition: `${item.x} ${item.y}` }}></div>+ <div+ key={index}+ onClick={() => handleClick(item, index)}+ style={{ width: '28px', height: '26px', background, backgroundPosition: `${item.x} ${item.y}` }}+ ></div>))}</div>);diff --git a/packages/ui-plugin-slides/src/View/Toolbar/Toolbar.tsx b/packages/ui-plugin-slides/src/View/Toolbar/Toolbar.tsxindex 5d9c895dac..e3bc392c68 100644--- a/packages/ui-plugin-slides/src/View/Toolbar/Toolbar.tsx+++ b/packages/ui-plugin-slides/src/View/Toolbar/Toolbar.tsx@@ -1,5 +1,15 @@-import { AppContext, BaseComponentProps, Button, Container, debounce, Select, Tooltip, CustomLabel } from '@univerjs/base-ui';+import {+ AppContext,+ BaseComponentProps,+ Button,+ Container,+ CustomLabel,+ debounce,+ Select,+ Tooltip,+} from '@univerjs/base-ui';import { Component, createRef } from 'react';+import { SlideUIPlugin } from '../..';import { SLIDE_UI_PLUGIN_NAME } from '../../Basics';import { IToolbarItemProps } from '../../Controller';@@ -136,7 +146,9 @@ export class Toolbar extends Component<IProps, IState> {if (moreIndex !== null) {this.setState({- defaultToolList: this.state.defaultToolList.concat(this.state.moreToolList.slice(0, last ? moreIndex + 1 : moreIndex)),+ defaultToolList: this.state.defaultToolList.concat(+ this.state.moreToolList.slice(0, last ? moreIndex + 1 : moreIndex)+ ),moreToolList: last ? [] : this.state.moreToolList.slice(moreIndex),},() => {@@ -193,7 +205,13 @@ export class Toolbar extends Component<IProps, IState> {if (item.show) {return (<Tooltip key={index} title={item.tooltip} placement={'bottom'}>- <Button unActive={item.unActive} className={styles.textButton} type="text" active={item.active} onClick={item.onClick}>+ <Button+ unActive={item.unActive}+ className={styles.textButton}+ type="text"+ active={item.active}+ onClick={item.onClick}+ ><CustomLabel label={item.label} /></Button></Tooltip>@@ -232,8 +250,15 @@ export class Toolbar extends Component<IProps, IState> {<div className={`${styles.toolbarWarp} ${styles.toolbar}`} ref={this.toolbarRef}>{this.getToolbarList(defaultToolList)}- <div ref={this.moreBtnRef} className={styles.moreButton} style={{ visibility: moreToolList.length ? 'visible' : 'hidden' }}>- <Tooltip title={(<CustomLabel label="toolbar.toolMoreTip" />) as unknown as string} placement={'bottom'}>+ <div+ ref={this.moreBtnRef}+ className={styles.moreButton}+ style={{ visibility: moreToolList.length ? 'visible' : 'hidden' }}+ >+ <Tooltip+ title={(<CustomLabel label="toolbar.toolMoreTip" />) as unknown as string}+ placement={'bottom'}+ ><Button type="text" onClick={this.showMore}><div style={{ fontSize: '14px' }}><CustomLabel label="toolbar.toolMore" />@@ -244,7 +269,11 @@ export class Toolbar extends Component<IProps, IState> {</div>{moreToolList.length ? (- <div style={{ visibility: showMore ? 'visible' : 'hidden' }} className={`${styles.moreTool} ${styles.toolbar}`} ref={this.moreToolRef}>+ <div+ style={{ visibility: showMore ? 'visible' : 'hidden' }}+ className={`${styles.moreTool} ${styles.toolbar}`}+ ref={this.moreToolRef}+ >{this.getToolbarList(moreToolList)}</div>) : (